CZT
2023-09-14 db72a27d10fdc4de0926fb8c7cc411ec0d4ea51b
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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<!DOCTYPE html>
<html lang="zh-cn" xmlns:th=http://www.thymeleaf.org>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <title>智慧粮库管理系统-综合大屏</title>
    <link rel="shortcut icon" th:href="@{/static/favicon.ico}"/>
    <link th:href="@{/static/databoard/pc-reset.css}" rel="stylesheet">
    <link th:href="@{/static/databoard/master.css}" rel="stylesheet">
    <style>
        .right-topInfo-address {
            line-height: 32px;
            color: #fff;
            font-size: 18px;
            float: right;
            z-index: 3;
            margin: -22px 30px 0 0;
            padding-top: 10px;
        }
 
        .right-topInfo-address i {
            float: left;
            margin-right: 5px;
        }
 
        .sup-menu-group span.i-icon32 {
            margin: 0 8px 0 0;
        }
 
        .right-topInfo-kd-h {
            line-height: 35px;
            font-size: 22px;
            height: 35px;
            color: #fff;
            padding: 0 15px 5px 15px;
        }
 
        .right-topInfo-kd {
            width: 320px;
            height: 90px;
            margin: 5px auto;
            overflow: hidden;
            background: url("../../static/img/databoard/right-m2-bg.png") no-repeat;
            background-size: 100% 100%;
        }
 
        .right-topInfo-kd-item {
            float: left;
            width: 50%;
            height: 90px;
            text-align: center;
        }
 
        .right-topInfo-kd-item h3 {
            color: #fff;
            font-size: 14px;
            line-height: 20px;
            margin-top: 10px;
        }
 
        .right-topInfo-kd-list li {
            width: 33.333333%;
        }
 
        .right-topInfo-jg li {
            text-align: center;
            float: left;
            height: 100px;
            overflow: hidden;
        }
 
        .right-topInfo-kd-list li:nth-child(2) p {
            color: #f37b3d;
        }
 
        .data-top-left .right-topInfo-jg {
            margin-top: 30px;
        }
 
        .right-topInfo-kd-list li:nth-child(2) p {
            color: #f37b3d;
        }
 
        .right-topInfo-jg li:last-child p, .right-topInfo-kd-item:last-child p {
            color: #36b994;
        }
 
        .right-topInfo-jg li:first-child p, .right-topInfo-kd-item:first-child p {
            color: #2fc7ff;
        }
 
        .right-topInfo-jg li h3 {
            color: #fff;
            font-size: 18px;
        }
 
        .right-topInfo-jg li p, .right-topInfo-kd-item p {
            font-weight: bold;
            line-height: 60px;
            font-size: 46px;
        }
 
        .right-topInfo-jg li p, .right-topInfo-kd-item p {
            font-weight: bold;
            line-height: 60px;
            font-size: 46px;
        }
    </style>
</head>
<body style="overflow:hidden">
<div class="container">
    <div class="i-top">
        <h1 class="i-top-tit"><span th:text="${largeScreenName}">综合管理大屏</span></h1>
        <p class="i-top-p" id="sloganText">不忘初心,牢记使命,为中国人民谋幸福,为中华民族谋复兴</p>
        <span class="time-info"></span>
    </div><!--i-top end-->
    <div class="i-main cl">
        <div class="i-m1 cl">
            <div class="i-m1-left fl">
 
                <div class="left-box1">
                    <h3 class="i-tit">
                        <i class="i-icon32"><img th:src="@{../../static/img/databoard/icon-chuku.png}"/></i>
                        库区信息
                    </h3>
                    <div class="right-topInfo-address">
                        <i class="i-icon32"><img th:src="@{/static/img/databoard/icon-address.png}" alt=""></i>
                        <span id="cityAndCounty">-</span>
                    </div>
                    <div class="panel-content" style="padding: 10px 0 0 0;">
                        <h2 class="right-topInfo-kd-h" id="deptName">-</h2>
                        <div class="right-topInfo-kd">
                            <div class="right-topInfo-kd-item">
                                <h3>粮仓个数(个)</h3>
                                <p id="depotNum">0</p>
                            </div>
                            <div class="right-topInfo-kd-item">
                                <h3>油罐个数(个)</h3>
                                <p id="depotOilNum">0</p>
                            </div>
                        </div>
                        <ul class="right-topInfo-kd-list right-topInfo-jg">
                            <li>
                                <p id="foodStorage" style="font-size: 36px;">0</p>
                                <h3>储备粮(吨)</h3>
                            </li>
                            <li>
                                <p id="oilStorage" style="font-size: 36px;">0</p>
                                <h3>储备油(吨)</h3>
                            </li>
                            <li>
                                <p id="storage" style="font-size: 36px;">0</p>
                                <h3>设计储量(吨)</h3>
                            </li>
                        </ul>
                    </div>
                </div><!--left-box1 end-->
                <div class="left-box2">
                    <h3 class="i-tit">
                        <i class="i-icon32"><img th:src="@{../../static/img/databoard/icon-chuku.png}"/></i>
                        出入库信息
                    </h3>
                    <div class="left-box1-con">
 
                        <div class="left-box1-top cl">
                            <div class="left-box1-num fl">
                                <div class="left-box1-item fl">
                                    <p><span id="inCarNum">0</span>辆</p>
                                    <h4>入库登记</h4>
                                </div>
                                <div class="left-box1-item fl">
                                    <p><span id="inCompleteCarNum">0</span>辆</p>
                                    <h4>入库完成</h4>
                                </div>
                            </div>
                            <div class="left-box1-num fr">
                                <div class="left-box1-item fl">
                                    <p><span id="outCarNum">0</span>辆</p>
                                    <h4>出库登记</h4>
                                </div>
                                <div class="left-box1-item fl">
                                    <p><span id="outCompleteCarNum">0</span>辆</p>
                                    <h4>出库完成</h4>
                                </div>
                            </div>
                        </div><!--left-box1-top end-->
 
                        <div class="left-box1-jd">
                            <div class="progress-group">
                                <div class="progress-label fl">入库完成率</div>
                                <div class="progress">
                                    <div id="inPerDiv" class="progress-bar progress-bar-green animate-positive"
                                         style="width: 0%">
                                        <span id="inPerSpan" class="sr-only">0%</span>
                                    </div>
                                </div>
                            </div><!--progress-group end-->
                            <div class="progress-group">
                                <div class="progress-label fl">出库完成率</div>
                                <div class="progress">
                                    <div id="outPerDiv" class="progress-bar progress-bar-blue animate-positive"
                                         style="width: 0%">
                                        <span id="outPerSpan" class="sr-only">0%</span>
                                    </div>
                                </div>
                            </div><!--progress-group end-->
                        </div><!--left-box1-jd end-->
                    </div><!--left-box1-con end-->
                </div><!--left-box1 end-->
                <!--                <div class="left-box2">-->
 
                <!--                    <h3 class="i-tit">-->
                <!--                        <i class="i-icon32"><img th:src="@{../../static/img/databoard/icon-zoushi.png}"/></i>-->
                <!--                        能耗走势-->
                <!--                    </h3>-->
 
                <!--                    <div id="i-echart1" style="width: 100%; height: 230px;"></div>-->
                <!--                -->
                <!--                -->
                <!--                </div>&lt;!&ndash;left-box2 end&ndash;&gt;-->
            </div><!--i-m1-left end-->
            <div class="i-m1-center fl">
                <h3 class="i-tit">
                    <i class="i-icon32"><img th:src="@{../../static/img/databoard/icon-jiance.png}"/></i>
                    粮情检测
                </h3>
                <div class="i-m1-cbox">
                    <div class="i-m1-cHd">
                        <ul>
                            <li>
                                <span><img th:src="@{../../static/img/databoard/icon-ckmc.png}"/></span>
                                <h4>仓库名称</h4>
                            </li>
                            <li>
                                <span><img th:src="@{../../static/img/databoard/icon-zgw.png}"/></span>
                                <h4>最高温(℃)</h4>
                            </li>
                            <li>
                                <span><img th:src="@{../../static/img/databoard/icon-zdw.png}"/></span>
                                <h4>最低温(℃)</h4>
                            </li>
                            <li>
                                <span><img th:src="@{../../static/img/databoard/icon-pjw.png}"/></span>
                                <h4>平均温(℃)</h4>
                            </li>
                            <li>
                                <span><img th:src="@{../../static/img/databoard/icon-cw.png}"/></span>
                                <h4>仓温(℃)</h4>
                            </li>
                            <li>
                                <span><img th:src="@{/static/img/databoard/icon-cs.png}"/></span>
                                <h4>仓湿(%)</h4>
                            </li>
                            <li>
                                <span><img th:src="@{../../static/img/databoard/icon-jcsj.png}"/></span>
                                <h4>检测时间</h4>
                            </li>
                        </ul>
                    </div>
                    <div class="i-m1-cBd" id="grainShowDiv">
                        <!-- 粮情展示div -->
                    </div>
                </div>
            </div><!--i-m1-center end-->
            <div class="i-m1-right fr">
                <div class="right-box1 posi-r">
 
                    <h3 class="i-tit">
                        <i class="i-icon32"><img th:src="@{../../static/img/databoard/icon-qixiang.png}"/></i>
                        气象站信息
                    </h3>
                    <div class="right-box1-time" id="weather_time">更新时间 : 2000-01-01 00:00:00</div>
                    <div class="right-box1-con">
 
                        <ul class="r1-list">
                            <li>
                                <h4><i class="i-icon"><img th:src="@{../../static/img/databoard/icon-wendu.png}"/></i>温度
                                </h4>
                                <p id="weather_wendu"><span>0</span>℃</p>
                            </li>
                            <li>
                                <h4><i class="i-icon"><img th:src="@{../../static/img/databoard/icon-shidu.png}"/></i>湿度
                                </h4>
                                <p id="weather_shidu"><span>0</span>%</p>
                            </li>
                            <li>
                                <h4><i class="i-icon"><img th:src="@{../../static/img/databoard/icon-yuqing.png}"/></i>天气
                                </h4>
                                <p id="weather_tianqi"><em>晴</em></p>
                            </li>
                            <li>
                                <h4><i class="i-icon"><img th:src="@{../../static/img/databoard/icon-yuliang.png}"/></i>风力
                                </h4>
                                <p id="windSpeed"><span>1级</span></p>
                            </li>
                            <li>
                                <h4><i class="i-icon"><img
                                        th:src="@{../../static/img/databoard/icon-fengxiang.png}"/></i>风向</h4>
                                <p id="weather_fengxiang"><em>无风</em></p>
                            </li>
                        </ul>
                    </div>
                </div><!--right-box1 end-->
 
                <div class="right-box2">
 
                    <h3 class="i-tit">
                        <i class="i-icon32"><img th:src="@{../../static/img/databoard/icon-qiti.png}"/></i>
                        气体检测
                    </h3>
                    <div class="right-box2-con ">
                        <div class="right-box2-tit" id="gasDepotName">0号仓</div>
                        <div class="right-box2-time" id="gasCheckTime">检测时间: 12-01</div>
                        <div class="r2-echart">
                            <ul>
                                <li>
                                    <div id="i-echart2" style="width: 100%; height: 160px;"></div>
                                    <!--<div class="r2-echart-p">CO2(PPM)</div>-->
                                </li>
                                <li>
                                    <div id="i-echart3" style="width: 100%; height: 160px;"></div>
                                    <!--<div class="r2-echart-p">CO2(PPM)</div>-->
                                </li>
                                <li>
                                    <div id="i-echart4" style="width: 100%; height: 160px;"></div>
                                    <!--<div class="r2-echart-p">CO2(PPM)</div>-->
                                </li>
                            </ul>
                        </div>
                    </div>
 
                </div><!--right-box1 end-->
 
            </div><!--i-m1-right end-->
 
        </div><!--i-m1 end-->
        <div class="i-m2 cl">
            <div class="i-m2-box i-m2-box1 fl">
                <h3 class="i-tit">
                    <i class="i-icon32"><img th:src="@{../../static/img/databoard/icon-cangku.png}"/></i>
                    仓库卡片
                </h3>
                <div class="i-m2-tab">
                    <div class="i-tab-bd" id="depotShowDiv">
 
                    </div> <!--tab-bd-->
                    <div class="i-tab-hd" id="depotTabDiv">
                        <span class="active"></span>
                        <span></span>
                        <span></span>
                        <span></span>
                    </div>
                </div><!--i-m2-tab end-->
 
            </div><!--i-m2-box end-->
 
 
            <div class="i-m2-box i-m2-box2 fr">
                <h3 class="i-tit">
                    <i class="i-icon32"><img th:src="@{../../static/img/databoard/icon-cangchu.png}"/></i>
                    仓储统计
                </h3>
 
                <div class="i-m2-echarts">
 
                    <ul>
                        <li>
                            <h3 class="i-m2-echarts-h">仓储性质</h3>
                            <div id="i-echart5" style="width: 100%; height: 160px;"></div>
                        </li>
                        <li>
                            <h3 class="i-m2-echarts-h">粮食品种</h3>
                            <div id="i-echart6" style="width: 100%; height: 160px;"></div>
                        </li>
                        <li>
                            <h3 class="i-m2-echarts-h">粮食等级</h3>
                            <div id="i-echart7" style="width: 100%; height: 160px;"></div>
                        </li>
                    </ul>
 
 
                </div>
 
 
            </div><!--i-m2-box end-->
 
        </div><!--i-m2 end-->
 
 
    </div><!--i-main end-->
 
</div>
 
<div id="particles-js"></div>
 
<script th:src="@{/static/js/jquery.min.js}"></script>
<script th:src="@{/static/plugins/layui/layui.js}"></script>
<script th:src="@{/static/databoard/particles.min.js}"></script>
<script th:src="@{/static/plugins/echarts/echarts.min.js}"></script>
<script th:inline="javascript">
    //定义变量
    var companyId = [[${loginUser.companyId}]];
    var listDepot = [[${listDepot}]];
    var mapGrain = [[${mapGrain}]];
    var mapGas = [[${mapGas}]];
    var bizType = [[${bizType}]];
    var bizTag = [[${bizTag}]];
    var dicSlogan = [[${dicSlogan}]];
    var weatherInfo = [[${weatherInfo}]];
    var deptInfo = [[${deptInfo}]];
 
    //能耗信息
    // var esChart = [[${esChart}]];
 
    //userId
    var userId = [[${loginUser.username}]];
    var deptId = [[${deptId}]];
 
    //设置定时刷新页面,主要为了防止掉线
    var timerFlush;
    window.onload = function () {
        if (timerFlush) {
            clearInterval(timerFlush);
        }
        timerFlush = setInterval(function () {
            window.location.href = window.location.href;
        }, 60 * 60 * 1000);
    };
 
</script>
<script th:src="@{/static/js/constant.js}"></script>
<script th:src="@{/static/js/igds-common.js}"></script>
<script th:src="@{/static/databoard/charts.js}"></script>
<script th:src="@{/static/databoard/databoard.js}"></script>
</body>
</html>