From ab02f8f1b34e2ceeee7cb83be9f6fc79b71116ad Mon Sep 17 00:00:00 2001 From: chendaofei <857448963@qq.com> Date: Wed, 15 Jan 2025 19:27:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E6=A3=80=E6=B5=8B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/home/components/preTest.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/home/components/preTest.vue b/frontend/src/views/home/components/preTest.vue index 0a3e8ec..2ca9879 100644 --- a/frontend/src/views/home/components/preTest.vue +++ b/frontend/src/views/home/components/preTest.vue @@ -51,7 +51,11 @@

- {{ item.log }}
+ {{ item.log.split('&&')[0] }} +
+ {{ item.log.split('&&')[1] }} +
+

@@ -441,14 +445,14 @@ watch(webMsgSend, function (newValue, oldValue) { if (newValue.code == 10200) { step4InitLog.value.push({ type: 'info', - log: '源已接通!', + log: '源参数下发成功,等待校验中.....', }) } else if (newValue.code == 10201) { step4.value = 'process' step4InitLog.value = [{ type: 'wait', - log: '正在接通源.....', + log: '源参数下发中.....', }]; } else if (newValue.code == 10552) { ElMessage.error("存在已经初始化步骤,已经自动关闭,请重新发起检测!") @@ -470,9 +474,11 @@ watch(webMsgSend, function (newValue, oldValue) { if (newValue.data.includes('不合格')) { type = 'error' } + + newValue.data.split('
') step4InitLog.value.push({ type: type, - log: '相序校验:' + newValue.data, + log:newValue.data, }) } else if (newValue.code == 10201) { @@ -488,7 +494,7 @@ watch(webMsgSend, function (newValue, oldValue) { log: '相序校验未通过!', }) ts.value = 'error' - }else if (newValue.code == 25001) { + } else if (newValue.code == 25001) { step4.value = 'success' step5.value = 'success' step4InitLog.value.push({