forked from github/dataease
Merge pull request #6446 from dataease/pr@dev@feat_sub_dimension_jump
feat: 子维度跳转#5739
This commit is contained in:
commit
793f989119
@ -1007,6 +1007,12 @@ export default {
|
||||
sourceInfo = param.viewId + '#' + dimension.id
|
||||
jumpInfo = this.nowPanelJumpInfo[sourceInfo]
|
||||
}
|
||||
// 没有主维度,子维度相等
|
||||
if (!jumpInfo && dimensionItem.value === param.category) {
|
||||
dimension = dimensionItem
|
||||
sourceInfo = param.viewId + '#' + dimension.id
|
||||
jumpInfo = this.nowPanelJumpInfo[sourceInfo]
|
||||
}
|
||||
})
|
||||
} else {
|
||||
for (let i = param.dimensionList.length - 1; i >= 0; i--) {
|
||||
|
@ -355,7 +355,8 @@ export default {
|
||||
}
|
||||
this.linkageActiveParam = {
|
||||
category: this.pointParam.data.category ? this.pointParam.data.category : 'NO_DATA',
|
||||
name: this.pointParam.data.name ? this.pointParam.data.name : 'NO_DATA'
|
||||
name: this.pointParam.data.name ? this.pointParam.data.name : 'NO_DATA',
|
||||
group: this.pointParam.data.group ? this.pointParam.data.group : 'NO_DATA'
|
||||
}
|
||||
if (this.trackMenu.length < 2) { // 只有一个事件直接调用
|
||||
this.trackClick(this.trackMenu[0])
|
||||
@ -392,14 +393,18 @@ export default {
|
||||
name: this.pointParam.data.name,
|
||||
viewId: this.chart.id,
|
||||
dimensionList: this.pointParam.data.dimensionList,
|
||||
quotaList: quotaList
|
||||
quotaList: quotaList,
|
||||
category: this.pointParam.data.category,
|
||||
group: this.pointParam.data.group
|
||||
}
|
||||
const jumpParam = {
|
||||
option: 'jump',
|
||||
name: this.pointParam.data.name,
|
||||
viewId: this.chart.id,
|
||||
dimensionList: this.pointParam.data.dimensionList,
|
||||
quotaList: quotaList
|
||||
quotaList: quotaList,
|
||||
category: this.pointParam.data.category,
|
||||
group: this.pointParam.data.group
|
||||
}
|
||||
|
||||
switch (trackAction) {
|
||||
|
Loading…
Reference in New Issue
Block a user