fo: dashboard 강우일운영현황
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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]));
|
||||
|
||||
Reference in New Issue
Block a user