|
@ -30,6 +30,14 @@ export default { |
|
|
yData1: [], |
|
|
yData1: [], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
watch: { |
|
|
|
|
|
chartData: { |
|
|
|
|
|
deep: true, |
|
|
|
|
|
handler: function () { |
|
|
|
|
|
this.getEchart() |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
// console.log(this.chartData) |
|
|
// console.log(this.chartData) |
|
@ -40,6 +48,7 @@ export default { |
|
|
this.getEchart(); |
|
|
this.getEchart(); |
|
|
}, 800); |
|
|
}, 800); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
getEchart() { |
|
|
getEchart() { |
|
|
let myChart = echarts.init(document.getElementById('chart_bar')); |
|
|
let myChart = echarts.init(document.getElementById('chart_bar')); |
|
@ -195,11 +204,13 @@ export default { |
|
|
height: 3rem; |
|
|
height: 3rem; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.sn-container { |
|
|
.sn-container { |
|
|
left: 975px; |
|
|
left: 975px; |
|
|
top: 690px; |
|
|
top: 690px; |
|
|
width: 895px; |
|
|
width: 895px; |
|
|
height: 400px; |
|
|
height: 400px; |
|
|
|
|
|
|
|
|
.chartsdom { |
|
|
.chartsdom { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 95%; |
|
|
height: 95%; |
|
|