he wei
2023-04-10 aaa8ffcb83ce577612d1c88a295db0e12f87a83c
src/views/home/components/info-admin.vue
@@ -73,9 +73,9 @@
      <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>
@@ -100,7 +100,7 @@
    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:
@@ -121,27 +121,39 @@
  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;
@@ -150,11 +162,11 @@
    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>
@@ -238,6 +250,7 @@
    display: flex;
  }
}
.cur-point {
  user-select: none;
  cursor: pointer;