fix(日志): 日志跳转调整

This commit is contained in:
baiqi 2024-10-21 16:30:36 +08:00 committed by Craftsman
parent c8be0606e0
commit 3039a75155
3 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,4 @@
import { RouteEnum } from '@/enums/routeEnum';
import { TaskCenterEnum } from '@/enums/taskCenter';
export const MENU_LEVEL = ['SYSTEM', 'ORGANIZATION', 'PROJECT'] as const; // 菜单级别

View File

@ -27,8 +27,8 @@
v-if="props.step && [ScenarioStepType.API, ScenarioStepType.CUSTOM_REQUEST].includes(props.step?.stepType)"
:step="props.step"
/>
<a-tooltip v-if="!isShowEditStepNameInput" :content="title" position="bottom">
<div class="flex flex-1 items-center gap-[4px] overflow-hidden">
<div v-if="!isShowEditStepNameInput" class="flex flex-1 items-center gap-[4px] overflow-hidden">
<a-tooltip :content="title" position="bottom">
<div class="one-line-text">
{{ title }}
</div>
@ -38,8 +38,8 @@
class="min-w-[16px] cursor-pointer hover:text-[rgb(var(--primary-5))]"
@click="isShowEditStepNameInput = true"
/>
</div>
</a-tooltip>
</div>
<a-input
v-if="isShowEditStepNameInput"
v-model:model-value="requestVModel.stepName"

View File

@ -136,7 +136,12 @@
</template>
<template #content="{ record }">
<div
v-if="record.module === 'SYSTEM' || record.type === 'DELETE' || record.module.includes('MODULE')"
v-if="
record.module === 'SYSTEM' ||
record.type === 'DELETE' ||
record.module.includes('MODULE') ||
record.module.includes('TASK_CENTER')
"
class="one-line-text"
>
{{ record.content }}
@ -564,6 +569,7 @@
function handleNameClick(record: LogItem) {
if (record.type === 'DELETE') {
//
return;
}
const routeQuery: Record<string, any> = {