weiximei 5 anni fa
parent
commit
d939ec6a64
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5
    0
      src/pages/building/list/add/components/base.jsx

+ 5
- 0
src/pages/building/list/add/components/base.jsx Vedi File

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