From 4a4acce2c528b22a8e6f89d05969c43eef4f625c Mon Sep 17 00:00:00 2001 From: labbomb <739955946@qq.com> Date: Fri, 25 Feb 2022 18:15:23 +0800 Subject: [PATCH] [Fix][UI Next] Fix build error. --- .../workflow/components/dag/use-custom-cell-builder.ts | 2 +- .../workflow/components/dag/use-dag-drag-drop.ts | 2 +- .../projects/workflow/components/dag/use-task-edit.ts | 2 +- .../src/views/resource/file/create/index.tsx | 1 - .../src/views/resource/file/edit/index.tsx | 9 ++------- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-custom-cell-builder.ts b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-custom-cell-builder.ts index b6828795e0..a5c0ffa052 100644 --- a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-custom-cell-builder.ts +++ b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-custom-cell-builder.ts @@ -129,7 +129,7 @@ export function useCustomCellBuilder() { connects .filter((r) => !!r.preTaskCode) .forEach((c) => { - const edge = buildEdge(c.preTaskCode + '', c.postTaskCode, c.name) + const edge = buildEdge(c.preTaskCode + '', c.postTaskCode + '', c.name) edges.push(edge) }) return { diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-dag-drag-drop.ts b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-dag-drag-drop.ts index 0cc22f3f47..e3a4276f38 100644 --- a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-dag-drag-drop.ts +++ b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-dag-drag-drop.ts @@ -19,7 +19,7 @@ import { ref } from 'vue' import type { Ref } from 'vue' import type { Graph } from '@antv/x6' import { genTaskCodeList } from '@/service/modules/task-definition' -import { Dragged } from './types' +import { Coordinate, Dragged } from './types' import { TaskType } from '@/views/projects/task/constants/task-type' import { useRoute } from 'vue-router' diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts index e0851ce20a..992ff7400b 100644 --- a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts +++ b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts @@ -53,7 +53,7 @@ export function useTaskEdit(options: Options) { * Append a new task */ function appendTask(code: number, type: TaskType, coordinate: Coordinate) { - addNode(code + '', type, '', coordinate) + addNode(code + '', type, '', 'YES', coordinate) taskDefinitions.value.push({ code, taskType: type, diff --git a/dolphinscheduler-ui-next/src/views/resource/file/create/index.tsx b/dolphinscheduler-ui-next/src/views/resource/file/create/index.tsx index ba55691fca..f16e0a5f80 100644 --- a/dolphinscheduler-ui-next/src/views/resource/file/create/index.tsx +++ b/dolphinscheduler-ui-next/src/views/resource/file/create/index.tsx @@ -97,7 +97,6 @@ export default defineComponent({
- +
{this.routeNameRef === 'resource-file-edit' && (