fo: dashboard 강우일운영현황

This commit is contained in:
2026-01-09 16:34:52 +09:00
parent a6514cab64
commit 58c8f118d3
2 changed files with 10 additions and 10 deletions
@@ -10,9 +10,9 @@
*/
export default function CalcRainEffect(data : any, weather='ALL') {
let rtnDataAll : any = [];
let rtnDataSunny : any = [];
let rtnDataRain : any = [];
const rtnDataAll : any = [];
const rtnDataSunny : any = [];
const rtnDataRain : any = [];
let rtnData : any = [];
let rainEffectStd = 0;
data.forEach(item => {
+7 -7
View File
@@ -2289,13 +2289,13 @@ export const dashBoardReducer = (
return count > 0 ? Number((value / count)) : 0;
};
// 데이터 있는 항목만 계산
let dataIsCount = 0;
for (let idx = 0; idx < inflAmnt.length; idx++) {
if (Number(inflAmnt[idx]) > 0) {
dataIsCount++;
}
}
// // 데이터 있는 항목만 계산
// let dataIsCount = 0;
// for (let idx = 0; idx < inflAmnt.length; idx++) {
// if (Number(inflAmnt[idx]) > 0) {
// dataIsCount++;
// }
// }
for (let idx = 1; idx < inflAmnt.length; idx++) {
inflAmnt[idx] = calculateAverage(Number(inflAmnt[idx]), Number(inflAmtCnt[idx]));