chao 1 년 전
부모
커밋
18b53ac739
7개의 변경된 파일39개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 1
      dist/assets/Details-T6swZlU3.js
  2. 0 0
      dist/assets/admin-rDFFSMNo.js
  3. 0 0
      dist/assets/index-01GaKMiU.js
  4. 0 0
      dist/assets/index-PTDmxsC8.css
  5. 2 2
      dist/index.html
  6. 1 1
      src/App.vue
  7. 35 6
      src/components/main/courseSelect.vue

+ 1 - 1
dist/assets/Details-_LE5O32B.js → dist/assets/Details-T6swZlU3.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-sec0IVI6.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-01GaKMiU.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-rDFFSMNo.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/assets/index-01GaKMiU.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/assets/index-PTDmxsC8.css


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-sec0IVI6.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-BkStkFwl.css">
+    <script type="module" crossorigin src="./assets/index-01GaKMiU.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-PTDmxsC8.css">
   </head>
   <body>
     <div id="app"></div>

+ 1 - 1
src/App.vue

@@ -11,7 +11,7 @@ const route = useRoute()
 const store = userInfoStore()
 const CurrentRole = userCurrentRole()
 const name = ref('')
-const isShow = ref(true)
+const isShow = ref(false)
 const setTimeState = ref(null)
 
 onMounted(() => {

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

@@ -37,10 +37,10 @@
                         <span style="display: inline-block;width: 130px;" :title="dataitem.name">{{
                           dataitem.name.length > 10 ?
                             dataitem.name.substring(0, 8) + '...' : dataitem.name }}</span>
-                        <a :href="dataitem.url" :download="dataitem.name" v-if="!checked1" class="el_popover_a"
-                          style="position: relative;left: 20px;top: 5px;">
+                        <span v-if="!checked1" class="el_popover_a" style="position: relative;left: 20px;top: 5px;"
+                          @click="downloadOne(dataitem.url, dataitem.name)">
                           <img :src="DownloadImg" alt="">
-                        </a>
+                        </span>
                         <el-checkbox v-if="checked1" v-model="dataitem.checked" label="全选" size="large" />
                       </div>
                       <el-button style="margin-top: 10px;" v-if="checked1"
@@ -171,6 +171,7 @@ const dialogVisible = ref(false)
 const updateReductionId = ref("")
 const checked1 = ref(false)
 const visible = ref(false)
+const getUpdateCourseId = ref("")
 
 const courseData = {
   "三年级": {
@@ -375,6 +376,7 @@ const getImageUrl = (url) => {
 
 const openCourseDetail = (id) => {
   console.log(user.user)
+  getTimeCourse(id)
   // 会返回复制得课程
   top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", [id, user.user.userid], function (res) {
     console.log(res)
@@ -390,6 +392,17 @@ const openCourseDetail = (id) => {
   }, [], { "type": "POST", "withCredentials": true });
 
 }
+const getTimeCourse = (id) => {
+  try {
+    setInterval(() => {
+      top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/addOperationTimeT", [user.user.userid, id, '5', 30], function (res) {
+        console.log(res, "22222222222222222");
+      }, [], { "type": "POST", "withCredentials": true });
+    }, 30000)
+  } catch (e) {
+    console.log(e)
+  }
+}
 const updateCourse = id => {
   // 会返回courseId和state 两个参数  然后打开
   top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/getcopyCourseByUseridSz", [id, user.user.userid], function (res) {
@@ -477,6 +490,7 @@ const getDate = async (id) => {
     return x
   })
   currentData.value = m
+  getUpdateCourseId.value = id
   // console.log("currentData", currentData)
 }
 
@@ -496,7 +510,15 @@ const checkedAll = (id) => {
   // checked1.value = true
 }
 
-const download = (url, fileName) => {
+const downloadOne = (url, fileName) => {
+  try {
+    console.log("urls", [user.user.userid, getUpdateCourseId.value, '4', 1])
+    top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/addOperationTimeT", [user.user.userid, getUpdateCourseId.value, '4', 1], function (res) {
+      console.log(res, '11111111111')
+    }, [], { "type": "POST", "withCredentials": true });
+  } catch (error) {
+    console.log(error);
+  }
   const a = document.createElement('a');
   a.style.display = 'none';
   a.href = url;
@@ -505,7 +527,6 @@ const download = (url, fileName) => {
   a.click();
   document.body.removeChild(a);
 }
-
 const DownloadProcessing = async () => {
   let data = currentData.value
   let urls = []
@@ -519,7 +540,15 @@ const DownloadProcessing = async () => {
     })
     return x
   })
-  console.log("urls", urls)
+  try {
+    console.log("urls", [user.user.userid, getUpdateCourseId.value, '4', urls.length])
+    top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/addOperationTimeT", [user.user.userid, getUpdateCourseId.value, '4', urls.length], function (res) {
+      console.log(res, '11111111111')
+    }, [], { "type": "POST", "withCredentials": true });
+  } catch (error) {
+    console.log(error);
+  }
+
   for (let i = 0; i < urls.length; i++) {
     fetch(urls[i].url)
       .then(response => response.blob())  // 获取文件数据流

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.