forked from zhurui/management
1 line
12 KiB
JSON
1 line
12 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\\statistics\\people.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\statistics\\people.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//\nimport mixinViewModule from '@/mixins/view-module';\nimport ECharts from 'vue-echarts';\nimport 'echarts/lib/chart/bar';\nexport default {\n name: \"people\",\n mixins: [mixinViewModule],\n components: {\n 'v-chart': ECharts\n },\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/accessrecords/page',\n getDataListIsPage: true\n },\n dataForm: {\n studentNum: \"\",\n name: \"\",\n status: \"\"\n },\n limit: 5,\n outTotal: 0,\n barOptions: {\n color: ['#FACD91', '#95F204'],\n grid: {\n top: 0,\n left: '3%',\n right: '4%',\n bottom: 20,\n containLabel: true\n },\n xAxis: {\n type: \"value\",\n boundaryGap: [0, 0.01],\n axisLabel: {\n show: false\n },\n axisLine: {\n show: false\n },\n splitLine: {\n show: false\n }\n },\n yAxis: {\n type: \"category\",\n data: ['已归', '外出'],\n axisLabel: {\n color: \"#fff\"\n },\n axisLine: {\n show: false\n }\n },\n series: [{\n name: \"统计\",\n type: \"bar\",\n barWidth: 30,\n label: {\n show: true,\n formatter: '{c}'\n },\n data: [{\n name: \"已归\",\n value: 0,\n itemStyle: {\n color: \"#67C23A\"\n }\n }, {\n name: \"外出\",\n value: 0,\n itemStyle: {\n color: \"#F56C6C\"\n }\n }]\n }]\n }\n };\n },\n computed: {\n previewList: function previewList() {\n var _this = this;\n\n return this.dataList.map(function (item) {\n return _this.$ImgServerUrl + item.imgUrl;\n });\n }\n },\n created: function created() {\n var _this2 = this;\n\n this.$http.get(\"/system/scdormitoryperson/getOutNum\").then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this2.$message.error(res.msg);\n }\n\n _this2.barOptions.series[0].data[0].value = res.data.backNum;\n _this2.barOptions.series[0].data[1].value = res.data.outNum;\n });\n },\n methods: {}\n};",{"version":3,"sources":["people.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA,OAAA,eAAA,MAAA,sBAAA;AACA,OAAA,OAAA,MAAA,aAAA;AACA,OAAA,uBAAA;AACA,eAAA;AACA,EAAA,IAAA,EAAA,QADA;AAEA,EAAA,MAAA,EAAA,CAAA,eAAA,CAFA;AAGA,EAAA,UAAA,EAAA;AACA,eAAA;AADA,GAHA;AAMA,EAAA,IANA,kBAMA;A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FA,WAJA;AAQA,UAAA,IAAA,EAAA,CACA;AACA,YAAA,IAAA,EAAA,IADA;AAEA,YAAA,KAAA,EAAA,CAFA;AAGA,YAAA,SAAA,EAAA;AACA,cAAA,KAAA,EAAA;AADA;AAHA,WADA,EAQA;AACA,YAAA,IAAA,EAAA,IADA;AAEA,YAAA,KAAA,EAAA,CAFA;AAGA,YAAA,SAAA,EAAA;AACA,cAAA,KAAA,EAAA;AADA;AAHA,WARA;AARA,SADA;AAhCA;AAZA,KAAA;AAyEA,GAhFA;AAiFA,EAAA,QAAA,EAAA;AACA,IAAA,WADA,yBACA;AAAA;;AACA,aAAA,KAAA,QAAA,CAAA,GAAA,CAAA,UAAA,IAAA,EAAA;AACA,eAAA,KAAA,CAAA,aAAA,GAAA,IAAA,CAAA,MAAA;AACA,OAFA,CAAA;AAGA;AALA,GAjFA;AAwFA,EAAA,OAxFA,qBAwFA;AAAA;;AACA,SAAA,KAAA,CAAA,GAAA,CAAA,qCAAA,EAAA,IAAA,CAAA,gBAEA;AAAA,UADA,GACA,QADA,IACA;;AACA,UAAA,GAAA,CAAA,IAAA,KAAA,CAAA,EAAA;AACA,eAAA,MAAA,CAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;;AACA,MAAA,MAAA,CAAA,UAAA,CAAA,MAAA,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,EAAA,KAAA,GAAA,GAAA,CAAA,IAAA,CAAA,OAAA;AACA,MAAA,MAAA,CAAA,UAAA,CAAA,MAAA,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,EAAA,KAAA,GAAA,GAAA,CAAA,IAAA,CAAA,MAAA;AACA,KARA;AASA,GAlGA;AAmGA,EAAA,OAAA,EAAA;AAnGA,CAAA","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill\">\n\t\t<el-row>\n\t\t\t<el-col :span=\"12\">\n\t\t\t\t<el-form :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\" ref=\"ruleForm\">\n\t\t\t\t\t<el-form-item label=\"学号\" prop=\"studentNum\">\n\t\t\t\t\t\t<el-input v-model=\"dataForm.studentNum\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t\t\t</el-form-item>\n\t\t\t\t\t<el-form-item label=\"姓名\" prop=\"name\">\n\t\t\t\t\t\t<el-input v-model=\"dataForm.name\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t\t\t</el-form-item>\n\t\t\t\t\t\t<el-form-item label=\"状态\" prop=\"status\">\n\t\t\t\t\t\t\t<el-select v-model=\"dataForm.status\" placeholder=\"请选择\" clearable>\n\t\t\t\t\t\t\t\t<el-option label=\"已归\" :value=\"0\"></el-option>\n\t\t\t\t\t\t\t\t<el-option label=\"外出\" :value=\"1\"></el-option>\n\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t<!-- <el-input v-model=\"dataForm.status\" placeholder=\"请输入\" clearable></el-input> -->\n\t\t\t\t\t</el-form-item>\n\t\t\t\t\t<el-form-item>\n\t\t\t\t\t\t<el-button @click=\"getDataList()\">{{ $t('query') }}</el-button>\n\t\t\t\t\t</el-form-item>\n\t\t\t\t\t<el-form-item>\n\t\t\t\t\t\t<el-button type=\"warning\" @click=\"resetForm('ruleForm')\">重置</el-button>\n\t\t\t\t\t</el-form-item>\n\t\t\t\t</el-form>\n\t\t\t</el-col>\n\t\t\t<el-col :span=\"12\">\n\t\t\t\t<v-chart :options=\"barOptions\"/>\n\t\t\t</el-col>\n\t\t</el-row>\n\t\n\t\t<el-table v-loading=\"dataListLoading\" :data=\"dataList\">\n\t\t\t<!-- <el-table-column :label=\"'外出'+outTotal+'人'\" align=\"center\"></el-table-column> -->\n\t\t\t\t<el-table-column type=\"index\" label=\"序号\" width=\"100\" align=\"center\"></el-table-column>\n\t\t\t\t<el-table-column prop=\"imgUrl\" label=\"照片\" header-align=\"center\" align=\"center\">\n\t\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t\t<el-image style=\"width: 100px; height: 70px\" :src=\"$ImgServerUrl+scope.row.imgUrl\" fit=\"contain\" :preview-src-list=\"previewList\">\n\t\t\t\t\t\t\t<div slot=\"error\" class=\"image-slot\">\n\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</div>\n\t\t\t\t\t\t</el-image>\n\t\t\t\t\t</template>\n\t\t\t\t</el-table-column>\n\t\t\t\t<el-table-column prop=\"name\" label=\"姓名\" header-align=\"center\" align=\"center\"></el-table-column>\n\t\t\t\t<el-table-column prop=\"studentNum\" label=\"学号\" header-align=\"center\" align=\"center\"></el-table-column>\n\t\t\t\t<el-table-column prop=\"dormitoryNum\" label=\"宿舍号\" header-align=\"center\" align=\"center\">\n\t\t\t\t</el-table-column>\n\t\t\t\t<el-table-column prop=\"status\" label=\"状态\" header-align=\"center\" align=\"center\">\n\t\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t\t<span v-if=\"scope.row.status == 0\" style=\"color:rgb(22, 178, 112);\"> 已归</span>\n\t\t\t\t\t\t<span v-else style=\"color: red;\"> 外出</span>\n\t\t\t\t\t</template>\n\t\t\t\t</el-table-column>\n\t\t\t\t<el-table-column prop=\"outTime\" label=\"外出时间\" header-align=\"center\" align=\"center\"></el-table-column>\n\t\t\t\t<el-table-column prop=\"backTime\" label=\"归来时间\" header-align=\"center\" align=\"center\"></el-table-column>\n\t\t</el-table>\n\t\t<el-pagination :current-page=\"page\" :page-sizes=\"[5,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 mixinViewModule from '@/mixins/view-module'\n\timport ECharts from 'vue-echarts'\n\timport 'echarts/lib/chart/bar'\n\texport default {\n\t\tname: \"people\",\n\t\tmixins: [mixinViewModule],\n\t\tcomponents:{\n\t\t\t'v-chart':ECharts\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tmixinViewModuleOptions: {\n\t\t\t\t\tgetDataListURL: '/system/accessrecords/page',\n\t\t\t\t\tgetDataListIsPage: true,\n\t\t\t\t},\n\t\t\t\tdataForm: {\n\t\t\t\t\tstudentNum: \"\",\n\t\t\t\t\tname: \"\",\n\t\t\t\t\tstatus:\"\"\n\t\t\t\t},\n\t\t\t\tlimit:5,\n\t\t\t\toutTotal: 0,\n\t\t\t\tbarOptions:{\n\t\t\t\t\tcolor:['#FACD91','#95F204'],\n\t\t\t\t\tgrid: {\n\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\tleft: '3%',\n\t\t\t\t\t\tright: '4%',\n\t\t\t\t\t\tbottom: 20,\n\t\t\t\t\t\tcontainLabel: true\n\t\t\t\t\t},\n\t\t\t\t\txAxis:{\n\t\t\t\t\t\ttype:\"value\",\n\t\t\t\t\t\tboundaryGap:[0,0.01],\n\t\t\t\t\t\taxisLabel:{\n\t\t\t\t\t\t\tshow:false,\n\t\t\t\t\t\t},\n\t\t\t\t\t\taxisLine:{\n\t\t\t\t\t\t\tshow:false\n\t\t\t\t\t\t},\n\t\t\t\t\t\tsplitLine:{\n\t\t\t\t\t\t\tshow:false\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tyAxis:{\n\t\t\t\t\t\ttype:\"category\",\n\t\t\t\t\t\tdata:['已归','外出'],\n\t\t\t\t\t\taxisLabel:{\n\t\t\t\t\t\t\tcolor:\"#fff\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\taxisLine:{\n\t\t\t\t\t\t\tshow:false\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tseries:[\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname:\"统计\",\n\t\t\t\t\t\t\ttype:\"bar\",\n\t\t\t\t\t\t\tbarWidth:30,\n\t\t\t\t\t\t\tlabel:{\n\t\t\t\t\t\t\t\tshow:true,\n\t\t\t\t\t\t\t\tformatter:'{c}'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tdata:[\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname:\"已归\",\n\t\t\t\t\t\t\t\t\tvalue:0,\n\t\t\t\t\t\t\t\t\titemStyle:{\n\t\t\t\t\t\t\t\t\t\tcolor:\"#67C23A\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname:\"外出\",\n\t\t\t\t\t\t\t\t\tvalue:0,\n\t\t\t\t\t\t\t\t\titemStyle:{\n\t\t\t\t\t\t\t\t\t\tcolor:\"#F56C6C\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcomputed:{\n\t\t\tpreviewList(){\n\t\t\t\treturn this.dataList.map(item=>{\n\t\t\t\t\treturn this.$ImgServerUrl+item.imgUrl\n\t\t\t\t})\n\t\t\t},\n\t\t},\n\t\tcreated() {\n\t\t\tthis.$http.get(\"/system/scdormitoryperson/getOutNum\").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.barOptions.series[0].data[0].value=res.data.backNum\n\t\t\t\tthis.barOptions.series[0].data[1].value=res.data.outNum\n\t\t\t})\n\t\t},\n\t\tmethods: {\n\t\t\n\t\t}\n\t}\n</script>\n<style scoped lang=\"scss\">\n.el-table {\n .student-img {\n vertical-align: top;\n width: 53px;\n height: 70px;\n }\n}\n.echarts {\n width: 100%;\n height: 120px;\n}\n</style>\n"],"sourceRoot":"src/views/modules/statistics"}]} |