chao 1 gadu atpakaļ
vecāks
revīzija
f189faafe2

+ 1 - 1
dist/assets/Details-wN4vK5dj.js → dist/assets/Details-5lVm_QIX.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-vaqoWSCO.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-SCtEEuXM.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};

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/assets/admin-b9dDym0Y.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/assets/index-SCtEEuXM.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/assets/index-vhyFX6Iz.css


+ 2 - 2
dist/index.html

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

+ 14 - 17
src/components/main/courseSelect.vue

@@ -282,14 +282,13 @@ const openCourseDetail = (id) => {
   top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseSz", [id], function (res) {
     console.log(res)
     if (res.value[0].length > 0) {
-      let isSave = res.value[0].filter(x => {
-        return x.courseId == id
-      })
-      if (isSave.length > 0) {
-        top.U.MD.D.I.openInApplication("studyDetail", id, 2, user.user.type); //这个是打开指定的课程接口
-      } else {
-        updateCourseId(id,"openCourseDetail")
-      }
+      // let isSave = res.value[0].filter(x => {
+      //   return x.courseId == id
+      // })
+      //这个是打开指定的课程接口
+      top.U.MD.D.I.openInApplication("studyDetail", id, 2, user.user.type); 
+    }else{
+      updateCourseId(id, "openCourseDetail")
     }
   }, [], { "type": "POST", "withCredentials": true });
 
@@ -299,14 +298,12 @@ const updateCourse = id => {
   top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseSz", [id], function (res) {
     console.log(res)
     if (res.value[0].length > 0) {
-      let isSave = res.value[0].filter(x => {
-        return x.courseId == id
-      })
-      if (isSave.length > 0) {
-        top.U.MD.D.I.openInApplication('openCourseUpdate', id); //这个是打开指定的课程接口
-      } else {
-        updateCourseId(id,"updateCourse")
-      }
+      // let isSave = res.value[0].filter(x => {
+      //   return x.courseId == id
+      // })
+      top.U.MD.D.I.openInApplication('openCourseUpdate', id); //这个是打开指定的课程接口
+    } else {
+      updateCourseId(id, "updateCourse")
     }
   }, [], { "type": "POST", "withCredentials": true });
   // top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/copyCourseSz", [id, user.user.userid], function (res) {
@@ -317,7 +314,7 @@ const updateCourse = id => {
   // }, [], { "type": "POST", "withCredentials": true });
 }
 
-const updateCourseId = (id,type) => {
+const updateCourseId = (id, type) => {
   top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/copyCourseSz", [id, user.user.userid], function (res) {
     console.log(res)
     if (res.value[0][0].courseId != "") {

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels