diff --git a/src/views/sponeScreen/projectHM/projectFX.vue b/src/views/sponeScreen/projectHM/projectFX.vue index 16e4dbb..19312ee 100644 --- a/src/views/sponeScreen/projectHM/projectFX.vue +++ b/src/views/sponeScreen/projectHM/projectFX.vue @@ -5,7 +5,7 @@
- 降雨起止时间 + {{ rainDate }},降雨起止时间 {{ item.rainStartTime }}-{{ item.rainEndTime }} ,24小时累计降雨量{{ detailDataRain.rainfallIntensity }}mm,降雨等级 @@ -29,7 +29,7 @@
3 - 雨水管网产流开始时间1:45,结束时间4:45,累计蓄水量 + 雨水管网产流开始时间{{ detailDataRain.flowStartTime }},结束时间{{ detailDataRain.flowEndTime }},累计蓄水量 {{ detailDataRain.totalImportFlow - detailDataRain.totalOutFlow }}m³
@@ -179,6 +179,7 @@ const maxSS1 = ref(0); const maxSS2 = ref(0); const detailDataRain = ref({ totalOutFlow: 0, totalImportFlow: 0 }); +const rainDate = ref(''); // 获取实时数据 function getRealData() { @@ -267,11 +268,13 @@ } onMounted(() => { + rainDate.value = localStorage.getItem('setRainDateKF'); getRealData(); getRainDetail(); // 5分钟刷新一次数据 timer.value = setInterval(() => { getRealData(); + getRainDetail(); }, 5 * 60 * 1000); }); onBeforeUnmount(() => { diff --git a/src/views/sponeScreen/projectHM/projectFX.vue b/src/views/sponeScreen/projectHM/projectFX.vue index 16e4dbb..19312ee 100644 --- a/src/views/sponeScreen/projectHM/projectFX.vue +++ b/src/views/sponeScreen/projectHM/projectFX.vue @@ -5,7 +5,7 @@
- 降雨起止时间 + {{ rainDate }},降雨起止时间 {{ item.rainStartTime }}-{{ item.rainEndTime }} ,24小时累计降雨量{{ detailDataRain.rainfallIntensity }}mm,降雨等级 @@ -29,7 +29,7 @@
3 - 雨水管网产流开始时间1:45,结束时间4:45,累计蓄水量 + 雨水管网产流开始时间{{ detailDataRain.flowStartTime }},结束时间{{ detailDataRain.flowEndTime }},累计蓄水量 {{ detailDataRain.totalImportFlow - detailDataRain.totalOutFlow }}m³
@@ -179,6 +179,7 @@ const maxSS1 = ref(0); const maxSS2 = ref(0); const detailDataRain = ref({ totalOutFlow: 0, totalImportFlow: 0 }); +const rainDate = ref(''); // 获取实时数据 function getRealData() { @@ -267,11 +268,13 @@ } onMounted(() => { + rainDate.value = localStorage.getItem('setRainDateKF'); getRealData(); getRainDetail(); // 5分钟刷新一次数据 timer.value = setInterval(() => { getRealData(); + getRainDetail(); }, 5 * 60 * 1000); }); onBeforeUnmount(() => { diff --git a/src/views/sponeScreen/projectHM/projectSSDX.vue b/src/views/sponeScreen/projectHM/projectSSDX.vue index 3ab15a7..41c0252 100644 --- a/src/views/sponeScreen/projectHM/projectSSDX.vue +++ b/src/views/sponeScreen/projectHM/projectSSDX.vue @@ -3,27 +3,37 @@
- - - -
- {{ rainDate }} 降雨起止时间1:15-3:45,24小时累计降雨量20.4mm,降雨等级 - 中雨 -
- -
- 1 - 项目设计最大控制容积 96.52m³ -
-
- 2 - 项目设计标准达标情况(降雨量≤54.62mm时,径流总量控制率≥90%):本场降雨径流总量控制率 92%, - 达标 -
-
- 3 - 雨水管网产流开始时间1:45,结束时间4:45,累计流量 843.5m³, 最大水深 - {{ realSW || '--' }}m +
+
+ {{ rainDate }} 降雨起止时间 + {{ item.rainStartTime }}-{{ item.rainEndTime }} ,24小时累计降雨量{{ detailDataRain.rainfallIntensity }}mm,降雨等级 + + {{ + detailDataRain.rainfallIntensity <= 10 + ? '小雨' + : detailDataRain.rainfallIntensity > 10 && detailDataRain.rainfallIntensity <= 25 + ? '中雨' + : '大雨' + }} + +
+ +
+ 1 + 项目设计最大控制容积 96.52m³ +
+
+ 2 + 项目设计标准达标情况(降雨量≤54.62mm时,径流总量控制率≥90%):本场降雨径流总量控制率 92%, + 达标 +
+
+ 3 + 雨水管网产流开始时间{{ detailDataRain.flowStartTime }},结束时间{{ detailDataRain.flowEndTime }},累计蓄水量 + {{ detailDataRain.totalImportFlow - detailDataRain.totalOutFlow }}m³, 最大水深 + {{ realSW || '--' }}m +
@@ -74,7 +84,7 @@