koul 10 місяців тому
батько
коміт
74d86031bf

+ 5 - 5
uas-office-web/uas-mobile/src/components/common/formNew/FormInput.jsx

@@ -31,7 +31,7 @@ import BillModel, {
   billReadOnly,
 } from '../../../model/common/BillModel'
 
-import MapSearch from '../map/MapSearch'
+//import MapSearch from '../map/MapSearch'
 
 /**
  * Created by RaoMeng on 2020/2/19
@@ -456,10 +456,10 @@ export default class FormInput extends Component {
              title={billModel.caption}
              popup
       >
-        <div className='map-modal-root'>
+        {/*<div className='map-modal-root'>
           <MapSearch
               onLocationSelect={this.onMapSelect}/>
-        </div>
+        </div>*/}
       </Modal>
     </div>
 
@@ -524,7 +524,7 @@ export default class FormInput extends Component {
   /**
    * 地图选择
    * */
-  onMapSelect = (location) => {
+  /*onMapSelect = (location) => {
     const { billModel } = this.state
     this.setState({
       modalOpen: false,
@@ -558,7 +558,7 @@ export default class FormInput extends Component {
         },
       },
     ], 'default', location.title)
-  }
+  }*/
   /**
    * 多选本地数据确认
    */

+ 3 - 7
uas-office-web/wxuasapproval/src/components/approvalAdd/FormInput.jsx

@@ -16,7 +16,7 @@ import {
   Toast,
 } from 'antd-mobile'
 import { isObjEmpty, isObjNull } from '../../utils/common'
-import MapSearch from '../map/MapSearch'
+//import MapSearch from '../map/MapSearch'
 import moment from 'moment'
 import 'moment/locale/zh-cn'
 moment.locale('zh-cn')
@@ -71,10 +71,10 @@ export default class FormInput extends Component {
         valueItem =
           this.getHtmlcom(billModel)
         break
-      case 'SM':
+      /*case 'SM':
         valueItem =
           this.getSearchMap(billModel, modalOpen)
-        break
+        break*/
       default:
         valueItem =
           this.getTextCom(billModel)
@@ -193,10 +193,6 @@ export default class FormInput extends Component {
              title={billModel.caption}
              popup
       >
-        <div className='map-modal-root'>
-            <MapSearch
-              onLocationSelect={this.onMapSelect}/>
-        </div>
       </Modal>
     </div>