Browse Source

提交测试

1
Xiao_Mo 4 years ago
parent
commit
807ed0c51c
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/views/teamDetail/teamCourseList.vue

+ 14 - 0
src/views/teamDetail/teamCourseList.vue

@@ -702,6 +702,20 @@ export default {
     if (query.start || query.end) {
       this.searchForm.timer = [query.start, query.end]
     } else {
+      let flag = false
+      for(let item in this.searchForm){
+        if(typeof this.searchForm[item] == 'object'){
+          // 对象或者数组
+          if(this.searchForm[item]?.length <=0){
+            flag = true
+          }
+        }else{
+          if (!this.searchForm[item]){
+            flag = true
+          }
+        }
+      }
+      if(flag)return
       this.searchForm.timer = [nowTime, nowTime]
     }
     if (query.organId) {