|
|
@ -119,11 +119,11 @@ export default defineComponent({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// start button in the dag node menu
|
|
|
|
// start button in the dag node menu
|
|
|
|
const startReadonly = computed(() => { |
|
|
|
const startDisplay = computed(() => { |
|
|
|
if (props.definition) { |
|
|
|
if (props.definition) { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
route.name === 'workflow-definition-detail' && |
|
|
|
route.name === 'workflow-definition-detail' && |
|
|
|
props.definition!.processDefinition.releaseState === 'NOT_RELEASE' |
|
|
|
props.definition!.processDefinition.releaseState === 'ONLINE' |
|
|
|
) |
|
|
|
) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return false |
|
|
|
return false |
|
|
@ -131,17 +131,17 @@ export default defineComponent({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// other button in the dag node menu
|
|
|
|
// other button in the dag node menu
|
|
|
|
const menuReadonly = computed(() => { |
|
|
|
const menuDisplay = computed(() => { |
|
|
|
if (props.instance) { |
|
|
|
if (props.instance) { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
props.instance.state !== 'WAITING_THREAD' && |
|
|
|
props.instance.state === 'WAITING_THREAD' || |
|
|
|
props.instance.state !== 'SUCCESS' && |
|
|
|
props.instance.state === 'SUCCESS' || |
|
|
|
props.instance.state !== 'PAUSE' && |
|
|
|
props.instance.state === 'PAUSE' || |
|
|
|
props.instance.state !== 'FAILURE' && |
|
|
|
props.instance.state === 'FAILURE' || |
|
|
|
props.instance.state !== 'STOP' |
|
|
|
props.instance.state === 'STOP' |
|
|
|
) |
|
|
|
) |
|
|
|
} else if (props.definition) { |
|
|
|
} else if (props.definition) { |
|
|
|
return props.definition!.processDefinition.releaseState === 'ONLINE' |
|
|
|
return props.definition!.processDefinition.releaseState === 'OFFLINE' |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
@ -337,7 +337,7 @@ export default defineComponent({ |
|
|
|
/> |
|
|
|
/> |
|
|
|
{!!props.definition && ( |
|
|
|
{!!props.definition && ( |
|
|
|
<VersionModal |
|
|
|
<VersionModal |
|
|
|
isInstance={props.instance ? true : false} |
|
|
|
isInstance={!!props.instance} |
|
|
|
v-model:row={props.definition.processDefinition} |
|
|
|
v-model:row={props.definition.processDefinition} |
|
|
|
v-model:show={versionModalShow.value} |
|
|
|
v-model:show={versionModalShow.value} |
|
|
|
onUpdateList={refreshDetail} |
|
|
|
onUpdateList={refreshDetail} |
|
|
@ -362,9 +362,8 @@ export default defineComponent({ |
|
|
|
onCancel={taskCancel} |
|
|
|
onCancel={taskCancel} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<ContextMenuItem |
|
|
|
<ContextMenuItem |
|
|
|
startButtonDisplay={!props.instance} |
|
|
|
startDisplay={startDisplay.value} |
|
|
|
startReadonly={startReadonly.value} |
|
|
|
menuDisplay={menuDisplay.value} |
|
|
|
menuReadonly={menuReadonly.value} |
|
|
|
|
|
|
|
taskInstance={taskInstance.value} |
|
|
|
taskInstance={taskInstance.value} |
|
|
|
cell={nodeVariables.menuCell as Cell} |
|
|
|
cell={nodeVariables.menuCell as Cell} |
|
|
|
visible={nodeVariables.menuVisible} |
|
|
|
visible={nodeVariables.menuVisible} |
|
|
|