YL
2021-11-09 98efdcd4466525787cd76d1d834c0f540c2c2f6a
用户关联权限,权限列表树型、及点击树型带出权限交互列表
2个文件已修改
114 ■■■■■ 已修改文件
WebTM/views/PublicPage/PowerInformation.html 55 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/系统管理/公告/GG_NoticeBillList.html 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;
                }
            });
            //以上是layui模块
        });
WebTM/views/ϵͳ¹ÜÀí/¹«¸æ/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('请选择一行数据删除!');