diff --git a/src/api/MonitoringAnalysis.js b/src/api/MonitoringAnalysis.js index 9e999e6..3a6a7ad 100644 --- a/src/api/MonitoringAnalysis.js +++ b/src/api/MonitoringAnalysis.js @@ -136,4 +136,12 @@ method: 'get', params, }); +} + +export function siteWaterYieldAnalysisByDate(params) { + return request({ + url: `business/monitorData/siteWaterYieldAnalysisByDate`, + method: 'get', + params, + }); } \ No newline at end of file diff --git a/src/api/MonitoringAnalysis.js b/src/api/MonitoringAnalysis.js index 9e999e6..3a6a7ad 100644 --- a/src/api/MonitoringAnalysis.js +++ b/src/api/MonitoringAnalysis.js @@ -136,4 +136,12 @@ method: 'get', params, }); +} + +export function siteWaterYieldAnalysisByDate(params) { + return request({ + url: `business/monitorData/siteWaterYieldAnalysisByDate`, + method: 'get', + params, + }); } \ No newline at end of file diff --git a/src/views/pictureOnMap/page/DrainageSystem/WSIndex.vue b/src/views/pictureOnMap/page/DrainageSystem/WSIndex.vue index 4d4d1d4..1221640 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/WSIndex.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/WSIndex.vue @@ -139,7 +139,11 @@ :content="AllData.SLFX.upstreamSiteWaterYield + '万吨'" placement="top" > - {{ AllData.SLFX.upstreamSiteWaterYield }} + {{ + AllData.SLFX.upstreamSiteWaterYield + ? AllData.SLFX.upstreamSiteWaterYield + : "--" + }} 万吨 @@ -151,7 +155,9 @@ :content="AllData.SLFX.siteWaterYield + '万吨'" placement="top" > - {{ AllData.SLFX.siteWaterYield }} + {{ + AllData.SLFX.siteWaterYield ? AllData.SLFX.siteWaterYield : "--" + }} 万吨 @@ -224,9 +230,9 @@
-
末次运维:
+
所属标段:
- {{ AllData.GWBD.repairYear ? AllData.GWBD.repairYear : "--" }} + {{ AllData.GWBD.watchAreaName ? AllData.GWBD.watchAreaName : "--" }}
@@ -699,7 +705,7 @@ pipelineTexture: "--", issueType: "--", roadName: "--", - repairYear: "--", + watchAreaName: "--", }; } diff --git a/src/api/MonitoringAnalysis.js b/src/api/MonitoringAnalysis.js index 9e999e6..3a6a7ad 100644 --- a/src/api/MonitoringAnalysis.js +++ b/src/api/MonitoringAnalysis.js @@ -136,4 +136,12 @@ method: 'get', params, }); +} + +export function siteWaterYieldAnalysisByDate(params) { + return request({ + url: `business/monitorData/siteWaterYieldAnalysisByDate`, + method: 'get', + params, + }); } \ No newline at end of file diff --git a/src/views/pictureOnMap/page/DrainageSystem/WSIndex.vue b/src/views/pictureOnMap/page/DrainageSystem/WSIndex.vue index 4d4d1d4..1221640 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/WSIndex.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/WSIndex.vue @@ -139,7 +139,11 @@ :content="AllData.SLFX.upstreamSiteWaterYield + '万吨'" placement="top" > - {{ AllData.SLFX.upstreamSiteWaterYield }} + {{ + AllData.SLFX.upstreamSiteWaterYield + ? AllData.SLFX.upstreamSiteWaterYield + : "--" + }} 万吨 @@ -151,7 +155,9 @@ :content="AllData.SLFX.siteWaterYield + '万吨'" placement="top" > - {{ AllData.SLFX.siteWaterYield }} + {{ + AllData.SLFX.siteWaterYield ? AllData.SLFX.siteWaterYield : "--" + }} 万吨 @@ -224,9 +230,9 @@
-
末次运维:
+
所属标段:
- {{ AllData.GWBD.repairYear ? AllData.GWBD.repairYear : "--" }} + {{ AllData.GWBD.watchAreaName ? AllData.GWBD.watchAreaName : "--" }}
@@ -699,7 +705,7 @@ pipelineTexture: "--", issueType: "--", roadName: "--", - repairYear: "--", + watchAreaName: "--", }; } diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex.vue index 85dc01b..c11c8c5 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/YSIndex.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex.vue @@ -151,41 +151,36 @@
- - {{ AllData.SLFX.upstreamSiteWaterYield }} - - 万吨 -
-
上游水量
-
-
-
- - {{ AllData.SLFX.siteWaterYield }} - - 万吨 -
-
当前站点水量
-
-
-
- + {{ - AllData.SLFX.downstreamSiteWaterYield + AllData.SLFX.nowDay ? AllData.SLFX.nowDay : "--" }} 万吨
-
下游水量
+
今日水量
+
+
+
+ + {{ + AllData.SLFX.yesterday ? AllData.SLFX.yesterday : "--" + }} + + 万吨 +
+
昨日水量
+
+
+
+ + {{ + AllData.SLFX.average ? AllData.SLFX.average : "--" + }} + + 万吨 +
+
7日平均水量
@@ -254,9 +249,9 @@
-
末次运维:
+
所属标段:
- {{ AllData.GWBD.repairYear ? AllData.GWBD.repairYear : "--" }} + {{ AllData.GWBD.watchAreaName ? AllData.GWBD.watchAreaName : "--" }}
@@ -760,7 +755,7 @@ pipelineTexture: "--", issueType: "--", roadName: "--", - repairYear: "--", + watchAreaName: "--", }; } // 根据type 判断是管井还是接驳口 @@ -1156,11 +1151,11 @@ }; // 获取数据 刘芳阳 上下游分析 const getDataSXY = (row) => { - MonitorAPI.siteWaterYieldAnalysis({ + MonitorAPI.siteWaterYieldAnalysisByDate({ stCode: row.stCode, - stType: row.pointType, - start: moment().format("YYYY-MM-DD") + " 00:00:00", - end: moment().format("YYYY-MM-DD") + " 23:59:59", + // stType: row.pointType, + // start: moment().format("YYYY-MM-DD") + " 00:00:00", + // end: moment().format("YYYY-MM-DD") + " 23:59:59", }).then((res) => { if (res && res.code == 200) { AllData.SLFX = res.data;