|
|
@ -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; |
|
|
|
} |
|
|
|