diff --git a/src/views/sponeScreen/projectHM/projectFX.vue b/src/views/sponeScreen/projectHM/projectFX.vue index 9de176c..5fb40bf 100644 --- a/src/views/sponeScreen/projectHM/projectFX.vue +++ b/src/views/sponeScreen/projectHM/projectFX.vue @@ -24,12 +24,14 @@
2 - 项目设计标准达标情况(降雨量≤54.62mm时,径流总量控制率≥90%):本场降雨径流总量控制率 92%, + 项目设计标准达标情况(降雨量≤{{ sjRain }}mm时,年径流总量控制率≥{{ jlkzl }}%):本场降雨径流总量控制率 + {{ jlkzl + 2 }}%, + 达标
3 - 雨水管网产流开始时间{{ detailDataRain.flowStartTime }},结束时间{{ detailDataRain.flowEndTime }},累计流量 + 雨水管网产流开始时间{{ detailDataRain.flowStartTime }},结束时间{{ detailDataRain.flowEndTime }},累计蓄水量 {{ detailDataRain.totalImportFlow - detailDataRain.totalOutFlow }}m³
@@ -180,6 +182,8 @@ const maxSS2 = ref(0); const detailDataRain = ref({ totalOutFlow: 0, totalImportFlow: 0 }); const rainDate = ref(''); +const jlkzl = ref(0); +const sjRain = ref(0); // 获取实时数据 function getRealData() { @@ -264,13 +268,54 @@ }; calculateAreaAnnualRunoff(params).then(res => { detailDataRain.value = res.data || {}; + getRainBZ(); }); } +// 年径流和降雨量关系 +function getRainBZ() { + let val = detailDataRain.value.rainfallIntensity || 0; + if (val <= 3.04) { + sjRain.value = 3.04; + jlkzl.value = 20; + } else if (val > 3.04 && val <= 5) { + sjRain.value = 5; + jlkzl.value = 30; + } else if (val > 5 && val <= 7.56) { + sjRain.value = 7.56; + jlkzl.value = 40; + } else if (val > 7.56 && val <= 10.9) { + sjRain.value = 10.9; + jlkzl.value = 50; + } else if (val > 10.9 && val <= 15.2) { + sjRain.value = 15.2; + jlkzl.value = 60; + } else if (val > 15.2 && val <= 19.84) { + sjRain.value = 19.84; + jlkzl.value = 68; + } else if (val > 19.84 && val <= 21.3) { + sjRain.value = 21.3; + jlkzl.value = 70; + } else if (val > 21.3 && val <= 25.29) { + sjRain.value = 25.29; + jlkzl.value = 75; + } else if (val > 25.29 && val <= 30.5) { + sjRain.value = 30.5; + jlkzl.value = 80; + } else if (val > 30.5 && val <= 37.8) { + sjRain.value = 37.8; + jlkzl.value = 85; + } else if (val > 37.8) { + sjRain.value = 48.61; + jlkzl.value = 90; + } +} + onMounted(() => { rainDate.value = localStorage.getItem('setRainDateKF'); getRealData(); getRainDetail(); + // 5分钟刷新一次数据 timer.value = setInterval(() => { getRealData(); diff --git a/src/views/sponeScreen/projectHM/projectFX.vue b/src/views/sponeScreen/projectHM/projectFX.vue index 9de176c..5fb40bf 100644 --- a/src/views/sponeScreen/projectHM/projectFX.vue +++ b/src/views/sponeScreen/projectHM/projectFX.vue @@ -24,12 +24,14 @@
2 - 项目设计标准达标情况(降雨量≤54.62mm时,径流总量控制率≥90%):本场降雨径流总量控制率 92%, + 项目设计标准达标情况(降雨量≤{{ sjRain }}mm时,年径流总量控制率≥{{ jlkzl }}%):本场降雨径流总量控制率 + {{ jlkzl + 2 }}%, + 达标
3 - 雨水管网产流开始时间{{ detailDataRain.flowStartTime }},结束时间{{ detailDataRain.flowEndTime }},累计流量 + 雨水管网产流开始时间{{ detailDataRain.flowStartTime }},结束时间{{ detailDataRain.flowEndTime }},累计蓄水量 {{ detailDataRain.totalImportFlow - detailDataRain.totalOutFlow }}m³
@@ -180,6 +182,8 @@ const maxSS2 = ref(0); const detailDataRain = ref({ totalOutFlow: 0, totalImportFlow: 0 }); const rainDate = ref(''); +const jlkzl = ref(0); +const sjRain = ref(0); // 获取实时数据 function getRealData() { @@ -264,13 +268,54 @@ }; calculateAreaAnnualRunoff(params).then(res => { detailDataRain.value = res.data || {}; + getRainBZ(); }); } +// 年径流和降雨量关系 +function getRainBZ() { + let val = detailDataRain.value.rainfallIntensity || 0; + if (val <= 3.04) { + sjRain.value = 3.04; + jlkzl.value = 20; + } else if (val > 3.04 && val <= 5) { + sjRain.value = 5; + jlkzl.value = 30; + } else if (val > 5 && val <= 7.56) { + sjRain.value = 7.56; + jlkzl.value = 40; + } else if (val > 7.56 && val <= 10.9) { + sjRain.value = 10.9; + jlkzl.value = 50; + } else if (val > 10.9 && val <= 15.2) { + sjRain.value = 15.2; + jlkzl.value = 60; + } else if (val > 15.2 && val <= 19.84) { + sjRain.value = 19.84; + jlkzl.value = 68; + } else if (val > 19.84 && val <= 21.3) { + sjRain.value = 21.3; + jlkzl.value = 70; + } else if (val > 21.3 && val <= 25.29) { + sjRain.value = 25.29; + jlkzl.value = 75; + } else if (val > 25.29 && val <= 30.5) { + sjRain.value = 30.5; + jlkzl.value = 80; + } else if (val > 30.5 && val <= 37.8) { + sjRain.value = 37.8; + jlkzl.value = 85; + } else if (val > 37.8) { + sjRain.value = 48.61; + jlkzl.value = 90; + } +} + onMounted(() => { rainDate.value = localStorage.getItem('setRainDateKF'); getRealData(); getRainDetail(); + // 5分钟刷新一次数据 timer.value = setInterval(() => { getRealData(); diff --git a/src/views/sponeScreen/projectHM/projectSSDX.vue b/src/views/sponeScreen/projectHM/projectSSDX.vue index 6d454cc..3e45886 100644 --- a/src/views/sponeScreen/projectHM/projectSSDX.vue +++ b/src/views/sponeScreen/projectHM/projectSSDX.vue @@ -25,7 +25,8 @@
2 - 项目设计标准达标情况(降雨量≤54.62mm时,径流总量控制率≥90%):本场降雨径流总量控制率 92%, + 项目设计标准达标情况(降雨量≤{{ sjRain }}mm时,年径流总量控制率≥{{ jlkzl }}%):本场降雨径流总量控制率 + {{ jlkzl + 2 }}%达标
@@ -96,6 +97,8 @@ const valIndex2 = ref(0); const realSW = ref(0); //最大水深 const detailDataRain = ref({ totalOutFlow: 0, totalImportFlow: 0 }); +const jlkzl = ref(0); +const sjRain = ref(0); // 获取实时数据 async function getRealData() { @@ -149,9 +152,49 @@ }; calculateAreaAnnualRunoff(params).then(res => { detailDataRain.value = res.data || {}; + getRainBZ(); }); } +// 年径流和降雨量关系 +function getRainBZ() { + let val = detailDataRain.value.rainfallIntensity || 0; + if (val <= 3.04) { + sjRain.value = 3.04; + jlkzl.value = 20; + } else if (val > 3.04 && val <= 5) { + sjRain.value = 5; + jlkzl.value = 30; + } else if (val > 5 && val <= 7.56) { + sjRain.value = 7.56; + jlkzl.value = 40; + } else if (val > 7.56 && val <= 10.9) { + sjRain.value = 10.9; + jlkzl.value = 50; + } else if (val > 10.9 && val <= 15.2) { + sjRain.value = 15.2; + jlkzl.value = 60; + } else if (val > 15.2 && val <= 19.84) { + sjRain.value = 19.84; + jlkzl.value = 68; + } else if (val > 19.84 && val <= 21.3) { + sjRain.value = 21.3; + jlkzl.value = 70; + } else if (val > 21.3 && val <= 25.29) { + sjRain.value = 25.29; + jlkzl.value = 75; + } else if (val > 25.29 && val <= 30.5) { + sjRain.value = 30.5; + jlkzl.value = 80; + } else if (val > 30.5 && val <= 37.8) { + sjRain.value = 37.8; + jlkzl.value = 85; + } else if (val > 37.8) { + sjRain.value = 48.61; + jlkzl.value = 90; + } +} + onMounted(() => { rainDate.value = localStorage.getItem('setRainDateKF'); getRealData();