From 4cece1354c895ebdc09935ae168f830142f25220 Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Mon, 18 Jul 2022 16:21:17 +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=E5=88=97=E8=A1=A8=E5=8F=AA?= =?UTF-8?q?=E8=A6=81=E6=9C=89UI=E6=B5=8B=E8=AF=95=E5=B0=B1=E5=BC=B9?= =?UTF-8?q?=E5=87=BA=E9=85=8D=E7=BD=AE=E6=A1=86(=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1007518 --user=张大海 【UI测试】支持加入到测试计划中 https://www.tapd.cn/55049933/s/1202992 --- .../components/track/plan/components/TestPlanList.vue | 6 +++--- frontend/src/common/js/default-table-header.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index a8c93e062a..8a8bebfcbd 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -771,9 +771,9 @@ export default { this.currentPlanId = row.id; this.$get("/test/plan/have/exec/case/" + row.id, async res => { const haveExecCase = res.data; - if (haveExecCase) { - let r = await this.haveUIScenario(); - this.haveUICase = r.data.data; + let r = await this.haveUIScenario(); + this.haveUICase = r.data.data; + if (haveExecCase || this.haveUICase) { this.$refs.runMode.open('API'); } else { this.$router.push('/track/plan/view/' + row.id); diff --git a/frontend/src/common/js/default-table-header.js b/frontend/src/common/js/default-table-header.js index 9bde40841f..c1411f4293 100644 --- a/frontend/src/common/js/default-table-header.js +++ b/frontend/src/common/js/default-table-header.js @@ -139,9 +139,9 @@ export let CUSTOM_TABLE_HEADER = { {id: 'testPlanTestCaseCount', key: 'g', label: 'test_track.plan.test_plan_test_case_count'}, {id: 'testPlanApiCaseCount', key: 'h', label: 'test_track.plan.test_plan_api_case_count'}, {id: 'testPlanApiScenarioCount', key: 'i', label: 'test_track.plan.test_plan_api_scenario_count'}, - {id: 'testPlanUiScenarioCount', key: 'i', label: 'test_track.plan.test_plan_ui_scenario_count'}, - {id: 'testPlanLoadCaseCount', key: 'j', label: 'test_track.plan.test_plan_load_case_count'}, - {id: 'principalName', key: 'k', label: 'test_track.plan.plan_principal'}, + {id: 'testPlanUiScenarioCount', key: 'j', label: 'test_track.plan.test_plan_ui_scenario_count'}, + {id: 'testPlanLoadCaseCount', key: 'k', label: 'test_track.plan.test_plan_load_case_count'}, + {id: 'principalName', key: 'l', label: 'test_track.plan.plan_principal'}, ], //测试计划-功能用例 TEST_PLAN_FUNCTION_TEST_CASE: [