diff --git a/web/src/components/table/subscriptions/SubscriptionsColumnDefs.jsx b/web/src/components/table/subscriptions/SubscriptionsColumnDefs.jsx index 1cff521bc..6bf18ba51 100644 --- a/web/src/components/table/subscriptions/SubscriptionsColumnDefs.jsx +++ b/web/src/components/table/subscriptions/SubscriptionsColumnDefs.jsx @@ -27,8 +27,9 @@ import { Popover, Divider, Badge, + Tooltip, } from '@douyinfe/semi-ui'; -import { IconEdit, IconStop, IconPlay } from '@douyinfe/semi-icons'; +import { renderQuota } from '../../../helpers'; import { convertUSDToCurrency } from '../../../helpers/render'; const { Text } = Typography; @@ -81,7 +82,13 @@ const renderPlanTitle = (text, record, t) => { {convertUSDToCurrency(Number(plan?.price_amount || 0), 2)} {t('总额度')} - {plan?.total_amount > 0 ? plan.total_amount : t('不限')} + {plan?.total_amount > 0 ? ( + + {renderQuota(plan.total_amount)} + + ) : ( + {t('不限')} + )} {t('升级分组')} {plan?.upgrade_group ? plan.upgrade_group : t('不升级')} {t('购买上限')} @@ -165,7 +172,13 @@ const renderTotalAmount = (text, record, t) => { const total = Number(record?.plan?.total_amount || 0); return ( 0 ? 'secondary' : 'tertiary'}> - {total > 0 ? total : t('不限')} + {total > 0 ? ( + + {renderQuota(total)} + + ) : ( + t('不限') + )} ); }; @@ -236,30 +249,22 @@ const renderOperations = (text, record, { openEdit, setPlanEnabled, t }) => { return ( {isEnabled ? ( - ) : (