создал структуру страниц наборов линз

This commit is contained in:
Андрей Дувакин 2025-02-20 16:56:21 +05:00
parent 8c9e3a05fa
commit a7e6bb3f59
5 changed files with 55 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import LoginPage from "./pages/LoginPage.jsx";
import MainLayout from "./layouts/MainLayout.jsx"; import MainLayout from "./layouts/MainLayout.jsx";
import PatientsPage from "./pages/PatientsPage.jsx"; import PatientsPage from "./pages/PatientsPage.jsx";
import HomePage from "./pages/HomePage.jsx"; import HomePage from "./pages/HomePage.jsx";
import LensPage from "./pages/LensesPage.jsx"; import LensesLayout from "./layouts/LensesLayout.jsx";
const AppRouter = () => ( const AppRouter = () => (
@ -14,7 +14,7 @@ const AppRouter = () => (
<Route element={<PrivateRoute/>}> <Route element={<PrivateRoute/>}>
<Route element={<MainLayout/>}> <Route element={<MainLayout/>}>
<Route path={"/patients"} element={<PatientsPage/>}/> <Route path={"/patients"} element={<PatientsPage/>}/>
<Route path={"/lenses"} element={<LensPage/>}/> <Route path={"/lenses"} element={<LensesLayout/>}/>
<Route path={"/"} element={<HomePage/>}/> <Route path={"/"} element={<HomePage/>}/>
</Route> </Route>
</Route> </Route>

View File

@ -0,0 +1,44 @@
import {useState, useEffect} from "react";
import {
Input,
Select,
List,
FloatButton,
Row,
Col,
Spin,
Button,
Form,
InputNumber,
Card, Grid, notification, Tabs
} from "antd";
import LensesPage from "../pages/LensesPage.jsx";
import {FolderViewOutlined, SwitcherOutlined} from "@ant-design/icons";
const {Option} = Select;
const items = [
{
key: '1',
label: 'Линзы',
children: <LensesPage/>,
icon: <FolderViewOutlined/>
},
{
key: '2',
label: 'Наборы линз',
children: '1233',
icon: <SwitcherOutlined/>
}
]
const LensesLayout = () => {
return (
<Tabs
defaultActiveKey="1"
items={items}
/>
);
};
export default LensesLayout;

View File

@ -27,7 +27,7 @@ const MainLayout = () => {
getItem("Главная", "/", <HomeOutlined/>), getItem("Главная", "/", <HomeOutlined/>),
getItem("Приёмы", "/appointments", <CalendarOutlined/>), getItem("Приёмы", "/appointments", <CalendarOutlined/>),
getItem("Выдачи линз", "/dispensing", <DatabaseOutlined/>), getItem("Выдачи линз", "/dispensing", <DatabaseOutlined/>),
getItem("Линзы", "/lenses", <FolderViewOutlined/>), getItem("Линзы и наборы", "/lenses", <FolderViewOutlined/>),
getItem("Пациенты", "/patients", <TeamOutlined/>), getItem("Пациенты", "/patients", <TeamOutlined/>),
getItem("Рассылки", "/mailing", <MessageOutlined/>), getItem("Рассылки", "/mailing", <MessageOutlined/>),
{type: "divider"}, {type: "divider"},

View File

@ -0,0 +1,8 @@
const SetLensesPage = () => {
};
export default SetLensesPage;