Commit 13577256 authored by 黄奎's avatar 黄奎

页面修改

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