Blame view

web/WebMvc/Views/Shared/_Layout.cshtml 5.73 KB
赖素文 authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!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: 0px 0px;}
        .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:white!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; }
胡菁 authored
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

        .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 thead,
        .table-sticky-head .layui-table tbody tr {
            display: table;
            width: 100%;
            table-layout: fixed;
        }

        .layui-table-auto .layui-table td {
            white-space: inherit !important;
        }
赖素文 authored
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
	</style>

    <script> 
        let versionJs = 2;
        //防止网页被嵌入框架的代码
        try {
            window.top.location.hostname;
            if (top.location.hostname != window.location.hostname) top.location.href = window.location.href;
        }
        catch (e) {
            top.location.href = window.location.href;
        }
        if (!window.top.IsDevelopment){
            /*全局Js错误监听 */
            window.onerror = function (msg, url, l) {
                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 type="text/javascript" src="/layui/layui.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>
赖素文 authored
128
    <script type="text/html" id="isSysDeleteTemplet">
赖素文 authored
129
130
131
132
    <input type="checkbox" name="isDelete" disabled value="{{d.id}}" lay-skin="switch" lay-text="启用|停用" {{ d.isDelete == 1 ? "checked" :"" }}>
</script>
</body>
</html>