|
@@ -94,7 +94,7 @@
|
|
|
个人存储空间:
|
|
|
<el-progress :text-inside="true" :stroke-width="15" :percentage="percentage">
|
|
|
</el-progress>
|
|
|
- {{ spaceData.avlCap}} G可用
|
|
|
+ {{ spaceData.spaceCap-spaceData.usedCap}} G可用
|
|
|
(共{{spaceData.spaceCap}}G)
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -210,6 +210,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 已用的存储空间
|
|
|
+ percentage:0,
|
|
|
//判断是否弹出扩容界面
|
|
|
flag:true,
|
|
|
// 遮罩层
|
|
@@ -274,7 +276,6 @@ export default {
|
|
|
],
|
|
|
//baifenbi
|
|
|
},
|
|
|
- percentage:0
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -295,8 +296,7 @@ export default {
|
|
|
this.loading = false;
|
|
|
// console.log(this.spaceData);
|
|
|
// console.log(this.spaceData.searchValue);
|
|
|
- return this.percentage =(this.spaceData.usedCap
|
|
|
- /this.spaceData.spaceCap)*100;
|
|
|
+ return this.percentage =(this.spaceData.usedCap/this.spaceData.spaceCap)*100;
|
|
|
});
|
|
|
},
|
|
|
|