Преглед на файлове

Merge branch 'develop5.0-tmd' of http://52.130.252.100:10000/TEAMMODEL/TEAMModelOS into develop5.0-tmd

CrazyIter_Bin преди 3 години
родител
ревизия
c3adedf9d0

+ 2 - 2
TEAMModelOS/ClientApp/src/view/learnactivity/ByStuMark.vue

@@ -455,13 +455,13 @@ export default {
         },
         hindMark(index) {
             this.$set(this.markFlag, index, undefined)
-            console.log(delete this.markFlag[index], this.markFlag)
         },
         showMark(index, blob) {
             console.log(arguments)
             let sas = this.examScope == 'school' ? this.$store.state.user.schoolProfile.blob_sas : this.$store.state.user.userProfile.blob_sas
             let blobUrl = this.examScope == 'school' ? JSON.parse(decodeURIComponent(localStorage.school_profile, "utf-8")).blob_uri : JSON.parse(decodeURIComponent(localStorage.user_profile, "utf-8")).blob_uri
-            let url = blobUrl + '/' + blob + '?' + sas
+            // let url = blobUrl + '/' + blob + '?' + sas
+            let url = `${blobUrl}/${blob}?${sas}&random=${this.$jsFn.getBtwRandom(10000,99999)}`
             this.$set(this.markFlag, index, url)
         },
         setUpdStatus() {

+ 11 - 2
TEAMModelOS/ClientApp/src/view/schoolmgmt/SystemSetting/SystemSetting.vue

@@ -905,7 +905,7 @@ export default {
         },
         //删除学科
         delSubject(id) {
-            let index = this.schoolSetting.period[this.curPriodIndex].subjects.findIndex(item=>item.id == id)
+            let index = this.schoolSetting.period[this.curPriodIndex].subjects.findIndex(item => item.id == id)
             this.$Modal.confirm({
                 title: this.$t('schoolBaseInfo.delSubjectTitle'),
                 content: this.$t('schoolBaseInfo.delete') + this.schoolSetting.period[this.curPriodIndex].subjects[index].name + this.$t('schoolBaseInfo.delContent'),
@@ -916,7 +916,7 @@ export default {
         },
         //编辑学科
         etSubject(id) {
-            let index = this.schoolSetting.period[this.curPriodIndex].subjects.findIndex(item=>item.id == id)
+            let index = this.schoolSetting.period[this.curPriodIndex].subjects.findIndex(item => item.id == id)
             this.etSubIndex = index
             this.subjectInfo.name = this.schoolSetting.period[this.curPriodIndex].subjects[index].name
             this.subjectInfo.type = this.schoolSetting.period[this.curPriodIndex].subjects[index].type
@@ -1219,6 +1219,15 @@ export default {
                                 this.$store.dispatch('user/setSchoolProfile', schoolJson)
                                 //更新头部学校信息
                                 this.$store.commit('user/setSchoolsInfo', schoolJson)
+
+                                //更新当前选中学段信息
+                                let curPd = this.schoolSetting.period.find(item => this.$store.state.user.curPeriod && item.id === this.$store.state.user.curPeriod.id)
+                                console.log(curPd)
+                                if (curPd) {
+                                    this.$store.commit('user/setCurPeriod', curPd)
+                                    // 保存Stroage
+                                    localStorage.setItem('curPeriod', JSON.stringify(curPd))
+                                }
                             } else {
                                 this.$store.dispatch('user/getSchoolProfile')
                             }