1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/2769ae52c6b4b0694240f22c622...

1 line
24 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\\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,Y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MAAA,EAAA,MAAA,CAAA,IAFA;AAGA,UAAA,IAAA,EAAA,MAAA,CAAA;AAHA,SAAA,EAIA,IAJA,CAIA,gBAEA;AAAA,cADA,IACA,QADA,IACA;;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,aAAA,GAAA,KAAA;;AACA,cAAA,MAAA,CAAA,IAAA,IAAA,MAAA,EAAA;AACA,YAAA,MAAA,CAAA,OAAA,CAAA,OAAA,CAAA,UAAA;AACA,WAFA,MAEA;AACA,YAAA,MAAA,CAAA,OAAA,CAAA,OAAA,CAAA,MAAA;AACA;;AACA,UAAA,MAAA,CAAA,QAAA,CAAA,OAAA,CAAA,IAAA,CAAA,GAAA;AACA,SAjBA,EAiBA,OAjBA,CAiBA,YAAA;AACA,UAAA,MAAA,CAAA,OAAA,GAAA,KAAA;AACA,SAnBA;AAoBA,OA5BA;AA8BA,KA/BA,EA+BA,IA/BA;AAtCA;AAvHA,CAAA","sourcesContent":["<template>\n\t<el-dialog :title=\"type=='post'?'新建':'修改'\" :visible.sync=\"dialogVisible\" :close-on-click-modal=\"false\">\n\t\t<div>\n\t\t\t<el-form ref=\"dataForm\" :model=\"dataForm\" :rules=\"rules\" label-width=\"100px\">\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col>\n\t\t\t\t\t\t<el-form-item class=\"block-item\" label=\"照片\" prop=\"scPhotoimg\">\n\t\t\t\t\t\t\t<img-clip v-model=\"dataForm.scHeadphotoimg\" folder-name=\"student\" ref=\"img\"></img-clip>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"姓名\" prop=\"scStuname\">\n\t\t\t\t\t\t\t<el-input v-model.trim=\"dataForm.scStuname\" placeholder=\"请输入\"></el-input>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"身份证号\" prop=\"scIdno\">\n\t\t\t\t\t\t\t<el-input v-model=\"dataForm.scIdno\" placeholder=\"请输入\"></el-input>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"联系电话\" prop=\"scPhonenum\">\n\t\t\t\t\t\t\t<el-input v-model=\"dataForm.scPhonenum\" placeholder=\"请输入\"></el-input>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"性别\" prop=\"scSex\">\n\t\t\t\t\t\t\t<el-radio-group v-model=\"dataForm.scSex\" placeholder=\"请输入\">\n\t\t\t\t\t\t\t\t<el-radio disabled v-for=\"item in genderList\" :key=\"item.dictLabel\" :label=\"item.dictValue\">{{item.dictLabel}}</el-radio>\n\t\t\t\t\t\t\t</el-radio-group>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"学号\" prop=\"scNo\">\n\t\t\t\t\t\t\t<el-input v-model=\"dataForm.scNo\" placeholder=\"请输入\"></el-input>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"学历\" prop=\"scEducation\">\n\t\t\t\t\t\t\t<el-select v-model=\"dataForm.scEducation\" placeholder=\"请选择\" clearable>\n\t\t\t\t\t\t\t\t<el-option v-for=\"item in educationList\" :key=\"item.dictLabel\" :label=\"item.dictLabel\" :value=\"item.dictValue\"></el-option>\n\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"入学时间\" prop=\"scRegisterdate\">\n\t\t\t\t\t\t\t<el-date-picker v-model=\"dataForm.scRegisterdate\" type=\"date\" value-format=\"yyyy-MM-dd\" placeholder=\"请选择\"></el-date-picker>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"学生状态\" prop=\"scStatus\">\n\t\t\t\t\t\t\t<el-select v-model=\"dataForm.scStatus\" placeholder=\"请选择\" clearable>\n\t\t\t\t\t\t\t\t<el-option v-for=\"item in studentStatusList\" :key=\"item.dictLabel\" :label=\"item.dictLabel\" :value=\"item.dictValue\"></el-option>\n\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row v-if=\"type=='put'\">\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"毕业时间\">\n\t\t\t\t\t\t\t<el-date-picker v-model=\"dataForm.scGraduationdate\" type=\"date\" value-format=\"yyyy-MM-dd\" placeholder=\"请选择\"\n\t\t\t\t\t\t\t :picker-options=\"pickerOptions\"></el-date-picker>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"学院\" prop=\"scSchool\">\n\t\t\t\t\t\t\t<el-select v-model=\"dataForm.scSchool\" placeholder=\"请选择\" clearable>\n\t\t\t\t\t\t\t\t<el-option v-for=\"item in schoolList\" :key=\"item.dictLabel\" :label=\"item.dictLabel\" :value=\"item.dictValue\"></el-option>\n\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t</el-form>\n\t\t</div>\n\t\t<div slot=\"footer\">\n\t\t\t<el-button @click=\"dialogVisible = false\">取 消</el-button>\n\t\t\t<el-button type=\"primary\" v-loading=\"loading\" @click=\"submitInfo\">确 定</el-button>\n\t\t</div>\n\t</el-dialog>\n</template>\n<script>\n\timport {\n\t\tgetDictDataList\n\t} from '@/utils'\n\timport {\n\t\tisMobile,\n\t\tidCardValidate\n\t} from '@/utils/validate'\n\timport debounce from 'lodash/debounce'\n\timport Cookies from 'js-cookie'\n\timport imgClip from '@/components/public/img-clip'\n\texport default {\n\t\tcomponents: {\n\t\t\timgClip\n\t\t},\n\t\twatch: {\n\t\t\t'dataForm.scIdno': {\n\t\t\t\timmediate: true,\n\t\t\t\thandler(val) {\n\t\t\t\t\tlet gender = '0';\n\t\t\t\t\tif (val && val.length == 18) {\n\t\t\t\t\t\tgender = val[16] % 2 == 0 ? '0' : '1';\n\t\t\t\t\t}\n\t\t\t\t\tthis.dataForm.scSex = gender\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tdata() {\n\t\t\tlet _this = this;\n\t\t\treturn {\n\t\t\t\tdialogVisible: false,\n\t\t\t\tloading: false,\n\t\t\t\timgLoading: false,\n\t\t\t\ttype: 'post',\n\t\t\t\tdataForm: {\n\t\t\t\t\tscPhotoimg: '',\n\t\t\t\t\tscStuname: '',\n\t\t\t\t\tscIdno: '',\n\t\t\t\t\tscSex: '0',\n\t\t\t\t\tscPhonenum: '',\n\t\t\t\t\tscNo: '',\n\t\t\t\t\tscStatus: '',\n\t\t\t\t\tscEducation: '',\n\t\t\t\t\tscRegisterdate: '',\n\t\t\t\t\tscGraduationdate: '',\n\t\t\t\t\tscHeadphotoimg: \"\",\n\t\t\t\t\tscSchool:\"\", // 学院\n\t\t\t\t},\n\t\t\t\tpickerOptions: {\n\t\t\t\t\tdisabledDate: (time) => {\n\t\t\t\t\t\treturn time.getTime() < new Date(this.dataForm.scRegisterdate).getTime()\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tgenderList: getDictDataList('gender').filter(item => item.dictValue < 2),\n\t\t\t\tstudentStatusList: getDictDataList('studentStatus'),\n\t\t\t\teducationList: getDictDataList('education'),\n\t\t\t\tschoolList: getDictDataList('school'), // 电子科技大学深圳高等研究院 学院列表\n\t\t\t\trules: {\n\t\t\t\t\tscHeadphotoimg: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请上传图片',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tscStuname: [{\n\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmax: 50,\n\t\t\t\t\t\t\tmessage: '最多50个字符',\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tscIdno: [{\n\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalidator: idCardValidate,\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tscSex: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}],\n\t\t\t\t\tscPhonenum: [{\n\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalidator: isMobile,\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tscNo: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}],\n\t\t\t\t\tscEducation: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}],\n\t\t\t\t\tscRegisterdate: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}],\n\t\t\t\t\tscStatus: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}]\n\n\t\t\t\t},\n\t\t\t\tuploadHeaders: {},\n\t\t\t\tuploadUrl: window.SITE_CONFIG['apiURL'] + '/system/upload'\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\tthis.uploadHeaders = {\n\t\t\t\tAuthorization: 'Bearer ' + Cookies.get('access_token') || ''\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tinit(data) {\n\t\t\t\tthis.dialogVisible = true;\n\t\t\t\t// 编辑\n\t\t\t\tif (data) {\n\t\t\t\t\tthis.type = \"put\";\n\t\t\t\t\tthis.dataForm = {\n\t\t\t\t\t\t...data,\n\t\t\t\t\t\tscSex: String(data.scSex),\n\t\t\t\t\t\tscStatus: String(data.scStatus),\n\t\t\t\t\t\tscEducation: String(data.scEducation),\n\t\t\t\t\t}\n\t\t\t\t\tthis.$nextTick(()=>{\n\t\t\t\t\t\tthis.$refs['img'].init(this.dataForm.scHeadphotoimg)\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\t// 新增\n\t\t\t\telse {\n\t\t\t\t\tthis.type = \"post\";\n\t\t\t\t\tthis.dataForm = {\n\t\t\t\t\t\tscPhotoimg: '',\n\t\t\t\t\t\tscStuname: '',\n\t\t\t\t\t\tscIdno: '',\n\t\t\t\t\t\tscSex: '0',\n\t\t\t\t\t\tscPhonenum: '',\n\t\t\t\t\t\tscNo: '',\n\t\t\t\t\t\tscStatus: '',\n\t\t\t\t\t\tscEducation: '',\n\t\t\t\t\t\tscRegisterdate: '',\n\t\t\t\t\t\tscGraduationdate: null,\n\t\t\t\t\t\tscHeadphotoimg: \"\",\n\t\t\t\t\t\tscSchool:\"\", // 学院\n\t\t\t\t\t};\n\t\t\t\t\tthis.$nextTick(() => {\n\t\t\t\t\t\tthis.$refs['dataForm'].clearValidate()\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t},\n\t\t\tsubmitInfo: debounce(function() {\n\t\t\t\tthis.$refs['dataForm'].validate((valid) => {\n\t\t\t\t\tif (!valid) {\n\t\t\t\t\t\treturn false\n\t\t\t\t\t}\n\t\t\t\t\tthis.loading = true;\n\t\t\t\t\tthis.dataForm.scPhotoimg = sessionStorage.getItem(\"eightPic\")\n\t\t\t\t\tsessionStorage.removeItem(\"fivePic\")\n\t\t\t\t\tthis.dataForm.scGraduationdate = this.dataForm.scGraduationdate ? this.dataForm.scGraduationdate : null;\n\t\t\t\t\tthis.$http({\n\t\t\t\t\t\turl: \"/system/scstudents\",\n\t\t\t\t\t\tmethod: this.type,\n\t\t\t\t\t\tdata: this.dataForm\n\t\t\t\t\t}).then(({\n\t\t\t\t\t\tdata\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tif (data.code != 0) {\n\t\t\t\t\t\t\treturn this.$message.error(data.msg)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.dialogVisible = false;\n\t\t\t\t\t\tif (this.type == 'post') {\n\t\t\t\t\t\t\tthis.$parent.$parent.resetQuery();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.$parent.$parent.search();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.$message.success(data.msg)\n\t\t\t\t\t}).finally(() => {\n\t\t\t\t\t\tthis.loading = false\n\t\t\t\t\t})\n\t\t\t\t})\n\n\t\t\t}, 1000),\n\t\t}\n\t}\n</script>\n<style lang=\"scss\" scoped>\n\t.el-dialog {\n\t\t.el-form {\n\t\t\t.el-form-item {\n\n\t\t\t\t.el-date-editor--date,\n\t\t\t\t.el-select {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\n\t\t\t\t/deep/ .el-upload {\n\t\t\t\t\tborder: 1px dashed #d9d9d9;\n\t\t\t\t\tborder-radius: 6px;\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tposition: relative;\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t\tmargin-left: 20px;\n\n\t\t\t\t\t.avatar-uploader-icon {\n\t\t\t\t\t\tfont-size: 28px;\n\t\t\t\t\t\tcolor: #fff;\n\t\t\t\t\t\theight: 150px;\n\t\t\t\t\t\twidth: 106px;\n\t\t\t\t\t\tline-height: 150px;\n\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t}\n\n\t\t\t\t\t.avatar {\n\t\t\t\t\t\theight: 150px;\n\t\t\t\t\t\twidth: 106px;\n\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n</style>\n"],"sourceRoot":"src/views/modules/personData/student"}]}