2 lines
9.2 KiB
JavaScript
2 lines
9.2 KiB
JavaScript
import{K 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,y as t,l as _,J as u,P as g,Q as j,s as w}from"./index.1974707a.js";function x(){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"},M={cellspacing:"0",style:{width:"100%"}},V=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),B=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u6838\u5FC3\u6570")],-1),G={class:"el-table__cell is-leaf"},I={key:0,class:"cell"},L=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u7528\u6237\u4F7F\u7528\u7387")],-1),P={class:"el-table__cell is-leaf"},T={key:0,class:"cell"},A=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u7CFB\u7EDF\u4F7F\u7528\u7387")],-1),D={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"},U={cellspacing:"0",style:{width:"100%"}},q=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),H=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u603B\u5185\u5B58")],-1),O={class:"el-table__cell is-leaf"},R={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),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"},Jl={cellspacing:"0",style:{width:"100%","table-layout":"fixed"}},Ml=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"Java\u540D\u79F0")],-1),Vl={class:"el-table__cell is-leaf"},Bl={key:0,class:"cell"},Gl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"Java\u7248\u672C")],-1),Il={class:"el-table__cell is-leaf"},Ll={key:0,class:"cell"},Pl=l("td",{class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u542F\u52A8\u65F6\u95F4")],-1),Tl={class:"el-table__cell is-leaf"},Al={key:0,class:"cell"},Dl=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),Ul={colspan:"3",class:"el-table__cell is-leaf"},ql={key:0,class:"cell"},Hl=l("td",{colspan:"1",class:"el-table__cell is-leaf"},[l("div",{class:"cell"},"\u8FD0\u884C\u53C2\u6570")],-1),Ol={colspan:"3",class:"el-table__cell is-leaf"},Rl={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}=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",J,[l("table",M,[V,l("tbody",null,[l("tr",null,[B,l("td",G,[s(e).cpu?(c(),a("div",I,t(s(e).cpu.cpuNum),1)):_("",!0)])]),l("tr",null,[L,l("td",P,[s(e).cpu?(c(),a("div",T,t(s(e).cpu.used)+"%",1)):_("",!0)])]),l("tr",null,[A,l("td",D,[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",U,[q,l("tbody",null,[l("tr",null,[H,l("td",O,[s(e).mem?(c(),a("div",R,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",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",Jl,[l("tbody",null,[l("tr",null,[Ml,l("td",Vl,[s(e).jvm?(c(),a("div",Bl,t(s(e).jvm.name),1)):_("",!0)]),Gl,l("td",Il,[s(e).jvm?(c(),a("div",Ll,t(s(e).jvm.version),1)):_("",!0)])]),l("tr",null,[Pl,l("td",Tl,[s(e).jvm?(c(),a("div",Al,t(s(e).jvm.startTime),1)):_("",!0)]),Dl,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",Ul,[s(e).sys?(c(),a("div",ql,t(s(e).sys.userDir),1)):_("",!0)])]),l("tr",null,[Hl,l("td",Ol,[s(e).jvm?(c(),a("div",Rl,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};
|