|
@@ -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) {
|