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++) {