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