-
{t('已用额度')}: {renderQuota(used)}
-
{t('剩余额度')}: {renderQuota(remain)} ({percent.toFixed(0)}%)
-
{t('总额度')}: {renderQuota(total)}
{t('调用次数')}: {renderNumber(record.request_count)}
);
@@ -175,6 +129,43 @@ const renderStatistics = (text, record, showEnableDisableModal, t) => {
);
};
+// Render separate quota usage column
+const renderQuotaUsage = (text, record, t) => {
+ const { Paragraph } = Typography;
+ const used = parseInt(record.used_quota) || 0;
+ const remain = parseInt(record.quota) || 0;
+ const total = used + remain;
+ const percent = total > 0 ? (remain / total) * 100 : 0;
+ const popoverContent = (
+