forked from zhurui/management
1 line
9.7 KiB
JSON
1 line
9.7 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\\dormitory-people-detailed.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\statisticalReport\\dormitory-people-detailed.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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 qs from 'qs';\nimport Cookies from 'js-cookie';\nimport mixinViewModule from '@/mixins/view-module';\nexport default {\n mixins: [mixinViewModule],\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/reportForm/dormitoryStatistics',\n getDataListIsPage: true\n },\n limit: 6,\n daterange: null,\n dataForm: {\n startDate: '',\n endDate: ''\n }\n };\n },\n watch: {\n daterange: function daterange(val) {\n if (val) {\n this.dataForm.startDate = val[0];\n this.dataForm.endDate = val[1];\n } else {\n this.dataForm.startDate = \"\";\n this.dataForm.endDate = \"\";\n }\n }\n },\n methods: {\n // 导出\n exportHandle: function exportHandle() {\n if (this.dataList.length === 0) {\n return this.$message.info(\"报表暂无数据\");\n }\n\n var params = qs.stringify(_objectSpread({\n 'access_token': Cookies.get('access_token')\n }, this.dataForm, {}, {\n page: this.page,\n limit: this.limit\n }));\n window.location.href = \"\".concat(window.SITE_CONFIG['apiURL'], \"/system/reportForm/dormitoryStatisticsExport?\").concat(params);\n },\n reset: function reset(formName) {\n this.$refs[formName].resetFields();\n\n if (this.daterange) {\n this.daterange = null;\n this.dataForm.startDate = \"\";\n this.dataForm.endDate = \"\";\n }\n\n this.page = 1;\n this.limit = 6;\n this.query();\n }\n }\n};",{"version":3,"sources":["dormitory-people-detailed.vue"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A,CAAA,WAAA,CAAA,QAAA,CAAA,0DAAA,MAAA;AACA,KAfA;AAgBA,IAAA,KAhBA,iBAgBA,QAhBA,EAgBA;AACA,WAAA,KAAA,CAAA,QAAA,EAAA,WAAA;;AACA,UAAA,KAAA,SAAA,EAAA;AACA,aAAA,SAAA,GAAA,IAAA;AACA,aAAA,QAAA,CAAA,SAAA,GAAA,EAAA;AACA,aAAA,QAAA,CAAA,OAAA,GAAA,EAAA;AACA;;AACA,WAAA,IAAA,GAAA,CAAA;AACA,WAAA,KAAA,GAAA,CAAA;AACA,WAAA,KAAA;AACA;AA1BA;AA3BA,CAAA","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill dormitory-people-detailed\">\n\t\t<el-form inline :model=\"dataForm\" ref=\"ruleForm\" @keyup.enter.native=\"getDataList\">\n\t\t\t<el-form-item label=\"归寝时间\">\n\t\t\t\t<el-date-picker v-model=\"daterange\" type=\"daterange\" value-format=\"yyyy-MM-dd\" range-separator=\"至\"\n\t\t\t\t start-placeholder=\"开始日期\" end-placeholder=\"结束日期\">\n\t\t\t\t</el-date-picker>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item>\n\t\t\t\t<el-button @click=\"getDataList\">查询</el-button>\n\t\t\t\t<el-button type=\"warning\" @click=\"reset('ruleForm')\">重置</el-button>\n\t\t\t\t<el-button type=\"success\" @click=\"exportHandle()\">导出</el-button>\n\t\t\t</el-form-item>\n\t\t</el-form>\n\t\t<el-table :data=\"dataList\" style=\"width: 100%;\" border>\n\t\t\t<el-table-column type=\"index\" label=\"序号\" width=\"60\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"scStuname\" label=\"姓名\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column label=\"照片\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\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<div slot=\"error\" class=\"image-slot\">\n\t\t\t\t\t\t\t<img class=\"student-img\" src=\"../../../assets/img/person.jpg\">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</el-image>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"number\" label=\"未归寝次数\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"scPhonenum\" label=\"联系电话\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"drNum\" label=\"宿舍号\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column label=\"性别\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t{{ $getDictLabel(\"gender\", scope.row.scSex) }}\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t</el-table>\n\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 @size-change=\"pageSizeChangeHandle\" @current-change=\"pageCurrentChangeHandle\">\n\t\t</el-pagination>\n\t</el-card>\n</template>\n\n<script>\n\timport qs from 'qs'\n\timport Cookies from 'js-cookie'\n\timport mixinViewModule from '@/mixins/view-module'\n\texport default {\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}\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\tmethods: {\n\t\t\t// 导出\n\t\t\texportHandle() {\n\t\t\t\tif (this.dataList.length === 0) {\n\t\t\t\t\treturn this.$message.info(\"报表暂无数据\")\n\t\t\t\t}\n\t\t\t\tvar params = qs.stringify({\n\t\t\t\t\t'access_token': Cookies.get('access_token'),\n\t\t\t\t\t...this.dataForm,\n\t\t\t\t\t...{\n\t\t\t\t\t\tpage: this.page,\n\t\t\t\t\t\tlimit: this.limit\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\twindow.location.href = `${window.SITE_CONFIG['apiURL']}/system/reportForm/dormitoryStatisticsExport?${params}`\n\t\t\t},\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\tthis.dataForm.startDate = \"\";\n\t\t\t\t\tthis.dataForm.endDate = \"\";\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\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t.dormitory-people-detailed {\n\t\t.el-table {\n\t\t\t.student-img {\n\t\t\t\tvertical-align: top;\n\t\t\t\twidth: 53px;\n\t\t\t\theight: 70px;\n\t\t\t}\n\t\t}\n\t}\n</style>\n"],"sourceRoot":"src/views/modules/statisticalReport"}]} |