From 1803f9cf67658cde8675266153de4238010f51ad Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 5 Aug 2020 17:00:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=B5=8F=E8=A7=88=E5=99=A8=E5=9B=9E?= =?UTF-8?q?=E9=80=80=E5=85=B3=E9=97=AD=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/components/ApiEnvironmentConfig.vue | 5 +++- .../api/test/components/import/ApiImport.vue | 4 +++ .../common/components/MsScheduleEdit.vue | 3 +++ .../business/components/project/MsProject.vue | 10 ++++++-- .../organization/OrganizationMember.vue | 9 +++++-- .../organization/OrganizationWorkspace.vue | 21 ++++++++++------ .../settings/personal/PersonSetting.vue | 7 +++++- .../settings/system/LdapSetting.vue | 8 +++++- .../settings/system/Organization.vue | 23 +++++++++++++---- .../settings/system/SystemWorkspace.vue | 25 +++++++++++++++---- .../settings/system/TestResourcePool.vue | 6 +++++ .../components/settings/system/User.vue | 9 ++++++- .../settings/workspace/WorkspaceMember.vue | 7 +++++- .../track/case/components/BatchEdit.vue | 3 +++ .../track/case/components/TestCaseEdit.vue | 17 ++++++------- .../track/case/components/TestCaseImport.vue | 14 +++++++---- .../track/case/components/TestCaseList.vue | 12 --------- .../track/case/components/TestCaseMove.vue | 3 +++ .../components/track/common/NodeEdit.vue | 4 ++- .../track/plan/components/TestPlanEdit.vue | 7 ++++++ .../view/comonents/TestPlanTestCaseEdit.vue | 16 +++--------- frontend/src/common/js/utils.js | 14 +++++++++++ 22 files changed, 160 insertions(+), 67 deletions(-) diff --git a/frontend/src/business/components/api/test/components/ApiEnvironmentConfig.vue b/frontend/src/business/components/api/test/components/ApiEnvironmentConfig.vue index 0bb0fa5c5d..f7f84b005c 100644 --- a/frontend/src/business/components/api/test/components/ApiEnvironmentConfig.vue +++ b/frontend/src/business/components/api/test/components/ApiEnvironmentConfig.vue @@ -18,6 +18,7 @@ import MsMainContainer from "../../../common/components/MsMainContainer"; import MsAsideItem from "../../../common/components/MsAsideItem"; import EnvironmentEdit from "./environment/EnvironmentEdit"; + import {listenGoBack, removeGoBackListener} from "../../../../../common/js/utils"; export default { name: "ApiEnvironmentConfig", @@ -45,10 +46,11 @@ } }, methods: { - open(projectId) { + open: function (projectId) { this.visible = true; this.projectId = projectId; this.getEnvironments(); + listenGoBack(this.close); }, deleteEnvironment(environment, index) { if (environment.id) { @@ -134,6 +136,7 @@ this.$emit('close'); this.visible = false; this.$refs.environmentEdit.clearValidate(); + removeGoBackListener(this.close); } } } diff --git a/frontend/src/business/components/api/test/components/import/ApiImport.vue b/frontend/src/business/components/api/test/components/import/ApiImport.vue index be6572e96a..6d939fcab6 100644 --- a/frontend/src/business/components/api/test/components/import/ApiImport.vue +++ b/frontend/src/business/components/api/test/components/import/ApiImport.vue @@ -95,6 +95,7 @@