forked from github/dataease
fix(仪表板-查询按钮): 查询按钮对tab内部视图无效
This commit is contained in:
parent
8cd0eb8932
commit
fa709d5339
@ -75,7 +75,7 @@ import { mapState } from 'vuex'
|
|||||||
import ComponentWrapper from './ComponentWrapper'
|
import ComponentWrapper from './ComponentWrapper'
|
||||||
import { changeStyleWithScale } from '@/components/canvas/utils/translate'
|
import { changeStyleWithScale } from '@/components/canvas/utils/translate'
|
||||||
import { uuid } from 'vue-uuid'
|
import { uuid } from 'vue-uuid'
|
||||||
import {deepCopy, imgUrlTrans} from '@/components/canvas/utils/utils'
|
import { deepCopy, imgUrlTrans } from '@/components/canvas/utils/utils'
|
||||||
import eventBus from '@/components/canvas/utils/eventBus'
|
import eventBus from '@/components/canvas/utils/eventBus'
|
||||||
import elementResizeDetectorMaker from 'element-resize-detector'
|
import elementResizeDetectorMaker from 'element-resize-detector'
|
||||||
import UserViewDialog from '@/components/canvas/custom-component/UserViewDialog'
|
import UserViewDialog from '@/components/canvas/custom-component/UserViewDialog'
|
||||||
@ -330,6 +330,13 @@ export default {
|
|||||||
if (component.type === 'view' && this.buttonFilterMap[component.propValue.viewId]) {
|
if (component.type === 'view' && this.buttonFilterMap[component.propValue.viewId]) {
|
||||||
component.filters = 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) {
|
buildButtonFilterMap(panelItems, isClear = false) {
|
||||||
|
@ -189,7 +189,7 @@ import DeDrag from '@/components/DeDrag'
|
|||||||
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
import { getStyle, getComponentRotatedStyle } from '@/components/canvas/utils/style'
|
import { getStyle, getComponentRotatedStyle } from '@/components/canvas/utils/style'
|
||||||
import {_$, imgUrlTrans} from '@/components/canvas/utils/utils'
|
import { _$, imgUrlTrans } from '@/components/canvas/utils/utils'
|
||||||
import ContextMenu from './ContextMenu'
|
import ContextMenu from './ContextMenu'
|
||||||
import MarkLine from './MarkLine'
|
import MarkLine from './MarkLine'
|
||||||
import Area from './Area'
|
import Area from './Area'
|
||||||
@ -1133,6 +1133,13 @@ export default {
|
|||||||
if (component.type === 'view' && this.buttonFilterMap[component.propValue.viewId]) {
|
if (component.type === 'view' && this.buttonFilterMap[component.propValue.viewId]) {
|
||||||
component.filters = 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) {
|
buildButtonFilterMap(panelItems, isClear = false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user