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.
1 lines
12 KiB
1 lines
12 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[331],{83089:function(we,D,r){r.r(D),r.d(D,{default:function(){return ge}});var I=r(77117),g=r.n(I),V=r(28152),T=r.n(V),L=r(19494),P=r(62737),w=r(50959),W=r(13448),d=r.n(W),H=r(74815),y=r.n(H),K=r(68968),N=r(43997),A=r(60010),$=r(59224),S=r(79712),U=r(80288),G=r(68344),B=r(27533),O=r(86962),k=r(47100),X=r(52497),z=r(33952);function J(){return b.apply(this,arguments)}function b(){return b=y()(d()().mark(function s(){return d()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,B.request)("/api/accountSettingCurrentUser"));case 1:case"end":return t.stop()}},s)})),b.apply(this,arguments)}function Q(){return C.apply(this,arguments)}function C(){return C=y()(d()().mark(function s(){return d()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,B.request)("/api/geographic/province"));case 1:case"end":return t.stop()}},s)})),C.apply(this,arguments)}function Y(s){return E.apply(this,arguments)}function E(){return E=y()(d()().mark(function s(n){return d()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,B.request)("/api/geographic/city/".concat(n)));case 1:case"end":return a.stop()}},s)})),E.apply(this,arguments)}function Be(){return Z.apply(this,arguments)}function Z(){return Z=_asyncToGenerator(_regeneratorRuntime().mark(function s(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/users"));case 1:case"end":return t.stop()}},s)})),Z.apply(this,arguments)}var q=r(21320),j=r.n(q),R=r(8700),_=(0,R.kc)(function(s){var n=s.token;return{baseView:j()({display:"flex",paddingTop:"12px",".ant-legacy-form-item .ant-legacy-form-item-control-wrapper":{width:"100%"}},"@media screen and (max-width: ".concat(n.screenXL,"px)"),{flexDirection:"column-reverse"}),left:{minWidth:"224px",maxWidth:"448px"},right:j()({flex:"1",paddingLeft:"104px"},"@media screen and (max-width: ".concat(n.screenXL,"px)"),{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"448px",padding:"20px"}),avatar_title:j()({height:"22px",marginBottom:"8px",color:n.colorTextHeading,fontSize:n.fontSize,lineHeight:"22px"},"@media screen and (max-width: ".concat(n.screenXL,"px)"),{display:"none"}),avatar:{width:"144px",height:"144px",marginBottom:"12px",overflow:"hidden",img:{width:"100%"}},button_view:{width:"144px",textAlign:"center"},area_code:{width:"72px"},phone_number:{width:"214px"}}}),ee=_,e=r(11527),te=function(n,t,a){t[0]||a("Please input your area code!"),t[1]||a("Please input your phone number!"),a()},ne=function(){var n=ee(),t=n.styles,a=function(c){var i=c.avatar;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:t.avatar_title,children:"\u5934\u50CF"}),(0,e.jsx)("div",{className:t.avatar,children:(0,e.jsx)("img",{src:i,alt:"avatar"})}),(0,e.jsx)(O.Z,{showUploadList:!1,children:(0,e.jsx)("div",{className:t.button_view,children:(0,e.jsxs)(k.ZP,{children:[(0,e.jsx)(K.Z,{}),"\u66F4\u6362\u5934\u50CF"]})})})]})},u=(0,B.useRequest)(function(){return J()}),p=u.data,v=u.loading,F=function(){if(p){if(p.avatar)return p.avatar;var c="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png";return c}return""},x=function(){var h=y()(d()().mark(function c(){return d()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:X.ZP.success("\u66F4\u65B0\u57FA\u672C\u4FE1\u606F\u6210\u529F");case 1:case"end":return m.stop()}},c)}));return function(){return h.apply(this,arguments)}}();return(0,e.jsx)("div",{className:t.baseView,children:v?null:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:t.left,children:(0,e.jsxs)(N.A,{layout:"vertical",onFinish:x,submitter:{searchConfig:{submitText:"\u66F4\u65B0\u57FA\u672C\u4FE1\u606F"},render:function(c,i){return i[1]}},initialValues:g()(g()({},p),{},{phone:p==null?void 0:p.phone.split("-")}),hideRequiredMark:!0,children:[(0,e.jsx)(A.Z,{width:"md",name:"email",label:"\u90AE\u7BB1",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u90AE\u7BB1!"}]}),(0,e.jsx)(A.Z,{width:"md",name:"name",label:"\u6635\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0!"}]}),(0,e.jsx)($.Z,{name:"profile",label:"\u4E2A\u4EBA\u7B80\u4ECB",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB!"}],placeholder:"\u4E2A\u4EBA\u7B80\u4ECB"}),(0,e.jsx)(S.Z,{width:"sm",name:"country",label:"\u56FD\u5BB6/\u5730\u533A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u56FD\u5BB6\u6216\u5730\u533A!"}],options:[{label:"\u4E2D\u56FD",value:"China"}]}),(0,e.jsxs)(N.A.Group,{title:"\u6240\u5728\u7701\u5E02",size:8,children:[(0,e.jsx)(S.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6240\u5728\u7701!"}],width:"sm",fieldProps:{labelInValue:!0},name:"province",className:t.item,request:y()(d()().mark(function h(){return d()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Q().then(function(m){var o=m.data;return o.map(function(l){return{label:l.name,value:l.id}})}));case 1:case"end":return i.stop()}},h)}))}),(0,e.jsx)(U.Z,{name:["province"],children:function(c){var i=c.province;return(0,e.jsx)(S.Z,{params:{key:i==null?void 0:i.value},name:"city",width:"sm",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6240\u5728\u57CE\u5E02!"}],disabled:!i,className:t.item,request:y()(d()().mark(function m(){return d()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(i!=null&&i.key){l.next=2;break}return l.abrupt("return",[]);case 2:return l.abrupt("return",Y(i.key||"").then(function(ye){var je=ye.data;return je.map(function(M){return{label:M.name,value:M.id}})}));case 3:case"end":return l.stop()}},m)}))})}})]}),(0,e.jsx)(A.Z,{width:"md",name:"address",label:"\u8857\u9053\u5730\u5740",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u8857\u9053\u5730\u5740!"}]}),(0,e.jsxs)(G.Z,{name:"phone",label:"\u8054\u7CFB\u7535\u8BDD",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u8054\u7CFB\u7535\u8BDD!"},{validator:te}],children:[(0,e.jsx)(z.Z,{className:t.area_code}),(0,e.jsx)(z.Z,{className:t.phone_number})]})]})}),(0,e.jsx)("div",{className:t.right,children:(0,e.jsx)(a,{avatar:F()})})]})})},re=ne,ae=r(62624),ie=r(34700),se=r(10587),f=r(90543),ue=function(){var n=function(){return[{title:"\u7ED1\u5B9A\u6DD8\u5B9D",description:"\u5F53\u524D\u672A\u7ED1\u5B9A\u6DD8\u5B9D\u8D26\u53F7",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"Bind")],avatar:(0,e.jsx)(ae.Z,{className:"taobao"})},{title:"\u7ED1\u5B9A\u652F\u4ED8\u5B9D",description:"\u5F53\u524D\u672A\u7ED1\u5B9A\u652F\u4ED8\u5B9D\u8D26\u53F7",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"Bind")],avatar:(0,e.jsx)(ie.Z,{className:"alipay"})},{title:"\u7ED1\u5B9A\u9489\u9489",description:"\u5F53\u524D\u672A\u7ED1\u5B9A\u9489\u9489\u8D26\u53F7",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"Bind")],avatar:(0,e.jsx)(se.Z,{className:"dingding"})}]};return(0,e.jsx)(w.Fragment,{children:(0,e.jsx)(f.Z,{itemLayout:"horizontal",dataSource:n(),renderItem:function(a){return(0,e.jsx)(f.Z.Item,{actions:a.actions,children:(0,e.jsx)(f.Z.Item.Meta,{avatar:a.avatar,title:a.title,description:a.description})})}})})},oe=ue,le=r(41868),de=function(){var n=function(){var u=(0,e.jsx)(le.Z,{checkedChildren:"\u5F00",unCheckedChildren:"\u5173",defaultChecked:!0});return[{title:"\u8D26\u6237\u5BC6\u7801",description:"\u5176\u4ED6\u7528\u6237\u7684\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5",actions:[u]},{title:"\u7CFB\u7EDF\u6D88\u606F",description:"\u7CFB\u7EDF\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5",actions:[u]},{title:"\u5F85\u529E\u4EFB\u52A1",description:"\u5F85\u529E\u4EFB\u52A1\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5",actions:[u]}]},t=n();return(0,e.jsx)(w.Fragment,{children:(0,e.jsx)(f.Z,{itemLayout:"horizontal",dataSource:t,renderItem:function(u){return(0,e.jsx)(f.Z.Item,{actions:u.actions,children:(0,e.jsx)(f.Z.Item.Meta,{title:u.title,description:u.description})})}})})},ce=de,me={strong:(0,e.jsx)("span",{className:"strong",children:"\u5F3A"}),medium:(0,e.jsx)("span",{className:"medium",children:"\u4E2D"}),weak:(0,e.jsx)("span",{className:"weak",children:"\u5F31 Weak"})},he=function(){var n=function(){return[{title:"\u8D26\u6237\u5BC6\u7801",description:(0,e.jsxs)(e.Fragment,{children:["\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6\uFF1A",me.strong]}),actions:[(0,e.jsx)("a",{children:"\u4FEE\u6539"},"Modify")]},{title:"\u5BC6\u4FDD\u624B\u673A",description:"\u5DF2\u7ED1\u5B9A\u624B\u673A\uFF1A138****8293",actions:[(0,e.jsx)("a",{children:"\u4FEE\u6539"},"Modify")]},{title:"\u5BC6\u4FDD\u95EE\u9898",description:"\u672A\u8BBE\u7F6E\u5BC6\u4FDD\u95EE\u9898\uFF0C\u5BC6\u4FDD\u95EE\u9898\u53EF\u6709\u6548\u4FDD\u62A4\u8D26\u6237\u5B89\u5168",actions:[(0,e.jsx)("a",{children:"\u8BBE\u7F6E"},"Set")]},{title:"\u5907\u7528\u90AE\u7BB1",description:"\u5DF2\u7ED1\u5B9A\u90AE\u7BB1\uFF1Aant***sign.com",actions:[(0,e.jsx)("a",{children:"\u4FEE\u6539"},"Modify")]},{title:"MFA \u8BBE\u5907",description:"\u672A\u7ED1\u5B9A MFA \u8BBE\u5907\uFF0C\u7ED1\u5B9A\u540E\uFF0C\u53EF\u4EE5\u8FDB\u884C\u4E8C\u6B21\u786E\u8BA4",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"bind")]}]},t=n();return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(f.Z,{itemLayout:"horizontal",dataSource:t,renderItem:function(u){return(0,e.jsx)(f.Z.Item,{actions:u.actions,children:(0,e.jsx)(f.Z.Item.Meta,{title:u.title,description:u.description})})}})})},pe=he,fe=(0,R.kc)(function(s){var n=s.token;return{main:j()({display:"flex",width:"100%",height:"100%",paddingTop:"16px",paddingBottom:"16px",backgroundColor:n.colorBgContainer,".ant-list-split .ant-list-item:last-child":{borderBottom:"1px solid ".concat(n.colorSplit)},".ant-list-item":{paddingTop:"14px",paddingBottom:"14px"}},"@media screen and (max-width: ".concat(n.screenMD,"px)"),{flexDirection:"column"}),leftMenu:j()({width:"224px",borderRight:"".concat(n.lineWidth,"px solid ").concat(n.colorSplit),".ant-menu-inline":{border:"none"},".ant-menu-horizontal":{fontWeight:"bold"}},"@media screen and (max-width: ".concat(n.screenMD,"px)"),{width:"100%",border:"none"}),right:j()({flex:"1",padding:"8px 40px"},"@media screen and (max-width: ".concat(n.screenMD,"px)"),{padding:"40px"}),title:{marginBottom:"12px",color:n.colorTextHeading,fontWeight:"500",fontSize:"20px",lineHeight:"28px"},taobao:{display:"block",color:"#ff4000",fontSize:"48px",lineHeight:"48px",borderRadius:n.borderRadius},dingding:{margin:"2px",padding:"6px",color:"#fff",fontSize:"32px",lineHeight:"32px",backgroundColor:"#2eabff",borderRadius:n.borderRadius},alipay:{color:"#2eabff",fontSize:"48px",lineHeight:"48px",borderRadius:n.borderRadius},":global":{"font.strong":{color:n.colorSuccess},"font.medium":{color:n.colorWarning},"font.weak":{color:n.colorError}}}}),ve=fe,xe=function(){var n=ve(),t=n.styles,a={base:"\u57FA\u672C\u8BBE\u7F6E",security:"\u5B89\u5168\u8BBE\u7F6E",binding:"\u8D26\u53F7\u7ED1\u5B9A",notification:"\u65B0\u6D88\u606F\u901A\u77E5"},u=(0,w.useState)({mode:"inline",selectKey:"base"}),p=T()(u,2),v=p[0],F=p[1],x=(0,w.useRef)(),h=function(){requestAnimationFrame(function(){if(x.current){var o="inline",l=x.current.offsetWidth;x.current.offsetWidth<641&&l>400&&(o="horizontal"),window.innerWidth<768&&l>400&&(o="horizontal"),F(g()(g()({},v),{},{mode:o}))}})};(0,w.useLayoutEffect)(function(){return x.current&&(window.addEventListener("resize",h),h()),function(){window.removeEventListener("resize",h)}},[x.current]);var c=function(){return Object.keys(a).map(function(o){return{key:o,label:a[o]}})},i=function(){var o=v.selectKey;switch(o){case"base":return(0,e.jsx)(re,{});case"security":return(0,e.jsx)(pe,{});case"binding":return(0,e.jsx)(oe,{});case"notification":return(0,e.jsx)(ce,{});default:return null}};return(0,e.jsx)(L.f,{children:(0,e.jsxs)("div",{className:t.main,ref:function(o){o&&(x.current=o)},children:[(0,e.jsx)("div",{className:t.leftMenu,children:(0,e.jsx)(P.Z,{mode:v.mode,selectedKeys:[v.selectKey],onClick:function(o){var l=o.key;F(g()(g()({},v),{},{selectKey:l}))},items:c()})}),(0,e.jsxs)("div",{className:t.right,children:[(0,e.jsx)("div",{className:t.title,children:a[v.selectKey]}),i()]})]})})},ge=xe}}]);
|
|
|