11wqe1 39 минут назад
Родитель
Сommit
b2c24e43cf
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      src/views/main.vue

+ 13 - 0
src/views/main.vue

@@ -29,6 +29,10 @@
             <!-- <div :class="activeIndex == 10 ? 'container-left-top active' : 'container-left-top'" @click="clickSwitch(10)">
               数据看板
             </div> -->
+            <div v-if="user.user.organizeid == '9bd8fc13-2d59-11ef-80ee-005056b86db5'" :class="activeIndex == 11 ? 'container-left-top active' : 'container-left-top'"
+              @click="clickSwitch(11)">
+              coconote
+            </div>
           </div>
         </transition>
         <div class="container-left-top" @click="dialogVisible = !dialogVisible">
@@ -289,6 +293,15 @@ const clickSwitch = (index) => {
       }
       loading.value = false
     }, 100)
+  }else if (index == 11 && activeIndex.value != 11) {
+    loading.value = true
+    iframeRef1Url4.value = `https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/synergyCourse?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&role=${user.user.role}`
+    setTimeout(() => {
+      iframeRef4.value.onload = () => {
+        loading.value = false
+      }
+      loading.value = false
+    }, 100)
   }
   activeIndex.value = index
 }