|
|
@ -23,8 +23,8 @@ |
|
|
|
type="text" |
|
|
|
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.id)" |
|
|
|
<el-button v-if="(scope.row.agencyId == agencyId || scope.row.agencyPids.includes(agencyId)) && scope.row.partyOrgType != '5'" |
|
|
|
@click="addOrUpdateHandle('', scope.row.id, scope.row.orgPids)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--add">新增下级</el-button> |
|
|
@ -106,12 +106,13 @@ |
|
|
|
this.tableLoading = false |
|
|
|
}, |
|
|
|
// 新增 / 修改 |
|
|
|
addOrUpdateHandle (id, orgId) { |
|
|
|
addOrUpdateHandle (id, orgId, orgPids) { |
|
|
|
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.init() |
|
|
|
}) |
|
|
|