From 8d4af8f2c65313b551a897b3397115bb2ec11c4e Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 30 Aug 2022 10:45:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=AA=E8=AF=BB=E7=94=A8=E6=88=B7=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E6=89=A7=E8=A1=8C=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016356 --user=王孝刚 [接口测试] github#17099只读用户使用CTRL+R快捷键可以执行用例 https://www.tapd.cn/55049933/s/1235625 --- .../api/automation/scenario/common/ApiBaseComponent.vue | 3 ++- .../api/definition/components/runtest/RunTestDubboPage.vue | 3 ++- .../api/definition/components/runtest/RunTestHTTPPage.vue | 3 ++- .../api/definition/components/runtest/RunTestSQLPage.vue | 3 ++- .../api/definition/components/runtest/RunTestTCPPage.vue | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue b/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue index 43b192de79..eef1d7868b 100644 --- a/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue @@ -32,7 +32,8 @@ -
+
diff --git a/frontend/src/business/components/api/definition/components/runtest/RunTestDubboPage.vue b/frontend/src/business/components/api/definition/components/runtest/RunTestDubboPage.vue index 8c1afee631..6baeab8b4a 100644 --- a/frontend/src/business/components/api/definition/components/runtest/RunTestDubboPage.vue +++ b/frontend/src/business/components/api/definition/components/runtest/RunTestDubboPage.vue @@ -7,7 +7,8 @@ + @command="handleCommand" size="small" style="float: right;margin-right: 20px" v-if="!runLoading" + v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']"> {{ $t('commons.test') }} {{ $t('api_test.definition.request.load_case') }} diff --git a/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue b/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue index fe5ff479fe..29b1383533 100644 --- a/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue +++ b/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue @@ -31,7 +31,8 @@ + @command="handleCommand" size="small" v-if="!runLoading" + v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']"> {{ $t('commons.test') }} {{ $t('api_test.definition.request.load_case') }} diff --git a/frontend/src/business/components/api/definition/components/runtest/RunTestSQLPage.vue b/frontend/src/business/components/api/definition/components/runtest/RunTestSQLPage.vue index 2a04c89448..f923ead31c 100644 --- a/frontend/src/business/components/api/definition/components/runtest/RunTestSQLPage.vue +++ b/frontend/src/business/components/api/definition/components/runtest/RunTestSQLPage.vue @@ -7,7 +7,8 @@ + @command="handleCommand" size="small" style="float: right;margin-right: 20px" v-if="!runLoading" + v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']"> {{ $t('commons.test') }} {{ $t('api_test.definition.request.load_case') }} diff --git a/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue b/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue index 5f8fd26c72..224a813915 100644 --- a/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue +++ b/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue @@ -10,7 +10,8 @@ + @command="handleCommand" size="small" style="float: right;margin-right: 20px" v-if="!runLoading" + v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']"> {{ $t('commons.test') }} {{ $t('api_test.definition.request.load_case') }}