CN-710 下钻table配置化:多次下钻后的标签列表不对
This commit is contained in:
@@ -857,7 +857,6 @@ export default {
|
|||||||
this.list = metricTab ? metricTab.tabs : []
|
this.list = metricTab ? metricTab.tabs : []
|
||||||
this.networkTabList = metricTab ? metricTab.tabs : []
|
this.networkTabList = metricTab ? metricTab.tabs : []
|
||||||
this.combineTabList(this.list)
|
this.combineTabList(this.list)
|
||||||
// this.allList = this.$_.cloneDeep(this.list)//备份所有配置,下钻及返回时使用
|
|
||||||
const curTabData = this.list.find(item => item.label === label)
|
const curTabData = this.list.find(item => item.label === label)
|
||||||
this.combineColumnList(curTabData.label)
|
this.combineColumnList(curTabData.label)
|
||||||
}
|
}
|
||||||
@@ -1439,7 +1438,8 @@ export default {
|
|||||||
tabList.forEach(tab => {
|
tabList.forEach(tab => {
|
||||||
const drilldownTabFull = []
|
const drilldownTabFull = []
|
||||||
tab.drilldownTabs.forEach(drilldownTab => {
|
tab.drilldownTabs.forEach(drilldownTab => {
|
||||||
const drilldownTabName = drilldownTab ? (drilldownTab.name ? drilldownTab.name : drilldownTab) : ''
|
if (!drilldownTab.hasOwnProperty('name') || drilldownTab.name === undefined || drilldownTab.name === null) {
|
||||||
|
const drilldownTabName = drilldownTab || ''
|
||||||
const fullTab = oldList.find(item => item.name === drilldownTabName)
|
const fullTab = oldList.find(item => item.name === drilldownTabName)
|
||||||
if (fullTab) {
|
if (fullTab) {
|
||||||
const commonTab = this.commonTabList.find(item => item.name === drilldownTabName)
|
const commonTab = this.commonTabList.find(item => item.name === drilldownTabName)
|
||||||
@@ -1460,8 +1460,11 @@ export default {
|
|||||||
fullTab.dillDownProp = tabInCode ? tabInCode.dillDownProp : []
|
fullTab.dillDownProp = tabInCode ? tabInCode.dillDownProp : []
|
||||||
drilldownTabFull.push(fullTab)
|
drilldownTabFull.push(fullTab)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
if (drilldownTabFull.length > 0) {
|
||||||
tab.drilldownTabs = drilldownTabFull
|
tab.drilldownTabs = drilldownTabFull
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user