|
|
@ -84,8 +84,8 @@ |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
:rows="2" |
|
|
|
placeholder="" |
|
|
|
v-model="this.dataForm.description"> |
|
|
|
placeholder="请输入党组织介绍" |
|
|
|
v-model="dataForm.description"> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
@ -281,13 +281,7 @@ export default { |
|
|
|
|
|
|
|
this.epmetResultResolver.success((data) => { |
|
|
|
this.parentPartyOrgs = data; |
|
|
|
if (this.dataForm.partyOrgLevel >= 6) { |
|
|
|
this.xingzhengSelectorVisible = false; |
|
|
|
} else { |
|
|
|
this.xingzhengSelectorVisible = true; |
|
|
|
} |
|
|
|
}) |
|
|
|
.parse(rst); |
|
|
|
}).parse(rst); |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@ -300,10 +294,17 @@ export default { |
|
|
|
this.loadParentPartyOrgs(this.dataForm.partyOrgLevel); |
|
|
|
} |
|
|
|
|
|
|
|
// 如果新增下级组织,那么在选了level之后,要加载行政组织 |
|
|
|
// 如果是新增下级组织,那么在选了level之后,要加载行政组织 |
|
|
|
if (this.operation === 'createSubOrg') { |
|
|
|
this.loadXingzhengOrgs(); |
|
|
|
} |
|
|
|
|
|
|
|
// 级别为党总支及以下,则隐藏行政组织下拉框 |
|
|
|
if (this.dataForm.partyOrgLevel >= 6) { |
|
|
|
this.xingzhengSelectorVisible = false; |
|
|
|
} else { |
|
|
|
this.xingzhengSelectorVisible = true; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@ -316,7 +317,12 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.loadXingzhengOrgs(); |
|
|
|
await this.loadXingzhengOrgs(); |
|
|
|
|
|
|
|
if (this.dataForm.partyOrgPid === '0') { |
|
|
|
// 根级党组织 |
|
|
|
this.dataForm.orgId = this.xingzhengOrgs[0].orgId; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@ -357,6 +363,8 @@ export default { |
|
|
|
this.visible = false; |
|
|
|
this.$emit("update:visiable", false); |
|
|
|
this.initForm(); |
|
|
|
this.$refs.dataForm.resetFields(); |
|
|
|
this.xingzhengSelectorVisible = true; |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@ -368,8 +376,6 @@ export default { |
|
|
|
this.$refs.dataForm.validate((success) => { |
|
|
|
if (success) { |
|
|
|
this.submitCreatePartyOrg(); |
|
|
|
|
|
|
|
this.$emit('refreshTree'); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|