添加热量分析图表

This commit is contained in:
huangdeliang
2021-03-17 17:17:09 +08:00
parent ba372bee26
commit b36cef2948
4 changed files with 336 additions and 30 deletions

View File

@ -517,6 +517,10 @@ const getters = {
obj.fHeat = obj.fWeight * 9;
obj.cWeight += (igd.weight / 100) * igd.carbonRatio;
obj.cHeat = obj.cWeight * 4;
obj[`heat${cur.type}`] +=
(igd.weight / 100) * igd.proteinRatio * 4 +
(igd.weight / 100) * igd.fatRatio * 9 +
(igd.weight / 100) * igd.carbonRatio * 4;
});
return obj;
},
@ -527,7 +531,13 @@ const getters = {
cWeight: 0,
pHeat: 0,
fHeat: 0,
cHeat: 0
cHeat: 0,
heat1: 0,
heat2: 0,
heat3: 0,
heat4: 0,
heat5: 0,
heat6: 0,
}
)
);