|
|
@@ -39,7 +39,6 @@
|
|
39
|
39
|
/>
|
|
40
|
40
|
</el-tab-pane>
|
|
41
|
41
|
<el-tab-pane label="定时任务" name="second">
|
|
42
|
|
-
|
|
43
|
42
|
<div class="infoTitle">
|
|
44
|
43
|
<h5>定时任务</h5>
|
|
45
|
44
|
<!-- <el-button
|
|
|
@@ -49,17 +48,45 @@
|
|
49
|
48
|
>修改定时任务</el-button
|
|
50
|
49
|
> -->
|
|
51
|
50
|
</div>
|
|
52
|
|
- <div class="taskDiv" v-for="(item,index) in rwList" :key="index">
|
|
53
|
|
- <el-tooltip class="item" effect="dark" :content="item.taskName" placement="top">
|
|
54
|
|
- <span class="gdWidth">{{item.taskName}}</span>
|
|
55
|
|
- </el-tooltip>:
|
|
56
|
|
- <span class="normalBtn">{{JSON.parse(item.objTime).timeType}}</span>
|
|
57
|
|
- <span class="normalBtn" v-if="JSON.parse(item.objTime).timeType!='每小时'">{{JSON.parse(item.objTime).time}}</span>
|
|
58
|
|
- <span class="normalBtn" v-if="JSON.parse(item.objTime).timeType=='每周'">{{JSON.parse(item.objTime).week.toString()}}</span>
|
|
59
|
|
- <span class="normalBtn" v-if="JSON.parse(item.objTime).timeType=='每月'">{{JSON.parse(item.objTime).month.toString()}}</span>
|
|
60
|
|
- <span class="normalBtn" v-if="JSON.parse(item.objTime).timeType=='每年'">{{JSON.parse(item.objTime).dateTime}}</span>
|
|
|
51
|
+ <div
|
|
|
52
|
+ class="taskDiv"
|
|
|
53
|
+ v-for="(item, index) in rwList"
|
|
|
54
|
+ :key="index"
|
|
|
55
|
+ >
|
|
|
56
|
+ <el-tooltip
|
|
|
57
|
+ class="item"
|
|
|
58
|
+ effect="dark"
|
|
|
59
|
+ :content="item.taskName"
|
|
|
60
|
+ placement="top"
|
|
|
61
|
+ >
|
|
|
62
|
+ <span class="gdWidth">{{
|
|
|
63
|
+ item.taskName
|
|
|
64
|
+ }}</span> </el-tooltip
|
|
|
65
|
+ >:
|
|
|
66
|
+ <span class="normalBtn">{{
|
|
|
67
|
+ JSON.parse(item.objTime).timeType
|
|
|
68
|
+ }}</span>
|
|
|
69
|
+ <span
|
|
|
70
|
+ class="normalBtn"
|
|
|
71
|
+ v-if="JSON.parse(item.objTime).timeType != '每小时'"
|
|
|
72
|
+ >{{ JSON.parse(item.objTime).time }}</span
|
|
|
73
|
+ >
|
|
|
74
|
+ <span
|
|
|
75
|
+ class="normalBtn"
|
|
|
76
|
+ v-if="JSON.parse(item.objTime).timeType == '每周'"
|
|
|
77
|
+ >{{ JSON.parse(item.objTime).week.toString() }}</span
|
|
|
78
|
+ >
|
|
|
79
|
+ <span
|
|
|
80
|
+ class="normalBtn"
|
|
|
81
|
+ v-if="JSON.parse(item.objTime).timeType == '每月'"
|
|
|
82
|
+ >{{ JSON.parse(item.objTime).month.toString() }}</span
|
|
|
83
|
+ >
|
|
|
84
|
+ <span
|
|
|
85
|
+ class="normalBtn"
|
|
|
86
|
+ v-if="JSON.parse(item.objTime).timeType == '每年'"
|
|
|
87
|
+ >{{ JSON.parse(item.objTime).dateTime }}</span
|
|
|
88
|
+ >
|
|
61
|
89
|
</div>
|
|
62
|
|
-
|
|
63
|
90
|
</el-tab-pane>
|
|
64
|
91
|
<el-tab-pane label="运行数据" name="third">
|
|
65
|
92
|
<!-- <span slot="label">
|
|
|
@@ -84,15 +111,15 @@
|
|
84
|
111
|
<div class="nowData">
|
|
85
|
112
|
<div>
|
|
86
|
113
|
<div>温度</div>
|
|
87
|
|
- <div>{{rightTempValue}}℃</div>
|
|
|
114
|
+ <div>{{ rightTempValue }}℃</div>
|
|
88
|
115
|
</div>
|
|
89
|
116
|
<div>
|
|
90
|
117
|
<div>湿度</div>
|
|
91
|
|
- <div>{{rightWetValue}}%</div>
|
|
|
118
|
+ <div>{{ rightWetValue }}%</div>
|
|
92
|
119
|
</div>
|
|
93
|
120
|
<div>
|
|
94
|
121
|
<div>露点温度</div>
|
|
95
|
|
- <div>{{rightDewValue}}℃</div>
|
|
|
122
|
+ <div>{{ rightDewValue }}℃</div>
|
|
96
|
123
|
</div>
|
|
97
|
124
|
</div>
|
|
98
|
125
|
<h5 style="margin: 20px 0">历史定时任务数据</h5>
|
|
|
@@ -108,7 +135,8 @@
|
|
108
|
135
|
size="mini"
|
|
109
|
136
|
v-model="formTime.time"
|
|
110
|
137
|
type="date"
|
|
111
|
|
- placeholder="请选择">
|
|
|
138
|
+ placeholder="请选择"
|
|
|
139
|
+ >
|
|
112
|
140
|
</el-date-picker>
|
|
113
|
141
|
</el-form-item>
|
|
114
|
142
|
<el-form-item>
|
|
|
@@ -126,7 +154,10 @@
|
|
126
|
154
|
size="mini"
|
|
127
|
155
|
type="primary"
|
|
128
|
156
|
icon="el-icon-refresh-left"
|
|
129
|
|
- @click="formTime.time = '';getPoints()"
|
|
|
157
|
+ @click="
|
|
|
158
|
+ formTime.time = '';
|
|
|
159
|
+ getPoints();
|
|
|
160
|
+ "
|
|
130
|
161
|
>重置</el-button
|
|
131
|
162
|
>
|
|
132
|
163
|
</el-form-item>
|
|
|
@@ -153,13 +184,29 @@
|
|
153
|
184
|
></el-table-column>
|
|
154
|
185
|
<el-table-column prop="time" label="检测时间" align="center">
|
|
155
|
186
|
</el-table-column>
|
|
156
|
|
- <el-table-column prop="device" label="设备编号" align="center">
|
|
|
187
|
+ <el-table-column
|
|
|
188
|
+ prop="device"
|
|
|
189
|
+ label="设备编号"
|
|
|
190
|
+ align="center"
|
|
|
191
|
+ >
|
|
157
|
192
|
</el-table-column>
|
|
158
|
|
- <el-table-column prop="tempValue" label="温度(℃)" align="center">
|
|
|
193
|
+ <el-table-column
|
|
|
194
|
+ prop="tempValue"
|
|
|
195
|
+ label="温度(℃)"
|
|
|
196
|
+ align="center"
|
|
|
197
|
+ >
|
|
159
|
198
|
</el-table-column>
|
|
160
|
|
- <el-table-column prop="wetValue" label="湿度(%)" align="center">
|
|
|
199
|
+ <el-table-column
|
|
|
200
|
+ prop="wetValue"
|
|
|
201
|
+ label="湿度(%)"
|
|
|
202
|
+ align="center"
|
|
|
203
|
+ >
|
|
161
|
204
|
</el-table-column>
|
|
162
|
|
- <el-table-column prop="dewValue" label="露点温度(℃)" align="center">
|
|
|
205
|
+ <el-table-column
|
|
|
206
|
+ prop="dewValue"
|
|
|
207
|
+ label="露点温度(℃)"
|
|
|
208
|
+ align="center"
|
|
|
209
|
+ >
|
|
163
|
210
|
</el-table-column>
|
|
164
|
211
|
<!-- <el-table-column
|
|
165
|
212
|
prop="houseName"
|
|
|
@@ -303,7 +350,12 @@
|
|
303
|
350
|
</div>
|
|
304
|
351
|
</el-dialog>
|
|
305
|
352
|
<addDialog :dialogTitle="'设备基本信息'" ref="addDialog" />
|
|
306
|
|
- <el-dialog title="检测详情" id="dialogStyle" width="800px" :visible.sync="checkDialog">
|
|
|
353
|
+ <el-dialog
|
|
|
354
|
+ title="检测详情"
|
|
|
355
|
+ id="dialogStyle"
|
|
|
356
|
+ width="800px"
|
|
|
357
|
+ :visible.sync="checkDialog"
|
|
|
358
|
+ >
|
|
307
|
359
|
<!-- <detailTable ref="detailTable" :detail-table="checkInfo" :title="''" /> -->
|
|
308
|
360
|
<div class="panel-height-add">
|
|
309
|
361
|
<div style="padding: 2px">
|
|
|
@@ -385,7 +437,9 @@
|
|
385
|
437
|
<div class="panel-height-add">
|
|
386
|
438
|
<div style="padding: 2px">
|
|
387
|
439
|
<div class="detBox">
|
|
388
|
|
- <div class="title" v-for="(item, i) in checkInfo1" :key="i">{{item.title}}</div>
|
|
|
440
|
+ <div class="title" v-for="(item, i) in checkInfo1" :key="i">
|
|
|
441
|
+ {{ item.title }}
|
|
|
442
|
+ </div>
|
|
389
|
443
|
<div
|
|
390
|
444
|
v-for="(item, i) in checkInfo1"
|
|
391
|
445
|
:key="i"
|
|
|
@@ -467,21 +521,21 @@
|
|
467
|
521
|
<script>
|
|
468
|
522
|
import addDialog from "../compontents/addDialog.vue";
|
|
469
|
523
|
import api from "@/api";
|
|
470
|
|
-import mqtt from 'mqtt'
|
|
|
524
|
+import mqtt from "mqtt";
|
|
471
|
525
|
|
|
472
|
526
|
import detailTable from "@/components/detailTable/index.vue";
|
|
473
|
|
-import log from '@/libs/util.log';
|
|
|
527
|
+import log from "@/libs/util.log";
|
|
474
|
528
|
export default {
|
|
475
|
529
|
name: "productInfo",
|
|
476
|
530
|
components: { detailTable, addDialog },
|
|
477
|
531
|
data() {
|
|
478
|
532
|
return {
|
|
479
|
|
- rightDewValue : 0,
|
|
480
|
|
- rightTempValue : 0,
|
|
481
|
|
- rightWetValue : 0,
|
|
482
|
|
- alarmRecord:[],
|
|
483
|
|
- pintsPageList:[],
|
|
484
|
|
- rwList:[],
|
|
|
533
|
+ rightDewValue: null,
|
|
|
534
|
+ rightTempValue: null,
|
|
|
535
|
+ rightWetValue: null,
|
|
|
536
|
+ alarmRecord: [],
|
|
|
537
|
+ pintsPageList: [],
|
|
|
538
|
+ rwList: [],
|
|
485
|
539
|
client: {},
|
|
486
|
540
|
info: {},
|
|
487
|
541
|
checkDialog: false,
|
|
|
@@ -560,14 +614,14 @@ export default {
|
|
560
|
614
|
],
|
|
561
|
615
|
checkInfo1: [
|
|
562
|
616
|
{
|
|
563
|
|
- title:'设备1(编号/标识/设备名称)',
|
|
|
617
|
+ title: "设备1(编号/标识/设备名称)",
|
|
564
|
618
|
name: "温度(℃)",
|
|
565
|
619
|
val: [""],
|
|
566
|
620
|
name1: "湿度(%RH)",
|
|
567
|
621
|
val1: [""],
|
|
568
|
622
|
name2: "露点温度(℃)",
|
|
569
|
623
|
val2: [""],
|
|
570
|
|
- }
|
|
|
624
|
+ },
|
|
571
|
625
|
],
|
|
572
|
626
|
//分页
|
|
573
|
627
|
pagination: {
|
|
|
@@ -600,10 +654,10 @@ export default {
|
|
600
|
654
|
},
|
|
601
|
655
|
created() {
|
|
602
|
656
|
this.getBasic();
|
|
603
|
|
- this.connect()
|
|
|
657
|
+ this.connect();
|
|
604
|
658
|
},
|
|
605
|
|
- destroyed(){
|
|
606
|
|
- this.unconnect()
|
|
|
659
|
+ destroyed() {
|
|
|
660
|
+ this.unconnect();
|
|
607
|
661
|
},
|
|
608
|
662
|
methods: {
|
|
609
|
663
|
connect() {
|
|
|
@@ -617,62 +671,66 @@ export default {
|
|
617
|
671
|
//生产
|
|
618
|
672
|
// username: "admin",
|
|
619
|
673
|
// password: "admin@2Ld&DDrsk",
|
|
620
|
|
- cleanSession : true,
|
|
621
|
|
- keepAlive:60,
|
|
622
|
|
- clientId: 'mqttjs_'+ Math.random().toString(16).substr(2, 8),
|
|
623
|
|
- connectTimeout: 4000
|
|
624
|
|
- }
|
|
|
674
|
+ cleanSession: true,
|
|
|
675
|
+ keepAlive: 60,
|
|
|
676
|
+ clientId: "mqttjs_" + Math.random().toString(16).substr(2, 8),
|
|
|
677
|
+ connectTimeout: 4000,
|
|
|
678
|
+ };
|
|
625
|
679
|
//本地开发环境
|
|
626
|
|
- this.client = mqtt.connect('ws://192.168.50.169:8083/mqtt',options);
|
|
|
680
|
+ this.client = mqtt.connect("ws://192.168.50.169:8083/mqtt", options);
|
|
627
|
681
|
//测试环境
|
|
628
|
|
- // this.client = mqtt.connect('ws://172.16.0.5:8083/mqtt',options);
|
|
629
|
|
- //正式环境
|
|
630
|
|
- // this.client = mqtt.connect('ws://10.105.101.61:8083/mqtt',options);
|
|
631
|
|
- this.client.on("connect", (e)=>{
|
|
632
|
|
- console.log("成功连接服务器:",e);
|
|
|
682
|
+ // this.client = mqtt.connect('ws://172.16.0.5:8083/mqtt',options);
|
|
|
683
|
+ //正式环境
|
|
|
684
|
+ // this.client = mqtt.connect('ws://10.105.101.61:8083/mqtt',options);
|
|
|
685
|
+ this.client.on("connect", (e) => {
|
|
|
686
|
+ console.log("成功连接服务器:", e);
|
|
633
|
687
|
//订阅三个名叫'top/#', 'three/#'和'#'的主题
|
|
634
|
|
- this.client.subscribe([
|
|
|
688
|
+ this.client.subscribe(
|
|
|
689
|
+ [
|
|
635
|
690
|
// "/PUSH/c89512024085/DPUT/upload",
|
|
636
|
691
|
// "/PUSH/X1XXXQ2206090069/DPUT/upload",
|
|
637
|
692
|
"/PUSH/8951DQ2207200018/DPUT/upload",
|
|
638
|
|
- ], { qos: 1 }, (err)=> {
|
|
639
|
|
- if (!err) {
|
|
640
|
|
- console.log("订阅成功");
|
|
641
|
|
- //向主题叫“pubtop”发布一则内容为'hello,this is a nice day!'的消息
|
|
642
|
|
- this.publish("pubtop", 'hello,this is a nice day!')
|
|
643
|
|
- } else {
|
|
644
|
|
- console.log('消息订阅失败!')
|
|
|
693
|
+ ],
|
|
|
694
|
+ { qos: 1 },
|
|
|
695
|
+ (err) => {
|
|
|
696
|
+ if (!err) {
|
|
|
697
|
+ console.log("订阅成功");
|
|
|
698
|
+ //向主题叫“pubtop”发布一则内容为'hello,this is a nice day!'的消息
|
|
|
699
|
+ this.publish("pubtop", "hello,this is a nice day!");
|
|
|
700
|
+ } else {
|
|
|
701
|
+ console.log("消息订阅失败!");
|
|
|
702
|
+ }
|
|
645
|
703
|
}
|
|
646
|
|
- });
|
|
|
704
|
+ );
|
|
647
|
705
|
});
|
|
648
|
706
|
//重新连接
|
|
649
|
|
- this.reconnect()
|
|
|
707
|
+ this.reconnect();
|
|
650
|
708
|
//是否已经断开连接
|
|
651
|
|
- this.mqttError()
|
|
|
709
|
+ this.mqttError();
|
|
652
|
710
|
//监听获取信息
|
|
653
|
|
- this.getMessage()
|
|
|
711
|
+ this.getMessage();
|
|
654
|
712
|
},
|
|
655
|
|
-//发布消息@topic主题 @message发布内容
|
|
656
|
|
- publish(topic,message) {
|
|
|
713
|
+ //发布消息@topic主题 @message发布内容
|
|
|
714
|
+ publish(topic, message) {
|
|
657
|
715
|
if (!this.client.connected) {
|
|
658
|
|
- console.log('客户端未连接')
|
|
659
|
|
- return
|
|
|
716
|
+ console.log("客户端未连接");
|
|
|
717
|
+ return;
|
|
660
|
718
|
}
|
|
661
|
|
- this.client.publish(topic,message,{qos: 1},(err) => {
|
|
662
|
|
- if(!err) {
|
|
663
|
|
- console.log('主题为'+topic+ "发布成功")
|
|
|
719
|
+ this.client.publish(topic, message, { qos: 1 }, (err) => {
|
|
|
720
|
+ if (!err) {
|
|
|
721
|
+ console.log("主题为" + topic + "发布成功");
|
|
664
|
722
|
}
|
|
665
|
|
- })
|
|
|
723
|
+ });
|
|
666
|
724
|
},
|
|
667
|
|
-//监听接收消息
|
|
|
725
|
+ //监听接收消息
|
|
668
|
726
|
getMessage() {
|
|
669
|
727
|
this.client.on("message", (topic, message) => {
|
|
670
|
|
- if(message) {
|
|
671
|
|
- console.log('收到来着',topic,'的信息',message.toString())
|
|
672
|
|
- const res = JSON.parse(message.toString())
|
|
673
|
|
- this.runData=res.data
|
|
674
|
|
- console.log(res, 'res',this.runData,'runData')
|
|
675
|
|
- this.calcAve(this.runData)
|
|
|
728
|
+ if (message) {
|
|
|
729
|
+ console.log("收到来着", topic, "的信息", message.toString());
|
|
|
730
|
+ const res = JSON.parse(message.toString());
|
|
|
731
|
+ this.runData = res.data;
|
|
|
732
|
+ console.log(res, "res", this.runData, "runData");
|
|
|
733
|
+ this.calcAve(this.runData);
|
|
676
|
734
|
// switch(topic) {
|
|
677
|
735
|
// case 'top/lll' :
|
|
678
|
736
|
// this.msg = res.msg
|
|
|
@@ -688,32 +746,31 @@ export default {
|
|
688
|
746
|
// this.msg = res
|
|
689
|
747
|
// }
|
|
690
|
748
|
// this.msg = message
|
|
691
|
|
-
|
|
692
|
749
|
}
|
|
693
|
750
|
});
|
|
694
|
751
|
},
|
|
695
|
|
-//监听服务器是否连接失败
|
|
|
752
|
+ //监听服务器是否连接失败
|
|
696
|
753
|
mqttError() {
|
|
697
|
|
- this.client.on('error',(error) => {
|
|
698
|
|
- console.log('连接失败:',error)
|
|
699
|
|
- this.client.end()
|
|
700
|
|
- })
|
|
|
754
|
+ this.client.on("error", (error) => {
|
|
|
755
|
+ console.log("连接失败:", error);
|
|
|
756
|
+ this.client.end();
|
|
|
757
|
+ });
|
|
701
|
758
|
},
|
|
702
|
759
|
unsubscribe() {
|
|
703
|
|
- this.client.unsubscribe(this.mtopic, (error)=> {
|
|
704
|
|
- console.log('主题为'+ this.mtopic+'取消订阅成功',error)
|
|
705
|
|
- })
|
|
|
760
|
+ this.client.unsubscribe(this.mtopic, (error) => {
|
|
|
761
|
+ console.log("主题为" + this.mtopic + "取消订阅成功", error);
|
|
|
762
|
+ });
|
|
706
|
763
|
},
|
|
707
|
|
-//断开连接
|
|
|
764
|
+ //断开连接
|
|
708
|
765
|
unconnect() {
|
|
709
|
|
- this.client.end()
|
|
710
|
|
- this.client = null
|
|
711
|
|
- console.log('服务器已断开连接!')
|
|
|
766
|
+ this.client.end();
|
|
|
767
|
+ this.client = null;
|
|
|
768
|
+ console.log("服务器已断开连接!");
|
|
712
|
769
|
},
|
|
713
|
|
-//监听服务器重新连接
|
|
|
770
|
+ //监听服务器重新连接
|
|
714
|
771
|
reconnect() {
|
|
715
|
|
- this.client.on('reconnect', (error) => {
|
|
716
|
|
- console.log('正在重连:', error)
|
|
|
772
|
+ this.client.on("reconnect", (error) => {
|
|
|
773
|
+ console.log("正在重连:", error);
|
|
717
|
774
|
});
|
|
718
|
775
|
},
|
|
719
|
776
|
//公共方法计算平均值
|
|
|
@@ -725,24 +782,23 @@ export default {
|
|
725
|
782
|
this.rightTempValue = 0;
|
|
726
|
783
|
this.rightWetValue = 0;
|
|
727
|
784
|
|
|
728
|
|
- arr.forEach((item) => {
|
|
729
|
|
- avgNum++;
|
|
730
|
|
- console.log(item, "item");
|
|
731
|
|
- item.dewValue = parseInt(item.dewValue);
|
|
732
|
|
- item.tempValue = parseInt(item.tempValue);
|
|
733
|
|
- item.wetValue = parseInt(item.wetValue);
|
|
734
|
|
- //露点均温
|
|
735
|
|
- this.rightDewValue += item.dewValue;
|
|
736
|
|
- //温度均温
|
|
737
|
|
- this.rightTempValue += item.tempValue;
|
|
738
|
|
- //湿度均温
|
|
739
|
|
- this.rightWetValue += item.wetValue;
|
|
740
|
|
- console.log(
|
|
741
|
|
- this.rightDewValue,
|
|
742
|
|
- this.rightTempValue,
|
|
743
|
|
- this.rightWetValue
|
|
744
|
|
- );
|
|
745
|
|
-
|
|
|
785
|
+ arr.forEach((item) => {
|
|
|
786
|
+ avgNum++;
|
|
|
787
|
+ console.log(item, "item");
|
|
|
788
|
+ item.dewValue = parseInt(item.dewValue);
|
|
|
789
|
+ item.tempValue = parseInt(item.tempValue);
|
|
|
790
|
+ item.wetValue = parseInt(item.wetValue);
|
|
|
791
|
+ //露点均温
|
|
|
792
|
+ this.rightDewValue += item.dewValue;
|
|
|
793
|
+ //温度均温
|
|
|
794
|
+ this.rightTempValue += item.tempValue;
|
|
|
795
|
+ //湿度均温
|
|
|
796
|
+ this.rightWetValue += item.wetValue;
|
|
|
797
|
+ console.log(
|
|
|
798
|
+ this.rightDewValue,
|
|
|
799
|
+ this.rightTempValue,
|
|
|
800
|
+ this.rightWetValue
|
|
|
801
|
+ );
|
|
746
|
802
|
});
|
|
747
|
803
|
//取整
|
|
748
|
804
|
console.log(this.rightDewValue, avgNum, "wwwwww");
|
|
|
@@ -858,34 +914,49 @@ export default {
|
|
858
|
914
|
},
|
|
859
|
915
|
tabsClick(v) {
|
|
860
|
916
|
if (v.name == "fourth") {
|
|
861
|
|
- this.$router.push({ path: "alarmRecord",query:{eqCode:this.$route.query.eqCode}});
|
|
862
|
|
- }else if(v.name=="second"){
|
|
863
|
|
- this.getRwList()
|
|
|
917
|
+ this.$router.push({
|
|
|
918
|
+ path: "alarmRecord",
|
|
|
919
|
+ query: { eqCode: this.$route.query.eqCode },
|
|
|
920
|
+ });
|
|
|
921
|
+ } else if (v.name == "second") {
|
|
|
922
|
+ this.getRwList();
|
|
864
|
923
|
} else if (v.name == "third") {
|
|
865
|
|
- this.getPoints()
|
|
|
924
|
+ this.getPoints();
|
|
866
|
925
|
}
|
|
867
|
926
|
},
|
|
868
|
|
- getPoints(){
|
|
869
|
|
- var condition = this.formTime;
|
|
|
927
|
+ getPoints() {
|
|
|
928
|
+ // var condition = this.formTime;
|
|
|
929
|
+ var condition = {
|
|
|
930
|
+ orgCode: localStorage.getItem("orgCode"),
|
|
|
931
|
+ labelCode: this.$route.query.labelCode,
|
|
|
932
|
+ device: this.$route.query.eqCode,
|
|
|
933
|
+ dataTime: this.formTime.time,
|
|
|
934
|
+ };
|
|
870
|
935
|
condition = JSON.stringify(condition);
|
|
871
|
936
|
var data = {
|
|
872
|
|
- pageIndex: this.pagination2.curPage,
|
|
873
|
|
- pageSize: this.pagination2.pageSize,
|
|
874
|
|
- condition: condition,
|
|
875
|
|
- };
|
|
876
|
|
- api
|
|
877
|
|
- .getPintsPageList(data)
|
|
878
|
|
- .then((res) => {
|
|
879
|
|
- if (res.code == 200) {
|
|
880
|
|
- this.pintsPageList = res.data.records;
|
|
881
|
|
- this.pagination2.pageSize = res.data.size;
|
|
882
|
|
- this.pagination2.total = res.data.total;
|
|
883
|
|
- this.calcAve( this.pintsPageList)
|
|
|
937
|
+ pageIndex: this.pagination2.curPage,
|
|
|
938
|
+ pageSize: this.pagination2.pageSize,
|
|
|
939
|
+ condition: condition,
|
|
|
940
|
+ };
|
|
|
941
|
+ api
|
|
|
942
|
+ .getPintsPageList(data)
|
|
|
943
|
+ .then((res) => {
|
|
|
944
|
+ if (res.code == 200) {
|
|
|
945
|
+ this.pintsPageList = res.data.records;
|
|
|
946
|
+ this.pagination2.pageSize = res.data.size;
|
|
|
947
|
+ this.pagination2.total = res.data.total;
|
|
|
948
|
+ if (this.pintsPageList.length > 0) {
|
|
|
949
|
+ this.calcAve(this.pintsPageList);
|
|
|
950
|
+ } else {
|
|
|
951
|
+ this.rightDewValue = 0;
|
|
|
952
|
+ this.rightTempValue = 0;
|
|
|
953
|
+ this.rightWetValue = 0;
|
|
884
|
954
|
}
|
|
885
|
|
- })
|
|
886
|
|
- .catch((err) => {
|
|
887
|
|
- console.log(err);
|
|
888
|
|
- });
|
|
|
955
|
+ }
|
|
|
956
|
+ })
|
|
|
957
|
+ .catch((err) => {
|
|
|
958
|
+ console.log(err);
|
|
|
959
|
+ });
|
|
889
|
960
|
},
|
|
890
|
961
|
//获取定时任务列表数据
|
|
891
|
962
|
getRwList() {
|
|
|
@@ -897,7 +968,7 @@ export default {
|
|
897
|
968
|
// condition: condition,
|
|
898
|
969
|
// };
|
|
899
|
970
|
api
|
|
900
|
|
- .timingTaskEq(this.info.eqCode,localStorage.getItem("orgCode"))
|
|
|
971
|
+ .timingTaskEq(this.info.eqCode, localStorage.getItem("orgCode"))
|
|
901
|
972
|
.then((res) => {
|
|
902
|
973
|
if (res.code == 200) {
|
|
903
|
974
|
this.rwList = res.data;
|
|
|
@@ -910,15 +981,13 @@ export default {
|
|
910
|
981
|
});
|
|
911
|
982
|
},
|
|
912
|
983
|
//查询
|
|
913
|
|
- search(){
|
|
914
|
|
-
|
|
915
|
|
- },
|
|
|
984
|
+ search() {},
|
|
916
|
985
|
//重置
|
|
917
|
|
- reset(){
|
|
918
|
|
- this.formInline={}
|
|
|
986
|
+ reset() {
|
|
|
987
|
+ this.formInline = {};
|
|
919
|
988
|
},
|
|
920
|
989
|
//确定
|
|
921
|
|
- sure(){},
|
|
|
990
|
+ sure() {},
|
|
922
|
991
|
//表格序号
|
|
923
|
992
|
indexMethod(index) {
|
|
924
|
993
|
return (
|
|
|
@@ -996,16 +1065,16 @@ export default {
|
|
996
|
1065
|
}
|
|
997
|
1066
|
}
|
|
998
|
1067
|
}
|
|
999
|
|
- .taskDiv{
|
|
|
1068
|
+ .taskDiv {
|
|
1000
|
1069
|
padding-bottom: 30px;
|
|
1001
|
1070
|
padding-left: 100px;
|
|
1002
|
|
- .normalBtn{
|
|
|
1071
|
+ .normalBtn {
|
|
1003
|
1072
|
padding: 7px 15px;
|
|
1004
|
1073
|
border-radius: 3px;
|
|
1005
|
|
- border:1px solid #DCDFE6;
|
|
|
1074
|
+ border: 1px solid #dcdfe6;
|
|
1006
|
1075
|
margin-right: 10px;
|
|
1007
|
1076
|
}
|
|
1008
|
|
- .gdWidth{
|
|
|
1077
|
+ .gdWidth {
|
|
1009
|
1078
|
display: inline-block;
|
|
1010
|
1079
|
position: absolute;
|
|
1011
|
1080
|
text-align: right;
|
|
|
@@ -1016,7 +1085,6 @@ export default {
|
|
1016
|
1085
|
text-overflow: ellipsis; /*超出部分文字以...显示*/
|
|
1017
|
1086
|
}
|
|
1018
|
1087
|
}
|
|
1019
|
|
-
|
|
1020
|
1088
|
}
|
|
1021
|
1089
|
}
|
|
1022
|
1090
|
::v-deep .el-tabs {
|
|
|
@@ -1096,7 +1164,7 @@ export default {
|
|
1096
|
1164
|
border-left: 1px solid #e6e6e6;
|
|
1097
|
1165
|
border-top: 1px solid #e6e6e6;
|
|
1098
|
1166
|
margin-bottom: 30px;
|
|
1099
|
|
- .title{
|
|
|
1167
|
+ .title {
|
|
1100
|
1168
|
background: #f3f3f3;
|
|
1101
|
1169
|
line-height: 40px;
|
|
1102
|
1170
|
border-bottom: 1px solid #e6e6e6;
|
|
|
@@ -1167,23 +1235,23 @@ export default {
|
|
1167
|
1235
|
}
|
|
1168
|
1236
|
}
|
|
1169
|
1237
|
}
|
|
1170
|
|
-.nowData{
|
|
|
1238
|
+.nowData {
|
|
1171
|
1239
|
display: flex;
|
|
1172
|
|
- >div{
|
|
|
1240
|
+ > div {
|
|
1173
|
1241
|
width: 200px;
|
|
1174
|
1242
|
position: relative;
|
|
1175
|
1243
|
text-align: center;
|
|
1176
|
|
- >div:nth-child(2){
|
|
|
1244
|
+ > div:nth-child(2) {
|
|
1177
|
1245
|
color: #008775;
|
|
1178
|
1246
|
font-weight: bold;
|
|
1179
|
1247
|
margin-top: 10px;
|
|
1180
|
1248
|
}
|
|
1181
|
1249
|
}
|
|
1182
|
|
- >div:not(:last-child)::after{
|
|
|
1250
|
+ > div:not(:last-child)::after {
|
|
1183
|
1251
|
content: "";
|
|
1184
|
1252
|
width: 1px;
|
|
1185
|
1253
|
height: 20px;
|
|
1186
|
|
- background-color: #EBEEF5;
|
|
|
1254
|
+ background-color: #ebeef5;
|
|
1187
|
1255
|
position: absolute;
|
|
1188
|
1256
|
right: 0;
|
|
1189
|
1257
|
top: 50%;
|