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

11

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