no message
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user