From a3c70ef5ed3c18209b37ba01a8ab3eb0eea0d7cb Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 12 十二月 2023 16:49:52 +0800
Subject: [PATCH] #
---
src/main/webapp/views/taskWrkLog/commandManageLog.html | 46 ++++++++++++++++++++++++----------------------
1 files changed, 24 insertions(+), 22 deletions(-)
diff --git a/src/main/webapp/views/taskWrkLog/commandManageLog.html b/src/main/webapp/views/taskWrkLog/commandManageLog.html
index d5cfe9a..7c98688 100644
--- a/src/main/webapp/views/taskWrkLog/commandManageLog.html
+++ b/src/main/webapp/views/taskWrkLog/commandManageLog.html
@@ -118,7 +118,7 @@
data.curr = this.currentPage
data.limit = this.pageSize
$.ajax({
- url: baseUrl + "/commandInfo/list/auth",
+ url: baseUrl + "/commandInfoLog/list/auth",
headers: {
'token': localStorage.getItem('token')
},
@@ -141,28 +141,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