refactor(src/views/reagent/mainoverview): 添加湿度温度对应单位map

duizhaopin_ui
duan 2 years ago
parent 20cf563df6
commit a4ffc27d8a

@ -529,9 +529,11 @@ export default {
document.getElementById('line')
)
}
const raOption = ['温度', '湿度', 'VOC含量']
const tmp = ['°C', 'RH%', 'ppm']
const option = {
title: {
text: this.options[this.client_date - 1] + '温度变化'
text: this.options[this.client_date - 1] + raOption[this.radio1 - 1] + '变化'
},
tooltip: {
trigger: 'axis'
@ -552,7 +554,7 @@ export default {
yAxis: {
type: 'value',
axisLabel: {
formatter: '{value} °C'
formatter: '{value} ' + tmp[[this.radio1 - 1]]
}
},
series: [

Loading…
Cancel
Save