This commit is contained in:
liuye
2023-01-11 11:00:34 +08:00
3 changed files with 19 additions and 6 deletions

View File

@@ -31,6 +31,7 @@
<el-table-column slot="options" label="操作" fixed="right" align="center" width="300">
<template slot-scope="{row}">
<el-button type="text" @click="handleEdit(row)">编辑</el-button>
<el-button type="text" @click="handleDelete(row.id)">删除</el-button>
<el-button type="text" @click="handleZip(row)" v-if="row.count==0">打包</el-button>
<el-button type="text" @click="handleCancelZip(row)" v-else>停止</el-button>
<el-button type="text" v-if="/^打包时间/.test(row.error)" @click="handleDownload(row)">下载</el-button>
@@ -214,7 +215,7 @@ export default {
},
handleDelete(ids) {
this.$confirm("是否要删除该项目/系统?").then(() => {
this.instance.post("/node/autodeploy/delete", null, {
this.instance.post("/node/wxmp/delete", null, {
params: {ids}
}).then(res => {
if (res?.code == 0) {