南昌市物联网技防平台-前端
zengh
2021-02-24 83c70fa12a9c64361afde9d699a6c639a9ddc209
警情分发定位功能完善
2 files modified
26 ■■■■ changed files
src/views/policeInformationDistribution/index.vue 25 ●●●● patch | view | raw | blame | history
src/views/realTimePolice/real.vue 1 ●●●● patch | view | raw | blame | history
src/views/policeInformationDistribution/index.vue
@@ -46,22 +46,23 @@
          icon="el-icon-location-outline"
          :size="size"
          :type="type"
          @click.stop="handleMap()"
          @click.stop="handleMap(row)"
          >定位</el-button
        >
      </template>
    </avue-crud>
    <el-drawer
      title="我是标题"
      title="电子地图"
      append-to-body="true"
      :visible.sync="qwe"
      :direction="direction"
      :visible.sync="showMap"
    >
      <iframe
        src="http://www.baidu.com"
        id="mapDiv"
        ref="mapDiv"
        src="/map/index.html?openid=ClientManagement"
        frameborder="0"
        width="100%"
        height="600px"
        height="100%"
      ></iframe>
    </el-drawer>
  </basic-container>
@@ -80,6 +81,7 @@
export default {
  data() {
    return {
      showMap: false,
      qwe: false,
      direction: "rtl",
      form: {},
@@ -176,6 +178,7 @@
            label: "设备编号",
            search: true,
            searchSpan: 3,
            width: 120,
            prop: "deviceNumber"
          },
          {
@@ -483,7 +486,15 @@
      });
      this.$store.state.tags.tagList = arr;
      this.$router.push({ path: "/distribution/index", query: data });
    }
    },
    handleMap(row) {
      this.showMap = true;
      this.$nextTick(() => {
        this.$refs.mapDiv.onload = () => {
          window.frames[0].locationObj = {x: row.jd, y: row.wd};
        };
      })
    },
  }
};
</script>
src/views/realTimePolice/real.vue
@@ -855,6 +855,7 @@
              that.updateJtyep(row);
              that.dialogTableVisible = false;
              that.$router.push({ path: "/distribution/index", query: row });
            })
            .catch(function (error) {
              that.dialogTableVisible = false;