|
@@ -41,7 +41,7 @@
|
|
|
<Icon v-show="!isCollapsed" class="sub-menu-icon" :custom="menuItem.icon" size="16" />
|
|
|
<span>
|
|
|
{{menuItem.name}}
|
|
|
- <Tooltip v-if="menuItem.info" :content="menuItem.info" transfer theme="light" max-width="180">
|
|
|
+ <Tooltip v-if="menuItem.info" transfer-class-name="menu-tooltips" :content="menuItem.info" transfer theme="light" max-width="180">
|
|
|
<Icon type="ios-information-circle-outline" color="#1cc0f3" />
|
|
|
</Tooltip>
|
|
|
<span style="margin-left: 2px;font-size: 12px;vertical-align: text-top;color:#ff7c00">
|
|
@@ -126,7 +126,7 @@
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex'
|
|
|
export default {
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
edition: '',
|
|
|
isPro: false,// 是否为专业版
|
|
@@ -153,22 +153,22 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- mouseOver () {
|
|
|
+ mouseOver() {
|
|
|
if (!this.isLock) this.isCollapsed = false
|
|
|
},
|
|
|
- mouseLeave () {
|
|
|
+ mouseLeave() {
|
|
|
if (!this.isLock) this.isCollapsed = true
|
|
|
},
|
|
|
- initMenu () {
|
|
|
+ initMenu() {
|
|
|
//判断当前学校是否购买服务 暂未提供字段
|
|
|
// this.schoolMenu =
|
|
|
// this.teacherMenu =
|
|
|
},
|
|
|
- changeMenuStatus () {
|
|
|
+ changeMenuStatus() {
|
|
|
this.$refs.side1.toggleCollapse()
|
|
|
this.$EventBus.$emit('onCollapseChange', this.isCollapsed)
|
|
|
},
|
|
|
- getSystemLevel () {
|
|
|
+ getSystemLevel() {
|
|
|
if (this.$store.state.userInfo.hasSchool) {
|
|
|
// let prodInfo = this.$store.state.user?.schoolProfile?.svcStatus || {}
|
|
|
// console.log(this.$store.state.user, '版本')
|
|
@@ -232,19 +232,19 @@ export default {
|
|
|
this.hasAnalysisAuth = this.getAnalysisAuth()
|
|
|
}
|
|
|
},
|
|
|
- getAnalysisAuth () {
|
|
|
+ getAnalysisAuth() {
|
|
|
const proInfo = this.$store.state.user?.schoolProfile?.svcStatus || null
|
|
|
console.log(proInfo)
|
|
|
return proInfo && proInfo.YMPCVCIM
|
|
|
},
|
|
|
//获取快速登录的code
|
|
|
- getLoginCode () {
|
|
|
+ getLoginCode() {
|
|
|
this.isLoading = true
|
|
|
let idToken = localStorage.getItem('id_token')
|
|
|
return this.$api.login.getCode(idToken)
|
|
|
},
|
|
|
//教师个人跳转苏格拉底
|
|
|
- toPrivSokrate () {
|
|
|
+ toPrivSokrate() {
|
|
|
this.getLoginCode().then(
|
|
|
res => {
|
|
|
this.loginCode = res.code
|
|
@@ -256,7 +256,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//教师个人跳转苏格拉底
|
|
|
- toSchoolSokrate () {
|
|
|
+ toSchoolSokrate() {
|
|
|
this.getLoginCode().then(
|
|
|
res => {
|
|
|
this.loginCode = res.code
|
|
@@ -267,7 +267,7 @@ export default {
|
|
|
this.isLoading = false
|
|
|
})
|
|
|
},
|
|
|
- menuClick (menu) {
|
|
|
+ menuClick(menu) {
|
|
|
if (menu.router == '#') {
|
|
|
if (menu.to === 'privSokrate') {
|
|
|
this.toPrivSokrate()
|
|
@@ -277,7 +277,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
/* 刷新艺术评测授权 */
|
|
|
- refreshArtAuth () {
|
|
|
+ refreshArtAuth() {
|
|
|
let schoolCode = this.$store.state.userInfo.schoolCode
|
|
|
let schoolProfile = JSON.parse(decodeURIComponent(localStorage.school_profile || '{}', "utf-8"))
|
|
|
let schoolArt = schoolProfile.schoolShows?.find(item => item.code == schoolCode && item.status === 1 && item.type === 'art')
|
|
@@ -285,12 +285,12 @@ export default {
|
|
|
//this.schoolVersion()
|
|
|
},
|
|
|
/* 切换学校回调 */
|
|
|
- onSchoolChange (val) {
|
|
|
+ onSchoolChange(val) {
|
|
|
this.refreshArtAuth()
|
|
|
this.getSystemLevel()
|
|
|
},
|
|
|
//判断学校版本是否过期
|
|
|
- schoolVersion () {
|
|
|
+ schoolVersion() {
|
|
|
// let nowEdition = this.$store.state.user?.schoolProfile?.school_base
|
|
|
// this.versionsPast = nowEdition.edition.record !== nowEdition.edition.current ? false : true
|
|
|
}
|
|
@@ -300,10 +300,10 @@ export default {
|
|
|
isHeadmaster: 'isHeadmaster',
|
|
|
curSiteConfig: 'config/getCurSiteConfig',
|
|
|
}),
|
|
|
- rotateIcon () {
|
|
|
+ rotateIcon() {
|
|
|
return ["collapse-icon", this.isCollapsed ? "rotate-icon" : ""]
|
|
|
},
|
|
|
- schoolStatusInfo () {
|
|
|
+ schoolStatusInfo() {
|
|
|
if (this.isCollapsed) {
|
|
|
return ''
|
|
|
} else {
|
|
@@ -323,7 +323,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- IES5Menu () {
|
|
|
+ IES5Menu() {
|
|
|
return !this.$jsFn.checkJinNiu() && !this.$jsFn.checkTrain()
|
|
|
},
|
|
|
// isShowArtMenu() {
|
|
@@ -334,24 +334,24 @@ export default {
|
|
|
// return (!!schoolArt && this.IES5Menu && this.$store.state.config.srvAdr == 'China') || this.$store.state.config.srvAdrType === 'test'
|
|
|
// },
|
|
|
// 是否有查看学生看板权限
|
|
|
- hasDashAuth () {
|
|
|
+ hasDashAuth() {
|
|
|
let authSchArr = ['habook', 'ydzt', 'cdydzt', 'hbcn', 'xajkbx', 'xcfx', 'pclxxx', 'xcsyxx']
|
|
|
return window.location.host.includes('test.teammodel') || authSchArr.includes(this.$store.state.userInfo.schoolCode)
|
|
|
},
|
|
|
- isGlobalSite () {
|
|
|
+ isGlobalSite() {
|
|
|
return this.$store.state.config.srvAdr !== 'China'
|
|
|
},
|
|
|
/* 是否开启课堂记录管理开关 */
|
|
|
- isOpenLessonRecord () {
|
|
|
+ isOpenLessonRecord() {
|
|
|
return this.$store.state.user.schoolProfile.school_base?.openLessonRecord
|
|
|
},
|
|
|
- jinniuMenu () {
|
|
|
+ jinniuMenu() {
|
|
|
return this.$jsFn.checkJinNiu()
|
|
|
},
|
|
|
- trainMenu () {
|
|
|
+ trainMenu() {
|
|
|
return this.$jsFn.checkTrain()
|
|
|
},
|
|
|
- schoolMenu () {
|
|
|
+ schoolMenu() {
|
|
|
let data = !this.$store.state.userInfo.schoolPay ? [
|
|
|
//数据看板
|
|
|
{
|
|
@@ -807,7 +807,7 @@ export default {
|
|
|
] : []
|
|
|
return data
|
|
|
},
|
|
|
- teacherMenu () {
|
|
|
+ teacherMenu() {
|
|
|
let data = [
|
|
|
|
|
|
// 我的课程
|
|
@@ -1078,7 +1078,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
},
|
|
|
- created () {
|
|
|
+ created() {
|
|
|
let cloudSetting = localStorage.getItem('cloudSetting')
|
|
|
if (cloudSetting) {
|
|
|
cloudSetting = JSON.parse(cloudSetting)
|
|
@@ -1089,7 +1089,7 @@ export default {
|
|
|
this.isShowLogo = cloudSetting.logoStatus === 'open'
|
|
|
}
|
|
|
},
|
|
|
- mounted () {
|
|
|
+ mounted() {
|
|
|
this.refreshArtAuth()
|
|
|
this.$EventBus.$off('onLogoStatusChange')
|
|
|
this.$EventBus.$on('onLogoStatusChange', val => {
|
|
@@ -1099,7 +1099,7 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
$route: {
|
|
|
- handler (val, oldval) {
|
|
|
+ handler(val, oldval) {
|
|
|
this.getSystemLevel()
|
|
|
let metaName = val.meta.activeName
|
|
|
this.activeName = metaName
|
|
@@ -1134,7 +1134,7 @@ export default {
|
|
|
},
|
|
|
'$i18n.locale': {
|
|
|
immediate: true,
|
|
|
- handler (n, o) {
|
|
|
+ handler(n, o) {
|
|
|
this.getSystemLevel()
|
|
|
}
|
|
|
}
|