From e136eb3e3f7278fbb80610db5f8d0fc9c78523e5 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 12 十二月 2023 16:08:24 +0800
Subject: [PATCH] 	modified:   src/views/plan/manufacturingorder/index.vue

---
 src/views/common/ztt-table.vue |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/views/common/ztt-table.vue b/src/views/common/ztt-table.vue
index 4776dca..41c2e5b 100644
--- a/src/views/common/ztt-table.vue
+++ b/src/views/common/ztt-table.vue
@@ -149,11 +149,7 @@
         v-bind="$attrs"
         v-on="$listeners"
         :highlight-current-row="true"
-        :row-key="
-          (row) => {
-            return row.id
-          }
-        "
+        :row-key="rowKey"
         @row-dblclick="dbClickRow"
         @row-contextmenu="contextMenu"
         @header-click="headClick"
@@ -563,6 +559,12 @@
   name: 'TTable',
   components: { exSlot, advancedSearchDialog, zttdraggable },
   props: {
+    rowKey: {
+      type: String,
+      default: ()=>{
+        return 'id'
+      }
+    },
     // 琛ㄦ牸鍨嬪彿锛歮ini,medium,small
     tableSize: { type: String, default: 'small' },
     // 鏁版嵁璇锋眰鏂规硶
@@ -1399,7 +1401,6 @@
             }
           }
         }
-        console.log(this.multipleSelection)
         this.$emit('handleSelectionChange', this.multipleSelection)
       } else {
         this.multipleSelection = val
@@ -1534,7 +1535,6 @@
           }
         }
       }
-      console.log(this.columnList);
       this.tableKey = Math.random()
       // this.$forceUpdate();
       const currPathColumnOrder = this.currPath + '_column'
@@ -1576,10 +1576,18 @@
       if (response.code != '0') {
         this.$message.warning(response.msg)
       } else {
+      if(response.data!=""&&response.data!=[]){
+        this.$message({
+          message: response.data,
+          type: 'success'
+        })
+      }else{
         this.$message({
           message: '涓婁紶鎴愬姛',
           type: 'success'
         })
+      }
+        this.importDialogVisible=false
         this.getDataList()
       }
       this.$refs.uploadScan.clearFiles()

--
Gitblit v1.9.3