|
|
@ -29,7 +29,7 @@ |
|
|
|
size="small" |
|
|
|
class="div-table-button--add">新增下级</el-button> |
|
|
|
<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" |
|
|
|
size="small" |
|
|
|
class="div-table-button--edit">修改</el-button> |
|
|
@ -106,13 +106,15 @@ |
|
|
|
this.tableLoading = false |
|
|
|
}, |
|
|
|
// 新增 / 修改 |
|
|
|
addOrUpdateHandle (id, orgId, orgPids) { |
|
|
|
addOrUpdateHandle (id, orgId, orgPids, pid) { |
|
|
|
console.log('pid:::::', pid) |
|
|
|
this.addOrUpdateVisible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.addOrUpdate.dataForm.id = id |
|
|
|
// 新增下级需要传 |
|
|
|
this.$refs.addOrUpdate.dataForm.orgId = orgId // 党组织 |
|
|
|
this.$refs.addOrUpdate.dataForm.orgPids = orgPids |
|
|
|
this.$refs.addOrUpdate.dataForm.pid = pid |
|
|
|
|
|
|
|
this.$refs.addOrUpdate.init() |
|
|
|
}) |
|
|
|