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