| | |
| | | </el-button> |
| | | </template> |
| | | <template slot="activityAreaForm"> |
| | | <map-box ref="OpenLayersMap" @toData="toData" :routeRange="form.activityArea"></map-box> |
| | | <!-- <map-box ref="OpenLayersMap" @toData="toData" :routeRange="form.activityArea"></map-box>--> |
| | | <dc-map ref="dcMap" @toData="toData" :range="form.activityArea"></dc-map> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | |
| | | import securityManageCar from "@/views/securityManageCar/securityManageCar" |
| | | import MapBox from "@/components/map/mapBox"; |
| | | import SearchMap from "@/components/map/searchMap"; |
| | | import DcMap from "@/components/map/dcMap"; |
| | | |
| | | export default { |
| | | components: { |
| | | DcMap, |
| | | SearchMap, |
| | | MapBox, |
| | | securityManage, |
| | |
| | | loading() |
| | | return |
| | | } |
| | | |
| | | if (row.activityArea.startsWith("LINESTRING")){ |
| | | |
| | | }else { |
| | | if (!row.activityArea.startsWith("'LINESTRING")){ |
| | | row.activityArea = "'LINESTRING("+row.activityArea+")'" |
| | | } |
| | | row.position = row.longitude + " " + row.latitude |
| | |
| | | this.form['longitude'] = data.position.split(" ")[0] |
| | | this.form['latitude'] = data.position.split(" ")[1] |
| | | this.point = "POINT("+this.form.longitude +" "+this.form.latitude+")" |
| | | this.$refs.dcMap.showPolygon(this.form.activityArea) |
| | | }) |
| | | } |
| | | done() |