fix(UI自动化): UI场景列表和测试计划详情表状态筛选条件修正

--bug=1016849 --user=张大海 【UI测试】UI自动化-列表中“执行结果”没有“未执行”状态 https://www.tapd.cn/55049933/s/1246545
This commit is contained in:
zhangdahai112 2022-09-20 11:35:28 +08:00 committed by zhangdahai112
parent 9eb795243b
commit d3b52e2597
2 changed files with 21 additions and 13 deletions

View File

@ -208,7 +208,7 @@ import {ENV_TYPE, TEST_PLAN_UI_SCENARIO_CASE} from "@/common/js/constants";
import HeaderLabelOperate from "@/business/components/common/head/HeaderLabelOperate"; import HeaderLabelOperate from "@/business/components/common/head/HeaderLabelOperate";
import BatchEdit from "@/business/components/track/case/components/BatchEdit"; import BatchEdit from "@/business/components/track/case/components/BatchEdit";
import PriorityTableItem from "@/business/components/track/common/tableItems/planview/PriorityTableItem"; import PriorityTableItem from "@/business/components/track/common/tableItems/planview/PriorityTableItem";
import {API_SCENARIO_FILTERS} from "@/common/js/table-constants"; import {UI_SCENARIO_FILTERS} from "@/common/js/table-constants";
import MsTaskCenter from "../../../../../task/TaskCenter"; import MsTaskCenter from "../../../../../task/TaskCenter";
import MsTable from "@/business/components/common/components/table/MsTable"; import MsTable from "@/business/components/common/components/table/MsTable";
import MsTableColumn from "@/business/components/common/components/table/MsTableColumn"; import MsTableColumn from "@/business/components/common/components/table/MsTableColumn";
@ -321,7 +321,7 @@ export default {
} }
}, },
created() { created() {
this.apiscenariofilters = API_SCENARIO_FILTERS(); this.apiscenariofilters = UI_SCENARIO_FILTERS();
this.search(); this.search();
this.getVersionOptions(); this.getVersionOptions();
}, },

View File

@ -154,23 +154,31 @@ export function API_SCENARIO_FILTERS() {
{text: i18n.t('error_report_library.option.name'), value: 'errorReportResult'} {text: i18n.t('error_report_library.option.name'), value: 'errorReportResult'}
] ]
}; };
/*LEVEL_FILTERS: [ }
export function UI_SCENARIO_FILTERS() {
return {
STATUS_FILTERS: [
{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_completed'), value: 'Completed'},
],
TRASH_FILTERS: [
{text: i18n.t('test_track.plan.plan_status_trash'), value: 'Trash'},
],
LEVEL_FILTERS: [
{text: 'P0', value: 'P0'}, {text: 'P0', value: 'P0'},
{text: 'P1', value: 'P1'}, {text: 'P1', value: 'P1'},
{text: 'P2', value: 'P2'}, {text: 'P2', value: 'P2'},
{text: 'P3', value: 'P3'} {text: 'P3', value: 'P3'}
]; ],
RESULT_FILTERS: [ RESULT_FILTERS: [
{text: i18n.t('api_test.automation.fail'), value: 'Fail'}, {text: i18n.t('api_test.automation.fail'), value: 'Fail'},
{text: i18n.t('api_test.automation.success'), value: 'Success'} {text: i18n.t('api_test.automation.success'), value: 'Success'},
];*/ {text: i18n.t('api_test.home_page.detail_card.unexecute'), value: 'unexecute'},
]
/*STATUS_FILTERS: [ };
{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_completed'), value: 'Completed'},
{text: i18n.t('test_track.plan.plan_status_trash'), value: 'Trash'},
],*/
} }