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__Information__Article__index.e7733c14.async.js 21KB

12
  1. (self.webpackChunk=self.webpackChunk||[]).push([[330],{64082:function(U,x,e){"use strict";e.d(x,{Z:function(){return c}});var d=e(87462),p=e(62435),n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},v=n,i=e(84089),g=function(f,l){return p.createElement(i.Z,(0,d.Z)({},f,{ref:l,icon:v}))},C=p.forwardRef(g),c=C},8214:function(U,x,e){"use strict";var d=e(1413),p=e(45987),n=e(62435),v=e(66758),i=e(34176),g=e(86074),C=["fieldProps","request","params","proFieldProps"],c=function(f,l){var _=f.fieldProps,a=f.request,o=f.params,s=f.proFieldProps,r=(0,p.Z)(f,C),P=(0,n.useContext)(v.Z);return(0,g.jsx)(i.Z,(0,d.Z)({valueType:"cascader",fieldProps:(0,d.Z)({getPopupContainer:P.getPopupContainer},_),ref:l,request:a,params:o,filedConfig:{customLightMode:!0},proFieldProps:s},r))};x.Z=n.forwardRef(c)},86615:function(U,x,e){"use strict";var d=e(1413),p=e(45987),n=e(22270),v=e(78045),i=e(62435),g=e(28614),C=e(34176),c=e(86074),u=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],f=i.forwardRef(function(o,s){var r=o.fieldProps,P=o.options,O=o.radioType,j=o.layout,M=o.proFieldProps,E=o.valueEnum,I=(0,p.Z)(o,u);return(0,c.jsx)(C.Z,(0,d.Z)((0,d.Z)({valueType:O==="button"?"radioButton":"radio",ref:s,valueEnum:(0,n.h)(E,void 0)},I),{},{fieldProps:(0,d.Z)({options:P,layout:j},r),proFieldProps:M,filedConfig:{customLightMode:!0}}))}),l=i.forwardRef(function(o,s){var r=o.fieldProps,P=o.children;return(0,c.jsx)(v.ZP,(0,d.Z)((0,d.Z)({},r),{},{ref:s,children:P}))}),_=(0,g.G)(l,{valuePropName:"checked",ignoreWidth:!0}),a=_;a.Group=f,a.Button=v.ZP.Button,a.displayName="ProFormComponent",x.Z=a},64317:function(U,x,e){"use strict";var d=e(1413),p=e(45987),n=e(22270),v=e(62435),i=e(66758),g=e(34176),C=e(86074),c=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],f=function(r,P){var O=r.fieldProps,j=r.children,M=r.params,E=r.proFieldProps,I=r.mode,F=r.valueEnum,t=r.request,b=r.showSearch,B=r.options,K=(0,p.Z)(r,c),N=(0,v.useContext)(i.Z);return(0,C.jsx)(g.Z,(0,d.Z)((0,d.Z)({valueEnum:(0,n.h)(F),request:t,params:M,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,d.Z)({options:B,mode:I,showSearch:b,getPopupContainer:N.getPopupContainer},O),ref:P,proFieldProps:E},K),{},{children:j}))},l=v.forwardRef(function(s,r){var P=s.fieldProps,O=s.children,j=s.params,M=s.proFieldProps,E=s.mode,I=s.valueEnum,F=s.request,t=s.options,b=(0,p.Z)(s,u),B=(0,d.Z)({options:t,mode:E||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},P),K=(0,v.useContext)(i.Z);return(0,C.jsx)(g.Z,(0,d.Z)((0,d.Z)({valueEnum:(0,n.h)(I),request:F,params:j,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,d.Z)({getPopupContainer:K.getPopupContainer},B),ref:r,proFieldProps:M},b),{},{children:O}))}),_=v.forwardRef(f),a=l,o=_;o.SearchSelect=a,o.displayName="ProFormComponent",x.Z=o},52688:function(U,x,e){"use strict";var d=e(1413),p=e(45987),n=e(62435),v=e(34176),i=e(86074),g=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],C=n.forwardRef(function(c,u){var f=c.fieldProps,l=c.unCheckedChildren,_=c.checkedChildren,a=c.proFieldProps,o=(0,p.Z)(c,g);return(0,i.jsx)(v.Z,(0,d.Z)({valueType:"switch",fieldProps:(0,d.Z)({unCheckedChildren:l,checkedChildren:_},f),ref:u,valuePropName:"checked",proFieldProps:a,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},o))});x.Z=C},80876:function(U,x,e){"use strict";var d=e(1413),p=e(64082),n=e(28459),v=e(2058),i=e(62435),g=e(9105),C=e(28614),c=e(86074),u=i.forwardRef(function(l,_){var a=l.fieldProps,o=l.title,s=o===void 0?"\u5355\u51FB\u6216\u62D6\u52A8\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u8FDB\u884C\u4E0A\u4F20":o,r=l.icon,P=r===void 0?(0,c.jsx)(p.Z,{}):r,O=l.description,j=O===void 0?"\u652F\u6301\u5355\u6B21\u6216\u6279\u91CF\u4E0A\u4F20":O,M=l.action,E=l.accept,I=l.onChange,F=l.value,t=l.children,b=l.max,B=l.proFieldProps,K=(0,i.useContext)(n.ZP.ConfigContext),N=(0,i.useContext)(g.A),V=(B==null?void 0:B.mode)||N.mode||"edit",Q=K.getPrefixCls("upload"),ge=(b===void 0||!F||(F==null?void 0:F.length)<b)&&V!=="read"&&(B==null?void 0:B.readonly)!==!0;return(0,c.jsxs)(v.Z.Dragger,(0,d.Z)((0,d.Z)({ref:_,name:"files",action:M,accept:E,fileList:F},a),{},{onChange:function(ie){I==null||I(ie),a!=null&&a.onChange&&(a==null||a.onChange(ie))},style:(0,d.Z)((0,d.Z)({},a==null?void 0:a.style),{},{display:ge?void 0:"none"}),children:[(0,c.jsx)("p",{className:"".concat(Q,"-drag-icon"),children:P}),(0,c.jsx)("p",{className:"".concat(Q,"-text"),children:s}),(0,c.jsx)("p",{className:"".concat(Q,"-hint"),children:j}),t?(0,c.jsx)("div",{className:"".concat(Q,"-extra"),style:{padding:16},children:t}):null]}))}),f=(0,C.G)(u,{getValueFromEvent:function(_){return _.fileList}});x.Z=f},57759:function(U,x,e){"use strict";var d=e(59530),p=e(55375),n=e(68872),v=e(80876),i=e(86074),g=function(c){var u=c.onUploadComplete,f=c.uploadTxt,l=c.form_name,_=function(o){u&&u(o)};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(v.Z,{label:f,name:l,icon:null,fieldProps:{fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(o){var s=new FormData;s.append("doc",o.file),console.log(s),(0,d.request)(p.FH+"/common/doc/upload?doctype=1",{method:"post",data:s,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(r){_(r.data.filename)}).catch(function(r){console.log(r),n.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u4EF6\u7C7B\u578B\uFF0C\u5982\u6709\u7591\u95EE\uFF0C\u8BF7\u54A8\u8BE2\u7BA1\u7406\u5458")})}}})})};x.Z=g},67562:function(U,x,e){"use strict";var d=e(5574),p=e.n(d),n=e(71167),v=e.n(n),i=e(40190),g=e(62435),C=e(86492),c=e.n(C),u=e(86074),f=function(_){var a=_.defaultValue,o=_.placeholder,s=_.onChange,r=(0,g.useState)(a&&c().decode(a)),P=p()(r,2),O=P[0],j=P[1],M=function(I){j(I),s(I)};return(0,g.useEffect)(function(){if(a){var E=a.replace(/<[^>]*>/g,"");M(E?a:"")}},[a]),(0,u.jsx)("div",{children:(0,u.jsx)(v(),{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:O,onChange:M,theme:"snow",placeholder:o})})};x.Z=f},67119:function(U,x,e){"use strict";var d=e(5574),p=e.n(d),n=e(62435),v=e(59530),i=e(55375),g=e(42075),C=e(68872),c=e(98163),u=e(32443),f=e(86074),l=function(a){var o=a.onUploadComplete,s=a.uploadTxt,r=a.image_type,P=a.form_name,O=a.image_length,j=a.multiple,M=a.imageUrl,E=function(K){K&&o(K)},I=(0,n.useState)(M),F=p()(I,2),t=F[0],b=F[1];return(0,n.useEffect)(function(){b(M)},[M]),(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(g.Z,{children:[(0,f.jsx)(u.Z,{label:s,name:P,icon:null,title:s,fieldProps:{maxCount:O,multiple:j,fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(K){var N=new FormData;N.append("image",K.file),console.log(N),(0,v.request)(i.FH+"/common/image/upload?imgtype="+r,{method:"post",data:N,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(V){b(V.data.filename),E(V.data.filename)}).catch(function(V){console.log(V),C.ZP.error("\u4E0A\u4F20\u5931\u8D25")})}}}),t&&(0,f.jsx)(c.Z,{src:"".concat(i.VO).concat(t),width:102,height:102,style:{borderRadius:8}})]})})};x.Z=l},94698:function(U,x,e){"use strict";e.r(x),e.d(x,{default:function(){return Be}});var d=e(5574),p=e.n(d),n=e(62435),v=e(59530),i=e(28459),g=e(97857),C=e.n(g),c=e(15009),u=e.n(c),f=e(99289),l=e.n(f),_=e(95338),a=e(64317),o=e(97269),s=e(42075),r=e(14726),P=e(17788),O=e(68872),j=e(98163),M=e(86738),E=e(39680),I=e(55375),F=e(67119),t=e(86074),b={label:"name",value:"id",children:"childs"},B=function(Z){var z=Z.dispatch,Y=Z.openModel,w=Z.getId,S=(0,n.useRef)(),ee=(0,n.useState)([]),X=p()(ee,2),k=X[0],de=X[1],te=(0,n.useState)(0),ue=p()(te,2),ce=ue[0],ne=ue[1],ae=(0,n.useState)(1),me=p()(ae,2),re=me[0],q=me[1],oe=(0,n.useState)(10),pe=p()(oe,2),_e=pe[0],le=pe[1],he=(0,n.useState)([]),fe=p()(he,2),Ce=fe[0],ve=fe[1],Me=function(y){w(y)};(0,n.useEffect)(function(){if(!Y.openModal){var A;(A=S.current)===null||A===void 0||A.reload()}},[Y.openModal]);var Oe=(0,n.useState)(""),Ee=p()(Oe,2),R=Ee[0],D=Ee[1],m=(0,n.useRef)(""),L=function(y){D(y)};return(0,n.useEffect)(function(){m.current=R},[R]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(i.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,t.jsx)(_.Z,{scroll:{y:480,x:"auto"},bordered:!0,actionRef:S,dataSource:k,search:{span:6,labelWidth:"auto"},tableAlertRender:function(y){var h=y.selectedRowKeys,G=y.selectedRows,T=y.onCleanSelected;return ve(G),(0,t.jsx)(s.Z,{size:24,children:(0,t.jsxs)("span",{children:["\u5DF2\u9009 ",G.length," \u9879",(0,t.jsx)("a",{style:{marginInlineStart:8},onClick:T,children:"\u53D6\u6D88\u9009\u62E9"})]})})},tableAlertOptionRender:function(){return(0,t.jsxs)(s.Z,{children:[(0,t.jsx)(r.ZP,{danger:!0,type:"primary",onClick:function(){P.Z.confirm({title:"\u6279\u91CF\u5220\u9664",content:"\u786E\u5B9A\u8981\u5220\u9664\u6240\u9009\u7684\u6570\u636E\u5417",onOk:function(){var G=Ce.map(function(T){return(0,E.bb3)({id:T.id})});Promise.all(G).then(function(){var T,W;O.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),(T=S.current)===null||T===void 0||T.clearSelected(),(W=S.current)===null||W===void 0||W.reload()}).catch(function(T){console.error("\u6279\u91CF\u5220\u9664\u6210\u529F:",T),O.ZP.error("\u6279\u91CF\u5220\u9664\u6210\u529F")})},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u6279\u91CF\u5220\u9664"}),","]})},rowSelection:{type:"checkbox"},columns:[{title:"ID",dataIndex:"id",width:200,search:!1},{title:"\u6587\u7AE0\u540D",dataIndex:"title",width:200},{title:"\u6240\u5C5E\u680F\u76EE",dataIndex:"section_name",search:!1,width:200},{title:"\u6240\u5C5E\u680F\u76EE",dataIndex:"section_id",hidden:!0,valueType:"select",renderFormItem:function(){return(0,t.jsx)(a.Z,{width:"lg",fieldProps:{fieldNames:b},request:function(){var y=l()(u()().mark(function h(G){return u()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",(0,E.DGC)({page:1,pagesize:100,keyword:G.keyWords}).then(function(Pe){return Pe.data.sections}));case 1:case"end":return W.stop()}},h)}));return function(h){return y.apply(this,arguments)}}(),placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u680F\u76EE"})}},{title:"\u5C01\u9762\u56FE",dataIndex:"cover_img",search:!1,width:200,render:function(y,h){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(j.Z,{src:"".concat(I.VO).concat(h.cover_img),width:60,height:60})})}},{title:"\u7F6E\u9876",dataIndex:"stick_top",width:200,valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u7F6E\u9876",status:"Processing"},2:{text:"\u672A\u7F6E\u9876",status:"Error"}}},{title:"\u70ED\u95E8",dataIndex:"hot",search:!1,width:200,valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u70ED\u95E8\u63A8\u8350",status:"Processing"},2:{text:"\u666E\u901A",status:"Error"}}},{title:"\u4F5C\u8005",dataIndex:"author",search:!1,width:200},{title:"\u64CD\u4F5C",key:"option",valueType:"option",render:function(y,h,G){return[(0,t.jsx)(r.ZP,{type:"link",onClick:function(){Me(h.id),z({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,t.jsx)(r.ZP,{size:"small",type:"link",onClick:function(){P.Z.confirm({title:"\u66F4\u6362\u56FE\u7247",content:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.A,{submitter:{render:!1},children:(0,t.jsx)(F.Z,{multiple:!1,form_name:"cover_img",image_length:1,uploadTxt:"\u66F4\u6362\u56FE\u7247",image_type:3,imageUrl:h.cover_img,onUploadComplete:L})})}),onOk:function(){return l()(u()().mark(function Pe(){var J,Le;return u()().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,(0,E.XcO)(C()(C()({},h),{},{cover_img:m.current}));case 2:Le=se.sent,D(""),(J=S.current)===null||J===void 0||J.reload();case 5:case"end":return se.stop()}},Pe)}))()},onCancel:function(){console.log("Cancel")},okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u66F4\u6362\u56FE\u7247"}),(0,t.jsx)(M.Z,{title:"\u662F\u5426\u5220\u9664",onConfirm:function(W){(0,E.bb3)({id:h.id}).then(function(Pe){var J;O.ZP.success("\u5220\u9664\u6210\u529F"),(J=S.current)===null||J===void 0||J.reload()})},okText:"\u5220\u9664",cancelText:"\u53D6\u6D88",children:(0,t.jsx)(r.ZP,{danger:!0,type:"link",children:"\u5220\u9664"})})]}}],rowKey:"id",pagination:{current:re,pageSize:_e,showSizeChanger:!0,total:ce,pageSizeOptions:[9,18,27,99],onChange:function(y,h){q(y),le(h)},onShowSizeChange:function(y,h){q(y),le(h)}},request:l()(u()().mark(function A(){var y,h=arguments;return u()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return y=h.length>0&&h[0]!==void 0?h[0]:{},T.abrupt("return",(0,E.jCA)({page:re,pagesize:_e,sort:"id",sortby:"desc",keyword:y.name,section_id:y.section_id}).then(function(W){de(W.data.articles),ne(W.data.total)}));case 2:case"end":return T.stop()}},A)})),headerTitle:"\u6587\u7AE0\u5217\u8868",toolBarRender:function(){return[(0,t.jsx)(r.ZP,{type:"primary",onClick:function(){z({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u6587\u7AE0"})]}})})})},K=(0,v.connect)(function(H){var Z=H.openModel;return{openModel:Z}})(B),N=e(86615),V=e(5966),Q=e(8214),ge=e(19109),De=e(97462),ie=e(52688),xe=e(86250),je=e(71230),$=e(15746),Fe=e(23323),ye=e(22015),Ie=e(57759),Ae=e(67562),Re=e(36998),We={label:"name",value:"id"},Te={label:"name",value:"id",children:"childs"},Ze=function(Z){var z=Z.dispatch,Y=Z.dictModel,w=Z.openModel,S=Z.id,ee=(0,n.useRef)(),X=(0,n.useState)(!1),k=p()(X,2),de=k[0],te=k[1],ue=(0,n.useState)(null),ce=p()(ue,2),ne=ce[0],ae=ce[1];(0,n.useEffect)(function(){te(w.openModal)},[w.openModal]);var me=(0,n.useState)(""),re=p()(me,2),q=re[0],oe=re[1],pe=function(D){oe(D)},_e=(0,n.useState)(!1),le=p()(_e,2),he=le[0],fe=le[1],Ce=(0,n.useState)(""),ve=p()(Ce,2),Me=ve[0],Oe=ve[1],Ee=function(D){Oe(D)};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(i.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,t.jsx)(P.Z,{open:de,title:S?"\u7F16\u8F91\u6587\u7AE0":"\u6DFB\u52A0\u6587\u7AE0",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){z({type:"openModel/getOpenModal",payload:!1})},children:(0,t.jsx)(o.A,{formRef:ee,request:l()(u()().mark(function R(){var D;return u()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(!S){L.next=10;break}return L.next=3,(0,E.USp)({id:S});case 3:return D=L.sent,oe(D.data.cover_img),D.data.section_arr=[D.data.section_name],ae(D.data),L.abrupt("return",D.data);case 10:return ae(null),oe(""),L.abrupt("return",{title:"",cover_img:"",doc_url:"",section_id:null,content:"",stick_top:2,hot:1,author:""});case 13:case"end":return L.stop()}},R)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(D,m){return(0,t.jsxs)(xe.Z,{justify:"flex-end",children:[" ",(0,t.jsx)(s.Z,{children:m})]})},onReset:function(){ae(null),z({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var R=l()(u()().mark(function D(m){var L,A;return u()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(m.cover_img=q||"",!S){h.next=11;break}return m.id=S,(0,Re.Zq)(m.section_arr,"string")?m.section_id=ne==null?void 0:ne.section_id:(m.section_id=m.section_arr.length>0?m.section_arr[m.section_arr.length-1]:0,delete m.section_arr),h.next=6,(0,E.XcO)(m);case 6:L=h.sent,O.ZP.success("\u63D0\u4EA4\u6210\u529F"),z({type:"openModel/getOpenModal",payload:!1}),h.next=18;break;case 11:return m.section_id=m.section_arr.length>0?m.section_arr[m.section_arr.length-1]:0,delete m.section_arr,h.next=15,(0,E.qMy)(m);case 15:A=h.sent,O.ZP.success("\u63D0\u4EA4\u6210\u529F"),z({type:"openModel/getOpenModal",payload:!1});case 18:case"end":return h.stop()}},D)}));return function(D){return R.apply(this,arguments)}}(),children:(0,t.jsxs)(je.Z,{gutter:[16,16],children:[(0,t.jsx)($.Z,{span:8,children:(0,t.jsx)(F.Z,{multiple:!1,form_name:"cover_img",image_length:1,uploadTxt:"\u4E0A\u4F20\u5C01\u9762\u56FE",image_type:3,imageUrl:q,onUploadComplete:pe})}),(0,t.jsx)($.Z,{span:8,children:(0,t.jsx)(N.Z.Group,{name:"stick_top",label:"\u662F\u5426\u7F6E\u9876",request:l()(u()().mark(function R(){return u()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",[{label:"\u662F",value:1},{label:"\u5426",value:2}]);case 1:case"end":return m.stop()}},R)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u7F6E\u9876"}]})}),(0,t.jsx)($.Z,{span:8,children:(0,t.jsx)(N.Z.Group,{name:"hot",label:"\u6210\u4E3A\u70ED\u95E8",request:l()(u()().mark(function R(){return u()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",[{label:"\u666E\u901A",value:1},{label:"\u70ED\u95E8\u63A8\u8350",value:2}]);case 1:case"end":return m.stop()}},R)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u6210\u4E3A\u70ED\u95E8"}]})}),(0,t.jsx)($.Z,{span:8,children:(0,t.jsx)(V.Z,{label:"\u6587\u7AE0\u6807\u9898",name:"title",placeholder:"\u8BF7\u8F93\u5165\u6587\u7AE0\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u7AE0\u6807\u9898"}]})}),(0,t.jsx)($.Z,{span:8,children:(0,t.jsx)(Q.Z,{label:"\u680F\u76EE/\u9891\u9053",name:"section_arr",fieldProps:{fieldNames:Te,changeOnSelect:!0},placeholder:"\u8BF7\u9009\u62E9\u680F\u76EE/\u9891\u9053",request:function(D){return(0,E.DGC)({page:1,pagesize:100,keyword:D.keyWords,sortby:"desc"}).then(function(m){return m.data.sections})}})}),(0,t.jsx)($.Z,{span:24,children:(0,t.jsx)(Fe.Z.Item,{name:"content",label:"\u6587\u7AE0\u5185\u5BB9",rules:[{required:!0}],children:(0,t.jsx)(ge.i$,{children:function(){return(0,t.jsx)(De.Z,{name:["content"],children:function(m,L){var A=m.content;return(0,t.jsx)(Ae.Z,{placeholder:"\u8BF7\u8F93\u5165\u6587\u7AE0\u5185\u5BB9",defaultValue:A,onChange:function(h){L.formRef.current.setFieldsValue({content:h})}})}})}})})}),(0,t.jsxs)($.Z,{span:24,children:[(0,t.jsx)(ie.Z,{fieldProps:{checked:he,checkedChildren:"\u5173\u95ED\u4E0A\u4F20\u6587\u4EF6",unCheckedChildren:"\u5F00\u542F\u4E0A\u4F20\u6587\u4EF6",onChange:function(D){fe(D)}}}),he&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ie.Z,{form_name:"doc_url",uploadTxt:"\u4E0A\u4F20\u6587\u4EF6",onUploadComplete:Ee}),(0,t.jsxs)(ye.Z.Paragraph,{copyable:!0,children:["\u94FE\u63A5\uFF1A","".concat(I.VO).concat(Me)]})]})]}),(0,t.jsx)($.Z,{span:8,children:(0,t.jsx)(V.Z,{name:"author",label:"\u4F5C\u8005",placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005"})})]})})})})})},Ue=(0,v.connect)(function(H){var Z=H.dictModel,z=H.openModel;return{dictModel:Z,openModel:z}})(Ze),Se=function(Z){var z=Z.dispatch,Y=Z.openModel,w=(0,n.useState)(0),S=p()(w,2),ee=S[0],X=S[1],k=function(te){X(te)};return(0,n.useEffect)(function(){Y.openModal||X(0)},[Y.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(i.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,t.jsx)(K,{getId:k}),(0,t.jsx)(Ue,{id:ee})]})})},Be=(0,v.connect)(function(H){var Z=H.openModel;return{openModel:Z}})(Se)},36998:function(U,x,e){"use strict";e.d(x,{Zq:function(){return c},aT:function(){return C},wi:function(){return u}});var d=e(19632),p=e.n(d),n=e(64599),v=e.n(n),i=e(52677),g=e.n(i),C=function(a,o){var s=!1;return s=a.includes(o),s},c=function(a,o){return a.every(function(s){return g()(s)===o})};function u(_,a){var o=[];function s(j){if(j.id===a)return!0;if(j.children){var M=v()(j.children),E;try{for(M.s();!(E=M.n()).done;){var I=E.value;if(s(I))return o.unshift(j.id),!0}}catch(F){M.e(F)}finally{M.f()}}return!1}var r=v()(_),P;try{for(r.s();!(P=r.n()).done;){var O=P.value;s(O)}}catch(j){r.e(j)}finally{r.f()}return o}function f(_,a){var o=[],s=function P(O,j){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],E=_createForOfIteratorHelper(O),I;try{for(E.s();!(I=E.n()).done;){var F=I.value;if(F.name===j)return[].concat(_toConsumableArray(M),[F]);if(F.children){var t=P(F.children,j,[].concat(_toConsumableArray(M),[F]));if(t.length>0)return t}}}catch(b){E.e(b)}finally{E.f()}return[]},r=s(_,a);return r}function l(_,a){var o=_createForOfIteratorHelper(_),s;try{for(o.s();!(s=o.n()).done;){var r=s.value;if(r.id===a)return!0;if(r.children&&Array.isArray(r.children)){var P=l(r.children,a);if(P)return!0}}}catch(O){o.e(O)}finally{o.f()}return!1}},64599:function(U,x,e){var d=e(96263);function p(n,v){var i=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(!i){if(Array.isArray(n)||(i=d(n))||v&&n&&typeof n.length=="number"){i&&(n=i);var g=0,C=function(){};return{s:C,n:function(){return g>=n.length?{done:!0}:{done:!1,value:n[g++]}},e:function(_){throw _},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  2. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,u=!1,f;return{s:function(){i=i.call(n)},n:function(){var _=i.next();return c=_.done,_},e:function(_){u=!0,f=_},f:function(){try{!c&&i.return!=null&&i.return()}finally{if(u)throw f}}}}U.exports=p,U.exports.__esModule=!0,U.exports.default=U.exports}}]);