浏览代码

提交测试

1
Xiao_Mo 4 年之前
父节点
当前提交
807ed0c51c
共有 1 个文件被更改,包括 14 次插入0 次删除
  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) {