diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/index.tsx b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/index.tsx index 31f98be5d227..7bf4e55451f1 100644 --- a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/index.tsx +++ b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/index.tsx @@ -328,6 +328,7 @@ export default defineComponent({ /> {!!props.definition && ( { + const createColumns = (variables: any, isInstance: boolean) => { variables.columns = [ { title: '#', @@ -79,12 +79,15 @@ export function useTable( { title: t('project.workflow.create_time'), key: 'operateTime' - }, - { + } + ] as TableColumns + + if (!isInstance) { + variables.columns.push({ title: t('project.workflow.operation'), key: 'operation', className: styles.operation, - render: (_row) => { + render: (_row: any) => { return h(NSpace, null, { default: () => [ h( @@ -154,8 +157,8 @@ export function useTable( ] }) } - } - ] as TableColumns + }) + } } const getTableData = (row: any) => { diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/version-modal.tsx b/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/version-modal.tsx index 3db070c41be4..c1b19d534ca0 100644 --- a/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/version-modal.tsx +++ b/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/version-modal.tsx @@ -26,6 +26,10 @@ import styles from '../index.module.scss' import type { IDefinitionData } from '../types' const props = { + isInstance: { + type: Boolean as PropType, + default: false + }, show: { type: Boolean as PropType, default: false @@ -67,13 +71,13 @@ export default defineComponent({ watch( () => props.show, () => { - createColumns(variables) + createColumns(variables, props.isInstance) requestData() } ) watch(useI18n().locale, () => { - createColumns(variables) + createColumns(variables, props.isInstance) }) return {