import{Q as y,r as k,d as r,o as c,c as a,e as o,w as d,l,f as s,A as t,m as _,O as u,V as g,W as j,v as w}from"./index.9f28707e.js";function x(){return y({url:"/monitor/server",method:"get"})}const N={class:"app-container"},C=l("span",null,"CPU",-1),V={class:"el-table el-table--enable-row-hover el-table--medium"},J={cellspacing:"0",style:{width:"100%"}},M=l("thead",null,[l("tr",null,[l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u5C5E\u6027")]),l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u503C")])])],-1),A=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u6838\u5FC3\u6570")],-1),B={class:"el-table__cell is-leaf"},G={key:0,class:"cell"},I=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u7528\u6237\u4F7F\u7528\u7387")],-1),L={class:"el-table__cell is-leaf"},T={key:0,class:"cell"},D=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u7CFB\u7EDF\u4F7F\u7528\u7387")],-1),P={class:"el-table__cell is-leaf"},S={key:0,class:"cell"},$=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u5F53\u524D\u7A7A\u95F2\u7387")],-1),z={class:"el-table__cell is-leaf"},E={key:0,class:"cell"},O=l("span",null,"\u5185\u5B58",-1),Q={class:"el-table el-table--enable-row-hover el-table--medium"},U={cellspacing:"0",style:{width:"100%"}},W=l("thead",null,[l("tr",null,[l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u5C5E\u6027")]),l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u5185\u5B58")]),l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"JVM")])])],-1),q=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u603B\u5185\u5B58")],-1),H={class:"el-table__cell is-leaf"},K={key:0,class:"cell"},R={class:"el-table__cell is-leaf"},X={key:0,class:"cell"},Y=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u5DF2\u7528\u5185\u5B58")],-1),Z={class:"el-table__cell is-leaf"},F={key:0,class:"cell"},ll={class:"el-table__cell is-leaf"},el={key:0,class:"cell"},sl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u5269\u4F59\u5185\u5B58")],-1),tl={class:"el-table__cell is-leaf"},cl={key:0,class:"cell"},al={class:"el-table__cell is-leaf"},_l={key:0,class:"cell"},dl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u4F7F\u7528\u7387")],-1),ol={class:"el-table__cell is-leaf"},il={class:"el-table__cell is-leaf"},nl=l("span",null,"\u670D\u52A1\u5668\u4FE1\u606F",-1),hl={class:"el-table el-table--enable-row-hover el-table--medium"},rl={cellspacing:"0",style:{width:"100%"}},ul=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u670D\u52A1\u5668\u540D\u79F0")],-1),vl={class:"el-table__cell is-leaf"},bl={key:0,class:"cell"},fl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u64CD\u4F5C\u7CFB\u7EDF")],-1),ml={class:"el-table__cell is-leaf"},pl={key:0,class:"cell"},yl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u670D\u52A1\u5668IP")],-1),kl={class:"el-table__cell is-leaf"},gl={key:0,class:"cell"},jl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u7CFB\u7EDF\u67B6\u6784")],-1),wl={class:"el-table__cell is-leaf"},xl={key:0,class:"cell"},Nl=l("span",null,"Java\u865A\u62DF\u673A\u4FE1\u606F",-1),Cl={class:"el-table el-table--enable-row-hover el-table--medium"},Vl={cellspacing:"0",style:{width:"100%","table-layout":"fixed"}},Jl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"Java\u540D\u79F0")],-1),Ml={class:"el-table__cell is-leaf"},Al={key:0,class:"cell"},Bl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"Java\u7248\u672C")],-1),Gl={class:"el-table__cell is-leaf"},Il={key:0,class:"cell"},Ll=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u542F\u52A8\u65F6\u95F4")],-1),Tl={class:"el-table__cell is-leaf"},Dl={key:0,class:"cell"},Pl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u8FD0\u884C\u65F6\u957F")],-1),Sl={class:"el-table__cell is-leaf"},$l={key:0,class:"cell"},zl=l("td",{colspan:"1",class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u5B89\u88C5\u8DEF\u5F84")],-1),El={colspan:"3",class:"el-table__cell is-leaf"},Ol={key:0,class:"cell"},Ql=l("td",{colspan:"1",class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u9879\u76EE\u8DEF\u5F84")],-1),Ul={colspan:"3",class:"el-table__cell is-leaf"},Wl={key:0,class:"cell"},ql=l("td",{colspan:"1",class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u8FD0\u884C\u53C2\u6570")],-1),Hl={colspan:"3",class:"el-table__cell is-leaf"},Kl={key:0,class:"cell"},Rl=l("span",null,"\u78C1\u76D8\u72B6\u6001",-1),Xl={class:"el-table el-table--enable-row-hover el-table--medium"},Yl={cellspacing:"0",style:{width:"100%"}},Zl=l("thead",null,[l("tr",null,[l("th",{class:"el-table__cell el-table__cell is-leaf"},[l("div",{class:"cell"},"\u76D8\u7B26\u8DEF\u5F84")]),l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u6587\u4EF6\u7CFB\u7EDF")]),l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u76D8\u7B26\u7C7B\u578B")]),l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u603B\u5927\u5C0F")]),l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u53EF\u7528\u5927\u5C0F")]),l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u5DF2\u7528\u5927\u5C0F")]),l("th",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u5DF2\u7528\u767E\u5206\u6BD4")])])],-1),Fl={key:0},le={class:"el-table__cell is-leaf"},ee={class:"cell"},se={class:"el-table__cell is-leaf"},te={class:"cell"},ce={class:"el-table__cell is-leaf"},ae={class:"cell"},_e={class:"el-table__cell is-leaf"},de={class:"cell"},oe={class:"el-table__cell is-leaf"},ie={class:"cell"},ne={class:"el-table__cell is-leaf"},he={class:"cell"},re={class:"el-table__cell is-leaf"},fe={__name:"index",setup(ue){const e=k([]),{proxy:v}=w();function f(){v.$modal.loading("\u6B63\u5728\u52A0\u8F7D\u670D\u52A1\u76D1\u63A7\u6570\u636E\uFF0C\u8BF7\u7A0D\u5019\uFF01"),x().then(b=>{e.value=b.data,v.$modal.closeLoading()})}return f(),(b,ve)=>{const n=r("el-card"),h=r("el-col"),m=r("el-row");return c(),a("div",N,[o(m,null,{default:d(()=>[o(h,{span:12,class:"card-box"},{default:d(()=>[o(n,null,{header:d(()=>[C]),default:d(()=>[l("div",V,[l("table",J,[M,l("tbody",null,[l("tr",null,[A,l("td",B,[s(e).cpu?(c(),a("div",G,t(s(e).cpu.cpuNum),1)):_("",!0)])]),l("tr",null,[I,l("td",L,[s(e).cpu?(c(),a("div",T,t(s(e).cpu.used)+"%",1)):_("",!0)])]),l("tr",null,[D,l("td",P,[s(e).cpu?(c(),a("div",S,t(s(e).cpu.sys)+"%",1)):_("",!0)])]),l("tr",null,[$,l("td",z,[s(e).cpu?(c(),a("div",E,t(s(e).cpu.free)+"%",1)):_("",!0)])])])])])]),_:1})]),_:1}),o(h,{span:12,class:"card-box"},{default:d(()=>[o(n,null,{header:d(()=>[O]),default:d(()=>[l("div",Q,[l("table",U,[W,l("tbody",null,[l("tr",null,[q,l("td",H,[s(e).mem?(c(),a("div",K,t(s(e).mem.total)+"G",1)):_("",!0)]),l("td",R,[s(e).jvm?(c(),a("div",X,t(s(e).jvm.total)+"M",1)):_("",!0)])]),l("tr",null,[Y,l("td",Z,[s(e).mem?(c(),a("div",F,t(s(e).mem.used)+"G",1)):_("",!0)]),l("td",ll,[s(e).jvm?(c(),a("div",el,t(s(e).jvm.used)+"M",1)):_("",!0)])]),l("tr",null,[sl,l("td",tl,[s(e).mem?(c(),a("div",cl,t(s(e).mem.free)+"G",1)):_("",!0)]),l("td",al,[s(e).jvm?(c(),a("div",_l,t(s(e).jvm.free)+"M",1)):_("",!0)])]),l("tr",null,[dl,l("td",ol,[s(e).mem?(c(),a("div",{key:0,class:u(["cell",{"text-danger":s(e).mem.usage>80}])},t(s(e).mem.usage)+"%",3)):_("",!0)]),l("td",il,[s(e).jvm?(c(),a("div",{key:0,class:u(["cell",{"text-danger":s(e).jvm.usage>80}])},t(s(e).jvm.usage)+"%",3)):_("",!0)])])])])])]),_:1})]),_:1}),o(h,{span:24,class:"card-box"},{default:d(()=>[o(n,null,{header:d(()=>[nl]),default:d(()=>[l("div",hl,[l("table",rl,[l("tbody",null,[l("tr",null,[ul,l("td",vl,[s(e).sys?(c(),a("div",bl,t(s(e).sys.computerName),1)):_("",!0)]),fl,l("td",ml,[s(e).sys?(c(),a("div",pl,t(s(e).sys.osName),1)):_("",!0)])]),l("tr",null,[yl,l("td",kl,[s(e).sys?(c(),a("div",gl,t(s(e).sys.computerIp),1)):_("",!0)]),jl,l("td",wl,[s(e).sys?(c(),a("div",xl,t(s(e).sys.osArch),1)):_("",!0)])])])])])]),_:1})]),_:1}),o(h,{span:24,class:"card-box"},{default:d(()=>[o(n,null,{header:d(()=>[Nl]),default:d(()=>[l("div",Cl,[l("table",Vl,[l("tbody",null,[l("tr",null,[Jl,l("td",Ml,[s(e).jvm?(c(),a("div",Al,t(s(e).jvm.name),1)):_("",!0)]),Bl,l("td",Gl,[s(e).jvm?(c(),a("div",Il,t(s(e).jvm.version),1)):_("",!0)])]),l("tr",null,[Ll,l("td",Tl,[s(e).jvm?(c(),a("div",Dl,t(s(e).jvm.startTime),1)):_("",!0)]),Pl,l("td",Sl,[s(e).jvm?(c(),a("div",$l,t(s(e).jvm.runTime),1)):_("",!0)])]),l("tr",null,[zl,l("td",El,[s(e).jvm?(c(),a("div",Ol,t(s(e).jvm.home),1)):_("",!0)])]),l("tr",null,[Ql,l("td",Ul,[s(e).sys?(c(),a("div",Wl,t(s(e).sys.userDir),1)):_("",!0)])]),l("tr",null,[ql,l("td",Hl,[s(e).jvm?(c(),a("div",Kl,t(s(e).jvm.inputArgs),1)):_("",!0)])])])])])]),_:1})]),_:1}),o(h,{span:24,class:"card-box"},{default:d(()=>[o(n,null,{header:d(()=>[Rl]),default:d(()=>[l("div",Xl,[l("table",Yl,[Zl,s(e).sysFiles?(c(),a("tbody",Fl,[(c(!0),a(g,null,j(s(e).sysFiles,(i,p)=>(c(),a("tr",{key:p},[l("td",le,[l("div",ee,t(i.dirName),1)]),l("td",se,[l("div",te,t(i.sysTypeName),1)]),l("td",ce,[l("div",ae,t(i.typeName),1)]),l("td",_e,[l("div",de,t(i.total),1)]),l("td",oe,[l("div",ie,t(i.free),1)]),l("td",ne,[l("div",he,t(i.used),1)]),l("td",re,[l("div",{class:u(["cell",{"text-danger":i.usage>80}])},t(i.usage)+"%",3)])]))),128))])):_("",!0)])])]),_:1})]),_:1})]),_:1})])}}};export{fe as default};