From 98efdcd4466525787cd76d1d834c0f540c2c2f6a Mon Sep 17 00:00:00 2001
From: YL <YL@LAPTOP-SE03PLUR>
Date: 星期二, 09 十一月 2021 22:04:20 +0800
Subject: [PATCH] 用户关联权限,权限列表树型、及点击树型带出权限交互列表
---
WebTM/views/PublicPage/PowerInformation.html | 55 ++++++++++++++++++++++++++++++++++++++++++++++---------
1 files changed, 46 insertions(+), 9 deletions(-)
diff --git a/WebTM/views/PublicPage/PowerInformation.html b/WebTM/views/PublicPage/PowerInformation.html
index e9ca843..cb931f3 100644
--- a/WebTM/views/PublicPage/PowerInformation.html
+++ b/WebTM/views/PublicPage/PowerInformation.html
@@ -30,12 +30,21 @@
<div class="layui-card" style="padding: 1px">
<div class="layui-card-body" style="padding: 1px;">
<form class="layui-form" action="" lay-filter="component-form-group">
+ <div class="layui-card-header">
+ <div class="layui-btn-group">
+
+ <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">淇濆瓨</button>
+ <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">閫�鍑�</button>
+
+ </div>
+
+ </div>
<div class="layui-collapse">
<div class="layui-colla-item">
<div class="layui-form-item" style="border-top: solid 1px #F6F6F6;">
<div class="layui-row" style="padding:10px 0">
<div class="layui-col-xs3 layui-inline">
- <div id="treeUser" lay-filter="treeUser" class="demo-tree demo-tree-box" style="overflow: scroll;"></div>
+ <div id="treeUser" lay-filter="treeUser" class="demo-tree demo-tree-box" style="height:650px;overflow: scroll;"></div>
</div>
<div class="layui-col-xs9 layui-inline">
<div>
@@ -104,7 +113,6 @@
onlyIconControl: true, //鐐瑰嚮鍚庝笉鏀剁缉
isopen: true, //鍔犺浇瀹屾瘯鍚庣殑灞曞紑鐘舵�侊紝榛樿鍊硷細true
accordion: true,
- height:"full-50",
click: function (obj) {
//鐐瑰嚮楂樺厜
if (obj.data.id !== treeCkData.id) {
@@ -114,12 +122,12 @@
TagId = obj.data.id;
TagParentId = obj.data.ParentID;
}
- else {
- $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
- treeCkData = { id: 0 };
- TagId = "";
- TagParentId = "";
- }
+ //else {
+ // $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
+ // treeCkData = { id: 0 };
+ // TagId = "";
+ // TagParentId = "";
+ //}
$.ajax({
@@ -149,7 +157,8 @@
var option = {
elem: '#mainTable'
//, toolbar: '#toolbarDemo'
- , height: 'full-50'
+ , height: '650'
+ , limit: Number.MAX_VALUE // 鏁版嵁琛ㄦ牸榛樿鍏ㄩ儴鏄剧ず
, page: false
, cellMinWidth: 90
, cols: [[
@@ -190,6 +199,34 @@
}
});
+ //閫�鍑�
+ form.on('submit(Exit)', function (data) {
+ if (OperationType == 1) {
+ Pub_Close(closeType);//鐩存帴鏂板closeType鍊间负2锛屽垪琛ㄨ皟鏂板closeType鍊间粠鍒楄〃浼犻��
+ }
+ else if (OperationType == 3) {
+ Pub_Close(closeType);
+ }
+ else {
+ Pub_Close(2);
+ }
+ });
+
+ //淇濆瓨
+ form.on('submit(Saver)', function (data) {
+ data.field.HMaker = sessionStorage["HUserName"];//鍒跺崟浜�
+ var sMainStr = JSON.stringify(data.field);
+ var sSubStr = JSON.stringify(table.cache['mainTable']);
+ var sMainSub = sMainStr + ';' + sSubStr + ';' + sessionStorage["HUserName"];
+
+ if (!AllowLoadData(sSubStr))//鏁版嵁楠岃瘉
+ {
+ return false;
+ }
+
+ });
+
+
//浠ヤ笂鏄痩ayui妯″潡
});
--
Gitblit v1.9.1