Commit a2e00d80 authored by 华国豪's avatar 华国豪 🙄

1

parent 8f22cf65
......@@ -103,18 +103,21 @@ export default {
res => {
this.loading = false;
if (res.data.resultCode === 1) {
let data = res.data.data.HotelList;
let data = res.data.data.HotelOrderListReport;
let dataList = [];
if(date!=='all') {
data.map(x=>{
if (x.CheckInDateStr == date){
dataList.push(x)
if (x.UseTimeStr == date){
dataList.push(...x.HotelOrderList)
}
})
} else {
dataList = data
data.map(x=>{
dataList.push(...x.HotelOrderList)
})
}
this.dataList = dataList;
console.log(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