chao 1 tahun lalu
induk
melakukan
39f5272373

+ 1 - 1
dist/assets/Details-xacRvOIg.js → dist/assets/Details-LzBSGiFi.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-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};
+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-iTK-N516.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 ditekan karena terlalu besar
+ 0 - 0
dist/assets/admin-sIs3IYFi.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-f4UvLe-s.css


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-iTK-N516.js


+ 2 - 2
dist/index.html

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

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

@@ -21,7 +21,7 @@
               <div class="class_button" v-if="isupdateCourse">
                 <el-button
                   style="width: 30%;background: rgba(240, 242, 245, 1);color: rgba(0, 0, 0, 0.6);">还原</el-button>
-                <el-button style="width: 30%;background: #fff" @click="updateCourse(item.id)">修改</el-button>FF
+                <el-button style="width: 30%;background: #fff" @click="updateCourse(item.id)">修改</el-button>
                 <el-button class="el_button_active" @click="openCourseDetail(item.id)">查看</el-button>
               </div>
             </div>
@@ -283,9 +283,9 @@ const openCourseDetail = (id) => {
 const updateCourse = 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)
+    console.log(res)
+    if (res.value[0][0].courseId != "") {
+      top.U.MD.D.I.openInApplication('openCourseUpdate', res.value[0][0].courseId)
     }
    }, [], { "type": "POST", "withCredentials": true });  
 }
@@ -296,8 +296,9 @@ const ReductionCourse = id => {
 }
 
 const updateReduction = () => {
-  top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/revertCourseSz", [id], function (res) {
+  top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/revertCourseSz", [updateReductionId.value], function (res) {
     console.log(res,"还原")
+    dialogVisible.value = false
   }, [], { "type": "POST", "withCredentials": true });
 
 }

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini