From 7fc23d00b91d52c4c0b84fc4a4c2211607ca634d Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期五, 23 八月 2024 11:01:38 +0800
Subject: [PATCH] 修改系统问题
---
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