From 8b71bde8d68d5d2bb11fa51a297990cd1474e9c6 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期三, 29 十一月 2023 14:58:09 +0800
Subject: [PATCH] #指令更新

---
 src/main/webapp/views/taskWrk/commandManage.html |   44 +++++++++++++++++++++++---------------------
 1 files changed, 23 insertions(+), 21 deletions(-)

diff --git a/src/main/webapp/views/taskWrk/commandManage.html b/src/main/webapp/views/taskWrk/commandManage.html
index e5cab77..ffa4f45 100644
--- a/src/main/webapp/views/taskWrk/commandManage.html
+++ b/src/main/webapp/views/taskWrk/commandManage.html
@@ -155,28 +155,30 @@
 							}
 						});
 
-						$.ajax({
-							url: baseUrl + "/taskWrk/" + this.tableSearchParam.wrk_no + "/auth",
-							headers: {
-								'token': localStorage.getItem('token')
-							},
-							data: data,
-							dataType: 'json',
-							contentType: 'application/json;charset=UTF-8',
-							method: 'GET',
-							success: function(res) {
-								if (res.code == 200) {
-									that.commandStep = parseInt(res.data.commandStep)
-								} else if (res.code === 403) {
-									top.location.href = baseUrl + "/";
-								} else {
-									that.$message({
-										message: res.msg,
-										type: 'error'
-									});
+						if (this.tableSearchParam.wrk_no != null) {
+							$.ajax({
+								url: baseUrl + "/taskWrk/" + this.tableSearchParam.wrk_no + "/auth",
+								headers: {
+									'token': localStorage.getItem('token')
+								},
+								data: data,
+								dataType: 'json',
+								contentType: 'application/json;charset=UTF-8',
+								method: 'GET',
+								success: function(res) {
+									if (res.code == 200) {
+										that.commandStep = parseInt(res.data.commandStep)
+									} else if (res.code === 403) {
+										top.location.href = baseUrl + "/";
+									} else {
+										that.$message({
+											message: res.msg,
+											type: 'error'
+										});
+									}
 								}
-							}
-						});
+							});
+						}
 					},
 					handleSizeChange(val) {
 						console.log(`姣忛〉 ${val} 鏉);

--
Gitblit v1.9.1