1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
| <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: '02'
| }
| params = Object.assign({}, params, this.listQuery)
| getEnsurePersonnelList(params).then(res => {
| this.tableData = res.result.records
| this.total = res.result.total
| })
| }
| }
| }
| </script>
|
| <style scoped></style>
|
|