|
@@ -428,9 +428,7 @@ export default {
|
|
|
// 请求服务
|
|
|
requestData (showLoading) {
|
|
|
this.requestWpInfo(showLoading);
|
|
|
- this.requestLoss(showLoading);
|
|
|
- this.requestPower(showLoading);
|
|
|
- this.requestMonthPower(showLoading);
|
|
|
+
|
|
|
},
|
|
|
|
|
|
// 获取场站监视数据
|
|
@@ -697,9 +695,12 @@ export default {
|
|
|
that.$nextTick(() => {
|
|
|
that.getWp();
|
|
|
that.requestData(false);
|
|
|
- // that.timmer = setInterval(() => {
|
|
|
- // that.requestData(false);
|
|
|
- // }, that.$store.state.websocketTimeSec);
|
|
|
+ that.requestLoss(false);
|
|
|
+ that.requestPower(false);
|
|
|
+ that.requestMonthPower(false);
|
|
|
+ that.timmer = setInterval(() => {
|
|
|
+ that.requestData(false);
|
|
|
+ }, that.$store.state.websocketTimeSec);
|
|
|
that.timmer2 = setInterval(() => {
|
|
|
that.nowTime = new Date().formatDate("hh:mm:ss");
|
|
|
}, 1000);
|