yijianjun 1 month ago
parent
commit
2554ee16c8

+ 3 - 3
src/views/modules/load-forecasting-v2/components/forecasting-detail.vue

@@ -130,7 +130,7 @@ export default {
           tooltip: { trigger: 'axis', backgroundColor: 'transparent' },
           xAxis: {
             type: 'category',
-            data: this.columns.reverse(),
+            data: this.columns,
           },
           yAxis: [
             {
@@ -151,13 +151,13 @@ export default {
           series: [
             {
               name: '最大负荷',
-              data: this.columns.reverse().map(key => row[`${key}_peakLoad`]),
+              data: this.columns.map(key => row[`${key}_peakLoad`]),
               type: 'line',
               yAxisIndex: 0,
             },
             {
               name: '最大负荷率',
-              data: this.columns.reverse().map(key => row[`${key}_loadRate`]),
+              data: this.columns.map(key => row[`${key}_loadRate`]),
               type: 'line',
               yAxisIndex: 1,
             },