From 20a124b593abe303b44a645492875da291179cb1 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 25 Aug 2020 17:44:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B9=E5=88=B7=E6=96=B0head?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/test/ApiTestConfig.vue | 549 ++++++++-------- .../test/EditPerformanceTestPlan.vue | 5 + .../track/case/components/TestCaseEdit.vue | 585 +++++++++--------- .../track/plan/components/TestPlanEdit.vue | 213 +++---- 4 files changed, 685 insertions(+), 667 deletions(-) diff --git a/frontend/src/business/components/api/test/ApiTestConfig.vue b/frontend/src/business/components/api/test/ApiTestConfig.vue index 7ddb614cdb..84e7589d48 100644 --- a/frontend/src/business/components/api/test/ApiTestConfig.vue +++ b/frontend/src/business/components/api/test/ApiTestConfig.vue @@ -15,35 +15,35 @@ - {{$t('commons.save')}} + {{ $t('commons.save') }} - - {{$t('load_test.save_and_run')}} + {{ $t('load_test.save_and_run') }} - - - + + + - {{$t('commons.cancel')}} + {{ $t('commons.cancel') }} - {{$t('api_report.title')}} + {{ $t('api_report.title') }} - {{$t('api_test.create_performance_test')}} + {{ $t('api_test.create_performance_test') }} - {{$t('api_test.export_config')}} + {{ $t('api_test.export_config') }} - {{$t('api_test.api_import.label')}} + {{ $t('api_test.api_import.label') }} @@ -52,10 +52,12 @@ - + - + @@ -63,274 +65,279 @@ diff --git a/frontend/src/business/components/performance/test/EditPerformanceTestPlan.vue b/frontend/src/business/components/performance/test/EditPerformanceTestPlan.vue index af7e5736b0..e50d70dc37 100644 --- a/frontend/src/business/components/performance/test/EditPerformanceTestPlan.vue +++ b/frontend/src/business/components/performance/test/EditPerformanceTestPlan.vue @@ -60,6 +60,7 @@ import MsContainer from "../../common/components/MsContainer"; import MsMainContainer from "../../common/components/MsMainContainer"; import {checkoutTestManagerOrTestUser} from "../../../../common/js/utils"; import MsScheduleConfig from "../../common/components/MsScheduleConfig"; +import {LIST_CHANGE, PerformanceEvent} from "@/business/components/common/head/ListEvent"; export default { name: "EditPerformanceTestPlan", @@ -172,6 +173,8 @@ export default { this.$success(this.$t('commons.save_success')); this.$refs.advancedConfig.cancelAllEdit(); this.$router.push({path: '/performance/test/all'}) + // 发送广播,刷新 head 上的最新列表 + PerformanceEvent.$emit(LIST_CHANGE); }); }, saveAndRun() { @@ -187,6 +190,8 @@ export default { this.result = this.$post(this.runPath, {id: this.testPlan.id, triggerMode: 'MANUAL'}, (response) => { let reportId = response.data; this.$router.push({path: '/performance/report/view/' + reportId}) + // 发送广播,刷新 head 上的最新列表 + PerformanceEvent.$emit(LIST_CHANGE); }) }); }, diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue index f3a96dc71c..bb33f1b561 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue @@ -3,8 +3,8 @@
+ :title="operationType == 'edit' ? ( readOnly ? $t('test_track.case.view_case') : $t('test_track.case.edit_case')) : $t('test_track.case.create')" + :visible.sync="dialogFormVisible" width="65%"> @@ -92,7 +92,7 @@ - - + - {{$t('test_track.case.prerequisite')}}: + {{ $t('test_track.case.prerequisite') }}: @@ -125,7 +125,7 @@ - {{$t('test_track.case.steps')}}: + {{ $t('test_track.case.steps') }}: @@ -187,7 +187,7 @@ - {{$t('commons.remark')}}: + {{ $t('commons.remark') }}: @@ -222,302 +222,305 @@ diff --git a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue index ce53fa9057..b51d0de096 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue @@ -92,12 +92,12 @@ @@ -110,116 +110,119 @@