NEZ-2779 fix:opo 点击 module 上方蜂窝详情弹出二级列表,显示路径有误

This commit is contained in:
zhangyu
2023-04-17 16:59:42 +08:00
parent bd8c624a03
commit 1c7c14933e
4 changed files with 20 additions and 7 deletions

View File

@@ -73,7 +73,7 @@ export default {
nodesArr: [],
offsetX: 0,
offsetY: 0,
moduleId: '',
moduleId: ''
}
},
mixins: [topoUtil],
@@ -510,8 +510,14 @@ export default {
},
// 具体内容点击
nodeTools (node, tool) {
const findItem = this.allModules.find(item => item.id == node.moduleId)
if (findItem) {
this.moduleName = findItem.name
} else {
this.$message.error(this.$t('MODULE_NOTFOUND'))
return
}
this.moduleId = node.moduleId
this.moduleName = node.moduleName
if (tool.id === 'total') {
this.popDataShowUpdate('', false, node)
return