|
@@ -62,13 +62,15 @@ export const list = (params) => {
|
|
|
});
|
|
|
res.sys_majorpath.forEach((e) => {
|
|
|
const { drag_1, drag_2, drag_3, drag_total } = e.majorpath;
|
|
|
- const { zuli = { value: '1' } } = e.readData;
|
|
|
+ const { zuli = { value: '1' }, retM3_merge = { value: '1' } } = e.readData;
|
|
|
const drag_merge = parseInt(zuli.value);
|
|
|
+ const m3_merge = parseInt(retM3_merge.value);
|
|
|
e.piechart = [
|
|
|
{ val: drag_1, valMock: floor((drag_1 / drag_total) * drag_merge), label: '进风区' },
|
|
|
{ val: drag_2, valMock: floor((drag_2 / drag_total) * drag_merge), label: '用风区' },
|
|
|
{ val: drag_3, valMock: floor((drag_3 / drag_total) * drag_merge), label: '回风区' },
|
|
|
];
|
|
|
+ e.dengjikong_merge = floor((1.19 * (m3_merge / 60)) / Math.sqrt(drag_merge), 2);
|
|
|
});
|
|
|
res.device_arr = Object.values(res.device);
|
|
|
|