From 934162875c2977f4e1bedfb54e4e5add3e904d73 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Wed, 26 Feb 2025 11:40:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/home/components/factorTest.vue | 6 +----- frontend/src/views/home/components/testPopup.vue | 11 ++++++----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/frontend/src/views/home/components/factorTest.vue b/frontend/src/views/home/components/factorTest.vue index e5ec404..9c0a4b7 100644 --- a/frontend/src/views/home/components/factorTest.vue +++ b/frontend/src/views/home/components/factorTest.vue @@ -149,10 +149,6 @@ const tableDataMap = new Map>([]); const currentStepStatus = ref<'error' | 'finish' | 'wait' | 'success' | 'process'>('finish'); const webMsgSend = toRef(props, 'webMsgSend'); - - - - onBeforeMount(() => { // 初始化 initData() @@ -343,7 +339,7 @@ watch(webMsgSend, function (newValue, oldValue) { } break; case 'Coefficient_Check': - console.log("Coefficient_Checkactive", active.value); + // console.log("Coefficient_Checkactive", active.value); switch (newValue.operateCode) { case 'big_end'://大电压,电流下装 active.value++; diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue index 217cff7..9ff209a 100644 --- a/frontend/src/views/home/components/testPopup.vue +++ b/frontend/src/views/home/components/testPopup.vue @@ -51,7 +51,7 @@ 暂停中 {{ nextStepText }} @@ -178,10 +178,10 @@ const handleSubmit = () => { let deviceIds = checkStore.devices.map((item) => item.deviceId) let planId = checkStore.plan.id - if (!dataSocket.socketServe.connected) { - ElMessage.error('webSocket连接中断!') - return - } + // if (!dataSocket.socketServe.connected) { + // ElMessage.error('webSocket连接中断!') + // return + // } switch (stepsActive.value) { case 1: startPreTest({ @@ -294,6 +294,7 @@ watch(ActiveStatue, function (newValue, oldValue) { nextStep() // 实现自动点击,进入下一个测试内容 handleSubmit() } + }) const sendPause = () => {