From 7db899884bee3076efb160bd79573bf77f4b4554 Mon Sep 17 00:00:00 2001 From: dev01 Date: Fri, 30 Dec 2022 19:03:31 +0800 Subject: [PATCH] =?UTF-8?q?[Frontend][=E7=B3=BB=E7=B5=B1=E7=9B=A3=E6=8E=A7?= =?UTF-8?q?]=20=E5=B9=B3=E9=9D=A2=E5=9C=96=20baja=20=E8=A1=9D=E7=AA=81?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E8=A7=A3=E6=B1=BA=20|=20=E5=B9=B3=E9=9D=A2?= =?UTF-8?q?=E5=9C=96=E5=89=96=E9=9D=A2=E6=A1=86=E7=A8=8B=E5=BA=8F=E4=B8=B2?= =?UTF-8?q?=E6=8E=A5=20|=20=E7=86=B1=E9=BB=9E=E7=A8=8B=E5=BA=8F=E4=B8=B2?= =?UTF-8?q?=E6=8E=A5=20|=20[=E5=85=A8=E5=9F=9F=E5=8A=9F=E8=83=BD]=20?= =?UTF-8?q?=E7=86=B1=E5=9C=96=E6=BA=AB=E5=BA=A6=E7=89=A9=E4=BB=B6=E5=8C=96?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=AA=BF=E6=95=B4=20|=20=E5=8F=96=E5=BE=97?= =?UTF-8?q?=20node=20Id=20by=20tag=20id=20=E7=A8=8B=E5=BA=8F=E5=84=AA?= =?UTF-8?q?=E5=8C=96=20|=20[FrontendWebApi]=20GetForgeNodeName=20=E5=8F=96?= =?UTF-8?q?=E5=BE=97=E8=B3=87=E6=96=99=E5=BA=AB=20variable=20=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=20forge=20=E4=BE=9D=E6=93=9A=E5=AD=97=E4=B8=B2?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=BB=BA=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/_sysMonAll.html | 21 +- Frontend/_sysMonFloor.html | 15 +- Frontend/js/forge/forgemodel.js | 229 +++++++++--------- .../ApiControllers/DeviceManageController.cs | 38 ++- FrontendWebApi/Models/Device.cs | 1 + 5 files changed, 181 insertions(+), 123 deletions(-) diff --git a/Frontend/_sysMonAll.html b/Frontend/_sysMonAll.html index b08ed6b..5165df3 100644 --- a/Frontend/_sysMonAll.html +++ b/Frontend/_sysMonAll.html @@ -260,20 +260,31 @@ function show3DModel(urn) { launchViewerForHotspot(urn, (viewer, nodeIds) => { let devices = [{ + roomDbId: 7567, id: "Oficina 5", //name: "Oficina-", position: { x: 3.35, y: -4.81, z: 12.88 }, // x: 0, y: 25, z: -2.5 (3.35, -4.81, 12.88 sensorTypes: ["temperature", "humidity"] + }, { + roomDbId: 7567, + id: "Oficina 6", + //name: "Oficina-", + position: { x: 4.35, y: -4.81, z: 11.88 }, // x: 0, y: 25, z: -2.5 (3.35, -4.81, 12.88 + sensorTypes: ["temperature", "humidity"] + }, { + roomDbId: 7567, + id: "Oficina 7", + //name: "Oficina-", + position: { x: 6.35, y: -4.81, z: 16.88 }, // x: 0, y: 25, z: -2.5 (3.35, -4.81, 12.88 + sensorTypes: ["temperature", "humidity"] }]; let option = { - devices:devices, + devices: devices, } let heatMap = new ADHeatMaps(option); - let temp = 10; + heatMap.onComplete = function () { - debugger - heatMap.changeTemp(32); - + heatMap.changeTemp(7567, 32); } },"[name=forgeViewer]"); diff --git a/Frontend/_sysMonFloor.html b/Frontend/_sysMonFloor.html index d05cade..3335f16 100644 --- a/Frontend/_sysMonFloor.html +++ b/Frontend/_sysMonFloor.html @@ -22,20 +22,16 @@ - -