{"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-dormitory.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\statisticalReport\\back-dormitory.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//\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 mixinViewModule from '@/mixins/view-module'\nimport bar from '../../../components/public/echarts/bar'\nexport default {\n\tcomponents: {\n\t\tbar,\n\t},\n\tmixins: [mixinViewModule],\n\tdata() {\n\t\treturn {\n\t\t\tmixinViewModuleOptions: {\n\t\t\t\tgetDataListURL: '/system/reportForm/dormitoryStatistics',\n\t\t\t\tgetDataListIsPage: true,\n\t\t\t},\n\t\t\tlimit: 6,\n\t\t\tdaterange: null,\n\t\t\tdataForm: {\n\t\t\t\tstartDate: '',\n\t\t\t\tendDate: '',\n\t\t\t},\n\t\t\tparams: {},\n\t\t}\n\t},\n\twatch: {\n\t\tdaterange(val) {\n\t\t\tif (val) {\n\t\t\t\tthis.dataForm.startDate = val[0];\n\t\t\t\tthis.dataForm.endDate = val[1];\n\t\t\t} else {\n\t\t\t\tthis.dataForm.startDate = \"\";\n\t\t\t\tthis.dataForm.endDate = \"\";\n\t\t\t}\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\tmethods: {\n\t\treset(formName) {\n\t\t\tthis.$refs[formName].resetFields();\n\t\t\tif (this.daterange) {\n\t\t\t\tthis.daterange = null\n\t\t\t}\n\t\t\tthis.page = 1\n\t\t\tthis.limit = 6\n\t\t\tthis.query()\n\t\t},\n\n\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\n\t\t\tres.data.forEach(item => {\n\t\t\t\ttype.push(item.typr)\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\t\t\ttype.forEach((item, index) => {\n\t\t\t\tseriesData.push({\n\t\t\t\t\tdata: [],\n\t\t\t\t\tname: item,\n\t\t\t\t})\n\t\t\t\tres.data.forEach(item1 => {\n\t\t\t\t\tif (item === item1.typr) {\n\t\t\t\t\t\tseriesData[index].data.push(item1.sumcount)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\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\n\t\t/**\n\t\t * 周 人\n\t\t * \n\t\t */\n\t\tgetWeekData() {\n\t\t\tthis.$http.get(\"/system/reportForm/roomWeek\").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\t/**\n\t\t * 月 人\n\t\t * \n\t\t */\n\t\tgetMonthData() {\n\t\t\tthis.$http.get(\"/system/reportForm/roomMonth\").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, \"宿舍楼异常出入人数(月)\", \"月\", \"人\", \"monthPepleRef\", \"months\")\n\t\t\t})\n\t\t},\n\t\t/**\n\t\t * 月 次\n\t\t * \n\t\t */\n\t\tgetMonthDataTime() {\n\t\t\tthis.$http.get(\"/system/reportForm/abnormalMonth\").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\t\t\t\tthis.commonFun(res, \"宿舍楼异常出入次数(月)\", \"月\", \"次\", \"monthTimeRef\", \"months\")\n\n\t\t\t})\n\t\t},\n\t\t/**\n\t\t * 周 次\n\t\t * \n\t\t */\n\t\tgetWeekDataTime() {\n\t\t\tthis.$http.get(\"/system/reportForm/abnormalWeek\").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\t\t\t\tthis.commonFun(res, \"宿舍楼异常出入次数(周)\", \"周\", \"次\", \"weekTimeRef\", \"weeks\")\n\t\t\t})\n\t\t},\n\t},\n}\n",{"version":3,"sources":["back-dormitory.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;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;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"back-dormitory.vue","sourceRoot":"src/views/modules/statisticalReport","sourcesContent":["\n\n\n\n\n"]}]}