2 lines
9.2 KiB
JavaScript
2 lines
9.2 KiB
JavaScript
import{L as y,r as k,d as r,o as c,c as a,e as o,w as d,k as l,f as s,x as t,l as _,K as u,Q as g,R as j,s as x}from"./index.4144b0df.js";function w(){return y({url:"/monitor/server",method:"get"})}const N={class:"app-container"},C=l("span",null,"CPU",-1),J={class:"el-table el-table--enable-row-hover el-table--medium"},L={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),V=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),T={class:"el-table__cell is-leaf"},A={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"},K=l("span",null,"\u5185\u5B58",-1),Q={class:"el-table el-table--enable-row-hover el-table--medium"},R={cellspacing:"0",style:{width:"100%"}},U=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"},O={key:0,class:"cell"},W={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),xl={class:"el-table__cell is-leaf"},wl={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"},Jl={cellspacing:"0",style:{width:"100%","table-layout":"fixed"}},Ll=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"Java\u540D\u79F0")],-1),Ml={class:"el-table__cell is-leaf"},Vl={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"},Tl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u542F\u52A8\u65F6\u95F4")],-1),Al={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"},Kl={key:0,class:"cell"},Ql=l("td",{colspan:"1",class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u9879\u76EE\u8DEF\u5F84")],-1),Rl={colspan:"3",class:"el-table__cell is-leaf"},Ul={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"},Ol={key:0,class:"cell"},Wl=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}=x();function f(){v.$modal.loading("\u6B63\u5728\u52A0\u8F7D\u670D\u52A1\u76D1\u63A7\u6570\u636E\uFF0C\u8BF7\u7A0D\u5019\uFF01"),w().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",J,[l("table",L,[M,l("tbody",null,[l("tr",null,[V,l("td",B,[s(e).cpu?(c(),a("div",G,t(s(e).cpu.cpuNum),1)):_("",!0)])]),l("tr",null,[I,l("td",T,[s(e).cpu?(c(),a("div",A,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(()=>[K]),default:d(()=>[l("div",Q,[l("table",R,[U,l("tbody",null,[l("tr",null,[q,l("td",H,[s(e).mem?(c(),a("div",O,t(s(e).mem.total)+"G",1)):_("",!0)]),l("td",W,[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",xl,[s(e).sys?(c(),a("div",wl,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",Jl,[l("tbody",null,[l("tr",null,[Ll,l("td",Ml,[s(e).jvm?(c(),a("div",Vl,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,[Tl,l("td",Al,[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",Kl,t(s(e).jvm.home),1)):_("",!0)])]),l("tr",null,[Ql,l("td",Rl,[s(e).sys?(c(),a("div",Ul,t(s(e).sys.userDir),1)):_("",!0)])]),l("tr",null,[ql,l("td",Hl,[s(e).jvm?(c(),a("div",Ol,t(s(e).jvm.inputArgs),1)):_("",!0)])])])])])]),_:1})]),_:1}),o(h,{span:24,class:"card-box"},{default:d(()=>[o(n,null,{header:d(()=>[Wl]),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};
|