{"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\\WarnInstallations.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\WarnInstallations.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//\nimport WarnModel from \"./module/WarnModel.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: 'WarnInstallations',\n components: {\n WarnModel: WarnModel\n },\n mixins: [gisCompMixin],\n data: function data() {\n return {\n // 指定坐标字段\n lg: 'siteLong',\n lt: 'siteLat',\n // 信息窗model的ref\n modelName: 'WarnModel',\n // 是否需要区别icon \n typeIcon: true,\n // 不同类型icon的key\n iconTypeKey: 'runStatus',\n form: {\n runStatusList: [],\n name: ''\n },\n iconUrl1: require(\"./../../../../assets/img/gis_warn_1.png\"),\n iconUrl2: require(\"./../../../../assets/img/gis_warn_2.png\"),\n iconUrl3: require(\"./../../../../assets/img/gis_warn_3.png\"),\n filterData: [],\n czyxzt: [],\n currentPoint: {\n name: ''\n }\n };\n },\n created: function created() {\n // this.filterData = this.originData\n this.czyxzt = dictUtils.getDictItemsFromCache('czyxzt');\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.getAlarmList();\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.getAlarmList();\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 getAlarmList: function getAlarmList() {\n var _this2 = this;\n\n return new Promise(function (resolve, reject) {\n gisMap.alarmList(_this2.form, function (res) {\n if (res.state) {\n _this2.filterData = res.value;\n resolve();\n }\n\n reject();\n });\n });\n },\n czyxztChange: function () {\n var _czyxztChange = _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 _context2.next = 2;\n return this.getAlarmList();\n\n case 2:\n this.updateMarkers();\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function czyxztChange(_x) {\n return _czyxztChange.apply(this, arguments);\n }\n\n return czyxztChange;\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 _context3.next = 2;\n return this.getAlarmList();\n\n case 2:\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 3:\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 updateMarkers: function updateMarkers() {\n // 获得新的列表数据后清除旧的标点、重新创建地图标点\n this.searchClear = true;\n this.clearMarkers();\n this.searchClear = false;\n this.initMarkers();\n }\n }\n};",null]}