courseDetail.vue 52 KB

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