feature: 北向接口:支持通过模板创建清洗任务 (#111)

feature: 北向接口:支持通过模板创建清洗任务
This commit is contained in:
hhhhsc701
2025-11-26 17:30:54 +08:00
committed by GitHub
parent 0ca5f29885
commit 91390cace0
15 changed files with 312 additions and 253 deletions

View File

@@ -38,6 +38,8 @@ export default function CleansingTaskCreate() {
...item.defaultParams,
...item.overrides,
},
inputs: item.inputs,
outputs: item.outputs,
})),
};
navigate("/data/cleansing?view=task");

View File

@@ -44,6 +44,8 @@ export default function CleansingTemplateCreate() {
...item.defaultParams,
...item.overrides,
},
inputs: item.inputs,
outputs: item.outputs,
})),
};

View File

@@ -107,7 +107,7 @@ export default function FileTable({result, fetchTaskResult}) {
onFilter: (value: string, record: any) =>
record.srcName.toLowerCase().includes(value.toLowerCase()),
render: (text: string) => (
<span className="font-mono text-sm">{text?.replace(/\.[^/.]+$/, "")}</span>
<span>{text?.replace(/\.[^/.]+$/, "")}</span>
),
},
{

View File

@@ -45,6 +45,13 @@ export default function TemplateList() {
};
const templateColumns = [
{
title: "模板ID",
dataIndex: "id",
key: "id",
fixed: "left",
width: 100,
},
{
title: "模板名称",
dataIndex: "name",