Skip to content

Commit 5439c56

Browse files
committed
fix bug
1 parent 3d4820c commit 5439c56

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11

2-
# project
2+
# About
33

4-
此项目是后台项目[node-elm](https://github.com/bailicangdu/node-elm) 的后台管理系统
4+
此项目是 vue + element-ui 构建的后台管理系统,也是后台项目[node-elm](https://github.com/bailicangdu/node-elm) 的管理系统,所有的数据都是从服务器实时获取的真实数据,具有真实的注册、登陆、管理数据、权限验证等功能
55

66

77
# 说明
88

9-
> vue + element-ui 构建的后台管理系统
10-
119
> 如果对您对此项目有兴趣,可以点 "Star" 支持一下 谢谢! ^_^
1210
1311
> 或者您可以 "follow" 一下,我会不断开源更多的有趣的项目
@@ -60,7 +58,6 @@ npm run local (访问本地后台系统,需运行node-elm后台系统)
6058
![](https://github.com/bailicangdu/node-elm/blob/master/ewm.png)
6159

6260

63-
6461
# 功能列表
6562

6663
- [x] 登陆/注销

src/components/tendency.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
type: 'value',
5050
name: 'API请求量',
5151
min: 0,
52-
max: 50000,
52+
max: 100000,
5353
position: 'left',
5454
axisLine: {
5555
lineStyle: {

src/page/home.vue

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
</el-row>
1313
<el-row :gutter="20">
1414
<el-col :span="5"><div class="data_list all_head"><span class="data_num head">总数据:</span></div></el-col>
15-
<el-col :span="5"><div class="data_list"><span class="data_num">{{allApiCount}}</span> API请求量</div></el-col>
15+
<el-col :span="5">
16+
<div class="data_list">
17+
<span class="data_num">{{allApi}}<span class="wan" v-if="allApiCount > 10000">万</span>
18+
</span> API请求量
19+
</div>
20+
</el-col>
1621
<el-col :span="4"><div class="data_list"><span class="data_num">{{allUserCount}}</span> 注册用户</div></el-col>
1722
<el-col :span="4"><div class="data_list"><span class="data_num">{{allOrderCount}}</span> 订单</div></el-col>
1823
<el-col :span="4"><div class="data_list"><span class="data_num">{{allAdminCount}}</span> 管理员</div></el-col>
@@ -54,6 +59,11 @@
5459
}
5560
this.getSevenData();
5661
},
62+
computed: {
63+
allApi: function (){
64+
return this.allApiCount < 10000 ? this.allApiCount : (this.allApiCount/10000).toFixed(2)
65+
}
66+
},
5767
methods: {
5868
async initData(){
5969
const today = dtime().format('YYYY-MM-DD')
@@ -131,4 +141,7 @@
131141
background: #20A0FF;
132142
}
133143
}
144+
.wan{
145+
.sc(16px, #333)
146+
}
134147
</style>

0 commit comments

Comments
 (0)