| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290 | 
							- <!DOCTYPE html>
 
- <html lang="zh">
 
- <head>
 
-     <meta charset="utf-8">
 
-     <meta name="viewport" content="width=device-width, initial-scale=0.5">
 
-     <title>云看板</title>
 
-     <link href="/lib/bootstrap/bootstrap.min.css" rel="stylesheet" />
 
-     <link href="/css/dashboard.css" rel="stylesheet" />
 
-     <script type="text/javascript" src="/js/service.js"></script>
 
-     <script type="text/javascript" src="/js/session.js"></script>
 
-     <script type="text/javascript" src="/js/getService.js"></script>
 
-     <script type="text/javascript" src="/lib/jquery-3.4.1.js"></script>
 
-     <script type="text/javascript" src="/lib/jquery-3.4.1.min.js"></script>
 
- </head>
 
- <body id="container" class="container-fluid" style="background-color: aliceblue;">
 
-     <style>
 
-         body{    
 
-             overflow-y: hidden;
 
-             overflow-x: hidden;
 
-         }
 
-     </style>
 
-      <!-- <div class="row no-padding head-bar" style="height:81px"> -->
 
-         <!-- <div class="col-lg-1 col-md-1">
 
-         </div> 
 
-          <div class="col-lg-4 col-md-4 page-title">
 
-             云看板
 
-         </div>  -->
 
-         <!-- <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"
 
-                 onclick="window.location.replace('/pages/dashboard/produce.html');">制造看板</button>
 
-             <button type="button" class="btn btn-warning"
 
-                 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 class="col-lg-4 col-md-4">
 
-         </div>-->
 
-     <!-- </div>  -->
 
-     <div class="my-container" id="div-main" style="height: 100%;width: 100%;">
 
-         <div id="two" style="height: 100%;width: 100%;">
 
-             
 
-             <div style="width: 50%;height: 100%;float:left;margin-left: -25px;margin-right: 5px;" v-for="task in taskList">
 
-                 <video autoplay="true" loop="true" muted="muted" id="twoVideo2"  v-if="task.isVideo" class="videoType" :src="'/upVedio/ABB/'+task.fileName"  controls width="100%" height="100%" > </video> 
 
-                 <img v-if="task.isImg" class="imgType" :src="'/upVedio/ABB/'+task.fileName" width="100%" /> 
 
-                 <iframe v-if="task.isPdf" class="pdfType" width="100%" border="0" frameborder="0" v-bind:src="'/lib/pdfjs/web/viewer.html?file=/upVedio/ABB/'+task.fileName" style="background-color:#ffffff"></iframe>
 
-             </div>
 
-             <div style="width: 49%;height: 100%;float:left;">
 
-                 <video autoplay="true" loop="true" muted="muted" id="twoVideo" class="videoType" :src="'/upVedio/ABB/'+firstFile"  controls width="106%" height="100%" > </video> 
 
-                 <img id="twoImg" class="imgType" :src="'/upVedio/ABB/'+firstFile" width="100%" />
 
-                 <iframe class="pdfType" id="twoPdf"  width="100%" border="0" frameborder="0" v-bind:src="'/lib/pdfjs/web/viewer.html?file=/upVedio/ABB/'+firstFile" style="background-color:#ffffff"></iframe>
 
-             </div>
 
-             
 
-         </div>
 
-         <div class="row" v-for="task in taskList" id="one" style="margin-left: -25px"> 
 
-             <video v-if="task.isVideo" autoplay="true" loop="true" muted="muted" id="oneVideo"  class="videoType" :src="'/upVedio/AAA/'+task.fileName"  controls width="100%" height="100%" > </video> 
 
-             <img v-if="task.isImg" class="imgType" :src="'/upVedio/AAA/'+task.fileName" width="101%" />
 
-             <iframe v-if="task.isPdf" class="pdfType" width="100%" border="0" frameborder="0" v-bind:src="'/lib/pdfjs/web/viewer.html?file=/upVedio/AAA/'+task.fileName" style="background-color:#ffffff"></iframe>
 
-        </div>  
 
-        <div id="three" style="max-height: 100%;">
 
-         <div style="height: 50%;">
 
-             <div class="threeImg" style="width: 50%;float:left;text-align: center;" v-for="task in taskA">
 
-                 <video v-if="task.isVideo" autoplay="true" loop="true" muted="muted" :src="'/upVedio/CCC/A/'+task.fileName"  controls width="100%" height="100%" > </video> 
 
-                 <img   v-if="task.isImg" :src="'/upVedio/CCC/A/'+task.fileName" style="max-height: 100%;
 
-                 max-width: 100%;" />
 
-             </div>
 
-             <div class="threeImg" style="width: 50%;float:left;text-align: center;" v-for="task in taskB">
 
-                 <video v-if="task.isVideo" autoplay="true" loop="true" muted="muted" :src="'/upVedio/CCC/B/'+task.fileName"  controls width="100%" height="100%" > </video> 
 
-                 <img  v-if="task.isImg"  :src="'/upVedio/CCC/B/'+task.fileName" style="max-height: 100%;
 
-                 max-width: 100%;" />
 
-             </div>
 
-        </div>
 
-        <div style="height: 50%;">
 
-             <div class="threeImg" style="width: 50%;float:left;text-align: center;" v-for="task in taskC">
 
-                 <video v-if="task.isVideo" autoplay="true" loop="true" muted="muted" :src="'/upVedio/CCC/C/'+task.fileName"  controls width="100%" height="100%" > </video> 
 
-                 <img   v-if="task.isImg" :src="'/upVedio/CCC/C/'+task.fileName" style="max-height: 100%;
 
-                 max-width: 100%;" />
 
-             </div>
 
-             <div class="threeImg" style="width: 50%;float:left;text-align: center;" v-for="task in taskD">
 
-                 <video v-if="task.isVideo" autoplay="true" loop="true" muted="muted" :src="'/upVedio/CCC/D/'+task.fileName"  controls width="100%" height="100%" > </video> 
 
-                 <img  v-if="task.isImg"  :src="'/upVedio/CCC/D/'+task.fileName" style="max-height: 100%;
 
-                 max-width: 100%;"/>
 
-             </div>
 
-         </div>
 
-        </div>
 
-        
 
-     </div>
 
-     <!-- jQuery  -->
 
-     <script src="/lib/jquery.min.js"></script>
 
-     <script src="/lib/vue.min.js"></script>
 
-     <script src="/lib/echarts/echarts.min.js"></script>
 
-     <script src="/lib/echarts/theme/macarons.js"></script>
 
-     <script src="/js/service/produce-task.js"></script>
 
-     <script type="text/javascript">
 
-         // setTimeout(ServiceProduceTask.getVedioFileList(),500)
 
-         // $(".videoType").height($(window).height()-85);
 
-         // $(".imgType").height($(window).height()-85);
 
-         $(".videoType").height($(window).height());
 
-         $(".imgType").height($(window).height());
 
-         $(".pdfType").height($(window).height());
 
-         $(".threeImg").height($(window).height()/2);
 
-         var vm = new Vue({
 
-                     el: '#div-main',
 
-                     data: {
 
-                         listInit: ServiceProduceTask.getVedioFileList(),
 
-                         taskList: [],
 
-                         timer: '',
 
-                         pageSize: 1,
 
-                         pageIndex: 0,
 
-                         timer: '',
 
-                         upVideo:'',
 
-                         firstFile:'',
 
-                         taskA:[],
 
-                         taskB:[],
 
-                         taskC:[],
 
-                         taskD:[],
 
-                         page:{
 
-                             pageSizeA: 1,
 
-                             pageIndexA: 0,
 
-                             pageSizeB: 1,
 
-                             pageIndexB: 0,
 
-                             pageSizeC: 1,
 
-                             pageIndexC: 0,
 
-                             pageSizeD: 1,
 
-                             pageIndexD: 0
 
-                         }
 
-                     },
 
-                     methods: {
 
-                         
 
-                         get() {
 
-                             this.upVideo = this.listInit[0].upVideo;
 
-                             
 
-                             this.firstFile = this.listInit[0].fileName;
 
-                             if(this.upVideo != 'CCC'){
 
-                                 if(this.listInit[0].isImg){
 
-                                     $("#twoVideo").hide();
 
-                                     $("#twoPdf").hide();
 
-                                 }else if(this.listInit[0].isVideo){
 
-                                     $("#twoImg").hide();
 
-                                     $("#twoPdf").hide();
 
-                                 }else{
 
-                                     $("#twoVideo").hide();
 
-                                     $("#twoImg").hide();
 
-                                 }
 
-                             }else{
 
-                                 $("#twoVideo").hide();
 
-                                 $("#twoPdf").hide();
 
-                                 $("#twoImg").hide();
 
-                             }
 
-                             
 
-                             if(this.upVideo == 'AAA'){
 
-                                $("#two").hide();
 
-                                $("#three").hide();
 
-                             }else if(this.upVideo=='ABB'){
 
-                                $("#one").hide();
 
-                                $("#three").hide();
 
-                             //    $("#one").contents().hide();
 
-                             //    console.log($("#one").contents())
 
-                             //    this.listInit.splice(0, 1);
 
-                             }else{
 
-                                 $("#one").hide();
 
-                                 $("#two").hide();
 
-                             }
 
-                             
 
-                         },
 
-                         get2(){
 
-                             this.listInit=ServiceProduceTask.getVedioFileList();
 
-                             console.log(this.upVideo)
 
-                             if(this.upVideo!='CCC'){
 
-                                 if(this.upVideo != 'AAA'){
 
-                                     this.listInit.splice(0, 1);
 
-                                 }
 
-                                 this.taskList = this.listInit.slice(this.pageIndex,this.pageSize);
 
-                                 if(this.pageSize >= this.listInit.length){
 
-                                     this.pageIndex = 0;
 
-                                     this.pageSize = 1;
 
-                                 }else{
 
-                                     this.pageIndex = this.pageIndex + 1;
 
-                                     this.pageSize = this.pageSize + 1;
 
-                                 }
 
-                             }else{
 
-                                 
 
-                                 this.taskA=this.listInit[0].CCCA.slice(this.page.pageIndexA,this.page.pageSizeA);
 
-                                 if(this.page.pageSizeA >= this.listInit[0].CCCA.length){
 
-                                     this.page.pageIndexA = 0;
 
-                                     this.page.pageSizeA = 1;
 
-                                 }else{
 
-                                     this.page.pageIndexA = this.page.pageIndexA + 1;
 
-                                     this.page.pageSizeA = this.page.pageSizeA + 1;
 
-                                 }
 
-                                 this.taskB=this.listInit[0].CCCB.slice(this.page.pageIndexB,this.page.pageSizeB);
 
-                                 if(this.page.pageSizeB >= this.listInit[0].CCCB.length){
 
-                                     this.page.pageIndexB = 0;
 
-                                     this.page.pageSizeB = 1;
 
-                                 }else{
 
-                                     this.page.pageIndexB = this.page.pageIndexB + 1;
 
-                                     this.page.pageSizeB = this.page.pageSizeB + 1;
 
-                                 }
 
-                                 this.taskC=this.listInit[0].CCCC.slice(this.page.pageIndexC,this.page.pageSizeC);
 
-                                 if(this.page.pageSizeC >= this.listInit[0].CCCC.length){
 
-                                     this.page.pageIndexC = 0;
 
-                                     this.page.pageSizeC = 1;
 
-                                 }else{
 
-                                     this.page.pageIndexC = this.page.pageIndexC + 1;
 
-                                     this.page.pageSizeC = this.page.pageSizeC + 1;
 
-                                 }
 
-                                 this.taskD=this.listInit[0].CCCD.slice(this.page.pageIndexD,this.page.pageSizeD);
 
-                                 if(this.page.pageSizeD >= this.listInit[0].CCCD.length){
 
-                                     this.page.pageIndexD = 0;
 
-                                     this.page.pageSizeD = 1;
 
-                                 }else{
 
-                                     this.page.pageIndexD = this.page.pageIndexD + 1;
 
-                                     this.page.pageSizeD = this.page.pageSizeD + 1;
 
-                                 }
 
-                             }
 
-                             
 
-                             // this.getVideo();
 
-                         },
 
-                         getVideo(){
 
-                             var _video1 = $('#twoVideo')[0];
 
-                             var _video2 = $('#twoVideo2')[0];
 
-                             var _video3 = $('#oneVideo')[0];
 
-                             
 
-                             if($('#twoVideo').is(':hidden') && _video1.paused){
 
-                             }else{
 
-                                 _video1.play();
 
-                             }
 
-                             if($('#twoVideo2').is(':hidden') && _video2.paused){
 
-                             }else{
 
-                                 _video1.play();
 
-                             }
 
-                             if($('#oneVideo').is(':hidden') && _video3.paused){
 
-                             }else{
 
-                                 _video1.play();
 
-                             }
 
-                            
 
-                         }
 
-                     },
 
-                     mounted() {
 
-                         this.get();
 
-                         this.get2();
 
-                         this.timer = setInterval(this.get2, 25000);
 
-                         
 
-                     },
 
-                     beforeDestroy() {
 
-                         clearInterval(this.timer);
 
-                     }
 
-                 })
 
-         
 
-         // function getVideo(){
 
-         //     var _video1 = $('#twoVideo')[0];
 
-         //     var _video2 = $('#twoVideo2')[0];
 
-         //     var _video3 = $('#oneVideo')[0];
 
-             
 
-         //     if($('#twoVideo').is(':hidden') && _video1.paused){
 
-         //     }else{
 
-         //         _video1.play();
 
-         //     }
 
-         //     if($('#twoVideo2').is(':hidden') && _video2.paused){
 
-         //     }else{
 
-         //         _video1.play();
 
-         //     }
 
-         //     if($('#oneVideo').is(':hidden') && _video3.paused){
 
-         //     }else{
 
-         //         _video1.play();
 
-         //     }
 
-             
 
-         //     if(_video3.paused){
 
-         //        _video3.play();
 
-         //        //_video.pause();//暂停
 
-         //     }
 
-         // }
 
-        
 
-         
 
-     </script>
 
- </body>
 
- </html>
 
 
  |