forked from github/dataease
refactor(仪表板): 透视表跳转设置只保留指标字段
This commit is contained in:
parent
5523e21638
commit
64ea12f55d
@ -62,8 +62,7 @@ export default {
|
|||||||
'gauge',
|
'gauge',
|
||||||
'text',
|
'text',
|
||||||
'label',
|
'label',
|
||||||
'word-cloud',
|
'word-cloud'
|
||||||
'table-pivot'
|
|
||||||
],
|
],
|
||||||
linkageExcludeViewType: [
|
linkageExcludeViewType: [
|
||||||
'richTextView',
|
'richTextView',
|
||||||
@ -71,8 +70,7 @@ export default {
|
|||||||
'gauge',
|
'gauge',
|
||||||
'text',
|
'text',
|
||||||
'label',
|
'label',
|
||||||
'word-cloud',
|
'word-cloud'
|
||||||
'table-pivot'
|
|
||||||
],
|
],
|
||||||
copyData: null,
|
copyData: null,
|
||||||
hyperlinksSetVisible: false,
|
hyperlinksSetVisible: false,
|
||||||
|
@ -359,8 +359,12 @@ export default {
|
|||||||
init() {
|
init() {
|
||||||
const chartDetails = JSON.parse(this.panelViewDetailsInfo[this.viewId])
|
const chartDetails = JSON.parse(this.panelViewDetailsInfo[this.viewId])
|
||||||
const checkAllAxisStr = chartDetails.xaxis + chartDetails.xaxisExt + chartDetails.yaxis + chartDetails.yaxisExt + chartDetails.drillFields
|
const checkAllAxisStr = chartDetails.xaxis + chartDetails.xaxisExt + chartDetails.yaxis + chartDetails.yaxisExt + chartDetails.drillFields
|
||||||
const checkJumpStr = chartDetails.type.includes('table') ? checkAllAxisStr : chartDetails.xaxis + chartDetails.xaxisExt + chartDetails.drillFields
|
let checkJumpStr
|
||||||
|
if (chartDetails.type === 'table-pivot') {
|
||||||
|
checkJumpStr = chartDetails.yaxis + chartDetails.yaxisExt
|
||||||
|
} else {
|
||||||
|
checkJumpStr = checkAllAxisStr
|
||||||
|
}
|
||||||
// 获取可关联的仪表板
|
// 获取可关联的仪表板
|
||||||
groupTree({}).then(rsp => {
|
groupTree({}).then(rsp => {
|
||||||
this.panelList = rsp.data
|
this.panelList = rsp.data
|
||||||
|
Loading…
Reference in New Issue
Block a user