From 3a3c50e8a4f1bca47daaadd03f4138a5d4a2227c Mon Sep 17 00:00:00 2001
From: chengsc <11752@DESKTOP-DS49RCP>
Date: 星期六, 12 四月 2025 16:13:48 +0800
Subject: [PATCH] 更改程序

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

diff --git a/HTML/views/SystemSettings/Role.html b/HTML/views/SystemSettings/Role.html
index ff3dd2b..2ea9c39 100644
--- a/HTML/views/SystemSettings/Role.html
+++ b/HTML/views/SystemSettings/Role.html
@@ -63,6 +63,9 @@
 						<a class="layui-btn layui-btn-xs roleClass" id="roleClass" style="background-color: rgb(67, 90, 20);" lay-event="roleright" >
 							<i class="layui-icon layui-icon-util"></i>鍒嗛厤鏉冮檺
 						</a>
+						<a class="layui-btn layui-btn-xs roleClass" id="roleClass" style="background-color: rgb(67, 90, 20);" lay-event="roleright2" >
+							<i class="layui-icon layui-icon-util"></i>浠撳簱鏉冮檺
+						</a>
 						<a class="layui-btn layui-btn-danger layui-btn-xs approvalBtndel" id="approvalBtndel" lay-event="del" >
 							<i class="layui-icon layui-icon-delete"></i>鍒犻櫎
 						</a>
@@ -225,7 +228,7 @@
 							}
 						},
 						{
-							title: "鎿嶄綔", fixed: "right", align: "center", toolbar: "#table-content-list", width: 240
+							title: "鎿嶄綔", fixed: "right", align: "center", toolbar: "#table-content-list", width: 340
 						},
 					]]
 				};
@@ -401,6 +404,71 @@
 							},
 						});
 					}
+					else if (obj.event === "roleright2")
+					{
+						id = data.Id;
+						layer.open({
+							type: 2,
+							title: "鍒嗛厤浠撳簱鏉冮檺",
+							content: "RoleWareHouse.html?id=" + id,
+							maxmin: true,
+							area: ["720px", "90%"],
+							// btn: ['纭畾', '鍙栨秷'],
+							yes: function (index, layero) {
+								var iframeWindow = window["layui-layer-iframe" + index],
+									submitID = "layuiadmin-app-form-edit",
+									submit = layero
+									.find("iframe")
+									.contents()
+									.find("#" + submitID);
+								//鐩戝惉鎻愪氦
+								iframeWindow.layui.form.on("submit(" + submitID + ")", function (data) {
+									var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈�
+									//鎻愪氦 Ajax 鎴愬姛鍚庯紝闈欐�佹洿鏂拌〃鏍间腑鐨勬暟鎹�
+									console.log(field);
+									var param = {
+										Id: id, //Id
+										RoleNo: field.SortCode, //瑙掕壊鍙�
+										RoleName: field.Name, //瑙掕壊鍚嶇О
+										Demo: field.Demo, //澶囨敞
+									};
+									sendData( IP + "/basis/UpdateRolesInfo", param, "post", function (res) {
+										if (res.code == 0)
+										{
+											//鎴愬姛
+											layer.msg(
+											"淇敼鎴愬姛",
+											{
+												icon: 1,
+												time: 1000, //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+											},
+											function () {
+												refreshTable($("#RoleName").val(), $("#RoleNo").val());
+												layer.close(index); //鍏抽棴寮瑰眰
+												doing = true;
+											}
+											);
+										}
+										else
+										{
+											//涓嶆垚鍔�
+											layer.msg(
+											res.msg,
+											{
+												icon: 2,
+												time: 2000, //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+											},
+											function () {
+												doing = true;
+											}
+											);
+										}
+									});
+								});
+								submit.trigger("click");
+							},
+						});
+					}
 					//鍒犻櫎
 					else if (obj.event === "del") {
 						layer.confirm("纭畾鍒犻櫎閫変腑鐨勮鑹诧紵", function (index) {

--
Gitblit v1.8.0