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);
});
},
//
//---
qualAnalys() {},
//
dataCollect() {
@ -1128,6 +1128,8 @@ export default {
console.log(value);
console.log(mesh);
that.createImgLabel(value, mesh);
that.getMgroupChartData(value, mesh);
// // panel
const info = {
name: value,
@ -1149,7 +1151,7 @@ export default {
},
],
};
that.createDetailPanel(info, mesh);
// that.createDetailPanel(info, mesh);
}
}
engine.hideLoadingUI();
@ -1366,9 +1368,41 @@ export default {
that.flyToMesh(mesh);
});
},
getMgroupChartData(name) {
//name:
getMgroupChartData(value, mesh) {
//value:,mesh:
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
createDetailPanel(info, mesh) {
@ -1470,7 +1504,6 @@ export default {
data_view.linkWithMesh(mesh);
data_view.linkOffsetY = -120;
},
deepCopy(obj) {
return JSON.parse(JSON.stringify(obj));
},
@ -1535,7 +1568,7 @@ export default {
},
data: [
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,
],
},
@ -1557,7 +1590,7 @@ export default {
},
data: [
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,
],
},
@ -1579,7 +1612,7 @@ export default {
},
data: [
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,
],
},