diff --git a/src/views/modules/partymember/icpartyorg-add-or-update.vue b/src/views/modules/partymember/icpartyorg-add-or-update.vue index 4e0390631..74a482bd4 100644 --- a/src/views/modules/partymember/icpartyorg-add-or-update.vue +++ b/src/views/modules/partymember/icpartyorg-add-or-update.vue @@ -37,6 +37,7 @@ 0 && this.dataForm.mySelectOrg) { this.dataForm.orgPid = this.dataForm.mySelectOrg[this.dataForm.mySelectOrg.length - 1] - this.dataForm.orgPids = '' + this.dataForm.orgPids = this.$refs.myOrg.getCheckedNodes()[0].data.orgPids; this.dataForm.mySelectOrg.forEach(element => { this.dataForm.orgPids = this.dataForm.orgPids ? this.dataForm.orgPids + ':' + element : element }); @@ -330,7 +331,7 @@ }) }, getInfoAgencyLisy(){ - this.$http.get('/gov/org/customeragency/getOrgTreeByUserAndType', {params: {agencyId: this.dataForm.pid, orgType: this.dataForm.partyOrgType}}).then(({data: res}) => { + this.$http.get('/gov/org/customeragency/getOrgTreeByUserAndType', {params: {agencyId: this.dataForm.pid?this.dataForm.pid:this.agencyId, orgType: this.dataForm.partyOrgType}}).then(({data: res}) => { if (res.code !== 0) { return this.$message.error(res.internalMsg ? res.internalMsg : res.msg ? res.msg : '查询失败') }