courseDetail.vue 83 KB

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