fix: 首页功能优化,模块优化。
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-con" v-loading="loading">
|
||||
<el-table v-loading="loading" :data="installmentHistoryList" @selection-change="handleSelectionChange" height="calc(100% - 0.62rem)">
|
||||
<el-table v-loading="loading" :data="installmentHistoryList" height="calc(100% - 0.62rem)">
|
||||
<el-table-column label="信用卡" align="center" width="200" prop="bankNameCode" />
|
||||
<el-table-column label="分期金额" align="center" prop="installmentAmount" />
|
||||
<el-table-column label="分期日期" align="center" prop="installmentDate" width="100">
|
||||
@@ -183,11 +183,13 @@
|
||||
<div class="title">基本信息</div>
|
||||
<div class="operate-btn-con">
|
||||
<el-button @click="handleAddDetail" icon="Plus" v-hasPermi="['invest:installmentHistory:add']">新增</el-button>
|
||||
<el-button icon="Delete" @click="handleDeleteDetail" v-hasPermi="['invest:installmentHistory:remove']">删除明细</el-button>
|
||||
<el-button @click="handleUpdateInterest" icon="Expand" v-hasPermi="['invest:installmentHistory:add']">总利息汇总</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-con">
|
||||
<el-table v-loading="loading" :data="installmentDetailList">
|
||||
<el-table v-loading="loading" @selection-change="handleSelectionChange" :data="installmentDetailList">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="入账日期" align="center" prop="repaymentDate" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.repaymentDate, '{y}-{m}-{d}') }}</span>
|
||||
@@ -581,10 +583,11 @@ function handleDelete(row) {
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDeleteDetail(row) {
|
||||
const _ids = row.id || ids.value
|
||||
proxy.$modal
|
||||
.confirm('是否确认删除选中的数据项?')
|
||||
.then(function () {
|
||||
return delInstallmentDetail(row.id)
|
||||
return delInstallmentDetail(_ids)
|
||||
})
|
||||
.then(() => {
|
||||
listInstallmentDetail({ installmentHistoryId: currentInstallmentHistoryId.value, pageNum: 1, pageSize: 1000 }).then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user