Explorar o código

上传进度组件:上传总任务数不应包含被取消的任务

任一存 %!s(int64=4) %!d(string=hai) anos
pai
achega
14a7df9e09
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/views/material/components/uploadList1.1.0.vue

+ 3 - 0
src/views/material/components/uploadList1.1.0.vue

@@ -123,6 +123,9 @@ export default {
     },
     successNumber() {
       return this.taskList.filter((item) => item.status === 'SUCCESS').length
+    },
+    totalNumber() {
+      return this.taskList.filter((item) => item.status !== 'CANCELLED').length
     }
   },
   data() {