{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/o_map.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/o_map.vue","mtime":1739760944321},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/babel.config.js","mtime":1739760943855},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import Constant from \"@/Constant.js\";\nimport map_arcgis from \"@/components/map_arcGIS.vue\";\nimport controlHidden from \"@/assets/js/controlHidden.js\";\nexport default {\n name: \"o-map\",\n props: [\"id\"],\n components: {\n map_arcgis: map_arcgis\n },\n computed: {\n field: function field() {\n var formData = this.$parent.findField(this.id);\n this.setValue(formData.value);\n return formData;\n }\n },\n mounted: function mounted() {\n var _this = this;\n this.$nextTick(function () {\n var field = _this.field;\n if (field.isHideType) {\n var id = _this.id,\n formShowType = field.formShowType;\n controlHidden({\n id: id,\n field: field,\n formShowType: formShowType\n });\n }\n });\n },\n data: function data() {\n return {\n Constant: Constant,\n dialogVisible: false,\n center: {\n lng: 116.404,\n lat: 39.915\n },\n zoom: 3,\n currentStyle: \"search-frame\",\n isActive: false,\n currentMapType: \"BMAP_NORMAL_MAP\",\n mapNum: 1,\n currentLongitude: \"\",\n currentLatitude: \"\",\n keyword: \"\",\n location: \"\",\n show: false,\n markerList: [],\n markerPoint: {\n lng: \"\",\n lat: \"\"\n },\n markerAdress: \"\",\n adressTitle: \"\",\n adressContent: \"\",\n markerHidden: true,\n isWarring: false\n };\n },\n methods: {\n setValue: function setValue(value) {\n if (value && JSON.parse(value).length > 0) {\n this.markerList = JSON.parse(value);\n } else {\n this.markerList = [];\n }\n },\n onOk: function onOk(index) {\n this.markerList[index].isShow = false;\n this.field.value = JSON.stringify(this.markerList);\n },\n onReset: function onReset(index) {\n this.markerList[index].title = \"\";\n this.markerList[index].detail = \"\";\n this.$forceUpdate();\n },\n handler: function handler(_ref) {\n var BMap = _ref.BMap,\n map = _ref.map;\n this.center.lng = 116.404;\n this.center.lat = 39.915;\n this.zoom = 3;\n },\n zoomEnd: function zoomEnd(e) {\n this.zoom = e.target.getZoom();\n },\n //右键$t('enlarge')\n enlargeMap: function 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 },\n //右键$t('shrink')\n reduceMap: function 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: function setSign(e) {\n var mLng = e.point.lng,\n mLat = e.point.lat;\n this.setMark(mLng, mLat, close = true);\n },\n cancelSign: function cancelSign(_ref2) {\n var BMap = _ref2.BMap,\n map = _ref2.map;\n //有问题,隐藏\n this.markerHidden = false;\n },\n infoWindowClose: function infoWindowClose(index) {\n this.markerList[index].isShow = false;\n this.$forceUpdate();\n },\n infoWindowOpen: function infoWindowOpen(index) {\n this.markerList[index].isShow = true;\n this.$forceUpdate();\n },\n getDbclickInfo: function getDbclickInfo(e) {\n var mLng = e.point.lng,\n mLat = e.point.lat;\n this.setMark(mLng, mLat);\n },\n setMark: function setMark(mLng, mLat, close) {\n var that = this;\n var myGeo = new BMap.Geocoder();\n var p = new BMap.Point(mLng, mLat);\n myGeo.getLocation(p, function (rs) {\n var addComp = rs.addressComponents;\n var address = addComp.province + addComp.city + addComp.district + addComp.street + addComp.streetNumber;\n if (that.markerAdress && that.markerAdress != address) {\n that.adressTitle = \"\";\n that.adressContent = \"\";\n }\n that.markerAdress = address;\n that.markerPoint.lng = mLng;\n that.markerPoint.lat = mLat;\n that.markerHidden = true;\n\n // markerList\n var obj = {\n lat: mLat,\n lng: mLng,\n address: address,\n title: that.adressTitle,\n detail: that.adressContent,\n isShow: true\n };\n that.markerList.push(obj);\n that.field.value = JSON.stringify(that.markerList);\n if (close == true) {\n that.show = false;\n } else {\n that.show = true;\n }\n });\n },\n normalMap: function normalMap() {\n if (this.mapNum == 2) {\n this.currentMapType = \"BMAP_NORMAL_MAP\";\n this.mapNum = 1;\n }\n },\n mixMap: function mixMap() {\n if (this.mapNum == 1) {\n this.currentMapType = \"BMAP_HYBRID_MAP\";\n this.mapNum = 2;\n }\n },\n searchLocation: function searchLocation() {\n this.location = this.keyword;\n },\n searchBox: function searchBox(e) {\n this.isActive = !this.isActive;\n },\n changeLAL: function changeLAL() {\n var that = this;\n if (this.currentLongitude && this.currentLatitude) {\n this.center = {\n lng: that.currentLongitude,\n lat: that.currentLatitude\n }, this.zoom = 15;\n }\n }\n }\n};",null]}