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.71f44a40.async.js 7.1KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[982],{5966:function(ue,b,e){var w=e(97685),l=e(1413),s=e(45987),B=e(21770),A=e(23323),V=e(55241),p=e(97435),H=e(62435),C=e(34176),u=e(86074),I=["fieldProps","proFieldProps"],Q=["fieldProps","proFieldProps"],f="text",n=function(r){var t=r.fieldProps,h=r.proFieldProps,v=(0,s.Z)(r,I);return(0,u.jsx)(C.Z,(0,l.Z)({valueType:f,fieldProps:t,filedConfig:{valueType:f},proFieldProps:h},v))},ae=function(r){var t=(0,B.Z)(r.open||!1,{value:r.open,onChange:r.onOpenChange}),h=(0,w.Z)(t,2),v=h[0],W=h[1];return(0,u.jsx)(A.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(L){var P,K=L.getFieldValue(r.name||[]);return(0,u.jsx)(V.Z,(0,l.Z)((0,l.Z)({getPopupContainer:function(a){return a&&a.parentNode?a.parentNode:a},onOpenChange:function(a){return W(a)},content:(0,u.jsxs)("div",{style:{padding:"4px 0"},children:[(P=r.statusRender)===null||P===void 0?void 0:P.call(r,K),r.strengthText?(0,u.jsx)("div",{style:{marginTop:10},children:(0,u.jsx)("span",{children:r.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},r.popoverProps),{},{open:v,children:r.children}))}})},X=function(r){var t=r.fieldProps,h=r.proFieldProps,v=(0,s.Z)(r,Q),W=(0,H.useState)(!1),N=(0,w.Z)(W,2),L=N[0],P=N[1];return t!=null&&t.statusRender&&v.name?(0,u.jsx)(ae,{name:v.name,statusRender:t==null?void 0:t.statusRender,popoverProps:t==null?void 0:t.popoverProps,strengthText:t==null?void 0:t.strengthText,open:L,onOpenChange:P,children:(0,u.jsx)("div",{children:(0,u.jsx)(C.Z,(0,l.Z)({valueType:"password",fieldProps:(0,l.Z)((0,l.Z)({},(0,p.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(F){var a;t==null||(a=t.onBlur)===null||a===void 0||a.call(t,F),P(!1)},onClick:function(F){var a;t==null||(a=t.onClick)===null||a===void 0||a.call(t,F),P(!0)}}),proFieldProps:h,filedConfig:{valueType:f}},v))})}):(0,u.jsx)(C.Z,(0,l.Z)({valueType:"password",fieldProps:t,proFieldProps:h,filedConfig:{valueType:f}},v))},D=n;D.Password=X,D.displayName="ProFormComponent",b.Z=D},1273:function(ue,b,e){e.r(b),e.d(b,{default:function(){return F}});var w=e(5574),l=e.n(w),s=e(62435),B=e(59530),A=e(28459),V=e(15009),p=e.n(V),H=e(99289),C=e.n(H),u=e(95338),I=e(78045),Q=e(14726),f=e(39680),n=e(86074),ae={label:"name",value:"id"},X=function(o){var g=o.dispatch,U=o.getId,z=o.dictModel,m=o.openModel,S=(0,s.useRef)(),Z=(0,s.useState)([]),j=l()(Z,2),G=j[0],O=j[1],Y=(0,s.useState)(0),$=l()(Y,2),re=$[0],q=$[1],T=(0,s.useState)(1),M=l()(T,2),x=M[0],d=M[1],oe=(0,s.useState)(10),E=l()(oe,2),le=E[0],se=E[1],de=function(c){U(c)};return(0,s.useEffect)(function(){m.openModal||S.current.reload()},[m.openModal]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(A.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,n.jsx)(u.Z,{size:"small",scroll:{y:480,x:"auto"},bordered:!0,actionRef:S,dataSource:G,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(c,i){return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(I.ZP.Group,{size:"small",value:i.status,onChange:function(){var _=C()(p()().mark(function y(k){var ee;return p()().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:(0,f.Spq)({id:i.id,status:k.target.value}).then(function(ce){var ne;(ne=S.current)===null||ne===void 0||ne.reload()}),(ee=S.current)===null||ee===void 0||ee.reload();case 2:case"end":return te.stop()}},y)}));return function(y){return _.apply(this,arguments)}}(),children:[(0,n.jsx)(I.ZP,{value:1,children:"\u4F7F\u7528\u4E2D"}),(0,n.jsx)(I.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(c,i,_){return[(0,n.jsx)(Q.ZP,{type:"link",onClick:function(){de(i),g({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1")]}}],rowKey:"id",pagination:{current:x,pageSize:le,showSizeChanger:!0,total:re,pageSizeOptions:[9,18,27,99],onChange:function(c,i){d(c),se(i)},onShowSizeChange:function(c,i){d(c),se(i)}},request:C()(p()().mark(function R(){var c,i=arguments;return p()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=i.length>0&&i[0]!==void 0?i[0]:{},y.abrupt("return",(0,f.geC)({page:x,pagesize:le,sort:"id",sortby:"desc",keyword:c.username,status:c.status,role:1}).then(function(k){O(k.data.customers),q(k.data.total)}));case 2:case"end":return y.stop()}},R)})),headerTitle:"\u7B80\u5386\u5217\u8868"})})})},D=(0,B.connect)(function(a){var o=a.dictModel,g=a.openModel;return{dictModel:o,openModel:g}})(X),J=e(97269),r=e(5966),t=e(17788),h=e(86250),v=e(42075),W=e(68872),N={label:"full_name",value:"id"},L=function(o){var g=o.dispatch,U=o.dictModel,z=o.openModel,m=o.id,S=(0,s.useRef)(),Z=(0,s.useState)(!1),j=l()(Z,2),G=j[0],O=j[1],Y=(0,s.useState)(null),$=l()(Y,2),re=$[0],q=$[1];return(0,s.useEffect)(function(){O(z.openModal)},[z.openModal]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(A.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,n.jsx)(t.Z,{open:G,title:"\u7F16\u8F91\u6C42\u804C\u8005\u8D26\u53F7",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){g({type:"openModel/getOpenModal",payload:!1})},children:(0,n.jsxs)(J.A,{formRef:S,request:C()(p()().mark(function T(){var M;return p()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!m){d.next=5;break}return d.next=3,(0,f.laW)({id:m.id});case 3:return M=d.sent,d.abrupt("return",M.data);case 5:case"end":return d.stop()}},T)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(M,x){return(0,n.jsxs)(h.Z,{justify:"flex-end",children:[" ",(0,n.jsx)(v.Z,{children:x})]})},onReset:function(){q(null),O(!1)}},onFinish:function(){var T=C()(p()().mark(function M(x){var d;return p()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return console.log(x),x.id=m.id,E.next=4,(0,f.Spq)(x);case 4:d=E.sent,W.ZP.success("\u63D0\u4EA4\u6210\u529F"),g({type:"openModel/getOpenModal",payload:!1});case 7:case"end":return E.stop()}},M)}));return function(M){return T.apply(this,arguments)}}(),children:[(0,n.jsx)(r.Z,{name:"mobile",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"}),(0,n.jsx)(r.Z,{name:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"})]})})})})},P=(0,B.connect)(function(a){var o=a.dictModel,g=a.openModel;return{dictModel:o,openModel:g}})(L),K=function(o){var g=o.dispatch,U=o.openModel,z=(0,s.useState)(null),m=l()(z,2),S=m[0],Z=m[1],j=function(O){Z(O)};return(0,s.useEffect)(function(){U.openModal||Z(0)},[U.openModal]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(A.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,n.jsx)(D,{getId:j}),(0,n.jsx)(P,{id:S})]})})},F=(0,B.connect)(function(a){var o=a.openModel;return{openModel:o}})(K)}}]);