<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>
|