fix:更改模型放大倍数限制

This commit is contained in:
shijing 2024-06-27 17:06:49 +08:00
parent 0bf861cac2
commit 9b84b4f991
1 changed files with 48 additions and 22 deletions

View File

@ -2,7 +2,7 @@
<div class="container">
<header class="pageHeader">
<span class="top-line top-line-left"></span>
{{ factoryName }}
凌源特种水泥数智化管控平台
<span class="top-line top-line-right"></span>
</header>
<div id="model" class="model">
@ -132,10 +132,11 @@
prop="code"
label="位号"
></el-table-column>
<el-table-column
prop="value"
label="数值"
></el-table-column>
<el-table-column label="数值">
<template #default="scope">
{{ scope.row.last_data.last_val }}
</template>
</el-table-column>
<el-table-column label="状态" width="50">
<template #default="scope">
<div
@ -407,11 +408,11 @@ export default {
]),
],
sectionNames: {
石灰石破碎筛分生产系统_primitive1: "石灰石破碎",
原料磨_primitive3: "原料磨",
石灰石破碎筛分生产系统: "石灰石破碎",
原料磨: "原料磨",
回转窑: "回转窑",
煤磨_primitive1: "煤磨",
余热发电_primitive2: "余热发电",
煤磨: "煤磨",
余热发电: "余热发电",
},
totalData: {
total_production: 0,
@ -426,9 +427,12 @@ export default {
{ name: "余热发电", value: 0 },
],
hotData: {
total_production: 0,
production_elec_unit: 0,
elec_consume: 0,
total_production: "",
production_elec_unit: "",
elec_consume: "",
NOx: "",
SO2: "",
klw: "",
},
tableData: [],
tezhongData: [],
@ -1057,8 +1061,8 @@ export default {
camera.attachControl(canvas, true);
camera.maxZ = 1000; //
//
camera.lowerRadiusLimit = 10;
camera.upperRadiusLimit = 30;
camera.lowerRadiusLimit = 8;
camera.upperRadiusLimit = 20;
//
const light = new BABYLON.HemisphericLight(
@ -1113,7 +1117,7 @@ export default {
mesh_name.color = "white";
mesh_name.fontSize = "14px";
mesh_rect.addControl(mesh_name);
var remoteGlbUrl = config.HOST_URL + "/media/model/ly6.glb";
var remoteGlbUrl = config.HOST_URL + "/media/model/lyx2.glb";
// var remoteGlbUrl = process.env.VUE_APP_BASEURL + "/media/model/factory.glb";
BABYLON.SceneLoader.Append(
remoteGlbUrl,
@ -1125,9 +1129,7 @@ export default {
const value = that.sectionNames[key];
const mesh = scene.getMeshByName(key);
if (mesh) {
console.log(value);
console.log(mesh);
that.createImgLabel(value, mesh);
// that.createImgLabel(value, mesh);
that.getMgroupChartData(value, mesh);
// // panel
@ -1348,7 +1350,7 @@ export default {
let that = this;
let imgUrl = "";
if (value == "石灰石破碎") {
imgUrl = "img/ly/shsps.png";
imgUrl = "img/ly/ps.png";
} else if (value == "原料磨") {
imgUrl = "img/ly/ylm.png";
} else if (value == "煤磨") {
@ -1383,7 +1385,30 @@ export default {
that.$API.enm.enstat.req(query).then((res) => {
let info = {
name: value,
rows: [
rows: [],
};
if (value == "余热发电") {
info.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].production_elec_unit
? res[0].production_elec_unit
: "0.00",
},
];
} else {
info.rows = [
{
label: "产品产量(t)",
field: "total_production",
@ -1399,8 +1424,9 @@ export default {
field: "elec_consume_unit",
value: res[0].elec_consume_unit,
},
],
};
];
}
that.createDetailPanel(info, mesh);
});
},