From 4d063192cda340e34575b211d0f7650b796ce42f Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Mon, 15 Aug 2022 21:05:42 +0800 Subject: [PATCH] [Refactor][UI] Refactor task definition batch stream using NSpace component. (#11485) * [Refactor][UI] Refactor task definition batch stream using NSpace component. * [Refactor][UI] Refactor task definition batch stream using NSpace component. * [Refactor][UI] Refactor task definition batch stream using NSpace component. --- .../projects/task/definition/batch-task.tsx | 72 +++++++++---------- .../definition/components/start-modal.tsx | 5 +- .../task/definition/index.module.scss | 44 ------------ .../projects/task/definition/stream-task.tsx | 51 ++++++------- 4 files changed, 57 insertions(+), 115 deletions(-) delete mode 100644 dolphinscheduler-ui/src/views/projects/task/definition/index.module.scss diff --git a/dolphinscheduler-ui/src/views/projects/task/definition/batch-task.tsx b/dolphinscheduler-ui/src/views/projects/task/definition/batch-task.tsx index 4e58bd19cf..86f9f21d64 100644 --- a/dolphinscheduler-ui/src/views/projects/task/definition/batch-task.tsx +++ b/dolphinscheduler-ui/src/views/projects/task/definition/batch-task.tsx @@ -25,7 +25,6 @@ import { import { useRoute } from 'vue-router' import { NButton, - NCard, NDataTable, NIcon, NInput, @@ -42,7 +41,6 @@ import Card from '@/components/card' import VersionModal from './components/version-modal' import MoveModal from './components/move-modal' import TaskModal from '@/views/projects/task/components/node/detail-modal' -import styles from './index.module.scss' import type { INodeData } from './types' const BatchTaskDefinition = defineComponent({ @@ -134,15 +132,13 @@ const BatchTaskDefinition = defineComponent({ } = this return ( - <> - - - - - {t('project.task.create_task')} - - - + + + + + {t('project.task.create_task')} + + - {{ - icon: () => ( - - - - ) - }} + + + - - - - - - + + + + - + + + + - > + ) } }) diff --git a/dolphinscheduler-ui/src/views/projects/task/definition/components/start-modal.tsx b/dolphinscheduler-ui/src/views/projects/task/definition/components/start-modal.tsx index 8e3a1cd060..b8ae6db145 100644 --- a/dolphinscheduler-ui/src/views/projects/task/definition/components/start-modal.tsx +++ b/dolphinscheduler-ui/src/views/projects/task/definition/components/start-modal.tsx @@ -37,7 +37,6 @@ import { NSwitch } from 'naive-ui' import { DeleteOutlined, PlusCircleOutlined } from '@vicons/antd' -import styles from '../index.module.scss' const props = { row: { @@ -161,7 +160,7 @@ export default defineComponent({ > - + {this.row.taskName} @@ -217,7 +216,7 @@ export default defineComponent({ ) : ( {this.startParamsList.map((item, index) => ( - + ( - - - - - - - {{ - icon: () => ( - - - - ) - }} - - + + + + + + + +