فهرست منبع

图表滚动条逻辑

gcz 2 سال پیش
والد
کامیت
e56337d42a
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 14 0
      src/views/index.vue

+ 14 - 0
src/views/index.vue

@@ -381,6 +381,8 @@ export default {
           //数量过小时隐藏滚动
           if (this.page1Char1.xAxis.data.length <= 8) {
             this.page1Char1.dataZoom[0].show = false;
+          }else{
+            this.page1Char1.dataZoom[0].show = true;
           }
           let charUuid = this.$refs.page1Char1.mid;
           this.$refs.page1Char1.intChar(charUuid);
@@ -407,6 +409,8 @@ export default {
           //数量过小时隐藏滚动
           if (this.page1Char2.xAxis.data.length <= 8) {
             this.page1Char2.dataZoom[0].show = false;
+          }else{
+            this.page1Char2.dataZoom[0].show = true;
           }
           let charUuid = this.$refs.page1Char2.mid;
           this.$refs.page1Char2.intChar(charUuid);
@@ -579,6 +583,8 @@ export default {
           //数量过小时隐藏滚动
           if (this.page2Char2.xAxis.data.length <= 8) {
             this.page2Char2.dataZoom[0].show = false;
+          }else{
+            this.page2Char2.dataZoom[0].show = true;
           }
 
           let charUuid = this.$refs.page2Char2.mid;
@@ -668,6 +674,8 @@ export default {
           //数量过小时隐藏滚动
           if (this.page2Char3.xAxis.data.length <= 8) {
             this.page2Char3.dataZoom[0].show = false;
+          }else{
+            this.page2Char3.dataZoom[0].show = true;
           }
 
           let charUuid = this.$refs.page2Char3.mid;
@@ -727,6 +735,8 @@ export default {
           //数量过小时隐藏滚动
           if (this.page5Char1.xAxis.data.length <= 8) {
             this.page5Char1.dataZoom[0].show = false;
+          }else{
+            this.page5Char1.dataZoom[0].show = true;
           }
           let charUuid = this.$refs.page5Char1.mid;
           this.$refs.page5Char1.intChar(charUuid);
@@ -754,6 +764,8 @@ export default {
           //数量过小时隐藏滚动
           if (this.page5Char2.xAxis.data.length <= 8) {
             this.page5Char2.dataZoom[0].show = false;
+          }else{
+            this.page5Char2.dataZoom[0].show = true;
           }
           let charUuid = this.$refs.page5Char2.mid;
           this.$refs.page5Char2.intChar(charUuid);
@@ -822,6 +834,8 @@ export default {
           //数量过小时隐藏滚动
           if (this.page6Char1.xAxis.data.length <= 8) {
             this.page6Char1.dataZoom[0].show = false;
+          }else{
+            this.page6Char1.dataZoom[0].show = true;
           }
           let charUuid = this.$refs.page6Char1.mid;
           this.$refs.page6Char1.intChar(charUuid);