From 61e646f821996cb702117a9747f55b9eaadb97bc Mon Sep 17 00:00:00 2001
From: hwh <332078369@qq.com>
Date: 星期四, 11 七月 2024 08:50:06 +0800
Subject: [PATCH] 返回结果调整

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

diff --git a/HTML/views/BaseSetting/Packag.html b/HTML/views/BaseSetting/Packag.html
index 84549ce..3b39ef5 100644
--- a/HTML/views/BaseSetting/Packag.html
+++ b/HTML/views/BaseSetting/Packag.html
@@ -138,7 +138,7 @@
 				url: url,
 				method: 'post',
 				where: where,
-				parseData: FnParseData,
+				
 				contentType: 'application/json',
 				headers:{ToKen:$.cookie('token')},
 				page: true,
@@ -150,7 +150,7 @@
 						$(".delClass").hide();
 					});
 					sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function(res) {
-						if (res.code == 200) { //鎴愬姛 
+						if (res.code == 0) { //鎴愬姛 
 							for (var k = 0; k < res.data.length; k++) {
 								if (res.data[k].MenuName == "缂栬緫鍖呰") {
 									$(function() {
@@ -283,7 +283,7 @@
 				$(".delClass").hide();
 			});
 			sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function(res) {
-				if (res.code == 200) { //鎴愬姛 
+				if (res.code == 0) { //鎴愬姛 
 					for (var k = 0; k < res.data.length; k++) {
 						if (res.data[k].MenuName == "娣诲姞鍖呰")
 						{
@@ -335,7 +335,7 @@
 							doing = false;
 							sendData(IP + "/Basis/GetPackagList", param, 'post', function (res) {
 								console.log(res);
-								if (res.code == 200) { //鎴愬姛
+								if (res.code == 0) { //鎴愬姛
 									layer.msg(res.msg, {
 										icon: 1,
 										time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -414,7 +414,7 @@
 
 									sendData(IP + "/Basis/AddPackag", param, 'post',
 										function (res) {
-											if (res.code == 200) { //鎴愬姛
+											if (res.code == 0) { //鎴愬姛
 												layer.msg(res.msg, {
 													icon: 1,
 													time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -471,7 +471,7 @@
 						if (doing) {
 							doing = false;
 							sendData(IP + "/Basis/DelPackag", param, 'post', function (res) {
-								if (res.code == 200) { //鎴愬姛
+								if (res.code == 0) { //鎴愬姛
 									layer.msg(res.msg, {
 										icon: 1,
 										time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -543,7 +543,7 @@
 									sendData(IP + "/Basis/EditPackag", param, 'post',
 										function (res) {
 											console.log(res);
-											if (res.code == 200) { //鎴愬姛
+											if (res.code == 0) { //鎴愬姛
 												layer.msg("淇敼鎴愬姛", {
 													icon: 1,
 													time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級

--
Gitblit v1.8.0