From a24e6ad3dd99b50e29af6f74c57fa646bca86d43 Mon Sep 17 00:00:00 2001 From: czt <czt18638530771@163.com> Date: 星期四, 02 一月 2025 17:15:48 +0800 Subject: [PATCH] 提交配置 --- igds-app/js/admin/device-temp.js | 35 ++++++++++++++++++++--------------- 1 files changed, 20 insertions(+), 15 deletions(-) diff --git a/igds-app/js/admin/device-temp.js b/igds-app/js/admin/device-temp.js index cfc3a37..de8011a 100644 --- a/igds-app/js/admin/device-temp.js +++ b/igds-app/js/admin/device-temp.js @@ -48,6 +48,7 @@ data1.data.depotId = self.depotId // depotType = self.depotType // depotName = self.depotName + getDeviceList(); } //鑾峰彇璁惧鍒楄〃锛堢┖璋冿級 @@ -61,8 +62,10 @@ success: function(result) { if (result.code == "0000") { deviceData = result.data; + renderDevice(); } else { mui.toast(result.msg); + renderDevice(); } }, error: function() { @@ -118,9 +121,9 @@ if (frontList && frontList.length > 0) { html += '<div class="m-tf"><div class="g-tittf1">浠撳簱姝i潰</div><ul class="ul-listmana1 ullisttf1">'; $.each(frontList, function(index, item) { - + targetStatus = item.status html += '<li><div class="con myfancy" passCode="' + item.passCode + '" serId="' + - item.serId + '" targetStatus="' + item.targetStatus + '" name="' + item.name + + item.serId + '" targetStatus="' + item.status + '" name="' + item.name + '" data-win="#win_kt"><div class="pic pic2"><img src="images/e1.png"></div>'; if (targetStatus == 'OPEN') { html += '<div class="info out" style="background-image: url(images/e8.png);">' + @@ -137,9 +140,9 @@ 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) { - + targetStatus = item.status html += '<li><div class="con myfancy" passCode="' + item.passCode + '" serId="' + - item.serId + '" targetStatus="' + item.targetStatus + '" name="' + item.name + + item.serId + '" targetStatus="' + item.status + '" name="' + item.name + '" data-win="#win_kt"><div class="pic pic2"><img src="images/e1.png"></div>'; if (targetStatus == 'OPEN') { html += '<div class="info out" style="background-image: url(images/e8.png);">' + @@ -156,9 +159,9 @@ 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) { - + targetStatus = item.status html += '<li><div class="con myfancy" passCode="' + item.passCode + '" serId="' + - item.serId + '" targetStatus="' + item.targetStatus + '" name="' + item.name + + item.serId + '" targetStatus="' + item.status + '" name="' + item.name + '" data-win="#win_kt"><div class="pic pic2"><img src="images/e1.png"></div>'; if (targetStatus == 'OPEN') { html += '<div class="info out" style="background-image: url(images/e8.png);">' + @@ -175,7 +178,7 @@ 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) { - + targetStatus = item.status html += '<li><div class="con myfancy" passCode="' + item.passCode + '" serId="' + item.serId + '" targetStatus="' + item.status + '" name="' + item.name + '" data-win="#win_kt"><div class="pic pic2"><img src="images/e1.png"></div>'; @@ -192,14 +195,12 @@ 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>'; } - // $("#recordList").html(html); + $("#recordList").html(html); } var slider = mui(".mui-slider"); @@ -234,14 +235,14 @@ var html = ''; if (targetStatus == 'OPEN') { document.getElementById("vibrationSwitch").classList.add('mui-active'); - $('.mui-switch-handle').css("-webkit-transform" , "translate3d(16px, 0, 0)"); + $('.mui-switch-handle').css("-webkit-transform", "translate3d(16px, 0, 0)"); console.log("寮�") } else if (targetStatus == 'CLOSE') { document.getElementById("vibrationSwitch").classList.remove('mui-active'); - $('.mui-switch-handle').css("-webkit-transform" , "translate3d(0, 0, 0)"); + $('.mui-switch-handle').css("-webkit-transform", "translate3d(0, 0, 0)"); console.log("鍏�") } - + var passCode = this.getAttribute("passCode"); var serId = this.getAttribute("serId"); var name = this.getAttribute("name"); @@ -281,6 +282,10 @@ data.data.targetTemp = targetTemp setTemp(); closePop(); + document.getElementById("range").value = 17 + $('.subbar').css({ + width: ((17 - 9) / 16) * 100 + '%' + }) }); //鍏抽棴寮圭獥 function closePop() { -- Gitblit v1.9.3