提交 | 用户 | 时间
|
850106
|
1 |
<template> |
H |
2 |
<el-card shadow="never" class="aui-card--fill"> |
|
3 |
<el-tabs v-model="activeName" @tab-click="handleClick"> |
|
4 |
<el-tab-pane label="原煤煤质趋势" name="first"> |
|
5 |
<el-form :inline="true" :model="raw.dataForm"> |
|
6 |
<el-form-item> |
|
7 |
<el-date-picker |
|
8 |
v-model="raw.dataForm.startDate" |
|
9 |
type="date" |
|
10 |
placeholder="选择开始时间" |
|
11 |
value-format="yyyy-MM-dd" |
|
12 |
> |
|
13 |
</el-date-picker> |
|
14 |
</el-form-item> |
|
15 |
<el-form-item> |
|
16 |
<el-date-picker |
|
17 |
v-model="raw.dataForm.endDate" |
|
18 |
type="date" |
|
19 |
placeholder="选择结束时间" |
|
20 |
value-format="yyyy-MM-dd" |
|
21 |
> |
|
22 |
</el-date-picker> |
|
23 |
</el-form-item> |
|
24 |
<el-form-item> |
|
25 |
<el-button :loading="raw.hf.loading" @click="init1">查询</el-button> |
|
26 |
</el-form-item> |
|
27 |
</el-form> |
|
28 |
<div class="scrollable-container"> |
|
29 |
<!--原煤灰分--> |
|
30 |
<el-card shadow="never" class="aui-card--fill" v-loading="raw.hf.loading"> |
|
31 |
<el-row type="flex" justify="space-around"> |
|
32 |
<el-col :span="4" style="margin-top: 40px" class="Border_l"> |
|
33 |
<el-row> |
|
34 |
<el-col :span="12"> |
|
35 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
36 |
当前值 |
|
37 |
</div> |
|
38 |
<div |
|
39 |
style=" |
|
40 |
width: 100%; |
|
41 |
height: 30px; |
|
42 |
margin-top: 10px; |
|
43 |
margin-bottom: 10px; |
|
44 |
color: #000000; |
|
45 |
font-size: 24px; |
|
46 |
" |
|
47 |
> |
|
48 |
<span>{{ raw.hf.currentValue }}</span> |
|
49 |
<span style="font-size: 14px">{{raw.hf.unit}}</span> |
|
50 |
</div> |
|
51 |
</el-col> |
|
52 |
<el-col :span="12"> |
|
53 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
54 |
分析长度 |
|
55 |
</div> |
|
56 |
<div |
|
57 |
style=" |
|
58 |
width: 100%; |
|
59 |
height: 30px; |
|
60 |
margin-top: 10px; |
|
61 |
margin-bottom: 10px; |
|
62 |
color: #000000; |
|
63 |
font-size: 24px; |
|
64 |
" |
|
65 |
> |
|
66 |
<span>{{ raw.hf.length }}</span |
|
67 |
><span style="font-size: 14px">天</span> |
|
68 |
</div> |
|
69 |
</el-col> |
|
70 |
</el-row> |
|
71 |
</el-col> |
|
72 |
<el-col :span="19"> |
|
73 |
<div> |
|
74 |
<div id="any-ymhf" style="margin-top: 20px" class="ecbox"></div> |
|
75 |
</div> |
|
76 |
</el-col> |
|
77 |
</el-row> |
|
78 |
<el-row> |
|
79 |
<el-col :span="12" class="Border_down" align="left"> |
|
80 |
<el-row |
|
81 |
type="flex" |
|
82 |
justify="center" |
|
83 |
align="middle" |
|
84 |
style="height: 5vh" |
|
85 |
> |
|
86 |
<el-col :span="5" style="padding-top:5vh"> |
|
87 |
<span style="font-size: 16px; font-weight: 600"> |
|
88 |
整体趋势{{raw.hf.trend}} |
|
89 |
<i :class="raw.hf.iconClass"></i> |
|
90 |
</span> |
|
91 |
</el-col> |
|
92 |
<el-col :span="5" style="padding-top:5vh"> |
|
93 |
<el-row style="font-size: 14px"> |
|
94 |
<span>平均值</span> |
|
95 |
</el-row> |
|
96 |
<el-row style="font-size: 14px"> |
|
97 |
<span>{{raw.hf.trendValue.mean_value}}</span> |
|
98 |
</el-row> |
|
99 |
</el-col> |
|
100 |
<el-col :span="5" style="padding-top:5vh"> |
|
101 |
<el-row style="font-size: 14px"> |
|
102 |
<span>最大值</span> |
|
103 |
</el-row> |
|
104 |
<el-row style="font-size: 14px"> |
|
105 |
<span>{{raw.hf.trendValue.max_value}}</span> |
|
106 |
</el-row> |
|
107 |
</el-col> |
|
108 |
<el-col :span="5" style="padding-top:5vh"> |
|
109 |
<el-row style="font-size: 14px"> |
|
110 |
<span>最小值</span> |
|
111 |
</el-row> |
|
112 |
<el-row style="font-size: 14px"> |
|
113 |
<span>{{raw.hf.trendValue.min_value}}</span> |
|
114 |
</el-row> |
|
115 |
</el-col> |
|
116 |
</el-row> |
|
117 |
</el-col> |
|
118 |
<el-col :span="12" class="Border_down" align="left"> |
|
119 |
<el-row style="margin-left: 2vh; margin-top: 1vh"> |
|
120 |
<span style="font-size: 14px; font-weight: 600">调度建议</span> |
|
121 |
</el-row> |
|
122 |
<el-row> |
|
123 |
<el-col |
|
124 |
:span="23" |
|
125 |
class="Border_text" |
|
126 |
style="margin-left: 2vh; margin-top: 1vh; padding-top: 10px" |
|
127 |
><span |
|
128 |
style=" |
|
129 |
margin-left: 2vh; |
|
130 |
font-size: 18px; |
|
131 |
font-family: '楷体'; |
|
132 |
font-weight: 600; |
|
133 |
color: red; |
|
134 |
" |
|
135 |
>{{raw.hf.dispatchSug}}</span> |
|
136 |
</el-col> |
|
137 |
</el-row> |
|
138 |
</el-col> |
|
139 |
</el-row> |
|
140 |
|
|
141 |
</el-card> |
|
142 |
|
|
143 |
<!--原煤水分--> |
|
144 |
<el-card shadow="never" class="aui-card--fill" v-loading="raw.sf.loading"> |
|
145 |
<el-row type="flex" justify="space-around"> |
|
146 |
<el-col :span="4" style="margin-top: 40px" class="Border_l"> |
|
147 |
<el-row> |
|
148 |
<el-col :span="12"> |
|
149 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
150 |
当前值 |
|
151 |
</div> |
|
152 |
<div |
|
153 |
style=" |
|
154 |
width: 100%; |
|
155 |
height: 30px; |
|
156 |
margin-top: 10px; |
|
157 |
margin-bottom: 10px; |
|
158 |
color: #000000; |
|
159 |
font-size: 24px; |
|
160 |
" |
|
161 |
> |
|
162 |
<span>{{ raw.sf.currentValue }}</span> |
|
163 |
<span style="font-size: 14px">{{raw.sf.unit}}</span> |
|
164 |
</div> |
|
165 |
</el-col> |
|
166 |
<el-col :span="12"> |
|
167 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
168 |
分析长度 |
|
169 |
</div> |
|
170 |
<div |
|
171 |
style=" |
|
172 |
width: 100%; |
|
173 |
height: 30px; |
|
174 |
margin-top: 10px; |
|
175 |
margin-bottom: 10px; |
|
176 |
color: #000000; |
|
177 |
font-size: 24px; |
|
178 |
" |
|
179 |
> |
|
180 |
<span>{{ raw.sf.length }}</span |
|
181 |
><span style="font-size: 14px">天</span> |
|
182 |
</div> |
|
183 |
</el-col> |
|
184 |
</el-row> |
|
185 |
</el-col> |
|
186 |
<el-col :span="19"> |
|
187 |
<div> |
|
188 |
<div id="any-ymsf" style="margin-top: 20px" class="ecbox"></div> |
|
189 |
</div> |
|
190 |
</el-col> |
|
191 |
</el-row> |
|
192 |
<el-row> |
|
193 |
<el-col :span="12" class="Border_down" align="left"> |
|
194 |
<el-row |
|
195 |
type="flex" |
|
196 |
justify="center" |
|
197 |
align="middle" |
|
198 |
style="height: 5vh" |
|
199 |
> |
|
200 |
<el-col :span="5" style="padding-top:5vh"> |
|
201 |
<span style="font-size: 16px; font-weight: 600"> |
|
202 |
整体趋势{{raw.sf.trend}} |
|
203 |
<i :class="raw.sf.iconClass"></i> |
|
204 |
</span> |
|
205 |
</el-col> |
|
206 |
<el-col :span="5" style="padding-top:5vh"> |
|
207 |
<el-row style="font-size: 14px"> |
|
208 |
<span>平均值</span> |
|
209 |
</el-row> |
|
210 |
<el-row style="font-size: 14px"> |
|
211 |
<span>{{raw.sf.trendValue.mean_value}}</span> |
|
212 |
</el-row> |
|
213 |
</el-col> |
|
214 |
<el-col :span="5" style="padding-top:5vh"> |
|
215 |
<el-row style="font-size: 14px"> |
|
216 |
<span>最大值</span> |
|
217 |
</el-row> |
|
218 |
<el-row style="font-size: 14px"> |
|
219 |
<span>{{raw.sf.trendValue.max_value}}</span> |
|
220 |
</el-row> |
|
221 |
</el-col> |
|
222 |
<el-col :span="5" style="padding-top:5vh"> |
|
223 |
<el-row style="font-size: 14px"> |
|
224 |
<span>最小值</span> |
|
225 |
</el-row> |
|
226 |
<el-row style="font-size: 14px"> |
|
227 |
<span>{{raw.sf.trendValue.min_value}}</span> |
|
228 |
</el-row> |
|
229 |
</el-col> |
|
230 |
</el-row> |
|
231 |
</el-col> |
|
232 |
<el-col :span="12" class="Border_down" align="left"> |
|
233 |
<el-row style="margin-left: 2vh; margin-top: 1vh"> |
|
234 |
<span style="font-size: 14px; font-weight: 600">调度建议</span> |
|
235 |
</el-row> |
|
236 |
<el-row> |
|
237 |
<el-col |
|
238 |
:span="23" |
|
239 |
class="Border_text" |
|
240 |
style="margin-left: 2vh; margin-top: 1vh; padding-top: 10px" |
|
241 |
><span |
|
242 |
style=" |
|
243 |
margin-left: 2vh; |
|
244 |
font-size: 18px; |
|
245 |
font-family: '楷体'; |
|
246 |
font-weight: 600; |
|
247 |
color: red; |
|
248 |
" |
|
249 |
>{{raw.sf.dispatchSug}}</span> |
|
250 |
</el-col> |
|
251 |
</el-row> |
|
252 |
</el-col> |
|
253 |
</el-row> |
|
254 |
|
|
255 |
</el-card> |
|
256 |
|
|
257 |
<!--原煤硫分--> |
|
258 |
<el-card shadow="never" class="aui-card--fill" v-loading="raw.lf.loading"> |
|
259 |
<el-row type="flex" justify="space-around"> |
|
260 |
<el-col :span="4" style="margin-top: 40px" class="Border_l"> |
|
261 |
<el-row> |
|
262 |
<el-col :span="12"> |
|
263 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
264 |
当前值 |
|
265 |
</div> |
|
266 |
<div |
|
267 |
style=" |
|
268 |
width: 100%; |
|
269 |
height: 30px; |
|
270 |
margin-top: 10px; |
|
271 |
margin-bottom: 10px; |
|
272 |
color: #000000; |
|
273 |
font-size: 24px; |
|
274 |
" |
|
275 |
> |
|
276 |
<span>{{ raw.lf.currentValue }}</span> |
|
277 |
<span style="font-size: 14px">{{raw.lf.unit}}</span> |
|
278 |
</div> |
|
279 |
</el-col> |
|
280 |
<el-col :span="12"> |
|
281 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
282 |
分析长度 |
|
283 |
</div> |
|
284 |
<div |
|
285 |
style=" |
|
286 |
width: 100%; |
|
287 |
height: 30px; |
|
288 |
margin-top: 10px; |
|
289 |
margin-bottom: 10px; |
|
290 |
color: #000000; |
|
291 |
font-size: 24px; |
|
292 |
" |
|
293 |
> |
|
294 |
<span>{{ raw.lf.length }}</span |
|
295 |
><span style="font-size: 14px">天</span> |
|
296 |
</div> |
|
297 |
</el-col> |
|
298 |
</el-row> |
|
299 |
</el-col> |
|
300 |
<el-col :span="19"> |
|
301 |
<div> |
|
302 |
<div id="any-ymlf" style="margin-top: 20px" class="ecbox"></div> |
|
303 |
</div> |
|
304 |
</el-col> |
|
305 |
</el-row> |
|
306 |
<el-row> |
|
307 |
<el-col :span="12" class="Border_down" align="left"> |
|
308 |
<el-row |
|
309 |
type="flex" |
|
310 |
justify="center" |
|
311 |
align="middle" |
|
312 |
style="height: 5vh" |
|
313 |
> |
|
314 |
<el-col :span="5" style="padding-top:5vh"> |
|
315 |
<span style="font-size: 16px; font-weight: 600"> |
|
316 |
整体趋势{{raw.lf.trend}} |
|
317 |
<i :class="raw.lf.iconClass"></i> |
|
318 |
</span> |
|
319 |
</el-col> |
|
320 |
<el-col :span="5" style="padding-top:5vh"> |
|
321 |
<el-row style="font-size: 14px"> |
|
322 |
<span>平均值</span> |
|
323 |
</el-row> |
|
324 |
<el-row style="font-size: 14px"> |
|
325 |
<span>{{raw.lf.trendValue.mean_value}}</span> |
|
326 |
</el-row> |
|
327 |
</el-col> |
|
328 |
<el-col :span="5" style="padding-top:5vh"> |
|
329 |
<el-row style="font-size: 14px"> |
|
330 |
<span>最大值</span> |
|
331 |
</el-row> |
|
332 |
<el-row style="font-size: 14px"> |
|
333 |
<span>{{raw.lf.trendValue.max_value}}</span> |
|
334 |
</el-row> |
|
335 |
</el-col> |
|
336 |
<el-col :span="5" style="padding-top:5vh"> |
|
337 |
<el-row style="font-size: 14px"> |
|
338 |
<span>最小值</span> |
|
339 |
</el-row> |
|
340 |
<el-row style="font-size: 14px"> |
|
341 |
<span>{{raw.lf.trendValue.min_value}}</span> |
|
342 |
</el-row> |
|
343 |
</el-col> |
|
344 |
</el-row> |
|
345 |
</el-col> |
|
346 |
<el-col :span="12" class="Border_down" align="left"> |
|
347 |
<el-row style="margin-left: 2vh; margin-top: 1vh"> |
|
348 |
<span style="font-size: 14px; font-weight: 600">调度建议</span> |
|
349 |
</el-row> |
|
350 |
<el-row> |
|
351 |
<el-col |
|
352 |
:span="23" |
|
353 |
class="Border_text" |
|
354 |
style="margin-left: 2vh; margin-top: 1vh; padding-top: 10px" |
|
355 |
><span |
|
356 |
style=" |
|
357 |
margin-left: 2vh; |
|
358 |
font-size: 18px; |
|
359 |
font-family: '楷体'; |
|
360 |
font-weight: 600; |
|
361 |
color: red; |
|
362 |
" |
|
363 |
>{{raw.lf.dispatchSug}}</span> |
|
364 |
</el-col> |
|
365 |
</el-row> |
|
366 |
</el-col> |
|
367 |
</el-row> |
|
368 |
|
|
369 |
</el-card> |
|
370 |
|
|
371 |
<!--原煤热值--> |
|
372 |
<el-card shadow="never" class="aui-card--fill" v-loading="raw.rz.loading"> |
|
373 |
<el-row type="flex" justify="space-around"> |
|
374 |
<el-col :span="4" style="margin-top: 40px" class="Border_l"> |
|
375 |
<el-row> |
|
376 |
<el-col :span="12"> |
|
377 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
378 |
当前值 |
|
379 |
</div> |
|
380 |
<div |
|
381 |
style=" |
|
382 |
width: 100%; |
|
383 |
height: 30px; |
|
384 |
margin-top: 10px; |
|
385 |
margin-bottom: 10px; |
|
386 |
color: #000000; |
|
387 |
font-size: 24px; |
|
388 |
" |
|
389 |
> |
|
390 |
<span>{{ raw.rz.currentValue }}</span> |
|
391 |
<span style="font-size: 14px">{{raw.rz.unit}}</span> |
|
392 |
</div> |
|
393 |
</el-col> |
|
394 |
<el-col :span="12"> |
|
395 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
396 |
分析长度 |
|
397 |
</div> |
|
398 |
<div |
|
399 |
style=" |
|
400 |
width: 100%; |
|
401 |
height: 30px; |
|
402 |
margin-top: 10px; |
|
403 |
margin-bottom: 10px; |
|
404 |
color: #000000; |
|
405 |
font-size: 24px; |
|
406 |
" |
|
407 |
> |
|
408 |
<span>{{ raw.rz.length }}</span |
|
409 |
><span style="font-size: 14px">天</span> |
|
410 |
</div> |
|
411 |
</el-col> |
|
412 |
</el-row> |
|
413 |
</el-col> |
|
414 |
<el-col :span="19"> |
|
415 |
<div> |
|
416 |
<div id="any-ymrz" style="margin-top: 20px" class="ecbox"></div> |
|
417 |
</div> |
|
418 |
</el-col> |
|
419 |
</el-row> |
|
420 |
<el-row> |
|
421 |
<el-col :span="12" class="Border_down" align="left"> |
|
422 |
<el-row |
|
423 |
type="flex" |
|
424 |
justify="center" |
|
425 |
align="middle" |
|
426 |
style="height: 5vh" |
|
427 |
> |
|
428 |
<el-col :span="5" style="padding-top:5vh"> |
|
429 |
<span style="font-size: 16px; font-weight: 600"> |
|
430 |
整体趋势{{raw.rz.trend}} |
|
431 |
<i :class="raw.rz.iconClass"></i> |
|
432 |
</span> |
|
433 |
</el-col> |
|
434 |
<el-col :span="5" style="padding-top:5vh"> |
|
435 |
<el-row style="font-size: 14px"> |
|
436 |
<span>平均值</span> |
|
437 |
</el-row> |
|
438 |
<el-row style="font-size: 14px"> |
|
439 |
<span>{{raw.rz.trendValue.mean_value}}</span> |
|
440 |
</el-row> |
|
441 |
</el-col> |
|
442 |
<el-col :span="5" style="padding-top:5vh"> |
|
443 |
<el-row style="font-size: 14px"> |
|
444 |
<span>最大值</span> |
|
445 |
</el-row> |
|
446 |
<el-row style="font-size: 14px"> |
|
447 |
<span>{{raw.rz.trendValue.max_value}}</span> |
|
448 |
</el-row> |
|
449 |
</el-col> |
|
450 |
<el-col :span="5" style="padding-top:5vh"> |
|
451 |
<el-row style="font-size: 14px"> |
|
452 |
<span>最小值</span> |
|
453 |
</el-row> |
|
454 |
<el-row style="font-size: 14px"> |
|
455 |
<span>{{raw.rz.trendValue.min_value}}</span> |
|
456 |
</el-row> |
|
457 |
</el-col> |
|
458 |
</el-row> |
|
459 |
</el-col> |
|
460 |
<el-col :span="12" class="Border_down" align="left"> |
|
461 |
<el-row style="margin-left: 2vh; margin-top: 1vh"> |
|
462 |
<span style="font-size: 14px; font-weight: 600">调度建议</span> |
|
463 |
</el-row> |
|
464 |
<el-row> |
|
465 |
<el-col |
|
466 |
:span="23" |
|
467 |
class="Border_text" |
|
468 |
style="margin-left: 2vh; margin-top: 1vh; padding-top: 10px" |
|
469 |
><span |
|
470 |
style=" |
|
471 |
margin-left: 2vh; |
|
472 |
font-size: 18px; |
|
473 |
font-family: '楷体'; |
|
474 |
font-weight: 600; |
|
475 |
color: red; |
|
476 |
" |
|
477 |
>{{raw.rz.dispatchSug}}</span> |
|
478 |
</el-col> |
|
479 |
</el-row> |
|
480 |
</el-col> |
|
481 |
</el-row> |
|
482 |
|
|
483 |
</el-card> |
|
484 |
|
|
485 |
</div> |
|
486 |
</el-tab-pane> |
|
487 |
<el-tab-pane label="商品煤煤质趋势" name="second"> |
|
488 |
<el-form :inline="true" :model="hm.dataForm"> |
|
489 |
<el-form-item> |
|
490 |
<el-date-picker |
|
491 |
v-model="hm.dataForm.startDate" |
|
492 |
type="date" |
|
493 |
placeholder="选择开始时间" |
|
494 |
value-format="yyyy-MM-dd" |
|
495 |
> |
|
496 |
</el-date-picker> |
|
497 |
</el-form-item> |
|
498 |
<el-form-item> |
|
499 |
<el-date-picker |
|
500 |
v-model="hm.dataForm.endDate" |
|
501 |
type="date" |
|
502 |
placeholder="选择结束时间" |
|
503 |
value-format="yyyy-MM-dd" |
|
504 |
> |
|
505 |
</el-date-picker> |
|
506 |
</el-form-item> |
|
507 |
<el-form-item> |
|
508 |
<el-button :loading="hm.hf.loading" @click="init2">查询</el-button> |
|
509 |
</el-form-item> |
|
510 |
</el-form> |
|
511 |
<div class="scrollable-container"> |
|
512 |
<!--混煤灰分--> |
|
513 |
<el-card shadow="never" class="aui-card--fill" v-loading="hm.hf.loading"> |
|
514 |
<el-row type="flex" justify="space-around"> |
|
515 |
<el-col :span="4" style="margin-top: 40px" class="Border_l"> |
|
516 |
<el-row> |
|
517 |
<el-col :span="12"> |
|
518 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
519 |
当前值 |
|
520 |
</div> |
|
521 |
<div |
|
522 |
style=" |
|
523 |
width: 100%; |
|
524 |
height: 30px; |
|
525 |
margin-top: 10px; |
|
526 |
margin-bottom: 10px; |
|
527 |
color: #000000; |
|
528 |
font-size: 24px; |
|
529 |
" |
|
530 |
> |
|
531 |
<span>{{ hm.hf.currentValue }}</span> |
|
532 |
<span style="font-size: 14px">{{hm.hf.unit}}</span> |
|
533 |
</div> |
|
534 |
</el-col> |
|
535 |
<el-col :span="12"> |
|
536 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
537 |
分析长度 |
|
538 |
</div> |
|
539 |
<div |
|
540 |
style=" |
|
541 |
width: 100%; |
|
542 |
height: 30px; |
|
543 |
margin-top: 10px; |
|
544 |
margin-bottom: 10px; |
|
545 |
color: #000000; |
|
546 |
font-size: 24px; |
|
547 |
" |
|
548 |
> |
|
549 |
<span>{{ hm.hf.length }}</span |
|
550 |
><span style="font-size: 14px">天</span> |
|
551 |
</div> |
|
552 |
</el-col> |
|
553 |
</el-row> |
|
554 |
</el-col> |
|
555 |
<el-col :span="19"> |
|
556 |
<div> |
|
557 |
<div id="any-hmhf" style="margin-top: 20px" class="ecbox"></div> |
|
558 |
</div> |
|
559 |
</el-col> |
|
560 |
</el-row> |
|
561 |
<el-row> |
|
562 |
<el-col :span="12" class="Border_down" align="left"> |
|
563 |
<el-row |
|
564 |
type="flex" |
|
565 |
justify="center" |
|
566 |
align="middle" |
|
567 |
style="height: 5vh" |
|
568 |
> |
|
569 |
<el-col :span="5" style="padding-top:5vh"> |
|
570 |
<span style="font-size: 16px; font-weight: 600"> |
|
571 |
整体趋势{{hm.hf.trend}} |
|
572 |
<i :class="hm.hf.iconClass"></i> |
|
573 |
</span> |
|
574 |
</el-col> |
|
575 |
<el-col :span="5" style="padding-top:5vh"> |
|
576 |
<el-row style="font-size: 14px"> |
|
577 |
<span>平均值</span> |
|
578 |
</el-row> |
|
579 |
<el-row style="font-size: 14px"> |
|
580 |
<span>{{hm.hf.trendValue.mean_value}}</span> |
|
581 |
</el-row> |
|
582 |
</el-col> |
|
583 |
<el-col :span="5" style="padding-top:5vh"> |
|
584 |
<el-row style="font-size: 14px"> |
|
585 |
<span>最大值</span> |
|
586 |
</el-row> |
|
587 |
<el-row style="font-size: 14px"> |
|
588 |
<span>{{hm.hf.trendValue.max_value}}</span> |
|
589 |
</el-row> |
|
590 |
</el-col> |
|
591 |
<el-col :span="5" style="padding-top:5vh"> |
|
592 |
<el-row style="font-size: 14px"> |
|
593 |
<span>最小值</span> |
|
594 |
</el-row> |
|
595 |
<el-row style="font-size: 14px"> |
|
596 |
<span>{{hm.hf.trendValue.min_value}}</span> |
|
597 |
</el-row> |
|
598 |
</el-col> |
|
599 |
</el-row> |
|
600 |
</el-col> |
|
601 |
<el-col :span="12" class="Border_down" align="left"> |
|
602 |
<el-row style="margin-left: 2vh; margin-top: 1vh"> |
|
603 |
<span style="font-size: 14px; font-weight: 600">调度建议</span> |
|
604 |
</el-row> |
|
605 |
<el-row> |
|
606 |
<el-col |
|
607 |
:span="23" |
|
608 |
class="Border_text" |
|
609 |
style="margin-left: 2vh; margin-top: 1vh; padding-top: 10px" |
|
610 |
><span |
|
611 |
style=" |
|
612 |
margin-left: 2vh; |
|
613 |
font-size: 18px; |
|
614 |
font-family: '楷体'; |
|
615 |
font-weight: 600; |
|
616 |
color: red; |
|
617 |
" |
|
618 |
>{{hm.hf.dispatchSug}}</span> |
|
619 |
</el-col> |
|
620 |
</el-row> |
|
621 |
</el-col> |
|
622 |
</el-row> |
|
623 |
|
|
624 |
</el-card> |
|
625 |
|
|
626 |
<!--混煤水分--> |
|
627 |
<el-card shadow="never" class="aui-card--fill" v-loading="hm.sf.loading"> |
|
628 |
<el-row type="flex" justify="space-around"> |
|
629 |
<el-col :span="4" style="margin-top: 40px" class="Border_l"> |
|
630 |
<el-row> |
|
631 |
<el-col :span="12"> |
|
632 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
633 |
当前值 |
|
634 |
</div> |
|
635 |
<div |
|
636 |
style=" |
|
637 |
width: 100%; |
|
638 |
height: 30px; |
|
639 |
margin-top: 10px; |
|
640 |
margin-bottom: 10px; |
|
641 |
color: #000000; |
|
642 |
font-size: 24px; |
|
643 |
" |
|
644 |
> |
|
645 |
<span>{{ hm.sf.currentValue }}</span> |
|
646 |
<span style="font-size: 14px">{{hm.sf.unit}}</span> |
|
647 |
</div> |
|
648 |
</el-col> |
|
649 |
<el-col :span="12"> |
|
650 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
651 |
分析长度 |
|
652 |
</div> |
|
653 |
<div |
|
654 |
style=" |
|
655 |
width: 100%; |
|
656 |
height: 30px; |
|
657 |
margin-top: 10px; |
|
658 |
margin-bottom: 10px; |
|
659 |
color: #000000; |
|
660 |
font-size: 24px; |
|
661 |
" |
|
662 |
> |
|
663 |
<span>{{ hm.sf.length }}</span |
|
664 |
><span style="font-size: 14px">天</span> |
|
665 |
</div> |
|
666 |
</el-col> |
|
667 |
</el-row> |
|
668 |
</el-col> |
|
669 |
<el-col :span="19"> |
|
670 |
<div> |
|
671 |
<div id="any-hmsf" style="margin-top: 20px" class="ecbox"></div> |
|
672 |
</div> |
|
673 |
</el-col> |
|
674 |
</el-row> |
|
675 |
<el-row> |
|
676 |
<el-col :span="12" class="Border_down" align="left"> |
|
677 |
<el-row |
|
678 |
type="flex" |
|
679 |
justify="center" |
|
680 |
align="middle" |
|
681 |
style="height: 5vh" |
|
682 |
> |
|
683 |
<el-col :span="5" style="padding-top:5vh"> |
|
684 |
<span style="font-size: 16px; font-weight: 600"> |
|
685 |
整体趋势{{hm.sf.trend}} |
|
686 |
<i :class="hm.sf.iconClass"></i> |
|
687 |
</span> |
|
688 |
</el-col> |
|
689 |
<el-col :span="5" style="padding-top:5vh"> |
|
690 |
<el-row style="font-size: 14px"> |
|
691 |
<span>平均值</span> |
|
692 |
</el-row> |
|
693 |
<el-row style="font-size: 14px"> |
|
694 |
<span>{{hm.sf.trendValue.mean_value}}</span> |
|
695 |
</el-row> |
|
696 |
</el-col> |
|
697 |
<el-col :span="5" style="padding-top:5vh"> |
|
698 |
<el-row style="font-size: 14px"> |
|
699 |
<span>最大值</span> |
|
700 |
</el-row> |
|
701 |
<el-row style="font-size: 14px"> |
|
702 |
<span>{{hm.sf.trendValue.max_value}}</span> |
|
703 |
</el-row> |
|
704 |
</el-col> |
|
705 |
<el-col :span="5" style="padding-top:5vh"> |
|
706 |
<el-row style="font-size: 14px"> |
|
707 |
<span>最小值</span> |
|
708 |
</el-row> |
|
709 |
<el-row style="font-size: 14px"> |
|
710 |
<span>{{hm.sf.trendValue.min_value}}</span> |
|
711 |
</el-row> |
|
712 |
</el-col> |
|
713 |
</el-row> |
|
714 |
</el-col> |
|
715 |
<el-col :span="12" class="Border_down" align="left"> |
|
716 |
<el-row style="margin-left: 2vh; margin-top: 1vh"> |
|
717 |
<span style="font-size: 14px; font-weight: 600">调度建议</span> |
|
718 |
</el-row> |
|
719 |
<el-row> |
|
720 |
<el-col |
|
721 |
:span="23" |
|
722 |
class="Border_text" |
|
723 |
style="margin-left: 2vh; margin-top: 1vh; padding-top: 10px" |
|
724 |
><span |
|
725 |
style=" |
|
726 |
margin-left: 2vh; |
|
727 |
font-size: 18px; |
|
728 |
font-family: '楷体'; |
|
729 |
font-weight: 600; |
|
730 |
color: red; |
|
731 |
" |
|
732 |
>{{hm.sf.dispatchSug}}</span> |
|
733 |
</el-col> |
|
734 |
</el-row> |
|
735 |
</el-col> |
|
736 |
</el-row> |
|
737 |
|
|
738 |
</el-card> |
|
739 |
|
|
740 |
<!--混煤硫分--> |
|
741 |
<el-card shadow="never" class="aui-card--fill" v-loading="hm.lf.loading"> |
|
742 |
<el-row type="flex" justify="space-around"> |
|
743 |
<el-col :span="4" style="margin-top: 40px" class="Border_l"> |
|
744 |
<el-row> |
|
745 |
<el-col :span="12"> |
|
746 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
747 |
当前值 |
|
748 |
</div> |
|
749 |
<div |
|
750 |
style=" |
|
751 |
width: 100%; |
|
752 |
height: 30px; |
|
753 |
margin-top: 10px; |
|
754 |
margin-bottom: 10px; |
|
755 |
color: #000000; |
|
756 |
font-size: 24px; |
|
757 |
" |
|
758 |
> |
|
759 |
<span>{{ hm.lf.currentValue }}</span> |
|
760 |
<span style="font-size: 14px">{{hm.lf.unit}}</span> |
|
761 |
</div> |
|
762 |
</el-col> |
|
763 |
<el-col :span="12"> |
|
764 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
765 |
分析长度 |
|
766 |
</div> |
|
767 |
<div |
|
768 |
style=" |
|
769 |
width: 100%; |
|
770 |
height: 30px; |
|
771 |
margin-top: 10px; |
|
772 |
margin-bottom: 10px; |
|
773 |
color: #000000; |
|
774 |
font-size: 24px; |
|
775 |
" |
|
776 |
> |
|
777 |
<span>{{ hm.lf.length }}</span |
|
778 |
><span style="font-size: 14px">天</span> |
|
779 |
</div> |
|
780 |
</el-col> |
|
781 |
</el-row> |
|
782 |
</el-col> |
|
783 |
<el-col :span="19"> |
|
784 |
<div> |
|
785 |
<div id="any-hmlf" style="margin-top: 20px" class="ecbox"></div> |
|
786 |
</div> |
|
787 |
</el-col> |
|
788 |
</el-row> |
|
789 |
<el-row> |
|
790 |
<el-col :span="12" class="Border_down" align="left"> |
|
791 |
<el-row |
|
792 |
type="flex" |
|
793 |
justify="center" |
|
794 |
align="middle" |
|
795 |
style="height: 5vh" |
|
796 |
> |
|
797 |
<el-col :span="5" style="padding-top:5vh"> |
|
798 |
<span style="font-size: 16px; font-weight: 600"> |
|
799 |
整体趋势{{hm.lf.trend}} |
|
800 |
<i :class="hm.lf.iconClass"></i> |
|
801 |
</span> |
|
802 |
</el-col> |
|
803 |
<el-col :span="5" style="padding-top:5vh"> |
|
804 |
<el-row style="font-size: 14px"> |
|
805 |
<span>平均值</span> |
|
806 |
</el-row> |
|
807 |
<el-row style="font-size: 14px"> |
|
808 |
<span>{{hm.lf.trendValue.mean_value}}</span> |
|
809 |
</el-row> |
|
810 |
</el-col> |
|
811 |
<el-col :span="5" style="padding-top:5vh"> |
|
812 |
<el-row style="font-size: 14px"> |
|
813 |
<span>最大值</span> |
|
814 |
</el-row> |
|
815 |
<el-row style="font-size: 14px"> |
|
816 |
<span>{{hm.lf.trendValue.max_value}}</span> |
|
817 |
</el-row> |
|
818 |
</el-col> |
|
819 |
<el-col :span="5" style="padding-top:5vh"> |
|
820 |
<el-row style="font-size: 14px"> |
|
821 |
<span>最小值</span> |
|
822 |
</el-row> |
|
823 |
<el-row style="font-size: 14px"> |
|
824 |
<span>{{hm.lf.trendValue.min_value}}</span> |
|
825 |
</el-row> |
|
826 |
</el-col> |
|
827 |
</el-row> |
|
828 |
</el-col> |
|
829 |
<el-col :span="12" class="Border_down" align="left"> |
|
830 |
<el-row style="margin-left: 2vh; margin-top: 1vh"> |
|
831 |
<span style="font-size: 14px; font-weight: 600">调度建议</span> |
|
832 |
</el-row> |
|
833 |
<el-row> |
|
834 |
<el-col |
|
835 |
:span="23" |
|
836 |
class="Border_text" |
|
837 |
style="margin-left: 2vh; margin-top: 1vh; padding-top: 10px" |
|
838 |
><span |
|
839 |
style=" |
|
840 |
margin-left: 2vh; |
|
841 |
font-size: 18px; |
|
842 |
font-family: '楷体'; |
|
843 |
font-weight: 600; |
|
844 |
color: red; |
|
845 |
" |
|
846 |
>{{hm.lf.dispatchSug}}</span> |
|
847 |
</el-col> |
|
848 |
</el-row> |
|
849 |
</el-col> |
|
850 |
</el-row> |
|
851 |
|
|
852 |
</el-card> |
|
853 |
|
|
854 |
<!--混煤热值--> |
|
855 |
<el-card shadow="never" class="aui-card--fill" v-loading="hm.rz.loading"> |
|
856 |
<el-row type="flex" justify="space-around"> |
|
857 |
<el-col :span="4" style="margin-top: 40px" class="Border_l"> |
|
858 |
<el-row> |
|
859 |
<el-col :span="12"> |
|
860 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
861 |
当前值 |
|
862 |
</div> |
|
863 |
<div |
|
864 |
style=" |
|
865 |
width: 100%; |
|
866 |
height: 30px; |
|
867 |
margin-top: 10px; |
|
868 |
margin-bottom: 10px; |
|
869 |
color: #000000; |
|
870 |
font-size: 24px; |
|
871 |
" |
|
872 |
> |
|
873 |
<span>{{ hm.rz.currentValue }}</span> |
|
874 |
<span style="font-size: 14px">{{hm.rz.unit}}</span> |
|
875 |
</div> |
|
876 |
</el-col> |
|
877 |
<el-col :span="12"> |
|
878 |
<div style="width: 100%; text-align: left; font-size: 18px"> |
|
879 |
分析长度 |
|
880 |
</div> |
|
881 |
<div |
|
882 |
style=" |
|
883 |
width: 100%; |
|
884 |
height: 30px; |
|
885 |
margin-top: 10px; |
|
886 |
margin-bottom: 10px; |
|
887 |
color: #000000; |
|
888 |
font-size: 24px; |
|
889 |
" |
|
890 |
> |
|
891 |
<span>{{ hm.rz.length }}</span |
|
892 |
><span style="font-size: 14px">天</span> |
|
893 |
</div> |
|
894 |
</el-col> |
|
895 |
</el-row> |
|
896 |
</el-col> |
|
897 |
<el-col :span="19"> |
|
898 |
<div> |
|
899 |
<div id="any-hmrz" style="margin-top: 20px" class="ecbox"></div> |
|
900 |
</div> |
|
901 |
</el-col> |
|
902 |
</el-row> |
|
903 |
<el-row> |
|
904 |
<el-col :span="12" class="Border_down" align="left"> |
|
905 |
<el-row |
|
906 |
type="flex" |
|
907 |
justify="center" |
|
908 |
align="middle" |
|
909 |
style="height: 5vh" |
|
910 |
> |
|
911 |
<el-col :span="5" style="padding-top:5vh"> |
|
912 |
<span style="font-size: 16px; font-weight: 600"> |
|
913 |
整体趋势{{hm.rz.trend}} |
|
914 |
<i :class="hm.rz.iconClass"></i> |
|
915 |
</span> |
|
916 |
</el-col> |
|
917 |
<el-col :span="5" style="padding-top:5vh"> |
|
918 |
<el-row style="font-size: 14px"> |
|
919 |
<span>平均值</span> |
|
920 |
</el-row> |
|
921 |
<el-row style="font-size: 14px"> |
|
922 |
<span>{{hm.rz.trendValue.mean_value}}</span> |
|
923 |
</el-row> |
|
924 |
</el-col> |
|
925 |
<el-col :span="5" style="padding-top:5vh"> |
|
926 |
<el-row style="font-size: 14px"> |
|
927 |
<span>最大值</span> |
|
928 |
</el-row> |
|
929 |
<el-row style="font-size: 14px"> |
|
930 |
<span>{{hm.rz.trendValue.max_value}}</span> |
|
931 |
</el-row> |
|
932 |
</el-col> |
|
933 |
<el-col :span="5" style="padding-top:5vh"> |
|
934 |
<el-row style="font-size: 14px"> |
|
935 |
<span>最小值</span> |
|
936 |
</el-row> |
|
937 |
<el-row style="font-size: 14px"> |
|
938 |
<span>{{hm.rz.trendValue.min_value}}</span> |
|
939 |
</el-row> |
|
940 |
</el-col> |
|
941 |
</el-row> |
|
942 |
</el-col> |
|
943 |
<el-col :span="12" class="Border_down" align="left"> |
|
944 |
<el-row style="margin-left: 2vh; margin-top: 1vh"> |
|
945 |
<span style="font-size: 14px; font-weight: 600">调度建议</span> |
|
946 |
</el-row> |
|
947 |
<el-row> |
|
948 |
<el-col |
|
949 |
:span="23" |
|
950 |
class="Border_text" |
|
951 |
style="margin-left: 2vh; margin-top: 1vh; padding-top: 10px" |
|
952 |
><span |
|
953 |
style=" |
|
954 |
margin-left: 2vh; |
|
955 |
font-size: 18px; |
|
956 |
font-family: '楷体'; |
|
957 |
font-weight: 600; |
|
958 |
color: red; |
|
959 |
" |
|
960 |
>{{hm.rz.dispatchSug}}</span> |
|
961 |
</el-col> |
|
962 |
</el-row> |
|
963 |
</el-col> |
|
964 |
</el-row> |
|
965 |
|
|
966 |
</el-card> |
|
967 |
</div> |
|
968 |
</el-tab-pane> |
|
969 |
</el-tabs> |
|
970 |
</el-card> |
|
971 |
</template> |
|
972 |
<script> |
|
973 |
import {getSeriesData} from '@/utils/mathUtils' |
|
974 |
|
|
975 |
export default { |
|
976 |
data() { |
|
977 |
return { |
|
978 |
activeName: 'first', |
|
979 |
raw: { |
|
980 |
dataForm: { |
|
981 |
startDate: '', |
|
982 |
endDate: '', |
|
983 |
}, |
|
984 |
hf: { |
|
985 |
loading: false, |
|
986 |
page: 'rowCoal', |
|
987 |
paramCode: 'ymhf', |
|
988 |
chartName: '原煤灰分', |
|
989 |
chartCode: '', |
|
990 |
chart: {}, |
|
991 |
length: 0, |
|
992 |
unit: '', |
|
993 |
maxSlope: 0, |
|
994 |
minSlope: 0, |
|
995 |
currentValue: 0, |
|
996 |
trend: '', |
|
997 |
iconClass: '', |
|
998 |
trendValue: { |
|
999 |
mean_value: '', |
|
1000 |
max_value: '', |
|
1001 |
min_value: '', |
|
1002 |
}, |
|
1003 |
dispatchSug: '' |
|
1004 |
}, |
|
1005 |
sf: { |
|
1006 |
loading: false, |
|
1007 |
page: 'rowCoal', |
|
1008 |
paramCode: 'ymsf', |
|
1009 |
chartName: '原煤水分', |
|
1010 |
chartCode: '', |
|
1011 |
chart: {}, |
|
1012 |
length: 0, |
|
1013 |
unit: '', |
|
1014 |
maxSlope: 0, |
|
1015 |
minSlope: 0, |
|
1016 |
currentValue: 0, |
|
1017 |
trend: '', |
|
1018 |
iconClass: '', |
|
1019 |
trendValue: { |
|
1020 |
mean_value: '', |
|
1021 |
max_value: '', |
|
1022 |
min_value: '', |
|
1023 |
}, |
|
1024 |
dispatchSug: '' |
|
1025 |
}, |
|
1026 |
lf: { |
|
1027 |
loading: false, |
|
1028 |
page: 'rowCoal', |
|
1029 |
paramCode: 'ymlf', |
|
1030 |
chartName: '原煤硫分', |
|
1031 |
chartCode: '', |
|
1032 |
chart: {}, |
|
1033 |
length: 0, |
|
1034 |
unit: '', |
|
1035 |
maxSlope: 0, |
|
1036 |
minSlope: 0, |
|
1037 |
currentValue: 0, |
|
1038 |
trend: '', |
|
1039 |
iconClass: '', |
|
1040 |
trendValue: { |
|
1041 |
mean_value: '', |
|
1042 |
max_value: '', |
|
1043 |
min_value: '', |
|
1044 |
}, |
|
1045 |
dispatchSug: '' |
|
1046 |
}, |
|
1047 |
rz: { |
|
1048 |
loading: false, |
|
1049 |
page: 'rowCoal', |
|
1050 |
paramCode: 'ymrz', |
|
1051 |
chartName: '原煤热值', |
|
1052 |
chartCode: '', |
|
1053 |
chart: {}, |
|
1054 |
length: 0, |
|
1055 |
unit: '', |
|
1056 |
maxSlope: 0, |
|
1057 |
minSlope: 0, |
|
1058 |
currentValue: 0, |
|
1059 |
trend: '', |
|
1060 |
iconClass: '', |
|
1061 |
trendValue: { |
|
1062 |
mean_value: '', |
|
1063 |
max_value: '', |
|
1064 |
min_value: '', |
|
1065 |
}, |
|
1066 |
dispatchSug: '' |
|
1067 |
} |
|
1068 |
|
|
1069 |
}, |
|
1070 |
hm: { |
|
1071 |
dataForm: { |
|
1072 |
startDate: '', |
|
1073 |
endDate: '', |
|
1074 |
}, |
|
1075 |
hf: { |
|
1076 |
loading: false, |
|
1077 |
page: 'wash', |
|
1078 |
paramCode: 'hmhf', |
|
1079 |
chartName: '混煤灰分', |
|
1080 |
chartCode: '', |
|
1081 |
chart: {}, |
|
1082 |
length: 0, |
|
1083 |
unit: '', |
|
1084 |
maxSlope: 0, |
|
1085 |
minSlope: 0, |
|
1086 |
currentValue: 0, |
|
1087 |
trend: '', |
|
1088 |
iconClass: '', |
|
1089 |
trendValue: { |
|
1090 |
mean_value: '', |
|
1091 |
max_value: '', |
|
1092 |
min_value: '', |
|
1093 |
}, |
|
1094 |
dispatchSug: '' |
|
1095 |
}, |
|
1096 |
sf: { |
|
1097 |
loading: false, |
|
1098 |
page: 'wash', |
|
1099 |
paramCode: 'hmsf', |
|
1100 |
chartName: '混煤水分', |
|
1101 |
chartCode: '', |
|
1102 |
chart: {}, |
|
1103 |
length: 0, |
|
1104 |
unit: '', |
|
1105 |
maxSlope: 0, |
|
1106 |
minSlope: 0, |
|
1107 |
currentValue: 0, |
|
1108 |
trend: '', |
|
1109 |
iconClass: '', |
|
1110 |
trendValue: { |
|
1111 |
mean_value: '', |
|
1112 |
max_value: '', |
|
1113 |
min_value: '', |
|
1114 |
}, |
|
1115 |
dispatchSug: '' |
|
1116 |
}, |
|
1117 |
lf: { |
|
1118 |
loading: false, |
|
1119 |
page: 'wash', |
|
1120 |
paramCode: 'hmlf', |
|
1121 |
chartName: '混煤硫分', |
|
1122 |
chartCode: '', |
|
1123 |
chart: {}, |
|
1124 |
length: 0, |
|
1125 |
unit: '', |
|
1126 |
maxSlope: 0, |
|
1127 |
minSlope: 0, |
|
1128 |
currentValue: 0, |
|
1129 |
trend: '', |
|
1130 |
iconClass: '', |
|
1131 |
trendValue: { |
|
1132 |
mean_value: '', |
|
1133 |
max_value: '', |
|
1134 |
min_value: '', |
|
1135 |
}, |
|
1136 |
dispatchSug: '' |
|
1137 |
}, |
|
1138 |
rz: { |
|
1139 |
loading: false, |
|
1140 |
page: 'wash', |
|
1141 |
paramCode: 'hmrz', |
|
1142 |
chartName: '混煤热值', |
|
1143 |
chartCode: '', |
|
1144 |
chart: {}, |
|
1145 |
length: 0, |
|
1146 |
unit: '', |
|
1147 |
maxSlope: 0, |
|
1148 |
minSlope: 0, |
|
1149 |
currentValue: 0, |
|
1150 |
trend: '', |
|
1151 |
iconClass: '', |
|
1152 |
trendValue: { |
|
1153 |
mean_value: '', |
|
1154 |
max_value: '', |
|
1155 |
min_value: '', |
|
1156 |
}, |
|
1157 |
dispatchSug: '' |
|
1158 |
} |
|
1159 |
|
|
1160 |
} |
|
1161 |
|
|
1162 |
} |
|
1163 |
}, |
|
1164 |
mounted() { |
|
1165 |
this.init1() |
|
1166 |
}, |
|
1167 |
methods: { |
|
1168 |
init1() { |
|
1169 |
this.getChartData(this.raw.hf, this.raw.dataForm) |
|
1170 |
this.getChartData(this.raw.sf, this.raw.dataForm) |
|
1171 |
this.getChartData(this.raw.lf, this.raw.dataForm) |
|
1172 |
this.getChartData(this.raw.rz, this.raw.dataForm) |
|
1173 |
}, |
|
1174 |
init2() { |
|
1175 |
this.getChartData(this.hm.hf, this.hm.dataForm) |
|
1176 |
this.getChartData(this.hm.sf, this.hm.dataForm) |
|
1177 |
this.getChartData(this.hm.lf, this.hm.dataForm) |
|
1178 |
this.getChartData(this.hm.rz, this.hm.dataForm) |
|
1179 |
}, |
|
1180 |
getChartData(chartData, dataForm) { |
|
1181 |
let myChart = this.$echarts.init(document.getElementById("any-" + chartData.paramCode)); |
|
1182 |
chartData.loading = true |
|
1183 |
this.$http.get(`/iailab-ntt-model/any/ind-item/trend/`, { |
|
1184 |
params: { |
|
1185 |
startDate: dataForm.startDate, |
|
1186 |
endDate: dataForm.endDate, |
|
1187 |
page: chartData.page, |
|
1188 |
paramCode: chartData.paramCode |
|
1189 |
} |
|
1190 |
}).then(({data: res}) => { |
|
1191 |
chartData.loading = false |
|
1192 |
if (res.code !== 0) { |
|
1193 |
return this.$message.error(res.msg) |
|
1194 |
} |
|
1195 |
|
|
1196 |
chartData.chartCode = res.data.chartCode |
|
1197 |
chartData.length = res.data.length |
|
1198 |
chartData.unit = res.data.unit |
|
1199 |
chartData.maxSlope = res.data.maxSlope |
|
1200 |
chartData.minSlope = res.data.minSlope |
|
1201 |
chartData.currentValue = res.data.currentValue |
|
1202 |
chartData.trend = res.data.trend |
|
1203 |
chartData.iconClass = res.data.iconClass |
|
1204 |
chartData.trendValue = res.data.trendValue |
|
1205 |
chartData.dispatchSug = res.data.dispatchSug |
|
1206 |
let valueData = [] |
|
1207 |
let xAxis = [] |
|
1208 |
res.data.valueList.forEach((item) => { |
|
1209 |
xAxis.push(item.dataTime) |
|
1210 |
if (item.dataValue && item.dataValue >= 0) { |
|
1211 |
valueData.push([item.dataTime, item.dataValue]) |
|
1212 |
} |
|
1213 |
}) |
|
1214 |
let length = 0 |
|
1215 |
if (xAxis.length > 0 && valueData.length > 0) { |
|
1216 |
length = xAxis.indexOf(valueData[valueData.length - 1][0]) + 1 || xAxis.length |
|
1217 |
} |
|
1218 |
let trendDate = getSeriesData(chartData.trendValue.slope, chartData.trendValue.bias, length) |
|
1219 |
let option = { |
|
1220 |
title: { |
|
1221 |
text: chartData.chartName, |
|
1222 |
}, |
|
1223 |
tooltip: { |
|
1224 |
trigger: "axis", |
|
1225 |
}, |
|
1226 |
grid: { |
|
1227 |
left: "3%", |
|
1228 |
right: "4%", |
|
1229 |
bottom: "3%", |
|
1230 |
containLabel: true, |
|
1231 |
}, |
|
1232 |
xAxis: { |
|
1233 |
type: "category", |
|
1234 |
boundaryGap: false, |
|
1235 |
data: xAxis, |
|
1236 |
}, |
|
1237 |
yAxis: { |
|
1238 |
type: "value", |
|
1239 |
}, |
|
1240 |
series: [ |
|
1241 |
{ |
|
1242 |
name: chartData.chartName, |
|
1243 |
type: "line", |
|
1244 |
smooth: true, |
|
1245 |
stack: "Total", |
|
1246 |
data: valueData, |
|
1247 |
}, |
|
1248 |
{ |
|
1249 |
name: '趋势', |
|
1250 |
data: trendDate, |
|
1251 |
type: 'line', |
|
1252 |
smooth: true, |
|
1253 |
showSymbol: false, |
|
1254 |
color: '#FFAA5D' |
|
1255 |
} |
|
1256 |
], |
|
1257 |
}; |
|
1258 |
if (option && typeof option === "object") { |
|
1259 |
myChart.setOption(option); |
|
1260 |
} |
|
1261 |
}) |
|
1262 |
|
|
1263 |
}, |
|
1264 |
handleClick(tab, event) { |
|
1265 |
let that = this |
|
1266 |
if ('first' === tab.name) { |
|
1267 |
setTimeout(function () { |
|
1268 |
that.init1() |
|
1269 |
}, 500) |
|
1270 |
} else if ('second' === tab.name) { |
|
1271 |
setTimeout(function () { |
|
1272 |
that.init2() |
|
1273 |
}, 500) |
|
1274 |
} |
|
1275 |
} |
|
1276 |
} |
|
1277 |
} |
|
1278 |
|
|
1279 |
</script> |
|
1280 |
<style scoped> |
|
1281 |
.scrollable-container { |
|
1282 |
overflow: auto; |
|
1283 |
width: 100%; |
|
1284 |
margin: -10px; |
|
1285 |
height: calc(calc(100vh - 48px - 38px - 35px - 150px)); |
|
1286 |
|
|
1287 |
} |
|
1288 |
|
|
1289 |
.ecbox { |
|
1290 |
width: 100%; |
|
1291 |
height: 30vh; |
|
1292 |
} |
|
1293 |
|
|
1294 |
.Border { |
|
1295 |
height: 42vh; |
|
1296 |
} |
|
1297 |
|
|
1298 |
.Border_l { |
|
1299 |
height: 20vh; |
|
1300 |
} |
|
1301 |
|
|
1302 |
.Border_down { |
|
1303 |
border: 1px solid #F2F3F5; |
|
1304 |
height: 12vh; |
|
1305 |
} |
|
1306 |
|
|
1307 |
.Border_text { |
|
1308 |
background-color: #F2F3F5; |
|
1309 |
border: 1px solid #F2F3F5; |
|
1310 |
height: 7vh; |
|
1311 |
} |
|
1312 |
</style> |