forked from github/dataease
Merge pull request #2945 from dataease/pr@dev@fix_filter_button_tab
fix(仪表板-查询按钮): 查询按钮对tab内部视图无效
This commit is contained in:
commit
4ca7df5a6a
@ -330,6 +330,13 @@ export default {
|
||||
if (component.type === 'view' && this.buttonFilterMap[component.propValue.viewId]) {
|
||||
component.filters = this.buttonFilterMap[component.propValue.viewId]
|
||||
}
|
||||
if (component.type === 'de-tabs') {
|
||||
for (let idx = 0; idx < component.options.tabList.length; idx++) {
|
||||
const ele = component.options.tabList[idx].content
|
||||
if (!ele.type || ele.type !== 'view') continue
|
||||
ele.filters = this.buttonFilterMap[ele.propValue.viewId]
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
buildButtonFilterMap(panelItems, isClear = false) {
|
||||
|
@ -1133,6 +1133,13 @@ export default {
|
||||
if (component.type === 'view' && this.buttonFilterMap[component.propValue.viewId]) {
|
||||
component.filters = this.buttonFilterMap[component.propValue.viewId]
|
||||
}
|
||||
if (component.type === 'de-tabs') {
|
||||
for (let idx = 0; idx < component.options.tabList.length; idx++) {
|
||||
const ele = component.options.tabList[idx].content
|
||||
if (!ele.type || ele.type !== 'view') continue
|
||||
ele.filters = this.buttonFilterMap[ele.propValue.viewId]
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
buildButtonFilterMap(panelItems, isClear = false) {
|
||||
|
Loading…
Reference in New Issue
Block a user