Selaa lähdekoodia

(sunzehao提交)功率预测修改

wangb 5 kuukautta sitten
vanhempi
commit
0346a26f7c

+ 3 - 3
src/views/generatingCapacity/yhjyReport/index.vue

@@ -375,9 +375,9 @@
             /**场站 */
             funGetStation() {
                 let that = this;
-                this.renderReportPage({
-                    data: jsonData.data
-                });
+                // this.renderReportPage({
+                //     data: jsonData.data
+                // });
                 apiGetbaseStation().then((res) => {
                     if (res) {
                         that.stationList = res.data;

+ 0 - 37
src/views/powerPrediction/batteryDivinerPage.vue

@@ -76,7 +76,6 @@
         data() {
             return {
                 windTurbines: "",
-                statusData: [],
                 messageDataxc: [],
                 stationData: [],
                 pickerTime: [],
@@ -102,42 +101,6 @@
             },
         },
         created() {
-            this.statusData = [{
-                    type: "1",
-                    name: "运行",
-                    number: "321",
-                },
-                {
-                    type: "2",
-                    name: "待机",
-                    number: "10",
-                },
-                {
-                    type: "3",
-                    name: "维护",
-                    number: "10",
-                },
-                {
-                    type: "4",
-                    name: "停机",
-                    number: "20",
-                },
-                {
-                    type: "5",
-                    name: "限电",
-                    number: "0",
-                },
-                {
-                    type: "6",
-                    name: "离线",
-                    number: "20",
-                },
-                {
-                    type: "7",
-                    name: "检修",
-                    number: "20",
-                },
-            ];
             this.ExceedTimeList = [{
                     label: "超前15分钟",
                     value: 0,

+ 64 - 50
src/views/powerPrediction/homePageNoMap.vue

@@ -195,6 +195,10 @@
     } from "@/utils/auth";
 
     import jsonData from "./component/homePageNoMap.json";
+
+    import {
+        apiGethomeData
+    } from "@/api/gengra";
     export default {
         components: {
             // commonHeader,
@@ -231,6 +235,7 @@
                 yellowImg: yellowImg,
                 timeImg: timeImg,
                 timeImg1: timeImg1,
+                wpId: "GJNY_SXGS_DBXNY_ZGS0",
             };
         },
         created() {
@@ -511,7 +516,7 @@
             this.statusData = [{
                     img: oneimg,
                     name: "运行",
-                    nameEn: "yx",
+                    nameEn: "yxsum",
                     borderSty: "#1C99FF",
                     backSty: "#0046C7",
                     numBack: "#212223",
@@ -520,34 +525,34 @@
                 {
                     img: twoimg,
                     name: "待机",
-                    nameEn: "dj",
+                    nameEn: "tjsum",
                     borderSty: "#05BB4C",
                     backSty: "#258952",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
-                    img: threeimg,
+                    img: sevenimg,
                     name: "故障",
-                    nameEn: "wh",
-                    borderSty: "#E17D24",
-                    backSty: "#694119",
+                    nameEn: "whsum",
+                    borderSty: "#BA3237",
+                    backSty: "#73262B",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
-                    img: fourimg,
-                    name: "停机",
-                    nameEn: "tj",
-                    borderSty: "#52595B",
-                    backSty: "#272a2b",
+                    img: threeimg,
+                    name: "维护",
+                    nameEn: "jxsum",
+                    borderSty: "#E17D24",
+                    backSty: "#694119",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
                     img: fiveimg,
                     name: "限电",
-                    nameEn: "xd",
+                    nameEn: "xdsum",
                     borderSty: "#C530C8",
                     backSty: "#7A277F",
                     numBack: "#212223",
@@ -555,19 +560,19 @@
                 },
                 {
                     img: siximg,
-                    name: "离线",
-                    nameEn: "lx",
+                    name: "受累",
+                    nameEn: "djsum",
                     borderSty: "#fff",
                     backSty: "#38393B",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
-                    img: sevenimg,
-                    name: "检修",
-                    nameEn: "jx",
-                    borderSty: "#BA3237",
-                    backSty: "#73262B",
+                    img: fourimg,
+                    name: "离线",
+                    nameEn: "lxsum",
+                    borderSty: "#52595B",
+                    backSty: "#272a2b",
                     numBack: "#212223",
                     number: 0,
                 },
@@ -575,7 +580,7 @@
             this.statusDataW = [{
                     img: oneimg1,
                     name: "运行",
-                    nameEn: "yx",
+                    nameEn: "yxsum",
                     borderSty: "#3777E8",
                     backSty: "#1850B3",
                     numBack: "#073484",
@@ -584,57 +589,58 @@
                 {
                     img: twoimg1,
                     name: "待机",
-                    nameEn: "dj",
+                    nameEn: "tjsum",
                     borderSty: "#6BDB97",
                     backSty: "#0EAC4C",
                     numBack: "#077C35",
                     number: 0,
                 },
                 {
-                    img: threeimg1,
+                    img: sevenimg1,
                     name: "故障",
-                    nameEn: "wh",
-                    borderSty: "#F1AF74",
-                    backSty: "#E17D24",
-                    numBack: "#A6530A",
+                    nameEn: "whsum",
+                    borderSty: "#73262B",
+                    backSty: "#BA3237",
+                    numBack: "#881B1F",
+
                     number: 0,
                 },
                 {
-                    img: fourimg1,
-                    name: "停机",
-                    nameEn: "tj",
-                    borderSty: "#CDCDCD",
-                    backSty: "#A8A8A8",
-                    numBack: "#878787",
+                    img: threeimg1,
+                    name: "维护",
+                    nameEn: "jxsum",
+                    borderSty: "#F1AF74",
+                    backSty: "#E17D24",
+                    numBack: "#A6530A",
                     number: 0,
                 },
                 {
                     img: fiveimg1,
                     name: "限电",
-                    nameEn: "xd",
+                    nameEn: "xdsum",
                     borderSty: "#E757EA",
                     backSty: "#C530C8",
                     numBack: "#901193",
                     number: 0,
                 },
                 {
+                    img: fourimg1,
+                    name: "受累",
+                    nameEn: "djsum",
+                    borderSty: "#CDCDCD",
+                    backSty: "#A8A8A8",
+                    numBack: "#878787",
+                    number: 0,
+                },
+                {
                     img: siximg1,
                     name: "离线",
-                    nameEn: "lx",
+                    nameEn: "lxsum",
                     borderSty: "#595D61",
                     backSty: "#38393B",
                     numBack: "#151719",
                     number: 0,
                 },
-                {
-                    img: sevenimg1,
-                    name: "检修",
-                    nameEn: "jx",
-                    borderSty: "#73262B",
-                    backSty: "#BA3237",
-                    numBack: "#881B1F",
-                    number: 0,
-                },
             ];
             this.pickerTime = [
                 new Date(
@@ -1015,23 +1021,31 @@
             // 获取风机状态服务
             getWindStstus() {
                 let that = this;
-                apiGetStatusInfoAll().then((datas) => {
-                    if (datas) {
-                        if (datas.data) {
+                let params = {
+                    wpId: this.wpId,
+                };
+                apiGethomeData(params)
+                    .then((res) => {
+                        if (res && res.data.ztmap) {
                             that.statusData.forEach((item) => {
-                                for (let it in datas.data) {
+                                for (let it in res.data.ztmap) {
                                     if (item.nameEn === it) {
-                                        item.number = datas.data[it];
+                                        item.number = res.data.ztmap[it];
                                     }
                                 }
                             });
                             that.statusDataW.forEach((item) => {
-                                for (let it in datas.data) {
+                                for (let it in res.data.ztmap) {
                                     if (item.nameEn === it) {
-                                        item.number = datas.data[it];
+                                        item.number = res.data.ztmap[it];
                                     }
                                 }
                             });
+                        }
+                    })
+                apiGetStatusInfoAll().then((datas) => {
+                    if (datas) {
+                        if (datas.data) {
                             that.allStatus = datas.data;
                         }
                     }

+ 114 - 79
src/views/powerPrediction/panoramicPower.vue

@@ -80,6 +80,9 @@
     import sevenimg1 from "@/assets/windStatusPic/guzhang_W.png";
 
     import jsonData from "./component/panoramicPower.json";
+    import {
+        apiGethomeData
+    } from "@/api/gengra";
     export default {
         components: {
             panoramaDialog,
@@ -97,6 +100,7 @@
                 showpowerLegend: [],
                 echartsTheme: "",
                 theme: null,
+                wpId: "GJNY_SXGS_DBXNY_ZGS0",
             };
         },
         watch: {
@@ -116,7 +120,7 @@
             this.statusData = [{
                     img: oneimg,
                     name: "运行",
-                    nameEn: "yx",
+                    nameEn: "yxsum",
                     borderSty: "#1C99FF",
                     backSty: "#0046C7",
                     numBack: "#212223",
@@ -125,34 +129,34 @@
                 {
                     img: twoimg,
                     name: "待机",
-                    nameEn: "dj",
+                    nameEn: "tjsum",
                     borderSty: "#05BB4C",
                     backSty: "#258952",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
-                    img: threeimg,
-                    name: "维护",
-                    nameEn: "wh",
-                    borderSty: "#E17D24",
-                    backSty: "#694119",
+                    img: sevenimg,
+                    name: "故障",
+                    nameEn: "whsum",
+                    borderSty: "#BA3237",
+                    backSty: "#73262B",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
-                    img: fourimg,
-                    name: "停机",
-                    nameEn: "tj",
-                    borderSty: "#52595B",
-                    backSty: "#272a2b",
+                    img: threeimg,
+                    name: "维护",
+                    nameEn: "jxsum",
+                    borderSty: "#E17D24",
+                    backSty: "#694119",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
                     img: fiveimg,
                     name: "限电",
-                    nameEn: "xd",
+                    nameEn: "xdsum",
                     borderSty: "#C530C8",
                     backSty: "#7A277F",
                     numBack: "#212223",
@@ -160,19 +164,19 @@
                 },
                 {
                     img: siximg,
-                    name: "离线",
-                    nameEn: "lx",
+                    name: "受累",
+                    nameEn: "djsum",
                     borderSty: "#fff",
                     backSty: "#38393B",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
-                    img: sevenimg,
-                    name: "检修",
-                    nameEn: "jx",
-                    borderSty: "#BA3237",
-                    backSty: "#73262B",
+                    img: fourimg,
+                    name: "离线",
+                    nameEn: "lxsum",
+                    borderSty: "#52595B",
+                    backSty: "#272a2b",
                     numBack: "#212223",
                     number: 0,
                 },
@@ -180,7 +184,7 @@
             this.statusDataW = [{
                     img: oneimg1,
                     name: "运行",
-                    nameEn: "yx",
+                    nameEn: "yxsum",
                     borderSty: "#3777E8",
                     backSty: "#1850B3",
                     numBack: "#073484",
@@ -189,57 +193,58 @@
                 {
                     img: twoimg1,
                     name: "待机",
-                    nameEn: "dj",
+                    nameEn: "tjsum",
                     borderSty: "#6BDB97",
                     backSty: "#0EAC4C",
                     numBack: "#077C35",
                     number: 0,
                 },
                 {
+                    img: sevenimg1,
+                    name: "故障",
+                    nameEn: "whsum",
+                    borderSty: "#73262B",
+                    backSty: "#BA3237",
+                    numBack: "#881B1F",
+
+                    number: 0,
+                },
+                {
                     img: threeimg1,
                     name: "维护",
-                    nameEn: "wh",
+                    nameEn: "jxsum",
                     borderSty: "#F1AF74",
                     backSty: "#E17D24",
                     numBack: "#A6530A",
                     number: 0,
                 },
                 {
-                    img: fourimg1,
-                    name: "停机",
-                    nameEn: "tj",
-                    borderSty: "#CDCDCD",
-                    backSty: "#A8A8A8",
-                    numBack: "#878787",
-                    number: 0,
-                },
-                {
                     img: fiveimg1,
                     name: "限电",
-                    nameEn: "xd",
+                    nameEn: "xdsum",
                     borderSty: "#E757EA",
                     backSty: "#C530C8",
                     numBack: "#901193",
                     number: 0,
                 },
                 {
+                    img: fourimg1,
+                    name: "受累",
+                    nameEn: "djsum",
+                    borderSty: "#CDCDCD",
+                    backSty: "#A8A8A8",
+                    numBack: "#878787",
+                    number: 0,
+                },
+                {
                     img: siximg1,
                     name: "离线",
-                    nameEn: "lx",
+                    nameEn: "lxsum",
                     borderSty: "#595D61",
                     backSty: "#38393B",
                     numBack: "#151719",
                     number: 0,
                 },
-                {
-                    img: sevenimg1,
-                    name: "检修",
-                    nameEn: "jx",
-                    borderSty: "#73262B",
-                    backSty: "#BA3237",
-                    numBack: "#881B1F",
-                    number: 0,
-                },
             ];
             this.ExceedTimeList = [{
                     label: "超前15分钟",
@@ -331,7 +336,7 @@
             // that.getChartData();
             that.getWindStatus();
             that.planFiveMin = setInterval(function () {
-                that.getChartData();
+                // that.getChartData();
             }, 300000);
         },
         computed: {
@@ -461,23 +466,31 @@
             //获取风机状态
             getWindStatus() {
                 let that = this;
-                apiGetStatusInfoAll().then((datas) => {
-                    if (datas) {
-                        if (datas.data) {
+                let params = {
+                    wpId: this.wpId,
+                };
+                apiGethomeData(params)
+                    .then((res) => {
+                        if (res && res.data.ztmap) {
                             that.statusData.forEach((item) => {
-                                for (let it in datas.data) {
+                                for (let it in res.data.ztmap) {
                                     if (item.nameEn === it) {
-                                        item.number = datas.data[it];
+                                        item.number = res.data.ztmap[it];
                                     }
                                 }
                             });
                             that.statusDataW.forEach((item) => {
-                                for (let it in datas.data) {
+                                for (let it in res.data.ztmap) {
                                     if (item.nameEn === it) {
-                                        item.number = datas.data[it];
+                                        item.number = res.data.ztmap[it];
                                     }
                                 }
                             });
+                        }
+                    })
+                apiGetStatusInfoAll().then((datas) => {
+                    if (datas) {
+                        if (datas.data) {
                             that.allStatus = datas.data;
                         }
                     }
@@ -577,41 +590,63 @@
                     tooltip: {
                         trigger: "axis",
                         formatter: (item) => {
+                            // debugger
+
                             let str =
                                 `<span style="display:inline-block;margin-bottom: 5px">${item[0].axisValue}</span></br>`;
                             let strMsg = "";
-                            item.forEach((it, index) => {
-                                if (index !== 3) {
-                                    strMsg = `<div style="margin-bottom: 5px">
-                                    <span style="display:inline-block;margin-right:4px;margin-top:3px;border-radius:10px;width:10px;height:10px;background-color:${it.color};\"></span>&nbsp;
-                                    <span style="display:inline-block;">${it.seriesName}:</span>&nbsp;&nbsp;<span>${it.value}</span>
-                                        </div>`;
-                                    this.chartsData[numxc].showpowerLegend[index].name =
-                                        it.seriesName;
-                                    this.chartsData[numxc].showpowerLegend[index].color = it.color;
-                                } else {
-                                    if (it.axisValue === "00:15:00") {
-                                        it.color = "#e96366";
-                                    }
-                                    strMsg = `<div style="margin-bottom: 5px">
-                                    <span style="display:inline-block;margin-right:4px;margin-top:3px;border-radius:10px;width:10px;height:10px;background-color:${
-                                      it.color
-                                    };\"></span>&nbsp;
-                                    <span style="display:inline-block;">${
-                                      it.color === "#e96366" ? "超短期" : "短期"
-                                    }:</span>&nbsp;&nbsp;<span>${
-                  it.value
-                }</span>
-                                        </div>`;
-                                    if (it.color === "#e96366") {
-                                        this.chartsData[numxc].showpowerLegend[index].name = "超短期";
+                            if (item.length > 1) {
+                                item.forEach((it, index) => {
+                                    // if (index !== 3) {
+                                    if (it.seriesName !== "超短期") {
+                                        strMsg = `<div style="margin-bottom: 5px">
+                                        <span style="display:inline-block;margin-right:4px;margin-top:3px;border-radius:10px;width:10px;height:10px;background-color:${it.color};\"></span>&nbsp;
+                                        <span style="display:inline-block;">${it.seriesName}:</span>&nbsp;&nbsp;<span>${it.value}</span>
+                                            </div>`;
+                                        this.chartsData[numxc].showpowerLegend[index].name =
+                                            it.seriesName;
+                                        this.chartsData[numxc].showpowerLegend[index].color = it.color;
                                     } else {
-                                        this.chartsData[numxc].showpowerLegend[index].name = "短期";
+                                        if (it.axisValue === "00:15:00") {
+                                            it.color = "#e96366";
+                                        }
+                                        strMsg = `<div style="margin-bottom: 5px">
+                                        <span style="display:inline-block;margin-right:4px;margin-top:3px;border-radius:10px;width:10px;height:10px;background-color:${
+                                          it.color
+                                        };\"></span>&nbsp;
+                                        <span style="display:inline-block;">${
+                                          it.color === "#e96366" ? "超短期" : "短期"
+                                        }:</span>&nbsp;&nbsp;<span>${it.value}</span>
+                                            </div>`;
+                                        if (it.color === "#e96366") {
+                                            this.chartsData[numxc].showpowerLegend[index].name = "超短期";
+                                        } else {
+                                            this.chartsData[numxc].showpowerLegend[index].name = "短期";
+                                        }
+                                        this.chartsData[numxc].showpowerLegend[index].color = it.color;
                                     }
-                                    this.chartsData[numxc].showpowerLegend[index].color = it.color;
+                                    str = str + strMsg;
+                                });
+                            } else {
+                                if (item[0].axisValue === "00:15:00") {
+                                    item[0].color = "#e96366";
                                 }
+                                strMsg = `<div style="margin-bottom: 5px">
+                                <span style="display:inline-block;margin-right:4px;margin-top:3px;border-radius:10px;width:10px;height:10px;background-color:${
+                                    item[0].color
+                                };\"></span>&nbsp;
+                                <span style="display:inline-block;">${
+                                    item[0].color === "#e96366" ? "超短期" : "短期"
+                                }:</span>&nbsp;&nbsp;<span>${item[0].value}</span>
+                                    </div>`;
+                                if (item[0].color === "#e96366") {
+                                    this.chartsData[numxc].showpowerLegend[3].name = "超短期";
+                                } else {
+                                    this.chartsData[numxc].showpowerLegend[3].name = "短期";
+                                }
+                                this.chartsData[numxc].showpowerLegend[3].color = item[0].color;
                                 str = str + strMsg;
-                            });
+                            }
                             return str;
                         },
                     },

+ 1 - 1
src/views/powerPrediction/powerControlPage.vue

@@ -931,7 +931,7 @@ export default {
                             cursor: pointer;
                         }
                         .changeBacksty{
-                            background-color: #504bb5 !important;
+                            background-color: #4bb780 !important;
                         }
                         .defaultBacksty{
                             background-color: #373590 !important;

+ 110 - 68
src/views/powerPrediction/powerPredictionPage.vue

@@ -3,14 +3,28 @@
         <el-row class="windStstus">
             <el-col :span="8" class="scrollbar">
                 <!-- <span class="scrollbarName">场站名称:</span> -->
-                <el-scrollbar>
+                <div class="seach">
+                    <el-form class="generat-seach" :inline="true">
+                        <el-form-item label="场站">
+                            <el-select v-model="reportStation" placeholder="选择场站" @change="changeWindNo">
+                                <el-option v-for="item in stationData" :key="item.no" :label="item.stationName"
+                                    :value="item.no">
+                                </el-option>
+                            </el-select>
+                        </el-form-item>
+                        <el-form-item>
+                            <el-button type="primary" @click="seachData">查询</el-button>
+                        </el-form-item>
+                    </el-form>
+                </div>
+                <!-- <el-scrollbar>
                     <div class="scrollbar-flex-content">
                         <p v-for="item in stationData" :key="item.no" class="scrollbar-demo-item"
                             :class="item.showBac ? 'changeBacksty' : 'defaultBacksty'" @click="changeStation(item.no)">
                             {{ item.stationName }}
                         </p>
                     </div>
-                </el-scrollbar>
+                </el-scrollbar> -->
             </el-col>
             <el-col :span="15">
                 <div class="everyOne" v-for="(item, index) in !theme ? statusData : statusDataW" :key="index"
@@ -130,6 +144,9 @@
     import sevenimg1 from "@/assets/windStatusPic/guzhang_W.png";
 
     import jsonData from "./component/power.json";
+    import {
+        apiGethomeData
+    } from "@/api/gengra";
     export default {
         components: {
             powerPredictionDialog,
@@ -137,6 +154,8 @@
         data() {
             return {
                 windTurbines: "",
+                reportStation: "",
+                stationCode: "",
                 statusData: [],
                 statusDataW: [],
                 stationData: [],
@@ -182,7 +201,7 @@
             this.statusData = [{
                     img: oneimg,
                     name: "运行",
-                    nameEn: "yx",
+                    nameEn: "yxsum",
                     borderSty: "#1C99FF",
                     backSty: "#0046C7",
                     numBack: "#212223",
@@ -191,34 +210,34 @@
                 {
                     img: twoimg,
                     name: "待机",
-                    nameEn: "dj",
+                    nameEn: "tjsum",
                     borderSty: "#05BB4C",
                     backSty: "#258952",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
-                    img: threeimg,
-                    name: "维护",
-                    nameEn: "wh",
-                    borderSty: "#E17D24",
-                    backSty: "#694119",
+                    img: sevenimg,
+                    name: "故障",
+                    nameEn: "whsum",
+                    borderSty: "#BA3237",
+                    backSty: "#73262B",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
-                    img: fourimg,
-                    name: "停机",
-                    nameEn: "tj",
-                    borderSty: "#52595B",
-                    backSty: "#272a2b",
+                    img: threeimg,
+                    name: "维护",
+                    nameEn: "jxsum",
+                    borderSty: "#E17D24",
+                    backSty: "#694119",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
                     img: fiveimg,
                     name: "限电",
-                    nameEn: "xd",
+                    nameEn: "xdsum",
                     borderSty: "#C530C8",
                     backSty: "#7A277F",
                     numBack: "#212223",
@@ -226,19 +245,19 @@
                 },
                 {
                     img: siximg,
-                    name: "离线",
-                    nameEn: "lx",
+                    name: "受累",
+                    nameEn: "djsum",
                     borderSty: "#fff",
                     backSty: "#38393B",
                     numBack: "#212223",
                     number: 0,
                 },
                 {
-                    img: sevenimg,
-                    name: "检修",
-                    nameEn: "jx",
-                    borderSty: "#BA3237",
-                    backSty: "#73262B",
+                    img: fourimg,
+                    name: "离线",
+                    nameEn: "lxsum",
+                    borderSty: "#52595B",
+                    backSty: "#272a2b",
                     numBack: "#212223",
                     number: 0,
                 },
@@ -246,7 +265,7 @@
             this.statusDataW = [{
                     img: oneimg1,
                     name: "运行",
-                    nameEn: "yx",
+                    nameEn: "yxsum",
                     borderSty: "#3777E8",
                     backSty: "#1850B3",
                     numBack: "#073484",
@@ -255,57 +274,58 @@
                 {
                     img: twoimg1,
                     name: "待机",
-                    nameEn: "dj",
+                    nameEn: "tjsum",
                     borderSty: "#6BDB97",
                     backSty: "#0EAC4C",
                     numBack: "#077C35",
                     number: 0,
                 },
                 {
+                    img: sevenimg1,
+                    name: "故障",
+                    nameEn: "whsum",
+                    borderSty: "#73262B",
+                    backSty: "#BA3237",
+                    numBack: "#881B1F",
+
+                    number: 0,
+                },
+                {
                     img: threeimg1,
                     name: "维护",
-                    nameEn: "wh",
+                    nameEn: "jxsum",
                     borderSty: "#F1AF74",
                     backSty: "#E17D24",
                     numBack: "#A6530A",
                     number: 0,
                 },
                 {
-                    img: fourimg1,
-                    name: "停机",
-                    nameEn: "tj",
-                    borderSty: "#CDCDCD",
-                    backSty: "#A8A8A8",
-                    numBack: "#878787",
-                    number: 0,
-                },
-                {
                     img: fiveimg1,
                     name: "限电",
-                    nameEn: "xd",
+                    nameEn: "xdsum",
                     borderSty: "#E757EA",
                     backSty: "#C530C8",
                     numBack: "#901193",
                     number: 0,
                 },
                 {
+                    img: fourimg1,
+                    name: "受累",
+                    nameEn: "djsum",
+                    borderSty: "#CDCDCD",
+                    backSty: "#A8A8A8",
+                    numBack: "#878787",
+                    number: 0,
+                },
+                {
                     img: siximg1,
                     name: "离线",
-                    nameEn: "lx",
+                    nameEn: "lxsum",
                     borderSty: "#595D61",
                     backSty: "#38393B",
                     numBack: "#151719",
                     number: 0,
                 },
-                {
-                    img: sevenimg1,
-                    name: "检修",
-                    nameEn: "jx",
-                    borderSty: "#73262B",
-                    backSty: "#BA3237",
-                    numBack: "#881B1F",
-                    number: 0,
-                },
             ];
             this.pickerTime = [
                 new Date(
@@ -703,12 +723,13 @@
                 return `border: 1px solid ${item.borderSty};background:${item.numBack}`;
             },
             doubleclick(name) {
-                let title = "";
-                this.stationData.forEach((item) => {
-                    if (item.no === this.windTurbines) {
-                        title = item.stationName;
-                    }
-                });
+                let title = this.reportStation;
+                // debugger
+                // this.stationData.forEach((item) => {
+                //     if (item.stationName === this.windTurbines) {
+                //         title = item.stationName;
+                //     }
+                // });
                 this.$refs.prediction.dialogVisible = true;
                 this.$refs.prediction.isPower = false;
                 this.$refs.prediction.tableData = [];
@@ -749,6 +770,8 @@
                     this.stationData = datas.data.list;
                     this.stationData[0].showBac = true;
                     this.windTurbines = datas.data.list[0].no;
+                    this.reportStation = datas.data.list[0].stationName;
+                    this.stationCode = datas.data.list[0].stationCode;
                     this.itemVal = datas.data.list[0].itemVal;
                     this.getPowerPrediction();
                     this.getWindSpeed();
@@ -762,41 +785,60 @@
             // 根据场站编号获取机组状态信息
             getUnitStatus() {
                 let that = this;
+                // let params = {
+                //     stationNo: that.windTurbines,
+                // };
+                // apiGetUnitStatusInfoByStationNo(params).then((datas) => {
+                //     if (datas) {
+                //         if (datas.data) {
+                //             that.statusData.forEach((item) => {
+                //                 for (let it in datas.data) {
+                //                     if (item.nameEn === it) {
+                //                         item.number = datas.data[it];
+                //                     }
+                //                 }
+                //             });
+                //             that.statusDataW.forEach((item) => {
+                //                 for (let it in datas.data) {
+                //                     if (item.nameEn === it) {
+                //                         item.number = datas.data[it];
+                //                     }
+                //                 }
+                //             });
+                //         }
+                //     }
+                // });
                 let params = {
-                    stationNo: that.windTurbines,
+                    wpId: this.stationCode,
                 };
-                apiGetUnitStatusInfoByStationNo(params).then((datas) => {
-                    if (datas) {
-                        if (datas.data) {
+                apiGethomeData(params)
+                    .then((res) => {
+                        if (res && res.data.ztmap) {
                             that.statusData.forEach((item) => {
-                                for (let it in datas.data) {
+                                for (let it in res.data.ztmap) {
                                     if (item.nameEn === it) {
-                                        item.number = datas.data[it];
+                                        item.number = res.data.ztmap[it];
                                     }
                                 }
                             });
                             that.statusDataW.forEach((item) => {
-                                for (let it in datas.data) {
+                                for (let it in res.data.ztmap) {
                                     if (item.nameEn === it) {
-                                        item.number = datas.data[it];
+                                        item.number = res.data.ztmap[it];
                                     }
                                 }
                             });
                         }
-                    }
-                });
+                    })
             },
-            changeStation(val) {
-                this.windTurbines = val;
+            changeWindNo(val) {
+                this.windTurbines = val
                 this.stationData.forEach((item) => {
                     if (item.no === val) {
-                        this.itemVal = item.itemVal;
-                        item.showBac = true;
-                    } else {
-                        item.showBac = false;
+                        this.stationCode = item.stationCode
+                        this.reportStation = item.stationName;
                     }
                 });
-                this.seachData();
             },
             statusIcon(type) {
                 let picture = "";

+ 1 - 1
src/views/powerPrediction/weatherPage.vue

@@ -1845,7 +1845,7 @@
                             }
 
                             .changeBacksty {
-                                background-color: #504bb5 !important;
+                                background-color: #4bb780 !important;
                             }
 
                             .defaultBacksty {

+ 1 - 1
src/viewsCss/batteryDivinerPageLess.less

@@ -47,7 +47,7 @@
                         }
 
                         .changeBacksty {
-                            background-color: #504bb5 !important;
+                            background-color: #4bb780 !important;
                         }
 
                         .defaultBacksty {

+ 18 - 1
src/viewsCss/powerPredictionPageLess.less

@@ -13,6 +13,23 @@
             display: flex;
         }
 
+        .seach {
+
+            .generat-seach {
+                position: relative;
+                top: 10px;
+                left: 20px;
+
+                .el-form-item {
+                    .el-form-item__content {
+                        .el-select {
+                            width: 130px !important;
+                        }
+                    }
+                }
+            }
+        }
+
         .scrollbar {
             border-right: 1px dashed #fff;
 
@@ -48,7 +65,7 @@
                     }
 
                     .changeBacksty {
-                        background-color: #504bb5 !important;
+                        background-color: #4bb780 !important;
                     }
 
                     .defaultBacksty {

+ 1 - 1
src/viewsCss/statisticalSummaryPageLess.less

@@ -47,7 +47,7 @@
                         }
 
                         .changeBacksty {
-                            background-color: #504bb5 !important;
+                            background-color: #4bb780 !important;
                         }
 
                         .defaultBacksty {