Commit 5ca948bb authored by youjie's avatar youjie

no message

parent cc194383
......@@ -98,7 +98,7 @@
<el-table-column v-for='(item,index) in dataList[0].subList' :label="getDateList(item.DateStr)" :key='index'
min-width="120">
<template slot-scope="scope">
<div @click="showOrderSubmitHandler(scope.row,0,index)">
<div @click="showOrderSubmitHandler(scope.row,index,0)">
<div class="Hotel_kong Com_hoteldiv">
<template v-if="scope.row.subList[index].PriceList.length>0">
<template v-for="childItem in scope.row.subList[index].PriceList">
......@@ -381,6 +381,21 @@
HOTEL_memorandum: false
};
},
watch: {
dataList:{
handler(val, oldVal){
let that = this
that.$nextTick(function(){
that.com_onresize();
window.onresize = () => {
that.com_onresize();
}
that.$forceUpdate();
})
},
deep: true
}
},
methods: {
removeEditor(){
localStorage.removeItem('editor')
......@@ -394,10 +409,10 @@
editor(x){
this.dataList.forEach((item,index) => {
if(item.HotelId==x.HotelId){
item.subList.forEach(xs=>{
item.subList.forEach((xs,indexs)=>{
if(xs.DateStr==x.Date){
this.rightCarOpen = false
this.showOrderSubmitHandler(item,index,1)
this.showOrderSubmitHandler(item,indexs,1)
}
})
}
......@@ -418,7 +433,7 @@
localStorage.removeItem("editor")
},
// 加入购物车
showOrderSubmitHandler(row,type,index){
showOrderSubmitHandler(row,index,type){
this.orderSubmitObj = row
this.orderSubmitItemObj = row.subList[index]
this.showOrderPreview = true
......
......@@ -146,8 +146,12 @@
},
hotelInfor: {
handler: function (val, oldVal) {
this.hotelInfor = val
this.setList()
if(this.hotelInfor&&this.hotelInfor.RemainingInventory){
this.onlyNum = this.hotelInfor.RemainingInventory
}
if(this.HotelRow && this.hotelInfor){
this.setList()
}
},
deep: true
},
......@@ -267,9 +271,9 @@
this.setInjectHandler()
},
setDateRange() {
if(!this.editorType&&!this.editor){
if(!this.editorType&&!this.editor&&this.parameters.Date){
this.joinHouse.StartDate = this.parameters.Date
}else{
}else if(this.editorType&&this.editor&&this.editor.Date){
this.joinHouse.StartDate = this.editor.Date
}
this.joinHouse.EndDate = this.getBeforeDate(-1, this.joinHouse.StartDate)
......
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