|
|
@ -162,25 +162,43 @@ export default defineComponent({ |
|
|
|
Styles[themeStore.darkTheme ? 'toolbar-dark' : 'toolbar-light'] |
|
|
|
Styles[themeStore.darkTheme ? 'toolbar-dark' : 'toolbar-light'] |
|
|
|
]} |
|
|
|
]} |
|
|
|
> |
|
|
|
> |
|
|
|
<div> |
|
|
|
|
|
|
|
<span class={Styles['workflow-name']}> |
|
|
|
<span class={Styles['workflow-name']}> |
|
|
|
{props.definition?.processDefinition?.name || |
|
|
|
{route.name === 'workflow-instance-detail' |
|
|
|
|
|
|
|
? props.instance?.name |
|
|
|
|
|
|
|
: props.definition?.processDefinition?.name || |
|
|
|
t('project.dag.create')} |
|
|
|
t('project.dag.create')} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
{props.definition?.processDefinition?.name && ( |
|
|
|
{props.definition?.processDefinition?.name && ( |
|
|
|
|
|
|
|
<NTooltip |
|
|
|
|
|
|
|
v-slots={{ |
|
|
|
|
|
|
|
trigger: () => ( |
|
|
|
<NButton |
|
|
|
<NButton |
|
|
|
quaternary |
|
|
|
quaternary |
|
|
|
circle |
|
|
|
circle |
|
|
|
onClick={() => copy(props.definition?.processDefinition?.name)} |
|
|
|
onClick={() => { |
|
|
|
|
|
|
|
const name = |
|
|
|
|
|
|
|
route.name === 'workflow-instance-detail' |
|
|
|
|
|
|
|
? props.instance?.name |
|
|
|
|
|
|
|
: props.definition?.processDefinition?.name |
|
|
|
|
|
|
|
copy(name) |
|
|
|
|
|
|
|
}} |
|
|
|
class={Styles['toolbar-btn']} |
|
|
|
class={Styles['toolbar-btn']} |
|
|
|
> |
|
|
|
> |
|
|
|
<NIcon> |
|
|
|
<NIcon> |
|
|
|
<CopyOutlined /> |
|
|
|
<CopyOutlined /> |
|
|
|
</NIcon> |
|
|
|
</NIcon> |
|
|
|
</NButton> |
|
|
|
</NButton> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
default: () => t('project.dag.copy_name') |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
></NTooltip> |
|
|
|
)} |
|
|
|
)} |
|
|
|
|
|
|
|
<div class={Styles['toolbar-left-part']}> |
|
|
|
{route.name === 'workflow-instance-detail' && ( |
|
|
|
{route.name === 'workflow-instance-detail' && ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
|
|
|
|
<NTooltip |
|
|
|
|
|
|
|
v-slots={{ |
|
|
|
|
|
|
|
trigger: () => ( |
|
|
|
<NPopover |
|
|
|
<NPopover |
|
|
|
show={paramPopoverRef.value} |
|
|
|
show={paramPopoverRef.value} |
|
|
|
placement='bottom' |
|
|
|
placement='bottom' |
|
|
@ -209,7 +227,13 @@ export default defineComponent({ |
|
|
|
default: () => <VariablesView onCopy={copy} /> |
|
|
|
default: () => <VariablesView onCopy={copy} /> |
|
|
|
}} |
|
|
|
}} |
|
|
|
</NPopover> |
|
|
|
</NPopover> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
default: () => t('project.dag.view_variables') |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
></NTooltip> |
|
|
|
|
|
|
|
<NTooltip |
|
|
|
|
|
|
|
v-slots={{ |
|
|
|
|
|
|
|
trigger: () => ( |
|
|
|
<NPopover |
|
|
|
<NPopover |
|
|
|
show={startupPopoverRef.value} |
|
|
|
show={startupPopoverRef.value} |
|
|
|
placement='bottom' |
|
|
|
placement='bottom' |
|
|
@ -221,7 +245,8 @@ export default defineComponent({ |
|
|
|
quaternary |
|
|
|
quaternary |
|
|
|
circle |
|
|
|
circle |
|
|
|
onClick={() => |
|
|
|
onClick={() => |
|
|
|
(startupPopoverRef.value = !startupPopoverRef.value) |
|
|
|
(startupPopoverRef.value = |
|
|
|
|
|
|
|
!startupPopoverRef.value) |
|
|
|
} |
|
|
|
} |
|
|
|
class={Styles['toolbar-btn']} |
|
|
|
class={Styles['toolbar-btn']} |
|
|
|
> |
|
|
|
> |
|
|
@ -236,10 +261,14 @@ export default defineComponent({ |
|
|
|
</NText> |
|
|
|
</NText> |
|
|
|
), |
|
|
|
), |
|
|
|
default: () => ( |
|
|
|
default: () => ( |
|
|
|
<StartupParam startupParam={props.instance.value} /> |
|
|
|
<StartupParam startupParam={props.instance} /> |
|
|
|
) |
|
|
|
) |
|
|
|
}} |
|
|
|
}} |
|
|
|
</NPopover> |
|
|
|
</NPopover> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
default: () => t('project.dag.startup_parameter') |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
></NTooltip> |
|
|
|
</> |
|
|
|
</> |
|
|
|
)} |
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|