|
@@ -68,6 +68,12 @@
|
|
|
<text>充电电流:</text>
|
|
<text>充电电流:</text>
|
|
|
<text class="bms-row-data">{{info.State.CPowerA}}A </text>
|
|
<text class="bms-row-data">{{info.State.CPowerA}}A </text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bms-row ddflex">
|
|
|
|
|
+ <view class="fflex ddflex">
|
|
|
|
|
+ <text>放电电流:</text>
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.DPowerA}}A </text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="bms-row ddflex">
|
|
<view class="bms-row ddflex">
|
|
|
<view class="fflex ddflex">
|
|
<view class="fflex ddflex">
|
|
@@ -80,18 +86,36 @@
|
|
|
<text>充电保护状态:</text>
|
|
<text>充电保护状态:</text>
|
|
|
<text class="bms-row-data">{{info.State.CPStatus==1?'硬控保护':info.State.CPStatus==2?'软控保护':'正常'}} </text>
|
|
<text class="bms-row-data">{{info.State.CPStatus==1?'硬控保护':info.State.CPStatus==2?'软控保护':'正常'}} </text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bms-row ddflex">
|
|
|
|
|
+ <view class="fflex ddflex">
|
|
|
|
|
+ <text>充电保护次数:</text>
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.CPCount}} </text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="bms-row ddflex">
|
|
<view class="bms-row ddflex">
|
|
|
<view class="fflex ddflex">
|
|
<view class="fflex ddflex">
|
|
|
<text>放电保护状态:</text>
|
|
<text>放电保护状态:</text>
|
|
|
<text class="bms-row-data">{{info.State.DPStatus==1?'硬控保护':info.State.DPStatus==2?'软控保护':'正常'}} </text>
|
|
<text class="bms-row-data">{{info.State.DPStatus==1?'硬控保护':info.State.DPStatus==2?'软控保护':'正常'}} </text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bms-row ddflex">
|
|
|
|
|
+ <view class="fflex ddflex">
|
|
|
|
|
+ <text>放电保护次数:</text>
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.DPCount}} </text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="bms-row ddflex">
|
|
<view class="bms-row ddflex">
|
|
|
<view class="fflex ddflex">
|
|
<view class="fflex ddflex">
|
|
|
<text>短路保护:</text>
|
|
<text>短路保护:</text>
|
|
|
<text class="bms-row-data">{{info.State.SCProtect==1?'保护':'正常'}} </text>
|
|
<text class="bms-row-data">{{info.State.SCProtect==1?'保护':'正常'}} </text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bms-row ddflex">
|
|
|
|
|
+ <view class="fflex ddflex">
|
|
|
|
|
+ <text>短路保护次数:</text>
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.SCPCount}} </text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="bms-row ddflex">
|
|
<view class="bms-row ddflex">
|
|
|
<view class="fflex ddflex">
|
|
<view class="fflex ddflex">
|
|
@@ -108,13 +132,43 @@
|
|
|
<view class="bms-row ddflex">
|
|
<view class="bms-row ddflex">
|
|
|
<view class="fflex ddflex">
|
|
<view class="fflex ddflex">
|
|
|
<text>保护板温度:</text>
|
|
<text>保护板温度:</text>
|
|
|
- <text class="bms-row-data">{{info.State.TC_T}}°C </text>
|
|
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.TC_T}}°C</text>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bms-row ddflex">
|
|
|
|
|
+ <view class="fflex ddflex">
|
|
|
|
|
+ <text>电池温度:</text>
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.TC_B_1}}°C</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bms-row ddflex">
|
|
|
|
|
+ <view class="fflex ddflex">
|
|
|
|
|
+ <text>充电过温次数:</text>
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.CPSuperheat}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bms-row ddflex">
|
|
|
|
|
+ <view class="fflex ddflex">
|
|
|
|
|
+ <text>充电低温次数:</text>
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.CPSubcooled}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bms-row ddflex">
|
|
|
|
|
+ <view class="fflex ddflex">
|
|
|
|
|
+ <text>放电过温次数:</text>
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.DPSuperheat}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bms-row ddflex">
|
|
|
|
|
+ <view class="fflex ddflex">
|
|
|
|
|
+ <text>放电低温次数:</text>
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.DPSubcooled}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
<view class="bms-row ddflex">
|
|
<view class="bms-row ddflex">
|
|
|
<view class="fflex ddflex">
|
|
<view class="fflex ddflex">
|
|
|
<text>出厂日期:</text>
|
|
<text>出厂日期:</text>
|
|
|
- <text class="bms-row-data">{{info.State.CCXX}} </text>
|
|
|
|
|
|
|
+ <text class="bms-row-data">{{info.State.CCXX}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="bms-row ddflex">
|
|
<view class="bms-row ddflex">
|
|
@@ -135,13 +189,13 @@
|
|
|
<text>刷新</text>
|
|
<text>刷新</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="ddflex state">
|
|
|
|
|
|
|
+ <view class="ddflex state">
|
|
|
<view class="ddflex">
|
|
<view class="ddflex">
|
|
|
<view>充电开关:</view>
|
|
<view>充电开关:</view>
|
|
|
<view style="color: #A8A5A5;">{{info.Seting.CHON==1?'开启':'关闭'}}</view>
|
|
<view style="color: #A8A5A5;">{{info.Seting.CHON==1?'开启':'关闭'}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <switch style="transform: scale(0.7);" :checked="info.Seting.CHON" color="#FF753A"></switch>
|
|
|
|
|
- </view> -->
|
|
|
|
|
|
|
+ <switch style="transform: scale(0.7);" :checked="info.Seting.CHON==1?true:false" color="#FF753A" @change="switchChangeC"></switch>
|
|
|
|
|
+ </view>
|
|
|
<view class="ddflex state">
|
|
<view class="ddflex state">
|
|
|
<view class="ddflex">
|
|
<view class="ddflex">
|
|
|
<view>放电开关:</view>
|
|
<view>放电开关:</view>
|
|
@@ -221,7 +275,7 @@
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title:event.detail.value?'开启中':'关闭中',
|
|
title:event.detail.value?'开启中':'关闭中',
|
|
|
})
|
|
})
|
|
|
- req.postRequest('/admin/v2/battery/bmsSend',{batteryId:this.id,type:event.detail.value},res=>{
|
|
|
|
|
|
|
+ req.postRequest('/admin/v2/battery/bmsSend',{batteryId:this.id,type:event.detail.value,operateType:1},res=>{
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
if(res){
|
|
if(res){
|
|
|
// req.msg(event.detail.value?'开启成功':'关闭成功')
|
|
// req.msg(event.detail.value?'开启成功':'关闭成功')
|
|
@@ -245,6 +299,43 @@
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ switchChangeC(event){
|
|
|
|
|
+ event.detail.value = event.detail.value?1:0
|
|
|
|
|
+ this.info.Seting.CHON = event.detail.value
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title:'提示',
|
|
|
|
|
+ content:event.detail.value?'确定开启充电开关?':'确定关闭充电开关?',
|
|
|
|
|
+ success: (r) => {
|
|
|
|
|
+ if(r.confirm){
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title:event.detail.value?'开启中':'关闭中',
|
|
|
|
|
+ })
|
|
|
|
|
+ req.postRequest('/admin/v2/battery/bmsSend',{batteryId:this.id,type:event.detail.value,operateType:2},res=>{
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ if(res){
|
|
|
|
|
+ // req.msg(event.detail.value?'开启成功':'关闭成功')
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title:'提示',
|
|
|
|
|
+ content:'操作成功,该操作会有延迟,请稍候查看最新状态',
|
|
|
|
|
+ showCancel:false,
|
|
|
|
|
+ success() {
|
|
|
|
|
+ that.getData()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }else {
|
|
|
|
|
+ req.msg(event.detail.value?'开启失败':'关闭失败')
|
|
|
|
|
+ this.info.Seting.CHON = this.info.Seting.CHON==1?0:1
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.info.Seting.CHON = this.info.Seting.CHON==1?0:1
|
|
|
|
|
+ // this.getData()
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|