courseDetail.vue 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762
  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="tType != 4"
  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. 返回
  27. <!-- <img src="../assets/icon/return.png" alt="" /> -->
  28. </div>
  29. <div class="box_course">
  30. <div class="wheel">
  31. <img
  32. style="object-fit: cover"
  33. :src="
  34. this.courseDetail.cover != null &&
  35. this.courseDetail.cover != ''
  36. ? JSON.parse(this.courseDetail.cover).length > 0
  37. ? JSON.parse(this.courseDetail.cover)[0].url
  38. : mr
  39. : mr
  40. "
  41. alt
  42. />
  43. </div>
  44. <div class="right_box">
  45. <div class="rightT">
  46. <div class="right_box_title">{{ courseDetail.title }}</div>
  47. <div class="jd">{{ chapInfo.length }}阶段</div>
  48. <div class="jd">{{ rw }}任务</div>
  49. </div>
  50. <div class="cType">
  51. <div
  52. class="all_choose"
  53. v-for="(item, index) in courseType"
  54. :key="index"
  55. >
  56. <span style="color: #6c6c6c">{{ item + ":" }}</span>
  57. <span
  58. class="type_children"
  59. v-for="(item2, index2) in courseTypeJson[item]"
  60. :key="index2"
  61. >{{ item2 }}</span
  62. >
  63. </div>
  64. </div>
  65. <div class="cType" style="font-size: 18px; color: #6c6c6c">
  66. <div style="min-width: 150px">
  67. 创建者:<span style="color: #000">{{
  68. courseDetail.username
  69. }}</span>
  70. </div>
  71. <div class="Tname" v-if="Tname.length > 0">
  72. 协同人员:<span
  73. v-for="(tname, tIndex) in Tname"
  74. :key="tIndex"
  75. style="margin: 0 5px; color: #000"
  76. >{{ tname }}</span
  77. >
  78. </div>
  79. </div>
  80. <div class="cType" style="font-size: 18px; color: #6c6c6c">
  81. <div style="display: flex; align-items: center">
  82. <div>参与人数:</div>
  83. <div class="man">
  84. <img src="../assets/people.png" alt />
  85. </div>
  86. <div class="person" style="color: #000">
  87. {{
  88. courseDetail.vcount != null ? courseDetail.vcount : 0
  89. }}人
  90. </div>
  91. </div>
  92. <div class="Tname" v-if="courseDetail.classname">
  93. 授课班级:<span style="margin: 0 5px; color: #000">{{
  94. courseDetail.classname
  95. }}</span>
  96. </div>
  97. </div>
  98. <div class="now_study" @click="dialogVisible = true">
  99. 立即学习
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="student_body">
  105. <div class="sLeft" v-if="courseDetail.brief">
  106. <div class="courseT">项目详情</div>
  107. <div class="courseTd">{{ courseDetail.brief }}</div>
  108. </div>
  109. <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'">
  110. <div v-if="tType == 1 || tType == 4" class="checkBox">
  111. <span :class="{ active: type == 2 }" @click="type = 2"
  112. >阶段选择</span
  113. >
  114. <span :class="{ active: type == 1 }" @click="type = 1"
  115. >课程分析</span
  116. >
  117. </div>
  118. <div
  119. v-if="((tType == 1 || tType == 4) && type == 2) || tType == 2"
  120. :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
  121. >
  122. <div
  123. class="blue_box_one"
  124. v-for="(item, index) in chapInfo"
  125. :key="index"
  126. @click="addUserRate(index)"
  127. >
  128. <div>第{{ index + 1 }}阶段</div>
  129. <div :title="item.dyName">{{ item.dyName }}</div>
  130. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  131. </div>
  132. </div>
  133. <div
  134. v-if="
  135. (tType == 1 || tType == 4) &&
  136. Object.keys(chaptersJson).length &&
  137. type == 1
  138. "
  139. class="detail"
  140. >
  141. <div class="detail_box">
  142. <div class="title">
  143. <span class="toolIcon">工具分析</span>
  144. <div class="statebox">
  145. <div>
  146. <span class="taskIcon">全部阶段:</span
  147. ><span>{{ chaptersJson.state.stage }}</span>
  148. </div>
  149. <div>
  150. <span class="finishIcon">已进行:</span
  151. ><span>{{ chaptersJson.state.finish }}</span>
  152. </div>
  153. <div>
  154. <span class="learningIcon">未进行:</span
  155. ><span>{{ chaptersJson.state.learing }}</span>
  156. </div>
  157. </div>
  158. </div>
  159. <div class="box" v-if="chaptersJson.tool.length">
  160. <div class="progress">
  161. <div
  162. v-for="(item, index) in chaptersJson.tool"
  163. :key="index"
  164. class="chapter"
  165. >
  166. <div
  167. class="stage"
  168. style="cursor: pointer"
  169. @click="addUserRate(index)"
  170. >
  171. 第{{ index + 1 }}阶段
  172. </div>
  173. <!-- {{ chaptersJson.chapterState[index].isFinsh ? '已完成' : '进行中' }} -->
  174. <div class="task">
  175. <div
  176. v-for="(item2, index2) in item"
  177. :key="index + '-' + index2"
  178. class="taskBox"
  179. >
  180. <div class="taskName">任务{{ index2 + 1 }}</div>
  181. <div class="p_tool_box">
  182. <span
  183. v-for="(item3, index3) in item2"
  184. :key="index + '-' + index2 + '-' + index3"
  185. class="p_tool"
  186. >
  187. <div v-if="item3.tool == 1">
  188. <img
  189. src="../assets/icon/secondToolList/whiteBoard.png"
  190. alt
  191. />
  192. <div>电子白板</div>
  193. </div>
  194. <div v-if="item3.tool == 3">
  195. <img
  196. src="../assets/icon/secondToolList/mindMapping.png"
  197. alt
  198. />
  199. <div>思维导图</div>
  200. </div>
  201. <div v-if="item3.tool == 6">
  202. <img
  203. src="../assets/icon/secondToolList/doc.png"
  204. alt
  205. />
  206. <div>协同文档</div>
  207. </div>
  208. <div v-if="item3.tool == 7">
  209. <img
  210. src="../assets/icon/secondToolList/mindNetwork.png"
  211. alt
  212. />
  213. <div>思维网格</div>
  214. </div>
  215. <div v-if="item3.tool == 8">
  216. <img
  217. src="../assets/icon/secondToolList/library.png"
  218. alt
  219. />
  220. <div>素材库</div>
  221. </div>
  222. <div v-if="item3.tool == 17">
  223. <img
  224. src="../assets/icon/secondToolList/library.png"
  225. alt
  226. />
  227. <div>学习资料</div>
  228. </div>
  229. <div v-if="item3.tool == 2">
  230. <img
  231. src="../assets/icon/secondToolList/note.png"
  232. alt
  233. />
  234. <div>便签</div>
  235. </div>
  236. <div v-if="item3.tool == 4">
  237. <img
  238. src="../assets/icon/thirdToolList/ask.png"
  239. alt
  240. />
  241. <div>问卷调查</div>
  242. </div>
  243. <div v-if="item3.tool == 45">
  244. <img
  245. src="../assets/icon/thirdToolList/choose.png"
  246. alt
  247. />
  248. <div>选择题</div>
  249. </div>
  250. <!-- <div v-if="item3.tool == 5">
  251. <img
  252. src="../assets/icon/thirdToolList/score.png"
  253. alt
  254. />
  255. <div >量规评分</div>
  256. </div> -->
  257. <div v-if="item3.tool == 10">
  258. <img
  259. src="../assets/icon/thirdToolList/time.png"
  260. alt
  261. />
  262. <div>倒计时</div>
  263. </div>
  264. <div v-if="item3.tool == 15">
  265. <img
  266. src="../assets/icon/thirdToolList/answer.png"
  267. alt
  268. />
  269. <div>问答工具</div>
  270. </div>
  271. <div v-if="item3.tool == 26">
  272. <img
  273. src="../assets/icon/thirdToolList/courseDesign.png"
  274. alt
  275. />
  276. <div>课程设计</div>
  277. </div>
  278. <div v-if="item3.tool == 18">
  279. <img
  280. src="../assets/icon/thirdToolList/trainPlatform.png"
  281. alt
  282. />
  283. <div>训练服务器</div>
  284. </div>
  285. <div v-if="item3.tool == 16">
  286. <img
  287. src="../assets/icon/thirdToolList/work.png"
  288. alt
  289. />
  290. <div>作业提交</div>
  291. </div>
  292. <div v-if="item3.tool == 21">
  293. <img
  294. src="../assets/icon/fourthToolList/program.png"
  295. alt
  296. />
  297. <div>编程平台</div>
  298. </div>
  299. <div v-if="item3.tool == 22">
  300. <img
  301. src="../assets/icon/fourthToolList/program.png"
  302. alt
  303. />
  304. <div>AI体验</div>
  305. </div>
  306. <div v-if="item3.tool == 23">
  307. <img
  308. src="../assets/icon/fourthToolList/program.png"
  309. alt
  310. />
  311. <div>Python</div>
  312. </div>
  313. <div v-if="item3.tool == 24">
  314. <img
  315. src="../assets/icon/fourthToolList/AIprogram.png"
  316. alt
  317. />
  318. <div>AI平台</div>
  319. </div>
  320. <div v-if="item3.tool == 25">
  321. <img
  322. src="../assets/icon/thirdToolList/evalua.png"
  323. alt
  324. />
  325. <div>目标管理</div>
  326. </div>
  327. <div v-if="item3.tool == 31">
  328. <img
  329. src="../assets/icon/secondToolList/networkPanel.png"
  330. alt
  331. />
  332. <div>数学画板</div>
  333. </div>
  334. <div v-if="item3.tool == 28">
  335. <img
  336. src="../assets/icon/secondToolList/translation.png"
  337. alt
  338. />
  339. <div>翻译</div>
  340. </div>
  341. <div v-if="item3.tool == 37">
  342. <img
  343. src="../assets/icon/secondToolList/mohe.png"
  344. alt
  345. />
  346. <div>魔盒识字</div>
  347. </div>
  348. <div v-if="item3.tool == 38">
  349. <img
  350. src="../assets/icon/secondToolList/24game.png"
  351. alt
  352. />
  353. <div>24点</div>
  354. </div>
  355. <div v-if="item3.tool == 39">
  356. <img
  357. src="../assets/icon/secondToolList/GeoGebra.png"
  358. alt
  359. />
  360. <div>GeoGebra</div>
  361. </div>
  362. <div v-if="item3.tool == 32">
  363. <img
  364. src="../assets/icon/thirdToolList/code.png"
  365. alt
  366. />
  367. <div>源码编辑</div>
  368. </div>
  369. <div v-if="item3.tool == 40">
  370. <img
  371. src="../assets/icon/secondToolList/eval.png"
  372. alt
  373. />
  374. <div>学生评价</div>
  375. </div>
  376. <div v-if="item3.tool == 41">
  377. <img
  378. src="../assets/icon/thirdToolList/select.png"
  379. alt
  380. />
  381. <div>选择填空</div>
  382. </div>
  383. <div v-if="item3.tool == 44">
  384. <img
  385. src="../assets/icon/thirdToolList/hanClass.png"
  386. alt
  387. />
  388. <div>汉字宫</div>
  389. </div>
  390. <div v-if="item3.tool == 47">
  391. <img
  392. src="../assets/icon/fourthToolList/conSentences.png"
  393. alt
  394. />
  395. <div>连词成句</div>
  396. </div>
  397. <div v-if="item3.tool == 48">
  398. <img
  399. src="../assets/icon/fourthToolList/conSentences.png"
  400. alt
  401. />
  402. <div>表格</div>
  403. </div>
  404. <div v-if="item3.tool == 49">
  405. <img
  406. src="../assets/icon/fourthToolList/group.png"
  407. alt
  408. />
  409. <div>学生分组</div>
  410. </div>
  411. <div v-if="item3.tool == undefined">
  412. <img
  413. src="../assets/icon/empytool.png"
  414. alt
  415. style="width: 64px; height: 75px"
  416. />
  417. </div>
  418. </span>
  419. </div>
  420. </div>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. <div
  427. class="detail_box"
  428. v-if="Object.keys(chaptersJson.time).length"
  429. >
  430. <div class="title">
  431. <span class="frequencyIcon">作业频率</span>
  432. </div>
  433. <div class="box">
  434. <div>
  435. <Heatmap
  436. :Josn="chaptersJson.time"
  437. :num="chaptersJson.studentCount"
  438. ></Heatmap>
  439. </div>
  440. </div>
  441. </div>
  442. <div class="detail_box">
  443. <div class="title"><span class="timeIcon">实施时间</span></div>
  444. <div class="box">
  445. <div style="font-size: 22px; margin: 15px 0 45px">
  446. {{ courseDetail.title }}
  447. </div>
  448. <div class="chapter_time_box" style="margin-left: 170px">
  449. <div
  450. v-for="(item, index) in chaptersJson.work"
  451. :key="index"
  452. class="c_box"
  453. >
  454. <div class="stage_box" style="left: -195px">
  455. <div
  456. style="
  457. min-width: 150px;
  458. position: relative;
  459. left: -5px;
  460. "
  461. >
  462. {{ item.time }}
  463. </div>
  464. <div class="yuan"></div>
  465. <div class="stage">
  466. 第{{ index + 1 }}阶段 {{ item.name }}
  467. </div>
  468. <div
  469. class="s_up"
  470. :class="{ s_up2: !item.is }"
  471. @click="item.is = !item.is"
  472. >
  473. <img src="../assets/icon/up.png" alt="" />
  474. </div>
  475. </div>
  476. <div v-show="item.is">
  477. <div
  478. v-for="(item2, index2) in item.chapter"
  479. :key="index + '-' + index2"
  480. >
  481. <div
  482. style="
  483. display: flex;
  484. flex-direction: row;
  485. flex-wrap: nowrap;
  486. align-items: center;
  487. "
  488. >
  489. <div
  490. style="
  491. width: 13px;
  492. height: 13px;
  493. background: #5a82cb 100%;
  494. border-radius: 50%;
  495. margin-right: 10px;
  496. "
  497. ></div>
  498. <div
  499. style="
  500. color: #4376c3;
  501. font-size: 20px;
  502. font-weight: bold;
  503. "
  504. >
  505. 任务{{ index2 + 1 }}:{{ item2.name }}
  506. </div>
  507. </div>
  508. <div class="p_tool_box2">
  509. <span
  510. v-for="(item3, index3) in item2.task"
  511. :key="index + '-' + index2 + '-' + index3"
  512. class="p_tool2"
  513. >
  514. <div
  515. class="toolBigBox"
  516. style="
  517. display: flex;
  518. flex-direction: row;
  519. flex-wrap: nowrap;
  520. align-items: center;
  521. "
  522. v-if="item3.works.length"
  523. >
  524. <div
  525. style="
  526. display: flex;
  527. flex-direction: row;
  528. flex-wrap: nowrap;
  529. align-items: flex-end;
  530. min-width: 140px;
  531. "
  532. >
  533. <div class="lineBox"></div>
  534. <div class="toolbox">
  535. <div
  536. style="font-size: 16px; font-weight: bold"
  537. >
  538. 步骤{{ index3 + 1 }}:
  539. </div>
  540. <div v-if="item3.tool == 1">电子白板</div>
  541. <div v-if="item3.tool == 3">思维导图</div>
  542. <div v-if="item3.tool == 6">协同文档</div>
  543. <div v-if="item3.tool == 7">思维网格</div>
  544. <div v-if="item3.tool == 8">素材库</div>
  545. <div v-if="item3.tool == 17">学习资料</div>
  546. <div v-if="item3.tool == 2">便签</div>
  547. <div v-if="item3.tool == 4">问卷调查</div>
  548. <div v-if="item3.tool == 45">选择题</div>
  549. <div v-if="item3.tool == 10">倒计时</div>
  550. <div v-if="item3.tool == 15">问答工具</div>
  551. <div v-if="item3.tool == 26">课程设计</div>
  552. <div v-if="item3.tool == 18">
  553. 训练服务器
  554. </div>
  555. <div v-if="item3.tool == 16">作业提交</div>
  556. <div v-if="item3.tool == 21">编程平台</div>
  557. <div v-if="item3.tool == 22">AI体验</div>
  558. <div v-if="item3.tool == 23">Python</div>
  559. <div v-if="item3.tool == 24">AI平台</div>
  560. <div v-if="item3.tool == 25">目标管理</div>
  561. <div v-if="item3.tool == 31">数学画板</div>
  562. <div v-if="item3.tool == 28">翻译</div>
  563. <div v-if="item3.tool == 37">魔盒识字</div>
  564. <div v-if="item3.tool == 38">24点</div>
  565. <div v-if="item3.tool == 39">GeoGebra</div>
  566. <div v-if="item3.tool == 32">源码编辑</div>
  567. <div v-if="item3.tool == 40">学生评价</div>
  568. <div v-if="item3.tool == 41">选择填空</div>
  569. <div v-if="item3.tool == 44">汉字宫</div>
  570. <div v-if="item3.tool == 47">连词成句</div>
  571. <div v-if="item3.tool == 48">表格</div>
  572. <div v-if="item3.tool == 49">学生分组</div>
  573. </div>
  574. </div>
  575. <div
  576. v-if="item3.works.length"
  577. style="
  578. display: flex;
  579. flex-direction: row;
  580. flex-wrap: wrap;
  581. align-items: center;
  582. margin-left: 10px;
  583. "
  584. >
  585. <!-- works:[],likeCount: 0, commentCount: 0, score: 0, isScore: 0 -->
  586. <div class="disCss">
  587. <div class="blueBtn">
  588. 作业数量:{{ item3.works.length }}
  589. </div>
  590. <div
  591. v-if="chaptersJson.studentCount"
  592. class="blueBtn"
  593. >
  594. 任务完成率:{{
  595. (
  596. (item3.works.length /
  597. chaptersJson.studentCount) *
  598. 100
  599. ).toFixed(2) + "%"
  600. }}
  601. </div>
  602. <div class="blueBtn">
  603. <div>点赞:{{ item3.likeCount }}</div>
  604. <div style="margin-left: 15px;">评论:{{ item3.commentCount }}</div>
  605. </div>
  606. </div>
  607. <div v-if="item3.isScore">
  608. <div class="disCss">
  609. <div class="blueBtn">
  610. 作业评价量:{{ item3.isScore }}
  611. </div>
  612. <div class="blueBtn">
  613. 评价平均分:{{
  614. (item3.score / item3.isScore).toFixed(
  615. 2
  616. )
  617. }}分
  618. </div>
  619. </div>
  620. </div>
  621. </div>
  622. </div>
  623. </span>
  624. </div>
  625. </div>
  626. </div>
  627. </div>
  628. </div>
  629. </div>
  630. </div>
  631. <!-- <div v-for="(item, index) in Object.keys(chaptersJson.time)" :key="index">
  632. {{ '时间:' + item + '次数:' + chaptersJson.time[item] }}</div> -->
  633. <!-- <div>实施时间:{{ chaptersJson.startTime }}</div> -->
  634. </div>
  635. </div>
  636. </div>
  637. <!-- <div
  638. style="
  639. text-align: center;
  640. padding: 30px 0 20px 0;
  641. box-sizing: border-box;
  642. "
  643. >
  644. 此处滚动加载..
  645. </div>-->
  646. <el-dialog
  647. title="阶段选择"
  648. :visible.sync="dialogVisible"
  649. :append-to-body="true"
  650. width="700px"
  651. :before-close="handleClose"
  652. class="dialog_change"
  653. >
  654. <div style="font-size: 20px">请选择阶段</div>
  655. <div
  656. style="
  657. padding: 20px 30px;
  658. display: flex;
  659. flex-direction: row;
  660. flex-wrap: wrap;
  661. "
  662. >
  663. <div
  664. class="blue_box"
  665. v-for="(item, index) in chapInfo"
  666. :key="index"
  667. @click="addUserRate(index)"
  668. >
  669. <div>第{{ index + 1 }}阶段</div>
  670. <div>{{ item.dyName }}</div>
  671. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  672. </div>
  673. </div>
  674. </el-dialog>
  675. </div>
  676. </div>
  677. </div>
  678. </template>
  679. <script>
  680. import Heatmap from "./tools/heatmap.vue";
  681. export default {
  682. components: {
  683. Heatmap,
  684. },
  685. data() {
  686. return {
  687. choose: 0,
  688. dialogVisible: false,
  689. id: this.$route.query.courseId,
  690. userid: this.$route.query.userid,
  691. oid: this.$route.query.oid,
  692. org: this.$route.query.org,
  693. classId: this.$route.query.cid,
  694. tType: this.$route.query.tType,
  695. screenType: this.$route.query.screenType,
  696. courseDetail: {},
  697. aStudentName: [],
  698. chapInfo: [],
  699. courseType: [],
  700. Tname: [],
  701. courseTypeJson: {},
  702. userinfo: [],
  703. mr: require("../assets/icon/wheel.png"),
  704. rw: 0,
  705. chaptersJson: {},
  706. type: 2,
  707. };
  708. },
  709. methods: {
  710. handleClose(done) {
  711. done();
  712. },
  713. goTo(path) {
  714. this.$router.push(path);
  715. },
  716. addUserRate(i) {
  717. // var suid = this.userid;
  718. // if (
  719. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1 &&
  720. // JSON.parse(this.courseDetail.userid) != suid
  721. // ) {
  722. // this.$message.error("你没有该权限");
  723. // return;
  724. // }
  725. // var a =
  726. // this.courseDetail.course_student != ""
  727. // ? JSON.parse(this.courseDetail.course_student)
  728. // : "";
  729. // if (this.courseDetail.userid != suid) {
  730. // if (this.userinfo.type == 2) {
  731. // if (a != "") {
  732. // if (
  733. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
  734. // ) {
  735. // this.$message.error("你没有该权限");
  736. // return;
  737. // }
  738. // } else {
  739. // this.$message.error("暂无项目学员,请联系老师添加项目学员!");
  740. // return;
  741. // }
  742. // }
  743. // }
  744. let params = {
  745. uid: this.userid,
  746. cid: this.id,
  747. };
  748. this.ajax
  749. .get(this.$store.state.api + "addUserR", params)
  750. .then((res) => {
  751. console.log(res.data);
  752. this.updateVc();
  753. if (this.tType == 1 || this.tType == 2 || this.tType == 4) {
  754. this.goTo(
  755. "/studyStudent?type=" +
  756. i +
  757. "&courseId=" +
  758. this.id +
  759. "&userid=" +
  760. this.userid +
  761. "&oid=" +
  762. this.oid +
  763. "&org=" +
  764. this.org +
  765. "&cid=" +
  766. this.classId +
  767. "&tType=" +
  768. this.tType +
  769. "&screenType=" +
  770. this.screenType
  771. );
  772. } else {
  773. this.goTo(
  774. "/study?type=" +
  775. i +
  776. "&courseId=" +
  777. this.id +
  778. "&userid=" +
  779. this.userid +
  780. "&oid=" +
  781. this.oid +
  782. "&org=" +
  783. this.org +
  784. "&cid=" +
  785. this.classId +
  786. "&tType=" +
  787. this.tType +
  788. "&screenType=" +
  789. this.screenType
  790. );
  791. }
  792. })
  793. .catch((err) => {
  794. console.error(err);
  795. });
  796. },
  797. updateVc() {
  798. let params = {
  799. cid: this.id,
  800. };
  801. this.ajax
  802. .get(this.$store.state.api + "updateVc", params)
  803. .then((res) => {
  804. console.log(res.data);
  805. })
  806. .catch((err) => {
  807. console.error(err);
  808. });
  809. },
  810. getCourseDetail() {
  811. const loading = this.$loading.service({
  812. background: "rgba(255, 255, 255, 0.7)",
  813. target: document.querySelector(".student_table"),
  814. });
  815. let params = {
  816. courseId: this.id,
  817. };
  818. this.ajax
  819. .get(this.$store.state.api + "selectCourseDetail", params)
  820. .then((res) => {
  821. loading.close();
  822. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  823. this.courseDetail = res.data[0][0];
  824. var a = res.data[0];
  825. var b = res.data[1];
  826. var c = res.data[2];
  827. for (var i = 0; i < b.length; i++) {
  828. // if (!this.id) {
  829. // this.courseType[b[i].id] = [];
  830. // }
  831. for (var j = 0; j < a.length; j++) {
  832. if (b[i].id == a[j].pid) {
  833. if (!this.courseTypeJson[b[i].name]) {
  834. this.courseType.push(b[i].name);
  835. this.courseTypeJson[b[i].name] = [];
  836. }
  837. this.courseTypeJson[b[i].name].push(a[j].name);
  838. }
  839. }
  840. }
  841. for (var k = 0; k < c.length; k++) {
  842. this.Tname.push(c[k].name);
  843. }
  844. console.log(this.courseTypeJson.length);
  845. this.aStudentName = res.data[2];
  846. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  847. for (var z = 0; z < this.chapInfo.length; z++) {
  848. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  849. }
  850. let _chapters = JSON.parse(a[0].chapters);
  851. let _works = res.data[3];
  852. let _sCont = res.data[4];
  853. let _comment = res.data[5];
  854. let _chaptersJson = {
  855. chapterState: _chapters,
  856. state: {
  857. stage: _chapters.length,
  858. finish: 0,
  859. learing: 0,
  860. },
  861. tool: [],
  862. chapter: [],
  863. time: {},
  864. startTime: _works.length ? _works[0].time : "",
  865. work: [],
  866. studentCount: _sCont[0].usercount,
  867. };
  868. let timeAarry = [];
  869. for (var j = 0; j < _works.length; j++) {
  870. timeAarry.push(_works[j].vtime);
  871. }
  872. timeAarry.forEach((item) => {
  873. _chaptersJson.time[item] = _chaptersJson.time[item] + 1 || 1;
  874. });
  875. for (var i = 0; i < _chapters.length; i++) {
  876. _chaptersJson.chapterState[i].isFinsh = false;
  877. _chaptersJson.tool[i] = [];
  878. _chaptersJson.chapter[i] = [];
  879. _chaptersJson.work[i] = {
  880. name: _chapters[i].dyName,
  881. chapter: [],
  882. time: "",
  883. };
  884. for (var j = 0; j < _works.length; j++) {
  885. if (i == _works[j].stage) {
  886. _chaptersJson.chapterState[i].isFinsh = true;
  887. _chaptersJson.work[i].time = _works[j].time;
  888. _chaptersJson.state.finish++;
  889. break;
  890. }
  891. }
  892. let el = _chapters[i].chapterInfo[0].taskJson;
  893. for (var z = 0; z < el.length; z++) {
  894. _chaptersJson.tool[i][z] = [];
  895. _chaptersJson.chapter[i][z] = [];
  896. _chaptersJson.work[i].chapter[z] = { name: el[z].task, task: [] };
  897. _chaptersJson.work[i].is = false;
  898. let tools = el[z].toolChoose;
  899. for (var k = 0; k < tools.length; k++) {
  900. _chaptersJson.work[i].chapter[z].task[k] = {
  901. tool: tools[k].tool[0],
  902. works: [],
  903. likeCount: 0,
  904. commentCount: 0,
  905. score: 0,
  906. isScore: 0,
  907. };
  908. for (var j = 0; j < _works.length; j++) {
  909. if (
  910. i == _works[j].stage &&
  911. z == _works[j].task &&
  912. k == _works[j].tool
  913. ) {
  914. _chaptersJson.work[i].chapter[z].task[k].works.push(
  915. _works[j]
  916. );
  917. if (_works[j].score) {
  918. _chaptersJson.work[i].chapter[z].task[k].score +=
  919. JSON.parse(_works[j].score).wScore;
  920. _chaptersJson.work[i].chapter[z].task[k].isScore++;
  921. }
  922. }
  923. }
  924. for (var j = 0; j < _comment.length; j++) {
  925. if (
  926. i == _comment[j].stage &&
  927. z == _comment[j].task &&
  928. k == _comment[j].tool
  929. ) {
  930. if (_comment[j].cType == 1) {
  931. _chaptersJson.work[i].chapter[z].task[k].likeCount++;
  932. }
  933. if (_comment[j].cType == 2) {
  934. _chaptersJson.work[i].chapter[z].task[k].commentCount++;
  935. }
  936. }
  937. }
  938. // if (_chaptersJson.chapter[i][z].indexOf(tools[k].tool[0]) == -1) {
  939. // _chaptersJson.tool[i][z].push(tools[k].tool[0])
  940. // }
  941. _chaptersJson.chapter[i][z][k] = { tool: tools[k].tool[0] };
  942. _chaptersJson.tool[i][z][k] = { tool: tools[k].tool[0] };
  943. }
  944. }
  945. }
  946. _chaptersJson.state.learing =
  947. _chaptersJson.state.stage - _chaptersJson.state.finish;
  948. this.chaptersJson = _chaptersJson;
  949. // debugger
  950. })
  951. .catch((err) => {
  952. loading.close();
  953. console.error(err);
  954. });
  955. },
  956. getUser() {
  957. let params = { uid: this.userid };
  958. this.ajax
  959. .get(this.$store.state.api + "getUser", params)
  960. .then((res) => {
  961. this.userinfo = res.data[0][0];
  962. })
  963. .catch((err) => {
  964. console.error(err);
  965. });
  966. },
  967. // getSName() {
  968. // let params = {
  969. // uid: JSON.stringify(this.courseDetail.course_student),
  970. // };
  971. // this.ajax
  972. // .get(this.$store.state.api + "selectSName", params)
  973. // .then((res) => {
  974. // this.aStudentName = res.data[0];
  975. // })
  976. // .catch((err) => {
  977. // console.error(err);
  978. // });
  979. // },
  980. },
  981. created() {
  982. this.getCourseDetail();
  983. this.getUser();
  984. document.scrollingElement.scrollTop = 0;
  985. // this.getSName();
  986. },
  987. };
  988. </script>
  989. <style scoped>
  990. @media screen and (max-width: 1024px) {
  991. .Tname {
  992. width: 500px;
  993. white-space: nowrap;
  994. overflow: hidden;
  995. text-overflow: ellipsis;
  996. }
  997. }
  998. .body_student {
  999. margin: 10px auto;
  1000. width: 98%;
  1001. height: 100%;
  1002. }
  1003. .student_head {
  1004. width: 100%;
  1005. background: #fff;
  1006. height: 30%;
  1007. position: relative;
  1008. }
  1009. .wheel {
  1010. width: 250px;
  1011. max-height: 146px;
  1012. display: flex;
  1013. align-items: center;
  1014. }
  1015. .man {
  1016. width: 16px;
  1017. height: 16px;
  1018. }
  1019. .wheel > img,
  1020. .man > img {
  1021. width: 100%;
  1022. height: 100%;
  1023. }
  1024. .box_course {
  1025. display: flex;
  1026. padding: 25px 0 20px 60px;
  1027. }
  1028. .right_box {
  1029. display: flex;
  1030. flex-direction: column;
  1031. margin-left: 30px;
  1032. align-items: flex-start;
  1033. width: calc(100% - 350px);
  1034. }
  1035. .right_box_title {
  1036. font-size: 23px;
  1037. max-width: calc(100% - 190px);
  1038. white-space: nowrap;
  1039. overflow: hidden;
  1040. text-overflow: ellipsis;
  1041. }
  1042. .people {
  1043. display: flex;
  1044. margin-top: 20px;
  1045. }
  1046. .person {
  1047. margin-left: 10px;
  1048. /* line-height: 18px; */
  1049. }
  1050. .now_study {
  1051. width: 150px;
  1052. height: 35px;
  1053. color: #fff;
  1054. background: #4a9eed;
  1055. text-align: center;
  1056. line-height: 35px;
  1057. border-radius: 5px;
  1058. font-size: 13px;
  1059. cursor: pointer;
  1060. margin-top: 30px;
  1061. }
  1062. .choose_who {
  1063. display: flex;
  1064. margin: 15px 0 0 25px;
  1065. }
  1066. .who_choose {
  1067. height: 28px;
  1068. cursor: pointer;
  1069. }
  1070. .choose_who > div:nth-child(2) {
  1071. margin-left: 35px;
  1072. }
  1073. .choose {
  1074. border-bottom: 5px solid #4a9eed;
  1075. color: #4a9eed;
  1076. }
  1077. .student_body {
  1078. display: flex;
  1079. }
  1080. .student_body,
  1081. .right {
  1082. width: 100%;
  1083. margin: 10px auto;
  1084. min-height: 688px;
  1085. }
  1086. .nav {
  1087. margin: auto 25px;
  1088. width: 80%;
  1089. padding-top: 5px;
  1090. text-indent: 25px;
  1091. }
  1092. .pic {
  1093. width: 100%;
  1094. display: flex;
  1095. flex-direction: row;
  1096. flex-wrap: wrap;
  1097. height: 100%;
  1098. justify-content: space-evenly;
  1099. }
  1100. .Img {
  1101. /*width: 30%; */
  1102. width: 300px;
  1103. margin: 20px 50px;
  1104. margin: 20px 10px;
  1105. border: 1px solid #dbdbdb;
  1106. border-radius: 5px;
  1107. overflow: hidden;
  1108. }
  1109. .Img > img {
  1110. width: 100%;
  1111. height: 100%;
  1112. }
  1113. .student_body_one,
  1114. .right_one {
  1115. width: 100%;
  1116. margin: 0 auto;
  1117. background: #fff;
  1118. margin-top: 10px;
  1119. min-height: 688px;
  1120. }
  1121. .student {
  1122. width: 85%;
  1123. display: flex;
  1124. flex-direction: row;
  1125. flex-wrap: wrap;
  1126. justify-content: flex-start;
  1127. margin: auto 10px;
  1128. }
  1129. .student > div {
  1130. width: 12%;
  1131. height: 35px;
  1132. background: #e3759a;
  1133. text-align: center;
  1134. border: 1px solid #e3759a;
  1135. border-radius: 5px;
  1136. color: #fff;
  1137. line-height: 35px;
  1138. margin: 10px;
  1139. }
  1140. .dialog_change >>> .el-dialog {
  1141. border-radius: 5px;
  1142. }
  1143. .dialog_change >>> .el-dialog__header {
  1144. background: #303030;
  1145. height: 36px;
  1146. line-height: 36px;
  1147. padding-left: 10px;
  1148. padding: 0px 10px 0px;
  1149. }
  1150. .dialog_change >>> .el-dialog__headerbtn {
  1151. top: 10px !important;
  1152. right: 10px !important;
  1153. }
  1154. .dialog_change >>> .el-dialog__title {
  1155. color: #fff;
  1156. font-size: 14px;
  1157. line-height: 5px;
  1158. }
  1159. .dialog_change >>> .el-dialog__body {
  1160. background: #f5f5f5;
  1161. }
  1162. .blue_box {
  1163. align-items: center;
  1164. display: flex;
  1165. flex-direction: column;
  1166. justify-content: center;
  1167. }
  1168. .blue_box,
  1169. .blue_box_one {
  1170. width: 30%;
  1171. height: 100px;
  1172. text-align: center;
  1173. color: #fff;
  1174. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  1175. border-radius: 15px;
  1176. margin: 15px 0 15px 15px;
  1177. cursor: pointer;
  1178. }
  1179. .blue_box_one {
  1180. width: 200px;
  1181. height: 200px;
  1182. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  1183. display: flex;
  1184. flex-direction: column;
  1185. flex-wrap: nowrap;
  1186. align-items: center;
  1187. justify-content: center;
  1188. }
  1189. .blue_box_one > div {
  1190. margin: 5px 0;
  1191. }
  1192. .blue_box_one > div:nth-child(1) {
  1193. font-size: 20px;
  1194. font-weight: bold;
  1195. }
  1196. .blue_box > div:nth-child(2) {
  1197. margin-top: 10px;
  1198. }
  1199. .blue_box_one > div:nth-child(2) {
  1200. white-space: nowrap;
  1201. text-overflow: ellipsis;
  1202. overflow: hidden;
  1203. word-break: break-all;
  1204. width: 100%;
  1205. text-align: center;
  1206. max-width: calc(100% - 85px);
  1207. margin: 0 auto;
  1208. }
  1209. .return {
  1210. background: #205cc6;
  1211. width: 70px;
  1212. height: 30px;
  1213. color: #fff;
  1214. text-align: center;
  1215. line-height: 32px;
  1216. margin-right: 20px;
  1217. cursor: pointer;
  1218. border-radius: 5px;
  1219. position: absolute;
  1220. right: 0;
  1221. top: 24px;
  1222. font-size: 14px;
  1223. }
  1224. .return > img {
  1225. width: 100%;
  1226. height: 100%;
  1227. }
  1228. .cType {
  1229. display: flex;
  1230. flex-direction: row;
  1231. justify-content: center;
  1232. align-items: center;
  1233. margin-top: 20px;
  1234. }
  1235. .cType > div > span {
  1236. font-size: 18px;
  1237. }
  1238. .type_children + .type_children {
  1239. margin-left: 10px;
  1240. }
  1241. .all_choose {
  1242. margin-right: 10px;
  1243. max-width: 250px;
  1244. white-space: nowrap;
  1245. overflow: hidden;
  1246. text-overflow: ellipsis;
  1247. }
  1248. .rightT {
  1249. display: flex;
  1250. flex-direction: row;
  1251. flex-wrap: nowrap;
  1252. align-items: center;
  1253. width: calc(100% - 20px);
  1254. }
  1255. .jd {
  1256. background: #4a9eed;
  1257. margin-left: 15px;
  1258. border-radius: 10px;
  1259. color: #fff;
  1260. width: 70px;
  1261. height: 25px;
  1262. text-align: center;
  1263. line-height: 25px;
  1264. }
  1265. .sLeft {
  1266. width: 14%;
  1267. margin-right: 10px;
  1268. background: rgb(255, 255, 255);
  1269. padding: 20px 15px 0 15px;
  1270. box-sizing: border-box;
  1271. border-radius: 10px;
  1272. }
  1273. .courseT {
  1274. border-left: 3px solid #2e66c9;
  1275. padding-left: 5px;
  1276. color: #2e66c9;
  1277. font-weight: bold;
  1278. }
  1279. .courseTd {
  1280. padding-top: 15px;
  1281. height: 700px;
  1282. overflow: auto;
  1283. word-break: break-word;
  1284. }
  1285. .courseTd::-webkit-scrollbar {
  1286. /*滚动条整体样式*/
  1287. width: 6px;
  1288. /*高宽分别对应横竖滚动条的尺寸*/
  1289. height: 6px;
  1290. }
  1291. /*定义滚动条轨道 内阴影+圆角*/
  1292. .courseTd::-webkit-scrollbar {
  1293. border-radius: 10px;
  1294. background-color: #eee;
  1295. }
  1296. /*定义滑块 内阴影+圆角*/
  1297. .courseTd::-webkit-scrollbar-thumb {
  1298. border-radius: 10px;
  1299. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  1300. background-color: rgba(0, 0, 0, 0.1);
  1301. }
  1302. .rightTd,
  1303. .noBRight {
  1304. width: 84%;
  1305. background: #fff;
  1306. display: flex;
  1307. flex-direction: row;
  1308. flex-wrap: wrap;
  1309. align-content: flex-start;
  1310. align-items: center;
  1311. justify-content: flex-start;
  1312. }
  1313. .noBRight {
  1314. width: 100%;
  1315. }
  1316. .Tname {
  1317. margin-left: 40px;
  1318. word-break: break-all;
  1319. }
  1320. .detail {
  1321. width: 100%;
  1322. padding: 15px;
  1323. box-sizing: border-box;
  1324. }
  1325. .statebox {
  1326. display: flex;
  1327. align-items: center;
  1328. box-sizing: border-box;
  1329. margin-left: 30px;
  1330. }
  1331. .statebox div {
  1332. padding: 10px 20px;
  1333. border-radius: 5px;
  1334. background: #fff;
  1335. display: flex;
  1336. align-items: center;
  1337. }
  1338. .statebox div + div {
  1339. margin-left: 20px;
  1340. }
  1341. .statebox div span {
  1342. font-size: 16px;
  1343. display: flex;
  1344. align-items: center;
  1345. }
  1346. .statebox div span + span {
  1347. margin-left: 10px;
  1348. color: #1463eb;
  1349. }
  1350. .p_tool_box {
  1351. display: flex;
  1352. flex-wrap: wrap;
  1353. background: rgb(217, 227, 239);
  1354. /* color: #fff; */
  1355. padding: 0 15px 10px;
  1356. align-items: center;
  1357. justify-content: space-evenly;
  1358. border-radius: 5px;
  1359. height: 200px;
  1360. overflow: auto;
  1361. }
  1362. .p_tool {
  1363. display: flex;
  1364. margin-top: 10px;
  1365. }
  1366. .p_tool > div {
  1367. display: flex;
  1368. flex-direction: column;
  1369. align-items: center;
  1370. min-width: 60px;
  1371. }
  1372. .p_tool > div img {
  1373. width: 50px;
  1374. height: 50px;
  1375. }
  1376. .p_tool > div > div {
  1377. margin-top: 5px;
  1378. font-size: 12px;
  1379. }
  1380. .p_tool_box2 {
  1381. padding: 10px 15px;
  1382. }
  1383. .p_tool2 {
  1384. margin-right: 20px;
  1385. display: flex;
  1386. flex-direction: column;
  1387. align-items: flex-start;
  1388. /* margin-bottom: 10px; */
  1389. }
  1390. .p_tool2 > div:nth-child(1) {
  1391. margin-bottom: 10px;
  1392. }
  1393. .toolBigBox {
  1394. display: flex;
  1395. flex-direction: column;
  1396. }
  1397. .toolSta {
  1398. display: flex;
  1399. margin: 20px 0 0;
  1400. }
  1401. .toolSta > div {
  1402. display: flex;
  1403. }
  1404. .toolSta > div + div {
  1405. margin-left: 50px;
  1406. }
  1407. .toolSta > div > div:nth-child(1) {
  1408. margin: 10px 10px 0 0;
  1409. }
  1410. .blueBtn {
  1411. background: rgb(79, 140, 223);
  1412. color: #fff;
  1413. display: flex;
  1414. padding: 10px 15px;
  1415. /* min-width: 150px; */
  1416. min-width: 165px;
  1417. font-size: 16px;
  1418. align-items: center;
  1419. border-radius: 5px;
  1420. }
  1421. .toolSta > div > div:nth-child(2) > div + div {
  1422. margin-top: 10px;
  1423. }
  1424. .toolSta > div > div:nth-child(2) > div > div + div {
  1425. margin: 0 20px;
  1426. }
  1427. .p_tool2 .toolbox {
  1428. display: flex;
  1429. align-items: center;
  1430. margin-top: 10px;
  1431. }
  1432. .p_tool2 .toolbox > div {
  1433. font-size: 18px;
  1434. font-weight: bold;
  1435. }
  1436. .checkBox {
  1437. display: flex;
  1438. padding: 20px 0 0 20px;
  1439. box-sizing: border-box;
  1440. width: 100%;
  1441. }
  1442. .checkBox span {
  1443. padding: 0 10px 5px;
  1444. cursor: pointer;
  1445. font-size: 18px;
  1446. }
  1447. .checkBox span + span {
  1448. margin-left: 20px;
  1449. }
  1450. .checkBox .active {
  1451. border-bottom: 2px solid rgb(75, 151, 229);
  1452. cursor: pointer;
  1453. }
  1454. .detail_box {
  1455. background-color: rgb(231, 240, 247);
  1456. padding: 15px 20px;
  1457. box-sizing: border-box;
  1458. width: 100%;
  1459. }
  1460. .detail_box + .detail_box {
  1461. margin-top: 20px;
  1462. }
  1463. .detail_box .title {
  1464. display: flex;
  1465. align-items: center;
  1466. }
  1467. .detail_box .title > span:nth-child(1) {
  1468. font-size: 20px;
  1469. display: flex;
  1470. align-items: center;
  1471. }
  1472. .detail_box .box {
  1473. margin-top: 20px;
  1474. background-color: #fff;
  1475. padding: 15px 20px;
  1476. border-radius: 5px;
  1477. /* width: 100%; */
  1478. box-sizing: border-box;
  1479. overflow: auto;
  1480. }
  1481. .progress {
  1482. display: -webkit-box;
  1483. display: -ms-flexbox;
  1484. width: 100%;
  1485. overflow: auto;
  1486. padding: 15px 0;
  1487. }
  1488. .chapter {
  1489. margin-right: 10px;
  1490. }
  1491. .chapter + .chapter {
  1492. padding-left: 10px;
  1493. border-left: 1px solid rgb(220, 220, 220);
  1494. }
  1495. .chapter .stage {
  1496. width: 100%;
  1497. color: #fff;
  1498. background: linear-gradient(90deg, #477cd7, #65b9fc);
  1499. border-radius: 5px;
  1500. height: 50px;
  1501. line-height: 50px;
  1502. font-size: 18px;
  1503. text-align: center;
  1504. }
  1505. .chapter .task {
  1506. display: flex;
  1507. width: 100%;
  1508. }
  1509. .chapter .task .taskBox {
  1510. min-width: 110px;
  1511. max-width: 180px;
  1512. height: 100%;
  1513. }
  1514. .chapter .task .taskBox + .taskBox {
  1515. margin-left: 10px;
  1516. }
  1517. .chapter .task .taskBox .taskName {
  1518. text-align: center;
  1519. margin: 10px;
  1520. }
  1521. .toolIcon::before {
  1522. content: "";
  1523. width: 26px;
  1524. height: 26px;
  1525. display: inline-block;
  1526. background-image: url(../assets/icon/toolion.png);
  1527. background-size: 100% 100%;
  1528. }
  1529. .toolIcon::before {
  1530. content: "";
  1531. width: 26px;
  1532. height: 26px;
  1533. display: inline-block;
  1534. background-image: url(../assets/icon/toolion.png);
  1535. background-size: 100% 100%;
  1536. }
  1537. .taskIcon::before {
  1538. content: "";
  1539. width: 26px;
  1540. height: 26px;
  1541. display: inline-block;
  1542. background-image: url(../assets/icon/task.png);
  1543. background-size: 100% 100%;
  1544. }
  1545. .finishIcon::before {
  1546. content: "";
  1547. width: 26px;
  1548. height: 26px;
  1549. display: inline-block;
  1550. background-image: url(../assets/icon/finish.png);
  1551. background-size: 100% 100%;
  1552. }
  1553. .learningIcon::before {
  1554. content: "";
  1555. width: 22px;
  1556. height: 22px;
  1557. display: inline-block;
  1558. background-image: url(../assets/icon/learning.png);
  1559. background-size: 100% 100%;
  1560. }
  1561. .frequencyIcon::before {
  1562. content: "";
  1563. width: 26px;
  1564. height: 26px;
  1565. display: inline-block;
  1566. background-image: url(../assets/icon/frequency.png);
  1567. background-size: 100% 100%;
  1568. }
  1569. .timeIcon::before {
  1570. content: "";
  1571. width: 26px;
  1572. height: 26px;
  1573. display: inline-block;
  1574. background-image: url(../assets/icon/time.png);
  1575. background-size: 100% 100%;
  1576. }
  1577. .chapter_time_box {
  1578. border-left: 5px solid #f0f0f0;
  1579. padding: 0 30px;
  1580. box-sizing: border-box;
  1581. margin-top: 35px;
  1582. }
  1583. .c_box {
  1584. padding-top: 40px;
  1585. position: relative;
  1586. margin-top: 45px;
  1587. }
  1588. .c_box .stage_box {
  1589. display: flex;
  1590. align-items: center;
  1591. position: absolute;
  1592. top: -20px;
  1593. left: -45px;
  1594. }
  1595. .c_box .stage_box .yuan {
  1596. width: 25px;
  1597. height: 25px;
  1598. background: rgb(244, 244, 244);
  1599. border-radius: 25px;
  1600. display: flex;
  1601. align-items: center;
  1602. justify-content: center;
  1603. margin-right: 10px;
  1604. }
  1605. .c_box .stage_box .yuan::before {
  1606. content: "";
  1607. width: 15px;
  1608. height: 15px;
  1609. background: rgb(59, 149, 238);
  1610. border-radius: 25px;
  1611. }
  1612. .c_box .stage_box .stage {
  1613. background: linear-gradient(90deg, #477cd7, #65b9fc);
  1614. border-radius: 5px;
  1615. height: 50px;
  1616. line-height: 50px;
  1617. font-size: 18px;
  1618. color: #fff;
  1619. width: fit-content;
  1620. padding: 0 20px;
  1621. }
  1622. .s_up {
  1623. cursor: pointer;
  1624. transition: all 0.5s;
  1625. }
  1626. .s_up img {
  1627. width: 35px;
  1628. }
  1629. .s_up2 {
  1630. transform: rotate(90deg);
  1631. }
  1632. .lineBox {
  1633. width: 5px;
  1634. height: 20px;
  1635. background-image: linear-gradient(180deg, #3c65ba, #a1c6ec);
  1636. margin-right: 5px;
  1637. }
  1638. .disCss {
  1639. display: flex;
  1640. flex-direction: row;
  1641. flex-wrap: nowrap;
  1642. align-items: center;
  1643. }
  1644. .disCss > div {
  1645. margin: 10px 10px 0 0;
  1646. }
  1647. </style>