瀏覽代碼

Merge branch 'ol_12_30' into online

wolyshaw 4 年之前
父節點
當前提交
9870502df8
共有 1 個文件被更改,包括 2 次插入1 次删除
  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
       })
     },