|
@@ -5,21 +5,12 @@
|
|
|
<div class="query-item">
|
|
|
<div class="lable">光伏:</div>
|
|
|
<div class="search-input">
|
|
|
- <el-select v-model="wpId" clearable placeholder="请选择" popper-class="select" @change=" (wpId) => { Windturbines(); } ">
|
|
|
+ <el-select v-model="wpId" clearable placeholder="请选择" popper-class="select" >
|
|
|
<el-option v-for="item in ChangZhan" :key="item.id" :value="item.id" :label="item.name"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="query-item">
|
|
|
- <div class="lable">机组:</div>
|
|
|
- <div class="search-input">
|
|
|
- <el-select v-model="wtId" placeholder="请选择" popper-class="select">
|
|
|
- <el-option v-for="item in windturbines" :key="item.id" :label="item.name" :value="item.id">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="query-item">
|
|
|
<div class="lable">描述:</div>
|
|
|
<div class="search-input">
|
|
|
<el-input v-model="alarmDesc" placeholder="报警描述"></el-input>
|
|
@@ -66,8 +57,6 @@
|
|
|
waitAjax:true,//等待执行完了再加载table
|
|
|
ChangZhan: [],
|
|
|
wpId: "",
|
|
|
- wtId: "",
|
|
|
- windturbines: [],
|
|
|
alarmDesc: "",
|
|
|
startDate: "",
|
|
|
endDate: "",
|
|
@@ -80,36 +69,24 @@
|
|
|
field: "stationName",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- id: "id",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "机组",
|
|
|
- field: "windturbineName",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- id: "id",
|
|
|
- },
|
|
|
-
|
|
|
+ },
|
|
|
{
|
|
|
name: "报警时间",
|
|
|
field: "alertTime",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- id: "id",
|
|
|
},
|
|
|
{
|
|
|
name: "报警描述",
|
|
|
field: "alertText",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- id: "id",
|
|
|
},
|
|
|
{
|
|
|
name: "报警类别",
|
|
|
- field: "category2",
|
|
|
+ field: "category1",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- id: "id",
|
|
|
},
|
|
|
{
|
|
|
name: "报警等级",
|
|
@@ -117,7 +94,6 @@
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
- id: "id",
|
|
|
},
|
|
|
],
|
|
|
data: [],
|
|
@@ -142,7 +118,6 @@
|
|
|
success(res) {
|
|
|
that.ChangZhan = res.data;
|
|
|
that.wpId = res.data[0].id;
|
|
|
- that.Windturbines(that.wpId)
|
|
|
if(that.waitAjax){
|
|
|
that.getTable();
|
|
|
that.waitAjax=false;
|
|
@@ -150,24 +125,6 @@
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
- Windturbines(wpId) {
|
|
|
- let that = this;
|
|
|
- that.API.requestData({
|
|
|
- method: "GET",
|
|
|
- baseURL: "http://10.155.32.4:8082/",
|
|
|
- subUrl: "powercompare/windturbineAjax",
|
|
|
- data: {
|
|
|
- wpId: wpId
|
|
|
- },
|
|
|
- success(res) {
|
|
|
- that.windturbines = res.data;
|
|
|
- that.windturbines.unshift({
|
|
|
- id: "",
|
|
|
- name: "请选择"
|
|
|
- });
|
|
|
- },
|
|
|
- });
|
|
|
- },
|
|
|
getTable() {
|
|
|
let that = this;
|
|
|
this.tableLoading = true;
|
|
@@ -182,7 +139,6 @@
|
|
|
starttime: this.startDate,
|
|
|
endtime: this.endDate,
|
|
|
keyword: this.alarmDesc,
|
|
|
- windturbineid: this.wtId,
|
|
|
pagenum: this.pageIndex,
|
|
|
pagesize: this.pageSize,
|
|
|
},
|
|
@@ -192,6 +148,7 @@
|
|
|
let data = res.data.records;
|
|
|
data.forEach(ele=>{
|
|
|
ele.messageType = messageType[parseInt(ele.messageType) - 1];
|
|
|
+ ele.category1 == 'GF' ? ele.category1 = '光伏': ele.category1 = '升压站';
|
|
|
})
|
|
|
that.tableData.data = data;
|
|
|
that.tableData.total = res.data.total;
|