{"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\\EcologicalFlow.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\EcologicalFlow.vue","mtime":1684458238559},{"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/es6.regexp.split\";\nimport \"core-js/modules/es6.regexp.replace\";\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//\n//\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 EcologicalFlowModel from \"./module/EcologicalFlowModel.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: 'Hydropower',\n components: {\n EcologicalFlowModel: EcologicalFlowModel\n },\n mixins: [gisCompMixin],\n data: function data() {\n return {\n // 指定坐标字段\n lg: 'siteLong',\n lt: 'siteLat',\n // 是否需要区别icon\n typeIcon: true,\n // 不同类型icon的key\n iconTypeKey: 'warnGrade',\n modelName: 'EcologicalFlowModel',\n form: {\n hystName: '',\n appType1: [],\n sstp: []\n },\n iconUrl0: require(\"./../../../../assets/img/gis_waterlevel.png\"),\n iconUrl1: require(\"./../../../../assets/img/gis_waterlevel1.png\"),\n iconUrl2: require(\"./../../../../assets/img/gis_waterlevel2.png\"),\n iconUrl3: require(\"./../../../../assets/img/gis_waterlevel3.png\"),\n filterData: [],\n sstpList: [],\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: ['SS'],\n usfl: \"\"\n },\n originData: [],\n sdzlx: [],\n gcgm: [],\n gcjsqk: [],\n currentPoint: {\n hystName: ''\n },\n czyyfl: []\n };\n },\n created: function created() {\n // this.getFindResList()\n // this.filterData = this.originData\n this.sdzlx = dictUtils.getDictItemsFromCache('sdzlx');\n this.gcgm = dictUtils.getDictItemsFromCache('gcgm');\n this.czyyfl = dictUtils.getDictItemsFromCache('czyyfl');\n this.sstpList = dictUtils.getDictItemsFromCache('czlb-stzlx');\n this.yjdj = dictUtils.getDictItemsFromCache('yjdj');\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(); // this.initReservoir()\n\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 //选中的工程规模\n gsgmChange: function () {\n var _gsgmChange = _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.hystTypeList = 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 gsgmChange(_x) {\n return _gsgmChange.apply(this, arguments);\n }\n\n return gsgmChange;\n }(),\n changeY: function () {\n var _changeY = _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.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 changeY(_x2) {\n return _changeY.apply(this, arguments);\n }\n\n return changeY;\n }(),\n tableRowClassName: function tableRowClassName(row) {\n if (row.row.usfl == 0) {\n return 'warning-row';\n }\n },\n //获取水电站列表\n getFindResList: function getFindResList() {\n var _this2 = this;\n\n return new Promise(function (resolve, reject) {\n gisMap.waterRegime(_this2.params, function (res) {\n if (res.state) {\n _this2.filterData = res.value;\n\n _this2.filterData.forEach(function (e) {\n e.siteLong = e.lgtd;\n e.siteLat = e.lttd;\n\n if (e.tm) {\n e.tm = e.tm.replace('-', '/').split('/')[1].slice(0, 11).replace('-', '/');\n }\n\n if (e.warnGrade) {\n _this2.yjdj.forEach(function (c) {\n if (e.warnGrade == c.value) {\n e.level = c.name;\n }\n });\n } else {\n e.warnGrade = 0;\n }\n });\n\n resolve();\n }\n\n reject();\n });\n });\n },\n changeSearch: function () {\n var _changeSearch = _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.stnm = val;\n _context4.next = 3;\n return this.getFindResList();\n\n case 3:\n this.updateMarkers(); // if (!val) {\n // this.districtData = this.originData\n // return\n // }\n // this.districtData = this.originData.filter(\n // (item) => item.name == val\n // )\n\n case 4:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this);\n }));\n\n function changeSearch(_x3) {\n return _changeSearch.apply(this, arguments);\n }\n\n return changeSearch;\n }(),\n hljbChange: function () {\n var _hljbChange = _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 console.log(val);\n this.params.sstp = val;\n _context5.next = 4;\n return this.getFindResList();\n\n case 4:\n this.updateMarkers();\n\n case 5:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, this);\n }));\n\n function hljbChange(_x4) {\n return _hljbChange.apply(this, arguments);\n }\n\n return hljbChange;\n }(),\n updateMarkers: function updateMarkers() {\n // 获得新的列表数据后清除旧的标点、重新创建地图标点\n this.searchClear = true;\n this.clearMarkers();\n this.searchClear = false;\n this.initMarkers();\n },\n infoWindow: function infoWindow() {\n var sContent = this.$refs.EcologicalFlowModel.$el;\n var infoWin = new L.popup({\n autoPan: true,\n maxHeight: 300,\n minWidth: 420,\n maxWidth: 600\n }).setContent(sContent);\n return infoWin;\n }\n }\n};",null]}