|
@@ -2,7 +2,7 @@ let app = new Vue({
|
|
el: '#app',
|
|
el: '#app',
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
- count: 1,
|
|
|
|
|
|
+ count: 2,
|
|
countType: 0,
|
|
countType: 0,
|
|
type: true, // 切换柱状图状态
|
|
type: true, // 切换柱状图状态
|
|
showTip2: false,
|
|
showTip2: false,
|
|
@@ -80,19 +80,7 @@ let app = new Vue({
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
this.time = formatDate()
|
|
this.time = formatDate()
|
|
}, 1000)
|
|
}, 1000)
|
|
- this.timer2 = setInterval(() => {
|
|
|
|
- if (this.count < dataList.length) {
|
|
|
|
- this.count++
|
|
|
|
- } else {
|
|
|
|
- this.count = 1
|
|
|
|
- }
|
|
|
|
- if (this.count > 14) {
|
|
|
|
- this.countType = 1
|
|
|
|
- } else {
|
|
|
|
- this.countType = 0
|
|
|
|
- }
|
|
|
|
- this.initChartL3()
|
|
|
|
- }, 2000)
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
beforeDestroy () {
|
|
beforeDestroy () {
|
|
@@ -102,6 +90,7 @@ let app = new Vue({
|
|
this.timer2 && clearInterval(this.timer2);
|
|
this.timer2 && clearInterval(this.timer2);
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
|
|
+
|
|
// 左侧图表
|
|
// 左侧图表
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.initChartL1()
|
|
this.initChartL1()
|
|
@@ -115,22 +104,38 @@ let app = new Vue({
|
|
this.initChartR2()
|
|
this.initChartR2()
|
|
this.initChartR3()
|
|
this.initChartR3()
|
|
this.initChartR6()
|
|
this.initChartR6()
|
|
|
|
+
|
|
},)
|
|
},)
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- var swiper = new Swiper(".mySwiper", {
|
|
|
|
- pagination: {
|
|
|
|
- el: ".swiper-pagination",
|
|
|
|
- type: "progressbar",
|
|
|
|
- },
|
|
|
|
- navigation: {
|
|
|
|
- nextEl: ".swiper-button-next",
|
|
|
|
- prevEl: ".swiper-button-prev",
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- swiper.el.onmouseout = function () {
|
|
|
|
- swiper.autoplay.start();
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this.timer2 = setInterval(() => {
|
|
|
|
+ if (this.count < dataList.length - 1) {
|
|
|
|
+ this.count++
|
|
|
|
+ } else {
|
|
|
|
+ this.count = 1
|
|
|
|
+ }
|
|
|
|
+ if (this.count > 14) {
|
|
|
|
+ this.countType = 1
|
|
|
|
+ } else {
|
|
|
|
+ this.countType = 0
|
|
|
|
+ }
|
|
|
|
+ this.initChartL3()
|
|
|
|
+ }, 2000)
|
|
|
|
+ }, 300)
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // var swiper = new Swiper(".mySwiper", {
|
|
|
|
+ // pagination: {
|
|
|
|
+ // el: ".swiper-pagination",
|
|
|
|
+ // type: "progressbar",
|
|
|
|
+ // },
|
|
|
|
+ // navigation: {
|
|
|
|
+ // nextEl: ".swiper-button-next",
|
|
|
|
+ // prevEl: ".swiper-button-prev",
|
|
|
|
+ // },
|
|
|
|
+ // });
|
|
|
|
+ // swiper.el.onmouseout = function () {
|
|
|
|
+ // swiper.autoplay.start();
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
convertData (data) {
|
|
convertData (data) {
|