fix(权限设置): 修复权限设置

This commit is contained in:
Captain.B 2021-05-26 17:06:39 +08:00 committed by 刘瑞斌
parent 5b42f01b80
commit add73293a7
4 changed files with 9 additions and 6 deletions

View File

@ -5,7 +5,7 @@
<template v-slot:header>
<ms-table-header :condition.sync="condition" @search="search"
:title="$t('commons.test')"
v-permission="['PROJECT_PERFORMANCE_TEST:READ+CREATE']"
:create-permission="['PROJECT_PERFORMANCE_TEST:READ+CREATE']"
@create="create" :createTip="$t('load_test.create')"/>
</template>

View File

@ -131,7 +131,8 @@
<header-label-operate @exec="customHeader"/>
</template>
<template v-slot:default="scope">
<ms-table-operator v-permission="['PROJECT_TRACK_CASE:READ+EDIT','PROJECT_TRACK_CASE:READ+DELETE']"
<ms-table-operator :edit-permission="['PROJECT_TRACK_CASE:READ+EDIT']"
:delete-permission="['PROJECT_TRACK_CASE:READ+DELETE']"
@editClick="handleEdit(scope.row)"
@deleteClick="handleDelete(scope.row)">
<template v-slot:middle>

View File

@ -1,7 +1,7 @@
<template>
<el-card class="table-card" v-loading="result.loading">
<template v-slot:header>
<ms-table-header v-permission="['PROJECT_TRACK_PLAN:READ+CREATE']" :condition.sync="condition"
<ms-table-header :create-permission="['PROJECT_TRACK_PLAN:READ+CREATE']" :condition.sync="condition"
@search="initTableData" @create="testPlanCreate"
:create-tip="$t('test_track.plan.create_plan')"
:title="$t('test_track.plan.test_plan')"
@ -184,7 +184,8 @@
<header-label-operate @exec="customHeader"/>
</template>
<template v-slot:default="scope">
<ms-table-operator v-permission="['PROJECT_TRACK_PLAN:READ+EDIT', 'PROJECT_TRACK_PLAN:READ+DELETE']"
<ms-table-operator :edit-permission="['PROJECT_TRACK_PLAN:READ+EDIT']"
:delete-permission="['PROJECT_TRACK_PLAN:READ+DELETE']"
@editClick="handleEdit(scope.row)"
@deleteClick="handleDelete(scope.row)">
<template v-slot:middle>

View File

@ -1,7 +1,7 @@
<template>
<el-card class="table-card" v-loading="result.loading">
<template v-slot:header>
<ms-table-header v-permission="['PROJECT_TRACK_REVIEW:READ+CREATE']" :condition.sync="condition"
<ms-table-header :create-permission="['PROJECT_TRACK_REVIEW:READ+CREATE']" :condition.sync="condition"
@search="initTableData" @create="testCaseReviewCreate"
:create-tip="$t('test_track.review.create_review')"
:title="$t('test_track.review.test_review')"/>
@ -95,7 +95,8 @@
<header-label-operate @exec="customHeader"/>
</template>
<template v-slot:default="scope">
<ms-table-operator v-permission="['PROJECT_TRACK_REVIEW:READ+EDIT', 'PROJECT_TRACK_REVIEW:READ+DELETE']"
<ms-table-operator :edit-permission="['PROJECT_TRACK_REVIEW:READ+EDIT']"
:delete-permission="['PROJECT_TRACK_REVIEW:READ+DELETE']"
@editClick="handleEdit(scope.row)"
@deleteClick="handleDelete(scope.row)">
</ms-table-operator>