fix: 修复表格列显示和状态判断逻辑
This commit is contained in:
parent
3c29cf610f
commit
96f302d048
|
@ -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') }}
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue