1 line
16 KiB
JSON
1 line
16 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\\accessRecord.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\statistics\\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":["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//\n//\n//\n//\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 { getDictLabel, getDictDataList } from '@/utils';\nexport default {\n mixins: [mixinViewModule],\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/scfaceverification/page',\n getDataListIsPage: true\n },\n equipStatusList: getDictDataList('equipment_status'),\n limit: 6,\n time: [],\n eqList: [],\n dataForm: {\n aeId: '',\n state: '',\n recognitionName: '',\n startDate: '',\n endDate: '',\n type: 1,\n // 1教学楼;2宿舍\n no: ''\n }\n };\n },\n watch: {\n time: {\n deep: true,\n handler: function handler(newval) {\n if (newval && newval.length) {\n this.dataForm.startDate = newval[0];\n this.dataForm.endDate = newval[1];\n } else {\n this.dataForm.startDate = '';\n this.dataForm.endDate = '';\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.imageUrl;\n });\n }\n },\n created: function created() {\n this.getEquipList();\n },\n activated: function activated() {//let params = this.$route.params;\t\n },\n methods: {\n pushFun: function pushFun() {\n var params = this.$route.params;\n /* // 设备管理-8寸闸机设备\n let aeId = window.sessionStorage.getItem('access_record_aeid');\n // 首页温度预警跳转(安保人员)\n let tempName = window.sessionStorage.getItem('tempName');\n // 首页通行人员跳转(宿管人员)\n let peerName = window.sessionStorage.getItem('peerName');\n if (aeId) {\n \twindow.sessionStorage.removeItem('access_record_aeid');\n \tthis.dataForm.aeId = aeId;\n \tthis.search();\n }\n if (tempName) {\n \twindow.sessionStorage.removeItem('tempName');\n \tthis.dataForm.recognitionName = tempName;\n \tthis.search();\n }\n if (peerName) {\n \twindow.sessionStorage.removeItem('peerName');\n \tthis.dataForm.recognitionName = peerName;\n \tthis.search();\n } */\n },\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/scfaceverification/export?\").concat(params);\n },\n search: function search() {\n this.page = 1;\n this.query();\n },\n resetSearch: function resetSearch() {\n this.dataForm = {\n state: '',\n recognitionName: '',\n startDate: '',\n endDate: '',\n type: 1\n };\n this.time = [];\n this.query();\n },\n getEquipList: function getEquipList() {\n var _this2 = this;\n\n this.$http({\n url: \"/system/scaidooreight/getAll\",\n method: \"get\"\n }).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code != 0) {\n return _this2.$message(res.msg);\n }\n\n _this2.eqList = res.data;\n });\n }\n }\n};",{"version":3,"sources":["accessRecord.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEA,OAAA,EAAA,MAAA,IAAA;AACA,OAAA,OAAA,MAAA,WAAA;AACA,OAAA,eAAA,MAAA,sBAAA;AACA,SACA,YADA,EAEA,eAFA,QAGA,SAHA;AAIA,eAAA;AACA,EAAA,MAAA,EAAA,CAAA,eAAA,CADA;AAEA,EAA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AA,MAAA,GAAA,GAAA,CAAA,IAAA;AACA,OAVA;AAWA;AAnEA;AApDA,CAAA","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 start-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 @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: 1, // 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/getAll\",\n\t\t\t\t\tmethod: \"get\"\n\t\t\t\t}).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(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"],"sourceRoot":"src/views/modules/statistics"}]} |