Biao 3 years ago
parent
commit
4cf26285b6

+ 0 - 1
src/assets/styles/form.less

@@ -85,7 +85,6 @@
       flex: 0 0 auto;
      
     }
-
   }
 
   input {

+ 6 - 0
src/components/coms/table/group-table.vue

@@ -2,6 +2,7 @@
   <el-table class="custom-table" :show-summary="summary" :class="customClass" stripe :data="data.data" :height="height" style="width: 100%" @cell-click="onClick" @header-click="onHeaderClick" ref="groupTable">
     <template v-for="(col, cIndex) in data.column" :key="col">
       <el-table-column v-if="col.child && col.child.length > 0" :label="col.name" :key="col">
+  
         <el-table-column
           v-for="(sub, sindex) in col.child"
           :key="sub"
@@ -21,7 +22,10 @@
             <slot :name="sub.field" :column="sub" :row="item.row" :all="item" :data="item.row[item.field]"></slot>
           </template>
         </el-table-column>
+        
+
       </el-table-column>
+
       <el-table-column
         v-if="!col.child"
         :label="col.name"
@@ -38,6 +42,7 @@
           <slot :name="col.field" :column="col" :row="item.row" :all="item" :data="item.row[col.field]"></slot>
         </template>
       </el-table-column>
+      
     </template>
   </el-table>
   <el-pagination class="mg-t-8"
@@ -189,6 +194,7 @@ export default {
   },
   mounted() {
     // 渲染后
+    console.log(this.data,555555555555555555);
   },
   beforeUpdate() {},
   updated() {},

+ 1 - 0
src/views/Agc/Agc.vue

@@ -131,6 +131,7 @@ export default {
               // console.log('datas',datas);
               datas.push(pEle);
             });
+            console.log(datas);
             this.datas = datas;
           } else {
             this.datas = datas;

+ 1 - 1
src/views/Agc/components/agc-panel.vue

@@ -104,7 +104,7 @@
         </tr>
       </tbody>
     </table>
-    <!-- 查看默认实例去除末尾参数 :list 即可 -->
+    <!-- 查看默认实例去除末尾参数 :list 即可 -->
     <DoubleLineChart
       v-if="chartType === 'double'"
       height="20vh"

+ 17 - 18
src/views/Decision/Decision2Xldb.vue

@@ -94,7 +94,7 @@
           </div>
         </div>
       </div>
-      <div class="query-actions">
+      <div :class="detailShow == 2 ? 'query-actions1' : 'query-actions'">
         <button class="btn green">搜索</button>
         <button class="btn" @click="dbfx">对标分析</button>
         <button class="btn">导出</button>
@@ -160,7 +160,7 @@
     >
       <dayinfo
         :radarValue="radarValue"
-		:title="[windNum,windNum2]"
+        :title="[windNum, windNum2]"
         :windNum="windNum"
         :windNum2="windNum2"
         :tabs="tabs"
@@ -758,7 +758,7 @@ export default {
     api.benchmarkingWplist({}).then((res) => {
       this.value1.push(res.data[0].id);
       this.AjaxCommon();
-      this.ChangZhanChange(this.value1)
+      this.ChangZhanChange(this.value1);
     });
 
     // that.API.requestData({
@@ -828,14 +828,13 @@ export default {
       this.clearDb();
     },
     XianLuVal(val) {
-
-      api.benchmarkingLineList({
-        projects: val,
-      }).then((res) => {
-        this.XianLu = res.data;
-      });
-
-
+      api
+        .benchmarkingLineList({
+          projects: val,
+        })
+        .then((res) => {
+          this.XianLu = res.data;
+        });
 
       // var that = this;
       // that.API.requestData({
@@ -882,17 +881,18 @@ export default {
       }
     },
     AjaxCommon() {
-
-      api.benchmarkingXldb({
-        wpids: this.value1,
+      api
+        .benchmarkingXldb({
+          wpids: this.value1,
           projectids: this.value2,
           lineids: this.value3,
           beginDate: this.value4,
           endDate: this.value5,
           target: "",
           sort: "",
-      }).then((res) => {
-         this.ajaxData = res.data;
+        })
+        .then((res) => {
+          this.ajaxData = res.data;
           var dataTab = [], //表格
             fdl = [],
             cz = [],
@@ -1018,8 +1018,7 @@ export default {
           this.outerLl = ll;
 
           this.analyis = analyis;
-      });
-
+        });
 
       // var that = this;
       // that.API.requestData({

+ 1 - 0
src/views/Home/Home.vue

@@ -1204,6 +1204,7 @@ export default {
           });
 
           this.DayPower = DayPower;
+          console.log(DayPower,'DayPower');
           this.Powertrend = Powertrend;
         });
     },

+ 21 - 21
src/views/Home/components/map/KB_FDC.vue

@@ -216,7 +216,7 @@
         <rect
           x="205"
           y="161"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -237,7 +237,7 @@
         <rect
           x="207"
           y="65"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -258,7 +258,7 @@
         <rect
           x="194"
           y="25"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -298,7 +298,7 @@
         <rect
           x="98"
           y="170"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -319,7 +319,7 @@
         <rect
           x="88"
           y="78"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -340,7 +340,7 @@
         <rect
           x="113"
           y="47"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -380,7 +380,7 @@
         <rect
           x="68"
           y="230"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -402,7 +402,7 @@
         <rect
           x="110"
           y="270"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -424,7 +424,7 @@
         <rect
           x="153"
           y="250"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -465,7 +465,7 @@
         <rect
           x="200"
           y="222"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -486,7 +486,7 @@
         <rect
           x="256"
           y="185"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -507,7 +507,7 @@
         <rect
           x="355"
           y="145"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -529,7 +529,7 @@
         <rect
           x="390"
           y="185"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -551,7 +551,7 @@
         <rect
           x="485"
           y="70"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -573,7 +573,7 @@
         <rect
           x="375"
           y="30"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -595,7 +595,7 @@
         <rect
           x="445"
           y="150"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -617,7 +617,7 @@
         <rect
           x="515"
           y="35"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -639,7 +639,7 @@
         <rect
           x="465"
           y="15"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -661,7 +661,7 @@
         <rect
           x="348"
           y="100"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -683,7 +683,7 @@
         <rect
           x="285"
           y="85"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"
@@ -705,7 +705,7 @@
         <rect
           x="405"
           y="56"
-          width="70"
+          width="99"
           height="23"
           stroke="#46C55A35"
           fill="#000000"

+ 10 - 7
src/views/NewPages/history-search.vue

@@ -18,13 +18,13 @@
             </el-date-picker>
           </div>
         </div>
-        <div class="query-item">
+        <!-- <div class="query-item">
           <div class="lable">间隔:</div>
           <div class="search-input">
             <el-input v-model="form.interval" type="number"></el-input>
           </div>
-        </div>
-        <div class="query-item">
+        </div> -->
+        <!-- <div class="query-item">
           <div class="lable">间隔:</div>
           <div class="search-input">
             <el-checkbox
@@ -33,7 +33,7 @@
               :border="true"
             ></el-checkbox>
           </div>
-        </div>
+        </div> -->
         <div class="query-item">
           <div class="lable"></div>
           <div class="search-input">
@@ -316,8 +316,8 @@ export default {
       }
     },
     last() {
-      if (this.active-- < 0) {
-        this.active = 0;
+      if (this.active-- <= 1) {
+        this.active = 1;
       }
     },
     reset() {
@@ -664,7 +664,10 @@ export default {
   }
 }
 .el-checkbox__input {
-  display: block;
+ display: block;
+}
+.el-checkbox__label{
+  padding-left: 0;
 }
 .steps {
   margin: 30px;

+ 21 - 264
src/views/NewPages/power-benchmarking.vue

@@ -11,12 +11,14 @@
             <svg-icon :svgid="'svg-flash'" />
           </i>
         </div>
+        <!-- 累计增发电量 -->
         <div class="info">
           <div class="title">累计增发电量</div>
           <div class="value">0</div>
           <div class="unit">万kWh</div>
         </div>
       </div>
+      <!--   理论电量平衡分析法 -->
       <div
         class="static-items"
         :style="
@@ -35,6 +37,7 @@
           <div class="item" v-for="(item, index) of analyselist" :key="index">
             <div class="title">{{ item.name }}</div>
             <div class="value">{{ item.actual }}%</div>
+            
             <div class="up-down">
               <div class="up-down-item">
                 <span class="name">环</span>
@@ -73,6 +76,7 @@
                 <span class="value">{{ item.yoy }}%</span>
               </div>
             </div>
+
             <div class="percent">
               <div class="percent-box">
                 <div
@@ -88,9 +92,12 @@
               </div>
               <div class="value">{{ item.expect }}%</div>
             </div>
+
+
           </div>
         </div>
       </div>
+      <!-- 管理效率指标 -->
       <div
         class="static-items"
         :style="
@@ -105,6 +112,7 @@
           </i>
           管理效率指标
         </div>
+
         <div class="items">
           <div class="item" v-for="(item, index) of managelist" :key="index">
             <div class="title">{{ item.name }}</div>
@@ -165,6 +173,7 @@
           </div>
         </div>
       </div>
+      <!--  其它经济性指标 -->
       <div
         class="static-items"
         :style="
@@ -240,6 +249,7 @@
         </div>
       </div>
     </div>
+
     <div class="top">
       <div class="top-left">
         <div class="top-left-header">
@@ -300,6 +310,7 @@
             <span class="right-btn">光伏</span>
           </div> -->
         </div>
+        <!-- 中间数据 -->
         <group-table
           :customClass="'table'"
           :data="eltableData"
@@ -332,6 +343,7 @@
         </group-table>
       </div>
     </div>
+<!-- 指标分析 -->
     <div class="bottom">
       <panel :title="'指标分析'">
         <multiple-bar-chart
@@ -813,62 +825,62 @@ export default {
                   Number(item[3].mttf)
               ),
               availability: this.filter(
-                (Number(item[0].availability) +
+                 (Number(item[0].availability) +
                   Number(item[1].availability) +
                   Number(item[2].availability) +
                   Number(item[3].availability)) /
                   4
               ),
               availabilityfactor: this.filter(
-                (Number(item[0].availabilityfactor) +
+                 (Number(item[0].availabilityfactor) +
                   Number(item[1].availabilityfactor) +
                   Number(item[2].availabilityfactor) +
                   Number(item[3].availabilityfactor)) /
                   4
               ),
               failurelossrate: this.filter(
-                (Number(item[0].failurelossrate) +
+                 (Number(item[0].failurelossrate) +
                   Number(item[1].failurelossrate) +
                   Number(item[2].failurelossrate) +
                   Number(item[3].failurelossrate)) /
                   4
               ),
               mainlossrate: this.filter(
-                (Number(item[0].mainlossrate) +
+                 (Number(item[0].mainlossrate) +
                   Number(item[1].mainlossrate) +
                   Number(item[2].mainlossrate) +
                   Number(item[3].mainlossrate)) /
                   4
               ),
               mttr: this.filter(
-                Number(item[0].mttr) +
+                 Number(item[0].mttr) +
                   Number(item[1].mttr) +
                   Number(item[2].mttr) +
                   Number(item[3].mttr)
               ),
               hiddentimely: this.filter(
-                (Number(item[0].hiddentimely) +
+                 (Number(item[0].hiddentimely) +
                   Number(item[1].hiddentimely) +
                   Number(item[2].hiddentimely) +
                   Number(item[3].hiddentimely)) /
                   4
               ),
               resettimelyrate: this.filter(
-                (Number(item[0].resettimelyrate) +
+                 (Number(item[0].resettimelyrate) +
                   Number(item[1].resettimelyrate) +
                   Number(item[2].resettimelyrate) +
                   Number(item[3].resettimelyrate)) /
                   4
               ),
               statetransitionrate: this.filter(
-                (Number(item[0].statetransitionrate) +
+                 (Number(item[0].statetransitionrate) +
                   Number(item[1].statetransitionrate) +
                   Number(item[2].statetransitionrate) +
                   Number(item[3].statetransitionrate)) /
                   4
               ),
               eliminationrate: this.filter(
-                (Number(item[0].eliminationrate) +
+                 (Number(item[0].eliminationrate) +
                   Number(item[1].eliminationrate) +
                   Number(item[2].eliminationrate) +
                   Number(item[3].eliminationrate)) /
@@ -885,247 +897,6 @@ export default {
             this.echartData(this.eltableData.column[1].child.slice(3));
           }
         });
-
-      // let that = this;
-      // this.API.requestData({
-      //   method: "GET",
-      //   baseURL: "http://10.83.66.220:8020/",
-      //   subUrl: "benchmarking/dbmainbottom",
-      //   data: {
-      //     timetype: timetype,
-      //     foreigntype: "风电",
-      //   },
-      // success(res) {
-      //   if (res.code == 200) {
-      //     res.data.forEach((item) => {
-      //       if (item.foreignkeyid === "SBQ_FDC") item.name = "石板泉";
-      //       if (item.foreignkeyid === "MHS_FDC") item.name = "麻黄山";
-      //       if (item.foreignkeyid === "NSS_FDC") item.name = "牛首山";
-      //       if (item.foreignkeyid === "XS_FDC") item.name = "香山";
-      //       if (item.foreignkeyid === "QS_FDC") item.name = "青山";
-      //       item.mark = that.filter(item.mark);
-      //       item.theoreticalpower = that.filter(item.theoreticalpower);
-      //       item.actualpower = that.filter(item.actualpower);
-      //       item.daynhgzssdl = that.filter(item.daynhgzssdl);
-      //       item.daynhwhssdl = that.filter(item.daynhwhssdl);
-      //       item.daynhxdssdl = that.filter(item.daynhxdssdl);
-      //       item.daynhcfdl = that.filter(item.daynhcfdl);
-      //       item.daynhqfdl = that.filter(item.daynhqfdl);
-      //       item.windenergy = that.filter(item.windenergy);
-      //       item.powerlossrate = that.filter(item.powerlossrate);
-      //       item.performancelossrate = that.filter(item.performancelossrate);
-      //       item.comprehensiverate = that.filter(item.comprehensiverate);
-      //       item.utilizationhours = that.filter(item.utilizationhours);
-      //       item.windpoweraccuracy = that.filter(item.windpoweraccuracy);
-      //       item.agccurvefollowing = that.filter(item.agccurvefollowing);
-      //       item.mtbf = that.filter(item.mtbf);
-      //       item.mttf = that.filter(item.mttf);
-      //       item.availability = that.filter(item.availability);
-      //       item.availabilityfactor = that.filter(item.availabilityfactor);
-      //       item.failurelossrate = that.filter(item.failurelossrate);
-      //       item.mainlossrate = that.filter(item.mainlossrate);
-      //       item.mttr = that.filter(item.mttr);
-      //       item.hiddentimely = that.filter(item.hiddentimely);
-      //       item.resettimelyrate = that.filter(item.resettimelyrate);
-      //       item.statetransitionrate = that.filter(item.statetransitionrate);
-      //       item.eliminationrate = that.filter(item.eliminationrate);
-      //     });
-
-      //     // 合计列
-      //     let item = res.data;
-      //     let obj = {
-      //       name: "合计",
-      //       mark: that.filter(
-      //         (Number(item[0].mark) +
-      //           Number(item[1].mark) +
-      //           Number(item[2].mark) +
-      //           Number(item[3].mark)) /
-      //           4
-      //       ),
-      //       capacity: that.filter(
-      //         Number(item[0].capacity) +
-      //           Number(item[1].capacity) +
-      //           Number(item[2].capacity) +
-      //           Number(item[3].capacity)
-      //       ),
-      //       units: that.filter(
-      //         Number(item[0].units) +
-      //           Number(item[1].units) +
-      //           Number(item[2].units) +
-      //           Number(item[3].units)
-      //       ),
-      //       theoreticalpower: that.filter(
-      //         Number(item[0].theoreticalpower) +
-      //           Number(item[1].theoreticalpower) +
-      //           Number(item[2].theoreticalpower) +
-      //           Number(item[3].theoreticalpower)
-      //       ),
-      //       actualpower: that.filter(
-      //         Number(item[0].actualpower) +
-      //           Number(item[1].actualpower) +
-      //           Number(item[2].actualpower) +
-      //           Number(item[3].actualpower)
-      //       ),
-      //       daynhgzssdl: that.filter(
-      //         Number(item[0].daynhgzssdl) +
-      //           Number(item[1].daynhgzssdl) +
-      //           Number(item[2].daynhgzssdl) +
-      //           Number(item[3].daynhgzssdl)
-      //       ),
-      //       daynhwhssdl: that.filter(
-      //         Number(item[0].daynhwhssdl) +
-      //           Number(item[1].daynhwhssdl) +
-      //           Number(item[2].daynhwhssdl) +
-      //           Number(item[3].daynhwhssdl)
-      //       ),
-      //       daynhxdssdl: that.filter(
-      //         Number(item[0].daynhxdssdl) +
-      //           Number(item[1].daynhxdssdl) +
-      //           Number(item[2].daynhxdssdl) +
-      //           Number(item[3].daynhxdssdl)
-      //       ),
-      //       daynhcfdl: that.filter(
-      //         Number(item[0].daynhcfdl) +
-      //           Number(item[1].daynhcfdl) +
-      //           Number(item[2].daynhcfdl) +
-      //           Number(item[3].daynhcfdl)
-      //       ),
-      //       daynhqfdl: that.filter(
-      //         Number(item[0].daynhqfdl) +
-      //           Number(item[1].daynhqfdl) +
-      //           Number(item[2].daynhqfdl) +
-      //           Number(item[3].daynhqfdl)
-      //       ),
-      //       windenergy: that.filter(
-      //         (Number(item[0].windenergy) +
-      //           Number(item[1].windenergy) +
-      //           Number(item[2].windenergy) +
-      //           Number(item[3].windenergy)) /
-      //           4
-      //       ),
-      //       powerlossrate: that.filter(
-      //         (Number(item[0].powerlossrate) +
-      //           Number(item[1].powerlossrate) +
-      //           Number(item[2].powerlossrate) +
-      //           Number(item[3].powerlossrate)) /
-      //           4
-      //       ),
-      //       performancelossrate: that.filter(
-      //         (Number(item[0].performancelossrate) +
-      //           Number(item[1].performancelossrate) +
-      //           Number(item[2].performancelossrate) +
-      //           Number(item[3].performancelossrate)) /
-      //           4
-      //       ),
-      //       comprehensiverate: that.filter(
-      //         (Number(item[0].comprehensiverate) +
-      //           Number(item[1].comprehensiverate) +
-      //           Number(item[2].comprehensiverate) +
-      //           Number(item[3].comprehensiverate)) /
-      //           4
-      //       ),
-      //       utilizationhours: that.filter(
-      //         Number(item[0].utilizationhours) +
-      //           Number(item[1].utilizationhours) +
-      //           Number(item[2].utilizationhours) +
-      //           Number(item[3].utilizationhours)
-      //       ),
-      //       windpoweraccuracy: that.filter(
-      //         (Number(item[0].windpoweraccuracy) +
-      //           Number(item[1].windpoweraccuracy) +
-      //           Number(item[2].windpoweraccuracy) +
-      //           Number(item[3].windpoweraccuracy)) /
-      //           4
-      //       ),
-      //       agccurvefollowing: that.filter(
-      //         (Number(item[0].agccurvefollowing) +
-      //           Number(item[1].agccurvefollowing) +
-      //           Number(item[2].agccurvefollowing) +
-      //           Number(item[3].agccurvefollowing)) /
-      //           4
-      //       ),
-      //       mtbf: that.filter(
-      //         Number(item[0].mtbf) +
-      //           Number(item[1].mtbf) +
-      //           Number(item[2].mtbf) +
-      //           Number(item[3].mtbf)
-      //       ),
-      //       mttf: that.filter(
-      //         Number(item[0].mttf) +
-      //           Number(item[1].mttf) +
-      //           Number(item[2].mttf) +
-      //           Number(item[3].mttf)
-      //       ),
-      //       availability: that.filter(
-      //         (Number(item[0].availability) +
-      //           Number(item[1].availability) +
-      //           Number(item[2].availability) +
-      //           Number(item[3].availability)) /
-      //           4
-      //       ),
-      //       availabilityfactor: that.filter(
-      //         (Number(item[0].availabilityfactor) +
-      //           Number(item[1].availabilityfactor) +
-      //           Number(item[2].availabilityfactor) +
-      //           Number(item[3].availabilityfactor)) /
-      //           4
-      //       ),
-      //       failurelossrate: that.filter(
-      //         (Number(item[0].failurelossrate) +
-      //           Number(item[1].failurelossrate) +
-      //           Number(item[2].failurelossrate) +
-      //           Number(item[3].failurelossrate)) /
-      //           4
-      //       ),
-      //       mainlossrate: that.filter(
-      //         (Number(item[0].mainlossrate) +
-      //           Number(item[1].mainlossrate) +
-      //           Number(item[2].mainlossrate) +
-      //           Number(item[3].mainlossrate)) /
-      //           4
-      //       ),
-      //       mttr: that.filter(
-      //         Number(item[0].mttr) +
-      //           Number(item[1].mttr) +
-      //           Number(item[2].mttr) +
-      //           Number(item[3].mttr)
-      //       ),
-      //       hiddentimely: that.filter(
-      //         (Number(item[0].hiddentimely) +
-      //           Number(item[1].hiddentimely) +
-      //           Number(item[2].hiddentimely) +
-      //           Number(item[3].hiddentimely)) /
-      //           4
-      //       ),
-      //       resettimelyrate: that.filter(
-      //         (Number(item[0].resettimelyrate) +
-      //           Number(item[1].resettimelyrate) +
-      //           Number(item[2].resettimelyrate) +
-      //           Number(item[3].resettimelyrate)) /
-      //           4
-      //       ),
-      //       statetransitionrate: that.filter(
-      //         (Number(item[0].statetransitionrate) +
-      //           Number(item[1].statetransitionrate) +
-      //           Number(item[2].statetransitionrate) +
-      //           Number(item[3].statetransitionrate)) /
-      //           4
-      //       ),
-      //       eliminationrate: that.filter(
-      //         (Number(item[0].eliminationrate) +
-      //           Number(item[1].eliminationrate) +
-      //           Number(item[2].eliminationrate) +
-      //           Number(item[3].eliminationrate)) /
-      //           4
-      //       ),
-      //     };
-      //     item.push(obj);
-      //     that.eltableData.data = res.data;
-      //     that.setRank();
-      //     that.echartData(that.eltableData.column[1].child.slice(3));
-      //   }
-      // },
-      // });
     },
     // 顶部数据
     requestDataTop(timetype) {
@@ -1137,20 +908,6 @@ export default {
         .then((res) => {
           if (res.code == 200 && res.data.length > 0) this.calculate(res.data);
         });
-
-      // let that = this;
-      // this.API.requestData({
-      //   method: "GET",
-      //   baseURL: "http://10.83.66.220:8020/",
-      //   subUrl: "benchmarking/dbmaintop",
-      //   data: {
-      //     timetype: timetype,
-      //     foreigntype: "风电",
-      //   },
-      //   success(res) {
-      //     if (res.code == 200) that.calculate(res.data);
-      //   },
-      // });
     },
     // 左边的排序
     setRank(column, name) {

+ 2 - 2
src/views/malfunctionDiagnose/index.vue

@@ -83,7 +83,7 @@
       <div class="query-actions">
         <button class="btn green" @click="search()">查询</button>
         <!-- <button class="btn green" @click="">导入</button> -->
-        <button class="btn green" @click="export">导出</button>
+        <button class="btn green" @click="Excels">导出</button>
       </div>
     </div>
     <div class="df-table">
@@ -281,7 +281,7 @@ export default {
     formatJson(filterVal, jsonData) {
       return jsonData.map((v) => filterVal.map((j) => v[j]));
     },
-    export() {
+    Excels() {
       let that = this;
       const { export_json_to_excel } = require("@tools/excel/Export2Excel.js"); // 注意这个Export2Excel路径
       let tHeader = []; // 上面设置Excel的表格第一行的标题