From 0464969366317154fdbb51e106ca778b855bdd08 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期六, 17 八月 2024 15:45:28 +0800
Subject: [PATCH] Merge branch 'master' into wxw

---
 HTML/views/SystemSettings/Job.html |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/HTML/views/SystemSettings/Job.html b/HTML/views/SystemSettings/Job.html
index 6f8230b..d26a50f 100644
--- a/HTML/views/SystemSettings/Job.html
+++ b/HTML/views/SystemSettings/Job.html
@@ -86,7 +86,7 @@
 				sendData(IP + url, {}, 'get', function (res) {
 
 					// console.log(res.data)
-					if (res.code == 200) //鎴愬姛
+					if (res.code == 0) //鎴愬姛
 					{
 						var list = res.data;
 						$.extend(infoOptions, {
@@ -189,7 +189,7 @@
 					case "execute":
 						sendData(IP + "/Job/TriggerJob", { Name: data.Name, Group: data.GroupName }, 'post', function (res) {
 							console.log(res);
-							if (res.code == 200) { //鎴愬姛
+							if (res.code == 0) { //鎴愬姛
 								layer.msg(res.msg, {
 									icon: 1,
 									time: 3000 //1绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -226,7 +226,7 @@
 							layer.confirm('纭畾鍒犻櫎閫変腑鐨勬ā鏉匡紵', function (index) {
 								sendData(IP + "/Job/RemoveJob", { Name: data.Name, Group: data.GroupName }, 'post', function (res) {
 									console.log(res);
-									if (res.code == 200) { //鎴愬姛
+									if (res.code == 0) { //鎴愬姛
 										layer.msg(res.msg, {
 											icon: 1,
 											time: 3000 //1绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -252,7 +252,7 @@
 					case "detail":
 						sendData(IP + "/Job/GetJobLogs", { Name: data.Name, Group: data.GroupName }, 'post', function (res) {
 							console.log(res);
-							if (res.code == 200) { //鎴愬姛
+							if (res.code == 0) { //鎴愬姛
 								if (res.data) {
 									layer.open({
 										type: 1,
@@ -282,7 +282,7 @@
 					case "Play":
 						sendData(IP + "/Job/ResumeJob", { Name: data.Name, Group: data.GroupName }, 'post', function (res) {
 							console.log(res);
-							if (res.code == 200) { //鎴愬姛
+							if (res.code == 0) { //鎴愬姛
 								layer.msg(res.msg, {
 									icon: 1,
 									time: 3000 //1绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -305,7 +305,7 @@
 					case "Pause":
 						sendData(IP + "/Job/StopJob", { Name: data.Name, Group: data.GroupName }, 'post', function (res) {
 							console.log(res);
-							if (res.code == 200) { //鎴愬姛
+							if (res.code == 0) { //鎴愬姛
 								layer.msg(res.msg, {
 									icon: 1,
 									time: 3000 //1绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -329,7 +329,7 @@
 			});
 			//娣诲姞 
 			form.on('submit(LAY-app-contlist-add)', function (obj) {
-				objRowsData = {};
+				objRowsData = null;
 				layer.open({
 					type: 2,
 					title: '娣诲姞瀹氭椂浠诲姟淇℃伅',

--
Gitblit v1.8.0