1 line
6.0 KiB
JSON
1 line
6.0 KiB
JSON
{"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=style&index=0&id=f9cd8d0a&lang=scss&scoped=true&","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\\css-loader\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\sass-loader\\lib\\loader.js","mtime":1533139052000},{"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\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\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.academic {\n\t.el-row {\n\t\tmargin-bottom: 20px;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n\n\t.grid-content {\n\t\tborder-radius: 4px;\n\t\tbackground: #99a9bf;\n\t\tmin-height: calc(calc(100vh - 210px)/2);\n\t}\n\n}\n",{"version":3,"sources":["back-academic.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8JA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA","file":"back-academic.vue","sourceRoot":"src/views/modules/statisticalReport","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill academic\">\n\t\t<el-row :gutter=\"10\">\n\t\t\t<el-col :span=\"6\">\n\t\t\t\t<div class=\"grid-content bg-purple\">\n\t\t\t\t\t<bar :params=\"params\" ref=\"weekPepleRef\"></bar>\n\t\t\t\t</div>\n\t\t\t</el-col>\n\t\t\t<el-col :span=\"6\">\n\t\t\t\t<div class=\"grid-content bg-purple\">\n\n\t\t\t\t</div>\n\t\t\t</el-col>\n\t\t\t<el-col :span=\"6\">\n\t\t\t\t<div class=\"grid-content bg-purple\"></div>\n\t\t\t</el-col>\n\t\t\t<el-col :span=\"6\">\n\t\t\t\t<div class=\"grid-content bg-purple\"></div>\n\t\t\t</el-col>\n\t\t</el-row>\n\t\t<el-row :gutter=\"10\">\n\t\t\t<el-col :span=\"6\">\n\t\t\t\t<div class=\"grid-content bg-purple\"></div>\n\t\t\t</el-col>\n\t\t\t<el-col :span=\"6\">\n\t\t\t\t<div class=\"grid-content bg-purple\"></div>\n\t\t\t</el-col>\n\t\t\t<el-col :span=\"6\">\n\t\t\t\t<div class=\"grid-content bg-purple\"></div>\n\t\t\t</el-col>\n\t\t\t<el-col :span=\"6\">\n\t\t\t\t<div class=\"grid-content bg-purple\"></div>\n\t\t\t</el-col>\n\t\t</el-row>\n\t</el-card>\n</template>\n\n<script>\n\timport bar from '../../../components/public/echarts/bar'\n\texport default {\n\t\tcomponents: {\n\t\t\tbar,\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tparams: {},\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\tthis.getWeekData()\n\t\t\tthis.getMonthData()\n\t\t\tthis.getWeekDataTime()\n\t\t\tthis.getMonthDataTime()\n\t\t},\n\t\tmounted() {\n\n\t\t},\n\t\tmethods: {\n\t\t\t/**\n\t\t\t * 周 人\n\t\t\t * \n\t\t\t */\n\t\t\tgetWeekData() {\n\t\t\t\tthis.$http.get(\"/system/reportForm/visitorFloorWeek\").then(({\n\t\t\t\t\tdata: res\n\t\t\t\t}) => {\n\t\t\t\t\tif (res.code !== 0) {\n\t\t\t\t\t\treturn this.$message.error(res, msg)\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.commonFun(res, \"每层楼访客人数(周)\", \"周\", \"人\", \"weekPepleRef\", \"weeks\")\n\n\t\t\t\t})\n\t\t\t},\n\t\t\tcommonFun(res, title, xTitle, yTitle, ref, xType) {\n\t\t\t\tlet type = []\n\t\t\t\tlet seriesData = []\n\t\t\t\tlet xAxisData = []\n\t\t\t\tres.data.forEach(item => {\n\t\t\t\t\ttype.push(item.name)\n\t\t\t\t\txAxisData.push(item[xType])\n\t\t\t\t})\n\t\t\t\ttype = [...new Set(type)];\n\t\t\t\txAxisData = [...new Set(xAxisData)];\n\n\n\t\t\t\ttype.forEach((item1, index1) => {\n\t\t\t\t\tseriesData.push({\n\t\t\t\t\t\tdata: [],\n\t\t\t\t\t\tname: item1\n\t\t\t\t\t})\n\t\t\t\t\txAxisData.forEach((item2, index2) => {\n\t\t\t\t\t\tlet status = true\n\t\t\t\t\t\tres.data.forEach((item3, index3) => {\n\t\t\t\t\t\t\tif (item1 === item3.name && item2 === item3.weeks) {\n\t\t\t\t\t\t\t\tseriesData[index1].data[index2] = item3.count\n\t\t\t\t\t\t\t\tstatus = false\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\tif (status) {\n\t\t\t\t\t\t\tseriesData[index1].data[index2] = 0\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t// xAxisData.forEach((item1, index1) => {\n\t\t\t\t// \ttype.forEach((item2, index2) => {\n\t\t\t\t// \t\tseriesData.push({\n\t\t\t\t// \t\t\tdata: [],\n\t\t\t\t// \t\t\tname: item2\n\t\t\t\t// \t\t})\n\n\t\t\t\t// \t\tres.data.forEach((item3, index3) => {\n\t\t\t\t// \t\t\tif (item2 === item3.name && item1 === item.weeks) {\n\t\t\t\t// \t\t\t\tseriesData[index1].data.push(item3.count)\n\t\t\t\t// \t\t\t}\n\t\t\t\t// \t\t})\n\n\t\t\t\t// \t})\n\t\t\t\t// })\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\tthis.params.seriesData = seriesData\n\t\t\t\tthis.params.xAxisData = xAxisData\n\t\t\t\tthis.params.title = title\n\t\t\t\tthis.params.xTitle = xTitle\n\t\t\t\tthis.params.yTitle = yTitle\n\n\t\t\t\tthis.$nextTick(() => {\n\t\t\t\t\tthis.$refs[ref].init()\n\t\t\t\t})\n\t\t\t},\n\t\t},\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t.academic {\n\t\t.el-row {\n\t\t\tmargin-bottom: 20px;\n\n\t\t\t&:last-child {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t}\n\n\t\t.grid-content {\n\t\t\tborder-radius: 4px;\n\t\t\tbackground: #99a9bf;\n\t\t\tmin-height: calc(calc(100vh - 210px)/2);\n\t\t}\n\n\t}\n</style>\n"]}]} |