diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index 344a59a8..c6000079 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -658,8 +658,8 @@ export default { } }) }, - clearValidate () { - this.$refs.ruleForm.clearValidate() + clearValidate (fieldNameList) { + this.$refs.ruleForm.clearValidate(fieldNameList) }, /** * 国内海外的特殊处理 @@ -688,7 +688,7 @@ export default { }) } this.rules = Object.assign({}, rules) - this.clearValidate() + this.clearValidate(fieldNameList) } }, getFlag (fieldName) { @@ -733,7 +733,7 @@ export default { }) } this.rules = Object.assign({}, rules) - this.clearValidate() + this.clearValidate(fields) } } } diff --git a/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue b/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue index 01787c7b..69c5a53b 100644 --- a/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue +++ b/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue @@ -1085,7 +1085,7 @@ export default { }) } this.rules = Object.assign({}, rules) - this.$refs.ruleForm.clearValidate() + this.$refs.ruleForm.clearValidate(fieldNameList) }, /** * 获取海外的表单数据 @@ -1166,7 +1166,7 @@ export default { }) } this.rules = Object.assign({}, rules) - this.$refs.ruleForm.clearValidate() + this.$refs.ruleForm.clearValidate(fields) } } }