You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1747 lines
78 KiB
1747 lines
78 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[87260],{
|
|
|
|
/***/ 64285:
|
|
/*!***************************************************************!*\
|
|
!*** ./src/pages/Account/Certification/index.tsx + 4 modules ***!
|
|
\***************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
// ESM COMPAT FLAG
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"default": function() { return /* binding */ Account_Certification; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(39647);
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(80608);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
var modal = __webpack_require__(43418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
var message = __webpack_require__(8591);
|
|
;// CONCATENATED MODULE: ./src/pages/Account/Certification/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Certificationmodules = ({"wrap":"wrap___NBtQg","content":"content___aZazE","hint":"hint___bm3si","titleWrap":"titleWrap___LIDz7","title":"title___tG0To","flexRow":"flexRow___mnKQ2","actionWrap":"actionWrap___sSAI1","color999":"color999___FHSXs","colorCDCDCD":"colorCDCDCD___oGJKE","colorOrange":"colorOrange___i7AGs","color28AC7F":"color28AC7F___yXYGt","auth":"auth___tmt4O","reauth":"reauth___SISYr","modal":"modal___NdEZ3"});
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js
|
|
var upload = __webpack_require__(60028);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
var es_form = __webpack_require__(78241);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
|
|
var spin = __webpack_require__(71418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
|
var input = __webpack_require__(92832);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
|
|
var es_radio = __webpack_require__(5112);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
var es_button = __webpack_require__(3113);
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(27876);
|
|
// EXTERNAL MODULE: ./src/assets/images/account/auth.png
|
|
var auth = __webpack_require__(98814);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(71681);
|
|
;// CONCATENATED MODULE: ./src/pages/Account/Certification/components/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var componentsmodules = ({"modal":"modal___AR21E","colorBlue":"colorBlue___b0CCE","formWrap":"formWrap___OyO5X","flexRow":"flexRow___wW7jP","flexColumn":"flexColumn___BCgnC","example":"example___ZutfX","exampleImg":"exampleImg___kx2Sr","colorOrange":"colorOrange___Vxey1","uploader":"uploader___XWuRm","uploadImg":"uploadImg___K7STh","imageTip":"imageTip___E92I3","uploadTipIcon":"uploadTipIcon___T9xzR","uploadTip":"uploadTip___q47UY","color05101a":"color05101a___QWF70","viewLargerImg":"viewLargerImg___fGLAh","footerWrap":"footerWrap___ko3aN","note":"note___ks3DM","schoolHintWrap":"schoolHintWrap___nges7","colorCDCDCD":"colorCDCDCD___KQtws","color0152d9":"color0152d9___fTD_v","tips":"tips___NZ2ux"});
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Account/Certification/components/RealNameAuthModal.tsx
|
|
|
|
|
|
|
|
|
|
|
|
var _excluded = ["user", "account", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Dragger = upload/* default */.Z.Dragger;
|
|
var MAX_NAME_LENGTH = 20;
|
|
var RealNameAuthModal = function RealNameAuthModal(_ref) {
|
|
var _globalSetting$settin;
|
|
var user = _ref.user,
|
|
account = _ref.account,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
var _useState = (0,_react_17_0_2_react.useState)({}),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
formValue = _useState2[0],
|
|
setFormValue = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(true),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
showRealName = _useState4[0],
|
|
setShowRealName = _useState4[1];
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(),
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
realName = _useState6[0],
|
|
setRealName = _useState6[1];
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(),
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
image = _useState8[0],
|
|
setImage = _useState8[1];
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(),
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
fileId = _useState10[0],
|
|
setFileId = _useState10[1];
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(),
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
isLoading = _useState12[0],
|
|
setIsLoading = _useState12[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
if (!account.basicInfo) {
|
|
return;
|
|
}
|
|
var basicInfo = account.basicInfo;
|
|
var formData = {
|
|
name: basicInfo.show_realname ? basicInfo.name : (0,util/* getHiddenName */.YA)(basicInfo.name),
|
|
gender: basicInfo.gender
|
|
};
|
|
setRealName(basicInfo.name);
|
|
setShowRealName(basicInfo.show_realname);
|
|
form.setFieldsValue(formData);
|
|
setFormValue(formData);
|
|
}, [account.basicInfo]);
|
|
var handleUploadChange = function handleUploadChange(info) {
|
|
if (info.file.status === 'uploading') {
|
|
setIsLoading(true);
|
|
return;
|
|
}
|
|
if (info.file.status === 'done') {
|
|
var _info$file$response;
|
|
console.log(info.file, info.file.response);
|
|
setFileId((_info$file$response = info.file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.id);
|
|
(0,util/* getBase64 */.y3)(info.file.originFileObj, function (base64Img) {
|
|
setImage(base64Img);
|
|
setIsLoading(false);
|
|
});
|
|
}
|
|
};
|
|
var handleValuesChange = function handleValuesChange(changedValues) {
|
|
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
|
|
if ('name' in changedValues) {
|
|
setRealName(changedValues.name);
|
|
}
|
|
};
|
|
var handleSetShowRealName = function handleSetShowRealName() {
|
|
var nextRealNameStatus = !showRealName;
|
|
setShowRealName(nextRealNameStatus);
|
|
var nextName = nextRealNameStatus ? realName : (0,util/* getHiddenName */.YA)(realName);
|
|
form.setFieldsValue({
|
|
name: nextName
|
|
});
|
|
};
|
|
var handleFinish = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
|
|
var _account$basicInfo, _user$userInfo;
|
|
var _ref3, name, gender, id_number, res, _user$userInfo2;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_ref3 = values || {}, name = _ref3.name, gender = _ref3.gender, id_number = _ref3.idNumber;
|
|
if (image) {
|
|
_context.next = 4;
|
|
break;
|
|
}
|
|
message/* default */.ZP.info('请先上传照片!');
|
|
return _context.abrupt("return");
|
|
case 4:
|
|
_context.next = 6;
|
|
return dispatch({
|
|
type: 'account/applyRealNameAuth',
|
|
payload: {
|
|
id: ((_account$basicInfo = account.basicInfo) === null || _account$basicInfo === void 0 ? void 0 : _account$basicInfo.id) || ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login),
|
|
name: name,
|
|
gender: gender,
|
|
id_number: id_number,
|
|
show_realname: showRealName,
|
|
attachment_ids: [fileId]
|
|
}
|
|
});
|
|
case 6:
|
|
res = _context.sent;
|
|
if (!((res === null || res === void 0 ? void 0 : res.status) === -1)) {
|
|
_context.next = 9;
|
|
break;
|
|
}
|
|
return _context.abrupt("return");
|
|
case 9:
|
|
handleClose();
|
|
if (res) {
|
|
message/* default */.ZP.info("申请已提交,请等待审核!");
|
|
dispatch({
|
|
type: 'account/getBasicInfo',
|
|
payload: {
|
|
login: (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login
|
|
}
|
|
});
|
|
}
|
|
case 11:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function handleFinish(_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var handleClose = function handleClose() {
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {}
|
|
});
|
|
};
|
|
var uploadProps = {
|
|
data: {
|
|
type: "real_name"
|
|
},
|
|
multiple: true,
|
|
withCredentials: true,
|
|
showUploadList: false,
|
|
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
|
|
className: componentsmodules.uploader,
|
|
onChange: handleUploadChange,
|
|
beforeUpload: function beforeUpload(file) {
|
|
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg' || file.type === 'image/bmp';
|
|
if (!isJpgOrPng) {
|
|
message/* default */.ZP.info('请上传正确文件格式');
|
|
}
|
|
return isJpgOrPng;
|
|
}
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
centered: true,
|
|
keyboard: false,
|
|
closable: false,
|
|
destroyOnClose: true,
|
|
open: account.actionTabs.key === 'Account-RealNameAuth',
|
|
title: "\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",
|
|
width: "600px",
|
|
footer: null,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
spinning: !!isLoading,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
className: componentsmodules.formWrap,
|
|
form: form,
|
|
layout: "horizontal",
|
|
onValuesChange: handleValuesChange,
|
|
onFinish: handleFinish,
|
|
scrollToFirstError: true,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u59D3\u540D",
|
|
name: "name",
|
|
labelCol: {
|
|
span: 3
|
|
},
|
|
wrapperCol: {
|
|
span: 12
|
|
},
|
|
rules: [{
|
|
required: true,
|
|
message: "\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(MAX_NAME_LENGTH, "\u4E2A\u5B57\u7B26")
|
|
}, {
|
|
validator: util/* handleValidatorName */.HJ
|
|
}],
|
|
extra: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: showRealName ? '(显示:平台将显示您的真实姓名)' : '(隐藏:平台将显示你的昵称)'
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
size: "large",
|
|
disabled: !showRealName,
|
|
placeholder: "\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(MAX_NAME_LENGTH, "\u4E2A\u5B57\u7B26"),
|
|
maxLength: MAX_NAME_LENGTH,
|
|
addonAfter: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont ".concat(showRealName ? 'icon-xianshi' : 'icon-yincang', " font18 ").concat(componentsmodules.color0152d9),
|
|
onClick: handleSetShowRealName
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u6027\u522B\uFF1A",
|
|
name: "gender",
|
|
labelCol: {
|
|
span: 3
|
|
},
|
|
wrapperCol: {
|
|
span: 12
|
|
},
|
|
rules: [{
|
|
required: true,
|
|
message: '请选择性别'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
value: 0,
|
|
children: "\u7537"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
value: 1,
|
|
children: "\u5973"
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u8BC1\u4EF6\u53F7\uFF1A",
|
|
labelCol: {
|
|
span: 3
|
|
},
|
|
name: "idNumber",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入证件号'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
size: "large",
|
|
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u8EAB\u4EFD\u8BC1\u4E0A\u4F20",
|
|
labelCol: {
|
|
span: 3
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentsmodules.flexRow,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(componentsmodules.flexColumn, " ").concat(componentsmodules.example),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: componentsmodules.exampleImg,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: auth
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "tc",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "\u793A\u4F8B\u56FE\u7247"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: "".concat(componentsmodules.colorOrange, " font12"),
|
|
children: "\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentsmodules.flexColumn,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Dragger, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
|
|
accept: ".png,.jpg,.bmp,.jpeg",
|
|
children: image ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: image,
|
|
className: componentsmodules.uploadImg
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentsmodules.imageTip,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-cuban2shangchuanyunduan ".concat(componentsmodules.uploadTipIcon)
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: componentsmodules.uploadTip,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: componentsmodules.color05101a,
|
|
children: "\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247"
|
|
})
|
|
})]
|
|
})
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tc",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: componentsmodules.viewLargerImg,
|
|
children: "\u67E5\u770B\u5927\u56FE"
|
|
})
|
|
})]
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: componentsmodules.footerWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
className: "mr5",
|
|
size: 'middle',
|
|
onClick: handleClose,
|
|
children: "\u53D6\u6D88"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
size: "middle",
|
|
type: "primary",
|
|
htmlType: "submit",
|
|
loading: loading['account/applyRealNameAuth'],
|
|
children: "\u63D0\u4EA4"
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentsmodules.note,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "\u8BA4\u8BC1\u987B\u77E5\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "1.\u4F60\u9700\u8981\u51C6\u5907\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u6B63\u9762\uFF08\u4EBA\u50CF\u9762\uFF09\u7684\u8BC1\u4EF6\u7167\u7167\u7247\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u7247\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "3.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "4.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
children: ["6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u8BC1\u4EF6\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u5B9E\u540D\u8BA4\u8BC1\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3", !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.is_local) && 'EduCoder', "\u8D26\u53F7\u3002"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "7.\u63D0\u4EA4\u5B9E\u540D\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002"
|
|
})]
|
|
})]
|
|
})
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var components_RealNameAuthModal = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
var user = _ref4.user,
|
|
account = _ref4.account,
|
|
loading = _ref4.loading,
|
|
globalSetting = _ref4.globalSetting;
|
|
return {
|
|
user: user,
|
|
account: account,
|
|
globalSetting: globalSetting,
|
|
loading: loading.effects
|
|
};
|
|
})(RealNameAuthModal));
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
|
var es_select = __webpack_require__(57809);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
var row = __webpack_require__(95237);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
var col = __webpack_require__(43604);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
var tooltip = __webpack_require__(6848);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/auto-complete/index.js
|
|
var auto_complete = __webpack_require__(88522);
|
|
// EXTERNAL MODULE: ./src/pages/Account/components/AppplySchoolModal/index.tsx + 1 modules
|
|
var AppplySchoolModal = __webpack_require__(19944);
|
|
// EXTERNAL MODULE: ./src/pages/Account/components/AppplyDepartmentModal/index.tsx + 1 modules
|
|
var AppplyDepartmentModal = __webpack_require__(65186);
|
|
// EXTERNAL MODULE: ./src/assets/images/account/job.png
|
|
var job = __webpack_require__(51941);
|
|
;// CONCATENATED MODULE: ./src/pages/Account/Certification/components/ProfessionalAuthModal.tsx
|
|
|
|
|
|
|
|
|
|
|
|
var ProfessionalAuthModal_excluded = ["user", "account", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Option = es_select["default"].Option;
|
|
var ProfessionalAuthModal_Dragger = upload/* default */.Z.Dragger;
|
|
var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
|
|
var _account$basicInfo3, _globalSetting$settin, _schoolList$find3;
|
|
var user = _ref.user,
|
|
account = _ref.account,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
props = objectWithoutProperties_default()(_ref, ProfessionalAuthModal_excluded);
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
var _useState = (0,_react_17_0_2_react.useState)({}),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
formValue = _useState2[0],
|
|
setFormValue = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
schoolList = _useState4[0],
|
|
setSchoolList = _useState4[1];
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
filterSchoolList = _useState6[0],
|
|
setFilterSchoolList = _useState6[1];
|
|
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
departmentList = _useState8[0],
|
|
setDepartmentList = _useState8[1];
|
|
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
filterDepartmentList = _useState10[0],
|
|
setFilterDepartmentList = _useState10[1];
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(),
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
image = _useState12[0],
|
|
setImage = _useState12[1];
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(),
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
fileId = _useState14[0],
|
|
setFileId = _useState14[1];
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(),
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
isLoading = _useState16[0],
|
|
setIsLoading = _useState16[1];
|
|
var _useState17 = (0,_react_17_0_2_react.useState)(),
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
visibleAppplySchool = _useState18[0],
|
|
setVisibleAppplySchool = _useState18[1];
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(),
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
visibleAppplyDepartment = _useState20[0],
|
|
setVisibleAppplyDepartment = _useState20[1];
|
|
;
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
getSchoolOption();
|
|
}, []);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
var _account$basicInfo;
|
|
if (!((_account$basicInfo = account.basicInfo) !== null && _account$basicInfo !== void 0 && _account$basicInfo.school_id)) {
|
|
return;
|
|
}
|
|
asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var _account$basicInfo2;
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return getDepartmentOption((_account$basicInfo2 = account.basicInfo) === null || _account$basicInfo2 === void 0 ? void 0 : _account$basicInfo2.school_id);
|
|
case 2:
|
|
res = _context.sent;
|
|
setDepartmentList(res === null || res === void 0 ? void 0 : res.departments);
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}))();
|
|
}, [(_account$basicInfo3 = account.basicInfo) === null || _account$basicInfo3 === void 0 ? void 0 : _account$basicInfo3.school_id]);
|
|
var getSchoolOption = /*#__PURE__*/function () {
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
_context2.next = 2;
|
|
return dispatch({
|
|
type: 'account/getSchoolOption'
|
|
});
|
|
case 2:
|
|
res = _context2.sent;
|
|
setSchoolList(res === null || res === void 0 ? void 0 : res.schools);
|
|
case 4:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
return function getSchoolOption() {
|
|
return _ref3.apply(this, arguments);
|
|
};
|
|
}();
|
|
var getDepartmentOption = function getDepartmentOption(schoolId) {
|
|
return dispatch({
|
|
type: 'account/getDepartmentOption',
|
|
payload: {
|
|
id: schoolId
|
|
}
|
|
});
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
if (!account.basicInfo) {
|
|
return;
|
|
}
|
|
var basicInfo = account.basicInfo;
|
|
var formData = {
|
|
identity: basicInfo.identity,
|
|
school: basicInfo.school_name,
|
|
department: basicInfo.department_name,
|
|
studentNo: basicInfo.student_id,
|
|
jobTitle: basicInfo.identity == "teacher" ? basicInfo.technical_title : "教授",
|
|
manager: basicInfo.identity == "professional" ? basicInfo.technical_title : "企业管理者"
|
|
};
|
|
form.setFieldsValue(formData);
|
|
setFormValue(formData);
|
|
}, [account.basicInfo]);
|
|
var handleApplySchool = function handleApplySchool() {
|
|
setVisibleAppplySchool(true);
|
|
};
|
|
var handleApplyDepartment = function handleApplyDepartment() {
|
|
if (!schoolList.find(function (item) {
|
|
return item.name === formValue.school;
|
|
})) {
|
|
message/* default */.ZP.info('请先选择正确的单位或者学校!');
|
|
return;
|
|
}
|
|
setVisibleAppplyDepartment(true);
|
|
};
|
|
var handleValuesChange = function handleValuesChange(changedValues) {
|
|
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
|
|
if ('school' in changedValues) {
|
|
setFilterSchoolList(schoolList.filter(function (item) {
|
|
return item.name.includes(changedValues.school);
|
|
}));
|
|
var findSchoolId = (schoolList.find(function (item) {
|
|
return item.name === changedValues.school;
|
|
}) || {}).id;
|
|
if (findSchoolId) {
|
|
handleSetDepartment(changedValues.school);
|
|
} else {
|
|
form.setFieldsValue({
|
|
department: ''
|
|
});
|
|
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {
|
|
school: changedValues.school,
|
|
department: ''
|
|
}));
|
|
}
|
|
}
|
|
};
|
|
var handleSetDepartment = /*#__PURE__*/function () {
|
|
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(school, departmentName) {
|
|
var _schoolList$find, _res$departments;
|
|
var findSchoolId, res, name;
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
findSchoolId = (_schoolList$find = schoolList.find(function (item) {
|
|
return item.name === school;
|
|
})) === null || _schoolList$find === void 0 ? void 0 : _schoolList$find.id;
|
|
_context3.next = 3;
|
|
return getDepartmentOption(findSchoolId);
|
|
case 3:
|
|
_context3.t0 = _context3.sent;
|
|
if (_context3.t0) {
|
|
_context3.next = 6;
|
|
break;
|
|
}
|
|
_context3.t0 = {};
|
|
case 6:
|
|
res = _context3.t0;
|
|
setDepartmentList(res === null || res === void 0 ? void 0 : res.departments);
|
|
name = departmentName || (res === null || res === void 0 || (_res$departments = res.departments) === null || _res$departments === void 0 || (_res$departments = _res$departments[0]) === null || _res$departments === void 0 ? void 0 : _res$departments.name);
|
|
form.setFieldsValue({
|
|
department: name
|
|
});
|
|
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {
|
|
school: school,
|
|
department: name
|
|
}));
|
|
case 11:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}, _callee3);
|
|
}));
|
|
return function handleSetDepartment(_x, _x2) {
|
|
return _ref4.apply(this, arguments);
|
|
};
|
|
}();
|
|
var handleSchoolSuccess = /*#__PURE__*/function () {
|
|
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(schoolName) {
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
case 0:
|
|
_context4.next = 2;
|
|
return getSchoolOption();
|
|
case 2:
|
|
form.setFieldsValue({
|
|
school: schoolName,
|
|
department: ''
|
|
});
|
|
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {
|
|
school: schoolName,
|
|
department: ''
|
|
}));
|
|
case 4:
|
|
case "end":
|
|
return _context4.stop();
|
|
}
|
|
}, _callee4);
|
|
}));
|
|
return function handleSchoolSuccess(_x3) {
|
|
return _ref5.apply(this, arguments);
|
|
};
|
|
}();
|
|
var handleUploadChange = function handleUploadChange(info) {
|
|
if (info.file.status === 'uploading') {
|
|
setIsLoading(true);
|
|
return;
|
|
}
|
|
if (info.file.status === 'done') {
|
|
var _info$file$response;
|
|
console.log(info.file, info.file.response);
|
|
setFileId((_info$file$response = info.file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.id);
|
|
(0,util/* getBase64 */.y3)(info.file.originFileObj, function (base64Img) {
|
|
setImage(base64Img);
|
|
setIsLoading(false);
|
|
});
|
|
}
|
|
};
|
|
var handleFinish = /*#__PURE__*/function () {
|
|
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(values) {
|
|
var _schoolList$find2, _departmentList$find, _account$basicInfo4, _user$userInfo;
|
|
var _ref7, school, department, identity, studentNo, jobTitle, manager, school_id, department_id, extra, res, _user$userInfo2;
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
case 0:
|
|
_ref7 = values || {}, school = _ref7.school, department = _ref7.department, identity = _ref7.identity, studentNo = _ref7.studentNo, jobTitle = _ref7.jobTitle, manager = _ref7.manager;
|
|
if (image) {
|
|
_context5.next = 4;
|
|
break;
|
|
}
|
|
message/* default */.ZP.info('请先上传照片!');
|
|
return _context5.abrupt("return");
|
|
case 4:
|
|
school_id = (_schoolList$find2 = schoolList.find(function (item) {
|
|
return item.name === school;
|
|
})) === null || _schoolList$find2 === void 0 ? void 0 : _schoolList$find2.id;
|
|
department_id = (_departmentList$find = departmentList.find(function (item) {
|
|
return item.name === department;
|
|
})) === null || _departmentList$find === void 0 ? void 0 : _departmentList$find.id;
|
|
if (identity === 'student') {
|
|
extra = studentNo;
|
|
} else if (identity === 'teacher') {
|
|
extra = jobTitle;
|
|
} else {
|
|
extra = manager;
|
|
}
|
|
_context5.next = 9;
|
|
return dispatch({
|
|
type: 'account/applyProfessionalAuth',
|
|
payload: {
|
|
id: ((_account$basicInfo4 = account.basicInfo) === null || _account$basicInfo4 === void 0 ? void 0 : _account$basicInfo4.id) || ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login),
|
|
school_id: school_id,
|
|
department_id: department_id,
|
|
identity: identity,
|
|
extra: extra,
|
|
attachment_ids: [fileId]
|
|
}
|
|
});
|
|
case 9:
|
|
res = _context5.sent;
|
|
handleClose();
|
|
if (res) {
|
|
message/* default */.ZP.info("申请已提交,请等待审核!");
|
|
setImage('');
|
|
dispatch({
|
|
type: 'account/getBasicInfo',
|
|
payload: {
|
|
login: (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login
|
|
}
|
|
});
|
|
}
|
|
case 12:
|
|
case "end":
|
|
return _context5.stop();
|
|
}
|
|
}, _callee5);
|
|
}));
|
|
return function handleFinish(_x4) {
|
|
return _ref6.apply(this, arguments);
|
|
};
|
|
}();
|
|
var handleClose = function handleClose() {
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {}
|
|
});
|
|
};
|
|
var uploadProps = {
|
|
data: {
|
|
type: "professional"
|
|
},
|
|
multiple: true,
|
|
withCredentials: true,
|
|
showUploadList: false,
|
|
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
|
|
className: componentsmodules.uploader,
|
|
onChange: handleUploadChange,
|
|
beforeUpload: function beforeUpload(file) {
|
|
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg' || file.type === 'image/bmp';
|
|
if (!isJpgOrPng) {
|
|
message/* default */.ZP.info('请上传正确文件格式');
|
|
}
|
|
return isJpgOrPng;
|
|
}
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
centered: true,
|
|
keyboard: false,
|
|
closable: false,
|
|
destroyOnClose: true,
|
|
forceRender: true,
|
|
className: componentsmodules.modal,
|
|
open: account.actionTabs.key === 'Account-ProfessionalAuth',
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-zhiyerenzheng font18 mr5 ".concat(componentsmodules.colorBlue)
|
|
}), "\u804C\u4E1A\u8BA4\u8BC1"]
|
|
}),
|
|
width: "660px",
|
|
footer: null,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
spinning: !!isLoading,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
className: componentsmodules.formWrap,
|
|
form: form,
|
|
layout: "horizontal",
|
|
onValuesChange: handleValuesChange,
|
|
onFinish: handleFinish,
|
|
scrollToFirstError: true,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
gutter: [10, 0],
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: "300px",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u804C\u4E1A",
|
|
name: "identity",
|
|
rules: [{
|
|
required: true,
|
|
message: '请先选择职业'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
|
|
size: "large",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "teacher",
|
|
children: "\u6559\u5E08"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "student",
|
|
children: "\u5B66\u751F"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "professional",
|
|
children: "\u7F16\u5916\u4EBA\u5458"
|
|
})]
|
|
})
|
|
})
|
|
}), formValue.identity === 'student' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 1,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
initialValue: formValue.studentNo,
|
|
name: "studentNo",
|
|
rules: [{
|
|
required: true,
|
|
message: '请先输入学号'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
size: "large",
|
|
type: "text",
|
|
placeholder: "\u8BF7\u8F93\u5165\u5B66\u53F7"
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 0,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: componentsmodules.tooltipWrapper,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: "\u5355\u4F4D\u7BA1\u7406\u5458\u53EF\u7BA1\u7406\u5DF2\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u5B66\u751F\u8D26\u53F7\u4FE1\u606F\uFF08\u5305\u542B\u521D\u59CB\u5316\u5BC6\u7801\uFF09",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: componentsmodules.tips,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-a-wenhaobeifen2"
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})]
|
|
}), formValue.identity === 'teacher' && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 1,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
initialValue: formValue.jobTitle,
|
|
name: "jobTitle",
|
|
rules: [{
|
|
required: true,
|
|
message: '请先选择职称'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
|
|
size: "large",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u6559\u6388",
|
|
children: "\u6559\u6388"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u526F\u6559\u6388",
|
|
children: "\u526F\u6559\u6388"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u8BB2\u5E08",
|
|
children: "\u8BB2\u5E08"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u52A9\u6559",
|
|
children: "\u52A9\u6559"
|
|
})]
|
|
})
|
|
})
|
|
}), formValue.identity === 'professional' && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 1,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
initialValue: formValue.manager,
|
|
name: "manager",
|
|
rules: [{
|
|
required: true,
|
|
message: '请先选择职称'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
|
|
size: "large",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u4F01\u4E1A\u7BA1\u7406\u8005",
|
|
children: "\u4F01\u4E1A\u7BA1\u7406\u8005"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u90E8\u95E8\u7BA1\u7406\u8005",
|
|
children: "\u90E8\u95E8\u7BA1\u7406\u8005"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u9AD8\u7EA7\u5DE5\u7A0B\u5E08",
|
|
children: "\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u5DE5\u7A0B\u5E08",
|
|
children: "\u5DE5\u7A0B\u5E08"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u52A9\u7406\u5DE5\u7A0B\u5E08",
|
|
children: "\u52A9\u7406\u5DE5\u7A0B\u5E08"
|
|
})]
|
|
})
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u5B66\u6821/\u5355\u4F4D",
|
|
name: "school",
|
|
extra: formValue.school && !(schoolList !== null && schoolList !== void 0 && schoolList.find(function (item) {
|
|
return item.name === formValue.school;
|
|
})) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentsmodules.schoolHintWrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: componentsmodules.colorCDCDCD,
|
|
children: ["\u672A\u627E\u5230\u5305\u542B\u201C", formValue.school, "\u201D\u7684\u9AD8\u6821\uFF0C"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "".concat(componentsmodules.color0152d9, " current"),
|
|
onClick: handleApplySchool,
|
|
children: "\u7533\u8BF7\u65B0\u589E"
|
|
})]
|
|
}),
|
|
rules: [{
|
|
required: true,
|
|
message: '请先选择学校/单位'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
|
|
size: "large",
|
|
showSearch: true,
|
|
options: filterSchoolList === null || filterSchoolList === void 0 ? void 0 : filterSchoolList.map(function (item) {
|
|
return {
|
|
value: item.name
|
|
};
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u9662\u7CFB/\u90E8\u95E8",
|
|
name: "department",
|
|
extra: formValue.department && !(departmentList !== null && departmentList !== void 0 && departmentList.find(function (item) {
|
|
return item.name === formValue.department;
|
|
})) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentsmodules.schoolHintWrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: componentsmodules.colorCDCDCD,
|
|
children: formValue.department ? "\u672A\u627E\u5230\u5305\u542B\u201C".concat(formValue.department, "\u201D\u7684\u9AD8\u6821\uFF0C") : '未找到院系,'
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "".concat(componentsmodules.color0152d9, " current"),
|
|
onClick: handleApplyDepartment,
|
|
children: "\u7533\u8BF7\u65B0\u589E"
|
|
})]
|
|
}),
|
|
rules: [{
|
|
required: true,
|
|
message: '请先选择院系/部门'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
|
|
size: "large",
|
|
showSearch: true,
|
|
onChange: function onChange(value) {
|
|
return setFilterDepartmentList(departmentList.filter(function (item) {
|
|
return item.name.includes(value);
|
|
}));
|
|
},
|
|
children: filterDepartmentList.map(function (item, key) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: item.name,
|
|
children: item.name
|
|
}, key);
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u804C\u4E1A\u8BC1\u4E0A\u4F20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentsmodules.flexRow,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(componentsmodules.flexColumn, " ").concat(componentsmodules.example),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: componentsmodules.exampleImg,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: job
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "tc",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "\u793A\u4F8B\u56FE\u7247"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: "".concat(componentsmodules.colorOrange, " font12"),
|
|
children: "\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentsmodules.flexColumn,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ProfessionalAuthModal_Dragger, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
|
|
accept: ".png,.jpg,.bmp,.jpeg",
|
|
children: image ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: image,
|
|
className: componentsmodules.uploadImg
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentsmodules.imageTip,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-cuban2shangchuanyunduan ".concat(componentsmodules.uploadTipIcon)
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: componentsmodules.uploadTip,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: componentsmodules.color05101a,
|
|
children: "\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247"
|
|
})
|
|
})]
|
|
})
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tc",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: componentsmodules.viewLargerImg,
|
|
children: "\u67E5\u770B\u5927\u56FE"
|
|
})
|
|
})]
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: componentsmodules.footerWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
className: "mr5",
|
|
size: 'middle',
|
|
onClick: handleClose,
|
|
children: "\u53D6\u6D88"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
size: "middle",
|
|
type: "primary",
|
|
htmlType: "submit",
|
|
loading: loading['account/applyProfessionalAuth'],
|
|
children: "\u63D0\u4EA4"
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentsmodules.note,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "\u8BA4\u8BC1\u987B\u77E5\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u7F16\u5916\u4EBA\u5458\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
children: ["6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3", !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.is_local) && 'EduCoder', "\u8D26\u53F7\u3002"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002"
|
|
})]
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AppplySchoolModal/* default */.Z, {
|
|
visible: visibleAppplySchool,
|
|
onClose: function onClose() {
|
|
return setVisibleAppplySchool(false);
|
|
},
|
|
schoolName: formValue.school,
|
|
onSuccess: handleSchoolSuccess
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AppplyDepartmentModal/* default */.Z, {
|
|
visible: visibleAppplyDepartment,
|
|
onClose: function onClose() {
|
|
return setVisibleAppplyDepartment(false);
|
|
},
|
|
schoolId: (_schoolList$find3 = schoolList.find(function (item) {
|
|
return item.name === formValue.school;
|
|
})) === null || _schoolList$find3 === void 0 ? void 0 : _schoolList$find3.id,
|
|
schoolName: formValue.school,
|
|
departmentName: formValue.department,
|
|
onSuccess: function onSuccess(departmentName) {
|
|
return handleSetDepartment(formValue.school, departmentName);
|
|
}
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var components_ProfessionalAuthModal = ((0,_umi_production_exports.connect)(function (_ref8) {
|
|
var user = _ref8.user,
|
|
account = _ref8.account,
|
|
loading = _ref8.loading,
|
|
globalSetting = _ref8.globalSetting;
|
|
return {
|
|
user: user,
|
|
account: account,
|
|
globalSetting: globalSetting,
|
|
loading: loading.effects
|
|
};
|
|
})(ProfessionalAuthModal));
|
|
;// CONCATENATED MODULE: ./src/pages/Account/Certification/index.tsx
|
|
|
|
|
|
|
|
var Certification_excluded = ["user", "account", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Certification = function Certification(_ref) {
|
|
var user = _ref.user,
|
|
account = _ref.account,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
props = objectWithoutProperties_default()(_ref, Certification_excluded);
|
|
var handleCancelAuth = function handleCancelAuth(isRealNameAuth) {
|
|
modal/* default */.Z.confirm({
|
|
centered: true,
|
|
okText: '确定',
|
|
cancelText: '取消',
|
|
title: '提示',
|
|
content: '是否确认撤销认证?',
|
|
className: Certificationmodules.modal,
|
|
onOk: function () {
|
|
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var _user$userInfo;
|
|
var res, _user$userInfo2;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return dispatch({
|
|
type: isRealNameAuth ? "account/cancelRealNameAuth" : "account/cancelProfessionalAuth",
|
|
payload: {
|
|
login: (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login
|
|
}
|
|
});
|
|
case 2:
|
|
res = _context.sent;
|
|
if (res) {
|
|
message/* default */.ZP.info('撤销成功!');
|
|
dispatch({
|
|
type: 'account/getBasicInfo',
|
|
payload: {
|
|
login: (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login
|
|
}
|
|
});
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
function onOk() {
|
|
return _onOk.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}()
|
|
});
|
|
};
|
|
var handleAuth = function handleAuth(isRealNameAuth) {
|
|
var _account$basicInfo;
|
|
if (!((_account$basicInfo = account.basicInfo) !== null && _account$basicInfo !== void 0 && _account$basicInfo.base_info_completed)) {
|
|
modal/* default */.Z.confirm({
|
|
centered: true,
|
|
content: "\u8BF7\u5148\u5B8C\u5584\u57FA\u672C\u4FE1\u606F",
|
|
okText: "\u7ACB\u5373\u5B8C\u5584",
|
|
cancelText: "稍后完善",
|
|
onOk: function onOk() {
|
|
_umi_production_exports.history.push('/account/profile/edit');
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {
|
|
key: isRealNameAuth ? 'Account-RealNameAuth' : 'Account-ProfessionalAuth'
|
|
}
|
|
});
|
|
};
|
|
var _ref2 = account.basicInfo || {},
|
|
authentication = _ref2.authentication,
|
|
professional_certification = _ref2.professional_certification;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
className: Certificationmodules.wrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Certificationmodules.content,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "".concat(Certificationmodules.titleWrap, " mt10"),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Certificationmodules.title,
|
|
children: "\u8BA4\u8BC1\u4FE1\u606F"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(Certificationmodules.flexRow, " mt10 font14"),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Certificationmodules.color999,
|
|
children: "\u5B9E\u540D\u8BA4\u8BC1"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(Certificationmodules.actionWrap, " ").concat(Certificationmodules.colorCDCDCD),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u5B9E\u540D\u8BA4\u8BC1\u53EF\u4EE5\u589E\u5F3A\u4F60\u5728\u5E73\u53F0\u7684\u6C5F\u6E56\u5730\u4F4D\uFF0C\u8FD8\u53EF\u4EE5\u83B7\u5F97500\u91D1\u5E01\u7684\u5956\u52B1~"
|
|
}), authentication === "uncertified" && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: Certificationmodules.auth,
|
|
onClick: function onClick() {
|
|
return handleAuth(true);
|
|
},
|
|
children: "\u7ACB\u5373\u8BA4\u8BC1"
|
|
}), authentication === "applying" && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: "".concat(Certificationmodules.color999, " pr20"),
|
|
onClick: function onClick() {
|
|
return handleCancelAuth(true);
|
|
},
|
|
children: "\u64A4\u9500\u8BA4\u8BC1"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Certificationmodules.colorOrange,
|
|
children: "\u5F85\u5BA1\u6838"
|
|
})]
|
|
}), authentication === "certified" && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: "".concat(Certificationmodules.reauth, " ").concat(Certificationmodules.color999, " pr20"),
|
|
onClick: function onClick() {
|
|
return handleAuth(true);
|
|
},
|
|
children: "\u91CD\u65B0\u8BA4\u8BC1"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: Certificationmodules.color28AC7F,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-wancheng font16 mr3"
|
|
}), "\u5DF2\u8BA4\u8BC1"]
|
|
})]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(Certificationmodules.flexRow, " mt10 font14"),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Certificationmodules.color999,
|
|
children: "\u804C\u4E1A\u8BA4\u8BC1"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(Certificationmodules.actionWrap, " ").concat(Certificationmodules.colorCDCDCD),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u6559\u5E08\u901A\u8FC7\u8BA4\u8BC1\uFF0C\u53EF\u4EE5\u514B\u9686\u5B9E\u8BAD\u3001\u514D\u91D1\u5E01\u67E5\u770B\u5B9E\u8BAD\u7B54\u6848\u548C\u9690\u85CF\u6D4B\u8BD5\u96C6..."
|
|
}), professional_certification === "uncertified" && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: Certificationmodules.auth,
|
|
onClick: function onClick() {
|
|
return handleAuth(false);
|
|
},
|
|
children: "\u7ACB\u5373\u8BA4\u8BC1"
|
|
}), professional_certification === "applying" && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: "".concat(Certificationmodules.color999, " pr20"),
|
|
onClick: function onClick() {
|
|
return handleCancelAuth(false);
|
|
},
|
|
children: "\u64A4\u9500\u8BA4\u8BC1"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Certificationmodules.colorOrange,
|
|
children: "\u5F85\u5BA1\u6838"
|
|
})]
|
|
}), professional_certification === "certified" && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: "".concat(Certificationmodules.reauth, " ").concat(Certificationmodules.color999, " pr20"),
|
|
onClick: function onClick() {
|
|
return handleAuth(false);
|
|
},
|
|
children: "\u91CD\u65B0\u8BA4\u8BC1"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: Certificationmodules.color28AC7F,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-wancheng font16 mr3"
|
|
}), "\u5DF2\u8BA4\u8BC1"]
|
|
})]
|
|
})]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "".concat(Certificationmodules.hint, " font14"),
|
|
children: "* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_RealNameAuthModal, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_ProfessionalAuthModal, {})]
|
|
});
|
|
};
|
|
/* harmony default export */ var Account_Certification = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
var user = _ref3.user,
|
|
account = _ref3.account,
|
|
loading = _ref3.loading,
|
|
globalSetting = _ref3.globalSetting;
|
|
return {
|
|
user: user,
|
|
account: account,
|
|
globalSetting: globalSetting,
|
|
loading: loading.models.index
|
|
};
|
|
})(Certification));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 65186:
|
|
/*!**********************************************************************************!*\
|
|
!*** ./src/pages/Account/components/AppplyDepartmentModal/index.tsx + 1 modules ***!
|
|
\**********************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ components_AppplyDepartmentModal; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(39647);
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(80608);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
|
var input = __webpack_require__(92832);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
var es_form = __webpack_require__(78241);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
var message = __webpack_require__(8591);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
var modal = __webpack_require__(43418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
var es_button = __webpack_require__(3113);
|
|
;// CONCATENATED MODULE: ./src/pages/Account/components/AppplyDepartmentModal/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var AppplyDepartmentModalmodules = ({"flexRow":"flexRow___QJsV8","flexColumn":"flexColumn___Otjag","formWrap":"formWrap___z8635","example":"example___rgoyo","footerWrap":"footerWrap___gNXP9"});
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Account/components/AppplyDepartmentModal/index.tsx
|
|
|
|
|
|
|
|
|
|
var _excluded = ["account", "globalSetting", "loading", "dispatch", "schoolName", "departmentName", "visible", "onClose", "onSuccess"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TextArea = input/* default */.Z.TextArea;
|
|
var AppplyDepartmentModal = function AppplyDepartmentModal(_ref) {
|
|
var account = _ref.account,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
schoolName = _ref.schoolName,
|
|
departmentName = _ref.departmentName,
|
|
visible = _ref.visible,
|
|
_ref$onClose = _ref.onClose,
|
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
_ref$onSuccess = _ref.onSuccess,
|
|
onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess,
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
var schoolId = (0,_react_17_0_2_react.useRef)();
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
schoolId.current = props.schoolId;
|
|
}, [props.schoolId]);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
form.setFieldsValue({
|
|
department: departmentName
|
|
});
|
|
}, [departmentName]);
|
|
var handleFinish = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
|
|
var _ref3, department, remarks, res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_ref3 = values || {}, department = _ref3.department, remarks = _ref3.remarks;
|
|
_context.next = 3;
|
|
return dispatch({
|
|
type: 'account/appplyDepartment',
|
|
payload: {
|
|
school_id: schoolId.current,
|
|
name: department,
|
|
remarks: remarks
|
|
}
|
|
});
|
|
case 3:
|
|
res = _context.sent;
|
|
onClose();
|
|
if (res) {
|
|
message/* default */.ZP.success("新增院系/部门成功!");
|
|
onSuccess(department);
|
|
}
|
|
case 6:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function handleFinish(_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
centered: true,
|
|
keyboard: false,
|
|
closable: false,
|
|
destroyOnClose: true,
|
|
open: visible,
|
|
title: "\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",
|
|
width: "600px",
|
|
footer: null,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
className: AppplyDepartmentModalmodules.formWrap,
|
|
form: form,
|
|
labelCol: {
|
|
span: 4
|
|
},
|
|
wrapperCol: {
|
|
span: 20
|
|
},
|
|
onFinish: handleFinish,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u5355\u4F4D\u540D\u79F0\uFF1A",
|
|
children: schoolName
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u90E8\u95E8\u540D\u79F0\uFF1A",
|
|
name: "department",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入部门或者学院名称'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u8BF4\u660E\uFF1A",
|
|
name: "remarks",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
|
|
placeholder: "\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: AppplyDepartmentModalmodules.footerWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
className: "mr5",
|
|
size: 'middle',
|
|
onClick: function onClick() {
|
|
onClose();
|
|
},
|
|
children: "\u53D6\u6D88"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
size: 'middle',
|
|
type: "primary",
|
|
htmlType: "submit",
|
|
loading: loading['account/appplyDepartment'],
|
|
children: "\u4FDD\u5B58"
|
|
})]
|
|
})
|
|
})]
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var components_AppplyDepartmentModal = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
var account = _ref4.account,
|
|
loading = _ref4.loading,
|
|
globalSetting = _ref4.globalSetting;
|
|
return {
|
|
account: account,
|
|
globalSetting: globalSetting,
|
|
loading: loading.effects
|
|
};
|
|
})(AppplyDepartmentModal));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 19944:
|
|
/*!******************************************************************************!*\
|
|
!*** ./src/pages/Account/components/AppplySchoolModal/index.tsx + 1 modules ***!
|
|
\******************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ components_AppplySchoolModal; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(39647);
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(80608);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
|
var input = __webpack_require__(92832);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
var es_form = __webpack_require__(78241);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
var message = __webpack_require__(8591);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
var modal = __webpack_require__(43418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/cascader/index.js + 18 modules
|
|
var cascader = __webpack_require__(19842);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
var es_button = __webpack_require__(3113);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CheckCircleFilled.js + 1 modules
|
|
var CheckCircleFilled = __webpack_require__(46906);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
|
|
var CloseCircleFilled = __webpack_require__(21884);
|
|
// EXTERNAL MODULE: ./src/utils/cityData.ts
|
|
var cityData = __webpack_require__(16603);
|
|
;// CONCATENATED MODULE: ./src/pages/Account/components/AppplySchoolModal/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var AppplySchoolModalmodules = ({"flexRow":"flexRow___qRWfN","flexColumn":"flexColumn___qUHfF","formWrap":"formWrap___kSgvX","example":"example___D0a_H","footerWrap":"footerWrap___kTeYf"});
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Account/components/AppplySchoolModal/index.tsx
|
|
|
|
|
|
|
|
|
|
var _excluded = ["account", "globalSetting", "loading", "dispatch", "schoolName", "visible", "onClose", "onSuccess"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var filter = function filter(inputValue, path) {
|
|
return path.some(function (option) {
|
|
return option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1;
|
|
});
|
|
};
|
|
var TextArea = input/* default */.Z.TextArea;
|
|
var AppplySchoolModal = function AppplySchoolModal(_ref) {
|
|
var account = _ref.account,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
schoolName = _ref.schoolName,
|
|
visible = _ref.visible,
|
|
_ref$onClose = _ref.onClose,
|
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
_ref$onSuccess = _ref.onSuccess,
|
|
onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess,
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
form.setFieldsValue({
|
|
name: schoolName
|
|
});
|
|
}, [schoolName]);
|
|
var handleFinish = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
|
|
var _ref3, name, _ref3$city, city, address, remarks, res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_ref3 = values || {}, name = _ref3.name, _ref3$city = _ref3.city, city = _ref3$city === void 0 ? [] : _ref3$city, address = _ref3.address, remarks = _ref3.remarks;
|
|
_context.next = 3;
|
|
return dispatch({
|
|
type: 'account/appplySchool',
|
|
payload: {
|
|
name: name,
|
|
province: city[0],
|
|
city: city[1],
|
|
address: address,
|
|
remarks: remarks
|
|
}
|
|
});
|
|
case 3:
|
|
res = _context.sent;
|
|
onClose();
|
|
if (res) {
|
|
message/* default */.ZP.success("新增学校/单位成功!");
|
|
onSuccess(name);
|
|
}
|
|
case 6:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function handleFinish(_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
centered: true,
|
|
keyboard: false,
|
|
closable: false,
|
|
destroyOnClose: true,
|
|
open: visible,
|
|
title: "\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",
|
|
width: "600px",
|
|
footer: null,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
className: AppplySchoolModalmodules.formWrap,
|
|
form: form,
|
|
labelCol: {
|
|
span: 4
|
|
},
|
|
wrapperCol: {
|
|
span: 20
|
|
},
|
|
onFinish: handleFinish,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u5355\u4F4D\u5168\u79F0\uFF1A",
|
|
name: "name",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入学校或工作单位'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(AppplySchoolModalmodules.flexRow, " ").concat(AppplySchoolModalmodules.example),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u793A\u4F8B\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: AppplySchoolModalmodules.flexColumn,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
|
|
style: {
|
|
color: "rgb(82, 196, 26)"
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "font14 ml5",
|
|
children: "\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
|
|
style: {
|
|
color: "red"
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "font14 ml5",
|
|
children: "\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625"
|
|
})]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u5730\u533A\uFF1A",
|
|
name: "city",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(cascader/* default */.Z, {
|
|
allowClear: true,
|
|
size: 'middle',
|
|
options: cityData/* CityData */.P,
|
|
placeholder: "\u8BF7\u9009\u62E9\u6240\u5728\u5730",
|
|
showSearch: {
|
|
matchInputWidth: true,
|
|
filter: filter
|
|
}
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u8BE6\u7EC6\u5730\u5740\uFF1A",
|
|
name: "address",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u8BF4\u660E\uFF1A",
|
|
name: "remarks",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
|
|
placeholder: "\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: AppplySchoolModalmodules.footerWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
className: "mr5",
|
|
size: 'middle',
|
|
onClick: function onClick() {
|
|
onClose();
|
|
},
|
|
children: "\u53D6\u6D88"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
size: 'middle',
|
|
type: "primary",
|
|
htmlType: "submit",
|
|
loading: loading['account/appplySchool'],
|
|
children: "\u4FDD\u5B58"
|
|
})]
|
|
})
|
|
})]
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var components_AppplySchoolModal = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
var account = _ref4.account,
|
|
loading = _ref4.loading,
|
|
globalSetting = _ref4.globalSetting;
|
|
return {
|
|
account: account,
|
|
globalSetting: globalSetting,
|
|
loading: loading.effects
|
|
};
|
|
})(AppplySchoolModal));
|
|
|
|
/***/ })
|
|
|
|
}]); |