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 850c5125e9..3d7ad700bc 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 @@ -182,18 +182,6 @@ - - - - - - - - - - - - @@ -216,7 +204,7 @@ import { initCondition, buildBatchParam, getCustomTableHeader, getCustomTableWidth } from "../../../../../../../common/js/tableUtils"; -import {ENV_TYPE, TEST_PLAN_SCENARIO_CASE} from "@/common/js/constants"; +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"; @@ -267,10 +255,10 @@ export default { }, data() { return { - type: TEST_PLAN_SCENARIO_CASE, + type: TEST_PLAN_UI_SCENARIO_CASE, tableHeaderKey:"TEST_PLAN_SCENARIO_CASE", - fields: getCustomTableHeader('TEST_PLAN_SCENARIO_CASE'), - fieldsWidth: getCustomTableWidth('TEST_PLAN_SCENARIO_CASE'), + fields: getCustomTableHeader('TEST_PLAN_UI_SCENARIO_CASE'), + fieldsWidth: getCustomTableWidth('TEST_PLAN_UI_SCENARIO_CASE'), screenHeight: 'calc(100vh - 250px)',//屏幕高度 tableLabel: [], loading: false, diff --git a/frontend/src/common/js/constants.js b/frontend/src/common/js/constants.js index 8442879e83..ff02e8f538 100644 --- a/frontend/src/common/js/constants.js +++ b/frontend/src/common/js/constants.js @@ -11,6 +11,7 @@ export const TEST_PLAN_FUNCTION_TEST_CASE = 'test_plan_function_test_case' export const TEST_PLAN_API_CASE = 'test_plan_api_case' export const TEST_PLAN_LOAD_CASE = 'test_plan_load_case' export const TEST_PLAN_SCENARIO_CASE = 'test_plan_scenario_case' +export const TEST_PLAN_UI_SCENARIO_CASE = 'test_plan_ui_scenario_case' export const TokenKey = 'Admin-Token'; export const LicenseKey = 'License'; diff --git a/frontend/src/common/js/default-table-header.js b/frontend/src/common/js/default-table-header.js index f2d883e34e..f75656da2a 100644 --- a/frontend/src/common/js/default-table-header.js +++ b/frontend/src/common/js/default-table-header.js @@ -200,6 +200,21 @@ export let CUSTOM_TABLE_HEADER = { {id: 'createTime', key: 'b', label: 'commons.create_time'}, {id: 'lastResult', key: 'c', label: 'api_test.automation.last_result'}, ], + //测试计划-UI用例 + TEST_PLAN_UI_SCENARIO_CASE: [ + {id: 'num', key: '1', label: 'commons.id'}, + {id: 'name', key: '2', label: 'api_test.automation.scenario_name'}, + {id: 'versionId', key: 'd', label: 'commons.version'}, + {id: 'level', key: '3', label: 'api_test.automation.case_level'}, + {id: 'tagNames', key: '4', label: 'api_test.automation.tag'}, + {id: 'stepTotal', key: '7', label: 'api_test.automation.step'}, + {id: 'passRate', key: '9', label: 'api_test.automation.passing_rate'}, + {id: 'maintainer', key: 'a', label: 'api_test.definition.request.responsible'}, + {id: 'createUser', key: '5', label: 'api_test.automation.creator'}, + {id: 'updateTime', key: '6', label: 'api_test.automation.update_time'}, + {id: 'createTime', key: 'b', label: 'commons.create_time'}, + {id: 'lastResult', key: 'c', label: 'api_test.automation.last_result'}, + ], //测试用例 TRACK_TEST_CASE: [ {id: 'num', key: '1', label: 'commons.id'},