|
@ -22,7 +22,8 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item prop="orgId" |
|
|
<el-form-item prop="orgId" |
|
|
label="行政组织"> |
|
|
label="行政组织" |
|
|
|
|
|
v-show="xingzhengSelectorVisible"> |
|
|
{{ this.orgName }} |
|
|
{{ this.orgName }} |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
@ -120,6 +121,7 @@ export default { |
|
|
mapSearchResultList: [], // 地图搜索结果列表 |
|
|
mapSearchResultList: [], // 地图搜索结果列表 |
|
|
epmetResultResolver: null, // epmet请求结果解析器 |
|
|
epmetResultResolver: null, // epmet请求结果解析器 |
|
|
visible: false, |
|
|
visible: false, |
|
|
|
|
|
xingzhengSelectorVisible: true, // 行政组织是否可见 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted () { |
|
|
mounted () { |
|
@ -132,7 +134,7 @@ export default { |
|
|
* @param parentPartyOrgId 非必填,父党组织级别的ID,在添加下级党组织的时候传递,否则为空 |
|
|
* @param parentPartyOrgId 非必填,父党组织级别的ID,在添加下级党组织的时候传递,否则为空 |
|
|
* @returns {Promise<void>} |
|
|
* @returns {Promise<void>} |
|
|
*/ |
|
|
*/ |
|
|
async init (partyOrgId) { |
|
|
async init (partyOrgId, partyOrgLevel) { |
|
|
this.visible = true; |
|
|
this.visible = true; |
|
|
|
|
|
|
|
|
// 加载党组织简要信息 |
|
|
// 加载党组织简要信息 |
|
@ -140,7 +142,6 @@ export default { |
|
|
await this.getPartyOrgDetail(partyOrgId).then((poi) => { |
|
|
await this.getPartyOrgDetail(partyOrgId).then((poi) => { |
|
|
partyOrgInfo = poi; |
|
|
partyOrgInfo = poi; |
|
|
}); |
|
|
}); |
|
|
console.info("党组织简要信息:", partyOrgInfo); |
|
|
|
|
|
|
|
|
|
|
|
this.orgName = partyOrgInfo.orgName; |
|
|
this.orgName = partyOrgInfo.orgName; |
|
|
this.orgId = partyOrgInfo.orgId; |
|
|
this.orgId = partyOrgInfo.orgId; |
|
@ -153,6 +154,12 @@ export default { |
|
|
this.dataForm.longitude = partyOrgInfo.longitude; |
|
|
this.dataForm.longitude = partyOrgInfo.longitude; |
|
|
this.dataForm.latitude = partyOrgInfo.latitude; |
|
|
this.dataForm.latitude = partyOrgInfo.latitude; |
|
|
this.dataForm.address = partyOrgInfo.address; |
|
|
this.dataForm.address = partyOrgInfo.address; |
|
|
|
|
|
|
|
|
|
|
|
if (partyOrgLevel >= 6) { |
|
|
|
|
|
this.xingzhengSelectorVisible = false; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.xingzhengSelectorVisible = true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** ● 加载负责人 **/ |
|
|
/** ● 加载负责人 **/ |
|
|
await this.loadPrincipals(); |
|
|
await this.loadPrincipals(); |
|
@ -239,6 +246,7 @@ export default { |
|
|
this.visible = false; |
|
|
this.visible = false; |
|
|
this.$emit("update:visiable", false); |
|
|
this.$emit("update:visiable", false); |
|
|
this.initForm(); |
|
|
this.initForm(); |
|
|
|
|
|
this.$refs.dataForm.resetFields(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|