소스 검색

数据中心

wangzhe 2 년 전
부모
커밋
52110fc029
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/components/eventLocation.vue

+ 3 - 0
src/components/eventLocation.vue

@@ -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 = [{