| | |
| | | <div class="label">告警数量:</div> |
| | | <div class="col1"> |
| | | <div class="input big alarm"> |
| | | <span class="cur-point" @click="goToWarn(1)">电源:{{ data.pwrAlm*1 }}</span> |
| | | <span class="cur-point" @click="goToWarn(2)">设备:{{ data.devAlm*1 }}</span> |
| | | <span class="cur-point" @click="goToWarn(3)">电池:{{ data.battInf.battAlm*1 }}</span> |
| | | <span class="cur-point" @click="goToWarn(1)">电源:{{ data.pwrAlm * 1 }}</span> |
| | | <span class="cur-point" @click="goToWarn(2)">设备:{{ data.devAlm * 1 }}</span> |
| | | <span class="cur-point" @click="goToWarn(3)">电池:{{ data.battInf.battAlm * 1 }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | goToWarn(type) { |
| | | let mapStation = this.data; |
| | | let search = '?province=' + mapStation.stationName1 + '&city=' + mapStation.stationName2 + '&county=' + mapStation.stationName5 + |
| | | '&home=' + mapStation.stationName3 +'&fromType=fromIndex'; |
| | | '&home=' + mapStation.stationName3 + '&fromType=fromIndex'; |
| | | // 1-电源告警 2-设备告警 3-电池告警 |
| | | switch (type) { |
| | | case 1: |
| | |
| | | computed: { |
| | | acinVolA() { |
| | | let acdc = this.data.acdc; |
| | | let { routeNum } = this.data.pwrinf; |
| | | if (1 == routeNum) { |
| | | return acdc.acin1Vola; |
| | | } |
| | | return acdc.acin1Vola + '/' + acdc.acin2Vola; |
| | | }, |
| | | acinVolB() { |
| | | let acdc = this.data.acdc; |
| | | let { routeNum } = this.data.pwrinf; |
| | | if (1 == routeNum) { |
| | | return acdc.acin1Volb; |
| | | } |
| | | return acdc.acin1Volb + '/' + acdc.acin2Volb; |
| | | }, |
| | | acinVolC() { |
| | | let acdc = this.data.acdc; |
| | | let { routeNum } = this.data.pwrinf; |
| | | if (1 == routeNum) { |
| | | return acdc.acin1Volc; |
| | | } |
| | | return acdc.acin1Volc + '/' + acdc.acin2Volc; |
| | | }, |
| | | acinCurrA() { |
| | | let acdc = this.data.acdc; |
| | | return acdc.acin1Curra + '/' + acdc.acin2Curra; |
| | | return acdc.acin1Curra; |
| | | }, |
| | | acinCurrB() { |
| | | let acdc = this.data.acdc; |
| | | return acdc.acin1Currb + '/' + acdc.acin2Currb; |
| | | return acdc.acin1Currb; |
| | | }, |
| | | acinCurrC() { |
| | | let acdc = this.data.acdc; |
| | | return acdc.acin1Currc + '/' + acdc.acin2Currc; |
| | | return acdc.acin1Currc; |
| | | }, |
| | | battState() { |
| | | let battInf = this.data.battInf; |
| | |
| | | alarmCount() { |
| | | let data = this.data; |
| | | let battInf = data.battInf; |
| | | return battInf.battAlm * 1 + data.devAlm * 1 + data.pwrAlm * 1; |
| | | return battInf.battAlm * 1 + data.devAlm * 1 + data.pwrAlm * 1; |
| | | } |
| | | }, |
| | | mounted() { |
| | | console.log(this.data); |
| | | // console.log(this.data); |
| | | } |
| | | } |
| | | </script> |
| | |
| | | display: flex; |
| | | } |
| | | } |
| | | |
| | | .cur-point { |
| | | user-select: none; |
| | | cursor: pointer; |