From 6fe1921d3958191e6dd6f36c7a609586d5255d1d Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 17 Jan 2022 11:21:46 +0800
Subject: [PATCH] +活动地图更改

---
 src/views/hd/hd.vue |   37 ++++++++++++++++++++-----------------
 1 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/src/views/hd/hd.vue b/src/views/hd/hd.vue
index 089d4ac..907acfc 100644
--- a/src/views/hd/hd.vue
+++ b/src/views/hd/hd.vue
@@ -32,14 +32,11 @@
         </el-button>
       </template> -->
       <template slot-scope="{ type, disabled }" slot="lineForm">
-        <!-- <div class="mapClassMain" style="width: 100%; height: 400px">
-          <Map ref="modalForm" />
-        </div> -->
-        <getMapData
+        <getMapDataInThere
           ref="getMapData"
           id="getMapData"
           @setMapData="setMapData"
-        ></getMapData>
+        ></getMapDataInThere>
       </template>
     </avue-crud>
   </basic-container>
@@ -50,11 +47,13 @@
 import { mapGetters } from "vuex";
 // import Map from "@/components/map/main.vue";
 import getMapData from "./getMapData.vue";
+import getMapDataInThere from "./getMapDataInThere.vue";
 
 export default {
   components: {
     // Map,
     getMapData,
+    getMapDataInThere,
   },
   data() {
     return {
@@ -129,17 +128,6 @@
             action: "/api/blade-resource/oss/endpoint/put-file",
           },
           {
-            label: "选择路径和标点",
-            labelWidth: "0",
-            prop: "line",
-            className: "mapClass",
-            hide: true,
-            display: true,
-            span: 24,
-            formslot: true,
-            addDisplay: true,
-          },
-          {
             label: "介绍",
             prop: "context",
             component: "AvueUeditor",
@@ -152,6 +140,17 @@
             },
             minRows: 5,
             span: 24,
+          },
+          {
+            label: "选择路径和标点",
+            labelWidth: "0",
+            prop: "line",
+            className: "mapClass",
+            hide: true,
+            display: true,
+            span: 24,
+            formslot: true,
+            addDisplay: true,
           },
           // {
           //   label: "路线",活动
@@ -205,6 +204,7 @@
       }
       row.tpurl = d.join(",");
       let outMapData = this.$refs.getMapData.myRulesUse();
+      // console.log(outMapData);
       if (!outMapData) {
         loading();
         return;
@@ -213,6 +213,9 @@
       row["lx"] = outMapData[0][1];
       row["addressname"] = outMapData[1][0];
       row["address"] = outMapData[1][1];
+      // console.log(row);
+      // loading();
+      // return;
       add(row).then(
         () => {
           this.onLoad(this.page);
@@ -398,6 +401,6 @@
   width: calc(100% + 90px);
   position: relative;
   left: -90px;
-  height: auto;
+  height: 400px;
 }
 </style>

--
Gitblit v1.9.3