2 lines
8.8 KiB
JavaScript
2 lines
8.8 KiB
JavaScript
import{Q as l,r as e,d as s,o as a,c,e as t,w as d,l as i,f as _,A as v,m as b,O as u,V as n,W as f,v as r}from"./index.e5c8b0d6.js";const m={class:"app-container"},o=i("span",null,"CPU",-1),y={class:"el-table el-table--enable-row-hover el-table--medium"},p={cellspacing:"0",style:{width:"100%"}},h=i("thead",null,[i("tr",null,[i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"属性")]),i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"值")])])],-1),k=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"核心数")],-1),j={class:"el-table__cell is-leaf"},g={key:0,class:"cell"},x=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"用户使用率")],-1),w={class:"el-table__cell is-leaf"},N={key:0,class:"cell"},J=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"系统使用率")],-1),M={class:"el-table__cell is-leaf"},A={key:0,class:"cell"},G=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"当前空闲率")],-1),T={class:"el-table__cell is-leaf"},F={key:0,class:"cell"},I=i("span",null,"内存",-1),P={class:"el-table el-table--enable-row-hover el-table--medium"},V={cellspacing:"0",style:{width:"100%"}},$=i("thead",null,[i("tr",null,[i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"属性")]),i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"内存")]),i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"JVM")])])],-1),C=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"总内存")],-1),D={class:"el-table__cell is-leaf"},L={key:0,class:"cell"},O={class:"el-table__cell is-leaf"},Q={key:0,class:"cell"},U=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"已用内存")],-1),W={class:"el-table__cell is-leaf"},q={key:0,class:"cell"},z={class:"el-table__cell is-leaf"},B={key:0,class:"cell"},E=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"剩余内存")],-1),H={class:"el-table__cell is-leaf"},K={key:0,class:"cell"},R={class:"el-table__cell is-leaf"},S={key:0,class:"cell"},X=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"使用率")],-1),Y={class:"el-table__cell is-leaf"},Z={class:"el-table__cell is-leaf"},ll=i("span",null,"服务器信息",-1),el={class:"el-table el-table--enable-row-hover el-table--medium"},sl={cellspacing:"0",style:{width:"100%"}},al=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"服务器名称")],-1),cl={class:"el-table__cell is-leaf"},tl={key:0,class:"cell"},dl=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"操作系统")],-1),il={class:"el-table__cell is-leaf"},_l={key:0,class:"cell"},vl=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"服务器IP")],-1),bl={class:"el-table__cell is-leaf"},ul={key:0,class:"cell"},nl=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"系统架构")],-1),fl={class:"el-table__cell is-leaf"},rl={key:0,class:"cell"},ml=i("span",null,"Java虚拟机信息",-1),ol={class:"el-table el-table--enable-row-hover el-table--medium"},yl={cellspacing:"0",style:{width:"100%","table-layout":"fixed"}},pl=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"Java名称")],-1),hl={class:"el-table__cell is-leaf"},kl={key:0,class:"cell"},jl=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"Java版本")],-1),gl={class:"el-table__cell is-leaf"},xl={key:0,class:"cell"},wl=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"启动时间")],-1),Nl={class:"el-table__cell is-leaf"},Jl={key:0,class:"cell"},Ml=i("td",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"运行时长")],-1),Al={class:"el-table__cell is-leaf"},Gl={key:0,class:"cell"},Tl=i("td",{colspan:"1",class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"安装路径")],-1),Fl={colspan:"3",class:"el-table__cell is-leaf"},Il={key:0,class:"cell"},Pl=i("td",{colspan:"1",class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"项目路径")],-1),Vl={colspan:"3",class:"el-table__cell is-leaf"},$l={key:0,class:"cell"},Cl=i("td",{colspan:"1",class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"运行参数")],-1),Dl={colspan:"3",class:"el-table__cell is-leaf"},Ll={key:0,class:"cell"},Ol=i("span",null,"磁盘状态",-1),Ql={class:"el-table el-table--enable-row-hover el-table--medium"},Ul={cellspacing:"0",style:{width:"100%"}},Wl=i("thead",null,[i("tr",null,[i("th",{class:"el-table__cell el-table__cell is-leaf"},[i("div",{class:"cell"},"盘符路径")]),i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"文件系统")]),i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"盘符类型")]),i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"总大小")]),i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"可用大小")]),i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"已用大小")]),i("th",{class:"el-table__cell is-leaf"},[i("div",{class:"cell"},"已用百分比")])])],-1),ql={key:0},zl={class:"el-table__cell is-leaf"},Bl={class:"cell"},El={class:"el-table__cell is-leaf"},Hl={class:"cell"},Kl={class:"el-table__cell is-leaf"},Rl={class:"cell"},Sl={class:"el-table__cell is-leaf"},Xl={class:"cell"},Yl={class:"el-table__cell is-leaf"},Zl={class:"cell"},le={class:"el-table__cell is-leaf"},ee={class:"cell"},se={class:"el-table__cell is-leaf"},ae={__name:"index",setup(ae){const ce=e([]),{proxy:te}=r();return te.$modal.loading("正在加载服务监控数据,请稍候!"),l({url:"/monitor/server",method:"get"}).then((l=>{ce.value=l.data,te.$modal.closeLoading()})),(l,e)=>{const r=s("el-card"),ae=s("el-col"),te=s("el-row");return a(),c("div",m,[t(te,null,{default:d((()=>[t(ae,{span:12,class:"card-box"},{default:d((()=>[t(r,null,{header:d((()=>[o])),default:d((()=>[i("div",y,[i("table",p,[h,i("tbody",null,[i("tr",null,[k,i("td",j,[_(ce).cpu?(a(),c("div",g,v(_(ce).cpu.cpuNum),1)):b("",!0)])]),i("tr",null,[x,i("td",w,[_(ce).cpu?(a(),c("div",N,v(_(ce).cpu.used)+"%",1)):b("",!0)])]),i("tr",null,[J,i("td",M,[_(ce).cpu?(a(),c("div",A,v(_(ce).cpu.sys)+"%",1)):b("",!0)])]),i("tr",null,[G,i("td",T,[_(ce).cpu?(a(),c("div",F,v(_(ce).cpu.free)+"%",1)):b("",!0)])])])])])])),_:1})])),_:1}),t(ae,{span:12,class:"card-box"},{default:d((()=>[t(r,null,{header:d((()=>[I])),default:d((()=>[i("div",P,[i("table",V,[$,i("tbody",null,[i("tr",null,[C,i("td",D,[_(ce).mem?(a(),c("div",L,v(_(ce).mem.total)+"G",1)):b("",!0)]),i("td",O,[_(ce).jvm?(a(),c("div",Q,v(_(ce).jvm.total)+"M",1)):b("",!0)])]),i("tr",null,[U,i("td",W,[_(ce).mem?(a(),c("div",q,v(_(ce).mem.used)+"G",1)):b("",!0)]),i("td",z,[_(ce).jvm?(a(),c("div",B,v(_(ce).jvm.used)+"M",1)):b("",!0)])]),i("tr",null,[E,i("td",H,[_(ce).mem?(a(),c("div",K,v(_(ce).mem.free)+"G",1)):b("",!0)]),i("td",R,[_(ce).jvm?(a(),c("div",S,v(_(ce).jvm.free)+"M",1)):b("",!0)])]),i("tr",null,[X,i("td",Y,[_(ce).mem?(a(),c("div",{key:0,class:u(["cell",{"text-danger":_(ce).mem.usage>80}])},v(_(ce).mem.usage)+"%",3)):b("",!0)]),i("td",Z,[_(ce).jvm?(a(),c("div",{key:0,class:u(["cell",{"text-danger":_(ce).jvm.usage>80}])},v(_(ce).jvm.usage)+"%",3)):b("",!0)])])])])])])),_:1})])),_:1}),t(ae,{span:24,class:"card-box"},{default:d((()=>[t(r,null,{header:d((()=>[ll])),default:d((()=>[i("div",el,[i("table",sl,[i("tbody",null,[i("tr",null,[al,i("td",cl,[_(ce).sys?(a(),c("div",tl,v(_(ce).sys.computerName),1)):b("",!0)]),dl,i("td",il,[_(ce).sys?(a(),c("div",_l,v(_(ce).sys.osName),1)):b("",!0)])]),i("tr",null,[vl,i("td",bl,[_(ce).sys?(a(),c("div",ul,v(_(ce).sys.computerIp),1)):b("",!0)]),nl,i("td",fl,[_(ce).sys?(a(),c("div",rl,v(_(ce).sys.osArch),1)):b("",!0)])])])])])])),_:1})])),_:1}),t(ae,{span:24,class:"card-box"},{default:d((()=>[t(r,null,{header:d((()=>[ml])),default:d((()=>[i("div",ol,[i("table",yl,[i("tbody",null,[i("tr",null,[pl,i("td",hl,[_(ce).jvm?(a(),c("div",kl,v(_(ce).jvm.name),1)):b("",!0)]),jl,i("td",gl,[_(ce).jvm?(a(),c("div",xl,v(_(ce).jvm.version),1)):b("",!0)])]),i("tr",null,[wl,i("td",Nl,[_(ce).jvm?(a(),c("div",Jl,v(_(ce).jvm.startTime),1)):b("",!0)]),Ml,i("td",Al,[_(ce).jvm?(a(),c("div",Gl,v(_(ce).jvm.runTime),1)):b("",!0)])]),i("tr",null,[Tl,i("td",Fl,[_(ce).jvm?(a(),c("div",Il,v(_(ce).jvm.home),1)):b("",!0)])]),i("tr",null,[Pl,i("td",Vl,[_(ce).sys?(a(),c("div",$l,v(_(ce).sys.userDir),1)):b("",!0)])]),i("tr",null,[Cl,i("td",Dl,[_(ce).jvm?(a(),c("div",Ll,v(_(ce).jvm.inputArgs),1)):b("",!0)])])])])])])),_:1})])),_:1}),t(ae,{span:24,class:"card-box"},{default:d((()=>[t(r,null,{header:d((()=>[Ol])),default:d((()=>[i("div",Ql,[i("table",Ul,[Wl,_(ce).sysFiles?(a(),c("tbody",ql,[(a(!0),c(n,null,f(_(ce).sysFiles,((l,e)=>(a(),c("tr",{key:e},[i("td",zl,[i("div",Bl,v(l.dirName),1)]),i("td",El,[i("div",Hl,v(l.sysTypeName),1)]),i("td",Kl,[i("div",Rl,v(l.typeName),1)]),i("td",Sl,[i("div",Xl,v(l.total),1)]),i("td",Yl,[i("div",Zl,v(l.free),1)]),i("td",le,[i("div",ee,v(l.used),1)]),i("td",se,[i("div",{class:u(["cell",{"text-danger":l.usage>80}])},v(l.usage)+"%",3)])])))),128))])):b("",!0)])])])),_:1})])),_:1})])),_:1})])}}};export{ae as default};
|