Commit d4994d92 authored by 黄奎's avatar 黄奎

酒店统计新增链接

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