CN-668:修改BUG: Cannot read properties of null (reading '$el')

This commit is contained in:
hanyuxia
2022-08-24 18:10:53 +08:00
parent 3743e7520a
commit 0f26961bae
2 changed files with 9 additions and 3 deletions

View File

@@ -687,9 +687,11 @@ export const networkTable = {
hasMetricSearch: false, // 是否有metric下拉列表 hasMetricSearch: false, // 是否有metric下拉列表
panelIdOfThirdMenu: drillDownPanelTypeMapping.npmThirdMenu, panelIdOfThirdMenu: drillDownPanelTypeMapping.npmThirdMenu,
bytesColumnNameGroup: bytesColumnNameGroupForNpm, bytesColumnNameGroup: bytesColumnNameGroupForNpm,
bytesCycleColumnNameGroup: bytesCycleColumnNameGroupForNmp,
packetsColumnNameGroup: {}, // 无metric下拉列表条件用不到此属性 packetsColumnNameGroup: {}, // 无metric下拉列表条件用不到此属性
sessionsColumnNameGroup: {}// 无metric下拉列表条件用不到此属性 sessionsColumnNameGroup: {},// 无metric下拉列表条件用不到此属性
bytesCycleColumnNameGroup: bytesCycleColumnNameGroupForNmp,
packetsCycleColumnNameGroup: {},
sessionsCycleColumnNameGroup: {}
} }
} }

View File

@@ -1008,7 +1008,6 @@ export default {
// 当前表格相关数据初始化 // 当前表格相关数据初始化
this.tableType = this.chart.params ? this.chart.params.name : 'networkOverview' this.tableType = this.chart.params ? this.chart.params.name : 'networkOverview'
this.curTable = this.networkTable[this.tableType] ? this.networkTable[this.tableType] : this.networkTable.networkOverview this.curTable = this.networkTable[this.tableType] ? this.networkTable[this.tableType] : this.networkTable.networkOverview
this.hasMetricSearch = this.curTable.hasMetricSearch
this.customTableTitles = this.$_.cloneDeep(this.curTable.column) this.customTableTitles = this.$_.cloneDeep(this.curTable.column)
this.list = this.$_.cloneDeep(this.curTable.tabList) this.list = this.$_.cloneDeep(this.curTable.tabList)
this.networkTabList = this.curTable.tabList this.networkTabList = this.curTable.tabList
@@ -1043,6 +1042,11 @@ export default {
}) })
}) })
} }
this.$nextTick(() => {
setTimeout(() => {
this.hasMetricSearch = this.curTable.hasMetricSearch
}, 250)
})
}, },
setup (props) {}, setup (props) {},
unmounted () { unmounted () {