Browse Source

设施管理接入数据

bls-dan 2 years ago
parent
commit
2ba6c5e56b

File diff suppressed because it is too large
+ 525 - 385
src/pages/views/home/components/FacilityManagement.vue


+ 61 - 0
src/pages/views/home/services/facilityManagement.service.ts

@@ -0,0 +1,61 @@
+import NetService from '@/services/net.service'
+import { injectable, Service } from '@/services/service'
+
+@injectable
+export default class FacilityManagementService extends Service {
+  private netService = new NetService()
+
+  /** 区域设施统计  /facilityStatistics/getFacilityStatistics   */
+  async getFacilityStatistics() {
+    const { success, data } = await this.netService.get('/facilityStatistics/getFacilityStatistics')
+    if (success) {
+      return data || []
+    }
+    return []
+  }
+
+  /** 车型展示  /facilityStatistics/getFacilityVehicleModel   */
+  async getFacilityVehicleModel() {
+    const { success, data } = await this.netService.get('/facilityStatistics/getFacilityVehicleModel')
+    if (success) {
+      return data || []
+    }
+    return []
+  }
+
+  /** 电子站牌  /facilityStatistics/getFacilityStation   */
+  async getFacilityStation() {
+    const { success, data } = await this.netService.get('/facilityStatistics/getFacilityStation')
+    if (success) {
+      return data || []
+    }
+    return []
+  }
+
+  /** 洗车机  /facilityStatistics/getFacilityCarWasher   */
+  async getFacilityCarWasher() {
+    const { success, data } = await this.netService.get('/facilityStatistics/getFacilityCarWasher')
+    if (success) {
+      return data || []
+    }
+    return []
+  }
+
+  /** 充电站  /facilityStatistics/getFacilityChargingStation   */
+  async getFacilityChargingStation() {
+    const { success, data } = await this.netService.get('/facilityStatistics/getFacilityChargingStation')
+    if (success) {
+      return data || []
+    }
+    return []
+  }
+
+  /** 车载部件  /facilityStatistics/getFacilityVehicleComponents   */
+  async getFacilityVehicleComponents() {
+    const { success, data } = await this.netService.get('/facilityStatistics/getFacilityVehicleComponents')
+    if (success) {
+      return data || []
+    }
+    return []
+  }
+}

Some files were not shown because too many files changed in this diff