Commit a3ff2b27 authored by xxx's avatar xxx

修改报警查询条件

parent 48e7e403
......@@ -154,10 +154,14 @@ export default {
methods: {
loadData() {
var sort = 'alarmTime,desc';
var param = this.query;
var param = {...this.query};
param.page = this.page - 1;
param.size = this.size;
param.sort = sort;
var param1 = {...this.query};
param1.page = 0;
param1.size = 99999;
this.$nextTick(()=>{
if(this.query.createTime == undefined){
......@@ -171,8 +175,10 @@ export default {
}
HttpReq.truckDispatching.apiMineAlarmHistoryLbQuery(param).then((res) => {
this.loading = false;
this.tableData = res.content;
this.total = res.totalElements;
this.tableData = res.data;
})
HttpReq.truckDispatching.apiMineAlarmHistoryLbQuery(param1).then((res) => {
this.total = res.data.length;
})
//获取车辆类型
HttpReq.truckDispatching.carTypeQuery({size:9999}).then((res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment