{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\EquipmentIndex.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\EquipmentIndex.vue","mtime":1687336502346},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport utils from '@/utils.js'\nimport req from '@/request.js'\nconst portal = window.context.portal\nimport equipmentManage from '@/api/device/equipmentManage.js'\nimport resourceManage from '@/api/device/resourceManage.js'\nexport default {\n\tname: 'ReportManagement',\n\tcomponents: {},\n\tdata() {\n\t\treturn {\n\t\t\tloading: false,\n\t\t\tactiveName: '',\n\t\t\tconditions: [{\n\t\t\t\tname: '综合管理局',\n\t\t\t\tvalue: '/1552911478301003776'\n\t\t\t}, {\n\t\t\t\tname: '渝高物业',\n\t\t\t\tvalue: '/1667102417759510528'\n\t\t\t}, {\n\t\t\t\tname: '视频监控',\n\t\t\t\tvalue: ''\n\t\t\t}, ],\n\t\t\treportFormData: [],\n\t\t\tproductData: [], // 产品数据\n\t\t\ttreeData: [],\n\t\t\tsearchForm: {\n\t\t\t\tregionValue: [],\n\t\t\t\tproductValue: []\n\t\t\t},\n\t\t\tsearchType:false\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.activeName = this.conditions[0].value\n\t\tthis.loadProduct()\n\t\tthis.getAreaTree()\n\t\tthis.getReportForm(this.params) // 获取表报数据\n\t},\n\tmethods: {\n\t\tloadProduct() {\n\t\t\tresourceManage.getProductTree({\n\t\t\t\tfullId: this.activeName\n\t\t\t}, res => {\n\t\t\t\tif (res.state) {\n\t\t\t\t\tthis.productData = res.value\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tgetAreaTree() {\n\t\t\tequipmentManage.loadAreaTree({\n\t\t\t\tid: '0'\n\t\t\t}, res => {\n\t\t\t\tthis.treeData = res.value // this.formatData(res.rows)\n\t\t\t\tthis.$set(this.treeData)\n\t\t\t})\n\t\t},\n\n\t\t// 获取报表数据\n\t\tgetReportForm() {\n\t\t\tlet areaFullId = this.searchForm.regionValue.pop()\n\t\t\tlet fullId=''\n\t\t\tif(this.searchType){\n\t\t\t\t fullId = this.searchForm.productValue.pop()\n\t\t\t\t console.log(fullId);\n\t\t\t\t if(!fullId){\n\t\t\t\t\t fullId = this.activeName\n\t\t\t\t }\n\t\t\t}else{\n\t\t\t\t fullId = this.activeName\n\t\t\t}\n\t\t\tlet isIntellect = ''\n\t\t\tconst formData = new FormData()\n\t\t\tformData.append('areaFullId', areaFullId?areaFullId:'')\n\t\t\tformData.append('fullId', fullId?fullId:'')\n\t\t\tformData.append('isIntellect', isIntellect?isIntellect:'')\n\t\t\tconst config = {\n\t\t\t\theaders: {\n\t\t\t\t\t'Content-Type': 'multipart/form-data'\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.$http.post(window.context.portal + `/homepage/v1/deviceProductStatistics`, formData, config).then(\n\t\t\t\tres => {\n\t\t\t\t\tif (res.data.state) {\n\t\t\t\t\t\tthis.reportFormData = res.data.value\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t},\n\t\t//视频\n\t\tgetVideoData() {\n\t\t\tlet areaFullId = this.searchForm.regionValue.pop()\n\t\t\tlet isIntellect = ''\n\t\t\tconst formData = new FormData()\n\t\t\tformData.append('areaFullId', areaFullId?areaFullId:'')\n\t\t\tformData.append('fullId', '')\n\t\t\tformData.append('isIntellect', isIntellect?isIntellect:'')\n\t\t\tconst config = {\n\t\t\t\theaders: {\n\t\t\t\t\t'Content-Type': 'multipart/form-data'\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.$http.post(window.context.portal + `/homepage/v1/videoStatistics`, formData, config).then(\n\t\t\t\tres => {\n\t\t\t\t\tif (res.data.state) {\n\t\t\t\t\t\tthis.reportFormData = res.data.value\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t},\n\t\t//搜索\n\t\thandleSearch() {\n\t\t\tthis.searchType=true\n\t\t\tif (this.activeName == 2) {\n\t\t\t\tthis.getVideoData()\n\t\t\t} else {\n\t\t\t\tthis.getReportForm()\n\t\t\t}\n\t\t},\n\t\t//tab切换\n\t\thandleTabsClick(tab) {\n\t\t\tthis.searchType=false\n\t\t\tthis.searchForm={\n\t\t\t\tregionValue: [],\n\t\t\t\tproductValue: []\n\t\t\t}\n\t\t\tthis.loadProduct()\n\t\t\tif (tab.index == 2) {\n\t\t\t\tthis.getVideoData()\n\t\t\t} else {\n\t\t\t\tthis.getReportForm()\n\t\t\t}\n\t\t},\n\t\ttoDevicePage(val){\n\t\t\tconsole.log(val);\n\t\t\tif(this.activeName!=2){\n\t\t\t\tlocalStorage.setItem('product', JSON.stringify(val))\n\t\t\t\tthis.$router.push({\n\t\t\t\t\tpath:'DevicePage'\n\t\t\t\t})\n\t\t\t}else{\n\t\t\t\tlocalStorage.setItem('monitor', JSON.stringify(val))\n\t\t\t\tconsole.log('监控');\n\t\t\t\tthis.$router.push({\n\t\t\t\t\tpath:'MonitorPage'\n\t\t\t\t})\n\t\t\t}\n\t\t\t\n\t\t}\n\t},\n}\n",null]}