Explorar o código

个人和部门存储空间数值更改

yxc %!s(int64=2) %!d(string=hai) anos
pai
achega
2016c3be14

+ 3 - 3
src/views1/Personal/Partspace/PartspaceView.vue

@@ -48,7 +48,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"
@@ -567,9 +567,9 @@
   border: none;
   color: #1890ff;
 }
-//重置按钮
+//扩容申请
 ::v-deep .el-input--medium .el-input__inner {
-    width: calc(100vw * (250 / 1920));
+    width: calc(100vw * (200 / 1920));
 }
   </style>
     

+ 4 - 4
src/views1/Personal/Space/SpaceView.vue

@@ -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;
       });
     },