|
@@ -14,12 +14,14 @@ import CehicleOperationService from './services/cehicleOperation.service'
|
|
|
import MaintenanceDynamicsService from './services/maintenanceDynamics.Service'
|
|
import MaintenanceDynamicsService from './services/maintenanceDynamics.Service'
|
|
|
import PassengerFlowService from './services/passengerFlow.service'
|
|
import PassengerFlowService from './services/passengerFlow.service'
|
|
|
import FacilityManagementService from './services/facilityManagement.service'
|
|
import FacilityManagementService from './services/facilityManagement.service'
|
|
|
|
|
+import StationManagementService from './services/stationManagement.service'
|
|
|
|
|
|
|
|
const homeService = new HomeService()
|
|
const homeService = new HomeService()
|
|
|
const cehicleOperationService = new CehicleOperationService()
|
|
const cehicleOperationService = new CehicleOperationService()
|
|
|
const passengerFlowService = new PassengerFlowService()
|
|
const passengerFlowService = new PassengerFlowService()
|
|
|
const maintenanceDynamicsService = new MaintenanceDynamicsService()
|
|
const maintenanceDynamicsService = new MaintenanceDynamicsService()
|
|
|
const facilityManagementService = new FacilityManagementService()
|
|
const facilityManagementService = new FacilityManagementService()
|
|
|
|
|
+const stationManagementService = new StationManagementService()
|
|
|
|
|
|
|
|
const store = useStore()
|
|
const store = useStore()
|
|
|
const menus = [
|
|
const menus = [
|
|
@@ -325,7 +327,7 @@ const menus = [
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
-const active = ref(4)
|
|
|
|
|
|
|
+const active = ref(5)
|
|
|
const currentComponent = ref(menus[active.value].component)
|
|
const currentComponent = ref(menus[active.value].component)
|
|
|
const weather = computed(() => store.weather)
|
|
const weather = computed(() => store.weather)
|
|
|
const warningMsg = ref({
|
|
const warningMsg = ref({
|
|
@@ -416,6 +418,20 @@ async function getFacilityStatistics() {
|
|
|
menus[4].count[4].value = vehicleComponentsNumTotal
|
|
menus[4].count[4].value = vehicleComponentsNumTotal
|
|
|
}
|
|
}
|
|
|
getFacilityStatistics()
|
|
getFacilityStatistics()
|
|
|
|
|
+
|
|
|
|
|
+async function getStationStatistics() {
|
|
|
|
|
+ const res = await stationManagementService.getStationStatistics()
|
|
|
|
|
+
|
|
|
|
|
+ menus[5].count[0].value = res.stationNum
|
|
|
|
|
+ menus[5].count[1].value = res.totalArea
|
|
|
|
|
+ menus[5].count[2].value = res.lineNum
|
|
|
|
|
+ menus[5].count[3].value = res.vehicleNum
|
|
|
|
|
+ menus[5].count[4].value = res.parkNum
|
|
|
|
|
+ menus[5].count[5].value = res.chargingNum
|
|
|
|
|
+ menus[5].count[6].value = res.chargeVehicle
|
|
|
|
|
+ menus[5].count[7].value = res.maintenanceNum
|
|
|
|
|
+}
|
|
|
|
|
+getStationStatistics()
|
|
|
</script>
|
|
</script>
|
|
|
<template>
|
|
<template>
|
|
|
<div class="home">
|
|
<div class="home">
|