From dcfa44798f2c01efdda47f7cfa0a9b5290c7f18d Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期一, 25 十一月 2024 16:40:10 +0800
Subject: [PATCH] 新增历史档重新上报功能

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

diff --git a/src/main/webapp/views/taskWrkLog/taskWrkLog.html b/src/main/webapp/views/taskWrkLog/taskWrkLog.html
index 8a72146..e9c8892 100644
--- a/src/main/webapp/views/taskWrkLog/taskWrkLog.html
+++ b/src/main/webapp/views/taskWrkLog/taskWrkLog.html
@@ -43,6 +43,7 @@
 								<el-dropdown @command="(command)=>{handleCommand(command, scope.row)}">
 									<el-button icon="el-icon-more" size="mini" type="primary"></el-button>
 									<el-dropdown-menu slot="dropdown">
+										<el-dropdown-item command="resubmitTheTask">閲嶆柊涓婃姤浠诲姟瀹岀粨</el-dropdown-item>
 										<el-dropdown-item command="showCommand">鏌ョ湅鎸囦护</el-dropdown-item>
 									</el-dropdown-menu>
 								</el-dropdown>
@@ -165,6 +166,11 @@
 					},
 					handleCommand(command, row) {
 						switch (command) {
+
+							case "resubmitTheTask":
+								//閲嶆柊涓婃姤浠诲姟瀹岀粨
+								this.resubmitTheTask(row)
+								break;
 							case "showCommand":
 								//鏌ョ湅鎸囦护
 								this.showCommand(row)
@@ -184,6 +190,36 @@
 							success: function(layero, index) {}
 						});
 					},
+					resubmitTheTask(row){
+						//閲嶆柊涓婃姤浠诲姟瀹岀粨
+						let that = this
+						$.ajax({
+							url: baseUrl + "/taskWrkLog/resubmitTheTask/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'
+									});
+								}
+							}
+						});
+					},
 				}
 			})
 		</script>

--
Gitblit v1.9.1