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

1

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