zhangzhang hai 3 meses
pai
achega
2c2d4be653

+ 0 - 35
src/views/CognitiveAbilityTask/coginitiveTaskDetail.vue

@@ -278,41 +278,6 @@ export default {
         });
       }
     },
-    /*
-    internetQuest(){
-       this.$http.post("memory/getIfUsable", {phone: this.phone}, msg => {
-      console.log(msg);
-      if(msg.msg=="还未到时间"){
-        this.isDelay=true;
-        this.remainingTime = msg.data;
-        this.countDownDivShow = true
-        this.delayTestButtonShow = false
-      }else if(msg.msg=='需要先进行即时测试'){
-        console.log("进行即时测试");
-      }else{
-        switch(msg.data.length){
-          case 6:
-          this.isDelay=true;
-          this.beforeTime=false;
-          this.memoryType=2;
-          this.countDownDivShow = false
-          this.delayTestButtonShow = true
-          this.correlationMemory=msg.data[0].id;
-          break;
-          case 7: this.$router.push("WordAssociation");
-          break;
-          case 8: this.$router.push("freeRecall");
-          break;
-          case 9: this.$router.push("pictureAssociation");
-          break;
-          case 10: this.$router.push("personRecall");
-          break;
-        }
-      }
-      this.quest=true;
-    })
-    },
-    */
 
     startTest(testMode) {
       if (

+ 2 - 1
src/views/MainTable.vue

@@ -59,7 +59,7 @@ export default {
     this.uId = sessionStorage.getItem("b80bb7740288fda1f201890375a60c8f") || "";
     this.gId = sessionStorage.getItem("f7a42fe7211f98ac7a60a285ac3a9530") || "";
     if (oSessionStorage.getItem("currentPage")) {
-      this.pageNum = oSessionStorage.getItem("currentPage");
+      this.pageNum = Number(oSessionStorage.getItem("currentPage"));
     }
     if (oSessionStorage.getItem("currentTab")) {
       this.activeName = oSessionStorage.getItem("currentTab") || 'ALL';
@@ -138,6 +138,7 @@ export default {
     // 切换分页
     handleCurrentChange(val) {
       this.pageNum = val;
+      this.storeInfo();
       this.loadData();
     },