|
@@ -62,12 +62,12 @@ export const list = (params) => {
|
|
|
});
|
|
|
res.sys_majorpath.forEach((e) => {
|
|
|
const { drag_1, drag_2, drag_3, drag_total } = e.majorpath;
|
|
|
- const { retM3_merge = { value: '1' } } = e.readData;
|
|
|
- const m3_merge = parseInt(retM3_merge.value);
|
|
|
+ const { zuli = { value: '1' } } = e.readData;
|
|
|
+ const drag_merge = parseInt(zuli.value);
|
|
|
e.piechart = [
|
|
|
- { val: drag_1, valMock: floor((drag_1 / drag_total) * m3_merge), label: '进风区' },
|
|
|
- { val: drag_2, valMock: floor((drag_2 / drag_total) * m3_merge), label: '用风区' },
|
|
|
- { val: drag_3, valMock: floor((drag_3 / drag_total) * m3_merge), label: '回风区' },
|
|
|
+ { 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: '回风区' },
|
|
|
];
|
|
|
});
|
|
|
res.device_arr = Object.values(res.device);
|