courseDetail.vue 54 KB

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