From 11a6dde1ea7e0dae751ef1d383dcf8a14a334a52 Mon Sep 17 00:00:00 2001 From: yyk <2336760928@qq.com> Date: 星期五, 23 八月 2024 09:21:24 +0800 Subject: [PATCH] Merge branch 'master' of http://47.95.120.53:8083/r/JC26WMS --- HTML/views/SystemSettings/Role.html | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 53 insertions(+), 1 deletions(-) diff --git a/HTML/views/SystemSettings/Role.html b/HTML/views/SystemSettings/Role.html index ff3dd2b..b3826ec 100644 --- a/HTML/views/SystemSettings/Role.html +++ b/HTML/views/SystemSettings/Role.html @@ -96,7 +96,7 @@ RoleNo: RoleNo, RoleName: RoleName, }; - sendData(IP + "/Basis/GetRolesList?RoleNo=" + RoleNo + "&&RoleName=" + RoleName, {}, "get", function (res) { + sendData(IP + "/Basis/GetRolesList?RoleNo=" + RoleNo + "&RoleName=" + RoleName, {}, "get", function (res) { if (res.code == 0) { //鎴愬姛 @@ -122,6 +122,58 @@ ); } }); + sendData(IP + "/basis/GetRoleRightList", {}, "get", function (res) { + $(function () { + $("#approvalBtn").hide(); + }); + $(function () { + $(".editClass").hide(); + }); + $(function () { + $(".roleClass").hide(); + }); + $(function () { + $(".approvalBtndel").hide(); + }); + if (res.code == 0) { + //鎴愬姛 + for (var k = 0; k < res.data.length; k++) { + if (res.data[k].MenuName == "缂栬緫瑙掕壊") { + $(function () { + $(".editClass").show(); + }); + } + if (res.data[k].MenuName == "鍒嗛厤鏉冮檺") { + $(function () { + $(".roleClass").show(); + }); + } + if (res.data[k].MenuName == "娣诲姞瑙掕壊") { + $(function () { + $("#approvalBtn").show(); + }); + } + if (res.data[k].MenuName == "鍒犻櫎瑙掕壊") { + $(function () { + $(".approvalBtndel").show(); + }); + } + } + } + else { + //涓嶆垚鍔� + layer.msg( + "鑾峰彇淇℃伅澶辫触", + { + icon: 2, + time: 2000, //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }, + function () { + //鍥炶皟 + } + ); + } + }); } sendData(IP + "/basis/GetRoleRightList", {}, "get", function (res) { $(function() { -- Gitblit v1.8.0