From b1ccdb760b9c16200831a2617caf9318b1be86b3 Mon Sep 17 00:00:00 2001
From: hwh <332078369@qq.com>
Date: 星期四, 27 六月 2024 08:11:09 +0800
Subject: [PATCH] 重构用户管理

---
 HTML/views/SystemSettings/UserManage.html |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/HTML/views/SystemSettings/UserManage.html b/HTML/views/SystemSettings/UserManage.html
index 823c4d4..92084fb 100644
--- a/HTML/views/SystemSettings/UserManage.html
+++ b/HTML/views/SystemSettings/UserManage.html
@@ -145,7 +145,7 @@
 						
 						console.log(res.data)
 
-						if (res.code == 0) //鎴愬姛
+						if (res.code == 200) //鎴愬姛
 						{
 							var list = res.data;
 							$.extend(infoOptions, {
@@ -395,7 +395,7 @@
 													doing = false;
 													sendData(IP + "/basis/InsertUserinfo", param, 'post',function(res) {
 														console.log(res);
-														if (res.code == 0) //鎴愬姛
+														if (res.code == 200) //鎴愬姛
 														{
 															layer.msg(res.msg, {
 																icon: 1,
@@ -459,7 +459,7 @@
 								doing = false;
 								sendData(IP + "/Basis/DeleteUserInfo?Userids="+data.Id+"", {} , 'get', function(res) {
 									console.log(res);
-									if (res.code == 0) { //鎴愬姛
+									if (res.code == 200) { //鎴愬姛
 										layer.msg(res.msg, {
 											icon: 1,
 											time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -550,7 +550,7 @@
 												doing = false;
 												sendData(IP + "/basis/UpdateUserinfo", param, 'post',
 												function(res) {
-													if (res.code == 0) { //鎴愬姛
+													if (res.code == 200) { //鎴愬姛
 														layer.msg("淇敼鎴愬姛", {
 															icon: 1,
 															time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -563,6 +563,7 @@
 													}
 													else //涓嶆垚鍔�
 													{
+														debugger;
 														layer.msg(res.msg, {
 															icon: 2,
 															time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級

--
Gitblit v1.8.0