-
--
-
最大水深:{{ '--' }} m
-
流速:{{ '--' }} m/s
-
SS:{{ '--' }} mg/L
-
瞬时流量:-- m³/h
-
时间: {{ '--' }}
-
管径:3*1.8m
+
+
+ 由于施工待安装(进口)
+ 最大水深:{{ '--' }} m
+ 瞬时流速:{{ '--' }} m/s
+ 瞬时SS(0-300):{{ '--' }} mg/L
+ 瞬时流量:-- m³/h
+ 监测时间: {{ '--' }}
+ 管网管径: 3*1.8m
-
+
汴京路与工农路交叉口(出口)
- 最大水深:{{ maxSS2 || '--' }} m
- 流速:{{ nameToData(station5.propertyMonitorList, '流速')[valIndex5] || '--' }} m/s
+ 最大水深: {{ maxSS2 || '--' }} m
+ 瞬时流速: {{ nameToData(station5.propertyMonitorList, '流速')[valIndex5] || '--' }} m/s
- SS:{{ nameToData(station5.propertyMonitorList, 'SS')[valIndex5] || '--' }} mg/L
+ 瞬时SS(0-300): {{ nameToData(station5.propertyMonitorList, 'SS')[valIndex5] || '--' }} mg/L
- 瞬时流量:{{ nameToData(station5.propertyMonitorList, '小时水量')[valIndex5] || '--' }} m³/h
- 时间:{{ station5.propertyMonitorXList[valIndex5] ? station5.propertyMonitorXList[valIndex5].slice(10) : '--' }}
- 管径:3*1.8m
+ 瞬时流量: {{ nameToData(station5.propertyMonitorList, '小时水量')[valIndex5] || '--' }} m³/h
+ 监测时间: {{ station5.propertyMonitorXList[valIndex5] ? station5.propertyMonitorXList[valIndex5].slice(10) : '--' }}
+ 管网管径: 3*1.8m
-
-
+
@@ -160,15 +156,6 @@
-
-
-
@@ -181,20 +168,18 @@
const timer = ref(null);
const valIndex1 = ref(0);
const valIndex2 = ref(0);
-const valIndex3 = ref(0);
const valIndex4 = ref(0);
const valIndex5 = ref(0);
const station1 = ref({ propertyMonitorList: [{ ylist: [] }, { ylist: [] }, { ylist: [] }], propertyMonitorXList: [] });
const station2 = ref({ propertyMonitorList: [{ ylist: [] }, { ylist: [] }, { ylist: [] }], propertyMonitorXList: [] });
-const station3 = ref({ propertyMonitorList: [{ ylist: [] }, { ylist: [] }, { ylist: [] }], propertyMonitorXList: [] });
const station4 = ref({ propertyMonitorList: [{ ylist: [] }, { ylist: [] }, { ylist: [] }], propertyMonitorXList: [] });
const station5 = ref({ propertyMonitorList: [{ ylist: [] }, { ylist: [] }, { ylist: [] }], propertyMonitorXList: [] });
const maxSS1 = ref(0);
const maxSS2 = ref(0);
const detailDataRain = ref({ totalOutFlow: 0, totalImportFlow: 0 });
const rainDate = ref('');
-const jlkzl = ref(0);
-const sjRain = ref(0);
+const rainTime = ref('');
+const hourMaxRain = ref(0);
// 获取实时数据
function getRealData() {
@@ -229,18 +214,6 @@
}
});
- params.stCode = '0371000039';
- graphicReport(params).then(res => {
- if (res.data.propertyMonitorList.length > 0) {
- station3.value = res.data;
- // 取最大的值
- let max = Math.max(...nameToData(station3.value.propertyMonitorList, '水位'));
- valIndex3.value = nameToData(station3.value.propertyMonitorList, '水位').findIndex(item => {
- return item == max;
- });
- }
- });
-
station4.value = {}; //暂未安装,无数据
params.stCode = '0371000044';
@@ -278,42 +251,35 @@
projectNo: 'GW06',
};
calculateAreaAnnualRunoff(params).then(res => {
- detailDataRain.value = res.data || {};
- getRainBZ();
+ let datas = res.data;
+ detailDataRain.value = datas || {};
+ // 计算降雨总时长
+ let times = 0;
+ datas.rainfallPeriods &&
+ datas.rainfallPeriods.map(item => {
+ times += (new Date(item.rainEndTime).getTime() - new Date(item.rainStartTime).getTime()) / 1000;
+ });
+ let hour = Math.floor(times / 60 / 60);
+ let minutes = Math.floor((times % 3600) / 60);
+ rainTime.value = hour + '小时' + minutes + '分钟';
});
-}
-// 年径流和降雨量关系
-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.8) {
- sjRain.value = 19.8;
- jlkzl.value = 68;
- }
+ // 雨量站监测数据
+ let params2 = {
+ startTime: localStorage.getItem('setRainDateKF'),
+ endTime: localStorage.getItem('setRainDateKF'),
+ stCode: '0371000003',
+ };
+ graphicReport(params2).then(res => {
+ let hourData = nameToData(res.data.propertyMonitorList, '1小时时段降水量');
+ hourMaxRain.value = Math.max(...hourData);
+ });
}
onMounted(() => {
rainDate.value = localStorage.getItem('setRainDateKF');
- getRealData();
getRainDetail();
+ getRealData();
// 5分钟刷新一次数据
timer.value = setInterval(() => {
@@ -452,11 +418,14 @@
padding:10PX;
color:#C1E8FF;
font-size:16PX;
- width:180PX;
+ width:230PX;
span{
width:100%;
display: inline-block;
margin-bottom:3px;
+ &:nth-of-type(1){
+ font-weight: bold;
+ }
}
}
.realData{
@@ -474,12 +443,6 @@
}
}
- .waterFX{
- background: red;
- img{
- position:absolute;
- z-index: 20;
- }
- }
+
}
diff --git a/src/views/sponeScreen/projectHM/projectSSDX.vue b/src/views/sponeScreen/projectHM/projectSSDX.vue
index fa71808..e52d5f8 100644
--- a/src/views/sponeScreen/projectHM/projectSSDX.vue
+++ b/src/views/sponeScreen/projectHM/projectSSDX.vue
@@ -21,18 +21,16 @@
1
- 海绵设施设计雨水控制容积 96.52m³
+ 项目设计降雨量为19.8mm对应的年径流总量控制率为68%;海绵设施设计雨水控制容积 96.52m³
2
- 项目设计标准达标情况(设计降雨量{{ sjRain }}mm对应年径流总量控制率{{ jlkzl }}%;本场降雨径流总量控制率
- {{ jlkzl + 0.3 }}%,
+ 本场降雨径流总量控制率
达标
3
雨水管网产流开始时间{{ detailDataRain.flowStartTime }},结束时间{{ detailDataRain.flowEndTime }},累计出口流量
-
85.23m³, 最大水深
{{ realSW || '--' }}m