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__Publichouse__index.4f84ef0a.async.js 13KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[559],{50335:function(oe,b,e){e.d(b,{Z:function(){return h}});var a=e(1413),s=e(45987),n=e(62435),d=e(66758),P=e(34176),F=e(86074),v=["proFieldProps","fieldProps"],R="date",x=n.forwardRef(function(t,z){var L=t.proFieldProps,A=t.fieldProps,K=(0,s.Z)(t,v),$=(0,n.useContext)(d.Z);return(0,F.jsx)(P.Z,(0,a.Z)({ref:z,valueType:R,fieldProps:(0,a.Z)({getPopupContainer:$.getPopupContainer},A),proFieldProps:L,filedConfig:{valueType:R,customLightMode:!0}},K))}),c=x,y=["proFieldProps","fieldProps"],N="dateMonth",m=n.forwardRef(function(t,z){var L=t.proFieldProps,A=t.fieldProps,K=(0,s.Z)(t,y),$=(0,n.useContext)(d.Z);return(0,F.jsx)(P.Z,(0,a.Z)({ref:z,valueType:N,fieldProps:(0,a.Z)({getPopupContainer:$.getPopupContainer},A),proFieldProps:L,filedConfig:{valueType:N,customLightMode:!0}},K))}),i=m,r=["fieldProps"],u="dateQuarter",M=n.forwardRef(function(t,z){var L=t.fieldProps,A=(0,s.Z)(t,r),K=(0,n.useContext)(d.Z);return(0,F.jsx)(P.Z,(0,a.Z)({ref:z,valueType:u,fieldProps:(0,a.Z)({getPopupContainer:K.getPopupContainer},L),filedConfig:{valueType:u,customLightMode:!0}},A))}),D=M,l=["proFieldProps","fieldProps"],o="dateWeek",f=n.forwardRef(function(t,z){var L=t.proFieldProps,A=t.fieldProps,K=(0,s.Z)(t,l),$=(0,n.useContext)(d.Z);return(0,F.jsx)(P.Z,(0,a.Z)({ref:z,valueType:o,fieldProps:(0,a.Z)({getPopupContainer:$.getPopupContainer},A),proFieldProps:L,filedConfig:{valueType:o,customLightMode:!0}},K))}),p=f,I=["proFieldProps","fieldProps"],j="dateYear",W=n.forwardRef(function(t,z){var L=t.proFieldProps,A=t.fieldProps,K=(0,s.Z)(t,I),$=(0,n.useContext)(d.Z);return(0,F.jsx)(P.Z,(0,a.Z)({ref:z,valueType:j,fieldProps:(0,a.Z)({getPopupContainer:$.getPopupContainer},A),proFieldProps:L,filedConfig:{valueType:j,customLightMode:!0}},K))}),C=W,g=c;g.Week=p,g.Month=i,g.Quarter=D,g.Year=C,g.displayName="ProFormComponent";var h=g},86615:function(oe,b,e){var a=e(1413),s=e(45987),n=e(22270),d=e(78045),P=e(62435),F=e(28614),v=e(34176),R=e(86074),x=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],c=P.forwardRef(function(i,r){var u=i.fieldProps,M=i.options,D=i.radioType,l=i.layout,o=i.proFieldProps,f=i.valueEnum,p=(0,s.Z)(i,x);return(0,R.jsx)(v.Z,(0,a.Z)((0,a.Z)({valueType:D==="button"?"radioButton":"radio",ref:r,valueEnum:(0,n.h)(f,void 0)},p),{},{fieldProps:(0,a.Z)({options:M,layout:l},u),proFieldProps:o,filedConfig:{customLightMode:!0}}))}),y=P.forwardRef(function(i,r){var u=i.fieldProps,M=i.children;return(0,R.jsx)(d.ZP,(0,a.Z)((0,a.Z)({},u),{},{ref:r,children:M}))}),N=(0,F.G)(y,{valuePropName:"checked",ignoreWidth:!0}),m=N;m.Group=c,m.Button=d.ZP.Button,m.displayName="ProFormComponent",b.Z=m},64317:function(oe,b,e){var a=e(1413),s=e(45987),n=e(22270),d=e(62435),P=e(66758),F=e(34176),v=e(86074),R=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],x=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],c=function(u,M){var D=u.fieldProps,l=u.children,o=u.params,f=u.proFieldProps,p=u.mode,I=u.valueEnum,j=u.request,W=u.showSearch,C=u.options,g=(0,s.Z)(u,R),h=(0,d.useContext)(P.Z);return(0,v.jsx)(F.Z,(0,a.Z)((0,a.Z)({valueEnum:(0,n.h)(I),request:j,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,a.Z)({options:C,mode:p,showSearch:W,getPopupContainer:h.getPopupContainer},D),ref:M,proFieldProps:f},g),{},{children:l}))},y=d.forwardRef(function(r,u){var M=r.fieldProps,D=r.children,l=r.params,o=r.proFieldProps,f=r.mode,p=r.valueEnum,I=r.request,j=r.options,W=(0,s.Z)(r,x),C=(0,a.Z)({options:j,mode:f||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},M),g=(0,d.useContext)(P.Z);return(0,v.jsx)(F.Z,(0,a.Z)((0,a.Z)({valueEnum:(0,n.h)(p),request:I,params:l,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,a.Z)({getPopupContainer:g.getPopupContainer},C),ref:u,proFieldProps:o},W),{},{children:D}))}),N=d.forwardRef(c),m=y,i=N;i.SearchSelect=m,i.displayName="ProFormComponent",b.Z=i},5966:function(oe,b,e){var a=e(97685),s=e(1413),n=e(45987),d=e(21770),P=e(23323),F=e(55241),v=e(97435),R=e(62435),x=e(34176),c=e(86074),y=["fieldProps","proFieldProps"],N=["fieldProps","proFieldProps"],m="text",i=function(l){var o=l.fieldProps,f=l.proFieldProps,p=(0,n.Z)(l,y);return(0,c.jsx)(x.Z,(0,s.Z)({valueType:m,fieldProps:o,filedConfig:{valueType:m},proFieldProps:f},p))},r=function(l){var o=(0,d.Z)(l.open||!1,{value:l.open,onChange:l.onOpenChange}),f=(0,a.Z)(o,2),p=f[0],I=f[1];return(0,c.jsx)(P.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(W){var C,g=W.getFieldValue(l.name||[]);return(0,c.jsx)(F.Z,(0,s.Z)((0,s.Z)({getPopupContainer:function(t){return t&&t.parentNode?t.parentNode:t},onOpenChange:function(t){return I(t)},content:(0,c.jsxs)("div",{style:{padding:"4px 0"},children:[(C=l.statusRender)===null||C===void 0?void 0:C.call(l,g),l.strengthText?(0,c.jsx)("div",{style:{marginTop:10},children:(0,c.jsx)("span",{children:l.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},l.popoverProps),{},{open:p,children:l.children}))}})},u=function(l){var o=l.fieldProps,f=l.proFieldProps,p=(0,n.Z)(l,N),I=(0,R.useState)(!1),j=(0,a.Z)(I,2),W=j[0],C=j[1];return o!=null&&o.statusRender&&p.name?(0,c.jsx)(r,{name:p.name,statusRender:o==null?void 0:o.statusRender,popoverProps:o==null?void 0:o.popoverProps,strengthText:o==null?void 0:o.strengthText,open:W,onOpenChange:C,children:(0,c.jsx)("div",{children:(0,c.jsx)(x.Z,(0,s.Z)({valueType:"password",fieldProps:(0,s.Z)((0,s.Z)({},(0,v.Z)(o,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(h){var t;o==null||(t=o.onBlur)===null||t===void 0||t.call(o,h),C(!1)},onClick:function(h){var t;o==null||(t=o.onClick)===null||t===void 0||t.call(o,h),C(!0)}}),proFieldProps:f,filedConfig:{valueType:m}},p))})}):(0,c.jsx)(x.Z,(0,s.Z)({valueType:"password",fieldProps:o,proFieldProps:f,filedConfig:{valueType:m}},p))},M=i;M.Password=u,M.displayName="ProFormComponent",b.Z=M},6740:function(oe,b,e){e.r(b),e.d(b,{default:function(){return $}});var a=e(5574),s=e.n(a),n=e(62435),d=e(59530),P=e(28459),F=e(15009),v=e.n(F),R=e(99289),x=e.n(R),c=e(95338),y=e(14726),N=e(86738),m=e(68872),i=e(39680),r=e(86074),u={label:"name",value:"id",children:"childs"},M=function(E){var U=E.dispatch,H=E.openModel,w=E.getId,O=(0,n.useRef)(),q=(0,n.useState)([]),J=s()(q,2),_=J[0],te=J[1],ee=(0,n.useState)(0),ne=s()(ee,2),ae=ne[0],de=ne[1],re=(0,n.useState)(1),k=s()(re,2),T=k[0],Z=k[1],S=(0,n.useState)(10),le=s()(S,2),se=le[0],B=le[1],pe=function(Q){w(Q)};return(0,n.useEffect)(function(){if(!H.openModal){var G;(G=O.current)===null||G===void 0||G.reload()}},[H.openModal]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(P.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,r.jsx)(c.Z,{size:"small",bordered:!0,scroll:{x:1300},actionRef:O,dataSource:_,columns:[{title:"ID",dataIndex:"id",width:100,search:!1},{title:"\u6237\u53E3\u7F16\u53F7",dataIndex:"title",search:!1},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u6027\u522B",dataIndex:"cover_img",search:!1},{title:"\u662F\u5426\u968F\u8FC1",dataIndex:"stick_top",search:!1},{title:"\u64CD\u4F5C",width:300,key:"option",valueType:"option",fixed:"right",render:function(Q,Y,ce){return[(0,r.jsx)(y.ZP,{type:"link",onClick:function(){pe(Y.id),U({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,r.jsx)(y.ZP,{type:"link",onClick:function(){},children:"\u8FC1\u5165"},"1"),(0,r.jsx)(y.ZP,{type:"link",onClick:function(){},children:"\u8FC1\u51FA"},"1"),(0,r.jsx)(N.Z,{title:"\u662F\u5426\u5220\u9664",onConfirm:function(ie){(0,i.Obp)({id:Y.id}).then(function(Pe){var ue;m.ZP.success("\u5220\u9664\u6210\u529F"),(ue=O.current)===null||ue===void 0||ue.reload()})},okText:"\u5220\u9664",cancelText:"\u53D6\u6D88",children:(0,r.jsx)(y.ZP,{danger:!0,type:"link",children:"\u5220\u9664"})})]}}],rowKey:"id",pagination:{current:T,pageSize:se,showSizeChanger:!0,total:ae,pageSizeOptions:[9,18,27,99],onChange:function(Q,Y){Z(Q),B(Y)},onShowSizeChange:function(Q,Y){Z(Q),B(Y)}},request:x()(v()().mark(function G(){var Q,Y=arguments;return v()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return Q=Y.length>0&&Y[0]!==void 0?Y[0]:{},X.abrupt("return",(0,i.KZk)({page:T,pagesize:se,sort:"id",sortby:"desc",keyword:Q.name}).then(function(ie){te(ie.data.talentsInfos),de(ie.data.total)}));case 2:case"end":return X.stop()}},G)})),headerTitle:"\u516C\u5171\u4EBA\u53E3\u4FE1\u606F",toolBarRender:function(){return[(0,r.jsx)(y.ZP,{type:"primary",onClick:function(){U({type:"openModel/getOpenModal",payload:!0})},children:"\u516C\u5171\u4EBA\u53E3\u4FE1\u606F"})]}})})})},D=(0,d.connect)(function(V){var E=V.openModel;return{openModel:E}})(M),l=e(97269),o=e(5966),f=e(86615),p=e(64317),I=e(50335),j=e(17788),W=e(86250),C=e(42075),g=e(71230),h=e(15746),t={label:"name",value:"id"},z={label:"name",value:"id",children:"childs"},L=function(E){var U=E.dispatch,H=E.dictModel,w=E.openModel,O=E.id,q=(0,n.useRef)(),J=(0,n.useState)(!1),_=s()(J,2),te=_[0],ee=_[1],ne=(0,n.useState)(null),ae=s()(ne,2),de=ae[0],re=ae[1];return(0,n.useEffect)(function(){ee(w.openModal)},[w.openModal]),(0,n.useEffect)(function(){U({type:"dictModel/getList",payload:{code:2006,type:"setEducationList"}})},[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(P.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,r.jsx)(j.Z,{open:te,title:O?"\u7F16\u8F91\u516C\u5171\u6237\u53E3":"\u6DFB\u52A0\u516C\u5171\u6237\u53E3",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){U({type:"openModel/getOpenModal",payload:!1})},children:(0,r.jsx)(l.A,{formRef:q,request:x()(v()().mark(function k(){var T;return v()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(!O){S.next=9;break}return S.next=3,(0,i.XOs)({id:O});case 3:return T=S.sent,T.data.section_arr=[T.data.section_name],re(T.data),S.abrupt("return",T.data);case 9:return re(null),S.abrupt("return",{code:"",company_name:"",household_num:1,name:"",gender:"",school_or_institution:"",major:"",id_number:"",mobile:"",do_time:null,remark:"",status:1});case 11:case"end":return S.stop()}},k)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(T,Z){return(0,r.jsxs)(W.Z,{justify:"flex-end",children:[" ",(0,r.jsx)(C.Z,{children:Z})]})},onReset:function(){re(null),U({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var k=x()(v()().mark(function T(Z){var S,le;return v()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!O){B.next=9;break}return Z.id=O,B.next=4,(0,i.thO)(Z);case 4:S=B.sent,m.ZP.success("\u63D0\u4EA4\u6210\u529F"),U({type:"openModel/getOpenModal",payload:!1}),B.next=14;break;case 9:return B.next=11,(0,i.p9x)(Z);case 11:le=B.sent,m.ZP.success("\u63D0\u4EA4\u6210\u529F"),U({type:"openModel/getOpenModal",payload:!1});case 14:case"end":return B.stop()}},T)}));return function(T){return k.apply(this,arguments)}}(),children:(0,r.jsxs)(g.Z,{gutter:[16,16],children:[(0,r.jsx)(h.Z,{span:24,children:(0,r.jsx)(o.Z,{name:"code",label:"\u6237\u53E3\u5361\u7F16\u53F7",placeholder:"\u8BF7\u8F93\u5165\u6237\u53E3\u5361\u7F16\u53F7",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6237\u53E3\u5361\u7F16\u53F7"}]})}),(0,r.jsx)(h.Z,{span:16,children:(0,r.jsx)(o.Z,{name:"name",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]})}),(0,r.jsx)(h.Z,{span:4,children:(0,r.jsx)(f.Z.Group,{name:"gender",label:"\u6027\u522B",request:x()(v()().mark(function k(){return v()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.abrupt("return",[{label:"\u7537",value:"\u7537"},{label:"\u5973",value:"\u5973"}]);case 1:case"end":return Z.stop()}},k)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]})}),(0,r.jsx)(h.Z,{span:14,children:(0,r.jsx)(p.Z,{name:"education",label:"\u9009\u62E9\u4E3B\u529E\u4EBA\u5458",fieldProps:{width:"100%",fieldNames:t},placeholder:"\u8BF7\u9009\u62E9\u4E3B\u529E\u4EBA\u5458",options:H.educationList})}),(0,r.jsx)(h.Z,{span:6,children:(0,r.jsx)(I.Z,{name:"do_time",label:"\u5165\u6237\u65F6\u95F4",placeholder:"\u8BF7\u9009\u62E9\u5165\u6237\u65F6\u95F4",width:"lg",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5165\u6237\u65F6\u95F4"}]})}),(0,r.jsx)(h.Z,{span:8,children:(0,r.jsx)(p.Z,{name:"education",label:"\u5B66\u5386",fieldProps:{fieldNames:t},placeholder:"\u8BF7\u9009\u62E9\u5B66\u5386",options:H.educationList,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u5386"}]})}),(0,r.jsx)(h.Z,{span:8,children:(0,r.jsx)(o.Z,{name:"mobile",label:"\u8054\u7CFB\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"}]})})]})})})})})},A=(0,d.connect)(function(V){var E=V.dictModel,U=V.openModel;return{dictModel:E,openModel:U}})(L),K=function(E){var U=E.dispatch,H=E.openModel,w=(0,n.useState)(0),O=s()(w,2),q=O[0],J=O[1],_=function(ee){J(ee)};return(0,n.useEffect)(function(){H.openModal||J(0)},[H.openModal]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(P.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,r.jsx)(D,{getId:_}),(0,r.jsx)(A,{id:q})]})})},$=(0,d.connect)(function(V){var E=V.openModel;return{openModel:E}})(K)}}]);