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