mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 02:58:10 +08:00
feat: 视图下钻
This commit is contained in:
@@ -162,7 +162,6 @@ const data = {
|
||||
// 添加联动 下钻 等过滤组件
|
||||
addViewTrackFilter(state, data) {
|
||||
console.log('联动信息', JSON.stringify(data))
|
||||
debugger
|
||||
const viewId = data.viewId
|
||||
const trackInfo = state.nowPanelTrackInfo
|
||||
for (let index = 0; index < state.componentData.length; index++) {
|
||||
|
||||
@@ -75,10 +75,6 @@ export default {
|
||||
|
||||
this.myChart.off('click')
|
||||
this.myChart.on('click', function(param) {
|
||||
that.$emit('onChartClick', param)
|
||||
})
|
||||
this.myChart.on('click', function(param) {
|
||||
debugger
|
||||
console.log(JSON.stringify(param.data))
|
||||
const trackFilter = {
|
||||
viewId: viewId,
|
||||
@@ -86,6 +82,8 @@ export default {
|
||||
quotaList: param.data.quotaList
|
||||
}
|
||||
_store.commit('addViewTrackFilter', trackFilter)
|
||||
|
||||
that.$emit('onChartClick', param)
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
@@ -751,6 +751,7 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
'param': function() {
|
||||
this.resetDrill()
|
||||
if (this.param.optType === 'new') {
|
||||
//
|
||||
} else {
|
||||
@@ -1006,7 +1007,9 @@ export default {
|
||||
if (this.chart.privileges) {
|
||||
this.param.privileges = this.chart.privileges
|
||||
}
|
||||
this.drillClickDimensionList = response.data.drillClickDimensionList ? response.data.drillClickDimensionList : []
|
||||
if (!response.data.drill) {
|
||||
this.drillClickDimensionList.splice(this.drillClickDimensionList.length - 1, 1)
|
||||
}
|
||||
}).catch(err => {
|
||||
this.resetView()
|
||||
this.resetDrill()
|
||||
|
||||
Reference in New Issue
Block a user