fix(日志): 日志跳转调整
This commit is contained in:
parent
c8be0606e0
commit
3039a75155
|
@ -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; // 菜单级别
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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> = {
|
||||||
|
|
Loading…
Reference in New Issue