|
|
@@ -13,187 +13,105 @@ export default function Home() {
|
|
|
|
|
|
|
|
|
// 菜单数据
|
|
|
- const items = [
|
|
|
- {
|
|
|
- label: '首页配置',
|
|
|
- key: 'basicInfomation',
|
|
|
- icon: <DesktopOutlined/>,
|
|
|
- children: [
|
|
|
- {
|
|
|
- label: '汇总统计数据',
|
|
|
- key: 'statisticsData',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '消费占比',
|
|
|
- key: 'consumptionProportion',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '客流排名',
|
|
|
- key: 'flowRanking',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '线路客流排名',
|
|
|
- key: 'lineFlowRanking',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '舆情统计数据',
|
|
|
- key: 'publicOpinion',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '站场设备统计',
|
|
|
- key: 'stationEquipment',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '客运量数据',
|
|
|
- key: 'passengerVolumeData',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '班次完成率',
|
|
|
- key: 'classCompletionRate',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '班次准点率',
|
|
|
- key: 'classPunctualitRate',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '发车准点率',
|
|
|
- key: 'carCompletionRate',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- label: '线路运营配置',
|
|
|
- key: 'lineConfiguration',
|
|
|
- icon: <SettingOutlined/>,
|
|
|
- children: [
|
|
|
- {
|
|
|
- label: '线路基本情况',
|
|
|
- key: 'basicInfomationOfTheLine',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '线路发班情况',
|
|
|
- key: 'lineDispatch',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '乘客类型',
|
|
|
- key: 'passengerType',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '汇总数据',
|
|
|
- key: 'summaryData',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '驾驶员数量',
|
|
|
- key: 'numberOfDrivers',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '车辆数量占比',
|
|
|
- key: 'numberOfTransit',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '车辆监控',
|
|
|
- key: 'vehicleMonitoring',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '车辆状态',
|
|
|
- key: 'vehicleStatus',
|
|
|
- icon: <AreaChartOutlined/>,
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- label: '客流分析',
|
|
|
- key: 'passengerFlowAnalysis',
|
|
|
- icon: <SettingOutlined/>,
|
|
|
- children: [
|
|
|
- {
|
|
|
- label: '底部信息',
|
|
|
- key: 'passengerInfomation',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '区域客流',
|
|
|
- key: 'regionalPassengerFlow',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '通勤时间',
|
|
|
- key: 'commutingTime',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '消费类型',
|
|
|
- key: 'consumptionType',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '乘距分布',
|
|
|
- key: 'distribution',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '换乘次数',
|
|
|
- key: 'replacementFrequency',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '客流线路分布',
|
|
|
- key: 'passengerFlowRoutes',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '客运量排名',
|
|
|
- key: 'rankingOfPassengerVolume',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- label: '维保动态',
|
|
|
- key: 'maintenanceDynamics',
|
|
|
- icon: <SettingOutlined/>,
|
|
|
- children: [{
|
|
|
- label: '车辆数量',
|
|
|
- key: 'vehiclesTotalNumber',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- }, {
|
|
|
- label: '维修保养统计',
|
|
|
- key: 'maintenanceStatistics',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- },]
|
|
|
- },
|
|
|
- {
|
|
|
- label: '基础信息配置',
|
|
|
- key: 'setting',
|
|
|
- icon: <SettingOutlined/>,
|
|
|
- children: [{
|
|
|
- label: '用户管理',
|
|
|
- key: 'user',
|
|
|
- icon: <UserOutlined/>,
|
|
|
- }, {
|
|
|
- label: '字典管理',
|
|
|
- key: 'dict',
|
|
|
- icon: <FileDoneOutlined/>,
|
|
|
- }]
|
|
|
- }
|
|
|
- ]
|
|
|
+ const items = [{
|
|
|
+ label: '首页配置', key: 'basicInfomation', icon: <DesktopOutlined/>, children: [{
|
|
|
+ label: '汇总统计数据', key: 'statisticsData', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '消费占比', key: 'consumptionProportion', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '客流排名', key: 'flowRanking', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '线路客流排名', key: 'lineFlowRanking', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '舆情统计数据', key: 'publicOpinion', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '站场设备统计', key: 'stationEquipment', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '客运量数据', key: 'passengerVolumeData', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '班次完成率', key: 'classCompletionRate', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '班次准点率', key: 'classPunctualitRate', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '发车准点率', key: 'carCompletionRate', icon: <AreaChartOutlined/>,
|
|
|
+ }]
|
|
|
+ }, {
|
|
|
+ label: '线路运营配置', key: 'lineConfiguration', icon: <SettingOutlined/>, children: [{
|
|
|
+ label: '线路基本情况', key: 'basicInfomationOfTheLine', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '线路发班情况', key: 'lineDispatch', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '乘客类型', key: 'passengerType', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '汇总数据', key: 'summaryData', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '驾驶员数量', key: 'numberOfDrivers', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '车辆数量占比', key: 'numberOfTransit', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '车辆监控', key: 'vehicleMonitoring', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '车辆状态', key: 'vehicleStatus', icon: <AreaChartOutlined/>,
|
|
|
+ }]
|
|
|
+ }, {
|
|
|
+ label: '客流分析', key: 'passengerFlowAnalysis', icon: <SettingOutlined/>, children: [{
|
|
|
+ label: '底部信息', key: 'passengerInfomation', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '区域客流', key: 'regionalPassengerFlow', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '通勤时间', key: 'commutingTime', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '消费类型', key: 'consumptionType', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '乘距分布', key: 'distribution', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '换乘次数', key: 'replacementFrequency', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '客流线路分布', key: 'passengerFlowRoutes', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '客运量排名', key: 'rankingOfPassengerVolume', icon: <FileDoneOutlined/>,
|
|
|
+ }]
|
|
|
+ }, {
|
|
|
+ label: '维保动态', key: 'maintenanceDynamics', icon: <SettingOutlined/>, children: [{
|
|
|
+ label: '体检问题情况', key: 'physicalExaminationIssues', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '维修保养统计', key: 'maintenanceStatistics', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '乘距分布', key: 'distance', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '客流线路分布', key: 'distributionOfPassengerFlowRoutes', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '维保基本信息', key: 'basicMaintenanceInfomation', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '维保执行占比', key: 'maintenanceExecution', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '车辆运营状态', key: 'statusClassification', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '车辆维保状态', key: 'maintenanceStatus', icon: <FileDoneOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '消费类型', key: 'mainConsumPtionType', icon: <FileDoneOutlined/>,
|
|
|
+ },]
|
|
|
+ }, {
|
|
|
+ label: '设施管理', key: 'facilityManagementChild', icon: <DesktopOutlined/>, children: [{
|
|
|
+ label: '车载部件', key: 'vehiclesComponents', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '充电站', key: 'chargingStation', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '设施基础信息', key: 'informationOfFacilities', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '电子站牌', key: 'electronicLicensePlate', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '车型展示', key: 'vehiclesModelDisplay', icon: <AreaChartOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '洗车机', key: 'carWasher', icon: <AreaChartOutlined/>,
|
|
|
+ },]
|
|
|
+ }, {
|
|
|
+ label: '基础信息配置', key: 'setting', icon: <SettingOutlined/>, children: [{
|
|
|
+ label: '用户管理', key: 'user', icon: <UserOutlined/>,
|
|
|
+ }, {
|
|
|
+ label: '字典管理', key: 'dict', icon: <FileDoneOutlined/>,
|
|
|
+ }]
|
|
|
+ }]
|
|
|
/**
|
|
|
* 电机左边弹框跳转页面
|
|
|
* @param e 电机的数据
|
|
|
@@ -242,34 +160,32 @@ export default function Home() {
|
|
|
jumpToPage()
|
|
|
getDict()
|
|
|
}, [])
|
|
|
- return (
|
|
|
- <div className="home">
|
|
|
- <div className="head">
|
|
|
- <h2>车站管理系统</h2>
|
|
|
-
|
|
|
- <Popconfirm
|
|
|
- title="登出"
|
|
|
- description="是否登出此账号"
|
|
|
- onConfirm={logOut}
|
|
|
- okText="确认"
|
|
|
- cancelText="取消"
|
|
|
- >
|
|
|
- <div className="ava">
|
|
|
+ return (<div className="home">
|
|
|
+ <div className="head">
|
|
|
+ <h2>车站管理系统</h2>
|
|
|
|
|
|
- <Avatar size={30} icon={<UserOutlined/>}></Avatar>
|
|
|
- <p>{JSON.parse(localStorage.getItem('user'))?.name}</p>
|
|
|
- </div>
|
|
|
- </Popconfirm>
|
|
|
- </div>
|
|
|
- <div className="body">
|
|
|
- <div className="menu">
|
|
|
+ <Popconfirm
|
|
|
+ title="登出"
|
|
|
+ description="是否登出此账号"
|
|
|
+ onConfirm={logOut}
|
|
|
+ okText="确认"
|
|
|
+ cancelText="取消"
|
|
|
+ >
|
|
|
+ <div className="ava">
|
|
|
|
|
|
- <Menu onClick={onClick} selectedKeys={[current]} mode="inline" items={items}/>
|
|
|
- </div>
|
|
|
- <div className="contetn">
|
|
|
- <Outlet></Outlet>
|
|
|
+ <Avatar size={30} icon={<UserOutlined/>}></Avatar>
|
|
|
+ <p>{JSON.parse(localStorage.getItem('user'))?.name}</p>
|
|
|
</div>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ <div className="body">
|
|
|
+ <div className="menu">
|
|
|
+
|
|
|
+ <Menu onClick={onClick} selectedKeys={[current]} mode="inline" items={items}/>
|
|
|
+ </div>
|
|
|
+ <div className="contetn">
|
|
|
+ <Outlet></Outlet>
|
|
|
</div>
|
|
|
</div>
|
|
|
- );
|
|
|
+ </div>);
|
|
|
}
|