{"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\\WaterUser.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\WaterUser.vue","mtime":1684458238606},{"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/web.dom.iterable\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/bbsl-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\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 WaterUserModel from \"./module/WaterUserModel.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport gisMap from '@/api/frontScreen/gisMap.js';\nimport { gisCompMixin } from '@/mixins/gisCompMixin.js';\nexport default {\n name: 'WaterUser',\n components: {\n WaterUserModel: WaterUserModel\n },\n mixins: [gisCompMixin],\n data: function data() {\n return {\n // 指定坐标字段\n lg: 'eslg',\n lt: 'nrlt',\n // 信息窗model的ref\n modelName: 'WaterUserModel',\n form: {\n monitorLevel: [],\n waterType: [],\n waterName: ''\n },\n iconUrl: require(\"./../../../../assets/img/gis_waterUser.png\"),\n filterData: [],\n params: {\n id: \"\",\n monitorLevelList: [],\n waterCode: \"\",\n waterName: \"\",\n waterTypeList: [],\n industryType: \"\"\n },\n originData: [{\n waterName: '取水户1',\n waterType: 1,\n monitorLevel: 1,\n eslg: '106.484406',\n nrlt: '29.831273'\n }, {\n waterName: '取水户2',\n waterType: 2,\n monitorLevel: 2,\n eslg: '106.367665',\n nrlt: '29.762964'\n }, {\n waterName: '取水户3',\n waterType: 3,\n monitorLevel: 3,\n eslg: '106.448409',\n nrlt: '29.68299'\n }, {\n waterName: '取水户4',\n waterType: 1,\n monitorLevel: 4,\n eslg: '106.448509',\n nrlt: '29.68239'\n }, {\n waterName: '取水户5',\n waterType: 2,\n monitorLevel: 9,\n eslg: '106.434606',\n nrlt: '29.837273'\n }, {\n waterName: '取水户6',\n waterType: 3,\n monitorLevel: 1,\n eslg: '106.388665',\n nrlt: '29.767964'\n }, {\n waterName: '取水户7',\n waterType: 3,\n monitorLevel: 3,\n eslg: '106.498409',\n nrlt: '29.78399'\n }, {\n waterName: '取水户8',\n waterType: 3,\n monitorLevel: 2,\n eslg: '106.498709',\n nrlt: '29.69799'\n }],\n jkjb: [],\n qslx: [],\n currentPoint: {\n waterName: ''\n }\n };\n },\n created: function created() {\n // this.filterData = this.originData\n this.jkjb = dictUtils.getDictItemsFromCache('jkjb');\n this.qslx = dictUtils.getDictItemsFromCache('qslx');\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$nextTick( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.getWaterCompanyList();\n\n case 2:\n _this.initMarkers();\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))); //自动刷新获取数据(1000*60*10=>毫秒*秒*分钟,此时表示为10分钟)\n\n this.refreshData = setInterval(function () {\n _this.getWaterCompanyList();\n\n _this.updateMarkers();\n }, 1000 * 60 * 10);\n },\n //生命周期若已设置定时器,需清空定时器beforeDestroy()\n beforeDestroy: function beforeDestroy() {\n clearInterval(this.refreshData);\n this.refreshData = null;\n },\n methods: {\n getWaterCompanyList: function getWaterCompanyList() {\n var _this2 = this;\n\n return new Promise(function (resolve, reject) {\n gisMap.stationPage(_this2.params, function (res) {\n if (res.state) {\n _this2.filterData = res.value; // this.filterData[0].eslg= '106.367665'\n // this.filterData[0].nrlt= '29.762964'\n // this.filterData[1].eslg= '106.567665'\n // this.filterData[1].nrlt= '29.762964'\n\n resolve();\n }\n\n reject();\n });\n });\n },\n jkjbCahnge: function () {\n var _jkjbCahnge = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(val) {\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n this.params.monitorLevelList = val;\n _context2.next = 3;\n return this.getWaterCompanyList();\n\n case 3:\n this.updateMarkers();\n\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function jkjbCahnge(_x) {\n return _jkjbCahnge.apply(this, arguments);\n }\n\n return jkjbCahnge;\n }(),\n changeSearch: function () {\n var _changeSearch = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(val) {\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n this.params.waterName = val;\n _context3.next = 3;\n return this.getWaterCompanyList();\n\n case 3:\n this.updateMarkers();\n\n case 4:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function changeSearch(_x2) {\n return _changeSearch.apply(this, arguments);\n }\n\n return changeSearch;\n }(),\n changeSearchTwo: function () {\n var _changeSearchTwo = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(val) {\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n this.params.industryType = val;\n _context4.next = 3;\n return this.getWaterCompanyList();\n\n case 3:\n this.updateMarkers();\n\n case 4:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this);\n }));\n\n function changeSearchTwo(_x3) {\n return _changeSearchTwo.apply(this, arguments);\n }\n\n return changeSearchTwo;\n }(),\n qslxChange: function () {\n var _qslxChange = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(val) {\n return regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n this.params.waterTypeList = val;\n _context5.next = 3;\n return this.getWaterCompanyList();\n\n case 3:\n this.updateMarkers();\n\n case 4:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, this);\n }));\n\n function qslxChange(_x4) {\n return _qslxChange.apply(this, arguments);\n }\n\n return qslxChange;\n }(),\n updateMarkers: function updateMarkers() {\n // 获得新的列表数据后清除旧的标点、重新创建地图标点\n this.searchClear = true;\n this.clearMarkers();\n this.searchClear = false;\n this.initMarkers();\n },\n rowClick: function rowClick(row) {\n this.currentPoint = row;\n console.log(row);\n var latlng = this.createdLngLat(row.lttd, row.lgtd);\n this.drawMarker(latlng, row, false);\n },\n // 初始化多个标点\n initMarkers: function initMarkers() {\n var _this3 = this;\n\n console.log(\"init\");\n this.LayerGroup = null;\n this.markerslayer = [];\n this.filterData.forEach(function (row, index) {\n if (!row.lttd || !row.lgtd) {\n console.log(\"索引\" + index + \"无定位数据\", row);\n return;\n }\n\n var latlng = _this3.createdLngLat(row.lttd, row.lgtd);\n\n var sectionMarker = _this3.drawMarker(latlng, row, true);\n\n _this3.markerslayer.push(sectionMarker);\n });\n this.LayerGroup = new L.layerGroup(this.markerslayer);\n this.map.addLayer(this.LayerGroup);\n },\n // infoWindow() {\n // let sContent = this.$refs.WaterUserModel.$el\n // var infoWin = new L.popup( {\n // autoPan: true,\n // maxHeight: 360,\n // minWidth: 500,\n // maxWidth: 600,\n // }).setContent(sContent)\n // return infoWin\n // },\n infoWindow: function infoWindow() {\n var sContent = this.$refs.WaterUserModel.$el;\n var infoWin = new L.popup({\n autoPan: true,\n maxHeight: 300,\n minWidth: 440,\n maxWidth: 600\n }).setContent(sContent);\n return infoWin;\n }\n }\n};",null]}