From cac1b71c14546ba084f83929ddd337127ba3e101 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com>
Date: Tue, 25 Feb 2025 09:41:30 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=88=9B=E5=BB=BA=E5=85=B3?=
=?UTF-8?q?=E9=97=AD=E5=8A=9F=E8=83=BD=E4=BB=A5=E5=8F=8A=E6=93=8D=E4=BD=9C?=
=?UTF-8?q?=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/auditPages/taskManagement.vue | 43 +++++++++++++++++++++++--
1 file changed, 41 insertions(+), 2 deletions(-)
diff --git a/src/views/auditPages/taskManagement.vue b/src/views/auditPages/taskManagement.vue
index 82573ca..13e2e2c 100644
--- a/src/views/auditPages/taskManagement.vue
+++ b/src/views/auditPages/taskManagement.vue
@@ -99,10 +99,21 @@
查看
- 审核
- 关闭
@@ -167,6 +178,34 @@ export default {
this.getList();
},
methods: {
+ // 关闭
+ handleClose(row) {
+ this.$confirm("此操作将关闭任务, 是否继续?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ assetTaskclose({ taskId: row.id, taskName: row.taskName }).then(
+ (res) => {
+ if (res.code == 200) {
+ this.$message({
+ type: "success",
+ message: "关闭成功!",
+ });
+ this.getList();
+ }
+ }
+ );
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消关闭",
+ });
+ });
+ },
+
// 修改table背景色
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 !== 0) {