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

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

@ -24,7 +24,7 @@
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)"
@click="addOrUpdateHandle('', scope.row.orgPids)" @click="addOrUpdateHandle('', scope.row.id)"
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,12 @@
this.tableLoading = false this.tableLoading = false
}, },
// / // /
addOrUpdateHandle (id, orgPids) { addOrUpdateHandle (id, orgId) {
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.orgPids = orgPids // this.$refs.addOrUpdate.dataForm.orgId = orgId //
this.$refs.addOrUpdate.init() this.$refs.addOrUpdate.init()
}) })

Loading…
Cancel
Save