Merge pull request #6446 from dataease/pr@dev@feat_sub_dimension_jump

feat: 子维度跳转#5739
This commit is contained in:
wisonic-s 2023-10-31 12:02:08 +08:00 committed by GitHub
commit 793f989119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 3 deletions

View File

@ -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--) {

View File

@ -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) {