Browse Source

bug

shibei_master
zhaoyongnian 3 years ago
parent
commit
41ee42f81c
  1. 11
      src/views/modules/partymember/icpartyorg-add-or-update.vue
  2. 7
      src/views/modules/partymember/icpartyorgtree.vue

11
src/views/modules/partymember/icpartyorg-add-or-update.vue

@ -162,11 +162,13 @@
this.initMap() this.initMap()
if(this.dataForm.orgId) { if(this.dataForm.orgId) {
this.dataForm.mySelectOrg = this.dataForm.orgId this.dataForm.mySelectOrg = this.dataForm.orgId
this.dataForm.orgPid = this.dataForm.orgId
this.dataForm.orgPids = this.dataForm.orgPids + ':' + this.dataForm.orgId
console.log(this.dataForm.orgPid)
console.log(this.dataForm.orgPids)
} else { } else {
this.dataForm.mySelectOrg = '' this.dataForm.mySelectOrg = ''
} }
this.orgListTreeSetDefaultHandle()
} }
}) })
}) })
@ -301,11 +303,6 @@
}).catch(() => { }).catch(() => {
}) })
}, },
// ,
orgListTreeSetDefaultHandle() {
this.dataForm.orgPid = '0'
this.dataForm.orgPidName = '一级组织'
},
// init // init
initMap () { initMap () {
document.getElementById('app').innerHTML = '' document.getElementById('app').innerHTML = ''

7
src/views/modules/partymember/icpartyorgtree.vue

@ -23,8 +23,8 @@
type="text" type="text"
size="small" size="small"
class="div-table-button--detail">{{'查看党员'}}</el-button> class="div-table-button--detail">{{'查看党员'}}</el-button>
<el-button v-if="scope.row.agencyId == agencyId || scope.row.agencyPids.includes(agencyId)" <el-button v-if="(scope.row.agencyId == agencyId || scope.row.agencyPids.includes(agencyId)) && scope.row.partyOrgType != '5'"
@click="addOrUpdateHandle('', scope.row.id)" @click="addOrUpdateHandle('', scope.row.id, scope.row.orgPids)"
type="text" type="text"
size="small" size="small"
class="div-table-button--add">新增下级</el-button> class="div-table-button--add">新增下级</el-button>
@ -106,12 +106,13 @@
this.tableLoading = false this.tableLoading = false
}, },
// / // /
addOrUpdateHandle (id, orgId) { addOrUpdateHandle (id, orgId, orgPids) {
this.addOrUpdateVisible = true this.addOrUpdateVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.addOrUpdate.dataForm.id = id this.$refs.addOrUpdate.dataForm.id = id
// //
this.$refs.addOrUpdate.dataForm.orgId = orgId // this.$refs.addOrUpdate.dataForm.orgId = orgId //
this.$refs.addOrUpdate.dataForm.orgPids = orgPids
this.$refs.addOrUpdate.init() this.$refs.addOrUpdate.init()
}) })

Loading…
Cancel
Save