|
|
@ -162,84 +162,113 @@ 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']}> |
|
|
|
{route.name === 'workflow-instance-detail' |
|
|
|
{props.definition?.processDefinition?.name || |
|
|
|
? 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 && ( |
|
|
|
<NButton |
|
|
|
<NTooltip |
|
|
|
quaternary |
|
|
|
v-slots={{ |
|
|
|
circle |
|
|
|
trigger: () => ( |
|
|
|
onClick={() => copy(props.definition?.processDefinition?.name)} |
|
|
|
<NButton |
|
|
|
class={Styles['toolbar-btn']} |
|
|
|
quaternary |
|
|
|
> |
|
|
|
circle |
|
|
|
<NIcon> |
|
|
|
onClick={() => { |
|
|
|
<CopyOutlined /> |
|
|
|
const name = |
|
|
|
</NIcon> |
|
|
|
route.name === 'workflow-instance-detail' |
|
|
|
</NButton> |
|
|
|
? 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' && ( |
|
|
|
{route.name === 'workflow-instance-detail' && ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<NPopover |
|
|
|
<NTooltip |
|
|
|
show={paramPopoverRef.value} |
|
|
|
v-slots={{ |
|
|
|
placement='bottom' |
|
|
|
|
|
|
|
trigger='manual' |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ |
|
|
|
|
|
|
|
trigger: () => ( |
|
|
|
trigger: () => ( |
|
|
|
<NButton |
|
|
|
<NPopover |
|
|
|
quaternary |
|
|
|
show={paramPopoverRef.value} |
|
|
|
circle |
|
|
|
placement='bottom' |
|
|
|
onClick={() => |
|
|
|
trigger='manual' |
|
|
|
(paramPopoverRef.value = !paramPopoverRef.value) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
class={Styles['toolbar-btn']} |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<NIcon> |
|
|
|
{{ |
|
|
|
<FundViewOutlined /> |
|
|
|
trigger: () => ( |
|
|
|
</NIcon> |
|
|
|
<NButton |
|
|
|
</NButton> |
|
|
|
quaternary |
|
|
|
), |
|
|
|
circle |
|
|
|
header: () => ( |
|
|
|
onClick={() => |
|
|
|
<NText strong depth={1}> |
|
|
|
(paramPopoverRef.value = !paramPopoverRef.value) |
|
|
|
{t('project.workflow.parameters_variables')} |
|
|
|
} |
|
|
|
</NText> |
|
|
|
class={Styles['toolbar-btn']} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NIcon> |
|
|
|
|
|
|
|
<FundViewOutlined /> |
|
|
|
|
|
|
|
</NIcon> |
|
|
|
|
|
|
|
</NButton> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
header: () => ( |
|
|
|
|
|
|
|
<NText strong depth={1}> |
|
|
|
|
|
|
|
{t('project.workflow.parameters_variables')} |
|
|
|
|
|
|
|
</NText> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
default: () => <VariablesView onCopy={copy} /> |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
</NPopover> |
|
|
|
), |
|
|
|
), |
|
|
|
default: () => <VariablesView onCopy={copy} /> |
|
|
|
default: () => t('project.dag.view_variables') |
|
|
|
}} |
|
|
|
}} |
|
|
|
</NPopover> |
|
|
|
></NTooltip> |
|
|
|
|
|
|
|
<NTooltip |
|
|
|
<NPopover |
|
|
|
v-slots={{ |
|
|
|
show={startupPopoverRef.value} |
|
|
|
|
|
|
|
placement='bottom' |
|
|
|
|
|
|
|
trigger='manual' |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ |
|
|
|
|
|
|
|
trigger: () => ( |
|
|
|
trigger: () => ( |
|
|
|
<NButton |
|
|
|
<NPopover |
|
|
|
quaternary |
|
|
|
show={startupPopoverRef.value} |
|
|
|
circle |
|
|
|
placement='bottom' |
|
|
|
onClick={() => |
|
|
|
trigger='manual' |
|
|
|
(startupPopoverRef.value = !startupPopoverRef.value) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
class={Styles['toolbar-btn']} |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<NIcon> |
|
|
|
{{ |
|
|
|
<RightCircleOutlined /> |
|
|
|
trigger: () => ( |
|
|
|
</NIcon> |
|
|
|
<NButton |
|
|
|
</NButton> |
|
|
|
quaternary |
|
|
|
), |
|
|
|
circle |
|
|
|
header: () => ( |
|
|
|
onClick={() => |
|
|
|
<NText strong depth={1}> |
|
|
|
(startupPopoverRef.value = |
|
|
|
{t('project.workflow.startup_parameter')} |
|
|
|
!startupPopoverRef.value) |
|
|
|
</NText> |
|
|
|
} |
|
|
|
|
|
|
|
class={Styles['toolbar-btn']} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NIcon> |
|
|
|
|
|
|
|
<RightCircleOutlined /> |
|
|
|
|
|
|
|
</NIcon> |
|
|
|
|
|
|
|
</NButton> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
header: () => ( |
|
|
|
|
|
|
|
<NText strong depth={1}> |
|
|
|
|
|
|
|
{t('project.workflow.startup_parameter')} |
|
|
|
|
|
|
|
</NText> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
default: () => ( |
|
|
|
|
|
|
|
<StartupParam startupParam={props.instance} /> |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
</NPopover> |
|
|
|
), |
|
|
|
), |
|
|
|
default: () => ( |
|
|
|
default: () => t('project.dag.startup_parameter') |
|
|
|
<StartupParam startupParam={props.instance.value} /> |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
}} |
|
|
|
}} |
|
|
|
</NPopover> |
|
|
|
></NTooltip> |
|
|
|
</> |
|
|
|
</> |
|
|
|
)} |
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|