{"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\\module\\DistrictModel.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\module\\DistrictModel.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\";\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 dictUtils from '@/components/dict/DictSelectUtils.js';\nimport gisMap from '@/api/frontScreen/gisMap.js';\nexport default {\n props: {\n currentPoint: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n name: 'districtModel',\n data: function data() {\n return {\n activeName: 'first',\n params: {},\n stationData: [{\n name: '雨量站',\n num: 0,\n key: 1,\n icon: 'yuliang'\n }, {\n name: '河道水位站',\n num: 0,\n key: 2,\n icon: 'shuiwei'\n }, {\n name: '水库水位站',\n num: 0,\n key: 3,\n icon: 'shuiwen'\n }, // {\n // name: '位移点',\n // num: 0,\n // key: 4,\n // icon: 'weiyi',\n // },\n // {\n // name: '渗流点',\n // num: 0,\n // key: 5,\n // icon: 'shenliu',\n // },\n {\n name: '渗压点',\n num: 0,\n key: 4,\n icon: 'shenya'\n }, {\n name: '预警设施',\n num: 0,\n key: 5,\n icon: 'weiyi'\n }, {\n name: '生态流量站',\n num: 0,\n key: 6,\n icon: 'shenliu'\n }],\n engineerData: [{\n name: '水库',\n num: 0,\n key: 1,\n icon: 'shuiku'\n }, {\n name: '水电站',\n num: 0,\n key: 3,\n icon: 'shuidianzhan'\n }, {\n name: '堤防',\n num: 0,\n key: 4,\n icon: 'difang'\n }]\n };\n },\n inject: ['mapData'],\n created: function created() {\n var mapData = this.mapData();\n this.districtData = this.originData;\n this.T = mapData.T;\n this.map = mapData.map;\n },\n watch: {\n currentPoint: {\n handler: function handler(newVal) {\n console.log(this.currentPoint);\n this.getCountStation();\n this.activeName = 'first';\n }\n }\n },\n mounted: function mounted() {},\n beforeDestroy: function beforeDestroy() {\n if (this.sectionMarker && this.label) {\n this.map.removeLayer(this.sectionMarker);\n this.map.removeLayer(this.label);\n this.sectionMarker.closeInfoWindow();\n }\n\n if (this.polygon) {\n this.map.removeLayer(this.polygon);\n }\n },\n methods: {\n handleClick: function handleClick(tab, event) {\n console.log(tab, event);\n },\n getCountStation: function getCountStation() {\n var _this = this;\n\n this.params.addvcd = this.currentPoint.code;\n gisMap.countStation(this.params, function (res) {\n if (res.state) {\n console.log(res.value);\n res.value.forEach(function (e) {\n _this.stationData.forEach(function (s) {\n if (e.typeName == s.name) {\n s.num = e.count;\n }\n });\n\n _this.engineerData.forEach(function (g) {\n if (e.typeName == g.name) {\n g.num = e.count;\n }\n });\n });\n }\n });\n }\n }\n};",null]}