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

11

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