feature:数据集导入数据集支持选择归集任务导入 (#92)

* feature: 实现obs归集

* feature: 增加数据集中出现同名文件时的处理方式

* feature: 前端数据集导入数据时增加可以选择归集任务导入
This commit is contained in:
hefanli
2025-11-19 11:05:33 +08:00
committed by GitHub
parent 4506fa8a91
commit a07fba23f2
12 changed files with 168 additions and 209 deletions

View File

@@ -192,9 +192,6 @@ export default function CollectionTaskCreate() {
/>
</Form.Item>
)}
<Form.Item name="maxRetries" label="最大执行次数">
<InputNumber min={1} style={{ width: "100%" }} />
</Form.Item>
{/* 模板配置 */}
<h2 className="font-medium text-gray-900 pt-6 mb-2 text-lg">

View File

@@ -84,7 +84,7 @@ export default function ImportConfiguration({
form.resetFields();
setFileList([]);
form.setFieldsValue({ files: null });
setImportConfig({ source: DataSource.UPLOAD });
setImportConfig({ source: importConfig.source ? importConfig.source : DataSource.UPLOAD });
};
const handleImportData = async () => {

View File

@@ -187,7 +187,7 @@ export const datasetStatusMap = {
export const dataSourceMap: Record<string, { label: string; value: string }> = {
[DataSource.UPLOAD]: { label: "本地上传", value: DataSource.UPLOAD },
// [DataSource.COLLECTION]: { label: "本地归集 ", value: DataSource.COLLECTION },
[DataSource.COLLECTION]: { label: "归集任务导入 ", value: DataSource.COLLECTION },
// [DataSource.DATABASE]: { label: "数据库导入", value: DataSource.DATABASE },
// [DataSource.NAS]: { label: "NAS导入", value: DataSource.NAS },
// [DataSource.OBS]: { label: "OBS导入", value: DataSource.OBS },