fix(测试计划): 修复报告执行结果增加空结果过滤

This commit is contained in:
xinxin.wu 2024-10-21 18:48:01 +08:00 committed by Craftsman
parent 02716aa690
commit 5dfe0330bc
3 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,8 @@
<div class="arco-table-filters-content-list"> <div class="arco-table-filters-content-list">
<div class="arco-table-filters-content-wrap max-h-[300px] px-[12px] py-[4px]"> <div class="arco-table-filters-content-wrap max-h-[300px] px-[12px] py-[4px]">
<a-checkbox-group v-if="props.mode === 'static'" v-model="checkedList" size="mini" direction="vertical"> <a-checkbox-group v-if="props.mode === 'static'" v-model="checkedList" size="mini" direction="vertical">
<!-- 用于执行结果排队空统一让后台传递PENDING展示内容为 - -->
<a-checkbox v-if="props.emptyFilter" value="PENDING">-</a-checkbox>
<a-checkbox <a-checkbox
v-for="(item, index) of props.options" v-for="(item, index) of props.options"
:key="item[props.valueKey || 'value']" :key="item[props.valueKey || 'value']"
@ -97,6 +99,7 @@
placeholderText?: string; placeholderText?: string;
dataIndex?: string | undefined; dataIndex?: string | undefined;
filter: Record<string, any>; filter: Record<string, any>;
emptyFilter?: boolean; // -
}>(), }>(),
{ {
mode: 'static', mode: 'static',

View File

@ -29,6 +29,7 @@ export interface MsTableColumnFilterConfig {
valueKey?: string; valueKey?: string;
labelKey?: string; labelKey?: string;
mode?: 'static' | 'remote'; mode?: 'static' | 'remote';
emptyFilter?: boolean; // 是否空选项查询(包含未执行和排队中无状态)
remoteMethod?: FilterRemoteMethodsEnum; // 加载选项的类型 remoteMethod?: FilterRemoteMethodsEnum; // 加载选项的类型
loadOptionParams?: Record<string, any>; // 请求下拉的参数 loadOptionParams?: Record<string, any>; // 请求下拉的参数
placeholderText?: string; placeholderText?: string;

View File

@ -129,6 +129,7 @@
filterConfig: { filterConfig: {
options: props.isPreview ? lastReportStatusListOptions.value : [], options: props.isPreview ? lastReportStatusListOptions.value : [],
filterSlotName: FilterSlotNameEnum.API_TEST_CASE_API_LAST_EXECUTE_STATUS, filterSlotName: FilterSlotNameEnum.API_TEST_CASE_API_LAST_EXECUTE_STATUS,
emptyFilter: true,
}, },
width: 150, width: 150,
showInTable: true, showInTable: true,