Просмотр исходного кода

错题复盘清空日期更新

dengshaobo 1 месяц назад
Родитель
Сommit
ece3495154
1 измененных файлов с 16 добавлено и 2 удалено
  1. 16 2
      src/views/targetImprove/consolidate/index.vue

+ 16 - 2
src/views/targetImprove/consolidate/index.vue

@@ -171,8 +171,17 @@ export default {
     ChangeDate()
     ChangeDate()
     {
     {
       console.log("筛选数据改变了",this.dataValue);
       console.log("筛选数据改变了",this.dataValue);
-      this.startTime=this.dataValue[0];
-      this.endTime=this.dataValue[1];
+      console.log("筛选数据改变了",this.dataValue);
+      if(this.dataValue)
+      {
+         this.startTime=this.dataValue[0];
+        this.endTime=this.dataValue[1];
+      }
+      else
+      {
+        this.startTime="";
+        this.endTime="";
+      }
       this.GetKnowledgeTreeData();//获取知识点树
       this.GetKnowledgeTreeData();//获取知识点树
     },
     },
 
 
@@ -271,6 +280,11 @@ export default {
           {
           {
             this.questionList=[];
             this.questionList=[];
           }
           }
+          else
+          {
+            
+            this.GetQuestionList();//获取错题列表
+          }
         
         
         }
         }
         else
         else