This commit is contained in:
zty 2024-12-30 13:07:33 +08:00
commit d734aab11f
1 changed files with 1 additions and 2 deletions

View File

@ -195,13 +195,12 @@ export default {
} }
}) })
} }
arr[6] = huanbi; //kW·h/t\ arr[6] =Number(huanbi); //kW·h/t\
if (arr[6] !== "/"){ if (arr[6] !== "/"){
arr[7] = (arr[3] - arr[6]).toFixed(2); //kW·h/t arr[7] = (arr[3] - arr[6]).toFixed(2); //kW·h/t
}else{ }else{
arr[7] = "/"; //kW·h/t arr[7] = "/"; //kW·h/t
} }
// console.log(arr[7], arr[6])
if (arr[7] !=="/" && arr[6] !==0 && arr[7] !== "undefined"){ if (arr[7] !=="/" && arr[6] !==0 && arr[7] !== "undefined"){
arr[8] = ((arr[7]/arr[6])*100).toFixed(2); arr[8] = ((arr[7]/arr[6])*100).toFixed(2);
}else{ }else{