|
@@ -2,6 +2,8 @@ let app = new Vue({
|
|
|
el: '#app',
|
|
el: '#app',
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ echartR4Chart:'',// 倒数第二个专用
|
|
|
|
|
+ echartR5Chart:'', // 倒是第一个专用
|
|
|
echartEnterpriseShow: false, // 企业额度分析控制
|
|
echartEnterpriseShow: false, // 企业额度分析控制
|
|
|
mapChart: '',//地图专用echarts
|
|
mapChart: '',//地图专用echarts
|
|
|
chartCarousel: '',//做大屏轮播专用echarts
|
|
chartCarousel: '',//做大屏轮播专用echarts
|
|
@@ -80,13 +82,20 @@ let app = new Vue({
|
|
|
this.initChartR1()
|
|
this.initChartR1()
|
|
|
this.initChartR2()
|
|
this.initChartR2()
|
|
|
this.initChartR3()
|
|
this.initChartR3()
|
|
|
- this.initChartR4()
|
|
|
|
|
- this.initChartR5()
|
|
|
|
|
|
|
+ // this.initChartR4()
|
|
|
|
|
+ // this.initChartR5()
|
|
|
this.changeYellow()
|
|
this.changeYellow()
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ yellowMouse(index){
|
|
|
|
|
+ if(index%2 == 0){
|
|
|
|
|
+ this.yellowCount = index
|
|
|
|
|
+ this.yellowPosition = (index/2-1) * 315 + 40
|
|
|
|
|
+ this.changeYellow()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
// 回到中国地图
|
|
// 回到中国地图
|
|
|
backChina () {
|
|
backChina () {
|
|
|
this.backShow = false
|
|
this.backShow = false
|
|
@@ -4674,6 +4683,10 @@ let app = new Vue({
|
|
|
let that = this
|
|
let that = this
|
|
|
let myChart = echarts.init(this.$refs['echartR3'])
|
|
let myChart = echarts.init(this.$refs['echartR3'])
|
|
|
myChart.on('showTip', (params) => {
|
|
myChart.on('showTip', (params) => {
|
|
|
|
|
+ this.echartR4Chart?this.echartR4Chart.dispose():''
|
|
|
|
|
+ this.echartR5Chart?this.echartR5Chart.dispose():''
|
|
|
|
|
+ that.initChartR4()
|
|
|
|
|
+ that.initChartR5()
|
|
|
// 如果是7或者15并且满足防抖则切换
|
|
// 如果是7或者15并且满足防抖则切换
|
|
|
if ((params.dataIndex == 5 || params.dataIndex == 11) && that.echartR3Fd) {
|
|
if ((params.dataIndex == 5 || params.dataIndex == 11) && that.echartR3Fd) {
|
|
|
that.echartR3Fd = false
|
|
that.echartR3Fd = false
|
|
@@ -4892,7 +4905,7 @@ let app = new Vue({
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
initChartR4 () {
|
|
initChartR4 () {
|
|
|
- let myChart = echarts.init(this.$refs['echartR4'])
|
|
|
|
|
|
|
+ this.echartR4Chart = echarts.init(this.$refs['echartR4'])
|
|
|
option = {
|
|
option = {
|
|
|
title: {
|
|
title: {
|
|
|
text: ''
|
|
text: ''
|
|
@@ -4997,10 +5010,10 @@ let app = new Vue({
|
|
|
// interval: 2000,
|
|
// interval: 2000,
|
|
|
// loopSeries: true,
|
|
// loopSeries: true,
|
|
|
// });
|
|
// });
|
|
|
- myChart.setOption(option)
|
|
|
|
|
|
|
+ this.echartR4Chart.setOption(option)
|
|
|
},
|
|
},
|
|
|
initChartR5 () {
|
|
initChartR5 () {
|
|
|
- let myChart = echarts.init(this.$refs['echartR5'])
|
|
|
|
|
|
|
+ this.echartR5Chart = echarts.init(this.$refs['echartR5'])
|
|
|
let option = {
|
|
let option = {
|
|
|
tooltip: {
|
|
tooltip: {
|
|
|
formatter: data => {
|
|
formatter: data => {
|
|
@@ -5168,8 +5181,8 @@ let app = new Vue({
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
}
|
|
}
|
|
|
- myChart.setOption(option)
|
|
|
|
|
- tools.loopShowTooltip(myChart, option, {
|
|
|
|
|
|
|
+ this.echartR5Chart.setOption(option)
|
|
|
|
|
+ tools.loopShowTooltip(this.echartR5Chart, option, {
|
|
|
interval: 2000,
|
|
interval: 2000,
|
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
|
})
|
|
})
|