|
|
@ -21,6 +21,25 @@ |
|
|
|
label="身份证号"> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<!-- <el-pagination |
|
|
|
:current-page="page" |
|
|
|
:page-sizes="[10, 20, 50, 100]" |
|
|
|
:page-size="limit" |
|
|
|
:total="total" |
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
@size-change="pageSizeChangeHandle" |
|
|
|
@current-change="pageCurrentChangeHandle"> |
|
|
|
</el-pagination> --> |
|
|
|
<el-pagination |
|
|
|
@size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
:current-page.sync="pageNo" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="parseInt(pageSize)" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total" |
|
|
|
> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -41,7 +60,11 @@ export default { |
|
|
|
// 列表相关 |
|
|
|
tableData: [], |
|
|
|
tableLoading: false, |
|
|
|
orgPids: '' |
|
|
|
agencyId: '', |
|
|
|
partyOrgId: '', |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 20, |
|
|
|
total: 1, |
|
|
|
} |
|
|
|
}, |
|
|
|
props: { |
|
|
@ -54,8 +77,9 @@ export default { |
|
|
|
}, |
|
|
|
components: {}, |
|
|
|
methods: { |
|
|
|
initForm (agencyId) { |
|
|
|
this.orgPids = agencyId |
|
|
|
initForm (agencyId, id) { |
|
|
|
this.agencyId = agencyId |
|
|
|
this.partyOrgId = id |
|
|
|
this.tableLoading = true |
|
|
|
this.loadTable() |
|
|
|
}, |
|
|
@ -66,17 +90,32 @@ export default { |
|
|
|
// 查询列表 |
|
|
|
async loadTable () { |
|
|
|
let params = { |
|
|
|
partyOrgId: this.orgPids, |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 10000000 |
|
|
|
agencyId: this.agencyId, |
|
|
|
partyOrgId: this.partyOrgId, |
|
|
|
pageNo: this.pageNo, |
|
|
|
pageSize: this.pageSize |
|
|
|
} |
|
|
|
const url = `/resi/partymember/icPartyMember/page` |
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
this.tableLoading = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.internalMsg ? res.internalMsg : res.msg ? res.msg : '查询失败') |
|
|
|
} |
|
|
|
if (code === 0) { |
|
|
|
this.tableData = data.list ? data.list : [] |
|
|
|
this.total = data.total || 0; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
handleSizeChange (val) { |
|
|
|
console.log(`每页 ${val} 条`) |
|
|
|
this.pageSize = val |
|
|
|
this.loadTable() |
|
|
|
}, |
|
|
|
handleCurrentChange (val) { |
|
|
|
console.log(`当前页: ${val}`); |
|
|
|
this.pageNo = val; |
|
|
|
this.loadTable(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|