{"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\\student-add-or-update.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\personData\\student\\student-add-or-update.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 \"core-js/modules/es6.regexp.search\";\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//\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 { getDictDataList } from '@/utils';\nimport { isMobile, idCardValidate } from '@/utils/validate';\nimport debounce from 'lodash/debounce';\nimport Cookies from 'js-cookie';\nimport imgClip from '@/components/public/img-clip';\nexport default {\n components: {\n imgClip: imgClip\n },\n watch: {\n 'dataForm.scIdno': {\n immediate: true,\n handler: function handler(val) {\n var gender = '0';\n\n if (val && val.length == 18) {\n gender = val[16] % 2 == 0 ? '0' : '1';\n }\n\n this.dataForm.scSex = gender;\n }\n }\n },\n data: function data() {\n var _this2 = this;\n\n var _this = this;\n\n return {\n dialogVisible: false,\n loading: false,\n imgLoading: false,\n type: 'post',\n dataForm: {\n scPhotoimg: '',\n scStuname: '',\n scIdno: '',\n scSex: '0',\n scPhonenum: '',\n scNo: '',\n scStatus: '',\n scEducation: '',\n scRegisterdate: '',\n scGraduationdate: '',\n scHeadphotoimg: \"\",\n scSchool: \"\" // 学院\n\n },\n pickerOptions: {\n disabledDate: function disabledDate(time) {\n return time.getTime() < new Date(_this2.dataForm.scRegisterdate).getTime();\n }\n },\n genderList: getDictDataList('gender').filter(function (item) {\n return item.dictValue < 2;\n }),\n studentStatusList: getDictDataList('studentStatus'),\n educationList: getDictDataList('education'),\n schoolList: getDictDataList('school'),\n // 电子科技大学深圳高等研究院 学院列表\n rules: {\n scHeadphotoimg: [{\n required: true,\n message: '请上传图片',\n trigger: ['blur', 'change']\n }],\n scStuname: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }, {\n max: 50,\n message: '最多50个字符',\n trigger: ['blur', 'change']\n }],\n scIdno: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }, {\n validator: idCardValidate,\n trigger: ['blur', 'change']\n }],\n scSex: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n scPhonenum: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }, {\n validator: isMobile,\n trigger: ['blur', 'change']\n }],\n scNo: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n scEducation: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n scRegisterdate: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n scStatus: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }]\n },\n uploadHeaders: {},\n uploadUrl: window.SITE_CONFIG['apiURL'] + '/system/upload'\n };\n },\n created: function created() {\n this.uploadHeaders = {\n Authorization: 'Bearer ' + Cookies.get('access_token') || ''\n };\n },\n methods: {\n init: function init(data) {\n var _this3 = this;\n\n this.dialogVisible = true; // 编辑\n\n if (data) {\n this.type = \"put\";\n this.dataForm = _objectSpread({}, data, {\n scSex: String(data.scSex),\n scStatus: String(data.scStatus),\n scEducation: String(data.scEducation)\n });\n this.$nextTick(function () {\n _this3.$refs['img'].init(_this3.dataForm.scHeadphotoimg);\n });\n } // 新增\n else {\n this.type = \"post\";\n this.dataForm = {\n scPhotoimg: '',\n scStuname: '',\n scIdno: '',\n scSex: '0',\n scPhonenum: '',\n scNo: '',\n scStatus: '',\n scEducation: '',\n scRegisterdate: '',\n scGraduationdate: null,\n scHeadphotoimg: \"\",\n scSchool: \"\" // 学院\n\n };\n this.$nextTick(function () {\n _this3.$refs['dataForm'].clearValidate();\n });\n }\n },\n submitInfo: debounce(function () {\n var _this4 = this;\n\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n\n _this4.loading = true;\n _this4.dataForm.scPhotoimg = sessionStorage.getItem(\"eightPic\");\n sessionStorage.removeItem(\"fivePic\");\n _this4.dataForm.scGraduationdate = _this4.dataForm.scGraduationdate ? _this4.dataForm.scGraduationdate : null;\n\n _this4.$http({\n url: \"/system/scstudents\",\n method: _this4.type,\n data: _this4.dataForm\n }).then(function (_ref) {\n var data = _ref.data;\n\n if (data.code != 0) {\n return _this4.$message.error(data.msg);\n }\n\n _this4.dialogVisible = false;\n\n if (_this4.type == 'post') {\n _this4.$parent.$parent.resetQuery();\n } else {\n _this4.$parent.$parent.search();\n }\n\n _this4.$message.success(data.msg);\n }).finally(function () {\n _this4.loading = false;\n });\n });\n }, 1000)\n }\n};",{"version":3,"sources":["student-add-or-update.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2FA,SACA,eADA,QAEA,SAFA;AAGA,SACA,QADA,EAEA,cAFA,QAGA,kBAHA;AAIA,OAAA,QAAA,MAAA,iBAAA;AACA,OAAA,OAAA,MAAA,WAAA;AACA,OAAA,OAAA,MAAA,8BAAA;AACA,eAAA;AACA,EAAA,UAAA,EAAA;AACA,IAAA,OAAA,EAAA;AADA,GADA;AAIA,EAAA,KAAA,EAAA;AACA,uBAAA;AACA,MAAA,SAAA,EAAA,IADA;AAEA,MAAA,OAFA,mBAEA,GAFA,EAEA;AACA,YAAA,MAAA,GAAA,GAAA;;AACA,YAAA,GAAA,IAAA,GAAA,CAAA,MAAA,IAAA,EAAA,EAAA;AACA,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