Ver Fonte

fix:数据获取频率修改

Cooklalala há 5 meses atrás
pai
commit
1633be9442

+ 3 - 2
src/components/Customize/cake.vue

@@ -240,7 +240,7 @@ export default {
       height: 50%;
       margin: 0 10px;
       .secondItem {
-        font-size: 16px;
+        font-size: 14px;
         margin: 21px 0;
       }
     }
@@ -270,7 +270,8 @@ export default {
   align-items: center;
 }
 .number {
-  font-size: 22px;
+  text-align: center;
+  font-size: 16px;
   padding: 4px 0;
   margin: 3px 0;
 }

+ 5 - 4
src/components/Customize/wavyLineChart.vue

@@ -74,6 +74,7 @@ export default {
           `#00CA69`,
         ],
         legend: {
+          selectedMode: false,
           icon: `circle`,
           top: `5%`,
           right: `5%`,
@@ -95,6 +96,7 @@ export default {
             type: `shadow`,
           },
           formatter: function (params) {
+            console.log(params)
             const temMarkerStyle =
               `display: inline-block; width: 14px; height: 14px;border-radius:14px; margin-right:3px; background-color: ` +
               params[0].color +
@@ -105,11 +107,11 @@ export default {
               `;`
             if (params.length > 2) {
               let name = `较上日`
-              if (params[0].axisValue.length > 4) {
+              if (params[0].axisValue.length < 8) {
                 name = `较上月`
               }
               let name1 = `较上月`
-              if (params[0].axisValue.length > 4) {
+              if (params[0].axisValue.length < 8) {
                 name1 = `较去年`
               }
               return [
@@ -158,7 +160,7 @@ export default {
           type: `category`,
           boundaryGap: true,
           axisLabel: {
-            formatter: `{value}`,
+            // formatter: `{value}`,
             textStyle: {
               color: `#c7d6f2`,
             },
@@ -171,7 +173,6 @@ export default {
           data: this.area,
         },
         yAxis: {
-          max: 100,
           type: `value`,
           name: this.unit,
           axisLabel: {

+ 1 - 1
src/components/bgBox/index.vue

@@ -107,7 +107,7 @@ export default {
           fn: this.currentTime,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 900,
           fn: this.currentWeather,
         },
       ],

+ 6 - 6
src/views/page1/index.vue

@@ -152,27 +152,27 @@ export default {
     this.$util.autoVueFn(
       [
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getWeatherForecast,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getAnalysisOfTransplantYieldInVariousRegions,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getTransplantAreaInEachRegion,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getAnalysisOfTransplantingSituation,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getStatistics,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getTrendAnalysis,
         },
       ],

+ 3 - 3
src/views/page2/index.vue

@@ -87,15 +87,15 @@ export default {
     this.$util.autoVueFn(
       [
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getAnalysisOfTransplantingSituation,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getTrendOfTransplantQuantityThisMonth,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getThisYearsTransplantingDataTrend,
         },
       ],

+ 6 - 6
src/views/page3/index.vue

@@ -213,27 +213,27 @@ export default {
     this.$util.autoVueFn(
       [
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getTrendOfTransplantQuantityThisMonth,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getThisYearsTransplantingDataTrend,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getMonthlyTransplantationAreaAnalysis,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getAnalysisOfAnnualTransplantArea,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getStatistics,
         },
         {
-          time: 1000 * 3600,
+          time: 1000 * 60,
           fn: this.getWeatherForecast,
         },
       ],