{"remainingRequest":"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":["//\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\tcomponents: {\n\t\tbar,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tparams: {},\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.getWeekData()\n\t\tthis.getMonthData()\n\t\tthis.getWeekDataTime()\n\t\tthis.getMonthDataTime()\n\t},\n\tmounted() {\n\n\t},\n\tmethods: {\n\t\t/**\n\t\t * 周 人\n\t\t * \n\t\t */\n\t\tgetWeekData() {\n\t\t\tthis.$http.get(\"/system/reportForm/visitorFloorWeek\").then(({\n\t\t\t\tdata: res\n\t\t\t}) => {\n\t\t\t\tif (res.code !== 0) {\n\t\t\t\t\treturn this.$message.error(res, msg)\n\t\t\t\t}\n\n\t\t\t\tthis.commonFun(res, \"每层楼访客人数(周)\", \"周\", \"人\", \"weekPepleRef\", \"weeks\")\n\n\t\t\t})\n\t\t},\n\t\tcommonFun(res, title, xTitle, yTitle, ref, xType) {\n\t\t\tlet type = []\n\t\t\tlet seriesData = []\n\t\t\tlet xAxisData = []\n\t\t\tres.data.forEach(item => {\n\t\t\t\ttype.push(item.name)\n\t\t\t\txAxisData.push(item[xType])\n\t\t\t})\n\t\t\ttype = [...new Set(type)];\n\t\t\txAxisData = [...new Set(xAxisData)];\n\n\n\t\t\ttype.forEach((item1, index1) => {\n\t\t\t\tseriesData.push({\n\t\t\t\t\tdata: [],\n\t\t\t\t\tname: item1\n\t\t\t\t})\n\t\t\t\txAxisData.forEach((item2, index2) => {\n\t\t\t\t\tlet status = true\n\t\t\t\t\tres.data.forEach((item3, index3) => {\n\t\t\t\t\t\tif (item1 === item3.name && item2 === item3.weeks) {\n\t\t\t\t\t\t\tseriesData[index1].data[index2] = item3.count\n\t\t\t\t\t\t\tstatus = false\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tif (status) {\n\t\t\t\t\t\tseriesData[index1].data[index2] = 0\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\n\n\n\n\n\n\n\n\n\n\t\t\t// xAxisData.forEach((item1, index1) => {\n\t\t\t// \ttype.forEach((item2, index2) => {\n\t\t\t// \t\tseriesData.push({\n\t\t\t// \t\t\tdata: [],\n\t\t\t// \t\t\tname: item2\n\t\t\t// \t\t})\n\n\t\t\t// \t\tres.data.forEach((item3, index3) => {\n\t\t\t// \t\t\tif (item2 === item3.name && item1 === item.weeks) {\n\t\t\t// \t\t\t\tseriesData[index1].data.push(item3.count)\n\t\t\t// \t\t\t}\n\t\t\t// \t\t})\n\n\t\t\t// \t})\n\t\t\t// })\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tthis.params.seriesData = seriesData\n\t\t\tthis.params.xAxisData = xAxisData\n\t\t\tthis.params.title = title\n\t\t\tthis.params.xTitle = xTitle\n\t\t\tthis.params.yTitle = yTitle\n\n\t\t\tthis.$nextTick(() => {\n\t\t\t\tthis.$refs[ref].init()\n\t\t\t})\n\t\t},\n\t},\n}\n",{"version":3,"sources":["back-academic.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AAWA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;AAeA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA","file":"back-academic.vue","sourceRoot":"src/views/modules/statisticalReport","sourcesContent":["\n\n\n\n\n"]}]}