chao 1 vuosi sitten
vanhempi
commit
10178c1b92

+ 1 - 1
dist/assets/Details-1zv060rj.js → dist/assets/Details-xacRvOIg.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-2hlOU_93.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-WYjS0oO3.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};

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/assets/admin-HmUg5JMI.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/assets/index-Ttc6Xwp3.css


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/assets/index-WYjS0oO3.js


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-2hlOU_93.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-9JTwdt6Z.css">
+    <script type="module" crossorigin src="./assets/index-WYjS0oO3.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-Ttc6Xwp3.css">
   </head>
   <body>
     <div id="app"></div>

+ 13 - 3
src/components/main/courseSelect.vue

@@ -68,7 +68,7 @@
 </template>
 <script setup>
 import { ref, onMounted, watchEffect } from 'vue';
-import { userCurrentRole,userInfoStore } 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'
@@ -281,7 +281,13 @@ const openCourseDetail = (id) => {
   top.U.MD.D.I.openInApplication("studyDetail", id, 2, user.user.type); //这个是打开指定的课程接口
 }
 const updateCourse = id => {
-  top.U.MD.D.I.openInApplication('openCourseUpdate', id)
+  // 会返回courseId和state 两个参数  然后打开
+  top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/copyCourseSz", [id,user.user.userid], function (res) {
+    console.log(res.data)
+    if (res.state == 1) {
+      top.U.MD.D.I.openInApplication('openCourseUpdate', id)
+    }
+   }, [], { "type": "POST", "withCredentials": true });  
 }
 
 const ReductionCourse = id => {
@@ -290,6 +296,9 @@ const ReductionCourse = id => {
 }
 
 const updateReduction = () => {
+  top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/revertCourseSz", [id], function (res) {
+    console.log(res,"还原")
+  }, [], { "type": "POST", "withCredentials": true });
 
 }
 
@@ -381,7 +390,8 @@ watchEffect(() => {
 .el-col {
   border-radius: 4px;
 }
-.warning_text{
+
+.warning_text {
   font-weight: bold;
   font-size: 16px;
   color: rgba(0, 0, 0, 0.9);

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä