Browse Source

fixExerciseList

OnePsycho 4 years ago
parent
commit
8657c0a50a

+ 0 - 1
TEAMModelOS/ClientApp/src/common/BaseSelectSchool.vue

@@ -42,7 +42,6 @@
 			this.defaultLogo = require('@/assets/icon/default_school.png')
 			this.defaultLogo = require('@/assets/icon/default_school.png')
 			// 获取本地存储中的 用户信息
 			// 获取本地存储中的 用户信息
 			let user = JSON.parse(decodeURIComponent(localStorage.user_profile, "utf-8"));
 			let user = JSON.parse(decodeURIComponent(localStorage.user_profile, "utf-8"));
-			console.log(user)
 			let schoolProfile = localStorage.school_profile ? JSON.parse(decodeURIComponent(localStorage.school_profile, "utf-8")) :undefined;
 			let schoolProfile = localStorage.school_profile ? JSON.parse(decodeURIComponent(localStorage.school_profile, "utf-8")) :undefined;
 			this.user.schools = user.schools
 			this.user.schools = user.schools
 			let joinSchools = user.schools && user.schools.length ?  user.schools.filter(i => i.status === 'join') : null
 			let joinSchools = user.schools && user.schools.length ?  user.schools.filter(i => i.status === 'join') : null

+ 1 - 3
TEAMModelOS/ClientApp/src/components/evaluation/ExerciseList.vue

@@ -202,7 +202,6 @@
 			};
 			};
 		},
 		},
 		created() {
 		created() {
-			console.log('接收到的',this.analysisJson)
 			this.pageSize = this.isAnalysis ? 999 : 5
 			this.pageSize = this.isAnalysis ? 999 : 5
 			this.pageChange(1)
 			this.pageChange(1)
 		},
 		},
@@ -365,7 +364,6 @@
 		},
 		},
 		mounted() {
 		mounted() {
 			this.selectList = this.selQue
 			this.selectList = this.selQue
-			console.log(this.optionRate)
 		},
 		},
 		computed: {
 		computed: {
 			curScope() {
 			curScope() {
@@ -401,7 +399,7 @@
 			optionRate:{
 			optionRate:{
 				handler(n,o){
 				handler(n,o){
 					if(n){
 					if(n){
-						console.log(n)
+						// console.log(n)
 					}
 					}
 				},
 				},
 				immediate:true,
 				immediate:true,

+ 0 - 19
TEAMModelOS/ClientApp/src/view/Home.vue

@@ -26,9 +26,6 @@ export default {
     name: 'headers',
     name: 'headers',
     props: ['parentToChild', 'identityselect'],
     props: ['parentToChild', 'identityselect'],
     components: {},
     components: {},
-    computed: {
-
-    },
     data() {
     data() {
         return {
         return {
             isShowMock: false,
             isShowMock: false,
@@ -38,17 +35,6 @@ export default {
         }
         }
     },
     },
     created() {
     created() {
-        //刷新重置vuex
-        console.log('进入大云...')
-        console.log(this.$store)
-
-        //  window.addEventListener('beforeunload',() => {
-        //     if(this.$store.state.user.school_profile.school_base){
-        //         schoolStr = encodeURIComponent(JSON.stringify(this.$store.state.user.school_profile.school_base), "utf-8")
-        //         localStorage.setItem('school_profile', schoolStr)
-        //     }
-        // })
-
         let user = JSON.parse(decodeURIComponent(localStorage.userInfo, "utf-8"))
         let user = JSON.parse(decodeURIComponent(localStorage.userInfo, "utf-8"))
         let user_profile = JSON.parse(decodeURIComponent(localStorage.user_profile, "utf-8"))
         let user_profile = JSON.parse(decodeURIComponent(localStorage.user_profile, "utf-8"))
         if (user_profile.schools) {
         if (user_profile.schools) {
@@ -90,11 +76,6 @@ export default {
         },
         },
         basicMenu(name) {
         basicMenu(name) {
             if (name == 'quit') {
             if (name == 'quit') {
-                //     localStorage.removeItem('access_token')
-                //     localStorage.removeItem('expires_in')
-                //     localStorage.removeItem('userInfo')
-                //     localStorage.removeItem('userAccess')
-                //     localStorage.removeItem('user_details')
                 this.$store.commit('user/resetSchoolProfile')
                 this.$store.commit('user/resetSchoolProfile')
                 this.$User.logout()
                 this.$User.logout()
                 this.$router.push({
                 this.$router.push({