| | |
| | | data1.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() { |
| | |
| | | |
| | | //渲染页面 |
| | | function renderDevice() { |
| | | console.log(JSON.stringify(deviceData)) |
| | | var html = ''; |
| | | if (deviceData) { |
| | | var deviceList = deviceData.listDevice |
| | |
| | | html += '</ul></div>' |
| | | } |
| | | } else { |
| | | html += '<div class="m-tf"><div class="g-tittf1" style="text-align: center;font-size: 20px;color:#dd524d>暂无数据</div>'; |
| | | html += '<div class="m-tf"><div class="g-tittf1" style="text-align: center;font-size: 20px;color:#dd524d">暂无数据</div></div>'; |
| | | } |
| | | } else { |
| | | html += '<div class="m-tf"><div class="g-tittf1" style="text-align: center;font-size: 20px;color:#dd524d>暂无数据</div>'; |
| | | html += '<div class="m-tf"><div class="g-tittf1" style="text-align: center;font-size: 20px;color:#dd524d">暂无数据</div></div>'; |
| | | // html += '<div>1111</div>' |
| | | } |
| | | // $("#recordList").html(html); |
| | | console.log(html) |
| | | $("#recordList").html(html); |
| | | } |
| | | |
| | | //电磁阀操作 |