Browse Source

问题修改(sunzehao提交)

wangb 5 tháng trước cách đây
mục cha
commit
5f00ee2c7a
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      src/views/powerPrediction/powerPredictionPage.vue

+ 4 - 2
src/views/powerPrediction/powerPredictionPage.vue

@@ -20,7 +20,7 @@
                 <!-- <el-scrollbar> -->
                 <div class="scrollbar-flex-content " style="transform: scale(.9)">
                     <p v-for="item in stationData" :key="item.no" class="scrollbar-demo-item"
-                        :class="item.showBac ? 'changeBacksty' : 'defaultBacksty'" @click="changeStation(item.no)">
+                        :class="item.showBac === true ? 'changeBacksty' : 'defaultBacksty'" @click="changeStation(item.no)">
                         {{ item.stationName }}
                     </p>
                 </div>
@@ -838,6 +838,8 @@
             },
             changeStation(val) {
                 this.windTurbines = val;
+                console.log("val===>>>", val)
+                console.log("stationData===>>>", this.stationData)
                 this.stationData.forEach((item) => {
                     if (item.no === val) {
                         this.itemVal = item.itemVal;
@@ -877,7 +879,7 @@
                 return picture;
             },
             seachData() {
-                this.getStationData();
+                // this.getStationData();
                 this.getPowerPrediction();
                 this.getWindSpeed();
                 this.getCapacity();