[系統監控]刪除多餘代碼
This commit is contained in:
		
							parent
							
								
									1f0b2402ef
								
							
						
					
					
						commit
						720008bdee
					
				@ -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) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user