From 2e5d551e5dc5d12bbfdebd72babee9e0a9f92d2a Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Thu, 22 May 2025 18:43:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=84=9A=E6=9C=AC=E4=B8=8EIC?= =?UTF-8?q?D=E6=A3=80=E9=AA=8C=E6=97=B6=E5=87=BA=E7=8E=B010500=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/home/components/channelsTest.vue | 7 +++++++ frontend/src/views/home/components/factorTest.vue | 7 +++++++ frontend/src/views/home/components/preTest.vue | 8 ++++++++ frontend/src/views/home/components/test.vue | 10 ++++++++++ 4 files changed, 32 insertions(+) diff --git a/frontend/src/views/home/components/channelsTest.vue b/frontend/src/views/home/components/channelsTest.vue index cd7ca51..6efb613 100644 --- a/frontend/src/views/home/components/channelsTest.vue +++ b/frontend/src/views/home/components/channelsTest.vue @@ -315,6 +315,13 @@ watch(webMsgSend, function (newValue, oldValue) { }) TableInit(); } + if (newValue.code == 10500) { + ElMessageBox.alert(`装置中未找到该icd!`, '初始化失败', { + confirmButtonText: '确定', + type: 'error', + }) + TableInit(); + } break; } break; diff --git a/frontend/src/views/home/components/factorTest.vue b/frontend/src/views/home/components/factorTest.vue index 0286b24..2beede2 100644 --- a/frontend/src/views/home/components/factorTest.vue +++ b/frontend/src/views/home/components/factorTest.vue @@ -356,6 +356,13 @@ watch(webMsgSend, function (newValue, oldValue) { }) TableInit(); } + if (newValue.code == 10500) { + ElMessageBox.alert(`装置中未找到该icd!`, '初始化失败', { + confirmButtonText: '确定', + type: 'error', + }) + TableInit(); + } break; } break; diff --git a/frontend/src/views/home/components/preTest.vue b/frontend/src/views/home/components/preTest.vue index 14b8fb6..5bc8fd8 100644 --- a/frontend/src/views/home/components/preTest.vue +++ b/frontend/src/views/home/components/preTest.vue @@ -461,6 +461,14 @@ watch(webMsgSend, function (newValue, oldValue) { step3.value = 'error' ts.value = 'error' step5.value = 'error' + } else if (newValue.code == 10500) { + step3InitLog.value.push({ + type: 'error', + log: `装置中未找到该icd!`, + }) + step3.value = 'error' + ts.value = 'error' + step5.value = 'error' } break; } diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index 8447341..39ff4be 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -559,6 +559,16 @@ watch(webMsgSend, function (newValue, oldValue) { log: `${new Date().toLocaleString()}:脚本与icd校验失败!icd名称:${data['icdType']} -> 校验项:${data['dataType']}` }) emit('update:testStatus', 'test_init_fail') + }else if(newValue.code == 10500) { + ElMessageBox.alert(`装置中未找到该icd!`, '初始化失败', { + confirmButtonText: '确定', + type: 'error', + }) + testLogList.push({ + type: 'error', + log: `${new Date().toLocaleString()}:装置中未找到该icd!` + }) + emit('update:testStatus', 'test_init_fail') } break; }