| | |
| | | "serId": "", |
| | | "location": "", |
| | | "type": "", |
| | | "status":"" |
| | | "status": "" |
| | | } |
| | | //设备控制 |
| | | var data = { |
| | |
| | | depotId = self.depotId |
| | | // depotType = self.depotType |
| | | // depotName = self.depotName |
| | | getDeviceList(); |
| | | } |
| | | |
| | | //获取设备列表(通风) |
| | |
| | | success: function(result) { |
| | | if (result.code == "0000") { |
| | | deviceData = result.data; |
| | | renderDevice(); |
| | | } else { |
| | | mui.toast(result.msg); |
| | | renderDevice(); |
| | | } |
| | | }, |
| | | error: function() { |
| | |
| | | rightList.push(item) |
| | | } |
| | | }) |
| | | |
| | | if (frontList && frontList.length > 0) { //仓库正面 |
| | | html += '<div class="m-tf"><div class="g-tittf1">仓库正面</div><ul class="ul-listmana1 ullisttf1">'; |
| | | $.each(frontList, function(index, item) { |
| | | if (item.type == '01') { //风窗 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + |
| | | '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front" type="01">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e3.png);">' + item |
| | | .name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '02') { //轴流风机 |
| | | html += '<li><div class="con myfancy zhouliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front">'; |
| | | html += '<div class="pic"><img src="images/d8.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e4.png);">' + item |
| | | .name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '04') { //环流风机 |
| | | html += '<li><div class="con myfancy huanliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front">'; |
| | | html += '<div class="pic"><img src="images/d7.png"></div>' |
| | | html += '<div class="info out" style="background-image: url(images/e5.png);"> ' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0B') { //通风口 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + |
| | | '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front" type="0B">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_0B_OPEN.png"></div>' |
| | | html += '<div class="info out" ' + item.name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0C') { //混流风机 |
| | | html += '<li><div class="con myfancy hunliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e6.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0D') { //加压风机 |
| | | html += '<li><div class="con myfancy jiaya" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front">'; |
| | | html += '<div class="pic pic1"><img src="images/d9.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e7.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } |
| | | }) |
| | | html += '</ul></div>' |
| | | } else if (backList && backList.length > 0) { //仓库反面 |
| | | html += '<div class="m-tf"><div class="g-tittf1">仓库反面</div><ul class="ul-listmana1 ullisttf1">'; |
| | | $.each(backList, function(index, item) { |
| | | if (item.type == '01') { //风窗 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + |
| | | '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="back" type="01">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e3.png);">' + item |
| | | .name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '02') { //轴流风机 |
| | | html += '<li><div class="con myfancy zhouliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="back">'; |
| | | html += '<div class="pic"><img src="images/d8.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e4.png);">' + item |
| | | .name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '04') { //环流风机 |
| | | html += '<li><div class="con myfancy huanliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="back">'; |
| | | html += '<div class="pic"><img src="images/d7.png"></div>' |
| | | html += '<div class="info out" style="background-image: url(images/e5.png);"> ' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0B') { //通风口 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + |
| | | '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="back" type="0B">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_0B_OPEN.png"></div>' |
| | | html += '<div class="info out" ' + item.name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0C') { //混流风机 |
| | | html += '<li><div class="con myfancy hunliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="back">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e6.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0D') { //加压风机 |
| | | html += '<li><div class="con myfancy jiaya" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="back">'; |
| | | html += '<div class="pic pic1"><img src="images/d9.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e7.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } |
| | | }) |
| | | html += '</ul></div>' |
| | | } else if (leftList && leftList.length > 0) { //仓库左侧面 |
| | | html += '<div class="m-tf"><div class="g-tittf1">仓库左侧面</div><ul class="ul-listmana1 ullisttf1">'; |
| | | $.each(leftList, function(index, item) { |
| | | if (item.type == '01') { //风窗 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + |
| | | '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="left" type="01">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e3.png);">' + item |
| | | .name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '02') { //轴流风机 |
| | | html += '<li><div class="con myfancy zhouliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="left">'; |
| | | html += '<div class="pic"><img src="images/d8.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e4.png);">' + item |
| | | .name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '04') { //环流风机 |
| | | html += '<li><div class="con myfancy huanliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="left">'; |
| | | html += '<div class="pic"><img src="images/d7.png"></div>' |
| | | html += '<div class="info out" style="background-image: url(images/e5.png);"> ' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0B') { //通风口 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + |
| | | '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="left" type="0B">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_0B_OPEN.png"></div>' |
| | | html += '<div class="info out" ' + item.name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0C') { //混流风机 |
| | | html += '<li><div class="con myfancy hunliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="left">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e6.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0D') { //加压风机 |
| | | html += '<li><div class="con myfancy jiaya" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="left">'; |
| | | html += '<div class="pic pic1"><img src="images/d9.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e7.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } |
| | | }) |
| | | html += '</ul></div>' |
| | | } else if (rightList && rightList.length > 0) { //仓库右侧面 |
| | | html += '<div class="m-tf"><div class="g-tittf1">仓库右侧面</div><ul class="ul-listmana1 ullisttf1">'; |
| | | $.each(rightList, function(index, item) { |
| | | if (item.type == '01') { //风窗 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + |
| | | '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right" type="01">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e3.png);">' + item |
| | | .name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '02') { //轴流风机 |
| | | html += '<li><div class="con myfancy zhouliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right">'; |
| | | html += '<div class="pic"><img src="images/d8.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e4.png);">' + item |
| | | .name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '04') { //环流风机 |
| | | html += '<li><div class="con myfancy huanliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right">'; |
| | | html += '<div class="pic"><img src="images/d7.png"></div>' |
| | | html += '<div class="info out" style="background-image: url(images/e5.png);"> ' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0B') { //通风口 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + |
| | | '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right" type="0B">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_0B_OPEN.png"></div>' |
| | | html += '<div class="info out" ' + item.name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0C') { //混流风机 |
| | | html += '<li><div class="con myfancy hunliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e6.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0D') { //加压风机 |
| | | html += '<li><div class="con myfancy jiaya" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right">'; |
| | | html += '<div class="pic pic1"><img src="images/d9.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e7.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } |
| | | }) |
| | | html += '</ul></div>' |
| | | } |
| | | |
| | | } else { |
| | | html += |
| | | '<div class="m-tf"><div class="g-tittf1" style="text-align: center;font-size: 20px;color:#dd524d">暂无数据</div></div>'; |
| | | } |
| | | if (frontList && frontList.length > 0) { //仓库正面 |
| | | html += '<div class="m-tf"><div class="g-tittf1">仓库正面</div><ul class="ul-listmana1 ullisttf1">'; |
| | | $.each(frontList, function(index, item) { |
| | | if (item.type == '01') { //风窗 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front" type="01">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e3.png);">' + item.name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '02') { //轴流风机 |
| | | html += '<li><div class="con myfancy zhouliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front">'; |
| | | html += '<div class="pic"><img src="images/d8.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e4.png);">' + item.name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '04') { //环流风机 |
| | | html += '<li><div class="con myfancy huanliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front">'; |
| | | html += '<div class="pic"><img src="images/d7.png"></div>' |
| | | html += '<div class="info out" style="background-image: url(images/e5.png);"> ' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0B') { //通风口 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front" type="0B">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_0B_OPEN.png"></div>' |
| | | html += '<div class="info out" ' + item.name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0C') { //混流风机 |
| | | html += '<li><div class="con myfancy hunliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e6.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0D') { //加压风机 |
| | | html += '<li><div class="con myfancy jiaya" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="front">'; |
| | | html += '<div class="pic pic1"><img src="images/d9.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e7.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } |
| | | }) |
| | | html += '</ul></div>' |
| | | } else if (backList && backList.length > 0) { //仓库反面 |
| | | html += '<div class="m-tf"><div class="g-tittf1">仓库反面</div><ul class="ul-listmana1 ullisttf1">'; |
| | | $.each(backList, function(index, item) { |
| | | if (item.type == '01') { //风窗 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="back" type="01">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e3.png);">' + item.name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '02') { //轴流风机 |
| | | html += '<li><div class="con myfancy zhouliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + '" location="back">'; |
| | | html += '<div class="pic"><img src="images/d8.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e4.png);">' + item.name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '04') { //环流风机 |
| | | html += '<li><div class="con myfancy huanliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + '" location="back">'; |
| | | html += '<div class="pic"><img src="images/d7.png"></div>' |
| | | html += '<div class="info out" style="background-image: url(images/e5.png);"> ' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0B') { //通风口 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="back" type="0B">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_0B_OPEN.png"></div>' |
| | | html += '<div class="info out" ' + item.name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0C') { //混流风机 |
| | | html += '<li><div class="con myfancy hunliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + '" location="back">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e6.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0D') { //加压风机 |
| | | html += '<li><div class="con myfancy jiaya" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + '" location="back">'; |
| | | html += '<div class="pic pic1"><img src="images/d9.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e7.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } |
| | | }) |
| | | html += '</ul></div>' |
| | | } else if (leftList && leftList.length > 0) { //仓库左侧面 |
| | | html += '<div class="m-tf"><div class="g-tittf1">仓库左侧面</div><ul class="ul-listmana1 ullisttf1">'; |
| | | $.each(leftList, function(index, item) { |
| | | if (item.type == '01') { //风窗 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="left" type="01">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e3.png);">' + item.name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '02') { //轴流风机 |
| | | html += '<li><div class="con myfancy zhouliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + '" location="left">'; |
| | | html += '<div class="pic"><img src="images/d8.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e4.png);">' + item.name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '04') { //环流风机 |
| | | html += '<li><div class="con myfancy huanliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + '" location="left">'; |
| | | html += '<div class="pic"><img src="images/d7.png"></div>' |
| | | html += '<div class="info out" style="background-image: url(images/e5.png);"> ' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0B') { //通风口 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="left" type="0B">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_0B_OPEN.png"></div>' |
| | | html += '<div class="info out" ' + item.name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0C') { //混流风机 |
| | | html += '<li><div class="con myfancy hunliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + '" location="left">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e6.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0D') { //加压风机 |
| | | html += '<li><div class="con myfancy jiaya" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + '" location="left">'; |
| | | html += '<div class="pic pic1"><img src="images/d9.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e7.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } |
| | | }) |
| | | html += '</ul></div>' |
| | | } else if (rightList && rightList.length > 0) { //仓库右侧面 |
| | | html += '<div class="m-tf"><div class="g-tittf1">仓库右侧面</div><ul class="ul-listmana1 ullisttf1">'; |
| | | $.each(rightList, function(index, item) { |
| | | if (item.type == '01') { //风窗 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right" type="01">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e3.png);">' + item.name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '02') { //轴流风机 |
| | | html += '<li><div class="con myfancy zhouliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right">'; |
| | | html += '<div class="pic"><img src="images/d8.png"></div>' |
| | | html += '<div class="info in" style="background-image: url(images/e4.png);">' + item.name + |
| | | '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '04') { //环流风机 |
| | | html += '<li><div class="con myfancy huanliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right">'; |
| | | html += '<div class="pic"><img src="images/d7.png"></div>' |
| | | html += '<div class="info out" style="background-image: url(images/e5.png);"> ' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0B') { //通风口 |
| | | html += '<li><div class="con myfancy chuangkou" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right" type="0B">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_0B_OPEN.png"></div>' |
| | | html += '<div class="info out" ' + item.name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0C') { //混流风机 |
| | | html += '<li><div class="con myfancy hunliu" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right">'; |
| | | html += '<div class="pic"><img src="images/device-status/STATUS_01_OPEN.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e6.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } else if (item.type == '0D') { //加压风机 |
| | | html += '<li><div class="con myfancy jiaya" status="' + item.status + '" passCode="' + |
| | | item.passCode + '" serId="' + item.serId + '"name="' + item.name + |
| | | '" location="right">'; |
| | | html += '<div class="pic pic1"><img src="images/d9.png"></div>' |
| | | html += '<div class="info full" style="background-image: url(images/e7.png);">' + item |
| | | .name + '</div>' |
| | | html += '</div></li>' |
| | | } |
| | | }) |
| | | html += '</ul></div>' |
| | | } |
| | | } else { |
| | | html += |
| | | '<div class="m-tf"><div class="g-tittf1" style="text-align: center;font-size: 20px;color:#dd524d">暂无数据</div></div>'; |
| | | } |
| | | $("#recordList").html(html); |
| | | |
| | | } |
| | | |
| | | //设备操作请求 |