From 72aaffefaf6049db0d8ed611bd4b289e32e659b9 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 27 Apr 2021 10:19:23 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jfpt-Vue
---
src/views/security/security.vue | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/views/security/security.vue b/src/views/security/security.vue
index 86c5c0b..f5e744e 100644
--- a/src/views/security/security.vue
+++ b/src/views/security/security.vue
@@ -251,15 +251,21 @@
//打开地图
handleMap(row) {
var that =this;
- that.baseUrl = `/map/index.html?ISinit=1&openid=SecurityMap&jd=${row.jd}&wd=${row.wd}&code=${row.code}&name=${row.realName}`;
+ if(row.jd=="" || row.jd=="0.0"){
+ var rwjd = "115.862321";
+ var rwwd = "28.591108";
+ that.baseUrl = `/map/index.html?ISinit=1&openid=SecurityMap&jd=${rwjd}&wd=${rwwd}&code=${row.code}&name=${row.realName}`;
+ }else{
+ that.baseUrl = `/map/index.html?ISinit=1&openid=SecurityMap&jd=${row.jd}&wd=${row.wd}&code=${row.code}&name=${row.realName}`;
+ }
this.showMap=true;
this.$refs.securityMap.onload = () => {
if (window.frames[0].init) {
- if(row.jd==""){
+ if(row.jd=="" || row.jd=="0.0"){
//如果处警员无位置信息,则赋值一个默认数据,否则地图无法加载
window.frames[0].init("SecurityMap", {
- x: "115.862321",
- y: "28.591108",
+ x: rwjd,
+ y: rwwd,
code:row.code
});
}else{
--
Gitblit v1.9.3