forked from zhurui/management
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
|