From f228f5d2a8306f0acd64de90d8116bb861fb0de3 Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Mon, 29 Aug 2022 15:02:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=20=E8=87=AA=E5=8A=A8=E5=8C=96):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E8=A1=A8=E5=A4=B4=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016288 --user=张大海 【测试跟踪】测试计划-UI测试用例-表头字段运行环境没用-去掉 https://www.tapd.cn/55049933/s/1235003 --- .../comonents/api/TestPlanUiScenarioList.vue | 20 ++++--------------- frontend/src/common/js/constants.js | 1 + .../src/common/js/default-table-header.js | 15 ++++++++++++++ 3 files changed, 20 insertions(+), 16 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 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'},