fix: 统一详情页返回上级列表

- 修正管理端插件、工作流与系统详情页返回目标

- 修正用户中心执行记录与助手详情返回目标

- 保留审批页签及关联资源筛选上下文
This commit is contained in:
2026-07-28 12:23:36 +08:00
parent 1404c2ddc5
commit dc35ddc3e4
14 changed files with 144 additions and 11 deletions

View File

@@ -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>

View File

@@ -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"

View File

@@ -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>

View File

@@ -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>