|
@@ -24,9 +24,9 @@ $("#hotPannel .close").on('click',()=>{
|
|
|
|
|
|
})
|
|
|
|
|
|
-$("#hotPannel input.mui-switch").on('change',()=>{
|
|
|
+$("#hotPannel input.mui-switch").on('change',(e)=>{
|
|
|
var ifOn = $('#hotPannel input.mui-switch').is(':checked');
|
|
|
- window.changeDeviceStatus(window.hotNeedUpdatePannel)
|
|
|
+ window.changeDeviceStatus(window.hotNeedUpdatePannel, ifOn)
|
|
|
})
|
|
|
|
|
|
hardwareTypes = null
|
|
@@ -15613,6 +15613,28 @@ window.Modernizr = function(n, e, t) {
|
|
|
});
|
|
|
|
|
|
|
|
|
+ $.ajax({//获取设备状态
|
|
|
+ method: "GET",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ dataType: "json",
|
|
|
+ contentType: "application/json",
|
|
|
+ url: `/api/device/getParam/${hardware.id}/${hardware.code}`,
|
|
|
+ success: (data)=> {
|
|
|
+ console.log(data)
|
|
|
+ if (data.code === 0) {
|
|
|
+ var info = data.data.find(device=>device.id==hardware.id)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return true
|
|
|
|
|
|
}else{
|