refactor(权限管理): 权限设置
This commit is contained in:
parent
b88ce3007d
commit
6a83f5c450
|
@ -33,9 +33,10 @@
|
|||
class="setting-item">
|
||||
{{ $t(menu.title) }}
|
||||
</el-menu-item>
|
||||
<el-submenu index="3-1">
|
||||
<el-submenu index="3-1"
|
||||
v-permission="['WORKSPACE_TEMPLATE:READ+CASE_TEMPLATE', 'WORKSPACE_TEMPLATE:READ+ISSUE_TEMPLATE', 'WORKSPACE_TEMPLATE:READ+CUSTOM', 'WORKSPACE_TEMPLATE:READ+REPORT_TEMPLATE']">
|
||||
<template slot="title">模板管理</template>
|
||||
<el-menu-item v-for="menu in workspaceTemplate" :key="menu.index" :index="menu.index" class="setting-item">
|
||||
<el-menu-item v-for="menu in workspaceTemplate" v-permission="menu.permissions" :key="menu.index" :index="menu.index" class="setting-item">
|
||||
{{ $t(menu.title) }}
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
|
|
|
@ -25,17 +25,17 @@ export default {
|
|||
{
|
||||
path: 'workspace/template/field',
|
||||
component: () => import('@/business/components/settings/workspace/template/CustomFieldList'),
|
||||
meta: {workspaceTemplate: true, title: 'custom_field.name', permissions: ['WORKSPACE_TEMPLATE:READ']},
|
||||
meta: {workspaceTemplate: true, title: 'custom_field.name', permissions: ['WORKSPACE_TEMPLATE:READ+CUSTOM']},
|
||||
},
|
||||
{
|
||||
path: 'workspace/template/case',
|
||||
component: () => import('@/business/components/settings/workspace/template/TestCaseTemplateList'),
|
||||
meta: {workspaceTemplate: true, title: '用例模板', permissions: ['WORKSPACE_TEMPLATE:READ']},
|
||||
meta: {workspaceTemplate: true, title: '用例模板', permissions: ['WORKSPACE_TEMPLATE:READ+CASE_TEMPLATE']},
|
||||
},
|
||||
{
|
||||
path: 'workspace/template/issues',
|
||||
component: () => import('@/business/components/settings/workspace/template/IssuesTemplateList'),
|
||||
meta: {workspaceTemplate: true, title: '缺陷模板', permissions: ['WORKSPACE_TEMPLATE:READ']},
|
||||
meta: {workspaceTemplate: true, title: '缺陷模板', permissions: ['WORKSPACE_TEMPLATE:READ+ISSUE_TEMPLATE']},
|
||||
},
|
||||
{
|
||||
path: 'workspace/template/report',
|
||||
|
@ -44,7 +44,7 @@ export default {
|
|||
meta: {
|
||||
workspaceTemplate: true,
|
||||
title: 'test_track.plan_view.report_template',
|
||||
permissions: ['WORKSPACE_TEMPLATE:READ']
|
||||
permissions: ['WORKSPACE_TEMPLATE:READ+REPORT_TEMPLATE']
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue