|
@@ -142,12 +142,32 @@
|
|
<!-- <BatteryInfo :num="chargerInfoTwoVo.chgCapacity" unit="kWh" text="累计充电电量"></BatteryInfo> -->
|
|
<!-- <BatteryInfo :num="chargerInfoTwoVo.chgCapacity" unit="kWh" text="累计充电电量"></BatteryInfo> -->
|
|
</view>
|
|
</view>
|
|
<view class="battery-charger-btn">
|
|
<view class="battery-charger-btn">
|
|
- <view class="Plug-gun-charging" @click="ChargingMode(chgType)">
|
|
|
|
|
|
+ <button class="Plug-gun-charging" @click="ChargingMode(chgType)">
|
|
{{chgType == 0 ?'切换为插枪充电':'切换为线束充电'}}
|
|
{{chgType == 0 ?'切换为插枪充电':'切换为线束充电'}}
|
|
- </view>
|
|
|
|
- <view class="Settings Plug-gun-charging" @click="set">
|
|
|
|
|
|
+ </button>
|
|
|
|
+ <template v-if="chgType == 0 && showCode !=0">
|
|
|
|
+ <button class="disabled Plug-gun-charging" @click="set" :disabled="true">设置</button>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else-if="chgType == 1 && showCode ==0">
|
|
|
|
+ <button class="disabled Plug-gun-charging" @click="set" :disabled="true">设置</button>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <template v-if="showCode==0 && chargerInfoVo.comState===1">
|
|
|
|
+ <button class="Settings Plug-gun-charging" @click="set">设置</button>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else-if="showCode==1 && chargerInfoOneVo.comState===1">
|
|
|
|
+ <button class="Settings Plug-gun-charging" @click="set">设置</button>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else-if="showCode==2 && chargerInfoTwoVo.comState===1">
|
|
|
|
+ <button class="Settings Plug-gun-charging" @click="set">设置</button>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <button class="disabled Plug-gun-charging" :disabled="true" @click="set">设置</button>
|
|
|
|
+ </template>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- <view class="Settings Plug-gun-charging" @click="set">
|
|
设置
|
|
设置
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
<image src="../../../static/equipment/nodata.png" class="nodata" v-show="!chargerInfoVo.chargerCode">
|
|
<image src="../../../static/equipment/nodata.png" class="nodata" v-show="!chargerInfoVo.chargerCode">
|
|
</view>
|
|
</view>
|
|
@@ -216,7 +236,7 @@
|
|
this.Markers = 1
|
|
this.Markers = 1
|
|
},
|
|
},
|
|
//打开弹窗
|
|
//打开弹窗
|
|
- set(obj) {
|
|
|
|
|
|
+ set() {
|
|
this.getShowCode()
|
|
this.getShowCode()
|
|
this.$emit('drawer')
|
|
this.$emit('drawer')
|
|
},
|
|
},
|
|
@@ -662,6 +682,10 @@
|
|
background: #636C97;
|
|
background: #636C97;
|
|
margin-left: 20px;
|
|
margin-left: 20px;
|
|
}
|
|
}
|
|
|
|
+ .disabled{
|
|
|
|
+ background: #606266;
|
|
|
|
+ margin-left: 20px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|