From 42395f9f2bd77d6db78a9466db2733f4bcf3e811 Mon Sep 17 00:00:00 2001
From: lzhe <181968431@qq.com>
Date: 星期二, 08 七月 2025 23:35:19 +0800
Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/mdmweb

---
 src/views/basesetting/machine.vue |   27 ++++++++++++++++++++++++---
 1 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/src/views/basesetting/machine.vue b/src/views/basesetting/machine.vue
index 21e1c63..72c6dcd 100644
--- a/src/views/basesetting/machine.vue
+++ b/src/views/basesetting/machine.vue
@@ -23,7 +23,7 @@
       <template #menu="scope">
         <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleEdit(scope.row, scope.index)">缂栬緫</el-button>
         <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleDel(scope.row, scope.index)">鍒犻櫎</el-button>
-        <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleView(scope.row, scope.index)">浜х敓鏈哄簥鍥炰紶鏈烘瀯鏍�</el-button>
+        <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleUp(scope.row, scope.index)">浜х敓鏈哄簥鍥炰紶鏈烘瀯鏍�</el-button>
       </template>
 
       <template #status="{ row }">
@@ -258,7 +258,7 @@
           this.editBox = true;
         },
         error => {
-            
+          this.loading = false;
         }
       );
     },
@@ -279,7 +279,28 @@
           done();
         },
         error => {
-            
+          this.loading = false;
+        }
+      );
+    },
+    handleUp(row,index) {
+      this.loading = true;
+      axios({
+        url: '/blade-mdm/machine/gen-fileback-dirs',
+        method: 'post',
+        params: {id: row.id},
+      }).then(
+        res => {
+          this.loading = false;
+          this.$message({
+            type: 'success',
+            message: '鎿嶄綔鎴愬姛!',
+          });
+          this.onLoad();
+          done();
+        },
+        error => {
+          this.loading = false;
         }
       );
     },

--
Gitblit v1.9.3