Merge pull request #2212 from dataease/pr@dev@refactor-linkage-params

refactor: 视图联动不清除历史联动条件
This commit is contained in:
王嘉豪 2022-04-28 16:26:00 +08:00 committed by GitHub
commit 4cc03a7b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,7 +279,7 @@ const data = {
const ele = element.options.tabList[idx].content
if (!ele.type || ele.type !== 'view') continue
const currentFilters = []
const currentFilters = element.linkageFilters || [] // 当前联动filter
data.dimensionList.forEach(dimension => {
const sourceInfo = viewId + '#' + dimension.id
@ -312,9 +312,9 @@ const data = {
state.componentData[index] = element
}
if (!element.type || element.type !== 'view') continue
// const currentFilters = element.linkageFilters || [] // 当前联动filter
const currentFilters = element.linkageFilters || [] // 当前联动filter
// 联动的视图情况历史条件
const currentFilters = []
// const currentFilters = []
data.dimensionList.forEach(dimension => {
const sourceInfo = viewId + '#' + dimension.id