代码提交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
},
mounted() {
},
mounted() {},
methods: {
async init(data) {
let XData
@ -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",

View File

@ -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 = {

View File

@ -227,7 +227,7 @@
<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 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)'))
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.