From 0e29925e2f6472c959ce7c49574170f11b3d72fb Mon Sep 17 00:00:00 2001 From: wyx Date: Thu, 19 Jan 2023 09:35:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=8B=E8=BD=BD=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E5=AE=B9=E9=87=8F=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/DownLoad.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 }; }, };