From 63ac895629d2de0e7f4284b1617d9aa8cbd07d05 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期五, 21 三月 2025 14:16:04 +0800 Subject: [PATCH] 1、删除DNC冗余组件 2、优化DNC文档版本、文档指派及文档预览功能代码 --- src/views/dnc/base/modules/DeviceStructure/DeviceStructureTreeContextMenu.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/dnc/base/modules/DeviceStructure/DeviceStructureTreeContextMenu.vue b/src/views/dnc/base/modules/DeviceStructure/DeviceStructureTreeContextMenu.vue index 001b2db..912ebd5 100644 --- a/src/views/dnc/base/modules/DeviceStructure/DeviceStructureTreeContextMenu.vue +++ b/src/views/dnc/base/modules/DeviceStructure/DeviceStructureTreeContextMenu.vue @@ -48,8 +48,11 @@ methods: { onContextMenuClick(treeKey, menuKey) { const level = this.getCurrentMenuLevel - const treeNodeInfo = Object.assign({}, this.treeParams) - if (treeNodeInfo.equipmentId) treeNodeInfo.type = 4 + const { param } = this.treeParams + const treeNodeInfo = Object.assign({}, this.treeParams, { param }) + console.log('treeNodeInfo++++++++++++++++++++++++++++', treeNodeInfo) + if (treeNodeInfo.type === 2) treeNodeInfo.type = 7 + // 璁惧缁撴瀯鏍戣妭鐐逛腑鐨勮澶囧眰绾т负2锛屼絾鍦ㄤ骇鍝佺粨鏋勬爲涓皢璁惧灞傜骇鐨則ype璁剧疆涓�7锛屽洜姝ゅ湪姝ゅ璁剧疆涓�7 const menuKeyArray = menuKey.split('_') const isCommonMethod = this.defaultContextMenuList[level].find(item => item.code === menuKey).isCommonMethod // product_add => handleAdd 瑙﹀彂瀵瑰簲缁勪欢浜嬩欢 -- Gitblit v1.9.3