| | |
| | | <!-- <i class="iconfont el-icon-icon-test" @click="nibian.show=true"></i>--> |
| | | <!-- </el-tooltip>--> |
| | | <!-- </div>--> |
| | | <flex-layout :no-bg="true"> |
| | | <flex-layout :no-bg="true" :loading="loading"> |
| | | <div class="content-header" slot="header" :model="inputs"> |
| | | <div class="table-layout"> |
| | | <div class="table-row"> |
| | |
| | | let lastCapacityTest = const_61850.lastCapacityTest; |
| | | let pageConfig = this.$store.getters["user/realTabsConfig"]; |
| | | return { |
| | | loading: false, |
| | | workPlanDialog: false, |
| | | dcdcWorkDialog: false, |
| | | balanceControlDialog: false, |
| | |
| | | historyStateList: historyStateList, |
| | | lastCapacityTest: lastCapacityTest, |
| | | timer: new Timeout("realTime"), |
| | | timer2: new Timeout("realTime"), |
| | | diagram: { |
| | | update: true, |
| | | type: -1, |
| | |
| | | } |
| | | }, |
| | | startTimer() { |
| | | this.timer.start(() => { |
| | | this.$axios |
| | | .all([ |
| | | // 计时器2 |
| | | this.timer2.start(()=>{ |
| | | this.$axios.all([ |
| | | this.realTimeSearch(), |
| | | ]).then(()=>{ |
| | | this.dataChangeFlag = Math.random(); // 数据更新 |
| | | this.timer2.open(); |
| | | }).catch(()=>{ |
| | | this.dataChangeFlag = Math.random(); // 数据更新 |
| | | this.timer2.open(); |
| | | }); |
| | | }, 3000); |
| | | |
| | | // 计时器1 |
| | | this.timer.start(() => { |
| | | this.$axios.all([ |
| | | this.realTimeGroupss(), |
| | | this.realStateTimeData(), |
| | | this.realTimeStateList(), |
| | |
| | | this.inversionData(), |
| | | ]) |
| | | .then(() => { |
| | | this.dataChangeFlag = Math.random(); // 数据更新 |
| | | this.timer.open(); |
| | | }) |
| | | .catch(() => { |
| | | this.dataChangeFlag = Math.random(); // 数据更新 |
| | | this.timer.open(); |
| | | }); |
| | | }, 3000); |
| | |
| | | getBattGroupInfo(BattGroupId) { |
| | | this.homeListShow = false; |
| | | this.timer.name = "movingRingSysteRrealTime"; |
| | | this.timer2.name = "movingRingSysteRrealTime"; |
| | | this.$apis.dataMager.battGroupMager |
| | | .getBattGroupInfo(BattGroupId) |
| | | .then((res) => { |
| | |
| | | if (regEquipType(data.FBSDeviceId, ["equip61850"])) { |
| | | this.getLastCapacityTest(data); |
| | | } |
| | | this.loading = true; |
| | | this.changeTabsName(); |
| | | this.$nextTick(()=>{ |
| | | this.changeTabsName(); |
| | | // 开启循环请求 |
| | | this.startTimer(); |
| | | }); |
| | |
| | | monConnRes.series[0].data = monConnResData; |
| | | // 更新电压图表 |
| | | this.setChart(); |
| | | this.loading = false; |
| | | }).catch(error=>{ |
| | | // 更新电压图表 |
| | | this.setChart(); |
| | | this.loading = false; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 向父级发送同步页面的指令 |
| | |
| | | destroyed() { |
| | | window.removeEventListener("resize", this.resize); |
| | | this.timer.stop(); |
| | | this.timer2.stop(); |
| | | }, |
| | | }; |
| | | </script> |