Browse Source

style: 修改开发环境表格列宽度

pull/219/head
cp3hnu 9 months ago
parent
commit
b629456ecc
3 changed files with 15 additions and 15 deletions
  1. +3
    -3
      react-ui/src/enums/index.ts
  2. +1
    -1
      react-ui/src/pages/AutoML/components/ExperimentList/index.tsx
  3. +11
    -11
      react-ui/src/pages/DevelopmentEnvironment/List/index.tsx

+ 3
- 3
react-ui/src/enums/index.ts View File

@@ -39,9 +39,9 @@ export enum TensorBoardStatus {

// 镜像版本状态
export enum MirrorVersionStatus {
Available = 'available', // 可用
Building = 'building', // 构建中
Failed = 'failed', // 构建中
Available = 'Available', // 可用
Building = 'Building', // 构建中
Failed = 'Failed', // 失败
}

// 服务运行状态


+ 1
- 1
react-ui/src/pages/AutoML/components/ExperimentList/index.tsx View File

@@ -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: '最近五次运行状态',


+ 11
- 11
react-ui/src/pages/DevelopmentEnvironment/List/index.tsx View File

@@ -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<EditorData>(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) => (
<div>
@@ -280,7 +280,7 @@ function EditorList() {
启动
</Button>
)}
{record.status === DevEditorStatus.Running ? (
{record.status !== DevEditorStatus.Running ? (
<Button
type="link"
size="small"


Loading…
Cancel
Save