fix(工作台): 筛选表头修复

This commit is contained in:
baiqi 2024-11-19 10:14:31 +08:00 committed by 刘瑞斌
parent e51644d1ec
commit 6436a84245
4 changed files with 7 additions and 3 deletions

View File

@ -23,7 +23,7 @@
<a-tooltip
:content="item[props.labelKey || 'label']"
:mouse-enter-delay="300"
:disabled="!item[props.labelKey || 'label']"
:disabled="props.disabledTooltip || !item[props.labelKey || 'label']"
>
<div class="one-line-text max-w-[120px]">
<slot name="item" :filter-item="item" :index="index">
@ -100,6 +100,7 @@
dataIndex?: string | undefined;
filter: Record<string, any>;
emptyFilter?: boolean; // -
disabledTooltip?: boolean; // tooltip
}>(),
{
mode: 'static',

View File

@ -36,6 +36,7 @@ export interface MsTableColumnFilterConfig {
placeholderText?: string;
firstLabelKey?: string;
secondLabelKey?: string;
disabledTooltip?: boolean;
}
export interface MsTableRowSelectionDisabledConfig {

View File

@ -171,6 +171,7 @@
filterConfig: {
options: requestApiScenarioStatusOptions.value,
filterSlotName: FilterSlotNameEnum.API_TEST_CASE_API_STATUS,
disabledTooltip: true,
},
showDrag: true,
width: 140,

View File

@ -23,7 +23,7 @@
</template>
<!-- 用例等级 -->
<template #[FilterSlotNameEnum.CASE_MANAGEMENT_CASE_LEVEL]="{ filterContent }">
<caseLevel :case-level="filterContent.text" />
<caseLevel :case-level="filterContent.value" />
</template>
<!-- 执行结果 -->
<template #[FilterSlotNameEnum.CASE_MANAGEMENT_EXECUTE_RESULT]="{ filterContent }">
@ -65,6 +65,7 @@
import { CaseManagementRouteEnum } from '@/enums/routeEnum';
import { FilterSlotNameEnum } from '@/enums/tableFilterEnum';
import { casePriorityOptions } from '@/views/api-test/components/config';
import {
executionResultMap,
getCaseLevels,
@ -123,7 +124,7 @@
slotName: 'caseLevel',
dataIndex: 'caseLevel',
filterConfig: {
options: [],
options: casePriorityOptions,
filterSlotName: FilterSlotNameEnum.CASE_MANAGEMENT_CASE_LEVEL,
},
showInTable: true,