| @@ -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 = { | ||||
| @@ -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]); | ||||
| @@ -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; | ||||
| }; | }; | ||||