rules: { jcwjid: [{ required: true, validator: this.validateWgzzrDOS, trigger: 'change' }], } validateWgzzrDOS(rule, value, callback) { if (this.form.jcwjid) { callback(); } else { callback(new Error('风险因素不能为空')); } },
rules: { jcwjid: [{ required: true, validator: this.validateWgzzrDOS, trigger: 'change' }], } validateWgzzrDOS(rule, value, callback) { if (this.form.jcwjid) { callback(); } else { callback(new Error('风险因素不能为空')); } },