'update_coldboard'

This commit is contained in:
gtz
2024-01-04 08:27:12 +08:00
parent 8c089da31b
commit 522910e432
2 changed files with 29 additions and 29 deletions

View File

@@ -518,32 +518,8 @@ export default {
})
}
this.annealFunList = arr
this.total3 = Math.ceil(arr.length / 9)
if ( this.page3 > this.total3) {
this.page3 = 1
}
if (!this.firstContent3) {
setInterval(pageFun3 = () => {
if (this.page3 >= this.total3) {
this.page3 = 1
} else {
this.page3 += 1
}
}, 30000)
this.firstContent3 = true
}
}
if (this.funWsData.type === 'FanInfo') {
let arr = []
for (let i in this.funWsData.data.fanInfo) {
arr.push({
equipmentName: i,
status: this.funWsData.data.fanInfo[i]
})
}
this.funList = arr
this.total4 = Math.ceil(arr.length / 9)
if ( this.page4 > this.total4) {
if ( this.page4 >= this.total4) {
this.page4 = 1
}
if (!this.firstContent4) {
@@ -557,6 +533,30 @@ export default {
this.firstContent4 = true
}
}
if (this.funWsData.type === 'FanInfo') {
let arr = []
for (let i in this.funWsData.data.fanInfo) {
arr.push({
equipmentName: i,
status: this.funWsData.data.fanInfo[i]
})
}
this.funList = arr
this.total3 = Math.ceil(arr.length / 9)
if ( this.page3 >= this.total3) {
this.page3 = 1
}
if (!this.firstContent3) {
setInterval(pageFun3 = () => {
if (this.page3 >= this.total3) {
this.page3 = 1
} else {
this.page3 += 1
}
}, 30000)
this.firstContent3 = true
}
}
},
cutWebsocketOnOpen() {
console.log('socket连接成功')
@@ -585,7 +585,7 @@ export default {
// }
});
this.total1 = Math.ceil(this.cutWsData?.productHourData?.length / 9)
if ( this.page1 > this.total1) {
if ( this.page1 >= this.total1) {
this.page1 = 1
}
if (!this.firstContent1) {
@@ -648,7 +648,7 @@ export default {
});
this.total2 = Math.ceil(this.SJGWsData?.detData?.length / 9)
if ( this.page2 > this.total2) {
if ( this.page2 >= this.total2) {
this.page2 = 1
}
if (!this.firstContent2) {