|
@@ -235,8 +235,19 @@ export default {
|
|
|
let date = new Date();
|
|
|
this.timeValue[0] = new Date(new Date().toLocaleDateString()).getTime() - 86400000;
|
|
|
this.timeValue[1] = new Date(new Date().toLocaleDateString()).getTime();
|
|
|
- let stationList = this.$store.state.stationList;
|
|
|
- this.selectValue = stationList[0].id;
|
|
|
+ let stationArr = [
|
|
|
+ {
|
|
|
+ name: '全部',
|
|
|
+ id: ''
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ this.$store.state.stationList.forEach(item =>{
|
|
|
+ if (item.name.indexOf('全部') === -1) {
|
|
|
+ stationArr.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ let stationList = stationArr;
|
|
|
+ this.selectValue = stationList[1].id;
|
|
|
this.stationList = stationList;
|
|
|
this.listedChange(this.selectValue);
|
|
|
this.getWarning();
|
|
@@ -249,7 +260,7 @@ export default {
|
|
|
.getWindturbineWarning({
|
|
|
pagesize: this.currentPage,
|
|
|
pagenum: this.pagenum,
|
|
|
- stationid: this.selectValue,
|
|
|
+ stationid: this.selectValue === 'WIND_ALL' ? '' : this.selectValue,
|
|
|
windturbineid: this.windturbineId,
|
|
|
starttime: dayjs(this.timeValue[0]).format("YYYY-MM-DD HH:mm:ss"),
|
|
|
endtime: dayjs(this.timeValue[1]).format("YYYY-MM-DD HH:mm:ss"),
|