1 |
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6688],{45073:function(P,d,t){var a=t(75891),n=t(21532),i=t(32983),s=t(85893),l=function(c){var u=c.description;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(n.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{}},children:(0,s.jsx)(i.Z,{description:u})})})};d.Z=(0,a.connect)(function(o){var c=o.dictModel;return{dictModel:c}})(l)},90467:function(P,d,t){t.r(d);var a=t(5574),n=t.n(a),i=t(67294),s=t(21532),l=t(42075),o=t(86250),c=t(29104),u=t(84611),j=t(90814),C=t(75891),A=t(55375),D=t(76094),L=t(45073),e=t(85893),S=function(){var T=(0,i.useState)([]),h=n()(T,2),E=h[0],O=h[1],y=(0,i.useState)(0),m=n()(y,2),B=m[0],v=m[1],R=(0,i.useState)(1),M=n()(R,2),p=M[0],U=M[1],K=(0,i.useState)(7),g=n()(K,2),I=g[0],W=g[1];return(0,D.d3)({code:"KCYZXDT"}).then(function(r){(0,D.UO)({page:1,pagesize:6,section_id:r.data.id}).then(function(_){O(_.data.articles),v(_.data.total)})}),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(s.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{Button:{colorText:"#19be6e"}}},children:(0,e.jsxs)("div",{style:{minHeight:1e3},children:[(0,e.jsxs)(l.Z,{direction:"vertical",size:10,style:{width:"100%"},children:[E&&E.length>0&&E.map(function(r,_){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(C.Link,{to:{pathname:"/sciencetechnologypark/information/detail?id=".concat(r.id)},target:"_blank",children:(0,e.jsxs)(o.Z,{justify:"space-between",align:"center",style:{width:"100%",padding:"16px",color:"#000000",background:"#ffffff",borderRadius:8,cursor:"pointer"},children:[(0,e.jsxs)(l.Z,{size:20,children:[(0,e.jsx)(c.Z,{src:"".concat(A.VO).concat(r.cover_img),width:100,height:100}),(0,e.jsx)("h3",{children:r.title})]}),(0,e.jsxs)(l.Z,{size:20,children:[(0,e.jsx)("div",{children:r.updated_at}),(0,e.jsx)(j.Z,{})]})]})})})}),!E||E.length==0&&(0,e.jsx)(o.Z,{justify:"center",align:"center",style:{padding:"16px",borderRadius:8,cursor:"pointer"},children:(0,e.jsx)(L.Z,{description:"\u6682\u65E0\u6570\u636E"})})]}),(0,e.jsx)(o.Z,{justify:"center",align:"center",style:{margin:"40px 0"},children:(0,e.jsx)(u.Z,{hideOnSinglePage:!0,total:B,showTotal:function(_){return"\u603B\u5171".concat(_,"\u6761")},current:p,pageSize:I,pageSizeOptions:["12","24","36"],onChange:function(_,f){U(_),W(f),(0,D.d3)({code:"KCYZXDT"}).then(function(Z){(0,D.UO)({page:_,pagesize:f,section_id:Z.data.id}).then(function(x){O(x.data.articles),v(x.data.total)})})}})})]})})})};d.default=S},76094:function(P,d,t){t.d(d,{US:function(){return u},UO:function(){return c},d3:function(){return o},cp:function(){return s}});var a=t(75334),n=t(55375),i={SectionList:n.xw+"/section/list",SectionDetail:n.xw+"/section/detail",SectionDetailByCode:n.xw+"/section/detailByCode",ArticleList:n.xw+"/article/list",ArticleDetail:n.xw+"/article/detail"},s=(0,a.y)(i.SectionList),l=(0,a.y)(i.SectionDetail),o=(0,a.y)(i.SectionDetailByCode),c=(0,a.y)(i.ArticleList),u=(0,a.y)(i.ArticleDetail)}}]);
|