1 |
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[559],{6740:function(le,k,t){t.r(k),t.d(k,{default:function(){return ve}});var Q=t(5574),b=t.n(Q),u=t(62435),T=t(59530),H=t(28459),Y=t(15009),g=t.n(Y),q=t(99289),L=t.n(q),ae=t(95338),I=t(64317),F=t(98163),d=t(66309),c=t(14726),f=t(86738),p=t(68872),v=t(39680),D=t(55375),e=t(86074),Z={label:"name",value:"id",children:"childs"},C=function(o){var n=o.dispatch,E=o.openModel,N=o.getId,j=(0,u.useRef)(),U=(0,u.useState)([]),S=b()(U,2),z=S[0],V=S[1],W=(0,u.useState)(0),X=b()(W,2),_=X[0],K=X[1],$=(0,u.useState)(1),m=b()($,2),s=m[0],a=m[1],h=(0,u.useState)(10),J=b()(h,2),ee=J[0],x=J[1],ye=function(i){N(i)};return(0,u.useEffect)(function(){E.openModal||j.current.reload()},[E.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(H.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,e.jsx)(ae.Z,{size:"small",bordered:!0,scroll:{x:1300},actionRef:j,dataSource:z,columns:[{title:"ID",dataIndex:"id",width:100,search:!1},{title:"\u6587\u7AE0\u540D",dataIndex:"title",width:400},{title:"\u6240\u5C5E\u680F\u76EE",dataIndex:"section_name",search:!1},{title:"\u6240\u5C5E\u680F\u76EE",dataIndex:"section_id",hidden:!0,valueType:"select",renderFormItem:function(){return(0,e.jsx)(I.Z,{width:"lg",fieldProps:{fieldNames:Z},request:function(){var i=L()(g()().mark(function l(te){return g()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",(0,v.DGC)({page:1,pagesize:100,keyword:te.keyWords}).then(function(re){return re.data.sections}));case 1:case"end":return B.stop()}},l)}));return function(l){return i.apply(this,arguments)}}(),placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u680F\u76EE"})}},{title:"\u5C01\u9762\u56FE",dataIndex:"cover_img",search:!1,render:function(i,l){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(F.Z,{src:"".concat(D.VO).concat(l.cover_img),width:40,height:40})})}},{title:"\u7F6E\u9876",dataIndex:"stick_top",search:!1,render:function(i,l){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(e.Fragment,{children:l.stick_top===1?(0,e.jsx)(d.Z,{color:"green",children:"\u7F6E\u9876"}):(0,e.jsx)(d.Z,{children:"\u672A\u7F6E\u9876"})})})}},{title:"\u70ED\u95E8",dataIndex:"hot",search:!1,render:function(i,l){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(e.Fragment,{children:l.hot===1?(0,e.jsx)(d.Z,{children:"\u666E\u901A"}):(0,e.jsx)(d.Z,{color:"red",children:"\u70ED\u95E8\u63A8\u8350"})})})}},{title:"\u4F5C\u8005",dataIndex:"author",search:!1},{title:"\u64CD\u4F5C",width:300,key:"option",valueType:"option",fixed:"right",render:function(i,l,te){return[(0,e.jsx)(c.ZP,{type:"link",onClick:function(){ye(l.id),n({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,e.jsx)(f.Z,{title:"\u662F\u5426\u5220\u9664",onConfirm:function(B){(0,v.bb3)({id:l.id}).then(function(re){p.ZP.success("\u5220\u9664\u6210\u529F"),j.current.reload()})},okText:"\u5220\u9664",cancelText:"\u53D6\u6D88",children:(0,e.jsx)("a",{children:"\u5220\u9664"},"delete")})]}}],rowKey:"id",pagination:{current:s,pageSize:ee,showSizeChanger:!0,total:_,pageSizeOptions:[9,18,27,99],onChange:function(i,l){a(i),x(l)},onShowSizeChange:function(i,l){a(i),x(l)}},request:L()(g()().mark(function M(){var i,l=arguments;return g()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return i=l.length>0&&l[0]!==void 0?l[0]:{},O.abrupt("return",(0,v.jCA)({page:s,pagesize:ee,sort:"id",sortby:"desc",keyword:i.name,section_id:i.section_id}).then(function(B){V(B.data.articles),K(B.data.total)}));case 2:case"end":return O.stop()}},M)})),headerTitle:"\u6587\u7AE0\u5217\u8868",toolBarRender:function(){return[(0,e.jsx)(c.ZP,{type:"primary",onClick:function(){n({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u6587\u7AE0"})]}})})})},R=(0,T.connect)(function(A){var o=A.openModel;return{openModel:o}})(C),P=t(97269),y=t(5966),G=t(21134),oe=t(8214),se=t(50335),ie=t(17788),ue=t(86250),de=t(42075),ce=t(71230),r=t(15746),ne=t(96074),pe=t(36998),w={label:"name",value:"id"},he={label:"name",value:"id",children:"childs"},fe=function(o){var n=o.dispatch,E=o.dictModel,N=o.openModel,j=o.id,U=(0,u.useRef)(),S=(0,u.useState)(!1),z=b()(S,2),V=z[0],W=z[1],X=(0,u.useState)(null),_=b()(X,2),K=_[0],$=_[1];return(0,u.useEffect)(function(){W(N.openModal)},[N.openModal]),(0,u.useEffect)(function(){n({type:"dictModel/getList",payload:{code:2004,type:"setPositionList"}}),n({type:"dictModel/getList",payload:{code:2009,type:"setAreaList"}}),n({type:"dictModel/getList",payload:{code:2005,type:"setPayList"}}),n({type:"dictModel/getList",payload:{code:2016,type:"setAccommodationRequirementList"}}),n({type:"dictModel/getList",payload:{code:2017,type:"setHolidayRestList"}}),n({type:"dictModel/getList",payload:{code:2018,type:"setLicenseList"}}),n({type:"dictModel/getList",payload:{code:2021,type:"setWorkExperienceList"}}),n({type:"dictModel/getList",payload:{code:2006,type:"setEducationList"}}),n({type:"dictModel/getList",payload:{code:2014,type:"setTitleList"}}),n({type:"dictModel/getList",payload:{code:2015,type:"setSkillCertificationeList"}}),n({type:"dictModel/getList",payload:{code:2007,type:"setOtherLanguageList"}}),n({type:"dictModel/getList",payload:{code:2008,type:"setDegreeList"}}),n({type:"dictModel/getList",payload:{code:2027,type:"setIndustryPostList"}}),n({type:"dictModel/getList",payload:{code:2010,type:"setPoliticalList"}})},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(H.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(ie.Z,{open:V,title:j?"\u7F16\u8F91\u516C\u5171\u6237\u53E3":"\u6DFB\u52A0\u516C\u5171\u6237\u53E3",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){n({type:"openModel/getOpenModal",payload:!1})},children:(0,e.jsx)(P.A,{formRef:U,request:L()(g()().mark(function m(){var s;return g()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!j){h.next=10;break}return h.next=3,(0,v.USp)({id:j});case 3:return s=h.sent,setUploadedFilephotoName(s.data.cover_img),s.data.section_arr=[s.data.section_name],$(s.data),h.abrupt("return",s.data);case 10:return $(null),setUploadedFilephotoName(""),h.abrupt("return",{title:"",cover_img:"",doc_url:"",section_id:null,content:"",stick_top:0,hot:0,author:""});case 13:case"end":return h.stop()}},m)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(s,a){return(0,e.jsxs)(ue.Z,{justify:"flex-end",children:[" ",(0,e.jsx)(de.Z,{children:a})]})},onReset:function(){$(null),n({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var m=L()(g()().mark(function s(a){var h,J;return g()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(a.cover_img=uploadedFilephotoName||"",!j){x.next=11;break}return a.id=j,(0,pe.Zq)(a.section_arr,"string")?a.section_id=K==null?void 0:K.section_id:(a.section_id=a.section_arr.length>0?a.section_arr[a.section_arr.length-1]:0,delete a.section_arr),x.next=6,(0,v.XcO)(a);case 6:h=x.sent,p.ZP.success("\u63D0\u4EA4\u6210\u529F"),n({type:"openModel/getOpenModal",payload:!1}),x.next=18;break;case 11:return a.section_id=a.section_arr.length>0?a.section_arr[a.section_arr.length-1]:0,delete a.section_arr,x.next=15,(0,v.qMy)(a);case 15:J=x.sent,p.ZP.success("\u63D0\u4EA4\u6210\u529F"),n({type:"openModel/getOpenModal",payload:!1});case 18:case"end":return x.stop()}},s)}));return function(s){return m.apply(this,arguments)}}(),children:(0,e.jsxs)(ce.Z,{gutter:[16,16],children:[(0,e.jsx)(r.Z,{span:24,children:(0,e.jsx)(ne.Z,{orientation:"left",plain:!0,children:"\u6237\u53E3\u672C\u4FE1\u606F"})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(y.Z,{name:"author",label:"\u6237\u53E3\u672C\u5B58\u653E\u4F4D\u7F16\u53F7",placeholder:"436346",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6237\u53E3\u672C\u5B58\u653E\u4F4D\u7F16\u53F7"}]})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(y.Z,{name:"author",label:"\u5355\u4F4D\u540D\u79F0",placeholder:"\u83CA\u57CE\u4EBA\u624D\u5E02\u573A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"}]})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(y.Z,{name:"author",label:"\u5165\u6237\u4EBA\u6570",placeholder:"10"})}),(0,e.jsx)(r.Z,{span:24,children:(0,e.jsx)(ne.Z,{orientation:"left",plain:!0,children:"\u5165\u6237\u4EBA\u5458\u4FE1\u606F"})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(G.Z,{name:"gender",label:"\u662F\u5426\u968F\u5BB6\u4EBA\u8FC1\u5165",request:L()(g()().mark(function m(){return g()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",[{label:"\u662F",value:1},{label:"\u5426",value:2}]);case 1:case"end":return a.stop()}},m)}))})}),(0,e.jsx)(r.Z,{span:16,children:(0,e.jsx)(I.Z,{width:"md",name:"education",label:"\u9009\u62E9\u968F\u8FC1\u4EBA\u5458",fieldProps:{fieldNames:w},options:E.educationList})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(y.Z,{name:"author",label:"\u59D3\u540D",placeholder:"10"})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(y.Z,{label:"\u8EAB\u4EFD\u8BC1",name:"id_number",placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1",validateTrigger:"onBlur",rules:[{required:!1},function(){return{validator:function(s,a){var h=verifyIdCard(a);return typeof h=="boolean"?Promise.resolve():Promise.reject(new Error(h))}}}]})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(G.Z,{name:"gender",label:"\u6027\u522B",request:L()(g()().mark(function m(){return g()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",[{label:"\u7537",value:"\u7537"},{label:"\u5973",value:"\u5973"}]);case 1:case"end":return a.stop()}},m)}))})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(I.Z,{name:"education",label:"\u5B66\u5386",fieldProps:{fieldNames:w},options:E.educationList})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(I.Z,{name:"political_status",label:"\u653F\u6CBB\u9762\u8C8C",fieldProps:{fieldNames:w},options:E.politicalList})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(y.Z,{name:"author",label:"\u6BD5\u4E1A\u9662\u6821",placeholder:"10"})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(y.Z,{name:"author",label:"\u4E13\u4E1A",placeholder:"10"})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(oe.Z,{label:"\u7C4D\u8D2F",name:"native_arr",fieldProps:{fieldNames:he,options:E.areaList,changeOnSelect:!0},placeholder:"\u8BF7\u9009\u62E9\u7C4D\u8D2F"})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(I.Z,{name:"marital_status",label:"\u5A5A\u59FB\u72B6\u51B5",fieldProps:{fieldNames:w},options:E.maritalList})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(y.Z,{name:"author",label:"\u8054\u7CFB\u7535\u8BDD",placeholder:"10"})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(se.Z,{name:"dob",label:"\u5165\u6237\u65F6\u95F4",placeholder:"\u8BF7\u9009\u62E9\u5165\u6237\u65F6\u95F4",width:"lg"})}),(0,e.jsx)(r.Z,{span:8,children:(0,e.jsx)(y.Z,{name:"author",label:"\u5907\u6CE8",placeholder:"10"})})]})})})})})},me=(0,T.connect)(function(A){var o=A.dictModel,n=A.openModel;return{dictModel:o,openModel:n}})(fe),ge=function(o){var n=o.dispatch,E=o.openModel,N=(0,u.useState)(0),j=b()(N,2),U=j[0],S=j[1],z=function(W){S(W)};return(0,u.useEffect)(function(){E.openModal||S(0)},[E.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(H.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,e.jsx)(R,{getId:z}),(0,e.jsx)(me,{id:U})]})})},ve=(0,T.connect)(function(A){var o=A.openModel;return{openModel:o}})(ge)},36998:function(le,k,t){t.d(k,{Zq:function(){return q},wi:function(){return L}});var Q=t(19632),b=t.n(Q),u=t(64599),T=t.n(u),H=t(52677),Y=t.n(H),g=function(d,c){var f=!1;return f=d.includes(c),f},q=function(d,c){return d.every(function(f){return Y()(f)===c})};function L(F,d){var c=[];function f(e){if(e.id===d)return!0;if(e.children){var Z=T()(e.children),C;try{for(Z.s();!(C=Z.n()).done;){var R=C.value;if(f(R))return c.unshift(e.id),!0}}catch(P){Z.e(P)}finally{Z.f()}}return!1}var p=T()(F),v;try{for(p.s();!(v=p.n()).done;){var D=v.value;f(D)}}catch(e){p.e(e)}finally{p.f()}return c}function ae(F,d){var c=[],f=function v(D,e){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],C=_createForOfIteratorHelper(D),R;try{for(C.s();!(R=C.n()).done;){var P=R.value;if(P.name===e)return[].concat(_toConsumableArray(Z),[P]);if(P.children){var y=v(P.children,e,[].concat(_toConsumableArray(Z),[P]));if(y.length>0)return y}}}catch(G){C.e(G)}finally{C.f()}return[]},p=f(F,d);return p}function I(F,d){var c=_createForOfIteratorHelper(F),f;try{for(c.s();!(f=c.n()).done;){var p=f.value;if(p.id===d)return!0;if(p.children&&Array.isArray(p.children)){var v=I(p.children,d);if(v)return!0}}}catch(D){c.e(D)}finally{c.f()}return!1}}}]);
|