mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 21:19:52 +08:00
fix(日志): 日志跳转调整
This commit is contained in:
parent
c8be0606e0
commit
3039a75155
@ -1,5 +1,4 @@
|
||||
import { RouteEnum } from '@/enums/routeEnum';
|
||||
import { TaskCenterEnum } from '@/enums/taskCenter';
|
||||
|
||||
export const MENU_LEVEL = ['SYSTEM', 'ORGANIZATION', 'PROJECT'] as const; // 菜单级别
|
||||
|
||||
|
@ -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>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
<a-input
|
||||
v-if="isShowEditStepNameInput"
|
||||
v-model:model-value="requestVModel.stepName"
|
||||
|
@ -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> = {
|
||||
|
Loading…
Reference in New Issue
Block a user