trp:隧道仿真页面,去除标签回显和隐藏附着点

This commit is contained in:
trp
2024-12-29 19:12:05 +08:00
parent aefdd23925
commit b64d943a5e
4 changed files with 22 additions and 14 deletions

View File

@@ -190,12 +190,15 @@ async function handleMounted() {
? "frequency"
: "sensor",
}));
demo.enableLeftBtn = false //关闭左键
demo.pointsVisible(false);
demo.editTunnelInit(modeData);
// 初始化标牌信息
demo.SignsInf("dsadsa", String(params.tunnelLength));
} catch (err) {}
}
// 从新渲染数据
async function rerender() {
try {
@@ -294,9 +297,9 @@ function editDevInfo(
//左键/双击左键回调函数
function lClickCallback(demo) {
// console.log('左键点击查看信息');
console.log('左键点击查看信息');
//demo动态添加函数为操作组件内部
// demo动态添加函数为操作组件内部
function displayDevInfo(targetPoint = null) {
hasDevice.value = targetPoint.hasDevice;
if (!targetPoint.info) {
@@ -339,15 +342,15 @@ function rClickCallback(demo) {
function handleAddEqu(formInfo) {
demo.addEquipment(targetP.value, formInfo);
// //将墙壁设置为可以穿透点击
// for (let line = 1; line <= 20; line++) {
// if (line < 10) {
// let wall = 'wall_' + '0' + line
// this.scene.getObjectByName(wall).layers.set(0)
// } else if (line >= 10) {
// let wall = 'wall_' + line
// this.scene.getObjectByName(wall).layers.set(0)
// }
// }
for (let line = 1; line <= 20; line++) {
if (line < 10) {
let wall = 'wall_' + '0' + line
this.scene.getObjectByName(wall).layers.set(0)
} else if (line >= 10) {
let wall = 'wall_' + line
this.scene.getObjectByName(wall).layers.set(0)
}
}
}
const centerDialogVisible = ref(false);