|
|
|
|
@ -400,7 +400,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
setStudentName = _useState28[1];
|
|
|
|
|
var _account$basicInfo = account.basicInfo,
|
|
|
|
|
basicInfo = _account$basicInfo === void 0 ? {} : _account$basicInfo;
|
|
|
|
|
// 已职业认证的账户不能修改职业,一级单位,二级单位(true为disable)
|
|
|
|
|
// 已类别认证的账户不能修改类别,一级单位,二级单位(true为disable)
|
|
|
|
|
var professionalFlag = basicInfo && basicInfo.professional_certification == "certified";
|
|
|
|
|
var toolTipProps = professionalFlag ? {
|
|
|
|
|
visible: false
|
|
|
|
|
@ -657,7 +657,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
centered: true,
|
|
|
|
|
okText: '确定',
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
title: isRealNameAuth ? '您已通过实名认证,修改姓名需要撤销实名认证,是否确定撤销?' : '您已通过职业认证,修改信息需要撤销职业认证,是否确定撤销?',
|
|
|
|
|
title: isRealNameAuth ? '您已通过实名认证,修改姓名需要撤销实名认证,是否确定撤销?' : '您已通过类别认证,修改信息需要撤销类别认证,是否确定撤销?',
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
|
|
|
|
|
var _user$userInfo, _user$userInfo2;
|
|
|
|
|
@ -687,7 +687,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
case 9:
|
|
|
|
|
res = _context5.t0;
|
|
|
|
|
if (res) {
|
|
|
|
|
message/* default */.ZP.success(isRealNameAuth ? '撤销实名认证成功' : '撤销职业认证成功');
|
|
|
|
|
message/* default */.ZP.success(isRealNameAuth ? '撤销实名认证成功' : '撤销类别认证成功');
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'account/getBasicInfo',
|
|
|
|
|
payload: {
|
|
|
|
|
@ -757,21 +757,21 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
professionalFlags = [];
|
|
|
|
|
if (professionalFlag) {
|
|
|
|
|
if (identity != basicInfo.identity) {
|
|
|
|
|
professionalFlags.push('职业');
|
|
|
|
|
professionalFlags.push('类别');
|
|
|
|
|
} else {
|
|
|
|
|
if (formValue.identity === 'student') {
|
|
|
|
|
if (studentNo != basicInfo.student_id) {
|
|
|
|
|
professionalFlags.push('职业');
|
|
|
|
|
professionalFlags.push('类别');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (formValue.identity === 'teacher') {
|
|
|
|
|
if (jobTitle != basicInfo.technical_title) {
|
|
|
|
|
professionalFlags.push('职业');
|
|
|
|
|
professionalFlags.push('类别');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (formValue.identity === 'professional') {
|
|
|
|
|
if (manager != basicInfo.technical_title) {
|
|
|
|
|
professionalFlags.push('职业');
|
|
|
|
|
professionalFlags.push('类别');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -793,7 +793,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
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")
|
|
|
|
|
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")
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
|
|
|
|
|
@ -1066,7 +1066,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
title: function title() {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u7C7B\u522B\u8BA4\u8BC1"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: ["\u53EF\u5728", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: "/account/certification",
|
|
|
|
|
@ -1082,7 +1082,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
name: "identity",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请先选择职业'
|
|
|
|
|
message: '请先选择类别'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
|
|
|
|
|
style: {
|
|
|
|
|
@ -1108,7 +1108,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
title: function title() {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u7C7B\u522B\u8BA4\u8BC1"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: ["\u53EF\u5728", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: "/account/certification",
|
|
|
|
|
@ -1140,7 +1140,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
title: function title() {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u7C7B\u522B\u8BA4\u8BC1"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: ["\u53EF\u5728", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: "/account/certification",
|
|
|
|
|
@ -1192,7 +1192,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
title: function title() {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u7C7B\u522B\u8BA4\u8BC1"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: ["\u53EF\u5728", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: "/account/certification",
|
|
|
|
|
@ -1262,7 +1262,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
title: function title() {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u7C7B\u522B\u8BA4\u8BC1"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: ["\u53EF\u5728", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: "/account/certification",
|
|
|
|
|
@ -1314,7 +1314,7 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
title: function title() {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u7C7B\u522B\u8BA4\u8BC1"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: ["\u53EF\u5728", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: "/account/certification",
|
|
|
|
|
|