|
@@ -1,24 +1,53 @@
|
|
|
<template>
|
|
|
<view class="storage-item" >
|
|
|
- <view class="container">
|
|
|
+ <view class="container">
|
|
|
+ <view class="container-header">
|
|
|
+ <view class="battery" :class="showCode ==0?'showCodeActive':''" @click="showCode = 0">
|
|
|
+ 电池(有)
|
|
|
+ </view>
|
|
|
+ <view class="a-gun battery" :class="showCode ==1?'showCodeActive':''" @click="showCode = 1">
|
|
|
+ A枪
|
|
|
+ </view>
|
|
|
+ <view class="b-gun battery" :class="showCode ==2?'showCodeActive':''" @click="showCode = 2">
|
|
|
+ B枪
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="container-code">
|
|
|
+ <view class="container-code-one">
|
|
|
+ 通讯正常
|
|
|
+ </view>
|
|
|
+ <view class="container-code-two">
|
|
|
+ <image src="../../../static/equipment/d5.png" mode=""></image>
|
|
|
+ <image src="../../../static/equipment/c1.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
<BatteryStatus
|
|
|
:storeCode="storeCode"
|
|
|
:comState="comState"
|
|
|
:sn="sn"
|
|
|
:soc="soc"
|
|
|
- :chgEstimatedTime="chgEstimatedTime"
|
|
|
+ :chgEstimatedTime="chgEstimatedTime"
|
|
|
+ :showCode="showCode"
|
|
|
></BatteryStatus>
|
|
|
- <view class="battery-info">
|
|
|
+ <view class="battery-info">
|
|
|
+ <view class="vim" v-if="showCode != 0">
|
|
|
+ <text>vin码</text><text>123456789</text>
|
|
|
+ </view>
|
|
|
<BatteryInfo :num="current" unit="A" text="电流"></BatteryInfo>
|
|
|
- <BatteryInfo :num="voltage" unit="V" text="电压"></BatteryInfo>
|
|
|
- <BatteryInfo :num="minTemperature" unit="℃" text="最低温度"></BatteryInfo>
|
|
|
+ <BatteryInfo :num="voltage" unit="V" text="电压"></BatteryInfo>
|
|
|
+ <BatteryInfo :num="soh" unit="%" text="SOH" v-if="showCode == 0"></BatteryInfo>
|
|
|
+ <view class="info-right" :style="chargerColor">
|
|
|
+ <image class="s1" :src="require('../../../static/equipment/'+`s${chargerState[0]}`+'.png')"><text>{{chargerState[1]}}</text>
|
|
|
+ </view>
|
|
|
+ <!-- <BatteryInfo :num="minTemperature" unit="℃" text="最低温度"></BatteryInfo>
|
|
|
<BatteryInfo :num="maxTemperature" unit="℃" text="最高温度"></BatteryInfo>
|
|
|
<BatteryInfo :num="maxCellVoltage" unit="V" text="最高单体电压"></BatteryInfo>
|
|
|
<BatteryInfo :num="minCellVoltage" unit="V" text="最低单体电压"></BatteryInfo>
|
|
|
- <BatteryInfo :num="soh" unit="%" text="SOH"></BatteryInfo>
|
|
|
- <view class="info-right">
|
|
|
- <image class="s1" src="../../../static/equipment/s1.png"><text class="text">{{StateNum}}</text>
|
|
|
+ <view class="info-right">
|
|
|
+ <image class="s1" src="../../../static/equipment/s1.png"><text class="text">{{StateNum}}</text>
|
|
|
</view>
|
|
|
+ -->
|
|
|
</view>
|
|
|
<view class="battery-charger">
|
|
|
<BatteryCharger
|
|
@@ -34,10 +63,16 @@
|
|
|
<BatteryInfo :num="chargerInfoVo.chgCurrent" unit="A" text="充电电流"></BatteryInfo>
|
|
|
<BatteryInfo :num="chargerInfoVo.chgVoltage" unit="V" text="充电电压"></BatteryInfo>
|
|
|
<BatteryInfo :num="chargerInfoVo.chgCapacity" unit="kWh" text="累计充电电量"></BatteryInfo>
|
|
|
- <view class="info-right" :style="chargerColor">
|
|
|
- <image class="s1" :src="require('../../../static/equipment/'+`s${chargerState[0]}`+'.png')"><text>{{chargerState[1]}}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="battery-charger-btn">
|
|
|
+ <view class="Plug-gun-charging">
|
|
|
+ 插枪充电
|
|
|
+ </view>
|
|
|
+ <view class="Settings Plug-gun-charging" @click="set">
|
|
|
+ 设置
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<image src="../../../static/equipment/nodata.png" class="nodata" v-show="!chargerInfoVo.chargerCode">
|
|
|
</view>
|
|
|
</view>
|
|
@@ -72,9 +107,15 @@ export default {
|
|
|
BatteryCharger
|
|
|
},
|
|
|
data(){
|
|
|
- return{
|
|
|
+ return{
|
|
|
+ showCode:0,//0电池1A枪2B枪
|
|
|
}
|
|
|
- },
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ set(){
|
|
|
+ this.$emit('drawer')
|
|
|
+ }
|
|
|
+ },
|
|
|
computed:{
|
|
|
chargerState(){
|
|
|
if(this.chargerInfoVo.chgState === 1){
|
|
@@ -129,12 +170,69 @@ export default {
|
|
|
padding: 20px 24px;
|
|
|
color: #404a63;
|
|
|
font-size: 14px;
|
|
|
-
|
|
|
+ .container-header{
|
|
|
+ display: flex;
|
|
|
+ .battery{
|
|
|
+ width: 112px;
|
|
|
+ height: 32px;
|
|
|
+ background: #1C263A;
|
|
|
+ color: #DEEFF9;
|
|
|
+ line-height: 32px;
|
|
|
+ text-align: center;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
+ .a-gun{
|
|
|
+ width: 78px;
|
|
|
+ margin-left: 12px;
|
|
|
+ }
|
|
|
+ .b-gun{
|
|
|
+ width: 78px;
|
|
|
+ margin-left: 12px;
|
|
|
+ }
|
|
|
+ .showCodeActive{
|
|
|
+ background-color: #636C97;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .container-code{
|
|
|
+ display: flex;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ justify-content: space-between;
|
|
|
+ .container-code-one{
|
|
|
+ font-size: 16px;
|
|
|
+ color: #91FDB9;
|
|
|
+ }
|
|
|
+ .container-code-two{
|
|
|
+ display: flex;
|
|
|
+ image{
|
|
|
+ width: 60px;
|
|
|
+ height: 24px;
|
|
|
+ }
|
|
|
+ image:first-child{
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
.battery-info{
|
|
|
display: flex;
|
|
|
margin-top: 16px;
|
|
|
justify-content: space-between;
|
|
|
- flex-wrap: wrap;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ min-height: 116px;
|
|
|
+ .vim{
|
|
|
+ width: 100%;
|
|
|
+ margin: 0px 0px 12px 0px;
|
|
|
+ text{
|
|
|
+ font-size: 14px;
|
|
|
+ color: #414A63;
|
|
|
+ }
|
|
|
+ text:last-child{
|
|
|
+ display: inline-block;
|
|
|
+ margin-left: 10px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
.info-right{
|
|
|
width: 46%;
|
|
|
height: 32px;
|
|
@@ -177,7 +275,27 @@ export default {
|
|
|
height: 66px;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
+ .battery-charger-btn{
|
|
|
+ display: flex;
|
|
|
+ position: absolute;
|
|
|
+ bottom: 20px;
|
|
|
+ .Plug-gun-charging{
|
|
|
+ width: 135px;
|
|
|
+ height: 32px;
|
|
|
+ background: #69B889;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 32px;
|
|
|
+ font-size: 16px;
|
|
|
+ font-family: PingFang SC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #DEEFF9;
|
|
|
+ }
|
|
|
+ .Settings{
|
|
|
+ background: #636C97;
|
|
|
+ margin-left: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
</style>
|