|
@@ -308,6 +308,9 @@ export default {
|
|
|
if (this.longitude == null || this.longitude == '' || this.latitude == null || this.latitude == '') {
|
|
|
this.$modal.msgError('请输入经纬度!')
|
|
|
return
|
|
|
+ } else if (this.longitude >180 || this.longitude < -180 || this.latitude > 90 || this.latitude < -90) {
|
|
|
+ this.$modal.msgError('请输入正确经纬度!')
|
|
|
+ return
|
|
|
}
|
|
|
this.activeName = 'event'
|
|
|
let marker = [{
|