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'}, + ] + }; }