From a0c7f7930275413f4faa9b955ce4e78dca044ae3 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Tue, 25 Feb 2025 08:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A3=80=E6=B5=8B=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E9=97=AA=E5=8F=98=E7=BC=96=E8=BE=91=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../testScript/components/testScriptFlickerTab.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/machine/testScript/components/testScriptFlickerTab.vue b/frontend/src/views/machine/testScript/components/testScriptFlickerTab.vue index 9167619..f2257e3 100644 --- a/frontend/src/views/machine/testScript/components/testScriptFlickerTab.vue +++ b/frontend/src/views/machine/testScript/components/testScriptFlickerTab.vue @@ -41,7 +41,7 @@ filterable allow-create v-model="form[0].flickerData.fchagFre" - :disabled="!form[0].flickerFlag" + :disabled="!form[0].flickerFlag || props.childForm[0].flickerData.flickerValue == null" @change="changeWaveType" > @@ -238,6 +238,10 @@ const changeWaveType = e => { } const form: any = computed({ get() { + if (props.childForm[0].flickerData.flickerValue == null) { + props.childForm[0].flickerData.fchagValue = '' + props.childForm[0].flickerData.fchagFre = '' + } return props.childForm }, set(value) {}