Commit 27a9a9a0 authored by zhengke's avatar zhengke

修改

parent 09e27d12
......@@ -256,13 +256,16 @@
<em>{{$t('system.quety_area')}}</em>
<el-select v-model="msg.CountryId" clearable class="w150" filterable
@change="getProvinceList(msg.CountryId,1)" :placeholder="$t('hotel.hotel_country')">
<el-option label="不限" :value="0"></el-option>
<el-option v-for="item in countryList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
<el-select v-model="msg.ProviceId" class="w150" filterable @change="getProvinceList(msg.ProviceId,2)"
:placeholder="$t('hotel.hotel_province')">
<el-option label="不限" :value="0"></el-option>
<el-option v-for="item in provinceList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
<el-select v-model="msg.CityId" class="w150" filterable :placeholder="$t('hotel.hotel_city')">
<el-option label="不限" :value="0"></el-option>
<el-option v-for="item in cityList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</span>
......@@ -284,13 +287,7 @@
名称
</th>
<th>
国家名称
</th>
<th>
省份名称
</th>
<th>
城市名称
地区
</th>
<th width="150">
封面
......@@ -313,13 +310,7 @@
{{item.Name}}
</td>
<td>
{{item.CountryName}}
</td>
<td>
{{item.ProviceName}}
</td>
<td>
{{item.CityName}}
{{item.CountryName}}-{{item.ProviceName}}-{{item.CityName}}
</td>
<td>
<img :src="item.ImgCover" style="width:50px;height:30px" />
......@@ -341,7 +332,7 @@
</td>
</tr>
<tr v-if="!(DataList && DataList.length>0)">
<td colspan="9">
<td colspan="7">
暂无数据...
</td>
</tr>
......@@ -375,17 +366,20 @@
<el-form-item label="国家">
<el-select v-model="addMsg.CountryId" clearable class="w217" filterable
@change="getProvinceListTwo(addMsg.CountryId,1)" :placeholder="$t('hotel.hotel_country')">
<el-option label="不限" :value="0"></el-option>
<el-option v-for="item in countryList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</el-form-item>
<el-form-item label="省">
<el-select v-model="addMsg.ProviceId" class="w217" filterable @change="getProvinceListTwo(addMsg.ProviceId,2)"
:placeholder="$t('hotel.hotel_province')">
<el-option label="不限" :value="0"></el-option>
<el-option v-for="item in provinceList2" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</el-form-item>
<el-form-item label="市">
<el-select v-model="addMsg.CityId" class="w217" filterable :placeholder="$t('hotel.hotel_city')">
<el-option label="不限" :value="0"></el-option>
<el-option v-for="item in cityList2" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</el-form-item>
......@@ -594,7 +588,9 @@
this.addMsg.ImgCover = res.data.data.ImgCover;
this.addMsg.Content = res.data.data.Content;
this.addMsg.CountryId = res.data.data.CountryId;
this.getProvinceListTwo(this.addMsg.CountryId,1);
this.addMsg.ProviceId = res.data.data.ProviceId;
this.getProvinceListTwo(this.addMsg.ProviceId,2);
this.addMsg.CityId = res.data.data.CityId;
this.outerVisible = true;
}
......@@ -618,10 +614,10 @@
Id: ID
};
if (type == 1) {
this.msg.ProviceId = "";
this.msg.CityId = "";
this.msg.ProviceId = 0;
this.msg.CityId = 0;
} else if (type == 2) {
this.msg.CityId = "";
this.msg.CityId = 0;
}
if (this.msg.CountryId !== "") {
this.apipost(
......@@ -644,10 +640,10 @@
Id: ID
};
if (type == 1) {
this.addMsg.ProviceId = "0";
this.addMsg.CityId = "0";
this.addMsg.ProviceId = 0;
this.addMsg.CityId = 0;
} else if (type == 2) {
this.addMsg.CityId = "0";
this.addMsg.CityId = 0;
}
if (this.addMsg.CountryId !== "") {
this.apipost(
......
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