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 +++++++++++++++++++++++----
 WebTM/views/系统管理/公告/GG_NoticeBillList.html   |   59 ++++++++++++++++-------------
 2 files changed, 79 insertions(+), 35 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妯″潡
         });
 
diff --git "a/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\345\205\254\345\221\212/GG_NoticeBillList.html" "b/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\345\205\254\345\221\212/GG_NoticeBillList.html"
index b0b7adb..7f1546f 100644
--- "a/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\345\205\254\345\221\212/GG_NoticeBillList.html"
+++ "b/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\345\205\254\345\221\212/GG_NoticeBillList.html"
@@ -184,6 +184,7 @@
                     , { field: 'HReceiveMan', title: '鎺ユ敹浜�', width: 200}
                     , { field: 'HLevel', title: '绱ф�ョ▼搴�', width: 200 }
                     , { field: 'HDescription', title: '璇︾粏鍐呭', width: 200 }
+                    , { field: 'HReadFlag', title: '鐘舵��', width: 200 }
                     , { field: 'HMaker', title: '鍒跺崟浜�', width: 200 }
                     , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 200, templet: "<div>{{d.HMakeDate ==null ?'':layui.util.toDateString(d.HMakeDate, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                     , { field: 'HUpDater', title: '淇敼浜�', width: 200 }
@@ -285,34 +286,40 @@
                     , data = checkStatus.data;
                 if (checkStatus.data.length === 1) {
                     var InterID = data[0].hmainid.toString();
-                    //閫昏緫鍒犻櫎鏂规硶
-                    layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
-                        var wait = layer.load();
-                        $.ajax({
-                            type: "GET",
-                            url: GetWEBURL() + "Sc_MouldScrapInBill/set_DeleteBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
-                            data: { "HInterID": InterID, "user": sessionStorage["HUserName"] },
-                            success: function (result) {
-                                if (result.count == 1) {
-                                    layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
-                                        // 寰楀埌frame绱㈠紩
-                                        var index = layer.getFrameIndex(window.name);
-                                        //鍏抽棴褰撳墠frame
-                                        layer.close(index);
-                                        //淇敼涓哄姛鍚庡埛鏂扮晫闈�
-                                        window.location.reload();
-                                    });
+                    var HReadFlag = data[0].HReadFlag.toString();
+                    if (HReadFlag == "宸查槄") {
+                        //閫昏緫鍒犻櫎鏂规硶
+                        layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
+                            var wait = layer.load();
+                            $.ajax({
+                                type: "GET",
+                                url: GetWEBURL() + "Sc_MouldScrapInBill/set_DeleteBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                                data: { "HInterID": InterID, "user": sessionStorage["HUserName"] },
+                                success: function (result) {
+                                    if (result.count == 1) {
+                                        layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                            // 寰楀埌frame绱㈠紩
+                                            var index = layer.getFrameIndex(window.name);
+                                            //鍏抽棴褰撳墠frame
+                                            layer.close(index);
+                                            //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                            window.location.reload();
+                                        });
 
-                                } else {
-                                    layer.alert(result.code + result.Message, { icon: 5 });
+                                    } else {
+                                        layer.alert(result.code + result.Message, { icon: 5 });
+                                    }
+                                    layer.close(wait);
+                                }, error: function () {
+                                    layer.close(wait);
+                                    layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
                                 }
-                                layer.close(wait);
-                            }, error: function () {
-                                layer.close(wait);
-                                layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
-                            }
-                        });
-                    })
+                            });
+                        })
+                    }
+                    else {
+                        layer.msg('宸查槄鍏憡涓嶅厑璁稿垹闄わ紒');
+                    }
                 }
                 else {
                     layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');

--
Gitblit v1.9.1