chao 5 روز پیش
والد
کامیت
f3714e2e21

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/assets/Details-qS1xNHJR.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/assets/admin-fTZTCp2c.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/assets/index-FPenpgfD.css


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/assets/index-Iwk5vvhN.js


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index--TgseQBA.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-JRpAhXPr.css">
+    <script type="module" crossorigin src="./assets/index-Iwk5vvhN.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-FPenpgfD.css">
   </head>
   <body>
     <div id="app"></div>

+ 2 - 3
src/components/header/headerRight.vue

@@ -4,11 +4,10 @@
             <el-button @click="goBack()">返回深教AI首页</el-button>
         </div>
         <div v-if="isLogin" class="loginAdmin">
-            <div v-if="admin">
+            <!-- <div v-if="admin">
                 <img src="" alt="">
-                <!-- <span>管理后台</span> -->
                 <router-link to="" @click="adminClick()"><span>管理后台</span></router-link>
-            </div>
+            </div> -->
             <div style="min-width: 100px;">
                 <img src="" alt="">
                 <span style="cursor: pointer;" class="dropdownMenu" @click="userInfoShow = true">{{ userName }}</span>

+ 19 - 12
src/views/main.vue

@@ -9,7 +9,8 @@
         <div :class="activeIndex == 5 ? 'container-left-top active' : 'container-left-top'" @click="clickSwitch(5)">
           <img class="icon-img" :src="activeIndex == 5 ? img1 : img11" alt="教学中心" />学生评价
         </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="教学中心" />管理后台
         </div>
         <div class="container-left-top" @click="dialogVisible = !dialogVisible">
@@ -35,7 +36,7 @@
             </div>
           </div>
         </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">
           <img :src="shows" alt="">
         </div>
@@ -50,10 +51,10 @@
         <Edu v-if="!isLogin"></Edu>
         <Feedback></Feedback>
       </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>
       </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>
         <el-dialog v-model="iframeRef2Dialog" width="450" @close="clickSwitch(1)">
           <template #header="{ }">
@@ -74,10 +75,10 @@
 
         </el-dialog>
       </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>
       </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>
       </div>
     </div>
@@ -120,14 +121,15 @@ const iframeRef2Url = ref('')
 const iframeRef1Url4 = ref('')
 const iframeRef2Dialog = ref(false)
 const leftShow = ref(false)
+const admin = ref(false)
 
 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(() => {
@@ -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) {
       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;
       background-color: #fff;
       height: 35px;
+      z-index: 99;
     }
   }
 

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است