formatted
This commit is contained in:
@@ -2,346 +2,346 @@ import { AirlineSeatReclineNormal, Assessment, Repartition, Security, SpaceDashb
|
||||
|
||||
export const pageMenu = [
|
||||
{
|
||||
id: 'dashboard',
|
||||
label: 'پیشخوان',
|
||||
id: "dashboard",
|
||||
label: "پیشخوان",
|
||||
type: "page",
|
||||
route: "/dashboard",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'userManagement',
|
||||
label: 'مدیریت کاربران',
|
||||
id: "userManagement",
|
||||
label: "مدیریت کاربران",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/user_management",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'projectsManagment',
|
||||
label: 'پروژه های راهداری',
|
||||
id: "projectsManagment",
|
||||
label: "پروژه های راهداری",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'projectsManagmentFinance',
|
||||
label: 'ثبت قرارداد و پروژه',
|
||||
id: "projectsManagmentFinance",
|
||||
label: "ثبت قرارداد و پروژه",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/finance",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'projectsManagmentList',
|
||||
label: 'لیست پروژه ها',
|
||||
id: "projectsManagmentList",
|
||||
label: "لیست پروژه ها",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/projects_list",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'projectsManagmentProposal',
|
||||
label: 'پروژه های پیشنهادی',
|
||||
id: "projectsManagmentProposal",
|
||||
label: "پروژه های پیشنهادی",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/proposal",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'projectsManagmentLawmaker',
|
||||
label: 'درخواست نمایندگان',
|
||||
id: "projectsManagmentLawmaker",
|
||||
label: "درخواست نمایندگان",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/lawmakers",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'projectsManagmentMap',
|
||||
label: 'پراکندگی بر روی نقشه',
|
||||
id: "projectsManagmentMap",
|
||||
label: "پراکندگی بر روی نقشه",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=rahdari_projects",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'roadItemManagment',
|
||||
label: 'فعالیت های روزانه',
|
||||
id: "roadItemManagment",
|
||||
label: "فعالیت های روزانه",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'roadItemManagmentSupervisor',
|
||||
label: 'ارزیابی',
|
||||
id: "roadItemManagmentSupervisor",
|
||||
label: "ارزیابی",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'roadItemManagmentSupervisorCartable',
|
||||
label: 'کارتابل',
|
||||
id: "roadItemManagmentSupervisorCartable",
|
||||
label: "کارتابل",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/supervisor/cartable",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'roadItemManagmentOparation',
|
||||
label: 'عملیات',
|
||||
id: "roadItemManagmentOparation",
|
||||
label: "عملیات",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'roadItemManagmentOparationCreate',
|
||||
label: 'ثبت فعالیت',
|
||||
id: "roadItemManagmentOparationCreate",
|
||||
label: "ثبت فعالیت",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/operator/create",
|
||||
},
|
||||
{
|
||||
id: 'roadItemManagmentOparationCartable',
|
||||
label: 'کارتابل',
|
||||
id: "roadItemManagmentOparationCartable",
|
||||
label: "کارتابل",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/operator/cartable",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'roadItemManagmentMap',
|
||||
label: 'پراکندگی بر روی نقشه',
|
||||
id: "roadItemManagmentMap",
|
||||
label: "پراکندگی بر روی نقشه",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_items",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'roadItemManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
id: "roadItemManagmentReport",
|
||||
label: "گزارش ها",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/report",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'roadPatrolManagment',
|
||||
label: 'گشت راهداری و ترابری',
|
||||
id: "roadPatrolManagment",
|
||||
label: "گشت راهداری و ترابری",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'roadPatrolManagmentSupervisor',
|
||||
label: 'ارزیابی',
|
||||
id: "roadPatrolManagmentSupervisor",
|
||||
label: "ارزیابی",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'roadPatrolManagmentSupervisorCartable',
|
||||
label: 'کارتابل',
|
||||
id: "roadPatrolManagmentSupervisorCartable",
|
||||
label: "کارتابل",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/road_patrols/supervisor/cartable",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'roadPatrolManagmentOparation',
|
||||
label: 'عملیات',
|
||||
id: "roadPatrolManagmentOparation",
|
||||
label: "عملیات",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'roadPatrolManagmentOparationCreate',
|
||||
label: 'ثبت اقدام',
|
||||
id: "roadPatrolManagmentOparationCreate",
|
||||
label: "ثبت اقدام",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/operator/create",
|
||||
},
|
||||
{
|
||||
id: 'roadPatrolManagmentOparationCartable',
|
||||
label: 'کارتابل',
|
||||
id: "roadPatrolManagmentOparationCartable",
|
||||
label: "کارتابل",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/operator/cartable",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'roadPatrolManagmentMap',
|
||||
label: 'پراکندگی بر روی نقشه',
|
||||
id: "roadPatrolManagmentMap",
|
||||
label: "پراکندگی بر روی نقشه",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_patrols",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'roadPatrolManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
id: "roadPatrolManagmentReport",
|
||||
label: "گزارش ها",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/report",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'safetyAndPrivacyManagment',
|
||||
label: 'نگهداری حریم راه',
|
||||
id: "safetyAndPrivacyManagment",
|
||||
label: "نگهداری حریم راه",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'safetyAndPrivacyManagmentOparation',
|
||||
label: 'عملیات',
|
||||
id: "safetyAndPrivacyManagmentOparation",
|
||||
label: "عملیات",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'safetyAndPrivacyManagmentOparationCreate',
|
||||
label: 'ثبت فعالیت',
|
||||
id: "safetyAndPrivacyManagmentOparationCreate",
|
||||
label: "ثبت فعالیت",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/safety_and_privacy/operator/first_step",
|
||||
},
|
||||
{
|
||||
id: 'safetyAndPrivacyManagmentOparationCartable',
|
||||
label: 'کارتابل',
|
||||
id: "safetyAndPrivacyManagmentOparationCartable",
|
||||
label: "کارتابل",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/safety_and_privacy/operator/cartable",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'safetyAndPrivacyManagmentMap',
|
||||
label: 'پراکندگی بر روی نقشه',
|
||||
id: "safetyAndPrivacyManagmentMap",
|
||||
label: "پراکندگی بر روی نقشه",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=safety_and_privacy",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'safetyAndPrivacyManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
id: "safetyAndPrivacyManagmentReport",
|
||||
label: "گزارش ها",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/safety_and_privacy/report",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'roadObservationsManagment',
|
||||
label: 'واکنش سریع',
|
||||
id: "roadObservationsManagment",
|
||||
label: "واکنش سریع",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'roadObservationsManagmentSupervisor',
|
||||
label: 'ارزیابی',
|
||||
id: "roadObservationsManagmentSupervisor",
|
||||
label: "ارزیابی",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'roadObservationsManagmentSupervisorCartable',
|
||||
label: 'کارتابل',
|
||||
id: "roadObservationsManagmentSupervisorCartable",
|
||||
label: "کارتابل",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/supervisor/cartable",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'roadObservationsManagmentList',
|
||||
label: 'رسیدگی به شکایات',
|
||||
id: "roadObservationsManagmentList",
|
||||
label: "رسیدگی به شکایات",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'roadObservationsManagmentOparation',
|
||||
label: 'عملیات',
|
||||
id: "roadObservationsManagmentOparation",
|
||||
label: "عملیات",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'roadObservationsManagmentOparationCartable',
|
||||
label: 'کارتابل',
|
||||
id: "roadObservationsManagmentOparationCartable",
|
||||
label: "کارتابل",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/operator/cartable",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'roadObservationsManagmentMap',
|
||||
label: 'پراکندگی بر روی نقشه',
|
||||
id: "roadObservationsManagmentMap",
|
||||
label: "پراکندگی بر روی نقشه",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_observations",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'roadObservationsManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
id: "roadObservationsManagmentReport",
|
||||
label: "گزارش ها",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/report/index",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'winterCampManagment',
|
||||
label: 'قرارگاه زمستانی',
|
||||
id: "winterCampManagment",
|
||||
label: "قرارگاه زمستانی",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'winterCampManagmentBlocking',
|
||||
label: 'محور های انسدادی',
|
||||
id: "winterCampManagmentBlocking",
|
||||
label: "محور های انسدادی",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/winter_camp",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'winterCampManagmentFirstRing',
|
||||
label: 'محور های حلقه اول',
|
||||
id: "winterCampManagmentFirstRing",
|
||||
label: "محور های حلقه اول",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=camp",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
{
|
||||
id: 'winterCampManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
id: "winterCampManagmentReport",
|
||||
label: "گزارش ها",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=campNew",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'receiptManagment',
|
||||
label: 'خسارات وارده بر ابنیه فنی و تاسیسات راه',
|
||||
id: "receiptManagment",
|
||||
label: "خسارات وارده بر ابنیه فنی و تاسیسات راه",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'receiptManagmentOparation',
|
||||
label: 'عملیات',
|
||||
id: "receiptManagmentOparation",
|
||||
label: "عملیات",
|
||||
type: "menu",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
hasSubitems: true,
|
||||
Subitems: [
|
||||
{
|
||||
id: 'receiptManagmentOparationCartable',
|
||||
label: 'کارتابل',
|
||||
id: "receiptManagmentOparationCartable",
|
||||
label: "کارتابل",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/receipt",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'receiptManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
id: "receiptManagmentReport",
|
||||
label: "گزارش ها",
|
||||
type: "page",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/receipt/report",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
|
||||
},
|
||||
]
|
||||
}
|
||||
],
|
||||
},
|
||||
// {
|
||||
// id: "hello",
|
||||
// type: "menu",
|
||||
@@ -383,4 +383,4 @@ export const pageMenu = [
|
||||
// hasSubitems: true,
|
||||
// showSubitems: false
|
||||
// },
|
||||
]
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user