fix: 统一详情页返回上级列表
- 修正管理端插件、工作流与系统详情页返回目标 - 修正用户中心执行记录与助手详情返回目标 - 保留审批页签及关联资源筛选上下文
This commit is contained in:
@@ -61,7 +61,10 @@ function onAsyncExecute(info: any) {
|
||||
class="bg-background-deep flex h-full max-h-[calc(100vh-90px)] w-full flex-col gap-6 overflow-hidden p-6"
|
||||
>
|
||||
<div>
|
||||
<ElButton :icon="ArrowLeft" @click="router.back()">
|
||||
<ElButton
|
||||
:icon="ArrowLeft"
|
||||
@click="router.replace({ path: '/ai/workflow' })"
|
||||
>
|
||||
{{ $t('button.back') }}
|
||||
</ElButton>
|
||||
</div>
|
||||
|
||||
@@ -895,7 +895,7 @@ function onAsyncExecute(info: any) {
|
||||
v-if="!props.shareMode"
|
||||
:icon="ArrowLeft"
|
||||
link
|
||||
@click="router.back()"
|
||||
@click="backToWorkflowList"
|
||||
>
|
||||
<span
|
||||
class="max-w-[500px] overflow-hidden text-ellipsis text-nowrap text-base"
|
||||
|
||||
@@ -82,6 +82,7 @@ function toStepPage(row: any) {
|
||||
name: 'RecordStep',
|
||||
query: {
|
||||
recordId: row.id,
|
||||
workflowId: $route.query.workflowId,
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -112,7 +113,10 @@ function getTagType(row: any) {
|
||||
<template>
|
||||
<div class="page-container border-border border">
|
||||
<div class="mb-3">
|
||||
<ElButton :icon="ArrowLeft" @click="router.back()">
|
||||
<ElButton
|
||||
:icon="ArrowLeft"
|
||||
@click="router.replace({ path: '/ai/workflow' })"
|
||||
>
|
||||
{{ $t('button.back') }}
|
||||
</ElButton>
|
||||
</div>
|
||||
|
||||
@@ -44,6 +44,13 @@ function reset(formEl: FormInstance | undefined) {
|
||||
formEl?.resetFields();
|
||||
pageDataRef.value.setQuery({});
|
||||
}
|
||||
function backToExecRecords() {
|
||||
const workflowId = $route.query.workflowId;
|
||||
void router.replace({
|
||||
name: 'ExecRecord',
|
||||
query: workflowId ? { workflowId } : {},
|
||||
});
|
||||
}
|
||||
function getTagType(row: any) {
|
||||
switch (row.status) {
|
||||
case 1: {
|
||||
@@ -71,7 +78,7 @@ function getTagType(row: any) {
|
||||
<template>
|
||||
<div class="page-container border-border border">
|
||||
<div class="mb-3">
|
||||
<ElButton :icon="ArrowLeft" @click="router.back()">
|
||||
<ElButton :icon="ArrowLeft" @click="backToExecRecords">
|
||||
{{ $t('button.back') }}
|
||||
</ElButton>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user