| | |
| | | size: pagination.pageSize, |
| | | total: pagination.total, |
| | | }" |
| | | :isShowSummary="true" |
| | | :summaryMethod="summarizeMainTable" |
| | | @selection-change="handleSelectionChange" |
| | | @pagination="changePage" |
| | | > |
| | |
| | | 编辑 |
| | | </el-button> |
| | | <el-button |
| | | v-if="row.status == 1" |
| | | :disabled="row.status !== 1" |
| | | type="primary" |
| | | link |
| | | @click="repay(row)" |
| | |
| | | { |
| | | label: "借款人姓名", |
| | | prop: "borrowerName", |
| | | width: 150, |
| | | }, |
| | | { |
| | | label: "借款金额(元)", |
| | | prop: "borrowAmount", |
| | | width: 150, |
| | | formatData: (val) => { |
| | | return val ? `¥${parseFloat(val).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : '¥0.00'; |
| | | }, |
| | |
| | | { |
| | | label: "借款利率(%)", |
| | | prop: "interestRate", |
| | | width: 130, |
| | | formatData: (val) => { |
| | | return val ? `${parseFloat(val).toFixed(2)}%` : '-'; |
| | | }, |
| | |
| | | { |
| | | label: "借款日期", |
| | | prop: "borrowDate", |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "实际还款日期", |
| | | prop: "repayDate", |
| | | width: 130, |
| | | }, |
| | | { |
| | | label: "借款状态", |
| | | prop: "status", |
| | | width: 100, |
| | | dataType: "tag", |
| | | align: 'center', |
| | | formatData: (params) => { |
| | | if (params == 1) { |
| | | return "待还款"; |
| | |
| | | } |
| | | ); |
| | | |
| | | // 表格合计:借款金额 |
| | | const summarizeMainTable = (param) => { |
| | | return proxy.summarizeTable(param, ["borrowAmount"]); |
| | | }; |
| | | |
| | | // 多选后做什么 |
| | | const handleSelectionChange = (selectionList) => { |
| | | multipleList.value = selectionList; |