Commit d4994d92 authored by 黄奎's avatar 黄奎

酒店统计新增链接

parent 2ff3d7b9
......@@ -178,7 +178,6 @@
layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total></el-pagination>
</div>
</template>
<script>
export default {
data() {
......@@ -193,14 +192,17 @@
LineId: 14,
LineteamId: "-1",
StartDate: '',
EndDate: ''
EndDate: '',
//酒店编号
HotelId: 0,
//日期
DateStr: ""
},
LineList: [],
LineTeamList: [],
thLengthTitle: [],
list: [],
colspanTotal: 0,
}
},
methods: {
......@@ -276,7 +278,6 @@
this.apipost('dmcstatistics_post_GetUniteCombinationNumService', this.msg, res => {
if (res.data.resultCode == 1) {
this.loading = false
console.log(res.data.data.pageData.data)
this.total = res.data.data.count
this.list = res.data.data.pageData.data
this.thLengthArr = []
......@@ -297,34 +298,15 @@
})
}
item.CommonReport.HotelList = item.CommonReport.HotelList.concat(_chaArr)
} else {
}
}
})
})
// this.list.forEach(item=>{
// item.CommonReport['valueLength']=item.CommonReport.HotelList.length
// if(item.CommonReport.HotelList.length<res.data.data.pageData.columnsCount){
// let _cha=res.data.data.pageData.columnsCount-item.CommonReport.HotelList.length
// let _chaArr=new Array()
// for (let i=0;i<_cha;i++) {
// _chaArr.push({'HotelName':''})
// }
// item.CommonReport.HotelList=item.CommonReport.HotelList.concat(_chaArr)
// console.log(item.CommonReport)
// }else{
//
// }
// })
} else {
this.loading = false
this.$message.error(res.data.message)
}
}, err => {})
},
},
beforeCreate() {
},
mounted() {
let myDate = new Date();
......@@ -334,13 +316,27 @@
parseInt(myDate.getMonth() + 1) +
"-" +
myDate.getDate();
this.msg.StartDate = nowDate;
if(this.$route.query.hotelId)
{
this.msg.HotelId=this.$route.query.hotelId;
}
if(this.$route.query.dateStr)
{
this.msg.DateStr=this.$route.query.dateStr;
}
if(this.$route.query.hotelId||this.$route.query.dateStr)
{
this.msg.StartDate = "";
}
else
{
this.msg.StartDate = nowDate;
}
this.getList()
// this.getLineList()
this.getLineTeamList()
},
}
</script>
<style>
......
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