From 0cf26d5f8c8c2c15645443e84566ffec72abfdf1 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期一, 28 四月 2025 14:35:41 +0800
Subject: [PATCH] *

---
 src/main/webapp/views/taskWrk/taskWrk.html |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/views/taskWrk/taskWrk.html b/src/main/webapp/views/taskWrk/taskWrk.html
index a0887f2..d867a23 100644
--- a/src/main/webapp/views/taskWrk/taskWrk.html
+++ b/src/main/webapp/views/taskWrk/taskWrk.html
@@ -58,6 +58,7 @@
                                 <el-dropdown-item command="assign">娲惧彂</el-dropdown-item>
                                 <el-dropdown-item command="complete">瀹岀粨</el-dropdown-item>
                                 <el-dropdown-item command="cancel">鍙栨秷</el-dropdown-item>
+                                <el-dropdown-item command="delete">鍒犻櫎鏃犻渶涓婃姤</el-dropdown-item>
                             </el-dropdown-menu>
                         </el-dropdown>
                     </template>
@@ -231,6 +232,10 @@
                         //鍙栨秷浠诲姟
                         this.cancelWrk(row)
                         break;
+                    case "delete":
+                        //鍙栨秷浠诲姟
+                        this.deleteWrk(row)
+                        break;
                 }
             },
             showCommand(row) {
@@ -343,6 +348,36 @@
                     }
                 });
             },
+            deleteWrk(row) {
+                //鍙栨秷浠诲姟
+                let that = this
+                $.ajax({
+                    url: baseUrl + "/taskWrk/delete/auth",
+                    headers: {
+                        'token': localStorage.getItem('token')
+                    },
+                    data: {
+                        taskNo: row.taskNo
+                    },
+                    method: 'POST',
+                    success: function (res) {
+                        if (res.code == 200) {
+                            that.$message({
+                                message: "鍒犻櫎鎴愬姛",
+                                type: 'success'
+                            });
+                            that.getTableData()
+                        } else if (res.code === 403) {
+                            top.location.href = baseUrl + "/";
+                        } else {
+                            that.$message({
+                                message: res.msg,
+                                type: 'error'
+                            });
+                        }
+                    }
+                });
+            },
             cancelWrk(row) {
                 //鍙栨秷浠诲姟
                 let that = this

--
Gitblit v1.9.1