袁少华 пре 4 година
родитељ
комит
5288027d79
2 измењених фајлова са 5 додато и 3 уклоњено
  1. 4 2
      pages/dashboard/esop.html
  2. 1 1
      pages/dashboard/video.html

+ 4 - 2
pages/dashboard/esop.html

@@ -27,7 +27,7 @@
         <div class="col-lg-4 col-md-4 page-title">
             E-SOP看板
         </div>
-        <div class="col-lg-3 col-md-3 block-padding">
+        <!-- <div class="col-lg-3 col-md-3 block-padding">
             <button type="button" class="btn btn-warning"
                 onclick="window.location.replace('/pages/dashboard/warehouse.html');">仓库看板</button>
             <button type="button" class="btn btn-warning"
@@ -36,7 +36,7 @@
                 onclick="window.location.replace('/pages/dashboard/line.html');">产线看板</button>
             <button type="button" class="btn btn-warning"
                 onclick="window.location.replace('/pages/dashboard/quality.html');">品质看板</button>
-        </div>
+        </div> -->
         <div class="col-lg-4 col-md-4">
         </div>
     </div>
@@ -124,10 +124,12 @@
                         hideAll();
                         $("#frameMain").show();
                         this.filepath = "/lib/pdfjs/web/viewer.html?file=/upFiles/"+name;
+                        $("#videoType").attr('src',"");
                     }else if(file=='jpg' || file=='jpeg' || file=='png'){
                         hideAll();
                         $("#imgType").show();
                         $("#imgType").attr('src',"/upFiles/"+name);
+                        $("#videoType").attr('src',"");
                     }else if(file=='avi' || file=='mov' || file=='rmvb' || file=='rm' || file=='flv' || file=='mp4' || file=='3gp'){
                         hideAll();
                         $("#videoType").show();

+ 1 - 1
pages/dashboard/video.html

@@ -41,7 +41,7 @@
     </div>
     <div class="my-container" id="div-main">
         <div class="row block-padding">
-             <video id="videoType" src="/upFiles/123.mp4" controls width="100%" height="100%" > </video> 
+             <video id="videoType" src="" controls width="100%" height="100%" > </video> 
              <img id="imgType" src="" width="100%" /> 
         </div>
     </div>