|
@@ -132,8 +132,13 @@
|
|
|
<el-row style="width: 100%">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item prop="countryId">
|
|
|
- <el-select v-model="formData.data.countryId" placeholder="国家" filterable @change="(val) => getCityData(val, '20', true)">
|
|
|
- <el-option v-for="item in countryData" :label="item.chineseName" :value="item.id"> </el-option>
|
|
|
+ <el-select
|
|
|
+ v-model="formData.data.countryId"
|
|
|
+ placeholder="国家"
|
|
|
+ filterable
|
|
|
+ @change="(val) => getCityData(val, '20', true)"
|
|
|
+ :no-match-text="'无数据,请联系管理员添加'">
|
|
|
+ <el-option v-for="item in countryData" :key="item.id" :label="item.chineseName + '(' + item.name + ')'" :value="item.id"> </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -333,10 +338,11 @@
|
|
|
<el-select
|
|
|
v-model="sourceList.pagination.countryId"
|
|
|
placeholder="国家"
|
|
|
+ clearable
|
|
|
filterable
|
|
|
@change="(val) => getCitySearchData(val, '20', true)"
|
|
|
:no-match-text="'无数据,请联系管理员添加'">
|
|
|
- <el-option v-for="item in countrySearchData" :label="item.chineseName" :value="item.id"> </el-option>
|
|
|
+ <el-option v-for="item in countryData" :key="item.id" :label="item.chineseName + '(' + item.name + ')'" :value="item.id"> </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|