forked from zhurui/management
1 line
15 KiB
JSON
1 line
15 KiB
JSON
|
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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//\nimport mixinViewModule from '@/mixins/view-module';\nimport addOrUpdate from \"./student/student-add-or-update\";\nimport viewStudent from \"./student/student-view\";\nimport { getDictLabel } from '@/utils';\nimport upload from '@/components/public/upload-excel-or-img';\nexport default {\n mixins: [mixinViewModule],\n components: {\n addOrUpdate: addOrUpdate,\n viewStudent: viewStudent,\n upload: upload\n },\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/scstudents/page',\n deleteURL: '/system/scstudents',\n getDataListIsPage: true\n },\n limit: 6,\n dataForm: {\n scStuname: '',\n scNo: ''\n },\n dataList: [],\n checkList: [],\n loading: false\n };\n },\n computed: {\n previewList: function previewList() {\n var _this = this;\n\n return this.dataList.map(function (item) {\n return _this.$ImgServerUrl + item.scPhotoimg;\n });\n }\n },\n methods: {\n // 选择需要导出的人员\n checkListHandle: function checkListHandle(param) {\n this.checkList = param.map(function (item) {\n return item.scStdid;\n });\n console.log(this.checkList);\n },\n // 导出\n exportHandle: function exportHandle() {\n var _this2 = this;\n\n if (this.checkList.length === 0) {\n return this.$message.warning(\"\\u8BF7\\u52FE\\u9009\\u9700\\u8981\\u5BFC\\u51FA\\u7684\\u6570\\u636E\");\n }\n\n this.loading = true;\n this.$http.post(\"/system/scstudents/pageExport\", this.checkList, {\n responseType: \"blob\"\n }).then(function (res) {\n var content = res.data;\n var blob = new Blob([content], {\n type: \"application/vnd.ms-excel;charset=utf-8\"\n });\n var fileName = \"学生信息\";\n\n if (\"download\" in document.createElement(\"a\")) {\n var elink = document.createElement(\"a\");\n elink.download = fileName;\n elink.style.display = \"none\";\n elink.href = URL.createObjectURL(blob);\n document.body.appendChild(elink);\n elink.click();\n URL.revokeObjectURL(elink.href);\n document.body.removeChild(elink);\n } else {\n navigator.msSaveBlob(blob, fileName);\n }\n }).catch(function () {}).finally(function () {\n _this2.loading = false;\n });\n },\n addStudent: function addStudent() {\n this.$refs['addOrUpdate'].init();\n },\n search: function search() {\n this.page = 1;\n this.query();\n },\n resetQuery: function resetQuery() {\n
|