guojy 1 рік тому
батько
коміт
1ec64fd613
1 змінених файлів з 8 додано та 4 видалено
  1. 8 4
      src/okr/views/project/projectDetail.vue

+ 8 - 4
src/okr/views/project/projectDetail.vue

@@ -193,21 +193,25 @@
       keyword: {
         deep: true,
         handler: _debounce(function(val) {
+          this.$store.commit('setProjectDetailTaskPage',1)
           this.getPastTask();
         })
       },
       'taskForm.composite_states'(){
-          this.getPastTask();
+        this.$store.commit('setProjectDetailTaskPage',1)
+        this.getPastTask();
       },
       'taskForm.owner_ids'(){
-          this.getPastTask();
+        this.$store.commit('setProjectDetailTaskPage',1)
+        this.getPastTask();
       },
       'taskForm.sort'(){
-          this.getPastTask();
+        this.$store.commit('setProjectDetailTaskPage',1)
+        this.getPastTask();
       },
       tabsIndex(val,lat){
         if(val==1){
-          this.page = 1;
+          this.$store.commit('setProjectDetailTaskPage',1)
           this.getPastTask();
         }
         if(lat==7){