From a3236b51b5691b8c47f4ebaf1d885314a4bab3bd Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期二, 13 八月 2024 11:17:18 +0800
Subject: [PATCH] 拼箱功能开发

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

diff --git a/HTML/views/BaseSetting/Unit.html b/HTML/views/BaseSetting/Unit.html
index 1328e03..ca66c91 100644
--- a/HTML/views/BaseSetting/Unit.html
+++ b/HTML/views/BaseSetting/Unit.html
@@ -109,7 +109,7 @@
 				url: url,
 				method: 'post',
 				where: where,
-				parseData: FnParseData,
+				
 				contentType: 'application/json',
 				headers:{ToKen:$.cookie('token')},
 				page: true,
@@ -126,7 +126,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 == "缂栬緫鍗曚綅") {
@@ -246,7 +246,7 @@
 							doing = false;
 							synData(IP + "/Basis/DelsUnit", 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绉掞級
@@ -304,7 +304,7 @@
 									sendData(IP + "/Basis/AddUnit", 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绉掞級
@@ -359,7 +359,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 () {
@@ -405,7 +405,7 @@
 							doing = false;
 							sendData(IP + "/Basis/DelUnit", 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绉掞級
@@ -463,7 +463,7 @@
 									sendData(IP + "/Basis/EditUnit", 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