mk 2 years ago
parent
commit
a900f0ca25
  1. 32
      src/views/modules/communityParty/partyOrg/create.vue
  2. 2
      src/views/modules/communityParty/partyOrg/orgTree.vue
  3. 14
      src/views/modules/communityParty/partyOrg/update.vue

32
src/views/modules/communityParty/partyOrg/create.vue

@ -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');
}
});
},

2
src/views/modules/communityParty/partyOrg/orgTree.vue

@ -207,7 +207,7 @@ export default {
handleUpdateBtnClick(row) {
this.updateDlgShow = true;
this.$nextTick(() => {
this.$refs['updateOrg'].init(row.id);
this.$refs['updateOrg'].init(row.id, row.partyOrgLevel);
});
},

14
src/views/modules/communityParty/partyOrg/update.vue

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

Loading…
Cancel
Save