|
|
@ -53,10 +53,15 @@ export default defineComponent({ |
|
|
|
const code = Number(route.params.code) |
|
|
|
const code = Number(route.params.code) |
|
|
|
|
|
|
|
|
|
|
|
const definition = ref<WorkflowDefinition>() |
|
|
|
const definition = ref<WorkflowDefinition>() |
|
|
|
|
|
|
|
const readonly = ref(false) |
|
|
|
|
|
|
|
const isLoading = ref(true) |
|
|
|
|
|
|
|
|
|
|
|
const refresh = () => { |
|
|
|
const refresh = () => { |
|
|
|
|
|
|
|
isLoading.value = true |
|
|
|
queryProcessDefinitionByCode(code, projectCode).then((res: any) => { |
|
|
|
queryProcessDefinitionByCode(code, projectCode).then((res: any) => { |
|
|
|
|
|
|
|
readonly.value = res.processDefinition.releaseState === 'ONLINE' |
|
|
|
definition.value = res |
|
|
|
definition.value = res |
|
|
|
|
|
|
|
isLoading.value = false |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -107,12 +112,15 @@ export default defineComponent({ |
|
|
|
theme.darkTheme ? Styles['dark'] : Styles['light'] |
|
|
|
theme.darkTheme ? Styles['dark'] : Styles['light'] |
|
|
|
]} |
|
|
|
]} |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
{!isLoading.value && ( |
|
|
|
<Dag |
|
|
|
<Dag |
|
|
|
definition={definition.value} |
|
|
|
definition={definition.value} |
|
|
|
onRefresh={refresh} |
|
|
|
onRefresh={refresh} |
|
|
|
projectCode={projectCode} |
|
|
|
projectCode={projectCode} |
|
|
|
onSave={save} |
|
|
|
onSave={save} |
|
|
|
|
|
|
|
readonly={readonly.value} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|