2 changed files with 198 additions and 72 deletions
@ -0,0 +1,97 @@ |
|||
<template> |
|||
<div> |
|||
<div class="dialog-h-content scroll-h"> |
|||
<div> |
|||
<div class="div_table"> |
|||
<el-table ref="ref_table" |
|||
:data="tableData" |
|||
border |
|||
:height="tableHeight" |
|||
v-loading="tableLoading" |
|||
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" |
|||
style="width: 100%" |
|||
highlight-current-row> |
|||
<el-table-column prop="name" |
|||
label="姓名"> |
|||
</el-table-column> |
|||
<el-table-column prop="mobile" |
|||
label="联系方式"> |
|||
</el-table-column> |
|||
<el-table-column prop="idCard" |
|||
label="身份证号"> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="div_btn"> |
|||
<el-button size="small" |
|||
@click="handleCancle">取 消</el-button> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { mapGetters } from 'vuex' |
|||
import { requestPost } from "@/js/dai/request"; |
|||
export default { |
|||
data () { |
|||
return { |
|||
btnDisable: false, |
|||
// 列表相关 |
|||
tableData: [], |
|||
tableLoading: false, |
|||
orgPids: '' |
|||
} |
|||
}, |
|||
props: { |
|||
}, |
|||
computed: { |
|||
tableHeight () { |
|||
return this.$store.state.inIframe ? this.clientHeight - 410 + this.iframeHeight : this.clientHeight - 410 |
|||
}, |
|||
...mapGetters(['clientHeight', 'iframeHeight']) |
|||
}, |
|||
components: {}, |
|||
methods: { |
|||
initForm (orgPids) { |
|||
if (orgPids.split(',').length > 0) { |
|||
this.orgPids = orgPids.split(',')[orgPids.split(',').length - 1] |
|||
} |
|||
this.tableLoading = true |
|||
this.loadTable() |
|||
}, |
|||
// 取消 |
|||
handleCancle () { |
|||
this.$emit('lookMemberCancle') |
|||
}, |
|||
// 查询列表 |
|||
async loadTable () { |
|||
let params = { |
|||
partyOrgId: this.orgPids, |
|||
pageNo: 1, |
|||
pageSize: 10000000 |
|||
} |
|||
const url = `/resi/partymember/icPartyMember/page` |
|||
const { data, code, msg } = await requestPost(url, params) |
|||
this.tableLoading = false |
|||
if (code === 0) { |
|||
this.tableData = data.list ? data.list : [] |
|||
} |
|||
} |
|||
}, |
|||
} |
|||
</script> |
|||
<style lang="scss" scoped > |
|||
@import "@/assets/scss/modules/visual/communityManage.scss"; |
|||
</style> |
|||
<style lang="scss" scoped> |
|||
.div_btn{ |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
} |
|||
</style> |
|||
|
|||
|
|||
|
Loading…
Reference in new issue