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
75
76
<template>
  <div>
    <el-table :data="tableData" size="mini" stripe style="width: 100%">
      <el-table-column prop="productname" label="产品"> </el-table-column>
      <!-- <el-table-column prop="cityDesc" label="城市"> </el-table-column> -->
      <el-table-column prop="levermultiple" label="杠杆倍数"> </el-table-column>
      <el-table-column prop="creditratio" label="住宅授信比例(%)" > </el-table-column>
      <el-table-column prop="ncreditratioDesc" label="非住宅授信比例(%)" >
      </el-table-column>
      <!-- <el-table-column prop="takeratiomax" label="可取现比例(%)"> </el-table-column> -->
      <!-- <el-table-column prop="stageratiomax" label="可分期比例(%)"> </el-table-column> -->
      <!-- <el-table-column prop="accountperiod" label="交易账期(月)"> </el-table-column> -->
      <!-- <el-table-column prop="putoutwaitdays" 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 { queryProjectProductInfos } 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() {
      // 初始化表格
      let params = {
        objectType: this.detailsParams.objectType,
        dataType: this.detailsParams.dataType,
        projectFlag: this.detailsParams.projectFlag,
        projectType: this.detailsParams.projectType,
        serialno: this.detailsParams.objectNo
      }
      queryProjectProductInfos(params).then(res => {
                this.tableData = res.result.records
                this.tableData.map(item => {
                    for(let key in item){
                        if(item[key] === '' || item[key] === '0' || item[key] === 'null'){
                            item[key] = '--'
                        }
                    }
                })
        this.total = res.result.total
      })
    }
  }
}
</script>
 
<style scoped></style>