|
@@ -71,10 +71,7 @@
|
|
:data="tableData"
|
|
:data="tableData"
|
|
:table-loading="tableLoading"
|
|
:table-loading="tableLoading"
|
|
:option="tableOption"
|
|
:option="tableOption"
|
|
- @search-change="searchChange"
|
|
|
|
- @refresh-change="refreshChange"
|
|
|
|
- @size-change="sizeChange"
|
|
|
|
- @current-change="currentChange">
|
|
|
|
|
|
+ @on-load="getGridOnloadData">
|
|
</avue-crud>
|
|
</avue-crud>
|
|
</basic-container>
|
|
</basic-container>
|
|
</div>
|
|
</div>
|
|
@@ -88,6 +85,7 @@ import {
|
|
} from '@/api/windturbinestatusdata'
|
|
} from '@/api/windturbinestatusdata'
|
|
import {tableOption} from '@/const/crud/windturbinestatusdata'
|
|
import {tableOption} from '@/const/crud/windturbinestatusdata'
|
|
import {mapGetters} from 'vuex'
|
|
import {mapGetters} from 'vuex'
|
|
|
|
+import {queryTableData} from "@/api/windtowerstatusdata";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'windturbinestatusdata',
|
|
name: 'windturbinestatusdata',
|
|
@@ -125,13 +123,32 @@ export default {
|
|
this.getStationCode()
|
|
this.getStationCode()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getGridOnloadData() {
|
|
|
|
+ console.log(this.page)
|
|
|
|
+ const param = new URLSearchParams()
|
|
|
|
+ param.append('currentPage', this.page.currentPage)
|
|
|
|
+ param.append('pageSize', this.page.pageSize)
|
|
|
|
+ param.append('stationCode', this.stationCode)
|
|
|
|
+ param.append('startTime', this.startTime)
|
|
|
|
+ param.append('endTime', this.endTime)
|
|
|
|
+ param.append('equipmentId', this.equipmentId)
|
|
|
|
+ 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() {
|
|
dateQuery() {
|
|
if (this.equipmentId === '' || this.equipmentId == null) {
|
|
if (this.equipmentId === '' || this.equipmentId == null) {
|
|
return alert("请选择所属设备")
|
|
return alert("请选择所属设备")
|
|
}
|
|
}
|
|
this.tableLoading = true
|
|
this.tableLoading = true
|
|
const param = new URLSearchParams()
|
|
const param = new URLSearchParams()
|
|
- param.append('page', this.page)
|
|
|
|
|
|
+ param.append('currentPage', this.page.currentPage)
|
|
|
|
+ param.append('pageSize', this.page.pageSize)
|
|
param.append('stationCode', this.stationCode)
|
|
param.append('stationCode', this.stationCode)
|
|
param.append("equipmentId", this.equipmentId)
|
|
param.append("equipmentId", this.equipmentId)
|
|
param.append('startTime', this.startTime)
|
|
param.append('startTime', this.startTime)
|
|
@@ -139,6 +156,7 @@ export default {
|
|
getByStationCodeAndEquipmentIdAndTimeBetween(param).then(response => {
|
|
getByStationCodeAndEquipmentIdAndTimeBetween(param).then(response => {
|
|
this.tableData = response.data.data.records
|
|
this.tableData = response.data.data.records
|
|
this.page.total = response.data.data.total
|
|
this.page.total = response.data.data.total
|
|
|
|
+ this.page.pageSize = response.data.data.size
|
|
this.tableLoading = false
|
|
this.tableLoading = false
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.tableLoading = false
|
|
this.tableLoading = false
|
|
@@ -179,11 +197,11 @@ export default {
|
|
searchChange(form, done) {
|
|
searchChange(form, done) {
|
|
this.searchForm = form
|
|
this.searchForm = form
|
|
this.page.currentPage = 1
|
|
this.page.currentPage = 1
|
|
- this.dateQuery(this.page, form)
|
|
|
|
|
|
+ this.getList(this.page, form)
|
|
done()
|
|
done()
|
|
},
|
|
},
|
|
refreshChange() {
|
|
refreshChange() {
|
|
- this.dateQuery()
|
|
|
|
|
|
+ this.getList(this.page)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|