|
|
|
@ -192,6 +192,7 @@
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId,
|
|
|
|
|
intervalId : 0,
|
|
|
|
|
//加载遮罩
|
|
|
|
|
spinShow: false,
|
|
|
|
|
dateBtnValue: "今日",
|
|
|
|
@ -272,6 +273,10 @@
|
|
|
|
|
this.dateBtnClick('今日');
|
|
|
|
|
this.timingRefresh();
|
|
|
|
|
},
|
|
|
|
|
destroyed: function(){
|
|
|
|
|
//销毁自动刷新
|
|
|
|
|
clearInterval(this.intervalId);
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//页面重绘
|
|
|
|
|
resizeWindow: function () {
|
|
|
|
@ -472,9 +477,10 @@
|
|
|
|
|
//定时刷新
|
|
|
|
|
timingRefresh: function () {
|
|
|
|
|
let that = this;
|
|
|
|
|
setInterval(function () {
|
|
|
|
|
let intervalId = setInterval(function () {
|
|
|
|
|
that.dateBtnClick(that.dateBtnValue);
|
|
|
|
|
}, 1000 * 60);
|
|
|
|
|
this.intervalId = intervalId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|