jiangyy 4 years ago
parent
commit
89d58c637d
  1. 3
      src/components/parser/Parser.vue

3
src/components/parser/Parser.vue

@ -473,7 +473,7 @@ export default {
} }
// //
const validateOtherInput = (rule, value, callback) => { const validateOtherInput = (rule, value, callback) => {
debugger
// 0 // 0
if (value == 0 || (Array.isArray(value) && value.includes(0))) { if (value == 0 || (Array.isArray(value) && value.includes(0))) {
if (!this[this.formConf.labelFormModel][`${rule.field}other`]) { if (!this[this.formConf.labelFormModel][`${rule.field}other`]) {
@ -486,6 +486,7 @@ export default {
} }
} }
if (Array.isArray(config.regList)) { if (Array.isArray(config.regList)) {
debugger
// //
if (['RADIO', 'CHECKBOX'].includes(cur.typeId)) { if (['RADIO', 'CHECKBOX'].includes(cur.typeId)) {
const required = { validator: validateOtherInput, message: cur.placeholder } const required = { validator: validateOtherInput, message: cur.placeholder }

Loading…
Cancel
Save