ProjectOverview.cshtml
9.84 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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
ViewData["title"] = "项目工程表";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header
{
<link href="~/css/iot/iconfont.css" rel="stylesheet" />
<style type="text/css">
/* head*/
.head {
padding-left: 7px;
}
.head-project {display: flex;width: 100%;height: 7vh;}
.head-project-logo {display: flex;justify-content: flex-start;width: 70%; align-items: center;}
.head-project-title {height: 10vh;text-align: center;line-height: 10vh;font-size:30px;padding-left: 6vh;}
.head-project-route {display: flex;width: 30%;justify-content: flex-end;align-items: center;}
.divcontent {
display: flex;
height: 100%;
}
.contcss {
display: flex;
width: 20%;
margin-right: 1vw;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
.top-refresh-data {
height: 23px;
line-height: 23px;
background-color: #ffffff;
margin-right: 2vw;
font-size: 20px;
}
.divcontent-left {
flex: 2;
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 1vw;
}
.divcontent-right {
flex: 1;
}
.imgdiv {
text-align: center;
line-height: 10vh;
}
.textStyle {
font-weight: 600;
font-size: 1.2vw;
color: black;
}
.layui-colla-content {
padding: 10px 15px;
}
.iconfont {
font-size: 42px;
}
.headStyle{
position: fixed;
background-color: #fff;
z-index: 99;
width: 99%
}
.layui-colla-item{margin-bottom:5px;}
.textStylered {
font-weight: 600;
font-size: 1.2vw;
color: red;
}
</style>
}
<div class="vueApp">
<div class="head headStyle" >
<div class="head-breadcrumb">
<span class="layui-breadcrumb" lay-separator="> " lay-filter="projectMap">
<a href="/configure/BaseProject/ProjectOverview">项目概述</a>
</span>
</div>
<div class="head-project">
<div class="head-project-logo">
<div><img style="width:190px;height:21px;" src="/images/logo.png" alt="" /></div>
<div class="head-project-title">{{head.projectName}}</div>
</div>
<div class="head-project-route">
<div class="footer-list div-flex top-refresh-data">
数据刷新倒计时:<span style="color:cornflowerblue;display:block" id="refreshDataTime">{{refreshDataTime}}</span>
</div>
<a data-scr="/equipment/BaseEquipment/IndexProjectAndEq" href="" class="sys-a-det">切换到设备列表</a>
</div>
</div>
</div>
<div class="layui-collapse" style="padding-left:7px;padding-top: 3vw;">
<!--设备概述-->
<div class="layui-colla-item">
<div class="layui-colla-title">设备概述</div>
<div class="layui-colla-content layui-show">
<div class="divcontent vueApp" style="height: 10vh">
<div class="contcss">
<div class="divcontent-left">
<div>设备总数</div>
<div class="textStyle">{{body.eqCount}}</div>
</div>
<div class="divcontent-right">
<div class="imgdiv">
<span class="iconfont icon-shebei" style="color: rgb(146, 133, 235);"></span>
</div>
</div>
</div>
<div class="contcss">
<div class="divcontent-left">
<div>运行数</div>
<div class="textStyle">{{body.eqRunCount}}</div>
</div>
<div class="divcontent-right">
<div class="imgdiv">
<span class="iconfont icon-zaixianshu" style="color: #16baaa;"></span>
</div>
</div>
</div>
<div class="contcss">
<div class="divcontent-left">
<div>待机数</div>
<div class="textStyle">{{body.eqStandBy}}</div>
</div>
<div class="divcontent-right">
<div class="imgdiv">
<span class="iconfont icon-daiji" style="color: rgb(146, 133, 235);"></span>
</div>
</div>
</div>
<div class="contcss">
<div class="divcontent-left">
<div>故障数</div>
<div class="textStyle">{{body.eqError}}</div>
</div>
<div class="divcontent-right">
<div class="imgdiv">
<span class="iconfont icon-shebeiguzhang2" style="color: #ffb800;"></span>
</div>
</div>
</div>
<div class="contcss">
<div class="divcontent-left">
<div>离线数(5m)</div>
<div class="textStyle" style="color:red;">{{body.eqOffline}}</div>
</div>
<div class="divcontent-right">
<div class="imgdiv">
<span class="iconfont icon-lixianshu"></span>
</div>
</div>
</div>
</div>
</div>
</div>
<!--当天设备运行-->
<div class="layui-colla-item">
<div class="layui-colla-title">当天设备运行 (运行+待机)/设备总数</div>
<div class="layui-colla-content layui-show" style="height: 10vh">
<div class="divcontent">
<div class="contcss">
<div class="divcontent-left">
<div>在线率</div>
<div class="textStyle">{{body.eqOnlineRate}}</div>
</div>
<div class="divcontent-right">
<div class="imgdiv">
<span class="iconfont icon-shebeizaixianshuai" style="color: rgb(146, 133, 235);"></span>
</div>
</div>
</div>
</div>
</div>
</div>
<!--设备在线状况-->
<div class="layui-colla-item">
<div class="layui-colla-title">设备在线状况</div>
<div class="layui-colla-content">
<div style="width:480px;margin-bottom: 33px;">
<table id="mainList" lay-filter="mainList" lay-size="sm"></table>
</div>
</div>
</div>
<!--设备开机时间-->
<div class="layui-colla-item">
<div class="layui-colla-title">设备开机时间(近7天/单位:H)</div>
<div class="layui-colla-content">
<div class="divcontent">
<div id="eqPowerOnTime" style="width: 90vw;height: 300px;"></div>
</div>
</div>
</div>
<!--设备故障次数-->
<div class="layui-colla-item">
<div class="layui-colla-title">设备故障次数(近7天)【点击柱子查看故障详情】</div>
<div class="layui-colla-content">
<div class="divcontent">
<div id="eqAlarmsNumber" style="width: 90vw;height: 300px;"></div>
</div>
</div>
</div>
<!--设备故障超40分钟-->
<div class="layui-colla-item">
<div class="layui-colla-title" style="color:#ff5722 ;">设备故障超40分钟(近7天)</div>
<div class="layui-colla-content">
<div class="divcontent">
<div >
<table id="mainAlarms" lay-filter="mainAlarms" lay-size="sm"></table>
</div>
</div>
</div>
</div>
<!--扩展指标-->
<div class="layui-colla-item">
<div class="layui-colla-title">扩展指标(近7天)【点击图标查看详情】妥善率目标99%</div>
<div class="layui-colla-content layui-show" style="height: 10vh">
<div class="divcontent">
<!--妥善率-->
<div class="contcss" id="clickToClickSuccessRate">
<div class="divcontent-left">
<div>妥善率(单位:分钟)</div>
<div class="textStyle" :class="{'textStylered': parseFloat(eqSumObj.proper) < 99}">{{ eqSumObj.proper }}</div>
</div>
<div class="divcontent-right">
<div class="imgdiv">
<span class="iconfont icon-shebeiOEE" style="color: rgb(146, 133, 235);cursor: pointer;"></span>
</div>
</div>
</div>
<!--MTTR-->
<div class="contcss" id="clickToClickMTTR">
<div class="divcontent-left">
<div>MTTR(单位:H)</div>
<div class="textStyle">{{eqSumObj.mttr}}</div>
</div>
<div class="divcontent-right">
<div class="imgdiv">
<span class="iconfont icon-shebeiMTTR" style="color: rgb(146, 133, 235);cursor: pointer;"></span>
</div>
</div>
</div>
<!--MTBF-->
<div class="contcss" id="clickToClickMTBF">
<div class="divcontent-left">
<div>MTBF(单位:H)</div>
<div class="textStyle">{{eqSumObj.mtbf}}</div>
</div>
<div class="divcontent-right">
<div class="imgdiv">
<span class="iconfont icon-MTBF" style="color: rgb(146, 133, 235);cursor: pointer !important;"></span>
</div>
</div>
</div>
<!--OEE-->
<div class="contcss" id="clickToClickOEE">
<div class="divcontent-left">
<div>OEE(单位:分钟)</div>
<div class="textStyle">{{eqSumObj.oee}}</div>
</div>
<div class="divcontent-right">
<div class="imgdiv">
<span class="iconfont icon--OEE" style="color: rgb(146, 133, 235);cursor: pointer!important;"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--公式提示-->
<div style="margin: 20px;color:blue;" >
<span><span style="font-weight: bold;">妥善率:</span>(1-故障时间/总时间)*100%</span>
<span style="margin-left: 30px;"><span style="font-weight: bold;">MTTR:</span>故障時間H/故障次數</span>
<span style="margin-left: 30px;"><span style="font-weight: bold;">MTBF:</span> (运行H+空闲时间H)÷故障次数</span>
<span style="margin-left: 30px;"><span style="font-weight: bold;">OEE:</span>(运行时间/(运行时间+空闲时间+故障时间))*100%</span>
</div>
<!--妥善率-->
<div id="tuoshanlv" style="display:none">
<div id="eqTuoShanRate" style="width: 65vw;height: 300px;"></div>
<table id="tableProper" lay-filter="tableProper" lay-size="sm"></table>
</div>
<div id="eleMTTR" style="display:none">
<table id="tableMTTR" lay-filter="tableMTTR" lay-size="sm"></table>
</div>
<div id="eleMTBF" style="display:none">
<table id="tableMTBF" lay-filter="tableMTBF" lay-size="sm"></table>
</div>
<div id="eleOee" style="display:none">
<table id="tableOee" lay-filter="tableOee" lay-size="sm"></table>
</div>
<div id="eleAlarm" style="display:none">
<table id="tableAlarm" lay-filter="tableAlarm" lay-size="sm"></table>
</div>
</div>
@section Scripts
{
<script src="~/js/echarts/echarts.common.min.js"></script>
<script type="text/javascript" src="~/echartsconfig/projectoverviewconfig.js"></script>
<script type="text/javascript" src="/productjs/configure/ProjectOverview.js" asp-append-version="true"></script>
}