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/Department.html |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/HTML/views/BaseSetting/Department.html b/HTML/views/BaseSetting/Department.html
index 8b257af..4c506bc 100644
--- a/HTML/views/BaseSetting/Department.html
+++ b/HTML/views/BaseSetting/Department.html
@@ -95,7 +95,7 @@
 
 					sendData(IP + "/Basis/GetDepartmentList?DepartmentName=" + DepartmentName + "&&DepartmentNo=" + DepartmentNo, {}, "get", function (res) {
 						console.log(res.data);
-						if (res.code == 200)
+						if (res.code == 0)
 						{
 							//鎴愬姛
 							var list = res.data;
@@ -133,7 +133,7 @@
 					$(function() {
 						$(".approvalBtnupt").hide();
 					});
-					if (res.code == 200) //鎴愬姛
+					if (res.code == 0) //鎴愬姛
 					{
 						for (var k = 0; k < res.data.length; k++)
 						{
@@ -253,7 +253,7 @@
 										Demo: field.Demo,
 										};
 										sendData( IP + "/Basis/AddDepartment", param, "post", function (res) {
-											if (res.code == 200) //鎴愬姛
+											if (res.code == 0) //鎴愬姛
 											{
 												layer.msg(
 													res.msg,
@@ -343,7 +343,7 @@
 							msg: cusid,
 							};
 							sendData( IP + "/Basis/DelDepartment?Id="+cusid+"",{},"get",function (res) {
-								if (res.code == 200) //鎴愬姛
+								if (res.code == 0) //鎴愬姛
 								{
 									layer.msg(
 										res.msg,
@@ -410,7 +410,7 @@
 									Demo: field.Demo,
 								};
 								sendData( IP + "/Basis/ExitDepartment", param, "post", function (res) {
-									if (res.code == 200) //鎴愬姛
+									if (res.code == 0) //鎴愬姛
 									{
 										layer.msg("淇敼鎴愬姛",
 										{

--
Gitblit v1.8.0