From 5c40d83463c3db4455985f0302b10b79c63af23a Mon Sep 17 00:00:00 2001 From: bklLiudl <673013083@qq.com> Date: 星期四, 22 八月 2024 09:14:22 +0800 Subject: [PATCH] Merge branch 'master' into Liudl --- HTML/views/SystemSettings/Role.html | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/HTML/views/SystemSettings/Role.html b/HTML/views/SystemSettings/Role.html index 7c65efe..b3826ec 100644 --- a/HTML/views/SystemSettings/Role.html +++ b/HTML/views/SystemSettings/Role.html @@ -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