{"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\\EngineerStation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\EngineerStation.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 \"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//\nimport EngineerStationModel from \"./module/EngineerStationModel.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: 'EngineerStation',\n components: {\n EngineerStationModel: EngineerStationModel\n },\n mixins: [gisCompMixin],\n data: function data() {\n return {\n tabComp: true,\n // 指定坐标字段\n lg: 'lgtd',\n lt: 'lttd',\n modelName: 'EngineerStationModel',\n // 是否需要区别icon\n typeIcon: true,\n // 不同类型icon的key\n iconTypeKey: 'wkcn',\n activeName: '',\n form: {\n mpnm: ''\n },\n iconUrl0: require(\"./../../../../assets/img/gis_enginStation_b.png\"),\n iconUrl1: require(\"./../../../../assets/img/gis_enginStation_gary.png\"),\n filterData: [],\n params: {\n id: '',\n mpcd: '',\n mpnm: '',\n rscd: '',\n stlc: '',\n sttp: '',\n wkcn: ''\n },\n originData: [{\n mpnm: '测站1',\n cdlx: '山洪',\n lgtd: '106.484406',\n lttd: '29.831273',\n wkcn: '0',\n mptp: 4\n }, {\n mpnm: '测站2',\n cdlx: '山洪',\n lgtd: '106.367665',\n lttd: '29.762964',\n wkcn: '1',\n mptp: 3\n }, {\n mpnm: '测站3',\n cdlx: '山洪',\n lgtd: '106.448409',\n lttd: '29.68299',\n wkcn: 'g',\n mptp: 4\n }, {\n mpnm: '测站4',\n cdlx: '水文',\n lgtd: '106.448509',\n lttd: '29.68239',\n wkcn: 'g',\n mptp: 3\n }, {\n mpnm: '测站5',\n cdlx: '水文',\n lgtd: '106.434606',\n lttd: '29.837273',\n wkcn: 'r',\n mptp: 3\n }, {\n mpnm: '测站6',\n cdlx: '水文',\n lgtd: '106.388665',\n lttd: '29.767964',\n wkcn: 'g',\n mptp: 4\n }, {\n mpnm: '测站7',\n cdlx: '水文',\n lgtd: '106.398409',\n lttd: '29.78399',\n wkcn: 'r',\n mptp: 3\n }, {\n mpnm: '测站8',\n cdlx: '水库',\n lgtd: '106.598709',\n lttd: '29.89799',\n wkcn: 'r',\n mptp: 4\n }, {\n mpnm: '测站9',\n cdlx: '水库',\n lgtd: '106.498709',\n lttd: '29.69799',\n wkcn: 'g',\n mptp: 3\n }],\n gqsslx: [{\n name: '位移',\n value: '1'\n }, // todo 20220607 暂时取消\n // {\n // name: '渗流',\n // value: '2',\n // },\n // todo 20220607 暂时取消\n {\n name: '渗压',\n value: '3'\n }],\n //工情设施类型\n rsnms: [],\n currentPoint: {\n mpnm: ''\n }\n };\n },\n created: function created() {\n // this.filterData = this.originData\n this.getFindRiverList();\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 // this.gqsslx = dictUtils.getDictItemsFromCache('gqsslx')\n _this.activeName = _this.gqsslx[0].value;\n _context.next = 3;\n return _this.getFindGqStation();\n\n case 3:\n _this.initMarkers();\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))); //自动刷新获取数据(1000*60*10=>毫秒*秒*分钟,此时表示为10分钟)\n\n this.refreshData = setInterval(function () {\n _this.getFindGqStation();\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 getFindRiverList: function getFindRiverList() {\n var _this2 = this;\n\n gisMap.geFindAll({}, function (res) {\n if (res.value) {\n _this2.rsnms = res.value;\n }\n });\n },\n getFindGqStation: function getFindGqStation() {\n var _this3 = this;\n\n return new Promise(function (resolve, reject) {\n _this3.params.sttp = _this3.activeName;\n gisMap.findGqStation(_this3.params, function (res) {\n if (res.state) {\n _this3.filterData = res.value; // this.filterData.forEach(e=>{\n // \te.lgtd= '106.367665'\n // \te.lttd= '29.762964'\n // })\n\n resolve();\n }\n\n reject();\n });\n });\n },\n handleTabClick: function () {\n var _handleTabClick = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(key) {\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n this.calcTableHeight();\n this.map.closePopup();\n _context2.next = 4;\n return this.getFindGqStation();\n\n case 4:\n this.updateMarkers();\n\n case 5:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function handleTabClick(_x) {\n return _handleTabClick.apply(this, arguments);\n }\n\n return handleTabClick;\n }(),\n drwaMarkers: function drwaMarkers(latlng, name, item) {\n var _this4 = this;\n\n // 图片\n var icon = new L.icon({\n iconUrl: this[\"\".concat(item.wkcn == 0 ? 'g' : 'r', \"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 }); // 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 infoWin = this.infoWindow();\n this.sectionMarker.addEventListener('click', function () {\n _this4.currentPoint = item;\n infoWin.update();\n _this4.showInfo = true;\n\n _this4.sectionMarker.openInfoWindow(infoWin);\n }); // 将标注添加到地图中\n\n this.map.addLayer(sectionMarker); // this.map.addOverLay(label)\n },\n tableRowClassName: function tableRowClassName(row) {\n if (row.row.wkcn == 0) {\n return 'warning-row';\n }\n },\n infoWindow: function infoWindow() {\n var sContent = this.$refs.EngineerStationModel.$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 changeSearch: function () {\n var _changeSearch = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return this.getFindGqStation();\n\n case 2:\n this.updateMarkers();\n\n case 3:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function changeSearch() {\n return _changeSearch.apply(this, arguments);\n }\n\n return changeSearch;\n }(),\n updateMarkers: function updateMarkers() {\n // 获得新的列表数据后清除旧的标点、重新创建地图标点\n this.searchClear = true;\n this.clearMarkers();\n this.searchClear = false;\n this.initMarkers();\n }\n }\n};",null]}