|
|
@ -125,6 +125,30 @@ export default { |
|
|
|
return !position?.latitude && !position?.longitude ? true : false |
|
|
|
return !position?.latitude && !position?.longitude ? true : false |
|
|
|
}, |
|
|
|
}, |
|
|
|
getlist() { |
|
|
|
getlist() { |
|
|
|
|
|
|
|
let position = { latitude: 36.636753, longitude: 119.11914 } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.page.params = Object.assign(this.page.params, position) |
|
|
|
|
|
|
|
this.loading = true |
|
|
|
|
|
|
|
oilSiteApi |
|
|
|
|
|
|
|
.getSiteList(this.page) |
|
|
|
|
|
|
|
.then(res => { |
|
|
|
|
|
|
|
if (res.code == 20000) { |
|
|
|
|
|
|
|
if (res.data.list.length < 10) { |
|
|
|
|
|
|
|
this.finished = true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (this.page.currentPage == 1) { |
|
|
|
|
|
|
|
this.list = res.data.list |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.list = this.list.concat(res.data.list) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.loading = false |
|
|
|
|
|
|
|
this.refreshing = false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.catch(error => { |
|
|
|
|
|
|
|
this.finished = true |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return |
|
|
|
initAMap().then(() => { |
|
|
|
initAMap().then(() => { |
|
|
|
let AMap = this.$AMap |
|
|
|
let AMap = this.$AMap |
|
|
|
let geolocation = new AMap.Geolocation({ |
|
|
|
let geolocation = new AMap.Geolocation({ |
|
|
|