mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
首页改进
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="padding:10px;">
|
<div style="padding:10px;">
|
||||||
<el-row :gutter="20" style="background-color:#fafafa;margin:10px 10px 50px 10px;">
|
<el-row :gutter="20" style="background-color:#fafafa;margin:10px 10px 60px 10px;">
|
||||||
<el-col :xs="24" :sm="24" :md="24" :lg="14" :xl="14">
|
<el-col :xs="24" :sm="24" :md="24" :lg="14" :xl="14">
|
||||||
<div style="overflow:hidden;">
|
<div style="overflow:hidden;">
|
||||||
<div ref="map" style="height:650px;"></div>
|
<div ref="map" style="height:650px;"></div>
|
||||||
@@ -106,9 +106,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row :gutter="40" v-if="isAdmin" style="background-color:#fafafa;margin:10px 10px 50px 10px;">
|
<el-row v-if="isAdmin" style="background-color:#fafafa;margin:10px 10px 60px 10px;">
|
||||||
<el-col :xs="24" :sm="24" :md="24" :lg="6" :xl="6">
|
<el-col :xs="24" :sm="24" :md="24" :lg="6" :xl="6" style="padding:20px;">
|
||||||
<div style="padding:20px;height:300px;">
|
|
||||||
<h3 style="font-weight:bold">Mqtt 统计指标</h3>
|
<h3 style="font-weight:bold">Mqtt 统计指标</h3>
|
||||||
<el-row :gutter="20" class="panel-group">
|
<el-row :gutter="20" class="panel-group">
|
||||||
<el-col :span="24" class="card-panel-col">
|
<el-col :span="24" class="card-panel-col">
|
||||||
@@ -190,33 +189,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
|
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12" style="padding:20px 50px;">
|
||||||
<div style="padding:20px;margin-top:30px;">
|
<div ref="statsChart" style="height:310px;margin:20px 0 40px 0;"></div>
|
||||||
<div ref="statsChart" style="height:280px;"></div>
|
<el-row style="padding-left:20px;">
|
||||||
</div>
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
|
||||||
<el-row>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="8">
|
|
||||||
<div style="padding:20px;margin-top:30px;">
|
|
||||||
<div ref="pieCpu" style="height:150px;margin-bottom:-20px;"></div>
|
|
||||||
</div>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="8">
|
|
||||||
<div style="padding:20px;margin-top:30px;">
|
|
||||||
<div ref="pieMemery" style="height:150px;margin-bottom:-20px;"></div>
|
|
||||||
</div>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="8">
|
|
||||||
<div style="padding:20px;margin-top:30px;">
|
|
||||||
<div ref="pieDisk" style="height:150px;margin-bottom:-20px;"></div>
|
|
||||||
</div>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xs="24" :sm="24" :md="24" :lg="6" :xl="6">
|
|
||||||
<div style="padding:20px;margin-top:30px;">
|
|
||||||
<h3 style="font-weight:bold">服务器信息</h3>
|
|
||||||
<table class="description">
|
<table class="description">
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong>服务器名称: </strong></td>
|
<td><strong>服务器名称: </strong></td>
|
||||||
@@ -243,7 +220,8 @@
|
|||||||
<td>{{server.mem.total}}</td>
|
<td>{{server.mem.total}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<h3 style="font-weight:bold">Java虚拟机</h3>
|
</el-col>
|
||||||
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
|
||||||
<table class="description">
|
<table class="description">
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong>Java名称: </strong></td>
|
<td><strong>Java名称: </strong></td>
|
||||||
@@ -270,14 +248,27 @@
|
|||||||
<td>{{server.jvm.total}}</td>
|
<td>{{server.jvm.total}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
</el-col>
|
||||||
|
<el-col :xs="24" :sm="24" :md="24" :lg="6" :xl="6" style="padding:20px;">
|
||||||
|
<div style="padding:20px;">
|
||||||
|
<div ref="pieCpu" style="height:161px;margin-bottom:-20px;"></div>
|
||||||
|
</div>
|
||||||
|
<div style="padding:20px;">
|
||||||
|
<div ref="pieMemery" style="height:161px;margin-bottom:-20px;"></div>
|
||||||
|
</div>
|
||||||
|
<div style="padding:20px;">
|
||||||
|
<div ref="pieDisk" style="height:161px;margin-bottom:-20px;"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</el-col>
|
||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row :gutter="40" style="background-color:#fafafa;padding:60px 0;margin:-10px;margin-top:50px;">
|
<el-row :gutter="40" style="background-color:#fafafa;margin:10px 10px 60px 10px;">
|
||||||
<el-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10">
|
<el-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10" style="padding:40px;">
|
||||||
<el-card shadow="hover" style="padding:20px 0;margin-bottom:20px;font-size:14px;">
|
<el-card shadow="hover" style="padding:20px 0;margin-bottom:20px;font-size:14px;">
|
||||||
<div style="font-size:28px;font-weight:bold;margin-bottom:20px;">物美智能生活物联网平台</div>
|
<div style="font-size:28px;font-weight:bold;margin-bottom:20px;">物美智能生活物联网平台</div>
|
||||||
<div style="display:table;font-size:14px;margin-bottom:10px;">
|
<div style="display:table;font-size:14px;margin-bottom:10px;">
|
||||||
@@ -328,7 +319,7 @@
|
|||||||
|
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
<el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12" style="padding:40px;">
|
||||||
<div class="phone">
|
<div class="phone">
|
||||||
<iframe src="https://wumei.live/h5" id="iframe" frameborder="0" scrolling="auto" height="100%" width="100%" class="phone-container"></iframe>
|
<iframe src="https://wumei.live/h5" id="iframe" frameborder="0" scrolling="auto" height="100%" width="100%" class="phone-container"></iframe>
|
||||||
</div>
|
</div>
|
||||||
@@ -808,7 +799,12 @@ export default {
|
|||||||
|
|
||||||
option = {
|
option = {
|
||||||
title: {
|
title: {
|
||||||
text: 'Mqtt 状态数据'
|
text: 'Mqtt 状态数据',
|
||||||
|
textStyle: {
|
||||||
|
fontSize: 18,
|
||||||
|
color: "#000",
|
||||||
|
fontWeight: 800,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
@@ -860,8 +856,11 @@ export default {
|
|||||||
var option;
|
var option;
|
||||||
option = {
|
option = {
|
||||||
title: {
|
title: {
|
||||||
text: 'CPU使用率 %',
|
text: 'CPU使用率',
|
||||||
left: 'left'
|
left: 'left',
|
||||||
|
textStyle: {
|
||||||
|
fontSize: 16
|
||||||
|
}
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item',
|
trigger: 'item',
|
||||||
@@ -907,8 +906,11 @@ export default {
|
|||||||
var option;
|
var option;
|
||||||
option = {
|
option = {
|
||||||
title: {
|
title: {
|
||||||
text: '内存使用 G',
|
text: '内存使用率',
|
||||||
left: 'left'
|
left: 'left',
|
||||||
|
textStyle: {
|
||||||
|
fontSize: 16
|
||||||
|
}
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item'
|
trigger: 'item'
|
||||||
@@ -952,8 +954,11 @@ export default {
|
|||||||
let two = this.server.sysFiles[0].free.replace("GB", "");;
|
let two = this.server.sysFiles[0].free.replace("GB", "");;
|
||||||
option = {
|
option = {
|
||||||
title: {
|
title: {
|
||||||
text: 'C盘状态 G',
|
text: '系统盘使用率',
|
||||||
left: 'left'
|
left: 'left',
|
||||||
|
textStyle: {
|
||||||
|
fontSize: 16
|
||||||
|
}
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item'
|
trigger: 'item'
|
||||||
@@ -1019,10 +1024,10 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
font-size: 14px;
|
font-size: 12px;
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
line-height: 26px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user