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() {
console.log(this.formList);
console.log(this.form);
this.formList.forEach((group) => {
group.children.forEach((item) => {
if (item.check && !this.form[group.id][item.formName]) {
this.$message.error(`${item.label}不能为空`);
throw new Error(`${item.label}不能为空`);
}
});
});
//
// this.formList.forEach((group) => {
// group.children.forEach((item) => {
// if (item.check && !this.form[group.id][item.formName]) {
// this.$message.error(`${item.label}`);
// throw new Error(`${item.label}`);
// }
// });
// });
if (this.formType === 'add') {
this.form.id = this.form.partyOrgId;
}

Loading…
Cancel
Save