Browse Source

03/15 11:41

优化缓存
261568008@qq.com 5 years ago
parent
commit
bf02da0109

File diff suppressed because it is too large
+ 0 - 0
dist/css/ManageEvaluation.a8df11ef.css


File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/js/ManageEvaluation.d7f3c279.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.8e5a2865.js


+ 16 - 3
src/views/audition/ManageEvaluation.vue

@@ -165,19 +165,31 @@ export default {
       localStorage.setItem("Authorization", decodeURI(params.Authorization));
       localStorage.setItem("userInfo", decodeURI(params.Authorization));
     }
+   
   },
   mounted() {
     this.dateSection.currentDate = new Date();
     this.dateSection.showStartDate = this.timeFormat(
       this.dateSection.currentDate
     );
+    console.log(this.dateSection.showStartDate)
     this.dateEndSection.currentDate = new Date();
     this.dateEndSection.showEndDate = this.timeFormat(
       this.dateEndSection.currentDate
     );
-    // this.onRefresh();
-    // this.getList();
-    // this.getStudent()
+    let evaluationList = sessionStorage.getItem('evaluationList');
+     if(evaluationList) {
+       console.log(evaluationList)
+       this.search = JSON.parse(evaluationList);
+        this.dateSection.showStartDate = this.timeFormat(
+          new Date(this.search.startTime.replace(/-/g, '/'))
+      
+    );
+         this.dateEndSection.showEndDate = this.timeFormat(
+           new Date(this.search.endTime.replace(/-/g, '/'))
+      
+    );
+     }
   },
   methods: {
     formatter(type, val) {
@@ -244,6 +256,7 @@ export default {
         let result = res.data
         this.loading = false
         if(result.code == 200) {
+          sessionStorage.setItem('evaluationList',JSON.stringify(this.search));
             this.page = result.data.pageNo
             this.courseList = this.courseList.concat(result.data.rows)
             if(this.page >= result.data.totalPage) {

Some files were not shown because too many files changed in this diff