From 0b27b9263ce721844d124ec4541a83b0f6db6c13 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期一, 19 六月 2023 10:46:26 +0800 Subject: [PATCH] 电子巡更 --- igds-app/js/admin/device-n2.js | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/igds-app/js/admin/device-n2.js b/igds-app/js/admin/device-n2.js index ea1a78f..4f84b24 100644 --- a/igds-app/js/admin/device-n2.js +++ b/igds-app/js/admin/device-n2.js @@ -42,6 +42,7 @@ data1.data.depotId = self.depotId // depotType = self.depotType // depotName = self.depotName + getDeviceList(); } @@ -56,8 +57,10 @@ success: function(result) { if (result.code == "0000") { deviceData = result.data; + renderDevice(); } else { mui.toast(result.msg); + renderDevice(); } }, error: function() { @@ -92,6 +95,7 @@ //娓叉煋椤甸潰 function renderDevice() { + console.log(JSON.stringify(deviceData)) var html = ''; if (deviceData) { var deviceList = deviceData.listDevice @@ -188,12 +192,14 @@ 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); } //鐢电闃�鎿嶄綔 -- Gitblit v1.9.3