From d3b52e259790b1268b1818a0421098cfad1d1ada Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Tue, 20 Sep 2022 11:35:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=E8=87=AA=E5=8A=A8=E5=8C=96):=20UI?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E5=88=97=E8=A1=A8=E5=92=8C=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E8=AF=A6=E6=83=85=E8=A1=A8=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016849 --user=张大海 【UI测试】UI自动化-列表中“执行结果”没有“未执行”状态 https://www.tapd.cn/55049933/s/1246545 --- .../comonents/api/TestPlanUiScenarioList.vue | 4 +-- frontend/src/common/js/table-constants.js | 30 ++++++++++++------- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanUiScenarioList.vue b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanUiScenarioList.vue index 3d7ad700bc..2a767cde64 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanUiScenarioList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanUiScenarioList.vue @@ -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 BatchEdit from "@/business/components/track/case/components/BatchEdit"; 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 MsTable from "@/business/components/common/components/table/MsTable"; import MsTableColumn from "@/business/components/common/components/table/MsTableColumn"; @@ -321,7 +321,7 @@ export default { } }, created() { - this.apiscenariofilters = API_SCENARIO_FILTERS(); + this.apiscenariofilters = UI_SCENARIO_FILTERS(); this.search(); this.getVersionOptions(); }, diff --git a/frontend/src/common/js/table-constants.js b/frontend/src/common/js/table-constants.js index f38130ce50..06f6e79b9f 100644 --- a/frontend/src/common/js/table-constants.js +++ b/frontend/src/common/js/table-constants.js @@ -154,23 +154,31 @@ export function API_SCENARIO_FILTERS() { {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: 'P1', value: 'P1'}, {text: 'P2', value: 'P2'}, {text: 'P3', value: 'P3'} - ]; + ], RESULT_FILTERS: [ {text: i18n.t('api_test.automation.fail'), value: 'Fail'}, - {text: i18n.t('api_test.automation.success'), value: 'Success'} - ];*/ - - /*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'}, - ],*/ + {text: i18n.t('api_test.automation.success'), value: 'Success'}, + {text: i18n.t('api_test.home_page.detail_card.unexecute'), value: 'unexecute'}, + ] + }; }