courseDetail.vue 54 KB

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