1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
//空调 this .airConditionerCtls = function () { var _this = this ; $( "#toolbar" ).hide(); //获取到文件位置信息 //边缘弹出 layer.open({ title: "空调控制" , type: 1, offset: 'lt' //具体配置参考:offset参数项 , content: '<div style="padding: 10px;width:300px;min-height:120px;background-color:rgba(255,255,255,0.4);">\ <table class="table">\ <tr><td style="text-align:center;width:80px;">空调</td><td style="text-align:center;width:200px;">操作</td></tr>\ <tr><td style="text-align:left;width:80px;">立柜空调</td><td style="text-align:center;">\ <button id="LGAC_btn1" onclick="tl3dCoreBusiness.changeCameraPosition({x: -98, y: 356, z: 407},{x: -75, y: 121, z: 762},1000)">定位</button>\ <button id="LGAC_btn2" onclick="tl3dCoreBusiness.openLSAirconditioner(\'aircondition_57\')">开启</button>\ <button id="LGAC_btn3" onclick="tl3dCoreBusiness.closeLSAirconditioner(\'aircondition_57\')">关闭</button>\ </td></tr>\ <tr><td style="text-align:left;width:80px;">中央空调</td><td style="text-align:center;">\ <button onclick="tl3dCoreBusiness.showCenterAirConditioner()" id="centerAC_btn1">定位</button>\ <button onclick="tl3dCoreBusiness.openCenterAirConditioner()" id="centerAC_btn2">开启</button>\ <button onclick="tl3dCoreBusiness.closeCenterAirConditioner()" id="centerAC_btn3">关闭</button>\ </td></tr>\ </table></div>' , btn: false , btnAlign: 'c' //按钮居中 , shade: 0 //不显示遮罩 , end: function () { $( "#toolbar" ).show(); _this.hideCenterAirConditioner(); _this.hideLSAirconditioner(); } }); } this .LGAirConditions = []; //开启立式空调 this .openLSAirconditioner = function (airConName) { var tempAirWind= null ; var _this = this ; var aircondition = tl3DCoreObj.commonFunc.findObject(airConName); if ( this .LGAirConditions && this .LGAirConditions.length > 0) { $.each( this .LGAirConditions, function (_index, _obj) { if (_obj.name == airConName + "_wind_1" ) { tempAirWind = _obj; } }); } //{x: -82.581, y: 92.342, z: 743.966} if (tempAirWind == null ) { var lgairwin = { "show" : true , "uuid" : "" , "name" :airConName+ "_wind_1" , // "lgAirC_wind_1", "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 200, "z" : 0 }, { "x" : 0, "y" : 150, "z" : -60 }, { "x" : 0, "y" : 150, "z" : -200 }], "position" : { "x" : aircondition.position.x, "y" : aircondition.position.y - 122, "z" : aircondition.position.z - 13 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 16, "chNub" : 8, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 8, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 1, "run" : true , "bgcolor" : "rgba(255, 227, 248, 0.02)" } }, "segments" : 64, "radialSegments" : 2, "closed" : false , "radius" : 20, "showSortNub" : 196, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null } var temObj1 = tl3DCoreObj.createObjByJson(lgairwin); tl3DCoreObj.addObject(temObj1); _this.LGAirConditions.push(temObj1); tempAirWind = temObj1; } if (tempAirWind) { tempAirWind.visible = true ; } } //关闭立式空调 this .closeLSAirconditioner = function (airConName,isCloseAll) { var _this = this ; if ( this .LGAirConditions && this .LGAirConditions.length > 0) { $.each( this .LGAirConditions, function (_index, _obj) { if (_obj.name == airConName + "_wind_1" ) { _obj.visible = false ; } if (isCloseAll) { _obj.visible = false ; } }); } } //隐藏立式空调风口动画 this .hideLSAirconditioner = function () { var _this = this ; if ( this .LGAirConditions && this .LGAirConditions.length > 0) { $.each( this .LGAirConditions, function (_index, _obj) { _obj.visible = false ; }); } } //开启中央空调 this .centerAirConditionerDevs = []; //显示中央空调设备 this .showCenterAirConditioner = function () { var _this = this ; if (_this.centerAirConditionerDevs.length <= 0) { var centerAirCondition = [ { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_2_2" , "objType" : "cube2" , "length" : 78, "width" : 78, "height" : 40, "x" : -80.785, "y" : 370.664, "z" : -456.654, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0 }, "skin_down" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_right" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 } } }, "showSortNub" : 7, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_2_3" , "objType" : "cube2" , "length" : 78, "width" : 78, "height" : 40, "x" : -80.785, "y" : 370.664, "z" : 518.684, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0 }, "skin_down" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_right" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 } } }, "showSortNub" : 7, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_2_1" , "objType" : "cube2" , "length" : 78, "width" : 78, "height" : 40, "x" : -80.785, "y" : 370.664, "z" : 48.478, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0 }, "skin_down" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_right" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 } } }, "showSortNub" : 7, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_1_1" , "objType" : "cube2" , "length" : 78, "width" : 78, "height" : 40, "x" : -605.659, "y" : 370.664, "z" : 48.478, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0 }, "skin_down" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_right" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 } } }, "showSortNub" : 7, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_1_2" , "objType" : "cube2" , "length" : 78, "width" : 78, "height" : 40, "x" : -605.659, "y" : 370.664, "z" : -467.654, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0 }, "skin_down" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_right" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 } } }, "showSortNub" : 7, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_1_3" , "objType" : "cube2" , "length" : 78, "width" : 78, "height" : 40, "x" : -605.659, "y" : 370.664, "z" : 553.501, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0 }, "skin_down" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_right" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 } } }, "showSortNub" : 7, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_3_1" , "objType" : "cube2" , "length" : 78, "width" : 78, "height" : 40, "x" : 442.379, "y" : 370.664, "z" : 48.478, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0 }, "skin_down" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_right" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 } } }, "showSortNub" : 7, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_3_2" , "objType" : "cube2" , "length" : 78, "width" : 78, "height" : 40, "x" : 442.379, "y" : 370.664, "z" : -461.396, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0 }, "skin_down" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_right" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 } } }, "showSortNub" : 7, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_3_3" , "objType" : "cube2" , "length" : 78, "width" : 78, "height" : 40, "x" : 442.379, "y" : 370.664, "z" : 526.744, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0 }, "skin_down" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 }, "skin_right" : { "skinColor" : 16777215, "side" : 1, "opacity" : 0.3 } } }, "showSortNub" : 7, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_1" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 0, "z" : 1500 }, { "x" : 0, "y" : 0, "z" : 0 }], "position" : { "x" : -70.779, "y" : 419.052, "z" : -751.968 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 32, "chNub" : 8, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 3, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 2, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 4, "radialSegments" : 4, "closed" : false , "radius" : 40, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_3" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 0, "z" : 1500 }, { "x" : 0, "y" : 0, "z" : 0 }], "position" : { "x" : 443.302, "y" : 419.052, "z" : -751.968 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 32, "chNub" : 8, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 3, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 2, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 4, "radialSegments" : 4, "closed" : false , "radius" : 40, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_2" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 0, "z" : 1500 }, { "x" : 0, "y" : 0, "z" : 0 }], "position" : { "x" : -604.569, "y" : 419.052, "z" : -751.968 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 32, "chNub" : 8, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 3, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 2, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 4, "radialSegments" : 4, "closed" : false , "radius" : 40, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_1" , "objType" : "cube2" , "length" : 80, "width" : 1500, "height" : 80, "x" : 444.17, "y" : 426.022, "z" : 0, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 7895160, "side" : 0, "opacity" : 0.4 }, "skin_down" : { "skinColor" : 7895160, "side" : 0, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0 }, "skin_right" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0 } } }, "showSortNub" : 196, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_2" , "objType" : "cube2" , "length" : 80, "width" : 1500, "height" : 80, "x" : -76.111, "y" : 419.507, "z" : 0, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 7895160, "side" : 0, "opacity" : 0.4 }, "skin_down" : { "skinColor" : 7895160, "side" : 0, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0 }, "skin_right" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0 } } }, "showSortNub" : 196, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "center_air_conditioning_3" , "objType" : "cube2" , "length" : 80, "width" : 1500, "height" : 80, "x" : -604.307, "y" : 426.022, "z" : 0, "style" : { "skinColor" : 16777215, "skin" : { "skin_up" : { "skinColor" : 7895160, "side" : 0, "opacity" : 0.4 }, "skin_down" : { "skinColor" : 7895160, "side" : 0, "opacity" : 0.3 }, "skin_fore" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0.3 }, "skin_behind" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0.3 }, "skin_left" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0 }, "skin_right" : { "skinColor" : 16777215, "side" : 0, "opacity" : 0 } } }, "showSortNub" : 196, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "thick" : null , "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_1_1" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 200, "z" : 0 }, { "x" : 50, "y" : 50, "z" : 0 }, { "x" : 150, "y" : -50, "z" : null }], "position" : { "x" : -51.031, "y" : 182.086, "z" : -450.709 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 8, "chNub" : 2, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 8, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 1, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 6, "radialSegments" : 2, "closed" : false , "radius" : 20, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_1_3" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 200, "z" : 0 }, { "x" : 50, "y" : 50, "z" : 0 }, { "x" : 150, "y" : -50, "z" : null }], "position" : { "x" : -51.031, "y" : 182.086, "z" : 518.391 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 8, "chNub" : 2, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 8, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 1, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 6, "radialSegments" : 2, "closed" : false , "radius" : 20, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_1_2" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 200, "z" : 0 }, { "x" : 50, "y" : 50, "z" : 0 }, { "x" : 150, "y" : -50, "z" : null }], "position" : { "x" : -51.031, "y" : 182.086, "z" : 56.652 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 8, "chNub" : 2, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 8, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 1, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 6, "radialSegments" : 2, "closed" : false , "radius" : 20, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_3_1" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 200, "z" : 0 }, { "x" : 50, "y" : 50, "z" : 0 }, { "x" : 150, "y" : -50, "z" : null }], "position" : { "x" : -596.596, "y" : 182.086, "z" : -450.709 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 8, "chNub" : 2, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 8, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 1, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 6, "radialSegments" : 2, "closed" : false , "radius" : 20, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_3_2" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 200, "z" : 0 }, { "x" : 50, "y" : 50, "z" : 0 }, { "x" : 150, "y" : -50, "z" : null }], "position" : { "x" : -596.596, "y" : 182.086, "z" : 69.057 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 8, "chNub" : 2, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 8, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 1, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 6, "radialSegments" : 2, "closed" : false , "radius" : 20, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_3_3" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 200, "z" : 0 }, { "x" : 50, "y" : 50, "z" : 0 }, { "x" : 150, "y" : -50, "z" : null }], "position" : { "x" : -596.596, "y" : 182.086, "z" : 571.083 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 8, "chNub" : 2, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 8, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 1, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 6, "radialSegments" : 2, "closed" : false , "radius" : 20, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_2_1" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 200, "z" : 0 }, { "x" : 50, "y" : 50, "z" : 0 }, { "x" : 150, "y" : -50, "z" : null }], "position" : { "x" : 449.11, "y" : 182.086, "z" : -450.709 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 8, "chNub" : 2, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 8, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 1, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 6, "radialSegments" : 2, "closed" : false , "radius" : 20, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_2_2" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 200, "z" : 0 }, { "x" : 50, "y" : 50, "z" : 0 }, { "x" : 150, "y" : -50, "z" : null }], "position" : { "x" : 449.11, "y" : 182.086, "z" : 58.707 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 8, "chNub" : 2, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 8, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 1, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 6, "radialSegments" : 2, "closed" : false , "radius" : 20, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }, { "show" : true , "uuid" : "" , "name" : "cacWind_2_3" , "objType" : "flowTube" , "points" : [{ "x" : 0, "y" : 200, "z" : 0 }, { "x" : 50, "y" : 50, "z" : 0 }, { "x" : 150, "y" : -50, "z" : null }], "position" : { "x" : 449.11, "y" : 182.086, "z" : 550.649 }, "scale" : { "x" : 1, "y" : 1, "z" : 1 }, "rotation" : [{ "direction" : "x" , "degree" : 0 }, { "direction" : "y" , "degree" : 0 }, { "direction" : "z" , "degree" : 0 }], "style" : { "skinColor" : 16772846, "imgurl" : "../../img/3dImg/right2wind.png" , "opacity" : 1, "canvasSkin" : { "cwidth" : 1024, "cheight" : 128, "cwNub" : 8, "chNub" : 2, "cMarginW" : 0.2, "cMarginH" : 0.2, "speed" : 8, "fps" : 40, "direction" : "w" , "forward" : "f" , "side" : 1, "run" : true , "bgcolor" : "rgba(4, 4, 4, 0.098)" } }, "segments" : 6, "radialSegments" : 2, "closed" : false , "radius" : 20, "showSortNub" : 16, "customType1" : "" , "customType2" : "" , "animation" : null , "dbclickEvents" : null , "BindDevId" : null , "BindDevName" : null , "devInfo" : null , "BindMeteId" : null , "BindMeteName" : null }] $.each(centerAirCondition, function (_index,_obj){ var temObj1 = tl3DCoreObj.createObjByJson(_obj); tl3DCoreObj.addObject(temObj1); _this.centerAirConditionerDevs.push(temObj1) }) } if (_this.centerAirConditionerDevs.length > 0) { $.each(_this.centerAirConditionerDevs, function (_index, _obj) { _obj.visible = true ; }) } //获取中央空调开关状态 var isopen = true ; //此处调用函数 获取中央空调状态 if (isopen) { _this.openCenterAirConditioner(); } else { _this.closeCenterAirConditioner(); } } //隐藏中央空调设备 this .hideCenterAirConditioner = function () { var _this = this ; if (_this.centerAirConditionerDevs.length > 0) { $.each(_this.centerAirConditionerDevs, function (_index, _obj) { _obj.visible = false ; }) } } //打开中央空调 this .openCenterAirConditioner = function () { var _this = this ; _this.showCenterAirConditioner(); if (_this.centerAirConditionerDevs.length > 0) { $.each(_this.centerAirConditionerDevs, function (_index, _obj) { if (_obj.name.indexOf( "cacWind_" ) >= 0) { _obj.visible = true ; } }) } } //关闭中央空调 this .closeCenterAirConditioner = function () { var _this = this ; $( "#centerAC_btn1" ).attr( "disabled" , true ); $( "#centerAC_btn2" ).attr( "disabled" , true ); $( "#centerAC_btn3" ).attr( "disabled" , true ); if (_this.centerAirConditionerDevs.length > 0) { $.each(_this.centerAirConditionerDevs, function (_index, _obj) { if (_obj.name.indexOf( "cacWind_" ) >= 0) { _obj.visible = false ; } }) } setTimeout( function () { _this.hideCenterAirConditioner(); $( "#centerAC_btn1" ).attr( "disabled" , false ); $( "#centerAC_btn2" ).attr( "disabled" , false ); $( "#centerAC_btn3" ).attr( "disabled" , false ); }, 2000); } |