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.
173 lines
8.3 KiB
173 lines
8.3 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[59788,20576],{
|
|
|
|
/***/ 19592:
|
|
/*!*********************************************************!*\
|
|
!*** ./src/pages/Account/Profile/index.tsx + 1 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_Profile; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(27161);
|
|
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 + 8 modules
|
|
var _umi_production_exports = __webpack_require__(66660);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
var es_button = __webpack_require__(3113);
|
|
// 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/upload/index.js + 24 modules
|
|
var upload = __webpack_require__(6557);
|
|
;// CONCATENATED MODULE: ./src/pages/Account/Profile/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Profilemodules = ({"wrap":"wrap___b7NLQ","content":"content___PtdDU","hint":"hint___eYy0R","title":"title___Ijn2y","titleWrap":"titleWrap___DpFsH","formWrap":"formWrap___Obi0m"});
|
|
// EXTERNAL MODULE: ./src/pages/Account/Profile/Edit/index.tsx + 1 modules
|
|
var Edit = __webpack_require__(29266);
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(27291);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(47015);
|
|
// EXTERNAL MODULE: ./src/components/image-preview/index.tsx + 1 modules
|
|
var image_preview = __webpack_require__(78273);
|
|
// EXTERNAL MODULE: ./src/components/mediator.js
|
|
var mediator = __webpack_require__(93914);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Account/Profile/index.tsx
|
|
|
|
var _excluded = ["account", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Profile = function Profile(_ref) {
|
|
var account = _ref.account,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
var basicInfo = account.basicInfo;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
className: Profilemodules.wrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Profilemodules.content,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Profilemodules.titleWrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Profilemodules.title,
|
|
children: "\u57FA\u672C\u4FE1\u606F"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
type: "primary",
|
|
ghost: true,
|
|
onClick: function onClick() {
|
|
if (localStorage.getItem('Noviceguide') === '0') {} else {
|
|
dispatch({
|
|
type: 'shixunHomeworks/setActionTabs',
|
|
payload: {
|
|
key: '底部弹窗',
|
|
type: 2,
|
|
href: '/account/profile/edit',
|
|
text: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u8BF7\u60A8\u5B8C\u5584\u4E00\u4E0B\u5E73\u53F0\u7684\u57FA\u672C\u4FE1\u606F\uFF0C\u5305\u62EC\uFF1A\u6635\u79F0\u3001\u804C\u4E1A\u3001\u5B66\u6821/\u5355\u4F4D\uFF0C \u70B9\u51FB\u4FDD\u5B58"
|
|
})
|
|
}
|
|
});
|
|
}
|
|
_umi_production_exports.history.push('/account/profile/edit');
|
|
},
|
|
children: "\u4FEE\u6539"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
className: Profilemodules.formWrap,
|
|
labelCol: {
|
|
span: 3
|
|
},
|
|
wrapperCol: {
|
|
span: 21
|
|
},
|
|
layout: "horizontal",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u59D3\u540D",
|
|
children: (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.show_realname) == true ? basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.name : (0,util/* getHiddenName */.YA)(basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.name)
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
|
|
label: "\u804C\u4E1A",
|
|
children: [Edit.identityMap[basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.identity], "\u3000", (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.technical_title) || (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.student_id), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml20",
|
|
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.staff_id
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u5B66\u6821/\u5355\u4F4D",
|
|
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.school_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u9662\u7CFB/\u90E8\u95E8",
|
|
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.department_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u6635\u79F0",
|
|
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.nickname
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u6027\u522B",
|
|
children: (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.gender) == 0 ? "男" : "女"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u5165\u5B66\u5E74\u4EFD",
|
|
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.edu_entry_year
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u6700\u9AD8\u5B66\u5386",
|
|
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.edu_background
|
|
}), (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.face_image) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u4E0A\u4F20\u8BC1\u4EF6\u7167",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
|
|
listType: "picture-card",
|
|
withCredentials: true,
|
|
disabled: true,
|
|
onPreview: function onPreview(file) {
|
|
mediator/* default */.Z.publish('preview-image', file.thumbUrl || file.url);
|
|
},
|
|
className: "avatar-uploader",
|
|
fileList: [{
|
|
uid: '111',
|
|
name: '111',
|
|
url: env/* default */.Z.API_SERVER + (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.face_image)
|
|
}]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u7B80\u4ECB",
|
|
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.brief_introduction
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "".concat(Profilemodules.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)(image_preview/* default */.Z, {})]
|
|
});
|
|
};
|
|
/* harmony default export */ var Account_Profile = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var account = _ref2.account,
|
|
loading = _ref2.loading,
|
|
globalSetting = _ref2.globalSetting;
|
|
return {
|
|
account: account,
|
|
globalSetting: globalSetting,
|
|
loading: loading.models.index
|
|
};
|
|
})(Profile));
|
|
|
|
/***/ })
|
|
|
|
}]); |