fix:凌源大屏更新
This commit is contained in:
parent
ae67a9a0a0
commit
0bf861cac2
|
@ -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);
|
||||
});
|
||||
},
|
||||
// 创建3D数据展示层GUI
|
||||
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,
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue