From 730654dc661153cd390a32d3170d67a8e35805a4 Mon Sep 17 00:00:00 2001 From: wanli Date: Tue, 29 Nov 2022 23:44:22 +0800 Subject: [PATCH] =?UTF-8?q?[Frontend][=E7=B3=BB=E7=B5=B1=E7=9B=A3=E6=8E=A7?= =?UTF-8?q?]=203D=20=E6=A8=A1=E5=9E=8B=20=E6=9B=B4=E6=94=B9=E8=BC=89?= =?UTF-8?q?=E5=85=A5=E6=99=82=E6=A9=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/_sysElevator.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Frontend/_sysElevator.html b/Frontend/_sysElevator.html index 75a794f..62baf97 100644 --- a/Frontend/_sysElevator.html +++ b/Frontend/_sysElevator.html @@ -54,7 +54,7 @@ - @@ -909,6 +909,7 @@ var allDeviceRowData = []; //所有設備原始資料 var global_emergency_alarm_device_number = []; var zoomToggle = 3; + var isFirstLoad3D = true; $(function () { initChart(); @@ -916,8 +917,6 @@ setCards(); subDeviceSetStatus(); setEleManTable(); - console.log("--- load 3d ---"); - load3DModel(); }) function getFloDevList() { @@ -2301,7 +2300,14 @@ //載入3D模型 function load3DModel() { - console.log("launchViewer~"); launchViewer('dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6LW1vZGVsX3Rlc3QxMTIxLyVFMyU4MCU5MFRFU1QlRTMlODAlOTEubndk'); } + + function show3D() { + if (isFirstLoad3D) { + isFirstLoad3D = false; + load3DModel(); + } + } +