{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/view_mapview.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/view_mapview.vue","mtime":1740130327259},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport { Toast } from 'mint-ui';\nexport default {\n inject:['reload'],\n name: \"view-mapview\",\n props: [\"view\", \"showtype\"],\n data: function() {\n\t\treturn {\n center: {\n lng: 113.261503, \n lat: 23.131377\n },\n zoom: 9,\n isActive:false,\n currentMapType:\"BMAP_NORMAL_MAP\",\n mapNum:1,\n currentLongitude:\"\",\n currentLatitude:\"\",\n keyword: '',\n location:'',\n show: false,\n markerPoint: {\n \n },\n markerAdress:'',\n adressTitle:'',\n adressContent:'',\n markerHidden:true,\n viewDataList:'',\n markerList:[],\n dialogVisible:false,\n localDetail:'',\n id:'',\n pendingContentH: \"\",\n\t\t}\n },\n mounted() {\n this.getData();\n this.$nextTick(function() {\n if(this.$refs.mapView) {\n this.pendingContentH =\n document.documentElement.clientHeight -\n this.$refs.mapView.getBoundingClientRect().top;\n }\n });\n },\n methods: {\n getData() {\n this.$api.getViewData(\n //普通试图接口\n this.$root.appid,\n this.view.id,\n {},\n\n {},\n {\n onSucess: response => {\n\n let viewData = response.data.data;\n //let map = new BMap.Map();\n let myGeo = new BMap.Geocoder();\n for(let i=0; i {\n obj.lng = point.lng;\n obj.lat = point.lat;\n viewData.data[i].local = obj;\n }) \n }\n }\n }\n this.viewDataList = viewData;\n console.log(\"viewData-->\",this.viewDataList)\n // let arrLocal = [];\n // for(let y=0; y {\n // obj.lng = point.lng;\n // obj.lat = point.lat;\n // arrLocal.push(obj);\n // })\n // }\n // this.markerList = arrLocal;\n // var searchTxt = \"广州市天河区\";\n // myGeo.getPoint(searchTxt,(point) => {\n // console.log(\"point.lat--->\",point.lat) \n // console.log(\"point.lng--->\",point.lng)\n // })\n }\n }\n );\n },\n handler ({BMap, map}) {\n this.center.lng = 113.261503;\n this.center.lat = 23.131377;\n this.zoom = 9\n console.log(BMap);\n console.log(map);\n },\n zoomEnd(e){\n console.log(e)\n this.zoom = e.target.getZoom();\n },\n //右键放大\n enlargeMap(e){\n this.center = {\n lng: e.point.lng,\n lat: e.point.lat\n };\n this.zoom = this.zoom+2;\n if(this.zoom>=19){\n this.zoom = 19;\n }\n console.log(this.zoom);\n },\n //右键缩小\n reduceMap(e){\n this.center = {\n lng: e.point.lng,\n lat: e.point.lat\n };\n this.zoom = this.zoom-2;\n if(this.zoom<=0) {\n this.zoom = 1\n }\n },\n setSign(e){\n let mLng = e.point.lng,\n mLat = e.point.lat;\n this.setMark(mLng, mLat);\n },\n cancelSign({BMap, map}){\n //有问题,隐藏\n this.markerHidden = false;\n console.log(BMap);\n console.log(map);\n },\n infoWindowClose () {\n this.show = false\n },\n infoWindowOpen (id,item) {\n let arr = [];\n for(let j=0; j {\n Toast({\n message: \"删除成功\",\n iconClass: 'fa fa-check fa-2x'\n });\n that.dialogVisible = false;\n setTimeout(()=>{\n that.reload();\n },100)\n }\n });\n }\n }\n}\n",null]}