chao 1 year ago
parent
commit
f749ea5971

+ 1 - 1
dist/assets/Details-yPxtfQ38.js → dist/assets/Details-Hgqn0iff.js

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

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


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


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


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


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-p3Av3nv7.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-aH6o5vsw.css">
+    <script type="module" crossorigin src="./assets/index-d5-QL9x2.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-NLJgAbb6.css">
   </head>
   <body>
     <div id="app"></div>

+ 4 - 1
src/App.vue

@@ -43,8 +43,8 @@ const linkLogin = () => {
 // 同步登录信息
 const userInfo = (data) => {
   let userIdentity = 2
+  CurrentRole.currentRole == data.currentRole
   if (data.currentRole == "areaAdministrator" || data.currentRole == "userAdministrator" || data.currentRole == "securityAuditor" || data.currentRole == "schoolAdministrator" || data.currentRole == "schoolSecurityAuditor" || data.currentRole == "teacher") {
-    CurrentRole.currentRole == data.currentRole
     userIdentity = 1
   }
   let userGrand = ""
@@ -61,11 +61,14 @@ const userInfo = (data) => {
     console.log(res, '222222222222')
 
     if (res.data && res.data[0][0].active == 1) {
+      store.userInfoEdu = res.data[0][0]
     } else {
       top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/batchRegistrationSzdjg", [data.userName, data.telephoneNumber + '@szdjg.com', '16ace517-b5c7-4168-a9bb-a9e0035df840', data.schoolName, data.telephoneNumber, userGrand, userIdentity, data.userId], function (r) {
         console.log('rrrrr', r)
         axios.post(`https://beta.api.cocorobo.cn/api/user`, qs.stringify(params)).then(d=>{
           console.log(d, 'ddddddd')
+          store.userInfoEdu = d.data[0][0]
+          
         })
       }, [], { "type": "POST", "withCredentials": true });
     }

+ 8 - 0
src/components/admin/adminLeft.vue

@@ -32,6 +32,14 @@ import TeacherImgSelect from '../../assets/img/jiaoshiSelect.png'
 const selectValue = ref(0)
 const getSelectionValue = val => {
     selectValue.value = val
+    // U.MD.D.I.openApplication('studentStudy') 学习中心
+    if(val == 0){
+
+    }else if(val == 1){
+        U.MD.D.I.openApplication('project')
+    }else if(val == 2){
+        U.MD.D.I.openInApplication('teacher') 
+    }
 }
 </script>
 <style lang="scss">

+ 2 - 1
src/components/main/courseSelect.vue

@@ -276,7 +276,8 @@ const getImageUrl = (url) => {
 }
 
 const openCourseDetail = (id) => {
-  top.U.MD.D.I.openInApplication("studyDetail", id, 2, 1); //这个是打开指定的课程接口
+  console.log(user.userInfoEdu.identity)
+  top.U.MD.D.I.openInApplication("studyDetail", id, 2, user.userInfoEdu.identity); //这个是打开指定的课程接口
 }
 const updateCourse = id => {
   top.U.MD.D.I.openInApplication('openCourseUpdate', id)

+ 5 - 5
src/views/admin.vue

@@ -14,14 +14,14 @@ const CurrentRole = userCurrentRole()
 //     console.log(e)
 // }
 onMounted(() => {
-    console.log(InfoStore, CurrentRole)
-    if(CurrentRole === 'userAdministrator'){
+    // U.MD.D.I.openInApplication('dataBoardSZCity') //市级数据看板
+    // U.MD.D.I.openInApplication('dataBoardSZArea') //区级数据看板
+    console.log(CurrentRole.currentRole)
+    if(CurrentRole.currentRole === 'userAdministrator'){
         U.MD.D.I.openInApplication('dataBoardSZCity')
-    }else if(CurrentRole === 'securityAuditor'){
+    }else if(CurrentRole.currentRole === 'securityAuditor'){
         U.MD.D.I.openInApplication('dataBoardSZArea')
     }
-    // U.MD.D.I.openInApplication('dataBoardSZCity') //市级数据看板
-    // U.MD.D.I.openInApplication('dataBoardSZArea') //区级数据看板
 })
 </script>
 

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