Commit f080bef7 by t0ng7u

馃拕 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
parent dfcee356
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment