您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

p__Fair__List__index.f5374228.async.js 13KB

3 个月前
1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[908],{67562:function(ue,N,t){var te=t(5574),i=t.n(te),a=t(71167),T=t.n(a),D=t(40190),$=t(62435),f=t(86492),S=t.n(f),M=t(86074),W=function(C){var c=C.defaultValue,e=C.placeholder,ae=C.onChange,ne=(0,$.useState)(c&&S().decode(c)),O=i()(ne,2),I=O[0],V=O[1],le=function(se){V(se),ae(se)};return(0,$.useEffect)(function(){if(c){var re=c.replace(/<[^>]*>/g,"");le(re?c:"")}},[c]),(0,M.jsx)("div",{children:(0,M.jsx)(T(),{bounds:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]]},value:I,onChange:le,theme:"snow",placeholder:e})})};N.Z=W},67119:function(ue,N,t){var te=t(59530),i=t(55375),a=t(68872),T=t(32443),D=t(86074),$=function(S){var M=S.onUploadComplete,W=S.uploadTxt,K=S.image_type,C=S.form_name,c=S.image_length,e=S.multiple,ae=function(O){M&&M(O)};return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(T.Z,{label:W,name:C,icon:null,title:W,fieldProps:{maxCount:c,multiple:e,fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(O){var I=new FormData;I.append("image",O.file),console.log(I),(0,te.request)(i.FH+"/common/image/upload?imgtype="+K,{method:"post",data:I,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(V){ae(V.data.filename)}).catch(function(V){console.log(V),a.ZP.error("\u4E0A\u4F20\u5931\u8D25")})}}})})};N.Z=$},49095:function(ue,N,t){t.r(N),t.d(N,{default:function(){return Ze}});var te=t(5574),i=t.n(te),a=t(62435),T=t(59530),D=t(28459),$=t(15009),f=t.n($),S=t(99289),M=t.n(S),W=t(67211),K=t(66309),C=t(14726),c=t(39680),e=t(86074),ae=function(n){var p=n.dispatch,H=n.getId,E=n.openModel,g=(0,a.useRef)(),P=(0,a.useState)([]),B=i()(P,2),R=B[0],Y=B[1],A=(0,a.useState)(0),X=i()(A,2),w=X[0],Z=X[1],oe=(0,a.useState)(1),G=i()(oe,2),L=G[0],k=G[1],J=(0,a.useState)(10),Q=i()(J,2),U=Q[0],_=Q[1],q=function(d){H(d)};return(0,a.useEffect)(function(){E.openModal||g.current.reload()},[E.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(D.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,e.jsx)(W.Z,{size:"small",bordered:!0,scroll:{x:1300},actionRef:g,dataSource:R,columns:[{title:"ID",dataIndex:"id",width:80},{title:"\u62DB\u8058\u4F1A\u540D\u79F0",dataIndex:"title",width:400},{title:"\u5730\u70B9",dataIndex:"address",width:200,search:!1},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_date",width:200,search:!1},{title:"\u5F00\u901A\u72B6\u6001",dataIndex:"status",width:100,render:function(d,r){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(e.Fragment,{children:r.status===1?(0,e.jsx)(K.Z,{color:"green",children:"\u8FDB\u884C\u4E2D"}):(0,e.jsx)(K.Z,{color:"red",children:"\u5DF2\u7ED3\u675F"})})})},valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u8FDB\u884C\u4E2D"},2:{text:"\u5DF2\u7ED3\u675F"}}},{title:"\u53C2\u4E0E\u7684\u4F01\u4E1A\u603B\u6570",dataIndex:"join_count",width:120,search:!1},{title:"\u5DF2\u5BA1\u6838\u4F01\u4E1A\u603B\u6570",dataIndex:"audit_count",width:120,search:!1},{title:"\u53C2\u4E0E\u804C\u4F4D\u6570",dataIndex:"job_count",width:100,search:!1},{title:"\u9700\u6C42\u4EBA\u6570",dataIndex:"recruiting_num",width:100,search:!1},{title:"\u64CD\u4F5C",width:120,key:"option",valueType:"option",render:function(d,r,ee){return[(0,e.jsx)(C.ZP,{type:"link",onClick:function(){q(r),p({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,e.jsx)(C.ZP,{type:"link",onClick:function(){q(r),p({type:"openModel/getOpenFairDetailModal",payload:!0})},children:"\u8BE6\u60C5"},"2")]}}],rowKey:"id",pagination:{current:L,pageSize:U,showSizeChanger:!0,total:w,pageSizeOptions:[9,18,27,99],onChange:function(d,r){k(d),_(r)},onShowSizeChange:function(d,r){k(d),_(r)}},request:M()(f()().mark(function j(){var d,r=arguments;return f()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return d=r.length>0&&r[0]!==void 0?r[0]:{},F.abrupt("return",(0,c.Wit)({page:L,pagesize:U,sort:"id",sortby:"desc",keyword:d.title,status:d.status?d.status:0}).then(function(m){Y(m.data.recruitments),Z(m.data.total)}));case 2:case"end":return F.stop()}},j)})),toolBarRender:function(){return[(0,e.jsx)(C.ZP,{type:"primary",onClick:function(){p({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u62DB\u8058\u4F1A"})]},headerTitle:"\u62DB\u8058\u4F1A\u5217\u8868"})})})},ne=(0,T.connect)(function(v){var n=v.dictModel,p=v.openModel;return{dictModel:n,openModel:p}})(ae),O=t(97269),I=t(5966),V=t(19109),le=t(97462),re=t(78844),se=t(21134),ce=t(17788),fe=t(86250),ge=t(42075),he=t(68872),ve=t(23323),xe=t(71230),b=t(15746),ie=t(98163),Me=t(67562),pe=t(67119),de=t(55375),je=function(n){var p=n.dispatch,H=n.dictModel,E=n.openModel,g=n.id,P=(0,a.useRef)(),B=(0,a.useState)(!1),R=i()(B,2),Y=R[0],A=R[1],X=(0,a.useState)(null),w=i()(X,2),Z=w[0],oe=w[1],G=(0,a.useState)(""),L=i()(G,2),k=L[0],J=L[1],Q=(0,a.useState)(!1),U=i()(Q,2),_=U[0],q=U[1],j=(0,a.useState)(""),d=i()(j,2),r=d[0],ee=d[1],F=function(l){ee(l)};return(0,a.useEffect)(function(){A(E.openModal)},[E.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(D.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(ce.Z,{open:Y,title:g?"\u7F16\u8F91\u62DB\u8058\u4F1A":"\u6DFB\u52A0\u62DB\u8058\u4F1A",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){p({type:"openModel/getOpenModal",payload:!1})},children:(0,e.jsxs)(O.A,{formRef:P,request:M()(f()().mark(function m(){var l;return f()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!g){s.next=8;break}return s.next=3,(0,c.RNW)({id:g.id});case 3:return l=s.sent,l.data.dateRange=[l.data.open_date,l.data.close_date?l.data.close_date:null],s.abrupt("return",l.data);case 8:return ee(""),s.abrupt("return",{title:"",content:"",open_date:"",close_date:"",address:"",status:0,photo:"",dateRange:[]});case 10:case"end":return s.stop()}},m)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(l,o){return(0,e.jsxs)(fe.Z,{justify:"flex-end",children:[" ",(0,e.jsx)(ge.Z,{children:o})]})},onReset:function(){oe(null),A(!1)}},onFinish:function(){var m=M()(f()().mark(function l(o){var s,x;return f()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(o.open_date=o.dateRange[0],o.close_date=o.dateRange[1]?o.dateRange[1]:"",o.photo=r||"",delete o.dateRange,!g){u.next=13;break}return o.id=g.id,u.next=8,(0,c.Ci2)(o);case 8:s=u.sent,he.ZP.success("\u63D0\u4EA4\u6210\u529F"),p({type:"openModel/getOpenModal",payload:!1}),u.next=18;break;case 13:return u.next=15,(0,c.j2j)(o);case 15:x=u.sent,he.ZP.success("\u63D0\u4EA4\u6210\u529F"),p({type:"openModel/getOpenModal",payload:!1});case 18:case"end":return u.stop()}},l)}));return function(l){return m.apply(this,arguments)}}(),children:[(0,e.jsx)(I.Z,{name:"title",label:"\u62DB\u8058\u4F1A\u4E3B\u9898",placeholder:"\u8BF7\u8F93\u5165\u62DB\u8058\u4F1A\u4E3B\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u62DB\u8058\u4F1A\u4E3B\u9898"}]}),(0,e.jsx)(ve.Z.Item,{name:"content",label:"\u62DB\u8058\u4F1A\u5185\u5BB9",rules:[{required:!0}],children:(0,e.jsx)(V.i$,{children:function(){return(0,e.jsx)(le.Z,{name:["content"],children:function(o,s){var x=o.content;return(0,e.jsx)(Me.Z,{placeholder:"\u8BF7\u8F93\u5165\u62DB\u8058\u4F1A\u5185\u5BB9",defaultValue:x,onChange:function(u){J(u),s.formRef.current.setFieldsValue({content:u})}})}})}})}),(0,e.jsx)(re.Z,{name:"dateRange",label:"\u9009\u62E9\u6709\u6548\u7684\u65E5\u671F\u65F6\u95F4\u8303\u56F4",fieldProps:{format:"YYYY-MM-DD HH:mm:ss"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6709\u6548\u7684\u65F6\u95F4\u8303\u56F4"}]}),(0,e.jsxs)(xe.Z,{gutter:[16,16],children:[Z?(0,e.jsx)(b.Z,{span:6,children:(0,e.jsx)(pe.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u4E0A\u4F20\u62DB\u8058\u4F1A\u7167\u7247",image_type:3,onUploadComplete:F})}):(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(b.Z,{span:6,children:(0,e.jsx)(pe.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u4E0A\u4F20\u62DB\u8058\u4F1A\u7167\u7247",image_type:3,onUploadComplete:F})})}),Z?(0,e.jsx)(b.Z,{span:6,children:r?(0,e.jsx)(ie.Z,{src:"".concat(de.VO).concat(r),style:{marginTop:"32px",width:"100px",height:"100px"}}):(0,e.jsx)(ie.Z,{src:"".concat(de.VO).concat(Z==null?void 0:Z.photo),style:{marginTop:"32px",width:"100px",height:"100px"}})}):(0,e.jsx)(e.Fragment,{children:r?(0,e.jsxs)(b.Z,{span:6,children:[" ",(0,e.jsx)(ie.Z,{src:"".concat(de.VO).concat(r),style:{marginTop:"32px",width:"100px",height:"100px"}})," "]}):""}),(0,e.jsx)(b.Z,{span:24,children:(0,e.jsx)(I.Z,{label:"\u8BE6\u7EC6\u5730\u5740",name:"address",placeholder:"\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"}]})}),(0,e.jsx)(b.Z,{span:24,children:(0,e.jsx)(se.Z,{name:"status",label:"\u804C\u4F4D\u72B6\u6001",request:M()(f()().mark(function m(){return f()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",[{label:"\u5F00\u542F",value:1},{label:"\u7ED3\u675F",value:2}]);case 1:case"end":return o.stop()}},m)}))})})]})]})})})})},Fe=(0,T.connect)(function(v){var n=v.dictModel,p=v.openModel;return{dictModel:n,openModel:p}})(je),Se=t(92398),me=t(22015),Ce=t(34041),Ee=t(86492),ye=t.n(Ee),De={label:"name",value:"id"},Pe=function(n){var p=n.dispatch,H=n.dictModel,E=n.openModel,g=n.id,P=(0,a.useRef)(),B=(0,a.useState)([]),R=i()(B,2),Y=R[0],A=R[1],X=(0,a.useState)(0),w=i()(X,2),Z=w[0],oe=w[1],G=(0,a.useState)(1),L=i()(G,2),k=L[0],J=L[1],Q=(0,a.useState)(10),U=i()(Q,2),_=U[0],q=U[1],j=(0,a.useState)(!1),d=i()(j,2),r=d[0],ee=d[1],F=(0,a.useState)(null),m=i()(F,2),l=m[0],o=m[1];return(0,a.useEffect)(function(){ee(E.openFairDetailModal)},[E.openFairDetailModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(D.ZP,{theme:{},children:(0,e.jsx)(ce.Z,{open:r,centered:!0,footer:null,okText:"\u62DB\u8058\u4F1A\u8BE6\u60C5",maskClosable:!1,destroyOnClose:!0,width:1e3,onCancel:function(){p({type:"openModel/getOpenFairDetailModal",payload:!1})},afterOpenChange:function(){var s=M()(f()().mark(function x(h){var u;return f()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!h){y.next=5;break}return y.next=3,(0,c.RNW)({id:g.id});case 3:u=y.sent,o(u.data);case 5:case"end":return y.stop()}},x)}));return function(x){return s.apply(this,arguments)}}(),children:l&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Se.Z,{destroyInactiveTabPane:!0,type:"card",items:[{label:"\u62DB\u8058\u4F1A\u8BE6\u60C5",key:"1",children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(me.Z.Title,{level:3,children:l.title}),(0,e.jsxs)(me.Z.Paragraph,{children:[" ",l.status===1?(0,e.jsx)(K.Z,{color:"green",children:"\u8FDB\u884C\u4E2D"}):(0,e.jsx)(K.Z,{color:"red",children:"\u5DF2\u7ED3\u675F"})," \u6D3B\u52A8\u65F6\u95F4\uFF1A",l.open_date,"-",l.close_date?l.close_date:"\u5F85\u5B9A"]}),(0,e.jsx)("div",{className:"ql-editor",dangerouslySetInnerHTML:{__html:ye().decode(l.content)}})]})},{label:"\u53C2\u4E0E\u4F01\u4E1A",key:"2",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(W.Z,{search:!1,size:"small",bordered:!0,actionRef:P,dataSource:Y,columns:[{title:"\u4F01\u4E1A\u540D\u79F0",dataIndex:"company_name",fixed:"left",search:!1},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"status",search:!1,render:function(x,h){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Ce.Z,{value:h.status===0?"\u5F85\u5BA1":h.status===2?"\u5BA1\u6838\u901A\u8FC7":"\u5BA1\u6838\u4E0D\u901A\u8FC7",options:[{name:"\u901A\u8FC7",id:2},{name:"\u4E0D\u901A\u8FC7",id:3}],fieldNames:De,onChange:function(z){(0,c.uTX)({id:h.id,recruitment_id:g.id,company_id:h.company_id,status:z}).then(function(y){P.current.reload()})}})})})}},{title:"\u64CD\u4F5C",key:"option",valueType:"option",fixed:"right",render:function(x,h,u){return[(0,e.jsx)(C.ZP,{type:"link",onClick:function(){},children:"\u79FB\u9664\u4F01\u4E1A"},"1")]}}],rowKey:"id",pagination:{current:k,pageSize:_,showSizeChanger:!0,total:Z,pageSizeOptions:[9,18,27,99],onChange:function(x,h){J(x),q(h)},onShowSizeChange:function(x,h){J(x),q(h)}},request:M()(f()().mark(function s(){var x,h=arguments;return f()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return x=h.length>0&&h[0]!==void 0?h[0]:{},z.abrupt("return",(0,c.jpX)({page:k,pagesize:_,sort:"id",sortby:"desc",recruitment_id:g.id}).then(function(y){A(y.data.recruitmentbooks),oe(y.data.total)}));case 2:case"end":return z.stop()}},s)}))})})}]})})})})})},Be=(0,T.connect)(function(v){var n=v.dictModel,p=v.openModel;return{dictModel:n,openModel:p}})(Pe),Re=function(n){var p=n.dispatch,H=n.openModel,E=(0,a.useState)(0),g=i()(E,2),P=g[0],B=g[1],R=function(A){B(A)};return(0,a.useEffect)(function(){H.openModal||B(0)},[H.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(D.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,e.jsx)(ne,{getId:R}),(0,e.jsx)(Fe,{id:P}),(0,e.jsx)(Be,{id:P})]})})},Ze=(0,T.connect)(function(v){var n=v.openModel;return{openModel:n}})(Re)}}]);