From 2bbb35f5688b7657115a7874964c464f500d7478 Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Wed, 22 Sep 2021 17:41:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89=E5=8F=8A?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=8C=96=E5=8F=AA=E8=AF=BB?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98=20(#6356?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: BugKing --- .../api/automation/scenario/EditApiScenario.vue | 2 +- .../api/definition/components/case/ApiCaseHeader.vue | 2 +- .../api/definition/components/case/ApiCaseItem.vue | 11 ++++++----- .../components/complete/EditCompleteHTTPApi.vue | 2 +- .../definition/components/list/ApiCaseSimpleList.vue | 10 +++++----- .../api/definition/components/list/ApiList.vue | 2 +- .../definition/components/reference/ApiExtendBtns.vue | 2 +- 7 files changed, 16 insertions(+), 15 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 3b15076278..e4901ca88a 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -8,7 +8,7 @@ {{ $t('operating_log.change_history') }} + title="ctrl + s" v-permission="['PROJECT_API_SCENARIO:READ+EDIT']"> {{ $t('commons.save') }} diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseHeader.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseHeader.vue index fef81ecc4f..0bb926ae6a 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseHeader.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseHeader.vue @@ -54,7 +54,7 @@ - +{{ $t('api_test.definition.request.case') }} + +{{ $t('api_test.definition.request.case') }} diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue index d10d2ff136..33406de5b8 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue @@ -24,7 +24,7 @@ @@ -82,7 +82,7 @@ - @@ -91,9 +91,9 @@ - - @@ -143,7 +143,8 @@ + v-if="type!=='detail'" + v-permission="['PROJECT_API_DEFINITION:READ+EDIT_CASE']"> {{ $t('commons.save') }} diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue index ab002593e0..9c34a3ebdd 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue @@ -8,7 +8,7 @@ {{ $t('operating_log.change_history') }} - {{ $t('commons.save') }} + {{ $t('commons.save') }}

{{ $t('test_track.plan_view.base_info') }}

diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue index fed6ae513b..2fd7e7f8f1 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue @@ -275,13 +275,13 @@ export default { buttons: [], enableOrderDrag: true, simpleButtons: [ - {name: this.$t('api_test.definition.request.batch_delete'), handleClick: this.handleDeleteToGcBatch}, - {name: this.$t('api_test.definition.request.batch_edit'), handleClick: this.handleEditBatch}, - {name: this.$t('api_test.automation.batch_execute'), handleClick: this.handleRunBatch}, + {name: this.$t('api_test.definition.request.batch_delete'), handleClick: this.handleDeleteToGcBatch, permissions: ['PROJECT_API_DEFINITION:READ+DELETE_CASE']}, + {name: this.$t('api_test.definition.request.batch_edit'), handleClick: this.handleEditBatch, permissions: ['PROJECT_API_DEFINITION:READ+EDIT_CASE']}, + {name: this.$t('api_test.automation.batch_execute'), handleClick: this.handleRunBatch, permissions: ['PROJECT_API_DEFINITION:READ+RUN']}, ], trashButtons: [ - {name: this.$t('commons.reduction'), handleClick: this.handleBatchRestore}, - {name: this.$t('api_test.definition.request.batch_delete'), handleClick: this.handleDeleteBatch}, + {name: this.$t('commons.reduction'), handleClick: this.handleBatchRestore, permissions: ['PROJECT_API_DEFINITION:READ+DELETE_CASE']}, + {name: this.$t('api_test.definition.request.batch_delete'), handleClick: this.handleDeleteBatch, permissions: ['PROJECT_API_DEFINITION:READ+EDIT_CASE']}, ], operators: [], simpleOperators: [ diff --git a/frontend/src/business/components/api/definition/components/list/ApiList.vue b/frontend/src/business/components/api/definition/components/list/ApiList.vue index ccfa5dff77..0dc1978839 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiList.vue @@ -301,7 +301,7 @@ export default { exec: this.handleTestCase, isDivButton: true, type: "primary", - permissions: ['PROJECT_API_DEFINITION:READ+CREATE_CASE'] + permissions: ['PROJECT_API_DEFINITION:READ'] }, { tip: this.$t('commons.delete'), diff --git a/frontend/src/business/components/api/definition/components/reference/ApiExtendBtns.vue b/frontend/src/business/components/api/definition/components/reference/ApiExtendBtns.vue index bf7fbc2223..f772c9183c 100644 --- a/frontend/src/business/components/api/definition/components/reference/ApiExtendBtns.vue +++ b/frontend/src/business/components/api/definition/components/reference/ApiExtendBtns.vue @@ -5,7 +5,7 @@ {{ $t('api_test.automation.view_ref') }} - {{ $t('api_test.create_performance_test') }} + {{ $t('api_test.create_performance_test') }}