mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
fix:下载中心容量显示
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
'0%': countCMB>2?'#FF0000 ':'#45B058',
|
||||
'100%': countCMB>2?'#FF0000 ':'#45B058',
|
||||
}" />
|
||||
<div v-if="countCMB>2" style="color:rgba(255, 116, 116, 1);font-size:12px;">容量已满,请删除文件</div>
|
||||
<div v-if="formatCapacityGB(capacity)>2" style="color:rgba(255, 116, 116, 1);font-size:12px;">容量已满,请删除文件</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 文件容器 -->
|
||||
@@ -176,6 +176,12 @@ export default {
|
||||
return CMB
|
||||
}
|
||||
|
||||
function formatCapacityGB(data) {
|
||||
let num = Number(data);
|
||||
let CMB = (num / (1048576*1024)).toFixed(2);
|
||||
return CMB
|
||||
}
|
||||
|
||||
// 下载文件
|
||||
function downLoadFile(data) {
|
||||
console.log(data)
|
||||
@@ -226,7 +232,8 @@ export default {
|
||||
changePaginationStu,
|
||||
searchDownloadList,
|
||||
reseatDownloadList,
|
||||
formatCapacity
|
||||
formatCapacity,
|
||||
formatCapacityGB
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user