From e1fee3c5c1eb50f49d20dad4dc656dfdcb81d4b4 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期一, 29 九月 2025 17:18:33 +0800
Subject: [PATCH] 工控网界面优化

---
 src/views/dataex/mdmprogramimp.vue |   34 +++++++++-------------------------
 1 files changed, 9 insertions(+), 25 deletions(-)

diff --git a/src/views/dataex/mdmprogramimp.vue b/src/views/dataex/mdmprogramimp.vue
index 321c8fc..22dc25b 100644
--- a/src/views/dataex/mdmprogramimp.vue
+++ b/src/views/dataex/mdmprogramimp.vue
@@ -10,8 +10,9 @@
     >
       <template #menu-left>
         <div style="display: flex;">
-          <el-button type="primary" size="default" icon="el-icon-circle-plus" @click="importData">瀵煎叆</el-button>
-          <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleWarehouse" style="margin-left: 12px;">涓嬩紶</el-button>
+          <el-button type="primary" size="default" icon="el-icon-upload" @click="importData">瀵煎叆</el-button>
+          <el-button type="warning" size="default" icon="el-icon-delete" @click="clearList">娓呯┖</el-button>
+          <el-button type="primary" size="default" icon="el-icon-check" :disabled="selection.length==0" plain @click="handleWarehouse" style="margin-left: 12px;">涓嬩紶</el-button>
         </div>
       </template>
     </avue-crud>
@@ -54,7 +55,7 @@
           //   hide: true
           // },
           {
-            label: '鍥惧彿',
+            label: '闆剁粍浠跺彿',
             prop: 'drawingNo'
           },
 		  {
@@ -70,28 +71,8 @@
             prop: 'machineCode',
           },
           {
-             label: '鍥哄寲鐘舵��',
-             prop: 'programStatus'/*,
-			formatter: (val, value, label) => {
-				
-				return `${val?.variables?.machineCode}`;
-			}*/
-          },
-          // {
-          //   label: '澶勭悊鏂瑰紡',
-          //   prop: ''
-          // },
-          // {
-          //   label: '澶勭悊鏃堕棿',
-          //   prop: ''
-          // },
-          // {
-          //   label: '澶勭悊浜�',
-          //   prop: ''
-          // },
-          {
-            label: 'MD5鍊�',
-            prop: 'md5',
+             label: '绋嬪簭鐘舵��',
+             prop: 'programStatus'
           }
         ],
       },
@@ -132,6 +113,9 @@
       this.data = res || []
       done();
     },
+    clearList(){
+      this.data = [];
+    },
     handleWarehouse(row,index) {
       if(this.selection.length == 0) {
         this.$message.error("璇烽�夋嫨鏁版嵁")

--
Gitblit v1.9.3