From d983e36ea4fedd391cbed78067b1861e3daf122f Mon Sep 17 00:00:00 2001 From: liyou <103415610+ly109974@users.noreply.github.com> Date: Thu, 12 Oct 2023 07:01:04 -0500 Subject: [PATCH] improvement (#15018) --- .../definition/components/table-action.tsx | 75 +++++++++---------- .../instance/components/table-action.tsx | 48 ++++++------ .../projects/workflow/instance/index.tsx | 30 ++++---- .../resource/table/table-action.tsx | 42 +++++------ 4 files changed, 90 insertions(+), 105 deletions(-) diff --git a/dolphinscheduler-ui/src/views/projects/workflow/definition/components/table-action.tsx b/dolphinscheduler-ui/src/views/projects/workflow/definition/components/table-action.tsx index 332ad4d7e9..c18e3a0cf3 100644 --- a/dolphinscheduler-ui/src/views/projects/workflow/definition/components/table-action.tsx +++ b/dolphinscheduler-ui/src/views/projects/workflow/definition/components/table-action.tsx @@ -184,20 +184,20 @@ export default defineComponent({ ? t('project.workflow.down_line') : t('project.workflow.up_line'), trigger: () => ( - - - {{ - default: () => - releaseState === 'ONLINE' - ? t('project.workflow.confirm_to_offline') - : t('project.workflow.confirm_to_online'), - trigger: () => ( + + {{ + default: () => + releaseState === 'ONLINE' + ? t('project.workflow.confirm_to_offline') + : t('project.workflow.confirm_to_online'), + trigger: () => ( + {releaseState === 'ONLINE' ? ( @@ -205,10 +205,10 @@ export default defineComponent({ )} - ) - }} - - + + ) + }} + ) }} @@ -253,33 +253,28 @@ export default defineComponent({ {{ default: () => t('project.workflow.delete'), trigger: () => ( - - - {{ - default: () => t('project.workflow.delete_confirm'), - icon: () => ( - - - - ), - trigger: () => ( + {{ + default: () => t('project.workflow.delete_confirm'), + trigger: () => ( + - ) - }} - - + + ) + }} + ) }} diff --git a/dolphinscheduler-ui/src/views/projects/workflow/instance/components/table-action.tsx b/dolphinscheduler-ui/src/views/projects/workflow/instance/components/table-action.tsx index b5afa82ad5..2b7da5b82f 100644 --- a/dolphinscheduler-ui/src/views/projects/workflow/instance/components/table-action.tsx +++ b/dolphinscheduler-ui/src/views/projects/workflow/instance/components/table-action.tsx @@ -20,7 +20,6 @@ import { NSpace, NTooltip, NButton, NIcon, NPopconfirm } from 'naive-ui' import { DeleteOutlined, FormOutlined, - InfoCircleFilled, SyncOutlined, CloseOutlined, CloseCircleOutlined, @@ -250,35 +249,30 @@ export default defineComponent({ {{ default: () => t('project.workflow.delete'), trigger: () => ( - - - {{ - default: () => t('project.workflow.delete_confirm'), - icon: () => ( - - - - ), - trigger: () => ( + + {{ + default: () => t('project.workflow.delete_confirm'), + trigger: () => ( + - ) - }} - - + + ) + }} + ) }} diff --git a/dolphinscheduler-ui/src/views/projects/workflow/instance/index.tsx b/dolphinscheduler-ui/src/views/projects/workflow/instance/index.tsx index d3e63f4f6b..ebed942fad 100644 --- a/dolphinscheduler-ui/src/views/projects/workflow/instance/index.tsx +++ b/dolphinscheduler-ui/src/views/projects/workflow/instance/index.tsx @@ -128,20 +128,22 @@ export default defineComponent({ {{ default: () => t('project.workflow.delete'), trigger: () => ( - - - {{ - default: () => t('project.workflow.delete_confirm'), - trigger: () => t('project.workflow.delete') - }} - - + + {{ + default: () => t('project.workflow.delete_confirm'), + trigger: () => ( + + t('project.workflow.delete') + + ) + }} + ) }} diff --git a/dolphinscheduler-ui/src/views/resource/components/resource/table/table-action.tsx b/dolphinscheduler-ui/src/views/resource/components/resource/table/table-action.tsx index 5fb28a4b27..9efe255996 100644 --- a/dolphinscheduler-ui/src/views/resource/components/resource/table/table-action.tsx +++ b/dolphinscheduler-ui/src/views/resource/components/resource/table/table-action.tsx @@ -23,7 +23,6 @@ import { DownloadOutlined, FormOutlined, EditOutlined, - InfoCircleFilled, UploadOutlined } from '@vicons/antd' import _ from 'lodash' @@ -222,32 +221,27 @@ export default defineComponent({ {{ default: () => t('resource.file.delete'), trigger: () => ( - - { - this.handleDeleteFile({ - fullName: this.row.fullName, - tenantCode: this.row.user_name - }) - }} - > - {{ - default: () => t('resource.file.delete_confirm'), - icon: () => ( - - - - ), - trigger: () => ( + { + this.handleDeleteFile({ + fullName: this.row.fullName, + tenantCode: this.row.user_name + }) + }} + > + {{ + default: () => t('resource.file.delete_confirm'), + trigger: () => ( + - ) - }} - - + + ) + }} + ) }}