{"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\\mountainTorrentDisaster.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\mountainTorrentDisaster.vue","mtime":1684458238652},{"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 \"core-js/modules/es6.function.name\";\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//\nimport mountainModel from \"./module/mountainModel.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport flashFloods from '@/api/flashFloods.js';\nimport { gisCompMixin } from '@/mixins/gisCompMixin.js';\nimport req from '@/request.js';\nexport default {\n stnm: 'RealTimeWater',\n components: {\n mountainModel: mountainModel\n },\n mixins: [gisCompMixin],\n data: function data() {\n return {\n // 指定坐标字段\n lg: 'lng',\n lt: 'lat',\n // 信息窗model的ref\n modelName: 'mountainModel',\n iconUrl: require(\"./../../../../assets/img/mountain.png\"),\n filterData: [],\n originData: [],\n currentPoint: {\n stnm: ''\n },\n queryParam: {\n pageBean: {\n pageSize: -1,\n page: 1\n },\n params: {},\n querys: []\n },\n params: {\n name: '',\n householder: ''\n },\n buildTypes: [],\n buildStructures: []\n };\n },\n created: function created() {\n this.buildTypes = dictUtils.getDictItemsFromCache('shzhfz-zfjzlx');\n this.buildStructures = dictUtils.getDictItemsFromCache('shzhfz-zfjgxs');\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.getFindResList();\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.getFindResList();\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 tableRowClassName: function tableRowClassName(row) {\n if (row.row.warnGrade == 2) {\n return 'warning-row';\n } else if (row.row.warnGrade == 1) {\n return 'alert-row';\n }\n },\n updateMarkers: function updateMarkers() {\n // 获得新的列表数据后清除旧的标点、重新创建地图标点\n this.searchClear = true;\n this.clearMarkers();\n this.searchClear = false;\n this.initMarkers();\n },\n changeY: function () {\n var _changeY = _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.appTypeList = val;\n _context2.next = 3;\n return this.getFindResList();\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 changeY(_x) {\n return _changeY.apply(this, arguments);\n }\n\n return changeY;\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.queryParam.querys = [{\n group: \"main\",\n operation: \"LIKE\",\n parentGroup: \"\",\n property: \"p.name_\",\n relation: \"AND\",\n value: this.params.name\n }, {\n group: \"main\",\n operation: \"LIKE\",\n parentGroup: \"\",\n property: \"p.householder_\",\n relation: \"AND\",\n value: this.params.householder\n }];\n _context3.next = 3;\n return this.getFindResList();\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 changeStation: function () {\n var _changeStation = _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.sttpList = val;\n _context4.next = 3;\n return this.getFindResList();\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 changeStation(_x3) {\n return _changeStation.apply(this, arguments);\n }\n\n return changeStation;\n }(),\n getFindResList: function getFindResList() {\n var _this2 = this;\n\n return new Promise(function (resolve, reject) {\n flashFloods.ListGet(_this2.queryParam, function (res) {\n if (res.state) {\n _this2.filterData = res.value.rows;\n\n _this2.filterData.forEach(function (e) {\n _this2.buildTypes.forEach(function (b) {\n if (e.buildType == b.value) {\n e.buildTypeName = b.name;\n }\n });\n\n _this2.buildStructures.forEach(function (s) {\n if (e.buildStructure == s.value) {\n e.buildStructureName = s.name;\n }\n });\n\n console.log(e);\n return;\n });\n\n resolve();\n }\n\n reject();\n });\n });\n },\n infoWindow: function infoWindow() {\n var sContent = this.$refs.mountainModel.$el;\n var infoWin = new L.popup({\n autoPan: true,\n maxHeight: 300,\n minWidth: 400,\n maxWidth: 600\n }).setContent(sContent);\n return infoWin;\n }\n }\n};",null]}