1 line
12 KiB
JSON
1 line
12 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\\equipmentManage\\access-send-face.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\access-send-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":["//\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 {\n\tgetDictDataList\n} from \"@/utils\";\nexport default {\n\tprops: {\n\t\taeids: {\n\t\t\ttype: Array,\n\t\t\tdefault: []\n\t\t},\n\t\taccessType: {\n\t\t\ttype: String,\n\t\t\tdefault: \"\"\n\t\t}\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tdialogVisible: false,\n\t\t\tdataForm: {\n\t\t\t\ttype: 1,\n\t\t\t\tname: '',\n\t\t\t\tscStuname: '', //学生姓名\n\t\t\t\tscWaname: '', //职工信息\n\t\t\t\tvrName: '', //访客姓名\n\t\t\t},\n\t\t\ttotal: 0,\n\t\t\tpageInfo: {\n\t\t\t\tpage: 1,\n\t\t\t\tlimit: 10\n\t\t\t},\n\t\t\tcheckedList: [],\n\t\t\tdataList: [],\n\t\t\tpersonTypeList: [{\n\t\t\t\t\tdictLabel: \"学生\",\n\t\t\t\t\tdictValue: 1\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tdictLabel: \"职工\",\n\t\t\t\t\tdictValue: 2\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tdictLabel: \"访客\",\n\t\t\t\t\tdictValue: 3\n\t\t\t\t}\n\t\t\t],\n\t\t};\n\t},\n\twatch: {\n\t\t'dataForm.name'(val) {\n\t\t\tthis.dataForm.scStuname = val; //学生姓名\n\t\t\tthis.dataForm.scWaname = val; //职工信息\n\t\t\tthis.dataForm.vrName = val; //访客姓名\n\t\t}\n\t},\n\tcomputed: {\n\t\thttpUrl() {\n\t\t\tconst urlList = [\"/system/scstudents/page\", \"/system/scworkersarchives/page\", \"/system/scvisitorrecord/page\"];\n\t\t\treturn urlList[this.dataForm.type - 1]\n\t\t},\n\t\tpreviewList() {\n\t\t\treturn this.dataList.map(item => {\n\t\t\t\treturn item.imgUrl\n\t\t\t})\n\t\t},\n\t\tuserids() {\n\t\t\treturn this.checkedList.map(item => item.id)\n\t\t}\n\t},\n\tmethods: {\n\t\tinit() {\n\t\t\tthis.dialogVisible = true;\n\t\t\tthis.dataForm.name = '';\n\t\t\tthis.pageInfo.page = 1;\n\t\t\tthis.query();\n\t\t},\n\t\tsearch() {\n\t\t\tthis.pageInfo.page = 1;\n\t\t\tthis.query();\n\t\t},\n\t\tquery() {\n\t\t\tthis.$http({\n\t\t\t\turl: this.httpUrl,\n\t\t\t\tmethod: \"get\",\n\t\t\t\tparams: {\n\t\t\t\t\t// scState:1,\n\t\t\t\t\t...this.dataForm,\n\t\t\t\t\t...this.pageInfo\n\t\t\t\t}\n\t\t\t}).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.$messsage.error(res.msg)\n\t\t\t\t}\n\t\t\t\tthis.total = res.data.total;\n\t\t\t\tlet baseurl = this.$ImgServerUrl;\n\t\t\t\tthis.dataList = res.data.list.map(item => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tname: item.scStuname || item.scWaname || item.vrName,\n\t\t\t\t\t\timgUrl: baseurl + (item.scPhotoimg || item.vrPhoneimg),\n\t\t\t\t\t\tid: item.scStdid || item.scWaid || item.vrId\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t})\n\t\t},\n\t\tsendFace() {\n\n\t\t\t// console.log({\n\t\t\t// \tfiveDoors: this.aeids,\n\t\t\t// \tids: this.userids,\n\t\t\t// })\n\t\t\t// return\n\n\n\n\t\t\tif (this.checkedList.length == 0) {\n\t\t\t\treturn this.$message.warning(`请勾选需要变更密码的设备`)\n\t\t\t}\n\t\t\tthis.$http(this.accessType === \"eight\" ? {\n\t\t\t\turl: \"/system/scaidooreight/transfacelisttodoor\",\n\t\t\t\tmethod: \"post\",\n\t\t\t\ttimeout: 0,\n\t\t\t\tdata: {\n\t\t\t\t\taeids: this.aeids,\n\t\t\t\t\tuserids: this.userids,\n\t\t\t\t\tusertype: this.dataForm.type\n\t\t\t\t}\n\t\t\t} : {\n\t\t\t\turl: \"/system/fvscdevice/saveEqToFace\",\n\t\t\t\tmethod: \"post\",\n\t\t\t\ttimeout: 0,\n\t\t\t\tdata: {\n\t\t\t\t\tfiveDoors: this.aeids,\n\t\t\t\t\tids: this.userids,\n\t\t\t\t\t// userids: this.userids,\n\t\t\t\t\t// usertype: this.dataForm.type\n\t\t\t\t}\n\t\t\t}).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.$message.warning(\"正在下发中...\")\n\t\t\t\t// this.$message.success('所选人员已下发到指定设备')\n\t\t\t\t// this.$parent.$parent.query();\n\t\t\t})\n\t\t},\n\t\thandleSelectionChange(data) {\n\t\t\tthis.checkedList = data;\n\t\t},\n\t\tpageSizeChangeHandle(size) {\n\t\t\tthis.pageInfo.limit = size;\n\t\t\tthis.query()\n\t\t},\n\t\tpageCurrentChangeHandle(page) {\n\t\t\tthis.pageInfo.page = page;\n\t\t\tthis.query()\n\t\t},\n\t},\n};\n",{"version":3,"sources":["access-send-face.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA;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;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;;;;AAIA;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":"access-send-face.vue","sourceRoot":"src/views/modules/equipmentManage","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=\"人员类型\" v-if=\"accessType==='eight'\">\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\">下发选中</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\taccessType: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: \"\"\n\t\t\t}\n\t\t},\n\t\tdata() {\n\t\t\treturn {\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\n\t\t\t\t// console.log({\n\t\t\t\t// \tfiveDoors: this.aeids,\n\t\t\t\t// \tids: this.userids,\n\t\t\t\t// })\n\t\t\t\t// return\n\n\n\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.$http(this.accessType === \"eight\" ? {\n\t\t\t\t\turl: \"/system/scaidooreight/transfacelisttodoor\",\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\taeids: this.aeids,\n\t\t\t\t\t\tuserids: this.userids,\n\t\t\t\t\t\tusertype: this.dataForm.type\n\t\t\t\t\t}\n\t\t\t\t} : {\n\t\t\t\t\turl: \"/system/fvscdevice/saveEqToFace\",\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\t// userids: this.userids,\n\t\t\t\t\t\t// usertype: this.dataForm.type\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.$message.error(res.msg)\n\t\t\t\t\t}\n\t\t\t\t\tthis.$message.warning(\"正在下发中...\")\n\t\t\t\t\t// this.$message.success('所选人员已下发到指定设备')\n\t\t\t\t\t// this.$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"]}]} |