lobster-menu-definitions.js 5.1 KB

1234567891011121314151617181920212223242526272829
  1. /** Shared lobster menu definitions for tenant DB sync and master tenant_sys_menu template sync */
  2. module.exports.LOBSTER_MENUS = [
  3. { id: 29900, name: '数字员工', parent: 0, order: 100, path: '/lobster', component: '', type: 'M', icon: 'el-icon-cpu', visible: '0', perms: null },
  4. { id: 32481, name: '工作流模板库', parent: 29900, order: 1, path: 'workflowLobster', component: 'company/workflowLobster/index', type: 'C', icon: 'el-icon-share', visible: '0', perms: 'workflow:lobster:edit' },
  5. { id: 29949, name: '工作流执行任务', parent: 29900, order: 3, path: 'workflow-execution', component: 'lobster/workflow-execution/index', type: 'C', icon: 'el-icon-guide', visible: '0', perms: 'workflow:lobster:edit' },
  6. { id: 29905, name: '实例监控', parent: 29900, order: 5, path: 'instance', component: 'lobster/instance/index', type: 'C', icon: 'el-icon-monitor', visible: '0', perms: 'workflow:lobster:query' },
  7. { id: 29907, name: '提示词管理', parent: 29900, order: 6, path: 'prompt', component: 'lobster/prompt/index', type: 'C', icon: 'el-icon-edit', visible: '0', perms: 'workflow:lobster:prompt' },
  8. { id: 29925, name: '敏感词库', parent: 29900, order: 8, path: 'sensitive-words', component: 'lobster/sensitive-words/index', type: 'C', icon: 'el-icon-warning', visible: '0', perms: 'workflow:lobster:replace' },
  9. { id: 29963, name: '违禁词库', parent: 29900, order: 9, path: 'forbidden-words', component: 'lobster/replace-words/index', type: 'C', icon: 'el-icon-warning', visible: '0', perms: 'workflow:lobster:replace' },
  10. { id: 29964, name: '易错词库', parent: 29900, order: 10, path: 'typo-words', component: 'lobster/replace-words/index', type: 'C', icon: 'el-icon-edit', visible: '0', perms: 'workflow:lobster:replace' },
  11. { id: 29948, name: '会话摘要', parent: 29900, order: 11, path: 'conversation-summary', component: 'lobster/conversation-summary/index', type: 'C', icon: 'el-icon-document-copy', visible: '1', perms: 'workflow:lobster:summary' },
  12. { id: 29922, name: '用户画像配置', parent: 29900, order: 13, path: 'profile-config', component: 'lobster/profile-config/index', type: 'C', icon: 'el-icon-user', visible: '1', perms: 'workflow:lobster:profile' },
  13. { id: 29950, name: '客户画像', parent: 29900, order: 14, path: 'profile', component: 'lobster/profile/hub', type: 'C', icon: 'el-icon-user', visible: '0', perms: 'workflow:lobster:profile' },
  14. { id: 29944, name: '渠道配置', parent: 29900, order: 15, path: 'channel-config', component: 'lobster/channel-config/index', type: 'C', icon: 'el-icon-connection', visible: '0', perms: 'workflow:lobster:channel' },
  15. { id: 29936, name: '渠道插件', parent: 29900, order: 16, path: 'channel-plugin', component: 'lobster/channel-plugin/index', type: 'C', icon: 'el-icon-connection', visible: '1', perms: 'workflow:lobster:channel' },
  16. { id: 29934, name: '角色设定', parent: 29900, order: 18, path: 'identity-config', component: 'lobster/identity-config/index', type: 'C', icon: 'el-icon-view', visible: '0', perms: 'workflow:lobster:identity' },
  17. { id: 29933, name: '语义关键词', parent: 29900, order: 19, path: 'semantic-keywords', component: 'lobster/semantic-keywords/index', type: 'C', icon: 'el-icon-key', visible: '0', perms: 'workflow:lobster:semantic' },
  18. { id: 29909, name: '接口注册中心', parent: 29900, order: 22, path: 'api-registry', component: 'lobster/api-registry/index', type: 'C', icon: 'el-icon-nested', visible: '0', perms: 'workflow:lobster:api' },
  19. { id: 29908, name: '销冠语料学习', parent: 29900, order: 23, path: 'sales-corpus', component: 'lobster/sales-corpus/index', type: 'C', icon: 'el-icon-star', visible: '0', perms: 'workflow:lobster:corpus' },
  20. { id: 29912, name: '聚合聊天', parent: 29900, order: 24, path: 'chat-aggregate', component: 'lobster/chat-aggregate/index', type: 'C', icon: 'el-icon-chat-dot-round', visible: '0', perms: 'workflow:lobster:chat' },
  21. { id: 29906, name: '话术优化审核', parent: 29900, order: 26, path: 'optimization', component: 'lobster/optimization/index', type: 'C', icon: 'el-icon-eye-open', visible: '0', perms: 'workflow:lobster:optimize' },
  22. { id: 3008, name: '动态节点审批', parent: 29900, order: 27, path: 'dynamic-impl', component: 'lobster/dynamic-impl/index', type: 'C', icon: 'el-icon-connection', visible: '0', perms: 'workflow:lobster:audit' },
  23. { id: 29951, name: '向量知识库', parent: 29900, order: 33, path: 'qdrant', component: 'lobster/qdrant/index', type: 'C', icon: 'el-icon-collection', visible: '0', perms: 'workflow:lobster:query' },
  24. { id: 29920, name: '模拟聊天测试', parent: 29900, order: 32, path: 'chat-test', component: 'lobster/chat-test/index', type: 'C', icon: 'el-icon-chat-dot-square', visible: '0', perms: 'workflow:lobster:test' },
  25. { id: 29926, name: '节点详情', parent: 29900, order: 99, path: 'node-detail', component: 'lobster/node-detail/index', type: 'C', icon: 'el-icon-document', visible: '1', perms: 'workflow:lobster:query' }
  26. ]
  27. /** Sales-side template excludes admin-only menus */
  28. module.exports.TENANT_COMPANY_MENU_EXCLUDE = new Set([29933, 29936, 29938, 29944, 29947])