Commit 5ca948bb authored by youjie's avatar youjie

no message

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