From e67891633efaa031e47f1868b6197fb29723fcbf Mon Sep 17 00:00:00 2001 From: limin-fit2 Date: Tue, 15 Feb 2022 15:15:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=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 --- .../track/plan/components/TestPlanList.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index b45e00d1e0..302ae18b67 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -110,7 +110,8 @@ @click.stop.native v-model="scope.row.scheduleOpen" inactive-color="#DCDFE6" - @change="scheduleChange(scope.row)"> + @change="scheduleChange(scope.row)" + :disabled="!hasSchedulePermission"> @@ -119,11 +120,12 @@ @click.stop.native v-model="scope.row.scheduleOpen" inactive-color="#DCDFE6" - @change="scheduleChange(scope.row)"> + @change="scheduleChange(scope.row)" + :disabled="!hasSchedulePermission"> - {{ + {{ $t('schedule.not_set') }} @@ -387,6 +389,7 @@ export default { currentPage: 1, pageSize: 10, hasEditPermission: false, + hasSchedulePermission: false, total: 0, tableData: [], fields: getCustomTableHeader('TEST_PLAN_LIST'), @@ -415,7 +418,8 @@ export default { publicButtons: [ { name: this.$t('test_track.plan.test_plan_batch_switch'), - handleClick: this.handleBatchSwitch + handleClick: this.handleBatchSwitch, + permissions: ['PROJECT_TRACK_PLAN:READ+SCHEDULE'] } ], simpleOperators: [ @@ -455,6 +459,7 @@ export default { this.projectId = getCurrentProjectID(); } this.hasEditPermission = hasPermission('PROJECT_TRACK_PLAN:READ+EDIT'); + this.hasSchedulePermission = hasPermission('PROJECT_TRACK_PLAN:READ+SCHEDULE'); this.condition.orders = getLastTableSortField(this.tableHeaderKey); getPlanStageOption((data) => { this.stageOption = data;