代码提交4-2
This commit is contained in:
parent
6e1de287ec
commit
1d8bcadb46
|
@ -35,8 +35,7 @@
|
|||
},
|
||||
deep: true
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
async init(data) {
|
||||
let XData
|
||||
|
@ -55,7 +54,7 @@
|
|||
};
|
||||
unitMap.yName = '温度:℃'
|
||||
unitMap.name1 = '充电温差'
|
||||
} else if(this.lineType == '最高温度历史'){
|
||||
} else if (this.lineType == '最高温度历史') {
|
||||
const formattedData = data.hstTempMaxTime.map(dateStr =>
|
||||
dateStr.replace(/\s/, '\n')
|
||||
);
|
||||
|
@ -65,7 +64,7 @@
|
|||
};
|
||||
unitMap.yName = '温度:℃'
|
||||
unitMap.name1 = '最高温度历史'
|
||||
}else if(this.lineType == '温差历史'){
|
||||
} else if (this.lineType == '温差历史') {
|
||||
const formattedData = data.hstTempDiffTime.map(dateStr =>
|
||||
dateStr.replace(/\s/, '\n')
|
||||
);
|
||||
|
@ -75,7 +74,7 @@
|
|||
};
|
||||
unitMap.yName = '温度:℃'
|
||||
unitMap.name1 = '温差历史'
|
||||
}else if(this.lineType == '最高单体电压历史'){
|
||||
} else if (this.lineType == '最高单体电压历史') {
|
||||
const formattedData = data.hstVoltMaxTime.map(dateStr =>
|
||||
dateStr.replace(/\s/, '\n')
|
||||
);
|
||||
|
@ -85,7 +84,7 @@
|
|||
};
|
||||
unitMap.yName = 'V'
|
||||
unitMap.name1 = '最高单体电压历史'
|
||||
}else if(this.lineType == '压差历史'){
|
||||
} else if (this.lineType == '压差历史') {
|
||||
const formattedData = data.hstVoltDiffTime.map(dateStr =>
|
||||
dateStr.replace(/\s/, '\n')
|
||||
);
|
||||
|
@ -95,7 +94,7 @@
|
|||
};
|
||||
unitMap.yName = 'V'
|
||||
unitMap.name1 = '压差历史'
|
||||
}else if(this.lineType == '温度一致性历史'){
|
||||
} else if (this.lineType == '温度一致性历史') {
|
||||
const formattedData = data.hstTempConsistencyTime.map(dateStr =>
|
||||
dateStr.replace(/\s/, '\n')
|
||||
);
|
||||
|
@ -105,7 +104,7 @@
|
|||
};
|
||||
unitMap.yName = '分'
|
||||
unitMap.name1 = '温度一致性历史'
|
||||
}else if(this.lineType == '开路电压一致性历史'){
|
||||
} else if (this.lineType == '开路电压一致性历史') {
|
||||
const formattedData = data.hstVoltConsistencyTime.map(dateStr =>
|
||||
dateStr.replace(/\s/, '\n')
|
||||
);
|
||||
|
@ -115,7 +114,7 @@
|
|||
};
|
||||
unitMap.yName = '分'
|
||||
unitMap.name1 = '开路电压一致性历史'
|
||||
}else if(this.lineType == '健康度历史'){
|
||||
} else if (this.lineType == '健康度历史') {
|
||||
const formattedData = data.hstSohTime.map(dateStr =>
|
||||
dateStr.replace(/\s/, '\n')
|
||||
);
|
||||
|
@ -125,8 +124,7 @@
|
|||
};
|
||||
unitMap.yName = '%'
|
||||
unitMap.name1 = '健康度历史'
|
||||
}
|
||||
else if (this.lineType == '充电功率') {
|
||||
} else if (this.lineType == '充电功率') {
|
||||
const formattedData = data.powerTime.map(dateStr =>
|
||||
dateStr.replace(/\s/, '\n')
|
||||
);
|
||||
|
@ -134,6 +132,10 @@
|
|||
valueData = {
|
||||
data1: data.powerValue,
|
||||
};
|
||||
// XData = ['2025', '2024', '2023']
|
||||
// valueData = {
|
||||
// data1: ['1', '2', '3', '4'],
|
||||
// };
|
||||
unitMap.yName = '单位:kW'
|
||||
unitMap.name1 = '充电功率'
|
||||
}
|
||||
|
@ -182,6 +184,9 @@
|
|||
yAxis: [{
|
||||
name: unitMap.yName,
|
||||
type: "value",
|
||||
nameTextStyle: {
|
||||
padding: this.lineType == '充电功率' ? [0, 0, 0, 15] : [0, 0, 0, 0],
|
||||
},
|
||||
axisLabel: {
|
||||
textStyle: {
|
||||
color: "#88A9CD",
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
max: 100
|
||||
},
|
||||
];
|
||||
var student = [data.score, data.bmsCurrentAccuracy, data.alarmNumber, data.tempMax, data
|
||||
var student = [data.soh, data.bmsCurrentAccuracy, data.alarmScore, data.tempConsistency, data
|
||||
.voltConsistency, data.socAccuracy
|
||||
];
|
||||
let option = {
|
||||
|
|
|
@ -227,14 +227,14 @@
|
|||
<view class="visualInspection">
|
||||
<lineOneVue :apiData='apiData' :id="'chartRef5'" :lineType="'充电功率'"></lineOneVue>
|
||||
</view>
|
||||
<!-- 充电功率 -->
|
||||
<!-- 请注意 -->
|
||||
<view class="title" style="margin-bottom: 0px;">
|
||||
<span>请注意</span>
|
||||
<span class="smallTitle">QING ZHU YI</span>
|
||||
</view>
|
||||
<view class="visualInspection4">
|
||||
<span class="qzy">
|
||||
报告仍有最高温度历史曲线、温差历史曲线、最高单体电压历史曲线、 压差历史曲线、开路电压一致性历史曲线、SOC准确度历史曲线、健康 度历史曲线等项需要您的爱车
|
||||
报告仍有最高温度历史曲线、温差历史曲线、最高单体电压历史曲线、 压差历史曲线、开路电压一致性历史曲线、SOC准确度历史曲线、健康度历史曲线等项需要您的爱车
|
||||
<span>累计充电4次以上</span>方可提供。
|
||||
</span>
|
||||
</view>
|
||||
|
|
|
@ -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.c94c130b.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.8fab304e.js></script></body></html>
|
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
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