pull/480/head
parent
433759a903
commit
adc8366a60
|
|
@ -78,7 +78,7 @@
|
|||
</el-col>
|
||||
<el-col :span="16">
|
||||
<el-form-item label="偏差原因" prop="reason">
|
||||
<el-input v-model="formData.reason" placeholder="请输入偏差原因" />
|
||||
<el-input v-model="formData.reason" placeholder="请输入偏差原因" :disabled="formData.deviation=='0'"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
|
|
@ -143,7 +143,12 @@ const formRules = reactive({
|
|||
const formRef = ref() // 表单 Ref
|
||||
|
||||
const handleSelectChange = (newValue) => {
|
||||
console.log("newValue="+ newValue);
|
||||
if(newValue == 0){
|
||||
formData.value.reason =undefined
|
||||
formRules.reason[0].required= false
|
||||
}else{
|
||||
formRules.reason[0].required= true
|
||||
}
|
||||
}
|
||||
|
||||
/** 打开弹窗 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue