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