{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\Dam.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\Dam.vue","mtime":1684458238559},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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 DamModel from \"./module/DamModel.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'Dam',\n components: {\n DamModel: DamModel\n },\n data: function data() {\n return {\n form: {\n damGrad: [],\n ifMainDam: []\n },\n iconUrl: require(\"./../../../../assets/img/gis_dam.png\"),\n filterData: [],\n originData: [{\n damName: '大坝1',\n damGrad: '1 级',\n ifMainDam: '是',\n startLong: '106.463601',\n startLat: '29.729001'\n }, {\n damName: '大坝2',\n damGrad: '2 级',\n ifMainDam: '否',\n startLong: '106.450798',\n startLat: '29.83281'\n }, {\n damName: '大坝3',\n damGrad: '3 级',\n ifMainDam: '是',\n startLong: '106.435563',\n startLat: '29.815159'\n }, {\n damName: '大坝4',\n damGrad: '4 级',\n ifMainDam: '是',\n startLong: '106.388247',\n startLat: '29.870726'\n }, {\n damName: '大坝5',\n damGrad: '1 级',\n ifMainDam: '是',\n startLong: '106.656255',\n startLat: '29.999493'\n }],\n showInfo: false,\n sectionMarker: null,\n // 标记点\n label: null,\n // 标记点名称\n dbjb: [],\n gcdb: []\n };\n },\n inject: ['mapData'],\n created: function created() {\n var mapData = this.mapData();\n this.filterData = this.originData;\n this.L = mapData.L;\n this.map = mapData.map;\n this.baseMapOverlay = mapData.baseMapOverlay;\n this.dbjb = dictUtils.getDictItemsFromCache('dbjb');\n this.gcdb = dictUtils.getDictItemsFromCache('gcdb');\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$nextTick(function () {\n _this.initMarkers();\n });\n },\n beforeDestroy: function beforeDestroy() {\n this.clearMarkers();\n },\n methods: {\n clearMarkers: function clearMarkers() {\n this.map.clearLayers();\n this.map.addLayer(this.baseMapOverlay);\n this.baseMapOverlay.bringToBack();\n this.map.closePopup();\n this.showInfo = false;\n },\n initMarkers: function initMarkers() {\n var _this2 = this;\n\n this.filterData.forEach(function (item) {\n var latlng = new L.LatLng(item.startLat, item.startLong);\n\n _this2.drwaMarkers(latlng, item.damName);\n });\n },\n drwaMarkers: function drwaMarkers(latlng, name) {\n // 图片\n var icon = new L.icon({\n iconUrl: this.iconUrl,\n iconSize: new L.point(24, 24),\n iconAnchor: new L.point(12, 20)\n }); // 标点\n\n var sectionMarker = new L.marker(latlng, {\n icon: icon\n });\n this.showInfo = true; // label\n // const label = new T.Label({\n // text: name,\n // position: latlng,\n // offset: new this.T.Point(-9, 18),\n // })\n\n var label = new L.tooltip({\n permanent: true,\n direction: 'auto',\n sticky: false,\n offset: new L.point(-9, 18),\n opacity: 0.6\n });\n label.setLatLng(latlng);\n label.setContent(name);\n var infoWin = this.infoWindow();\n sectionMarker.addEventListener('click', function () {\n sectionMarker.openInfoWindow(infoWin);\n }); // 将标注添加到地图中\n\n this.map.addLayer(sectionMarker);\n this.map.addLayer(label);\n },\n rowClick: function rowClick(row) {\n this.clearMarkers();\n this.createdLngLat(row);\n },\n changeSearch: function changeSearch(val) {\n if (!val) {\n this.districtData = this.originData;\n return;\n }\n\n this.districtData = this.originData.filter(function (item) {\n return item.name == val;\n });\n },\n infoWindow: function infoWindow() {\n var sContent = this.$refs.DamModel.$el;\n var infoWin = new L.popup({\n autoPan: true,\n maxHeight: 300,\n maxWidth: 600\n }).setContent(sContent);\n return infoWin;\n },\n drwaMarker: function drwaMarker(latlng, name) {\n var _this3 = this;\n\n if (this.sectionMarker && this.label) {\n this.map.removeLayer(this.sectionMarker);\n this.map.removeLayer(this.label);\n this.showInfo = false;\n this.sectionMarker.closeInfoWindow();\n } // 图片\n\n\n var icon = new L.icon({\n iconUrl: this.iconUrl,\n iconSize: new L.point(24, 24),\n iconAnchor: new L.point(12, 20)\n }); // 标点\n\n this.sectionMarker = new L.marker(latlng, {\n icon: icon\n });\n this.showInfo = true; // label\n // this.label = new T.Label({\n // text: name,\n // position: latlng,\n // offset: new this.T.Point(-9, 18)\n // })\n\n this.label = new L.tooltip({\n permanent: true,\n direction: 'auto',\n sticky: false,\n offset: new L.point(-9, 18),\n opacity: 0.6\n });\n this.label.setLatLng(latlng);\n this.label.setContent(name);\n var infoWin = this.infoWindow();\n this.sectionMarker.addEventListener('click', function () {\n _this3.sectionMarker.openPopup(infoWin);\n }); // 将标注添加到地图中\n\n this.map.addLayer(this.sectionMarker);\n this.map.addLayer(this.label);\n },\n createdLngLat: function createdLngLat(row) {\n var latlng = new L.LatLng(row.startLat, row.startLong); // 创建\n\n this.drwaMarker(latlng, row.damName);\n }\n }\n};",null]}