add data export
This commit is contained in:
@@ -114,6 +114,8 @@ const canManagePermission = computed(() => userStore.hasPermissions([
|
||||
corePermissionCodes.permission.read
|
||||
], "and"));
|
||||
const canManageUser = computed(() => userStore.hasRoles([gaoRoleCodes.globalManager, gaoRoleCodes.storeManager], "or"));
|
||||
const canExportData = computed(() => userStore.hasRoles(gaoRoleCodes.storeManager)
|
||||
&& userStore.hasPermissions(permissionCodes.dataExport.export));
|
||||
const visibleMenuGroupList = computed<MenuGroup[]>(() => menuGroupList.value
|
||||
.map(group => ({
|
||||
...group,
|
||||
@@ -212,6 +214,12 @@ const menuGroupList = computed<MenuGroup[]>(() => [
|
||||
{
|
||||
title: "系统",
|
||||
items: [
|
||||
{
|
||||
icon: "download",
|
||||
path: "/management/data-export",
|
||||
title: "数据导出",
|
||||
visible: canExportData.value
|
||||
},
|
||||
{
|
||||
icon: "setting",
|
||||
path: "/management/settings",
|
||||
|
||||
Reference in New Issue
Block a user