| | |
| | | +<template> |
| | | <div style="width: 100%; height: 100%"> |
| | | <div style="width: 100%; height: 100%; margin:0 auto"> |
| | | <div class="topSelect"> |
| | | <el-cascader |
| | | v-model="newMac" |
| | |
| | | <div style="position:absolute">(单位:ug/m³)</div> |
| | | <div style="text-align: center;width: 100%;">{{ newData }}·{{ newMac?newMac[0]:'' }}·{{ newMac?newMac[newMac.length - 1][0]:'' }}·{{ value |sensorFilter }}·趋势图</div> |
| | | </div> --> |
| | | <LineChart :chart-data="lineChartData" style="height: 23rem"/> |
| | | <LineChart :chart-data="lineChartData" style="height: 23rem;"/> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | series: [], |
| | | xAxis: [], |
| | | title: [], |
| | | yAxis:[] |
| | | } |
| | | this.newXData = [] |
| | | this.$request({ |
| | |
| | | newLineChartData.xAxis.push(data[0].timeValueList[i].time) |
| | | } |
| | | for (var i = 0; i < data.length; i++) { |
| | | newLineChartData.series.push({ data: [], name: '', type: 'line' }) |
| | | newLineChartData.series.push({ data: [], name: '', type: 'line' ,yAxisIndex:data[i].code}) |
| | | // newLineChartData.yAxis.push({}) |
| | | newLineChartData.series[i].name = data[i].name |
| | | newLineChartData.title.push(data[i].name); |
| | | for (var j = 0; j < data[i].timeValueList.length; j++) { |