-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpredict&dispatch.html
714 lines (670 loc) · 26.8 KB
/
predict&dispatch.html
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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>汕头微电网大屏</title>
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/source.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.predictData .rel .networkTradeCon{
opacity: 0;
}
.predictElePrice .rel ul li{
opacity: 0;
}
.surfeIntert .rel .networkTradeCon{
opacity: 0;
}
.progress_box ,.progress_box ul li{
opacity: 0;
}
.title,.pro_box{
opacity: 0;
}
/*.sourceTurbineOne{*/
/*opacity: 0;*/
/*}*/
/*.predictTurbineOne .rel ul li{*/
/*opacity: 0;*/
/*}*/
.predictTurbineOne,
.predictTurbineTwo,
.predictTurbineThree,
.predictTurbineFour,
.predictTurbineFive,
.predictTurbineSix,
.predictTurbineSeven,
.sourceTurbineEight,
.sourceTurbineNine
{
opacity:0;
}
</style>
</head>
<body>
<div class="sourceLeftMask"></div>
<div class="sourceLeft">
<div class="sourceSloganDIv">
<div class="sourceSlogan">
<p>智慧园区能源系统</p>
</div>
</div>
<ul class="rightChart predictlist">
<!--<li>-->
<!--<div class="rightChart predictChart">-->
<!--<div class="chartHeader predictHeaderline"><p class="predictOneHeader">风速与辐照度预测曲线</p> <p></p> <p class="predictShort"> <img src="images/changeBtn.png" alt=""></p></div>-->
<!--<div class="predictHeader"><p class="predictWindspeed">风速</p><p class="predictRadiance">辐射度</p><p class="unitPredictNew oneDan">单位:m/s</p> </div>-->
<!--<div id="leftChartPredictOne">-->
<!--</div>-->
<!--</div>-->
<!--</li>-->
<li>
<div class="rightChart predictChart">
<div class="chartHeader"><p class="predictTwoHeader">风功率预测曲线</p><p class="unitPredictNew ">单位:kW</p><p class="predictShort wind"> <span data-flag="wind">短期</span><img src="images/changeBtn.png" alt=""></p></div>
<div id="leftChartPredictTwo">
</div>
</div>
</li>
<li>
<div class="rightChart predictChart">
<div class="chartHeader"><p class="predictThreeHeader">光功率预测曲线</p><p class="unitPredictNew">单位:kW</p><p class="predictShort light"><span data-flag="light">短期</span> <img src="images/changeBtn.png" alt=""></p></div>
<div id="leftChartPredictThree">
</div>
</div>
</li>
<li>
<div class="rightChart predictChart">
<div class="chartHeader"><p class="predictFourHeader">负荷预测曲线</p><p class="unitPredictNew">单位:kW</p><p class="predictShort load"><span data-flag="load">短期</span> <img src="images/changeBtn.png" alt=""></p></div>
<div id="leftChartPredictFour">
</div>
</div>
</li>
<li>
<div class="rightChart predictChart">
<div class="chartHeader"><p class="predictFiveHeader">充放电出力曲线</p><p class="unitPredictNew">单位:kW</p><p class="predictShort charge"><span data-flag="charge">短期</span> <img src="images/changeBtn.png" alt=""></p></div>
<div id="leftChartPredictFive">
</div>
</div>
</li>
</ul>
</div>
<div class="contentPredict">
<div class="pro_box">
<div class="title">
<h2>园区当前状态</h2>
</div>
<div class="progress_box">
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<p><span></span> 各项设施运转正常 <span></span></p>
</div>
</div>
<div class="mainHeader">
<div class="mainNav">
<div class="nav"></div>
<div class="navNow">
<img src="images/dix.png" style=" margin-top: 5px;" alt=""><p>预测与调度</p>
</div>
</div>
<div class="KPI first predictKpiOne predictKpiPadding">
<p>目标总收益</p>
<h2> <span>元</span></h2>
</div>
<div class="KPI secondKpi predictKpiTwo predictKpiPadding">
<p>日总成本</p>
<h2> <span>元</span></h2>
</div>
<div class="KPI kpiProgress predictKpiPadding">
<div id="KPIProgressChartOne"></div>
<div>
<p>日风机</p>
<h2> <span>元</span></h2>
</div>
</div>
<div class="KPI kpiProgress predictKpiPadding">
<div id="KPIProgressChartTwo"></div>
<div>
<p>日光伏</p>
<h2> <span>元</span></h2>
</div>
</div>
<div class="KPI kpiProgress predictKpiPadding">
<div id="KPIProgressChartThree"></div>
<div>
<p>日储能</p>
<h2> <span>元</span></h2>
</div>
</div>
<div class="KPI kpiProgress predictKpiPadding">
<div id="KPIProgressChartFour"></div>
<div>
<p>日电费</p>
<h2> <span>元</span></h2>
</div>
</div>
</div>
<div class="networkTrade predictData perfectData ">
<div class="rel cd">
<h2>预测数据</h2>
<div class="networkTradeCon">
<p class="indexMainInfoTitle">风功率预测</p>
<p><span>kW</span></p>
</div>
<div class="networkTradeCon">
<p class="indexMainInfoTitle">光功率预测</p>
<p><span>kW</span></p>
</div>
<div class="networkTradeCon">
<p class="indexMainInfoTitle">负荷预测</p>
<p><span>kW</span></p>
</div>
</div>
</div>
<div class="surfeIntert mergeDetail">
<div class="rel cd">
<h2>并网详情</h2>
<div class="networkTradeCon">
<p class="indexMainInfoTitle">并网电源</p>
<p> <span>主电源</span></p>
</div>
<div class="networkTradeCon">
<p class="indexMainInfoTitle">并网容量</p>
<p><span>kW</span></p>
</div>
</div>
</div>
<div class ='box'>
<div class="sourceTurbineOne predictTurbineOne">
<div class="rel cd">
<div class="turbineHeader">
<h2>风机1</h2>
<p class="statusTurbine">运行</p>
</div>
<ul>
<li>
<p class="indexMainInfoTitle">有功给定</p>
<p><span></span><span>kW</span></p>
</li>
<li>
<p class="indexMainInfoTitle">无功给定</p>
<p><span></span><span>kVar</span></p>
</li>
</ul>
</div>
</div>
<div class="sourceTurbineTwo predictTurbineTwo">
<div class="rel fjTwo">
<div class="turbineHeader">
<h2>风机2</h2>
<p class="statusTurbine">运行</p>
</div>
<ul>
<li>
<p class="indexMainInfoTitle">有功给定</p>
<p><span></span><span>kW</span></p>
</li>
<li>
<p class="indexMainInfoTitle">无功给定</p>
<p><span></span><span>kVar</span></p>
</li>
</ul>
</div>
</div>
<div class="sourceTurbineThree predictTurbineThree">
<div class="rel GfOne">
<div class="turbineHeader">
<h2>光伏1</h2>
<p class="statusTurbine">运行</p>
</div>
<ul>
<li>
<p class="indexMainInfoTitle">有功给定</p>
<p><span></span><span> kW</span></p>
</li>
<li>
<p class="indexMainInfoTitle">无功给定</p>
<p><span></span><span> kVar</span></p>
</li>
</ul>
</div>
</div>
<div class="sourceTurbineFour predictTurbineFour">
<div class="rel GfTwo">
<div class="turbineHeader">
<h2>光伏2</h2>
<p class="statusTurbine errorTitle">故障</p>
</div>
<ul>
<li>
<p class="indexMainInfoTitle">有功给定</p>
<p><span></span><span> kW</span></p>
</li>
<li>
<p class="indexMainInfoTitle">无功给定</p>
<p><span></span><span> kVar</span></p>
</li>
</ul>
</div>
</div>
<div class="sourceTurbineFive predictTurbineFive">
<div class="rel mainDY">
<div class="turbineHeader">
<h2>主电源</h2>
<p class="statusTurbine errorTitle ">故障</p>
</div>
<ul>
<li>
<p class="indexMainInfoTitle">并网电压</p>
<p> <span></span><span> pu</span></p>
</li>
<li>
<p class="indexMainInfoTitle">并网频率</p>
<p><span></span><span> HZ</span></p>
</li>
</ul>
</div>
</div>
<div class="sourceTurbineSix predictTurbineSix">
<div class="rel twoDY">
<div class="turbineHeader">
<h2>备用电源</h2>
<p class="statusTurbine">运行</p>
</div>
<ul>
<li>
<p class="indexMainInfoTitle">有功给定</p>
<p> <span></span><span> kW</span></p>
</li>
<li>
<p class="indexMainInfoTitle">无功给定</p>
<p> <span></span><span> kVar</span></p>
</li>
</ul>
</div>
</div>
<div class="sourceTurbineSeven predictTurbineSeven">
<div class="rel CDZ">
<div class="turbineHeader">
<h2>充电桩</h2>
<p class="statusTurbine">运行</p>
</div>
<ul>
<li>
<p class="indexMainInfoTitle">充电功率</p>
<p> <span></span><span> kW</span></p>
</li>
<li>
<p class="indexMainInfoTitle">功率限制</p>
<p> <span></span> <span> %</span></p>
</li>
</ul>
</div>
</div>
<div class="sourceTurbineEight predictTurbineEight">
<div class="rel CN">
<div class="turbineHeader">
<h2>储能</h2>
<p class="statusTurbine">运行</p>
</div>
<ul>
<li>
<p class="indexMainInfoTitle">有功给定</p>
<p> <span></span> <span> kW</span></p>
</li>
<li>
<p class="indexMainInfoTitle">无功给定</p>
<p> <span></span> <span> kVar</span></p>
</li>
</ul>
</div>
</div>
<div class="sourceTurbineNine predictTurbineNine">
<div class="rel KT">
<div class="turbineHeader">
<h2>空调</h2>
<p class="statusTurbine">运行</p>
</div>
<ul>
<li>
<p class="indexMainInfoTitle">平均温度</p>
<p> <span></span><span> ℃</span></p>
</li>
<li>
<p class="indexMainInfoTitle">平均是度</p>
<p> <span></span><span> %</span></p>
</li>
</ul>
</div>
</div>
</div>
<div class="predictElePrice">
<div class="rel cd">
<div class="predictElePriceHeader">
<p>上网电价</p>
<p>补贴电价</p>
<p>工业电价</p>
</div>
<ul>
<li>
<p>风机</p>
<div class="predictElePriceCon">
<p></p>
<p></p>
<p><em></em><span>元/kWh</span></p>
</div>
</li>
<li>
<p>光伏</p>
<div class="predictElePriceCon">
<p></p>
<p></p>
<p><em></em><span>元/kWh</span></p>
</div>
</li>
<li>
<p>负荷</p>
<div class="predictElePriceCon">
<p></p>
<p></p>
<p><em></em><span>元/kWh</span></p>
</div>
</li>
</ul>
</div>
</div>
<!-- <div class="loadCharge">-->
<!-- <div class="rel cd">-->
<!-- <div class="turbineHeader">-->
<!-- <h2>充电桩</h2>-->
<!-- <p class="statusTurbine">正常</p>-->
<!-- </div>-->
<!-- <ul>-->
<!-- <li>-->
<!-- <p class="indexMainInfoTitle">功率</p>-->
<!-- <p>1000 KW</p>-->
<!-- </li>-->
<!-- <li>-->
<!-- <p class="indexMainInfoTitle">負荷占比</p>-->
<!-- <p>3000kW</p>-->
<!-- </li>-->
<!-- </ul>-->
<!-- <ul>-->
<!-- <li>-->
<!-- <p class="indexMainInfoTitle">控制方式</p>-->
<!-- <p>远程控制</p>-->
<!-- </li>-->
<!-- </ul>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="loadAssemble">-->
<!-- <div class="rel cd">-->
<!-- <div class="turbineHeader">-->
<!-- <h2>装配基地</h2>-->
<!-- </div>-->
<!-- <ul>-->
<!-- <li>-->
<!-- <p class="indexMainInfoTitle">溫度</p>-->
<!-- <p>6m/s</p>-->
<!-- </li>-->
<!-- <li>-->
<!-- <p class="indexMainInfoTitle">负荷占比</p>-->
<!-- <p>3000kW</p>-->
<!-- </li>-->
<!-- </ul>-->
<!-- <ul>-->
<!-- <li>-->
<!-- <p class="indexMainInfoTitle">湿度</p>-->
<!-- <p>3000kW</p>-->
<!-- </li>-->
<!-- </ul>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="loadBuilding">-->
<!-- <div class="rel cd">-->
<!-- <div class="turbineHeader">-->
<!-- <h2>综合楼</h2>-->
<!-- </div>-->
<!-- <ul>-->
<!-- <li>-->
<!-- <p class="indexMainInfoTitle">功率</p>-->
<!-- <p>6m/s</p>-->
<!-- </li>-->
<!-- <li>-->
<!-- <p class="indexMainInfoTitle">负荷占比</p>-->
<!-- <p>3000kW</p>-->
<!-- </li>-->
<!-- </ul>-->
<!-- </div>-->
<!-- </div>-->
</div>
<div class="sourceRight">
<div class="rightHeader">
<p class="BeiJingTime"></p>
<p class="ExactlyTime"></p>
</div>
<div class="sourceRightContent predictRightContent">
<div class="sourceRightContentHeader">
<h2 class="predictH2Short">预测功率与实际功率曲线</h2>
</div>
<div class="predictRightHeader">
<p class="predictWindspeed">风机</p>
<p class="predictRadiance">光伏</p>
<p class="predictRadiance">负荷</p>
<p class="predictShort"> <span class="short" data-flag = 'short'>短期</span> <img src="images/changeBtn.png" alt=""></p></div>
<div class="NetworkRightContentList predictConList">
<div class="predictDan"><p class="unitPredictNew">单位:kW</p></div>
<div class="predictRightPie" id="predictRightPieOne">
</div>
</div>
</div>
<div class="sourceRightContent predictRightContent">
<div class="sourceRightContentHeader">
<h2 class="predictH2long">日前调度指令曲线</h2>
</div>
<div class="NetworkRightContentList predictConList">
<div class="predictDanTwo"><p class="unitPredictNew">单位:kW</p></div>
<div class="predictRightPie" id="predictRightPieTwo">
</div>
</div>
</div>
<div class="sourceRightContent predictRightContent">
<div class="sourceRightContentHeader ">
<h2 class="predictH2long sourcePos predictPoin">日内调度指令曲线</h2>
<!--<p class="unitPredict">单位:kW</p>-->
</div>
<div class="NetworkRightContentList predictConList">
<div class="predictDanThree"><p class="unitPredictNew">单位:kW</p></div>
<div class="predictRightPie" id="predictRightPieThree">
</div>
</div>
</div>
</div>
<div class="rightMask"></div>
</body>
<script src="js/jquery.js"></script>
<script src="js/echart.js"></script>
<script src="js/ajax.js"></script>
<script src="js/chartOption.js"></script>
<script src="js/predict.js"></script>
<script src="js/base.js"></script>
<script src="js/utils.js"></script>
<!--<script src="js/soket.js"></script>-->
<script>
$(function() {
// setTimeout(() => {
// window.location.href = 'file:///C:/project/wind-micronet-large-server-web-v1.0/source.html';
// }, 12000);
var timer;
$('.predictData .rel .networkTradeCon').each(function(i, item){
$(item).animate({
opacity:1
},i*2000+1000,function(){
$('.predictElePrice .rel ul li').each(function(index, v){
$(v).animate({
opacity:1
},index*2000+1000,function(){
$('.surfeIntert .rel .networkTradeCon').each(function(ind, item){
$(item).animate({
opacity:1
},ind*2000+1000,function(){
$(".pro_box").animate({opacity:1},1000,function(){
$('.title').animate({opacity:1},3000);
})
$('.progress_box ').animate({opacity:1},2000,function(){
$('.progress_box ul li').each(function(i, item){
$(item).animate({
opacity: 1
},i*200+10,function(){
})
})
textAni()
})
//调用两次,闪烁两次
})
})
})
})
})
})
animates()
function animates(){
clearInterval(timer)
$('.predictTurbineOne').animate({opacity:1},3000,function(){
$(this).animate({'opacity':0},3000,function(){
$('.predictTurbineTwo').animate({opacity:1},2000,function(){
$(this).animate({'opacity':0},3000, function(){
$('.predictTurbineFive').animate({opacity:1},2000,function(){
$(this).animate({'opacity':0},3000,function(){
$('.predictTurbineSix').animate({opacity:1},2000,function(){
$(this).animate({'opacity':0},3000,function(){
$('.predictTurbineSeven').animate({opacity:1},2000,function(){
$(this).animate({'opacity':0},3000,function(){
$('.sourceTurbineEight').animate({opacity:1},2000,function(){
$(this).animate({'opacity':0},3000,function(){
$('.predictTurbineNine').animate({opacity:1},2000,function(){
$(this).animate({'opacity':0},3000,function(){
$('.predictTurbineThree').animate({opacity:1},2000,function(){
$(this).animate({'opacity':0},3000,function(){
$('.predictTurbineFour').animate({opacity:1},2000,function(){
$(this).animate({'opacity':0},3000,function(){
$('.predictTurbineOne').animate({opacity:0},3000)
timer = setInterval(animates, 1000)
})
})
})
})
})
})
})
})
})
})
})
})
})
})
})
})
})
})
}
function textAni(){
setTimeout(function(){
$('.progress_box p').fadeOut();
$('.progress_box p').fadeIn();
},3000)
}
//中间数据
var {Wind_Power_Prediction, Light_Power_Prediction, load_Prediction, Wf_Hard_Work, Wf_Reactive, Grid_Connected_Supply, Grid_Connected_Capacity, price}
= miaddleFun()
var arrOne = [Wind_Power_Prediction, Light_Power_Prediction, load_Prediction];
//上网电价数据]
var WfArr = [price[0].Wf_Go_Online, price[0].Wf_Subsidy, price[0].Wf_Industry ];
var GfArr = [price[1].Gf_Go_Online, price[1].Gf_Subsidy, price[1].Gf_Industry];
var LoadArr = [price[2].Load_Go_Online, price[2].Load_Subsidy, price[2].Load_Industry];
// 预测数据
$('.predictData .networkTradeCon').each(function(v,item){
($(item).children())[1].prepend(arrOne[v]);
})
$('.predictElePrice ul li').each(function(i,item){
var dom = $($(item).children()[1])
$(dom.children()[0]).append(WfArr[i]) // 第一个p
$(dom.children()[1]).append(GfArr[i])
$($(dom.children()[2]).find('em')).append(LoadArr[i]) //第三个p
})
//风机1
var arrTwo = [Wf_Hard_Work, Wf_Reactive];
$(".sourceTurbineOne ul li").each(function(v,item){
($(item).children())[1].prepend(arrTwo[v]);
})
//并网
var arrThree = [Grid_Connected_Supply, Grid_Connected_Capacity];
$(".surfeIntert .networkTradeCon").each(function(v,item){
if(v != 0){
($(item).children())[1].prepend(arrThree[v]);
}
})
function middleAndBottomFun(data){
data.Nine_Data.forEach(function(v, index){
$('.box .rel ul').each(function(i,item){
$(this).find('li:first-child p:nth-child(2) span:nth-child(1)').html('');
$(this).find('li:nth-child(2) p:nth-child(2) span:nth-child(1)').html('');
var values = Object.values(v)
$($(this).find('li:first-child p:nth-child(2) span:nth-child(1)')).prepend(values[0])
$($(this).find('li:nth-child(2) p:nth-child(2) span:nth-child(1)')).prepend(values[1])
})
})
}
function miaddleFun(){
var arr = [];
HttpRequest({
type: 'get',
url: 'http://172.172.32.187:9500/v1/forecastSchedul/getCircleData',
success: function(response){
if(response) {
arr = response ;
}
}
})
return arr;
}
function middleAndBottomData(){
var arr = [];
HttpRequest({
type: 'get',
url: 'http://172.172.32.187:9500/v1/forecastSchedul/getBottomData',
success: function(response){
if(response) {
arr = response ;
}
}
})
return arr;
}
middleAndBottomFun(middleAndBottomData())
})
</script>
</html>