refactor(接口测试): 全部场景列表当前状态去掉废弃的筛选项 (#12789)

--bug=1012314 --user=王孝刚 【接口测试】+【UI测试】列表页面筛选“废弃”状态的用例后,左侧列表统计结果显示不一致
https://www.tapd.cn/55049933/s/1138943

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-04-19 14:17:49 +08:00 committed by GitHub
parent 8b85321494
commit d35406be9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -99,7 +99,7 @@
sortable sortable
:field="item" :field="item"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
:filters="apiscenariofilters.STATUS_FILTERS" :filters="!trashEnable ? apiscenariofilters.STATUS_FILTERS : apiscenariofilters.TRASH_FILTERS"
min-width="120px"> min-width="120px">
<template v-slot:default="scope"> <template v-slot:default="scope">
<plan-status-table-item :value="scope.row.status"/> <plan-status-table-item :value="scope.row.status"/>

View File

@ -105,8 +105,11 @@ export function API_SCENARIO_FILTERS () {
{text: i18n.t('test_track.plan.plan_status_prepare'), value: 'Prepare'}, {text: i18n.t('test_track.plan.plan_status_prepare'), value: 'Prepare'},
{text: i18n.t('test_track.plan.plan_status_running'), value: 'Underway'}, {text: i18n.t('test_track.plan.plan_status_running'), value: 'Underway'},
{text: i18n.t('test_track.plan.plan_status_completed'), value: 'Completed'}, {text: i18n.t('test_track.plan.plan_status_completed'), value: 'Completed'},
],
TRASH_FILTERS: [
{text: i18n.t('test_track.plan.plan_status_trash'), value: 'Trash'}, {text: i18n.t('test_track.plan.plan_status_trash'), value: 'Trash'},
], ],
LEVEL_FILTERS: [ LEVEL_FILTERS: [
{text: 'P0', value: 'P0'}, {text: 'P0', value: 'P0'},
{text: 'P1', value: 'P1'}, {text: 'P1', value: 'P1'},