Ver código fonte

1.首页折线图

zy 8 meses atrás
pai
commit
bf99ec570c

+ 12 - 2
cpp-ui/src/views/largeScreen/echarts-data.js

@@ -143,7 +143,11 @@ export let lineOption = {
       type: 'category',
       boundaryGap: false,
       axisLine: { onZero: false },
-      // prettier-ignore
+      axisLabel: {
+        textStyle: {
+          fontSize: fontSize(.14)
+        }
+      },
       data: ['00:00',
         '00:15', '00:30', '00:45', '01:00',
         '01:15', '01:30', '01:45', '02:00',
@@ -175,7 +179,13 @@ export let lineOption = {
   yAxis: [
     {
       name: 'MW',
-      type: 'value'
+      type: 'value',
+      nameTextStyle:{fontSize:fontSize(.16)},
+      axisLabel: {
+        textStyle: {
+          fontSize: fontSize(.14)
+        }
+      },
     }
   ],
   series: [

+ 3 - 1
cpp-ui/src/views/largeScreen/index.vue

@@ -524,6 +524,8 @@ export default {
         this.envData.radiance = envDataMap.fzdAvg
 
         this.drawChart()
+      }).catch(err=>{
+        clearInterval(this.sysBizDataTimer);
       })
     },
     jumpRout() {
@@ -935,7 +937,7 @@ $top-container-height: 11vh;
 .left-container-style {
   width: 12%;
   height: calc(50%);
-  left: 4rem;
+  left: 3vw;
   font-size: 1vw;
 }
 .left-img{