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 { RouteEnum } from '@/enums/routeEnum';
import { TaskCenterEnum } from '@/enums/taskCenter';
export const MENU_LEVEL = ['SYSTEM', 'ORGANIZATION', 'PROJECT'] as const; // 菜单级别 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)" v-if="props.step && [ScenarioStepType.API, ScenarioStepType.CUSTOM_REQUEST].includes(props.step?.stepType)"
:step="props.step" :step="props.step"
/> />
<a-tooltip v-if="!isShowEditStepNameInput" :content="title" position="bottom"> <div v-if="!isShowEditStepNameInput" class="flex flex-1 items-center gap-[4px] overflow-hidden">
<div class="flex flex-1 items-center gap-[4px] overflow-hidden"> <a-tooltip :content="title" position="bottom">
<div class="one-line-text"> <div class="one-line-text">
{{ title }} {{ title }}
</div> </div>
@ -38,8 +38,8 @@
class="min-w-[16px] cursor-pointer hover:text-[rgb(var(--primary-5))]" class="min-w-[16px] cursor-pointer hover:text-[rgb(var(--primary-5))]"
@click="isShowEditStepNameInput = true" @click="isShowEditStepNameInput = true"
/> />
</div>
</a-tooltip> </a-tooltip>
</div>
<a-input <a-input
v-if="isShowEditStepNameInput" v-if="isShowEditStepNameInput"
v-model:model-value="requestVModel.stepName" v-model:model-value="requestVModel.stepName"

View File

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