|
@@ -78,8 +78,8 @@
|
|
|
</div>
|
|
|
<div style="height: 22%; margin-top: 2%;">
|
|
|
<div class="bo">
|
|
|
- <div style="width: 35%; padding-left: 2%">2023-12-28</div>
|
|
|
- <div style="width: 65%;">C1压机排气温度低</div>
|
|
|
+ <div style="width: 35%; padding-left: 2%">{{alarmTime}}</div>
|
|
|
+ <div style="width: 65%;">{{ information }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -98,6 +98,12 @@ export default {
|
|
|
default: function(){
|
|
|
return [] // 使用工厂函数返回默认值
|
|
|
}
|
|
|
+ },
|
|
|
+ alarmData: {
|
|
|
+ type: Array,
|
|
|
+ default: function(){
|
|
|
+ return [] // 使用工厂函数返回默认值
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -137,18 +143,29 @@ export default {
|
|
|
// 运行方式设定
|
|
|
runStatus: '',
|
|
|
// 报警信息
|
|
|
+ alarm: [],
|
|
|
+ alarmTime: '',
|
|
|
information: ''
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
data: {
|
|
|
handler(newValue, oldValue){
|
|
|
- console.log(77,newValue, oldValue)
|
|
|
+ // console.log(77,newValue, oldValue)
|
|
|
this.dataList = newValue
|
|
|
this.getList()
|
|
|
},
|
|
|
immediate: true,
|
|
|
deep: true
|
|
|
+ },
|
|
|
+ alarmData: {
|
|
|
+ handler(newValue, oldValue){
|
|
|
+ this.alarm = newValue
|
|
|
+ // console.log(7788,this.alarm)
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ immediate: true,
|
|
|
+ deep: true
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
@@ -179,10 +196,9 @@ export default {
|
|
|
if (this.dataList[i].Name == '运行方式设定') {
|
|
|
this.runStatus = this.dataList[i].Value
|
|
|
}
|
|
|
- if (this.dataList[i].Name == '预计结束时间-试验信息') {
|
|
|
- this.information = this.dataList[i].Value
|
|
|
- }
|
|
|
}
|
|
|
+ this.information = this.alarm[0].Name
|
|
|
+ this.alarmTime = this.alarm[0].Time
|
|
|
}
|
|
|
}
|
|
|
}
|