courseDetail.vue 54 KB

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