fix:凌源大屏更新

This commit is contained in:
shijing 2024-06-27 10:51:41 +08:00
parent ae67a9a0a0
commit 0bf861cac2
1 changed files with 41 additions and 8 deletions

View File

@ -854,7 +854,7 @@ export default {
radarChart.setOption(that.radarOption); radarChart.setOption(that.radarOption);
}); });
}, },
// //---
qualAnalys() {}, qualAnalys() {},
// //
dataCollect() { dataCollect() {
@ -1128,6 +1128,8 @@ export default {
console.log(value); console.log(value);
console.log(mesh); console.log(mesh);
that.createImgLabel(value, mesh); that.createImgLabel(value, mesh);
that.getMgroupChartData(value, mesh);
// // panel // // panel
const info = { const info = {
name: value, name: value,
@ -1149,7 +1151,7 @@ export default {
}, },
], ],
}; };
that.createDetailPanel(info, mesh); // that.createDetailPanel(info, mesh);
} }
} }
engine.hideLoadingUI(); engine.hideLoadingUI();
@ -1366,9 +1368,41 @@ export default {
that.flyToMesh(mesh); that.flyToMesh(mesh);
}); });
}, },
getMgroupChartData(name) { getMgroupChartData(value, mesh) {
//name: //value:,mesh:
let that = this; let that = this;
//
let query = {
mgroup__name: value,
type: "month_s",
year_s: that.currentYear,
month_s: that.currentMonth,
page: 0,
query: "{total_production,run_rate,elec_consume_unit}",
};
that.$API.enm.enstat.req(query).then((res) => {
let info = {
name: value,
rows: [
{
label: "产品产量(t)",
field: "total_production",
value: res[0].total_production,
},
{
label: "运转率(%)",
field: "run_rate",
value: res[0].run_rate,
},
{
label: "单位电耗(kwh)",
field: "elec_consume_unit",
value: res[0].elec_consume_unit,
},
],
};
that.createDetailPanel(info, mesh);
});
}, },
// 3DGUI // 3DGUI
createDetailPanel(info, mesh) { createDetailPanel(info, mesh) {
@ -1470,7 +1504,6 @@ export default {
data_view.linkWithMesh(mesh); data_view.linkWithMesh(mesh);
data_view.linkOffsetY = -120; data_view.linkOffsetY = -120;
}, },
deepCopy(obj) { deepCopy(obj) {
return JSON.parse(JSON.stringify(obj)); return JSON.parse(JSON.stringify(obj));
}, },
@ -1535,7 +1568,7 @@ export default {
}, },
data: [ data: [
190, 200, 245, 265, 260, 255, 240, 220, 220, 264, 290, 190, 200, 245, 265, 260, 255, 240, 220, 220, 264, 290,
240, 232, 251, 264, 320, 340, 250, 232, 240, 270, 280, 240, 232, 251, 264, 320, 310, 250, 232, 240, 270, 280,
264, 290, 300, 250, 240, 232, 201, 250, 264, 290, 300, 250, 240, 232, 201, 250,
], ],
}, },
@ -1557,7 +1590,7 @@ export default {
}, },
data: [ data: [
190, 200, 245, 265, 260, 255, 240, 220, 220, 264, 290, 190, 200, 245, 265, 260, 255, 240, 220, 220, 264, 290,
240, 232, 251, 264, 320, 340, 250, 232, 240, 270, 280, 240, 232, 251, 264, 320, 310, 250, 232, 240, 270, 280,
264, 290, 300, 250, 240, 232, 201, 250, 264, 290, 300, 250, 240, 232, 201, 250,
], ],
}, },
@ -1579,7 +1612,7 @@ export default {
}, },
data: [ data: [
190, 200, 245, 265, 260, 255, 240, 220, 220, 264, 290, 190, 200, 245, 265, 260, 255, 240, 220, 220, 264, 290,
240, 232, 251, 264, 320, 340, 250, 232, 240, 270, 280, 240, 232, 251, 264, 320, 310, 250, 232, 240, 270, 280,
264, 290, 300, 250, 240, 232, 201, 250, 264, 290, 300, 250, 240, 232, 201, 250,
], ],
}, },