chao 1 ano atrás
pai
commit
f29fbea823

+ 1 - 1
dist/assets/Details-41NU6VUd.js → dist/assets/Details-heQhPuvB.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-gad_XWID.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-4jx9kIfH.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};

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/admin-VNUoAuSl.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index-4jx9kIfH.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index-Mj8Xjfq5.css


+ 2 - 2
dist/index.html

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

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

@@ -401,37 +401,37 @@ const updateReduction = () => {
 
 const getDate = async (id) => {
   // currentData
-  // let dataList = []
-  // let m = currentData.value
-  // await top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/selectCourseDetailSz", [id], function (res) {
-  //   console.log(res)
-  //   if (res.value[0].length > 0 && res.value[0][0].chapters.length > 0) {
-  //     let datachapters = JSON.parse(res.value[0][0].chapters)
-  //     for (let i = 0; i < datachapters.length; i++) {
-  //       let data = datachapters[i]
-  //       for (let j = 0; j < data.chapterInfo.length; j++) {
-  //         let dataChapterInfo = data.chapterInfo[j]
-  //         for (let k = 0; k < dataChapterInfo.taskJson.length; k++) {
-  //           let DatahapterData = dataChapterInfo.taskJson[k]
-  //           for (let l = 0; l < DatahapterData.chapterData.length; l++) {
-  //             let obj = DatahapterData.chapterData[l]
-  //             // let obj = chapterDatas
-  //             obj.checked = false
-  //             dataList.push(obj)
-  //           }
-  //         }
-  //       }
-  //     }
-  //   }
-  // }, [], { "type": "POST", "withCredentials": true });
-
-  // await m.xia.map(x => {
-  //   if (x.id == id) {
-  //     x.dataList = dataList
-  //   }
-  //   return x
-  // })
-  // currentData.value = m
+  let dataList = []
+  let m = currentData.value
+  await top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/selectCourseDetailSz", [id], function (res) {
+    console.log(res)
+    if (res.value[0].length > 0 && res.value[0][0].chapters.length > 0) {
+      let datachapters = JSON.parse(res.value[0][0].chapters)
+      for (let i = 0; i < datachapters.length; i++) {
+        let data = datachapters[i]
+        for (let j = 0; j < data.chapterInfo.length; j++) {
+          let dataChapterInfo = data.chapterInfo[j]
+          for (let k = 0; k < dataChapterInfo.taskJson.length; k++) {
+            let DatahapterData = dataChapterInfo.taskJson[k]
+            for (let l = 0; l < DatahapterData.chapterData.length; l++) {
+              let obj = DatahapterData.chapterData[l]
+              // let obj = chapterDatas
+              obj.checked = false
+              dataList.push(obj)
+            }
+          }
+        }
+      }
+    }
+  }, [], { "type": "POST", "withCredentials": true });
+
+  await m.xia.map(x => {
+    if (x.id == id) {
+      x.dataList = dataList
+    }
+    return x
+  })
+  currentData.value = m
   // console.log("currentData", currentData)
 }
 

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff