|
|
@@ -134,109 +134,111 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
menuItems: [
|
|
|
- // 全局通用
|
|
|
+ // ===== 1. 首页 (ALL) =====
|
|
|
{ path: '/dashboard', label: '首页', icon: 'el-icon-s-home', perm: 'dashboard' },
|
|
|
|
|
|
- // admin 专属
|
|
|
- { title: '家庭管理', icon: 'el-icon-s-home', perm: 'family:*',
|
|
|
+ // ===== 2. 家庭运营 (admin) =====
|
|
|
+ { title: '家庭运营', icon: 'el-icon-s-custom', perm: 'operation',
|
|
|
children: [
|
|
|
- { path: '/families', label: '家庭列表', icon: 'el-icon-s-home', perm: 'family:list' },
|
|
|
- { path: '/children', label: '孩子管理', icon: 'el-icon-s-custom', perm: 'family:children' },
|
|
|
- { path: '/points', label: '积分管理', icon: 'el-icon-s-money', perm: 'family:points' },
|
|
|
+ { path: '/families', label: '家庭列表', icon: 'el-icon-s-custom', perm: 'family:list' },
|
|
|
+ { path: '/children', label: '孩子管理', icon: 'el-icon-user-solid', perm: 'family:children' },
|
|
|
+ { path: '/points', label: '积分管理', icon: 'el-icon-s-finance', perm: 'family:points' },
|
|
|
+ { path: '/wishes', label: '心愿管理', icon: 'el-icon-star-off', perm: 'family:wishes' },
|
|
|
+ { path: '/rewards', label: '奖励管理', icon: 'el-icon-s-goods', perm: 'reward:list' },
|
|
|
]},
|
|
|
- { title: '任务管理', icon: 'el-icon-s-order', perm: 'task:*',
|
|
|
+
|
|
|
+ // ===== 3. 任务中心 (admin) =====
|
|
|
+ { title: '任务中心', icon: 'el-icon-s-order', perm: 'task:*',
|
|
|
children: [
|
|
|
{ path: '/tasks', label: '任务列表', icon: 'el-icon-s-order', perm: 'task:list' },
|
|
|
{ path: '/task-templates', label: '任务模板', icon: 'el-icon-document', perm: 'task:templates' },
|
|
|
{ path: '/growth-task', label: '成长任务管理', icon: 'el-icon-s-management', perm: 'task:list' },
|
|
|
]},
|
|
|
- { title: '奖励管理', icon: 'el-icon-s-goods', perm: 'reward:*',
|
|
|
- children: [
|
|
|
- { path: '/rewards', label: '奖励列表', icon: 'el-icon-s-goods', perm: 'reward:list' },
|
|
|
- ]},
|
|
|
|
|
|
- // teacher + nutritionist 共享
|
|
|
- { title: '我的家庭', icon: 'el-icon-s-home', perm: 'service:family',
|
|
|
+ // ===== 4. 审核中心 (admin) =====
|
|
|
+ { title: '审核中心', icon: 'el-icon-s-check', perm: 'audit',
|
|
|
children: [
|
|
|
- { path: '/my-families', label: '授权家庭', icon: 'el-icon-s-home', perm: 'service:family' },
|
|
|
+ { path: '/package-audit', label: '套餐审核', icon: 'el-icon-document-checked', perm: 'audit:package' },
|
|
|
+ { path: '/guide-audit', label: '规划师审核', icon: 'el-icon-document-checked', perm: 'audit:guide' },
|
|
|
+ { path: '/vendor-review', label: '服务商审核', icon: 'el-icon-document-checked', perm: 'audit:vendor' },
|
|
|
+ { path: '/withdraw-audit', label: '提现审核', icon: 'el-icon-document-checked', perm: 'audit:withdraw' },
|
|
|
]},
|
|
|
|
|
|
- // teacher 专属
|
|
|
- { path: '/growth-records', label: '成长记录', icon: 'el-icon-document', perm: 'growth:records' },
|
|
|
- { path: '/growth-plans', label: '成长计划', icon: 'el-icon-document', perm: 'growth:plans' },
|
|
|
- { title: '服务管理', icon: 'el-icon-s-home', perm: 'service:*',
|
|
|
- children: [
|
|
|
- { path: '/teacher-families', label: '我的家庭', icon: 'el-icon-s-home', perm: 'service:families' },
|
|
|
- { path: '/teacher-team', label: '我的团队', icon: 'el-icon-s-custom', perm: 'service:team' },
|
|
|
- ]},
|
|
|
- { title: '业务管理', icon: 'el-icon-s-marketing', perm: 'biz:*',
|
|
|
+ // ===== 5. 商城营销 (admin) =====
|
|
|
+ { title: '商城营销', icon: 'el-icon-s-goods', perm: 'commerce',
|
|
|
children: [
|
|
|
- { path: '/teacher-packages', label: '套餐管理', icon: 'el-icon-s-marketing', perm: 'biz:packages' },
|
|
|
- { path: '/teacher-orders', label: '订单佣金', icon: 'el-icon-s-order', perm: 'biz:orders' },
|
|
|
+ { path: '/product-manage', label: '商品管理', icon: 'el-icon-s-goods', perm: 'commerce:products' },
|
|
|
+ { path: '/order-manage', label: '订单管理', icon: 'el-icon-s-order', perm: 'commerce:orders' },
|
|
|
+ { path: '/product-profit-rate', label: '产品利润率', icon: 'el-icon-data-line', perm: 'commerce:profit' },
|
|
|
+ { path: '/coupon', label: '优惠券管理', icon: 'el-icon-ticket', perm: 'marketing:coupon' },
|
|
|
+ { path: '/promotion', label: '推广管理', icon: 'el-icon-s-marketing', perm: 'marketing:promotion' },
|
|
|
+ { path: '/danshop-category', label: 'DanShop分类', icon: 'el-icon-menu', perm: 'danshop:category' },
|
|
|
+ { path: '/danshop-profit-rule', label: 'DanShop分润', icon: 'el-icon-s-finance', perm: 'danshop:profit' },
|
|
|
+ { path: '/danshop-logistics', label: 'DanShop物流', icon: 'el-icon-truck', perm: 'danshop:logistics' },
|
|
|
]},
|
|
|
- { title: '测评管理', icon: 'el-icon-edit', perm: 'assessment:*',
|
|
|
+
|
|
|
+ // ===== 6. 内容中心 (admin + article_manager + activity_manager) =====
|
|
|
+ { title: '内容中心', icon: 'el-icon-document', perm: 'content',
|
|
|
children: [
|
|
|
- { path: '/teacher-assessment', label: 'DAN测评', icon: 'el-icon-edit', perm: 'assessment:dan' },
|
|
|
- { path: '/teacher-consult', label: '家长咨询', icon: 'el-icon-chat-dot-round', perm: 'assessment:consult' },
|
|
|
+ { path: '/article-categories', label: '文章分类', icon: 'el-icon-folder', perm: 'articles:categories' },
|
|
|
+ { path: '/article-manage', label: '文章管理', icon: 'el-icon-document', perm: 'articles:manage' },
|
|
|
+ { path: '/activities', label: '活动列表', icon: 'el-icon-date', perm: 'activity:list' },
|
|
|
+ { path: '/activity-review', label: '活动审核', icon: 'el-icon-document-checked', perm: 'activity:review' },
|
|
|
]},
|
|
|
- { path: '/teacher-messages', label: '消息中心', icon: 'el-icon-chat-dot-round', perm: 'messages' },
|
|
|
|
|
|
- // nutritionist 专属
|
|
|
- { title: '健康档案', icon: 'el-icon-document', perm: 'health:*',
|
|
|
+ // ===== 7. 健康饮食 (admin + nutritionist) =====
|
|
|
+ { title: '健康饮食', icon: 'el-icon-first-aid-kit', perm: 'health',
|
|
|
children: [
|
|
|
{ path: '/health-reports', label: '健康报告', icon: 'el-icon-document', perm: 'health:reports' },
|
|
|
{ path: '/health-indicators', label: '健康指标', icon: 'el-icon-data-line', perm: 'health:indicators' },
|
|
|
{ path: '/health-checkins', label: '健康打卡', icon: 'el-icon-s-order', perm: 'health:checkins' },
|
|
|
{ path: '/nutrition-mappings', label: '营养素映射', icon: 'el-icon-connection', perm: 'health:mappings' },
|
|
|
+ { path: '/energy-sandbox', label: '五维能量', icon: 'el-icon-data-line', perm: 'energy' },
|
|
|
+ { path: '/foods', label: '食材管理', icon: 'el-icon-apple', perm: 'diet:foods' },
|
|
|
+ { path: '/recipes', label: '食谱管理', icon: 'el-icon-dish', perm: 'diet:recipes' },
|
|
|
+ { path: '/seasonal-foods', label: '应季食材', icon: 'el-icon-sunny', perm: 'diet:seasonal' },
|
|
|
]},
|
|
|
- { path: '/energy-sandbox', label: '五维能量', icon: 'el-icon-data-line', perm: 'energy' },
|
|
|
|
|
|
- // article_manager 专属
|
|
|
- { title: '文章管理', icon: 'el-icon-document', perm: 'articles:*',
|
|
|
+ // ===== 8. 规划师工作台 (teacher) =====
|
|
|
+ { path: '/teacher-dashboard', label: '工作台', icon: 'el-icon-s-home', perm: 'service:*' },
|
|
|
+ { title: '家庭服务', icon: 'el-icon-s-custom', perm: 'service:*',
|
|
|
children: [
|
|
|
- { path: '/article-categories', label: '文章分类', icon: 'el-icon-document', perm: 'articles:categories' },
|
|
|
- { path: '/article-manage', label: '文章管理', icon: 'el-icon-document', perm: 'articles:manage' },
|
|
|
+ { path: '/my-families', label: '我的家庭', icon: 'el-icon-s-custom', perm: 'service:family' },
|
|
|
+ { path: '/teacher-team', label: '我的团队', icon: 'el-icon-s-custom', perm: 'service:team' },
|
|
|
]},
|
|
|
-
|
|
|
- // activity_manager 专属
|
|
|
- { title: '活动管理', icon: 'el-icon-s-home', perm: 'activity:*',
|
|
|
+ { title: '业务管理', icon: 'el-icon-s-marketing', perm: 'biz:*',
|
|
|
children: [
|
|
|
- { path: '/activities', label: '活动列表', icon: 'el-icon-s-home', perm: 'activity:list' },
|
|
|
- { path: '/activity-review', label: '活动审核', icon: 'el-icon-s-check', perm: 'activity:review' },
|
|
|
+ { path: '/teacher-packages', label: '套餐管理', icon: 'el-icon-s-goods', perm: 'biz:packages' },
|
|
|
+ { path: '/teacher-orders', label: '订单佣金', icon: 'el-icon-s-order', perm: 'biz:orders' },
|
|
|
]},
|
|
|
-
|
|
|
- // diet 管理 (admin)
|
|
|
- { title: '饮食管理', icon: 'el-icon-s-management', perm: 'diet:*',
|
|
|
+ { title: '测评咨询', icon: 'el-icon-edit', perm: 'assessment:*',
|
|
|
children: [
|
|
|
- { path: '/foods', label: '食材管理', icon: 'el-icon-s-management', perm: 'diet:foods' },
|
|
|
- { path: '/recipes', label: '食谱管理', icon: 'el-icon-s-management', perm: 'diet:recipes' },
|
|
|
- { path: '/seasonal-foods', label: '应季食材', icon: 'el-icon-s-management', perm: 'diet:seasonal' },
|
|
|
+ { path: '/teacher-assessment', label: 'DAN测评', icon: 'el-icon-edit', perm: 'assessment:dan' },
|
|
|
+ { path: '/teacher-consult', label: '家长咨询', icon: 'el-icon-chat-dot-round', perm: 'assessment:consult' },
|
|
|
]},
|
|
|
+ { path: '/growth-records', label: '成长记录', icon: 'el-icon-document', perm: 'growth:records' },
|
|
|
+ { path: '/growth-plans', label: '成长计划', icon: 'el-icon-document', perm: 'growth:plans' },
|
|
|
+ { path: '/teacher-messages', label: '消息中心', icon: 'el-icon-chat-dot-round', perm: 'messages' },
|
|
|
|
|
|
- // system 管理 (仅 admin)
|
|
|
- { title: '系统管理', icon: 'el-icon-s-tools', perm: 'system:*',
|
|
|
+ // ===== 9. 系统配置 (admin) =====
|
|
|
+ { title: '系统配置', icon: 'el-icon-s-tools', perm: 'system:*',
|
|
|
children: [
|
|
|
+ { path: '/sys-config', label: '系统配置', icon: 'el-icon-s-tools', perm: 'system:config' },
|
|
|
{ path: '/users', label: '用户管理', icon: 'el-icon-user', perm: 'system:users' },
|
|
|
- { path: '/package-audit', label: '套餐审核', icon: 'el-icon-s-check', perm: 'system:audit' },
|
|
|
- { path: '/guide-audit', label: '规划师审核', icon: 'el-icon-s-check', perm: 'system:audit' },
|
|
|
- { path: '/vendor-review', label: '服务商审核', icon: 'el-icon-s-check', perm: 'system:audit' },
|
|
|
{ path: '/operation-logs', label: '操作日志', icon: 'el-icon-s-order', perm: 'system:logs' },
|
|
|
- { path: '/product-manage', label: '商品管理', icon: 'el-icon-s-goods', perm: 'system:products' },
|
|
|
- { path: '/order-manage', label: '订单管理', icon: 'el-icon-s-order', perm: 'system:orders' },
|
|
|
- { path: '/danshop-category', label: 'DanShop分类', icon: 'el-icon-s-goods', perm: 'system:danshop' },
|
|
|
- { path: '/danshop-profit-rule', label: '分润规则', icon: 'el-icon-s-marketing', perm: 'system:danshop' },
|
|
|
- { path: '/danshop-logistics', label: '物流管理', icon: 'el-icon-s-order', perm: 'system:danshop' },
|
|
|
- { path: '/sys-config', label: '系统配置', icon: 'el-icon-s-tools', perm: 'system:config' },
|
|
|
- { path: '/energy-sandbox', label: '五维能量', icon: 'el-icon-data-line', perm: 'system:energy' },
|
|
|
+ { path: '/dimension-config', label: '维度配置', icon: 'el-icon-data-line', perm: 'system:config' },
|
|
|
+ { path: '/knowledge-base', label: '知识库管理', icon: 'el-icon-reading', perm: 'system:config' },
|
|
|
+ { path: '/relationship-types', label: '关系类型', icon: 'el-icon-share', perm: 'system:config' },
|
|
|
{ path: '/education-systems', label: '教育体系', icon: 'el-icon-s-management', perm: 'system:education' },
|
|
|
+ { path: '/service-types', label: '服务类型', icon: 'el-icon-s-management', perm: 'system:config' },
|
|
|
+ { path: '/service-contents', label: '服务内容', icon: 'el-icon-s-management', perm: 'system:config' },
|
|
|
+ { path: '/package-templates', label: '套餐模板', icon: 'el-icon-s-management', perm: 'system:config' },
|
|
|
+ { path: '/assessment-admin', label: '测评管理', icon: 'el-icon-edit', perm: 'assessment:dan' },
|
|
|
+ { path: '/health-norm-config', label: '健康常模', icon: 'el-icon-data-line', perm: 'system:config' },
|
|
|
+ { path: '/health-data-source', label: '健康数据源', icon: 'el-icon-data-line', perm: 'system:config' },
|
|
|
{ path: '/zodiac-configs', label: '星座配置', icon: 'el-icon-s-management', perm: 'system:config' },
|
|
|
{ path: '/bazi-configs', label: '八字配置', icon: 'el-icon-s-management', perm: 'system:config' },
|
|
|
{ path: '/blood-type-configs', label: '血型配置', icon: 'el-icon-s-management', perm: 'system:config' },
|
|
|
- { path: '/promotion', label: '推广管理', icon: 'el-icon-s-marketing', perm: 'system:promotion' },
|
|
|
- { path: '/coupon', label: '优惠券管理', icon: 'el-icon-s-management', perm: 'system:coupon' },
|
|
|
- { path: '/relationship-types', label: '关系类型', icon: 'el-icon-s-management', perm: 'system:config' },
|
|
|
- { path: '/health-norm-config', label: '健康维度常模', icon: 'el-icon-s-management', perm: 'system:config' },
|
|
|
- { path: '/health-data-source', label: '健康数据源', icon: 'el-icon-s-management', perm: 'system:config' },
|
|
|
]},
|
|
|
],
|
|
|
profileDialogVisible: false,
|