chao 1 jaar geleden
bovenliggende
commit
c2e5bacce9

+ 1 - 1
dist/assets/Details-9m2QlH52.js → dist/assets/Details-TlJpzRQT.js

@@ -1 +1 @@
-import{u as m,r as i,o as p,a as l,b as a,c as b,d as t,w as s,F as f,H as h,e as n,t as k,f as v,g,h as r,i as y,C,j as x,P as B,k as N}from"./index-tmf9KnCG.js";const V={class:"iframDiv"},P={__name:"Details",setup(D){const{query:u,params:o}=m();console.log(u,o);const e=i("");return p(()=>{e.value=o.title}),(w,F)=>{const c=l("el-breadcrumb-item"),_=l("el-breadcrumb"),d=l("el-page-header");return a(),b(f,null,[t(h),t(d,null,{breadcrumb:s(()=>[t(_,{separator:"/"},{default:s(()=>[t(c,{to:{path:"/"}},{default:s(()=>[n(" 首页 ")]),_:1}),t(c,null,{default:s(()=>[n(k(v(o).title),1)]),_:1})]),_:1})]),default:s(()=>[g("div",V,[e.value=="课程列表"?(a(),r(C,{key:0})):e.value=="资源中心"?(a(),r(x,{key:1})):e.value=="实践中心"?(a(),r(B,{key:2})):e.value=="其他课程资源"?(a(),r(N,{key:3})):y("",!0)])]),_:1})],64)}}};export{P as default};
+import{u as m,r as i,o as p,a as l,b as a,c as b,d as t,w as s,F as f,H as h,e as n,t as k,f as v,g,h as r,i as y,C,j as x,P as B,k as N}from"./index-EEup708r.js";const V={class:"iframDiv"},P={__name:"Details",setup(D){const{query:u,params:o}=m();console.log(u,o);const e=i("");return p(()=>{e.value=o.title}),(w,F)=>{const c=l("el-breadcrumb-item"),_=l("el-breadcrumb"),d=l("el-page-header");return a(),b(f,null,[t(h),t(d,null,{breadcrumb:s(()=>[t(_,{separator:"/"},{default:s(()=>[t(c,{to:{path:"/"}},{default:s(()=>[n(" 首页 ")]),_:1}),t(c,null,{default:s(()=>[n(k(v(o).title),1)]),_:1})]),_:1})]),default:s(()=>[g("div",V,[e.value=="课程列表"?(a(),r(C,{key:0})):e.value=="资源中心"?(a(),r(x,{key:1})):e.value=="实践中心"?(a(),r(B,{key:2})):e.value=="其他课程资源"?(a(),r(N,{key:3})):y("",!0)])]),_:1})],64)}}};export{P as default};

File diff suppressed because it is too large
+ 0 - 0
dist/assets/admin-UyyBpv7R.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-EEup708r.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-El7xtwbz.css


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-tmf9KnCG.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-4Ye9nnBo.css">
+    <script type="module" crossorigin src="./assets/index-EEup708r.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-El7xtwbz.css">
   </head>
   <body>
     <div id="app"></div>

+ 5 - 5
src/components/header/headerRight.vue

@@ -23,9 +23,9 @@
 
 <script setup>
 import { ref, onMounted, watchEffect } from "vue"
-import { userCurrentRole } from '../../stores/counter'
+import { userCurrentRole,userInfoStore } from '../../stores/counter'
 
-// const user = userInfoStore()
+const user = userInfoStore()
 const isLogin = ref(false)
 const admin = ref(false)
 const userName = ref('')
@@ -46,10 +46,10 @@ const goBack=()=>{
 
 watchEffect(() => {
     // console.log(user, 2222222222)
-    if (JSON.stringify(top.US.userInfo) != "{}") {
+    if (JSON.stringify(user.user) != "{}") {
         isLogin.value = true
-        userName.value = top.US.userInfo.username
-        if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || top.US.userInfo.type != 2) {
+        userName.value = user.user.username
+        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
         }
     }

+ 6 - 6
src/components/main/courseSelect.vue

@@ -68,7 +68,7 @@
 </template>
 <script setup>
 import { ref, onMounted, watchEffect } from 'vue';
-import { userCurrentRole } from '../../stores/counter'
+import { userCurrentRole,userInfoStore } from '../../stores/counter'
 import WarningImg from '@/assets/icon/icon.png'
 import san1 from '../../assets/img/三下1.png'
 import san2 from '@/assets/img/三下2.png'
@@ -95,7 +95,7 @@ import ba2 from '@/assets/img/八下2.png'
 import ba3 from '@/assets/img/八下3.png'
 import ba4 from '@/assets/img/八下4.png'
 
-// const user = userInfoStore()
+const user = userInfoStore()
 const CurrentRole = userCurrentRole()
 const selectGrand = ref('三年级')
 const isupdateCourse = ref(false)
@@ -277,8 +277,8 @@ const getImageUrl = (url) => {
 }
 
 const openCourseDetail = (id) => {
-  console.log(top.US.userInfo.type)
-  top.U.MD.D.I.openInApplication("studyDetail", id, 2, top.US.userInfo.type); //这个是打开指定的课程接口
+  console.log(user.user)
+  top.U.MD.D.I.openInApplication("studyDetail", id, 2, user.user.type); //这个是打开指定的课程接口
 }
 const updateCourse = id => {
   top.U.MD.D.I.openInApplication('openCourseUpdate', id)
@@ -294,8 +294,8 @@ const updateReduction = () => {
 }
 
 watchEffect(() => {
-  if (JSON.stringify(top.US.userInfo) != "{}") {
-    if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || top.US.userInfo.type != 2) {
+  if (JSON.stringify(user.user) != "{}") {
+    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
     }
   }

+ 6 - 6
src/components/main/other.vue

@@ -31,13 +31,13 @@ import { ref,onMounted } from 'vue';
 import Img1 from '@/assets/icon/课程管理.png'
 import Img2 from '@/assets/icon/课程中心.png'
 import Img3 from '@/assets/icon/学生评价icon.png'
-// import { userInfoStore } from '@/stores/counter'
+import { userInfoStore } from '@/stores/counter'
 
-// const InfoStore = userInfoStore()
+const InfoStore = userInfoStore()
 const Identity = ref(0)
 onMounted(() => {
-  if(top.US.userInfo && top.US.userInfo.type){
-    Identity.value = top.US.userInfo.type
+  if(InfoStore.user && InfoStore.user.type){
+    Identity.value = InfoStore.user.type
   }
 })
 
@@ -45,9 +45,9 @@ const openApplication = (type) => {
   console.log(type,Identity)
   if(type == "study"){
     if(Identity.value == 1){
-      top.U.MD.D.I.openApplication('studentStudy')
-    }else{
       top.U.MD.D.I.openApplication('study')
+    }else{
+      top.U.MD.D.I.openApplication('studentStudy')
     }
   }else{
     top.U.MD.D.I.openApplication(type)

+ 4 - 4
src/views/main.vue

@@ -20,18 +20,18 @@ import Practice from '@/components/main/Practice.vue';
 import other from '@/components/main/other.vue';
 import Edu from '@/components/main/edu.vue';
 import Header from './header.vue'
-import { userCurrentRole } from '../stores/counter'
+import { userCurrentRole,userInfoStore } from '../stores/counter'
 
-// const user = userInfoStore()
+const user = userInfoStore()
 const CurrentRole = userCurrentRole()
 const isupdateCourse = ref(false)
 const isLogin = ref(false)
 
 watchEffect(() => {
   // console.log('111111111111',CurrentRole, user.user)
-  if (JSON.stringify(top.US.userInfo.type) != "{}") {
+  if (JSON.stringify(user.user) != "{}") {
     isLogin.value = true
-    if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || top.US.userInfo.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
     }
   }

Some files were not shown because too many files changed in this diff