|
@@ -1,6 +1,6 @@
|
|
let app = new Vue({
|
|
let app = new Vue({
|
|
el: '#app',
|
|
el: '#app',
|
|
- data() {
|
|
|
|
|
|
+ data () {
|
|
return {
|
|
return {
|
|
showTip2: false,
|
|
showTip2: false,
|
|
year: '2022',
|
|
year: '2022',
|
|
@@ -53,18 +53,18 @@ let app = new Vue({
|
|
],
|
|
],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
|
|
+ created () {
|
|
this.time = formatDate()
|
|
this.time = formatDate()
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
this.time = formatDate()
|
|
this.time = formatDate()
|
|
}, 1000)
|
|
}, 1000)
|
|
},
|
|
},
|
|
- beforeDestroy() {
|
|
|
|
|
|
+ beforeDestroy () {
|
|
if (this.timer) {
|
|
if (this.timer) {
|
|
clearInterval(this.timer);
|
|
clearInterval(this.timer);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- mounted() {
|
|
|
|
|
|
+ mounted () {
|
|
// 左侧图表
|
|
// 左侧图表
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.initChartL1()
|
|
this.initChartL1()
|
|
@@ -80,7 +80,7 @@ let app = new Vue({
|
|
},)
|
|
},)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- convertData(data) {
|
|
|
|
|
|
+ convertData (data) {
|
|
var res = []
|
|
var res = []
|
|
for (var i = 0; i < data.length; i++) {
|
|
for (var i = 0; i < data.length; i++) {
|
|
var geoCoord = this.geoCoordMap[data[i].name]
|
|
var geoCoord = this.geoCoordMap[data[i].name]
|
|
@@ -93,7 +93,7 @@ let app = new Vue({
|
|
}
|
|
}
|
|
return res
|
|
return res
|
|
},
|
|
},
|
|
- initChinaChart() {
|
|
|
|
|
|
+ initChinaChart () {
|
|
var data = [
|
|
var data = [
|
|
{ name: '吕梁市', value: 150 },
|
|
{ name: '吕梁市', value: 150 },
|
|
{ name: '大同市', value: 190 },
|
|
{ name: '大同市', value: 190 },
|
|
@@ -529,7 +529,7 @@ let app = new Vue({
|
|
],
|
|
],
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- initChartL1() {
|
|
|
|
|
|
+ initChartL1 () {
|
|
let myChart = echarts.init(document.getElementById("echartL1"));
|
|
let myChart = echarts.init(document.getElementById("echartL1"));
|
|
let option = {
|
|
let option = {
|
|
grid: {
|
|
grid: {
|
|
@@ -680,7 +680,7 @@ let app = new Vue({
|
|
})
|
|
})
|
|
myChart.setOption(option);
|
|
myChart.setOption(option);
|
|
},
|
|
},
|
|
- initChartL2() {
|
|
|
|
|
|
+ initChartL2 () {
|
|
let myChart = echarts.init(this.$refs['echartL2'])
|
|
let myChart = echarts.init(this.$refs['echartL2'])
|
|
var value = 0.45;
|
|
var value = 0.45;
|
|
var data = [value];
|
|
var data = [value];
|
|
@@ -751,7 +751,7 @@ let app = new Vue({
|
|
}
|
|
}
|
|
myChart.setOption(option)
|
|
myChart.setOption(option)
|
|
},
|
|
},
|
|
- initChartL3() {
|
|
|
|
|
|
+ initChartL3 () {
|
|
let myChart = echarts.init(this.$refs['echartL3'])
|
|
let myChart = echarts.init(this.$refs['echartL3'])
|
|
let option = {
|
|
let option = {
|
|
tooltip: {
|
|
tooltip: {
|
|
@@ -876,7 +876,7 @@ let app = new Vue({
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- initChartL4() {
|
|
|
|
|
|
+ initChartL4 () {
|
|
let myChart = echarts.init(this.$refs['echartL4'])
|
|
let myChart = echarts.init(this.$refs['echartL4'])
|
|
let option = {
|
|
let option = {
|
|
title: {
|
|
title: {
|
|
@@ -933,7 +933,7 @@ let app = new Vue({
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- initChartL5() {
|
|
|
|
|
|
+ initChartL5 () {
|
|
let myChart = echarts.init(this.$refs['echartL5'])
|
|
let myChart = echarts.init(this.$refs['echartL5'])
|
|
let option = {
|
|
let option = {
|
|
title: {
|
|
title: {
|
|
@@ -989,7 +989,7 @@ let app = new Vue({
|
|
nterval: 2000,
|
|
nterval: 2000,
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
})
|
|
})
|
|
- }, initChartL6() {
|
|
|
|
|
|
+ }, initChartL6 () {
|
|
let myChart = echarts.init(this.$refs['echartL6'])
|
|
let myChart = echarts.init(this.$refs['echartL6'])
|
|
let option = {
|
|
let option = {
|
|
title: {
|
|
title: {
|
|
@@ -1045,7 +1045,7 @@ let app = new Vue({
|
|
nterval: 2000,
|
|
nterval: 2000,
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
})
|
|
})
|
|
- }, initChartL7() {
|
|
|
|
|
|
+ }, initChartL7 () {
|
|
let myChart = echarts.init(this.$refs['echartL7'])
|
|
let myChart = echarts.init(this.$refs['echartL7'])
|
|
let option = {
|
|
let option = {
|
|
title: {
|
|
title: {
|
|
@@ -1102,7 +1102,7 @@ let app = new Vue({
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- initChartR4() {
|
|
|
|
|
|
+ initChartR4 () {
|
|
let myChart = echarts.init(this.$refs['echartR4'])
|
|
let myChart = echarts.init(this.$refs['echartR4'])
|
|
let option = {
|
|
let option = {
|
|
title: {
|
|
title: {
|
|
@@ -1180,7 +1180,7 @@ let app = new Vue({
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- initChartR5() {
|
|
|
|
|
|
+ initChartR5 () {
|
|
let myChart = echarts.init(this.$refs['echartR5'])
|
|
let myChart = echarts.init(this.$refs['echartR5'])
|
|
let option = {
|
|
let option = {
|
|
title: {
|
|
title: {
|
|
@@ -1259,7 +1259,7 @@ let app = new Vue({
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- initChartR1() {
|
|
|
|
|
|
+ initChartR1 () {
|
|
let myChart = echarts.init(this.$refs['echartR1'])
|
|
let myChart = echarts.init(this.$refs['echartR1'])
|
|
let option = {
|
|
let option = {
|
|
title: {
|
|
title: {
|
|
@@ -1316,7 +1316,7 @@ let app = new Vue({
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- initChartR2() {
|
|
|
|
|
|
+ initChartR2 () {
|
|
let myChart = echarts.init(this.$refs['echartR2'])
|
|
let myChart = echarts.init(this.$refs['echartR2'])
|
|
let option = {
|
|
let option = {
|
|
title: {
|
|
title: {
|
|
@@ -1373,7 +1373,7 @@ let app = new Vue({
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- initChartR3() {
|
|
|
|
|
|
+ initChartR3 () {
|
|
let myChart = echarts.init(this.$refs['echartR3'])
|
|
let myChart = echarts.init(this.$refs['echartR3'])
|
|
let option = {
|
|
let option = {
|
|
title: {
|
|
title: {
|