|
@@ -213,6 +213,7 @@ export default {
|
213
|
213
|
components:{
|
214
|
214
|
BreadCrumb
|
215
|
215
|
},
|
|
216
|
+ inject: ['reload'],
|
216
|
217
|
data(){
|
217
|
218
|
return{
|
218
|
219
|
crumbs: [
|
|
@@ -240,6 +241,7 @@ export default {
|
240
|
241
|
|
241
|
242
|
voice:true,
|
242
|
243
|
a:1,
|
|
244
|
+ newTimes:null
|
243
|
245
|
|
244
|
246
|
}
|
245
|
247
|
},
|
|
@@ -249,6 +251,11 @@ export default {
|
249
|
251
|
},
|
250
|
252
|
},
|
251
|
253
|
created(){
|
|
254
|
+ if(sessionStorage.getItem('lineUpKey') != null){
|
|
255
|
+ if(sessionStorage.getItem('lineUpKey') == 1){
|
|
256
|
+ this.dialogTableVisible = true
|
|
257
|
+ }
|
|
258
|
+ }
|
252
|
259
|
this.initData = {
|
253
|
260
|
cmd: "queue/join",
|
254
|
261
|
data: {type:2,page:1,size:6},
|
|
@@ -318,12 +325,17 @@ export default {
|
318
|
325
|
this.timerID = setInterval(() => {
|
319
|
326
|
this.updateTime()
|
320
|
327
|
}, 1000);
|
|
328
|
+ this.newTimes = setInterval(() => {
|
|
329
|
+ this.reload()
|
|
330
|
+ }, 1000 * 60 * 30);
|
321
|
331
|
},
|
322
|
332
|
beforeDestroy(){
|
323
|
333
|
clearInterval(this.timer); // 清除定时器
|
324
|
334
|
this.timer = null
|
325
|
335
|
clearInterval(this.timerID);
|
326
|
336
|
this.timerID = null; // 清除定时器
|
|
337
|
+ clearInterval(this.newTimes); // 清除定时器
|
|
338
|
+ this.newTimes = null
|
327
|
339
|
let unObj = {
|
328
|
340
|
cmd:'queue/unjoin',
|
329
|
341
|
data:{type:2}
|
|
@@ -453,6 +465,7 @@ export default {
|
453
|
465
|
return (zero + num).slice(-digit);
|
454
|
466
|
},
|
455
|
467
|
fullscreenboard: function() {
|
|
468
|
+ sessionStorage.setItem('lineUpKey',1);
|
456
|
469
|
this.dialogTableVisible = true;
|
457
|
470
|
// let routeData = this.$router.resolve({ path: '/fullscreenboard' })
|
458
|
471
|
// window.open(routeData.href, '_blank')
|