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

p__Fair__List__index.a1da20f9.async.js 16KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[908],{67562:function(ve,N,t){var le=t(5574),h=t.n(le),o=t(71167),T=t.n(o),A=t(40190),V=t(62435),d=t(86492),re=t.n(d),j=t(86074),S=function(_){var p=_.defaultValue,x=_.placeholder,G=_.onChange,P=(0,V.useState)(p&&re().decode(p)),Z=h()(P,2),b=Z[0],g=Z[1],D=function(K){g(K),G(K)};return(0,V.useEffect)(function(){if(p){var E=p.replace(/<[^>]*>/g,"");D(E?p:"")}},[p]),(0,j.jsx)("div",{children:(0,j.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:b,onChange:D,theme:"snow",placeholder:x})})};N.Z=S},67119:function(ve,N,t){var le=t(5574),h=t.n(le),o=t(62435),T=t(59530),A=t(55375),V=t(42075),d=t(68872),re=t(98163),j=t(32443),S=t(86074),oe=function(p){var x=p.onUploadComplete,G=p.uploadTxt,P=p.image_type,Z=p.form_name,b=p.image_length,g=p.multiple,D=p.imageUrl,E=function(H){H&&x(H)},K=(0,o.useState)(D),e=h()(K,2),ce=e[0],he=e[1];return(0,o.useEffect)(function(){he(D)},[D]),(0,S.jsx)(S.Fragment,{children:(0,S.jsxs)(V.Z,{children:[(0,S.jsx)(j.Z,{label:G,name:Z,icon:null,title:G,fieldProps:{maxCount:b,multiple:g,fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(H){var ue=new FormData;ue.append("image",H.file),console.log(ue),(0,T.request)(A.FH+"/common/image/upload?imgtype="+P,{method:"post",data:ue,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(Y){he(Y.data.filename),E(Y.data.filename)}).catch(function(Y){console.log(Y),d.ZP.error("\u4E0A\u4F20\u5931\u8D25")})}}}),ce&&(0,S.jsx)(re.Z,{src:"".concat(A.VO).concat(ce),width:102,height:102,style:{borderRadius:8}})]})})};N.Z=oe},49095:function(ve,N,t){t.r(N),t.d(N,{default:function(){return Ue}});var le=t(5574),h=t.n(le),o=t(62435),T=t(59530),A=t(28459),V=t(15009),d=t.n(V),re=t(99289),j=t.n(re),S=t(95338),oe=t(97269),_=t(42075),p=t(26412),x=t(78045),G=t(98163),P=t(14726),Z=t(17788),b=t(71230),g=t(15746),D=t(55375),E=t(39680),K=t(67119),e=t(86074),ce=function(s){var v=s.dispatch,X=s.getId,y=s.openModel,m=(0,o.useRef)(),R=(0,o.useState)([]),B=h()(R,2),O=B[0],J=B[1],I=(0,o.useState)(0),Q=h()(I,2),k=Q[0],me=Q[1],se=(0,o.useState)(1),q=h()(se,2),U=q[0],ee=q[1],te=(0,o.useState)(10),ne=h()(te,2),L=ne[0],ae=ne[1],$=function(n){X(n)};(0,o.useEffect)(function(){if(!y.openModal){var a;(a=m.current)===null||a===void 0||a.reload()}},[y.openModal]);var ie=(0,o.useState)(""),W=h()(ie,2),z=W[0],w=W[1],de=(0,o.useRef)(""),M=function(n){w(n)};(0,o.useEffect)(function(){de.current=z},[z]);var i=function(n){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(_.Z,{direction:"vertical",style:{width:"100%"},children:(0,e.jsxs)(p.Z,{title:"\u53C2\u4F1A\u4FE1\u606F",bordered:!0,column:3,contentStyle:{fontWeight:"bold"},labelStyle:{width:180},children:[(0,e.jsx)(p.Z.Item,{label:"\u53C2\u4E0E\u7684\u4F01\u4E1A\u603B\u6570",children:n.join_count}),(0,e.jsx)(p.Z.Item,{label:"\u5DF2\u5BA1\u6838\u4F01\u4E1A\u603B\u6570",children:n.job_count}),(0,e.jsx)(p.Z.Item,{label:"\u53C2\u4E0E\u804C\u4F4D\u6570",children:n.job_count}),(0,e.jsx)(p.Z.Item,{label:"\u9700\u6C42\u4EBA\u6570",children:n.recruiting_num})]})})})};return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(A.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,e.jsx)(S.Z,{scroll:{y:480,x:"auto"},bordered:!0,actionRef:m,dataSource:O,search:{span:8,labelWidth:"auto"},rowSelection:{type:"checkbox"},expandable:{expandedRowRender:i},columns:[{title:"ID",dataIndex:"id",width:200},{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\u542F\u72B6\u6001",dataIndex:"status",width:300,render:function(n,l){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(x.ZP.Group,{size:"small",value:l.status,onChange:function(){var u=j()(d()().mark(function r(c){var f;return d()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:(f=m.current)===null||f===void 0||f.reload();case 1:case"end":return fe.stop()}},r)}));return function(r){return u.apply(this,arguments)}}(),children:[(0,e.jsx)(x.ZP,{value:1,children:"\u5DF2\u5F00\u542F"}),(0,e.jsx)(x.ZP,{value:2,children:"\u5DF2\u5173\u95ED"})]})})},valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u5DF2\u5F00\u542F"},2:{text:"\u5DF2\u5173\u95ED"}}},{title:"\u5C01\u9762\u56FE",dataIndex:"photo",width:200,search:!1,render:function(n,l){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(G.Z,{src:"".concat(D.VO).concat(l.photo),width:60,height:60})})}},{title:"\u64CD\u4F5C",key:"option",valueType:"option",render:function(n,l,u){return[(0,e.jsx)(P.ZP,{type:"link",onClick:function(){$(l),v({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,e.jsx)(P.ZP,{size:"small",type:"link",onClick:function(){Z.Z.confirm({title:"\u66F4\u6362\u56FE\u7247",content:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(oe.A,{submitter:{render:!1},children:(0,e.jsx)(K.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u66F4\u6362\u56FE\u7247",image_type:3,imageUrl:l.photo,onUploadComplete:M})})}),onOk:function(){return j()(d()().mark(function f(){var C;return d()().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:(C=m.current)===null||C===void 0||C.reload();case 1:case"end":return ge.stop()}},f)}))()},onCancel:function(){console.log("Cancel")},okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u66F4\u6362\u56FE\u7247"}),(0,e.jsx)(P.ZP,{type:"link",onClick:function(){$(l),v({type:"openModel/getOpenFairDetailModal",payload:!0})},children:"\u8BE6\u60C5"},"2"),(0,e.jsx)(P.ZP,{type:"link",onClick:function(){$(l),v({type:"openModel/getOpenFairDetailModal",payload:!0})},children:"\u53C2\u4E0E\u4F01\u4E1A"},"3")]}}],rowKey:"id",pagination:{current:U,pageSize:L,showSizeChanger:!0,total:k,pageSizeOptions:[9,18,27,99],onChange:function(n,l){ee(n),ae(l)},onShowSizeChange:function(n,l){ee(n),ae(l)}},request:j()(d()().mark(function a(){var n,l=arguments;return d()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=l.length>0&&l[0]!==void 0?l[0]:{},r.abrupt("return",(0,E.Wit)({page:U,pagesize:L,sort:"id",sortby:"desc",keyword:n.title,status:n.status?n.status:0}).then(function(c){J(c.data.recruitments),me(c.data.total)}));case 2:case"end":return r.stop()}},a)})),toolBarRender:function(){return[(0,e.jsx)(P.ZP,{type:"primary",onClick:function(){Z.Z.confirm({title:"\u8BF7\u9009\u62E9\u5BF9\u6279\u91CF\u6570\u636E\u8FDB\u884C\u4F55\u79CD\u64CD\u4F5C",content:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{children:"\u53C2\u6570\uFF1Aid, status, open_date, close_date"}),(0,e.jsx)("h4",{style:{fontWeight:"bold"},children:"\u72B6\u6001\uFF1A"}),(0,e.jsx)(x.ZP.Group,{size:"small",onChange:function(){var l=j()(d()().mark(function u(r){var c;return d()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:(c=m.current)===null||c===void 0||c.reload();case 1:case"end":return C.stop()}},u)}));return function(u){return l.apply(this,arguments)}}(),children:(0,e.jsxs)(b.Z,{gutter:[20,20],style:{padding:20},children:[(0,e.jsx)(g.Z,{span:12,children:(0,e.jsx)(x.ZP,{value:1,children:"\u5F00\u542F"})}),(0,e.jsx)(g.Z,{span:12,children:(0,e.jsx)(x.ZP,{value:1,children:"\u5173\u95ED"})})]})}),(0,e.jsx)("h4",{style:{fontWeight:"bold"},children:"\u65F6\u957F\uFF1A"}),(0,e.jsx)(x.ZP.Group,{size:"small",onChange:function(){var l=j()(d()().mark(function u(r){var c;return d()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:(c=m.current)===null||c===void 0||c.reload();case 1:case"end":return C.stop()}},u)}));return function(u){return l.apply(this,arguments)}}(),children:(0,e.jsxs)(b.Z,{gutter:[20,20],style:{padding:20},children:[(0,e.jsx)(g.Z,{span:12,children:(0,e.jsx)(x.ZP,{value:1,children:"1\u5929"})}),(0,e.jsx)(g.Z,{span:12,children:(0,e.jsx)(x.ZP,{value:1,children:"3\u5929"})}),(0,e.jsx)(g.Z,{span:12,children:(0,e.jsx)(x.ZP,{value:1,children:"7\u5929"})}),(0,e.jsx)(g.Z,{span:12,children:(0,e.jsx)(x.ZP,{value:1,children:"15\u5929"})}),(0,e.jsx)(g.Z,{span:12,children:(0,e.jsx)(x.ZP,{value:1,children:"30\u5929"})})]})})]}),onOk:function(){},onCancel:function(){console.log("Cancel")},okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u6279\u91CF\u7BA1\u7406\u62DB\u8058\u4F1A"}),(0,e.jsx)(P.ZP,{type:"primary",onClick:function(){v({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u62DB\u8058\u4F1A"})]},headerTitle:"\u62DB\u8058\u4F1A\u5217\u8868"})})})},he=(0,T.connect)(function(F){var s=F.dictModel,v=F.openModel;return{dictModel:s,openModel:v}})(ce),pe=t(5966),H=t(78844),ue=t(86615),Y=t(19109),Me=t(97462),Ee=t(86250),xe=t(68872),Ce=t(23323),Pe=t(67562),Se=function(s){var v=s.dispatch,X=s.dictModel,y=s.openModel,m=s.id,R=(0,o.useRef)(),B=(0,o.useState)(!1),O=h()(B,2),J=O[0],I=O[1],Q=(0,o.useState)(null),k=h()(Q,2),me=k[0],se=k[1],q=(0,o.useState)(""),U=h()(q,2),ee=U[0],te=U[1],ne=(0,o.useState)(!1),L=h()(ne,2),ae=L[0],$=L[1],ie=(0,o.useState)(""),W=h()(ie,2),z=W[0],w=W[1],de=function(i){w(i)};return(0,o.useEffect)(function(){I(y.openModal)},[y.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(A.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Z.Z,{open:J,title:m?"\u7F16\u8F91\u62DB\u8058\u4F1A":"\u6DFB\u52A0\u62DB\u8058\u4F1A",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){v({type:"openModel/getOpenModal",payload:!1})},children:(0,e.jsx)(oe.A,{formRef:R,request:j()(d()().mark(function M(){var i;return d()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!m){n.next=9;break}return n.next=3,(0,E.RNW)({id:m.id});case 3:return i=n.sent,i.data.dateRange=[i.data.open_date,i.data.close_date?i.data.close_date:null],w(i.data.photo),n.abrupt("return",i.data);case 9:return w(""),n.abrupt("return",{title:"",content:"",open_date:"",close_date:"",address:"",status:0,photo:"",dateRange:[]});case 11:case"end":return n.stop()}},M)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(i,a){return(0,e.jsxs)(Ee.Z,{justify:"flex-end",children:[" ",(0,e.jsx)(_.Z,{children:a})]})},onReset:function(){se(null),I(!1)}},onFinish:function(){var M=j()(d()().mark(function i(a){var n,l;return d()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a.open_date=a.dateRange&&a.dateRange.length>0&&a.dateRange[0]?a.dateRange[0]:0,a.close_date=a.dateRange&&a.dateRange.length>0&&a.dateRange[1]?a.dateRange[1]:0,a.photo=z||"",delete a.dateRange,!m){r.next=13;break}return a.id=m.id,r.next=8,(0,E.Ci2)(a);case 8:n=r.sent,xe.ZP.success("\u63D0\u4EA4\u6210\u529F"),v({type:"openModel/getOpenModal",payload:!1}),r.next=18;break;case 13:return r.next=15,(0,E.j2j)(a);case 15:l=r.sent,xe.ZP.success("\u63D0\u4EA4\u6210\u529F"),v({type:"openModel/getOpenModal",payload:!1});case 18:case"end":return r.stop()}},i)}));return function(i){return M.apply(this,arguments)}}(),children:(0,e.jsxs)(b.Z,{gutter:[16,16],children:[(0,e.jsx)(g.Z,{span:24,children:(0,e.jsx)(K.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u4E0A\u4F20\u62DB\u8058\u4F1A\u7167\u7247",image_type:3,imageUrl:z,onUploadComplete:de})}),(0,e.jsx)(g.Z,{span:12,children:(0,e.jsx)(pe.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)(g.Z,{span:12,children:(0,e.jsx)(H.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.jsx)(g.Z,{span:8,children:(0,e.jsx)(pe.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)(g.Z,{span:6,children:(0,e.jsx)(ue.Z.Group,{name:"status",label:"\u62DB\u8058\u4F1A\u72B6\u6001",fieldProps:{buttonStyle:"solid"},options:[{label:"\u5F00\u542F",value:1},{label:"\u7ED3\u675F",value:2}]})}),(0,e.jsx)(g.Z,{span:24,children:(0,e.jsx)(Ce.Z.Item,{name:"content",label:"\u62DB\u8058\u4F1A\u5185\u5BB9",rules:[{required:!0}],children:(0,e.jsx)(Y.i$,{children:function(){return(0,e.jsx)(Me.Z,{name:["content"],children:function(a,n){var l=a.content;return(0,e.jsx)(Pe.Z,{placeholder:"\u8BF7\u8F93\u5165\u62DB\u8058\u4F1A\u5185\u5BB9",defaultValue:l,onChange:function(r){te(r),n.formRef.current.setFieldsValue({content:r})}})}})}})})})]})})})})})},ye=(0,T.connect)(function(F){var s=F.dictModel,v=F.openModel;return{dictModel:s,openModel:v}})(Se),Ze=t(92398),je=t(22015),Fe=t(66309),De=t(34041),Re=t(86492),Be=t.n(Re),Oe={label:"name",value:"id"},Te=function(s){var v=s.dispatch,X=s.dictModel,y=s.openModel,m=s.id,R=(0,o.useRef)(),B=(0,o.useState)([]),O=h()(B,2),J=O[0],I=O[1],Q=(0,o.useState)(0),k=h()(Q,2),me=k[0],se=k[1],q=(0,o.useState)(1),U=h()(q,2),ee=U[0],te=U[1],ne=(0,o.useState)(10),L=h()(ne,2),ae=L[0],$=L[1],ie=(0,o.useState)(!1),W=h()(ie,2),z=W[0],w=W[1],de=(0,o.useState)(null),M=h()(de,2),i=M[0],a=M[1];return(0,o.useEffect)(function(){w(y.openFairDetailModal)},[y.openFairDetailModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(A.ZP,{theme:{},children:(0,e.jsx)(Z.Z,{open:z,centered:!0,footer:null,okText:"\u62DB\u8058\u4F1A\u8BE6\u60C5",maskClosable:!1,destroyOnClose:!0,width:1e3,onCancel:function(){v({type:"openModel/getOpenFairDetailModal",payload:!1})},afterOpenChange:function(){var n=j()(d()().mark(function l(u){var r;return d()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!u){f.next=5;break}return f.next=3,(0,E.RNW)({id:m.id});case 3:r=f.sent,a(r.data);case 5:case"end":return f.stop()}},l)}));return function(l){return n.apply(this,arguments)}}(),children:i&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Ze.Z,{destroyInactiveTabPane:!0,type:"card",items:[{label:"\u62DB\u8058\u4F1A\u8BE6\u60C5",key:"1",children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(je.Z.Title,{level:3,children:i.title}),(0,e.jsxs)(je.Z.Paragraph,{children:[" ",i.status===1?(0,e.jsx)(Fe.Z,{color:"green",children:"\u8FDB\u884C\u4E2D"}):(0,e.jsx)(Fe.Z,{color:"red",children:"\u5DF2\u7ED3\u675F"})," \u6D3B\u52A8\u65F6\u95F4\uFF1A",i.open_date,"-",i.close_date?i.close_date:"\u5F85\u5B9A"]}),(0,e.jsx)("div",{className:"ql-editor",dangerouslySetInnerHTML:{__html:Be().decode(i.content)}})]})},{label:"\u53C2\u4E0E\u4F01\u4E1A",key:"2",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(S.Z,{search:!1,size:"small",bordered:!0,actionRef:R,dataSource:J,columns:[{title:"\u4F01\u4E1A\u540D\u79F0",dataIndex:"company_name",fixed:"left",search:!1},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"status",search:!1,render:function(l,u){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(De.Z,{value:u.status===0?"\u5F85\u5BA1":u.status===2?"\u5BA1\u6838\u901A\u8FC7":"\u5BA1\u6838\u4E0D\u901A\u8FC7",options:[{name:"\u901A\u8FC7",id:2},{name:"\u4E0D\u901A\u8FC7",id:3}],fieldNames:Oe,onChange:function(c){(0,E.uTX)({id:u.id,recruitment_id:m.id,company_id:u.company_id,status:c}).then(function(f){R.current.reload()})}})})})}},{title:"\u64CD\u4F5C",key:"option",valueType:"option",fixed:"right",render:function(l,u,r){return[(0,e.jsx)(P.ZP,{type:"link",onClick:function(){},children:"\u79FB\u9664\u4F01\u4E1A"},"1")]}}],rowKey:"id",pagination:{current:ee,pageSize:ae,showSizeChanger:!0,total:me,pageSizeOptions:[9,18,27,99],onChange:function(l,u){te(l),$(u)},onShowSizeChange:function(l,u){te(l),$(u)}},request:j()(d()().mark(function n(){var l,u=arguments;return d()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=u.length>0&&u[0]!==void 0?u[0]:{},c.abrupt("return",(0,E.jpX)({page:ee,pagesize:ae,sort:"id",sortby:"desc",recruitment_id:m.id}).then(function(f){I(f.data.recruitmentbooks),se(f.data.total)}));case 2:case"end":return c.stop()}},n)}))})})}]})})})})})},Ae=(0,T.connect)(function(F){var s=F.dictModel,v=F.openModel;return{dictModel:s,openModel:v}})(Te),Ie=function(s){var v=s.dispatch,X=s.openModel,y=(0,o.useState)(0),m=h()(y,2),R=m[0],B=m[1],O=function(I){B(I)};return(0,o.useEffect)(function(){X.openModal||B(0)},[X.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(A.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,e.jsx)(he,{getId:O}),(0,e.jsx)(ye,{id:R}),(0,e.jsx)(Ae,{id:R})]})})},Ue=(0,T.connect)(function(F){var s=F.openModel;return{openModel:s}})(Ie)}}]);