💄 ui: adjust column layout in pricing table

- Move model price column to fixed right position
- Convert endpoint types column from fixed to regular column
- Reorder columns: endpoint types now appears before ratio column
- Improve table layout and user experience for pricing data viewing

Changes made to web/src/components/table/model-pricing/view/table/PricingTableColumns.js:
* Removed `fixed: 'right'` from endpointColumn
* Added `fixed: 'right'` to priceColumn
* Updated column order in the columns array
This commit is contained in:
t0ng7u
2025-08-08 04:41:46 +08:00
parent ac158e227e
commit 346b869d60

View File

@@ -101,7 +101,6 @@ export const getPricingTableColumns = ({
const endpointColumn = {
title: t('可用端点类型'),
dataIndex: 'supported_endpoint_types',
fixed: 'right',
render: (text, record, index) => {
return renderSupportedEndpoints(text);
},
@@ -189,6 +188,7 @@ export const getPricingTableColumns = ({
const priceColumn = {
title: t('模型价格'),
dataIndex: 'model_price',
fixed: 'right',
render: (text, record, index) => {
const priceData = calculateModelPrice({
record,
@@ -221,10 +221,10 @@ export const getPricingTableColumns = ({
};
const columns = [...baseColumns];
columns.push(endpointColumn);
if (showRatio) {
columns.push(ratioColumn);
}
columns.push(priceColumn);
columns.push(endpointColumn);
return columns;
};