diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index 4c33b9c3b1..f278121988 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit 4c33b9c3b12a83da6d9bd2740262c6c8baaab819 +Subproject commit f2781219889c2f993436bcc3ea90038f588fa73e From 8730b4be89b4cfe7ff8f1dc297d95a4792690fcb Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Tue, 16 Mar 2021 18:10:15 +0800 Subject: [PATCH 28/95] =?UTF-8?q?feat:=20=E5=88=9B=E5=BB=BA=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/service/TestPlanService.java | 3 +- .../track/plan/components/TestPlanEdit.vue | 30 +++++++++++++++++++ .../track/plan/components/TestPlanList.vue | 4 +-- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index 9961681125..410e2c568c 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -127,7 +127,7 @@ public class TestPlanService { @Resource private ApiScenarioMapper apiScenarioMapper; - public synchronized void addTestPlan(AddTestPlanRequest testPlan) { + public synchronized String addTestPlan(AddTestPlanRequest testPlan) { if (getTestPlanByName(testPlan.getName()).size() > 0) { MSException.throwException(Translator.get("plan_name_already_exists")); } @@ -156,6 +156,7 @@ public class TestPlanService { .event(NoticeConstants.Event.CREATE) .build(); noticeSendService.send(NoticeConstants.TaskType.TEST_PLAN_TASK, noticeModel); + return testPlan.getId(); } public List getTestPlanByName(String name) { diff --git a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue index 7e9966d138..525236deda 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue @@ -109,6 +109,9 @@ @click="savePlan"> {{ $t('test_track.confirm') }} + + {{ $t('test_track.planning_execution') }} +