zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
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
66
67
68
69
70
71
72
73
74
<!--
 * @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>