|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div style="height:100%">
|
|
|
<Header></Header>
|
|
|
- <div class="container" v-if="isLogin">
|
|
|
+ <div class="container" v-if="isLogin" >
|
|
|
<div class="container-left" :style="leftShow ? {width:0}:{width:'240px'}">
|
|
|
<div :class="activeIndex == 0 ? 'container-left-top active' : 'container-left-top'" @click="activeIndex = 0">
|
|
|
<img class="icon-img" :src="activeIndex == 0 ? img1 : img11" alt="教学中心" />教学中心
|
|
@@ -92,7 +92,7 @@ const user = userInfoStore()
|
|
|
const CurrentRole = userCurrentRole()
|
|
|
const isupdateCourse = ref(false)
|
|
|
const isLogin = ref(false)
|
|
|
-const activeIndex = ref(1)
|
|
|
+const activeIndex = ref(0)
|
|
|
const dialogVisible = ref(true)
|
|
|
const iframeRef = ref(null)
|
|
|
const iframeRef1 = ref(null)
|
|
@@ -105,7 +105,6 @@ const leftShow = ref(false)
|
|
|
|
|
|
onMounted(() => {
|
|
|
let timer = setInterval(() => {
|
|
|
- console.log('111111111111',user.user)
|
|
|
if(JSON.stringify(user.user) != "{}") {
|
|
|
clickSwitch(1)
|
|
|
clearInterval(timer)
|
|
@@ -124,8 +123,8 @@ watchEffect(() => {
|
|
|
})
|
|
|
|
|
|
const clickSwitch = (index) => {
|
|
|
- activeIndex.value = index
|
|
|
- if (index == 1) {
|
|
|
+ console.log('clickSwitch', activeIndex.value)
|
|
|
+ if (index == 1 && activeIndex.value != 1) {
|
|
|
loading.value = true
|
|
|
iframeRef1Url.value = `//app.cocorobo.cn/#/appManagement?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&role=${user.user.role}`
|
|
|
setTimeout(() => {
|
|
@@ -133,23 +132,23 @@ const clickSwitch = (index) => {
|
|
|
loading.value = false
|
|
|
}
|
|
|
}, 10)
|
|
|
- } else if (index == 3) {
|
|
|
+ } else if (index == 3 && activeIndex.value != 3) {
|
|
|
loading.value = true
|
|
|
setTimeout(() => {
|
|
|
iframeRef.value.onload = () => {
|
|
|
loading.value = false
|
|
|
}
|
|
|
}, 10)
|
|
|
- } else if (index == 2) {
|
|
|
+ } else if (index == 2 && activeIndex.value != 2) {
|
|
|
loading.value = true
|
|
|
iframeRef2Url.value = `//app.cocorobo.cn/#/AppList?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&role=${user.user.role}`
|
|
|
- console.log(iframeRef2Url.value)
|
|
|
setTimeout(() => {
|
|
|
iframeRef2.value.onload = () => {
|
|
|
loading.value = false
|
|
|
}
|
|
|
}, 10)
|
|
|
}
|
|
|
+ activeIndex.value = index
|
|
|
}
|
|
|
|
|
|
const copyEmail = () => {
|