xzw 4 年之前
父节点
当前提交
8c88189f7f
共有 2 个文件被更改,包括 7 次插入3 次删除
  1. 1 1
      js/edit.js
  2. 6 2
      js/main_2020_show.js

+ 1 - 1
js/edit.js

@@ -174,7 +174,7 @@ EditTools.prototype.initSaveAll = function() {
                     order: hotLength++//因为热点保存后在hots里的顺序会被修改,所以使用order来记录顺序 
                 }
                 if (hot.visiblePanos)
-                    hots[sid].visiblePanos = hot.visiblePanos
+                    hots[i].visiblePanos = hot.visiblePanos
 
                 if (hot.infoAttribute) {
                     delete hot.infoAttribute.position;

+ 6 - 2
js/main_2020_show.js

@@ -12,7 +12,7 @@ $("#hotPannel .close, #hotPannel .iconquxiao").on('click',(e)=>{//关闭
     $("#hotPannel>div").css("display","");
     loadMonitor({id: "monitor", url:null })
     window.hotNeedUpdatePannel = null;
-     
+    $(".hardware-list .hard-body").css("display",'block')//展开列表
 })
 
 $("#hotPannel input.mui-switch").on('change',(e)=>{//灯
@@ -15685,6 +15685,10 @@ window.Modernizr = function(n, e, t) {
                         getAjax(`/api/device/getStatus/${hardware.code}`, null, (data)=>{
                             console.log(data)
                             if (data.code === 0) {
+                                
+                                $(".hardware-list .hard-body").css("display",'none')//收起列表
+                                
+                                
                                 data = data.data;
                                 var devType = hardwareTypes.find(type=>type.id == hardware.devTypeId).name
                                 $("#hotPannel>div").addClass("hide")
@@ -15983,7 +15987,7 @@ window.Modernizr = function(n, e, t) {
             
             var hasHardware;
             if(window.MP_PREFETCHED_MODELDATA.flyInOnlyBySwitch){ 
-                hasHardware = this.showPannel();
+                hasHardware = this.showPannel({focus:true});
                 if(player.mode != 'panorama' || !player.currentPano)return; 
             }else{