diff --git a/src/views/DownLoad.vue b/src/views/DownLoad.vue index 2507bdb2..af7fe54b 100644 --- a/src/views/DownLoad.vue +++ b/src/views/DownLoad.vue @@ -59,7 +59,7 @@ '0%': countCMB>2?'#FF0000 ':'#45B058', '100%': countCMB>2?'#FF0000 ':'#45B058', }" /> -
容量已满,请删除文件
+
容量已满,请删除文件
@@ -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 }; }, };