Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/smartBuilding
| | |
| | | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| | | <meta name="theme-color" content="#000000" /> |
| | | <script src="https://cache.amap.com/lbs/static/es5.min.js"></script> |
| | | <script type="text/javascript"> |
| | | window._AMapSecurityConfig = { |
| | | securityJsCode: "c75eccf0742998b2ea43823e08cacccd", |
| | | }; |
| | | </script> |
| | | <script src="https://webapi.amap.com/loader.js"></script> |
| | | <meta name="description" content="岱观智评管理平台" /> |
| | | <title>岱观智评管理平台</title> |
| | |
| | | import { getCityList, getDistrictList } from "../../common/address_func"; |
| | | import { flatPath, formatNodeForCascader, getDepartmentRoot } from "../../../api/hierarchy"; |
| | | |
| | | window._AMapSecurityConfig = { |
| | | securityJsCode: 'ba4138d0c0efb13d1d5fd10df08bb0d1', |
| | | } |
| | | |
| | | const { Option } = Select; |
| | | |
| | | class EditProjectForm extends BaseForm { |
| | |
| | | |
| | | initMap = () => { |
| | | AMapLoader.load({ |
| | | key: "232929db1cb31f26d42b3645a7456154", |
| | | version: "2.0", |
| | | key: "1c53e2a2bb2218895e9a9f672df36840", |
| | | plugins: ['AMap.ToolBar', 'AMap.AutoComplete', 'AMap.PlaceSearch', 'AMap.Geocoder', 'AMap.Marker'], |
| | | }).then((AMap) => { |
| | | this.AMap = AMap; |
| | |
| | | extensions: "all" |
| | | }); |
| | | const { addressInfo } = this.state.editableData; |
| | | let center = [104.04, 30.40]; |
| | | let center = [104.065617, 30.656952]; |
| | | if (addressInfo && addressInfo.longitude && addressInfo.latitude) { |
| | | center = [addressInfo.longitude, addressInfo.latitude]; |
| | | } |
| | | |
| | | if (!this.map) { |
| | | this.map = new AMap.Map("mapContainer", { |
| | | zoom: 15, |
| | | zoom: 14, |
| | | resizeEnable: true, |
| | | center: center |
| | | }); |