Index.cshtml
11.2 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
@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=""></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=""></i><cite>修改密码</cite></a></dd>
@* <dd><a href="javascript:;" class="lockcms"><i class="layui-icon" data-icon=""></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=""></i></a>
</li>
<li class="layui-nav-item">
<a onclick="Cancellation()" class="signOut"><cite>注销</cite><i class="layui-icon" data-icon=""></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"></i>
</li>
</ul>
<ul class="rightBtn">
<li class="layui-nav-item">
<i class="layui-icon"></i>
</li>
</ul>
<ul class="layui-nav closeBox">
<li class="layui-nav-item">
<a href="javascript:;"><i class="layui-icon"></i>页面操作</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;" class="refresh refreshThis"><i class="layui-icon"></i> 刷新当前</a></dd>
<dd><a href="javascript:;" class="closePageOther"><i class="layui-icon"></i> 关闭其他</a></dd>
<dd><a href="javascript:;" class="closePageAll"><i class="layui-icon"></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>