|
@@ -13,15 +13,15 @@
|
|
<uni-forms :modelValue="fromData">
|
|
<uni-forms :modelValue="fromData">
|
|
<view class="chargeAway">充电方式【{{fromData.chargerAway}}】</view>
|
|
<view class="chargeAway">充电方式【{{fromData.chargerAway}}】</view>
|
|
<view class="chargeCont">
|
|
<view class="chargeCont">
|
|
- <view class="gunleft">
|
|
|
|
- <view class="gun">A</view>
|
|
|
|
|
|
+ <view class="gunleft" v-if="infodata.showCode==2 && infodata.chgType==1">
|
|
|
|
+ <view class="gun">B</view>
|
|
<view class="power">
|
|
<view class="power">
|
|
<view>{{$checks.powerFitler(fromData.powerObj.powerType)}}</view>
|
|
<view>{{$checks.powerFitler(fromData.powerObj.powerType)}}</view>
|
|
<view>{{fromData.powerObj.power?fromData.powerObj.power+'kW':'—'}}</view>
|
|
<view>{{fromData.powerObj.power?fromData.powerObj.power+'kW':'—'}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="gunleft" v-if="fromData.powerObj.type===4 || fromData.powerObj.type===2">
|
|
|
|
- <view class="gun">B</view>
|
|
|
|
|
|
+ <view class="gunleft" v-else>
|
|
|
|
+ <view class="gun">A</view>
|
|
<view class="power">
|
|
<view class="power">
|
|
<view>{{$checks.powerFitler(fromData.powerObj.powerType)}}</view>
|
|
<view>{{$checks.powerFitler(fromData.powerObj.powerType)}}</view>
|
|
<view>{{fromData.powerObj.power?fromData.powerObj.power+'kW':'—'}}</view>
|
|
<view>{{fromData.powerObj.power?fromData.powerObj.power+'kW':'—'}}</view>
|
|
@@ -109,13 +109,11 @@
|
|
//获取充个设置数据
|
|
//获取充个设置数据
|
|
getChargePower(){
|
|
getChargePower(){
|
|
let type=null
|
|
let type=null
|
|
- if(this.infodata.chargerInfoVo.chgState===2){
|
|
|
|
|
|
+ if(this.infodata.chgType==0){
|
|
type=1
|
|
type=1
|
|
- }else if(this.infodata.chargerInfoOneVo.chgState===2 && this.infodata.chargerInfoTwoVo.chgState===2){
|
|
|
|
- type=2
|
|
|
|
- }else if(this.infodata.chargerInfoOneVo.chgState===2 && this.infodata.chargerInfoTwoVo.chgState!==2){
|
|
|
|
|
|
+ }else if(this.infodata.chgType==1 && this.infodata.showCode==1){
|
|
type=3
|
|
type=3
|
|
- }else if(this.infodata.chargerInfoOneVo.chgState!==2 && this.infodata.chargerInfoTwoVo.chgState===2){
|
|
|
|
|
|
+ }else if(this.infodata.chgType==1 && this.infodata.showCode==2){
|
|
type=4
|
|
type=4
|
|
}
|
|
}
|
|
this.$http.getChargePower({chargerId:this.infodata.chargerInfoVo.chargerCode,type}).then(res=>{
|
|
this.$http.getChargePower({chargerId:this.infodata.chargerInfoVo.chargerCode,type}).then(res=>{
|