diff --git a/src/pages/tabs/ManagementTab.vue b/src/pages/tabs/ManagementTab.vue
index bb2a101..0eee6e8 100644
--- a/src/pages/tabs/ManagementTab.vue
+++ b/src/pages/tabs/ManagementTab.vue
@@ -2,6 +2,7 @@
(() => menuGroupList.value
const menuGroupList = computed(() => [
{
- title: "设置",
+ title: "客户",
+ items: [
+ {
+ icon: "usergroup",
+ path: "/management/customers",
+ title: "客户管理",
+ visible: userStore.hasPermissions(gaoPermissionCodes.customer.read)
+ },
+ {
+ icon: "task",
+ path: "/management/registration-events",
+ title: "登记事件",
+ visible: userStore.hasPermissions([gaoPermissionCodes.registrationEvent.read, gaoPermissionCodes.user.read], "and")
+ },
+ {
+ icon: "history",
+ path: "/management/registration-event-records",
+ title: "登记事件记录",
+ visible: userStore.hasPermissions(gaoPermissionCodes.registrationEventRecord.read)
+ },
+ {
+ icon: "usergroup",
+ path: "/management/customer-data-charts",
+ title: "客户统计数据",
+ visible: userStore.hasPermissions(gaoPermissionCodes.stat.read)
+ },
+ {
+ icon: "chart",
+ path: "/management/data-charts",
+ title: "全局统计数据",
+ visible: userStore.hasPermissions(gaoPermissionCodes.stat.read)
+ }
+ ]
+ },
+ {
+ title: "系统",
items: [
{
icon: "setting",
@@ -104,17 +140,6 @@ const menuGroupList = computed(() => [
path: "/management/permissions",
title: "权限设置",
visible: canManagePermission.value
- }
- ]
- },
- {
- title: "用户与客户",
- items: [
- {
- icon: "usergroup",
- path: "/management/customers",
- title: "客户管理",
- visible: userStore.hasPermissions(gaoPermissionCodes.customer.read)
},
{
icon: "root-list",
@@ -130,40 +155,6 @@ const menuGroupList = computed(() => [
}
]
},
- {
- title: "登记管理",
- items: [
- {
- icon: "task",
- path: "/management/registration-events",
- title: "登记事件",
- visible: userStore.hasPermissions([gaoPermissionCodes.registrationEvent.read, gaoPermissionCodes.user.read], "and")
- },
- {
- icon: "history",
- path: "/management/registration-event-records",
- title: "登记事件记录",
- visible: userStore.hasPermissions(gaoPermissionCodes.registrationEventRecord.read)
- }
- ]
- },
- {
- title: "统计",
- items: [
- {
- icon: "usergroup",
- path: "/management/customer-data-charts",
- title: "客户数据",
- visible: userStore.hasPermissions(gaoPermissionCodes.stat.read)
- },
- {
- icon: "chart",
- path: "/management/data-charts",
- title: "全局数据",
- visible: userStore.hasPermissions(gaoPermissionCodes.stat.read)
- }
- ]
- }
]);
function buildFallbackAvatar(name: string): string {
@@ -195,17 +186,20 @@ async function go(path: string): Promise {
flex-direction: column;
.user-card {
- margin: 0 0 1rem 0;
- .avatar {
- width: 3.5rem;
- height: 3.5rem;
- border-radius: .875rem;
- }
+ .cell {
+ padding: 10px;
- .title {
- gap: .5rem;
- display: flex;
+ .avatar {
+ width: 4rem;
+ height: 4rem;
+ border-radius: .875rem;
+ }
+
+ .title {
+ gap: .5rem;
+ display: flex;
+ }
}
}