diff --git a/components/pipeline-form.tsx b/components/pipeline-form.tsx index 3879257..769afe0 100644 --- a/components/pipeline-form.tsx +++ b/components/pipeline-form.tsx @@ -214,7 +214,12 @@ export function PipelineForm({ initial }: { initial?: Pipeline }) { }} > - + + {(v) => { + const c = connections.find((x) => String(x.id) === String(v)); + return c ? `${c.name}(${c.database})` : String(v ?? ""); + }} + {connections.map((c) => ( @@ -229,7 +234,12 @@ export function PipelineForm({ initial }: { initial?: Pipeline }) { setMode(String(v))}> - + + {(v) => MODES.find((m) => m.value === v)?.label ?? String(v ?? "")} + {MODES.map((m) => ( @@ -282,7 +294,9 @@ export function PipelineForm({ initial }: { initial?: Pipeline }) { disabled={!schemaSync} > - + + {(v) => (v === "all" ? "整个库" : "仅选中的表")} + 仅选中的表