|
@@ -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 () {
|
|
|
// 默认显示全屏
|
|
// 默认显示全屏
|