{"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\\personData\\student.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\personData\\student.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\nimport mixinViewModule from '@/mixins/view-module'\nimport addOrUpdate from './student/student-add-or-update'\nimport viewStudent from './student/student-view'\nimport {\n\tgetDictLabel\n} from '@/utils'\nimport upload from '@/components/public/upload-excel-or-img'\n\nexport default {\n\tmixins: [mixinViewModule],\n\tcomponents: {\n\t\taddOrUpdate,\n\t\tviewStudent,\n\t\tupload,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tmixinViewModuleOptions: {\n\t\t\t\tgetDataListURL: '/system/scstudents/page',\n\t\t\t\tdeleteURL: '/system/scstudents',\n\t\t\t\tgetDataListIsPage: true,\n\t\t\t},\n\t\t\tlimit: 6,\n\t\t\tdataForm: {\n\t\t\t\tscStuname: '',\n\t\t\t\tscNo: ''\n\t\t\t},\n\t\t\tdataList: [],\n\t\t\tcheckList: [],\n\t\t\tloading: false,\n\t\t}\n\t},\n\tcomputed: {\n\t\tpreviewList() {\n\t\t\treturn this.dataList.map(item => {\n\t\t\t\treturn this.$ImgServerUrl + item.scPhotoimg\n\t\t\t})\n\t\t},\n\t},\n\tmethods: {\n\t\t// 选择需要导出的人员\n\t\tcheckListHandle(param) {\n\t\t\tthis.checkList = param.map(item => {\n\t\t\t\treturn item.scStdid\n\t\t\t})\n\t\t\tconsole.log(this.checkList)\n\t\t},\n\t\t// 导出\n\t\texportHandle() {\n\t\t\tif (this.checkList.length === 0) {\n\t\t\t\treturn this.$message.warning(`请勾选需要导出的数据`)\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\tthis.$http.post(`/system/scstudents/pageExport`, this.checkList, {\n\t\t\t\tresponseType: \"blob\"\n\t\t\t}).then(res => {\n\t\t\t\tconst content = res.data;\n\t\t\t\tconst blob = new Blob([content], {\n\t\t\t\t\ttype: \"application/vnd.ms-excel;charset=utf-8\"\n\t\t\t\t});\n\t\t\t\tconst fileName = \"学生信息\";\n\t\t\t\tif (\"download\" in document.createElement(\"a\")) {\n\t\t\t\t\tconst elink = document.createElement(\"a\");\n\t\t\t\t\telink.download = fileName;\n\t\t\t\t\telink.style.display = \"none\";\n\t\t\t\t\telink.href = URL.createObjectURL(blob);\n\t\t\t\t\tdocument.body.appendChild(elink);\n\t\t\t\t\telink.click();\n\t\t\t\t\tURL.revokeObjectURL(elink.href);\n\t\t\t\t\tdocument.body.removeChild(elink);\n\t\t\t\t} else {\n\t\t\t\t\tnavigator.msSaveBlob(blob, fileName);\n\t\t\t\t}\n\t\t\t}).catch(() => {}).finally(() => {\n\t\t\t\tthis.loading = false\n\t\t\t})\n\t\t},\n\n\t\taddStudent() {\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\tresetQuery() {\n\t\t\tthis.page = 1;\n\t\t\tthis.dataForm = {\n\t\t\t\tscStuname: '',\n\t\t\t\tscNo: ''\n\t\t\t};\n\t\t\tthis.query();\n\t\t},\n\t\tviewHandle(row) {\n\t\t\tthis.$refs['viewStudent'].init(row)\n\t\t},\n\t\teditHandle(row) {\n\t\t\tthis.$refs['addOrUpdate'].init(row)\n\t\t},\n\t\ttrackHandle(row) {\n\t\t\tthis.$router.push({\n\t\t\t\tpath: \"/xwyl-track\",\n\t\t\t\tquery: {\n\t\t\t\t\ttid: row.scUwbid\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tuploadExcel() {\n\t\t\tthis.$refs['studentUploadExcel'].init()\n\t\t},\n\t\tuploadImg() {\n\t\t\tthis.$refs['studentUploadImg'].init()\n\t\t},\n\t\tformatterEducation(row) {\n\t\t\treturn getDictLabel('education', row.scEducation)\n\t\t},\n\t\tformatterSex(row) {\n\t\t\treturn getDictLabel('gender', row.scSex)\n\t\t}\n\t}\n}\n",{"version":3,"sources":["student.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DA;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;;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","file":"student.vue","sourceRoot":"src/views/modules/personData","sourcesContent":["\n\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t查询\n\t\t\t\t重置\n\t\t\t\t新建\n\t\t\t\t导入信息\n\t\t\t\t导入图片\n\t\t\t\t导出信息\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\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\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t详情\n\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\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\n\n\n\n"]}]}