Commit 39c0ab44 by liuyang

2024-10-21 驾驶舱定时刷新

parent bcb4f481
......@@ -278,8 +278,25 @@
this.queryZHCLInfo();
this.setOption2();
this.queryXMinfo();
setInterval(()=> {
this.initPage();
}, 10000);
},
methods: {
initPage(){
this.queryCompanyInfo();
this.queryMaxDate();
this.queryZCLinfo();
this.queryGroupCLnfo();
this.setOption();
this.queryBJInfo();
this.queryZHCLInfo();
this.setOption2();
this.queryXMinfo();
},
handledataPicker(){
this.queryZCLinfo();
this.queryGroupCLnfo();
......
......@@ -271,23 +271,21 @@
this.setOption2();
// var _this = this;
// setTimeout(function() {
// _this.initPage();
// }, 60000);
setTimeout(function() {
window.location.reload();
}, 60000);
setInterval(()=> {
this.initPage();
}, 10000);
},
methods: {
// initPage(){
// this.getYesterdayDateFormatted();
// this.queryCompanyInfo();
// this.queryBySbStatus();
// this.querySbYes();
// this.querySbNo();
// },
initPage(){
this.getYesterdayDateFormatted();
this.queryCompanyInfo();
this.queryBySbStatus();
this.querySbYes();
this.querySbNo();
this.$forceUpdate()
},
formatTime(currentTime) {
const formattedTime =
currentTime.getFullYear() +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment