|
@@ -5,7 +5,12 @@
|
|
<div class="query-item">
|
|
<div class="query-item">
|
|
<div class="lable">场站:</div>
|
|
<div class="lable">场站:</div>
|
|
<div class="search-input">
|
|
<div class="search-input">
|
|
- <el-select v-model="stationId" clearable placeholder="请选择" popper-class="select">
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="stationId"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ popper-class="select"
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
v-for="item in ChangZhan"
|
|
v-for="item in ChangZhan"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
@@ -39,6 +44,24 @@
|
|
></el-date-picker>
|
|
></el-date-picker>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="query-item">
|
|
|
|
+ <div class="lable">等级:</div>
|
|
|
|
+ <div class="search-input">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="level"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ popper-class="select"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in levelArray"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<div class="query-actions">
|
|
<div class="query-actions">
|
|
<button class="btn green" @click="getTable()">查询</button>
|
|
<button class="btn green" @click="getTable()">查询</button>
|
|
<button class="btn green" @click="exportExcel()">导出</button>
|
|
<button class="btn green" @click="exportExcel()">导出</button>
|
|
@@ -70,6 +93,33 @@ export default {
|
|
let that = this;
|
|
let that = this;
|
|
return {
|
|
return {
|
|
ChangZhan: [],
|
|
ChangZhan: [],
|
|
|
|
+ levelArray: [
|
|
|
|
+ {
|
|
|
|
+ id: "",
|
|
|
|
+ name: "请选择",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: "1",
|
|
|
|
+ name: "低",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: "2",
|
|
|
|
+ name: "中低",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: "3",
|
|
|
|
+ name: "中",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: "4",
|
|
|
|
+ name: "中高",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: "5",
|
|
|
|
+ name: "高",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ level: "",
|
|
stationId: "MHS_FDC",
|
|
stationId: "MHS_FDC",
|
|
startDate: "",
|
|
startDate: "",
|
|
endDate: "",
|
|
endDate: "",
|
|
@@ -84,7 +134,7 @@ export default {
|
|
is_num: false,
|
|
is_num: false,
|
|
is_light: false,
|
|
is_light: false,
|
|
sortable: true,
|
|
sortable: true,
|
|
- id: "id"
|
|
|
|
|
|
+ id: "id",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "变电站",
|
|
name: "变电站",
|
|
@@ -92,7 +142,7 @@ export default {
|
|
is_num: false,
|
|
is_num: false,
|
|
is_light: false,
|
|
is_light: false,
|
|
sortable: true,
|
|
sortable: true,
|
|
- id: "id"
|
|
|
|
|
|
+ id: "id",
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
@@ -101,7 +151,7 @@ export default {
|
|
is_num: false,
|
|
is_num: false,
|
|
is_light: false,
|
|
is_light: false,
|
|
sortable: true,
|
|
sortable: true,
|
|
- id: "id"
|
|
|
|
|
|
+ id: "id",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "报警描述",
|
|
name: "报警描述",
|
|
@@ -109,7 +159,7 @@ export default {
|
|
is_num: false,
|
|
is_num: false,
|
|
is_light: false,
|
|
is_light: false,
|
|
sortable: true,
|
|
sortable: true,
|
|
- id: "id"
|
|
|
|
|
|
+ id: "id",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "处理方式",
|
|
name: "处理方式",
|
|
@@ -117,12 +167,12 @@ export default {
|
|
is_num: false,
|
|
is_num: false,
|
|
is_light: false,
|
|
is_light: false,
|
|
sortable: true,
|
|
sortable: true,
|
|
- id: "id"
|
|
|
|
- }
|
|
|
|
|
|
+ id: "id",
|
|
|
|
+ },
|
|
],
|
|
],
|
|
data: [],
|
|
data: [],
|
|
- currentPageTotal: 0
|
|
|
|
- }
|
|
|
|
|
|
+ currentPageTotal: 0,
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -144,7 +194,7 @@ export default {
|
|
success(res) {
|
|
success(res) {
|
|
that.ChangZhan = res.data;
|
|
that.ChangZhan = res.data;
|
|
that.stationId = res.data[0].id;
|
|
that.stationId = res.data[0].id;
|
|
- }
|
|
|
|
|
|
+ },
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getTable() {
|
|
getTable() {
|
|
@@ -161,13 +211,14 @@ export default {
|
|
starttime: this.startDate,
|
|
starttime: this.startDate,
|
|
endtime: this.endDate,
|
|
endtime: this.endDate,
|
|
pagenum: this.pageIndex,
|
|
pagenum: this.pageIndex,
|
|
- pagesize: this.pageSize
|
|
|
|
|
|
+ pagesize: this.pageSize,
|
|
|
|
+ rank: that.level,
|
|
},
|
|
},
|
|
success(res) {
|
|
success(res) {
|
|
that.tableData.data = res.data.records;
|
|
that.tableData.data = res.data.records;
|
|
that.tableLoading = false;
|
|
that.tableLoading = false;
|
|
that.tableData.total = res.data.total;
|
|
that.tableData.total = res.data.total;
|
|
- }
|
|
|
|
|
|
+ },
|
|
});
|
|
});
|
|
},
|
|
},
|
|
onChangePage(params) {
|
|
onChangePage(params) {
|
|
@@ -175,10 +226,10 @@ export default {
|
|
this.pageSize = params.pageSize;
|
|
this.pageSize = params.pageSize;
|
|
this.getTable();
|
|
this.getTable();
|
|
},
|
|
},
|
|
- exportExcel(){
|
|
|
|
- this.BASE.exportExcel(this.tableData,"升压站报警");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ exportExcel() {
|
|
|
|
+ this.BASE.exportExcel(this.tableData, "升压站报警");
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style scoped>
|
|
<style scoped>
|