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