From f14f0c01c3f82921ca4ef439abdd9f92596ac137 Mon Sep 17 00:00:00 2001 From: 李喆(开发组) <lzhe@yxqiche.com> Date: 星期一, 16 六月 2025 14:34:22 +0800 Subject: [PATCH] 1 --- 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