|
|
|
@ -256,7 +256,20 @@ export default { |
|
|
|
this.$emit('hideExpand', this.formType) |
|
|
|
}, |
|
|
|
handleClickSUbmitExpand() { |
|
|
|
this.$emit('submitExpand', this.form, this.formType) |
|
|
|
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.form[group.id][item.formName].length === 0) { |
|
|
|
this.$message.error(`${item.label}不能为空`); |
|
|
|
throw new Error(`${item.label}不能为空`); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (this.formType === 'add') { |
|
|
|
this.form.id = this.form.partyOrgId; |
|
|
|
} |
|
|
|
// this.$emit('submitExpand', this.form, this.formType) |
|
|
|
}, |
|
|
|
handlePartyOrgCascadarChange(selectedNode) { |
|
|
|
this.form.parymemberInfoDto.partyOrgId = selectedNode[selectedNode.length - 1]; |
|
|
|
|