|
@@ -356,6 +356,9 @@ export default {
|
|
await this.searchInfo();
|
|
await this.searchInfo();
|
|
await this.searchVideo();
|
|
await this.searchVideo();
|
|
},
|
|
},
|
|
|
|
+ // beforeDestroy() {
|
|
|
|
+ // this.clearInterval(this.timer);
|
|
|
|
+ // },
|
|
methods: {
|
|
methods: {
|
|
...dock({ dockQuery: 'query', dockFetch: 'fetch', goodsquery: 'goodsquery' }),
|
|
...dock({ dockQuery: 'query', dockFetch: 'fetch', goodsquery: 'goodsquery' }),
|
|
...expertsuser({ expertQuery: 'query' }),
|
|
...expertsuser({ expertQuery: 'query' }),
|
|
@@ -404,10 +407,6 @@ export default {
|
|
let techolfourList = techol.filter(i => i.field == '新能源及节能技术');
|
|
let techolfourList = techol.filter(i => i.field == '新能源及节能技术');
|
|
this.$set(this, `techolfourList`, techolfourList);
|
|
this.$set(this, `techolfourList`, techolfourList);
|
|
}
|
|
}
|
|
- // 倒计时
|
|
|
|
- this.timer = setInterval(() => {
|
|
|
|
- this.setTime(res.data.start_time);
|
|
|
|
- }, 1000);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 查询专家
|
|
// 查询专家
|
|
@@ -455,6 +454,12 @@ export default {
|
|
this.$set(this.statNum, `zhxh`, zhxh.total);
|
|
this.$set(this.statNum, `zhxh`, zhxh.total);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ seachtime() {
|
|
|
|
+ // 倒计时
|
|
|
|
+ // this.timer = setInterval(() => {
|
|
|
|
+ // this.setTime(this.dockInfo.start_time);
|
|
|
|
+ // }, 1000);
|
|
|
|
+ },
|
|
// 倒计时
|
|
// 倒计时
|
|
setTime(end) {
|
|
setTime(end) {
|
|
let now = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
let now = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
@@ -494,7 +499,7 @@ export default {
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
this.times--;
|
|
this.times--;
|
|
if (this.times === 0) {
|
|
if (this.times === 0) {
|
|
- this.searchVideo();
|
|
|
|
|
|
+ this.searchInfo();
|
|
this.times = 5;
|
|
this.times = 5;
|
|
clearInterval(this.timer);
|
|
clearInterval(this.timer);
|
|
}
|
|
}
|
|
@@ -524,6 +529,13 @@ export default {
|
|
},
|
|
},
|
|
immediate: true,
|
|
immediate: true,
|
|
},
|
|
},
|
|
|
|
+ dockInfo: {
|
|
|
|
+ immediate: true,
|
|
|
|
+ deep: true,
|
|
|
|
+ handler(val) {
|
|
|
|
+ this.seachtime();
|
|
|
|
+ },
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|