|
@@ -9098,6 +9098,50 @@ private void runMigration100() {
|
|
|
log.info("已插入默认系统提示词");
|
|
log.info("已插入默认系统提示词");
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.warn("插入默认系统提示词失败: " + e.getMessage());
|
|
log.warn("插入默认系统提示词失败: " + e.getMessage());
|
|
|
|
|
+ // 迁移241: 补充 admin_menu 缺失菜单项(对齐 router/index.js 路由)
|
|
|
|
|
+ try {
|
|
|
|
|
+ jdbcTemplate.execute(
|
|
|
|
|
+ "INSERT IGNORE INTO admin_menu (parent_id, name, path, icon, sort_order, perm, component, visible) VALUES " +
|
|
|
|
|
+ // 测评管理子页面
|
|
|
|
|
+ "(95, '测评方案规则', '/assessment-plan-rules', 'el-icon-document', 4, 'plan:rules', 'admin/AssessmentPlanRules', 1), " +
|
|
|
|
|
+ "(95, '测评商品管理', '/assessment-products', 'el-icon-price-tag', 5, 'commerce:products', 'admin/AssessmentProducts', 1), " +
|
|
|
|
|
+ "(64, 'DAN服务执行', '/dan-execution', 'el-icon-s-check', 4, 'assessment:dan', 'admin/DanExecution', 1), " +
|
|
|
|
|
+ "(64, 'DAN结算管理', '/dan-settlement', 'el-icon-money', 5, 'assessment:dan', 'admin/DanSettlement', 1), " +
|
|
|
|
|
+ // 商品相关
|
|
|
|
|
+ "(17, '商品分类', '/category-manage', 'el-icon-c-scale-to-original', 7, 'commerce:category', 'admin/CategoryManage', 1), " +
|
|
|
|
|
+ "(17, '商品编辑', '/product-edit', 'el-icon-edit', 8, 'commerce:products', 'admin/ProductEdit', 1), " +
|
|
|
|
|
+ "(17, '库存入库', '/inventory/inbound-create', 'el-icon-plus', 9, 'commerce:products', 'admin/InventoryInboundCreate', 1), " +
|
|
|
|
|
+ "(20, '订单详情', '/order-detail/:orderNo', 'el-icon-document', 5, 'commerce:orders', 'admin/OrderDetail', 0), " +
|
|
|
|
|
+ // 商城营销扩展
|
|
|
|
|
+ "(16, '方案管理', '/plan-management', 'el-icon-s-operation', 12, 'plan:manage', 'admin/PlanManagement', 1), " +
|
|
|
|
|
+ "(16, 'P点配置', '/product-ppoint', 'el-icon-coins', 13, 'commerce:ppoint', 'admin/ProductPpointManage', 1), " +
|
|
|
|
|
+ // 系统配置扩展
|
|
|
|
|
+ "(79, '能量配置', '/energy-config', 'el-icon-setting', 2, 'system:config', 'admin/energy-config/WuxingConfig', 1), " +
|
|
|
|
|
+ "(79, '指标管理', '/indicators', 'el-icon-data-line', 3, 'system:config', 'admin/indicators', 1), " +
|
|
|
|
|
+ "(69, 'CF值管理', '/cf-value', 'el-icon-document', 9, 'finance:cf-value', 'admin/CfValueManage', 1), " +
|
|
|
|
|
+ "(69, '公告管理', '/notice-manage', 'el-icon-bell', 10, 'admin', 'admin/NoticeManage', 1), " +
|
|
|
|
|
+ "(39, '挑战评分配置', '/challenge-score-config', 'el-icon-trophy', 14, 'energy', 'admin/ChallengeScoreConfig', 1), " +
|
|
|
|
|
+ // 活动管理扩展
|
|
|
|
|
+ "(35, '调研模板管理', '/survey-templates', 'el-icon-document', 4, 'admin:all', 'admin/SurveyTemplates', 1), " +
|
|
|
|
|
+ "(35, 'AI问卷场景配置', '/ai-questionnaire-scenes', 'el-icon-magic-stick', 5, 'admin:all', 'admin/AiQuestionnaireScenes', 1), " +
|
|
|
|
|
+ // 供应商体系子页面
|
|
|
|
|
+ "(82, '新建体系', '/supply-system/create', 'el-icon-plus', 2, 'system:supply', 'admin/supply-system/Form', 0), " +
|
|
|
|
|
+ "(82, '体系详情', '/supply-system/:id', 'el-icon-view', 3, 'system:supply', 'admin/supply-system/Detail', 0), " +
|
|
|
|
|
+ "(82, '编辑体系', '/supply-system/:id/edit', 'el-icon-edit', 4, 'system:supply', 'admin/supply-system/Form', 0), " +
|
|
|
|
|
+ "(84, '新增供应商', '/supply-manage/create', 'el-icon-plus', 2, 'supply:manage', 'admin/supply-manage/Form', 0), " +
|
|
|
|
|
+ "(84, '供应商详情', '/supply-manage/:id', 'el-icon-view', 3, 'supply:manage', 'admin/supply-manage/Detail', 0), " +
|
|
|
|
|
+ "(84, '编辑供应商', '/supply-manage/:id/edit', 'el-icon-edit', 4, 'supply:manage', 'admin/supply-manage/Form', 0), " +
|
|
|
|
|
+ // 服务角色相关
|
|
|
|
|
+ "(58, '规划师生成任务', '/guide-family-task', 'el-icon-s-operation', 3, 'service:families', 'admin/GuideFamilyTask', 1), " +
|
|
|
|
|
+ "(58, '规划师家庭列表', '/teacher-families', 'el-icon-office-building', 4, 'service:family', 'views/teacher/FamilyList', 1), " +
|
|
|
|
|
+ "(58, '规划师消息', '/teacher-messages', 'el-icon-message', 5, 'messages', 'views/teacher/TeacherMessages', 1), " +
|
|
|
|
|
+ "(64, '代上传报告', '/teacher-proxy-report', 'el-icon-upload2', 5, 'health:reports', 'views/teacher/ProxyReport', 1), " +
|
|
|
|
|
+ // 虚拟团队
|
|
|
|
|
+ "(99, '团队详情', '/virtual-team-detail/:systemId', 'el-icon-view', 2, 'system:config', 'admin/VirtualTeamDetail', 0)";
|
|
|
|
|
+ log.info("已补充30条admin_menu缺失菜单项");
|
|
|
|
|
+ } catch (Exception ex) {
|
|
|
|
|
+ log.warn("补充admin_menu菜单项失败: {}", ex.getMessage());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+}
|