소스 검색

03/15 11:41

优化缓存
261568008@qq.com 5 년 전
부모
커밋
bf02da0109
5개의 변경된 파일16개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 0
      dist/css/ManageEvaluation.a8df11ef.css
  2. 0 0
      dist/index.html
  3. 0 0
      dist/js/ManageEvaluation.d7f3c279.js
  4. 0 0
      dist/js/app.8e5a2865.js
  5. 16 3
      src/views/audition/ManageEvaluation.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/css/ManageEvaluation.a8df11ef.css


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/js/ManageEvaluation.d7f3c279.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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) {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.