{"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\\WaterRainStation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\WaterRainStation.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/es6.function.name\";\nimport \"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//\nimport WRStationModel from \"./module/WRStationModel.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: 'WaterRainStation',\n components: {\n WRStationModel: WRStationModel\n },\n mixins: [gisCompMixin],\n data: function data() {\n return {\n tabComp: true,\n // 指定坐标字段\n lg: 'lgtd',\n lt: 'lttd',\n modelName: 'WRStationModel',\n // 是否需要区别icon\n typeIcon: true,\n // 不同类型icon的key\n iconTypeKey: 'usfl',\n activeName: '',\n form: {\n appType: [],\n stnm: ''\n },\n iconUrl0: require(\"./../../../../assets/img/gis_station_1.png\"),\n iconUrl1: require(\"./../../../../assets/img/gis_station_2.png\"),\n filterData: [],\n params: {\n appTypeList: [],\n endTime: \"\",\n id: \"\",\n mpcd: \"\",\n periodTime: \"\",\n rscd: \"\",\n startTime: \"\",\n stcd: \"\",\n stlc: \"\",\n stnm: \"\",\n sttp: \"\",\n sttpList: [],\n usfl: \"\"\n },\n originData: [{\n stnm: '测站1',\n appType: '山洪',\n lgtd: '106.484406',\n lttd: '29.831273',\n usfl: 'g'\n }, {\n stnm: '测站2',\n appType: '山洪',\n lgtd: '106.367665',\n lttd: '29.762964',\n usfl: 'g'\n }, {\n stnm: '测站3',\n appType: '山洪',\n lgtd: '106.448409',\n lttd: '29.68299',\n usfl: 'g'\n }, {\n stnm: '测站4',\n appType: '水文',\n lgtd: '106.448509',\n lttd: '29.68239',\n usfl: 'g'\n }, {\n stnm: '测站5',\n appType: '水文',\n lgtd: '106.434606',\n lttd: '29.837273',\n usfl: 'g'\n }, {\n stnm: '测站6',\n appType: '水文',\n lgtd: '106.388665',\n lttd: '29.767964',\n usfl: 'b'\n }, {\n stnm: '测站7',\n appType: '水文',\n lgtd: '106.398409',\n lttd: '29.78399',\n usfl: 'b'\n }, {\n stnm: '测站8',\n appType: '水库',\n lgtd: '106.598709',\n lttd: '29.89799',\n usfl: 'g'\n }, {\n stnm: '测站9',\n appType: '水库',\n lgtd: '106.498709',\n lttd: '29.69799',\n usfl: 'b'\n }],\n czzl: [],\n //测站站类\n czyyfl: [],\n //测站应用分类\n currentPoint: {\n stnm: ''\n }\n };\n },\n created: function created() {\n // this.filterData = this.originData\n this.czyyfl = dictUtils.getDictItemsFromCache('czyyfl'); // this.czzl = dictUtils.getDictItemsFromCache('czzl')\n // this.activeName = this.czzl[0].value\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.czzl = dictUtils.getDictItemsFromCache('czzl');\n _this.params.sttp = _this.czzl[0].value;\n _this.activeName = _this.czzl[0].value;\n _context.next = 5;\n return _this.getFindStList();\n\n case 5:\n _this.initMarkers();\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))); //自动刷新获取数据(1000*60*10=>毫秒*秒*分钟,此时表示为10分钟)\n\n this.refreshData = setInterval(function () {\n _this.getFindStList();\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 // beforeDestroy() {\n // this.clearMarkers()\n // },\n methods: {\n getFindStList: function getFindStList() {\n var _this2 = this;\n\n return new Promise(function (resolve, reject) {\n gisMap.findStList(_this2.params, function (res) {\n if (res.state) {\n _this2.filterData = res.value;\n\n _this2.filterData.forEach(function (e) {\n _this2.czyyfl.forEach(function (g) {\n if (e.appType == g.value) {\n e.appType = g.name;\n }\n });\n });\n\n resolve();\n }\n\n reject();\n });\n });\n },\n tableRowClassName: function tableRowClassName(row) {\n if (row.row.usfl == 0) {\n return 'warning-row';\n }\n },\n updateMarkers: function updateMarkers() {\n // 获得新的列表数据后清除旧的标点、重新创建地图标点\n this.searchClear = true;\n this.clearMarkers();\n this.searchClear = false;\n this.initMarkers();\n },\n changeSearch: function () {\n var _changeSearch = _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.stnm = val;\n _context2.next = 3;\n return this.getFindStList();\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 changeSearch(_x) {\n return _changeSearch.apply(this, arguments);\n }\n\n return changeSearch;\n }(),\n czyyflChange: function () {\n var _czyyflChange = _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.appTypeList = val;\n _context3.next = 3;\n return this.getFindStList();\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 czyyflChange(_x2) {\n return _czyyflChange.apply(this, arguments);\n }\n\n return czyyflChange;\n }(),\n handleTabClick: function () {\n var _handleTabClick = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(key) {\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n console.log(key.name);\n\n if (key.name == 'PP') {\n this.iconUrl0 = require(\"./../../../../assets/img/gis_station_1.png\");\n this.iconUrl1 = require(\"./../../../../assets/img/gis_station_2.png\");\n } else if (key.name == 'ZZ') {\n this.iconUrl0 = require(\"./../../../../assets/img/gis_station_3.png\");\n this.iconUrl1 = require(\"./../../../../assets/img/gis_station_4.png\");\n } else if (key.name == 'RR') {\n this.iconUrl0 = require(\"./../../../../assets/img/gis_station_5.png\");\n this.iconUrl1 = require(\"./../../../../assets/img/gis_station_6.png\");\n } // else{\n // \tthis.iconUrl0=require('./../../../../assets/img/gis_station_g.png')\n // \tthis.iconUrl1=require('./../../../../assets/img/gis_station_b.png')\n // }\n\n\n this.calcTableHeight();\n this.map.closePopup();\n this.params.sttp = key.name;\n _context4.next = 7;\n return this.getFindStList();\n\n case 7:\n this.updateMarkers();\n\n case 8:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this);\n }));\n\n function handleTabClick(_x3) {\n return _handleTabClick.apply(this, arguments);\n }\n\n return handleTabClick;\n }(),\n infoWindow: function infoWindow() {\n var sContent = this.$refs.WRStationModel.$el;\n var infoWin = new L.popup({\n autoPan: true,\n maxHeight: 300,\n minWidth: 480,\n maxWidth: 600\n }).setContent(sContent);\n return infoWin;\n }\n }\n};",null]}