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.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:2345678
// >=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;
//

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

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

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

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

Loading…
Cancel
Save