fix: 账单新增手动更新按钮。
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
<div class="title">基本信息</div>
|
||||
<div class="operate-btn-con">
|
||||
<el-button @click="handleAdd" icon="Plus" v-hasPermi="['invest:creditCardBill:add']">新增</el-button>
|
||||
<el-button @click="handleUpdateBill" icon="Refresh" v-hasPermi="['invest:creditCardBill:add']">手动更新账单</el-button>
|
||||
<el-button :disabled="multiple" icon="Delete" @click="handleDelete" v-hasPermi="['invest:creditCardBill:remove']">删除</el-button>
|
||||
<!-- <el-button @click="handleExport" icon="Download" v-hasPermi="['invest:creditCardBill:export']">导出</el-button> -->
|
||||
</div>
|
||||
@@ -143,7 +144,14 @@
|
||||
</template>
|
||||
|
||||
<script setup name="CreditCardBill">
|
||||
import { listCreditCardBill, getCreditCardBill, delCreditCardBill, addCreditCardBill, updateCreditCardBill } from '@/api/invest/creditCardBill'
|
||||
import {
|
||||
listCreditCardBill,
|
||||
getCreditCardBill,
|
||||
delCreditCardBill,
|
||||
addCreditCardBill,
|
||||
updateCreditCardBill,
|
||||
updateUnpaidCreditBill
|
||||
} from '@/api/invest/creditCardBill'
|
||||
import { listBankcardLend } from '@/api/invest/bankcardlend'
|
||||
import { listAccountDealRecord } from '@/api/invest/accountDealRecord'
|
||||
import dayjs from 'dayjs'
|
||||
@@ -367,6 +375,16 @@ function handleAdd() {
|
||||
title.value = '添加信用卡账单'
|
||||
}
|
||||
|
||||
/** 手动更新按钮操作 */
|
||||
function handleUpdateBill() {
|
||||
updateUnpaidCreditBill()
|
||||
setTimeout(() => {
|
||||
// 一秒后执行的操作
|
||||
getList()
|
||||
proxy.$modal.msgSuccess('手动更新账单成功')
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
/** 修改按钮操作 */
|
||||
function handleUpdate(row) {
|
||||
reset()
|
||||
|
||||
Reference in New Issue
Block a user