From ee4e0076832e55cf23b41bdf0426e11e26bb8a5c Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Mon, 09 Aug 2021 09:17:22 +0800
Subject: [PATCH] 问题修复

---
 src/views/policeTracking/policeTracking.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/policeTracking/policeTracking.vue b/src/views/policeTracking/policeTracking.vue
index c162808..8044170 100644
--- a/src/views/policeTracking/policeTracking.vue
+++ b/src/views/policeTracking/policeTracking.vue
@@ -402,6 +402,7 @@
     };
   },
   created() {
+
     this.form = this.$route.query;
     if (
       !(
@@ -415,14 +416,21 @@
     }
     this.updatedPageData();
     this.vaddress = this.form.vaddress;
+
     this.getReceivingAlarm();
-    this.baseUrl = `/map/index.html?ISinit=1&openid=AlertSecurity&id=${this.form.id}&jd=${this.form.jd}&wd=${this.form.wd}&pid=${this.form.deptId}&deptId=${this.form.deptId}&oneId=${this.form.oneId}`;
+    if (this.form.alarmType == "巡逻任务"){
+      this.baseUrl = `/map/index.html?openid=AlertSecurity&id=${this.form.id}&jd=${this.form.jd}&wd=${this.form.wd}&pid=${this.form.deptId}&deptId=${this.form.deptId}&oneId=${this.form.oneId}&baid=${this.form.xllx}`;
+    }else{
+      this.baseUrl = `/map/index.html?ISinit=1&openid=AlertSecurity&id=${this.form.id}&jd=${this.form.jd}&wd=${this.form.wd}&pid=${this.form.deptId}&deptId=${this.form.deptId}&oneId=${this.form.oneId}`;
+    }
+
+
   },
   mounted() {
     this.getAudios();
     this.getImgAndVideo();
     this.$refs.mapDiv.onload = () => {
-      window.frames[1].init("AlertSecurity", {
+      window.frames[0].init("AlertSecurity", {
         x: this.form.jd,
         y: this.form.wd,
       });
@@ -554,7 +562,7 @@
 
       var userId = JSON.parse(
         window.localStorage.getItem("群防群控后台管理系统-userInfo")
-      ).content.real_name;
+      ).content.nick_name;
 
       if (that.form.securityArr != null && that.form.securityArr != "") {
         that.form.jtype = "1";

--
Gitblit v1.9.3