Browse Source

feat: 数据集来源添加数据标注导出

pull/177/head
cp3hnu 11 months ago
parent
commit
87d376d757
3 changed files with 6 additions and 3 deletions
  1. +2
    -1
      react-ui/src/pages/Dataset/config.tsx
  2. +1
    -1
      react-ui/src/pages/HyperParameter/components/ParameterInfo/index.tsx
  3. +3
    -1
      react-ui/src/utils/format.ts

+ 2
- 1
react-ui/src/pages/Dataset/config.tsx View File

@@ -25,9 +25,10 @@ export enum ResourceType {
} }


export enum DataSource { export enum DataSource {
AtuoExport = 'auto_export', // 自动导出
AutoExport = 'auto_export', // 自动导出
HandExport = 'hand_export', // 手动导出 HandExport = 'hand_export', // 手动导出
Create = 'add', // 新增 Create = 'add', // 新增
LabelStudioExport = 'label_studio_export', // LabelStudio 导出
} }


type ResourceTypeInfo = { type ResourceTypeInfo = {


+ 1
- 1
react-ui/src/pages/HyperParameter/components/ParameterInfo/index.tsx View File

@@ -34,7 +34,7 @@ function ParameterInfo({ info }: ParameterInfoProps) {
} }
return info.points_to_evaluate.map((item, index) => ({ return info.points_to_evaluate.map((item, index) => ({
...item, ...item,
id: index,
id: index, // 作为 key,这个数组不会变化
})); }));
}, [info]); }, [info]);




+ 3
- 1
react-ui/src/utils/format.ts View File

@@ -98,8 +98,10 @@ export const formatSource = (source?: string) => {
return '用户上传'; return '用户上传';
} else if (source === DataSource.HandExport) { } else if (source === DataSource.HandExport) {
return '手动导入'; return '手动导入';
} else if (source === DataSource.AtuoExport) {
} else if (source === DataSource.AutoExport) {
return '实验自动导入'; return '实验自动导入';
} else if (source === DataSource.LabelStudioExport) {
return '数据标注导入';
} }
return source; return source;
}; };


Loading…
Cancel
Save