yijianjun 1 月之前
父節點
當前提交
92e9af0e5c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/modules/load-forecasting-v2/components/forecasting-detail.vue

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

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