|
@@ -1,63 +1,101 @@
|
|
|
import Request from "@/utils/request";
|
|
import Request from "@/utils/request";
|
|
|
-
|
|
|
|
|
|
|
+// 获取楼层概览
|
|
|
|
|
+const getFloorOverview = (param) => {
|
|
|
|
|
+ return Request.get('/dashboard/getBuildingSituation', param)
|
|
|
|
|
+}
|
|
|
// 获取空间概览
|
|
// 获取空间概览
|
|
|
-const getSpaceOverview = (datetime) => {
|
|
|
|
|
- return Request.get('/dashboard/getBuildingSituation', {
|
|
|
|
|
- datetime: datetime
|
|
|
|
|
- })
|
|
|
|
|
|
|
+const getSpaceOverview = (param) => {
|
|
|
|
|
+ return Request.get('/dashboard/getSpaceOverview', param)
|
|
|
|
|
+}
|
|
|
|
|
+// 获取碳配额概览
|
|
|
|
|
+const getCarbonOverview = (param) => {
|
|
|
|
|
+ return Request.get('/dashboard/getCarbonQuota', param)
|
|
|
|
|
+}
|
|
|
|
|
+// 获取光伏发电概览
|
|
|
|
|
+const getPvPowerOverview = (param) => {
|
|
|
|
|
+ return Request.get('/dashboard/getPhotovoltaicPower', param)
|
|
|
|
|
+}
|
|
|
|
|
+// 获取光伏发电概览
|
|
|
|
|
+const getPvProfitOverview = (param) => {
|
|
|
|
|
+ return Request.get('/dashboard/getPhotovoltaicProfit', param)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 获取人员核心指标
|
|
// 获取人员核心指标
|
|
|
-const getPersonCoreData = (timeRange) => {
|
|
|
|
|
- return Request.get('/personnel/getPersonnelInfoCount', timeRange)
|
|
|
|
|
|
|
+const getPersonCoreData = (param) => {
|
|
|
|
|
+ return Request.get('/personnel/getPersonnelInfoCount', param)
|
|
|
}
|
|
}
|
|
|
// 获取人员统计信息
|
|
// 获取人员统计信息
|
|
|
-const getPersonEnterSummary = (timeRange) => {
|
|
|
|
|
- return Request.get('/personnel/getPersonnelInfoList', timeRange)
|
|
|
|
|
|
|
+const getPersonEnterSummary = (param) => {
|
|
|
|
|
+ return Request.get('/personnel/getPersonnelInfoList', param)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 获取餐厅核心指标
|
|
// 获取餐厅核心指标
|
|
|
-const getRestCoreData = (timeRange) => {
|
|
|
|
|
- return Request.get('/dining_room/getRestaurantConsumption', timeRange)
|
|
|
|
|
|
|
+const getRestCoreData = (param) => {
|
|
|
|
|
+ return Request.get('/dining_room/getRestaurantConsumption', param)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const getRestTrendData = (timeRange) => {
|
|
|
|
|
- return Request.get('/dining_room/getRestaurantConsumptionChart', timeRange)
|
|
|
|
|
|
|
+const getRestTrendData = (param) => {
|
|
|
|
|
+ return Request.get('/dining_room/getRestaurantConsumptionChart', param)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 商超
|
|
// 商超
|
|
|
-const getSuperMarketCoreData = (timeRange) => {
|
|
|
|
|
- return Request.get('/dashboard_supermarket/getSupermarketCoreIndicators', timeRange)
|
|
|
|
|
|
|
+const getSuperMarketCoreData = (param) => {
|
|
|
|
|
+ return Request.get('/dashboard_supermarket/getSupermarketCoreIndicators', param)
|
|
|
|
|
+}
|
|
|
|
|
+const getSuperMarketTrendData = (param) => {
|
|
|
|
|
+ return Request.get('/dashboard_supermarket/getSupermarketInfoList', param)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 用电
|
|
// 用电
|
|
|
-const getElectricityCoreData = (timeRange) => {
|
|
|
|
|
- return Request.get('/electricity/getElectricityCoreIndicators', timeRange)
|
|
|
|
|
|
|
+const getElectricityCoreData = (param) => {
|
|
|
|
|
+ return Request.get('/electricity/getElectricityCoreIndicators', param)
|
|
|
|
|
+}
|
|
|
|
|
+const getElectricityTrendData = (param) => {
|
|
|
|
|
+ return Request.get('/electricity/getElectricityInfoList', param)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 用水
|
|
// 用水
|
|
|
-const getWaterCoreData = (timeRange) => {
|
|
|
|
|
- return Request.get('/water/getWaterCoreIndicators', timeRange)
|
|
|
|
|
|
|
+const getWaterCoreData = (param) => {
|
|
|
|
|
+ return Request.get('/water/getWaterCoreIndicators', param)
|
|
|
|
|
+}
|
|
|
|
|
+const getWaterTrendData = (param) => {
|
|
|
|
|
+ return Request.get('/water/getWaterInfoList', param)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 用热
|
|
// 用热
|
|
|
-const getHotCoreData = (timeRange) => {
|
|
|
|
|
- return Request.get('/use_heat/getUseHeatCoreIndicators', timeRange)
|
|
|
|
|
|
|
+const getHotCoreData = (param) => {
|
|
|
|
|
+ return Request.get('/use_heat/getUseHeatCoreIndicators', param)
|
|
|
|
|
+}
|
|
|
|
|
+const getHotTrendData = (param) => {
|
|
|
|
|
+ return Request.get('/use_heat/getUseHeatInfoList', param)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 用冷
|
|
// 用冷
|
|
|
-const getColdCoreData = (timeRange) => {
|
|
|
|
|
- return Request.get('/use_cold/getUseColdCoreIndicators', timeRange)
|
|
|
|
|
|
|
+const getColdCoreData = (param) => {
|
|
|
|
|
+ return Request.get('/use_cold/getUseColdCoreIndicators', param)
|
|
|
|
|
+}
|
|
|
|
|
+const getColdTrendData = (param) => {
|
|
|
|
|
+ return Request.get('/use_cold/getUseColdInfoList', param)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 资产
|
|
// 资产
|
|
|
-const getMoneyCoreData = (timeRange) => {
|
|
|
|
|
- return Request.get('/asset/getAssetCoreIndicators', timeRange)
|
|
|
|
|
|
|
+const getMoneyCoreData = (param) => {
|
|
|
|
|
+ return Request.get('/asset/getAssetCoreIndicators', param)
|
|
|
|
|
+}
|
|
|
|
|
+const getMoneyLifeData = (param) => {
|
|
|
|
|
+ return Request.get('/asset/getAssetLife', param)
|
|
|
|
|
+}
|
|
|
|
|
+const getMoneyDistributionData = (param) => {
|
|
|
|
|
+ return Request.get('/asset/getInvestmentDistribution', param)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ getFloorOverview,
|
|
|
getSpaceOverview,
|
|
getSpaceOverview,
|
|
|
|
|
+ getCarbonOverview,
|
|
|
|
|
+ getPvPowerOverview,
|
|
|
|
|
+ getPvProfitOverview,
|
|
|
|
|
|
|
|
getPersonCoreData,
|
|
getPersonCoreData,
|
|
|
getPersonEnterSummary,
|
|
getPersonEnterSummary,
|
|
@@ -66,16 +104,23 @@ export default {
|
|
|
getRestTrendData,
|
|
getRestTrendData,
|
|
|
|
|
|
|
|
getSuperMarketCoreData,
|
|
getSuperMarketCoreData,
|
|
|
|
|
+ getSuperMarketTrendData,
|
|
|
|
|
|
|
|
getElectricityCoreData,
|
|
getElectricityCoreData,
|
|
|
|
|
+ getElectricityTrendData,
|
|
|
|
|
|
|
|
getWaterCoreData,
|
|
getWaterCoreData,
|
|
|
|
|
+ getWaterTrendData,
|
|
|
|
|
|
|
|
getHotCoreData,
|
|
getHotCoreData,
|
|
|
|
|
+ getHotTrendData,
|
|
|
|
|
|
|
|
getColdCoreData,
|
|
getColdCoreData,
|
|
|
|
|
+ getColdTrendData,
|
|
|
|
|
|
|
|
getMoneyCoreData,
|
|
getMoneyCoreData,
|
|
|
|
|
+ getMoneyLifeData,
|
|
|
|
|
+ getMoneyDistributionData,
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|