修改组件页面
This commit is contained in:
@@ -700,7 +700,7 @@ const handleTrend = async () => {
|
||||
// }
|
||||
})
|
||||
} else {
|
||||
ElMessage.success('装置应答失败')
|
||||
ElMessage.warning('装置应答失败')
|
||||
}
|
||||
})
|
||||
.catch(e => {
|
||||
@@ -748,11 +748,13 @@ const handleHarmonicSpectrum = async () => {
|
||||
//返回
|
||||
const handleReturn = async () => {
|
||||
if (realDataTimer.value) {
|
||||
clearInterval(realDataTimer.value)
|
||||
window.clearInterval(realDataTimer.value)
|
||||
}
|
||||
|
||||
if (trendTimer.value) {
|
||||
clearInterval(trendTimer.value)
|
||||
window.clearInterval(trendTimer.value)
|
||||
}
|
||||
|
||||
realTimeFlag.value = true
|
||||
sonTab.value = null
|
||||
activeTrendName.value = 0
|
||||
@@ -981,10 +983,10 @@ const getRealDataMqttMsg = async () => {
|
||||
})
|
||||
}, 30000)
|
||||
mqttRef.value.on('message', (topic: any, message: any) => {
|
||||
console.log(
|
||||
'实时数据&实时趋势---mqtt接收到消息',
|
||||
JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))
|
||||
)
|
||||
// console.log(
|
||||
// '实时数据&实时趋势---mqtt接收到消息',
|
||||
// JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))
|
||||
// )
|
||||
let obj = JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))
|
||||
|
||||
if (lineId.value != obj.lineId || adminInfo.userIndex != obj.userId) return
|
||||
@@ -1152,10 +1154,10 @@ const mqttMessage = ref<any>({})
|
||||
const handleClick = async (tab?: any) => {
|
||||
tableLoading.value = true
|
||||
if (realDataTimer.value) {
|
||||
clearInterval(realDataTimer.value)
|
||||
window.clearInterval(realDataTimer.value)
|
||||
}
|
||||
if (trendTimer.value) {
|
||||
clearInterval(trendTimer.value)
|
||||
window.clearInterval(trendTimer.value)
|
||||
}
|
||||
sonTab.value = null
|
||||
activeTrendName.value = 0
|
||||
|
||||
Reference in New Issue
Block a user