|
@@ -42,7 +42,7 @@ export default {
|
|
|
],
|
|
|
val1: "",
|
|
|
val2: "",
|
|
|
- currentPage:this.currentPage,
|
|
|
+ // currentPage:this.currentPage,
|
|
|
};
|
|
|
|
|
|
},
|
|
@@ -57,7 +57,6 @@ export default {
|
|
|
radio: function (val1, val2) {
|
|
|
this.val1 = val1
|
|
|
this.val2 = val2
|
|
|
-
|
|
|
this.infoList()
|
|
|
// this.loadmap();
|
|
|
},
|
|
@@ -71,11 +70,10 @@ export default {
|
|
|
infoList() {
|
|
|
var that = this
|
|
|
if (that.val1 == 1) {
|
|
|
- var that = this;
|
|
|
travelpathbd({ orderId: that.orderid })
|
|
|
.then((response) => {
|
|
|
that.path1 = [];
|
|
|
- var patharr = response.data
|
|
|
+ var patharr = JSON.parse(response.data.longitudeLatitude)
|
|
|
// console.log(JSON.parse(response.data.longitudeLatitude),11111111)
|
|
|
for (let i = 0; i < patharr.length; i++) {
|
|
|
that.path1.push([patharr[i].lon, patharr[i].lat]);
|
|
@@ -88,7 +86,6 @@ export default {
|
|
|
});
|
|
|
// this.path = this.path1
|
|
|
} else {
|
|
|
- var that = this;
|
|
|
travelpath({
|
|
|
orderId: that.orderid,
|
|
|
currentPage: that.currentPage,
|
|
@@ -109,12 +106,6 @@ export default {
|
|
|
.catch(() => {
|
|
|
// console.log(121212)
|
|
|
});
|
|
|
- // travelpath({orderId:this.orderid}).then(response => {
|
|
|
- // console.log(response)
|
|
|
- // })
|
|
|
- // .catch(() => {
|
|
|
- // })
|
|
|
- // this.path = this.path2
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -157,7 +148,6 @@ export default {
|
|
|
alert("当前环境不支持 Canvas!");
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
let pathSimplifierIns = new PathSimplifier({
|
|
|
zIndex: 100,
|
|
|
//autoSetFitView:false,
|