_Layout.cshtml 7.1 KB
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <style type="text/css">
      .layui-colla-content{padding:0 0}
      .lable-required{color:red;vertical-align:text-top}
      .layui-form-selectup dl{bottom:auto!important}
      .form-readonly-color{background-color:#eee}
      .close-btn{position:absolute;color:red;border-radius:12px;line-height:20px;text-align:center;height:20px;width:20px;font-size:18px;padding:1px;top:10px;right:-25px;cursor:pointer}
      .close-btn::before{content:"\2716"}
      .div-flex{display:flex!important}
      .div-relative{position:relative}
      .add{position:relative;left:5px;width:20px;height:38px;color:#1e9fff;transition:color .25s}
      .add::before{position:absolute;content:'';left:50%;top:50%;width:20px;margin-left:-10px;margin-top:-3px;border-top:5px solid}
      .add::after{position:absolute;content:'';left:50%;top:50%;height:20px;margin-left:-2px;margin-top:-10px;border-left:5px solid}
      div,ul{box-sizing:content-box}
      .layui-elem-quote{margin-bottom:2px;padding:10px}
      .layui-table-view{margin:0!important}
      ul.ztree{margin-top:0!important}
      .layui-laypage-refresh{visibility:hidden}
      .layui-layer-title{background-color:#fff!important;color:#000!important}
      body .qcCode-class .layui-layer-btn0{border:1px solid #dedede;background-color:#fff;color:#333}
      .layui-input:focus{border-color:#66afe9!important;outline:0;box-shadow:inset 0 1px 1px rgb(0 0 0 / 8%),0 0 8px rgb(102 175 233 / 60%)}
      .layui-form-danger+.layui-form-select .layui-input,.layui-form-danger:focus{border-color:#66afe9!important;outline:0;box-shadow:inset 0 1px 1px rgb(0 0 0 / 8%),}
      .layui-table th{text-align:center}
      .layui-table-view .layui-table[lay-size=sm] .layui-table-cell{height:25px!important;line-height:25px!important}
      .table-sticky-head .layui-table tbody{height:calc(100vh - 325px);display:block;overflow-y:scroll;overflow-x:scroll;width:100vw}
      .table-sticky-head .layui-table tbody::-webkit-scrollbar{display:none}
      .table-sticky-head .layui-table tbody tr,.table-sticky-head .layui-table thead{display:table;width:100%;table-layout:fixed}
      .layui-table-auto .layui-table td{white-space:inherit!important}
      .sys-a-det{text-decoration:underline;color:#00f}
      .head-breadcrumb{padding-top:7px;padding-bottom:7px;padding-left:7px}
      .layui-breadcrumb{padding-left:5px}
      .layui-breadcrumb>*{font-size:18px}
      .layui-breadcrumb a{border-left:8px solid #5fb878;padding-left:12px}
      .layui-breadcrumb :first-child{padding-left:18px}
      .layui-breadcrumb a:last-child{font-weight:700;color:#000!important}

      xm-select[size='small'] {min-height: 37px!important; line-height: 37px!important; margin:0!important; }
    </style>
    <script>
        let versionJs = 2,
            importScriptsFalg=0;
        //防止网页被嵌入框架的代码
        try {
            window.top.location.hostname;
            if (top.location.hostname != window.location.hostname) top.location.href = window.location.href;
        }
        catch (e) {
            top.locatio .href = window.location.href;
        }
        if (window.top.IsDevelopment) {
            /*全局Js错误监听、正式环境 */
            window.onerror = function (msg, url, l) {
                if (msg.indexOf("importScripts") > -1 ) {
                    if (importScriptsFalg > 0) return true;
                    alert("百度地图加载失败!请确认本地电脑能否浏览外网,或者有VPN操作设置。")
                    importScriptsFalg++;
                    return true;
                }
                const txt = `本页中存在错误\n
                             错误:${msg}\n
                             地址:${url}\n
                             行:${l}\n
                             点击任意空白处继续或刷新浏览器,问题频繁出现请联系长沙软件部人员。`;
                alert(txt, { icon: 2, shadeClose: true, title: "系统错误" });
                console.error(txt);
                return true;
            }
        } 
    </script>
    @await RenderSectionAsync("header", false)
</head>
<body class="childrenBody">
    @RenderBody()
    <div id="qcCodeHead" style=" display:none;">
        <div id="qcCodeBody"></div>
    </div>
    <script src="~/js/xm-select/xm-select.js"></script>
    <script type="text/javascript" src="/layui/layui.js"></script>
    <script src="~/js/moment/moment.min.js"></script>
    <script type="text/javascript">
        function loadMenus(modulecode, AreaMenus) {
            var dom = $(this);
            $.ajax("/base/SysModule/LoadAuthorizedMenus", {
                type: "post",
                data: { modulecode: modulecode, AreaMenus: AreaMenus },
                success: function (data) {
                    if (data == "") { return };
                    var obj = JSON.parse(data);
                    var sb = '';
                    $.each(obj, function () {
                        var element = this;
                        sb += ("<a href='javascript:;' " + " data-type='" + element.DomId + "' " + " class='layui-btn layui-btn-sm " + element.Class + "' " + ">");
                        if (element.Icon != null && element.Icon != '') {
                            sb += ("<i class='layui-icon'>" + element.Icon + "</i>");
                        }
                        sb += (element.Name + "</a>");
                    });
                    dom.html(dom.html() + sb);
                }
            });
        }
    </script>
    @await RenderSectionAsync("Scripts", required: false)
    <script type="text/html" id="isDeleteTextTemplet">
        {{# if(d.isDelete==1){}}
        <label></label>
        {{# } else { }}
        <label></label>
        {{# } }}
    </script>

    
    <script type="text/html" id="isSysDeleteTemplet">
        <input type="checkbox" name="isDelete" disabled value="{{d.isDelete}}" lay-skin="switch" lay-text="启用|停用" {{ d.isDelete == 1 ? "checked" :"" }}>
    </script>

    <script type="text/html" id="isSysEnableTemplet">
        <input type="checkbox" name="isEnable" disabled value="{{d.isEnable}}" lay-skin="switch" lay-text="启用|停用" {{ d.isEnable == true ? "checked" :"" }}>
    </script>
    <script type="text/html" id="isSysUseTemplet">
        <input type="checkbox" name="isUse" disabled value="{{d.isUse}}" lay-skin="switch" lay-text="已领用|待领用" {{ d.isUse == true ? "checked" :"" }}>
    </script>
    <script type="text/html" id="isSysVirtualTemplet">
        <input type="checkbox" name="isVirtual" disabled value="{{d.isVirtual}}" lay-skin="switch" lay-text="是|否" {{ d.isVirtual == true ? "checked" :"" }}>
    </script>
</body>
</html>