From 09891cea3bd0c4c6182a786c302dc20921f07ccd Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期二, 11 二月 2025 18:01:50 +0800
Subject: [PATCH] 设备结构树: 1、实现点击设备关联NC程序展示文档详细信息、文件内容预览以及文档内容对比功能 2、实现设备层级导入已接收NC程序功能 全局: 1、解决类似文档出库弹窗在路由跳转后点击后会同时出现多个问题

---
 src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue b/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
index e4191af..e73697e 100644
--- a/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
+++ b/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
@@ -12,7 +12,7 @@
 <script>
   import { getAction } from '@/api/manage'
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
-  import DocumentModal from './DocumentModal'
+  import DocumentModal from '../../../../common/DocumentModal'
 
   export default {
     name: 'OtherDocumentTableList',
@@ -48,10 +48,18 @@
           { title: '涓婁紶鏃堕棿', dataIndex: 'createTime', align: 'center' }
         ],
         dataSource: [],
-        currentDocumentInfo: {},
+        currentClickedDocumentInfo: {},
         url: {
           list: '/nc/doc/find/page'
         }
+      }
+    },
+    watch: {
+      currentTreeNodeInfo: {
+        handler(value) {
+          this.currentClickedDocumentInfo = {}
+        },
+        immediate: true
       }
     },
     created() {
@@ -97,8 +105,8 @@
               this.$emit('handleTableContextMenuOpen', { ...record, param: 'OTHER' })
             },
             click: () => {
-              if (this.currentDocumentInfo.docId === record.docId) return
-              this.currentDocumentInfo = Object.assign({}, record)
+              if (this.currentClickedDocumentInfo.docId === record.docId) return
+              this.currentClickedDocumentInfo = Object.assign({}, record)
               this.$bus.$emit('sendCurrentClickedDocumentInfo', record)
             }
           }
@@ -110,8 +118,12 @@
         this.$refs.modalForm.title = modalTitle
       },
 
+      handleDelete() {
+        // 姝ゅ鍑芥暟涓哄睆钄絤ixins涓殑鍚屽悕鍑芥暟锛岄�氱敤鍑芥暟鍐欏湪鐖剁骇涓�
+      },
+
       triggerCorrespondingMethod({ methodName, level, modalTitle, tableRowInfo }) {
-        if (this[methodName] && tableRowInfo.attributionType === 1) this[methodName](tableRowInfo, modalTitle)
+        if (this[methodName] && tableRowInfo.param === 'OTHER') this[methodName](tableRowInfo, modalTitle)
       }
     }
   }

--
Gitblit v1.9.3