|
@@ -129,7 +129,15 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #balance="{ record }">
|
|
<template #balance="{ record }">
|
|
|
- <a-tag color="gray">{{ record.balance }} </a-tag>
|
|
|
|
|
|
|
+ <a-tag color="red" v-if="record.balance <= record.balance_alert_threshold">{{ record.balance }}
|
|
|
|
|
+ </a-tag>
|
|
|
|
|
+ <a-tag color="blue" v-else>{{ record.balance }} </a-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template #balance_alert_threshold="{ record }">
|
|
|
|
|
+ <a-tag color="red" v-if="record.balance <= record.balance_alert_threshold">{{ record.balance_alert_threshold }}
|
|
|
|
|
+ </a-tag>
|
|
|
|
|
+ <a-tag color="blue" v-else>{{ record.balance_alert_threshold }} </a-tag>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #status="{ record }">
|
|
<template #status="{ record }">
|
|
@@ -248,7 +256,13 @@ const columns = computed<TableColumnData[]>(() => [
|
|
|
title: '账户余额',
|
|
title: '账户余额',
|
|
|
slotName: 'balance',
|
|
slotName: 'balance',
|
|
|
align: 'right',
|
|
align: 'right',
|
|
|
- width: 120,
|
|
|
|
|
|
|
+ width: 60,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '余额警戒线',
|
|
|
|
|
+ slotName: 'balance_alert_threshold',
|
|
|
|
|
+ align: 'right',
|
|
|
|
|
+ width: 60,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '状态',
|
|
title: '状态',
|