Ver código fonte

修改拟合接口,绩效榜传值sttype,部分对标页面线路下拉框展示

baiyanting 2 anos atrás
pai
commit
b5b4ddc562

+ 1 - 1
src/api/monthlyPerformanceAnalysis.js

@@ -320,7 +320,7 @@ export function getApiequipmentinfoDayCompareList(params) {
 export function getApiPerformancecurvefitting(params) {
   return request({
     baseURL: process.env.VUE_APP_Economy,
-    url: `/performance/curvefitting?wpids=${params.wpids}&type=${params.type}&windturbineIds=${params.wtId}&companys=${params.companys}`,
+    url: `/performance/curvefitting?wpids=${params.wpids}&type=${params.type}&windturbineids=${params.wtId}&companys=${params.companys}`,
     method: "GET",
   });
 }

+ 4 - 1
src/views/layout/economicsOperation/benchmarkingManagement/loseRate/index.vue

@@ -78,7 +78,7 @@
         <el-option
           v-for="item in lineList"
           :key="item.id"
-          :label="item.aname"
+          :label="item.nemName"
           :value="item.id"
         >
         </el-option>
@@ -806,6 +806,9 @@ export default {
       this.lineObj = [];
       this.getLineList(val);
     },
+    handleLineChange(val) {
+      this.gerWxssl();
+    },
     handleCurrentChange(val) {
       if (val.length > 5) {
         let del_row = val.shift();

+ 1 - 1
src/views/layout/economicsOperation/benchmarkingManagement/machineBenchmarking/index.vue

@@ -82,7 +82,7 @@
             <el-option
               v-for="item in lineList"
               :key="item.id"
-              :label="item.aname"
+              :label="item.nemName"
               :value="item.id"
             >
             </el-option>

+ 15 - 6
src/views/layout/economicsOperation/benchmarkingManagement/performanceRankingList/decision1Mx.vue

@@ -72,7 +72,7 @@
         <el-option
           v-for="item in lineList"
           :key="item.id"
-          :label="item.aname"
+          :label="item.nemName"
           :value="item.id"
         >
         </el-option>
@@ -122,7 +122,9 @@
         v-for="val in typeOptions"
         :key="val.id"
       >
-        <span>{{ val.name }}</span>
+        <span>{{
+          val.id == 1 ? (tabIndex == -1 ? val.name : val.name1) : val.name
+        }}</span>
       </div>
     </div>
     <div class="performance" style="height: 90vh">
@@ -261,7 +263,7 @@ export default {
       ],
       typeIndex: "1",
       typeOptions: [
-        { id: "1", name: "风场" },
+        { id: "1", name: "风场", name1: "电站" },
         { id: "2", name: "项目" },
         { id: "3", name: "线路" },
       ],
@@ -400,11 +402,14 @@ export default {
         companyids: companyids,
         type: this.tabIndex,
       }).then((res) => {
+        this.stationObj = "";
+        this.projectObj = "";
+        this.lineObj = "";
         if (res.data.length) {
-        //   this.stationObj = res.data[0].id;
+          //   this.stationObj = res.data[0].id;
           this.stationList = res.data;
           this.getPerformance();
-        //   this.getProject(this.stationObj);
+          //   this.getProject(this.stationObj);
         } else {
           this.stationList = [];
         }
@@ -412,6 +417,8 @@ export default {
     },
     getProject(stationids) {
       GetProjectList(stationids).then((res) => {
+        this.projectObj = "";
+        this.lineObj = "";
         if (res.data.length) {
           this.projectList = res.data;
         } else {
@@ -422,6 +429,7 @@ export default {
     },
     getLineList(projectids) {
       GetLineList(projectids).then((res) => {
+        this.lineObj = "";
         if (res.data.length) {
           this.lineList = res.data;
         } else {
@@ -464,7 +472,7 @@ export default {
       performanceMX({
         companyid: this.company,
         getype: this.tabIndex,
-        sttype: this.stationObj ? "" : this.typeIndex,
+        sttype: this.typeIndex,
         beginDate: this.starTime,
         endDate: this.endTime,
         wpids: this.stationObj,
@@ -564,6 +572,7 @@ export default {
   flex-direction: row;
   align-items: center;
   margin-top: 10px;
+  padding-left: 20px;
 
   .tabCut {
     display: inline-block;

+ 12 - 7
src/views/layout/economicsOperation/benchmarkingManagement/performanceRankingList/index.vue

@@ -72,7 +72,7 @@
         <el-option
           v-for="item in lineList"
           :key="item.id"
-          :label="item.aname"
+          :label="item.nemName"
           :value="item.id"
         >
         </el-option>
@@ -128,7 +128,9 @@
         v-for="val in typeOptions"
         :key="val.id"
       >
-        <span>{{ val.name }}</span>
+        <span>{{
+          val.id == 1 ? (tabIndex == -1 ? val.name : val.name1) : val.name
+        }}</span>
       </div>
     </div>
     <div class="performance" style="height: 90vh">
@@ -251,7 +253,7 @@ export default {
       ],
       typeIndex: "1",
       typeOptions: [
-        { id: "1", name: "风场" },
+        { id: "1", name: "风场", name1: "电站" },
         { id: "2", name: "项目" },
         { id: "3", name: "线路" },
       ],
@@ -348,11 +350,12 @@ export default {
         companyids: companyids,
         type: this.tabIndex,
       }).then((res) => {
+        this.stationObj = "";
+        this.projectObj = "";
+        this.lineObj = "";
         if (res.data.length) {
           this.stationList = res.data;
           this.getPerformance();
-          this.projectObj = "";
-          this.getProject(this.stationObj);
         } else {
           this.stationList = [];
         }
@@ -360,9 +363,10 @@ export default {
     },
     getProject(stationids) {
       GetProjectList(stationids).then((res) => {
+        this.projectObj = "";
+        this.lineObj = "";
         if (res.data.length) {
           this.projectList = res.data;
-          this.lineObj = "";
         } else {
           this.projectList = [];
         }
@@ -371,6 +375,7 @@ export default {
     },
     getLineList(projectids) {
       GetLineList(projectids).then((res) => {
+        this.lineObj = "";
         if (res.data.length) {
           this.lineList = res.data;
         } else {
@@ -413,7 +418,7 @@ export default {
       performance({
         companyid: this.company,
         getype: this.tabIndex,
-        sttype: this.stationObj ? "" : this.typeIndex,
+        sttype: this.typeIndex,
         beginDate: this.starTime,
         endDate: this.endTime,
         wpids: this.stationObj,

+ 2 - 1
src/views/layout/economicsOperation/benchmarkingManagement/projectBenchmarking/index.vue

@@ -51,6 +51,7 @@
       </el-select>
       <el-select
         size="mini"
+        :disabled="displayDetail"
         v-model="projectObj"
         placeholder="请选择"
         multiple
@@ -408,7 +409,7 @@
         <el-table-column
           align="center"
           prop="name"
-    :label="tabIndex == -2 ? '逆变器名称' : '风机名称'"
+          :label="tabIndex == -2 ? '逆变器名称' : '风机名称'"
           width="150"
           sortable
         >

+ 7 - 4
src/views/layout/economicsOperation/benchmarkingManagement/quarterBenchmarking/index.vue

@@ -54,6 +54,7 @@
           <el-select
             size="mini"
             v-model="projectObj"
+            :disabled="displayDetail"
             placeholder="请选择"
             multiple
             collapse-tags
@@ -71,6 +72,7 @@
           <el-select
             size="mini"
             v-model="lineObj"
+            :disabled="displayDetail"
             placeholder="请选择"
             multiple
             collapse-tags
@@ -80,7 +82,7 @@
             <el-option
               v-for="item in lineList"
               :key="item.id"
-              :label="item.aname"
+              :label="item.nemName"
               :value="item.id"
             >
             </el-option>
@@ -88,6 +90,7 @@
           <el-select
             size="mini"
             v-model="squareObj"
+            :disabled="displayDetail"
             placeholder="请选择"
             multiple
             collapse-tags
@@ -747,9 +750,9 @@ export default {
     getSquareList(lineids) {
       GetSquareList(lineids.join(",")).then((res) => {
         if (res.data.length) {
-          this.projectList = res.data;
+          this.squareList = res.data;
         } else {
-          this.projectList = [];
+          this.squareList = [];
         }
         this.gerZqdb();
       });
@@ -825,7 +828,7 @@ export default {
       this.projectObj = [];
       this.lineObj = [];
       this.squareObj = [];
-      this.getProject();
+      this.getProject(val);
     },
     handleProjectChange(val) {
       this.projectObj = val;

+ 1 - 1
src/views/layout/economicsOperation/benchmarkingManagement/wiringBenchmarking/index.vue

@@ -78,7 +78,7 @@
         <el-option
           v-for="item in lineList"
           :key="item.id"
-          :label="item.aname"
+          :label="item.nemName"
           :value="item.id"
         >
         </el-option>