chao 1 年之前
父节点
当前提交
3ef289c6e4

+ 1 - 1
dist/assets/Details-BCvM79bh.js → dist/assets/Details-C0yOnyky.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-3euI2r9E.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-UadmUdV5.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};

文件差异内容过多而无法显示
+ 0 - 0
dist/assets/admin-2y6Ng3cH.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-UadmUdV5.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-l1spDcXz.css


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-3euI2r9E.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-MDGjCpNF.css">
+    <script type="module" crossorigin src="./assets/index-UadmUdV5.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-l1spDcXz.css">
   </head>
   <body>
     <div id="app"></div>

+ 1 - 4
src/App.vue

@@ -11,7 +11,7 @@ const route = useRoute()
 const store = userInfoStore()
 const CurrentRole = userCurrentRole()
 const name = ref('')
-const isShow = ref(false)
+const isShow = ref(true)
 const setTimeState = ref(null)
 
 onMounted(() => {
@@ -170,9 +170,6 @@ const getUrlParam = (urlStr, urlKey) => {
   <div v-loading="isShow" style="height: 100%;">
     <router-view></router-view>
   </div>
-  <el-dialog>
-
-  </el-dialog>
   <!-- </keep-alive> -->
 </template>
 

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

@@ -322,8 +322,22 @@ const updateCourseId = (id, type) => {
 }
 
 const ReductionCourse = id => {
-  dialogVisible.value = true
-  updateReductionId.value = id
+  // updateReductionId.value = 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
+      // })
+      dialogVisible.value = true
+      updateReductionId.value = res.value[0][0].courseId
+    } else {
+      ElMessage({
+        message: '该课程就是最初课程,不能还原',
+        type: 'warning',
+      })
+    }
+  }, [], { "type": "POST", "withCredentials": true });
 }
 
 const updateReduction = () => {

部分文件因为文件数量过多而无法显示