From b1fe5e3f3eed2e4cf20a1ca2871db3f3f6576f2d Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期五, 09 五月 2025 15:47:05 +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