230320a303 2 years ago
parent
commit
299149ca88

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-2cfb0da7.36efe73a.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.21ef2e9e.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-2cfb0da7.b6f65040.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-ef143f9c.cd2ea685.js


+ 3 - 0
src/api/other.js

@@ -202,6 +202,9 @@ export default {
   admmapcoordindatalist: params => { // 地图 数据 配置 列表
     return getRequestNoSort('/adm/map/coordin/data/list', params, 'loading')
   },
+  admmapcoordinaround: params => { // 地图 数据 配置 按需
+    return getRequestNoSort('/adm/map/coordin/around', params, 'loading')
+  },
   admmetroinfolist: params => { // 地铁管理 - 列表
     return getRequest('/adm/metro/info/list', params)
   },

+ 17 - 9
src/views/map/dtl2.vue

@@ -309,10 +309,15 @@ export default {
         complete () {
           that.setCurFeatures(that.mapDiyObj.features)
         },
-        // click(e) {
-        //   const { lng, lat } = e.lnglat
-        //   console.log(lng, lat)
-        // },
+        moveend () {
+          // console.log(this.mapDiyObj.center)
+        },
+        click(e) {
+          const { lng, lat } = e.lnglat
+          // console.log(lng, lat)
+          that.mapDiyObj.center = [lng, lat]
+          that.getList()
+        },
       },
       markersEvents: {
         dragend(e) {
@@ -759,14 +764,17 @@ export default {
       const curMap = this.amapManager.getMap()
       curMap.setFeatures(data)
     },
-    getList (params) {
+    getList () {
       const query = this.$route.query
-      this.$api.other.admmapcoordindatalist({
-        map_id: query.id
+      // this.$api.other.admmapcoordindatalist({
+      this.$api.other.admmapcoordinaround({
+        map_id: query.id,
+        distance: 5000,
+        longitude: this.mapDiyObj.center[0],
+        latitude: this.mapDiyObj.center[1],
       }).then(res => {
         let polygons = res.map(item => {
           const d = JSON.parse(item.data)
-          console.log(d.path[0])
           return {
             ...d,
             longitude: item.longitude,
@@ -1031,7 +1039,7 @@ export default {
           cObj.editable = false
           const cPath = cObj.path
           const lnglatObj = this.getCenterPoint(cPath)
-          console.log(lnglatObj)
+          // console.log(lnglatObj)
           let tempPath = []
           cPath.forEach(item => {
             tempPath.push([item.lng, item.lat])

Some files were not shown because too many files changed in this diff