代码提交4-2

This commit is contained in:
lixiaobang 2025-04-02 14:17:26 +08:00
parent 6e1de287ec
commit 1d8bcadb46
12 changed files with 25 additions and 20 deletions

View File

@ -35,8 +35,7 @@
}, },
deep: true deep: true
}, },
mounted() { mounted() {},
},
methods: { methods: {
async init(data) { async init(data) {
let XData let XData
@ -55,7 +54,7 @@
}; };
unitMap.yName = '温度:℃' unitMap.yName = '温度:℃'
unitMap.name1 = '充电温差' unitMap.name1 = '充电温差'
} else if(this.lineType == '最高温度历史'){ } else if (this.lineType == '最高温度历史') {
const formattedData = data.hstTempMaxTime.map(dateStr => const formattedData = data.hstTempMaxTime.map(dateStr =>
dateStr.replace(/\s/, '\n') dateStr.replace(/\s/, '\n')
); );
@ -65,7 +64,7 @@
}; };
unitMap.yName = '温度:℃' unitMap.yName = '温度:℃'
unitMap.name1 = '最高温度历史' unitMap.name1 = '最高温度历史'
}else if(this.lineType == '温差历史'){ } else if (this.lineType == '温差历史') {
const formattedData = data.hstTempDiffTime.map(dateStr => const formattedData = data.hstTempDiffTime.map(dateStr =>
dateStr.replace(/\s/, '\n') dateStr.replace(/\s/, '\n')
); );
@ -75,7 +74,7 @@
}; };
unitMap.yName = '温度:℃' unitMap.yName = '温度:℃'
unitMap.name1 = '温差历史' unitMap.name1 = '温差历史'
}else if(this.lineType == '最高单体电压历史'){ } else if (this.lineType == '最高单体电压历史') {
const formattedData = data.hstVoltMaxTime.map(dateStr => const formattedData = data.hstVoltMaxTime.map(dateStr =>
dateStr.replace(/\s/, '\n') dateStr.replace(/\s/, '\n')
); );
@ -85,7 +84,7 @@
}; };
unitMap.yName = 'V' unitMap.yName = 'V'
unitMap.name1 = '最高单体电压历史' unitMap.name1 = '最高单体电压历史'
}else if(this.lineType == '压差历史'){ } else if (this.lineType == '压差历史') {
const formattedData = data.hstVoltDiffTime.map(dateStr => const formattedData = data.hstVoltDiffTime.map(dateStr =>
dateStr.replace(/\s/, '\n') dateStr.replace(/\s/, '\n')
); );
@ -95,7 +94,7 @@
}; };
unitMap.yName = 'V' unitMap.yName = 'V'
unitMap.name1 = '压差历史' unitMap.name1 = '压差历史'
}else if(this.lineType == '温度一致性历史'){ } else if (this.lineType == '温度一致性历史') {
const formattedData = data.hstTempConsistencyTime.map(dateStr => const formattedData = data.hstTempConsistencyTime.map(dateStr =>
dateStr.replace(/\s/, '\n') dateStr.replace(/\s/, '\n')
); );
@ -105,7 +104,7 @@
}; };
unitMap.yName = '分' unitMap.yName = '分'
unitMap.name1 = '温度一致性历史' unitMap.name1 = '温度一致性历史'
}else if(this.lineType == '开路电压一致性历史'){ } else if (this.lineType == '开路电压一致性历史') {
const formattedData = data.hstVoltConsistencyTime.map(dateStr => const formattedData = data.hstVoltConsistencyTime.map(dateStr =>
dateStr.replace(/\s/, '\n') dateStr.replace(/\s/, '\n')
); );
@ -115,7 +114,7 @@
}; };
unitMap.yName = '分' unitMap.yName = '分'
unitMap.name1 = '开路电压一致性历史' unitMap.name1 = '开路电压一致性历史'
}else if(this.lineType == '健康度历史'){ } else if (this.lineType == '健康度历史') {
const formattedData = data.hstSohTime.map(dateStr => const formattedData = data.hstSohTime.map(dateStr =>
dateStr.replace(/\s/, '\n') dateStr.replace(/\s/, '\n')
); );
@ -125,8 +124,7 @@
}; };
unitMap.yName = '%' unitMap.yName = '%'
unitMap.name1 = '健康度历史' unitMap.name1 = '健康度历史'
} } else if (this.lineType == '充电功率') {
else if (this.lineType == '充电功率') {
const formattedData = data.powerTime.map(dateStr => const formattedData = data.powerTime.map(dateStr =>
dateStr.replace(/\s/, '\n') dateStr.replace(/\s/, '\n')
); );
@ -134,6 +132,10 @@
valueData = { valueData = {
data1: data.powerValue, data1: data.powerValue,
}; };
// XData = ['2025', '2024', '2023']
// valueData = {
// data1: ['1', '2', '3', '4'],
// };
unitMap.yName = '单位kW' unitMap.yName = '单位kW'
unitMap.name1 = '充电功率' unitMap.name1 = '充电功率'
} }
@ -182,6 +184,9 @@
yAxis: [{ yAxis: [{
name: unitMap.yName, name: unitMap.yName,
type: "value", type: "value",
nameTextStyle: {
padding: this.lineType == '充电功率' ? [0, 0, 0, 15] : [0, 0, 0, 0],
},
axisLabel: { axisLabel: {
textStyle: { textStyle: {
color: "#88A9CD", color: "#88A9CD",

View File

@ -56,7 +56,7 @@
max: 100 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 .voltConsistency, data.socAccuracy
]; ];
let option = { let option = {

View File

@ -227,14 +227,14 @@
<view class="visualInspection"> <view class="visualInspection">
<lineOneVue :apiData='apiData' :id="'chartRef5'" :lineType="'充电功率'"></lineOneVue> <lineOneVue :apiData='apiData' :id="'chartRef5'" :lineType="'充电功率'"></lineOneVue>
</view> </view>
<!-- 充电功率 --> <!-- 请注意 -->
<view class="title" style="margin-bottom: 0px;"> <view class="title" style="margin-bottom: 0px;">
<span>请注意</span> <span>请注意</span>
<span class="smallTitle">QING ZHU YI</span> <span class="smallTitle">QING ZHU YI</span>
</view> </view>
<view class="visualInspection4"> <view class="visualInspection4">
<span class="qzy"> <span class="qzy">
报告仍有最高温度历史曲线温差历史曲线最高单体电压历史曲线 压差历史曲线开路电压一致性历史曲线SOC准确度历史曲线健康 度历史曲线等项需要您的爱车 报告仍有最高温度历史曲线温差历史曲线最高单体电压历史曲线 压差历史曲线开路电压一致性历史曲线SOC准确度历史曲线健康度历史曲线等项需要您的爱车
<span>累计充电4次以上</span>方可提供 <span>累计充电4次以上</span>方可提供
</span> </span>
</view> </view>

View File

@ -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)')) <!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

Binary file not shown.