|
|
|
@ -314,14 +314,11 @@ export default { |
|
|
|
initChart() { |
|
|
|
this.$http.get('/governance/satisfactionOverview/notSatisfactionTrend').then(({data: {data}}) => { |
|
|
|
this.myChart = echarts.init(document.getElementById('my_chart')); |
|
|
|
let series = [] |
|
|
|
console.log(data,'datadatadata') |
|
|
|
data.series.forEach(item => { |
|
|
|
series.push({ |
|
|
|
let series = data.series.map((item, index) => { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
type: 'line', |
|
|
|
stack: 'Total', |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
let option = { |
|
|
|
tooltip: { |
|
|
|
|