Index.cshtml 11.2 KB
@using Hh.Mes.Common.config
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>@ConfigRead.GetInstance.GetAppsetConnection().LoginTitle</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <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" />
    <link rel="stylesheet" href="/css/main.css?v=2.0" media="all" />
    <link href="~/js/json/jquery.json-viewer.css" rel="stylesheet" />
    <style type="text/css">
     .layui-tab-brief>.layui-tab-title .layui-this{background-color:transparent}
     #layerDemorb span{color:red}
     .layui-nav-child{background-color:#fff!important}
     dd.layui-this a{background-color:#000!important}
     .inter-con{border-top:2px solid #000}
     .log-head{height:30px;line-height:30px;font-weight:700;border-bottom:2px solid rgb(218 211 211)}
     .log-body{height:60px;padding-left:10px}
     .log-body-text{color:#0c0cec;text-decoration:underline;cursor:pointer!important}
     #client-body .client-info {line-height: 1.6;}
     .left-search{position:relative;top:4px;bottom:0;left:0;width:200px;height:40px}
     .input-search{width:95%;height:34px;margin-left:3px;border-radius:4px;border:1px solid #d2d2d2}
     .input-search: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%)}

      /*抽屉效果*/
    #sys-drawer-conent{  z-index: 999999999;  background-color: #fff;   border: 0;  background-clip: padding-box; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); overflow: hidden; transition: all 0.2s;  height: 100%;   position: absolute; top: 0;bottom: 0;width: 600px; right: 0px;  overflow-y: auto; }
    .sys-drawer-header {  position: fixed; background-color: white; width: 100%; font-size: 25px; }
    #json-renderer  { display: block; padding-top:40px;padding-left: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143;color: #333; word-break: break-all;word-wrap: break-word;background-color: #f5f5f5;border: 1px solid #ccc; border-radius: 4px;}
    </style>

    <script>
        @Html.Raw(ViewBag.IsDevelopment);
        var sysEquipmentType = @Html.Raw(ViewBag.equipmentType);

        // 定义的全局枚举 对象数据
        var homeEnumData = {};
        @foreach (var enumType in (List<Type>)ViewData["EnumTypes"])
        {
            var enumName = enumType.Name;
            var enumStringValue = ViewData[enumName] as string;
            // 处理并输出枚举对象
            <text>
                homeEnumData["@enumName"] = @Html.Raw(enumStringValue.Replace($"var {enumName}=", "").TrimEnd(';').Trim());
            </text>
        }
         if (!window.top.IsDevelopment) {
            console.log("%c开发环境提示 ", "color: blue;")
            console.log("%c枚举访问入口 %cjs文件:sysU.sysEnumData.xx(某些页面可能是u.sysEnumData.xx),cshtml页面:sysEnumData.xx", "color: blue;", "color: green;")
            console.log("%c表格列字典(弃用GetDicLabel) %c sysU.arrFilterByPropertyExtend('字典主表key', d.field)", "color: blue;", "color: green;");
            console.log("%c表格列附件 %c \"\".GetColsUrl(d.url)", "color: blue;", "color: green;");
            console.log("%c表格列枚举(field字段名称) %c \"\".GetState(sysU.sysEnumData.x,d.field)", "color: blue;", "color: green;");
        } 
    </script>
</head>
<body class="main_body HPlus">
    <div class="layui-layout layui-layout-admin">
        <!-- 顶部 -->
        <div class="layui-header header">
            <div class="layui-main">
                <img src="~/images/logo.png" class="logo" style="width:190px;height:21px;margin-left:-20px;margin-top:4px;background-color: white !important;">

                <!-- 显示/隐藏菜单 -->
                <a href="javascript:;" class="hideMenu"><i class="layui-icon" style="margin-left:-45px;" data-icon="">&#xe6e7;</i></a>
                <!-- 顶部右侧菜单 -->
                <ul class="layui-nav top_menu">
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <cite>设置</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" class="changepwd"><i class="layui-icon" data-icon="">&#xe642;</i><cite>修改密码</cite></a></dd>
@*                            <dd><a href="javascript:;" class="lockcms"><i class="layui-icon" data-icon="">&#xe6e5;</i><cite>锁屏</cite></a></dd>*@
                        </dl>
                    </li>
                    <li class="layui-nav-item ">
                        <a onclick="qp.fullScreen.handleFullScreen(this);"><cite>全屏</cite><i class="layui-icon" data-icon="">&#xe622;</i></a>
                    </li>
                    <li class="layui-nav-item">
                        <a onclick="Cancellation()" class="signOut"><cite>注销</cite><i class="layui-icon" data-icon="">&#xe6e6;</i></a>
                    </li>
                </ul>
            </div>
        </div> 
        <!-- 左侧导航 -->
        <div class="layui-side layui-bg-black">
            <div style="border-bottom:2px double gray;padding:5px; background-color: white; color: #000;">
                <span id="loginInfo"></span>
                <span id="loginTime"></span>
                <cite id="Name" style="display:none"></cite>
            </div>
            <!--左侧搜索-->
            <div class="left-search">
                <input id="inputSearch" type="text" placeholder="搜索:请输入菜单名称" class="input-search" />
            </div>
            <div class="navBar layui-side-scroll"></div>
        </div>

        <!-- 右侧内容 -->
        <div class="layui-body layui-form">
            <div class="layui-tab layui-tab-card marg0" lay-filter="bodyTab" id="top_tabs_box">
                <ul class="layui-tab-title top_tab" id="top_tabs">
                    <li class="layui-this" lay-id=""><i class="iconfont icon-computer"></i> <cite>项目地图</cite></li>
                </ul>
                <ul class="leftBtn">
                    <li class="layui-nav-item">
                        <i class="layui-icon">&#xe603;</i>
                    </li>
                </ul>
                <ul class="rightBtn">
                    <li class="layui-nav-item">
                        <i class="layui-icon">&#xe602;</i>
                    </li>
                </ul>
                <ul class="layui-nav closeBox">
                    <li class="layui-nav-item">
                        <a href="javascript:;"><i class="layui-icon">&#xe6e3;</i>页面操作</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" class="refresh refreshThis"><i class="layui-icon">&#xe9aa;</i> 刷新当前</a></dd>
                            <dd><a href="javascript:;" class="closePageOther"><i class="layui-icon">&#xe66e;</i> 关闭其他</a></dd>
                            <dd><a href="javascript:;" class="closePageAll"><i class="layui-icon">&#xe6a6;</i>关闭全部</a></dd>
                        </dl>
                    </li>
                </ul>
                <div class="layui-tab-content clildFrame">
                    <div class="layui-tab-item layui-show">
                        <iframe src="/Home/ProjectMap"></iframe>
                    </div>
                </div>
            </div>
        </div>
        <!-- 底部 -->
        <div class="layui-footer footer">
            <p>@ViewBag.copyright</p>
        </div>
    </div>
    <!-- 抽屉 -->
    <div id="sys-drawer-conent" style="display:none;">
        <div class="sys-drawer-header">
            <i lay-event="btnColseJson" class="layui-icon layui-icon-close-fill"></i>
            <i lay-event="btnCopyJson" class="layui-icon layui-icon-reply-fill" style="padding-left: 50px;">json复制</i>
        </div>
        <pre id="json-renderer"></pre>
        <input id="sys-json-val" class="sys-json-val" type="text" style="display:none;" />
    </div>
    <div class="LogTips" style="display:none">
        <div class="client-con">
            <div class="log-head ">
                <span>客户端状态 基础信息=>采集端信息</span>
            </div>
            <div class="log-body" style="height:120px;overflow-y: auto;">
                <span class="log-body-text">
                    <span id="client-body"> </span>
                </span>
            </div>
        </div>
        <div class="inter-con">
            <div class="log-head ">
                <span>PDA接口错误</span>
            </div>
            <div class="log-body">
                <span onclick="infoTips.updateLogTips('pda')" class="log-body-text">
                    PDA接口日志异常
                    <span id="pda-body"> </span>
                </span>
                <div>
                    <br>
                    <span>详细信息请查看日志管理=>PDA接口日志</span>
                </div>
            </div>
        </div>
        <div class="inter-con">
            <div class="log-head ">
                <span>接口日志</span>
            </div>
            <div class="log-body">
                <span onclick="infoTips.updateLogTips('inter')" class="log-body-text">
                    接口日志异常
                    <span id="inter-body"> </span>
                </span>
                <div>
                    <br>
                    <span>详细信息请查看日志管理=>接口日志</span>
                </div>
            </div>
        </div>
        <div class="job-con">
            <div class="log-head">
                <span>定时器日志</span>
            </div>
            <div class="log-body">
                <span onclick="infoTips.updateLogTips('job')" class="log-body-text">
                    定时器日志异常
                    <span id="job-body"> </span>
                </span>
                <div>
                    <br>
                    <span>详细信息请查看日志管理=>定时器日志</span>
                </div>
            </div>
        </div>
        <div class="server-con">
            <div class="log-head">
                <span>server服务器异常(请联系管理人员)</span>
            </div>
            <div class="log-body">
                <span id="server-body" class="layui-bg-red"></span>
            </div>
        </div>
        <div class="server-con">
            <div class="log-head">
                <span>数据库服务器(请联系管理人员)</span>
            </div>
            <div class="log-body">
                <span id="sqlServer-body"></span>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="/layui/layui.js"></script>
    <script type="text/javascript" src="/js/leftnav.js"></script>
    <script type="text/javascript" src="/js/index.js" asp-append-version="true"></script>
</body>
</html>