pcs、bms接口联调

This commit is contained in:
白菜
2025-06-28 14:52:49 +08:00
parent 13310948c3
commit d0d4c25377
15 changed files with 455 additions and 306 deletions

View File

@ -27,10 +27,11 @@ export default {
this.chart = echarts.init(document.querySelector('#dtdcChart'))
},
setOption() {
const source = [['日期','电压','温度','SOC','SOH']]
source.push(['1月','12','13','14','15'],['2月','12','13','14','15'])
this.chart.setOption({
color:['#FFBD00','#3C81FF'],
color:['#FFBD00','#3C81FF','#05AEA3','#F86F70'],
legend: {
left: 'center',
bottom: '10',
},
tooltip: {
@ -43,26 +44,37 @@ export default {
color:"#333333",
},
xAxis: {
data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
type: 'category',
},
yAxis: {
type: 'value',
},
dataset:{
source
// source: [['日期','充电量','放电量']]
},
series: [
{
name:'昨天',
data: [80,92,1,34,90,130,320,80,9,91,34,90],
name:'电压',
type: 'bar',
},{
name:'今天',
data: [820,932,901,934,1290,1330,1320,820,932,901,934,1290],
name:'温度',
type: 'bar',
},
{
name:'SOC',
type: 'bar',
},{
name:'SOH',
type: 'bar',
}]
})
this.chart.hideLoading()
}
},
mounted() {
this.initChart()
}
}