|
|
@ -233,6 +233,7 @@ export default { |
|
|
|
this.parentPartyOrgs = []; |
|
|
|
this.principals = []; |
|
|
|
this.xingzhengOrgs = []; |
|
|
|
this.searchValue = null; |
|
|
|
|
|
|
|
return { |
|
|
|
partyOrgPid: null, |
|
|
@ -289,6 +290,8 @@ export default { |
|
|
|
* @returns {Promise<void>} |
|
|
|
*/ |
|
|
|
async handlePartyOrgLevelSelected() { |
|
|
|
this.dataForm.orgId = null; |
|
|
|
|
|
|
|
// 加载上级党组织。只在新增的时候加载,新增下级的时候,不加载,init函数中已经固定了上级党组织 |
|
|
|
if (this.operation === 'createNew') { |
|
|
|
this.loadParentPartyOrgs(this.dataForm.partyOrgLevel); |
|
|
@ -319,10 +322,10 @@ export default { |
|
|
|
|
|
|
|
await this.loadXingzhengOrgs(); |
|
|
|
|
|
|
|
if (this.dataForm.partyOrgPid === '0') { |
|
|
|
// 根级党组织 |
|
|
|
this.dataForm.orgId = this.xingzhengOrgs[0].orgId; |
|
|
|
} |
|
|
|
// if (this.dataForm.partyOrgPid === '0') { |
|
|
|
// // 根级党组织 |
|
|
|
// this.dataForm.orgId = this.xingzhengOrgs[0].orgId; |
|
|
|
// } |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@ -505,7 +508,7 @@ export default { |
|
|
|
// 1:省委,2:市委,3:区委,4:党工委,5:党委,6:党总支,7:党支部,8:楼院党小组 |
|
|
|
// 如果是 >=6 ,那么他们对应的行政组织,就是上级党组织对应的行政组织,自动选中即可 |
|
|
|
this.$nextTick(() => { |
|
|
|
if (this.dataForm.partyOrgLevel >= 6 && data && data.length > 0) { |
|
|
|
if (data && data.length > 0 && (this.dataForm.partyOrgLevel >= 6 || this.dataForm.partyOrgPid === '0')) { |
|
|
|
this.dataForm.orgId = this.xingzhengOrgs[0].orgId; |
|
|
|
|
|
|
|
// 自动选择了行政组织,然后自动加载负责人列表 |
|
|
|