Browse Source

组装看板添加循环播放

yhluo 3 months ago
parent
commit
2199b66f16
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/views/zz/index.vue

+ 11 - 0
src/views/zz/index.vue

@@ -135,6 +135,17 @@ export default {
     this.$nextTick(() => {
     this.$nextTick(() => {
       this.autoFullScreen();
       this.autoFullScreen();
     })
     })
+
+    setInterval(() => {
+      var currentLine = sessionStorage.getItem("zzlicode");
+      for(var item of this.linedata){
+        if(currentLine != item.LI_NAME){
+          sessionStorage.setItem("zzlicode",item.LI_NAME)
+          location.reload();
+        }
+      }
+    }, 60000);
+
   setTimeout(() => {
   setTimeout(() => {
       this.$router.push("/makeprocess")
       this.$router.push("/makeprocess")
     }, 300000)
     }, 300000)