Commit 500295e6 authored by 华国豪's avatar 华国豪 🙄

1

parents 587b3fa5 d3157148
......@@ -130,11 +130,16 @@ export default {
if(res.data.resultCode == 1) {
this.dataList = [];
let data=res.data.data.BusList;
data.forEach(item => {
if(this.msg.date!='all'){
data.forEach(item => {
if(item.UseTime==this.msg.date){
this.dataList.push(item);
}
});
});
}else{
this.dataList=data;
}
// console.log("this.dataList",this.dataList);
} else {
this.Error(res.data.message);
......
......@@ -186,12 +186,17 @@ export default {
if(res.data.resultCode == 1) {
this.dataList = [];
let data=res.data.data.DiningList;
data.forEach(item => {
if(this.msg.date!='all'){
data.forEach(item => {
if(item.UseTimeStr==this.msg.date){
this.dataList.push(item);
}
});
console.log("this.dataList",this.dataList);
this.dataList.push(item);
}
});
}else{
this.dataList=data;
}
// console.log("this.dataList",this.dataList);
} else {
this.Error(res.data.message);
}
......
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