weiximei 5 년 전
부모
커밋
d939ec6a64
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5
    0
      src/pages/building/list/add/components/base.jsx

+ 5
- 0
src/pages/building/list/add/components/base.jsx 파일 보기

@@ -144,6 +144,11 @@ function AddBuilding(props) {
144 144
 
145 145
   // 周边设施 回调
146 146
   function getMapScope(e) {
147
+    const coordinateValue = props.form.getFieldValue('coordinate')
148
+    if (!coordinateValue) {
149
+      openNotificationWithIcon('error', '请先选择项目坐标位置')
150
+      return
151
+    }
147 152
     const coordinate = props.form.getFieldValue('coordinate').split(',')
148 153
     const poiData = [].concat(POI_TYPES)
149 154
     poiData.map(item => {