代码提交
This commit is contained in:
parent
97d19c0ee9
commit
6e1de287ec
|
@ -3,7 +3,7 @@
|
|||
<view class="text-area">
|
||||
<view class="carDetection">
|
||||
<view class="header">
|
||||
<image src="/static/img/sdjcbg.png"></image>
|
||||
<image src="/static/img/aqjcTitle.png"></image>
|
||||
</view>
|
||||
<view class="title">
|
||||
<span>电池健康度得分</span>
|
||||
|
@ -13,7 +13,7 @@
|
|||
<circular :apiData='apiData' class="cularBg"></circular>
|
||||
<view class="plateNumber">
|
||||
<span class="number">{{apiData.plateNo}}</span>
|
||||
<span class="carStatus">{{carStatus}}</span>
|
||||
<span class="carStatus" v-if="carStatus =='normal'">电池健康度正常</span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="title">
|
||||
|
@ -23,7 +23,7 @@
|
|||
<view class="visualInspection4">
|
||||
<view class="textBg">
|
||||
<p>{{evalConclusion.reason}}</p>
|
||||
<p>{{evalConclusion.status}}</p>
|
||||
<!-- <p>{{evalConclusion.status}}</p> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="title">
|
||||
|
@ -33,7 +33,7 @@
|
|||
<view class="visualInspection4">
|
||||
<view class="textBg">
|
||||
<p>{{evalConclusion.reason}}</p>
|
||||
<p>{{evalConclusion.status}}</p>
|
||||
<!-- <p>{{evalConclusion.status}}</p> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="title">
|
||||
|
@ -43,7 +43,7 @@
|
|||
<view class="visualInspection4">
|
||||
<view class="textBg">
|
||||
<p>{{evalConclusion.reason}}</p>
|
||||
<p>{{evalConclusion.status}}</p>
|
||||
<!-- <p>{{evalConclusion.status}}</p> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="title">
|
||||
|
@ -53,7 +53,7 @@
|
|||
<view class="visualInspection4">
|
||||
<view class="textBg">
|
||||
<p>{{evalConclusion.reason}}</p>
|
||||
<p>{{evalConclusion.status}}</p>
|
||||
<!-- <p>{{evalConclusion.status}}</p> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -110,7 +110,7 @@
|
|||
<view class="pgjl">
|
||||
<text class="twoTitle">评估结论</text>
|
||||
<p>{{evalConclusion.reason}}</p>
|
||||
<p>{{evalConclusion.status}}</p>
|
||||
<!-- <p>{{evalConclusion.status}}</p> -->
|
||||
</view>
|
||||
<view class="ycjy">
|
||||
<text class="twoTitle">用车建议</text>
|
||||
|
@ -361,7 +361,8 @@
|
|||
console.log('Data received:', res.data.data);
|
||||
if (res.data.code == 0) {
|
||||
this.apiData = res.data.data; // 将获取的数据存储到data中
|
||||
this.carStatus = this.apiData.evalConclusion[1].split(',')[1]
|
||||
// this.carStatus = this.apiData.evalConclusion[1].split(',')[1]
|
||||
this.carStatus = this.apiData.sohState
|
||||
this.chargeData[0].value = this.apiData.chargingEnergy
|
||||
this.chargeData[1].value = this.apiData.chargingDuration
|
||||
this.chargeData[2].value = this.apiData.ratedEnergy
|
||||
|
@ -371,8 +372,8 @@
|
|||
this.apiData.chargingEndTime = new Date(this.apiData.chargingEndTime)
|
||||
.toLocaleString();
|
||||
//结论评语
|
||||
this.evalConclusion.reason = this.apiData.evalConclusion[0]
|
||||
this.evalConclusion.status = this.apiData.evalConclusion[1]
|
||||
this.evalConclusion.reason = this.apiData.evalConclusion.join('')
|
||||
// this.evalConclusion.status = this.apiData.evalConclusion[1]
|
||||
//充电关键数据
|
||||
this.chargingKey[0].value = this.apiData.soh + '%'
|
||||
this.chargingKey[0].status = this.apiData.sohState
|
||||
|
@ -430,7 +431,7 @@
|
|||
.header {
|
||||
width: 100%;
|
||||
height: 12%;
|
||||
background: url(@/static/img/bg.png) no-repeat;
|
||||
background: url(@/static/img/jkBg.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
window.g = {
|
||||
API_IP: 'http://172.16.1.146:5000',
|
||||
API_IP: 'http://172.16.1.253:5000',
|
||||
}
|
|
@ -1,2 +1,2 @@
|
|||
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>chargingDetection</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.978fd5e3.js></script><script src=./static/js/index.612c850a.js></script></body></html>
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.978fd5e3.js></script><script src=./static/js/index.c94c130b.js></script></body></html>
|
|
@ -1,3 +1,3 @@
|
|||
window.g = {
|
||||
API_IP: 'http://172.16.1.146:5000',
|
||||
API_IP: 'http://172.16.1.253:5000',
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue