{"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.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\access.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//\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 mixinViewModule from '@/mixins/view-module'\nimport {\n\ttreeDataTranslate,\n\tgetDictLabel,\n\tgetDictDataList\n} from '@/utils'\nimport addOrUpdate from './access-add-or-update'\nimport viewAccess from './access-view'\nimport personList from './access-person-list'\nimport sendFace from './access-send-face'\nimport accessConfig from './access-config'\nimport AccessUpdatePassword from './access-update-password'\nexport default {\n\tmixins: [mixinViewModule],\n\tcomponents: {\n\t\taddOrUpdate,\n\t\tviewAccess,\n\t\tpersonList,\n\t\tsendFace,\n\t\taccessConfig,\n\t\tAccessUpdatePassword\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tloading : false,\n\t\t\tmixinViewModuleOptions: {\n\t\t\t\tgetDataListURL: '/system/scaidooreight/page',\n\t\t\t\tdeleteURL: '/system/scaidooreight',\n\t\t\t\tgetDataListIsPage: true\n\t\t\t},\n\t\t\taddressList: [], // 安装位置\n\t\t\tdfFloorid: [], // 选中id数组\n\t\t\tequipStatusList: getDictDataList('equipment_status'),\n\t\t\tlimit: 10,\n\t\t\tdataForm: {\n\t\t\t\taeClientip: \"\",\n\t\t\t\tstate: '',\n\t\t\t\tdevicename: '',\n\t\t\t\tfloorid: '', // 安装位置的id\n\t\t\t\tusername:'',\n\t\t\t\tuserno:''\n\t\t\t},\n\t\t\tcheckList: [],\n\t\t\tdataList: [],\n\t\t\taccessUpdatePasswordVisible: false\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.getAddressList()\n\t},\n\twatch: {\n\t\t'dfFloorid': {\n\t\t\thandler(val) {\n\t\t\t\tif (val.length === 0) {\n\t\t\t\t\tthis.dataForm.floorid = \"\"\n\t\t\t\t} else {\n\t\t\t\t\tthis.dataForm.floorid = val[val.length - 1]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\tcomputed: {\n\t\taeIds() {\n\t\t\treturn this.checkList.map(item => {\n\t\t\t\treturn item.aeId\n\t\t\t})\n\t\t},\n\t\t// 根据 数据 aeTransstate 判断是否有设备正在下发 1 有 0 否 如有下发 每1 分钟刷新一次数据\n\t\t// isNeedRefresh(){\n\t\t// return this.dataList.some(item=>item.aeTransstate)\n\t\t// }\n\t},\n\t// watch:{\n\t// // 监听是否需要刷新数据 执行定时任务\n\t// isNeedRefresh(state){\n\t// // 需要刷新 且 定时器未启动 则启动定时器\n\t// if(state&&!this.timer){\n\t// this.timer=setInterval(() => {\n\t// this.query();\n\t// }, 1000*30);\n\t// this.$once(\"hook:beforeDestroy\",()=>{\n\t// clearInterval(this.timer);\n\t// this.timer=null;\n\t// })\n\t// this.$once(\"hook:deactivated\",()=>{\n\t// clearInterval(this.timer);\n\t// this.timer=null;\n\t// })\n\t// }\n\t// // 不需要刷新 定时器仍在运行 则清除定时器\n\t// else if(!state&&this.timer){\n\t// clearInterval(this.timer);\n\t// this.timer=null;\n\t// }\n\t// }\n\t// },\n\tmethods: {\n\n\t\t//一键删除图像\n\t\tdelAllPerson(){\n\t\t\tlet userNo = this.dataForm.userno;\n\t\t\tif (userNo == ''){\n\t\t\t\treturn this.$message.warning(\"请输入学号或工号!\")\n\t\t\t}\n\n\t\t\tthis.loading = true\n\t\t\tthis.$http({\n\t\t\t\turl:`/system/scaidooreightpersonlist/` + userNo,\n\t\t\t\tmethod:\"delete\",\n\t\t\t}).then(({data:res})=>{\n\t\t\t\tthis.loading = false;\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.success(res.msg)\n\t\t\t\tthis.query();//刷线当前\n\t\t\t})\n\t\t},\n\t\t// 安装位置列表\n\t\tgetAddressList() {\n\t\t\t// -1是获取所有楼栋\n\t\t\tthis.$http.get(`/system/scdormitoryfloor/tree/-1`).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.addressList = treeDataTranslate(res.data, 'df_floorid', 'df_parentid')\n\t\t\t}).catch(() => {})\n\t\t},\n\t\t// 重置\n\t\tresetFormHandle() {\n\t\t\tthis.dfFloorid = []\n\t\t\tthis.dataForm = {\n\t\t\t\taeClientip: \"\",\n\t\t\t\tstate: '',\n\t\t\t\tdevicename: '',\n\t\t\t\tdfFloorid: '',\n\t\t\t}\n\t\t\tthis.page = 1;\n\t\t\tthis.query();\n\t\t},\n\n\t\taddAccess() {\n\t\t\tthis.$refs['addOrUpdate'].init()\n\t\t},\n\t\tsearch() {\n\t\t\tthis.page = 1;\n\t\t\tthis.query();\n\t\t},\n\t\tviewHandle(row) {\n\t\t\tthis.$refs['viewAccess'].init(row)\n\t\t},\n\t\teditHandle(row) {\n\t\t\tthis.$refs['addOrUpdate'].init(row)\n\t\t},\n\t\tshowPersonList(row) {\n\t\t\tthis.$refs['personList'].init(row.aeId, row.aeDevicename)\n\t\t},\n\t\tformatterDevinceType(row) {\n\t\t\treturn getDictLabel('accessDevinceType', row.aeDevicetype)\n\t\t},\n\t\t// formatterState(row) {\n\t\t// \treturn getDictLabel('equipment_status', row.aeState)\n\n\t\t// },\n\t\thandleSelectionChange(data) {\n\t\t\tthis.checkList = data\n\t\t},\n\t\toptionsHanlder(options) {\n\t\t\t// 配置设备信息\n\t\t\tif (options.path == 'config') {\n\t\t\t\tthis.$refs['accessConfig'].init(options.id)\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tthis.$confirm('此操作存在一定风险,是否继续?', '提示', {\n\t\t\t\tconfirmButtonText: '确定',\n\t\t\t\tcancelButtonText: '取消',\n\t\t\t\ttype: 'warning'\n\t\t\t}).then(() => {\n\t\t\t\t// 重启设备端 远程开门 断开设备 重置设备\n\t\t\t\tthis.$http({\n\t\t\t\t\turl: \"/system/scaidooreight/\" + options.path + options.id,\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.error(res.msg)\n\t\t\t\t\t}\n\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t\tthis.query();\n\t\t\t\t})\n\t\t\t})\n\n\t\t},\n\t\tsendFaceToEquip() {\n\t\t\tif (this.checkList.length == 0) {\n\t\t\t\treturn this.$message.warning(\"请选择需要下发的设备!\")\n\t\t\t}\n\t\t\tthis.$refs['sendFace'].init();\n\n\t\t},\n\t\tsendFaceAll() {\n\t\t\tthis.$confirm('确认下发到所有设备?', '提示', {\n\t\t\t\tconfirmButtonText: '确定',\n\t\t\t\tcancelButtonText: '取消',\n\t\t\t\ttype: 'warning'\n\t\t\t}).then(() => {\n\t\t\t\tthis.$http({\n\t\t\t\t\turl: \"/system/scaidooreight/allFacetoAllDc\",\n\t\t\t\t\tmethod: \"get\",\n\t\t\t\t\ttimeout: 0,\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\tthis.dataList.foreach(item => {\n\t\t\t\t\t\titem.aeTransstate = 1\n\t\t\t\t\t})\n\t\t\t\t\t// this.$message.success('设备已全部下发完成')\n\t\t\t\t\t// this.query();\n\t\t\t\t})\n\t\t\t}).catch(() => {})\n\t\t},\n\t\tsendHandle(row) {\n\t\t\tthis.$confirm('确认下发到设备?', '提示', {\n\t\t\t\tconfirmButtonText: '确认',\n\t\t\t\tcancelButtonText: '取消',\n\t\t\t\ttype: 'warning'\n\t\t\t}).then(() => {\n\t\t\t\tthis.$http({\n\t\t\t\t\turl: `/system/scaidooreight/allFacetoDc/${row.aeId}`,\n\t\t\t\t\tmethod: \"get\",\n\t\t\t\t\ttimeout: 0,\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\trow.aeTransstate = 1;\n\t\t\t\t\t// this.$message.success(row.aeDevicename+' 下发完成')\n\t\t\t\t\t// this.query();\n\t\t\t\t})\n\t\t\t}).catch(() => {});\n\n\t\t},\n\t\t// 断开所有设备\n\t\tcloseAllDevice() {\n\t\t\tthis.$confirm('确认断开所有设备?', '提示', {\n\t\t\t\tconfirmButtonText: '确定',\n\t\t\t\tcancelButtonText: '取消',\n\t\t\t\ttype: 'warning'\n\t\t\t}).then(() => {\n\t\t\t\tthis.$http({\n\t\t\t\t\turl: \"/system/scaidooreight/disconnectAllDevice\",\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.error(res.msg)\n\t\t\t\t\t}\n\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\t// 批量修改密码\n\t\tupdatePassWordHandle() {\n\t\t\tif (this.checkList.length === 0) {\n\t\t\t\treturn this.$message.warning(`请勾选需要变更密码的设备`)\n\t\t\t}\n\t\t\tlet idArr = this.checkList.map(item => {\n\t\t\t\treturn item.aeId\n\t\t\t})\n\t\t\tlet ids = JSON.stringify(idArr)\n\t\t\tthis.accessUpdatePasswordVisible = true\n\t\t\tthis.$nextTick(() => {\n\t\t\t\tthis.$refs['accessUpdatePassword'].init(ids)\n\t\t\t})\n\t\t},\n\t\t// 跳转到出入记录页面\n\t\tgotoAccessRecord(id) {\n\t\t\twindow.sessionStorage.setItem('access_record_aeid', id);\n\t\t\tthis.$router.push({\n\t\t\t\tname: 'statistics-accessRecord',\n\t\t\t})\n\t\t}\n\t}\n}\n",{"version":3,"sources":["access.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6HA;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;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;;AAEA;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;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;;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;;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","file":"access.vue","sourceRoot":"src/views/modules/equipmentManage","sourcesContent":["\n\n\n\n"]}]}