调整消息推送

This commit is contained in:
guanj
2026-04-03 14:48:45 +08:00
parent 9f593bd428
commit db097bc64a
20 changed files with 324 additions and 267 deletions

View File

@@ -10,7 +10,7 @@
><picker
@change="lineChange"
@cancel="selectProject = false"
:value="lineId"
:value="lineKey"
:range="lineList"
range-key="name"
>
@@ -175,7 +175,7 @@ export default {
{ name: '电压总谐波畸变率(%)', A: '/', B: '/', C: '/' },
],
disabled: false,
countdown: 60,
countdown: 30,
lineId: '00B78D00A87A1',
lineKey: 0,
lineList: [],
@@ -607,7 +607,7 @@ export default {
if (this.countdown <= 0) {
clearInterval(this.numTimer) // 清除定时器
this.disabled = false // 启用按钮
this.countdown = 60 // 重置倒计时
this.countdown = 30 // 重置倒计时
this.numTimer = null // 清空定时器标识
}
}, 1000)
@@ -643,7 +643,7 @@ export default {
}
})
.catch(() => {
this.countdown = 60 // 重置倒计时
this.countdown = 30 // 重置倒计时
this.disabled = false
this.connection = false
this.clear()
@@ -870,7 +870,7 @@ export default {
async lineChange(e) {
await this.clear()
this.disabled = false
this.countdown = 60
this.countdown = 30
this.lineKey = e.detail.value
this.lineId = this.lineList[e.detail.value].lineId