提交 5439c56f 编写于 作者: M maguohua

fix bug

上级 3d4820ce
# project
# About
此项目是后台项目[node-elm](https://github.com/bailicangdu/node-elm) 的后台管理系统
此项目是 vue + element-ui 构建的后台管理系统,也是后台项目[node-elm](https://github.com/bailicangdu/node-elm) 的管理系统,所有的数据都是从服务器实时获取的真实数据,具有真实的注册、登陆、管理数据、权限验证等功能
# 说明
> vue + element-ui 构建的后台管理系统
> 如果对您对此项目有兴趣,可以点 "Star" 支持一下 谢谢! ^_^
> 或者您可以 "follow" 一下,我会不断开源更多的有趣的项目
......@@ -60,7 +58,6 @@ npm run local (访问本地后台系统,需运行node-elm后台系统)
![](https://github.com/bailicangdu/node-elm/blob/master/ewm.png)
# 功能列表
- [x] 登陆/注销
......
......@@ -49,7 +49,7 @@
type: 'value',
name: 'API请求量',
min: 0,
max: 50000,
max: 100000,
position: 'left',
axisLine: {
lineStyle: {
......
......@@ -12,7 +12,12 @@
</el-row>
<el-row :gutter="20">
<el-col :span="5"><div class="data_list all_head"><span class="data_num head">总数据:</span></div></el-col>
<el-col :span="5"><div class="data_list"><span class="data_num">{{allApiCount}}</span> API请求量</div></el-col>
<el-col :span="5">
<div class="data_list">
<span class="data_num">{{allApi}}<span class="wan" v-if="allApiCount > 10000"></span>
</span> API请求量
</div>
</el-col>
<el-col :span="4"><div class="data_list"><span class="data_num">{{allUserCount}}</span> 注册用户</div></el-col>
<el-col :span="4"><div class="data_list"><span class="data_num">{{allOrderCount}}</span> 订单</div></el-col>
<el-col :span="4"><div class="data_list"><span class="data_num">{{allAdminCount}}</span> 管理员</div></el-col>
......@@ -54,6 +59,11 @@
}
this.getSevenData();
},
computed: {
allApi: function (){
return this.allApiCount < 10000 ? this.allApiCount : (this.allApiCount/10000).toFixed(2)
}
},
methods: {
async initData(){
const today = dtime().format('YYYY-MM-DD')
......@@ -131,4 +141,7 @@
background: #20A0FF;
}
}
.wan{
.sc(16px, #333)
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册