forked from zhurui/management
1 line
13 KiB
JSON
1 line
13 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\\registerManage\\student.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\registerManage\\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":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 '@/views/modules/registerManage/student-bind';\nimport viewStudent from '@/views/modules/registerManage/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 };\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 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 this.dataForm = {\n scStuname: '',\n scNo: ''\n };\n this.page = 1;\n this.query();\n },\n viewHandle: function viewHandle(row) {\n this.$refs['viewStudent'].init(row);\n },\n editHandle: function editHandle(row) {\n this.$refs['addOrUpdate'].init(row);\n },\n uploadExcel: function uploadExcel() {\n this.$refs['studentUploadExcel'].init();\n },\n unbindHandle: function unbindHandle(row) {\n var _this2 = this;\n\n this.$confirm('确定进行解绑操作?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n var dataForm = _objectSpread({}, row, {\n scGraduationdate: row.scGraduationdate ? row.scGraduationdate : null,\n scUwbid: '',\n scRfcardid: ''\n });\n\n _this2.$http({\n url: \"/system/scstudents\",\n method: 'put',\n data: dataForm\n }).then(function (_ref) {\n var data = _ref.data;\n\n if (data.code != 0) {\n return _this2.$message.error(data.msg);\n }\n\n _this2.query();\n\n _this2.$message.success(data.msg);\n });\n });\n },\n formatterSex: function formatterSex(row) {\n return getDictLabel('gender', row.scSex);\n }\n }\n};",{"version":3,"sources":["student.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEA,OAAA,eAAA,MAAA,sBAAA;AACA,OAAA,WAAA,MAAA,6CAAA;AACA,OAAA,WAAA,MAAA,6CAAA;AACA,SAAA,YAAA,QAAA,SAAA;AACA,OAAA,MAAA,MAAA,yCAAA;AACA,eAAA;AACA,EAAA,MAAA,EAAA,CAAA,eAAA,CADA;AAEA,EAAA,UAAA,EAAA;AAAA,IAAA,WAAA,EAAA,WAAA;AAAA,IAAA,WAAA,EAAA,WAAA;AAAA,IAAA,MAAA,EAAA;AAAA,GAFA;AAGA,EAAA,IAHA,kBAGA;AACA,WAAA;AACA,MAAA,sBAAA,EAAA;AACA,QAAA,cAAA,EAAA,yBADA;AAEA,QAAA,SAAA,EAAA,oBAFA;AAGA,QAAA,iBAAA,EAAA;AAHA,OADA;AAMA,MAAA,KAAA,EAAA,CANA;AAOA,MAAA,QAAA,EAAA;AACA,QAAA,SAAA,EAAA,EADA;AAEA,QAAA,IAAA,EAAA;AAFA,OAPA;AAWA,MAAA,QAAA,EAAA;AAXA,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AAA,UAAA,EAAA;AAJA,UAAA;;AAMA,QAAA,MAAA,CAAA,KAAA,CAAA;AACA,UAAA,GAAA,EAAA,oBADA;AAEA,UAAA,MAAA,EAAA,KAFA;AAGA,UAAA,IAAA,EAAA;AAHA,SAAA,EAIA,IAJA,CAIA,gBAAA;AAAA,cAAA,IAAA,QAAA,IAAA;;AACA,cAAA,IAAA,CAAA,IAAA,IAAA,CAAA,EAAA;AACA,mBAAA,MAAA,CAAA,QAAA,CAAA,KAAA,CAAA,IAAA,CAAA,GAAA,CAAA;AACA;;AACA,UAAA,MAAA,CAAA,KAAA;;AACA,UAAA,MAAA,CAAA,QAAA,CAAA,OAAA,CAAA,IAAA,CAAA,GAAA;AACA,SAVA;AAWA,OAtBA;AAuBA,KAjDA;AAkDA,IAAA,YAlDA,wBAkDA,GAlDA,EAkDA;AACA,aAAA,YAAA,CAAA,QAAA,EAAA,GAAA,CAAA,KAAA,CAAA;AACA;AApDA;AAzBA,CAAA","sourcesContent":["<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <el-form ref=\"dataForm\" :model=\"dataForm\" label-width=\"80px\" inline>\n <el-form-item label=\"姓名\" prop=\"scStuname\">\n <el-input v-model=\"dataForm.scStuname\" placeholder=\"请输入\" clearable></el-input>\n </el-form-item>\n <el-form-item label=\"学号\" prop=\"scNo\">\n <el-input v-model=\"dataForm.scNo\" placeholder=\"请输入\" clearable></el-input>\n </el-form-item>\n <el-form-item>\n <el-button @click=\"search\">查询</el-button>\n <el-button type=\"warning\" @click=\"resetForm('dataForm')\">重置</el-button>\n <el-button type=\"success\" @click=\"uploadExcel\">导入</el-button>\n </el-form-item>\n </el-form>\n <el-table :data=\"dataList\">\n <el-table-column type=\"index\" label=\"序号\" width=\"100\" align=\"center\"></el-table-column>\n <el-table-column label=\"照片\">\n <template slot-scope=\"scope\">\n <el-image class=\"student-img\" :src=\"$ImgServerUrl+scope.row.scPhotoimg\" :preview-src-list=\"previewList\">\n <div slot=\"error\" class=\"image-slot\">\n <img class=\"student-img\" src=\"../../../assets/img/person.jpg\">\n </div>\n </el-image>\n </template>\n </el-table-column>\n\t <el-table-column prop=\"scStuname\" label=\"姓名\"></el-table-column>\n <el-table-column prop=\"scNo\" label=\"学号\"></el-table-column>\n <el-table-column prop=\"scSex\" label=\"性别\" :formatter=\"formatterSex\"></el-table-column>\n <el-table-column prop=\"scIdno\" label=\"身份证号码\"></el-table-column>\n <el-table-column prop=\"scRfcardid\" label=\"RFID\"></el-table-column>\n <el-table-column prop=\"scUwbid\" label=\"UWB标签\"></el-table-column>\n <el-table-column label=\"操作\">\n <template slot-scope=\"scope\">\n <div>\n <el-button type=\"text\" @click=\"viewHandle(scope.row)\">详情</el-button>\n <el-button\n type=\"text\" \n class=\"danger-button\"\n v-if=\"scope.row.scRfcardid||scope.row.scUwbid\"\n @click=\"unbindHandle(scope.row)\"\n >解绑</el-button>\n <el-button type=\"text\" v-else @click=\"editHandle(scope.row)\">绑卡</el-button>\n </div>\n </template>\n </el-table-column>\n </el-table>\n <el-pagination\n :current-page=\"page\"\n :page-sizes=\"[6,10, 20, 50, 100]\"\n :page-size=\"limit\"\n :total=\"total\"\n layout=\"total, sizes, prev, pager, next, jumper\"\n @size-change=\"pageSizeChangeHandle\"\n @current-change=\"pageCurrentChangeHandle\"\n ></el-pagination>\n <!-- 新增修改 -->\n <add-or-update ref=\"addOrUpdate\"></add-or-update>\n <!-- 查看 -->\n <view-student ref=\"viewStudent\"></view-student>\n <!-- 批量上传信息 -->\n <upload ref=\"studentUploadExcel\" template-url=\"./template/学生卡登记表导入模板.xls\" upload-url=\"/system/scstudents/importRegisterInfoExcel\"></upload>\n\n </el-card>\n</template>\n\n<script>\nimport mixinViewModule from '@/mixins/view-module'\nimport addOrUpdate from '@/views/modules/registerManage/student-bind'\nimport viewStudent from '@/views/modules/registerManage/student-view'\nimport { getDictLabel} from '@/utils'\nimport upload from '@/components/public/upload-excel-or-img'\nexport default {\n mixins: [mixinViewModule],\n components:{ addOrUpdate,viewStudent,upload },\n 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 }\n },\n computed:{\n previewList(){\n return this.dataList.map(item=>{\n return this.$ImgServerUrl+item.scPhotoimg\n })\n },\n },\n methods:{\n addStudent(){\n this.$refs['addOrUpdate'].init()\n },\n search(){\n this.page=1;\n this.query();\n },\n resetQuery(){\n this.dataForm={\n scStuname:'',\n scNo:''\n };\n this.page=1;\n this.query();\n },\n viewHandle(row){\n this.$refs['viewStudent'].init(row)\n },\n editHandle(row){\n this.$refs['addOrUpdate'].init(row)\n },\n uploadExcel(){\n this.$refs['studentUploadExcel'].init()\n },\n unbindHandle(row){\n this.$confirm('确定进行解绑操作?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n let dataForm={\n ...row,\n scGraduationdate:row.scGraduationdate?row.scGraduationdate:null,\n scUwbid:'',\n scRfcardid:'',\n };\n this.$http({\n url:\"/system/scstudents\",\n method:'put',\n data:dataForm\n }).then(({data})=>{\n if(data.code!=0){\n return this.$message.error(data.msg)\n }\n this.query();\n this.$message.success(data.msg)\n })\n })\n },\n formatterSex(row){\n return getDictLabel('gender',row.scSex)\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.el-table {\n .student-img {\n vertical-align: top;\n width: 53px;\n height: 70px;\n }\n .danger-button{\n color: #FF4040;\n }\n}\n</style>"],"sourceRoot":"src/views/modules/registerManage"}]} |