Browse Source

优化

shibei_master
zhaoyongnian 3 years ago
parent
commit
28d0f7b1df
  1. 5
      src/views/modules/partymember/icpartyorg-add-or-update.vue
  2. 6
      src/views/modules/partymember/icpartyorgtree.vue

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

@ -128,7 +128,8 @@
customerId: '', customerId: '',
staffId:'', staffId:'',
orgPidName: '', orgPidName: '',
agencyName:'' agencyName:'',
pid: ''
}, },
orgListVisible: false, orgListVisible: false,
agencyListVisible:false, agencyListVisible:false,
@ -230,7 +231,7 @@
}, },
// //
getOrgList() { getOrgList() {
return this.$http.get('/resi/partymember/icPartyOrg/getTreelist', {params: {agencyId: this.agencyId}}).then(({data: res}) => { return this.$http.get('/resi/partymember/icPartyOrg/getTreelist', {params: {agencyId: this.agencyId, orgPid: this.dataForm.id ? this.dataForm.pid : ''}}).then(({data: res}) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.internalMsg ? res.internalMsg : res.msg ? res.msg : '查询失败') return this.$message.error(res.internalMsg ? res.internalMsg : res.msg ? res.msg : '查询失败')
} }

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

@ -29,7 +29,7 @@
size="small" size="small"
class="div-table-button--add">新增下级</el-button> class="div-table-button--add">新增下级</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.id)" @click="addOrUpdateHandle(scope.row.id, '', '', scope.row.pid)"
type="text" type="text"
size="small" size="small"
class="div-table-button--edit">修改</el-button> class="div-table-button--edit">修改</el-button>
@ -106,13 +106,15 @@
this.tableLoading = false this.tableLoading = false
}, },
// / // /
addOrUpdateHandle (id, orgId, orgPids) { addOrUpdateHandle (id, orgId, orgPids, pid) {
console.log('pid:::::', pid)
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.dataForm.orgPids = orgPids
this.$refs.addOrUpdate.dataForm.pid = pid
this.$refs.addOrUpdate.init() this.$refs.addOrUpdate.init()
}) })

Loading…
Cancel
Save