From 720008bdee3a95e5e896d8695ce4c50d84d3e05f Mon Sep 17 00:00:00 2001 From: Celeste Date: Tue, 30 May 2023 16:11:46 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=B3=BB=E7=B5=B1=E7=9B=A3=E6=8E=A7]=E5=88=AA?= =?UTF-8?q?=E9=99=A4=E5=A4=9A=E9=A4=98=E4=BB=A3=E7=A2=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/_sysMonAll.html | 103 ++++++--------------------------------- 1 file changed, 15 insertions(+), 88 deletions(-) diff --git a/Frontend/_sysMonAll.html b/Frontend/_sysMonAll.html index aa9b970..dafebe2 100644 --- a/Frontend/_sysMonAll.html +++ b/Frontend/_sysMonAll.html @@ -52,22 +52,22 @@ var forgeInvType = null; var forgeInvTypeDef = null; - $(function () { - $(loadEle).Loading("start"); - getBuildMenu((arr, data) => { - buildMenuData = data; - if (arr.indexOf(4) != -1) { - getFloDevList(arr[0] == 4 ? "left" : "right"); - setLightColor(); - } - if (arr.indexOf(3) != -1) { - getHotspotPoint(() => { - show3DModel(data.urn_3D); - getInviForge(); + $(function () { + $(loadEle).Loading("start"); + getBuildMenu((arr, data) => { + buildMenuData = data; + if (arr.indexOf(4) != -1) { + getFloDevList(arr[0] == 4 ? "left" : "right"); + setLightColor(); + } + if (arr.indexOf(3) != -1) { + getHotspotPoint(() => { + show3DModel(data.urn_3D); + getInviForge(); + }); + } }); - } }); - }); // 依據 drawing type 決定呈現畫面 function getHtmlByType(type = 0, data = {}) { @@ -306,80 +306,7 @@ }); } - // heatMap?.changeTemp(matchDevice.device_number, 0); - // } - // } - - // if (data.point_name == "Temp") { - // heatMap?.changeTemp( - // data.device_number_full, - // !isNaN(parseInt(data.value)) ? parseInt(data.value) : 0 - // ); - // let devIdx = allDevList.findIndex( - // (x) => x.device_number == data.device_number_full - // ); - // allDevList[devIdx]._temp = !isNaN(parseInt(data.value)) - // ? parseInt(data.value) - // : 0; - // } - // if ( - // data.point_name == norDevPoiName && - // data.value == matchDevice.device_normal_point_value - // ) { - // //顯示正常燈號 - // $(`#${matchDevice.device_number}_status`) - // .attr("data-light-type", "normal") - // .data("light-type", "normal"); - // } else if ( - // data.point_name == cloDevPoiName && - // data.value == matchDevice.device_close_point_value - // ) { - // $(`#${matchDevice.device_number}_status`) - // .attr("data-light-type", "close") - // .data("light-type", "close"); - // } else if ( - // data.point_name == errDevPoiName && - // data.value == matchDevice.device_error_point_value - // ) { - // $(`#${matchDevice.device_number}_status`) - // .attr("data-light-type", "error") - // .data("light-type", "error"); - // } - // if ( - // allDevList.length === - // lightOnHotColorArr.length + lightOffHotColorArr.length - // ) { - // changeColorForHotspot( - // lightOnHotColorArr.map(({ spriteDbid }) => spriteDbid), - // null, - // true - // ); - // changeColorForHotspot( - // lightOffHotColorArr.map(({ spriteDbid }) => spriteDbid), - // null, - // false - // ); - - // } - // $(loadEle).Loading("close"); - - // setLightColor(); - // setForgeHotSpotColor(matchDevice); - // lightDevForgeSpotLig(matchDevice); - // // 從設備訂閱更新每個設備卡片即時點位 - // setDevItemPoiValBySub(data); - // }); - - // myBaja.setSubscribeDeviceEndCallBack(function (data) { - // endPageLoading(); - // if (data.findIndex((x) => x.point_name == "Temp") != -1) { - // // 顯示溫度條 - // showHeat("[name=forgeHeatBar]"); - // } - // }); - // } - - function lightDevForgeSpotLig(devObj) { } + function lightDevForgeSpotLig(devObj) { } // 從設備訂閱更新每個設備卡片即時點位 function setDevItemPoiValBySub(data) {