瀏覽代碼

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

yxc 2 年之前
父節點
當前提交
130df15b23

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

@@ -48,7 +48,7 @@
            部门存储空间:
            部门存储空间:
             <el-progress :text-inside="true" :stroke-width="15" :percentage="percentage">
             <el-progress :text-inside="true" :stroke-width="15" :percentage="percentage">
             </el-progress>
             </el-progress>
-            {{ spaceData.avlCap}} G可用
+            {{ spaceData.spaceCap-spaceData.usedCap}} G可用
             (共{{spaceData.spaceCap}}G)
             (共{{spaceData.spaceCap}}G)
             <el-button
             <el-button
               type="primary"
               type="primary"
@@ -567,9 +567,9 @@
   border: none;
   border: none;
   color: #1890ff;
   color: #1890ff;
 }
 }
-//重置按钮
+//扩容申请
 ::v-deep .el-input--medium .el-input__inner {
 ::v-deep .el-input--medium .el-input__inner {
-    width: calc(100vw * (250 / 1920));
+    width: calc(100vw * (200 / 1920));
 }
 }
   </style>
   </style>
     
     

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

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