|
|
|
|
@ -519,7 +519,8 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
brief_introduction: basicInfo.brief_introduction,
|
|
|
|
|
jobTitle: basicInfo.identity == "teacher" ? basicInfo.technical_title : "教授",
|
|
|
|
|
manager: basicInfo.identity == "professional" ? basicInfo.technical_title : "企业管理者",
|
|
|
|
|
staff_id: basicInfo.staff_id
|
|
|
|
|
staff_id: basicInfo.staff_id,
|
|
|
|
|
course_class_id: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.course_class_id
|
|
|
|
|
// face_image:[{uid:'111',name:'111',url:basicInfo.face_image}]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -759,11 +760,11 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
var handleFinish = /*#__PURE__*/function () {
|
|
|
|
|
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(values) {
|
|
|
|
|
var _departmentList$find, _schoolList$find2;
|
|
|
|
|
var nickname, gender, identity, studentNo, jobTitle, manager, school, department, edu_background, edu_entry_year, brief_introduction, face_image, staff_id, department_id, school_id, basicInfo, titls, professionalFlags, _account$basicInfo6, _fileList$2, res, _account$basicInfo7, _user$userInfo7;
|
|
|
|
|
var nickname, gender, identity, studentNo, jobTitle, manager, school, department, edu_background, edu_entry_year, brief_introduction, face_image, staff_id, course_class_id, department_id, school_id, basicInfo, titls, professionalFlags, _account$basicInfo6, _fileList$2, res, _account$basicInfo7, _user$userInfo7;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
|
|
|
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
nickname = values.nickname, gender = values.gender, identity = values.identity, studentNo = values.studentNo, jobTitle = values.jobTitle, manager = values.manager, school = values.school, department = values.department, edu_background = values.edu_background, edu_entry_year = values.edu_entry_year, brief_introduction = values.brief_introduction, face_image = values.face_image, staff_id = values.staff_id;
|
|
|
|
|
nickname = values.nickname, gender = values.gender, identity = values.identity, studentNo = values.studentNo, jobTitle = values.jobTitle, manager = values.manager, school = values.school, department = values.department, edu_background = values.edu_background, edu_entry_year = values.edu_entry_year, brief_introduction = values.brief_introduction, face_image = values.face_image, staff_id = values.staff_id, course_class_id = values.course_class_id;
|
|
|
|
|
department_id = (_departmentList$find = departmentList.find(function (item) {
|
|
|
|
|
return item.name === department;
|
|
|
|
|
})) === null || _departmentList$find === void 0 ? void 0 : _departmentList$find.id;
|
|
|
|
|
@ -816,13 +817,9 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
}
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
centered: true,
|
|
|
|
|
icon: null,
|
|
|
|
|
okText: '确定',
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
title: '提示',
|
|
|
|
|
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u672C\u6B21\u4FEE\u6539\u6D89\u53CA".concat(titls.toString().replaceAll(',', '、')).concat(titls.length > 0 && professionalFlags.length > 0 ? '、' : '').concat(professionalFlags.toString().replaceAll(',', '、'), "\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u884C").concat(titls.length > 0 ? '实名认证' : '').concat(titls.length > 0 && professionalFlags.length > 0 ? '和' : '').concat(professionalFlags.length > 0 ? '职业认证' : '', "\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FEE\u6539")
|
|
|
|
|
}),
|
|
|
|
|
title: "\u672C\u6B21\u4FEE\u6539\u6D89\u53CA".concat(titls.toString().replaceAll(',', '、')).concat(titls.length > 0 && professionalFlags.length > 0 ? '、' : '').concat(professionalFlags.toString().replaceAll(',', '、'), "\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u884C").concat(titls.length > 0 ? '实名认证' : '').concat(titls.length > 0 && professionalFlags.length > 0 ? '和' : '').concat(professionalFlags.length > 0 ? '职业认证' : '', "\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FEE\u6539"),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
|
|
|
|
|
var _account$basicInfo4, _fileList$;
|
|
|
|
|
@ -867,7 +864,8 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
brief_introduction: brief_introduction,
|
|
|
|
|
student_id: identity === 'student' ? studentNo : null,
|
|
|
|
|
technical_title: jobTitle || manager,
|
|
|
|
|
face_image: fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 || (_fileList$ = _fileList$.response) === null || _fileList$ === void 0 ? void 0 : _fileList$.id
|
|
|
|
|
face_image: fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 || (_fileList$ = _fileList$.response) === null || _fileList$ === void 0 ? void 0 : _fileList$.id,
|
|
|
|
|
course_class_id: course_class_id
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 8:
|
|
|
|
|
@ -949,7 +947,8 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
brief_introduction: brief_introduction,
|
|
|
|
|
student_id: identity === 'student' ? studentNo : null,
|
|
|
|
|
technical_title: jobTitle || manager,
|
|
|
|
|
face_image: fileList === null || fileList === void 0 || (_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 || (_fileList$2 = _fileList$2.response) === null || _fileList$2 === void 0 ? void 0 : _fileList$2.id
|
|
|
|
|
face_image: fileList === null || fileList === void 0 || (_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 || (_fileList$2 = _fileList$2.response) === null || _fileList$2 === void 0 ? void 0 : _fileList$2.id,
|
|
|
|
|
course_class_id: course_class_id
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 14:
|
|
|
|
|
|