Commit 39dc8bda authored by 黄奎's avatar 黄奎

11

parent 9299800b
......@@ -169,7 +169,7 @@
<span>
<em>{{$t('system.table_country')}}</em>
<el-select v-model="msg.Country" filterable @change="getCityList(msg.Country,'Destination')"
:placeholder="$t('hotel.hotel_province')" clearable @clear="msg.Province='',msg.City=''">
:placeholder="$t('hotel.hotel_province')" clearable @clear="msg.City=''">
<el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option>
<el-option v-for="item in countryList" :key="item.ISOCountryCode" :label="item.CountryName_CN"
:value="item.ISOCountryCode"></el-option>
......@@ -179,8 +179,8 @@
<li>
<span>
<em>{{$t('objFill.v101.hote.shengfen')}}</em>
<el-select v-model="msg.DestinationID" filterable remote reserve-keyword :placeholder="$t('pub.PleaseKeyWords')"
:remote-method="remoteMethod" :loading="loading">
<el-select v-model="msg.DestinationID" filterable remote reserve-keyword
:placeholder="$t('pub.PleaseKeyWords')" :remote-method="remoteMethod" :loading="loading">
<el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option>
<el-option v-for="item in cityList" :key="item.CityCode" :label="item.CityName_CN" :value="item.CityCode">
</el-option>
......@@ -266,7 +266,8 @@
<span class="nd-price-tag__price nd-price-tag"
style="font-weight: bolder !important;font-size: 20px;">{{item.lowrateBySetCurrency}} </span>
<span class="nd-price-tag">{{$t('op.Qi')}}</span>
<el-button round class="nd-reserve-btn" @click="goUrlT('HotelDetails', item.hotelId)">{{$t('objFill.v101.hote.lijiyud')}}</el-button>
<el-button round class="nd-reserve-btn" @click="goUrlT('HotelDetails', item.hotelId)">
{{$t('objFill.v101.hote.lijiyud')}}</el-button>
</div>
</div>
</div>
......@@ -295,7 +296,7 @@
//只查询日本
Country: "JP",
DestinationID: '',
City: 0,
City: "",
//星级
Star: '',
//价格等级
......@@ -318,7 +319,6 @@
//国家
countryList: [],
cityList: [],
district: [],
beforeCheck: {
disabledDate: time => {
if (this.msg.StartDate) {
......@@ -362,6 +362,7 @@
}
},
getCityList(ID, Type) {
//根据省份获取城市
let msg = {};
if (Type === "Destination") {
......@@ -370,24 +371,16 @@
Type: Type
};
this.cityList = [];
} else {
msg = {
ParentCityCode: ID,
Type: Type
};
this.district = [];
}
this.apipost(
"dmc_post_GetDiDaCityBaseInfo",
msg,
res => {
if (Type === "Destination") {
if (msg.CountryCode) {
this.apipost(
"dmc_post_GetDiDaCityBaseInfo",
msg,
res => {
this.cityList = res.data.data;
} else {
this.district = res.data.data;
}
},
);
},
);
}
},
//获取国家
getCountryList() {
......
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