From 6d5c3dee0d97798f70bf965e48c3a782b3df9e7d Mon Sep 17 00:00:00 2001 From: bklLiudl <673013083@qq.com> Date: 星期三, 10 七月 2024 10:48:25 +0800 Subject: [PATCH] Merge branch 'hwh' into Liudl --- HTML/views/BaseSetting/Unit.html | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/HTML/views/BaseSetting/Unit.html b/HTML/views/BaseSetting/Unit.html index 20596e0..1328e03 100644 --- a/HTML/views/BaseSetting/Unit.html +++ b/HTML/views/BaseSetting/Unit.html @@ -109,6 +109,7 @@ url: url, method: 'post', where: where, + parseData: FnParseData, contentType: 'application/json', headers:{ToKen:$.cookie('token')}, page: true, @@ -125,7 +126,7 @@ $(".delClass").hide(); }); sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function (res) { - if (res.code == 0) { //鎴愬姛 + if (res.code == 200) { //鎴愬姛 for (var k = 0; k < res.data.length; k++) { if (res.data[k].MenuName == "缂栬緫鍗曚綅") { @@ -245,7 +246,7 @@ doing = false; synData(IP + "/Basis/DelsUnit", param, 'post', function (res) { console.log(res); - if (res.code == 0) { //鎴愬姛 + if (res.code == 200) { //鎴愬姛 layer.msg(res.msg, { icon: 1, time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 @@ -303,7 +304,7 @@ sendData(IP + "/Basis/AddUnit", param, 'post', function (res) { console.log(res); - if (res.code == 0) { //鎴愬姛 + if (res.code == 200) { //鎴愬姛 layer.msg(res.msg, { icon: 1, time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 @@ -358,7 +359,7 @@ $(".delClass").hide(); }); sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function (res) { - if (res.code == 0) { //鎴愬姛 + if (res.code == 200) { //鎴愬姛 for (var k = 0; k < res.data.length; k++) { if (res.data[k].MenuName == "娣诲姞鍗曚綅") { $(function () { @@ -404,7 +405,7 @@ doing = false; sendData(IP + "/Basis/DelUnit", param, 'post', function (res) { console.log(res); - if (res.code == 0) { //鎴愬姛 + if (res.code == 200) { //鎴愬姛 layer.msg(res.msg, { icon: 1, time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 @@ -462,7 +463,7 @@ sendData(IP + "/Basis/EditUnit", param, 'post', function (res) { console.log(res); - if (res.code == 0) { //鎴愬姛 + if (res.code == 200) { //鎴愬姛 layer.msg("淇敼鎴愬姛", { icon: 1, time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 -- Gitblit v1.8.0