南昌市物联网技防平台-前端
zengh
2021-05-08 53c88484130d109dcc0cbb21bc0bb20a1b3220bd
iframe替换
9 files modified
44 ■■■■ changed files
src/views/clientManagement/clientManagement.vue 6 ●●●● patch | view | raw | blame | history
src/views/clientManagement/clientManagement_copy.vue 2 ●●● patch | view | raw | blame | history
src/views/dataL/dataL.vue 8 ●●●● patch | view | raw | blame | history
src/views/distribution/index.vue 2 ●●● patch | view | raw | blame | history
src/views/policeInformationDistribution/index.vue 2 ●●● patch | view | raw | blame | history
src/views/policeTracking/policeTracking.vue 2 ●●● patch | view | raw | blame | history
src/views/realTimePolice/real.vue 8 ●●●● patch | view | raw | blame | history
src/views/security/security.vue 10 ●●●● patch | view | raw | blame | history
src/views/supervisoryConsole/map.vue 4 ●●●● patch | view | raw | blame | history
src/views/clientManagement/clientManagement.vue
@@ -77,7 +77,7 @@
              <i class="yj" v-if="row.dxzt == '2' "></i>
              <i class="gz" v-if="row.dxzt == '3' "></i>
            </el-tag>
          </template>
          <template slot-scope="{ row }" slot="type">
@@ -1029,7 +1029,7 @@
              if(data.records[i].dtype=="" || data.records[i].dtype==0){
                  data.records[i].dxzt = 1;
              }
            }
          }
@@ -1125,7 +1125,7 @@
        this.showMap = true;
        this.$nextTick(() => {
          this.$refs.mapDiv.onload = () => {
            window.frames[0].init("equipment", {x: row.jd, y: row.wd});
            window.frames[1].init("equipment", {x: row.jd, y: row.wd});
          };
        })
      },rightClick(row, event) {
src/views/clientManagement/clientManagement_copy.vue
@@ -722,7 +722,7 @@
        this.showMap = true;
        this.$nextTick(() => {
          this.$refs.mapDiv.onload = () => {
            window.frames[0].init("equipment", {x: row.jd, y: row.wd});
            window.frames[1].init("equipment", {x: row.jd, y: row.wd});
          };
        })
      },
src/views/dataL/dataL.vue
@@ -1186,7 +1186,7 @@
      this.startEcharts01();
    },
    getMap() {
      window.frames[0].init("DetailMap", {
      window.frames[1].init("DetailMap", {
        x: this.a.jd,
        y: this.a.wd,
      });
@@ -1297,15 +1297,15 @@
    // this.doEvents();
    // var timel = setTimeout(() => {
    this.$refs.detailMap.onload = () => {
      // window.frames[0].init("DetailMap", {
      // window.frames[1].init("DetailMap", {
      //   x: this.a.jd,
      //   y: this.a.wd,
      // });
      if (window.frames[0].init) {
      if (window.frames[1].init) {
        this.getMap();
      } else {
        // this.re();
        console.log(`没有找到到window.frames[0].init`);
        console.log(`没有找到到window.frames[1].init`);
      }
    };
  },
src/views/distribution/index.vue
@@ -243,7 +243,7 @@
  mounted() {
    this.$refs.DistributionMapDiv.onload = () => {
      window.frames[0].init("AlertSecurity", {
      window.frames[1].init("AlertSecurity", {
        x: this.form.jd,
        y: this.form.wd,
      });
src/views/policeInformationDistribution/index.vue
@@ -538,7 +538,7 @@
        this.showMap = true;
        this.$nextTick(() => {
          this.$refs.mapDiv.onload = () => {
            window.frames[0].init("ClientManagement", {x: row.jd, y: row.wd});
            window.frames[1].init("ClientManagement", {x: row.jd, y: row.wd});
          };
        });
      },
src/views/policeTracking/policeTracking.vue
@@ -594,7 +594,7 @@
    this.getAudios();
    this.getImgAndVideo();
    this.$refs.mapDiv.onload = () => {
      window.frames[0].init("AlertSecurity", {
      window.frames[1].init("AlertSecurity", {
        x: this.form.jd,
        y: this.form.wd,
      });
src/views/realTimePolice/real.vue
@@ -149,7 +149,7 @@
    </el-drawer>
  </basic-container>
</template>
<script>
import { getList, remove, update, add, getclient } from "@/api/real/real";
import { mapGetters } from "vuex";
@@ -800,7 +800,7 @@
      this.showMap = true;
      this.$nextTick(() => {
        this.$refs.mapDiv.onload = () => {
          window.frames[0].init("ClientManagement", { x: row.jd, y: row.wd });
          window.frames[1].init("ClientManagement", { x: row.jd, y: row.wd });
        };
      });
    },
@@ -929,7 +929,7 @@
  },
};
</script>
<style>
.el-card__body .waringTypeClass {
  width: 12%;
@@ -1045,4 +1045,4 @@
.tabFontSize {
  font-size: 15px;
}
</style>
</style>
src/views/security/security.vue
@@ -260,24 +260,24 @@
        }
        this.showMap=true;
        this.$refs.securityMap.onload = () => {
          if (window.frames[0].init) {
          if (window.frames[1].init) {
            if(row.jd=="" || row.jd=="0.0"){
              //如果处警员无位置信息,则赋值一个默认数据,否则地图无法加载
              window.frames[0].init("SecurityMap", {
              window.frames[1].init("SecurityMap", {
                              x: rwjd,
                              y: rwwd,
                              code:row.code
                          });
            }else{
              window.frames[0].init("SecurityMap", {
              window.frames[1].init("SecurityMap", {
                              x: row.jd,
                              y: row.wd,
                              code:row.code
                          });
            }
          } else {
            console.log(`没有找到到window.frames[0].init`)
            console.log(`没有找到到window.frames[1].init`)
          }
        }
      },
src/views/supervisoryConsole/map.vue
@@ -23,7 +23,7 @@
  },
  mounted() {
    // this.$refs.supervisoryMap.onload = () => {
    //   window.frames[0].init("AlertSecurity", {
    //   window.frames[1].init("AlertSecurity", {
    //     x: this.form.jd,
    //     y: this.form.wd,
    //   });
@@ -33,4 +33,4 @@
</script>
<style>
</style>
</style>