فهرست منبع

提交记录一下 课表列表搜索有问题

1
mo 4 سال پیش
والد
کامیت
7982b98c09
2فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 1 1
      src/views/indexErrDataRecord/components/errorCourse.vue
  2. 5 0
      src/views/teamDetail/teamCourseList.vue

+ 1 - 1
src/views/indexErrDataRecord/components/errorCourse.vue

@@ -629,7 +629,7 @@ export default {
     },
     lookDetail(row) {
 
-      this.$router.push({path:'/teamCourseList'})
+      this.$router.push({path:'/teamCourseList',query:{courseIdSearch:row.id}})
       // this.maskForm = row;
       // 发请求 获取详情 row.id
       // this.maskForm = row;

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

@@ -935,6 +935,9 @@ export default {
   },
   mounted() {
     const { query } = this.$route;
+    if(query.courseIdSearch){
+      this.searchForm.courseIdSearch = query.courseIdSearch
+    }
     if (query.start || query.end) {
       this.searchForm.timer = [query.start, query.end];
     } else {
@@ -947,10 +950,12 @@ export default {
           }
         } else {
           if (this.searchForm[item]) {
+            console.log(this.searchForm[item])
             flag = true;
           }
         }
       }
+       console.log('flag',flag,this.searchForm.timer)
       if (!flag) {
         this.searchForm.timer = [nowTime, nowTime];
       }