forked from zhurui/management
1 line
52 KiB
JSON
1 line
52 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\\dormitoryManage\\room.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\dormitoryManage\\room.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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 debounce from 'lodash/debounce'\nimport upload from '@/components/public/upload-excel-or-img'\nimport {\n\ttreeDataTranslate\n} from '@/utils'\nimport Cookies from 'js-cookie'\nimport qs from 'qs'\nexport default {\n\tcomponents: {\n\t\tupload\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tloading: false,\n\t\t\tcheckList: [],\n\t\t\ttopArr: [],\n\t\t\tleftArr: [],\n\t\t\trightArr: [],\n\t\t\tbottomArr: [],\n\t\t\t//分页\n\t\t\tpages: {\n\t\t\t\tpageNo: 1,\n\t\t\t\tpageSize: 6000\n\t\t\t},\n\t\t\ttitle: '',\n\t\t\tcenterDialogVisible: false,\n\t\t\tformInline: {\n\t\t\t\tstus: [{\n\t\t\t\t\t\tscStdid: '',\n\t\t\t\t\t\tscNo: '',\n\t\t\t\t\t\tdpId: '',\n\t\t\t\t\t\tkey: '0'\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tscStdid: '',\n\t\t\t\t\t\tscNo: '',\n\t\t\t\t\t\tdpId: '',\n\t\t\t\t\t\tkey: '1'\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\t//学生姓名 / 学号\n\t\t\toptNameNo: [],\n\t\t\t//楼层\n\t\t\tdataList: [],\n\t\t\tfloorF: '',\n\t\t\tfloor: {},\n\t\t\tcheckFloor: '',\n\t\t\t//房间id\n\t\t\tdrId: '',\n\t\t\t//入住id\n\t\t\tdpId: '',\n\t\t\tidsItem: [],\n\t\t\tbackNum: '',\n\t\t\toutNum: '',\n\t\t}\n\t},\n\tmounted() {\n\t\tthis.getCode()\n\t\tif (!window.sessionStorage.getItem('floorId')) {\n\t\t\tthis.search()\n\t\t}\n\t},\n\tactivated() {\n\t\t// 首页宿舍今日用电量TOP10跳转进来\n\t\tlet floorId = window.sessionStorage.getItem('floorId');\n\t\tif (floorId) {s\n\t\t\twindow.sessionStorage.removeItem('floorId');ss\n\t\t\tthis.search(floorId)\n\t\t}\n\t},\n\tmethods: {\n\t\t// 导入\n\t\timportHandle() {\n\t\t\tthis.$refs['roomExcel'].init()\n\t\t},\n\t\texportHandle(){\n\t\t\tvar params = qs.stringify({\n\t\t\t 'access_token': Cookies.get('access_token')\n\t\t\t})\n\t\t\twindow.location.href = `${window.SITE_CONFIG['apiURL']}/system/scdormitoryperson/exportInfoExcel?${params}`\n\t\t},\n\t\t//分页 数据\n\t\tdataFun(item) {\n\t\t\tthis.floorF = item.df_floorname\n\t\t\tthis.getTotalNum(item)\n\t\t\tlet params = {\n\t\t\t\tpage: this.pages.pageNo,\n\t\t\t\tlimit: this.pages.pageSize,\n\t\t\t\tfloorId: item.df_floorid,\n\t\t\t\ttype: item.df_type,\n\t\t\t\tscNo: \"\",\n\t\t\t\tscStuname: \"\",\n\t\t\t}\n\t\t\tthis.$http.get('/system/scdormitoryperson/page', {\n\t\t\t\t\tparams\n\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\tlet arr = res.data.list.map(item => {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t...item,\n\t\t\t\t\t\t\tvisible: false\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tthis.topArr = arr.slice(0, 11);\n\t\t\t\t\tthis.rightArr = arr.slice(11, 14);\n\t\t\t\t\tthis.bottomArr = arr.slice(14, 24).reverse();\n\t\t\t\t\tthis.leftArr = arr.slice(24).reverse();\n\t\t\t\t})\n\t\t},\n\t\tgetTotalNum(item) {\n\t\t\tlet params = {\n\t\t\t\tfloorId: item.df_floorid,\n\t\t\t\ttype: item.df_type,\n\t\t\t\tscNo: '',\n\t\t\t\tscStuname: '',\n\t\t\t}\n\t\t\tthis.$http.get('/system/scdormitoryperson/getRoomCheckInInfo', {\n\t\t\t\t\tparams\n\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\tlet {\n\t\t\t\t\t\tbackNum,\n\t\t\t\t\t\toutNum\n\t\t\t\t\t} = res.data\n\t\t\t\t\tthis.backNum = backNum;\n\t\t\t\t\tthis.outNum = outNum;\n\t\t\t\t})\n\t\t},\n\t\t//楼层\n\t\tsearch(floorId) {\n\t\t\tthis.$http.get('/system/scdormitoryfloor/roomTree/0').then(({\n\t\t\t\tdata: res\n\t\t\t}) => {\n\t\t\t\tif (res.code == 0) {\n\t\t\t\t\tlet list = res.data.map(item => {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t...item,\n\t\t\t\t\t\t\tname: item.df_floorname,\n\t\t\t\t\t\t\tid: item.df_floorid,\n\t\t\t\t\t\t\tpid: item.df_parentid\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tlet arr = treeDataTranslate(list)\n\t\t\t\t\tlet crr = arr[0].children.map((v, index) => {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tdf_floorname: v.df_floorname,\n\t\t\t\t\t\t\tdf_type: v.df_type,\n\t\t\t\t\t\t\tdf_floorid: v.df_floorid,\n\t\t\t\t\t\t\tml: 30 * index\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tthis.dataList = crr.reverse()\n\n\t\t\t\t\t// 路由跳转过来,floorId有值\n\t\t\t\t\tif (floorId) {\n\t\t\t\t\t\tthis.dataList.forEach(item => {\n\t\t\t\t\t\t\tif (floorId === item.df_floorid) {\n\t\t\t\t\t\t\t\tthis.floor = item\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.floor = {\n\t\t\t\t\t\t\tdf_floorname: this.dataList[this.dataList.length - 1].df_floorname,\n\t\t\t\t\t\t\tdf_type: this.dataList[this.dataList.length - 1].df_type,\n\t\t\t\t\t\t\tdf_floorid: this.dataList[this.dataList.length - 1].df_floorid,\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis.dataFun(this.floor)\n\t\t\t\t\tthis.checkFloor = this.floor.df_floorid\n\t\t\t\t} else {\n\t\t\t\t\tthis.dataList = []\n\t\t\t\t\tthis.$message.error(data.msg)\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\t//切换楼层\n\t\tclickFloor(item) {\n\t\t\tthis.floor = item\n\t\t\tthis.dataFun(item)\n\t\t\tthis.checkFloor = item.df_floorid\n\t\t},\n\t\t//分配 修改\n\t\tmodifyAllocation(type, item) {\n\t\t\tthis.idsItem = item.dormitorypersonDTOS;\n\t\t\tthis.formInline.stus = []\n\t\t\tif (type == 'one') {\n\t\t\t\tthis.formInline.stus.push({\n\t\t\t\t\tscStdid: '',\n\t\t\t\t\tscNo: '',\n\t\t\t\t\tkey: '0',\n\t\t\t\t\tdpId: ''\n\t\t\t\t});\n\t\t\t} else if (type == 'two') {\n\t\t\t\tthis.formInline.stus.push({\n\t\t\t\t\tscStdid: '',\n\t\t\t\t\tscNo: '',\n\t\t\t\t\tkey: '0',\n\t\t\t\t\tdpId: ''\n\t\t\t\t}, {\n\t\t\t\t\tscStdid: '',\n\t\t\t\t\tscNo: '',\n\t\t\t\t\tkey: '1',\n\t\t\t\t\tdpId: ''\n\t\t\t\t}, );\n\t\t\t}\n\t\t\tthis.drId = item.drId; //房间id\n\t\t\tlet key = 0\n\t\t\tlet dpIds = item.dormitorypersonDTOS.map(item => {\n\t\t\t\treturn {\n\t\t\t\t\t...item,\n\t\t\t\t\tkey: key++\n\t\t\t\t}\n\t\t\t})\n\t\t\tif (dpIds.length > 0) {\n\t\t\t\tthis.getCode(dpIds)\n\t\t\t} else {\n\t\t\t\tthis.getCode()\n\t\t\t}\n\n\t\t\tthis.centerDialogVisible = true;\n\t\t},\n\t\t//学生姓名 下拉\n\t\tgetCode(ids) {\n\t\t\tthis.formInline.stus.forEach(v => {\n\t\t\t\tv.scStdid = '';\n\t\t\t\tv.scNo = ''\n\t\t\t})\n\t\t\tlet val = []\n\t\t\tif (ids) {\n\t\t\t\tids.forEach(v => {\n\t\t\t\t\tval.push(v.scStdid)\n\t\t\t\t})\n\t\t\t}\n\t\t\tthis.$http.post('/system/scstudents/getStudentsInfo', val)\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\tthis.optNameNo = res.data;\n\t\t\t\t\t\tif (ids) {\n\t\t\t\t\t\t\tthis.formInline.stus.forEach(item => {\n\t\t\t\t\t\t\t\tids.forEach(k => {\n\t\t\t\t\t\t\t\t\tif (item.key == k.key) {\n\t\t\t\t\t\t\t\t\t\titem.scStdid = k.scStdid;\n\t\t\t\t\t\t\t\t\t\titem.scNo = k.scIdno;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t},\n\t\t//下拉 配置\n\t\tchangeName(e, v) {\n\t\t\tlet arr = this.optNameNo.filter(item => {\n\t\t\t\tif (v.scStdid == item.scStdid) {\n\t\t\t\t\treturn item\n\t\t\t\t}\n\t\t\t})\n\t\t\tfor (let i of this.formInline.stus) {\n\t\t\t\tif (i.key == v.key) {\n\t\t\t\t\ti.scNo = arr[0].scNo\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tchangeNo(e, v) {\n\t\t\tlet arr = this.optNameNo.filter(item => {\n\t\t\t\tif (v.scNo == item.scIdno) {\n\t\t\t\t\treturn item\n\t\t\t\t}\n\t\t\t})\n\t\t\tfor (let i of this.formInline.stus) {\n\t\t\t\tif (i.key == v.key) {\n\t\t\t\t\ti.scStdid = arr[0].scStdid\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t//修改 分配 / 表单提交\n\t\tconfirm: debounce(function() {\n\t\t\tlet length = 0\n\t\t\tthis.formInline.stus.forEach(v => {\n\t\t\t\tif (v.scStdid == '') {\n\t\t\t\t\tlength++\n\t\t\t\t}\n\t\t\t})\n\t\t\tif (length == 2) {\n\t\t\t\treturn this.$message.info('请至少分配一条信息!!')\n\t\t\t}\n\t\t\tlet params = {};\n\t\t\tlet arr = this.idsItem;\n\t\t\tlet brr = this.formInline.stus;\n\t\t\tlet crr = []\n\t\t\tlet drr = []\n\t\t\tlet err = []\n\t\t\tif (arr.length > 0) {\n\t\t\t\tarr.forEach((item, index) => {\n\t\t\t\t\tbrr.forEach(v => {\n\t\t\t\t\t\tv.drId = this.drId\n\t\t\t\t\t\tif (index == v.key) {\n\t\t\t\t\t\t\tv.dpId = item.dpId\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t} else if (arr.length == 0) {\n\t\t\t\tbrr.forEach(v => {\n\t\t\t\t\tv.drId = this.drId\n\t\t\t\t})\n\t\t\t}\n\t\t\tbrr.forEach((val, index) => {\n\t\t\t\tif (val.scStdid) {\n\t\t\t\t\tcrr.push(val)\n\t\t\t\t}\n\t\t\t})\n\t\t\tcrr.forEach(item => {\n\t\t\t\t//修改\n\t\t\t\tif (item.dpId) {\n\t\t\t\t\tdrr.push(item)\n\t\t\t\t\t//分配\n\t\t\t\t} else {\n\t\t\t\t\terr.push(item)\n\t\t\t\t}\n\n\t\t\t})\n\t\t\tif (drr.length > 0) {\n\t\t\t\tthis.loading = true\n\t\t\t\tthis.$http.put('/system/scdormitoryperson', drr)\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.loading = false\n\t\t\t\t\t\tthis.centerDialogVisible = false;\n\t\t\t\t\t\tthis.dataFun(this.floor)\n\t\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t\t\tthis.$refs['formInline'].resetFields();\n\t\t\t\t\t}).catch(() => {}).finally(() => {\n\t\t\t\t\t\tthis.loading = false\n\t\t\t\t\t})\n\t\t\t}\n\t\t\tif (err.length > 0) {\n\t\t\t\tthis.loading = true\n\t\t\t\tthis.$http.post('/system/scdormitoryperson', err)\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.loading = false\n\t\t\t\t\t\tthis.centerDialogVisible = false;\n\t\t\t\t\t\tthis.dataFun(this.floor)\n\t\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t\t\tthis.$refs['formInline'].resetFields();\n\t\t\t\t\t}).catch(() => {}).finally(() => {\n\t\t\t\t\t\tthis.loading = false\n\t\t\t\t\t})\n\t\t\t}\n\t\t}, 1000),\n\t\tclickCheck() {\n\t\t\tthis.checkList = []\n\t\t},\n\t\tclickQx() {\n\t\t\tthis.visible = false\n\t\t},\n\t\t//删除\n\t\tclickDel(id, arr) {\n\t\t\tlet visible = arr.visible;\n\t\t\tlet arrDOTS = arr.dormitorypersonDTOS\n\t\t\tif (id.length == 0) {\n\t\t\t\treturn this.$message.info('请选择人员再删除!')\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\tlet parmas = [];\n\t\t\t\tid.forEach(item => {\n\t\t\t\t\tarrDOTS.forEach(v => {\n\t\t\t\t\t\tif (v.scStuname == item) {\n\t\t\t\t\t\t\tparmas.push(v.dpId)\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\tthis.$http.post('/system/scdormitoryperson/id', parmas)\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.dataFun(this.floor)\n\t\t\t\t\t\tvisible = false\n\t\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\tresetForm() {\n\t\t\tthis.centerDialogVisible = false;\n\t\t},\n\t\thandleClose() {\n\t\t\tthis.centerDialogVisible = false;\n\t\t},\n\t}\n}\n",{"version":3,"sources":["room.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmTA;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;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;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;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;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","file":"room.vue","sourceRoot":"src/views/modules/dormitoryManage","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill\">\n\t\t<div class=\"roomBox\">\n\t\t\t<div class=\"top\">\n\t\t\t\t<div class=\"topRoom\">\n\t\t\t\t\t<div class=\"box\" v-for=\"(item,key) in topArr\" :key=\"key\">\n\t\t\t\t\t\t<div :class=\"item.dormitorypersonDTOS.length > 1 ? 'drNum' : 'drNums'\">{{item.drNum}}</div>\n\t\t\t\t\t\t<!-- 有人住 -->\n\t\t\t\t\t\t<div class=\"imgs\" v-if=\"item.dormitorypersonDTOS.length >0\">\n\t\t\t\t\t\t\t<div class=\"imgg\" v-for=\"(i,k) in item.dormitorypersonDTOS\" :key=\"k\">\n\t\t\t\t\t\t\t\t<el-tooltip class=\"item\" placement=\"bottom\" effect=\"light\">\n\t\t\t\t\t\t\t\t\t<div slot=\"content\">\n\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t<div>姓名:{{i.scStuname}}</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>学号:{{i.scNo}}</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>联系电话:{{i.scPhonenum}}</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t\t\t\t\t<el-image :src='$ImgServerUrl+i.scPhotoimg' fit='fill'>\n\t\t\t\t\t\t\t\t\t\t\t<div slot=\"error\" class=\"image-slot\">\n\t\t\t\t\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\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</el-image>\n\t\t\t\t\t\t\t\t\t\t<div v-if=\"i.isOut == '1'\" class=\"out\"><span>未归寝</span></div>\n\t\t\t\t\t\t\t\t\t\t<div v-else-if=\"i.isOut == '-1'\" class=\"dont\"><span>未入住</span></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"name\">{{i.scStuname}}</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</el-tooltip>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"con_pic\" v-show=\"item.dormitorypersonDTOS.length == 1\">\n\t\t\t\t\t\t\t\t<img class=\"img\" src=\"../../../assets/img/person.jpg\" alt=\"\">\n\t\t\t\t\t\t\t\t<div class=\"no\">暂无人住</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<!-- 暂无人住 -->\n\t\t\t\t\t\t<div class=\"imgs\" v-else>\n\t\t\t\t\t\t\t<div class=\"con_pic\">\n\t\t\t\t\t\t\t\t<img class=\"img\" src=\"../../../assets/img/person.jpg\" alt=\"\">\n\t\t\t\t\t\t\t\t<div class=\"no\">暂无人住</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"con_pic\">\n\t\t\t\t\t\t\t\t<img class=\"img\" src=\"../../../assets/img/person.jpg\" alt=\"\">\n\t\t\t\t\t\t\t\t<div class=\"no\">暂无人住</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"operation\">\n\t\t\t\t\t\t\t<span class=\"fp\" @click=\"modifyAllocation('two',item)\"><img src=\"../../../assets/img/room/fp.png\" alt=\"\" v-if=\"$hasPermission('system:scdormitoryperson:save'||'system:scdormitoryperson:update')\"></span>\n\t\t\t\t\t\t\t<el-popover placement=\"right\" width=\"350\" v-model=\"item.visible\">\n\t\t\t\t\t\t\t\t<el-checkbox-group v-model=\"checkList\">\n\t\t\t\t\t\t\t\t\t<el-checkbox class='bbox' v-for=\"v in item.dormitorypersonDTOS\" :key=\"v.dpId\" :label=\"v.scStuname\" size=\"medium\" style=\"font-size:20px\">\n\t\t\t\t\t\t\t\t\t\t<span style=\"font-size: 20px;width:100px;margin-right:10px;display:inline-block\">{{v.scStuname}}</span>\n\t\t\t\t\t\t\t\t\t\t<span style=\"font-size: 20px\">{{v.scNo}}</span>\n\t\t\t\t\t\t\t\t\t</el-checkbox>\n\t\t\t\t\t\t\t\t</el-checkbox-group>\n\t\t\t\t\t\t\t\t<div style=\"margin-left:100px\">\n\t\t\t\t\t\t\t\t\t<el-button type=\"text\" style=\"font-size:20px\" @click=\"item.visible = false\">取消</el-button>\n\t\t\t\t\t\t\t\t\t<el-button type=\"text\" style=\"font-size:20px;margin-left:15px\" @click=\"clickDel(checkList,item)\">确定</el-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<el-button type=\"text\" icon=\"el-icon-delete\" slot=\"reference\" style=\"fontSize:20px;padding-top:0px;color:#fff\"\n\t\t\t\t\t\t\t\t :disabled='item.dormitorypersonDTOS && item.dormitorypersonDTOS.length>0 ? false : true' @click=\"clickCheck\"\n\t\t\t\t\t\t\t\t v-if=\"$hasPermission('system:scdormitoryperson:delete')\"></el-button>\n\t\t\t\t\t\t\t</el-popover>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"center\">\n\t\t\t\t<div class=\"lRoom\">\n\t\t\t\t\t<div class=\"box\" v-for=\"(item,key) in leftArr\" :key=\"key\">\n\t\t\t\t\t\t<div :class=\"item.dormitorypersonDTOS.length ==0 ? 'drNums' : 'drNum'\">{{item.drNum}}</div>\n\t\t\t\t\t\t<!-- 有人住 -->\n\t\t\t\t\t\t<div class=\"imgs\" v-if=\"item.dormitorypersonDTOS.length >0\">\n\t\t\t\t\t\t\t<div class=\"imgg\" v-for=\"(i,k) in item.dormitorypersonDTOS\" :key=\"k\">\n\t\t\t\t\t\t\t\t<el-tooltip class=\"item\" placement=\"bottom\" effect=\"light\">\n\t\t\t\t\t\t\t\t\t<div slot=\"content\">\n\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t<div>姓名:{{i.scStuname}}</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>学号:{{i.scNo}}</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>联系电话:{{i.scPhonenum}}</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t\t\t\t\t<el-image :src='$ImgServerUrl+i.scPhotoimg' fit='fill'>\n\t\t\t\t\t\t\t\t\t\t\t<div slot=\"error\" class=\"image-slot\">\n\t\t\t\t\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\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</el-image>\n\t\t\t\t\t\t\t\t\t\t<div v-if=\"i.isOut == '1'\" class=\"out\"><span>未归寝</span></div>\n\t\t\t\t\t\t\t\t\t\t<div v-else-if=\"i.isOut == '-1'\" class=\"dont\"><span>未入住</span></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"name\">{{i.scStuname}}</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</el-tooltip>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<!-- 暂无人住 -->\n\t\t\t\t\t\t<div class=\"imgs\" v-else>\n\t\t\t\t\t\t\t<div class=\"con_pic\">\n\t\t\t\t\t\t\t\t<img class=\"img\" src=\"../../../assets/img/person.jpg\" alt=\"\">\n\t\t\t\t\t\t\t\t<div class=\"no\">\n\t\t\t\t\t\t\t\t\t<div>暂无人住</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"operation\">\n\t\t\t\t\t\t\t<span class=\"fp\" @click=\"modifyAllocation('one',item)\"><img src=\"../../../assets/img/room/fp.png\" alt=\"\" v-if=\"$hasPermission('system:scdormitoryperson:save'||'system:scdormitoryperson:update')\"></span>\n\t\t\t\t\t\t\t<el-popover placement=\"right\" width=\"300\" v-model=\"item.visible\">\n\t\t\t\t\t\t\t\t<el-checkbox-group v-model=\"checkList\">\n\t\t\t\t\t\t\t\t\t<el-checkbox v-for=\"(v,key) in item.dormitorypersonDTOS\" :key=\"v.dpId\" :label=\"v.scStuname\">\n\t\t\t\t\t\t\t\t\t\t<span style=\"font-size: 20px;width:100px;margin-right:10px;display:inline-block\">{{v.scStuname}}</span>\n\t\t\t\t\t\t\t\t\t\t<span style=\"font-size: 20px\">{{v.scNo}}</span>\n\t\t\t\t\t\t\t\t\t</el-checkbox>\n\t\t\t\t\t\t\t\t</el-checkbox-group>\n\t\t\t\t\t\t\t\t<div style=\"margin-left:50px\">\n\t\t\t\t\t\t\t\t\t<el-button type=\"text\" style=\"font-size:20px\" @click=\"item.visible = false\">取消</el-button>\n\t\t\t\t\t\t\t\t\t<el-button type=\"text\" style=\"font-size:20px;margin-left:15px\" @click=\"clickDel(checkList,item)\">确定</el-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<el-button type=\"text\" icon=\"el-icon-delete\" slot=\"reference\" style=\"fontSize:20px;padding-top:0px;color:#fff\"\n\t\t\t\t\t\t\t\t :disabled='(item.dormitorypersonDTOS && item.dormitorypersonDTOS.length>0 ? false : true)' @click=\"clickCheck\"\n\t\t\t\t\t\t\t\t v-if=\"$hasPermission('system:scdormitoryperson:delete')\"></el-button>\n\t\t\t\t\t\t\t</el-popover>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<div class=\"left\">\n\t\t\t\t\t\t<div class=\"floor\" v-for=\"(item,key) in dataList\" :key=\"key\" @click=\"clickFloor(item)\" :style=\"{marginLeft: item.ml+'px',backgroundColor:checkFloor==item.df_floorid?'#73C060':'#C6C7CB',color:checkFloor==item.df_floorid?'#fff':'#000'}\">{{item.df_floorname}}</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"right\">\n\t\t\t\t\t\t<div class=\"btn\">\n\t\t\t\t\t\t\t<el-button v-if=\"$hasPermission('system:scdormitoryperson:import')\" type=\"success\" @click=\"importHandle()\">导入</el-button>\n\t\t\t\t\t\t\t<el-button type=\"success\" @click=\"exportHandle()\">导出</el-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<h1>宿舍楼 {{floorF}}</h1>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<span class=\"yd\">应到:{{backNum}}人</span>\n\t\t\t\t\t\t\t<span class=\"yd\">实到:{{outNum}}人</span>\n\t\t\t\t\t\t\t<span style=\"color: red;\">未到:{{backNum-outNum}}人</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"rRoom\">\n\t\t\t\t\t<div class=\"box\" v-for=\"(item,key) in rightArr\" :key=\"key\">\n\t\t\t\t\t\t<div :class=\"item.dormitorypersonDTOS.length ==0 ? 'drNums' : 'drNum'\">{{item.drNum}}</div>\n\t\t\t\t\t\t<!-- 有人住 -->\n\t\t\t\t\t\t<div class=\"imgs\" v-if=\"item.dormitorypersonDTOS.length >0\">\n\t\t\t\t\t\t\t<div class=\"imgg\" v-for=\"(i,k) in item.dormitorypersonDTOS\" :key=\"k\">\n\t\t\t\t\t\t\t\t<el-tooltip class=\"item\" placement=\"bottom\" effect=\"light\">\n\t\t\t\t\t\t\t\t\t<div slot=\"content\">\n\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t<div>姓名:{{i.scStuname}}</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>学号:{{i.scNo}}</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>联系电话:{{i.scPhonenum}}</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t\t\t\t\t<el-image :src='$ImgServerUrl+i.scPhotoimg' fit='fill'>\n\t\t\t\t\t\t\t\t\t\t\t<div slot=\"error\" class=\"image-slot\">\n\t\t\t\t\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\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</el-image>\n\t\t\t\t\t\t\t\t\t\t<div v-if=\"i.isOut == '1'\" class=\"out\"><span>未归寝</span></div>\n\t\t\t\t\t\t\t\t\t\t<div v-else-if=\"i.isOut == '-1'\" class=\"dont\"><span>未入住</span></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"name\">{{i.scStuname}}</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</el-tooltip>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<!-- 暂无人住 -->\n\t\t\t\t\t\t<div class=\"imgs\" v-else>\n\t\t\t\t\t\t\t<div class=\"con_pic\">\n\t\t\t\t\t\t\t\t<img class=\"img\" src=\"../../../assets/img/person.jpg\" alt=\"\">\n\t\t\t\t\t\t\t\t<div class=\"no\">\n\t\t\t\t\t\t\t\t\t<div>暂无人住</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"operation\">\n\t\t\t\t\t\t\t<span class=\"fp\" @click=\"modifyAllocation('one',item)\"><img src=\"../../../assets/img/room/fp.png\" alt=\"\" v-if=\"$hasPermission('system:scdormitoryperson:save'||'system:scdormitoryperson:update')\"></span>\n\t\t\t\t\t\t\t<el-popover placement=\"right\" width=\"300\" v-model=\"item.visible\" class=\"tooltip\">\n\t\t\t\t\t\t\t\t<el-checkbox-group v-model=\"checkList\">\n\t\t\t\t\t\t\t\t\t<el-checkbox v-for=\"(v,key) in item.dormitorypersonDTOS\" :key=\"v.dpId\" :label=\"v.scStuname\">\n\t\t\t\t\t\t\t\t\t\t<span style=\"font-size: 20px;width:100px;margin-right:10px;display:inline-block\">{{v.scStuname}}</span>\n\t\t\t\t\t\t\t\t\t\t<span style=\"font-size: 20px\">{{v.scNo}}</span>\n\t\t\t\t\t\t\t\t\t</el-checkbox>\n\t\t\t\t\t\t\t\t</el-checkbox-group>\n\t\t\t\t\t\t\t\t<div style=\"margin-left:50px\">\n\t\t\t\t\t\t\t\t\t<el-button type=\"text\" style=\"font-size:20px\" @click=\"item.visible = false\">取消</el-button>\n\t\t\t\t\t\t\t\t\t<el-button type=\"text\" style=\"font-size:20px;margin-left:15px\" @click=\"clickDel(checkList,item)\">确定</el-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<el-button type=\"text\" icon=\"el-icon-delete\" slot=\"reference\" style=\"fontSize:20px;padding-top:0px;color:#fff\"\n\t\t\t\t\t\t\t\t :disabled='(item.dormitorypersonDTOS && item.dormitorypersonDTOS.length>0 ? false : true)' @click=\"clickCheck\"\n\t\t\t\t\t\t\t\t v-if=\"$hasPermission('system:scdormitoryperson:delete')\"></el-button>\n\t\t\t\t\t\t\t</el-popover>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"bottom\">\n\t\t\t\t<div class=\"btRoom\">\n\t\t\t\t\t<div class=\"box\" v-for=\"(item,key) in bottomArr\" :key=\"key\">\n\t\t\t\t\t\t<div :class=\"item.dormitorypersonDTOS.length > 1 ? 'drNum' : 'drNums'\">{{item.drNum}}</div>\n\t\t\t\t\t\t<!-- 有人住 -->\n\t\t\t\t\t\t<div class=\"imgs\" v-if=\"item.dormitorypersonDTOS.length >0\">\n\t\t\t\t\t\t\t<div class=\"imgg\" v-for=\"(i,k) in item.dormitorypersonDTOS\" :key=\"k\">\n\t\t\t\t\t\t\t\t<el-tooltip class=\"item\" placement=\"bottom\" effect=\"light\">\n\t\t\t\t\t\t\t\t\t<div slot=\"content\">\n\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t<div>姓名:{{i.scStuname}}</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>学号:{{i.scNo}}</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>联系电话:{{i.scPhonenum}}</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t\t\t\t\t<el-image :src='$ImgServerUrl+i.scPhotoimg' fit='fill'>\n\t\t\t\t\t\t\t\t\t\t\t<div slot=\"error\" class=\"image-slot\">\n\t\t\t\t\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\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</el-image>\n\t\t\t\t\t\t\t\t\t\t<div v-if=\"i.isOut == '1'\" class=\"out\"><span>未归寝</span></div>\n\t\t\t\t\t\t\t\t\t\t<div v-else-if=\"i.isOut == '-1'\" class=\"dont\"><span>未入住</span></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"name\">{{i.scStuname}}</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</el-tooltip>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"con_pic\" v-show=\"item.dormitorypersonDTOS.length == 1\">\n\t\t\t\t\t\t\t\t<img class=\"img\" src=\"../../../assets/img/person.jpg\" alt=\"\">\n\t\t\t\t\t\t\t\t<div class=\"no\">\n\t\t\t\t\t\t\t\t\t<div>暂无人住</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<!-- 暂无人住 -->\n\t\t\t\t\t\t<div class=\"imgs\" v-else>\n\t\t\t\t\t\t\t<div class=\"con_pic\">\n\t\t\t\t\t\t\t\t<img class=\"img\" src=\"../../../assets/img/person.jpg\" alt=\"\">\n\t\t\t\t\t\t\t\t<div class=\"no\">\n\t\t\t\t\t\t\t\t\t<div>暂无人住</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"con_pic\">\n\t\t\t\t\t\t\t\t<img class=\"img\" src=\"../../../assets/img/person.jpg\" alt=\"\">\n\t\t\t\t\t\t\t\t<div class=\"no\">\n\t\t\t\t\t\t\t\t\t<div>暂无人住</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"operation\">\n\t\t\t\t\t\t\t<span class=\"fp\" @click=\"modifyAllocation('two',item)\"><img src=\"../../../assets/img/room/fp.png\" alt=\"\" v-if=\"$hasPermission('system:scdormitoryperson:save'||'system:scdormitoryperson:update')\"></span>\n\t\t\t\t\t\t\t<el-popover placement=\"right\" width=\"350\" v-model=\"item.visible\">\n\t\t\t\t\t\t\t\t<el-checkbox-group v-model=\"checkList\">\n\t\t\t\t\t\t\t\t\t<el-checkbox v-for=\"(v,key) in item.dormitorypersonDTOS\" :key=\"v.dpId\" :label=\"v.scStuname\">\n\t\t\t\t\t\t\t\t\t\t<span style=\"font-size: 20px;width:100px;margin-right:10px;display:inline-block\">{{v.scStuname}}</span>\n\t\t\t\t\t\t\t\t\t\t<span style=\"font-size: 20px\">{{v.scNo}}</span>\n\t\t\t\t\t\t\t\t\t</el-checkbox>\n\t\t\t\t\t\t\t\t</el-checkbox-group>\n\t\t\t\t\t\t\t\t<div style=\"margin-left:100px\">\n\t\t\t\t\t\t\t\t\t<el-button type=\"text\" style=\"font-size:20px\" @click=\"item.visible = false\">取消</el-button>\n\t\t\t\t\t\t\t\t\t<el-button type=\"text\" style=\"font-size:20px;margin-left:15px\" @click=\"clickDel(checkList,item)\">确定</el-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<el-button type=\"text\" icon=\"el-icon-delete\" slot=\"reference\" style=\"fontSize:20px;padding-top:0px;color:#fff\"\n\t\t\t\t\t\t\t\t :disabled='(item.dormitorypersonDTOS && item.dormitorypersonDTOS.length>0 ? false : true)' @click=\"clickCheck\"\n\t\t\t\t\t\t\t\t v-if=\"$hasPermission('system:scdormitoryperson:delete')\"></el-button>\n\t\t\t\t\t\t\t</el-popover>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<el-dialog title=\"分配\" :visible.sync=\"centerDialogVisible\" width=\"50%\" :close-on-click-modal=\"false\" :before-close=\"handleClose\"\n\t\t\t center>\n\t\t\t\t<el-form :model=\"formInline\" ref=\"formInline\" label-width=\"100px\" class=\"demo-dynamic\">\n\t\t\t\t\t<el-row>\n\t\t\t\t\t\t<el-col :span=\"10\" style=\"marginLeft:110px\">\n\t\t\t\t\t\t\t<el-form-item prop=\"scStdid\" label=\"姓名\" v-for=\"(item, key) in formInline.stus\" :key=\"key.index\">\n\t\t\t\t\t\t\t\t<el-select v-model=\"item.scStdid\" filterable placeholder=\"请选择\" @change='changeName($event,item)'>\n\t\t\t\t\t\t\t\t\t<el-option v-for=\"item in optNameNo\" :key=\"item.scStdid\" :label=\"item.scStuname\" :value=\"item.scStdid\">\n\t\t\t\t\t\t\t\t\t</el-option>\n\t\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t\t</el-col>\n\t\t\t\t\t\t<el-col :span=\"10\">\n\t\t\t\t\t\t\t<el-form-item label=\"学号:\" prop=\"scNo\" v-for=\"(item, key) in formInline.stus\" :key=\"key.index\">\n\t\t\t\t\t\t\t\t<div class=\"item\">\n\t\t\t\t\t\t\t\t\t<el-select v-model=\"item.scNo\" filterable placeholder=\"请选择\" @change='changeNo($event,item)'>\n\t\t\t\t\t\t\t\t\t\t<el-option v-for=\"item in optNameNo\" :key=\"item.scIdno\" :label=\"item.scNo\" :value=\"item.scIdno\">\n\t\t\t\t\t\t\t\t\t\t</el-option>\n\t\t\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t</el-form-item>\n\n\t\t\t\t\t\t</el-col>\n\t\t\t\t\t</el-row>\n\t\t\t\t</el-form>\n\t\t\t\t<span slot=\"footer\" class=\"dialog-footer\">\n\t\t\t\t\t<el-button @click=\"resetForm\">取 消</el-button>\n\t\t\t\t\t<el-button type=\"primary\" @click=\"confirm\" v-loading=\"loading\">确 定</el-button>\n\t\t\t\t</span>\n\t\t\t</el-dialog>\n\t\t</div>\n\t\t<!-- 批量上传信息 -->\n\t\t<upload ref=\"roomExcel\" template-url=\"./template/宿舍信息导入表模板.xlsx\" upload-url=\"/system/scdormitoryperson/importInfoExcel\"></upload>\n\t</el-card>\n</template>\n\n<script>\n\timport debounce from 'lodash/debounce'\n\timport upload from '@/components/public/upload-excel-or-img'\n\timport {\n\t\ttreeDataTranslate\n\t} from '@/utils'\n\timport Cookies from 'js-cookie'\n\timport qs from 'qs'\n\texport default {\n\t\tcomponents: {\n\t\t\tupload\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tloading: false,\n\t\t\t\tcheckList: [],\n\t\t\t\ttopArr: [],\n\t\t\t\tleftArr: [],\n\t\t\t\trightArr: [],\n\t\t\t\tbottomArr: [],\n\t\t\t\t//分页\n\t\t\t\tpages: {\n\t\t\t\t\tpageNo: 1,\n\t\t\t\t\tpageSize: 6000\n\t\t\t\t},\n\t\t\t\ttitle: '',\n\t\t\t\tcenterDialogVisible: false,\n\t\t\t\tformInline: {\n\t\t\t\t\tstus: [{\n\t\t\t\t\t\t\tscStdid: '',\n\t\t\t\t\t\t\tscNo: '',\n\t\t\t\t\t\t\tdpId: '',\n\t\t\t\t\t\t\tkey: '0'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tscStdid: '',\n\t\t\t\t\t\t\tscNo: '',\n\t\t\t\t\t\t\tdpId: '',\n\t\t\t\t\t\t\tkey: '1'\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t//学生姓名 / 学号\n\t\t\t\toptNameNo: [],\n\t\t\t\t//楼层\n\t\t\t\tdataList: [],\n\t\t\t\tfloorF: '',\n\t\t\t\tfloor: {},\n\t\t\t\tcheckFloor: '',\n\t\t\t\t//房间id\n\t\t\t\tdrId: '',\n\t\t\t\t//入住id\n\t\t\t\tdpId: '',\n\t\t\t\tidsItem: [],\n\t\t\t\tbackNum: '',\n\t\t\t\toutNum: '',\n\t\t\t}\n\t\t},\n\t\tmounted() {\n\t\t\tthis.getCode()\n\t\t\tif (!window.sessionStorage.getItem('floorId')) {\n\t\t\t\tthis.search()\n\t\t\t}\n\t\t},\n\t\tactivated() {\n\t\t\t// 首页宿舍今日用电量TOP10跳转进来\n\t\t\tlet floorId = window.sessionStorage.getItem('floorId');\n\t\t\tif (floorId) {s\n\t\t\t\twindow.sessionStorage.removeItem('floorId');ss\n\t\t\t\tthis.search(floorId)\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\t// 导入\n\t\t\timportHandle() {\n\t\t\t\tthis.$refs['roomExcel'].init()\n\t\t\t},\n\t\t\texportHandle(){\n\t\t\t\tvar params = qs.stringify({\n\t\t\t\t 'access_token': Cookies.get('access_token')\n\t\t\t\t})\n\t\t\t\twindow.location.href = `${window.SITE_CONFIG['apiURL']}/system/scdormitoryperson/exportInfoExcel?${params}`\n\t\t\t},\n\t\t\t//分页 数据\n\t\t\tdataFun(item) {\n\t\t\t\tthis.floorF = item.df_floorname\n\t\t\t\tthis.getTotalNum(item)\n\t\t\t\tlet params = {\n\t\t\t\t\tpage: this.pages.pageNo,\n\t\t\t\t\tlimit: this.pages.pageSize,\n\t\t\t\t\tfloorId: item.df_floorid,\n\t\t\t\t\ttype: item.df_type,\n\t\t\t\t\tscNo: \"\",\n\t\t\t\t\tscStuname: \"\",\n\t\t\t\t}\n\t\t\t\tthis.$http.get('/system/scdormitoryperson/page', {\n\t\t\t\t\t\tparams\n\t\t\t\t\t})\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\tlet arr = res.data.list.map(item => {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...item,\n\t\t\t\t\t\t\t\tvisible: false\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.topArr = arr.slice(0, 11);\n\t\t\t\t\t\tthis.rightArr = arr.slice(11, 14);\n\t\t\t\t\t\tthis.bottomArr = arr.slice(14, 24).reverse();\n\t\t\t\t\t\tthis.leftArr = arr.slice(24).reverse();\n\t\t\t\t\t})\n\t\t\t},\n\t\t\tgetTotalNum(item) {\n\t\t\t\tlet params = {\n\t\t\t\t\tfloorId: item.df_floorid,\n\t\t\t\t\ttype: item.df_type,\n\t\t\t\t\tscNo: '',\n\t\t\t\t\tscStuname: '',\n\t\t\t\t}\n\t\t\t\tthis.$http.get('/system/scdormitoryperson/getRoomCheckInInfo', {\n\t\t\t\t\t\tparams\n\t\t\t\t\t})\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\tlet {\n\t\t\t\t\t\t\tbackNum,\n\t\t\t\t\t\t\toutNum\n\t\t\t\t\t\t} = res.data\n\t\t\t\t\t\tthis.backNum = backNum;\n\t\t\t\t\t\tthis.outNum = outNum;\n\t\t\t\t\t})\n\t\t\t},\n\t\t\t//楼层\n\t\t\tsearch(floorId) {\n\t\t\t\tthis.$http.get('/system/scdormitoryfloor/roomTree/0').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\tlet list = res.data.map(item => {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...item,\n\t\t\t\t\t\t\t\tname: item.df_floorname,\n\t\t\t\t\t\t\t\tid: item.df_floorid,\n\t\t\t\t\t\t\t\tpid: item.df_parentid\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\tlet arr = treeDataTranslate(list)\n\t\t\t\t\t\tlet crr = arr[0].children.map((v, index) => {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tdf_floorname: v.df_floorname,\n\t\t\t\t\t\t\t\tdf_type: v.df_type,\n\t\t\t\t\t\t\t\tdf_floorid: v.df_floorid,\n\t\t\t\t\t\t\t\tml: 30 * index\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.dataList = crr.reverse()\n\n\t\t\t\t\t\t// 路由跳转过来,floorId有值\n\t\t\t\t\t\tif (floorId) {\n\t\t\t\t\t\t\tthis.dataList.forEach(item => {\n\t\t\t\t\t\t\t\tif (floorId === item.df_floorid) {\n\t\t\t\t\t\t\t\t\tthis.floor = item\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.floor = {\n\t\t\t\t\t\t\t\tdf_floorname: this.dataList[this.dataList.length - 1].df_floorname,\n\t\t\t\t\t\t\t\tdf_type: this.dataList[this.dataList.length - 1].df_type,\n\t\t\t\t\t\t\t\tdf_floorid: this.dataList[this.dataList.length - 1].df_floorid,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.dataFun(this.floor)\n\t\t\t\t\t\tthis.checkFloor = this.floor.df_floorid\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.dataList = []\n\t\t\t\t\t\tthis.$message.error(data.msg)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t//切换楼层\n\t\t\tclickFloor(item) {\n\t\t\t\tthis.floor = item\n\t\t\t\tthis.dataFun(item)\n\t\t\t\tthis.checkFloor = item.df_floorid\n\t\t\t},\n\t\t\t//分配 修改\n\t\t\tmodifyAllocation(type, item) {\n\t\t\t\tthis.idsItem = item.dormitorypersonDTOS;\n\t\t\t\tthis.formInline.stus = []\n\t\t\t\tif (type == 'one') {\n\t\t\t\t\tthis.formInline.stus.push({\n\t\t\t\t\t\tscStdid: '',\n\t\t\t\t\t\tscNo: '',\n\t\t\t\t\t\tkey: '0',\n\t\t\t\t\t\tdpId: ''\n\t\t\t\t\t});\n\t\t\t\t} else if (type == 'two') {\n\t\t\t\t\tthis.formInline.stus.push({\n\t\t\t\t\t\tscStdid: '',\n\t\t\t\t\t\tscNo: '',\n\t\t\t\t\t\tkey: '0',\n\t\t\t\t\t\tdpId: ''\n\t\t\t\t\t}, {\n\t\t\t\t\t\tscStdid: '',\n\t\t\t\t\t\tscNo: '',\n\t\t\t\t\t\tkey: '1',\n\t\t\t\t\t\tdpId: ''\n\t\t\t\t\t}, );\n\t\t\t\t}\n\t\t\t\tthis.drId = item.drId; //房间id\n\t\t\t\tlet key = 0\n\t\t\t\tlet dpIds = item.dormitorypersonDTOS.map(item => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...item,\n\t\t\t\t\t\tkey: key++\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tif (dpIds.length > 0) {\n\t\t\t\t\tthis.getCode(dpIds)\n\t\t\t\t} else {\n\t\t\t\t\tthis.getCode()\n\t\t\t\t}\n\n\t\t\t\tthis.centerDialogVisible = true;\n\t\t\t},\n\t\t\t//学生姓名 下拉\n\t\t\tgetCode(ids) {\n\t\t\t\tthis.formInline.stus.forEach(v => {\n\t\t\t\t\tv.scStdid = '';\n\t\t\t\t\tv.scNo = ''\n\t\t\t\t})\n\t\t\t\tlet val = []\n\t\t\t\tif (ids) {\n\t\t\t\t\tids.forEach(v => {\n\t\t\t\t\t\tval.push(v.scStdid)\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tthis.$http.post('/system/scstudents/getStudentsInfo', val)\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\tthis.optNameNo = res.data;\n\t\t\t\t\t\t\tif (ids) {\n\t\t\t\t\t\t\t\tthis.formInline.stus.forEach(item => {\n\t\t\t\t\t\t\t\t\tids.forEach(k => {\n\t\t\t\t\t\t\t\t\t\tif (item.key == k.key) {\n\t\t\t\t\t\t\t\t\t\t\titem.scStdid = k.scStdid;\n\t\t\t\t\t\t\t\t\t\t\titem.scNo = k.scIdno;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t},\n\t\t\t//下拉 配置\n\t\t\tchangeName(e, v) {\n\t\t\t\tlet arr = this.optNameNo.filter(item => {\n\t\t\t\t\tif (v.scStdid == item.scStdid) {\n\t\t\t\t\t\treturn item\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tfor (let i of this.formInline.stus) {\n\t\t\t\t\tif (i.key == v.key) {\n\t\t\t\t\t\ti.scNo = arr[0].scNo\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tchangeNo(e, v) {\n\t\t\t\tlet arr = this.optNameNo.filter(item => {\n\t\t\t\t\tif (v.scNo == item.scIdno) {\n\t\t\t\t\t\treturn item\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tfor (let i of this.formInline.stus) {\n\t\t\t\t\tif (i.key == v.key) {\n\t\t\t\t\t\ti.scStdid = arr[0].scStdid\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t//修改 分配 / 表单提交\n\t\t\tconfirm: debounce(function() {\n\t\t\t\tlet length = 0\n\t\t\t\tthis.formInline.stus.forEach(v => {\n\t\t\t\t\tif (v.scStdid == '') {\n\t\t\t\t\t\tlength++\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tif (length == 2) {\n\t\t\t\t\treturn this.$message.info('请至少分配一条信息!!')\n\t\t\t\t}\n\t\t\t\tlet params = {};\n\t\t\t\tlet arr = this.idsItem;\n\t\t\t\tlet brr = this.formInline.stus;\n\t\t\t\tlet crr = []\n\t\t\t\tlet drr = []\n\t\t\t\tlet err = []\n\t\t\t\tif (arr.length > 0) {\n\t\t\t\t\tarr.forEach((item, index) => {\n\t\t\t\t\t\tbrr.forEach(v => {\n\t\t\t\t\t\t\tv.drId = this.drId\n\t\t\t\t\t\t\tif (index == v.key) {\n\t\t\t\t\t\t\t\tv.dpId = item.dpId\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t} else if (arr.length == 0) {\n\t\t\t\t\tbrr.forEach(v => {\n\t\t\t\t\t\tv.drId = this.drId\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tbrr.forEach((val, index) => {\n\t\t\t\t\tif (val.scStdid) {\n\t\t\t\t\t\tcrr.push(val)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tcrr.forEach(item => {\n\t\t\t\t\t//修改\n\t\t\t\t\tif (item.dpId) {\n\t\t\t\t\t\tdrr.push(item)\n\t\t\t\t\t\t//分配\n\t\t\t\t\t} else {\n\t\t\t\t\t\terr.push(item)\n\t\t\t\t\t}\n\n\t\t\t\t})\n\t\t\t\tif (drr.length > 0) {\n\t\t\t\t\tthis.loading = true\n\t\t\t\t\tthis.$http.put('/system/scdormitoryperson', drr)\n\t\t\t\t\t\t.then(({\n\t\t\t\t\t\t\tdata: res\n\t\t\t\t\t\t}) => {\n\t\t\t\t\t\t\tif (res.code != 0) {\n\t\t\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.loading = false\n\t\t\t\t\t\t\tthis.centerDialogVisible = false;\n\t\t\t\t\t\t\tthis.dataFun(this.floor)\n\t\t\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t\t\t\tthis.$refs['formInline'].resetFields();\n\t\t\t\t\t\t}).catch(() => {}).finally(() => {\n\t\t\t\t\t\t\tthis.loading = false\n\t\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tif (err.length > 0) {\n\t\t\t\t\tthis.loading = true\n\t\t\t\t\tthis.$http.post('/system/scdormitoryperson', err)\n\t\t\t\t\t\t.then(({\n\t\t\t\t\t\t\tdata: res\n\t\t\t\t\t\t}) => {\n\t\t\t\t\t\t\tif (res.code != 0) {\n\t\t\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.loading = false\n\t\t\t\t\t\t\tthis.centerDialogVisible = false;\n\t\t\t\t\t\t\tthis.dataFun(this.floor)\n\t\t\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t\t\t\tthis.$refs['formInline'].resetFields();\n\t\t\t\t\t\t}).catch(() => {}).finally(() => {\n\t\t\t\t\t\t\tthis.loading = false\n\t\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}, 1000),\n\t\t\tclickCheck() {\n\t\t\t\tthis.checkList = []\n\t\t\t},\n\t\t\tclickQx() {\n\t\t\t\tthis.visible = false\n\t\t\t},\n\t\t\t//删除\n\t\t\tclickDel(id, arr) {\n\t\t\t\tlet visible = arr.visible;\n\t\t\t\tlet arrDOTS = arr.dormitorypersonDTOS\n\t\t\t\tif (id.length == 0) {\n\t\t\t\t\treturn this.$message.info('请选择人员再删除!')\n\t\t\t\t}\n\t\t\t\tthis.$confirm('确认删除?', '提示', {\n\t\t\t\t\tconfirmButtonText: '确定',\n\t\t\t\t\tcancelButtonText: '取消',\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t}).then(() => {\n\t\t\t\t\tlet parmas = [];\n\t\t\t\t\tid.forEach(item => {\n\t\t\t\t\t\tarrDOTS.forEach(v => {\n\t\t\t\t\t\t\tif (v.scStuname == item) {\n\t\t\t\t\t\t\t\tparmas.push(v.dpId)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t\tthis.$http.post('/system/scdormitoryperson/id', parmas)\n\t\t\t\t\t\t.then(({\n\t\t\t\t\t\t\tdata: res\n\t\t\t\t\t\t}) => {\n\t\t\t\t\t\t\tif (res.code != 0) {\n\t\t\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.dataFun(this.floor)\n\t\t\t\t\t\t\tvisible = false\n\t\t\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t},\n\t\t\tresetForm() {\n\t\t\t\tthis.centerDialogVisible = false;\n\t\t\t},\n\t\t\thandleClose() {\n\t\t\t\tthis.centerDialogVisible = false;\n\t\t\t},\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t@mixin dm-style {\n\t\twidth: 100%;\n\t\theight: 180px;\n\t\tbackground-color: #2C405B;\n\t\tborder-radius: 4px;\n\t\tfont-size: 26px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t}\n\n\t@mixin drNum-style {\n\t\ttext-align: center;\n\t\tfont-size: 22px;\n\t\tborder-radius: 4px;\n\t\tcolor: #fff;\n\t}\n\n\t@mixin box-style {\n\t\tbackground-color: #2C405B;\n\t\tmargin-bottom: 9px;\n\t\tborder-radius: 4px;\n\t}\n\n\t/deep/ .el-card__body {\n\t\tpadding: 0;\n\t}\n\n\t.roomBox {\n\n\t\t.top,\n\t\t.bottom {\n\t\t\twidth: 100%;\n\t\t\theight: 180px;\n\t\t\tdisplay: flex;\n\t\t\tmargin-bottom: 6px;\n\n\t\t\t.topRoom,\n\t\t\t.btRoom {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-wrap: nowrap;\n\n\t\t\t\t.box {\n\t\t\t\t\t@include box-style;\n\t\t\t\t\twidth: 140px;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\tmargin-right: 11px;\n\n\t\t\t\t\t.drNum {\n\t\t\t\t\t\t@include drNum-style;\n\t\t\t\t\t\tmargin-bottom: 10px;\n\t\t\t\t\t\tbackground-color: #73C060;\n\t\t\t\t\t}\n\n\t\t\t\t\t.drNums {\n\t\t\t\t\t\t@include drNum-style;\n\t\t\t\t\t\tmargin-bottom: 10px;\n\t\t\t\t\t\tbackground-color: #FFC945;\n\t\t\t\t\t}\n\n\t\t\t\t\t.imgs {\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\tjustify-content: space-around;\n\t\t\t\t\t\tcolor: #fff;\n\n\t\t\t\t\t\t.imgg {\n\t\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t\t\tz-index: 1;\n\n\t\t\t\t\t\t\t.out {\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t\tbackground: rgba(245, 54, 54, 0.55);\n\t\t\t\t\t\t\t\tz-index: 2;\n\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\theight: 80px;\n\t\t\t\t\t\t\t\ttop: 0;\n\t\t\t\t\t\t\t\tleft: 0;\n\n\t\t\t\t\t\t\t\tspan {\n\t\t\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\t\t\tvertical-align: middle;\n\t\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\t\tline-height: 80px;\n\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.dont {\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t\tbackground: rgba(0, 0, 0, 0.75);\n\t\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\t\tz-index: 2;\n\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\theight: 80px;\n\t\t\t\t\t\t\t\ttop: 0;\n\t\t\t\t\t\t\t\tleft: 0;\n\n\t\t\t\t\t\t\t\tspan {\n\t\t\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\t\t\tvertical-align: middle;\n\t\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\t\tline-height: 80px;\n\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.el-image {\n\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\theight: 80px;\n\n\t\t\t\t\t\t\t.student-img {\n\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\theight: 80px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.name {\n\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t\t\t\twhite-space: nowrap;\n\t\t\t\t\t\t\tmargin-top: 6px;\n\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.con_pic {\n\t\t\t\t\t\t\t.img {\n\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\theight: 80px;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.no {\n\t\t\t\t\t\t\t\tmargin-top: 10px;\n\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t.operation {\n\t\t\t\t\t\tcolor: #fff;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\tjustify-content: space-around;\n\t\t\t\t\t\tmargin-top: 10px;\n\n\t\t\t\t\t\t.fp,\n\t\t\t\t\t\t.del {\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.topDm,\n\t\t\t.btDm {\n\t\t\t\t@include dm-style;\n\n\t\t\t\timg {\n\t\t\t\t\tmargin-top: 30px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.center {\n\t\t\twidth: 100%;\n\t\t\tdisplay: flex;\n\n\t\t\t.lRoom,\n\t\t\t.rRoom {\n\t\t\t\t.box {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\twidth: 160px;\n\t\t\t\t\t@include box-style;\n\n\t\t\t\t\t.drNum {\n\t\t\t\t\t\t@include drNum-style;\n\t\t\t\t\t\tbackground-color: #73C060;\n\t\t\t\t\t\tfont-size: 20px;\n\t\t\t\t\t\tline-height: 130px;\n\t\t\t\t\t}\n\n\t\t\t\t\t.drNums {\n\t\t\t\t\t\t@include drNum-style;\n\t\t\t\t\t\tbackground-color: #FFC945;\n\t\t\t\t\t\tfont-size: 20px;\n\t\t\t\t\t\tline-height: 130px;\n\t\t\t\t\t}\n\n\t\t\t\t\t.imgs {\n\t\t\t\t\t\twidth: 100px;\n\t\t\t\t\t\tmargin: 10px;\n\t\t\t\t\t\tcolor: #fff;\n\n\t\t\t\t\t\t.imgg {\n\t\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t\t\tz-index: 1;\n\n\t\t\t\t\t\t\t.content {\n\t\t\t\t\t\t\t\tdisplay: flex;\n\n\t\t\t\t\t\t\t\t.out {\n\t\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t\t\tbackground: rgba(245, 54, 54, 0.55);\n\t\t\t\t\t\t\t\t\tz-index: 2;\n\t\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\t\theight: 80px;\n\t\t\t\t\t\t\t\t\ttop: 0;\n\n\t\t\t\t\t\t\t\t\tspan {\n\t\t\t\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\t\t\t\tvertical-align: middle;\n\t\t\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\t\t\tline-height: 80px;\n\t\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t.dont {\n\t\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t\t\tbackground: rgba(0, 0, 0, 0.75);\n\t\t\t\t\t\t\t\t\tz-index: 2;\n\t\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\t\theight: 80px;\n\t\t\t\t\t\t\t\t\ttop: 0;\n\t\t\t\t\t\t\t\t\tleft: 0;\n\n\t\t\t\t\t\t\t\t\tspan {\n\t\t\t\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\t\t\t\tvertical-align: middle;\n\t\t\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\t\t\tline-height: 80px;\n\t\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t.el-image {\n\t\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\t\theight: 80px;\n\t\t\t\t\t\t\t\t\tposition: relative;\n\n\t\t\t\t\t\t\t\t\t.student-img {\n\t\t\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\t\t\theight: 80px;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t.name {\n\t\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t\t\t\t\t\twhite-space: nowrap;\n\t\t\t\t\t\t\t\t\tmargin-top: 90px;\n\t\t\t\t\t\t\t\t\tmargin-left: -90px;\n\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t\t\tcolor: #fff;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.con_pic {\n\t\t\t\t\t\t\t.img {\n\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\theight: 80px;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.no {\n\t\t\t\t\t\t\t\tmargin-top: 10px;\n\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t.operation {\n\t\t\t\t\t\tmargin-top: 20px;\n\t\t\t\t\t\tcursor: pointer;\n\n\t\t\t\t\t\t.fp {\n\t\t\t\t\t\t\timg {\n\t\t\t\t\t\t\t\tmargin-bottom: 30px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.content {\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\tcolor: #fff;\n\n\t\t\t\t.left {\n\t\t\t\t\tmargin-left: 50px;\n\n\t\t\t\t\t.floor {\n\t\t\t\t\t\tfont-size: 24px;\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\twidth: 200px;\n\t\t\t\t\t\theight: 30px;\n\t\t\t\t\t\tcolor: black;\n\t\t\t\t\t\tline-height: 30px;\n\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\tbox-shadow: 6px 4px 10px #949ba5;\n\t\t\t\t\t\tmargin-bottom: 10px;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t.right {\n\t\t\t\t\twidth: 50%;\n\t\t\t\t\ttext-align: center;\n\n\t\t\t\t\t.btn {\n\t\t\t\t\t\tmargin-bottom: 80px;\n\t\t\t\t\t}\n\n\t\t\t\t\th1 {\n\t\t\t\t\t\tfont-size: 38px;\n\t\t\t\t\t}\n\n\t\t\t\t\tspan {\n\t\t\t\t\t\tfont-size: 26px;\n\t\t\t\t\t}\n\n\t\t\t\t\t.yd {\n\t\t\t\t\t\tmargin-right: 40px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.bottom {\n\t\t\t.btRoom {\n\t\t\t\t.box {\n\t\t\t\t\t@include box-style;\n\t\t\t\t\twidth: 150px;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\tmargin-right: 17px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n</style>\n"]}]} |