Commit 5ab72e26 authored by youjie's avatar youjie

no message

parent b9455cc0
...@@ -443,24 +443,22 @@ export default { ...@@ -443,24 +443,22 @@ export default {
// 保存标记坐标 // 保存标记坐标
SavePositionStr() { SavePositionStr() {
this.dataAll.TripMapList = JSON.parse(JSON.stringify(this.TripMapList)); this.dataAll.TripMapList = JSON.parse(JSON.stringify(this.TripMapList));
return // this.TripMapList.forEach(x => {
this.TripMapList.forEach(x => { // x.CityList.forEach(y => {
x.CityList.forEach(y => { // this.citiesData.forEach(z => {
this.citiesData.forEach(z => { // if (y.MName == z.name) {
if (y.MName == z.name) { // y.Lng = z.Lng;
y.Lng = z.Lng; // y.Lat = z.Lat;
y.Lat = z.Lat; // }
} // });
}); // });
});
// this.countriesData.forEach(y => { // this.countriesData.forEach(y => {
// if (x.MName == y.name) { // if (x.MName == y.name) {
// x.Lng = y.Lng; // x.Lng = y.Lng;
// x.Lat = y.Lat; // x.Lat = y.Lat;
// } // }
// }); // });
}); // });
}, },
// 导出地图片 // 导出地图片
getResultImg() { getResultImg() {
...@@ -744,7 +742,6 @@ export default { ...@@ -744,7 +742,6 @@ export default {
var marker = new mapboxgl.Marker({ color: "#d73b33", scale: 0.5 }) var marker = new mapboxgl.Marker({ color: "#d73b33", scale: 0.5 })
.setLngLat([item.longitude, item.latitude]) .setLngLat([item.longitude, item.latitude])
.addTo(this.map); .addTo(this.map);
console.log(item.Lng,'=====')
if (item.Lng && item.Lat) { if (item.Lng && item.Lat) {
this.addLabel(item, i, item); this.addLabel(item, i, item);
} else { } else {
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
<el-input type="textarea" :autosize="{minRows: 1, maxRows: 8 }" resize="none" <el-input type="textarea" :autosize="{minRows: 1, maxRows: 8 }" resize="none"
placeholder="请输入行程大点信息" v-model="dayObj.TitleObj.Title"></el-input> placeholder="请输入行程大点信息" v-model="dayObj.TitleObj.Title"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item class="marginT10">
<el-input placeholder="请输入公里数" class="w120" v-model="dayObj.TitleObj.KMNumber"> <el-input placeholder="请输入公里数" class="w120" v-model="dayObj.TitleObj.KMNumber">
<template slot="append">KM</template> <template slot="append">KM</template>
</el-input> </el-input>
......
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