Merge pull request #2085 from dataease/pr@dev@fix_tabs_filters

fix: tabs组件多个选项卡过滤条件逻辑错误
This commit is contained in:
fit2cloud-chenyw 2022-04-08 13:55:28 +08:00 committed by GitHub
commit 1a519db43c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,6 +274,13 @@ export default {
const components = deepCopy(this.componentData)
components.forEach(view => {
if (view.filters && view.filters.length > 0) { view.filters = [] }
if (view.type === 'de-tabs') {
view.options.tabList && view.options.tabList.length > 0 && view.options.tabList.forEach(tab => {
if (tab.content && tab.content.filters && tab.content.filters.length > 0) {
tab.content.filters = []
}
})
}
})
//
requestInfo.panelData = JSON.stringify(components)