Commit 13577256 authored by 黄奎's avatar 黄奎

页面修改

parent a108ac81
......@@ -9,7 +9,7 @@
<el-option v-for="(item, i) in x.NationList" :label="item.Name" :value="item.ID" :key="i"></el-option>
</el-select>
<el-select style="min-width: 300px;max-width: 600px;margin-left: 5px;margin-right: 5px;" size="mini"
placeholder="选择城市" v-model="x.CityListIds" multiple filterable @change="getCityListIds(x, index)">
placeholder="选择城市" v-model="x.CityListIds" multiple filterable @change="changeCityListIds(x, index)">
<el-option v-for="(item, i) in x.CityListAll" :label="item.Name" :value="item.ID" :key="i">
</el-option>
</el-select>
......@@ -17,14 +17,14 @@
@change="getColorStr"></el-color-picker>
<div style="margin-left: 5px; font-size: 23px;cursor: pointer;">
<i v-if="TripMapList.length - 1 == index" class="el-icon-circle-plus" style="color: #E95252;"
@click="alterCity(x, index, 1)"></i>
@click="operateCity(x, index, 1)"></i>
<i v-if="index != 0" class="el-icon-delete-solid" style="color: gray;"
@click="alterCity(x, index, 0)"></i>
@click="operateCity(x, index, 0)"></i>
</div>
</div>
</div>
<div class="row-aic" style="flex-shrink: 0;">
<el-button type="danger" @click="Cancel" size="small">取消</el-button>
<el-button type="danger" @click="Cancel" size="small">关闭</el-button>
<el-button type="primary" :loading="setLoading" @click="getResultImg()" size="small">生成图片</el-button>
</div>
</div>
......@@ -404,6 +404,7 @@
return;
});
},
//关闭地图弹窗
Cancel() {
this.$emit("Cancel");
},
......@@ -413,7 +414,6 @@
"dict_get_Destination_GetCityExtList",
this.searchNation,
res => {
if (Type == 1) {
this.NationList = res.data.data;
this.NationList.forEach(x => {
......@@ -428,11 +428,11 @@
err => {}
);
},
// 添加、删除
alterCity(x, index, type) {
//添加、删除城市
operateCity(x, index, type) {
let obj = {
CityList: [],
CityListAll: [],
CityListAll: [],//国家城市下来列表
CityListIds: [],
NationList: x.NationList,
ColorStr: x.ColorStr,
......@@ -467,8 +467,8 @@
getColorStr() {
this.PostConfig.TripMapList = JSON.parse(JSON.stringify(this.TripMapList));
},
// 城市ids
getCityListIds(x, index) {
//选择城市或移除城市
changeCityListIds(x, index) {
x.CityList = [];
let obj = {
CityList: [],
......
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