|
@@ -71,10 +71,7 @@
|
|
|
:data="tableData"
|
|
|
:table-loading="tableLoading"
|
|
|
:option="tableOption"
|
|
|
- @search-change="searchChange"
|
|
|
- @refresh-change="refreshChange"
|
|
|
- @size-change="sizeChange"
|
|
|
- @current-change="currentChange">
|
|
|
+ @on-load="getGridOnloadData">
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
</div>
|
|
@@ -131,6 +128,23 @@ export default {
|
|
|
this.getAllInverterInfo()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getGridOnloadData() {
|
|
|
+ const param = new URLSearchParams()
|
|
|
+ param.append('currentPage', this.page.currentPage)
|
|
|
+ param.append('pageSize', this.page.pageSize)
|
|
|
+ param.append('stationCode', this.stationCode)
|
|
|
+ param.append("equipmentId", this.equipmentId)
|
|
|
+ param.append('startTime', this.startTime)
|
|
|
+ param.append('endTime', this.endTime)
|
|
|
+ getByStationCodeAndEquipmentIdAndTimeBetween(param).then(response => {
|
|
|
+ this.tableData = response.data.data.records
|
|
|
+ this.page.total = response.data.data.total
|
|
|
+ this.page.pageSize = response.data.data.size
|
|
|
+ this.tableLoading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.tableLoading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
dateQuery() {
|
|
|
if (this.equipmentId === '' || this.equipmentId == null) {
|
|
|
return alert("请选择所属设备")
|
|
@@ -185,11 +199,11 @@ export default {
|
|
|
searchChange(form, done) {
|
|
|
this.searchForm = form
|
|
|
this.page.currentPage = 1
|
|
|
- this.dateQuery(this.page, form)
|
|
|
+ this.getList(this.page, form)
|
|
|
done()
|
|
|
},
|
|
|
refreshChange() {
|
|
|
- this.dateQuery()
|
|
|
+ this.getList(this.page)
|
|
|
}
|
|
|
}
|
|
|
}
|