-
\ No newline at end of file
diff --git a/Frontend/_operation.html b/Frontend/_operation.html
index aaf5212..93ef9ec 100644
--- a/Frontend/_operation.html
+++ b/Frontend/_operation.html
@@ -504,7 +504,7 @@
setDate(null, startdate, enddate);
});
- $(`[onclick="setType(null)"]`).click();
+ $(`[onclick="setType(2)"]`).click();
initDate();
event();
diff --git a/Frontend/_sysMonAll.html b/Frontend/_sysMonAll.html
index 6b01074..c68267c 100644
--- a/Frontend/_sysMonAll.html
+++ b/Frontend/_sysMonAll.html
@@ -102,7 +102,7 @@
}
myBaja.setSubscribeDevicesByBql(ordPath);
myBaja.setSubscribeDevicesCallBack(function (data) {
-
+ //console.log(data)
let matchDevice = allDevList.filter(x => x.device_number == data.device_number_full)[0];
if (!matchDevice) {
return false;
@@ -126,6 +126,16 @@
let cloDevPoiName = matchDevice.device_close_point_name;
let errDevPoiName = matchDevice.device_error_point_name;
+ if (data.point_name == "SSC") {
+ const lightOn = data.value.includes("true")
+ setLightOpenOrClose(lightOn, matchDevice.device_guid);
+ if (lightOn) {
+ setLightValues(matchDevice.device_guid, 200, 0xe1cf18);
+ } else {
+ setLightValues(matchDevice.device_guid, 0, 0xe1cf18);
+ }
+ }
+
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);
@@ -406,7 +416,9 @@
"area_tag": pageAct.AreaTag,
"building_tag": pageAct.buiTag,
},
+ selector: "[name=forgeViewer]",
curDevice: {
+ ...device,
roomDbId: !isNaN(parseInt(device.room_dbid)) ? parseInt(device.room_dbid) : -1,
id: device.device_number,
position: isJSON(device.device_coordinate_3d) ? JSON.parse(device.device_coordinate_3d) : {}, // x: 0, y: 25, z: -2.5 (3.35, -4.81, 12.88
@@ -576,7 +588,7 @@
var parentEle = "";
onEvent("autodesk:click:sprite", "[name=forgeViewer]", function (e, obj) {
forgeUnFocusAll();
- let position = [obj.event.target.toolController.lastClickX, obj.event.target.toolController.lastClickY];
+ let position = [obj.event.target.toolController.lastClickX - 100, obj.event.target.toolController.lastClickY - 100];
let devObj = obj.myData;
let name = allDevList.filter(x => x.device_guid == devObj.device_guid)[0]?.full_name;
devObj.full_name = name;
@@ -589,7 +601,6 @@
})
onEvent("autodesk:complete:sprite", "[name=forgeViewer]", function (e, obj) {
-
$("#floDevList a[name=devItem]").each((idx, ele) => {
let devNum = $(ele).data("number");
let dbid = obj.myDataList.filter(x => x.device_number == devNum)[0]?._dbId;
diff --git a/Frontend/_sysMonFloor.html b/Frontend/_sysMonFloor.html
index 51182ce..48b8ddd 100644
--- a/Frontend/_sysMonFloor.html
+++ b/Frontend/_sysMonFloor.html
@@ -459,6 +459,17 @@
currentData[devIdx]._temp = !isNaN(parseInt(data.value)) ? parseInt(data.value) : 0;
}
+
+ if (data.point_name == "SSC") {
+ const lightOn = data.value.includes("true")
+ setLightOpenOrClose(lightOn, matchDevice.device_guid);
+ if (lightOn) {
+ setLightValues(matchDevice.device_guid, 200, 0xe1cf18);
+ } else {
+ setLightValues(matchDevice.device_guid, 0, 0xffffff);
+ }
+ }
+
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");
diff --git a/Frontend/index.html b/Frontend/index.html
index 7480f5b..0b7aab4 100644
--- a/Frontend/index.html
+++ b/Frontend/index.html
@@ -1,1815 +1,856 @@
-
-
-
+
+
+
+
-
-
-
- Marketing Dashboard - Application Intel - SmartAdmin v4.5.1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-