|
@@ -273,8 +273,8 @@
|
|
|
this.filterData.typeList = this.typeList;
|
|
|
}
|
|
|
|
|
|
- if(localStorage.getItem('filterConditions')){
|
|
|
- this.filterConditions = JSON.parse(localStorage.getItem('filterConditions'))
|
|
|
+ if(sessionStorage.getItem('filterConditions')){
|
|
|
+ this.filterConditions = JSON.parse(sessionStorage.getItem('filterConditions'))
|
|
|
this.filterPeriod = this.filterConditions.period || this.$t('totalAnalysis.all')
|
|
|
this.filterGrade = this.filterConditions.grade || this.$t('totalAnalysis.all')
|
|
|
this.filterSubject = this.filterConditions.subject || this.$t('totalAnalysis.all')
|
|
@@ -283,7 +283,7 @@
|
|
|
}
|
|
|
console.log(this.filterConditions)
|
|
|
//默认选中第一个学段
|
|
|
- if (this.schoolData.period && this.schoolData.period.length && !localStorage.getItem('filterConditions')) {
|
|
|
+ if (this.schoolData.period && this.schoolData.period.length && !sessionStorage.getItem('filterConditions')) {
|
|
|
this.filterPeriod = this.schoolData.period[0].name
|
|
|
this.filterPeriodChange()
|
|
|
}
|
|
@@ -452,7 +452,7 @@
|
|
|
},
|
|
|
|
|
|
doFilter() {
|
|
|
- localStorage.setItem('filterConditions',JSON.stringify(this.filterConditions))
|
|
|
+ sessionStorage.setItem('filterConditions',JSON.stringify(this.filterConditions))
|
|
|
// 将条件转换成数组便于渲染
|
|
|
this.filterList = this.objToArr(this.filterConditions);
|
|
|
// 根据条件过滤所有的测验数据
|