From 7b4dfb0725d33aa3e465c5c9cd8fb9ed230510bd Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 27 May 2021 11:04:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/definition/components/list/ApiList.vue | 2 +- .../components/track/case/components/ShowMoreBtn.vue | 6 +++--- .../track/case/components/TestCaseIssueRelate.vue | 6 +++--- .../components/track/case/components/TestCaseList.vue | 3 ++- .../track/plan/view/comonents/api/TestPlanApiCaseList.vue | 6 +++--- .../plan/view/comonents/api/TestPlanApiScenarioList.vue | 6 +++--- .../view/comonents/functional/FunctionalTestCaseList.vue | 6 ++++-- .../track/plan/view/comonents/load/TestPlanLoadCaseList.vue | 4 ++-- 8 files changed, 21 insertions(+), 18 deletions(-) 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 596eaff082..9009381833 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiList.vue @@ -249,7 +249,7 @@ export default { { name: this.$t('api_test.definition.request.batch_move'), handleClick: this.handleBatchMove, - permissions: ['PROJECT_API_DEFINITION:READ+BATCH_MOVE'] + permissions: ['PROJECT_API_DEFINITION:READ+EDIT_API'] } ], trashButtons: [ diff --git a/frontend/src/business/components/track/case/components/ShowMoreBtn.vue b/frontend/src/business/components/track/case/components/ShowMoreBtn.vue index 8f22714816..41e2d0a23e 100644 --- a/frontend/src/business/components/track/case/components/ShowMoreBtn.vue +++ b/frontend/src/business/components/track/case/components/ShowMoreBtn.vue @@ -40,10 +40,10 @@ } }, isDisable(item) { - if (item.permission && item.permission.length > 0) { - return !hasPermissions(item.permission); + if (item.permissions && item.permissions.length > 0) { + return !hasPermissions(...item.permissions); } - return true; + return false; } } } diff --git a/frontend/src/business/components/track/case/components/TestCaseIssueRelate.vue b/frontend/src/business/components/track/case/components/TestCaseIssueRelate.vue index 813076ac21..9047c31bce 100644 --- a/frontend/src/business/components/track/case/components/TestCaseIssueRelate.vue +++ b/frontend/src/business/components/track/case/components/TestCaseIssueRelate.vue @@ -1,8 +1,8 @@