控制台部件更新
parent
9d84d5e408
commit
d40dc172db
|
@ -5,5 +5,5 @@ VUE_APP_TITLE=企业级后台管理系统
|
||||||
# 启用权限管理
|
# 启用权限管理
|
||||||
VUE_APP_PM_ENABLED = true
|
VUE_APP_PM_ENABLED = true
|
||||||
# 后端接口地址及端口(域名)
|
# 后端接口地址及端口(域名)
|
||||||
VUE_APP_API = "https://demo.django-vue-admin.com/api"
|
VUE_APP_API = "http://192.168.1.22:8001/"
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<el-col :span="12" :offset="6" style="text-align: right">
|
<el-col :span="12" :offset="6" style="text-align: right">
|
||||||
<i class="real-time">实时</i>
|
<i class="real-time">实时</i>
|
||||||
<div class="card-content-time">
|
<div class="card-content-time">
|
||||||
<div class="attachment-value">{{ occupy_space}}MB</div>
|
<div class="attachment-value">{{ space}}MB</div>
|
||||||
<div class="el-icon-s-flag">
|
<div class="el-icon-s-flag">
|
||||||
占用空间</div>
|
占用空间</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
count:"",
|
count:"",
|
||||||
occupy_space:"",
|
space:"",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -50,8 +50,9 @@
|
||||||
request({
|
request({
|
||||||
url: '/api/system/homepage_statistics/'
|
url: '/api/system/homepage_statistics/'
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
this.count=res.data.sum_file.count;
|
this.count=res.data.database_info.count;
|
||||||
this.occupy_space=res.data.sum_file.occupy_space;
|
this.space=res.data.database_info.space;
|
||||||
|
;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 生成一个随机整数
|
// 生成一个随机整数
|
||||||
|
@ -95,7 +96,7 @@
|
||||||
}
|
}
|
||||||
.el-icon-s-flag {
|
.el-icon-s-flag {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-right: 132px;
|
margin-right: 130px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.real-time {
|
.real-time {
|
||||||
|
|
Loading…
Reference in New Issue