mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
fix(工作台): 筛选表头修复
This commit is contained in:
parent
e51644d1ec
commit
6436a84245
@ -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',
|
||||
|
@ -36,6 +36,7 @@ export interface MsTableColumnFilterConfig {
|
||||
placeholderText?: string;
|
||||
firstLabelKey?: string;
|
||||
secondLabelKey?: string;
|
||||
disabledTooltip?: boolean;
|
||||
}
|
||||
|
||||
export interface MsTableRowSelectionDisabledConfig {
|
||||
|
@ -171,6 +171,7 @@
|
||||
filterConfig: {
|
||||
options: requestApiScenarioStatusOptions.value,
|
||||
filterSlotName: FilterSlotNameEnum.API_TEST_CASE_API_STATUS,
|
||||
disabledTooltip: true,
|
||||
},
|
||||
showDrag: true,
|
||||
width: 140,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user