Explorar el Código

解决能耗日报不能点击的问题

wukai hace 4 meses
padre
commit
8361fb7b46
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      main.html

+ 6 - 6
main.html

@@ -2668,7 +2668,7 @@
             var s2 = $("#datepicker2").val()
             //var devcode = $.trim($("#imp_devcode").val())
             var itemcode = $("#date_select").attr("itemcode");
-            if (s1 == "" || (s2 == ""&&itemcode!=4&&itemcode!=10&&itemcode!=11)) return;
+            if (s1 == "" || (s2 == ""&&itemcode!=4&&itemcode!=10&&itemcode!=11&&itemcode!=12&&itemcode!=13)) return;
             switch (parseInt(itemcode)) {
                 case 1:
                     window.open(SERVER_URL + "/export/production?start="+s1+"&end="+s2);
@@ -3126,7 +3126,7 @@
         var activeImg = $(".bottom img.active");
         activeImg.attr({'src':activeImg.attr('src').replace('_active',''),'class':''});
         $(".bottom img[t='"+currentTargetType+"']").attr({'src':'image/fac_btn_active.png','class':'active'});
-        
+
         $("body>div.hideDiv[for='FAC']").show();
         $("body>div.hideDiv[for!='FAC']").hide();
         await player.Native.Model.setModelVisible("IN02",false);
@@ -3249,7 +3249,7 @@
         var activeImg = $(".bottom img.active");
         activeImg.attr({'src':activeImg.attr('src').replace('_active',''),'class':''});
         $(".bottom img[t='"+currentTargetType+"']").attr({'src':'image/in05_btn_active.png','class':'active'});
-        
+
          await player.Native.Model.setModelVisible("FAC",false);
         await player.Native.Model.setModelVisible("IN02",false);
         await player.Native.Model.setModelVisible("IN03",false);
@@ -3277,7 +3277,7 @@
         var activeImg = $(".bottom img.active");
         activeImg.attr({'src':activeImg.attr('src').replace('_active',''),'class':''});
         $(".bottom img[t='"+currentTargetType+"']").attr({'src':'image/in04_btn_active.png','class':'active'});
-        
+
         await player.Native.Model.setModelVisible("FAC",false);
         await player.Native.Model.setModelVisible("IN02",false);
         await player.Native.Model.setModelVisible("IN03",false);
@@ -3306,7 +3306,7 @@
         var activeImg = $(".bottom img.active");
         activeImg.attr({'src':activeImg.attr('src').replace('_active',''),'class':''});
         $(".bottom img[t='"+currentTargetType+"']").attr({'src':'image/in03_btn_active.png','class':'active'});
-        
+
         await player.Native.Model.setModelVisible("FAC",false);
         await player.Native.Model.setModelVisible("IN02",false);
         await player.Native.Model.setModelVisible("IN04",false);
@@ -3335,7 +3335,7 @@
         var activeImg = $(".bottom img.active");
         activeImg.attr({'src':activeImg.attr('src').replace('_active',''),'class':''});
         $(".bottom img[t='"+currentTargetType+"']").attr({'src':'image/in02_btn_active.png','class':'active'});
-        
+
         await player.Native.Model.setModelVisible("FAC",false);
         await player.Native.Model.setModelVisible("IN03",false);
         await player.Native.Model.setModelVisible("IN04",false);