From 4a8f8bff6a3f92f087b3d7c627ca591e795a3ad4 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Mon, 15 Sep 2025 14:59:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E6=A3=80=E6=B5=8B=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=BD=95=E6=B3=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/home/components/comparePreTest.vue | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/home/components/comparePreTest.vue b/frontend/src/views/home/components/comparePreTest.vue index c455c62..b3caa27 100644 --- a/frontend/src/views/home/components/comparePreTest.vue +++ b/frontend/src/views/home/components/comparePreTest.vue @@ -218,7 +218,7 @@ watch(webMsgSend, function (newValue, oldValue) { if (newValue.code == 10200) { step1InitLog.value.push({ type: 'info', - log: newValue.data + '设备通讯校验成功!', + log: newValue.data, }) } else if (newValue.code == 10201) { @@ -249,6 +249,44 @@ watch(webMsgSend, function (newValue, oldValue) { step2.value = 'process' } break; + case 'INIT_GATHER$03': + if (newValue.code == 10200) { + step1InitLog.value.push({ + type: 'info', + log: newValue.data, + }) + }else if (newValue.code == 25001) { + step1InitLog.value.push({ + type: 'info', + log: newValue.data, + }) + activeIndex.value = 1 + step1.value = 'success' + step2.value = 'process' + } + break; + case 'DATA_REQUEST$03': + if (newValue.code == 25001) { + activeIndex.value = 1 + step1.value = 'success' + step2.value = 'process' + } + break; + } + break; + case 'record_wave_step2': + switch (newValue.operateCode) { + case 'DATA_REQUEST$03': + if (newValue.code == 25002) { //某一路录波校验失败 + step1InitLog.value.push({ + type: 'error', + log: newValue.data , + }) + }else if (newValue.code == 25003) { //最终失败 + step1.value = 'error' + ts.value = 'error' + step5.value = 'error' + } } break; case 'yjc_mxyzxjy':