<!--
|
* @Author: PengJianTian
|
* @Date: 2019-10-21 15:40:58
|
* @LastEditTime : 2019-12-25 14:42:22
|
* @LastEditors : PengJianTian
|
* @Description:
|
* @FilePath: \cts-web\src\views\area\projectManagement\details\components\ProjectProtectionTable.vue
|
* @
|
-->
|
<template>
|
<div>
|
<el-table :data="tableData" size="mini" stripe style="width: 100%">
|
<el-table-column label=" " type="index"></el-table-column>
|
<el-table-column prop="personName" label="项目拓展人姓名和工号"></el-table-column>
|
<el-table-column prop="personPhone" label="项目拓展人联系方式"></el-table-column>
|
</el-table>
|
<pagination
|
v-show="total > 0"
|
:total="total"
|
:page.sync="listQuery.currentPage"
|
:limit.sync="listQuery.pageSize"
|
@pagination="tableList"
|
/>
|
</div>
|
</template>
|
|
<script>
|
import Pagination from '@/components/Pagination'
|
import { getEnsurePersonnelList } from '@/api/area'
|
import { mapState } from 'vuex'
|
export default {
|
components: { Pagination },
|
data: function() {
|
return {
|
tableData: [],
|
// 分页
|
total: 0,
|
listQuery: {
|
currentPage: 1,
|
pageSize: 10
|
}
|
}
|
},
|
created() {
|
this.tableList()
|
},
|
computed: {
|
...mapState({
|
detailsParams: state => state.risk.detailsParams
|
})
|
},
|
methods: {
|
tableList() {
|
// 初始化表格
|
const { detailsParams } = this
|
const { objectNo, objectType, projectType, dataType } = detailsParams
|
let params = {
|
objectNo,
|
objectType,
|
projectType,
|
dataType,
|
ensureType: '01'
|
}
|
params = Object.assign({}, params, this.listQuery)
|
getEnsurePersonnelList(params).then(res => {
|
this.tableData = res.result.records
|
this.total = res.result.total
|
})
|
}
|
}
|
}
|
</script>
|
|
<style scoped></style>
|