management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/4944af5bc37f6a62e8b34ccdc62...

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\\equipmentManage\\other-five-face.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\other-five-face.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 { getDictDataList } from \"@/utils\";\nexport default {\n props: {\n aeids: {\n type: Array,\n default: []\n }\n },\n data: function data() {\n return {\n loading: false,\n dialogVisible: false,\n dataForm: {\n type: 1,\n name: '',\n scStuname: '',\n //学生姓名\n scWaname: '',\n //职工信息\n vrName: '' //访客姓名\n\n },\n total: 0,\n pageInfo: {\n page: 1,\n limit: 10\n },\n checkedList: [],\n dataList: [],\n personTypeList: [{\n dictLabel: \"学生\",\n dictValue: 1\n }, {\n dictLabel: \"职工\",\n dictValue: 2\n }, {\n dictLabel: \"访客\",\n dictValue: 3\n }]\n };\n },\n watch: {\n 'dataForm.name': function dataFormName(val) {\n this.dataForm.scStuname = val; //学生姓名\n\n this.dataForm.scWaname = val; //职工信息\n\n this.dataForm.vrName = val; //访客姓名\n }\n },\n computed: {\n httpUrl: function httpUrl() {\n var urlList = [\"/system/scstudents/page\", \"/system/scworkersarchives/page\", \"/system/scvisitorrecord/page\"];\n return urlList[this.dataForm.type - 1];\n },\n previewList: function previewList() {\n return this.dataList.map(function (item) {\n return item.imgUrl;\n });\n },\n userids: function userids() {\n return this.checkedList.map(function (item) {\n return item.id;\n });\n }\n },\n methods: {\n init: function init() {\n this.dialogVisible = true;\n this.dataForm.name = '';\n this.pageInfo.page = 1;\n this.query();\n },\n search: function search() {\n this.pageInfo.page = 1;\n this.query();\n },\n query: function query() {\n var _this = this;\n\n this.$http({\n url: this.httpUrl,\n method: \"get\",\n params: _objectSpread({}, this.dataForm, {}, this.pageInfo)\n }).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code != 0) {\n return _this.$messsage.error(res.msg);\n }\n\n _this.total = res.data.total;\n var baseurl = _this.$ImgServerUrl;\n _this.dataList = res.data.list.map(function (item) {\n return {\n name: item.scStuname || item.scWaname || item.vrName,\n imgUrl: baseurl + (item.scPhotoimg || item.vrPhoneimg),\n id: item.scStdid || item.scWaid || item.vrId\n };\n });\n });\n },\n sendFace: function sendFace() {\n var _this2 = this;\n\n if (this.checkedList.length == 0) {\n return this.$message.warning(\"\\u8BF7\\u52FE\\u9009\\u9700\\u8981\\u4E0B\\u53D1\\u4EBA\\u8138\\u7167\\u7247\\u7684\\u8BBE\\u5907\");\n }\n\n this.loading = true;\n this.$http({\n url: \"/system/fvscdevice/saveEqToFaceTwo\",\n method: \"post\",\n timeout: 0,\n data: {\n fiveDoors: this.aeids,\n ids: this.userids\n }\n }).then(function (_ref2) {\n var res = _ref2.data;\n _this2.loading = false;\n\n if (res.code != 0) {\n return _this2.$message.error(res.msg);\n }\n\n _this2.$message.warning(\"正在下发中...\");\n\n _this2.$message.success('所选人员已下发到指定设备');\n\n _this2.$parent.$parent.query();\n });\n },\n handleSelectionChange: function handleSelectionChange(data) {\n this.checkedList = data;\n },\n pageSizeChangeHandle: function pageSizeChangeHandle(size) {\n this.pageInfo.limit = size;\n this.query();\n },\n pageCurrentChangeHandle: function pageCurrentChangeHandle(page) {\n this.pageInfo.page = page;\n this.query();\n }\n }\n};",{"version":3,"sources":["other-five-face.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,SACA,eADA,QAEA,SAFA;AAGA,eAAA;AACA,EAAA,KAAA,EAAA;AACA,IAAA,KAAA,EAAA;AACA,M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EA;AACA,WAAA,QAAA,CAAA,IAAA,GAAA,IAAA;AACA,WAAA,KAAA;AACA;AAzEA;AA7DA,CAAA","sourcesContent":["<template>\n\t<el-dialog title=\"下发\" width=\"600px\" :visible.sync=\"dialogVisible\" :close-on-click-modal=\"false\">\n\t\t<div>\n\t\t\t<el-form ref=\"form\" :model=\"dataForm\" label-width=\"80px\" inline>\n\t\t\t\t<el-form-item label=\"人员类型\">\n\t\t\t\t\t<el-select v-model=\"dataForm.type\" placeholder=\"请选择\" @change=\"search\">\n\t\t\t\t\t\t<el-option v-for=\"item in personTypeList\" :key=\"item.dictLabel\" :label=\"item.dictLabel\" :value=\"item.dictValue\">\n\t\t\t\t\t\t</el-option>\n\t\t\t\t\t</el-select>\n\t\t\t\t</el-form-item>\n\t\t\t\t<el-form-item label=\"姓名\">\n\t\t\t\t\t<el-input v-model=\"dataForm.name\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t\t</el-form-item>\n\t\t\t\t<el-form-item>\n\t\t\t\t\t<el-button @click=\"search\">查询</el-button>\n\t\t\t\t\t<el-button type=\"success\" @click=\"sendFace\" :loading=\"loading\">下发选中</el-button>\n\t\t\t\t</el-form-item>\n\n\n\t\t\t</el-form>\n\t\t\t<el-table :data=\"dataList\" @selection-change=\"handleSelectionChange\" height=\"50vh\">\n\t\t\t\t<el-table-column type=\"selection\" width=\"60\" align=\"center\"></el-table-column>\n\t\t\t\t<el-table-column prop=\"imgUrl\" label=\"照片\" width=\"200\">\n\t\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t\t<el-image class=\"student-img\" :src=\"scope.row.imgUrl\" :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=\"姓名\"></el-table-column>\n\t\t\t</el-table>\n\t\t\t<el-pagination small :current-page=\"pageInfo.page\" :page-sizes=\"[10, 20, 50, 1000]\" :page-size=\"pageInfo.limit\"\n\t\t\t :total=\"total\" layout=\"total, sizes, prev, pager, next, jumper\" @size-change=\"pageSizeChangeHandle\" @current-change=\"pageCurrentChangeHandle\">\n\t\t\t</el-pagination>\n\t\t</div>\n\t</el-dialog>\n</template>\n<script>\n\timport {\n\t\tgetDictDataList\n\t} from \"@/utils\";\n\texport default {\n\t\tprops: {\n\t\t\taeids: {\n\t\t\t\ttype: Array,\n\t\t\t\tdefault: []\n\t\t\t},\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tloading:false,\n\t\t\t\tdialogVisible: false,\n\t\t\t\tdataForm: {\n\t\t\t\t\ttype: 1,\n\t\t\t\t\tname: '',\n\t\t\t\t\tscStuname: '', //学生姓名\n\t\t\t\t\tscWaname: '', //职工信息\n\t\t\t\t\tvrName: '', //访客姓名\n\t\t\t\t},\n\t\t\t\ttotal: 0,\n\t\t\t\tpageInfo: {\n\t\t\t\t\tpage: 1,\n\t\t\t\t\tlimit: 10\n\t\t\t\t},\n\t\t\t\tcheckedList: [],\n\t\t\t\tdataList: [],\n\t\t\t\tpersonTypeList: [{\n\t\t\t\t\t\tdictLabel: \"学生\",\n\t\t\t\t\t\tdictValue: 1\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdictLabel: \"职工\",\n\t\t\t\t\t\tdictValue: 2\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdictLabel: \"访客\",\n\t\t\t\t\t\tdictValue: 3\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t};\n\t\t},\n\t\twatch: {\n\t\t\t'dataForm.name'(val) {\n\t\t\t\tthis.dataForm.scStuname = val; //学生姓名\n\t\t\t\tthis.dataForm.scWaname = val; //职工信息\n\t\t\t\tthis.dataForm.vrName = val; //访客姓名\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\thttpUrl() {\n\t\t\t\tconst urlList = [\"/system/scstudents/page\", \"/system/scworkersarchives/page\", \"/system/scvisitorrecord/page\"];\n\t\t\t\treturn urlList[this.dataForm.type - 1]\n\t\t\t},\n\t\t\tpreviewList() {\n\t\t\t\treturn this.dataList.map(item => {\n\t\t\t\t\treturn item.imgUrl\n\t\t\t\t})\n\t\t\t},\n\t\t\tuserids() {\n\t\t\t\treturn this.checkedList.map(item => item.id)\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tinit() {\n\t\t\t\tthis.dialogVisible = true;\n\t\t\t\tthis.dataForm.name = '';\n\t\t\t\tthis.pageInfo.page = 1;\n\t\t\t\tthis.query();\n\t\t\t},\n\t\t\tsearch() {\n\t\t\t\tthis.pageInfo.page = 1;\n\t\t\t\tthis.query();\n\t\t\t},\n\t\t\tquery() {\n\t\t\t\tthis.$http({\n\t\t\t\t\turl: this.httpUrl,\n\t\t\t\t\tmethod: \"get\",\n\t\t\t\t\tparams: {\n\t\t\t\t\t\t// scState:1,\n\t\t\t\t\t\t...this.dataForm,\n\t\t\t\t\t\t...this.pageInfo\n\t\t\t\t\t}\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.$messsage.error(res.msg)\n\t\t\t\t\t}\n\t\t\t\t\tthis.total = res.data.total;\n\t\t\t\t\tlet baseurl = this.$ImgServerUrl;\n\t\t\t\t\tthis.dataList = res.data.list.map(item => {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tname: item.scStuname || item.scWaname || item.vrName,\n\t\t\t\t\t\t\timgUrl: baseurl + (item.scPhotoimg || item.vrPhoneimg),\n\t\t\t\t\t\t\tid: item.scStdid || item.scWaid || item.vrId\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\tsendFace() {\n\t\t\t\tif (this.checkedList.length == 0) {\n\t\t\t\t\treturn this.$message.warning(`请勾选需要下发人脸照片的设备`)\n\t\t\t\t}\n\t\t\t\tthis.loading = true\n\t\t\t\tthis.$http({\n\t\t\t\t\turl: \"/system/fvscdevice/saveEqToFaceTwo\",\n\t\t\t\t\tmethod: \"post\",\n\t\t\t\t\ttimeout: 0,\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tfiveDoors: this.aeids,\n\t\t\t\t\t\tids: this.userids,\n\t\t\t\t\t}\n\t\t\t\t}).then(({\n\t\t\t\t\tdata: res\n\t\t\t\t}) => {\n\t\t\t\t\tthis.loading = false\n\t\t\t\t\tif (res.code != 0) {\n\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.$message.warning(\"正在下发中...\")\n\t\t\t\t\tthis.$message.success('所选人员已下发到指定设备')\n\t\t\t\t\tthis.$parent.$parent.query();\n\t\t\t\t})\n\t\t\t},\n\t\t\thandleSelectionChange(data) {\n\t\t\t\tthis.checkedList = data;\n\t\t\t},\n\t\t\tpageSizeChangeHandle(size) {\n\t\t\t\tthis.pageInfo.limit = size;\n\t\t\t\tthis.query()\n\t\t\t},\n\t\t\tpageCurrentChangeHandle(page) {\n\t\t\t\tthis.pageInfo.page = page;\n\t\t\t\tthis.query()\n\t\t\t},\n\t\t},\n\t};\n</script>\n<style lang=\"scss\" scoped>\n\t.el-dialog {\n\t\t.el-button {\n\t\t\tmargin-left: 20px;\n\t\t}\n\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/equipmentManage"}]}