fix(系统设置): 项目设置菜单权限控制
--bug=1015855 --user=李玉号 【系统设置】报表统计,没有报表 / 报告权限,但是会显示二级菜单 https://www.tapd.cn/55049933/s/1233816
This commit is contained in:
parent
baa8cc27a3
commit
af7d10a8bb
|
@ -61,8 +61,13 @@
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
|
|
||||||
<el-menu-item index="/project" onselectstart="return false"
|
<el-menu-item index="/project" onselectstart="return false"
|
||||||
v-permission="['PROJECT_USER:READ', 'PROJECT_ENVIRONMENT:READ', 'PROJECT_OPERATING_LOG:READ', 'PROJECT_FILE:READ+JAR', 'PROJECT_FILE:READ+FILE',
|
v-permission="['PROJECT_USER:READ', 'PROJECT_MANAGER:READ',
|
||||||
'PROJECT_CUSTOM_CODE:READ','PROJECT_ERROR_REPORT_LIBRARY:READ', 'PROJECT_TEMPLATE:READ', 'PROJECT_MESSAGE:READ']">
|
'PROJECT_GROUP:READ', 'PROJECT_FILE:READ', 'PROJECT_VERSION:READ',
|
||||||
|
'PROJECT_APP_MANAGER:READ+EDIT',
|
||||||
|
'PROJECT_ENVIRONMENT:READ', 'PROJECT_OPERATING_LOG:READ',
|
||||||
|
'PROJECT_FILE:READ+JAR', 'PROJECT_FILE:READ+FILE',
|
||||||
|
'PROJECT_CUSTOM_CODE:READ','PROJECT_ERROR_REPORT_LIBRARY:READ',
|
||||||
|
'PROJECT_TEMPLATE:READ', 'PROJECT_MESSAGE:READ']">
|
||||||
<div>
|
<div>
|
||||||
<svg-icon iconClass="project" class-name="ms-menu-img"/>
|
<svg-icon iconClass="project" class-name="ms-menu-img"/>
|
||||||
<span slot="title" class="ms-menu-item-title">{{ $t('commons.project_setting') }}</span>
|
<span slot="title" class="ms-menu-item-title">{{ $t('commons.project_setting') }}</span>
|
||||||
|
|
|
@ -463,13 +463,13 @@ export default {
|
||||||
tip: this.$t('commons.copy'),
|
tip: this.$t('commons.copy'),
|
||||||
icon: "el-icon-copy-document",
|
icon: "el-icon-copy-document",
|
||||||
exec: this.handleCopy,
|
exec: this.handleCopy,
|
||||||
permission: ['PROJECT_TRACK_PLAN:READ+COPY']
|
permissions: ['PROJECT_TRACK_PLAN:READ+COPY']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tip: this.$t('test_track.plan_view.view_report'),
|
tip: this.$t('test_track.plan_view.view_report'),
|
||||||
icon: "el-icon-s-data",
|
icon: "el-icon-s-data",
|
||||||
exec: this.openReport,
|
exec: this.openReport,
|
||||||
permission: ['PROJECT_TRACK_PLAN:READ+EDIT']
|
permissions: ['PROJECT_TRACK_PLAN:READ+EDIT']
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
batchExecuteType: "serial",
|
batchExecuteType: "serial",
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-button icon="el-icon-download" :disabled="!isTestManagerOrTestUser" plain size="mini" @click="handleExportHtml()">
|
<el-button icon="el-icon-download" :disabled="!isTestManagerOrTestUser"
|
||||||
|
v-permission="['PROJECT_TRACK_REPORT:READ+EXPORT']" plain size="mini" @click="handleExportHtml()">
|
||||||
{{ $t('commons.export')}}
|
{{ $t('commons.export')}}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
|
@ -196,7 +196,7 @@ export default {
|
||||||
{
|
{
|
||||||
name: this.$t('api_test.definition.request.batch_delete'),
|
name: this.$t('api_test.definition.request.batch_delete'),
|
||||||
handleClick: this.handleDeleteBatch,
|
handleClick: this.handleDeleteBatch,
|
||||||
permission: ['PROJECT_TRACK_REPORT:READ+DELETE']
|
permissions: ['PROJECT_TRACK_REPORT:READ+DELETE']
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
selectDataCounts: 0,
|
selectDataCounts: 0,
|
||||||
|
@ -209,7 +209,7 @@ export default {
|
||||||
{
|
{
|
||||||
name: this.$t('api_test.definition.request.batch_delete'),
|
name: this.$t('api_test.definition.request.batch_delete'),
|
||||||
handleClick: this.handleDeleteBatch,
|
handleClick: this.handleDeleteBatch,
|
||||||
permission: ['PROJECT_TRACK_REPORT:READ+DELETE'],
|
permissions: ['PROJECT_TRACK_REPORT:READ+DELETE'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
simpleOperators: [
|
simpleOperators: [
|
||||||
|
|
Loading…
Reference in New Issue