From 978d02a3dd9471046ae5a92edd7f767918e71236 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期四, 13 二月 2025 15:14:49 +0800
Subject: [PATCH] 产品结构树删除节点接口参数改变,提交后由后端测试

---
 src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainBottom.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainBottom.vue b/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainBottom.vue
index 308ce66..5de5c43 100644
--- a/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainBottom.vue
+++ b/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainBottom.vue
@@ -1,10 +1,10 @@
 <template>
   <a-tabs style="height: 100%" v-model="activeTabKey" @change="handleTabChange">
-    <a-tab-pane :key="1" tab="璁惧灞炴��" v-if="currentTreeNodeInfo.equipmentId">
+    <a-tab-pane :key="1" tab="璁惧灞炴��" v-if="currentTreeNodeInfo.type===2&&!currentDocumentInfo.docId">
       <DeviceInfo :currentLevelDetails="currentTreeNodeInfo.entity" :size="containerSize"/>
     </a-tab-pane>
 
-    <template v-else>
+    <template v-if="currentDocumentInfo.docId">
       <a-tab-pane :key="1" tab="鏂囨。灞炴��">
         <DocumentInfo :currentLevelDetails="currentDocumentInfo" :size="containerSize"/>
       </a-tab-pane>
@@ -55,6 +55,14 @@
         hasLoadedDataTabKeyArray: []
       }
     },
+    watch: {
+      currentTreeNodeInfo: {
+        handler(value) {
+          this.currentDocumentInfo = {}
+        },
+        immediate: true
+      }
+    },
     created() {
       this.$bus.$on('sendCurrentClickedDocumentInfo', this.receiveCurrentDocumentInfo)
       this.$bus.$on('reloadMainBottomTableData', this.reloadMainBottomTableData)

--
Gitblit v1.9.3