From 2e2b0700a25ce13c7a3eb113c577375da87bc0f3 Mon Sep 17 00:00:00 2001
From: 陈婷婷 <506607603@qq.com>
Date: 星期二, 24 三月 2026 17:44:18 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI

---
 src/views/scMould/basicModeling/Gy_MouldFileList.vue |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/views/scMould/basicModeling/Gy_MouldFileList.vue b/src/views/scMould/basicModeling/Gy_MouldFileList.vue
index 9833f91..a4cad85 100644
--- a/src/views/scMould/basicModeling/Gy_MouldFileList.vue
+++ b/src/views/scMould/basicModeling/Gy_MouldFileList.vue
@@ -237,6 +237,7 @@
   components: { RowSettings, Edit, BtnSettings },
   props: {
     openPage: { type: String, },
+    multiple: { type: Boolean, default: false },
   },
   data() {
     return {
@@ -760,17 +761,19 @@
       }
     },
     // 澶氶�夋閫変腑鏁版嵁
-    handleSelectionChange(selection) {
-      // this.rowForm = {}
+      handleSelectionChange(selection) {
       if (this.openPage) {
-        //鍒楄〃鍗曢��
-        if (selection.length > 1) {
+        if (!this.multiple && selection.length > 1) {
           const del_row = selection.shift()
-          this.$refs.tableData.toggleRowSelection(del_row, false) //璁剧疆杩欎竴琛屽彇娑堥�変腑
+          this.$refs.tableData.toggleRowSelection(del_row, false)
         }
-        this.rowForm = {}
-        this.ids = selection.map(item => item.hmainid)
-        this.rowForm = selection[0]
+        if (this.multiple) {
+          this.ids = selection.map(item => item.hmainid)
+          this.rowForm = selection
+        } else {
+          this.ids = selection.map(item => item.hmainid)
+          this.rowForm = selection[0]
+        }
       } else {
         this.ids = selection.map(item => item.hmainid)
         this.single = selection.length != 1

--
Gitblit v1.9.1