refactor: 菜单权限与提示修改
This commit is contained in:
parent
816b5f4031
commit
52815a1266
|
@ -8,10 +8,7 @@
|
|||
@select="handleSelect"
|
||||
:key="menuKey"
|
||||
router>
|
||||
<el-menu-item index="/workstation" v-if="hasLicense() && check('workstation')">
|
||||
{{ $t('commons.my_workstation') }}
|
||||
</el-menu-item>
|
||||
<el-menu-item v-if="!hasLicense()" @click="clickPlanMenu">
|
||||
<el-menu-item index="/workstation" v-xpack v-if="check('workstation')">
|
||||
{{ $t('commons.my_workstation') }}
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/track" v-if="check('testTrack')" onselectstart="return false"
|
||||
|
@ -22,10 +19,13 @@
|
|||
v-permission="['PROJECT_API_DEFINITION:READ','PROJECT_API_SCENARIO:READ','PROJECT_API_REPORT:READ']">
|
||||
{{ $t('commons.api') }}
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/ui" @click="active()" v-if="check('ui')" onselectstart="return false"
|
||||
<el-menu-item index="/ui" @click="active()" v-if="hasLicense() && check('ui')" onselectstart="return false"
|
||||
v-permission="['PROJECT_API_DEFINITION:READ','PROJECT_API_SCENARIO:READ','PROJECT_API_REPORT:READ']">
|
||||
{{ $t('commons.ui') }}
|
||||
</el-menu-item>
|
||||
<el-menu-item v-if="!hasLicense()" @click="clickPlanMenu">
|
||||
{{ $t('commons.ui') }}
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/performance" v-if="check('performance')"
|
||||
onselectstart="return false"
|
||||
v-permission="['PROJECT_PERFORMANCE_TEST:READ','PROJECT_PERFORMANCE_REPORT:READ']">
|
||||
|
@ -138,7 +138,7 @@ export default {
|
|||
this.$message({
|
||||
dangerouslyUseHTMLString: true,
|
||||
showClose: true,
|
||||
message: this.$t('commons.enterprise_edition_tips'),
|
||||
message: this.$t('commons.ui_edition_tips'),
|
||||
});
|
||||
return false;
|
||||
},
|
||||
|
|
|
@ -40,10 +40,7 @@
|
|||
<el-menu-item :index="'/project/log'" popper-class="submenu" v-permission="['PROJECT_OPERATING_LOG:READ']">
|
||||
{{ $t('project.log') }}
|
||||
</el-menu-item>
|
||||
<el-menu-item v-if="hasLicense()" :index="'/project/version'" v-permission="['PROJECT_VERSION:READ']">
|
||||
{{ $t('project.version_manage') }}
|
||||
</el-menu-item>
|
||||
<el-menu-item v-else v-permission="['PROJECT_VERSION:READ']" @click="clickPlanMenu">
|
||||
<el-menu-item v-xpack :index="'/project/version'" v-permission="['PROJECT_VERSION:READ']">
|
||||
{{ $t('project.version_manage') }}
|
||||
</el-menu-item>
|
||||
<el-menu-item :index="'/project/app'" popper-class="submenu"
|
||||
|
|
|
@ -418,6 +418,7 @@ export default {
|
|||
open_source_version: "OPEN-SOURCE",
|
||||
function_planning: "The function is being planned...",
|
||||
enterprise_edition_tips: "This is an enterprise edition feature, <a href='https://metersphere.io/enterprise.html' target='_blank'>please consult for details</a>",
|
||||
ui_edition_tips: "UI automation is an enterprise version function, you can apply for a trial on the official website",
|
||||
system_data: "System Data",
|
||||
system_user: "User",
|
||||
system_workspace: "Workspace",
|
||||
|
|
|
@ -419,6 +419,7 @@ export default {
|
|||
open_source_version: "开源版",
|
||||
function_planning: "功能正在规划中...",
|
||||
enterprise_edition_tips: "此功能为企业版功能,<a href='https://metersphere.io/enterprise.html' target='_blank'>详情请咨询</a>",
|
||||
ui_edition_tips: "UI自动化为企业版功能,可在官网申请试用",
|
||||
system_data: "系统数据",
|
||||
system_user: "系统用户",
|
||||
system_workspace: "工作空间",
|
||||
|
|
|
@ -419,6 +419,7 @@ export default {
|
|||
open_source_version: "開源版",
|
||||
function_planning: "功能正在規劃中...",
|
||||
enterprise_edition_tips: "此功能為企業版功能,<a href='https://metersphere.io/enterprise.html' target='_blank'>詳情請諮詢</a>",
|
||||
ui_edition_tips: "UI自動化為企業版功能,可在官網申請試用",
|
||||
system_data: "系統數據",
|
||||
system_user: "系統用戶",
|
||||
system_workspace: "工作空間",
|
||||
|
|
Loading…
Reference in New Issue