2 lines
4.0 KiB
JavaScript
2 lines
4.0 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[90190],{94815:function(d){d.exports={progressCxxx:"progressCxxx___3k5Gq"}},95811:function(d,n,e){"use strict";e.r(n);var i=e(20228),v=e(11382),D=e(13254),ne=e(58024),m=e(91894),ie=e(13062),c=e(71230),de=e(89032),a=e(15746),le=e(34669),E=e(54458),p=e(2824),O=e(11849),u=e(67294),x=e(30672),S=e(94815),$=e.n(S),s=e(85893),l="system",k=()=>{var t=(0,x.YB)(),g=(0,x.I0)(),P=(0,x.v9)(_=>(0,O.Z)((0,O.Z)({},_[l]),{},{loading:_.loading.effects["".concat(l,"/getserverBasic")]})),f=P.loading,b=f===void 0?!1:f,oe=P.pluginList,N=(0,u.useState)({}),I=(0,p.Z)(N,2),r=I[0],V=I[1],G=(0,u.useState)({}),B=(0,p.Z)(G,2),o=B[0],J=B[1],y=r.ip,Y=y===void 0?"":y,h=r.serverTime,z=h===void 0?"":h,C=r.uptime,F=C===void 0?"":C,j=r.serverIp,H=j===void 0?"":j,R=r.javaVersion,Q=R===void 0?"":R,T=r.computerName,X=T===void 0?"":T,A=r.serverInfo,w=A===void 0?"":A,L=r.language,q=L===void 0?"":L,Z=r.ua,ee=Z===void 0?"":Z,W=o.cpuRate,se=W===void 0?0:W,U=o.duRate,te=U===void 0?0:U,K=o.memoryRate,ae=K===void 0?0:K,_e=()=>{g({type:"".concat(l,"/getserverBasic"),payload:{},callback:_=>{var M=_.data||{};V(M)}})},re=()=>{g({type:"".concat(l,"/getserver"),payload:{},callback:_=>{var M=_.data||{};J(M)}})};return(0,u.useEffect)(()=>(_e(),re(),()=>{g({type:"".concat(l,"/clear")})}),[]),console.log(r,o),(0,s.jsx)("div",{className:"layoutBox",children:(0,s.jsxs)(v.Z,{spinning:b,children:[(0,s.jsx)(m.Z,{title:t.formatMessage({id:"admin.setting.sysSrvState"}),hoverable:!0,extra:"",style:{width:"100%"},children:(0,s.jsxs)(c.Z,{className:$().progressCxxx,children:[(0,s.jsxs)(a.Z,{style:{textAlign:"center"},xs:24,xl:8,md:12,children:[(0,s.jsx)("p",{children:t.formatMessage({id:"admin.setting.srvStateCpu"})}),(0,s.jsx)(E.Z,{strokeLinecap:"butt",strokeColor:"#722ed1",type:"circle",strokeWidth:10,format:_=>"".concat(_," %"),percent:parseInt(se*100)})]}),(0,s.jsxs)(a.Z,{style:{textAlign:"center"},xs:24,xl:8,md:12,children:[(0,s.jsx)("p",{children:t.formatMessage({id:"admin.setting.srvStateMem"})}),(0,s.jsx)(E.Z,{strokeLinecap:"butt",strokeColor:"#722ed1",type:"circle",strokeWidth:10,format:_=>"".concat(_," %"),percent:parseInt(ae*100)})]}),(0,s.jsxs)(a.Z,{style:{textAlign:"center"},xs:24,xl:8,md:12,children:[(0,s.jsx)("p",{children:t.formatMessage({id:"admin.setting.srvStateDef"})}),(0,s.jsx)(E.Z,{strokeLinecap:"butt",strokeColor:"#722ed1",type:"circle",strokeWidth:10,format:_=>"".concat(_," %"),percent:parseInt(te*100)})]})]})}),(0,s.jsx)(m.Z,{title:t.formatMessage({id:"admin.setting.sysSrvInfo"}),hoverable:!0,extra:"",style:{width:"100%",marginTop:24},children:(0,s.jsxs)(c.Z,{children:[(0,s.jsxs)(a.Z,{xs:24,xl:6,md:12,children:[t.formatMessage({id:"admin.index.serverName"}),": ",X||"-"]}),(0,s.jsxs)(a.Z,{xs:24,xl:6,md:12,children:[t.formatMessage({id:"admin.setting.srvInfoIp"}),": ",H]}),(0,s.jsxs)(a.Z,{xs:24,xl:6,md:12,children:[t.formatMessage({id:"admin.setting.srvInfoTime"}),": ",z]}),(0,s.jsxs)(a.Z,{xs:24,xl:6,md:12,children:[t.formatMessage({id:"admin.setting.srvInfoUpTime"}),": ",F]}),(0,s.jsxs)(a.Z,{xs:24,xl:24,md:24,children:[t.formatMessage({id:"admin.setting.srvInfoSys"}),": ",w]}),(0,s.jsxs)(a.Z,{xs:24,xl:6,md:12,children:["JAVA",t.formatMessage({id:"common.version"}),": ",Q]})]})}),(0,s.jsx)(m.Z,{title:t.formatMessage({id:"admin.setting.sysMyInfo"}),hoverable:!0,extra:"",style:{width:"100%",marginTop:24},children:(0,s.jsxs)(c.Z,{children:[(0,s.jsxs)(a.Z,{xs:24,xl:24,md:24,children:[t.formatMessage({id:"admin.setting.myClientIp"}),": ",Y]}),(0,s.jsxs)(a.Z,{xs:24,xl:24,md:24,children:[t.formatMessage({id:"admin.setting.myClientUa"}),": ",ee||navigator.userAgent]}),(0,s.jsxs)(a.Z,{xs:24,xl:24,md:24,children:[t.formatMessage({id:"admin.setting.myClientLng"}),":"," ",q||navigator.language]})]})}),""]})})};n.default=k},15746:function(d,n,e){"use strict";var i=e(21584);n.Z=i.Z},89032:function(d,n,e){"use strict";var i=e(38663),v=e.n(i),D=e(6999)},71230:function(d,n,e){"use strict";var i=e(92820);n.Z=i.Z},13062:function(d,n,e){"use strict";var i=e(38663),v=e.n(i),D=e(6999)}}]);
|