import { MyPageContainer } from '@/common'; import { Apis } from '@/gen/Apis'; import { ProCard } from '@ant-design/pro-components'; import { useParams } from '@umijs/max'; import { Tabs } from 'antd'; import { useEffect, useState } from 'react'; import ComponentsInfo from './components/ComponentsInfo'; import Organizations from './components/Organizations'; import Positions from './components/Positions'; import Projects from './components/Projects'; export default function Show({ title = '机构详情' }) { const { id } = useParams<{ id: string }>(); const [data, setShow] = useState({}); const loadShow = () => { let paramsId: any = { id: id ?? 0 }; Apis.Company.Companies.Show(paramsId).then((res) => { setShow(res?.data); }); }; useEffect(() => { loadShow(); }, [id]); let items = [ { label: '基本信息', key: '1', closable: false, children: loadShow()} />, }, { label: '项目管理', key: '2', closable: false, children: , }, { label: '组织管理', key: '3', closable: false, children: , }, { label: '员工管理', key: '4', closable: false, // children: , }, { label: '岗位管理', key: '5', closable: false, children: , }, ]; return ( ); }