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: [