fix: 修复表格列显示和状态判断逻辑

This commit is contained in:
lingling 2025-03-10 20:16:36 +08:00
parent 3c29cf610f
commit 96f302d048
2 changed files with 3 additions and 4 deletions

View File

@ -61,7 +61,6 @@
<a-table-column title="用户vip等级" data-index="vip_id"></a-table-column> <a-table-column title="用户vip等级" data-index="vip_id"></a-table-column>
<a-table-column title="用户积分" data-index="money"></a-table-column> <a-table-column title="用户积分" data-index="money"></a-table-column>
<a-table-column title="上级代理" data-index="parent_username"></a-table-column> <a-table-column title="上级代理" data-index="parent_username"></a-table-column>
<a-table-column title="累计在线时长/分" data-index="time"></a-table-column>
<a-table-column title="注册时间"> <a-table-column title="注册时间">
<template #cell="{ record }"> <template #cell="{ record }">
{{ dayjs(record.created_at).format('YYYY-MM-DD HH:mm:ss') }} {{ dayjs(record.created_at).format('YYYY-MM-DD HH:mm:ss') }}

View File

@ -75,8 +75,8 @@
<a-table-column title="订单编号" data-index="order_number"></a-table-column> <a-table-column title="订单编号" data-index="order_number"></a-table-column>
<a-table-column title="操作"> <a-table-column title="操作">
<template #cell="{ record }"> <template #cell="{ record }">
<a-button v-if="status == 1" @click="handleNotBlock(record)">拒绝</a-button> <a-button v-if="record.status == 1" @click="handleNotBlock(record)">拒绝</a-button>
<a-button v-if="status == 1" @click="handleBlock(record)">同意</a-button> <a-button v-if="record.status == 1" @click="handleBlock(record)">同意</a-button>
</template> </template>
</a-table-column> </a-table-column>
</template> </template>
@ -212,7 +212,7 @@ const summary = () => {
data.value.forEach(record => { data.value.forEach(record => {
amount += record.amount; amount += record.amount;
}) })
addNum.value = amount; addNum.value = Math.round(amount * 100) / 100
} }
// //
const getColorStyle = (column, record) => { const getColorStyle = (column, record) => {