From 4a80a88e6eec5afca3c49848bac47c38f8c16e51 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Mon, 14 Apr 2025 19:51:06 +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 --- .../src/views/home/components/factorTest.vue | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/frontend/src/views/home/components/factorTest.vue b/frontend/src/views/home/components/factorTest.vue index 117ca54..0286b24 100644 --- a/frontend/src/views/home/components/factorTest.vue +++ b/frontend/src/views/home/components/factorTest.vue @@ -362,41 +362,42 @@ watch(webMsgSend, function (newValue, oldValue) { case 'Coefficient_Check': console.log("Coefficient_Checkactive", active.value); switch (newValue.operateCode) { - case 'big_end'://大电压,电流下装 - console.log('大电压,电流下装') - active.value++; + case 'big_start'://大电压,电流下装 big_V_Download.value = 'Ua=Ub=Uc=' + newValue.data.devVolt + 'V'; big_I_Download.value = 'Ia=Ib=Ic=' + newValue.data.devCurr + 'A'; - + break; + case 'big_end'://大电压,电流下装 + active.value++; tableLoading('small', '系数下装') break; } switch (newValue.operateCode) { - case 'small_end'://小电压,电流下装 - console.log('小电压,电流下装') - active.value++; + case 'small_start'://小电压,电流下装 small_V_Download.value = 'Ua=Ub=Uc=' + newValue.data.devVolt + 'V'; small_I_Download.value = 'Ia=Ib=Ic=' + newValue.data.devCurr + 'A'; - + break; + case 'small_end'://小电压,电流下装 + active.value++; tableLoading('big', '系数校准') break; } switch (newValue.operateCode) { - case 'big_comp_end'://大电压,电流校准 - console.log('大电压,电流校准') - active.value++; + case 'big_comp_start'://大电压,电流校准 big_V_Adjust.value = 'Ua=Ub=Uc=' + newValue.data.devVolt + 'V'; big_I_Adjust.value = 'Ia=Ib=Ic=' + newValue.data.devCurr + 'A'; - + break; + case 'big_comp_end'://大电压,电流校准 + active.value++; tableLoading('small', '系数校准') break; } switch (newValue.operateCode) { - case 'small_comp_end'://小电压,电流校准 - console.log('小电压,电流校准') - active.value++; + case 'small_comp_start'://小电压,电流校准 small_V_Adjust.value = 'Ua=Ub=Uc=' + newValue.data.devVolt + 'V'; small_I_Adjust.value = 'Ia=Ib=Ic=' + newValue.data.devCurr + 'A'; + break; + case 'small_comp_end'://小电压,电流校准 + active.value++; active.value++; for (let i = 0; i < name.value.length; i++) {