From 346ae2e0793c9fce4a97d6d1df5dedcebdbd0d40 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期二, 11 二月 2025 17:59:52 +0800
Subject: [PATCH] mdc新增系统类型

---
 src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue b/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
index 5c71c42..d305e4e 100644
--- a/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
+++ b/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
@@ -1,7 +1,7 @@
 <template>
   <div>
     <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination"
-             :scroll="{y:189}" :customRow="customRow" :size="size" rowKey="docId">
+             :scroll="{y:189}" :customRow="customRow" :size="size" rowKey="docId" @change="handleTableChange">
 
     </a-table>
 
@@ -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,6 +48,7 @@
           { title: '涓婁紶鏃堕棿', dataIndex: 'createTime', align: 'center' }
         ],
         dataSource: [],
+        currentDocumentInfo: {},
         url: {
           list: '/nc/doc/find/page'
         }
@@ -96,7 +97,9 @@
               this.$emit('handleTableContextMenuOpen', { ...record, param: 'OTHER' })
             },
             click: () => {
-              this.$bus.$emit('sendCurrentLevelInfo', record)
+              if (this.currentDocumentInfo.docId === record.docId) return
+              this.currentDocumentInfo = Object.assign({}, record)
+              this.$bus.$emit('sendCurrentClickedDocumentInfo', record)
             }
           }
         }
@@ -107,8 +110,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