he wei
2023-04-27 8fe27f96ac6d9705d31ad19a36be1c2e8fa932e8
src/views/home/components/total-data.vue
@@ -5,14 +5,18 @@
      <div class="value">{{ value }}</div>
    </div>
    <!-- 标签 -->
    <div class="tag">{{ tag }}</div>
    <div class="tag">{{ $t(tag) }}</div>
  </div>
</template>
<script>
const types = ['站点', '电源', '电池组', '本年已放数'];
const types = ['Site', 'Power', 'BatteryGroup', 'Annualcheckedcapacity'];
import i18n from '../i18n/home-conductor';
import { createI18nOption } from '@/assets/js/tools/i18n';
const i18nMixin = createI18nOption(i18n);
export default {
  name: '',
  mixins: [i18nMixin],
  props: {
    type: {
      type: Number,
@@ -50,7 +54,7 @@
          this.$router.push("/dataMager/battGroupMager");
          break;
        case 3:
          this.$router.push("/reportStatistics/eleAssess");
          // this.$router.push("/reportStatistics/eleAssess");
          break;
      }
    }
@@ -98,7 +102,8 @@
  color: #011f39;
  font-size: 18px;
  height: 2em;
  width: 6.6em;
  padding: 0 1em;
  /* width: 6.6em; */
  font-weight: bold;
  background: url('../images/tag.png') center center / 100% 100% no-repeat;
}