1 line
10 KiB
JSON
1 line
10 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\\other-five.vue?vue&type=style&index=0&id=a578e826&scoped=true&lang=scss&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\other-five.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\css-loader\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\sass-loader\\lib\\loader.js","mtime":1533139052000},{"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\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.el-table {\n\t.el-button--text {\n\t\tpadding: 8px 0;\n\t}\n}\n",{"version":3,"sources":["other-five.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+MA;AACA;AACA;AACA;AACA","file":"other-five.vue","sourceRoot":"src/views/modules/equipmentManage","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 @keyup.enter.native=\"getDataList\">\n\t\t\t<el-form-item label=\"房间号\" prop=\"fName\">\n\t\t\t\t<el-input v-model=\"dataForm.fName\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"设备状态\" prop=\"fstate\">\n\t\t\t\t<el-select v-model=\"dataForm.fstate\" placeholder=\"请选择\" clearable>\n\t\t\t\t\t<el-option v-for=\"item in equipStatusList\" :key=\"item.dictValue\" :label=\"item.dictLabel\" :value=\"item.dictValue\">\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>\n\t\t\t\t<el-button @click=\"getDataList()\">查询</el-button>\n\t\t\t\t<el-button type=\"warning\" @click=\"resetForm('ruleForm')\">重置</el-button>\n\t\t\t\t<el-button type=\"success\" @click=\"sendFaceToEquip\">下发指定</el-button>\n\t\t\t\t<el-button type=\"success\" @click=\"uploadHandle()\">下发屏保</el-button>\n\t\t\t</el-form-item>\n\t\t</el-form>\n\t\t<el-table v-loading=\"dataListLoading\" :data=\"dataList\" @selection-change=\"handleSelectionChange\">\n\t\t\t<el-table-column type=\"selection\" label=\"全选\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column type=\"index\" label=\"序号\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"fname\" label=\"房间号\" align=\"center\" show-overflow-tooltip>\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<el-button type=\"text\" @click=\"gotoAccessRecord(scope.row.fserialNumber)\">{{scope.row.fname}}</el-button>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column label=\"设备状态\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<span v-if=\"scope.row.fstate==-1\" style=\"color:#f56c6c;\">离线</span>\n\t\t\t\t\t<span v-else-if=\"scope.row.fstate==0\" style=\"color:#67C23A;\">正常</span>\n\t\t\t\t\t<span v-else style=\"color:#f56c6c;\">停用</span>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"fserialNumber\" label=\"设备序列号\" align=\"center\" show-overflow-tooltip>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"faddDate\" label=\"设备安装日期\" align=\"center\" show-overflow-tooltip>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column label=\"已下发人数\" align=\"center\" width=\"150\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<el-button type=\"text\" @click=\"showPersonList(scope.row.fid)\">{{scope.row.ffaceTotal}}</el-button>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column :label=\"$t('handle')\" fixed=\"right\" header-align=\"center\" align=\"center\" width=\"300\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<el-button type=\"text\" @click=\"openDoorHandle(scope.row)\">远程开门</el-button>\n\t\t\t\t\t<el-button type=\"text\" @click=\"issueAgainHandle(scope.row)\" style=\"color:#f56c6c\">重新下发</el-button>\n\t\t\t\t\t<el-button type=\"text\" @click=\"rebootDeviceHandle(scope.row)\" style=\"color:#f56c6c\">重启设备</el-button>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t</el-table>\n\t\t<el-pagination :current-page=\"page\" :page-sizes=\"[10, 20, 50, 100,300]\" :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\t<!-- 下发操作 -->\n\t\t<send-face ref=\"sendFace\" :aeids=\"checkDataList\"></send-face>\n\t\t<!-- 已下发人数列表 -->\n\t\t<person-list ref=\"personList\"></person-list>\n\t\t<!-- 弹窗, 上传 -->\n\t\t<five-access-upload v-if=\"uploadVisible\" ref=\"upload\"></five-access-upload>\n\t</el-card>\n</template>\n\n<script>\n\timport FiveAccessUpload from './five-access-upload'\n\timport mixinViewModule from \"@/mixins/view-module\"\n\timport {\n\t\tgetDictLabel,\n\t\tgetDictDataList,\n\t} from '@/utils'\n\timport sendFace from './other-five-face'\n\timport personList from './five-access-person-list'\n\timport qs from \"qs\"\n\texport default {\n\t\tmixins: [mixinViewModule],\n\t\tcomponents: {\n\t\t\tsendFace,\n\t\t\tpersonList,\n\t\t\tFiveAccessUpload,\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tmixinViewModuleOptions: {\n\t\t\t\t\tgetDataListURL: '/system/fvscdevice/page',\n\t\t\t\t\tgetDataListIsPage: true\n\t\t\t\t},\n\t\t\t\tdataForm: {\n\t\t\t\t\tfName: \"\",\n\t\t\t\t\tfstate: \"\",\n\t\t\t\t\teqType: \"1\",\n\t\t\t\t},\n\t\t\t\tcheckDataList: [],\n\t\t\t\tuploadVisible: false,\n\t\t\t\tequipStatusList: getDictDataList('equipment_status'),\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\t// 复选\n\t\t\thandleSelectionChange(data) {\n\t\t\t\tthis.checkDataList = data.map(item => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tfname: item.fname,\n\t\t\t\t\t\tfpassword: item.fpassword,\n\t\t\t\t\t\tfserial: item.fserial,\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t// 跳转到5寸出入记录页面\n\t\t\tgotoAccessRecord(id) {\n\t\t\t\twindow.sessionStorage.setItem('fserialNumber', id);\n\t\t\t\tthis.$router.push({\n\t\t\t\t\tname: 'statistics-fiveAccessRecord',\n\t\t\t\t})\n\t\t\t},\n\t\t\t// 下发指定\n\t\t\tsendFaceToEquip() {\n\t\t\t\tif (this.checkDataList.length == 0) {\n\t\t\t\t\treturn this.$message.warning(\"请选择需要下发的设备!\")\n\t\t\t\t}\n\t\t\t\tthis.$refs['sendFace'].init();\n\n\t\t\t},\n\t\t\t// 下发屏保\n\t\t\tuploadHandle(id) {\n\t\t\t\tthis.uploadVisible = true\n\t\t\t\tthis.$nextTick(() => {\n\t\t\t\t\tthis.$refs.upload.init()\n\t\t\t\t})\n\t\t\t},\n\t\t\t// 下发人数\n\t\t\tshowPersonList(id) {\n\t\t\t\tthis.$refs['personList'].init(id)\n\t\t\t},\n\t\t\t// 远程开门\n\t\t\topenDoorHandle(obj) {\n\t\t\t\tthis.$confirm('此操作存在一定风险,是否继续?', '提示', {\n\t\t\t\t\tconfirmButtonText: this.$t('confirm'),\n\t\t\t\t\tcancelButtonText: this.$t('cancel'),\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t}).then(() => {\n\t\t\t\t\tvar params = qs.stringify({\n\t\t\t\t\t\tpassword: obj.fpassword,\n\t\t\t\t\t\tserial: obj.fserial\n\t\t\t\t\t})\n\t\t\t\t\tthis.$http.post(`/system/fvscdevice/doorOpen`, params).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.$message.success(res.msg)\n\t\t\t\t\t}).catch(err => {\n\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t},\n\t\t\t// 重启设备\n\t\t\trebootDeviceHandle(obj) {\n\t\t\t\tthis.$confirm('此操作存在一定风险,是否继续?', '提示', {\n\t\t\t\t\tconfirmButtonText: this.$t('confirm'),\n\t\t\t\t\tcancelButtonText: this.$t('cancel'),\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t}).then(() => {\n\t\t\t\t\tvar params = qs.stringify({\n\t\t\t\t\t\tpassword: obj.fpassword,\n\t\t\t\t\t\tserial: obj.fserial\n\t\t\t\t\t})\n\t\t\t\t\tthis.$http.post(`/system/fvscdevice/doorReset`, params).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.$message.success(res.msg)\n\t\t\t\t\t}).catch(err => {\n\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t},\n\t\t\t// 重新下发\n\t\t\tissueAgainHandle(obj) {\n\t\t\t\tthis.$confirm('此操作存在一定风险,是否继续?', '提示', {\n\t\t\t\t\tconfirmButtonText: this.$t('confirm'),\n\t\t\t\t\tcancelButtonText: this.$t('cancel'),\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t}).then(() => {\n\t\t\t\t\tvar params = qs.stringify({\n\t\t\t\t\t\tpassword: obj.fpassword,\n\t\t\t\t\t\tserial: obj.fserial\n\t\t\t\t\t})\n\t\t\t\t\tthis.$http.post(`/system/fvscdevice/redownFace`, params).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.$message.success(res.msg)\n\t\t\t\t\t}).catch(err => {\n\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.el-table {\n\t\t.el-button--text {\n\t\t\tpadding: 8px 0;\n\t\t}\n\t}\n</style>\n"]}]} |