diff --git a/react-ui/src/enums/index.ts b/react-ui/src/enums/index.ts index b043a2d3..a9dd4a0f 100644 --- a/react-ui/src/enums/index.ts +++ b/react-ui/src/enums/index.ts @@ -39,9 +39,9 @@ export enum TensorBoardStatus { // 镜像版本状态 export enum MirrorVersionStatus { - Available = 'available', // 可用 - Building = 'building', // 构建中 - Failed = 'failed', // 构建中 + Available = 'Available', // 可用 + Building = 'Building', // 构建中 + Failed = 'Failed', // 失败 } // 服务运行状态 diff --git a/react-ui/src/pages/AutoML/components/ExperimentList/index.tsx b/react-ui/src/pages/AutoML/components/ExperimentList/index.tsx index 15846f9c..6f944ac7 100644 --- a/react-ui/src/pages/AutoML/components/ExperimentList/index.tsx +++ b/react-ui/src/pages/AutoML/components/ExperimentList/index.tsx @@ -334,7 +334,7 @@ function ExperimentList({ type }: ExperimentListProps) { dataIndex: 'update_time', key: 'update_time', width: '20%', - render: tableCellRender(false, TableCellValueType.Date), + render: tableCellRender(true, TableCellValueType.Date), }, { title: '最近五次运行状态', diff --git a/react-ui/src/pages/DevelopmentEnvironment/List/index.tsx b/react-ui/src/pages/DevelopmentEnvironment/List/index.tsx index 0eaf361e..f8717a90 100644 --- a/react-ui/src/pages/DevelopmentEnvironment/List/index.tsx +++ b/react-ui/src/pages/DevelopmentEnvironment/List/index.tsx @@ -185,7 +185,7 @@ function EditorList() { title: '编辑器名称', dataIndex: 'name', key: 'name', - width: '20%', + width: '16%', render: (text, record, index) => record.url && record.status === DevEditorStatus.Running ? tableCellRender(true, TableCellValueType.Link, { @@ -197,14 +197,14 @@ function EditorList() { title: '计算资源', dataIndex: 'computing_resource', key: 'computing_resource', - width: 100, + width: '12%', render: tableCellRender(), }, { title: '资源规格', dataIndex: 'computing_resource_id', key: 'computing_resource_id', - width: '20%', + width: '12%', render: tableCellRender(true, TableCellValueType.Custom, { format: getResourceDescription, }), @@ -213,36 +213,36 @@ function EditorList() { title: '数据集', dataIndex: ['dataset', 'showValue'], key: 'dataset', - width: '15%', + width: '12%', render: tableCellRender(true), }, { title: '模型', dataIndex: ['model', 'showValue'], key: 'model', - width: '15%', + width: '12%', render: tableCellRender(true), }, { title: '镜像', dataIndex: ['image', 'showValue'], key: 'image', - width: '15%', + width: '12%', render: tableCellRender(true), }, { title: '创建者', dataIndex: 'update_by', key: 'update_by', - width: '15%', + width: '12%', render: tableCellRender(true), }, { title: '创建时间', dataIndex: 'create_time', key: 'create_time', - width: 180, - render: tableCellRender(false, TableCellValueType.Date), + width: '12%', + render: tableCellRender(true, TableCellValueType.Date), }, { title: '状态', @@ -254,7 +254,7 @@ function EditorList() { { title: '操作', dataIndex: 'operation', - width: 300, + width: 270, key: 'operation', render: (_: any, record: EditorData) => (
@@ -280,7 +280,7 @@ function EditorList() { 启动 )} - {record.status === DevEditorStatus.Running ? ( + {record.status !== DevEditorStatus.Running ? (