|
@@ -9,7 +9,8 @@
|
|
<div :class="activeIndex == 5 ? 'container-left-top active' : 'container-left-top'" @click="clickSwitch(5)">
|
|
<div :class="activeIndex == 5 ? 'container-left-top active' : 'container-left-top'" @click="clickSwitch(5)">
|
|
<img class="icon-img" :src="activeIndex == 5 ? img1 : img11" alt="教学中心" />学生评价
|
|
<img class="icon-img" :src="activeIndex == 5 ? img1 : img11" alt="教学中心" />学生评价
|
|
</div>
|
|
</div>
|
|
- <div :class="activeIndex == 6 ? 'container-left-top active' : 'container-left-top'" @click="clickSwitch(6)">
|
|
|
|
|
|
+ <div v-if="admin" :class="activeIndex == 6 ? 'container-left-top active' : 'container-left-top'"
|
|
|
|
+ @click="clickSwitch(6)">
|
|
<img class="icon-img" :src="activeIndex == 6 ? img1 : img11" alt="教学中心" />管理后台
|
|
<img class="icon-img" :src="activeIndex == 6 ? img1 : img11" alt="教学中心" />管理后台
|
|
</div>
|
|
</div>
|
|
<div class="container-left-top" @click="dialogVisible = !dialogVisible">
|
|
<div class="container-left-top" @click="dialogVisible = !dialogVisible">
|
|
@@ -35,7 +36,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</transition>
|
|
</transition>
|
|
- <div class="container-left-show" :style="leftShow ? { width: '35px' } : { width: '240px' }"
|
|
|
|
|
|
+ <div class="container-left-show" :style="leftShow ? { width: '35px' } : { width: '229px' }"
|
|
@click="leftShow = !leftShow">
|
|
@click="leftShow = !leftShow">
|
|
<img :src="shows" alt="">
|
|
<img :src="shows" alt="">
|
|
</div>
|
|
</div>
|
|
@@ -50,10 +51,10 @@
|
|
<Edu v-if="!isLogin"></Edu>
|
|
<Edu v-if="!isLogin"></Edu>
|
|
<Feedback></Feedback>
|
|
<Feedback></Feedback>
|
|
</div>
|
|
</div>
|
|
- <div class="iframe" v-else-if="activeIndex == 1" v-loading="loading">
|
|
|
|
|
|
+ <div class="iframe" :style="leftShow ? { width: '100%' } : ''" v-else-if="activeIndex == 1" v-loading="loading">
|
|
<iframe ref="iframeRef1" :src="iframeRef1Url" frameborder="0"></iframe>
|
|
<iframe ref="iframeRef1" :src="iframeRef1Url" frameborder="0"></iframe>
|
|
</div>
|
|
</div>
|
|
- <div class="iframe" v-else-if="activeIndex == 2" v-loading="loading">
|
|
|
|
|
|
+ <div class="iframe" :style="leftShow ? { width: '100%' } : ''" v-else-if="activeIndex == 2" v-loading="loading">
|
|
<iframe ref="iframeRef2" :src="iframeRef2Url" frameborder="0"></iframe>
|
|
<iframe ref="iframeRef2" :src="iframeRef2Url" frameborder="0"></iframe>
|
|
<el-dialog v-model="iframeRef2Dialog" width="450" @close="clickSwitch(1)">
|
|
<el-dialog v-model="iframeRef2Dialog" width="450" @close="clickSwitch(1)">
|
|
<template #header="{ }">
|
|
<template #header="{ }">
|
|
@@ -74,10 +75,10 @@
|
|
|
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
- <div class="iframe" v-else-if="activeIndex == 3" v-loading="loading">
|
|
|
|
|
|
+ <div class="iframe" :style="leftShow ? { width: '100%' } : ''" v-else-if="activeIndex == 3" v-loading="loading">
|
|
<iframe ref="iframeRef" src="//app.cocorobo.cn/#/appSelection" frameborder="0"></iframe>
|
|
<iframe ref="iframeRef" src="//app.cocorobo.cn/#/appSelection" frameborder="0"></iframe>
|
|
</div>
|
|
</div>
|
|
- <div class="iframe" v-else v-loading="loading">
|
|
|
|
|
|
+ <div class="iframe" :style="leftShow ? { width: '100%' } : ''" v-else v-loading="loading">
|
|
<iframe ref="iframeRef4" :src="iframeRef1Url4" frameborder="0"></iframe>
|
|
<iframe ref="iframeRef4" :src="iframeRef1Url4" frameborder="0"></iframe>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -120,14 +121,15 @@ const iframeRef2Url = ref('')
|
|
const iframeRef1Url4 = ref('')
|
|
const iframeRef1Url4 = ref('')
|
|
const iframeRef2Dialog = ref(false)
|
|
const iframeRef2Dialog = ref(false)
|
|
const leftShow = ref(false)
|
|
const leftShow = ref(false)
|
|
|
|
+const admin = ref(false)
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
- let timer = setInterval(() => {
|
|
|
|
- if (JSON.stringify(user.user) != "{}") {
|
|
|
|
- clickSwitch(1)
|
|
|
|
- clearInterval(timer)
|
|
|
|
- }
|
|
|
|
- }, 10);
|
|
|
|
|
|
+ // let timer = setInterval(() => {
|
|
|
|
+ // if (JSON.stringify(user.user) != "{}") {
|
|
|
|
+ // clickSwitch(1)
|
|
|
|
+ // clearInterval(timer)
|
|
|
|
+ // }
|
|
|
|
+ // }, 10);
|
|
})
|
|
})
|
|
|
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
@@ -137,6 +139,10 @@ watchEffect(() => {
|
|
if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || user.user.type != 2) {
|
|
if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || user.user.type != 2) {
|
|
isupdateCourse.value = true
|
|
isupdateCourse.value = true
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || user.user.type != 2) {
|
|
|
|
+ admin.value = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -262,6 +268,7 @@ const show = () => {
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
height: 35px;
|
|
height: 35px;
|
|
|
|
+ z-index: 99;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|