forked from zhurui/management
1 line
9.6 KiB
JSON
1 line
9.6 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\\home-cell-components\\academic-visitor.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\home-cell-components\\academic-visitor.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//\nimport { mapGetters } from \"vuex\";\nexport default {\n data: function data() {\n return {\n dataList: []\n };\n },\n computed: _objectSpread({}, mapGetters(['isFullScreen'])),\n created: function created() {\n this.getVisitorData();\n },\n activated: function activated() {\n var _this = this;\n\n var timer = setInterval(function () {\n _this.getVisitorData();\n }, 10 * 1000);\n this.$once(\"hook:deactivated\", function () {\n clearInterval(timer);\n });\n this.$once(\"hook:destroyed\", function () {\n clearInterval(timer);\n });\n },\n methods: {\n //访客信息\n getVisitorData: function getVisitorData() {\n var _this2 = this;\n\n this.$http.get('/system/index/visitorInformation').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.dataList = res.data.slice(0, 10);\n }).catch(function (err) {});\n },\n routeHandle: function routeHandle(name) {\n sessionStorage.setItem(\"visitorName\", name);\n this.$router.push({\n name: 'visitor-index',\n params: {\n vrName: name\n }\n });\n }\n }\n};",{"version":3,"sources":["academic-visitor.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,SACA,UADA,QAEA,MAFA;AAGA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,QAAA,EAAA;AADA,KAAA;AAGA,GALA;AAMA,EAAA,QAAA,oBACA,UAAA,CAAA,CAAA,cAAA,CAAA,CADA,CANA;AASA,EAAA,OATA,qBASA;AACA,SAAA,cAAA;AACA,GAXA;AAYA,EAAA,SAZA,uBAYA;AAAA;;AACA,QAAA,KAAA,GAAA,WAAA,CAAA,YAAA;AACA,MAAA,KAAA,CAAA,cAAA;AACA,KAFA,EAEA,KAAA,IAFA,CAAA;AAGA,SAAA,KAAA,CAAA,kBAAA,EAAA,YAAA;AACA,MAAA,aAAA,CAAA,KAAA,CAAA;AACA,KAFA;AAGA,SAAA,KAAA,CAAA,gBAAA,EAAA,YAAA;AACA,MAAA,aAAA,CAAA,KAAA,CAAA;AACA,KAFA;AAGA,GAtBA;AAuBA,EAAA,OAAA,EAAA;AACA;AACA,IAAA,cAFA,4BAEA;AAAA;;AACA,WAAA,KAAA,CAAA,GAAA,CAAA,kCAAA,EACA,IADA,CACA,gBAEA;AAAA,YADA,GACA,QADA,IACA;;AACA,YAAA,GAAA,CAAA,IAAA,IAAA,CAAA,EAAA;AACA,iBAAA,MAAA,CAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;;AACA,QAAA,MAAA,CAAA,QAAA,GAAA,GAAA,CAAA,IAAA,CAAA,KAAA,CAAA,CAAA,EAAA,EAAA,CAAA;AACA,OARA,EAQA,KARA,CAQA,UAAA,GAAA,EAAA,CAEA,CAVA;AAWA,KAdA;AAeA,IAAA,WAfA,uBAeA,IAfA,EAeA;AACA,MAAA,cAAA,CAAA,OAAA,CAAA,aAAA,EAAA,IAAA;AACA,WAAA,OAAA,CAAA,IAAA,CAAA;AACA,QAAA,IAAA,EAAA,eADA;AAEA,QAAA,MAAA,EAAA;AACA,UAAA,MAAA,EAAA;AADA;AAFA,OAAA;AAMA;AAvBA;AAvBA,CAAA","sourcesContent":["<template>\n\t<div class=\"academic-visitor\">\n\t\t<div class=\"title\">\n\t\t\t科研楼来访人员\n\t\t\t<div class=\"angle-border left-top-border\"></div>\n\t\t\t<div class=\"angle-border right-top-border\"></div>\n\t\t\t<div class=\"angle-border left-bottom-border\"></div>\n\t\t\t<div class=\"angle-border right-bottom-border\"></div>\n\t\t</div>\n\t\t<div>\n\t\t\t<el-table :data=\"dataList\" style=\"width: 100%\" :height=\"isFullScreen?'456':'300'\">\n\t\t\t\t<el-table-column label=\"照片\" width=\"100\" align=\"center\">\n\t\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t\t<el-image :src=\"$ImgServerUrl+ scope.row.vr_phoneimg\" fit='fill'>\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 label=\"姓名\" show-overflow-tooltip align=\"center\">\n\t\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t\t<el-button type=\"text\" size=\"mini\" @click=\"routeHandle(scope.row.vr_name)\">{{scope.row.vr_name}}</el-button>\n\t\t\t\t\t</template>\n\t\t\t\t</el-table-column>\n\t\t\t\t<el-table-column prop=\"vr_temperature\" label=\"体温(℃)\" width=\"80\" align=\"center\">\n\t\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t\t<span v-if=\"scope.row.vr_temperature<37.3\" style=\"color:#67C23A;\"> {{ scope.row.vr_temperature}}</span>\n\t\t\t\t\t\t<span v-else style=\"color:#f56c6c;\"> {{ scope.row.vr_temperature }}</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=\"floorname\" label=\"访问楼层\" show-overflow-tooltip width=\"100\" align=\"center\">\n\t\t\t\t</el-table-column>\n\t\t\t\t<el-table-column prop=\"vr_vistorbegintime\" label=\"进入时间\" align=\"center\" width=\"100\">\n\t\t\t\t</el-table-column>\n\t\t\t</el-table>\n\t\t</div>\n\t</div>\n</template>\n<script>\nimport {\n\t\tmapGetters\n\t} from \"vuex\";\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tdataList: []\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\t...mapGetters(['isFullScreen']),\n\t\t},\n\t\tcreated() {\n\t\t\tthis.getVisitorData()\n\t\t},\n\t\tactivated() {\n\t\t\tconst timer = setInterval(() => {\n\t\t\t\tthis.getVisitorData();\n\t\t\t}, 10 * 1000);\n\t\t\tthis.$once(\"hook:deactivated\", () => {\n\t\t\t\tclearInterval(timer)\n\t\t\t})\n\t\t\tthis.$once(\"hook:destroyed\", () => {\n\t\t\t\tclearInterval(timer)\n\t\t\t})\n\t\t},\n\t\tmethods: {\n\t\t\t//访客信息\n\t\t\tgetVisitorData() {\n\t\t\t\tthis.$http.get('/system/index/visitorInformation')\n\t\t\t\t\t.then(({\n\t\t\t\t\t\tdata: res\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tif (res.code != 0) {\n\t\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.dataList = res.data.slice(0,10)\n\t\t\t\t\t}).catch(err => {\n\n\t\t\t\t\t})\n\t\t\t},\n\t\t\trouteHandle(name) {\n\t\t\t\tsessionStorage.setItem(\"visitorName\", name)\n\t\t\t\tthis.$router.push({\n\t\t\t\t\tname: 'visitor-index',\n\t\t\t\t\tparams:{\n\t\t\t\t\t\tvrName:name\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style scoped lang=\"scss\">\n\t.academic-visitor {\n\t\tcolor: #FFF;\n\n\t\t.el-image {\n\t\t\twidth: 40px;\n\t\t\theight: 50px;\n\t\t}\n\n\t\t.title {\n\t\t\tfont-size: 18px;\n\t\t\tline-height: 36px;\n\t\t\tbackground-color: #133C6F;\n\t\t\twidth: 156px;\n\t\t\ttext-align: center;\n\t\t\tposition: relative;\n\t\t\tcolor: #fff;\n\t\t\tmargin-bottom: 20px;\n\n\t\t\t.angle-border {\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 12px;\n\t\t\t\theight: 12px;\n\t\t\t}\n\n\t\t\t.left-top-border {\n\t\t\t\ttop: -6px;\n\t\t\t\tleft: -6px;\n\t\t\t\tborder-left: 1px solid #01FFFF;\n\t\t\t\tborder-top: 1px solid #01FFFF;\n\t\t\t}\n\n\t\t\t.right-top-border {\n\t\t\t\ttop: -6px;\n\t\t\t\tright: -6px;\n\t\t\t\tborder-right: 1px solid #01FFFF;\n\t\t\t\tborder-top: 1px solid #01FFFF;\n\t\t\t}\n\n\t\t\t.left-bottom-border {\n\t\t\t\tbottom: -6px;\n\t\t\t\tleft: -6px;\n\t\t\t\tborder-left: 1px solid #01FFFF;\n\t\t\t\tborder-bottom: 1px solid #01FFFF;\n\t\t\t}\n\n\t\t\t.right-bottom-border {\n\t\t\t\tbottom: -6px;\n\t\t\t\tright: -6px;\n\t\t\t\tborder-right: 1px solid #01FFFF;\n\t\t\t\tborder-bottom: 1px solid #01FFFF;\n\t\t\t}\n\t\t}\n\n\t\t.student-img {\n\t\t\twidth: 50px;\n\t\t\theight: 50px;\n\t\t}\n\n\t\t/deep/ .el-table__body-wrapper::-webkit-scrollbar {\n\t\t\twidth: 6px; // 横向滚动条\n\t\t\theight: 6px; // 纵向滚动条 必写\n\t\t}\n\n\t\t// 滚动条的滑块\n\t\t/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {\n\t\t\tbackground-color: #555;\n\t\t\tborder-radius: 3px;\n\t\t}\n\t}\n</style>\n"],"sourceRoot":"src/views/modules/home-cell-components"}]} |