优化发布等各种状态
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
import { fetchWalletBalance, fetchWalletLedger, type WalletAccount, type WalletLedger } from '@/api/wallet'
|
||||
import { balanceTypeLabel, ledgerDirectionLabel, walletStatusLabel } from '@/utils/statusLabels'
|
||||
import { formatDateTime } from '@/utils/time'
|
||||
|
||||
const loading = ref(false)
|
||||
@@ -41,16 +42,20 @@ async function loadWallet() {
|
||||
</div>
|
||||
<div class="metric-card">
|
||||
<span>状态</span>
|
||||
<strong>{{ account.status }}</strong>
|
||||
<strong>{{ walletStatusLabel(account.status) }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-table class="table-panel" :data="ledger">
|
||||
<el-table-column prop="ledger_no" label="流水号" min-width="220" />
|
||||
<el-table-column prop="biz_type" label="业务" width="140" />
|
||||
<el-table-column prop="direction" label="方向" width="80" />
|
||||
<el-table-column label="方向" width="80">
|
||||
<template #default="{ row }">{{ ledgerDirectionLabel(row.direction) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="amount" label="金额" width="100" />
|
||||
<el-table-column prop="balance_type" label="余额类型" width="110" />
|
||||
<el-table-column label="余额类型" width="110">
|
||||
<template #default="{ row }">{{ balanceTypeLabel(row.balance_type) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="balance_after" label="变化后余额" width="130" />
|
||||
<el-table-column prop="remark" label="备注" min-width="220" />
|
||||
<el-table-column label="时间" width="180">
|
||||
|
||||
Reference in New Issue
Block a user