| @@ -137,7 +137,7 @@ function EditorCreate() { | |||||
| <Col span={10}> | <Col span={10}> | ||||
| <Form.Item | <Form.Item | ||||
| label="资源规格" | label="资源规格" | ||||
| name="standard" | |||||
| name="computing_resource_id" | |||||
| rules={[ | rules={[ | ||||
| { | { | ||||
| required: true, | required: true, | ||||
| @@ -347,7 +347,7 @@ function CreateServiceVersion() { | |||||
| <Col span={10}> | <Col span={10}> | ||||
| <Form.Item | <Form.Item | ||||
| label="资源规格" | label="资源规格" | ||||
| name="resource" | |||||
| name="computing_resource_id" | |||||
| rules={[ | rules={[ | ||||
| { | { | ||||
| required: true, | required: true, | ||||
| @@ -309,8 +309,8 @@ function ServiceInfo() { | |||||
| }, | }, | ||||
| { | { | ||||
| title: '资源规格', | title: '资源规格', | ||||
| dataIndex: 'resource', | |||||
| key: 'resource', | |||||
| dataIndex: 'computing_resource_id', | |||||
| key: 'computing_resource_id', | |||||
| width: '20%', | width: '20%', | ||||
| render: tableCellRender(true, TableCellValueType.Custom, { | render: tableCellRender(true, TableCellValueType.Custom, { | ||||
| format: getResourceDescription, | format: getResourceDescription, | ||||
| @@ -68,7 +68,7 @@ function VersionBasicInfo({ info }: BasicInfoProps) { | |||||
| }, | }, | ||||
| { | { | ||||
| label: '资源规格', | label: '资源规格', | ||||
| value: info?.resource, | |||||
| value: info?.computing_resource_id, | |||||
| format: getResourceDescription, | format: getResourceDescription, | ||||
| }, | }, | ||||
| { | { | ||||
| @@ -24,7 +24,7 @@ export type ServiceVersionData = { | |||||
| run_state: ServiceRunStatus; // 运行状态 | run_state: ServiceRunStatus; // 运行状态 | ||||
| image: string; // 镜像 | image: string; // 镜像 | ||||
| replicas: number; // 副本数 | replicas: number; // 副本数 | ||||
| resource: string; // 资源 | |||||
| computing_resource_id: number; // 资源 | |||||
| mount_path: string; // 挂载路径 | mount_path: string; // 挂载路径 | ||||
| model: { | model: { | ||||
| // 模型 | // 模型 | ||||