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