Explorar o código

提交测试

1
Xiao_Mo %!s(int64=4) %!d(string=hai) anos
pai
achega
807ed0c51c
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  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) {
     if (query.start || query.end) {
       this.searchForm.timer = [query.start, query.end]
       this.searchForm.timer = [query.start, query.end]
     } else {
     } 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]
       this.searchForm.timer = [nowTime, nowTime]
     }
     }
     if (query.organId) {
     if (query.organId) {