修改检测脚本闪变编辑逻辑

This commit is contained in:
GGJ
2025-02-25 08:58:03 +08:00
parent bd1eecc106
commit a0c7f79302

View File

@@ -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"
>
<el-option
@@ -59,7 +59,7 @@
placeholder="请输入变动量"
style="width: 180px"
v-model="form[0].flickerData.fchagValue"
:disabled="!form[0].flickerFlag"
:disabled="!form[0].flickerFlag || props.childForm[0].flickerData.flickerValue == null"
/>
</el-form-item>
</div>
@@ -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) {}