Explorar el Código

修复 筛选问题

wolyshaw hace 4 años
padre
commit
9c8c09e8ce
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/views/teamDetail/components/modals/course-time-detail.vue

+ 2 - 1
src/views/teamDetail/components/modals/course-time-detail.vue

@@ -116,7 +116,8 @@ export default {
           ('' + item.phone).indexOf(keyword) > -1 ||
           ('' + item.username).indexOf(keyword) > -1
         )
-        const couse = !hastimer || (hastimer == '1' && item.mapDtos.filter(dto => dto.value > 0).length)
+        const length = item.mapDtos.filter(dto => dto.value > 0).length
+        const couse = !hastimer || (hastimer == '1' && length || hastimer == '0' && !length)
         return user && couse
       })
     },