courseDetail.vue 94 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112
  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"></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. const getFile = (url) => {
  1086. return new Promise((resolve, reject) => {
  1087. var credentials = {
  1088. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1089. secretAccessKey: "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",
  1090. }; //秘钥形式的登录上传
  1091. window.AWS.config.update(credentials);
  1092. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1093. let url2 = url;
  1094. let _url2 = "";
  1095. if (
  1096. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  1097. ) {
  1098. _url2 = url2.split(
  1099. "https://view.officeapps.live.com/op/view.aspx?src="
  1100. )[1];
  1101. } else {
  1102. _url2 = url2;
  1103. }
  1104. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  1105. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  1106. var params = {
  1107. Bucket: "ccrb",
  1108. Key: name
  1109. };
  1110. s3.getObject(params, function (err, data) {
  1111. if (err) {
  1112. console.log(err, err.stack)
  1113. resolve({ data: 1 });
  1114. }else {
  1115. resolve({ data: data.Body });
  1116. console.log(data);
  1117. } // sxuccessful response
  1118. });
  1119. // axios({
  1120. // method: "get",
  1121. // url,
  1122. // responseType: "blob",
  1123. // })
  1124. // .then((data) => {
  1125. // resolve({ data: data.data });
  1126. // })
  1127. // .catch((error) => {
  1128. // resolve({ data: 1 });
  1129. // // reject(error.toString());
  1130. // });
  1131. });
  1132. };
  1133. export default {
  1134. components: {
  1135. Heatmap,
  1136. Group,
  1137. scoreZong
  1138. },
  1139. data() {
  1140. return {
  1141. choose: 0,
  1142. dialogVisibleSk: false,
  1143. dialogVisible: false,
  1144. dialogVisibleGroup: false,
  1145. id: this.$route.query.courseId,
  1146. userid: this.$route.query.userid,
  1147. oid: this.$route.query.oid,
  1148. org: this.$route.query.org,
  1149. classId: this.$route.query.cid,
  1150. tType: this.$route.query.tType,
  1151. screenType: this.$route.query.screenType,
  1152. courseDetail: {},
  1153. classList: [],
  1154. aStudentName: [],
  1155. chapInfo: [],
  1156. courseType: [],
  1157. Tname: [],
  1158. TnameCheck: false,
  1159. courseTypeJson: {},
  1160. userinfo: [],
  1161. mr: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  1162. rw: 0,
  1163. chaptersJson: {},
  1164. type: 2,
  1165. inviteCode: [],
  1166. groupInfo: "",
  1167. isFollow: "",
  1168. followC: "",
  1169. dialogVisibleQR: false,
  1170. checkStage: 0,
  1171. tools: tools,
  1172. };
  1173. },
  1174. methods: {
  1175. handleClose(done) {
  1176. done();
  1177. },
  1178. setQr(cid) {
  1179. this.dialogVisibleQR = true;
  1180. setTimeout(() => {
  1181. this.$refs.qrCodeUrl.innerHTML = "";
  1182. var qrcode = new QRCode(this.$refs.qrCodeUrl, {
  1183. text: "https://beta.cloud.cocorobo.cn/#/course?courseid=" + cid, // 需要转换为二维码的内容
  1184. width: 350,
  1185. height: 350,
  1186. colorDark: "#000000",
  1187. colorLight: "#ffffff",
  1188. correctLevel: QRCode.CorrectLevel.H,
  1189. });
  1190. }, 500);
  1191. },
  1192. goTo(path) {
  1193. this.$router.push(path);
  1194. },
  1195. gotoCourse(id) {
  1196. if (this.courseDetail.state == 1) {
  1197. if (this.classList.length) {
  1198. this.goTo(
  1199. "/studyStudent?type=" +
  1200. this.checkStage +
  1201. "&courseId=" +
  1202. this.id +
  1203. "&userid=" +
  1204. this.userid +
  1205. "&oid=" +
  1206. this.oid +
  1207. "&org=" +
  1208. this.org +
  1209. "&cid=" +
  1210. this.classId +
  1211. "&tType=" +
  1212. this.tType +
  1213. "&screenType=" +
  1214. this.screenType +
  1215. "&tcid=" +
  1216. id
  1217. );
  1218. } else {
  1219. this.goTo(
  1220. "/studyStudent?type=" +
  1221. this.checkStage +
  1222. "&courseId=" +
  1223. this.id +
  1224. "&userid=" +
  1225. this.userid +
  1226. "&oid=" +
  1227. this.oid +
  1228. "&org=" +
  1229. this.org +
  1230. "&cid=" +
  1231. this.classId +
  1232. "&tType=" +
  1233. this.tType +
  1234. "&screenType=" +
  1235. this.screenType
  1236. );
  1237. }
  1238. } else if (this.courseDetail.state == 2) {
  1239. if (this.classList.length) {
  1240. this.goTo(
  1241. "/studystudentE2?type=" +
  1242. this.checkStage +
  1243. "&courseId=" +
  1244. this.id +
  1245. "&userid=" +
  1246. this.userid +
  1247. "&oid=" +
  1248. this.oid +
  1249. "&org=" +
  1250. this.org +
  1251. "&cid=" +
  1252. this.classId +
  1253. "&tType=" +
  1254. this.tType +
  1255. "&screenType=" +
  1256. this.screenType +
  1257. "&tcid=" +
  1258. id
  1259. );
  1260. } else {
  1261. this.goTo(
  1262. "/studystudentE2?type=" +
  1263. this.checkStage +
  1264. "&courseId=" +
  1265. this.id +
  1266. "&userid=" +
  1267. this.userid +
  1268. "&oid=" +
  1269. this.oid +
  1270. "&org=" +
  1271. this.org +
  1272. "&cid=" +
  1273. this.classId +
  1274. "&tType=" +
  1275. this.tType +
  1276. "&screenType=" +
  1277. this.screenType
  1278. );
  1279. }
  1280. } else if (this.courseDetail.state == 3 || this.courseDetail.state == 4) {
  1281. if (this.classList.length) {
  1282. this.goTo(
  1283. "/studystudentE3?type=" +
  1284. this.checkStage +
  1285. "&courseId=" +
  1286. this.id +
  1287. "&userid=" +
  1288. this.userid +
  1289. "&oid=" +
  1290. this.oid +
  1291. "&org=" +
  1292. this.org +
  1293. "&cid=" +
  1294. this.classId +
  1295. "&tType=" +
  1296. this.tType +
  1297. "&screenType=" +
  1298. this.screenType +
  1299. "&tcid=" +
  1300. id
  1301. );
  1302. } else {
  1303. this.goTo(
  1304. "/studystudentE3?type=" +
  1305. this.checkStage +
  1306. "&courseId=" +
  1307. this.id +
  1308. "&userid=" +
  1309. this.userid +
  1310. "&oid=" +
  1311. this.oid +
  1312. "&org=" +
  1313. this.org +
  1314. "&cid=" +
  1315. this.classId +
  1316. "&tType=" +
  1317. this.tType +
  1318. "&screenType=" +
  1319. this.screenType
  1320. );
  1321. }
  1322. }
  1323. },
  1324. goToStudyOrDia(l) {
  1325. if (l.length > 0) {
  1326. this.dialogVisibleSk = true;
  1327. } else {
  1328. this.getCourseDetail1().then(_=>{
  1329. if(this.classList.length<=0){
  1330. this.$confirm("该课程尚未指定授课班级,请放回首页,使用修改功能添加授课班级。","提示",{
  1331. confirmButtonText: '去修改',
  1332. cancelButtonText: '取消',
  1333. type:"error",
  1334. }).then(() => {
  1335. if(this.courseDetail.state == 1 || this.courseDetail.state == 2){
  1336. window.parent.postMessage({ tools: "openNewCourseUpdate",cid:this.id }, "*");
  1337. }else if(this.courseDetail.state == 3 || this.courseDetail.state == 4){
  1338. window.parent.postMessage({ tools: "openCourseEUpdate",cid:this.id }, "*");
  1339. }
  1340. })
  1341. }else{
  1342. this.dialogVisibleSk = true;
  1343. }
  1344. })
  1345. // this.addUserRate(0);
  1346. }
  1347. },
  1348. goToStudyRate(i) {
  1349. this.checkStage = i;
  1350. if (this.tType == 2) {
  1351. this.addUserRate(i);
  1352. } else {
  1353. if (this.classList.length > 0) {
  1354. this.dialogVisibleSk = true;
  1355. } else {
  1356. this.addUserRate(i);
  1357. }
  1358. }
  1359. },
  1360. addUserRate(i) {
  1361. // var suid = this.userid;
  1362. // if (
  1363. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1 &&
  1364. // JSON.parse(this.courseDetail.userid) != suid
  1365. // ) {
  1366. // this.$message.error("你没有该权限");
  1367. // return;
  1368. // }
  1369. // var a =
  1370. // this.courseDetail.course_student != ""
  1371. // ? JSON.parse(this.courseDetail.course_student)
  1372. // : "";
  1373. // if (this.courseDetail.userid != suid) {
  1374. // if (this.userinfo.type == 2) {
  1375. // if (a != "") {
  1376. // if (
  1377. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
  1378. // ) {
  1379. // this.$message.error("你没有该权限");
  1380. // return;
  1381. // }
  1382. // } else {
  1383. // this.$message.error("暂无项目学员,请联系老师添加项目学员!");
  1384. // return;
  1385. // }
  1386. // }
  1387. // }
  1388. if (this.isFollow == 2 && this.tType == 2 && this.followC != i) {
  1389. return;
  1390. }
  1391. let params = {
  1392. uid: this.userid,
  1393. cid: this.id,
  1394. };
  1395. this.ajax
  1396. .get(this.$store.state.api + "addUserR", params)
  1397. .then((res) => {
  1398. this.updateVc();
  1399. if (this.tType == 1 || this.tType == 4) {
  1400. if (this.courseDetail.state == 1) {
  1401. this.goTo(
  1402. "/studyStudent?type=" +
  1403. i +
  1404. "&courseId=" +
  1405. this.id +
  1406. "&userid=" +
  1407. this.userid +
  1408. "&oid=" +
  1409. this.oid +
  1410. "&org=" +
  1411. this.org +
  1412. "&cid=" +
  1413. this.classId +
  1414. "&tType=" +
  1415. this.tType +
  1416. "&screenType=" +
  1417. this.screenType
  1418. );
  1419. } else if (this.courseDetail.state == 2) {
  1420. this.goTo(
  1421. "/studystudentE2?type=" +
  1422. i +
  1423. "&courseId=" +
  1424. this.id +
  1425. "&userid=" +
  1426. this.userid +
  1427. "&oid=" +
  1428. this.oid +
  1429. "&org=" +
  1430. this.org +
  1431. "&cid=" +
  1432. this.classId +
  1433. "&tType=" +
  1434. this.tType +
  1435. "&screenType=" +
  1436. this.screenType
  1437. );
  1438. } else if (this.courseDetail.state == 3 || this.courseDetail.state == 4) {
  1439. this.goTo(
  1440. "/studystudentE3?type=" +
  1441. i +
  1442. "&courseId=" +
  1443. this.id +
  1444. "&userid=" +
  1445. this.userid +
  1446. "&oid=" +
  1447. this.oid +
  1448. "&org=" +
  1449. this.org +
  1450. "&cid=" +
  1451. this.classId +
  1452. "&tType=" +
  1453. this.tType +
  1454. "&screenType=" +
  1455. this.screenType
  1456. );
  1457. }
  1458. } else if (this.tType == 2) {
  1459. this.goTo(
  1460. "/studyStudent?type=" +
  1461. i +
  1462. "&courseId=" +
  1463. this.id +
  1464. "&userid=" +
  1465. this.userid +
  1466. "&oid=" +
  1467. this.oid +
  1468. "&org=" +
  1469. this.org +
  1470. "&cid=" +
  1471. this.classId +
  1472. "&tType=" +
  1473. this.tType +
  1474. "&screenType=" +
  1475. this.screenType
  1476. );
  1477. // this.gotoCourse(this.classId);
  1478. } else {
  1479. this.goTo(
  1480. "/study?type=" +
  1481. i +
  1482. "&courseId=" +
  1483. this.id +
  1484. "&userid=" +
  1485. this.userid +
  1486. "&oid=" +
  1487. this.oid +
  1488. "&org=" +
  1489. this.org +
  1490. "&cid=" +
  1491. this.classId +
  1492. "&tType=" +
  1493. this.tType +
  1494. "&screenType=" +
  1495. this.screenType
  1496. );
  1497. }
  1498. })
  1499. .catch((err) => {
  1500. console.error(err);
  1501. });
  1502. },
  1503. updateVc() {
  1504. let params = {
  1505. cid: this.id,
  1506. };
  1507. this.ajax
  1508. .get(this.$store.state.api + "updateVc", params)
  1509. .then((res) => {
  1510. console.log(res.data);
  1511. })
  1512. .catch((err) => {
  1513. console.error(err);
  1514. });
  1515. },
  1516. async getCourseDetail1() {
  1517. const loading = this.$loading.service({
  1518. background: "rgba(255, 255, 255, 0.7)",
  1519. target: document.querySelector(".student_table"),
  1520. });
  1521. let params = {
  1522. courseId: this.id,
  1523. };
  1524. let res = await this.ajax.get(
  1525. this.$store.state.api + "selectCourseDetail2",
  1526. params
  1527. );
  1528. loading.close();
  1529. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1530. this.courseDetail = res.data[0][0];
  1531. this.isFollow = res.data[0][0].follow;
  1532. this.followC = res.data[0][0].followC
  1533. ? res.data[0][0].followC.split("-")[0]
  1534. : "";
  1535. this.classList = res.data[3];
  1536. let groupData = res.data[5];
  1537. var a = res.data[0];
  1538. var b = res.data[1];
  1539. var c = res.data[2];
  1540. for (var i = 0; i < b.length; i++) {
  1541. // if (!this.id) {
  1542. // this.courseType[b[i].id] = [];
  1543. // }
  1544. for (var j = 0; j < a.length; j++) {
  1545. if (b[i].id == a[j].pid) {
  1546. if (!this.courseTypeJson[b[i].name]) {
  1547. this.courseType.push(b[i].name);
  1548. this.courseTypeJson[b[i].name] = [];
  1549. }
  1550. this.courseTypeJson[b[i].name].push(a[j].name);
  1551. }
  1552. }
  1553. }
  1554. this.Tname = [];
  1555. for (var k = 0; k < c.length; k++) {
  1556. this.Tname.push(c[k].name);
  1557. }
  1558. console.log(this.courseTypeJson.length);
  1559. this.aStudentName = res.data[2];
  1560. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1561. this.rw = 0
  1562. for (var z = 0; z < this.chapInfo.length; z++) {
  1563. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1564. }
  1565. this.inviteCode = [];
  1566. for (var i = 0; i < res.data[4].length; i++) {
  1567. this.inviteCode.push({
  1568. cid: res.data[4][i].classid,
  1569. ic: res.data[4][i].code,
  1570. });
  1571. }
  1572. if (res.data[3].length != this.inviteCode.length) {
  1573. let classArray = [];
  1574. let noClassArray = [];
  1575. for (var i = 0; i < res.data[3].length; i++) {
  1576. classArray.push(res.data[3][i].id);
  1577. noClassArray.push(res.data[3][i].id);
  1578. }
  1579. this.inviteCode = this.inviteCode.filter((el) => {
  1580. if (classArray.indexOf(el.cid) != -1) {
  1581. noClassArray.splice(noClassArray.indexOf(el.cid), 1);
  1582. return el;
  1583. }
  1584. });
  1585. for (var i = 0; i < noClassArray.length; i++) {
  1586. await this.getInviteCode(noClassArray[i]);
  1587. }
  1588. let a = this.inviteCode;
  1589. console.log(this.inviteCode);
  1590. this.addInviteCode();
  1591. }
  1592. this.groupInfo = "";
  1593. if (groupData.length) {
  1594. gp: for (var g = 0; g < groupData.length; g++) {
  1595. if (groupData[g].userid == this.userid) {
  1596. let gid = groupData[g].groupCid;
  1597. let groupA = JSON.parse(groupData[g].group).group;
  1598. for (var gA = 0; gA < groupA.length; gA++) {
  1599. if (groupA[gA].id == gid) {
  1600. this.groupInfo = {
  1601. name: groupA[gA].name,
  1602. };
  1603. break gp;
  1604. }
  1605. }
  1606. }
  1607. }
  1608. }
  1609. // debugger
  1610. },
  1611. addInviteCode() {
  1612. let params = [
  1613. {
  1614. courseId: this.id,
  1615. inviteCode: JSON.stringify(this.inviteCode),
  1616. },
  1617. ];
  1618. this.ajax
  1619. .post(this.$store.state.api + "addInviteCode", params)
  1620. .then((res) => {})
  1621. .catch((err) => {
  1622. console.error(err);
  1623. });
  1624. },
  1625. getCTwo() {
  1626. this.type = 1;
  1627. this.getCourseDetail2();
  1628. },
  1629. getCThree(){
  1630. this.type = 3
  1631. },
  1632. getCourseDetail2() {
  1633. const loading = this.$loading.service({
  1634. background: "rgba(255, 255, 255, 0.7)",
  1635. target: document.querySelector(".student_table"),
  1636. });
  1637. let params = {
  1638. courseId: this.id,
  1639. };
  1640. this.ajax
  1641. .get(this.$store.state.api + "selectCourseDetail", params)
  1642. .then((res) => {
  1643. loading.close();
  1644. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1645. this.courseDetail = res.data[0][0];
  1646. var a = res.data[0];
  1647. var b = res.data[1];
  1648. var c = res.data[2];
  1649. var d = res.data[3];
  1650. for (var i = 0; i < b.length; i++) {
  1651. // if (!this.id) {
  1652. // this.courseType[b[i].id] = [];
  1653. // }
  1654. for (var j = 0; j < a.length; j++) {
  1655. if (b[i].id == a[j].pid) {
  1656. if (!this.courseTypeJson[b[i].name]) {
  1657. this.courseType.push(b[i].name);
  1658. this.courseTypeJson[b[i].name] = [];
  1659. }
  1660. this.courseTypeJson[b[i].name].push(a[j].name);
  1661. }
  1662. }
  1663. }
  1664. this.Tname = [];
  1665. for (var k = 0; k < c.length; k++) {
  1666. this.Tname.push(c[k].name);
  1667. }
  1668. console.log(this.courseTypeJson.length);
  1669. this.aStudentName = res.data[2];
  1670. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1671. this.rw = 0
  1672. for (var z = 0; z < this.chapInfo.length; z++) {
  1673. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1674. }
  1675. let _chapters = JSON.parse(a[0].chapters);
  1676. let _works = res.data[3];
  1677. let _sCont = res.data[4];
  1678. let _comment = res.data[5];
  1679. let _chaptersJson = {
  1680. chapterState: _chapters,
  1681. state: {
  1682. stage: _chapters.length,
  1683. finish: 0,
  1684. learing: 0,
  1685. },
  1686. tool: [],
  1687. chapter: [],
  1688. time: {},
  1689. startTime: _works.length ? _works[0].time : "",
  1690. work: [],
  1691. studentCount: _sCont[0].usercount,
  1692. };
  1693. let timeAarry = [];
  1694. for (var j = 0; j < _works.length; j++) {
  1695. timeAarry.push(_works[j].vtime);
  1696. }
  1697. timeAarry.forEach((item) => {
  1698. _chaptersJson.time[item] = _chaptersJson.time[item] + 1 || 1;
  1699. });
  1700. for (var i = 0; i < _chapters.length; i++) {
  1701. _chaptersJson.chapterState[i].isFinsh = false;
  1702. // _chaptersJson.tool[i] = []
  1703. _chaptersJson.tool[i] = { array: [], name: _chapters[i].dyName };
  1704. _chaptersJson.chapter[i] = [];
  1705. _chaptersJson.work[i] = {
  1706. name: _chapters[i].dyName,
  1707. chapter: [],
  1708. time: "",
  1709. };
  1710. for (var j = 0; j < _works.length; j++) {
  1711. if (i == _works[j].stage) {
  1712. _chaptersJson.chapterState[i].isFinsh = true;
  1713. _chaptersJson.work[i].time = _works[j].time;
  1714. _chaptersJson.state.finish++;
  1715. break;
  1716. }
  1717. }
  1718. let el = _chapters[i].chapterInfo[0].taskJson;
  1719. for (var z = 0; z < el.length; z++) {
  1720. // _chaptersJson.tool[i][z] = [];
  1721. _chaptersJson.tool[i].array[z] = { array: [], name: el[z].task };
  1722. _chaptersJson.chapter[i][z] = [];
  1723. _chaptersJson.work[i].chapter[z] = {
  1724. name: el[z].task,
  1725. task: [],
  1726. isWork: false,
  1727. };
  1728. if (d.length > 0) {
  1729. _chaptersJson.work[i].chapter[z].isWork = true;
  1730. }
  1731. _chaptersJson.work[i].is = false;
  1732. let tools = el[z].toolChoose;
  1733. for (var k = 0; k < tools.length; k++) {
  1734. _chaptersJson.work[i].chapter[z].task[k] = {
  1735. tool: tools[k].tool[0],
  1736. works: [],
  1737. likeCount: 0,
  1738. commentCount: 0,
  1739. score: 0,
  1740. isScore: 0,
  1741. };
  1742. for (var j = 0; j < _works.length; j++) {
  1743. if (
  1744. i == _works[j].stage &&
  1745. z == _works[j].task &&
  1746. k == _works[j].tool
  1747. ) {
  1748. _chaptersJson.work[i].chapter[z].task[k].works.push(
  1749. _works[j]
  1750. );
  1751. if (_works[j].score) {
  1752. _chaptersJson.work[i].chapter[z].task[k].score +=
  1753. JSON.parse(_works[j].score).wScore;
  1754. _chaptersJson.work[i].chapter[z].task[k].isScore++;
  1755. }
  1756. }
  1757. }
  1758. for (var j = 0; j < _comment.length; j++) {
  1759. if (
  1760. i == _comment[j].stage &&
  1761. z == _comment[j].task &&
  1762. k == _comment[j].tool
  1763. ) {
  1764. if (_comment[j].cType == 1) {
  1765. _chaptersJson.work[i].chapter[z].task[k].likeCount++;
  1766. }
  1767. if (_comment[j].cType == 2) {
  1768. _chaptersJson.work[i].chapter[z].task[k].commentCount++;
  1769. }
  1770. }
  1771. }
  1772. // if (_chaptersJson.chapter[i][z].indexOf(tools[k].tool[0]) == -1) {
  1773. // _chaptersJson.tool[i][z].push(tools[k].tool[0])
  1774. // }
  1775. _chaptersJson.chapter[i][z][k] = { tool: tools[k].tool[0] };
  1776. // _chaptersJson.tool[i][z][k] = { tool: tools[k].tool[0] };
  1777. _chaptersJson.tool[i].array[z].array[k] = {
  1778. tool: tools[k].tool[0],
  1779. };
  1780. }
  1781. }
  1782. }
  1783. _chaptersJson.state.learing =
  1784. _chaptersJson.state.stage - _chaptersJson.state.finish;
  1785. this.chaptersJson = _chaptersJson;
  1786. // debugger
  1787. })
  1788. .catch((err) => {
  1789. loading.close();
  1790. console.error(err);
  1791. });
  1792. },
  1793. getGroup() {
  1794. this.getCourseDetail1();
  1795. },
  1796. getUser() {
  1797. let params = { uid: this.userid };
  1798. this.ajax
  1799. .get(this.$store.state.api + "getUser", params)
  1800. .then((res) => {
  1801. this.userinfo = res.data[0][0];
  1802. })
  1803. .catch((err) => {
  1804. console.error(err);
  1805. });
  1806. },
  1807. // getSName() {
  1808. // let params = {
  1809. // uid: JSON.stringify(this.courseDetail.course_student),
  1810. // };
  1811. // this.ajax
  1812. // .get(this.$store.state.api + "selectSName", params)
  1813. // .then((res) => {
  1814. // this.aStudentName = res.data[0];
  1815. // })
  1816. // .catch((err) => {
  1817. // console.error(err);
  1818. // });
  1819. // },
  1820. async getInviteCode(cid) {
  1821. let code = this.randomNumber();
  1822. // let params = {
  1823. // code: code,
  1824. // oid: this.oid,
  1825. // }
  1826. // let type = 1
  1827. // for (var i = 0; i < this.inviteCode.length; i++) {
  1828. // if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  1829. // type = 2
  1830. // }
  1831. // }
  1832. // if (type == 2) {
  1833. // this.getInviteCode(cid)
  1834. // return;
  1835. // }
  1836. // const res = await this.ajax.get(this.$store.state.api + "selectInviteCode2", params)
  1837. // if (res.data.length && res.data[0].length && res.data[0][0].courseId != this.cid) {
  1838. // this.getInviteCode(cid)
  1839. // return;
  1840. // }
  1841. let array = [];
  1842. for (var i = 0; i < this.inviteCode.length; i++) {
  1843. array.push(this.inviteCode[i].cid);
  1844. }
  1845. if (array.indexOf(cid) != -1) {
  1846. this.inviteCode[array.indexOf(cid)].ic = code;
  1847. } else {
  1848. this.inviteCode.push({ cid: cid, ic: code });
  1849. }
  1850. },
  1851. randomNumber() {
  1852. // 随机生成两位数
  1853. // let num = Math.floor(Math.random() * 900) + 100;
  1854. // 生成 0 到 99 之间的随机整数
  1855. const randomNumber = Math.floor(Math.random() * 100);
  1856. // 如果随机数小于 10,补上前导零
  1857. const num =
  1858. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  1859. // 随机生成两个大写字母
  1860. let letters = "";
  1861. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  1862. for (let i = 0; i < 3; i++) {
  1863. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  1864. }
  1865. // 随机生成两位数字和字母的组合
  1866. let mix = "";
  1867. let chars =
  1868. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  1869. for (let i = 0; i < 3; i++) {
  1870. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  1871. mix += char;
  1872. }
  1873. // 随机选择一种类型
  1874. let type = Math.floor(Math.random() * 3);
  1875. return num;
  1876. // 根据类型输出结果
  1877. switch (type) {
  1878. case 0:
  1879. console.log(num); // 输出两位数
  1880. return num;
  1881. case 1:
  1882. console.log(letters); // 输出两个大写字母
  1883. return letters;
  1884. case 2:
  1885. console.log(mix); // 输出两位数字和字母的组合
  1886. return mix;
  1887. }
  1888. },
  1889. exportCourse() {
  1890. let _title = `<div style="font-size:50px;font-weight:bold;">${this.courseDetail.title}</div>`;
  1891. let _type = "";
  1892. if (this.courseType.length) {
  1893. _type = `<div style="font-size:30px;margin-top:10px;"><span style="color: rgb(113, 124, 141); font-weight: 400;">分类:</span><span>${
  1894. this.courseTypeJson[Object.keys(this.courseTypeJson)[0]]
  1895. }</span></div>`;
  1896. }
  1897. 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>`;
  1898. const _chapInfo = this.chapInfo;
  1899. let _chap = "";
  1900. for (let i = 0; i < _chapInfo.length; i++) {
  1901. _chap += `<div style="font-size:40px;margin-top:70px;"><span>第${
  1902. i + 1
  1903. }阶段:${_chapInfo[i].dyName}</span></div>`;
  1904. let _task = _chapInfo[i].chapterInfo[0].taskJson;
  1905. for (let j = 0; j < _task.length; j++) {
  1906. _chap += `<div style="font-size:30px;margin-top:50px;"><span>任务${
  1907. j + 1
  1908. }:${_task[j].task}</span></div>`;
  1909. if (_task[j].taskDetail) {
  1910. _chap += `<div style="font-size:25px;margin-top:40px;">任务描述</div>`;
  1911. _chap += `<div style="font-size:25px;margin-top:10px;">${_task[j].taskDetail}</div>`;
  1912. }
  1913. let _tool = _task[j].toolChoose;
  1914. if (_tool[0].tool.length) {
  1915. for (let z = 0; z < _tool.length; z++) {
  1916. _chap += `<div style="font-size:23px;margin-top:30px;"><span>步骤${
  1917. z + 1
  1918. }:</span><span>${
  1919. tools[_tool[z].tool[0]] ? tools[_tool[z].tool[0]].name : ""
  1920. }</span></div>`;
  1921. if (_tool[z].toolDetail) {
  1922. _chap += `<div style="font-size:23px;margin-top:20px;">工具描述</div>`;
  1923. _chap += `<div style="font-size:23px;margin-top:10px;">${_tool[z].toolDetail}</div>`;
  1924. }
  1925. }
  1926. }
  1927. }
  1928. }
  1929. let _html = _title + _type + _user + _chap;
  1930. this.generate(this.courseDetail, _html);
  1931. },
  1932. async generate(a, html) {
  1933. // 将html文件中需要用到的数据挂载到store上
  1934. const content = `<!DOCTYPE html>
  1935. <html lang="en">
  1936. <head>
  1937. <meta charset="UTF-8">
  1938. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  1939. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  1940. <title>${a.title}</title>
  1941. <style>
  1942. </style>
  1943. </head>
  1944. <body>
  1945. ${html}
  1946. </body>
  1947. </html>`;
  1948. // debugger
  1949. // 生成报告
  1950. const link = document.createElement("a");
  1951. let dname = a.title + ".doc";
  1952. // link.download = "报告.html"; // 文件名
  1953. link.download = dname; // 文件名
  1954. link.style.display = "none";
  1955. // 创建文件流
  1956. // 创建bolb实例时,内容一定要放在[]中
  1957. const blob = new Blob([content], {
  1958. type: "text/plain;charset='utf-8'",
  1959. });
  1960. link.href = window.URL.createObjectURL(blob);
  1961. document.body.appendChild(link);
  1962. link.click();
  1963. document.body.removeChild(link);
  1964. // saveAs(
  1965. // htmlDocx.asBlob(content, {
  1966. // orientation: "landscape", //跨域设置
  1967. // }),
  1968. // //文件名
  1969. // "报告.doc"
  1970. // );
  1971. },
  1972. uploadCourse() {
  1973. // this.$confirm("确定导出课件吗?", "提示", {
  1974. // confirmButtonText: "确定",
  1975. // cancelButtonText: "取消",
  1976. // type: "warning",
  1977. // })
  1978. // .then(() => {
  1979. const loading = this.$loading.service({
  1980. background: "rgba(255, 255, 255, 0.7)",
  1981. target: document.body,
  1982. text: "文件加载中...",
  1983. });
  1984. const _chapInfo = this.chapInfo;
  1985. let url = [];
  1986. for (let i = 0; i < _chapInfo.length; i++) {
  1987. let _task = _chapInfo[i].chapterInfo[0].taskJson;
  1988. for (let j = 0; j < _task.length; j++) {
  1989. let _chapterData = _task[j].chapterData;
  1990. for (let k = 0; k < _chapterData.length; k++) {
  1991. if (
  1992. _chapterData[k].url.indexOf(
  1993. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  1994. ) !== -1 &&
  1995. _chapterData[k].url.indexOf("img") === -1
  1996. ) {
  1997. let _point = _chapterData[k].url.split(".")[_chapterData[k].url.split(".").length - 1]
  1998. url.push({
  1999. name: _chapterData[k].name.indexOf(_point) == -1 ? (_chapterData[k].name + '.' + _point) : _chapterData[k].name,
  2000. url: _chapterData[k].url,
  2001. });
  2002. }
  2003. }
  2004. }
  2005. }
  2006. console.log(url);
  2007. this.downLoadAll(url, loading);
  2008. // })
  2009. // .catch(() => {});
  2010. },
  2011. downLoadAll(url, loading) {
  2012. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  2013. const zip = new JSZip();
  2014. const cache = {};
  2015. const promises = [];
  2016. data.forEach((item) => {
  2017. const promise = getFile(item.url).then((data) => {
  2018. if (data.data != 1) {
  2019. // 下载文件, 并存成ArrayBuffer对象
  2020. const file_name = item.name; // 获取文件名
  2021. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  2022. cache[file_name] = data.data;
  2023. }
  2024. });
  2025. promises.push(promise);
  2026. });
  2027. Promise.all(promises).then(() => {
  2028. zip.generateAsync({ type: "blob" }).then((content) => {
  2029. // 生成二进制流
  2030. FileSaver.saveAs(content, this.courseDetail.title + ".zip"); // 利用file-saver保存文件 自定义文件名
  2031. setTimeout(() => {
  2032. loading.close();
  2033. }, 2000);
  2034. });
  2035. });
  2036. },
  2037. },
  2038. created() {
  2039. // if(this.tType == 1 || this.tType == 4){
  2040. // this.getCourseDetail2();
  2041. // }else{
  2042. // this.getCourseDetail1();
  2043. // }
  2044. this.getCourseDetail1();
  2045. this.getUser();
  2046. document.scrollingElement.scrollTop = 0;
  2047. // this.getSName();
  2048. },
  2049. };
  2050. </script>
  2051. <style scoped>
  2052. @media screen and (max-width: 1024px) {
  2053. /* .Tname {
  2054. width: 500px;
  2055. white-space: nowrap;
  2056. overflow: hidden;
  2057. text-overflow: ellipsis;
  2058. } */
  2059. }
  2060. .body_student {
  2061. margin: 10px auto;
  2062. width: 98%;
  2063. height: 100%;
  2064. }
  2065. .student_head {
  2066. width: 100%;
  2067. background: #fff;
  2068. height: 30%;
  2069. position: relative;
  2070. }
  2071. .returnIndexImg {
  2072. width: 18px;
  2073. margin: 0 7px 0 0;
  2074. height: auto;
  2075. box-sizing: border-box;
  2076. display: flex;
  2077. align-items: center;
  2078. }
  2079. .returnIndexImg > img {
  2080. width: 100%;
  2081. }
  2082. .wheel {
  2083. width: 250px;
  2084. max-height: 146px;
  2085. display: flex;
  2086. align-items: center;
  2087. }
  2088. .man {
  2089. width: 16px;
  2090. height: 16px;
  2091. }
  2092. .wheel > img,
  2093. .man > img {
  2094. width: 100%;
  2095. height: 100%;
  2096. }
  2097. .box_course {
  2098. display: flex;
  2099. padding: 25px 0 20px 60px;
  2100. }
  2101. .right_box {
  2102. display: flex;
  2103. flex-direction: column;
  2104. margin-left: 30px;
  2105. align-items: flex-start;
  2106. width: calc(100% - 350px);
  2107. }
  2108. .right_box_title {
  2109. font-size: 20px;
  2110. font-weight: bold;
  2111. max-width: calc(100% - 250px);
  2112. white-space: nowrap;
  2113. overflow: hidden;
  2114. text-overflow: ellipsis;
  2115. }
  2116. .people {
  2117. display: flex;
  2118. margin-top: 20px;
  2119. }
  2120. .person {
  2121. margin-left: 10px;
  2122. /* line-height: 18px; */
  2123. }
  2124. .btnBox {
  2125. display: flex;
  2126. margin-top: 20px;
  2127. }
  2128. .now_study {
  2129. /* width: 120px; */
  2130. padding: 0 10px;
  2131. height: 45px;
  2132. color: #fff;
  2133. background: #3681fc;
  2134. text-align: center;
  2135. line-height: 45px;
  2136. border-radius: 8px;
  2137. font-size: 16px;
  2138. cursor: pointer;
  2139. display: flex;
  2140. flex-direction: row;
  2141. flex-wrap: nowrap;
  2142. align-items: center;
  2143. justify-content: center;
  2144. }
  2145. .now_study + .now_study {
  2146. margin-left: 10px;
  2147. }
  2148. .goToStudy {
  2149. /* width: 120px; */
  2150. padding: 0 10px;
  2151. height: 45px;
  2152. background: #3681fc;
  2153. border-radius: 8px;
  2154. color: #fff;
  2155. display: flex;
  2156. flex-direction: row;
  2157. flex-wrap: nowrap;
  2158. align-items: center;
  2159. justify-content: center;
  2160. position: absolute;
  2161. right: 25px;
  2162. bottom: 25px;
  2163. font-size: 16px;
  2164. cursor: pointer;
  2165. }
  2166. .now_group {
  2167. height: 35px;
  2168. font-size: 14px;
  2169. line-height: 35px;
  2170. margin-left: 32px;
  2171. }
  2172. .now_group > span:nth-child(1) {
  2173. color: rgb(108, 108, 108);
  2174. }
  2175. .choose_who {
  2176. display: flex;
  2177. margin: 15px 0 0 25px;
  2178. }
  2179. .who_choose {
  2180. height: 28px;
  2181. cursor: pointer;
  2182. }
  2183. .choose_who > div:nth-child(2) {
  2184. margin-left: 35px;
  2185. }
  2186. .choose {
  2187. border-bottom: 5px solid #4a9eed;
  2188. color: #4a9eed;
  2189. }
  2190. .student_body {
  2191. display: flex;
  2192. }
  2193. .student_body,
  2194. .right {
  2195. width: 100%;
  2196. margin: 10px auto;
  2197. min-height: 688px;
  2198. }
  2199. .nav {
  2200. margin: auto 25px;
  2201. width: 80%;
  2202. padding-top: 5px;
  2203. text-indent: 25px;
  2204. }
  2205. .pic {
  2206. width: 100%;
  2207. display: flex;
  2208. flex-direction: row;
  2209. flex-wrap: wrap;
  2210. height: 100%;
  2211. justify-content: space-evenly;
  2212. }
  2213. .Img {
  2214. /*width: 30%; */
  2215. width: 300px;
  2216. margin: 20px 50px;
  2217. margin: 20px 10px;
  2218. border: 1px solid #dbdbdb;
  2219. border-radius: 5px;
  2220. overflow: hidden;
  2221. }
  2222. .Img > img {
  2223. width: 100%;
  2224. height: 100%;
  2225. }
  2226. .student_body_one,
  2227. .right_one {
  2228. width: 100%;
  2229. margin: 0 auto;
  2230. background: #fff;
  2231. margin-top: 10px;
  2232. min-height: 688px;
  2233. }
  2234. .student {
  2235. width: 85%;
  2236. display: flex;
  2237. flex-direction: row;
  2238. flex-wrap: wrap;
  2239. justify-content: flex-start;
  2240. margin: auto 10px;
  2241. }
  2242. .student > div {
  2243. width: 12%;
  2244. height: 35px;
  2245. background: #e3759a;
  2246. text-align: center;
  2247. border: 1px solid #e3759a;
  2248. border-radius: 5px;
  2249. color: #fff;
  2250. line-height: 35px;
  2251. margin: 10px;
  2252. }
  2253. .dialog_change >>> .el-dialog {
  2254. border-radius: 5px;
  2255. }
  2256. .dialog_change >>> .el-dialog__header {
  2257. background: #303030;
  2258. height: 36px;
  2259. line-height: 36px;
  2260. padding-left: 10px;
  2261. padding: 0px 10px 0px;
  2262. }
  2263. .dialog_change >>> .el-dialog__headerbtn {
  2264. top: 10px !important;
  2265. right: 10px !important;
  2266. }
  2267. .dialog_change >>> .el-dialog__title {
  2268. color: #fff;
  2269. font-size: 14px;
  2270. line-height: 5px;
  2271. }
  2272. .dialog_change >>> .el-dialog__body {
  2273. background: #f5f5f5;
  2274. }
  2275. .blue_box {
  2276. align-items: center;
  2277. display: flex;
  2278. flex-direction: column;
  2279. justify-content: center;
  2280. }
  2281. .blue_box,
  2282. .blue_box_one {
  2283. width: 30%;
  2284. height: 100px;
  2285. text-align: center;
  2286. color: #fff;
  2287. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  2288. border-radius: 15px;
  2289. margin: 15px 0 15px 15px;
  2290. cursor: pointer;
  2291. }
  2292. .courseItem {
  2293. width: 299px;
  2294. height: 70px;
  2295. background: #ddebf8;
  2296. border-radius: 8px;
  2297. margin-right: 16px;
  2298. margin-bottom: 16px;
  2299. display: flex;
  2300. flex-direction: row;
  2301. flex-wrap: nowrap;
  2302. align-items: flex-start;
  2303. justify-content: center;
  2304. padding-top: 20px;
  2305. cursor: pointer;
  2306. }
  2307. .jdAndTask {
  2308. display: flex;
  2309. flex-direction: column;
  2310. flex-wrap: nowrap;
  2311. justify-content: center;
  2312. align-items: flex-start;
  2313. }
  2314. .jdAndTask > div:nth-child(1) {
  2315. font-size: 18px;
  2316. font-weight: bold;
  2317. color: #000;
  2318. margin-bottom: 10px;
  2319. }
  2320. .jdAndTask > div:nth-child(2) {
  2321. font-size: 14px;
  2322. font-weight: 400;
  2323. color: #000;
  2324. max-width: 180px;
  2325. white-space: nowrap;
  2326. overflow: hidden;
  2327. text-overflow: ellipsis;
  2328. word-break: break-word;
  2329. width: 180px;
  2330. }
  2331. .blue_box_one {
  2332. width: 200px;
  2333. height: 200px;
  2334. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  2335. display: flex;
  2336. flex-direction: column;
  2337. flex-wrap: nowrap;
  2338. align-items: center;
  2339. justify-content: center;
  2340. }
  2341. .blue_box_one > div {
  2342. margin: 5px 0;
  2343. }
  2344. .blue_box_one > div:nth-child(1) {
  2345. font-size: 20px;
  2346. font-weight: bold;
  2347. }
  2348. .blue_box > div:nth-child(2) {
  2349. margin-top: 10px;
  2350. }
  2351. .blue_box_one > div:nth-child(2) {
  2352. white-space: nowrap;
  2353. text-overflow: ellipsis;
  2354. overflow: hidden;
  2355. word-break: break-all;
  2356. width: 100%;
  2357. text-align: center;
  2358. max-width: calc(100% - 85px);
  2359. margin: 0 auto;
  2360. }
  2361. .return {
  2362. background: #f0f4fa;
  2363. width: 75px;
  2364. height: 36px;
  2365. color: #000;
  2366. text-align: center;
  2367. line-height: 36px;
  2368. margin-right: 20px;
  2369. cursor: pointer;
  2370. border-radius: 5px;
  2371. position: absolute;
  2372. right: 10px;
  2373. top: 24px;
  2374. font-size: 14px;
  2375. display: flex;
  2376. flex-direction: row;
  2377. flex-wrap: nowrap;
  2378. justify-content: center;
  2379. align-items: center;
  2380. }
  2381. .return > img {
  2382. width: 100%;
  2383. height: 100%;
  2384. }
  2385. .cType {
  2386. display: flex;
  2387. flex-direction: row;
  2388. justify-content: center;
  2389. align-items: center;
  2390. margin-top: 20px;
  2391. }
  2392. .cType > div > span {
  2393. font-weight: 400;
  2394. color: #717c8d;
  2395. }
  2396. .type_children + .type_children {
  2397. margin-left: 10px;
  2398. }
  2399. .all_choose {
  2400. margin-right: 10px;
  2401. max-width: 250px;
  2402. white-space: nowrap;
  2403. overflow: hidden;
  2404. text-overflow: ellipsis;
  2405. }
  2406. .rightT {
  2407. display: flex;
  2408. flex-direction: row;
  2409. flex-wrap: nowrap;
  2410. align-items: center;
  2411. width: calc(100% - 20px);
  2412. }
  2413. .jd {
  2414. background: #f0f0f0;
  2415. margin-left: 12px;
  2416. border-radius: 4px;
  2417. font-size: 14px;
  2418. color: #3d3d3d;
  2419. width: 90px;
  2420. height: 28px;
  2421. text-align: center;
  2422. line-height: 28px;
  2423. }
  2424. .sLeft {
  2425. width: 343px;
  2426. margin-right: 10px;
  2427. background: rgb(255, 255, 255);
  2428. padding: 20px 20px 0 20px;
  2429. box-sizing: border-box;
  2430. border-radius: 12px;
  2431. }
  2432. .courseT {
  2433. border-left: 3px solid #3681fc;
  2434. padding-left: 5px;
  2435. font-weight: bold;
  2436. }
  2437. .courseTd {
  2438. padding-top: 15px;
  2439. height: 700px;
  2440. overflow: auto;
  2441. word-break: break-word;
  2442. white-space: pre-line;
  2443. }
  2444. .courseTd::-webkit-scrollbar {
  2445. /*滚动条整体样式*/
  2446. width: 6px;
  2447. /*高宽分别对应横竖滚动条的尺寸*/
  2448. height: 6px;
  2449. }
  2450. /*定义滚动条轨道 内阴影+圆角*/
  2451. .courseTd::-webkit-scrollbar {
  2452. border-radius: 10px;
  2453. background-color: #eee;
  2454. }
  2455. /*定义滑块 内阴影+圆角*/
  2456. .courseTd::-webkit-scrollbar-thumb {
  2457. border-radius: 10px;
  2458. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  2459. background-color: rgba(0, 0, 0, 0.1);
  2460. }
  2461. .rightTd,
  2462. .noBRight {
  2463. width: calc(100% - 28% - 10px);
  2464. background: #fff;
  2465. display: flex;
  2466. flex-direction: row;
  2467. flex-wrap: wrap;
  2468. align-content: flex-start;
  2469. align-items: center;
  2470. justify-content: flex-start;
  2471. border-radius: 12px;
  2472. padding-left: 17px;
  2473. }
  2474. .rightTd:nth-child(5n),
  2475. .noBRight:nth-child(5n) {
  2476. margin-right: 0;
  2477. }
  2478. .noBRight {
  2479. width: 100%;
  2480. }
  2481. .Tname {
  2482. word-break: break-all;
  2483. width: auto;
  2484. /* overflow: hidden;
  2485. white-space: nowrap;
  2486. text-overflow: ellipsis; */
  2487. }
  2488. /* .TnameC{
  2489. width:auto;
  2490. overflow: unset;
  2491. white-space: unset;
  2492. text-overflow: unset;
  2493. } */
  2494. .Tname > span {
  2495. cursor: pointer;
  2496. color: #1463eb;
  2497. margin-left: 10px;
  2498. }
  2499. .detail {
  2500. width: 100%;
  2501. padding: 15px;
  2502. box-sizing: border-box;
  2503. }
  2504. .statebox {
  2505. display: flex;
  2506. align-items: center;
  2507. box-sizing: border-box;
  2508. margin-left: 30px;
  2509. }
  2510. .statebox div {
  2511. padding: 10px 20px;
  2512. border-radius: 5px;
  2513. background: #fff;
  2514. display: flex;
  2515. align-items: center;
  2516. height: 46px;
  2517. line-height: 46px;
  2518. box-sizing: border-box;
  2519. }
  2520. .statebox div + div {
  2521. margin-left: 20px;
  2522. }
  2523. .statebox div span {
  2524. font-size: 16px;
  2525. display: flex;
  2526. align-items: center;
  2527. }
  2528. .statebox div span + span {
  2529. margin-left: 10px;
  2530. color: #1463eb;
  2531. }
  2532. .p_tool_box {
  2533. display: flex;
  2534. flex-wrap: wrap;
  2535. /* color: #fff; */
  2536. padding: 0 15px 10px;
  2537. align-items: center;
  2538. justify-content: space-evenly;
  2539. border-radius: 5px;
  2540. height: 200px;
  2541. overflow: auto;
  2542. max-width: 150px;
  2543. }
  2544. .p_tool {
  2545. display: flex;
  2546. margin-top: 10px;
  2547. }
  2548. .p_tool > div {
  2549. display: flex;
  2550. flex-direction: column;
  2551. align-items: center;
  2552. min-width: 60px;
  2553. }
  2554. .p_tool > div img {
  2555. width: 50px;
  2556. height: 50px;
  2557. }
  2558. .p_tool > div > div {
  2559. margin-top: 5px;
  2560. font-size: 12px;
  2561. }
  2562. .p_tool_box2 {
  2563. padding: 10px 15px;
  2564. }
  2565. .p_tool2 {
  2566. margin-right: 20px;
  2567. display: flex;
  2568. flex-direction: column;
  2569. align-items: flex-start;
  2570. /* margin-bottom: 10px; */
  2571. }
  2572. .p_tool2 > div:nth-child(1) {
  2573. margin-bottom: 10px;
  2574. }
  2575. .toolBigBox {
  2576. display: flex;
  2577. flex-direction: column;
  2578. }
  2579. .toolSta {
  2580. display: flex;
  2581. margin: 20px 0 0;
  2582. }
  2583. .toolSta > div {
  2584. display: flex;
  2585. }
  2586. .toolSta > div + div {
  2587. margin-left: 50px;
  2588. }
  2589. .toolSta > div > div:nth-child(1) {
  2590. margin: 10px 10px 0 0;
  2591. }
  2592. .blueBtn {
  2593. background: #61a0f5;
  2594. color: #fff;
  2595. display: flex;
  2596. padding: 10px 15px;
  2597. /* min-width: 150px; */
  2598. min-width: 165px;
  2599. font-size: 16px;
  2600. align-items: center;
  2601. border-radius: 5px;
  2602. }
  2603. .toolSta > div > div:nth-child(2) > div + div {
  2604. margin-top: 10px;
  2605. }
  2606. .toolSta > div > div:nth-child(2) > div > div + div {
  2607. margin: 0 20px;
  2608. }
  2609. .p_tool2 .toolbox {
  2610. display: flex;
  2611. align-items: center;
  2612. margin-top: 10px;
  2613. }
  2614. .p_tool2 .toolbox > div {
  2615. font-size: 16px;
  2616. font-weight: bold;
  2617. }
  2618. .checkBox {
  2619. display: flex;
  2620. padding: 20px 0 0 20px;
  2621. box-sizing: border-box;
  2622. width: 100%;
  2623. }
  2624. .checkBox span {
  2625. padding: 0 5px 5px;
  2626. cursor: pointer;
  2627. font-size: 18px;
  2628. font-weight: 400;
  2629. }
  2630. .checkBox span + span {
  2631. margin-left: 20px;
  2632. }
  2633. .checkBox .active {
  2634. border-bottom: 3px solid #3681fc;
  2635. color: #3681fc;
  2636. font-weight: bold;
  2637. }
  2638. .detail_box {
  2639. background-color: #f0f4fa;
  2640. padding: 15px 20px;
  2641. box-sizing: border-box;
  2642. width: 100%;
  2643. border-radius: 12px;
  2644. }
  2645. .detail_box + .detail_box {
  2646. margin-top: 20px;
  2647. }
  2648. .detail_box .title {
  2649. display: flex;
  2650. align-items: center;
  2651. }
  2652. .detail_box .title > span:nth-child(1) {
  2653. font-size: 18px;
  2654. display: flex;
  2655. align-items: center;
  2656. font-weight: 400;
  2657. color: #0e1e33;
  2658. }
  2659. .detail_box .box {
  2660. margin-top: 20px;
  2661. border-radius: 5px;
  2662. /* width: 100%; */
  2663. box-sizing: border-box;
  2664. overflow: auto;
  2665. }
  2666. .progress {
  2667. display: -webkit-box;
  2668. display: -ms-flexbox;
  2669. width: 100%;
  2670. overflow: auto;
  2671. }
  2672. .chapter {
  2673. margin-right: 30px;
  2674. min-width: 180px;
  2675. background-color: #fff;
  2676. border-radius: 12px;
  2677. }
  2678. .chapter + .chapter {
  2679. padding-left: 10px;
  2680. border-left: 1px solid rgb(220, 220, 220);
  2681. }
  2682. .chapter .stage {
  2683. width: 100%;
  2684. color: #fff;
  2685. background: linear-gradient(90deg, #477cd7, #65b9fc);
  2686. border-radius: 5px;
  2687. height: 50px;
  2688. line-height: 50px;
  2689. font-size: 18px;
  2690. text-align: center;
  2691. min-width: 180px;
  2692. }
  2693. .chapter .task {
  2694. display: flex;
  2695. width: 100%;
  2696. min-width: 180px;
  2697. padding-top: 15px;
  2698. }
  2699. .chapter .task .taskBox {
  2700. min-width: 180px;
  2701. height: 100%;
  2702. }
  2703. .borderRight {
  2704. border-right: 1px solid #eceef7;
  2705. }
  2706. .chapter .task .taskBox + .taskBox {
  2707. margin-left: 10px;
  2708. }
  2709. .chapter .task .taskBox .taskName {
  2710. text-align: center;
  2711. margin: 10px 0 10px 10px;
  2712. display: flex;
  2713. flex-direction: row;
  2714. flex-wrap: nowrap;
  2715. align-items: center;
  2716. min-width: 180px;
  2717. width: 100%;
  2718. }
  2719. /* .toolIcon::before {
  2720. content: "";
  2721. width: 26px;
  2722. height: 26px;
  2723. display: inline-block;
  2724. background-image: url(../assets/icon/toolion.png);
  2725. background-size: 100% 100%;
  2726. }
  2727. .toolIcon::before {
  2728. content: "";
  2729. width: 26px;
  2730. height: 26px;
  2731. display: inline-block;
  2732. background-image: url(../assets/icon/toolion.png);
  2733. background-size: 100% 100%;
  2734. }
  2735. .taskIcon::before {
  2736. content: "";
  2737. width: 26px;
  2738. height: 26px;
  2739. display: inline-block;
  2740. background-image: url(../assets/icon/task.png);
  2741. background-size: 100% 100%;
  2742. }
  2743. .finishIcon::before {
  2744. content: "";
  2745. width: 26px;
  2746. height: 26px;
  2747. display: inline-block;
  2748. background-image: url(../assets/icon/finish.png);
  2749. background-size: 100% 100%;
  2750. } */
  2751. .learningIcon {
  2752. color: #fe9999;
  2753. }
  2754. /* .learningIcon::before {
  2755. content: "";
  2756. width: 22px;
  2757. height: 22px;
  2758. display: inline-block;
  2759. background-image: url(../assets/icon/learning.png);
  2760. background-size: 100% 100%;
  2761. }
  2762. .frequencyIcon::before {
  2763. content: "";
  2764. width: 26px;
  2765. height: 26px;
  2766. display: inline-block;
  2767. background-image: url(../assets/icon/frequency.png);
  2768. background-size: 100% 100%;
  2769. }
  2770. .timeIcon::before {
  2771. content: "";
  2772. width: 26px;
  2773. height: 26px;
  2774. display: inline-block;
  2775. background-image: url(../assets/icon/time.png);
  2776. background-size: 100% 100%;
  2777. } */
  2778. .chapter_time_box {
  2779. border-left: 5px solid #f0f0f0;
  2780. padding: 0 30px;
  2781. box-sizing: border-box;
  2782. margin-top: 35px;
  2783. }
  2784. .c_box {
  2785. padding-top: 40px;
  2786. position: relative;
  2787. margin-top: 45px;
  2788. }
  2789. .c_box .stage_box {
  2790. display: flex;
  2791. align-items: center;
  2792. position: absolute;
  2793. top: -20px;
  2794. left: -45px;
  2795. }
  2796. .c_box .stage_box .yuan {
  2797. width: 25px;
  2798. height: 25px;
  2799. background: rgb(244, 244, 244);
  2800. border-radius: 25px;
  2801. display: flex;
  2802. align-items: center;
  2803. justify-content: center;
  2804. margin-right: 10px;
  2805. }
  2806. .bgCss::before {
  2807. background: #ccc !important;
  2808. }
  2809. .c_box .stage_box .yuan::before {
  2810. content: "";
  2811. width: 15px;
  2812. height: 15px;
  2813. background: rgb(59, 149, 238);
  2814. border-radius: 25px;
  2815. }
  2816. .c_box .stage_box .stage {
  2817. background: linear-gradient(90deg, #478bff, #65b9fc);
  2818. border-radius: 5px;
  2819. height: 50px;
  2820. line-height: 50px;
  2821. font-size: 18px;
  2822. color: #fff;
  2823. width: fit-content;
  2824. padding: 0 20px;
  2825. }
  2826. .s_up {
  2827. cursor: pointer;
  2828. transition: all 0.5s;
  2829. }
  2830. .s_up img {
  2831. width: 35px;
  2832. }
  2833. .s_up2 {
  2834. transform: rotate(90deg);
  2835. }
  2836. .lineBox {
  2837. width: 5px;
  2838. height: 20px;
  2839. background-image: linear-gradient(180deg, #3c65ba, #a1c6ec);
  2840. margin-right: 5px;
  2841. }
  2842. .disCss {
  2843. display: flex;
  2844. flex-direction: row;
  2845. flex-wrap: nowrap;
  2846. align-items: center;
  2847. }
  2848. .disCss > div {
  2849. margin: 10px 10px 0 0;
  2850. }
  2851. .titleCss {
  2852. max-width: 100px;
  2853. white-space: nowrap;
  2854. overflow: hidden;
  2855. text-overflow: ellipsis;
  2856. word-break: break-word;
  2857. margin-left: 10px;
  2858. font-size: 16px;
  2859. font-weight: bold;
  2860. color: #0e1e33;
  2861. }
  2862. .navIndex {
  2863. font-weight: bold;
  2864. color: #0e1e33;
  2865. font-size: 14px;
  2866. }
  2867. .stageCss {
  2868. cursor: pointer;
  2869. display: flex;
  2870. flex-direction: row;
  2871. flex-wrap: nowrap;
  2872. justify-content: center;
  2873. align-items: center;
  2874. border-bottom: 1px solid #e7ebf1;
  2875. }
  2876. .disabled {
  2877. background: rgba(210, 210, 210, 1);
  2878. }
  2879. .teaClass {
  2880. display: flex;
  2881. flex-direction: row;
  2882. flex-wrap: nowrap;
  2883. align-items: center;
  2884. }
  2885. .teaClass > div:nth-child(1) {
  2886. min-width: 90px;
  2887. }
  2888. .diy_sk >>> .el-dialog {
  2889. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  2890. border-radius: 18px 18px 18px 18px;
  2891. }
  2892. .diy_sk >>> .el-dialog__title {
  2893. font-size: 16px;
  2894. font-weight: bold;
  2895. color: #0e1e33;
  2896. }
  2897. .diy_sk >>> .el-dialog__body {
  2898. padding: 0 20px 15px 20px;
  2899. }
  2900. .classBox {
  2901. display: flex;
  2902. flex-direction: row;
  2903. flex-wrap: wrap;
  2904. justify-content: flex-start;
  2905. align-items: flex-start;
  2906. min-height: 300px;
  2907. max-height: 500px;
  2908. overflow: auto;
  2909. align-content: flex-start;
  2910. margin-bottom: 15px;
  2911. }
  2912. .classBox > div {
  2913. width: 106px;
  2914. height: 32px;
  2915. background: #3681fc;
  2916. border-radius: 4px;
  2917. font-weight: 400;
  2918. color: #fff;
  2919. font-size: 14px;
  2920. text-align: center;
  2921. line-height: 32px;
  2922. margin: 0 8px 8px 0;
  2923. cursor: pointer;
  2924. }
  2925. .cancelDiy {
  2926. width: 102px;
  2927. height: 36px;
  2928. background: #e7ebf1;
  2929. border-radius: 4px;
  2930. font-size: 14px;
  2931. font-weight: 400;
  2932. color: #717c8d;
  2933. text-align: center;
  2934. line-height: 32px;
  2935. margin: 0 auto;
  2936. cursor: pointer;
  2937. }
  2938. .confirmButtonClass{
  2939. background-color: #1463eb !important;
  2940. border-color: #1463eb !important;
  2941. }
  2942. </style>