EquipmentVisual.cshtml
12.6 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
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
ViewData["title"] = "设备管理";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header
{
<style type="text/css">
.jk-leftdiv{
display: flex;
width: 30%;
flex-direction: column;
justify-content: space-evenly;
margin-left: 3.6%;
color: #000000;
}
.jk-leftdiv-text{
font-size: 1.4vw;
font-weight: 600;
}
.accumulatedDeviceStatus {
position: absolute;
left: -14px;
top: 4px;
width: 10px;
height: 10px;
border-radius: 1vw;
}
.accumulatedDeviceStatus-red{
background:red
}
.accumulatedDeviceStatus-green {
background: green
}
.accumulatedDeviceStatus-hui{
background: #A9A9A9
}
.accumulatedDeviceStatus-yello {
background: orange
}
.flex-div{
display:flex;
margin-top: 1vh;
}
.postionrevite{
position:relative
}
.marginLeft-div-3vw{
margin-left: 3vw
}
.rightdiv{
width: 40%;
display: flex;
flex-direction: column;
justify-content: center;
}
.imgstyle{
width: 92%;
height: 92%;
margin: 3%;
}
</style>
}
<div class="head-breadcrumb">
<span class="layui-breadcrumb" lay-separator=">" lay-filter="projectMap" style="visibility: visible;">
<a href="/configure/BaseProject/ProjectOverview">项目概述</a>
<a href="/equipment/BaseEquipment/IndexProjectAndEq">设备列表</a>
<a href="/equipment/BaseEquipment/EquipmentVisual" id="bread-visual">设备可视化 </a>
</span>
</div>
<div id="listForm" class="layui-tab-item layui-show">
<div class="layui-col-xs12">
<div class="layui-tab layui-tab-brief layui-tab-sys-register" lay-filter="tabVisual">
<ul class="layui-tab-title">
<li class="layui-this" lay-id="1">健康表现</li>
<li lay-id="2">实时参数</li>
<li lay-id="3">未处理故障</li>
<li lay-id="4">文件下载</li>
<li lay-id="5">保养信息</li>
</ul>
<div class="layui-tab-content">
<!--健康表现-->
<div class="layui-tab-item layui-show" >
<div style="display:flex;height:28vh">
<div style="width: 20%;">
<img src="/images/logo.png" alt="" class="imgstyle" />
</div>
<div style="width:80%;display:flex;background:#f8f7fd">
<div class="jk-leftdiv">
<div>已上线</div>
<div class="jk-leftdiv-text">
101小时
</div>
<div style="margin-top: 3vh;">最近一次连续无故障时长</div>
<div class="jk-leftdiv-text">
0天11时40分
</div>
</div>
<div id="deviceStatus" style="width:30vw;height:30vh" ></div>
<div class="rightdiv">
<div class="flex-div">
<div class="postionrevite">
<div class="accumulatedDeviceStatus accumulatedDeviceStatus-green"></div>
累计运作 5.99%</div>
<div class="marginLeft-div-3vw">今天6时46分</div>
</div>
<div class="flex-div postionrevite">
<div class="accumulatedDeviceStatus accumulatedDeviceStatus-red"></div>
<div>累计停机 5.99%</div>
<div class="marginLeft-div-3vw">今天6时46分</div>
</div>
<div class="flex-div postionrevite">
<div class="accumulatedDeviceStatus accumulatedDeviceStatus-hui"></div>
<div>累计故障 5.99%</div>
<div class="marginLeft-div-3vw">今天6时46分</div>
</div>
<div class="flex-div postionrevite ">
<div class="accumulatedDeviceStatus accumulatedDeviceStatus-yello"></div>
<div>累计离线 5.99%</div>
<div class="marginLeft-div-3vw">今天6时46分</div>
</div>
</div>
</div>
</div>
</div>
<!--实时参数-->
<div class="layui-tab-item ">
实时参数
</div>
<!--未处理故障-->
<div class="layui-tab-item ">
<table id="mainAlarm" lay-filter="mainAlarm" lay-size="sm"></table>
</div>
<!--文件下载-->
<div class="layui-tab-item ">
<table id="mainFile" lay-filter="mainFile" lay-size="sm"></table>
</div>
<!--保养信息-->
<div class="layui-tab-item">
<div style="display:flex;margin-top: 1.3vh;">
<div style="width: 20%;">
<img src="/images/logo.png" alt="" class="imgstyle" />
</div>
<div style="width: 20%;text-align:center">
<div id="eqName"></div>
<div>预留字段1</div>
<div>预留字段2</div>
</div>
<div style="width: 60%;
display: flex;
flex-direction: row;
justify-content: space-evenly;">
<div style="width: 14vw;background:#2f4056;text-align:center;padding-top: 0.6vw;">
<div style="font-size:1.5vw;color:#fff" id="maintainNumber"> </div>
<div style="color:#fff">总保养次数</div>
</div>
<div style="width: 14vw;background:#1e9fff;text-align:center;padding-top: 0.6vw;">
<div style="font-size:1.5vw;color:#fff" id="toBeMaintainNumber"></div>
<div style="color:#fff">待保养次数</div>
</div>
<div style="width: 14vw;background:#ffb800;text-align:center;padding-top: 0.6vw;">
<div style="font-size:1.5vw;color:#fff">3</div>
<div style="color:#fff">/</div>
</div>
<div style="width: 14vw;background:#009688;text-align:center;padding-top: 0.6vw;">
<div style="font-size:1.5vw;color:#fff">4</div>
<div style="color:#fff">
/
</div>
</div>
</div>
</div>
<div class="table" style="height:40vh">
<div style="height:10%;">部件列表</div>
<div>
<table class="layui-table" lay-size="sm" id="equipmentPartDt" lay-filter="equipmentPartDt">
</table>
</div>
</div>
<div style="display:flex">
<div style="flex:1">
<div style="height:10%;">已保养</div>
<div>
<table class="layui-table" lay-size="sm" lay-filter="maintainedDt" id="maintainedDt">
@*<thead>
<tr>
<th lay-data="{field:'partName'}">设备组件</th>
<th lay-data="{field:'indicator'}">保养周期</th>
<th lay-data="{field:'indicatorType'}">保养类型</th>
<th lay-data="{field:'price'}">保养费用</th>
<th lay-data="{field:'next'}">距离下次保养(天)</th>
</tr>
</thead>*@
</table>
</div>
</div>
<div style="flex:1">
<div style="height:10%;">未保养</div>
<div>
<table class="layui-table" lay-size="sm" lay-filter="unMaintainDt" id="unMaintainDt">
@* <thead>
<tr>
<th lay-data="{field:'partName'}">设备组件</th>
<th lay-data="{field:'indicator'}">保养周期</th>
<th lay-data="{field:'indicatorType'}">保养类型</th>
<th lay-data="{field:'price'}">保养费用</th>
<th lay-data="{field:'next'}">距离下次保养(天)</th>
</tr>
</thead>*@
</table>
</div>
</div>
</div>
@* <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px">
<legend>设备组件</legend>
</fieldset>
<table id="mainEqPart" lay-filter="mainEqPart" lay-size="sm"></table>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
<legend>保养情况</legend>
</fieldset>
<table class="layui-table" lay-size="sm" lay-filter="MaintenanceRules">
<thead>
<tr>
<th lay-data="{field:'partName'}">设备组件</th>
<th lay-data="{field:'indicator'}">保养周期</th>
<th lay-data="{field:'indicatorType'}">保养类型</th>
<th lay-data="{field:'price'}">保养费用</th>
<th lay-data="{field:'next'}">距离下次保养(天)</th>
</tr>
</thead>
</table>
<table class="layui-table" lay-size="sm" lay-filter="MaintenanceRecords">
<thead>
<tr>
<th lay-data="{field:'partCode'}">部件编号</th>
<th lay-data="{field:'partName'}">部件名称</th>
<th lay-data="{field:'maintainTime'}">保养时间</th>
<th lay-data="{field:'price'}">保养费用</th>
<th lay-data="{field:'maintainer'}">工作人员</th>
<th lay-data="{field:'remark'}">备注</th>
</tr>
</thead>
</table> *@
</div>
</div>
</div>
</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/equipment/EquipmentVisual.js" asp-append-version="true"></script>
}