生产管理系统前端 - 农事操作管理页面搭建&白天晚上切换
This commit is contained in:
@@ -5,7 +5,7 @@ import {SideBarOld} from '@/components/layouts/SideBar/SideBarOld'
|
||||
import '@/styles/globals.css'
|
||||
import { ThemeProvider } from 'next-themes'
|
||||
import { usePathname } from 'next/navigation'
|
||||
import { Building2, Users, Cog, Activity, Mail, UserCircle, Database, Map, BarChart3, Cloud, TrendingUp, GitCompare, AlertTriangle, FileText, MapPin, Settings, User, Package, Navigation, Zap, Target, PieChart, Calendar, Shield, Tractor, Clipboard, Brain, Droplets } from 'lucide-react'
|
||||
import { Building2, Users, Cog, Activity, Mail, UserCircle, Database, Map, BarChart3, Cloud, TrendingUp, GitCompare, AlertTriangle, FileText, MapPin, Settings, User, Package, Navigation, Zap, Target, PieChart, Calendar, Shield, Tractor, Clipboard, Brain, Droplets, Book } from 'lucide-react'
|
||||
|
||||
const navbarData = {
|
||||
logo: {
|
||||
@@ -584,6 +584,198 @@ const machineryManagement = {
|
||||
]
|
||||
}
|
||||
|
||||
// 农事操作管理系统
|
||||
const farmingOperation = {
|
||||
navMain: [
|
||||
{
|
||||
title: "农事计划",
|
||||
url: "/farming-operation/planning",
|
||||
icon: <Calendar className="w-4 h-4" />,
|
||||
items: [
|
||||
{
|
||||
title: "农事计划创建",
|
||||
url: "/farming-operation/planning/creation",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "农事计划分配",
|
||||
url: "/farming-operation/planning/allocation",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "农事计划进度",
|
||||
url: "/farming-operation/planning/progress",
|
||||
isActive: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "农事任务",
|
||||
url: "/farming-operation/task",
|
||||
icon: <FileText className="w-4 h-4" />,
|
||||
items: [
|
||||
{
|
||||
title: "任务管理",
|
||||
url: "/farming-operation/task/management",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "任务分配",
|
||||
url: "/farming-operation/task/assignment",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "任务监控",
|
||||
url: "/farming-operation/task/monitoring",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "任务统计",
|
||||
url: "/farming-operation/task/statistics",
|
||||
isActive: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "农事执行",
|
||||
url: "/farming-operation/execution",
|
||||
icon: <Zap className="w-4 h-4" />,
|
||||
items: [
|
||||
{
|
||||
title: "执行类型",
|
||||
url: "/farming-operation/execution/type",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "执行记录",
|
||||
url: "/farming-operation/execution/record",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "执行日志",
|
||||
url: "/farming-operation/execution/log",
|
||||
isActive: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "农事日历",
|
||||
url: "/farming-operation/calendar",
|
||||
icon: <Calendar className="w-4 h-4" />,
|
||||
items: [
|
||||
{
|
||||
title: "日历视图",
|
||||
url: "/farming-operation/calendar/view",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "甘特图",
|
||||
url: "/farming-operation/calendar/gantt",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "进度跟踪",
|
||||
url: "/farming-operation/calendar/progress",
|
||||
isActive: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "农事档案",
|
||||
url: "/farming-operation/archive",
|
||||
icon: <Database className="w-4 h-4" />,
|
||||
items: [
|
||||
{
|
||||
title: "档案聚合",
|
||||
url: "/farming-operation/archive/aggregation",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "档案查看",
|
||||
url: "/farming-operation/archive/view",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "档案追溯",
|
||||
url: "/farming-operation/archive/trace",
|
||||
isActive: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "农事知识库",
|
||||
url: "/farming-operation/knowledge",
|
||||
icon: <Book className="w-4 h-4" />,
|
||||
items: [
|
||||
{
|
||||
title: "知识管理",
|
||||
url: "/farming-operation/knowledge/management",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "知识分类",
|
||||
url: "/farming-operation/knowledge/category",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "知识搜索",
|
||||
url: "/farming-operation/knowledge/search",
|
||||
isActive: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "绩效管理",
|
||||
url: "/farming-operation/performance",
|
||||
icon: <BarChart3 className="w-4 h-4" />,
|
||||
items: [
|
||||
{
|
||||
title: "员工绩效",
|
||||
url: "/farming-operation/performance/staff",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "工时统计",
|
||||
url: "/farming-operation/performance/hours",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "绩效统计",
|
||||
url: "/farming-operation/performance/statistics",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "绩效调度",
|
||||
url: "/farming-operation/performance/schedule",
|
||||
isActive: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "农事问题协同",
|
||||
url: "/farming-operation/issue",
|
||||
icon: <Users className="w-4 h-4" />,
|
||||
items: [
|
||||
{
|
||||
title: "问题上报",
|
||||
url: "/farming-operation/issue/report",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "问题分配",
|
||||
url: "/farming-operation/issue/assign",
|
||||
isActive: false
|
||||
},
|
||||
{
|
||||
title: "问题协同",
|
||||
url: "/farming-operation/issue/collaborate",
|
||||
isActive: false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
function RootLayoutContent({
|
||||
children,
|
||||
}: {
|
||||
@@ -601,6 +793,8 @@ function RootLayoutContent({
|
||||
return machineryManagement;
|
||||
case '/land-information':
|
||||
return fieldMessageManagement;
|
||||
case '/farming-operation':
|
||||
return farmingOperation;
|
||||
case '/central-config':
|
||||
return centralConfigData;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user