Files
shz-admin/shihezi/6145.103c38e3.async.js

2 lines
18 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6145],{66145:function(S,P,u){u.r(P);var L=u(13769),r=u.n(L),M=u(15009),s=u.n(M),b=u(99289),B=u.n(b),w=u(97857),E=u.n(w),T=u(5574),y=u.n(T),A=u(37476),i=u(98097),x=u(5966),m=u(64317),v=u(31199),f=u(90672),j=u(77569),g=u(83622),o=u(3089),c=u(24969),_=u(67294),a=u(23504),K=u(85773),e=u(85893),k=["key","name"],H=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100;return new Promise(function(l){setTimeout(function(){l(!0)},n)})},$=function(n){var l,D,t=j.Z.useForm(),ne=y()(t,1),R=ne[0],te=(0,_.useState)(null),J=y()(te,2),ue=J[0],re=J[1],ae=(0,_.useState)(!1),Y=y()(ae,2),se=Y[0],G=Y[1],N=n.educationEnum,V=n.experienceEnum,X=n.areaEnum,Q=n.jobTypeEnum,q=n.mode,W=q===void 0?n.values?"edit":"create":q;(0,_.useEffect)(function(){n.open&&(R.resetFields(),n.values&&R.setFieldsValue(E()(E()({},n.values),{},{jobLocationAreaCode:String(n.values.jobLocationAreaCode||"")})))},[R,(l=n.values)===null||l===void 0?void 0:l.jobId,n.open]),(0,_.useEffect)(function(){var C;n.open&&(W==="view"||W==="edit")&&(C=n.values)!==null&&C!==void 0&&C.jobId&&oe()},[n.open,W,(D=n.values)===null||D===void 0?void 0:D.jobId]);var oe=function(){var C=B()(s()().mark(function I(){var h,p;return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if((h=n.values)!==null&&h!==void 0&&h.jobId){d.next=2;break}return d.abrupt("return");case 2:return G(!0),d.prev=3,d.next=6,(0,K.wk)(n.values.jobId.toString());case 6:p=d.sent,p.code===200&&(re(p.data),W==="edit"&&R.setFieldsValue(E()(E()({},p.data),{},{jobLocationAreaCode:String(p.data.jobLocationAreaCode||"")}))),d.next=13;break;case 10:d.prev=10,d.t0=d.catch(3),console.error("\u83B7\u53D6\u5C97\u4F4D\u8BE6\u60C5\u5931\u8D25:",d.t0);case 13:return d.prev=13,G(!1),d.finish(13);case 16:case"end":return d.stop()}},I,null,[[3,10,13,16]])}));return function(){return C.apply(this,arguments)}}(),ee=function(){n.onCancel(),R.resetFields()},le=function(){var C=B()(s()().mark(function I(h){return s()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:n.onSubmit(h);case 1:case"end":return F.stop()}},I)}));return function(h){return C.apply(this,arguments)}}(),ie=function(I,h){R.setFieldValue("companyName",h.label)};return W==="view"?(0,e.jsx)(A.Y,{title:"\u5C97\u4F4D\u8BE6\u60C5",open:n.open,width:800,modalProps:{destroyOnClose:!0,onCancel:function(){return ee()},footer:null},submitter:!1,children:(0,e.jsxs)(i.vY,{column:2,dataSource:ue||n.values||{},loading:se,children:[(0,e.jsx)(i.vY.Item,{dataIndex:"jobTitle",label:"\u5C97\u4F4D\u540D\u79F0"}),(0,e.jsx)(i.vY.Item,{dataIndex:"companyName",label:"\u62DB\u8058\u516C\u53F8"}),(0,e.jsx)(i.vY.Item,{dataIndex:"minSalary",label:"\u6700\u4F4E\u85AA\u8D44(\u5143/\u6708)"}),(0,e.jsx)(i.vY.Item,{dataIndex:"maxSalary",label:"\u6700\u9AD8\u85AA\u8D44(\u5143/\u6708)"}),(0,e.jsx)(i.vY.Item,{dataIndex:"education",label:"\u5B66\u5386\u8981\u6C42",valueEnum:N}),(0,e.jsx)(i.vY.Item,{dataIndex:"experience",label:"\u5DE5\u4F5C\u7ECF\u9A8C",valueEnum:V}),(0,e.jsx)(i.vY.Item,{dataIndex:"jobLocationAreaCode",label:"\u5DE5\u4F5C\u533A\u53BF",valueEnum:X}),(0,e.jsx)(i.vY.Item,{dataIndex:"vacancies",label:"\u62DB\u8058\u4EBA\u6570"}),(0,e.jsx)(i.vY.Item,{dataIndex:"jobLocation",label:"\u5DE5\u4F5C\u5730\u70B9"}),(0,e.jsx)(i.vY.Item,{dataIndex:"jobType",label:"\u5C97\u4F4D\u7C7B\u578B",valueEnum:Q}),(0,e.jsx)(i.vY.Item,{dataIndex:"description",label:"\u5C97\u4F4D\u63CF\u8FF0",span:2}),(0,e.jsx)(i.vY.Item,{dataIndex:"company",label:"\u516C\u53F8\u4FE1\u606F",span:2,render:function(I,h){var p=h==null?void 0:h.company;return p?(0,e.jsxs)("div",{style:{width:"100%"},children:[(0,e.jsxs)("div",{style:{marginBottom:8},children:[(0,e.jsx)("strong",{style:{color:"#000",marginRight:16},children:"\u516C\u53F8\u540D\u79F0\uFF1A"}),(0,e.jsx)("span",{style:{color:"#000"},children:p.name})]}),(0,e.jsxs)("div",{style:{marginBottom:8},children:[(0,e.jsx)("strong",{style:{color:"#000",marginRight:16},children:"\u516C\u53F8\u5730\u5740\uFF1A"}),(0,e.jsx)("span",{style:{color:"#000"},children:p.locati