ソースを参照

fix sessionStorage

OnePsycho 4 年 前
コミット
b4518755f0

+ 1 - 1
TEAMModelOS/ClientApp/src/components/student-analysis/total/BaseRadar.vue

@@ -45,7 +45,7 @@
                             }
                         },
                         center: ['50%', '45%'],
-						radius:'50%',
+						radius:'55%',
                         tooltip: {
                             trigger: 'item'
                         },

+ 4 - 4
TEAMModelOS/ClientApp/src/view/student-analysis/total-analysis/EvaluationList/TotalIndex.vue

@@ -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);
 				// 根据条件过滤所有的测验数据

+ 1 - 1
TEAMModelOS/ClientApp/src/view/student-analysis/total-analysis/LevelAnalysis/LevelAnalysis.vue

@@ -74,7 +74,7 @@
             	        sortable: 'custom',
             	        key: item.className,
             	        renderType: (h, params) => {
-            	            return h('span', (isNaN(origin[params.row.name][index]) ? 0 : (Number(origin[params.row.name][index]))).toFixed(2) + '%')
+            	            return h('span', ((Number(origin[params.row.name][index]))).toFixed(2) + '%')
             	        },
             	        minWidth: 150
             	    }