@@ -60,19 +63,27 @@
正常运行
未开机
- {{ parseFloat(i.value1||'0').toFixed(1) }}
+ {{
+ parseFloat(i.value1 || '0').toFixed(1)
+ }}
h
- {{ parseFloat(i.value1||'0').toFixed(1) }}
+ {{
+ parseFloat(i.value1 || '0').toFixed(1)
+ }}
h
- {{ parseFloat(i.value1||'0').toFixed(1) }}
+ {{
+ parseFloat(i.value1 || '0').toFixed(1)
+ }}
h
- {{ parseFloat(i.value1||'0').toFixed(1) }}
+ {{
+ parseFloat(i.value1 || '0').toFixed(1)
+ }}
h
待机时长
@@ -85,19 +96,27 @@
正常运行
未开机
- {{ timeData[i.DEVICECODE] || '0' }}
+ {{
+ timeData[i.DEVICECODE] || '0'
+ }}
h
- {{ timeData[i.DEVICECODE] || '0' }}
+ {{
+ timeData[i.DEVICECODE] || '0'
+ }}
h
- {{ timeData[i.DEVICECODE] || '0' }}
+ {{
+ timeData[i.DEVICECODE] || '0'
+ }}
h
- {{ timeData[i.DEVICECODE] || '0' }}
+ {{
+ timeData[i.DEVICECODE] || '0'
+ }}
h
待机时长
@@ -215,20 +234,15 @@ export default {
],
isData: false,
configDialogVisible: false,
- form: {
- },
+ form: {},
runningData: {},
deviceData: [],
- timeData: {}
+ timeData: {},
+ runNum: 0,
}
},
async mounted() {
await this.getData()
- getSimulateData({customCode: 'board-3' || '', customType: 1}).then(val => {
- this.row = val.rows[0]
- this.form = JSON.parse(val.rows[0].customData);
- this.isData = true
- })
this.$refs.chart1.setData({
title: [
{
@@ -373,13 +387,19 @@ export default {
this.runningData = e.data
})
await getDeviceStatusList().then(res => {
- this.deviceData = res.data.filter(e=>!(e.DEVICENAME ==="5#"||e.DEVICENAME ==="10#"||e.DEVICENAME ==="12#"||e.DEVICENAME ==="17#"||e.DEVICENAME ==="18#"))
+ this.deviceData = res.data.filter(e => !(e.DEVICENAME === "5#" || e.DEVICENAME === "10#" || e.DEVICENAME === "12#" || e.DEVICENAME === "17#" || e.DEVICENAME === "18#"))
})
- getDeviceStartTimeList().then(res => {
+ getDeviceStartTimeList().then(res => {
res.data.forEach(e => {
this.timeData[e.DEVICECODE] = ((e.STARTTIME / 60 / 60) || 0).toFixed(1)
})
})
+ getSimulateData({customCode: 'board-3' || '', customType: 1}).then(val => {
+ this.row = val.rows[0]
+ this.form = JSON.parse(val.rows[0].customData);
+ this.isData = true
+ this.runNum = this.form.table1.filter(v => v.STATUSCODE == 1).length
+ })
},
save() {
@@ -389,6 +409,7 @@ export default {
}).then(res => {
Message({message: '保存成功', type: 'success'})
this.configDialogVisible = false
+ this.runNum = this.form.table1.filter(v => v.STATUSCODE == 1).length
})
}
},
@@ -411,7 +432,8 @@ export default {
top: 0;
left: 0;
}
-.top{
+
+.top {
position: absolute;
width: 12vw;
height: 3.3vw;
@@ -427,6 +449,7 @@ export default {
color: #d6eaed;
letter-spacing: 0.1vw;
}
+
.headTitle {
position: absolute;
top: 5%;
diff --git a/src/views/board/board4/index.vue b/src/views/board/board4/index.vue
index 752d341..bd1d5e1 100644
--- a/src/views/board/board4/index.vue
+++ b/src/views/board/board4/index.vue
@@ -107,10 +107,10 @@
form.isSimulate ? form.text12 : deviceStatusData.repairCount
}}