forked from github/dataease
fix: tab中放地图钻取后查看详情图形错误
This commit is contained in:
parent
40a0e196e4
commit
a8b7350012
@ -123,10 +123,24 @@ export default {
|
||||
if (!this.curComponent && this.lastMapChart) {
|
||||
return this.lastMapChart
|
||||
}
|
||||
if (this.curComponent && this.curComponent.options && this.curComponent.options.tabList && this.curComponent.options.tabList.length) {
|
||||
const tabList = JSON.parse(JSON.stringify(this.curComponent.options.tabList))
|
||||
tabList.forEach(tab => {
|
||||
if (tab.content &&
|
||||
tab.content.propValue &&
|
||||
tab.content.propValue.viewId &&
|
||||
tab.content.propValue.viewId === this.chart.id &&
|
||||
tab.content.DetailAreaCode &&
|
||||
tab.content.DetailAreaCode.length) {
|
||||
DetailAreaCode = tab.content.DetailAreaCode
|
||||
}
|
||||
})
|
||||
}
|
||||
const result = { ...temp, ...{ DetailAreaCode: DetailAreaCode }}
|
||||
this.setLastMapChart(result)
|
||||
return result
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user