guojy 1 anno fa
parent
commit
1ec64fd613
1 ha cambiato i file con 8 aggiunte e 4 eliminazioni
  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){