12 |
- (self.webpackChunk=self.webpackChunk||[]).push([[330],{64082:function(U,x,e){"use strict";e.d(x,{Z:function(){return c}});var u=e(87462),m=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 m.createElement(i.Z,(0,u.Z)({},f,{ref:l,icon:v}))},C=m.forwardRef(g),c=C},8214:function(U,x,e){"use strict";var u=e(1413),m=e(45987),n=e(62435),v=e(66758),i=e(34176),g=e(86074),C=["fieldProps","request","params","proFieldProps"],c=function(f,l){var h=f.fieldProps,a=f.request,o=f.params,s=f.proFieldProps,r=(0,m.Z)(f,C),P=(0,n.useContext)(v.Z);return(0,g.jsx)(i.Z,(0,u.Z)({valueType:"cascader",fieldProps:(0,u.Z)({getPopupContainer:P.getPopupContainer},h),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 u=e(1413),m=e(45987),n=e(22270),v=e(78045),i=e(62435),g=e(28614),C=e(34176),c=e(86074),d=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],f=i.forwardRef(function(o,s){var r=o.fieldProps,P=o.options,O=o.radioType,F=o.layout,M=o.proFieldProps,E=o.valueEnum,j=(0,m.Z)(o,d);return(0,c.jsx)(C.Z,(0,u.Z)((0,u.Z)({valueType:O==="button"?"radioButton":"radio",ref:s,valueEnum:(0,n.h)(E,void 0)},j),{},{fieldProps:(0,u.Z)({options:P,layout:F},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,u.Z)((0,u.Z)({},r),{},{ref:s,children:P}))}),h=(0,g.G)(l,{valuePropName:"checked",ignoreWidth:!0}),a=h;a.Group=f,a.Button=v.ZP.Button,a.displayName="ProFormComponent",x.Z=a},64317:function(U,x,e){"use strict";var u=e(1413),m=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"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],f=function(r,P){var O=r.fieldProps,F=r.children,M=r.params,E=r.proFieldProps,j=r.mode,y=r.valueEnum,t=r.request,K=r.showSearch,B=r.options,b=(0,m.Z)(r,c),N=(0,v.useContext)(i.Z);return(0,C.jsx)(g.Z,(0,u.Z)((0,u.Z)({valueEnum:(0,n.h)(y),request:t,params:M,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,u.Z)({options:B,mode:j,showSearch:K,getPopupContainer:N.getPopupContainer},O),ref:P,proFieldProps:E},b),{},{children:F}))},l=v.forwardRef(function(s,r){var P=s.fieldProps,O=s.children,F=s.params,M=s.proFieldProps,E=s.mode,j=s.valueEnum,y=s.request,t=s.options,K=(0,m.Z)(s,d),B=(0,u.Z)({options:t,mode:E||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},P),b=(0,v.useContext)(i.Z);return(0,C.jsx)(g.Z,(0,u.Z)((0,u.Z)({valueEnum:(0,n.h)(j),request:y,params:F,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,u.Z)({getPopupContainer:b.getPopupContainer},B),ref:r,proFieldProps:M},K),{},{children:O}))}),h=v.forwardRef(f),a=l,o=h;o.SearchSelect=a,o.displayName="ProFormComponent",x.Z=o},52688:function(U,x,e){"use strict";var u=e(1413),m=e(45987),n=e(62435),v=e(34176),i=e(86074),g=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],C=n.forwardRef(function(c,d){var f=c.fieldProps,l=c.unCheckedChildren,h=c.checkedChildren,a=c.proFieldProps,o=(0,m.Z)(c,g);return(0,i.jsx)(v.Z,(0,u.Z)({valueType:"switch",fieldProps:(0,u.Z)({unCheckedChildren:l,checkedChildren:h},f),ref:d,valuePropName:"checked",proFieldProps:a,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},o))});x.Z=C},80876:function(U,x,e){"use strict";var u=e(1413),m=e(64082),n=e(28459),v=e(2058),i=e(62435),g=e(9105),C=e(28614),c=e(86074),d=i.forwardRef(function(l,h){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)(m.Z,{}):r,O=l.description,F=O===void 0?"\u652F\u6301\u5355\u6B21\u6216\u6279\u91CF\u4E0A\u4F20":O,M=l.action,E=l.accept,j=l.onChange,y=l.value,t=l.children,K=l.max,B=l.proFieldProps,b=(0,i.useContext)(n.ZP.ConfigContext),N=(0,i.useContext)(g.A),V=(B==null?void 0:B.mode)||N.mode||"edit",Q=b.getPrefixCls("upload"),ge=(K===void 0||!y||(y==null?void 0:y.length)<K)&&V!=="read"&&(B==null?void 0:B.readonly)!==!0;return(0,c.jsxs)(v.Z.Dragger,(0,u.Z)((0,u.Z)({ref:h,name:"files",action:M,accept:E,fileList:y},a),{},{onChange:function(ie){j==null||j(ie),a!=null&&a.onChange&&(a==null||a.onChange(ie))},style:(0,u.Z)((0,u.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:F}),t?(0,c.jsx)("div",{className:"".concat(Q,"-extra"),style:{padding:16},children:t}):null]}))}),f=(0,C.G)(d,{getValueFromEvent:function(h){return h.fileList}});x.Z=f},57759:function(U,x,e){"use strict";var u=e(59530),m=e(55375),n=e(68872),v=e(80876),i=e(86074),g=function(c){var d=c.onUploadComplete,f=c.uploadTxt,l=c.form_name,h=function(o){d&&d(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,u.request)(m.FH+"/common/doc/upload?doctype=1",{method:"post",data:s,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(r){h(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 u=e(5574),m=e.n(u),n=e(71167),v=e.n(n),i=e(40190),g=e(62435),C=e(86492),c=e.n(C),d=e(86074),f=function(h){var a=h.defaultValue,o=h.placeholder,s=h.onChange,r=(0,g.useState)(a&&c().decode(a)),P=m()(r,2),O=P[0],F=P[1],M=function(j){F(j),s(j)};return(0,g.useEffect)(function(){if(a){var E=a.replace(/<[^>]*>/g,"");M(E?a:"")}},[a]),(0,d.jsx)("div",{children:(0,d.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 u=e(5574),m=e.n(u),n=e(62435),v=e(59530),i=e(55375),g=e(42075),C=e(68872),c=e(98163),d=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,F=a.multiple,M=a.imageUrl,E=function(b){b&&o(b)},j=(0,n.useState)(M),y=m()(j,2),t=y[0],K=y[1];return(0,n.useEffect)(function(){K(M)},[M]),(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(g.Z,{children:[(0,f.jsx)(d.Z,{label:s,name:P,icon:null,title:s,fieldProps:{maxCount:O,multiple:F,fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(b){var N=new FormData;N.append("image",b.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){K(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 u=e(5574),m=e.n(u),n=e(62435),v=e(59530),i=e(28459),g=e(97857),C=e.n(g),c=e(15009),d=e.n(c),f=e(99289),l=e.n(f),h=e(95338),a=e(64317),o=e(97269),s=e(42075),r=e(14726),P=e(17788),O=e(68872),F=e(98163),M=e(86738),E=e(39680),j=e(55375),y=e(67119),t=e(86074),K={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=m()(ee,2),k=X[0],ue=X[1],te=(0,n.useState)(0),de=m()(te,2),ce=de[0],ne=de[1],ae=(0,n.useState)(1),pe=m()(ae,2),re=pe[0],q=pe[1],oe=(0,n.useState)(10),me=m()(oe,2),he=me[0],le=me[1],_e=(0,n.useState)([]),fe=m()(_e,2),Ce=fe[0],ve=fe[1],Me=function(I){w(I)};(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=m()(Oe,2),R=Ee[0],D=Ee[1],p=(0,n.useRef)(""),L=function(I){D(I)};return(0,n.useEffect)(function(){p.current=R},[R]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(i.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,t.jsx)(h.Z,{scroll:{y:480,x:"auto"},bordered:!0,actionRef:S,dataSource:k,search:{span:6,labelWidth:"auto"},tableAlertRender:function(I){var _=I.selectedRowKeys,G=I.selectedRows,T=I.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:K},request:function(){var I=l()(d()().mark(function _(G){return d()().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()}},_)}));return function(_){return I.apply(this,arguments)}}(),placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u680F\u76EE"})}},{title:"\u5C01\u9762\u56FE",dataIndex:"cover_img",search:!1,width:200,render:function(I,_){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(F.Z,{src:"".concat(j.VO).concat(_.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(I,_,G){return[(0,t.jsx)(r.ZP,{type:"link",onClick:function(){Me(_.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)(y.Z,{multiple:!1,form_name:"cover_img",image_length:1,uploadTxt:"\u66F4\u6362\u56FE\u7247",image_type:3,imageUrl:_.cover_img,onUploadComplete:L})})}),onOk:function(){return l()(d()().mark(function Pe(){var J,Le;return d()().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,(0,E.XcO)(C()(C()({},_),{},{cover_img:p.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:_.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:he,showSizeChanger:!0,total:ce,pageSizeOptions:[9,18,27,99],onChange:function(I,_){q(I),le(_)},onShowSizeChange:function(I,_){q(I),le(_)}},request:l()(d()().mark(function A(){var I,_=arguments;return d()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return I=_.length>0&&_[0]!==void 0?_[0]:{},T.abrupt("return",(0,E.jCA)({page:re,pagesize:he,sort:"id",sortby:"desc",keyword:I.name,section_id:I.section_id}).then(function(W){ue(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"})]}})})})},b=(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),Fe=e(71230),$=e(15746),ye=e(23323),Ie=e(22015),je=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=m()(X,2),ue=k[0],te=k[1],de=(0,n.useState)(null),ce=m()(de,2),ne=ce[0],ae=ce[1];(0,n.useEffect)(function(){te(w.openModal)},[w.openModal]);var pe=(0,n.useState)(""),re=m()(pe,2),q=re[0],oe=re[1],me=function(D){oe(D)},he=(0,n.useState)(!1),le=m()(he,2),_e=le[0],fe=le[1],Ce=(0,n.useState)(""),ve=m()(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:ue,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()(d()().mark(function R(){var D;return d()().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,p){return(0,t.jsxs)(xe.Z,{justify:"flex-end",children:[" ",(0,t.jsx)(s.Z,{children:p})]})},onReset:function(){ae(null),z({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var R=l()(d()().mark(function D(p){var L,A;return d()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(p.cover_img=q||"",!S){_.next=11;break}return p.id=S,(0,Re.Zq)(p.section_arr,"string")?p.section_id=ne==null?void 0:ne.section_id:(p.section_id=p.section_arr.length>0?p.section_arr[p.section_arr.length-1]:0,delete p.section_arr),_.next=6,(0,E.XcO)(p);case 6:L=_.sent,O.ZP.success("\u63D0\u4EA4\u6210\u529F"),z({type:"openModel/getOpenModal",payload:!1}),_.next=18;break;case 11:return p.section_id=p.section_arr.length>0?p.section_arr[p.section_arr.length-1]:0,delete p.section_arr,_.next=15,(0,E.qMy)(p);case 15:A=_.sent,O.ZP.success("\u63D0\u4EA4\u6210\u529F"),z({type:"openModel/getOpenModal",payload:!1});case 18:case"end":return _.stop()}},D)}));return function(D){return R.apply(this,arguments)}}(),children:(0,t.jsxs)(Fe.Z,{gutter:[16,16],children:[(0,t.jsx)($.Z,{span:8,children:(0,t.jsx)(y.Z,{multiple:!1,form_name:"cover_img",image_length:1,uploadTxt:"\u4E0A\u4F20\u5C01\u9762\u56FE",image_type:3,imageUrl:q,onUploadComplete:me})}),(0,t.jsx)($.Z,{span:8,children:(0,t.jsx)(N.Z.Group,{name:"stick_top",label:"\u662F\u5426\u7F6E\u9876",request:l()(d()().mark(function R(){return d()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",[{label:"\u662F",value:1},{label:"\u5426",value:2}]);case 1:case"end":return p.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()(d()().mark(function R(){return d()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",[{label:"\u666E\u901A",value:1},{label:"\u70ED\u95E8\u63A8\u8350",value:2}]);case 1:case"end":return p.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(p){return p.data.sections})}})}),(0,t.jsx)($.Z,{span:24,children:(0,t.jsx)(ye.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(p,L){var A=p.content;return(0,t.jsx)(Ae.Z,{placeholder:"\u8BF7\u8F93\u5165\u6587\u7AE0\u5185\u5BB9",defaultValue:A,onChange:function(_){L.formRef.current.setFieldsValue({content:_})}})}})}})})}),(0,t.jsxs)($.Z,{span:24,children:[(0,t.jsx)(ie.Z,{fieldProps:{checked:_e,checkedChildren:"\u5173\u95ED\u4E0A\u4F20\u6587\u4EF6",unCheckedChildren:"\u5F00\u542F\u4E0A\u4F20\u6587\u4EF6",onChange:function(D){fe(D)}}}),_e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(je.Z,{form_name:"doc_url",uploadTxt:"\u4E0A\u4F20\u6587\u4EF6",onUploadComplete:Ee}),(0,t.jsxs)(Ie.Z.Paragraph,{copyable:!0,children:["\u94FE\u63A5\uFF1A","".concat(j.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=m()(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)(b,{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 d}});var u=e(19632),m=e.n(u),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 d(h,a){var o=[];function s(F){if(F.id===a)return!0;if(F.children){var M=v()(F.children),E;try{for(M.s();!(E=M.n()).done;){var j=E.value;if(s(j))return o.unshift(F.id),!0}}catch(y){M.e(y)}finally{M.f()}}return!1}var r=v()(h),P;try{for(r.s();!(P=r.n()).done;){var O=P.value;s(O)}}catch(F){r.e(F)}finally{r.f()}return o}function f(h,a){var o=[],s=function P(O,F){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],E=_createForOfIteratorHelper(O),j;try{for(E.s();!(j=E.n()).done;){var y=j.value;if(y.name===F)return[].concat(_toConsumableArray(M),[y]);if(y.children){var t=P(y.children,F,[].concat(_toConsumableArray(M),[y]));if(t.length>0)return t}}}catch(K){E.e(K)}finally{E.f()}return[]},r=s(h,a);return r}function l(h,a){var o=_createForOfIteratorHelper(h),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 u=e(96263);function m(n,v){var i=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(!i){if(Array.isArray(n)||(i=u(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(h){throw h},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,d=!1,f;return{s:function(){i=i.call(n)},n:function(){var h=i.next();return c=h.done,h},e:function(h){d=!0,f=h},f:function(){try{!c&&i.return!=null&&i.return()}finally{if(d)throw f}}}}U.exports=m,U.exports.__esModule=!0,U.exports.default=U.exports}}]);
|