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 a82a6a8d22..4376486880 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 @@ -219,6 +219,7 @@ export default defineComponent({ definition={props.definition} /> ([]) + const taskDefinitions = ref( + definition.value?.taskDefinitionList || [] + ) const currTask = ref({ taskType: 'SHELL', code: 0, diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/definition/detail/index.tsx b/dolphinscheduler-ui-next/src/views/projects/workflow/definition/detail/index.tsx index daf9bbfd9c..c14e225f47 100644 --- a/dolphinscheduler-ui-next/src/views/projects/workflow/definition/detail/index.tsx +++ b/dolphinscheduler-ui-next/src/views/projects/workflow/definition/detail/index.tsx @@ -53,10 +53,15 @@ export default defineComponent({ const code = Number(route.params.code) const definition = ref() + const readonly = ref(false) + const isLoading = ref(true) const refresh = () => { + isLoading.value = true queryProcessDefinitionByCode(code, projectCode).then((res: any) => { + readonly.value = res.processDefinition.releaseState === 'ONLINE' definition.value = res + isLoading.value = false }) } @@ -107,12 +112,15 @@ export default defineComponent({ theme.darkTheme ? Styles['dark'] : Styles['light'] ]} > - + {!isLoading.value && ( + + )} ) }