Browse Source

bug

shibei_master
zhaoyongnian 3 years ago
parent
commit
10a1c79052
  1. 8
      src/views/modules/partymember/icpartyorg-add-or-update.vue
  2. 6
      src/views/modules/partymember/icpartyorgtree.vue

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

@ -42,7 +42,7 @@
placeholder="请选择上级党组织"
:props="{ checkStrictly: true, label: 'partyOrgName', value: 'id', children: 'children' }"
@change="handleChangeOrg"
:disabled="dataForm.id ? true : false"
:disabled="dataForm.id || dataForm.orgId ? true : false"
clearable />
</el-form-item>
<el-form-item label="党组织介绍" prop="introduction">
@ -124,7 +124,7 @@
latitude: '', //
address: '',
introduction: '', //
orgId: '',
customerId: '',
staffId:'',
orgPidName: '',
@ -160,8 +160,8 @@
this.getInfo()
} else {
this.initMap()
if(this.dataForm.id) {
this.dataForm.mySelectOrg = this.dataForm.id
if(this.dataForm.orgId) {
this.dataForm.mySelectOrg = this.dataForm.orgId
} else {
this.dataForm.mySelectOrg = ''
}

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

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

Loading…
Cancel
Save