From 2be1922b035c182c3c516427aa68be54badd6938 Mon Sep 17 00:00:00 2001
From: IPC-610 <IPC-610@DESKTOP-6LEOOS3>
Date: 星期四, 26 九月 2024 15:15:52 +0800
Subject: [PATCH] 登录页修改

---
 HTML/views/SystemSettings/Role.html |  134 +++++++++++++++++++++++---------------------
 1 files changed, 70 insertions(+), 64 deletions(-)

diff --git a/HTML/views/SystemSettings/Role.html b/HTML/views/SystemSettings/Role.html
index 93cf698..8b75378 100644
--- a/HTML/views/SystemSettings/Role.html
+++ b/HTML/views/SystemSettings/Role.html
@@ -17,10 +17,10 @@
 			});
 		  </script>
 	</head>
-	<body>
+	<body id="body">
 		<div class="layui-fluid" style="padding-bottom: 0">
 			<div class="layui-card">
-				<div class="layui-form layui-card-header layuiadmin-card-header-auto" style="border-bottom:1px solid #CCC">
+				<div class="layui-form layui-card-header layuiadmin-card-header-auto" style="border-bottom:1px solid #CCC" id="top">
 					<div class="layui-form-item">
 						<div class="layui-inline">
 							<label class="layui-form-label" style="width: 56px">瑙掕壊缂栧彿</label>
@@ -46,6 +46,8 @@
 						</div>
 					</div>
 				</div>
+
+				<div id="center"></div>
 
 				<div class="layui-card-body">
 					<!-- <div style="padding-bottom: 5px;display: flex;flex-direction: row-reverse;">
@@ -85,7 +87,7 @@
 					form = layui.form,
 					laypage = layui.laypage,
 					layer = layui.layer;
-
+				var h1 = GetTableHeight();
 				refreshTable("", "");
 				var tableIns;
 
@@ -106,6 +108,65 @@
 								curr: 1,
 							};
 							tableIns = table.render(infoOptions);
+							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 () {
+										//鍥炶皟
+										}
+									);
+								}
+							});
 						}
 						else
 						{
@@ -120,70 +181,15 @@
 							);
 						}
 					});
-				}
-				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 () {
-							//鍥炶皟
-							}
-						);
-					}
-				});
+					
+					
 
+
+				}
+				
 				var infoOptions = {
 					elem: "#LAY-app-content-list",
-					height: "full-95",
+					height: h1,
 					id: "LAY-app-content-list",
 					page: true,
 					limit: pageCnt,

--
Gitblit v1.8.0