Browse Source

去掉居民拓展信息表单验证

feature
mk 1 year ago
parent
commit
a82b1227e9
  1. 17
      src/views/components/resiExpand/index.vue

17
src/views/components/resiExpand/index.vue

@ -311,14 +311,15 @@ export default {
handleClickSUbmitExpand() { handleClickSUbmitExpand() {
console.log(this.formList); console.log(this.formList);
console.log(this.form); console.log(this.form);
this.formList.forEach((group) => { //
group.children.forEach((item) => { // this.formList.forEach((group) => {
if (item.check && !this.form[group.id][item.formName]) { // group.children.forEach((item) => {
this.$message.error(`${item.label}不能为空`); // if (item.check && !this.form[group.id][item.formName]) {
throw new Error(`${item.label}不能为空`); // this.$message.error(`${item.label}`);
} // throw new Error(`${item.label}`);
}); // }
}); // });
// });
if (this.formType === 'add') { if (this.formType === 'add') {
this.form.id = this.form.partyOrgId; this.form.id = this.form.partyOrgId;
} }

Loading…
Cancel
Save