<template>
|
<div>
|
<el-table
|
v-loading="listLoading"
|
:data="tableData"
|
fit
|
stripe
|
highlight-current-row
|
style="width: 100%;"
|
size="small"
|
>
|
<el-table-column label=" " type="index" align="center" width="50px"> </el-table-column>
|
<el-table-column prop="shareholdertypeCn" label="股东类型" > </el-table-column>
|
<el-table-column prop="shareholdername" label="股东名称" > </el-table-column>
|
<el-table-column prop="certtypeCn" label="证件类型" > </el-table-column>
|
<el-table-column prop="certid" label="证件号码" > </el-table-column>
|
<el-table-column prop="isfirstshareholderCn" label="是否第一股东" > </el-table-column>
|
<el-table-column prop="holdingratio" label="持股比例(%)" > </el-table-column>
|
</el-table>
|
<pagination
|
v-show="total > 1"
|
:total="total"
|
:page.sync="listQuery.currentPage"
|
:limit.sync="listQuery.pageSize"
|
@pagination="initTable"
|
/>
|
</div>
|
</template>
|
|
<script>
|
import { qryEnpShareholderInfo } from '@/api/area/enterprise'
|
import Pagination from '@/components/Pagination'
|
export default {
|
props: ['objectNo', 'objectType'],
|
components: { Pagination },
|
data: function() {
|
return {
|
// 分页
|
tableData: [],
|
listLoading: true,
|
total: 0,
|
listQuery: {
|
currentPage: 1,
|
pageSize: 10
|
}
|
}
|
},
|
created() {
|
this.initTable()
|
},
|
methods: {
|
async initTable() {
|
let params = {
|
objectno: this.objectNo,
|
objecttype: this.objectType
|
}
|
Object.assign(params, this.listQuery)
|
let res = await qryEnpShareholderInfo(params)
|
this.tableData = res.result.records
|
this.total = res.result.total
|
this.listLoading = false
|
}
|
}
|
}
|
</script>
|
|
<style scoped></style>
|