From a094b266df9098e39af5fe0c1fd487ebfa920428 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 13 Jan 2022 11:03:58 +0800
Subject: [PATCH] +修改  活动  编辑和查看应用数据的方式

---
 src/components/map/main.vue |    2 +-
 src/views/hd/getMapData.vue |   12 +++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/components/map/main.vue b/src/components/map/main.vue
index 7f77870..54afb5d 100644
--- a/src/components/map/main.vue
+++ b/src/components/map/main.vue
@@ -256,7 +256,7 @@
     var view = ol2d.getView();
 
     // view.setCenter([115.85883507433789, 28.708432053474827])
-    view.setCenter([115.9032747077233, 28.67433116990186]);
+    view.setCenter([114.03841654, 27.62919726]);
 
     //
     view.setZoom(13);
diff --git a/src/views/hd/getMapData.vue b/src/views/hd/getMapData.vue
index 79b21c0..1c25376 100644
--- a/src/views/hd/getMapData.vue
+++ b/src/views/hd/getMapData.vue
@@ -191,25 +191,27 @@
         r = val[0][1].split(";"),
         pname = val[1][0].split(";"),
         p = val[1][1].split(";");
+      this.routers = [];
+      this.potions = [];
       for (let k in r) {
-        this.routers[k] = {
+        this.routers.push({
           label: "路径" + (+k + 1),
           value: r[k],
           routerName: rname[k],
           notPath: true,
-        };
+        });
       }
       for (let k in p) {
-        this.potions[k] = {
+        this.potions.push({
           label: "标点" + (+k + 1),
           value: p[k],
           potionName: pname[k],
           notPath: true,
-        };
+        });
       }
       // console.log(this.potions);
       //刷新
-      this.Refresh = !this.Refresh;
+      // this.Refresh = !this.Refresh;
     },
     myRules() {
       for (let i in this.routers) {

--
Gitblit v1.9.3