1 line
10 KiB
JSON
1 line
10 KiB
JSON
{"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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,CAAA,CAAA;AAGA,MAAA,IAAA,CAAA,OAAA,CAAA,UAAA,KAAA,EAAA,MAAA,EAAA;AACA,QAAA,UAAA,CAAA,IAAA,CAAA;AACA,UAAA,IAAA,EAAA,EADA;AAEA,UAAA,IAAA,EAAA;AAFA,SAAA;AAIA,QAAA,SAAA,CAAA,OAAA,CAAA,UAAA,KAAA,EAAA,MAAA,EAAA;AACA,cAAA,MAAA,GAAA,IAAA;AACA,UAAA,GAAA,CAAA,IAAA,CAAA,OAAA,CAAA,UAAA,KAAA,EAAA,MAAA,EAAA;AACA,gBAAA,KAAA,KAAA,KAAA,CAAA,IAAA,IAAA,KAAA,KAAA,KAAA,CAAA,KAAA,EAAA;AACA,cAAA,UAAA,CAAA,MAAA,CAAA,CAAA,IAAA,CAAA,MAAA,IAAA,KAAA,CAAA,KAAA;AACA,cAAA,MAAA,GAAA,KAAA;AACA;AACA,WALA;;AAMA,cAAA,MAAA,EAAA;AACA,YAAA,UAAA,CAAA,MAAA,CAAA,CAAA,IAAA,CAAA,MAAA,IAAA,CAAA;AACA;AACA,SAXA;AAYA,OAjBA,EAZA,CAwCA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;;AAeA,WAAA,MAAA,CAAA,UAAA,GAAA,UAAA;AACA,WAAA,MAAA,CAAA,SAAA,GAAA,SAAA;AACA,WAAA,MAAA,CAAA,KAAA,GAAA,KAAA;AACA,WAAA,MAAA,CAAA,MAAA,GAAA,MAAA;AACA,WAAA,MAAA,CAAA,MAAA,GAAA,MAAA;AAEA,WAAA,SAAA,CAAA,YAAA;AACA,QAAA,MAAA,CAAA,KAAA,CAAA,GAAA,EAAA,IAAA;AACA,OAFA;AAGA;AA/FA;AAlBA,CAAA","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"],"sourceRoot":"src/views/modules/statisticalReport"}]} |