智慧社区后台管理页面
+
liuyg
2022-03-21 1ec8bc5c749c36e2c845ee55740472ca4125193d
src/views/hd/hd.vue
@@ -43,8 +43,8 @@
</template>
<script>
import { getList, getDetail, add, update, remove } from "@/api/hd/hd";
import { mapGetters } from "vuex";
import {getList, getDetail, add, update, remove} from "@/api/hd/hd";
import {mapGetters} from "vuex";
// import Map from "@/components/map/main.vue";
import getMapData from "./getMapData.vue";
import getMapDataInThere from "./getMapDataInThere.vue";
@@ -204,7 +204,6 @@
      }
      row.tpurl = d.join(",");
      let outMapData = this.$refs.getMapData.myRulesUse();
      // console.log(outMapData);
      if (!outMapData) {
        loading();
        return;
@@ -241,6 +240,9 @@
      row["lx"] = outMapData[0][1];
      row["addressname"] = outMapData[1][0];
      row["address"] = outMapData[1][1];
      // console.log(row);
      // loading();
      // return;
      update(row).then(
        () => {
          this.onLoad(this.page);
@@ -299,6 +301,7 @@
      //  声明定时器
      let that = this;
      var timer = null;
      //  检查dom是否执行完成
      function checkDom() {
        let dom = that.$refs[name];
@@ -320,6 +323,7 @@
          timer = setTimeout(checkDom, 100);
        }
      }
      //  首次执行
      checkDom();
    },
@@ -389,6 +393,7 @@
.mapClass {
  margin-left: 88px;
}
.mapClass div label {
  display: none;
}