ソースを参照

'动作查询状态转换'

蒋珅 1 年間 前
コミット
38546b5655
1 ファイル変更8 行追加7 行削除
  1. 8 7
      src/components/search/action.vue

+ 8 - 7
src/components/search/action.vue

@@ -126,7 +126,7 @@
                 >
                 </el-table-column>
               </el-table>
-              <div class="titleinfoall" >
+              <div class="titleinfoall" v-if="showControlStatistics">
                 <div class="titleinfo">
                   <span class="showTitle fontSty1">启动:</span>
                   <span class="showvalue">
@@ -359,7 +359,7 @@ export default {
           obj.stationId = item.id;
           obj.children = [];
           this.showData[0].children.push(obj);
-          console.log(123,obj.stationId);
+          // console.log(123,obj.stationId);
         }
       });
       this.datas = this.$store.state.windturbinelist
@@ -374,7 +374,7 @@ export default {
       }
     },
     handleChange(value) {
-      console.log(111,value);
+      // console.log(111,value);
       this.statname=value.stationId
       this.chooseStation = value;
       this.pageIndex = 1;
@@ -434,7 +434,7 @@ export default {
         )
         .then((res) => {
           this.showControlStatistics = true;
-          console.log(999,res);
+          // console.log(999,res);
           this.controlStatisticsInfo = {
             advanceTime: res.data.advanceTime,
             maintenanceCount: res.data.maintenanceCount,
@@ -470,6 +470,7 @@ export default {
           pageIndex: this.pageIndex,
         })
         .then((res) => {
+          console.log(123,res);
           if (res) {
             let types = {
               Start: "启动",
@@ -486,10 +487,10 @@ export default {
               item.result = this.controlErorCodes[item.errorCode];
               item.controls = types[item.controlType];
               item.showName = item.windturbineId;
-              if(item.statusChanged=='true'){
-                 item.statusChanged='成功'
+              if(item.statusChanged==false){
+                 item.statusChanged='失败'
               }else{
-                item.statusChanged='失败'
+                item.statusChanged='成功'
               }
             });
             this.total = res.data.total;