(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d1e104d6"],{"152a":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"monitor-body"},[a("h1",[a("span",[e._v("系统监控")]),a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",icon:"el-icon-download",size:"medium"},on:{click:e.downloadLog}},[e._v("诊断日志下载")])],1),a("el-table",{attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"key",label:"属性",width:"300"}}),a("el-table-column",{attrs:{prop:"value",label:"值"}})],1)],1)},i=[],l={name:"Monitor",data:function(){return{info:{},tableData:[],timer:null}},methods:{downloadLog:function(){window.location.href=this.common.removeDuplicateSeparator(this.$http.defaults.baseURL+"/admin/log")},loadData:function(){var e=this;this.$http.get("admin/monitor").then((function(t){e.info=t.data.data,e.tableData=[],e.tableData.push({key:"操作系统",value:e.info.sys.osName}),e.tableData.push({key:"系统版本",value:e.info.sys.osVersion}),e.tableData.push({key:"系统架构",value:e.info.sys.osArch}),e.tableData.push({key:"程序路径",value:e.info.sys.projectDir}),e.tableData.push({key:"系统启动时间",value:e.info.sys.upTime}),e.tableData.push({key:"系统总内存",value:e.common.fileSizeFilter("","",e.info.mem.total)}),e.tableData.push({key:"系统已使用内存",value:e.common.fileSizeFilter("","",e.info.mem.used)}),e.tableData.push({key:"系统空闲内存",value:e.common.fileSizeFilter("","",e.info.mem.free)}),e.tableData.push({key:"JVM 可占用内存",value:e.common.fileSizeFilter("","",e.info.jvm.max)}),e.tableData.push({key:"JVM 已占用内存",value:e.common.fileSizeFilter("","",e.info.jvm.total)}),e.tableData.push({key:"JVM 空闲内存",value:e.common.fileSizeFilter("","",e.info.jvm.free)}),e.tableData.push({key:"JVM 版本",value:e.info.jvm.version})}))}},mounted:function(){var e=this;this.loadData(),this.timer?clearInterval(this.timer):this.timer=setInterval((function(){e.loadData()}),1e3)},destroyed:function(){clearInterval(this.timer)}},n=l,s=(a("2a85"),a("2877")),u=Object(s["a"])(n,o,i,!1,null,"73fd5f73",null);t["default"]=u.exports},"2a85":function(e,t,a){"use strict";var o=a("e5fa"),i=a.n(o);i.a},e5fa:function(e,t,a){}}]);