{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\statisticalReport\\back-academic.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\statisticalReport\\back-academic.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.set\";\nimport _toConsumableArray from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/toConsumableArray\";\nimport \"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//\n//\n//\nimport bar from \"../../../components/public/echarts/bar\";\nexport default {\n components: {\n bar: bar\n },\n data: function data() {\n return {\n params: {}\n };\n },\n created: function created() {\n this.getWeekData();\n this.getMonthData();\n this.getWeekDataTime();\n this.getMonthDataTime();\n },\n mounted: function mounted() {},\n methods: {\n /**\n * 周 人\n * \n */\n getWeekData: function getWeekData() {\n var _this = this;\n\n this.$http.get(\"/system/reportForm/visitorFloorWeek\").then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this.$message.error(res, msg);\n }\n\n _this.commonFun(res, \"每层楼访客人数(周)\", \"周\", \"人\", \"weekPepleRef\", \"weeks\");\n });\n },\n commonFun: function commonFun(res, title, xTitle, yTitle, ref, xType) {\n var _this2 = this;\n\n var type = [];\n var seriesData = [];\n var xAxisData = [];\n res.data.forEach(function (item) {\n type.push(item.name);\n xAxisData.push(item[xType]);\n });\n type = _toConsumableArray(new Set(type));\n xAxisData = _toConsumableArray(new Set(xAxisData));\n type.forEach(function (item1, index1) {\n seriesData.push({\n data: [],\n name: item1\n });\n xAxisData.forEach(function (item2, index2) {\n var status = true;\n res.data.forEach(function (item3, index3) {\n if (item1 === item3.name && item2 === item3.weeks) {\n seriesData[index1].data[index2] = item3.count;\n status = false;\n }\n });\n\n if (status) {\n seriesData[index1].data[index2] = 0;\n }\n });\n }); // xAxisData.forEach((item1, index1) => {\n // \ttype.forEach((item2, index2) => {\n // \t\tseriesData.push({\n // \t\t\tdata: [],\n // \t\t\tname: item2\n // \t\t})\n // \t\tres.data.forEach((item3, index3) => {\n // \t\t\tif (item2 === item3.name && item1 === item.weeks) {\n // \t\t\t\tseriesData[index1].data.push(item3.count)\n // \t\t\t}\n // \t\t})\n // \t})\n // })\n\n this.params.seriesData = seriesData;\n this.params.xAxisData = xAxisData;\n this.params.title = title;\n this.params.xTitle = xTitle;\n this.params.yTitle = yTitle;\n this.$nextTick(function () {\n _this2.$refs[ref].init();\n });\n }\n }\n};",{"version":3,"sources":["back-academic.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,OAAA,GAAA;AAC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