Commit a3ff2b27 authored by xxx's avatar xxx

修改报警查询条件

parent 48e7e403
...@@ -154,10 +154,14 @@ export default { ...@@ -154,10 +154,14 @@ export default {
methods: { methods: {
loadData() { loadData() {
var sort = 'alarmTime,desc'; var sort = 'alarmTime,desc';
var param = this.query; var param = {...this.query};
param.page = this.page - 1; param.page = this.page - 1;
param.size = this.size; param.size = this.size;
param.sort = sort; param.sort = sort;
var param1 = {...this.query};
param1.page = 0;
param1.size = 99999;
this.$nextTick(()=>{ this.$nextTick(()=>{
if(this.query.createTime == undefined){ if(this.query.createTime == undefined){
...@@ -171,8 +175,10 @@ export default { ...@@ -171,8 +175,10 @@ export default {
} }
HttpReq.truckDispatching.apiMineAlarmHistoryLbQuery(param).then((res) => { HttpReq.truckDispatching.apiMineAlarmHistoryLbQuery(param).then((res) => {
this.loading = false; this.loading = false;
this.tableData = res.content; this.tableData = res.data;
this.total = res.totalElements; })
HttpReq.truckDispatching.apiMineAlarmHistoryLbQuery(param1).then((res) => {
this.total = res.data.length;
}) })
//获取车辆类型 //获取车辆类型
HttpReq.truckDispatching.carTypeQuery({size:9999}).then((res) => { 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