修改检测脚本闪变编辑逻辑
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
filterable
|
filterable
|
||||||
allow-create
|
allow-create
|
||||||
v-model="form[0].flickerData.fchagFre"
|
v-model="form[0].flickerData.fchagFre"
|
||||||
:disabled="!form[0].flickerFlag"
|
:disabled="!form[0].flickerFlag || props.childForm[0].flickerData.flickerValue == null"
|
||||||
@change="changeWaveType"
|
@change="changeWaveType"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
placeholder="请输入变动量"
|
placeholder="请输入变动量"
|
||||||
style="width: 180px"
|
style="width: 180px"
|
||||||
v-model="form[0].flickerData.fchagValue"
|
v-model="form[0].flickerData.fchagValue"
|
||||||
:disabled="!form[0].flickerFlag"
|
:disabled="!form[0].flickerFlag || props.childForm[0].flickerData.flickerValue == null"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -238,6 +238,10 @@ const changeWaveType = e => {
|
|||||||
}
|
}
|
||||||
const form: any = computed({
|
const form: any = computed({
|
||||||
get() {
|
get() {
|
||||||
|
if (props.childForm[0].flickerData.flickerValue == null) {
|
||||||
|
props.childForm[0].flickerData.fchagValue = ''
|
||||||
|
props.childForm[0].flickerData.fchagFre = ''
|
||||||
|
}
|
||||||
return props.childForm
|
return props.childForm
|
||||||
},
|
},
|
||||||
set(value) {}
|
set(value) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user