Commit 9f060d3a authored by youjie's avatar youjie

no message

parent 57197daf
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
EndDate:msg.CheckOutDate, EndDate:msg.CheckOutDate,
searchroomGroup:msg.searchroomGroup}" searchroomGroup:msg.searchroomGroup}"
Type="1" Type="1"
@change="clearQuery" @change="changQuery"
@changeCity="changCity" @changeCity="changCity"
@clear="clearQuery"></destination> @clear="changQuery"></destination>
<div class="q-pt-sm cursor-pointer"> <div class="q-pt-sm cursor-pointer">
<div v-show="regionList.length" class="self-center no-outline text-s" <div v-show="regionList.length" class="self-center no-outline text-s"
tabindex="0" tabindex="0"
...@@ -213,9 +213,8 @@ ...@@ -213,9 +213,8 @@
EndDate:msg.CheckOutDate, EndDate:msg.CheckOutDate,
searchroomGroup:msg.searchroomGroup}" searchroomGroup:msg.searchroomGroup}"
Type="2" Type="2"
@change="clearQuery" @change="changQuery"
@changeCity="changCity" @changeCity="changCity"></destination>
@clear="clearQuery"></destination>
<div class="q-pt-sm cursor-pointer"> <div class="q-pt-sm cursor-pointer">
<div v-show="msg.CityCode&&regionList.length" class="self-center no-outline text-s" <div v-show="msg.CityCode&&regionList.length" class="self-center no-outline text-s"
...@@ -679,7 +678,6 @@ export default { ...@@ -679,7 +678,6 @@ export default {
qMsg: { qMsg: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.msg = JSON.parse(JSON.stringify(this.qMsg)); this.msg = JSON.parse(JSON.stringify(this.qMsg));
console.log(newVal.KeyWords2,'----222')
this.msg.priceRange = { this.msg.priceRange = {
min: 1, min: 1,
max: 100000, max: 100000,
...@@ -737,7 +735,7 @@ export default { ...@@ -737,7 +735,7 @@ export default {
} }
}, },
methods: { methods: {
clearQuery(msg) { changQuery(msg) {
this.msg = { this.msg = {
...this.msg, ...this.msg,
...msg ...msg
...@@ -1181,7 +1179,7 @@ export default { ...@@ -1181,7 +1179,7 @@ export default {
this.PageCount = 0; this.PageCount = 0;
this.TotalCount = 0; this.TotalCount = 0;
let msg = JSON.parse(JSON.stringify(this.msg)); let msg = JSON.parse(JSON.stringify(this.msg));
if(this.msg.KeyWords2){ if((!this.msg.KeyWords||this.msg.KeyWords=='')&&this.msg.KeyWords2){
// msg.CityName = '' // msg.CityName = ''
// msg.CityCode = '' // msg.CityCode = ''
// msg.CityCode2 = this.msg.CityCode // msg.CityCode2 = this.msg.CityCode
......
...@@ -255,12 +255,14 @@ export default { ...@@ -255,12 +255,14 @@ export default {
if(y.Type==1){ if(y.Type==1){
this.HotalMsg.CityCode = y.Id this.HotalMsg.CityCode = y.Id
this.HotalMsg.CityCode2 = ''//y.Id this.HotalMsg.CityCode2 = ''//y.Id
this.HotalMsg.CityName = y.Name.split(' ')[0] let Obj = y.Name.split(' ')[0]
let Name = Obj.split(',')[0]
this.HotalMsg.CityName = Name
if(this.Type>0)this.HotalMsg.KeyWords = '' if(this.Type>0)this.HotalMsg.KeyWords = ''
this.HotalMsg.KeyWords2 = y.Name.split(' ')[0] this.HotalMsg.KeyWords2 = Name
this.KeyWords3 = '' this.KeyWords3 = ''
if(!this.Type) { if(!this.Type) {
this.KeyWords3 = y.Name.split(' ')[0] this.KeyWords3 = Name
this.searchChangeHandler(0) this.searchChangeHandler(0)
} }
else this.$emit('changeCity', this.HotalMsg) else this.$emit('changeCity', this.HotalMsg)
...@@ -368,7 +370,7 @@ export default { ...@@ -368,7 +370,7 @@ export default {
// this.HotalMsg.hotelId = '' // this.HotalMsg.hotelId = ''
this.HotalMsg.StartDate = this.HotalMsg.StartDate?this.HotalMsg.StartDate:date.formatDate(date.addToDate(new Date(), { days: 8 }), "YYYY/MM/DD") this.HotalMsg.StartDate = this.HotalMsg.StartDate?this.HotalMsg.StartDate:date.formatDate(date.addToDate(new Date(), { days: 8 }), "YYYY/MM/DD")
this.HotalMsg.EndDate = this.HotalMsg.EndDate?this.HotalMsg.EndDate:date.formatDate(date.addToDate(new Date(), { days: 9}), "YYYY/MM/DD") this.HotalMsg.EndDate = this.HotalMsg.EndDate?this.HotalMsg.EndDate:date.formatDate(date.addToDate(new Date(), { days: 9}), "YYYY/MM/DD")
if(!type) this.$emit('clear',this.HotalMsg) if(!type||this.Type>0) this.$emit('change',this.HotalMsg)
return return
this.showSplitPannel = true this.showSplitPannel = true
this.showKeyWordsList = false this.showKeyWordsList = false
......
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