| | |
| | | if (this.acTabs == "tblData") { |
| | | this.table.datas = tblData; |
| | | } else if (this.acTabs == "dianchigaojing") { |
| | | let postData = { |
| | | battGroupId: this.batt.BattGroupId |
| | | } |
| | | BattRtAlarmActionGetInfo(postData).then((res) => { |
| | | let rs = JSON.parse(res.data.result); |
| | | if (rs.code == 1) { |
| | | this.table2.datas = rs.data |
| | | } |
| | | }).catch((err) => { |
| | | console.log(err) |
| | | }); |
| | | BattRsAlarmActionGetInfo(postData).then((res) => { |
| | | let rs = JSON.parse(res.data.result); |
| | | if (rs.code == 1) { |
| | | console.log(rs.data) |
| | | this.table1.datas = rs.data |
| | | } |
| | | }).catch((err) => { |
| | | console.log(err) |
| | | }); |
| | | this.loadDevAla(); |
| | | } |
| | | }); |
| | | }, |
| | | loadDevAla() { |
| | | let postData = { |
| | | battGroupId: this.batt.BattGroupId |
| | | } |
| | | BattRtAlarmActionGetInfo(postData).then((res) => { |
| | | let rs = JSON.parse(res.data.result); |
| | | if (rs.code == 1) { |
| | | this.table2.datas = rs.data |
| | | } |
| | | }).catch((err) => { |
| | | console.log(err) |
| | | }); |
| | | BattRsAlarmActionGetInfo(postData).then((res) => { |
| | | let rs = JSON.parse(res.data.result); |
| | | if (rs.code == 1) { |
| | | this.table1.datas = rs.data |
| | | } |
| | | }).catch((err) => { |
| | | console.log(err) |
| | | }); |
| | | }, |
| | | toggleChange() { |
| | |
| | | this.realTimeGroupss(), |
| | | this.realTimePowerOffs(), |
| | | this.realTimeStateList(), |
| | | this.loadDevAla(), |
| | | //this.inversionInfo() |
| | | ]) |
| | | .then(() => { |