|
@@ -68,7 +68,7 @@
|
|
|
v-for="item in wtArray"
|
|
|
:key="item.id"
|
|
|
:value="item.id"
|
|
|
- :label="item.name"
|
|
|
+ :label="item.aname"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</div>
|
|
@@ -949,7 +949,7 @@ import {
|
|
|
getApibjphlist,
|
|
|
getApiglchat,
|
|
|
getApifjfzy,
|
|
|
- getApiequipmentList,
|
|
|
+ getApiequipmentListByWp2,
|
|
|
getApiWeatherstation,
|
|
|
getApiComMGTWP,
|
|
|
getApiComMGTWT,
|
|
@@ -1261,7 +1261,7 @@ export default {
|
|
|
lineIds: "",
|
|
|
type: 0,
|
|
|
};
|
|
|
- const { data: datas } = await getApiequipmentList(params);
|
|
|
+ const { data: datas } = await getApiequipmentListByWp2(params);
|
|
|
this.wtArray = datas.data;
|
|
|
// this.wtId = datas.data[0].id;
|
|
|
},
|
|
@@ -1460,18 +1460,18 @@ export default {
|
|
|
pageNum: "1",
|
|
|
pageSize: "5",
|
|
|
};
|
|
|
- // const { data: datas } = await getApigzjllist(params);
|
|
|
- // if (datas && datas.data && datas.data.records.length > 0) {
|
|
|
- // datas.data.records.forEach((ele) => {
|
|
|
- // ele.stopTime = new Date(ele.stopTime).formatDate(
|
|
|
- // "yyyy-MM-dd hh:mm:ss"
|
|
|
- // );
|
|
|
- // ele.starttime = ele.starttime
|
|
|
- // ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
- // : "";
|
|
|
- // });
|
|
|
- // that.stopTableData.data = datas.data.records;
|
|
|
- // }
|
|
|
+ const { data: datas } = await getApigzjllist(params);
|
|
|
+ if (datas && datas.data && datas.data.records.length > 0) {
|
|
|
+ datas.data.records.forEach((ele) => {
|
|
|
+ ele.stopTime = new Date(ele.stopTime).formatDate(
|
|
|
+ "yyyy-MM-dd hh:mm:ss"
|
|
|
+ );
|
|
|
+ ele.starttime = ele.starttime
|
|
|
+ ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
+ : "";
|
|
|
+ });
|
|
|
+ that.stopTableData.data = datas.data.records;
|
|
|
+ }
|
|
|
},
|
|
|
// tab1 - 获取当日限电数据
|
|
|
async getXdData() {
|
|
@@ -1482,18 +1482,18 @@ export default {
|
|
|
pageNum: "1",
|
|
|
pageSize: "5",
|
|
|
};
|
|
|
- // const { data: datas } = await getApixdjllist(params);
|
|
|
- // if (datas && datas.data && datas.data.records.length > 0) {
|
|
|
- // datas.data.records.forEach((ele) => {
|
|
|
- // ele.stopTime = new Date(ele.stopTime).formatDate(
|
|
|
- // "yyyy-MM-dd hh:mm:ss"
|
|
|
- // );
|
|
|
- // ele.starttime = ele.starttime
|
|
|
- // ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
- // : "";
|
|
|
- // });
|
|
|
- // that.xdTableData.data = datas.data.records;
|
|
|
- // }
|
|
|
+ const { data: datas } = await getApixdjllist(params);
|
|
|
+ if (datas && datas.data && datas.data.records.length > 0) {
|
|
|
+ datas.data.records.forEach((ele) => {
|
|
|
+ ele.stopTime = new Date(ele.stopTime).formatDate(
|
|
|
+ "yyyy-MM-dd hh:mm:ss"
|
|
|
+ );
|
|
|
+ ele.starttime = ele.starttime
|
|
|
+ ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
+ : "";
|
|
|
+ });
|
|
|
+ that.xdTableData.data = datas.data.records;
|
|
|
+ }
|
|
|
},
|
|
|
// tab2 ----------------------------------------
|
|
|
// tab2 - 获取日发电量信息
|
|
@@ -1815,11 +1815,11 @@ export default {
|
|
|
} else {
|
|
|
this.hisWpid = this.wpId;
|
|
|
}
|
|
|
- if (index == 2) {
|
|
|
- this.wpId = this.hisSubid ? this.hisSubid : this.cftlist[0].id;
|
|
|
- } else {
|
|
|
- this.wpId = this.hisWpid ? this.hisWpid : this.wpArray[0].id;
|
|
|
- }
|
|
|
+ // if (index == 2) {
|
|
|
+ // this.wpId = this.hisSubid ? this.hisSubid : this.cftlist[0].id;
|
|
|
+ // } else {
|
|
|
+ // this.wpId = this.hisWpid ? this.hisWpid : this.wpArray[0].id;
|
|
|
+ // }
|
|
|
this.tabIndex = index;
|
|
|
this.search();
|
|
|
},
|