Commit 77ab978e authored by 黄奎's avatar 黄奎

11

parent 6fccdf6f
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
<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.Province='',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 provinceList" :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>
</el-select> </el-select>
</span> </span>
...@@ -315,8 +315,8 @@ ...@@ -315,8 +315,8 @@
isShow: false, isShow: false,
currentPage: 0, currentPage: 0,
total: 0, total: 0,
//国家 省市 区 //国家
provinceList: [], countryList: [],
cityList: [], cityList: [],
district: [], district: [],
beforeCheck: { beforeCheck: {
...@@ -389,13 +389,13 @@ ...@@ -389,13 +389,13 @@
}, },
); );
}, },
getProvinceList() { //获取国家
//根据省份获取城市 getCountryList() {
this.provinceList = []; this.countryList = [];
this.apipost( this.apipost(
"dmc_post_GetDiDaCountryList", {}, "dmc_post_GetDiDaCountryList", {},
res => { res => {
this.provinceList = res.data.data; this.countryList = res.data.data;
}, },
); );
}, },
...@@ -452,7 +452,7 @@ ...@@ -452,7 +452,7 @@
this.msg.EndDate = eyear + "-" + this.msg.EndDate = eyear + "-" +
(emonth < 10 ? "0" : "") + emonth + "-" + (emonth < 10 ? "0" : "") + emonth + "-" +
(eday < 10 ? "0" : "") + eday; (eday < 10 ? "0" : "") + eday;
this.getProvinceList(); this.getCountryList();
this.getPageList(); this.getPageList();
} }
}; };
......
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