【修改】校验展示形式统一

This commit is contained in:
zhoulingpo
2023-04-26 14:44:38 +08:00
parent 963754a29e
commit 3e7b5a11a3
@@ -109,7 +109,7 @@ export default {
this.form.remark = data.remark this.form.remark = data.remark
this.form.id=data.id this.form.id=data.id
this.form={...this.form} this.form={...this.form}
this.$refs.form.clearValidate('name') // this.$refs.form.clearValidate('name')
this.$forceUpdate() this.$forceUpdate()
} else { } else {
this.form = { this.form = {
@@ -119,12 +119,10 @@ export default {
orderNum:'', orderNum:'',
remark:'' remark:''
} }
this.$refs.form.clearValidate() // this.$refs.form.clearValidate()
this.$forceUpdate() this.$forceUpdate()
} }
}) })
}, },
cancel() { cancel() {
this.dialogVisible = false this.dialogVisible = false
@@ -151,7 +149,6 @@ export default {
message:'更新成功' message:'更新成功'
}) })
this.$emit('updateList') this.$emit('updateList')
} }
}) })
} }