From dcdfc93b50febf61301832d91dfcddcfa1ca5403 Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期三, 14 五月 2025 14:06:36 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/taskWrk/taskWrk.html |   39 +++++++++++++++++++++++++++++++++++++--
 1 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/views/taskWrk/taskWrk.html b/src/main/webapp/views/taskWrk/taskWrk.html
index a0887f2..0dc3af6 100644
--- a/src/main/webapp/views/taskWrk/taskWrk.html
+++ b/src/main/webapp/views/taskWrk/taskWrk.html
@@ -55,9 +55,10 @@
                                 <!--										<el-dropdown-item command="showCommand">鏌ョ湅鎸囦护</el-dropdown-item>-->
                                 <el-dropdown-item command="returnWorkingCondition">閲嶆柊缁欏爢鍨涙満涓嬪彂浠诲姟</el-dropdown-item>
                                 <el-dropdown-item command="changeCommand">淇敼</el-dropdown-item>
-                                <el-dropdown-item command="assign">娲惧彂</el-dropdown-item>
+                                <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) {
@@ -257,7 +262,7 @@
                 //娲惧彂浠诲姟
                 let that = this
                 $.ajax({
-                    url: baseUrl + "/taskWrk/distribute/auth",
+                    url: baseUrl + "/taskWrk/assign/auth",
                     headers: {
                         'token': localStorage.getItem('token')
                     },
@@ -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