Browse Source

数据中心

wangzhe 2 years ago
parent
commit
c21a1bf9c3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/components/eventLocation.vue

+ 3 - 0
src/components/eventLocation.vue

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