File tree Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change 69
69
<span >服务器信息</span >
70
70
</div >
71
71
<div class =" monitor" >
72
+ <Cell label =" 主机名称" :value =" info.os.hostName" border />
72
73
<Cell label =" 操作系统" :value =" info.os.goOs" border />
73
74
<Cell label =" 服务器IP" :value =" info.os.ip" border />
74
75
<Cell label =" 系统架构" :value =" info.os.arch" border />
75
- <Cell label =" CPU" :value =" info.cpu.cpuInfo[0].modelName" />
76
+ <Cell label =" CPU" :value =" info.cpu.cpuInfo[0].modelName" border />
77
+ <Cell label =" 当前时间" :value =" info.os.time" />
78
+ </div >
79
+ </el-card >
80
+
81
+ <el-card >
82
+ <div slot =" header" >
83
+ <span >磁盘状态</span >
84
+ </div >
85
+ <div class =" el-table el-table--enable-row-hover el-table--medium" >
86
+ <table cellspacing =" 0" style =" width : 100% ;" >
87
+ <thead >
88
+ <tr >
89
+ <th class =" is-leaf" ><div class =" cell" >盘符路径</div ></th >
90
+ <th class =" is-leaf" ><div class =" cell" >文件系统</div ></th >
91
+ <th class =" is-leaf" ><div class =" cell" >总大小</div ></th >
92
+
93
+ <th class =" is-leaf" ><div class =" cell" >可用大小</div ></th >
94
+ <th class =" is-leaf" ><div class =" cell" >已用大小</div ></th >
95
+ <th class =" is-leaf" ><div class =" cell" >已用百分比</div ></th >
96
+ </tr >
97
+ </thead >
98
+ <tbody v-if =" info.diskList" >
99
+ <tr v-for =" (forList,index) in info.diskList" :key =" index" >
100
+ <td ><div class =" cell" >{{ forList.path }}</div ></td >
101
+ <td ><div class =" cell" >{{ forList.fstype }}</div ></td >
102
+ <td ><div class =" cell" >{{ forList.total }}M</div ></td >
103
+ <td ><div class =" cell" >{{ forList.free }}M</div ></td >
104
+ <td ><div class =" cell" >{{ forList.used }}M</div ></td >
105
+ <td ><div class =" cell" :class =" {'text-danger': forList.usedPercent > 80}" >{{ forList.usedPercent }}%</div ></td >
106
+ </tr >
107
+ </tbody >
108
+ </table >
76
109
</div >
77
110
</el-card >
78
111
You can’t perform that action at this time.
0 commit comments