no message

This commit is contained in:
2023-03-06 16:18:34 +08:00
parent c02f416193
commit e2d9180243
7 changed files with 55 additions and 52 deletions

View File

@@ -529,8 +529,8 @@ export default {
}
},
mounted () {
this.initData1()
this.initData2()
// this.initData1()
this._workshopCondition()
this.refresh()
},
beforeDestroy () {
@@ -539,15 +539,15 @@ export default {
methods: {
refresh () {
this.timer = setInterval(() => {
this.initData1()
this.initData2()
// this.initData1()
this._workshopCondition()
}, this.interTime)
},
async _workshopCondition () {
let res = await workshopCondition()
this.dayRows = [...res.runningStatus]
this.weekRows = [...res.faultyStatus]
this.deviceRows = [...res.faultyInfo]
this.dayRows = [...res.result.runningStatus]
this.weekRows = [...res.result.faultyStatus]
this.deviceRows = [...res.result.faultyInfo]
if (this.dayRows.length > 0) {
this.setEchart1()
}