分压阀功能大致完成

This commit is contained in:
Hcat
2023-12-23 14:56:04 +08:00
parent 7e5f00e0cf
commit 7684e21d33
7 changed files with 19544 additions and 36 deletions

View File

@@ -1,15 +1,15 @@
export default function previewtunnelModeInit(equipmentList) {
// for (const item of this.tunnelConfigEquipment) {
// //使用api取拿到附着点
// let pointmodel = this.scene.getObjectByName(item.pointName)
// pointmodel.hasDevice;
// let formInfo = {
// equipmentType: item.equipmentType, //设备类型
// chooseEquipment: item.equipmentName, //设备选择(设备名称)
// threshold: item.equipmentValue, //阈值
// }
// this.addEquipment(pointmodel, formInfo);
// }
//初始化将墙壁隐藏起来
for (let line = 1; line <= 20; line++) {
if (line < 10) {
let wall = 'wall_' + '0' + line
this.scene.getObjectByName(wall).visible = false
} else if (line >= 10) {
let wall = 'wall_' + line
this.scene.getObjectByName(wall).visible = false
}
}
equipmentList.forEach((item) => {
const formInfo = {
equipmentType: item.equipmentType, //设备类型