Commit 27a9a9a0 authored by zhengke's avatar zhengke

修改

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