forked from zhurui/management
1 line
13 KiB
JSON
1 line
13 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\\dormitoryManage\\accessRecord.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\dormitoryManage\\accessRecord.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//\n//\n\nimport qs from 'qs'\nimport Cookies from 'js-cookie'\nimport mixinViewModule from '@/mixins/view-module'\nimport {\n\tgetDictLabel,\n\tgetDictDataList\n} from '@/utils'\nexport default {\n\tmixins: [mixinViewModule],\n\tdata() {\n\t\treturn {\n\t\t\tmixinViewModuleOptions: {\n\t\t\t\tgetDataListURL: '/system/scfaceverification/page',\n\t\t\t\tgetDataListIsPage: true,\n\t\t\t},\n\t\t\tequipStatusList: getDictDataList('equipment_status'),\n\t\t\tlimit: 6,\n\t\t\ttime: [],\n\t\t\teqList: [],\n\t\t\tdataForm: {\n\t\t\t\taeId: '',\n\t\t\t\tstate: '',\n\t\t\t\trecognitionName: '',\n\t\t\t\tstartDate: '',\n\t\t\t\tendDate: '',\n\t\t\t\ttype: 2, // 1教学楼;2宿舍\n\t\t\t\tno:''\n\t\t\t},\n\t\t}\n\t},\n\twatch: {\n\t\ttime: {\n\t\t\tdeep: true,\n\t\t\thandler(newval) {\n\t\t\t\tif (newval && newval.length) {\n\t\t\t\t\tthis.dataForm.startDate = newval[0];\n\t\t\t\t\tthis.dataForm.endDate = newval[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\n\t},\n\tcomputed: {\n\t\tpreviewList() {\n\t\t\treturn this.dataList.map(item => {\n\t\t\t\treturn this.$ImgServerUrl + item.imageUrl\n\t\t\t})\n\t\t},\n\t},\n\tcreated() {\n\t\tthis.getEquipList()\n\n\t},\n\tactivated() {\n\t\t//let params = this.$route.params;\t\n\t},\n\tmethods: {\n\t\tpushFun(){\n\t\t\tlet params = this.$route.params;\n\t\t\t/* // 设备管理-8寸闸机设备\n\t\t\tlet aeId = window.sessionStorage.getItem('access_record_aeid');\n\t\t\t// 首页温度预警跳转(安保人员)\n\t\t\tlet tempName = window.sessionStorage.getItem('tempName');\n\t\t\t// 首页通行人员跳转(宿管人员)\n\t\t\tlet peerName = window.sessionStorage.getItem('peerName');\n\t\t\tif (aeId) {\n\t\t\t\twindow.sessionStorage.removeItem('access_record_aeid');\n\t\t\t\tthis.dataForm.aeId = aeId;\n\t\t\t\tthis.search();\n\t\t\t}\n\t\t\tif (tempName) {\n\t\t\t\twindow.sessionStorage.removeItem('tempName');\n\t\t\t\tthis.dataForm.recognitionName = tempName;\n\t\t\t\tthis.search();\n\t\t\t}\n\t\t\tif (peerName) {\n\t\t\t\twindow.sessionStorage.removeItem('peerName');\n\t\t\t\tthis.dataForm.recognitionName = peerName;\n\t\t\t\tthis.search();\n\t\t\t} */\n\t\t},\n\t\t// 导出\n\t\texportHandle() {\n\t\t\tif (this.dataList.length === 0) {\n\t\t\t\treturn this.$message.info(\"报表暂无数据\")\n\t\t\t}\n\t\t\tvar params = qs.stringify({\n\t\t\t\t'access_token': Cookies.get('access_token'),\n\t\t\t\t...this.dataForm,\n\t\t\t\t...{\n\t\t\t\t\tpage: this.page,\n\t\t\t\t\tlimit: this.limit\n\t\t\t\t}\n\t\t\t})\n\t\t\twindow.location.href = `${window.SITE_CONFIG['apiURL']}/system/scfaceverification/export?${params}`\n\t\t},\n\t\tsearch() {\n\t\t\tthis.page = 1;\n\t\t\tthis.query();\n\t\t},\n\t\tresetSearch() {\n\t\t\tthis.dataForm = {\n\t\t\t\tstate: '',\n\t\t\t\trecognitionName: '',\n\t\t\t\tstartDate: '',\n\t\t\t\tendDate: '',\n\t\t\t\ttype: 1,\n\t\t\t}\n\t\t\tthis.time = [];\n\t\t\tthis.query()\n\t\t},\n\t\tgetEquipList() {\n\t\t\tthis.$http({\n\t\t\t\turl: \"/system/scaidooreight/getAllByType/3\",\n\t\t\t\tmethod: \"get\"\n\t\t\t}).then(({\n\t\t\t\t\t\t data: res\n\t\t\t\t\t }) => {\n\t\t\t\tif (res.code != 0) {\n\t\t\t\t\treturn this.$message(res.msg)\n\t\t\t\t}\n\t\t\t\tthis.eqList = res.data\n\t\t\t})\n\t\t}\n\t}\n}\n",{"version":3,"sources":["accessRecord.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEA;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;;AAEA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"accessRecord.vue","sourceRoot":"src/views/modules/dormitoryManage","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill\">\n\t\t<el-form ref=\"ruleForm\" :model=\"dataForm\" label-width=\"80px\" inline>\n\t\t\t<el-form-item label=\"姓名\" prop=\"recognitionName\">\n\t\t\t\t<el-input v-model=\"dataForm.recognitionName\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"工号/学号\" prop=\"no\">\n\t\t\t\t<el-input v-model=\"dataForm.no\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"设备名称\" prop=\"aeId\">\n\t\t\t\t<el-select v-model=\"dataForm.aeId\" placeholder=\"请选择\" clearable filterable>\n\t\t\t\t\t<el-option v-for=\"item in eqList\" :key=\"item.aeId\" :label=\"item.aeDevicename\" :value=\"item.aeId\">\n\t\t\t\t\t</el-option>\n\t\t\t\t</el-select>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"时间\" prop=\"time\">\n\t\t\t\t<el-date-picker clearable v-model=\"time\" value-format=\"yyyy-MM-dd HH:mm:ss\" type=\"datetimerange\" range-separator=\"至\"\n\t\t\t\t\t\t\t\tstart-placeholder=\"开始日期\" end-placeholder=\"结束日期\"></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=\"search\">查询</el-button>\n\t\t\t\t<el-button type=\"warning\" @click=\"resetSearch\">重置</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\">\n\t\t\t<el-table-column type=\"index\" label=\"序号\" width=\"100\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"imageUrl\" label=\"照片\" width=\"120\" 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.imageUrl\" :preview-src-list=\"[$ImgServerUrl + scope.row.imageUrl]\">\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=\"recognitionName\" label=\"姓名\" width=\"120\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"aeDevicename\" label=\"设备名称\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"recordType\" label=\"记录类型\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t{{scope.row.recordType==1?'刷脸记录':'刷IC卡记录'}}\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"verificationType\" label=\"签到类型\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<span v-if=\"scope.row.verificationType==1\" style=\"color:#67C23A;\" class=\"el-icon-d-arrow-right\"> {{ $getDictLabel(\"accessEquipType\", scope.row.verificationType) }}</span>\n\t\t\t\t\t<span v-else style=\"color:#f56c6c;\" class=\"el-icon-d-arrow-left\"> {{ $getDictLabel(\"accessEquipType\", scope.row.verificationType) }}</span>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<!-- <el-table-column prop=\"icCardNo\" label=\"IC卡号\" align=\"center\"></el-table-column> -->\n\t\t\t<el-table-column prop=\"temperature\" label=\"体温(℃)\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<span style=\"color:#f56c6c;\" v-if=\"scope.row.temperature>=37.3\">{{scope.row.temperature}}</span>\n\t\t\t\t\t\t<span style=\"color:#67C23A;\" v-else>{{scope.row.temperature}}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"createDate\" label=\"签到时间\" align=\"center\"></el-table-column>\n\t\t</el-table>\n\t\t<el-pagination :current-page=\"page\" :page-sizes=\"[6, 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</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\timport {\n\t\tgetDictLabel,\n\t\tgetDictDataList\n\t} from '@/utils'\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/scfaceverification/page',\n\t\t\t\t\tgetDataListIsPage: true,\n\t\t\t\t},\n\t\t\t\tequipStatusList: getDictDataList('equipment_status'),\n\t\t\t\tlimit: 6,\n\t\t\t\ttime: [],\n\t\t\t\teqList: [],\n\t\t\t\tdataForm: {\n\t\t\t\t\taeId: '',\n\t\t\t\t\tstate: '',\n\t\t\t\t\trecognitionName: '',\n\t\t\t\t\tstartDate: '',\n\t\t\t\t\tendDate: '',\n\t\t\t\t\ttype: 2, // 1教学楼;2宿舍\n\t\t\t\t\tno:''\n\t\t\t\t},\n\t\t\t}\n\t\t},\n\t\twatch: {\n\t\t\ttime: {\n\t\t\t\tdeep: true,\n\t\t\t\thandler(newval) {\n\t\t\t\t\tif (newval && newval.length) {\n\t\t\t\t\t\tthis.dataForm.startDate = newval[0];\n\t\t\t\t\t\tthis.dataForm.endDate = newval[1];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.dataForm.startDate = '';\n\t\t\t\t\t\tthis.dataForm.endDate = '';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\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.imageUrl\n\t\t\t\t})\n\t\t\t},\n\t\t},\n\t\tcreated() {\n\t\t\tthis.getEquipList()\n\n\t\t},\n\t\tactivated() {\n\t\t\t//let params = this.$route.params;\t\n\t\t},\n\t\tmethods: {\n\t\t\tpushFun(){\n\t\t\t\tlet params = this.$route.params;\n\t\t\t\t/* // 设备管理-8寸闸机设备\n\t\t\t\tlet aeId = window.sessionStorage.getItem('access_record_aeid');\n\t\t\t\t// 首页温度预警跳转(安保人员)\n\t\t\t\tlet tempName = window.sessionStorage.getItem('tempName');\n\t\t\t\t// 首页通行人员跳转(宿管人员)\n\t\t\t\tlet peerName = window.sessionStorage.getItem('peerName');\n\t\t\t\tif (aeId) {\n\t\t\t\t\twindow.sessionStorage.removeItem('access_record_aeid');\n\t\t\t\t\tthis.dataForm.aeId = aeId;\n\t\t\t\t\tthis.search();\n\t\t\t\t}\n\t\t\t\tif (tempName) {\n\t\t\t\t\twindow.sessionStorage.removeItem('tempName');\n\t\t\t\t\tthis.dataForm.recognitionName = tempName;\n\t\t\t\t\tthis.search();\n\t\t\t\t}\n\t\t\t\tif (peerName) {\n\t\t\t\t\twindow.sessionStorage.removeItem('peerName');\n\t\t\t\t\tthis.dataForm.recognitionName = peerName;\n\t\t\t\t\tthis.search();\n\t\t\t\t} */\n\t\t\t},\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/scfaceverification/export?${params}`\n\t\t\t},\n\t\t\tsearch() {\n\t\t\t\tthis.page = 1;\n\t\t\t\tthis.query();\n\t\t\t},\n\t\t\tresetSearch() {\n\t\t\t\tthis.dataForm = {\n\t\t\t\t\tstate: '',\n\t\t\t\t\trecognitionName: '',\n\t\t\t\t\tstartDate: '',\n\t\t\t\t\tendDate: '',\n\t\t\t\t\ttype: 1,\n\t\t\t\t}\n\t\t\t\tthis.time = [];\n\t\t\t\tthis.query()\n\t\t\t},\n\t\t\tgetEquipList() {\n\t\t\t\tthis.$http({\n\t\t\t\t\turl: \"/system/scaidooreight/getAllByType/3\",\n\t\t\t\t\tmethod: \"get\"\n\t\t\t\t}).then(({\n\t\t\t\t\t\t\t data: res\n\t\t\t\t\t\t }) => {\n\t\t\t\t\tif (res.code != 0) {\n\t\t\t\t\t\treturn this.$message(res.msg)\n\t\t\t\t\t}\n\t\t\t\t\tthis.eqList = res.data\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n</script>\n<style lang=\"scss\" scoped>\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</style>\n"]}]} |