代码提交4-2
This commit is contained in:
parent
6e1de287ec
commit
1d8bcadb46
|
@ -35,8 +35,7 @@
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {},
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
async init(data) {
|
async init(data) {
|
||||||
let XData
|
let XData
|
||||||
|
@ -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",
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -227,7 +227,7 @@
|
||||||
<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>
|
||||||
|
|
|
@ -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
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue