From 346b869d60178e09839e31c50277a49709a7baf4 Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Fri, 8 Aug 2025 04:41:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20ui:=20adjust=20column=20layout?= =?UTF-8?q?=20in=20pricing=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .../table/model-pricing/view/table/PricingTableColumns.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/table/model-pricing/view/table/PricingTableColumns.js b/web/src/components/table/model-pricing/view/table/PricingTableColumns.js index e38cde13..18e1fc89 100644 --- a/web/src/components/table/model-pricing/view/table/PricingTableColumns.js +++ b/web/src/components/table/model-pricing/view/table/PricingTableColumns.js @@ -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; }; \ No newline at end of file