feat:修改白灰线前端代码

This commit is contained in:
zty 2025-07-09 11:17:30 +08:00
parent 4894b637d1
commit b53f21be24
1 changed files with 23 additions and 12 deletions

View File

@ -221,10 +221,10 @@
</div>
<div class="elecItem">
<div class="elecItem_wrap">
<span>年单位电</span>
<span>月单位煤</span>
<p class="elec_number">
{{ (Number(hotData.coal_consume_unit)+Number(dicData.elec_year)).toFixed(2) }}
<span class="elec_unit">kW·h</span>
<span class="elec_unit">t/t</span>
</p>
</div>
</div>
@ -297,8 +297,8 @@ export default {
// initialAlpha: 2.73,
// initialBeta: 1.24,
// initialRadius: 8,
initialAlpha: 4.03,
initialBeta: 1,
initialAlpha: 4.6,
initialBeta: 0.8,
initialRadius: 9.5,
initialTarget: null,
resizeTimeout: null,
@ -432,7 +432,7 @@ export default {
],
hotData: {
elec_consume_unit: 0, //
coal_consume_unit: 0, //
coal_consume_unit: 0, //
},
dicData:{
elec_month:0,
@ -1109,6 +1109,8 @@ export default {
.then((res) => {
that.yurefadianId = res[0].id;
let params = {};
let mpoint = "3853763497771151360";
let total_production = 0;
params.page = 0;
params.year_s = that.currentYear;
params.month_s = that.currentMonth;
@ -1116,13 +1118,22 @@ export default {
params.mgroup = that.yurefadianId;
this.$API.enm.enstat.req(params).then((ress) => {
that.hotData.elec_consume_unit =Number(ress[0].elec_consume_unit).toFixed(2);
params.mpoint = mpoint
total_production = ress[0].total_production;
return that.$API.enm.mpointstat.list.req(params);
// that.hotData.coal_consume_unit =Number(ress[0].coal_consume_unit).toFixed(2);
});
params.type = "year_s";
params.month_s = null;
this.$API.enm.enstat.req(params).then((ress) => {
that.hotData.coal_consume_unit =Number(ress[0].elec_consume_unit).toFixed(2);
});
}).then((res) => {
if( res.length>0 ){
console.log('-----------',res[0].val, total_production)
that.hotData.coal_consume_unit = Number(res[0].val)/Number(total_production).toFixed(2);
}
}
);
// params.type = "year_s";
// params.month_s = null;
// this.$API.enm.enstat.req(params).then((ress) => {
// that.hotData.coal_consume_unit =Number(ress[0].elec_consume_unit).toFixed(2);
// });
});
// this.$API.mtm.mgroup.list
// .req({ page: 0, search: "" })
@ -1506,7 +1517,7 @@ export default {
that.initialBeta,
that.initialRadius,
// new BABYLON.Vector3(-0.45, 1.588, 1.93)
new BABYLON.Vector3(-0.588, -0.3, 0.5)
new BABYLON.Vector3(-0.588, -0.5, 0.5)
);
that.camera = camera;
that.initialTarget = camera.getTarget();