Kaynağa Gözat

修改看板滚动时间5s

cyy 3 yıl önce
ebeveyn
işleme
028ad972fd
1 değiştirilmiş dosya ile 39 ekleme ve 4 silme
  1. 39 4
      src/views/statistics/index.vue

+ 39 - 4
src/views/statistics/index.vue

@@ -56,16 +56,38 @@
             </el-date-picker> -->
           </div>
 
-          <div class="block">
+          <!-- <div class="block">
             
-          </div>
+          </div> -->
 
           <!-- <div class="goBackButton" @click.prevent="goBack()" >
             返回
           </div> -->
+          <div 
+            @click.prevent="rollstop()" 
+            style="width: 8%;
+            height:2.825rem;
+            line-height: 2.825rem;
+            text-align:center;
+            float: right;
+            margin: -3% 12% 0 0;" 
+            v-if="rollup">
+            <dv-border-box-8>暂停</dv-border-box-8>
+          </div>
+          <div 
+            @click.prevent="rollcontinue()" 
+            style="width: 8%;
+            height:2.825rem;
+            line-height: 2.825rem;
+            text-align:center;
+            float: right;
+            margin: -3% 12% 0 0;" 
+            v-else>
+            <dv-border-box-8>继续</dv-border-box-8>
+          </div>
           <div 
             @click.prevent="goBack()" 
-            style="width: 12%;
+            style="width: 8%;
             height:2.825rem;
             line-height: 2.825rem;
             text-align:center;
@@ -73,6 +95,7 @@
             margin: -3% 3% 0 0;" >
             <dv-border-box-8>返回</dv-border-box-8>
           </div>
+          
         </div>
         <dv-border-box-7  backgroundColor="rgba(6, 30, 93, 0.5)" ><div class="ttitle">质量方针:公正、科学、准确、高效</div></dv-border-box-7>
         <div class="congxiebox7" style="display: flex;justify-content: space-between;padding: 1.5% 0.2%;">
@@ -302,7 +325,7 @@ import * as forEach from 'lodash/forEach'
       this.timer1 = setInterval(()=>{
         this.pageOT = !this.pageOT
         console.log(this.pageOT)
-      },300000)
+      },5000)
     },
     data() {
       return {
@@ -329,6 +352,7 @@ import * as forEach from 'lodash/forEach'
         dataScope: [],
         colorw: '#fff',
         pageOT: true,
+        rollup:true,
         quality:[
           {name: '任务及时完成率' ,val: ''},
           {name: '检测报告差错率' ,val: ''},
@@ -538,6 +562,17 @@ import * as forEach from 'lodash/forEach'
       goBack(){
         this.$router.back(-1)
         clearInterval(this.timer1);
+      },
+      rollcontinue(){
+        this.timer1 = setInterval(()=>{
+          this.pageOT = !this.pageOT
+          console.log(this.pageOT)
+        },5000)
+        this.rollup=true
+      },
+      rollstop(){
+        clearInterval(this.timer1);
+        this.rollup=false
       }
     },
     created() {