diff --git a/web/src/components/table/model-pricing/PricingTableColumns.js b/web/src/components/table/model-pricing/PricingTableColumns.js
index 676ec579..be354671 100644
--- a/web/src/components/table/model-pricing/PricingTableColumns.js
+++ b/web/src/components/table/model-pricing/PricingTableColumns.js
@@ -19,7 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
import React from 'react';
import { Tag, Space, Tooltip, Switch } from '@douyinfe/semi-ui';
-import { IconVerify, IconHelpCircle } from '@douyinfe/semi-icons';
+import { IconHelpCircle, IconCheckCircleStroked, IconClose } from '@douyinfe/semi-icons';
import { Popover } from '@douyinfe/semi-ui';
import { renderModelTag, stringToColor } from '../../../helpers';
@@ -43,18 +43,30 @@ function renderQuotaType(type, t) {
}
function renderAvailable(available, t) {
- return available ? (
+ if (available) {
+ return (
+ {t('您的分组可以使用该模型')}}
+ position='top'
+ key={String(available)}
+ className="bg-green-50"
+ >
+
+
+ );
+ }
+
+ // 分组不可用时显示红色关闭图标
+ return (
{t('您的分组可以使用该模型')}
- }
+ content={{t('你的分组无权使用该模型')}
}
position='top'
- key={available}
- className="bg-green-50"
+ key="not-available"
+ className="bg-red-50"
>
-
+
- ) : null;
+ );
}
function renderSupportedEndpoints(endpoints) {
@@ -133,7 +145,7 @@ export const getPricingTableColumns = ({
if (usableGroup[group]) {
if (group === selectedGroup) {
return (
- }>
+ }>
{group}
);