ソースを参照

fix:取消注释

liujiayin 2 年 前
コミット
f6ae64b23b
1 ファイル変更13 行追加13 行削除
  1. 13 13
      src/views/peopleManages/taskStatistics/index.vue

+ 13 - 13
src/views/peopleManages/taskStatistics/index.vue

@@ -983,19 +983,19 @@ export default {
         },
         },
         // 定时任务调用接口,一分钟一次
         // 定时任务调用接口,一分钟一次
         intervalHandle () {
         intervalHandle () {
-            const cishu = 0 // 记录所选择的部门个数,即需要轮询多少次
-            // this.interval = setInterval(() => {
-            //     if (this.positionIni.length === 0) {
-            //         return
-            //     }
-            //     if (cishu > this.positionIni.length - 1) {
-            //         cishu = 0
-            //         this.handleInt([this.positionIni[0]])
-            //     } else {
-            //         this.handleInt([this.positionIni[cishu]])
-            //         cishu++
-            //     }
-            // }, 10000)
+            let cishu = 0 // 记录所选择的部门个数,即需要轮询多少次
+            this.interval = setInterval(() => {
+                if (this.positionIni.length === 0) {
+                    return
+                }
+                if (cishu > this.positionIni.length - 1) {
+                    cishu = 0
+                    this.handleInt([this.positionIni[0]])
+                } else {
+                    this.handleInt([this.positionIni[cishu]])
+                    cishu++
+                }
+            }, 10000)
         },
         },
         allView () {
         allView () {
             // 默认显示全屏
             // 默认显示全屏