7.18 国际化文件添加

main
shilei 4 months ago
parent ef462c760b
commit 9f15eb54f4

@ -22,11 +22,11 @@
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.tops_content .electricity_status .block_spans { .tops_content .electricity_status .block_spans {
width: 100px; padding: 5px;
line-height: 30px; line-height: 30px;
border-radius: 7px; border-radius: 7px;
color: #fff; color: #fff;
background: #24ebf1; background: #79bd56;
text-align: center; text-align: center;
margin-left: 8px; margin-left: 8px;
} }
@ -42,7 +42,7 @@
.tops_content .electricity_status .bottom_status > div { .tops_content .electricity_status .bottom_status > div {
width: 46%; width: 46%;
height: 30%; height: 30%;
background: #e5f8fd; background: #e3f1cb;
margin: 0 5px; margin: 0 5px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -106,7 +106,7 @@
.tops_content .electricity_imgs .bg_imgs { .tops_content .electricity_imgs .bg_imgs {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: url('../../../assets/imgs/电站.png') no-repeat center; background: url('../../../assets/imgs/shouye.png') no-repeat center;
background-size: 100% 100%; background-size: 100% 100%;
position: relative; position: relative;
} }
@ -202,7 +202,7 @@
flex: 1; flex: 1;
height: 90%; height: 90%;
margin: 0 5px; margin: 0 5px;
background: #e5f8fd; background: #e3f1cb;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;

@ -24,7 +24,8 @@
} }
.block_spans { .block_spans {
width: 100px; // width: 100px;
padding: 5px;
line-height: 30px; line-height: 30px;
border-radius: 7px; border-radius: 7px;
color: #fff; color: #fff;

@ -4,33 +4,33 @@
<div class="tops_content"> <div class="tops_content">
<div class="electricity_status"> <div class="electricity_status">
<div class="div_shadowing"> <div class="div_shadowing">
<span>当前换电状态:</span> <span>{{ $t('message.homepage.stepName') }}:</span>
<span class="block_spans"> {{ bmsSwapSts.stepName }} </span> <span class="block_spans"> {{ bmsSwapSts.stepName }} </span>
</div> </div>
<div class="bottom_status div_shadowing"> <div class="bottom_status div_shadowing">
<div> <div>
<span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.chargeTodayCount }}</span> <span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.chargeTodayCount }}</span>
<span style="font-size: 12px">当日充电 ()</span> <span style="font-size: 12px; text-align: center">{{ $t('message.homepage.chargeTodayCount') }}</span>
</div> </div>
<div> <div>
<span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.swapTodayElectricity }}</span> <span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.swapTodayElectricity }}</span>
<span style="font-size: 12px">当日换电量 ()</span> <span style="font-size: 12px; text-align: center">{{ $t('message.homepage.swapTodayElectricity') }}</span>
</div> </div>
<div> <div>
<span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.swapTodayCount }}</span> <span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.swapTodayCount }}</span>
<span style="font-size: 12px">当日换电 ()</span> <span style="font-size: 12px; text-align: center">{{ $t('message.homepage.swapTodayCount') }}</span>
</div> </div>
<div> <div>
<span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.swapTotalCount }}</span> <span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.swapTotalCount }}</span>
<span style="font-size: 12px">累计换电 ()</span> <span style="font-size: 12px; text-align: center">{{ $t('message.homepage.swapTotalCount') }}</span>
</div> </div>
<div> <div>
<span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.swapMonthElectricity }}</span> <span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.swapMonthElectricity }}</span>
<span style="font-size: 12px">当月换电量 ()</span> <span style="font-size: 12px; text-align: center">{{ $t('message.homepage.swapMonthElectricity') }}</span>
</div> </div>
<div> <div>
<span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.chargeTotalCount }}</span> <span style="font-size: 20px; font-weight: 700">{{ char_nums_obj.chargeTotalCount }}</span>
<span style="font-size: 12px">累计充电 ()</span> <span style="font-size: 12px; text-align: center">{{ $t('message.homepage.chargeTotalCount') }}</span>
</div> </div>
</div> </div>
</div> </div>
@ -47,7 +47,7 @@
<img :src="item.url_A" v-if="item.exists == 1 && item.chargeStatus == 4" /> <img :src="item.url_A" v-if="item.exists == 1 && item.chargeStatus == 4" />
<img :src="item.url" v-if="item.exists == 1 && item.chargeStatus == 1" /> <img :src="item.url" v-if="item.exists == 1 && item.chargeStatus == 1" />
</div> --> </div> -->
<!-- <div <!-- <div
:class="item.offectleft" :class="item.offectleft"
:style="{ :style="{
'background-image': item.url, 'background-image': item.url,
@ -84,28 +84,28 @@
<div class="bottom_tips"> <div class="bottom_tips">
<div class="div_shadowing"> <div class="div_shadowing">
<img src="../../../assets/imgs/故障提示.png" /> <img src="../../../assets/imgs/故障提示.png" />
<span class="tips_font">故障提示</span> <span class="tips_font">{{ $t('message.homepage.error_Total') }}</span>
<span class="tips_font" style="font-size: 25px; color: black">{{ error_Total }}</span> <span class="tips_font" style="font-size: 25px; color: black">{{ error_Total }}</span>
</div> </div>
<div class="left_icons div_shadowing"> <div class="left_icons div_shadowing">
<div> <div>
<img src="../../../assets/imgs/电池总数.png" /> <img src="../../../assets/imgs/电池总数.png" />
<div class="flex_public"> <div class="flex_public">
<span class="tips_font">电池总数</span> <span class="tips_font"> {{ $t('message.homepage.btyTotalCount') }} </span>
<span class="tips_font" style="font-size: 25px; color: black">{{ batter_status.btyTotalCount }}</span> <span class="tips_font" style="font-size: 25px; color: black">{{ batter_status.btyTotalCount }}</span>
</div> </div>
</div> </div>
<div> <div>
<img src="../../../assets/imgs/满电数量.png" /> <img src="../../../assets/imgs/满电数量.png" />
<div class="flex_public"> <div class="flex_public">
<span class="tips_font">满足换电数量</span> <span class="tips_font"> {{ $t('message.homepage.canSwapCount') }} </span>
<span class="tips_font" style="font-size: 25px; color: black">{{ batter_status.canSwapCount }}</span> <span class="tips_font" style="font-size: 25px; color: black">{{ batter_status.canSwapCount }}</span>
</div> </div>
</div> </div>
<div> <div>
<img src="../../../assets/imgs/充电中.png" /> <img src="../../../assets/imgs/充电中.png" />
<div class="flex_public"> <div class="flex_public">
<span class="tips_font">充电中</span> <span class="tips_font"> {{ $t('message.homepage.chargingCount') }} </span>
<span class="tips_font" style="font-size: 25px; color: black">{{ batter_status.chargingCount }}</span> <span class="tips_font" style="font-size: 25px; color: black">{{ batter_status.chargingCount }}</span>
</div> </div>
</div> </div>
@ -129,6 +129,8 @@
</template> </template>
<script setup> <script setup>
import { useI18n } from 'vue-i18n';
import { getAPI } from '/@/utils/axios-utils'; import { getAPI } from '/@/utils/axios-utils';
import { SysMonitorApi, SysChargeMonitorApi, SysEquipAlarmLogApi } from '/@/api-services/api'; import { SysMonitorApi, SysChargeMonitorApi, SysEquipAlarmLogApi } from '/@/api-services/api';
import home_imgs from '/@/assets/imgs/A1.png'; import home_imgs from '/@/assets/imgs/A1.png';
@ -148,6 +150,8 @@ import home_imgs_A6 from '/@/assets/imgs/A4_black.png';
import home_imgs_A7 from '/@/assets/imgs/A6_black.png'; import home_imgs_A7 from '/@/assets/imgs/A6_black.png';
import home_imgs_A8 from '/@/assets/imgs/A8_black.png'; import home_imgs_A8 from '/@/assets/imgs/A8_black.png';
import { onMounted, reactive, ref } from 'vue'; import { onMounted, reactive, ref } from 'vue';
const { t } = useI18n();
const bmsSwapSts = ref({ const bmsSwapSts = ref({
stepName: '空闲', stepName: '空闲',
}); });

Loading…
Cancel
Save