{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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":1687933561251},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"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//\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';\nvar portal = window.context.portal;\nimport equipmentManage from '@/api/device/equipmentManage.js';\nimport resourceManage from '@/api/device/resourceManage.js';\nexport default {\n name: 'ReportManagement',\n components: {},\n data: function data() {\n return {\n loading: false,\n activeName: '',\n conditions: [{\n name: '综合管理局',\n value: '/1552911478301003776'\n }, {\n name: '渝高物业',\n value: '/1667102417759510528'\n }, {\n name: '视频监控',\n value: ''\n }],\n reportFormData: [],\n productData: [],\n // 产品数据\n treeData: [],\n searchForm: {\n regionValue: [],\n productValue: []\n },\n searchType: false\n };\n },\n created: function created() {\n this.activeName = this.conditions[0].value;\n this.loadProduct();\n this.getAreaTree();\n this.getReportForm(this.params); // 获取表报数据\n },\n methods: {\n loadProduct: function loadProduct() {\n var _this = this;\n\n resourceManage.getProductTree({\n fullId: this.activeName\n }, function (res) {\n if (res.state) {\n _this.productData = res.value;\n }\n });\n },\n getAreaTree: function getAreaTree() {\n var _this2 = this;\n\n equipmentManage.loadAreaTree({\n id: '0'\n }, function (res) {\n _this2.treeData = res.value; // this.formatData(res.rows)\n\n _this2.$set(_this2.treeData);\n });\n },\n // 获取报表数据\n getReportForm: function getReportForm() {\n var _this3 = this;\n\n var areaFullId = this.searchForm.regionValue.pop();\n var fullId = '';\n\n if (this.searchType) {\n fullId = this.searchForm.productValue.pop();\n console.log(fullId);\n\n if (!fullId) {\n fullId = this.activeName;\n }\n } else {\n fullId = this.activeName;\n }\n\n var isIntellect = '';\n var formData = new FormData();\n formData.append('areaFullId', areaFullId ? areaFullId : '');\n formData.append('fullId', fullId ? fullId : '');\n formData.append('isIntellect', isIntellect ? isIntellect : '');\n var config = {\n headers: {\n 'Content-Type': 'multipart/form-data'\n }\n };\n this.$http.post(window.context.portal + \"/homepage/v1/deviceProductStatistics\", formData, config).then(function (res) {\n if (res.data.state) {\n _this3.reportFormData = res.data.value;\n }\n });\n },\n //视频\n getVideoData: function getVideoData() {\n var _this4 = this;\n\n var areaFullId = this.searchForm.regionValue.pop();\n var isIntellect = '';\n var formData = new FormData();\n formData.append('areaFullId', areaFullId ? areaFullId : '');\n formData.append('fullId', '');\n formData.append('isIntellect', isIntellect ? isIntellect : '');\n var config = {\n headers: {\n 'Content-Type': 'multipart/form-data'\n }\n };\n this.$http.post(window.context.portal + \"/homepage/v1/videoStatistics\", formData, config).then(function (res) {\n if (res.data.state) {\n _this4.reportFormData = res.data.value;\n }\n });\n },\n //搜索\n handleSearch: function handleSearch() {\n this.searchType = true;\n\n if (this.activeName == 2) {\n this.getVideoData();\n } else {\n this.getReportForm();\n }\n },\n //tab切换\n handleTabsClick: function handleTabsClick(tab) {\n this.searchType = false;\n this.searchForm = {\n regionValue: [],\n productValue: []\n };\n this.loadProduct();\n\n if (tab.index == 2) {\n this.getVideoData();\n } else {\n this.getReportForm();\n }\n },\n toDevicePage: function toDevicePage(val) {\n console.log(val);\n\n if (this.activeName != 2) {\n localStorage.setItem('product', JSON.stringify(val));\n this.$router.push({\n path: 'DevicePage'\n });\n } else {\n localStorage.setItem('monitor', JSON.stringify(val));\n console.log('监控');\n this.$router.push({\n path: 'MonitorPage'\n });\n }\n }\n }\n};",null]}