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.

p__Jobseeker__Account__index.5e568da2.async.js 11KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[982],{5966:function(se,K,a){var A=a(97685),d=a(1413),u=a(45987),b=a(21770),B=a(23323),q=a(55241),g=a(97435),_=a(62435),m=a(49994),f=a(86074),y=["fieldProps","proFieldProps"],J=["fieldProps","proFieldProps"],T="text",$=function(i){var o=i.fieldProps,C=i.proFieldProps,x=(0,u.Z)(i,y);return(0,f.jsx)(m.Z,(0,d.Z)({valueType:T,fieldProps:o,filedConfig:{valueType:T},proFieldProps:C},x))},l=function(i){var o=(0,b.Z)(i.open||!1,{value:i.open,onChange:i.onOpenChange}),C=(0,A.Z)(o,2),x=C[0],G=C[1];return(0,f.jsx)(B.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(X){var M,n=X.getFieldValue(i.name||[]);return(0,f.jsx)(q.Z,(0,d.Z)((0,d.Z)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return G(e)},content:(0,f.jsxs)("div",{style:{padding:"4px 0"},children:[(M=i.statusRender)===null||M===void 0?void 0:M.call(i,n),i.strengthText?(0,f.jsx)("div",{style:{marginTop:10},children:(0,f.jsx)("span",{children:i.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},i.popoverProps),{},{open:x,children:i.children}))}})},ne=function(i){var o=i.fieldProps,C=i.proFieldProps,x=(0,u.Z)(i,J),G=(0,_.useState)(!1),H=(0,A.Z)(G,2),X=H[0],M=H[1];return o!=null&&o.statusRender&&x.name?(0,f.jsx)(l,{name:x.name,statusRender:o==null?void 0:o.statusRender,popoverProps:o==null?void 0:o.popoverProps,strengthText:o==null?void 0:o.strengthText,open:X,onOpenChange:M,children:(0,f.jsx)("div",{children:(0,f.jsx)(m.Z,(0,d.Z)({valueType:"password",fieldProps:(0,d.Z)((0,d.Z)({},(0,g.Z)(o,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(r){var e;o==null||(e=o.onBlur)===null||e===void 0||e.call(o,r),M(!1)},onClick:function(r){var e;o==null||(e=o.onClick)===null||e===void 0||e.call(o,r),M(!0)}}),proFieldProps:C,filedConfig:{valueType:T}},x))})}):(0,f.jsx)(m.Z,(0,d.Z)({valueType:"password",fieldProps:o,proFieldProps:C,filedConfig:{valueType:T}},x))},L=$;L.Password=ne,L.displayName="ProFormComponent",K.Z=L},1273:function(se,K,a){a.r(K),a.d(K,{default:function(){return r}});var A=a(5574),d=a.n(A),u=a(62435),b=a(59530),B=a(28459),q=a(15009),g=a.n(q),_=a(99289),m=a.n(_),f=a(95338),y=a(78045),J=a(14726),T=a(17788),$=a(39680),l=a(86074),ne={label:"name",value:"id"},L=function(t){var s=t.dispatch,z=t.getId,D=t.dictModel,v=t.openModel,S=(0,u.useRef)(),E=(0,u.useState)([]),Z=d()(E,2),Q=Z[0],c=Z[1],ee=(0,u.useState)(0),N=d()(ee,2),R=N[0],te=N[1],O=(0,u.useState)(1),j=d()(O,2),F=j[0],h=j[1],Y=(0,u.useState)(10),W=d()(Y,2),ie=W[0],ue=W[1],de=function(P){z(P)};return(0,u.useEffect)(function(){v.openModal||S.current.reload()},[v.openModal]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(B.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,l.jsx)(f.Z,{size:"small",scroll:{y:480,x:"auto"},bordered:!0,actionRef:S,dataSource:Q,search:{span:8,labelWidth:"auto"},rowSelection:{type:"checkbox"},columns:[{title:"\u7528\u6237",dataIndex:"username",width:200},{title:"\u90AE\u7BB1",dataIndex:"email",search:!1,width:200},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:"mobile",search:!1,width:200},{title:"\u767B\u5F55\u6B21\u6570",dataIndex:"login_count",search:!1,width:200},{title:"\u8D26\u53F7\u72B6\u6001",dataIndex:"status",width:200,render:function(P,p){return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(y.ZP.Group,{size:"small",value:p.status,onChange:function(){var k=m()(g()().mark(function I(w){var ae;return g()().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:(0,$.Spq)({id:p.id,status:w.target.value}).then(function(ce){var oe;(oe=S.current)===null||oe===void 0||oe.reload()}),(ae=S.current)===null||ae===void 0||ae.reload();case 2:case"end":return le.stop()}},I)}));return function(I){return k.apply(this,arguments)}}(),children:[(0,l.jsx)(y.ZP,{value:1,children:"\u4F7F\u7528\u4E2D"}),(0,l.jsx)(y.ZP,{value:2,children:"\u5DF2\u7981\u7528"})]})})},valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u4F7F\u7528\u4E2D"},2:{text:"\u5DF2\u7981\u7528"}}},{title:"\u6CE8\u518C\u65E5\u671F",dataIndex:"created_at",search:!1,width:200},{title:"\u64CD\u4F5C",key:"option",valueType:"option",render:function(P,p,k){return[(0,l.jsx)(J.ZP,{type:"link",onClick:function(){de(p),s({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1")]}}],rowKey:"id",pagination:{current:F,pageSize:ie,showSizeChanger:!0,total:R,pageSizeOptions:[9,18,27,99],onChange:function(P,p){h(P),ue(p)},onShowSizeChange:function(P,p){h(P),ue(p)}},request:m()(g()().mark(function U(){var P,p=arguments;return g()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return P=p.length>0&&p[0]!==void 0?p[0]:{},I.abrupt("return",(0,$.geC)({page:F,pagesize:ie,sort:"id",sortby:"desc",keyword:P.username,status:P.status,role:1}).then(function(w){c(w.data.customers),te(w.data.total)}));case 2:case"end":return I.stop()}},U)})),headerTitle:"\u7B80\u5386\u5217\u8868",toolBarRender:function(){return[(0,l.jsx)(J.ZP,{type:"primary",onClick:function(){T.Z.confirm({title:"\u8BF7\u9009\u62E9\u5BF9\u6279\u91CF\u6570\u636E\u8FDB\u884C\u4F55\u79CD\u64CD\u4F5C",content:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:"\u53C2\u6570\uFF1Aid, status"}),(0,l.jsxs)(y.ZP.Group,{size:"small",onChange:function(){var p=m()(g()().mark(function k(I){var w;return g()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:(w=S.current)===null||w===void 0||w.reload();case 1:case"end":return re.stop()}},k)}));return function(k){return p.apply(this,arguments)}}(),children:[(0,l.jsx)(y.ZP,{value:1,children:"\u5F00\u901A"}),(0,l.jsx)(y.ZP,{value:2,children:"\u7981\u7528"})]})]}),onOk:function(){},onCancel:function(){console.log("Cancel")},okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u6279\u91CF\u7BA1\u7406\u8D26\u53F7"})]}})})})},V=(0,b.connect)(function(e){var t=e.dictModel,s=e.openModel;return{dictModel:t,openModel:s}})(L),i=a(97269),o=a(5966),C=a(86250),x=a(42075),G=a(68872),H={label:"full_name",value:"id"},X=function(t){var s=t.dispatch,z=t.dictModel,D=t.openModel,v=t.id,S=(0,u.useRef)(),E=(0,u.useState)(!1),Z=d()(E,2),Q=Z[0],c=Z[1],ee=(0,u.useState)(null),N=d()(ee,2),R=N[0],te=N[1];return(0,u.useEffect)(function(){c(D.openModal)},[D.openModal]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(B.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,l.jsx)(T.Z,{open:Q,title:"\u7F16\u8F91\u6C42\u804C\u8005\u8D26\u53F7",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){s({type:"openModel/getOpenModal",payload:!1})},children:(0,l.jsxs)(i.A,{formRef:S,request:m()(g()().mark(function O(){var j;return g()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!v){h.next=5;break}return h.next=3,(0,$.laW)({id:v.id});case 3:return j=h.sent,h.abrupt("return",j.data);case 5:case"end":return h.stop()}},O)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(j,F){return(0,l.jsxs)(C.Z,{justify:"flex-end",children:[" ",(0,l.jsx)(x.Z,{children:F})]})},onReset:function(){te(null),c(!1)}},onFinish:function(){var O=m()(g()().mark(function j(F){var h;return g()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return console.log(F),F.id=v.id,W.next=4,(0,$.Spq)(F);case 4:h=W.sent,G.ZP.success("\u63D0\u4EA4\u6210\u529F"),s({type:"openModel/getOpenModal",payload:!1});case 7:case"end":return W.stop()}},j)}));return function(j){return O.apply(this,arguments)}}(),children:[(0,l.jsx)(o.Z,{name:"mobile",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"}),(0,l.jsx)(o.Z,{name:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"})]})})})})},M=(0,b.connect)(function(e){var t=e.dictModel,s=e.openModel;return{dictModel:t,openModel:s}})(X),n=function(t){var s=t.dispatch,z=t.openModel,D=(0,u.useState)(null),v=d()(D,2),S=v[0],E=v[1],Z=function(c){E(c)};return(0,u.useEffect)(function(){z.openModal||E(0)},[z.openModal]),(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(B.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,l.jsx)(V,{getId:Z}),(0,l.jsx)(M,{id:S})]})})},r=(0,b.connect)(function(e){var t=e.openModel;return{openModel:t}})(n)},86250:function(se,K,a){a.d(K,{Z:function(){return M}});var A=a(62435),d=a(93967),u=a.n(d),b=a(98423),B=a(98065),q=a(53124),g=a(92030),_=a(45503);const m=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],y=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],J=(n,r)=>{const e=r.wrap===!0?"wrap":r.wrap;return{[`${n}-wrap-${e}`]:e&&m.includes(e)}},T=(n,r)=>{const e={};return y.forEach(t=>{e[`${n}-align-${t}`]=r.align===t}),e[`${n}-align-stretch`]=!r.align&&!!r.vertical,e},$=(n,r)=>{const e={};return f.forEach(t=>{e[`${n}-justify-${t}`]=r.justify===t}),e};function l(n,r){return u()(Object.assign(Object.assign(Object.assign({},J(n,r)),T(n,r)),$(n,r)))}var ne=l;const L=n=>{const{componentCls:r}=n;return{[r]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},V=n=>{const{componentCls:r}=n;return{[r]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},i=n=>{const{componentCls:r}=n,e={};return m.forEach(t=>{e[`${r}-wrap-${t}`]={flexWrap:t}}),e},o=n=>{const{componentCls:r}=n,e={};return y.forEach(t=>{e[`${r}-align-${t}`]={alignItems:t}}),e},C=n=>{const{componentCls:r}=n,e={};return f.forEach(t=>{e[`${r}-justify-${t}`]={justifyContent:t}}),e},x=()=>({});var G=(0,g.I$)("Flex",n=>{const{paddingXS:r,padding:e,paddingLG:t}=n,s=(0,_.TS)(n,{flexGapSM:r,flexGap:e,flexGapLG:t});return[L(s),V(s),i(s),o(s),C(s)]},x,{resetStyle:!1}),H=function(n,r){var e={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&r.indexOf(t)<0&&(e[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(n);s<t.length;s++)r.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(n,t[s])&&(e[t[s]]=n[t[s]]);return e},M=A.forwardRef((n,r)=>{const{prefixCls:e,rootClassName:t,className:s,style:z,flex:D,gap:v,children:S,vertical:E=!1,component:Z="div"}=n,Q=H(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:c,direction:ee,getPrefixCls:N}=A.useContext(q.E_),R=N("flex",e),[te,O,j]=G(R),F=E!=null?E:c==null?void 0:c.vertical,h=u()(s,t,c==null?void 0:c.className,R,O,j,ne(R,n),{[`${R}-rtl`]:ee==="rtl",[`${R}-gap-${v}`]:(0,B.n)(v),[`${R}-vertical`]:F}),Y=Object.assign(Object.assign({},c==null?void 0:c.style),z);return D&&(Y.flex=D),v&&!(0,B.n)(v)&&(Y.gap=v),te(A.createElement(Z,Object.assign({ref:r,className:h,style:Y},(0,b.Z)(Q,["justify","wrap","align"])),S))})}}]);