From f3f40bb001079b2668d0e4548b7154671fcd8889 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sat, 18 Feb 2023 09:47:30 +0800
Subject: [PATCH] 安保活动地图选点优化,系统 相关console.log 去除
---
src/views/security/security.vue | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/views/security/security.vue b/src/views/security/security.vue
index 91b49cd..80a4ea3 100644
--- a/src/views/security/security.vue
+++ b/src/views/security/security.vue
@@ -480,11 +480,18 @@
this.chosePoint.address = data
},
confirmLonLat(){
- this.form.longitude = this.chosePoint.longitude
- this.form.latitude = this.chosePoint.latitude
- this.form.place = this.chosePoint.address
- this.point = "POINT("+this.form.longitude +" "+this.form.latitude+")"
- this.placeBox = false
+ if(this.chosePoint.longitude){
+ this.form.longitude = this.chosePoint.longitude
+ this.form.latitude = this.chosePoint.latitude
+ this.form.place = this.chosePoint.address
+ this.point = "POINT("+this.form.longitude +" "+this.form.latitude+")"
+ this.placeBox = false
+ }else {
+ this.$alert('该点没有位置信息,请重新选点!', '提示', {
+ confirmButtonText: '确定',
+ });
+ }
+
}
}
}
--
Gitblit v1.9.3