xzw 4 years ago
parent
commit
40fa517de9
2 changed files with 5 additions and 5 deletions
  1. 3 3
      js/main_2020_show.js
  2. 2 2
      js/showHardware.js

+ 3 - 3
js/main_2020_show.js

@@ -24,8 +24,8 @@ $("#hotPannel input.mui-switch").on('change',(e)=>{//灯
 
 var deviceBtnBind = function($elem, paramCode, paramValue){
     $elem.on('click',(e)=>{
-        paramValue = paramValue instanceof Function ? paramValue() : paramValue
-        window.changeDeviceStatus(window.hotNeedUpdatePannel, paramCode, paramValue, (a)=>{
+        paramValue_ = paramValue instanceof Function ? paramValue() : paramValue
+        window.changeDeviceStatus(window.hotNeedUpdatePannel, paramCode, paramValue_, (a)=>{
             hotNeedUpdatePannel.showPannel()  //success  update
         })
     })
@@ -22282,7 +22282,7 @@ window.Modernizr = function(n, e, t) {
                  //-------------------
                 window.initOverlay(r)
                 this.model.loadOverlays() 
-                 
+                $('.hardware-list').removeClass('unable') 
                 //-------------------
                 
                 

+ 2 - 2
js/showHardware.js

@@ -134,14 +134,14 @@ $(function () {
        
       success: function (data) {
         console.log(data.msg)
-        $(".waiting").romoveClass('showloading')  
+        $(".waiting").removeClass('showloading')  
         if (data.code === 0) {
            success && success()
         } else {
            fail && fail()
         }
       },error:function(){
-          $(".waiting").romoveClass('showloading')
+          $(".waiting").removeClass('showloading')
           fail && fail()
       }
     });