From f442e1eeec6ef9c833129c1d250a520c4d3c2fb6 Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Mon, 21 Oct 2024 19:00:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../currentDevice.vue | 9 +- .../tabs/components/harmonicSpectrum.vue | 27 ++- .../control/tabs/components/realtrend.vue | 207 ++++++------------ src/views/govern/device/fileService/index.vue | 4 +- 4 files changed, 92 insertions(+), 155 deletions(-) diff --git a/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue b/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue index c69e43d..59cdf99 100644 --- a/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue +++ b/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue @@ -111,16 +111,16 @@ const handleUpDevice = () => { ndid: routes.query.ndid, proList: proList } - loading.value = true + // loading.value = true offlineDataUploadMakeUp(form) .then((res: any) => { if (res.code == 'A0000') { ElMessage.success(res.message) - loading.value = false + // loading.value = false } }) .catch(e => { - loading.value = false + // loading.value = false }) } const handleIntoDir = (row: any) => { @@ -173,6 +173,7 @@ mqttRef.value.on('message', (topic: any, message: any) => { // console.log('🚀 ~ mqttRef.value.on ~ message:', JSON.parse(message)) // console.log('mqtt接收到消息', message,topic) console.log('mqtt接收到消息', JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))) + loading.value = false // "{allStep:\""+times+"\",nowStep:"+i+"}" let str = JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message)))) // eval('(' + str + ')').includes('fileName') @@ -182,7 +183,7 @@ mqttRef.value.on('message', (topic: any, message: any) => { allStep: str.match(regex1)[1], nowStep: str.match(regex2)[1] } - console.log(mqttMessage.value, '?????????') + console.log(mqttMessage.value, '=============================================185') let checkedList = tableRef.value.getCheckboxRecords().map((item: any) => { return item.name }) diff --git a/src/views/govern/device/control/tabs/components/harmonicSpectrum.vue b/src/views/govern/device/control/tabs/components/harmonicSpectrum.vue index 6d1f54a..8b2ffd3 100644 --- a/src/views/govern/device/control/tabs/components/harmonicSpectrum.vue +++ b/src/views/govern/device/control/tabs/components/harmonicSpectrum.vue @@ -1,4 +1,4 @@ - +