{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\IntelligentDeviceManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\IntelligentDeviceManage.vue","mtime":1703831130600},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.number.constructor\";\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//\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//\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 pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport IntelligentDevice from '@/api/basicConfiguration/IntelligentDevice';\nimport IntelligentDeviceDialog from \"./components/IntelligentDeviceDialog\";\nimport utils from '@/utils.js';\nimport MapInit from '@/components/MapInit.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport 'leaflet/dist/leaflet.css';\nimport 'leaflet.markercluster/dist/MarkerCluster.css';\nimport 'leaflet.markercluster/dist/MarkerCluster.Default.css';\nimport L from 'leaflet';\nimport 'leaflet.markercluster';\nimport wanzhou from '@/assets/js/wanzhougeojson.js';\nexport default {\n name: 'NoiseLevelManage',\n components: {\n pagination: pagination,\n IntelligentDeviceDialog: IntelligentDeviceDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n markLoading: false,\n tableMaxHeight: 400,\n tableData: [],\n sblxList: [],\n //设备类型\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'type',\n relation: 'AND',\n value: ''\n }],\n reqData: {\n querys: [],\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n }\n },\n tableLoading: false,\n deleteIds: '',\n parameter: {\n size: 20,\n page: 1\n },\n map: null,\n baseMapOverlay: null,\n zoom: 9,\n Clusterer: null,\n currentRow: null\n };\n },\n created: function created() {\n this.sblxList = dictUtils.getDictItemsFromCache('sblx');\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$nextTick(function () {\n _this.roadMap();\n\n _this.getData();\n });\n },\n methods: {\n roadMap: function roadMap() {\n this.map = new L.Map('map', {\n crs: L.CRS.EPSG4326,\n scrollWheelZoom: true,\n attributionControl: false,\n zoomControl: false,\n center: [30.707807, 108.390246],\n zoom: this.zoom // layers: [lay, lay2],\n\n });\n var imageURL = window.context.frontMap + '/vec_c/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles' + '&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}' + '&tk=bff554ec2d59ec30f9f7debffd440624'; // 卫星底图\n\n var imageURL2 = window.context.frontMap + '/cva_c/wmts?layer=cva&style=default&tilematrixset=c&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles' + '&TileMatrix={z}&TileCol={x}&TileRow={y}' + '&tk=f6df78cf1738e5623e2291f608e7040e'; //\t正常线路地图\n // const imageURLT = \"http://t0.tianditu.gov.cn/cia_w/wmts?\" +\n // \t\"SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles\" +\n // \t\"&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}\" +\n // \t\"&tk=f6df78cf1738e5623e2291f608e7040e\";\n\n var lay = new L.TileLayer(imageURL, {\n zoomOffset: 1,\n zIndex: 1\n });\n var lay2 = new L.TileLayer(imageURL2, {\n zoomOffset: 1,\n zIndex: 2\n });\n var config = {\n layers: [lay, lay2]\n };\n lay2.addTo(this.map);\n lay.addTo(this.map);\n this.initWZ();\n },\n initWZ: function initWZ() {\n var countries = [];\n countries = wanzhou.features;\n var myStyle = {\n color: '#1a8cff',\n //'#d2e0e1',\n weight: 3,\n opacity: 1,\n fillColor: 'transparent',\n //'transparent',\n fillOpacity: 0\n };\n this.baseMapOverlay = new L.geoJSON(countries, {\n style: myStyle\n });\n this.map.addLayer(this.baseMapOverlay);\n this.baseMapOverlay.bringToBack();\n },\n //获取数据\n getData: function getData(page) {\n var _this2 = this;\n\n // this.map.clearOverLays()\n if (page) {\n this.reqData.pageBean.page = page;\n }\n\n this.tableLoading = true;\n this.reqData.querys = [];\n\n if (this.querys[0].value) {\n this.reqData.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.reqData.querys.push(this.querys[1]);\n }\n\n IntelligentDevice.dataQuery(this.reqData, function (res) {\n _this2.pageResult.total = res.total;\n _this2.tableLoading = false;\n _this2.tableData = res.rows;\n _this2.tableData.length ? _this2.handlePoint(_this2.tableData) : _this2.clearPoints();\n });\n },\n handleCurrentRow: function handleCurrentRow(val) {\n this.currentRow = val;\n this.currentRow && this.handlePoint([this.currentRow]);\n },\n drawPoints: function drawPoints(data) {\n var _this3 = this;\n\n //图标\n var icon = new L.icon({\n iconUrl: require('@/assets/img/icon-2.png'),\n //请求图标图片的URL\n iconSize: new L.point(30, 30),\n //图标可视区域的大小。\n iconAnchor: new L.point(15, 15)\n });\n this.MarkerGroup = []; //存放节点\n\n data.forEach(function (item) {\n // let latlng = new L.LatLng(item.lttd, item.lgtd)\n var position = new L.LatLng(Number(item.lttd), Number(item.lgtd));\n var marker = new L.Marker(position, {\n icon: icon,\n autoPan: true\n });\n marker.bindPopup(\"\".concat(item.name)).openPopup();\n\n _this3.Clusterer.addLayer(marker);\n });\n this.map.addLayer(this.Clusterer);\n },\n handlePoint: function handlePoint(data) {\n this.clearPoints();\n this.markerClusterer();\n this.drawPoints(data);\n },\n markerClusterer: function markerClusterer(type) {\n // 初始化点聚合\n this.Clusterer = new L.markerClusterGroup({\n spiderfyOnMaxZoom: false,\n showCoverageOnHover: false,\n zoomToBoundsOnClick: true\n }); // 聚合点点击事件,点击展开点\n\n this.Clusterer.on('clusterclick', function (e) {\n e.layer.zoomToBounds();\n });\n },\n clearPoints: function clearPoints(type) {\n this.Clusterer && this.Clusterer.clearLayers && this.Clusterer.clearLayers();\n },\n handleCommand: function handleCommand(command, row) {\n var _this4 = this;\n\n console.log(row, command);\n\n switch (command) {\n case 'edit':\n this.$refs.formDialog.edit(row.id);\n break;\n\n case 'delete':\n this.$confirm('确认删除吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this4.markLoading = true;\n IntelligentDevice.remove(row.id, function (res) {\n if (res.state) {\n _this4.$message.success('删除成功');\n }\n\n _this4.getData(1);\n\n _this4.markLoading = false;\n });\n });\n break;\n\n default:\n break;\n }\n },\n // 编辑\n handleEdit: function handleEdit(item) {\n this.$refs.formDialog.edit(item.id);\n },\n // 过滤\n filterHandler: function filterHandler(value, row, column) {\n return row.pilotLevel == value;\n },\n // 删除\n handleDelete: function handleDelete(item) {\n var _this5 = this;\n\n this.$confirm('确认删除吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this5.markLoading = true;\n IntelligentDevice.remove(item.id, function (res) {\n if (res.state) {\n _this5.$message.success('删除成功');\n }\n\n _this5.markLoading = false;\n });\n });\n },\n //获取删除数据id集合\n handleSelectionChange: function handleSelectionChange(val) {\n var arr = val.map(function (item) {\n return item.id;\n });\n this.deleteIds = arr.join(',');\n console.log(this.deleteIds);\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n handleSizeChange: function handleSizeChange(val) {\n this.reqData.pageBean.pageSize = val;\n this.getData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.reqData.pageBean.page = val;\n this.getData();\n }\n }\n};",null]}