courseDetail.vue 94 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="height: 100%">
  4. <div class="body_student">
  5. <div class="student_head">
  6. <div
  7. v-if="screenType != 2 && screenType != 5"
  8. class="return"
  9. @click.stop="
  10. goTo(
  11. '/index?userid=' +
  12. userid +
  13. '&oid=' +
  14. oid +
  15. '&org=' +
  16. org +
  17. '&cid=' +
  18. classId +
  19. '&tType=' +
  20. tType +
  21. '&screenType=' +
  22. screenType
  23. )
  24. "
  25. >
  26. <div class="returnIndexImg">
  27. <img src="../assets/icon/newIcon/returnIndex.png" alt="" />
  28. </div>
  29. <div>返回</div>
  30. <!-- <img src="../assets/icon/return.png" alt="" /> -->
  31. </div>
  32. <div class="box_course">
  33. <div class="wheel">
  34. <img
  35. style="object-fit: cover"
  36. :src="
  37. this.courseDetail.cover != null &&
  38. this.courseDetail.cover != ''
  39. ? JSON.parse(this.courseDetail.cover).length > 0
  40. ? JSON.parse(this.courseDetail.cover)[0].url
  41. : mr
  42. : mr
  43. "
  44. alt
  45. />
  46. </div>
  47. <div class="right_box">
  48. <div class="rightT">
  49. <div class="right_box_title">{{ courseDetail.title }}</div>
  50. <div class="jd">{{ chapInfo.length }}阶段</div>
  51. <div class="jd">{{ rw }}任务</div>
  52. </div>
  53. <div class="cType" v-if="courseType.length">
  54. <div
  55. class="all_choose"
  56. v-for="(item, index) in courseType"
  57. :key="index"
  58. >
  59. <span style="color: #717c8d; font-weight: 400">{{
  60. "分类" + ":"
  61. }}</span>
  62. <span
  63. class="type_children"
  64. v-for="(item2, index2) in courseTypeJson[item]"
  65. :key="index2"
  66. >{{ item2 }}</span
  67. >
  68. </div>
  69. </div>
  70. <div class="cType" style="align-items: flex-start">
  71. <div
  72. style="
  73. min-width: fit-content;
  74. color: #717c8d;
  75. font-weight: 400;
  76. "
  77. >
  78. 创建者:<span style="font-weight: bold; color: #0e1e33">{{
  79. courseDetail.username
  80. }}</span>
  81. </div>
  82. <div
  83. style="display: flex; align-items: center; margin-left: 32px"
  84. >
  85. <div style="color: #717c8d; font-weight: 400">参与人数:</div>
  86. <!-- <div class="man">
  87. <img src="../assets/people.png" alt />
  88. </div> -->
  89. <div class="person" style="font-weight: bold; color: #0e1e33">
  90. {{
  91. courseDetail.vcount != null ? courseDetail.vcount : 0
  92. }}人
  93. </div>
  94. </div>
  95. </div>
  96. <div class="cType" style="color: #6c6c6c">
  97. <div
  98. class="Tname"
  99. v-if="Tname.length > 0"
  100. @click="TnameCheck = !TnameCheck"
  101. style="color: #717c8d; font-weight: 400"
  102. >
  103. 协同成员:<span
  104. v-for="(tname, tIndex) in TnameCheck
  105. ? Tname
  106. : Tname.slice(0, 6)"
  107. :key="tIndex"
  108. style="margin: 0 5px; font-weight: 400; color: #0e1e33"
  109. >{{ tname }}</span
  110. ><span
  111. style="margin: 0 5px; font-weight: 400; color: #b2b2b2"
  112. v-if="!TnameCheck && Tname.length > 6"
  113. >展开</span
  114. ><span style="margin: 0 5px; font-weight: 400; color: #b2b2b2" v-else-if="TnameCheck && Tname.length > 6">收起</span>
  115. </div>
  116. </div>
  117. <!-- <div
  118. class="cType"
  119. style="font-size: 18px; color: #6c6c6c"
  120. v-if="classList.length && tType != 2"
  121. >
  122. <div class="teaClass">
  123. <div>授课班级:</div>
  124. <div>
  125. <el-button
  126. @click="gotoCourse('')"
  127. style="background: #4a9eed; color: #fff; margin: 0 5px"
  128. v-if="classList.length != 1"
  129. >全部</el-button
  130. ><el-button
  131. @click="gotoCourse(item.id)"
  132. v-for="(item, index) in classList"
  133. :key="index"
  134. style="background: #4a9eed; color: #fff; margin: 0 5px"
  135. >{{ item.name }}</el-button
  136. >
  137. </div>
  138. </div>
  139. </div> -->
  140. <div class="btnBox" v-if="screenType != 5">
  141. <!-- <div class="now_study" @click="dialogVisible = true">
  142. 立即学习
  143. </div> -->
  144. <div
  145. class="now_study"
  146. @click="setQr(courseDetail.courseId)"
  147. v-if="tType != 2"
  148. >
  149. <div class="returnIndexImg">
  150. <img src="../assets/icon/newIcon/codeIcon.png" alt="" />
  151. </div>
  152. <div>生成二维码</div>
  153. </div>
  154. <div
  155. class="now_study"
  156. @click="dialogVisibleGroup = true"
  157. v-if="courseDetail.state == 1"
  158. >
  159. <div class="returnIndexImg">
  160. <img src="../assets/icon/newIcon/groupIcon.png" alt="" />
  161. </div>
  162. <div>
  163. {{
  164. courseDetail.userid != userid &&
  165. courseDetail.course_teacher &&
  166. courseDetail.course_teacher.indexOf(userid) == -1
  167. ? "加入分组"
  168. : "设置分组"
  169. }}
  170. </div>
  171. </div>
  172. <div class="now_study" @click="exportCourse" v-if="tType != 2">
  173. <div class="returnIndexImg">
  174. <img src="../assets/icon/newIcon/CourseInfo.png" alt="" />
  175. </div>
  176. <div>导出信息</div>
  177. </div>
  178. <!-- -->
  179. <div class="now_study" @click="uploadCourse" v-if="tType != 2">
  180. <div class="returnIndexImg">
  181. <img src="../assets/icon/newIcon/uploadCourse.png" alt="" />
  182. </div>
  183. <div>导出文件</div>
  184. </div>
  185. <!-- <div
  186. class="now_group"
  187. v-if="groupInfo && courseDetail.state == 1"
  188. >
  189. <span>所在分组:</span>{{ groupInfo.name }}
  190. </div> -->
  191. </div>
  192. <div
  193. v-if="tType != 2 && (classList.length || courseDetail.userid == userid)"
  194. class="goToStudy"
  195. @click="goToStudyOrDia(classList)"
  196. >
  197. <div class="returnIndexImg">
  198. <img src="../assets/icon/newIcon/people.png" alt="" />
  199. </div>
  200. <div>以班级授课</div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. <div class="student_body">
  206. <div class="sLeft" v-if="courseDetail.brief">
  207. <div class="courseT">课程详情</div>
  208. <div class="courseTd" v-html="courseDetail.brief"></div>
  209. </div>
  210. <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'">
  211. <div v-if="tType == 1 || tType == 4" class="checkBox">
  212. <span :class="{ active: type == 2 }" @click="type = 2"
  213. >阶段选择
  214. <div v-show="false">
  215. {{
  216. courseDetail.state == 1
  217. ? "阶段模式"
  218. : courseDetail.state == 2
  219. ? "任务模式"
  220. : courseDetail.state == 3
  221. ? "极简模式"
  222. : "AI模式"
  223. }}
  224. </div></span
  225. >
  226. <span :class="{ active: type == 1 }" @click="getCTwo"
  227. >课程分析</span
  228. >
  229. <span :class="{ active: type == 3 }" @click="getCThree"
  230. >课程评价</span
  231. >
  232. </div>
  233. <div
  234. v-if="((tType == 1 || tType == 4) && type == 2) || tType == 2"
  235. :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
  236. style="width: 100%; padding-top: 20px"
  237. >
  238. <div
  239. class="courseItem"
  240. v-for="(item, index) in chapInfo"
  241. :key="index"
  242. @click="goToStudyRate(index)"
  243. :class="{
  244. disabled: isFollow == 2 && tType == 2 && followC != index,
  245. }"
  246. >
  247. <div class="jdAndTask">
  248. <div>第{{ index + 1 }}阶段</div>
  249. <div
  250. v-if="courseDetail.state == 2 || courseDetail.state == 3 || courseDetail.state == 4"
  251. >
  252. 任务查看
  253. </div>
  254. <div :title="item.dyName">
  255. {{ item.dyName }}
  256. </div>
  257. </div>
  258. <div style="font-size: 14px; font-weight: 400; color: 3681FC">
  259. {{ item.chapterInfo[0].taskJson.length }}个任务
  260. </div>
  261. </div>
  262. <!-- <div
  263. class="blue_box_one"
  264. v-for="(item, index) in chapInfo"
  265. :key="index"
  266. @click="addUserRate(index)"
  267. :class="{
  268. disabled: isFollow == 2 && tType == 2 && followC != index,
  269. }"
  270. >
  271. <div v-if="courseDetail.state == 1">第{{ index + 1 }}阶段</div>
  272. <div v-if="courseDetail.state == 2 || courseDetail.state == 3">
  273. 任务查看
  274. </div>
  275. <div :title="item.dyName">{{ item.dyName }}</div>
  276. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  277. </div> -->
  278. </div>
  279. <div
  280. v-if="
  281. (tType == 1 || tType == 4) &&
  282. Object.keys(chaptersJson).length &&
  283. type == 1
  284. "
  285. class="detail"
  286. >
  287. <div class="detail_box">
  288. <div class="title">
  289. <span class="toolIcon">工具分析</span>
  290. <div class="statebox">
  291. <div>
  292. <span class="taskIcon">全部阶段:</span
  293. ><span>{{ chaptersJson.state.stage }}</span>
  294. </div>
  295. <div>
  296. <span class="finishIcon">已进行:</span
  297. ><span>{{ chaptersJson.state.finish }}</span>
  298. </div>
  299. <div>
  300. <span class="learningIcon">未进行:</span
  301. ><span style="color: #fe9999">{{
  302. chaptersJson.state.learing
  303. }}</span>
  304. </div>
  305. </div>
  306. </div>
  307. <div class="box" v-if="chaptersJson.tool.length">
  308. <div class="progress">
  309. <div
  310. v-for="(item, index) in chaptersJson.tool"
  311. :key="index"
  312. class="chapter"
  313. >
  314. <div class="stageCss" @click="addUserRate(index)">
  315. <div
  316. style="
  317. width: 95%;
  318. height: 60px;
  319. display: flex;
  320. justify-content: space-between;
  321. flex-direction: row;
  322. flex-wrap: nowrap;
  323. align-items: center;
  324. "
  325. >
  326. <el-tooltip
  327. class="item"
  328. effect="light"
  329. :content="item.name"
  330. placement="top"
  331. >
  332. <div
  333. class="titleCss"
  334. style="width: 80%; max-width: unset"
  335. >
  336. 第{{ index + 1 }}阶段 {{ item.name }}
  337. </div>
  338. </el-tooltip>
  339. <!-- <div
  340. style="
  341. font-size: 14px;
  342. font-weight: 400;
  343. color: #3681fc;
  344. min-width: 30px;
  345. "
  346. >
  347. 查看
  348. </div> -->
  349. </div>
  350. </div>
  351. <!-- {{ chaptersJson.chapterState[index].isFinsh ? '已完成' : '进行中' }} -->
  352. <div class="task">
  353. <div
  354. v-for="(item2, index2) in item.array"
  355. :key="index + '-' + index2"
  356. class="taskBox"
  357. :class="item.array.length > 1 ? 'borderRight' : ''"
  358. >
  359. <div class="taskName">
  360. <div class="navIndex">任务{{ index2 + 1 }}:</div>
  361. <div>
  362. <el-tooltip
  363. class="item"
  364. effect="light"
  365. :content="item2.name"
  366. placement="top"
  367. >
  368. <div
  369. class="titleCss"
  370. style="
  371. font-size: 14px;
  372. font-weight: 400;
  373. color: #717c8d;
  374. "
  375. >
  376. {{ item2.name }}
  377. </div>
  378. </el-tooltip>
  379. </div>
  380. </div>
  381. <div class="p_tool_box">
  382. <span
  383. v-for="(item3, index3) in item2.array"
  384. :key="index + '-' + index2 + '-' + index3"
  385. class="p_tool"
  386. >
  387. <div v-if="item3.tool == 1">
  388. <img
  389. src="../assets/icon/secondToolList/whiteBoard.png"
  390. alt
  391. />
  392. <div>电子白板</div>
  393. </div>
  394. <div v-if="item3.tool == 3">
  395. <img
  396. src="../assets/icon/secondToolList/mindMapping.png"
  397. alt
  398. />
  399. <div>思维导图</div>
  400. </div>
  401. <div v-if="item3.tool == 6">
  402. <img
  403. src="../assets/icon/secondToolList/doc.png"
  404. alt
  405. />
  406. <div>协同文档</div>
  407. </div>
  408. <div v-if="item3.tool == 7">
  409. <img
  410. src="../assets/icon/secondToolList/mindNetwork.png"
  411. alt
  412. />
  413. <div>思维网格</div>
  414. </div>
  415. <div v-if="item3.tool == 8">
  416. <img
  417. src="../assets/icon/secondToolList/library.png"
  418. alt
  419. />
  420. <div>素材库</div>
  421. </div>
  422. <div v-if="item3.tool == 17">
  423. <img
  424. src="../assets/icon/secondToolList/library.png"
  425. alt
  426. />
  427. <div>学习资料</div>
  428. </div>
  429. <div v-if="item3.tool == 2">
  430. <img
  431. src="../assets/icon/secondToolList/note.png"
  432. alt
  433. />
  434. <div>便签</div>
  435. </div>
  436. <div v-if="item3.tool == 4">
  437. <img
  438. src="../assets/icon/thirdToolList/ask.png"
  439. alt
  440. />
  441. <div>问卷调查</div>
  442. </div>
  443. <div v-if="item3.tool == 45">
  444. <img
  445. src="../assets/icon/thirdToolList/choose.png"
  446. alt
  447. />
  448. <div>选择题</div>
  449. </div>
  450. <!-- <div v-if="item3.tool == 5">
  451. <img
  452. src="../assets/icon/thirdToolList/score.png"
  453. alt
  454. />
  455. <div >量规评分</div>
  456. </div> -->
  457. <div v-if="item3.tool == 10">
  458. <img
  459. src="../assets/icon/thirdToolList/time.png"
  460. alt
  461. />
  462. <div>倒计时</div>
  463. </div>
  464. <div v-if="item3.tool == 15">
  465. <img
  466. src="../assets/icon/thirdToolList/answer.png"
  467. alt
  468. />
  469. <div>问答</div>
  470. </div>
  471. <div v-if="item3.tool == 26">
  472. <img
  473. src="../assets/icon/thirdToolList/courseDesign.png"
  474. alt
  475. />
  476. <div>课程设计</div>
  477. </div>
  478. <div v-if="item3.tool == 18">
  479. <img
  480. src="../assets/icon/thirdToolList/trainPlatform.png"
  481. alt
  482. />
  483. <div>训练服务器</div>
  484. </div>
  485. <div v-if="item3.tool == 16">
  486. <img
  487. src="../assets/icon/thirdToolList/work.png"
  488. alt
  489. />
  490. <div>作业提交</div>
  491. </div>
  492. <div v-if="item3.tool == 21">
  493. <img
  494. src="../assets/icon/fourthToolList/program.png"
  495. alt
  496. />
  497. <div>AIoT Blockly</div>
  498. </div>
  499. <div v-if="item3.tool == 22">
  500. <img
  501. src="../assets/icon/fourthToolList/program.png"
  502. alt
  503. />
  504. <div>AI体验</div>
  505. </div>
  506. <div v-if="item3.tool == 23">
  507. <img
  508. src="../assets/icon/fourthToolList/program.png"
  509. alt
  510. />
  511. <div>AI Python</div>
  512. </div>
  513. <div v-if="item3.tool == 24">
  514. <img
  515. src="../assets/icon/fourthToolList/AIprogram.png"
  516. alt
  517. />
  518. <div>AI Blockly</div>
  519. </div>
  520. <div v-if="item3.tool == 25">
  521. <img
  522. src="../assets/icon/thirdToolList/evalua.png"
  523. alt
  524. />
  525. <div>目标管理</div>
  526. </div>
  527. <div v-if="item3.tool == 31">
  528. <img
  529. src="../assets/icon/secondToolList/networkPanel.png"
  530. alt
  531. />
  532. <div>数学画板</div>
  533. </div>
  534. <div v-if="item3.tool == 28">
  535. <img
  536. src="../assets/icon/secondToolList/translation.png"
  537. alt
  538. />
  539. <div>翻译</div>
  540. </div>
  541. <div v-if="item3.tool == 37">
  542. <img
  543. src="../assets/icon/secondToolList/mohe.png"
  544. alt
  545. />
  546. <div>魔盒识字</div>
  547. </div>
  548. <div v-if="item3.tool == 38">
  549. <img
  550. src="../assets/icon/secondToolList/24game.png"
  551. alt
  552. />
  553. <div>24点</div>
  554. </div>
  555. <div v-if="item3.tool == 39">
  556. <img
  557. src="../assets/icon/secondToolList/GeoGebra.png"
  558. alt
  559. />
  560. <div>GeoGebra</div>
  561. </div>
  562. <div v-if="item3.tool == 32">
  563. <img
  564. src="../assets/icon/thirdToolList/code.png"
  565. alt
  566. />
  567. <div>源码编辑</div>
  568. </div>
  569. <div v-if="item3.tool == 40">
  570. <img
  571. src="../assets/icon/secondToolList/eval.png"
  572. alt
  573. />
  574. <div>学生评价</div>
  575. </div>
  576. <div v-if="item3.tool == 41">
  577. <img
  578. src="../assets/icon/thirdToolList/select.png"
  579. alt
  580. />
  581. <div>选择匹配</div>
  582. </div>
  583. <div v-if="item3.tool == 44">
  584. <img
  585. src="../assets/icon/thirdToolList/hanClass.png"
  586. alt
  587. />
  588. <div>汉字宫</div>
  589. </div>
  590. <div v-if="item3.tool == 47">
  591. <img
  592. src="../assets/icon/fourthToolList/conSentences.png"
  593. alt
  594. />
  595. <div>排序</div>
  596. </div>
  597. <div v-if="item3.tool == 48">
  598. <img
  599. src="../assets/icon/fourthToolList/table.png"
  600. alt
  601. />
  602. <div>表格</div>
  603. </div>
  604. <div v-if="item3.tool == 49">
  605. <img
  606. src="../assets/icon/fourthToolList/group.png"
  607. alt
  608. />
  609. <div>学生分组</div>
  610. </div>
  611. <div v-if="item3.tool == 50">
  612. <img
  613. src="../assets/icon/thirdToolList/plwork.png"
  614. alt
  615. />
  616. <div>批量上传</div>
  617. </div>
  618. <div v-if="item3.tool == 57">
  619. <img
  620. src="../assets/icon/fourthToolList/cocopi.png"
  621. alt
  622. />
  623. <div>CocoPi</div>
  624. </div>
  625. <div v-if="item3.tool == 58">
  626. <img
  627. src="../assets/icon/fourthToolList/car.png"
  628. alt
  629. />
  630. <div>模拟驾驶</div>
  631. </div>
  632. <div v-if="item3.tool == 59">
  633. <img
  634. src="../assets/icon/fourthToolList/lineSearch.png"
  635. alt
  636. />
  637. <div>路径搜索</div>
  638. </div>
  639. <div v-if="item3.tool == 60">
  640. <img
  641. src="../assets/icon/fourthToolList/deepLearning.png"
  642. alt
  643. />
  644. <div>深度学习</div>
  645. </div>
  646. <div v-if="item3.tool == 61">
  647. <img
  648. src="../assets/icon/fourthToolList/allHistory.png"
  649. alt
  650. />
  651. <div>深度学习</div>
  652. </div>
  653. <div v-if="item3.tool == 62">
  654. <img
  655. src="../assets/icon/fourthToolList/interVideo.png"
  656. alt
  657. />
  658. <div>交互视频</div>
  659. </div>
  660. <div v-if="item3.tool == 63">
  661. <img
  662. src="../assets/icon/fourthToolList/Wood.png"
  663. alt
  664. />
  665. <div>海龟编程</div>
  666. </div>
  667. <div v-if="item3.tool == 65">
  668. <img
  669. src="../assets/icon/firstToolList/pickPeople.png"
  670. alt
  671. />
  672. <div>挑人</div>
  673. </div>
  674. <div v-if="item3.tool == 66">
  675. <img
  676. src="../assets/icon/secondToolList/formulaEdi.png"
  677. alt
  678. />
  679. <div>公式编辑</div>
  680. </div>
  681. <div v-if="item3.tool == 67">
  682. <img
  683. src="../assets/icon/secondToolList/molStr.png"
  684. alt
  685. />
  686. <div>分子结构</div>
  687. </div>
  688. <div v-if="item3.tool == 68">
  689. <img
  690. src="../assets/icon/secondToolList/timeAxis.png"
  691. alt
  692. />
  693. <div>时间轴</div>
  694. </div>
  695. <div v-if="item3.tool == 69">
  696. <img
  697. src="../assets/icon/secondToolList/english.png"
  698. alt
  699. />
  700. <div>英语写作</div>
  701. </div>
  702. <div v-if="item3.tool == 70">
  703. <img
  704. src="../assets/icon/thirdToolList/englishVoice.png"
  705. alt
  706. />
  707. <div>英语口语</div>
  708. </div>
  709. <div v-if="item3.tool == 71">
  710. <img
  711. src="../assets/icon/fourthToolList/chatgpt.png"
  712. alt
  713. />
  714. <div>AI智能体</div>
  715. </div>
  716. <div v-if="item3.tool == undefined">
  717. <img
  718. src="../assets/icon/empytool.png"
  719. alt
  720. style="width: 64px; height: 75px"
  721. />
  722. </div>
  723. </span>
  724. </div>
  725. </div>
  726. </div>
  727. </div>
  728. </div>
  729. </div>
  730. </div>
  731. <div
  732. class="detail_box"
  733. v-if="Object.keys(chaptersJson.time).length"
  734. >
  735. <div class="title">
  736. <span class="frequencyIcon">活跃频率</span>
  737. </div>
  738. <div class="box">
  739. <div>
  740. <Heatmap
  741. :Josn="chaptersJson.time"
  742. :num="chaptersJson.studentCount"
  743. ></Heatmap>
  744. </div>
  745. </div>
  746. </div>
  747. <div class="detail_box">
  748. <div class="title"><span class="timeIcon">实施时间</span></div>
  749. <div class="box">
  750. <div
  751. style="
  752. font-size: 22px;
  753. margin: 15px 0 45px;
  754. font-weight: 700;
  755. "
  756. >
  757. {{ courseDetail.title }}
  758. </div>
  759. <div class="chapter_time_box" style="margin-left: 170px">
  760. <div
  761. v-for="(item, index) in chaptersJson.work"
  762. :key="index"
  763. class="c_box"
  764. >
  765. <div class="stage_box" style="left: -195px">
  766. <div
  767. style="
  768. min-width: 150px;
  769. position: relative;
  770. left: -5px;
  771. "
  772. >
  773. {{ item.time }}
  774. </div>
  775. <div
  776. class="yuan"
  777. :class="
  778. (item.chapter.length == 1 ||
  779. item.chapter.length > 1) &&
  780. (item.chapter[0].task.length == 1 ||
  781. item.chapter[0].task.length > 1) &&
  782. item.chapter[0].task[0].works.length == 0
  783. ? 'bgCss'
  784. : ''
  785. "
  786. ></div>
  787. <div
  788. class="stage"
  789. :style="{
  790. background:
  791. (item.chapter.length == 1 ||
  792. item.chapter.length > 1) &&
  793. (item.chapter[0].task.length == 1 ||
  794. item.chapter[0].task.length > 1) &&
  795. item.chapter[0].task[0].works.length == 0
  796. ? '#ccc'
  797. : '',
  798. }"
  799. >
  800. 第{{ index + 1 }}阶段 {{ item.name }}
  801. </div>
  802. <div
  803. class="s_up"
  804. :style="{
  805. display:
  806. (item.chapter.length == 1 ||
  807. item.chapter.length > 1) &&
  808. (item.chapter[0].task.length == 1 ||
  809. item.chapter[0].task.length > 1) &&
  810. item.chapter[0].task[0].works.length == 0
  811. ? 'none'
  812. : '',
  813. }"
  814. :class="{ s_up2: !item.is }"
  815. @click="item.is = !item.is"
  816. >
  817. <img src="../assets/icon/up.png" alt="" />
  818. </div>
  819. </div>
  820. <div v-show="item.is">
  821. <div
  822. v-for="(item2, index2) in item.chapter"
  823. :key="index + '-' + index2"
  824. >
  825. <div
  826. style="
  827. display: flex;
  828. flex-direction: row;
  829. flex-wrap: nowrap;
  830. align-items: center;
  831. "
  832. v-if="
  833. item2.task[0].tool != undefined && item2.isWork
  834. "
  835. >
  836. <div
  837. style="
  838. width: 13px;
  839. height: 13px;
  840. background: #5a82cb 100%;
  841. border-radius: 50%;
  842. margin-right: 10px;
  843. "
  844. ></div>
  845. <div style="font-size: 20px; font-weight: bold">
  846. 任务{{ index2 + 1 }}:{{ item2.name }}
  847. </div>
  848. </div>
  849. <div class="p_tool_box2">
  850. <span
  851. v-for="(item3, index3) in item2.task"
  852. :key="index + '-' + index2 + '-' + index3"
  853. class="p_tool2"
  854. >
  855. <div
  856. class="toolBigBox"
  857. style="
  858. display: flex;
  859. flex-direction: row;
  860. flex-wrap: nowrap;
  861. align-items: center;
  862. "
  863. v-if="item3.works.length"
  864. >
  865. <div
  866. style="
  867. display: flex;
  868. flex-direction: row;
  869. flex-wrap: nowrap;
  870. align-items: flex-end;
  871. min-width: 140px;
  872. "
  873. >
  874. <div class="lineBox"></div>
  875. <div class="toolbox">
  876. <div
  877. style="font-size: 16px; font-weight: bold"
  878. >
  879. 步骤{{ index3 + 1 }}:
  880. </div>
  881. <div v-if="item3.tool == 1">电子白板</div>
  882. <div v-if="item3.tool == 3">思维导图</div>
  883. <div v-if="item3.tool == 6">协同文档</div>
  884. <div v-if="item3.tool == 7">思维网格</div>
  885. <div v-if="item3.tool == 8">素材库</div>
  886. <div v-if="item3.tool == 17">学习资料</div>
  887. <div v-if="item3.tool == 2">便签</div>
  888. <div v-if="item3.tool == 4">问卷调查</div>
  889. <div v-if="item3.tool == 45">选择题</div>
  890. <div v-if="item3.tool == 10">倒计时</div>
  891. <div v-if="item3.tool == 15">问答</div>
  892. <div v-if="item3.tool == 26">课程设计</div>
  893. <div v-if="item3.tool == 18">
  894. 训练服务器
  895. </div>
  896. <div v-if="item3.tool == 16">作业提交</div>
  897. <div v-if="item3.tool == 21">
  898. AIoT Blockly
  899. </div>
  900. <div v-if="item3.tool == 22">AI体验</div>
  901. <div v-if="item3.tool == 23">AI Python</div>
  902. <div v-if="item3.tool == 24">
  903. AI Blockly
  904. </div>
  905. <div v-if="item3.tool == 25">目标管理</div>
  906. <div v-if="item3.tool == 31">数学画板</div>
  907. <div v-if="item3.tool == 28">翻译</div>
  908. <div v-if="item3.tool == 37">魔盒识字</div>
  909. <div v-if="item3.tool == 38">24点</div>
  910. <div v-if="item3.tool == 39">GeoGebra</div>
  911. <div v-if="item3.tool == 32">源码编辑</div>
  912. <div v-if="item3.tool == 40">学生评价</div>
  913. <div v-if="item3.tool == 41">选择匹配</div>
  914. <div v-if="item3.tool == 44">汉字宫</div>
  915. <div v-if="item3.tool == 47">排序</div>
  916. <div v-if="item3.tool == 48">表格</div>
  917. <div v-if="item3.tool == 49">学生分组</div>
  918. <div v-if="item3.tool == 50">批量上传</div>
  919. <div v-if="item3.tool == 57">CocoPi</div>
  920. <div v-if="item3.tool == 58">模拟驾驶</div>
  921. <div v-if="item3.tool == 59">路径搜索</div>
  922. <div v-if="item3.tool == 60">深度学习</div>
  923. </div>
  924. </div>
  925. <div
  926. v-if="item3.works.length"
  927. style="
  928. display: flex;
  929. flex-direction: row;
  930. flex-wrap: wrap;
  931. align-items: center;
  932. margin-left: 10px;
  933. "
  934. >
  935. <!-- works:[],likeCount: 0, commentCount: 0, score: 0, isScore: 0 -->
  936. <div class="disCss">
  937. <div class="blueBtn">
  938. 作业数量:{{ item3.works.length }}
  939. </div>
  940. <div
  941. v-if="chaptersJson.studentCount"
  942. class="blueBtn"
  943. >
  944. 任务完成率:{{
  945. (
  946. (item3.works.length /
  947. chaptersJson.studentCount) *
  948. 100
  949. ).toFixed(2) > 100.0
  950. ? 100 + "%"
  951. : (
  952. (item3.works.length /
  953. chaptersJson.studentCount) *
  954. 100
  955. ).toFixed(2) + "%"
  956. }}
  957. </div>
  958. <div class="blueBtn">
  959. <div>点赞:{{ item3.likeCount }}</div>
  960. <div style="margin-left: 15px">
  961. 评论:{{ item3.commentCount }}
  962. </div>
  963. </div>
  964. </div>
  965. <div v-if="item3.isScore">
  966. <div class="disCss">
  967. <div class="blueBtn">
  968. 作业评价量:{{ item3.isScore }}
  969. </div>
  970. <div class="blueBtn">
  971. 评价平均分:{{
  972. (item3.score / item3.isScore).toFixed(
  973. 2
  974. )
  975. }}分
  976. </div>
  977. </div>
  978. </div>
  979. </div>
  980. </div>
  981. </span>
  982. </div>
  983. </div>
  984. </div>
  985. </div>
  986. </div>
  987. </div>
  988. </div>
  989. <!-- <div v-for="(item, index) in Object.keys(chaptersJson.time)" :key="index">
  990. {{ '时间:' + item + '次数:' + chaptersJson.time[item] }}</div> -->
  991. <!-- <div>实施时间:{{ chaptersJson.startTime }}</div> -->
  992. </div>
  993. <div
  994. v-if="(type == 3)"
  995. :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
  996. style="width: 100%; padding-top: 20px"
  997. >
  998. <scoreZong :courseid="id" :title="courseDetail.title"></scoreZong>
  999. </div>
  1000. </div>
  1001. </div>
  1002. <!-- <div
  1003. style="
  1004. text-align: center;
  1005. padding: 30px 0 20px 0;
  1006. box-sizing: border-box;
  1007. "
  1008. >
  1009. 此处滚动加载..
  1010. </div>-->
  1011. <el-dialog
  1012. title="阶段选择"
  1013. :visible.sync="dialogVisible"
  1014. :append-to-body="true"
  1015. width="700px"
  1016. :before-close="handleClose"
  1017. class="dialog_change"
  1018. >
  1019. <div style="font-size: 20px">请选择阶段</div>
  1020. <div
  1021. style="
  1022. padding: 20px 30px;
  1023. display: flex;
  1024. flex-direction: row;
  1025. flex-wrap: wrap;
  1026. "
  1027. >
  1028. <div
  1029. class="blue_box"
  1030. v-for="(item, index) in chapInfo"
  1031. :key="index"
  1032. @click="addUserRate(index)"
  1033. >
  1034. <div>第{{ index + 1 }}阶段</div>
  1035. <div>{{ item.dyName }}</div>
  1036. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  1037. </div>
  1038. </div>
  1039. </el-dialog>
  1040. <Group
  1041. :dialogVisibleGroup.sync="dialogVisibleGroup"
  1042. :classList="classList"
  1043. :cid="id"
  1044. :courseDetail="courseDetail"
  1045. :userid="userid"
  1046. :oid="oid"
  1047. :type="tType"
  1048. :classId="classId"
  1049. @getGroup="getGroup"
  1050. ></Group>
  1051. </div>
  1052. </div>
  1053. <el-dialog title="课程二维码" :visible.sync="dialogVisibleQR" width="400px">
  1054. <div class="qrcode" ref="qrCodeUrl"></div>
  1055. </el-dialog>
  1056. <el-dialog
  1057. title="选择授课班级"
  1058. :visible.sync="dialogVisibleSk"
  1059. width="626px"
  1060. class="diy_sk"
  1061. >
  1062. <div class="classBox">
  1063. <div @click="gotoCourse('')">全部</div>
  1064. <div
  1065. @click="gotoCourse(item.id)"
  1066. v-for="(item, index) in classList"
  1067. :key="index"
  1068. >
  1069. {{ item.name }}
  1070. </div>
  1071. </div>
  1072. <div class="cancelDiy" @click="dialogVisibleSk = false">取消</div>
  1073. </el-dialog>
  1074. </div>
  1075. </template>
  1076. <script>
  1077. import Heatmap from "./tools/heatmap.vue";
  1078. import Group from "./group/group.vue";
  1079. import QRCode from "qrcodejs2";
  1080. import { tools } from "../common/tools";
  1081. import axios from "axios";
  1082. import JSZip from "jszip";
  1083. import FileSaver from "file-saver";
  1084. import scoreZong from './scoreZong/get.vue'
  1085. var OpenCC = require("opencc-js");
  1086. let converter = OpenCC.Converter({
  1087. from:'hk',
  1088. to:'cn'
  1089. })
  1090. const getFile = (url) => {
  1091. return new Promise((resolve, reject) => {
  1092. var credentials = {
  1093. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1094. secretAccessKey: "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",
  1095. }; //秘钥形式的登录上传
  1096. window.AWS.config.update(credentials);
  1097. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1098. let url2 = url;
  1099. let _url2 = "";
  1100. if (
  1101. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  1102. ) {
  1103. _url2 = url2.split(
  1104. "https://view.officeapps.live.com/op/view.aspx?src="
  1105. )[1];
  1106. } else {
  1107. _url2 = url2;
  1108. }
  1109. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  1110. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  1111. var params = {
  1112. Bucket: "ccrb",
  1113. Key: name
  1114. };
  1115. s3.getObject(params, function (err, data) {
  1116. if (err) {
  1117. console.log(err, err.stack)
  1118. resolve({ data: 1 });
  1119. }else {
  1120. resolve({ data: data.Body });
  1121. console.log(data);
  1122. } // sxuccessful response
  1123. });
  1124. // axios({
  1125. // method: "get",
  1126. // url,
  1127. // responseType: "blob",
  1128. // })
  1129. // .then((data) => {
  1130. // resolve({ data: data.data });
  1131. // })
  1132. // .catch((error) => {
  1133. // resolve({ data: 1 });
  1134. // // reject(error.toString());
  1135. // });
  1136. });
  1137. };
  1138. export default {
  1139. components: {
  1140. Heatmap,
  1141. Group,
  1142. scoreZong
  1143. },
  1144. data() {
  1145. return {
  1146. choose: 0,
  1147. dialogVisibleSk: false,
  1148. dialogVisible: false,
  1149. dialogVisibleGroup: false,
  1150. id: this.$route.query.courseId,
  1151. userid: this.$route.query.userid,
  1152. oid: this.$route.query.oid,
  1153. org: this.$route.query.org,
  1154. classId: this.$route.query.cid,
  1155. tType: this.$route.query.tType,
  1156. screenType: this.$route.query.screenType,
  1157. courseDetail: {},
  1158. classList: [],
  1159. aStudentName: [],
  1160. chapInfo: [],
  1161. courseType: [],
  1162. Tname: [],
  1163. TnameCheck: false,
  1164. courseTypeJson: {},
  1165. userinfo: [],
  1166. mr: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  1167. rw: 0,
  1168. chaptersJson: {},
  1169. type: 2,
  1170. inviteCode: [],
  1171. groupInfo: "",
  1172. isFollow: "",
  1173. followC: "",
  1174. dialogVisibleQR: false,
  1175. checkStage: 0,
  1176. tools: JSON.parse(converter(JSON.stringify(tools))),
  1177. };
  1178. },
  1179. methods: {
  1180. handleClose(done) {
  1181. done();
  1182. },
  1183. setQr(cid) {
  1184. this.dialogVisibleQR = true;
  1185. setTimeout(() => {
  1186. this.$refs.qrCodeUrl.innerHTML = "";
  1187. var qrcode = new QRCode(this.$refs.qrCodeUrl, {
  1188. text: "https://cloud.cocorobo.hk/#/course?courseid=" + cid, // 需要转换为二维码的内容
  1189. width: 350,
  1190. height: 350,
  1191. colorDark: "#000000",
  1192. colorLight: "#ffffff",
  1193. correctLevel: QRCode.CorrectLevel.H,
  1194. });
  1195. }, 500);
  1196. },
  1197. goTo(path) {
  1198. this.$router.push(path);
  1199. },
  1200. gotoCourse(id) {
  1201. if (this.courseDetail.state == 1) {
  1202. if (this.classList.length) {
  1203. this.goTo(
  1204. "/studyStudent?type=" +
  1205. this.checkStage +
  1206. "&courseId=" +
  1207. this.id +
  1208. "&userid=" +
  1209. this.userid +
  1210. "&oid=" +
  1211. this.oid +
  1212. "&org=" +
  1213. this.org +
  1214. "&cid=" +
  1215. this.classId +
  1216. "&tType=" +
  1217. this.tType +
  1218. "&screenType=" +
  1219. this.screenType +
  1220. "&tcid=" +
  1221. id
  1222. );
  1223. } else {
  1224. this.goTo(
  1225. "/studyStudent?type=" +
  1226. this.checkStage +
  1227. "&courseId=" +
  1228. this.id +
  1229. "&userid=" +
  1230. this.userid +
  1231. "&oid=" +
  1232. this.oid +
  1233. "&org=" +
  1234. this.org +
  1235. "&cid=" +
  1236. this.classId +
  1237. "&tType=" +
  1238. this.tType +
  1239. "&screenType=" +
  1240. this.screenType
  1241. );
  1242. }
  1243. } else if (this.courseDetail.state == 2) {
  1244. if (this.classList.length) {
  1245. this.goTo(
  1246. "/studystudentE2?type=" +
  1247. this.checkStage +
  1248. "&courseId=" +
  1249. this.id +
  1250. "&userid=" +
  1251. this.userid +
  1252. "&oid=" +
  1253. this.oid +
  1254. "&org=" +
  1255. this.org +
  1256. "&cid=" +
  1257. this.classId +
  1258. "&tType=" +
  1259. this.tType +
  1260. "&screenType=" +
  1261. this.screenType +
  1262. "&tcid=" +
  1263. id
  1264. );
  1265. } else {
  1266. this.goTo(
  1267. "/studystudentE2?type=" +
  1268. this.checkStage +
  1269. "&courseId=" +
  1270. this.id +
  1271. "&userid=" +
  1272. this.userid +
  1273. "&oid=" +
  1274. this.oid +
  1275. "&org=" +
  1276. this.org +
  1277. "&cid=" +
  1278. this.classId +
  1279. "&tType=" +
  1280. this.tType +
  1281. "&screenType=" +
  1282. this.screenType
  1283. );
  1284. }
  1285. } else if (this.courseDetail.state == 3 || this.courseDetail.state == 4) {
  1286. if (this.classList.length) {
  1287. this.goTo(
  1288. "/studystudentE3?type=" +
  1289. this.checkStage +
  1290. "&courseId=" +
  1291. this.id +
  1292. "&userid=" +
  1293. this.userid +
  1294. "&oid=" +
  1295. this.oid +
  1296. "&org=" +
  1297. this.org +
  1298. "&cid=" +
  1299. this.classId +
  1300. "&tType=" +
  1301. this.tType +
  1302. "&screenType=" +
  1303. this.screenType +
  1304. "&tcid=" +
  1305. id
  1306. );
  1307. } else {
  1308. this.goTo(
  1309. "/studystudentE3?type=" +
  1310. this.checkStage +
  1311. "&courseId=" +
  1312. this.id +
  1313. "&userid=" +
  1314. this.userid +
  1315. "&oid=" +
  1316. this.oid +
  1317. "&org=" +
  1318. this.org +
  1319. "&cid=" +
  1320. this.classId +
  1321. "&tType=" +
  1322. this.tType +
  1323. "&screenType=" +
  1324. this.screenType
  1325. );
  1326. }
  1327. }
  1328. },
  1329. goToStudyOrDia(l) {
  1330. if (l.length > 0) {
  1331. this.dialogVisibleSk = true;
  1332. } else {
  1333. this.getCourseDetail1().then(_=>{
  1334. if(this.classList.length<=0){
  1335. this.$confirm("该课程尚未指定授课班级,请放回首页,使用修改功能添加授课班级。","提示",{
  1336. confirmButtonText: '去修改',
  1337. cancelButtonText: '取消',
  1338. type:"error",
  1339. }).then(() => {
  1340. if(this.courseDetail.state == 1 || this.courseDetail.state == 2){
  1341. window.parent.postMessage({ tools: "openNewCourseUpdate",cid:this.id }, "*");
  1342. }else if(this.courseDetail.state == 3 || this.courseDetail.state == 4){
  1343. window.parent.postMessage({ tools: "openCourseEUpdate",cid:this.id }, "*");
  1344. }
  1345. })
  1346. }else{
  1347. this.dialogVisibleSk = true;
  1348. }
  1349. })
  1350. // this.addUserRate(0);
  1351. }
  1352. },
  1353. goToStudyRate(i) {
  1354. this.checkStage = i;
  1355. if (this.tType == 2) {
  1356. this.addUserRate(i);
  1357. } else {
  1358. if (this.classList.length > 0) {
  1359. this.dialogVisibleSk = true;
  1360. } else {
  1361. this.addUserRate(i);
  1362. }
  1363. }
  1364. },
  1365. addUserRate(i) {
  1366. // var suid = this.userid;
  1367. // if (
  1368. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1 &&
  1369. // JSON.parse(this.courseDetail.userid) != suid
  1370. // ) {
  1371. // this.$message.error("你没有该权限");
  1372. // return;
  1373. // }
  1374. // var a =
  1375. // this.courseDetail.course_student != ""
  1376. // ? JSON.parse(this.courseDetail.course_student)
  1377. // : "";
  1378. // if (this.courseDetail.userid != suid) {
  1379. // if (this.userinfo.type == 2) {
  1380. // if (a != "") {
  1381. // if (
  1382. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
  1383. // ) {
  1384. // this.$message.error("你没有该权限");
  1385. // return;
  1386. // }
  1387. // } else {
  1388. // this.$message.error("暂无项目学员,请联系老师添加项目学员!");
  1389. // return;
  1390. // }
  1391. // }
  1392. // }
  1393. if (this.isFollow == 2 && this.tType == 2 && this.followC != i) {
  1394. return;
  1395. }
  1396. let params = {
  1397. uid: this.userid,
  1398. cid: this.id,
  1399. };
  1400. this.ajax
  1401. .get(this.$store.state.api + "addUserR", params)
  1402. .then((res) => {
  1403. this.updateVc();
  1404. if (this.tType == 1 || this.tType == 4) {
  1405. if (this.courseDetail.state == 1) {
  1406. this.goTo(
  1407. "/studyStudent?type=" +
  1408. i +
  1409. "&courseId=" +
  1410. this.id +
  1411. "&userid=" +
  1412. this.userid +
  1413. "&oid=" +
  1414. this.oid +
  1415. "&org=" +
  1416. this.org +
  1417. "&cid=" +
  1418. this.classId +
  1419. "&tType=" +
  1420. this.tType +
  1421. "&screenType=" +
  1422. this.screenType
  1423. );
  1424. } else if (this.courseDetail.state == 2) {
  1425. this.goTo(
  1426. "/studystudentE2?type=" +
  1427. i +
  1428. "&courseId=" +
  1429. this.id +
  1430. "&userid=" +
  1431. this.userid +
  1432. "&oid=" +
  1433. this.oid +
  1434. "&org=" +
  1435. this.org +
  1436. "&cid=" +
  1437. this.classId +
  1438. "&tType=" +
  1439. this.tType +
  1440. "&screenType=" +
  1441. this.screenType
  1442. );
  1443. } else if (this.courseDetail.state == 3 || this.courseDetail.state == 4) {
  1444. this.goTo(
  1445. "/studystudentE3?type=" +
  1446. i +
  1447. "&courseId=" +
  1448. this.id +
  1449. "&userid=" +
  1450. this.userid +
  1451. "&oid=" +
  1452. this.oid +
  1453. "&org=" +
  1454. this.org +
  1455. "&cid=" +
  1456. this.classId +
  1457. "&tType=" +
  1458. this.tType +
  1459. "&screenType=" +
  1460. this.screenType
  1461. );
  1462. }
  1463. } else if (this.tType == 2) {
  1464. this.goTo(
  1465. "/studyStudent?type=" +
  1466. i +
  1467. "&courseId=" +
  1468. this.id +
  1469. "&userid=" +
  1470. this.userid +
  1471. "&oid=" +
  1472. this.oid +
  1473. "&org=" +
  1474. this.org +
  1475. "&cid=" +
  1476. this.classId +
  1477. "&tType=" +
  1478. this.tType +
  1479. "&screenType=" +
  1480. this.screenType
  1481. );
  1482. // this.gotoCourse(this.classId);
  1483. } else {
  1484. this.goTo(
  1485. "/study?type=" +
  1486. i +
  1487. "&courseId=" +
  1488. this.id +
  1489. "&userid=" +
  1490. this.userid +
  1491. "&oid=" +
  1492. this.oid +
  1493. "&org=" +
  1494. this.org +
  1495. "&cid=" +
  1496. this.classId +
  1497. "&tType=" +
  1498. this.tType +
  1499. "&screenType=" +
  1500. this.screenType
  1501. );
  1502. }
  1503. })
  1504. .catch((err) => {
  1505. console.error(err);
  1506. });
  1507. },
  1508. updateVc() {
  1509. let params = {
  1510. cid: this.id,
  1511. };
  1512. this.ajax
  1513. .get(this.$store.state.api + "updateVc", params)
  1514. .then((res) => {
  1515. console.log(res.data);
  1516. })
  1517. .catch((err) => {
  1518. console.error(err);
  1519. });
  1520. },
  1521. async getCourseDetail1() {
  1522. const loading = this.$loading.service({
  1523. background: "rgba(255, 255, 255, 0.7)",
  1524. target: document.querySelector(".student_table"),
  1525. });
  1526. let params = {
  1527. courseId: this.id,
  1528. };
  1529. let res = await this.ajax.get(
  1530. this.$store.state.api + "selectCourseDetail2",
  1531. params
  1532. );
  1533. loading.close();
  1534. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1535. this.courseDetail = res.data[0][0];
  1536. this.isFollow = res.data[0][0].follow;
  1537. this.followC = res.data[0][0].followC
  1538. ? res.data[0][0].followC.split("-")[0]
  1539. : "";
  1540. this.classList = res.data[3];
  1541. let groupData = res.data[5];
  1542. var a = res.data[0];
  1543. var b = res.data[1];
  1544. var c = res.data[2];
  1545. for (var i = 0; i < b.length; i++) {
  1546. // if (!this.id) {
  1547. // this.courseType[b[i].id] = [];
  1548. // }
  1549. for (var j = 0; j < a.length; j++) {
  1550. if (b[i].id == a[j].pid) {
  1551. if (!this.courseTypeJson[b[i].name]) {
  1552. this.courseType.push(b[i].name);
  1553. this.courseTypeJson[b[i].name] = [];
  1554. }
  1555. this.courseTypeJson[b[i].name].push(a[j].name);
  1556. }
  1557. }
  1558. }
  1559. this.Tname = [];
  1560. for (var k = 0; k < c.length; k++) {
  1561. this.Tname.push(c[k].name);
  1562. }
  1563. console.log(this.courseTypeJson.length);
  1564. this.aStudentName = res.data[2];
  1565. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1566. this.rw = 0
  1567. for (var z = 0; z < this.chapInfo.length; z++) {
  1568. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1569. }
  1570. this.inviteCode = [];
  1571. for (var i = 0; i < res.data[4].length; i++) {
  1572. this.inviteCode.push({
  1573. cid: res.data[4][i].classid,
  1574. ic: res.data[4][i].code,
  1575. });
  1576. }
  1577. if (res.data[3].length != this.inviteCode.length) {
  1578. let classArray = [];
  1579. let noClassArray = [];
  1580. for (var i = 0; i < res.data[3].length; i++) {
  1581. classArray.push(res.data[3][i].id);
  1582. noClassArray.push(res.data[3][i].id);
  1583. }
  1584. this.inviteCode = this.inviteCode.filter((el) => {
  1585. if (classArray.indexOf(el.cid) != -1) {
  1586. noClassArray.splice(noClassArray.indexOf(el.cid), 1);
  1587. return el;
  1588. }
  1589. });
  1590. for (var i = 0; i < noClassArray.length; i++) {
  1591. await this.getInviteCode(noClassArray[i]);
  1592. }
  1593. let a = this.inviteCode;
  1594. console.log(this.inviteCode);
  1595. this.addInviteCode();
  1596. }
  1597. this.groupInfo = "";
  1598. if (groupData.length) {
  1599. gp: for (var g = 0; g < groupData.length; g++) {
  1600. if (groupData[g].userid == this.userid) {
  1601. let gid = groupData[g].groupCid;
  1602. let groupA = JSON.parse(groupData[g].group).group;
  1603. for (var gA = 0; gA < groupA.length; gA++) {
  1604. if (groupA[gA].id == gid) {
  1605. this.groupInfo = {
  1606. name: groupA[gA].name,
  1607. };
  1608. break gp;
  1609. }
  1610. }
  1611. }
  1612. }
  1613. }
  1614. // debugger
  1615. },
  1616. addInviteCode() {
  1617. let params = [
  1618. {
  1619. courseId: this.id,
  1620. inviteCode: JSON.stringify(this.inviteCode),
  1621. },
  1622. ];
  1623. this.ajax
  1624. .post(this.$store.state.api + "addInviteCode", params)
  1625. .then((res) => {})
  1626. .catch((err) => {
  1627. console.error(err);
  1628. });
  1629. },
  1630. getCTwo() {
  1631. this.type = 1;
  1632. this.getCourseDetail2();
  1633. },
  1634. getCThree(){
  1635. this.type = 3
  1636. },
  1637. getCourseDetail2() {
  1638. const loading = this.$loading.service({
  1639. background: "rgba(255, 255, 255, 0.7)",
  1640. target: document.querySelector(".student_table"),
  1641. });
  1642. let params = {
  1643. courseId: this.id,
  1644. };
  1645. this.ajax
  1646. .get(this.$store.state.api + "selectCourseDetail", params)
  1647. .then((res) => {
  1648. loading.close();
  1649. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1650. this.courseDetail = res.data[0][0];
  1651. var a = res.data[0];
  1652. var b = res.data[1];
  1653. var c = res.data[2];
  1654. var d = res.data[3];
  1655. for (var i = 0; i < b.length; i++) {
  1656. // if (!this.id) {
  1657. // this.courseType[b[i].id] = [];
  1658. // }
  1659. for (var j = 0; j < a.length; j++) {
  1660. if (b[i].id == a[j].pid) {
  1661. if (!this.courseTypeJson[b[i].name]) {
  1662. this.courseType.push(b[i].name);
  1663. this.courseTypeJson[b[i].name] = [];
  1664. }
  1665. this.courseTypeJson[b[i].name].push(a[j].name);
  1666. }
  1667. }
  1668. }
  1669. this.Tname = [];
  1670. for (var k = 0; k < c.length; k++) {
  1671. this.Tname.push(c[k].name);
  1672. }
  1673. console.log(this.courseTypeJson.length);
  1674. this.aStudentName = res.data[2];
  1675. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1676. this.rw = 0
  1677. for (var z = 0; z < this.chapInfo.length; z++) {
  1678. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1679. }
  1680. let _chapters = JSON.parse(a[0].chapters);
  1681. let _works = res.data[3];
  1682. let _sCont = res.data[4];
  1683. let _comment = res.data[5];
  1684. let _chaptersJson = {
  1685. chapterState: _chapters,
  1686. state: {
  1687. stage: _chapters.length,
  1688. finish: 0,
  1689. learing: 0,
  1690. },
  1691. tool: [],
  1692. chapter: [],
  1693. time: {},
  1694. startTime: _works.length ? _works[0].time : "",
  1695. work: [],
  1696. studentCount: _sCont[0].usercount,
  1697. };
  1698. let timeAarry = [];
  1699. for (var j = 0; j < _works.length; j++) {
  1700. timeAarry.push(_works[j].vtime);
  1701. }
  1702. timeAarry.forEach((item) => {
  1703. _chaptersJson.time[item] = _chaptersJson.time[item] + 1 || 1;
  1704. });
  1705. for (var i = 0; i < _chapters.length; i++) {
  1706. _chaptersJson.chapterState[i].isFinsh = false;
  1707. // _chaptersJson.tool[i] = []
  1708. _chaptersJson.tool[i] = { array: [], name: _chapters[i].dyName };
  1709. _chaptersJson.chapter[i] = [];
  1710. _chaptersJson.work[i] = {
  1711. name: _chapters[i].dyName,
  1712. chapter: [],
  1713. time: "",
  1714. };
  1715. for (var j = 0; j < _works.length; j++) {
  1716. if (i == _works[j].stage) {
  1717. _chaptersJson.chapterState[i].isFinsh = true;
  1718. _chaptersJson.work[i].time = _works[j].time;
  1719. _chaptersJson.state.finish++;
  1720. break;
  1721. }
  1722. }
  1723. let el = _chapters[i].chapterInfo[0].taskJson;
  1724. for (var z = 0; z < el.length; z++) {
  1725. // _chaptersJson.tool[i][z] = [];
  1726. _chaptersJson.tool[i].array[z] = { array: [], name: el[z].task };
  1727. _chaptersJson.chapter[i][z] = [];
  1728. _chaptersJson.work[i].chapter[z] = {
  1729. name: el[z].task,
  1730. task: [],
  1731. isWork: false,
  1732. };
  1733. if (d.length > 0) {
  1734. _chaptersJson.work[i].chapter[z].isWork = true;
  1735. }
  1736. _chaptersJson.work[i].is = false;
  1737. let tools = el[z].toolChoose;
  1738. for (var k = 0; k < tools.length; k++) {
  1739. _chaptersJson.work[i].chapter[z].task[k] = {
  1740. tool: tools[k].tool[0],
  1741. works: [],
  1742. likeCount: 0,
  1743. commentCount: 0,
  1744. score: 0,
  1745. isScore: 0,
  1746. };
  1747. for (var j = 0; j < _works.length; j++) {
  1748. if (
  1749. i == _works[j].stage &&
  1750. z == _works[j].task &&
  1751. k == _works[j].tool
  1752. ) {
  1753. _chaptersJson.work[i].chapter[z].task[k].works.push(
  1754. _works[j]
  1755. );
  1756. if (_works[j].score) {
  1757. _chaptersJson.work[i].chapter[z].task[k].score +=
  1758. JSON.parse(_works[j].score).wScore;
  1759. _chaptersJson.work[i].chapter[z].task[k].isScore++;
  1760. }
  1761. }
  1762. }
  1763. for (var j = 0; j < _comment.length; j++) {
  1764. if (
  1765. i == _comment[j].stage &&
  1766. z == _comment[j].task &&
  1767. k == _comment[j].tool
  1768. ) {
  1769. if (_comment[j].cType == 1) {
  1770. _chaptersJson.work[i].chapter[z].task[k].likeCount++;
  1771. }
  1772. if (_comment[j].cType == 2) {
  1773. _chaptersJson.work[i].chapter[z].task[k].commentCount++;
  1774. }
  1775. }
  1776. }
  1777. // if (_chaptersJson.chapter[i][z].indexOf(tools[k].tool[0]) == -1) {
  1778. // _chaptersJson.tool[i][z].push(tools[k].tool[0])
  1779. // }
  1780. _chaptersJson.chapter[i][z][k] = { tool: tools[k].tool[0] };
  1781. // _chaptersJson.tool[i][z][k] = { tool: tools[k].tool[0] };
  1782. _chaptersJson.tool[i].array[z].array[k] = {
  1783. tool: tools[k].tool[0],
  1784. };
  1785. }
  1786. }
  1787. }
  1788. _chaptersJson.state.learing =
  1789. _chaptersJson.state.stage - _chaptersJson.state.finish;
  1790. this.chaptersJson = _chaptersJson;
  1791. // debugger
  1792. })
  1793. .catch((err) => {
  1794. loading.close();
  1795. console.error(err);
  1796. });
  1797. },
  1798. getGroup() {
  1799. this.getCourseDetail1();
  1800. },
  1801. getUser() {
  1802. let params = { uid: this.userid };
  1803. this.ajax
  1804. .get(this.$store.state.api + "getUser", params)
  1805. .then((res) => {
  1806. this.userinfo = res.data[0][0];
  1807. })
  1808. .catch((err) => {
  1809. console.error(err);
  1810. });
  1811. },
  1812. // getSName() {
  1813. // let params = {
  1814. // uid: JSON.stringify(this.courseDetail.course_student),
  1815. // };
  1816. // this.ajax
  1817. // .get(this.$store.state.api + "selectSName", params)
  1818. // .then((res) => {
  1819. // this.aStudentName = res.data[0];
  1820. // })
  1821. // .catch((err) => {
  1822. // console.error(err);
  1823. // });
  1824. // },
  1825. async getInviteCode(cid) {
  1826. let code = this.randomNumber();
  1827. // let params = {
  1828. // code: code,
  1829. // oid: this.oid,
  1830. // }
  1831. // let type = 1
  1832. // for (var i = 0; i < this.inviteCode.length; i++) {
  1833. // if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  1834. // type = 2
  1835. // }
  1836. // }
  1837. // if (type == 2) {
  1838. // this.getInviteCode(cid)
  1839. // return;
  1840. // }
  1841. // const res = await this.ajax.get(this.$store.state.api + "selectInviteCode2", params)
  1842. // if (res.data.length && res.data[0].length && res.data[0][0].courseId != this.cid) {
  1843. // this.getInviteCode(cid)
  1844. // return;
  1845. // }
  1846. let array = [];
  1847. for (var i = 0; i < this.inviteCode.length; i++) {
  1848. array.push(this.inviteCode[i].cid);
  1849. }
  1850. if (array.indexOf(cid) != -1) {
  1851. this.inviteCode[array.indexOf(cid)].ic = code;
  1852. } else {
  1853. this.inviteCode.push({ cid: cid, ic: code });
  1854. }
  1855. },
  1856. randomNumber() {
  1857. // 随机生成两位数
  1858. // let num = Math.floor(Math.random() * 900) + 100;
  1859. // 生成 0 到 99 之间的随机整数
  1860. const randomNumber = Math.floor(Math.random() * 100);
  1861. // 如果随机数小于 10,补上前导零
  1862. const num =
  1863. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  1864. // 随机生成两个大写字母
  1865. let letters = "";
  1866. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  1867. for (let i = 0; i < 3; i++) {
  1868. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  1869. }
  1870. // 随机生成两位数字和字母的组合
  1871. let mix = "";
  1872. let chars =
  1873. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  1874. for (let i = 0; i < 3; i++) {
  1875. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  1876. mix += char;
  1877. }
  1878. // 随机选择一种类型
  1879. let type = Math.floor(Math.random() * 3);
  1880. return num;
  1881. // 根据类型输出结果
  1882. switch (type) {
  1883. case 0:
  1884. console.log(num); // 输出两位数
  1885. return num;
  1886. case 1:
  1887. console.log(letters); // 输出两个大写字母
  1888. return letters;
  1889. case 2:
  1890. console.log(mix); // 输出两位数字和字母的组合
  1891. return mix;
  1892. }
  1893. },
  1894. exportCourse() {
  1895. let _title = `<div style="font-size:50px;font-weight:bold;">${this.courseDetail.title}</div>`;
  1896. let _type = "";
  1897. if (this.courseType.length) {
  1898. _type = `<div style="font-size:30px;margin-top:10px;"><span style="color: rgb(113, 124, 141); font-weight: 400;">分类:</span><span>${
  1899. this.courseTypeJson[Object.keys(this.courseTypeJson)[0]]
  1900. }</span></div>`;
  1901. }
  1902. let _user = `<div style="font-size:30px;margin-top:10px;"><span style="color: rgb(113, 124, 141); font-weight: 400;">创建者:</span><span>${this.courseDetail.username}</span></div>`;
  1903. const _chapInfo = this.chapInfo;
  1904. let _chap = "";
  1905. for (let i = 0; i < _chapInfo.length; i++) {
  1906. _chap += `<div style="font-size:40px;margin-top:70px;"><span>第${
  1907. i + 1
  1908. }阶段:${_chapInfo[i].dyName}</span></div>`;
  1909. let _task = _chapInfo[i].chapterInfo[0].taskJson;
  1910. for (let j = 0; j < _task.length; j++) {
  1911. _chap += `<div style="font-size:30px;margin-top:50px;"><span>任务${
  1912. j + 1
  1913. }:${_task[j].task}</span></div>`;
  1914. if (_task[j].taskDetail) {
  1915. _chap += `<div style="font-size:25px;margin-top:40px;">任务描述</div>`;
  1916. _chap += `<div style="font-size:25px;margin-top:10px;">${_task[j].taskDetail}</div>`;
  1917. }
  1918. let _tool = _task[j].toolChoose;
  1919. if (_tool[0].tool.length) {
  1920. for (let z = 0; z < _tool.length; z++) {
  1921. _chap += `<div style="font-size:23px;margin-top:30px;"><span>步骤${
  1922. z + 1
  1923. }:</span><span>${
  1924. tools[_tool[z].tool[0]] ? tools[_tool[z].tool[0]].name : ""
  1925. }</span></div>`;
  1926. if (_tool[z].toolDetail) {
  1927. _chap += `<div style="font-size:23px;margin-top:20px;">工具描述</div>`;
  1928. _chap += `<div style="font-size:23px;margin-top:10px;">${_tool[z].toolDetail}</div>`;
  1929. }
  1930. }
  1931. }
  1932. }
  1933. }
  1934. let _html = _title + _type + _user + _chap;
  1935. this.generate(this.courseDetail, _html);
  1936. },
  1937. async generate(a, html) {
  1938. // 将html文件中需要用到的数据挂载到store上
  1939. const content = `<!DOCTYPE html>
  1940. <html lang="en">
  1941. <head>
  1942. <meta charset="UTF-8">
  1943. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  1944. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  1945. <title>${a.title}</title>
  1946. <style>
  1947. </style>
  1948. </head>
  1949. <body>
  1950. ${html}
  1951. </body>
  1952. </html>`;
  1953. // debugger
  1954. // 生成报告
  1955. const link = document.createElement("a");
  1956. let dname = a.title + ".doc";
  1957. // link.download = "报告.html"; // 文件名
  1958. link.download = dname; // 文件名
  1959. link.style.display = "none";
  1960. // 创建文件流
  1961. // 创建bolb实例时,内容一定要放在[]中
  1962. const blob = new Blob([content], {
  1963. type: "text/plain;charset='utf-8'",
  1964. });
  1965. link.href = window.URL.createObjectURL(blob);
  1966. document.body.appendChild(link);
  1967. link.click();
  1968. document.body.removeChild(link);
  1969. // saveAs(
  1970. // htmlDocx.asBlob(content, {
  1971. // orientation: "landscape", //跨域设置
  1972. // }),
  1973. // //文件名
  1974. // "报告.doc"
  1975. // );
  1976. },
  1977. uploadCourse() {
  1978. // this.$confirm("确定导出课件吗?", "提示", {
  1979. // confirmButtonText: "确定",
  1980. // cancelButtonText: "取消",
  1981. // type: "warning",
  1982. // })
  1983. // .then(() => {
  1984. const loading = this.$loading.service({
  1985. background: "rgba(255, 255, 255, 0.7)",
  1986. target: document.body,
  1987. text: "文件加载中...",
  1988. });
  1989. const _chapInfo = this.chapInfo;
  1990. let url = [];
  1991. for (let i = 0; i < _chapInfo.length; i++) {
  1992. let _task = _chapInfo[i].chapterInfo[0].taskJson;
  1993. for (let j = 0; j < _task.length; j++) {
  1994. let _chapterData = _task[j].chapterData;
  1995. for (let k = 0; k < _chapterData.length; k++) {
  1996. if (
  1997. _chapterData[k].url.indexOf(
  1998. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  1999. ) !== -1 &&
  2000. _chapterData[k].url.indexOf("img") === -1
  2001. ) {
  2002. let _point = _chapterData[k].url.split(".")[_chapterData[k].url.split(".").length - 1]
  2003. url.push({
  2004. name: _chapterData[k].name.indexOf(_point) == -1 ? (_chapterData[k].name + '.' + _point) : _chapterData[k].name,
  2005. url: _chapterData[k].url,
  2006. });
  2007. }
  2008. }
  2009. }
  2010. }
  2011. console.log(url);
  2012. this.downLoadAll(url, loading);
  2013. // })
  2014. // .catch(() => {});
  2015. },
  2016. downLoadAll(url, loading) {
  2017. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  2018. const zip = new JSZip();
  2019. const cache = {};
  2020. const promises = [];
  2021. data.forEach((item) => {
  2022. const promise = getFile(item.url).then((data) => {
  2023. if (data.data != 1) {
  2024. // 下载文件, 并存成ArrayBuffer对象
  2025. const file_name = item.name; // 获取文件名
  2026. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  2027. cache[file_name] = data.data;
  2028. }
  2029. });
  2030. promises.push(promise);
  2031. });
  2032. Promise.all(promises).then(() => {
  2033. zip.generateAsync({ type: "blob" }).then((content) => {
  2034. // 生成二进制流
  2035. FileSaver.saveAs(content, this.courseDetail.title + ".zip"); // 利用file-saver保存文件 自定义文件名
  2036. setTimeout(() => {
  2037. loading.close();
  2038. }, 2000);
  2039. });
  2040. });
  2041. },
  2042. },
  2043. created() {
  2044. // if(this.tType == 1 || this.tType == 4){
  2045. // this.getCourseDetail2();
  2046. // }else{
  2047. // this.getCourseDetail1();
  2048. // }
  2049. this.getCourseDetail1();
  2050. this.getUser();
  2051. document.scrollingElement.scrollTop = 0;
  2052. // this.getSName();
  2053. },
  2054. };
  2055. </script>
  2056. <style scoped>
  2057. @media screen and (max-width: 1024px) {
  2058. /* .Tname {
  2059. width: 500px;
  2060. white-space: nowrap;
  2061. overflow: hidden;
  2062. text-overflow: ellipsis;
  2063. } */
  2064. }
  2065. .body_student {
  2066. margin: 10px auto;
  2067. width: 98%;
  2068. height: 100%;
  2069. }
  2070. .student_head {
  2071. width: 100%;
  2072. background: #fff;
  2073. height: 30%;
  2074. position: relative;
  2075. }
  2076. .returnIndexImg {
  2077. width: 18px;
  2078. margin: 0 7px 0 0;
  2079. height: auto;
  2080. box-sizing: border-box;
  2081. display: flex;
  2082. align-items: center;
  2083. }
  2084. .returnIndexImg > img {
  2085. width: 100%;
  2086. }
  2087. .wheel {
  2088. width: 250px;
  2089. max-height: 146px;
  2090. display: flex;
  2091. align-items: center;
  2092. }
  2093. .man {
  2094. width: 16px;
  2095. height: 16px;
  2096. }
  2097. .wheel > img,
  2098. .man > img {
  2099. width: 100%;
  2100. height: 100%;
  2101. }
  2102. .box_course {
  2103. display: flex;
  2104. padding: 25px 0 20px 60px;
  2105. }
  2106. .right_box {
  2107. display: flex;
  2108. flex-direction: column;
  2109. margin-left: 30px;
  2110. align-items: flex-start;
  2111. width: calc(100% - 350px);
  2112. }
  2113. .right_box_title {
  2114. font-size: 20px;
  2115. font-weight: bold;
  2116. max-width: calc(100% - 250px);
  2117. white-space: nowrap;
  2118. overflow: hidden;
  2119. text-overflow: ellipsis;
  2120. }
  2121. .people {
  2122. display: flex;
  2123. margin-top: 20px;
  2124. }
  2125. .person {
  2126. margin-left: 10px;
  2127. /* line-height: 18px; */
  2128. }
  2129. .btnBox {
  2130. display: flex;
  2131. margin-top: 20px;
  2132. }
  2133. .now_study {
  2134. /* width: 120px; */
  2135. padding: 0 10px;
  2136. height: 45px;
  2137. color: #fff;
  2138. background: #3681fc;
  2139. text-align: center;
  2140. line-height: 45px;
  2141. border-radius: 8px;
  2142. font-size: 16px;
  2143. cursor: pointer;
  2144. display: flex;
  2145. flex-direction: row;
  2146. flex-wrap: nowrap;
  2147. align-items: center;
  2148. justify-content: center;
  2149. }
  2150. .now_study + .now_study {
  2151. margin-left: 10px;
  2152. }
  2153. .goToStudy {
  2154. /* width: 120px; */
  2155. padding: 0 10px;
  2156. height: 45px;
  2157. background: #3681fc;
  2158. border-radius: 8px;
  2159. color: #fff;
  2160. display: flex;
  2161. flex-direction: row;
  2162. flex-wrap: nowrap;
  2163. align-items: center;
  2164. justify-content: center;
  2165. position: absolute;
  2166. right: 25px;
  2167. bottom: 25px;
  2168. font-size: 16px;
  2169. cursor: pointer;
  2170. }
  2171. .now_group {
  2172. height: 35px;
  2173. font-size: 14px;
  2174. line-height: 35px;
  2175. margin-left: 32px;
  2176. }
  2177. .now_group > span:nth-child(1) {
  2178. color: rgb(108, 108, 108);
  2179. }
  2180. .choose_who {
  2181. display: flex;
  2182. margin: 15px 0 0 25px;
  2183. }
  2184. .who_choose {
  2185. height: 28px;
  2186. cursor: pointer;
  2187. }
  2188. .choose_who > div:nth-child(2) {
  2189. margin-left: 35px;
  2190. }
  2191. .choose {
  2192. border-bottom: 5px solid #4a9eed;
  2193. color: #4a9eed;
  2194. }
  2195. .student_body {
  2196. display: flex;
  2197. }
  2198. .student_body,
  2199. .right {
  2200. width: 100%;
  2201. margin: 10px auto;
  2202. min-height: 688px;
  2203. }
  2204. .nav {
  2205. margin: auto 25px;
  2206. width: 80%;
  2207. padding-top: 5px;
  2208. text-indent: 25px;
  2209. }
  2210. .pic {
  2211. width: 100%;
  2212. display: flex;
  2213. flex-direction: row;
  2214. flex-wrap: wrap;
  2215. height: 100%;
  2216. justify-content: space-evenly;
  2217. }
  2218. .Img {
  2219. /*width: 30%; */
  2220. width: 300px;
  2221. margin: 20px 50px;
  2222. margin: 20px 10px;
  2223. border: 1px solid #dbdbdb;
  2224. border-radius: 5px;
  2225. overflow: hidden;
  2226. }
  2227. .Img > img {
  2228. width: 100%;
  2229. height: 100%;
  2230. }
  2231. .student_body_one,
  2232. .right_one {
  2233. width: 100%;
  2234. margin: 0 auto;
  2235. background: #fff;
  2236. margin-top: 10px;
  2237. min-height: 688px;
  2238. }
  2239. .student {
  2240. width: 85%;
  2241. display: flex;
  2242. flex-direction: row;
  2243. flex-wrap: wrap;
  2244. justify-content: flex-start;
  2245. margin: auto 10px;
  2246. }
  2247. .student > div {
  2248. width: 12%;
  2249. height: 35px;
  2250. background: #e3759a;
  2251. text-align: center;
  2252. border: 1px solid #e3759a;
  2253. border-radius: 5px;
  2254. color: #fff;
  2255. line-height: 35px;
  2256. margin: 10px;
  2257. }
  2258. .dialog_change >>> .el-dialog {
  2259. border-radius: 5px;
  2260. }
  2261. .dialog_change >>> .el-dialog__header {
  2262. background: #303030;
  2263. height: 36px;
  2264. line-height: 36px;
  2265. padding-left: 10px;
  2266. padding: 0px 10px 0px;
  2267. }
  2268. .dialog_change >>> .el-dialog__headerbtn {
  2269. top: 10px !important;
  2270. right: 10px !important;
  2271. }
  2272. .dialog_change >>> .el-dialog__title {
  2273. color: #fff;
  2274. font-size: 14px;
  2275. line-height: 5px;
  2276. }
  2277. .dialog_change >>> .el-dialog__body {
  2278. background: #f5f5f5;
  2279. }
  2280. .blue_box {
  2281. align-items: center;
  2282. display: flex;
  2283. flex-direction: column;
  2284. justify-content: center;
  2285. }
  2286. .blue_box,
  2287. .blue_box_one {
  2288. width: 30%;
  2289. height: 100px;
  2290. text-align: center;
  2291. color: #fff;
  2292. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  2293. border-radius: 15px;
  2294. margin: 15px 0 15px 15px;
  2295. cursor: pointer;
  2296. }
  2297. .courseItem {
  2298. width: 299px;
  2299. height: 70px;
  2300. background: #ddebf8;
  2301. border-radius: 8px;
  2302. margin-right: 16px;
  2303. margin-bottom: 16px;
  2304. display: flex;
  2305. flex-direction: row;
  2306. flex-wrap: nowrap;
  2307. align-items: flex-start;
  2308. justify-content: center;
  2309. padding-top: 20px;
  2310. cursor: pointer;
  2311. }
  2312. .jdAndTask {
  2313. display: flex;
  2314. flex-direction: column;
  2315. flex-wrap: nowrap;
  2316. justify-content: center;
  2317. align-items: flex-start;
  2318. }
  2319. .jdAndTask > div:nth-child(1) {
  2320. font-size: 18px;
  2321. font-weight: bold;
  2322. color: #000;
  2323. margin-bottom: 10px;
  2324. }
  2325. .jdAndTask > div:nth-child(2) {
  2326. font-size: 14px;
  2327. font-weight: 400;
  2328. color: #000;
  2329. max-width: 180px;
  2330. white-space: nowrap;
  2331. overflow: hidden;
  2332. text-overflow: ellipsis;
  2333. word-break: break-word;
  2334. width: 180px;
  2335. }
  2336. .blue_box_one {
  2337. width: 200px;
  2338. height: 200px;
  2339. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  2340. display: flex;
  2341. flex-direction: column;
  2342. flex-wrap: nowrap;
  2343. align-items: center;
  2344. justify-content: center;
  2345. }
  2346. .blue_box_one > div {
  2347. margin: 5px 0;
  2348. }
  2349. .blue_box_one > div:nth-child(1) {
  2350. font-size: 20px;
  2351. font-weight: bold;
  2352. }
  2353. .blue_box > div:nth-child(2) {
  2354. margin-top: 10px;
  2355. }
  2356. .blue_box_one > div:nth-child(2) {
  2357. white-space: nowrap;
  2358. text-overflow: ellipsis;
  2359. overflow: hidden;
  2360. word-break: break-all;
  2361. width: 100%;
  2362. text-align: center;
  2363. max-width: calc(100% - 85px);
  2364. margin: 0 auto;
  2365. }
  2366. .return {
  2367. background: #f0f4fa;
  2368. width: 75px;
  2369. height: 36px;
  2370. color: #000;
  2371. text-align: center;
  2372. line-height: 36px;
  2373. margin-right: 20px;
  2374. cursor: pointer;
  2375. border-radius: 5px;
  2376. position: absolute;
  2377. right: 10px;
  2378. top: 24px;
  2379. font-size: 14px;
  2380. display: flex;
  2381. flex-direction: row;
  2382. flex-wrap: nowrap;
  2383. justify-content: center;
  2384. align-items: center;
  2385. }
  2386. .return > img {
  2387. width: 100%;
  2388. height: 100%;
  2389. }
  2390. .cType {
  2391. display: flex;
  2392. flex-direction: row;
  2393. justify-content: center;
  2394. align-items: center;
  2395. margin-top: 20px;
  2396. }
  2397. .cType > div > span {
  2398. font-weight: 400;
  2399. color: #717c8d;
  2400. }
  2401. .type_children + .type_children {
  2402. margin-left: 10px;
  2403. }
  2404. .all_choose {
  2405. margin-right: 10px;
  2406. max-width: 250px;
  2407. white-space: nowrap;
  2408. overflow: hidden;
  2409. text-overflow: ellipsis;
  2410. }
  2411. .rightT {
  2412. display: flex;
  2413. flex-direction: row;
  2414. flex-wrap: nowrap;
  2415. align-items: center;
  2416. width: calc(100% - 20px);
  2417. }
  2418. .jd {
  2419. background: #f0f0f0;
  2420. margin-left: 12px;
  2421. border-radius: 4px;
  2422. font-size: 14px;
  2423. color: #3d3d3d;
  2424. width: 90px;
  2425. height: 28px;
  2426. text-align: center;
  2427. line-height: 28px;
  2428. }
  2429. .sLeft {
  2430. width: 343px;
  2431. margin-right: 10px;
  2432. background: rgb(255, 255, 255);
  2433. padding: 20px 20px 0 20px;
  2434. box-sizing: border-box;
  2435. border-radius: 12px;
  2436. }
  2437. .courseT {
  2438. border-left: 3px solid #3681fc;
  2439. padding-left: 5px;
  2440. font-weight: bold;
  2441. }
  2442. .courseTd {
  2443. padding-top: 15px;
  2444. height: 700px;
  2445. overflow: auto;
  2446. word-break: break-word;
  2447. white-space: pre-line;
  2448. }
  2449. .courseTd::-webkit-scrollbar {
  2450. /*滚动条整体样式*/
  2451. width: 6px;
  2452. /*高宽分别对应横竖滚动条的尺寸*/
  2453. height: 6px;
  2454. }
  2455. /*定义滚动条轨道 内阴影+圆角*/
  2456. .courseTd::-webkit-scrollbar {
  2457. border-radius: 10px;
  2458. background-color: #eee;
  2459. }
  2460. /*定义滑块 内阴影+圆角*/
  2461. .courseTd::-webkit-scrollbar-thumb {
  2462. border-radius: 10px;
  2463. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  2464. background-color: rgba(0, 0, 0, 0.1);
  2465. }
  2466. .rightTd,
  2467. .noBRight {
  2468. width: calc(100% - 28% - 10px);
  2469. background: #fff;
  2470. display: flex;
  2471. flex-direction: row;
  2472. flex-wrap: wrap;
  2473. align-content: flex-start;
  2474. align-items: center;
  2475. justify-content: flex-start;
  2476. border-radius: 12px;
  2477. padding-left: 17px;
  2478. }
  2479. .rightTd:nth-child(5n),
  2480. .noBRight:nth-child(5n) {
  2481. margin-right: 0;
  2482. }
  2483. .noBRight {
  2484. width: 100%;
  2485. }
  2486. .Tname {
  2487. word-break: break-all;
  2488. width: auto;
  2489. /* overflow: hidden;
  2490. white-space: nowrap;
  2491. text-overflow: ellipsis; */
  2492. }
  2493. /* .TnameC{
  2494. width:auto;
  2495. overflow: unset;
  2496. white-space: unset;
  2497. text-overflow: unset;
  2498. } */
  2499. .Tname > span {
  2500. cursor: pointer;
  2501. color: #1463eb;
  2502. margin-left: 10px;
  2503. }
  2504. .detail {
  2505. width: 100%;
  2506. padding: 15px;
  2507. box-sizing: border-box;
  2508. }
  2509. .statebox {
  2510. display: flex;
  2511. align-items: center;
  2512. box-sizing: border-box;
  2513. margin-left: 30px;
  2514. }
  2515. .statebox div {
  2516. padding: 10px 20px;
  2517. border-radius: 5px;
  2518. background: #fff;
  2519. display: flex;
  2520. align-items: center;
  2521. height: 46px;
  2522. line-height: 46px;
  2523. box-sizing: border-box;
  2524. }
  2525. .statebox div + div {
  2526. margin-left: 20px;
  2527. }
  2528. .statebox div span {
  2529. font-size: 16px;
  2530. display: flex;
  2531. align-items: center;
  2532. }
  2533. .statebox div span + span {
  2534. margin-left: 10px;
  2535. color: #1463eb;
  2536. }
  2537. .p_tool_box {
  2538. display: flex;
  2539. flex-wrap: wrap;
  2540. /* color: #fff; */
  2541. padding: 0 15px 10px;
  2542. align-items: center;
  2543. justify-content: space-evenly;
  2544. border-radius: 5px;
  2545. height: 200px;
  2546. overflow: auto;
  2547. max-width: 150px;
  2548. }
  2549. .p_tool {
  2550. display: flex;
  2551. margin-top: 10px;
  2552. }
  2553. .p_tool > div {
  2554. display: flex;
  2555. flex-direction: column;
  2556. align-items: center;
  2557. min-width: 60px;
  2558. }
  2559. .p_tool > div img {
  2560. width: 50px;
  2561. height: 50px;
  2562. }
  2563. .p_tool > div > div {
  2564. margin-top: 5px;
  2565. font-size: 12px;
  2566. }
  2567. .p_tool_box2 {
  2568. padding: 10px 15px;
  2569. }
  2570. .p_tool2 {
  2571. margin-right: 20px;
  2572. display: flex;
  2573. flex-direction: column;
  2574. align-items: flex-start;
  2575. /* margin-bottom: 10px; */
  2576. }
  2577. .p_tool2 > div:nth-child(1) {
  2578. margin-bottom: 10px;
  2579. }
  2580. .toolBigBox {
  2581. display: flex;
  2582. flex-direction: column;
  2583. }
  2584. .toolSta {
  2585. display: flex;
  2586. margin: 20px 0 0;
  2587. }
  2588. .toolSta > div {
  2589. display: flex;
  2590. }
  2591. .toolSta > div + div {
  2592. margin-left: 50px;
  2593. }
  2594. .toolSta > div > div:nth-child(1) {
  2595. margin: 10px 10px 0 0;
  2596. }
  2597. .blueBtn {
  2598. background: #61a0f5;
  2599. color: #fff;
  2600. display: flex;
  2601. padding: 10px 15px;
  2602. /* min-width: 150px; */
  2603. min-width: 165px;
  2604. font-size: 16px;
  2605. align-items: center;
  2606. border-radius: 5px;
  2607. }
  2608. .toolSta > div > div:nth-child(2) > div + div {
  2609. margin-top: 10px;
  2610. }
  2611. .toolSta > div > div:nth-child(2) > div > div + div {
  2612. margin: 0 20px;
  2613. }
  2614. .p_tool2 .toolbox {
  2615. display: flex;
  2616. align-items: center;
  2617. margin-top: 10px;
  2618. }
  2619. .p_tool2 .toolbox > div {
  2620. font-size: 16px;
  2621. font-weight: bold;
  2622. }
  2623. .checkBox {
  2624. display: flex;
  2625. padding: 20px 0 0 20px;
  2626. box-sizing: border-box;
  2627. width: 100%;
  2628. }
  2629. .checkBox span {
  2630. padding: 0 5px 5px;
  2631. cursor: pointer;
  2632. font-size: 18px;
  2633. font-weight: 400;
  2634. }
  2635. .checkBox span + span {
  2636. margin-left: 20px;
  2637. }
  2638. .checkBox .active {
  2639. border-bottom: 3px solid #3681fc;
  2640. color: #3681fc;
  2641. font-weight: bold;
  2642. }
  2643. .detail_box {
  2644. background-color: #f0f4fa;
  2645. padding: 15px 20px;
  2646. box-sizing: border-box;
  2647. width: 100%;
  2648. border-radius: 12px;
  2649. }
  2650. .detail_box + .detail_box {
  2651. margin-top: 20px;
  2652. }
  2653. .detail_box .title {
  2654. display: flex;
  2655. align-items: center;
  2656. }
  2657. .detail_box .title > span:nth-child(1) {
  2658. font-size: 18px;
  2659. display: flex;
  2660. align-items: center;
  2661. font-weight: 400;
  2662. color: #0e1e33;
  2663. }
  2664. .detail_box .box {
  2665. margin-top: 20px;
  2666. border-radius: 5px;
  2667. /* width: 100%; */
  2668. box-sizing: border-box;
  2669. overflow: auto;
  2670. }
  2671. .progress {
  2672. display: -webkit-box;
  2673. display: -ms-flexbox;
  2674. width: 100%;
  2675. overflow: auto;
  2676. }
  2677. .chapter {
  2678. margin-right: 30px;
  2679. min-width: 180px;
  2680. background-color: #fff;
  2681. border-radius: 12px;
  2682. }
  2683. .chapter + .chapter {
  2684. padding-left: 10px;
  2685. border-left: 1px solid rgb(220, 220, 220);
  2686. }
  2687. .chapter .stage {
  2688. width: 100%;
  2689. color: #fff;
  2690. background: linear-gradient(90deg, #477cd7, #65b9fc);
  2691. border-radius: 5px;
  2692. height: 50px;
  2693. line-height: 50px;
  2694. font-size: 18px;
  2695. text-align: center;
  2696. min-width: 180px;
  2697. }
  2698. .chapter .task {
  2699. display: flex;
  2700. width: 100%;
  2701. min-width: 180px;
  2702. padding-top: 15px;
  2703. }
  2704. .chapter .task .taskBox {
  2705. min-width: 180px;
  2706. height: 100%;
  2707. }
  2708. .borderRight {
  2709. border-right: 1px solid #eceef7;
  2710. }
  2711. .chapter .task .taskBox + .taskBox {
  2712. margin-left: 10px;
  2713. }
  2714. .chapter .task .taskBox .taskName {
  2715. text-align: center;
  2716. margin: 10px 0 10px 10px;
  2717. display: flex;
  2718. flex-direction: row;
  2719. flex-wrap: nowrap;
  2720. align-items: center;
  2721. min-width: 180px;
  2722. width: 100%;
  2723. }
  2724. /* .toolIcon::before {
  2725. content: "";
  2726. width: 26px;
  2727. height: 26px;
  2728. display: inline-block;
  2729. background-image: url(../assets/icon/toolion.png);
  2730. background-size: 100% 100%;
  2731. }
  2732. .toolIcon::before {
  2733. content: "";
  2734. width: 26px;
  2735. height: 26px;
  2736. display: inline-block;
  2737. background-image: url(../assets/icon/toolion.png);
  2738. background-size: 100% 100%;
  2739. }
  2740. .taskIcon::before {
  2741. content: "";
  2742. width: 26px;
  2743. height: 26px;
  2744. display: inline-block;
  2745. background-image: url(../assets/icon/task.png);
  2746. background-size: 100% 100%;
  2747. }
  2748. .finishIcon::before {
  2749. content: "";
  2750. width: 26px;
  2751. height: 26px;
  2752. display: inline-block;
  2753. background-image: url(../assets/icon/finish.png);
  2754. background-size: 100% 100%;
  2755. } */
  2756. .learningIcon {
  2757. color: #fe9999;
  2758. }
  2759. /* .learningIcon::before {
  2760. content: "";
  2761. width: 22px;
  2762. height: 22px;
  2763. display: inline-block;
  2764. background-image: url(../assets/icon/learning.png);
  2765. background-size: 100% 100%;
  2766. }
  2767. .frequencyIcon::before {
  2768. content: "";
  2769. width: 26px;
  2770. height: 26px;
  2771. display: inline-block;
  2772. background-image: url(../assets/icon/frequency.png);
  2773. background-size: 100% 100%;
  2774. }
  2775. .timeIcon::before {
  2776. content: "";
  2777. width: 26px;
  2778. height: 26px;
  2779. display: inline-block;
  2780. background-image: url(../assets/icon/time.png);
  2781. background-size: 100% 100%;
  2782. } */
  2783. .chapter_time_box {
  2784. border-left: 5px solid #f0f0f0;
  2785. padding: 0 30px;
  2786. box-sizing: border-box;
  2787. margin-top: 35px;
  2788. }
  2789. .c_box {
  2790. padding-top: 40px;
  2791. position: relative;
  2792. margin-top: 45px;
  2793. }
  2794. .c_box .stage_box {
  2795. display: flex;
  2796. align-items: center;
  2797. position: absolute;
  2798. top: -20px;
  2799. left: -45px;
  2800. }
  2801. .c_box .stage_box .yuan {
  2802. width: 25px;
  2803. height: 25px;
  2804. background: rgb(244, 244, 244);
  2805. border-radius: 25px;
  2806. display: flex;
  2807. align-items: center;
  2808. justify-content: center;
  2809. margin-right: 10px;
  2810. }
  2811. .bgCss::before {
  2812. background: #ccc !important;
  2813. }
  2814. .c_box .stage_box .yuan::before {
  2815. content: "";
  2816. width: 15px;
  2817. height: 15px;
  2818. background: rgb(59, 149, 238);
  2819. border-radius: 25px;
  2820. }
  2821. .c_box .stage_box .stage {
  2822. background: linear-gradient(90deg, #478bff, #65b9fc);
  2823. border-radius: 5px;
  2824. height: 50px;
  2825. line-height: 50px;
  2826. font-size: 18px;
  2827. color: #fff;
  2828. width: fit-content;
  2829. padding: 0 20px;
  2830. }
  2831. .s_up {
  2832. cursor: pointer;
  2833. transition: all 0.5s;
  2834. }
  2835. .s_up img {
  2836. width: 35px;
  2837. }
  2838. .s_up2 {
  2839. transform: rotate(90deg);
  2840. }
  2841. .lineBox {
  2842. width: 5px;
  2843. height: 20px;
  2844. background-image: linear-gradient(180deg, #3c65ba, #a1c6ec);
  2845. margin-right: 5px;
  2846. }
  2847. .disCss {
  2848. display: flex;
  2849. flex-direction: row;
  2850. flex-wrap: nowrap;
  2851. align-items: center;
  2852. }
  2853. .disCss > div {
  2854. margin: 10px 10px 0 0;
  2855. }
  2856. .titleCss {
  2857. max-width: 100px;
  2858. white-space: nowrap;
  2859. overflow: hidden;
  2860. text-overflow: ellipsis;
  2861. word-break: break-word;
  2862. margin-left: 10px;
  2863. font-size: 16px;
  2864. font-weight: bold;
  2865. color: #0e1e33;
  2866. }
  2867. .navIndex {
  2868. font-weight: bold;
  2869. color: #0e1e33;
  2870. font-size: 14px;
  2871. }
  2872. .stageCss {
  2873. cursor: pointer;
  2874. display: flex;
  2875. flex-direction: row;
  2876. flex-wrap: nowrap;
  2877. justify-content: center;
  2878. align-items: center;
  2879. border-bottom: 1px solid #e7ebf1;
  2880. }
  2881. .disabled {
  2882. background: rgba(210, 210, 210, 1);
  2883. }
  2884. .teaClass {
  2885. display: flex;
  2886. flex-direction: row;
  2887. flex-wrap: nowrap;
  2888. align-items: center;
  2889. }
  2890. .teaClass > div:nth-child(1) {
  2891. min-width: 90px;
  2892. }
  2893. .diy_sk >>> .el-dialog {
  2894. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  2895. border-radius: 18px 18px 18px 18px;
  2896. }
  2897. .diy_sk >>> .el-dialog__title {
  2898. font-size: 16px;
  2899. font-weight: bold;
  2900. color: #0e1e33;
  2901. }
  2902. .diy_sk >>> .el-dialog__body {
  2903. padding: 0 20px 15px 20px;
  2904. }
  2905. .classBox {
  2906. display: flex;
  2907. flex-direction: row;
  2908. flex-wrap: wrap;
  2909. justify-content: flex-start;
  2910. align-items: flex-start;
  2911. min-height: 300px;
  2912. max-height: 500px;
  2913. overflow: auto;
  2914. align-content: flex-start;
  2915. margin-bottom: 15px;
  2916. }
  2917. .classBox > div {
  2918. width: 106px;
  2919. height: 32px;
  2920. background: #3681fc;
  2921. border-radius: 4px;
  2922. font-weight: 400;
  2923. color: #fff;
  2924. font-size: 14px;
  2925. text-align: center;
  2926. line-height: 32px;
  2927. margin: 0 8px 8px 0;
  2928. cursor: pointer;
  2929. }
  2930. .cancelDiy {
  2931. width: 102px;
  2932. height: 36px;
  2933. background: #e7ebf1;
  2934. border-radius: 4px;
  2935. font-size: 14px;
  2936. font-weight: 400;
  2937. color: #717c8d;
  2938. text-align: center;
  2939. line-height: 32px;
  2940. margin: 0 auto;
  2941. cursor: pointer;
  2942. }
  2943. .confirmButtonClass{
  2944. background-color: #1463eb !important;
  2945. border-color: #1463eb !important;
  2946. }
  2947. </style>