Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4acc23ff69 | |||
| f286c4f940 |
@@ -149,9 +149,6 @@ function PointScorePopover({ row }: { row: CouponDataRow }) {
|
||||
return <Typography.Text type="secondary">-</Typography.Text>;
|
||||
}
|
||||
const score = `${row.point_success_count}/${row.point_total_count}`;
|
||||
const scoreWithRate = `${score}(${(
|
||||
row.point_success_count / row.point_total_count * 100
|
||||
).toFixed(1)}%)`;
|
||||
const scoreColor =
|
||||
row.point_success_count === row.point_total_count
|
||||
? STATUS_TAG.completed.color
|
||||
@@ -223,7 +220,7 @@ function PointScorePopover({ row }: { row: CouponDataRow }) {
|
||||
)}
|
||||
>
|
||||
<Button type="link" size="small" style={{ height: 'auto', padding: 0, color: scoreColor }}>
|
||||
{scoreWithRate}
|
||||
{score}
|
||||
</Button>
|
||||
</Popover>
|
||||
);
|
||||
@@ -605,9 +602,9 @@ export default function CouponDataPage() {
|
||||
render: (v: number | null) => fmtSec(v),
|
||||
},
|
||||
{
|
||||
title: '单券成功率',
|
||||
title: '百分比',
|
||||
key: 'point_success_rate',
|
||||
width: 150,
|
||||
width: 110,
|
||||
render: (_: unknown, r: CouponDataRow) => <PointScorePopover row={r} />,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user