/** * ASL模块布局组件 * * 左侧导航栏 + 右侧内容区 * 参考原型:AI智能文献-标题摘要初筛原型.html */ import { Layout, Menu } from 'antd'; import { Outlet, useNavigate, useLocation } from 'react-router-dom'; import { FileTextOutlined, SearchOutlined, FolderOpenOutlined, FilterOutlined, FileSearchOutlined, DatabaseOutlined, BarChartOutlined, SettingOutlined, CheckSquareOutlined, UnorderedListOutlined, } from '@ant-design/icons'; import type { MenuProps } from 'antd'; const { Sider, Content } = Layout; type MenuItem = Required['items'][number]; const ASLLayout = () => { const navigate = useNavigate(); const location = useLocation(); // 菜单项配置 const menuItems: MenuItem[] = [ { key: 'research-plan', icon: , label: '1. 研究方案生成', disabled: true, title: '敬请期待' }, { key: 'literature-search', icon: , label: '2. 智能文献检索', disabled: true, title: '敬请期待' }, { key: 'literature-management', icon: , label: '3. 文献管理', disabled: true, title: '敬请期待' }, { key: 'title-screening', icon: , label: '4. 标题摘要初筛', children: [ { key: '/literature/screening/title/settings', icon: , label: '设置与启动', }, { key: '/literature/screening/title/workbench', icon: , label: '审核工作台', }, { key: '/literature/screening/title/results', icon: , label: '初筛结果', }, ], }, { key: 'fulltext-screening', icon: , label: '5. 全文复筛', disabled: true, title: '敬请期待' }, { key: 'data-extraction', icon: , label: '6. 全文解析与数据提取', disabled: true, title: '敬请期待' }, { key: 'data-analysis', icon: , label: '7. 数据综合分析与报告', disabled: true, title: '敬请期待' }, ]; // 处理菜单点击 const handleMenuClick: MenuProps['onClick'] = ({ key }) => { if (key.startsWith('/')) { navigate(key); } }; // 获取当前选中的菜单项和展开的子菜单 const currentPath = location.pathname; const selectedKeys = [currentPath]; const openKeys = currentPath.includes('screening/title') ? ['title-screening'] : []; return ( {/* 左侧导航栏 */}

AI智能文献

标题摘要初筛 MVP

{/* 右侧内容区 */} ); }; export default ASLLayout;