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\\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=style&index=0&id=04e7dbe1&lang=scss&scoped=true&","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\\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\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.left,\n.right {\n\tmin-height: calc(calc(100vh - 190px));\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-content: space-between;\n\n\t.left-top,\n\t.right-top {\n\t\tmin-height: calc(calc(100vh - 190px)/2);\n\t}\n\n\t.left-bottom,\n\tright-bottom {\n\t\tmin-height: calc(calc(100vh - 190px)/2);\n\t}\n}\n\n.el-table {\n\t.student-img {\n\t\tvertical-align: top;\n\t\twidth: 53px;\n\t\theight: 70px;\n\t}\n}\n\n.el-row {\n\tmargin-bottom: 20px;\n\n\t&:last-child {\n\t\tmargin-bottom: 0;\n\t}\n}\n",{"version":3,"sources":["back-dormitory.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2NA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA","file":"back-dormitory.vue","sourceRoot":"src/views/modules/statisticalReport","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill dormitory\">\n\t\t<el-row :gutter=\"10\">\n\t\t\t<el-col :span=\"7\">\n\t\t\t\t<div class=\"left\">\n\t\t\t\t\t<div class=\"left-top\">\n\t\t\t\t\t\t<bar :params=\"params\" ref=\"weekPepleRef\"></bar>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"left-bottom\">\n\t\t\t\t\t\t<bar :params=\"params\" ref=\"monthPepleRef\"></bar>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</el-col>\n\t\t\t<el-col :span=\"10\">\n\t\t\t\t<div class=\"grid-content bg-purple\">\n\t\t\t\t\t<el-form :model=\"dataForm\" :inline=\"true\" @keyup.enter.native=\"getDataList()\" ref=\"ruleForm\">\n\t\t\t\t\t\t<el-form-item label=\"归寝时间\">\n\t\t\t\t\t\t\t<el-date-picker v-model=\"daterange\" type=\"daterange\" value-format=\"yyyy-MM-dd\" range-separator=\"至\"\n\t\t\t\t\t\t\t start-placeholder=\"开始日期\" end-placeholder=\"结束日期\">\n\t\t\t\t\t\t\t</el-date-picker>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t\t<el-form-item>\n\t\t\t\t\t\t\t<el-button @click=\"getDataList\">查询</el-button>\n\t\t\t\t\t\t\t<el-button type=\"warning\" @click=\"reset('ruleForm')\">重置</el-button>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-form>\n\t\t\t\t\t<el-table v-loading=\"dataListLoading\" :data=\"dataList\" style=\"width: 100%;\" border>\n\t\t\t\t\t\t<el-table-column type=\"index\" label=\"序号\" width=\"60\" align=\"center\"></el-table-column>\n\t\t\t\t\t\t<el-table-column prop=\"scStuname\" label=\"姓名\" align=\"center\" width=\"80\"></el-table-column>\n\t\t\t\t\t\t<el-table-column label=\"照片\" align=\"center\">\n\t\t\t\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t\t\t\t<el-image class=\"student-img\" :src=\"$ImgServerUrl+scope.row.scPhotoimg\" :preview-src-list=\"[$ImgServerUrl + scope.row.scPhotoimg]\">\n\t\t\t\t\t\t\t\t\t<div slot=\"error\" class=\"image-slot\">\n\t\t\t\t\t\t\t\t\t\t<img class=\"student-img\" src=\"../../../assets/img/person.jpg\">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</el-image>\n\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t</el-table-column>\n\t\t\t\t\t\t<el-table-column prop=\"number\" label=\"未归寝次数\" align=\"center\"></el-table-column>\n\t\t\t\t\t\t<el-table-column prop=\"scPhonenum\" label=\"联系电话\" align=\"center\"></el-table-column>\n\t\t\t\t\t\t<el-table-column prop=\"drNum\" label=\"宿舍号\" align=\"center\" width=\"80\"></el-table-column>\n\t\t\t\t\t\t<el-table-column label=\"性别\" align=\"center\" width=\"60\">\n\t\t\t\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t\t\t\t{{ $getDictLabel(\"gender\", scope.row.scSex) }}\n\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t</el-table-column>\n\t\t\t\t\t</el-table>\n\t\t\t\t\t<el-pagination :current-page=\"page\" :page-sizes=\"[6,10, 20, 50, 100]\" :page-size=\"limit\" :total=\"total\" layout=\"total, sizes, prev, pager, next, jumper\"\n\t\t\t\t\t @size-change=\"pageSizeChangeHandle\" @current-change=\"pageCurrentChangeHandle\">\n\t\t\t\t\t</el-pagination>\n\t\t\t\t</div>\n\t\t\t</el-col>\n\t\t\t<el-col :span=\"7\">\n\t\t\t\t<div class=\"right\">\n\t\t\t\t\t<div class=\"right-top\">\n\t\t\t\t\t\t<bar :params=\"params\" ref=\"weekTimeRef\"></bar>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"right-bottom\">\n\t\t\t\t\t\t<bar :params=\"params\" ref=\"monthTimeRef\"></bar>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</el-col>\n\t\t</el-row>\n\t</el-card>\n</template>\n\n<script>\n\timport mixinViewModule from '@/mixins/view-module'\n\timport bar from '../../../components/public/echarts/bar'\n\texport default {\n\t\tcomponents: {\n\t\t\tbar,\n\t\t},\n\t\tmixins: [mixinViewModule],\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tmixinViewModuleOptions: {\n\t\t\t\t\tgetDataListURL: '/system/reportForm/dormitoryStatistics',\n\t\t\t\t\tgetDataListIsPage: true,\n\t\t\t\t},\n\t\t\t\tlimit: 6,\n\t\t\t\tdaterange: null,\n\t\t\t\tdataForm: {\n\t\t\t\t\tstartDate: '',\n\t\t\t\t\tendDate: '',\n\t\t\t\t},\n\t\t\t\tparams: {},\n\t\t\t}\n\t\t},\n\t\twatch: {\n\t\t\tdaterange(val) {\n\t\t\t\tif (val) {\n\t\t\t\t\tthis.dataForm.startDate = val[0];\n\t\t\t\t\tthis.dataForm.endDate = val[1];\n\t\t\t\t} else {\n\t\t\t\t\tthis.dataForm.startDate = \"\";\n\t\t\t\t\tthis.dataForm.endDate = \"\";\n\t\t\t\t}\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\t\tmethods: {\n\t\t\treset(formName) {\n\t\t\t\tthis.$refs[formName].resetFields();\n\t\t\t\tif (this.daterange) {\n\t\t\t\t\tthis.daterange = null\n\t\t\t\t}\n\t\t\t\tthis.page = 1\n\t\t\t\tthis.limit = 6\n\t\t\t\tthis.query()\n\t\t\t},\n\n\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\n\t\t\t\tres.data.forEach(item => {\n\t\t\t\t\ttype.push(item.typr)\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\t\t\t\ttype.forEach((item, index) => {\n\t\t\t\t\tseriesData.push({\n\t\t\t\t\t\tdata: [],\n\t\t\t\t\t\tname: item,\n\t\t\t\t\t})\n\t\t\t\t\tres.data.forEach(item1 => {\n\t\t\t\t\t\tif (item === item1.typr) {\n\t\t\t\t\t\t\tseriesData[index].data.push(item1.sumcount)\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\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\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/roomWeek\").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\t/**\n\t\t\t * 月 人\n\t\t\t * \n\t\t\t */\n\t\t\tgetMonthData() {\n\t\t\t\tthis.$http.get(\"/system/reportForm/roomMonth\").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, \"宿舍楼异常出入人数(月)\", \"月\", \"人\", \"monthPepleRef\", \"months\")\n\t\t\t\t})\n\t\t\t},\n\t\t\t/**\n\t\t\t * 月 次\n\t\t\t * \n\t\t\t */\n\t\t\tgetMonthDataTime() {\n\t\t\t\tthis.$http.get(\"/system/reportForm/abnormalMonth\").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\t\t\t\t\tthis.commonFun(res, \"宿舍楼异常出入次数(月)\", \"月\", \"次\", \"monthTimeRef\", \"months\")\n\n\t\t\t\t})\n\t\t\t},\n\t\t\t/**\n\t\t\t * 周 次\n\t\t\t * \n\t\t\t */\n\t\t\tgetWeekDataTime() {\n\t\t\t\tthis.$http.get(\"/system/reportForm/abnormalWeek\").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\t\t\t\t\tthis.commonFun(res, \"宿舍楼异常出入次数(周)\", \"周\", \"次\", \"weekTimeRef\", \"weeks\")\n\t\t\t\t})\n\t\t\t},\n\t\t},\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t.left,\n\t.right {\n\t\tmin-height: calc(calc(100vh - 190px));\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-content: space-between;\n\n\t\t.left-top,\n\t\t.right-top {\n\t\t\tmin-height: calc(calc(100vh - 190px)/2);\n\t\t}\n\n\t\t.left-bottom,\n\t\tright-bottom {\n\t\t\tmin-height: calc(calc(100vh - 190px)/2);\n\t\t}\n\t}\n\n\t.el-table {\n\t\t.student-img {\n\t\t\tvertical-align: top;\n\t\t\twidth: 53px;\n\t\t\theight: 70px;\n\t\t}\n\t}\n\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</style>\n"]}]} |