Bladeren bron

首页的得分图bugfix

zhudie 1 jaar geleden
bovenliggende
commit
2a51132b29
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 4 3
      src/views/dashboard/home/components/Score.vue

+ 4 - 3
src/views/dashboard/home/components/Score.vue

@@ -102,7 +102,7 @@
       showDataShadow: false,
       xAxisIndex: [0],
       start: 0,
-      end: Number(10 / scoreInfoList.value.length) * 100,
+      end: Number(9 / scoreInfoList.value.length) * 100,
       handleSize: 1,
       height: 7,
       bottom: 2,
@@ -172,7 +172,7 @@
           type: 'bar',
         },
       ],
-      dataZoom: scoreInfoList.value.length > 10 ? dataZoomConfig.value : null,
+      dataZoom: scoreInfoList.value.length > 9 ? dataZoomConfig.value : null,
       // 启用数据区域缩放
     };
   });
@@ -222,7 +222,8 @@
 
   .score-show {
     flex-grow: 1;
-    width: calc(100% - 660px);
+    /* width: calc(100% - 660px); */
+    width: 100%;
     min-width: 500px;
     overflow-x: auto;
   }