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