Browse Source

fix:【党组织管理】各种bug

feature
wxz 2 years ago
parent
commit
bda1a92b2b
  1. 13
      src/views/modules/communityParty/partyOrg/create.vue
  2. 9
      src/views/modules/communityParty/partyOrg/orgTree.vue
  3. 1
      src/views/modules/communityParty/partyOrg/update.vue

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

@ -233,6 +233,7 @@ export default {
this.parentPartyOrgs = []; this.parentPartyOrgs = [];
this.principals = []; this.principals = [];
this.xingzhengOrgs = []; this.xingzhengOrgs = [];
this.searchValue = null;
return { return {
partyOrgPid: null, partyOrgPid: null,
@ -289,6 +290,8 @@ export default {
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
async handlePartyOrgLevelSelected() { async handlePartyOrgLevelSelected() {
this.dataForm.orgId = null;
// init // init
if (this.operation === 'createNew') { if (this.operation === 'createNew') {
this.loadParentPartyOrgs(this.dataForm.partyOrgLevel); this.loadParentPartyOrgs(this.dataForm.partyOrgLevel);
@ -319,10 +322,10 @@ export default {
await this.loadXingzhengOrgs(); await this.loadXingzhengOrgs();
if (this.dataForm.partyOrgPid === '0') { // if (this.dataForm.partyOrgPid === '0') {
// // //
this.dataForm.orgId = this.xingzhengOrgs[0].orgId; // this.dataForm.orgId = this.xingzhengOrgs[0].orgId;
} // }
}, },
/** /**
@ -505,7 +508,7 @@ export default {
// 1:2345678 // 1:2345678
// >=6 // >=6
this.$nextTick(() => { 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; this.dataForm.orgId = this.xingzhengOrgs[0].orgId;
// //

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

@ -255,9 +255,12 @@ export default {
this.partyOrgTree.push(data); this.partyOrgTree.push(data);
// 2 // 2
this.$nextTick(() => { console.log(">>>>", this.partyOrgTree)
document.getElementsByClassName('el-table__expand-icon')[0].click(); if (this.partyOrgTree.length > 0) {
}); this.$nextTick(() => {
document.getElementsByClassName('el-table__expand-icon')[0].click();
});
}
}).parse(rst); }).parse(rst);
}, },

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

@ -209,6 +209,7 @@ export default {
*/ */
initForm() { initForm() {
this.principals = []; this.principals = [];
this.searchValue = null;
return { return {
id: null, id: null,
partyOrgName: null, partyOrgName: null,

Loading…
Cancel
Save