{"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\\RealTimeWater.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\RealTimeWater.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/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//\nimport RealTimeWaterModel from \"./module/RealTimeWaterModel.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport gisMap from '@/api/frontScreen/gisMap.js';\nimport { gisCompMixin } from '@/mixins/gisCompMixin.js';\nimport req from '@/request.js';\nexport default {\n stnm: 'RealTimeWater',\n components: {\n RealTimeWaterModel: RealTimeWaterModel\n },\n mixins: [gisCompMixin],\n data: function data() {\n return {\n // 指定坐标字段\n lg: 'siteLong',\n lt: 'siteLat',\n // 信息窗model的ref\n modelName: 'RealTimeWaterModel',\n form: {\n appType1: [],\n appType2: []\n },\n typeIcon: true,\n iconTypeKey: 'warnGrade',\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 originData: [{\n stnm: '测站1',\n appType: '2',\n level: 1,\n num1: '120',\n num2: '100',\n siteLong: '106.484406',\n siteLat: '29.831273'\n }, {\n stnm: '测站2',\n appType: '2',\n level: 1,\n num1: '120',\n num2: '100',\n siteLong: '106.367665',\n siteLat: '29.762964'\n }, {\n stnm: '测站3',\n appType: '2',\n level: 1,\n num1: '120',\n num2: '100',\n siteLong: '106.448409',\n siteLat: '29.78299'\n }, {\n stnm: '测站4',\n appType: '3',\n level: 1,\n num1: '120',\n num2: '100',\n siteLong: '106.598509',\n siteLat: '29.908239'\n }, {\n stnm: '测站5',\n appType: '3',\n level: 1,\n num1: '120',\n num2: '100',\n siteLong: '106.434606',\n siteLat: '29.837273'\n }, {\n stnm: '测站6',\n appType: '3',\n level: 1,\n num1: '120',\n num2: '100',\n siteLong: '106.388665',\n siteLat: '29.767964'\n }, {\n stnm: '测站7',\n appType: '2',\n level: 1,\n num1: '120',\n num2: '100',\n siteLong: '106.498409',\n siteLat: '29.78399'\n }, {\n stnm: '测站8',\n appType: '2',\n num1: '120',\n warnGrade: 1,\n num2: '100',\n siteLong: '106.498709',\n siteLat: '29.69799'\n }],\n czyyfl: [],\n czzl: [],\n currentPoint: {\n stnm: ''\n },\n params: {\n appTypeList: [],\n endTime: null,\n id: null,\n mpcd: null,\n periodTime: null,\n rscd: null,\n startTime: null,\n stcd: null,\n stlc: null,\n stnm: null,\n sttp: null,\n sttpList: [],\n usfl: null\n },\n yjdj: []\n };\n },\n created: function created() {\n this.czyyfl = dictUtils.getDictItemsFromCache('czyyfl');\n this.czzl = dictUtils.getDictItemsFromCache('czzl');\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();\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 'orange-row';\n } else if (row.row.warnGrade == 1) {\n return 'alert-row';\n } else if (row.row.warnGrade == 3) {\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 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 changeStation: function () {\n var _changeStation = _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.sttpList = 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 changeStation(_x2) {\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 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 infoWindow: function infoWindow() {\n var sContent = this.$refs.RealTimeWaterModel.$el;\n var infoWin = new L.popup({\n autoPan: true,\n maxHeight: 350,\n minWidth: 400,\n maxWidth: 500\n }).setContent(sContent);\n return infoWin;\n }\n }\n};",null]}