Browse Source

fix: 修复数据集文案bug

pull/189/head
cp3hnu 10 months ago
parent
commit
8dfb466b58
3 changed files with 44 additions and 11 deletions
  1. +21
    -6
      react-ui/src/pages/Dataset/components/AddDatasetModal/index.tsx
  2. +21
    -3
      react-ui/src/pages/Dataset/components/AddModelModal/index.tsx
  3. +2
    -2
      react-ui/src/pages/Dataset/components/ResourceIntro/index.tsx

+ 21
- 6
react-ui/src/pages/Dataset/components/AddDatasetModal/index.tsx View File

@@ -159,27 +159,42 @@ function AddDatasetModal({ typeList, tagList, onOk, ...rest }: AddDatasetModalPr
showSearch showSearch
/> />
</Form.Item> </Form.Item>
{/* <Form.Item label="集群版本" name="available_cluster">
<Select allowClear placeholder="请选择集群版本" options={clusterOptions} />
</Form.Item> */}
<Form.Item <Form.Item
label="数据集简介"
label="数据集描述"
name="description" name="description"
rules={[ rules={[
{ {
required: true, required: true,
message: '请输入数据集简介',
message: '请输入数据集描述',
}, },
]} ]}
> >
<Input.TextArea <Input.TextArea
placeholder="请输入数据集简介"
placeholder="请输入数据集描述"
showCount showCount
maxLength={200} maxLength={200}
autoSize={{ minRows: 2, maxRows: 6 }} autoSize={{ minRows: 2, maxRows: 6 }}
allowClear allowClear
/> />
</Form.Item> </Form.Item>
<Form.Item
label="版本描述"
name="version_desc"
rules={[
{
required: true,
message: '请输入版本描述',
},
]}
>
<Input.TextArea
placeholder="请输入版本描述"
autoSize={{ minRows: 2, maxRows: 6 }}
maxLength={200}
showCount
allowClear
/>
</Form.Item>
<Form.Item <Form.Item
label="可见性" label="可见性"
name="is_public" name="is_public"


+ 21
- 3
react-ui/src/pages/Dataset/components/AddModelModal/index.tsx View File

@@ -143,23 +143,41 @@ function AddModelModal({ typeList, tagList, onOk, ...rest }: AddModelModalProps)
/> />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label="模型简介"
label="模型描述"
name="description" name="description"
rules={[ rules={[
{ {
required: true, required: true,
message: '请输入模型简介',
message: '请输入模型描述',
}, },
]} ]}
> >
<Input.TextArea <Input.TextArea
placeholder="请输入模型简介"
placeholder="请输入模型描述"
maxLength={200} maxLength={200}
autoSize={{ minRows: 2, maxRows: 6 }} autoSize={{ minRows: 2, maxRows: 6 }}
showCount showCount
allowClear allowClear
/> />
</Form.Item> </Form.Item>
<Form.Item
label="版本描述"
name="version_desc"
rules={[
{
required: true,
message: '请输入版本描述',
},
]}
>
<Input.TextArea
placeholder="请输入版本描述"
autoSize={{ minRows: 2, maxRows: 6 }}
maxLength={200}
showCount
allowClear
/>
</Form.Item>
<Form.Item <Form.Item
label="可见性" label="可见性"
name="is_public" name="is_public"


+ 2
- 2
react-ui/src/pages/Dataset/components/ResourceIntro/index.tsx View File

@@ -21,7 +21,7 @@ const getDatasetDatas = (data: DatasetData): BasicInfoData[] => [
value: data.name, value: data.name,
}, },
{ {
label: '版本',
label: '数据集版本',
value: data.version, value: data.version,
}, },
{ {
@@ -64,7 +64,7 @@ const getModelDatas = (data: ModelData): BasicInfoData[] => [
ellipsis: true, ellipsis: true,
}, },
{ {
label: '版本',
label: '模型版本',
value: data.version, value: data.version,
ellipsis: true, ellipsis: true,
}, },


Loading…
Cancel
Save