courseDetail.vue 90 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020
  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="screenType != 2"
  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. <div class="returnIndexImg">
  27. <img src="../assets/icon/newIcon/returnIndex.png" alt="" />
  28. </div>
  29. <div>返回</div>
  30. <!-- <img src="../assets/icon/return.png" alt="" /> -->
  31. </div>
  32. <div class="box_course">
  33. <div class="wheel">
  34. <img
  35. style="object-fit: cover"
  36. :src="
  37. this.courseDetail.cover != null &&
  38. this.courseDetail.cover != ''
  39. ? JSON.parse(this.courseDetail.cover).length > 0
  40. ? JSON.parse(this.courseDetail.cover)[0].url
  41. : mr
  42. : mr
  43. "
  44. alt
  45. />
  46. </div>
  47. <div class="right_box">
  48. <div class="rightT">
  49. <div class="right_box_title">{{ courseDetail.title }}</div>
  50. <div class="jd">{{ chapInfo.length }}阶段</div>
  51. <div class="jd">{{ rw }}任务</div>
  52. </div>
  53. <div class="cType" v-if="courseType.length">
  54. <div
  55. class="all_choose"
  56. v-for="(item, index) in courseType"
  57. :key="index"
  58. >
  59. <span style="color: #717c8d; font-weight: 400">{{
  60. "分类" + ":"
  61. }}</span>
  62. <span
  63. class="type_children"
  64. v-for="(item2, index2) in courseTypeJson[item]"
  65. :key="index2"
  66. >{{ item2 }}</span
  67. >
  68. </div>
  69. </div>
  70. <div class="cType" style="align-items: flex-start">
  71. <div
  72. style="
  73. min-width: fit-content;
  74. color: #717c8d;
  75. font-weight: 400;
  76. "
  77. >
  78. 创建者:<span style="font-weight: bold; color: #0e1e33">{{
  79. courseDetail.username
  80. }}</span>
  81. </div>
  82. <div
  83. style="display: flex; align-items: center; margin-left: 32px"
  84. >
  85. <div style="color: #717c8d; font-weight: 400">参与人数:</div>
  86. <!-- <div class="man">
  87. <img src="../assets/people.png" alt />
  88. </div> -->
  89. <div class="person" style="font-weight: bold; color: #0e1e33">
  90. {{
  91. courseDetail.vcount != null ? courseDetail.vcount : 0
  92. }}人
  93. </div>
  94. </div>
  95. </div>
  96. <div class="cType" style="color: #6c6c6c">
  97. <div
  98. class="Tname"
  99. v-if="Tname.length > 0"
  100. @click="TnameCheck = !TnameCheck"
  101. style="color: #717c8d; font-weight: 400"
  102. >
  103. 协同成员:<span
  104. v-for="(tname, tIndex) in TnameCheck
  105. ? Tname
  106. : Tname.slice(0, 6)"
  107. :key="tIndex"
  108. style="margin: 0 5px; font-weight: 400; color: #0e1e33"
  109. >{{ tname }}</span
  110. ><span
  111. style="margin: 0 5px; font-weight: 400; color: #b2b2b2"
  112. v-if="!TnameCheck && Tname.length > 6"
  113. >更多....</span
  114. >
  115. </div>
  116. </div>
  117. <!-- <div
  118. class="cType"
  119. style="font-size: 18px; color: #6c6c6c"
  120. v-if="classList.length && tType != 2"
  121. >
  122. <div class="teaClass">
  123. <div>授课班级:</div>
  124. <div>
  125. <el-button
  126. @click="gotoCourse('')"
  127. style="background: #4a9eed; color: #fff; margin: 0 5px"
  128. v-if="classList.length != 1"
  129. >全部</el-button
  130. ><el-button
  131. @click="gotoCourse(item.id)"
  132. v-for="(item, index) in classList"
  133. :key="index"
  134. style="background: #4a9eed; color: #fff; margin: 0 5px"
  135. >{{ item.name }}</el-button
  136. >
  137. </div>
  138. </div>
  139. </div> -->
  140. <div class="btnBox">
  141. <!-- <div class="now_study" @click="dialogVisible = true">
  142. 立即学习
  143. </div> -->
  144. <div
  145. class="now_study"
  146. @click="setQr(courseDetail.courseId)"
  147. v-if="tType != 2"
  148. >
  149. <div class="returnIndexImg">
  150. <img src="../assets/icon/newIcon/codeIcon.png" alt="" />
  151. </div>
  152. <div>生成二维码</div>
  153. </div>
  154. <div
  155. class="now_study"
  156. @click="dialogVisibleGroup = true"
  157. v-if="courseDetail.state == 1"
  158. >
  159. <div class="returnIndexImg">
  160. <img src="../assets/icon/newIcon/groupIcon.png" alt="" />
  161. </div>
  162. <div>
  163. {{
  164. courseDetail.userid != userid &&
  165. courseDetail.course_teacher &&
  166. courseDetail.course_teacher.indexOf(userid) == -1
  167. ? "加入分组"
  168. : "设置分组"
  169. }}
  170. </div>
  171. </div>
  172. <div class="now_study" @click="exportCourse" v-if="tType != 2">
  173. <div class="returnIndexImg">
  174. <img src="../assets/icon/newIcon/CourseInfo.png" alt="" />
  175. </div>
  176. <div>导出信息</div>
  177. </div>
  178. <!-- -->
  179. <div class="now_study" @click="uploadCourse" v-if="tType != 2">
  180. <div class="returnIndexImg">
  181. <img src="../assets/icon/newIcon/uploadCourse.png" alt="" />
  182. </div>
  183. <div>导出文件</div>
  184. </div>
  185. <!-- <div
  186. class="now_group"
  187. v-if="groupInfo && courseDetail.state == 1"
  188. >
  189. <span>所在分组:</span>{{ groupInfo.name }}
  190. </div> -->
  191. </div>
  192. <div
  193. v-if="tType != 2"
  194. class="goToStudy"
  195. @click="goToStudyOrDia(classList)"
  196. >
  197. <div class="returnIndexImg">
  198. <img src="../assets/icon/newIcon/people.png" alt="" />
  199. </div>
  200. <div>立即授课</div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. <div class="student_body">
  206. <div class="sLeft" v-if="courseDetail.brief">
  207. <div class="courseT">项目详情</div>
  208. <div class="courseTd">{{ courseDetail.brief }}</div>
  209. </div>
  210. <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'">
  211. <div v-if="tType == 1 || tType == 4" class="checkBox">
  212. <span :class="{ active: type == 2 }" @click="type = 2"
  213. >阶段选择
  214. <div v-show="false">
  215. {{
  216. courseDetail.state == 1
  217. ? "阶段模式"
  218. : courseDetail.state == 2
  219. ? "任务模式"
  220. : "极简模式"
  221. }}
  222. </div></span
  223. >
  224. <span :class="{ active: type == 1 }" @click="getCTwo"
  225. >课程分析</span
  226. >
  227. </div>
  228. <div
  229. v-if="((tType == 1 || tType == 4) && type == 2) || tType == 2"
  230. :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
  231. style="width: 100%; padding-top: 20px"
  232. >
  233. <div
  234. class="courseItem"
  235. v-for="(item, index) in chapInfo"
  236. :key="index"
  237. @click="goToStudyRate(index)"
  238. :class="{
  239. disabled: isFollow == 2 && tType == 2 && followC != index,
  240. }"
  241. >
  242. <div class="jdAndTask">
  243. <div>第{{ index + 1 }}阶段</div>
  244. <div
  245. v-if="courseDetail.state == 2 || courseDetail.state == 3"
  246. >
  247. 任务查看
  248. </div>
  249. <div :title="item.dyName">
  250. {{ item.dyName }}
  251. </div>
  252. </div>
  253. <div style="font-size: 14px; font-weight: 400; color: 3681FC">
  254. {{ item.chapterInfo[0].taskJson.length }}个任务
  255. </div>
  256. </div>
  257. <!-- <div
  258. class="blue_box_one"
  259. v-for="(item, index) in chapInfo"
  260. :key="index"
  261. @click="addUserRate(index)"
  262. :class="{
  263. disabled: isFollow == 2 && tType == 2 && followC != index,
  264. }"
  265. >
  266. <div v-if="courseDetail.state == 1">第{{ index + 1 }}阶段</div>
  267. <div v-if="courseDetail.state == 2 || courseDetail.state == 3">
  268. 任务查看
  269. </div>
  270. <div :title="item.dyName">{{ item.dyName }}</div>
  271. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  272. </div> -->
  273. </div>
  274. <div
  275. v-if="
  276. (tType == 1 || tType == 4) &&
  277. Object.keys(chaptersJson).length &&
  278. type == 1
  279. "
  280. class="detail"
  281. >
  282. <div class="detail_box">
  283. <div class="title">
  284. <span class="toolIcon">工具分析</span>
  285. <div class="statebox">
  286. <div>
  287. <span class="taskIcon">全部阶段:</span
  288. ><span>{{ chaptersJson.state.stage }}</span>
  289. </div>
  290. <div>
  291. <span class="finishIcon">已进行:</span
  292. ><span>{{ chaptersJson.state.finish }}</span>
  293. </div>
  294. <div>
  295. <span class="learningIcon">未进行:</span
  296. ><span style="color: #fe9999">{{
  297. chaptersJson.state.learing
  298. }}</span>
  299. </div>
  300. </div>
  301. </div>
  302. <div class="box" v-if="chaptersJson.tool.length">
  303. <div class="progress">
  304. <div
  305. v-for="(item, index) in chaptersJson.tool"
  306. :key="index"
  307. class="chapter"
  308. >
  309. <div class="stageCss" @click="addUserRate(index)">
  310. <div
  311. style="
  312. width: 95%;
  313. height: 60px;
  314. display: flex;
  315. justify-content: space-between;
  316. flex-direction: row;
  317. flex-wrap: nowrap;
  318. align-items: center;
  319. "
  320. >
  321. <el-tooltip
  322. class="item"
  323. effect="light"
  324. :content="item.name"
  325. placement="top"
  326. >
  327. <div
  328. class="titleCss"
  329. style="width: 80%; max-width: unset"
  330. >
  331. 第{{ index + 1 }}阶段 {{ item.name }}
  332. </div>
  333. </el-tooltip>
  334. <!-- <div
  335. style="
  336. font-size: 14px;
  337. font-weight: 400;
  338. color: #3681fc;
  339. min-width: 30px;
  340. "
  341. >
  342. 查看
  343. </div> -->
  344. </div>
  345. </div>
  346. <!-- {{ chaptersJson.chapterState[index].isFinsh ? '已完成' : '进行中' }} -->
  347. <div class="task">
  348. <div
  349. v-for="(item2, index2) in item.array"
  350. :key="index + '-' + index2"
  351. class="taskBox"
  352. :class="item.array.length > 1 ? 'borderRight' : ''"
  353. >
  354. <div class="taskName">
  355. <div class="navIndex">任务{{ index2 + 1 }}:</div>
  356. <div>
  357. <el-tooltip
  358. class="item"
  359. effect="light"
  360. :content="item2.name"
  361. placement="top"
  362. >
  363. <div
  364. class="titleCss"
  365. style="
  366. font-size: 14px;
  367. font-weight: 400;
  368. color: #717c8d;
  369. "
  370. >
  371. {{ item2.name }}
  372. </div>
  373. </el-tooltip>
  374. </div>
  375. </div>
  376. <div class="p_tool_box">
  377. <span
  378. v-for="(item3, index3) in item2.array"
  379. :key="index + '-' + index2 + '-' + index3"
  380. class="p_tool"
  381. >
  382. <div v-if="item3.tool == 1">
  383. <img
  384. src="../assets/icon/secondToolList/whiteBoard.png"
  385. alt
  386. />
  387. <div>电子白板</div>
  388. </div>
  389. <div v-if="item3.tool == 3">
  390. <img
  391. src="../assets/icon/secondToolList/mindMapping.png"
  392. alt
  393. />
  394. <div>思维导图</div>
  395. </div>
  396. <div v-if="item3.tool == 6">
  397. <img
  398. src="../assets/icon/secondToolList/doc.png"
  399. alt
  400. />
  401. <div>协同文档</div>
  402. </div>
  403. <div v-if="item3.tool == 7">
  404. <img
  405. src="../assets/icon/secondToolList/mindNetwork.png"
  406. alt
  407. />
  408. <div>思维网格</div>
  409. </div>
  410. <div v-if="item3.tool == 8">
  411. <img
  412. src="../assets/icon/secondToolList/library.png"
  413. alt
  414. />
  415. <div>素材库</div>
  416. </div>
  417. <div v-if="item3.tool == 17">
  418. <img
  419. src="../assets/icon/secondToolList/library.png"
  420. alt
  421. />
  422. <div>学习资料</div>
  423. </div>
  424. <div v-if="item3.tool == 2">
  425. <img
  426. src="../assets/icon/secondToolList/note.png"
  427. alt
  428. />
  429. <div>便签</div>
  430. </div>
  431. <div v-if="item3.tool == 4">
  432. <img
  433. src="../assets/icon/thirdToolList/ask.png"
  434. alt
  435. />
  436. <div>问卷调查</div>
  437. </div>
  438. <div v-if="item3.tool == 45">
  439. <img
  440. src="../assets/icon/thirdToolList/choose.png"
  441. alt
  442. />
  443. <div>选择题</div>
  444. </div>
  445. <!-- <div v-if="item3.tool == 5">
  446. <img
  447. src="../assets/icon/thirdToolList/score.png"
  448. alt
  449. />
  450. <div >量规评分</div>
  451. </div> -->
  452. <div v-if="item3.tool == 10">
  453. <img
  454. src="../assets/icon/thirdToolList/time.png"
  455. alt
  456. />
  457. <div>倒计时</div>
  458. </div>
  459. <div v-if="item3.tool == 15">
  460. <img
  461. src="../assets/icon/thirdToolList/answer.png"
  462. alt
  463. />
  464. <div>问答</div>
  465. </div>
  466. <div v-if="item3.tool == 26">
  467. <img
  468. src="../assets/icon/thirdToolList/courseDesign.png"
  469. alt
  470. />
  471. <div>课程设计</div>
  472. </div>
  473. <div v-if="item3.tool == 18">
  474. <img
  475. src="../assets/icon/thirdToolList/trainPlatform.png"
  476. alt
  477. />
  478. <div>训练服务器</div>
  479. </div>
  480. <div v-if="item3.tool == 16">
  481. <img
  482. src="../assets/icon/thirdToolList/work.png"
  483. alt
  484. />
  485. <div>作业提交</div>
  486. </div>
  487. <div v-if="item3.tool == 21">
  488. <img
  489. src="../assets/icon/fourthToolList/program.png"
  490. alt
  491. />
  492. <div>AIoT Blockly</div>
  493. </div>
  494. <div v-if="item3.tool == 22">
  495. <img
  496. src="../assets/icon/fourthToolList/program.png"
  497. alt
  498. />
  499. <div>AI体验</div>
  500. </div>
  501. <div v-if="item3.tool == 23">
  502. <img
  503. src="../assets/icon/fourthToolList/program.png"
  504. alt
  505. />
  506. <div>AI Python</div>
  507. </div>
  508. <div v-if="item3.tool == 24">
  509. <img
  510. src="../assets/icon/fourthToolList/AIprogram.png"
  511. alt
  512. />
  513. <div>AI Blockly</div>
  514. </div>
  515. <div v-if="item3.tool == 25">
  516. <img
  517. src="../assets/icon/thirdToolList/evalua.png"
  518. alt
  519. />
  520. <div>目标管理</div>
  521. </div>
  522. <div v-if="item3.tool == 31">
  523. <img
  524. src="../assets/icon/secondToolList/networkPanel.png"
  525. alt
  526. />
  527. <div>数学画板</div>
  528. </div>
  529. <div v-if="item3.tool == 28">
  530. <img
  531. src="../assets/icon/secondToolList/translation.png"
  532. alt
  533. />
  534. <div>翻译</div>
  535. </div>
  536. <div v-if="item3.tool == 37">
  537. <img
  538. src="../assets/icon/secondToolList/mohe.png"
  539. alt
  540. />
  541. <div>魔盒识字</div>
  542. </div>
  543. <div v-if="item3.tool == 38">
  544. <img
  545. src="../assets/icon/secondToolList/24game.png"
  546. alt
  547. />
  548. <div>24点</div>
  549. </div>
  550. <div v-if="item3.tool == 39">
  551. <img
  552. src="../assets/icon/secondToolList/GeoGebra.png"
  553. alt
  554. />
  555. <div>GeoGebra</div>
  556. </div>
  557. <div v-if="item3.tool == 32">
  558. <img
  559. src="../assets/icon/thirdToolList/code.png"
  560. alt
  561. />
  562. <div>源码编辑</div>
  563. </div>
  564. <div v-if="item3.tool == 40">
  565. <img
  566. src="../assets/icon/secondToolList/eval.png"
  567. alt
  568. />
  569. <div>学生评价</div>
  570. </div>
  571. <div v-if="item3.tool == 41">
  572. <img
  573. src="../assets/icon/thirdToolList/select.png"
  574. alt
  575. />
  576. <div>选择匹配</div>
  577. </div>
  578. <div v-if="item3.tool == 44">
  579. <img
  580. src="../assets/icon/thirdToolList/hanClass.png"
  581. alt
  582. />
  583. <div>汉字宫</div>
  584. </div>
  585. <div v-if="item3.tool == 47">
  586. <img
  587. src="../assets/icon/fourthToolList/conSentences.png"
  588. alt
  589. />
  590. <div>排序</div>
  591. </div>
  592. <div v-if="item3.tool == 48">
  593. <img
  594. src="../assets/icon/fourthToolList/table.png"
  595. alt
  596. />
  597. <div>表格</div>
  598. </div>
  599. <div v-if="item3.tool == 49">
  600. <img
  601. src="../assets/icon/fourthToolList/group.png"
  602. alt
  603. />
  604. <div>学生分组</div>
  605. </div>
  606. <div v-if="item3.tool == 50">
  607. <img
  608. src="../assets/icon/thirdToolList/plwork.png"
  609. alt
  610. />
  611. <div>批量上传</div>
  612. </div>
  613. <div v-if="item3.tool == 57">
  614. <img
  615. src="../assets/icon/fourthToolList/cocopi.png"
  616. alt
  617. />
  618. <div>CocoPi</div>
  619. </div>
  620. <div v-if="item3.tool == 58">
  621. <img
  622. src="../assets/icon/fourthToolList/car.png"
  623. alt
  624. />
  625. <div>模拟驾驶</div>
  626. </div>
  627. <div v-if="item3.tool == 59">
  628. <img
  629. src="../assets/icon/fourthToolList/lineSearch.png"
  630. alt
  631. />
  632. <div>路径搜索</div>
  633. </div>
  634. <div v-if="item3.tool == 60">
  635. <img
  636. src="../assets/icon/fourthToolList/deepLearning.png"
  637. alt
  638. />
  639. <div>深度学习</div>
  640. </div>
  641. <div v-if="item3.tool == 61">
  642. <img
  643. src="../assets/icon/fourthToolList/allHistory.png"
  644. alt
  645. />
  646. <div>深度学习</div>
  647. </div>
  648. <div v-if="item3.tool == 62">
  649. <img
  650. src="../assets/icon/fourthToolList/interVideo.png"
  651. alt
  652. />
  653. <div>交互视频</div>
  654. </div>
  655. <div v-if="item3.tool == 63">
  656. <img
  657. src="../assets/icon/fourthToolList/Wood.png"
  658. alt
  659. />
  660. <div>海龟编程</div>
  661. </div>
  662. <div v-if="item3.tool == 65">
  663. <img
  664. src="../assets/icon/firstToolList/pickPeople.png"
  665. alt
  666. />
  667. <div>挑人</div>
  668. </div>
  669. <div v-if="item3.tool == 66">
  670. <img
  671. src="../assets/icon/secondToolList/formulaEdi.png"
  672. alt
  673. />
  674. <div>公式编辑</div>
  675. </div>
  676. <div v-if="item3.tool == 67">
  677. <img
  678. src="../assets/icon/secondToolList/molStr.png"
  679. alt
  680. />
  681. <div>分子结构</div>
  682. </div>
  683. <div v-if="item3.tool == 68">
  684. <img
  685. src="../assets/icon/secondToolList/timeAxis.png"
  686. alt
  687. />
  688. <div>时间轴</div>
  689. </div>
  690. <div v-if="item3.tool == 69">
  691. <img
  692. src="../assets/icon/secondToolList/timeAxis.png"
  693. alt
  694. />
  695. <div>英语写作</div>
  696. </div>
  697. <div v-if="item3.tool == undefined">
  698. <img
  699. src="../assets/icon/empytool.png"
  700. alt
  701. style="width: 64px; height: 75px"
  702. />
  703. </div>
  704. </span>
  705. </div>
  706. </div>
  707. </div>
  708. </div>
  709. </div>
  710. </div>
  711. </div>
  712. <div
  713. class="detail_box"
  714. v-if="Object.keys(chaptersJson.time).length"
  715. >
  716. <div class="title">
  717. <span class="frequencyIcon">活跃频率</span>
  718. </div>
  719. <div class="box">
  720. <div>
  721. <Heatmap
  722. :Josn="chaptersJson.time"
  723. :num="chaptersJson.studentCount"
  724. ></Heatmap>
  725. </div>
  726. </div>
  727. </div>
  728. <div class="detail_box">
  729. <div class="title"><span class="timeIcon">实施时间</span></div>
  730. <div class="box">
  731. <div
  732. style="
  733. font-size: 22px;
  734. margin: 15px 0 45px;
  735. font-weight: 700;
  736. "
  737. >
  738. {{ courseDetail.title }}
  739. </div>
  740. <div class="chapter_time_box" style="margin-left: 170px">
  741. <div
  742. v-for="(item, index) in chaptersJson.work"
  743. :key="index"
  744. class="c_box"
  745. >
  746. <div class="stage_box" style="left: -195px">
  747. <div
  748. style="
  749. min-width: 150px;
  750. position: relative;
  751. left: -5px;
  752. "
  753. >
  754. {{ item.time }}
  755. </div>
  756. <div
  757. class="yuan"
  758. :class="
  759. (item.chapter.length == 1 ||
  760. item.chapter.length > 1) &&
  761. (item.chapter[0].task.length == 1 ||
  762. item.chapter[0].task.length > 1) &&
  763. item.chapter[0].task[0].works.length == 0
  764. ? 'bgCss'
  765. : ''
  766. "
  767. ></div>
  768. <div
  769. class="stage"
  770. :style="{
  771. background:
  772. (item.chapter.length == 1 ||
  773. item.chapter.length > 1) &&
  774. (item.chapter[0].task.length == 1 ||
  775. item.chapter[0].task.length > 1) &&
  776. item.chapter[0].task[0].works.length == 0
  777. ? '#ccc'
  778. : '',
  779. }"
  780. >
  781. 第{{ index + 1 }}阶段 {{ item.name }}
  782. </div>
  783. <div
  784. class="s_up"
  785. :style="{
  786. display:
  787. (item.chapter.length == 1 ||
  788. item.chapter.length > 1) &&
  789. (item.chapter[0].task.length == 1 ||
  790. item.chapter[0].task.length > 1) &&
  791. item.chapter[0].task[0].works.length == 0
  792. ? 'none'
  793. : '',
  794. }"
  795. :class="{ s_up2: !item.is }"
  796. @click="item.is = !item.is"
  797. >
  798. <img src="../assets/icon/up.png" alt="" />
  799. </div>
  800. </div>
  801. <div v-show="item.is">
  802. <div
  803. v-for="(item2, index2) in item.chapter"
  804. :key="index + '-' + index2"
  805. >
  806. <div
  807. style="
  808. display: flex;
  809. flex-direction: row;
  810. flex-wrap: nowrap;
  811. align-items: center;
  812. "
  813. v-if="
  814. item2.task[0].tool != undefined && item2.isWork
  815. "
  816. >
  817. <div
  818. style="
  819. width: 13px;
  820. height: 13px;
  821. background: #5a82cb 100%;
  822. border-radius: 50%;
  823. margin-right: 10px;
  824. "
  825. ></div>
  826. <div style="font-size: 20px; font-weight: bold">
  827. 任务{{ index2 + 1 }}:{{ item2.name }}
  828. </div>
  829. </div>
  830. <div class="p_tool_box2">
  831. <span
  832. v-for="(item3, index3) in item2.task"
  833. :key="index + '-' + index2 + '-' + index3"
  834. class="p_tool2"
  835. >
  836. <div
  837. class="toolBigBox"
  838. style="
  839. display: flex;
  840. flex-direction: row;
  841. flex-wrap: nowrap;
  842. align-items: center;
  843. "
  844. v-if="item3.works.length"
  845. >
  846. <div
  847. style="
  848. display: flex;
  849. flex-direction: row;
  850. flex-wrap: nowrap;
  851. align-items: flex-end;
  852. min-width: 140px;
  853. "
  854. >
  855. <div class="lineBox"></div>
  856. <div class="toolbox">
  857. <div
  858. style="font-size: 16px; font-weight: bold"
  859. >
  860. 步骤{{ index3 + 1 }}:
  861. </div>
  862. <div v-if="item3.tool == 1">电子白板</div>
  863. <div v-if="item3.tool == 3">思维导图</div>
  864. <div v-if="item3.tool == 6">协同文档</div>
  865. <div v-if="item3.tool == 7">思维网格</div>
  866. <div v-if="item3.tool == 8">素材库</div>
  867. <div v-if="item3.tool == 17">学习资料</div>
  868. <div v-if="item3.tool == 2">便签</div>
  869. <div v-if="item3.tool == 4">问卷调查</div>
  870. <div v-if="item3.tool == 45">选择题</div>
  871. <div v-if="item3.tool == 10">倒计时</div>
  872. <div v-if="item3.tool == 15">问答</div>
  873. <div v-if="item3.tool == 26">课程设计</div>
  874. <div v-if="item3.tool == 18">
  875. 训练服务器
  876. </div>
  877. <div v-if="item3.tool == 16">作业提交</div>
  878. <div v-if="item3.tool == 21">
  879. AIoT Blockly
  880. </div>
  881. <div v-if="item3.tool == 22">AI体验</div>
  882. <div v-if="item3.tool == 23">AI Python</div>
  883. <div v-if="item3.tool == 24">
  884. AI Blockly
  885. </div>
  886. <div v-if="item3.tool == 25">目标管理</div>
  887. <div v-if="item3.tool == 31">数学画板</div>
  888. <div v-if="item3.tool == 28">翻译</div>
  889. <div v-if="item3.tool == 37">魔盒识字</div>
  890. <div v-if="item3.tool == 38">24点</div>
  891. <div v-if="item3.tool == 39">GeoGebra</div>
  892. <div v-if="item3.tool == 32">源码编辑</div>
  893. <div v-if="item3.tool == 40">学生评价</div>
  894. <div v-if="item3.tool == 41">选择匹配</div>
  895. <div v-if="item3.tool == 44">汉字宫</div>
  896. <div v-if="item3.tool == 47">排序</div>
  897. <div v-if="item3.tool == 48">表格</div>
  898. <div v-if="item3.tool == 49">学生分组</div>
  899. <div v-if="item3.tool == 50">批量上传</div>
  900. <div v-if="item3.tool == 57">CocoPi</div>
  901. <div v-if="item3.tool == 58">模拟驾驶</div>
  902. <div v-if="item3.tool == 59">路径搜索</div>
  903. <div v-if="item3.tool == 60">深度学习</div>
  904. </div>
  905. </div>
  906. <div
  907. v-if="item3.works.length"
  908. style="
  909. display: flex;
  910. flex-direction: row;
  911. flex-wrap: wrap;
  912. align-items: center;
  913. margin-left: 10px;
  914. "
  915. >
  916. <!-- works:[],likeCount: 0, commentCount: 0, score: 0, isScore: 0 -->
  917. <div class="disCss">
  918. <div class="blueBtn">
  919. 作业数量:{{ item3.works.length }}
  920. </div>
  921. <div
  922. v-if="chaptersJson.studentCount"
  923. class="blueBtn"
  924. >
  925. 任务完成率:{{
  926. (
  927. (item3.works.length /
  928. chaptersJson.studentCount) *
  929. 100
  930. ).toFixed(2) > 100.0
  931. ? 100 + "%"
  932. : (
  933. (item3.works.length /
  934. chaptersJson.studentCount) *
  935. 100
  936. ).toFixed(2) + "%"
  937. }}
  938. </div>
  939. <div class="blueBtn">
  940. <div>点赞:{{ item3.likeCount }}</div>
  941. <div style="margin-left: 15px">
  942. 评论:{{ item3.commentCount }}
  943. </div>
  944. </div>
  945. </div>
  946. <div v-if="item3.isScore">
  947. <div class="disCss">
  948. <div class="blueBtn">
  949. 作业评价量:{{ item3.isScore }}
  950. </div>
  951. <div class="blueBtn">
  952. 评价平均分:{{
  953. (item3.score / item3.isScore).toFixed(
  954. 2
  955. )
  956. }}分
  957. </div>
  958. </div>
  959. </div>
  960. </div>
  961. </div>
  962. </span>
  963. </div>
  964. </div>
  965. </div>
  966. </div>
  967. </div>
  968. </div>
  969. </div>
  970. <!-- <div v-for="(item, index) in Object.keys(chaptersJson.time)" :key="index">
  971. {{ '时间:' + item + '次数:' + chaptersJson.time[item] }}</div> -->
  972. <!-- <div>实施时间:{{ chaptersJson.startTime }}</div> -->
  973. </div>
  974. </div>
  975. </div>
  976. <!-- <div
  977. style="
  978. text-align: center;
  979. padding: 30px 0 20px 0;
  980. box-sizing: border-box;
  981. "
  982. >
  983. 此处滚动加载..
  984. </div>-->
  985. <el-dialog
  986. title="阶段选择"
  987. :visible.sync="dialogVisible"
  988. :append-to-body="true"
  989. width="700px"
  990. :before-close="handleClose"
  991. class="dialog_change"
  992. >
  993. <div style="font-size: 20px">请选择阶段</div>
  994. <div
  995. style="
  996. padding: 20px 30px;
  997. display: flex;
  998. flex-direction: row;
  999. flex-wrap: wrap;
  1000. "
  1001. >
  1002. <div
  1003. class="blue_box"
  1004. v-for="(item, index) in chapInfo"
  1005. :key="index"
  1006. @click="addUserRate(index)"
  1007. >
  1008. <div>第{{ index + 1 }}阶段</div>
  1009. <div>{{ item.dyName }}</div>
  1010. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  1011. </div>
  1012. </div>
  1013. </el-dialog>
  1014. <Group
  1015. :dialogVisibleGroup.sync="dialogVisibleGroup"
  1016. :classList="classList"
  1017. :cid="id"
  1018. :courseDetail="courseDetail"
  1019. :userid="userid"
  1020. :oid="oid"
  1021. :type="tType"
  1022. :classId="classId"
  1023. @getGroup="getGroup"
  1024. ></Group>
  1025. </div>
  1026. </div>
  1027. <el-dialog title="课程二维码" :visible.sync="dialogVisibleQR" width="400px">
  1028. <div class="qrcode" ref="qrCodeUrl"></div>
  1029. </el-dialog>
  1030. <el-dialog
  1031. title="选择授课班级"
  1032. :visible.sync="dialogVisibleSk"
  1033. width="626px"
  1034. class="diy_sk"
  1035. >
  1036. <div class="classBox">
  1037. <div @click="gotoCourse('')">全部</div>
  1038. <div
  1039. @click="gotoCourse(item.id)"
  1040. v-for="(item, index) in classList"
  1041. :key="index"
  1042. >
  1043. {{ item.name }}
  1044. </div>
  1045. </div>
  1046. <div class="cancelDiy" @click="dialogVisibleSk = false">取消</div>
  1047. </el-dialog>
  1048. </div>
  1049. </template>
  1050. <script>
  1051. import Heatmap from "./tools/heatmap.vue";
  1052. import Group from "./group/group.vue";
  1053. import QRCode from "qrcodejs2";
  1054. import { tools } from "../common/tools";
  1055. import axios from "axios";
  1056. import JSZip from "jszip";
  1057. import FileSaver from "file-saver";
  1058. const getFile = (url) => {
  1059. return new Promise((resolve, reject) => {
  1060. axios({
  1061. method: "get",
  1062. url,
  1063. responseType: "blob",
  1064. })
  1065. .then((data) => {
  1066. resolve({ data: data.data });
  1067. })
  1068. .catch((error) => {
  1069. resolve({ data: 1 });
  1070. // reject(error.toString());
  1071. });
  1072. });
  1073. };
  1074. export default {
  1075. components: {
  1076. Heatmap,
  1077. Group,
  1078. },
  1079. data() {
  1080. return {
  1081. choose: 0,
  1082. dialogVisibleSk: false,
  1083. dialogVisible: false,
  1084. dialogVisibleGroup: false,
  1085. id: this.$route.query.courseId,
  1086. userid: this.$route.query.userid,
  1087. oid: this.$route.query.oid,
  1088. org: this.$route.query.org,
  1089. classId: this.$route.query.cid,
  1090. tType: this.$route.query.tType,
  1091. screenType: this.$route.query.screenType,
  1092. courseDetail: {},
  1093. classList: [],
  1094. aStudentName: [],
  1095. chapInfo: [],
  1096. courseType: [],
  1097. Tname: [],
  1098. TnameCheck: false,
  1099. courseTypeJson: {},
  1100. userinfo: [],
  1101. mr: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  1102. rw: 0,
  1103. chaptersJson: {},
  1104. type: 2,
  1105. inviteCode: [],
  1106. groupInfo: "",
  1107. isFollow: "",
  1108. followC: "",
  1109. dialogVisibleQR: false,
  1110. checkStage: 0,
  1111. tools: tools,
  1112. };
  1113. },
  1114. methods: {
  1115. handleClose(done) {
  1116. done();
  1117. },
  1118. setQr(cid) {
  1119. this.dialogVisibleQR = true;
  1120. setTimeout(() => {
  1121. this.$refs.qrCodeUrl.innerHTML = "";
  1122. var qrcode = new QRCode(this.$refs.qrCodeUrl, {
  1123. text: "https://beta.cloud.cocorobo.cn/#/course?courseid=" + cid, // 需要转换为二维码的内容
  1124. width: 350,
  1125. height: 350,
  1126. colorDark: "#000000",
  1127. colorLight: "#ffffff",
  1128. correctLevel: QRCode.CorrectLevel.H,
  1129. });
  1130. }, 500);
  1131. },
  1132. goTo(path) {
  1133. this.$router.push(path);
  1134. },
  1135. gotoCourse(id) {
  1136. if (this.courseDetail.state == 1) {
  1137. if (this.classList.length) {
  1138. this.goTo(
  1139. "/studyStudent?type=" +
  1140. this.checkStage +
  1141. "&courseId=" +
  1142. this.id +
  1143. "&userid=" +
  1144. this.userid +
  1145. "&oid=" +
  1146. this.oid +
  1147. "&org=" +
  1148. this.org +
  1149. "&cid=" +
  1150. this.classId +
  1151. "&tType=" +
  1152. this.tType +
  1153. "&screenType=" +
  1154. this.screenType +
  1155. "&tcid=" +
  1156. id
  1157. );
  1158. } else {
  1159. this.goTo(
  1160. "/studyStudent?type=" +
  1161. this.checkStage +
  1162. "&courseId=" +
  1163. this.id +
  1164. "&userid=" +
  1165. this.userid +
  1166. "&oid=" +
  1167. this.oid +
  1168. "&org=" +
  1169. this.org +
  1170. "&cid=" +
  1171. this.classId +
  1172. "&tType=" +
  1173. this.tType +
  1174. "&screenType=" +
  1175. this.screenType
  1176. );
  1177. }
  1178. } else if (this.courseDetail.state == 2) {
  1179. if (this.classList.length) {
  1180. this.goTo(
  1181. "/studystudentE2?type=" +
  1182. this.checkStage +
  1183. "&courseId=" +
  1184. this.id +
  1185. "&userid=" +
  1186. this.userid +
  1187. "&oid=" +
  1188. this.oid +
  1189. "&org=" +
  1190. this.org +
  1191. "&cid=" +
  1192. this.classId +
  1193. "&tType=" +
  1194. this.tType +
  1195. "&screenType=" +
  1196. this.screenType +
  1197. "&tcid=" +
  1198. id
  1199. );
  1200. } else {
  1201. this.goTo(
  1202. "/studystudentE2?type=" +
  1203. this.checkStage +
  1204. "&courseId=" +
  1205. this.id +
  1206. "&userid=" +
  1207. this.userid +
  1208. "&oid=" +
  1209. this.oid +
  1210. "&org=" +
  1211. this.org +
  1212. "&cid=" +
  1213. this.classId +
  1214. "&tType=" +
  1215. this.tType +
  1216. "&screenType=" +
  1217. this.screenType
  1218. );
  1219. }
  1220. } else if (this.courseDetail.state == 3) {
  1221. if (this.classList.length) {
  1222. this.goTo(
  1223. "/studystudentE3?type=" +
  1224. this.checkStage +
  1225. "&courseId=" +
  1226. this.id +
  1227. "&userid=" +
  1228. this.userid +
  1229. "&oid=" +
  1230. this.oid +
  1231. "&org=" +
  1232. this.org +
  1233. "&cid=" +
  1234. this.classId +
  1235. "&tType=" +
  1236. this.tType +
  1237. "&screenType=" +
  1238. this.screenType +
  1239. "&tcid=" +
  1240. id
  1241. );
  1242. } else {
  1243. this.goTo(
  1244. "/studystudentE3?type=" +
  1245. this.checkStage +
  1246. "&courseId=" +
  1247. this.id +
  1248. "&userid=" +
  1249. this.userid +
  1250. "&oid=" +
  1251. this.oid +
  1252. "&org=" +
  1253. this.org +
  1254. "&cid=" +
  1255. this.classId +
  1256. "&tType=" +
  1257. this.tType +
  1258. "&screenType=" +
  1259. this.screenType
  1260. );
  1261. }
  1262. }
  1263. },
  1264. goToStudyOrDia(l) {
  1265. if (l.length > 0) {
  1266. this.dialogVisibleSk = true;
  1267. } else {
  1268. this.addUserRate(0);
  1269. }
  1270. },
  1271. goToStudyRate(i) {
  1272. this.checkStage = i;
  1273. if (this.tType == 2) {
  1274. this.addUserRate(i);
  1275. } else {
  1276. if (this.classList.length > 0) {
  1277. this.dialogVisibleSk = true;
  1278. } else {
  1279. this.addUserRate(i);
  1280. }
  1281. }
  1282. },
  1283. addUserRate(i) {
  1284. // var suid = this.userid;
  1285. // if (
  1286. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1 &&
  1287. // JSON.parse(this.courseDetail.userid) != suid
  1288. // ) {
  1289. // this.$message.error("你没有该权限");
  1290. // return;
  1291. // }
  1292. // var a =
  1293. // this.courseDetail.course_student != ""
  1294. // ? JSON.parse(this.courseDetail.course_student)
  1295. // : "";
  1296. // if (this.courseDetail.userid != suid) {
  1297. // if (this.userinfo.type == 2) {
  1298. // if (a != "") {
  1299. // if (
  1300. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
  1301. // ) {
  1302. // this.$message.error("你没有该权限");
  1303. // return;
  1304. // }
  1305. // } else {
  1306. // this.$message.error("暂无项目学员,请联系老师添加项目学员!");
  1307. // return;
  1308. // }
  1309. // }
  1310. // }
  1311. if (this.isFollow == 2 && this.tType == 2 && this.followC != i) {
  1312. return;
  1313. }
  1314. let params = {
  1315. uid: this.userid,
  1316. cid: this.id,
  1317. };
  1318. this.ajax
  1319. .get(this.$store.state.api + "addUserR", params)
  1320. .then((res) => {
  1321. this.updateVc();
  1322. if (this.tType == 1 || this.tType == 4) {
  1323. if (this.courseDetail.state == 1) {
  1324. this.goTo(
  1325. "/studyStudent?type=" +
  1326. i +
  1327. "&courseId=" +
  1328. this.id +
  1329. "&userid=" +
  1330. this.userid +
  1331. "&oid=" +
  1332. this.oid +
  1333. "&org=" +
  1334. this.org +
  1335. "&cid=" +
  1336. this.classId +
  1337. "&tType=" +
  1338. this.tType +
  1339. "&screenType=" +
  1340. this.screenType
  1341. );
  1342. } else if (this.courseDetail.state == 2) {
  1343. this.goTo(
  1344. "/studystudentE2?type=" +
  1345. i +
  1346. "&courseId=" +
  1347. this.id +
  1348. "&userid=" +
  1349. this.userid +
  1350. "&oid=" +
  1351. this.oid +
  1352. "&org=" +
  1353. this.org +
  1354. "&cid=" +
  1355. this.classId +
  1356. "&tType=" +
  1357. this.tType +
  1358. "&screenType=" +
  1359. this.screenType
  1360. );
  1361. } else if (this.courseDetail.state == 3) {
  1362. this.goTo(
  1363. "/studystudentE3?type=" +
  1364. i +
  1365. "&courseId=" +
  1366. this.id +
  1367. "&userid=" +
  1368. this.userid +
  1369. "&oid=" +
  1370. this.oid +
  1371. "&org=" +
  1372. this.org +
  1373. "&cid=" +
  1374. this.classId +
  1375. "&tType=" +
  1376. this.tType +
  1377. "&screenType=" +
  1378. this.screenType
  1379. );
  1380. }
  1381. } else if (this.tType == 2) {
  1382. this.goTo(
  1383. "/studyStudent?type=" +
  1384. i +
  1385. "&courseId=" +
  1386. this.id +
  1387. "&userid=" +
  1388. this.userid +
  1389. "&oid=" +
  1390. this.oid +
  1391. "&org=" +
  1392. this.org +
  1393. "&cid=" +
  1394. this.classId +
  1395. "&tType=" +
  1396. this.tType +
  1397. "&screenType=" +
  1398. this.screenType
  1399. );
  1400. // this.gotoCourse(this.classId);
  1401. } else {
  1402. this.goTo(
  1403. "/study?type=" +
  1404. i +
  1405. "&courseId=" +
  1406. this.id +
  1407. "&userid=" +
  1408. this.userid +
  1409. "&oid=" +
  1410. this.oid +
  1411. "&org=" +
  1412. this.org +
  1413. "&cid=" +
  1414. this.classId +
  1415. "&tType=" +
  1416. this.tType +
  1417. "&screenType=" +
  1418. this.screenType
  1419. );
  1420. }
  1421. })
  1422. .catch((err) => {
  1423. console.error(err);
  1424. });
  1425. },
  1426. updateVc() {
  1427. let params = {
  1428. cid: this.id,
  1429. };
  1430. this.ajax
  1431. .get(this.$store.state.api + "updateVc", params)
  1432. .then((res) => {
  1433. console.log(res.data);
  1434. })
  1435. .catch((err) => {
  1436. console.error(err);
  1437. });
  1438. },
  1439. async getCourseDetail1() {
  1440. const loading = this.$loading.service({
  1441. background: "rgba(255, 255, 255, 0.7)",
  1442. target: document.querySelector(".student_table"),
  1443. });
  1444. let params = {
  1445. courseId: this.id,
  1446. };
  1447. let res = await this.ajax.get(
  1448. this.$store.state.api + "selectCourseDetail2",
  1449. params
  1450. );
  1451. loading.close();
  1452. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1453. this.courseDetail = res.data[0][0];
  1454. this.isFollow = res.data[0][0].follow;
  1455. this.followC = res.data[0][0].followC
  1456. ? res.data[0][0].followC.split("-")[0]
  1457. : "";
  1458. this.classList = res.data[3];
  1459. let groupData = res.data[5];
  1460. var a = res.data[0];
  1461. var b = res.data[1];
  1462. var c = res.data[2];
  1463. for (var i = 0; i < b.length; i++) {
  1464. // if (!this.id) {
  1465. // this.courseType[b[i].id] = [];
  1466. // }
  1467. for (var j = 0; j < a.length; j++) {
  1468. if (b[i].id == a[j].pid) {
  1469. if (!this.courseTypeJson[b[i].name]) {
  1470. this.courseType.push(b[i].name);
  1471. this.courseTypeJson[b[i].name] = [];
  1472. }
  1473. this.courseTypeJson[b[i].name].push(a[j].name);
  1474. }
  1475. }
  1476. }
  1477. this.Tname = [];
  1478. for (var k = 0; k < c.length; k++) {
  1479. this.Tname.push(c[k].name);
  1480. }
  1481. console.log(this.courseTypeJson.length);
  1482. this.aStudentName = res.data[2];
  1483. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1484. for (var z = 0; z < this.chapInfo.length; z++) {
  1485. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1486. }
  1487. this.inviteCode = [];
  1488. for (var i = 0; i < res.data[4].length; i++) {
  1489. this.inviteCode.push({
  1490. cid: res.data[4][i].classid,
  1491. ic: res.data[4][i].code,
  1492. });
  1493. }
  1494. if (res.data[3].length != this.inviteCode.length) {
  1495. let classArray = [];
  1496. let noClassArray = [];
  1497. for (var i = 0; i < res.data[3].length; i++) {
  1498. classArray.push(res.data[3][i].id);
  1499. noClassArray.push(res.data[3][i].id);
  1500. }
  1501. this.inviteCode = this.inviteCode.filter((el) => {
  1502. if (classArray.indexOf(el.cid) != -1) {
  1503. noClassArray.splice(noClassArray.indexOf(el.cid), 1);
  1504. return el;
  1505. }
  1506. });
  1507. for (var i = 0; i < noClassArray.length; i++) {
  1508. await this.getInviteCode(noClassArray[i]);
  1509. }
  1510. let a = this.inviteCode;
  1511. console.log(this.inviteCode);
  1512. this.addInviteCode();
  1513. }
  1514. this.groupInfo = "";
  1515. if (groupData.length) {
  1516. gp: for (var g = 0; g < groupData.length; g++) {
  1517. if (groupData[g].userid == this.userid) {
  1518. let gid = groupData[g].groupCid;
  1519. let groupA = JSON.parse(groupData[g].group).group;
  1520. for (var gA = 0; gA < groupA.length; gA++) {
  1521. if (groupA[gA].id == gid) {
  1522. this.groupInfo = {
  1523. name: groupA[gA].name,
  1524. };
  1525. break gp;
  1526. }
  1527. }
  1528. }
  1529. }
  1530. }
  1531. // debugger
  1532. },
  1533. addInviteCode() {
  1534. let params = [
  1535. {
  1536. courseId: this.id,
  1537. inviteCode: JSON.stringify(this.inviteCode),
  1538. },
  1539. ];
  1540. this.ajax
  1541. .post(this.$store.state.api + "addInviteCode", params)
  1542. .then((res) => {})
  1543. .catch((err) => {
  1544. console.error(err);
  1545. });
  1546. },
  1547. getCTwo() {
  1548. this.type = 1;
  1549. this.getCourseDetail2();
  1550. },
  1551. getCourseDetail2() {
  1552. const loading = this.$loading.service({
  1553. background: "rgba(255, 255, 255, 0.7)",
  1554. target: document.querySelector(".student_table"),
  1555. });
  1556. let params = {
  1557. courseId: this.id,
  1558. };
  1559. this.ajax
  1560. .get(this.$store.state.api + "selectCourseDetail", params)
  1561. .then((res) => {
  1562. loading.close();
  1563. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1564. this.courseDetail = res.data[0][0];
  1565. var a = res.data[0];
  1566. var b = res.data[1];
  1567. var c = res.data[2];
  1568. var d = res.data[3];
  1569. for (var i = 0; i < b.length; i++) {
  1570. // if (!this.id) {
  1571. // this.courseType[b[i].id] = [];
  1572. // }
  1573. for (var j = 0; j < a.length; j++) {
  1574. if (b[i].id == a[j].pid) {
  1575. if (!this.courseTypeJson[b[i].name]) {
  1576. this.courseType.push(b[i].name);
  1577. this.courseTypeJson[b[i].name] = [];
  1578. }
  1579. this.courseTypeJson[b[i].name].push(a[j].name);
  1580. }
  1581. }
  1582. }
  1583. this.Tname = [];
  1584. for (var k = 0; k < c.length; k++) {
  1585. this.Tname.push(c[k].name);
  1586. }
  1587. console.log(this.courseTypeJson.length);
  1588. this.aStudentName = res.data[2];
  1589. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1590. for (var z = 0; z < this.chapInfo.length; z++) {
  1591. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1592. }
  1593. let _chapters = JSON.parse(a[0].chapters);
  1594. let _works = res.data[3];
  1595. let _sCont = res.data[4];
  1596. let _comment = res.data[5];
  1597. let _chaptersJson = {
  1598. chapterState: _chapters,
  1599. state: {
  1600. stage: _chapters.length,
  1601. finish: 0,
  1602. learing: 0,
  1603. },
  1604. tool: [],
  1605. chapter: [],
  1606. time: {},
  1607. startTime: _works.length ? _works[0].time : "",
  1608. work: [],
  1609. studentCount: _sCont[0].usercount,
  1610. };
  1611. let timeAarry = [];
  1612. for (var j = 0; j < _works.length; j++) {
  1613. timeAarry.push(_works[j].vtime);
  1614. }
  1615. timeAarry.forEach((item) => {
  1616. _chaptersJson.time[item] = _chaptersJson.time[item] + 1 || 1;
  1617. });
  1618. for (var i = 0; i < _chapters.length; i++) {
  1619. _chaptersJson.chapterState[i].isFinsh = false;
  1620. // _chaptersJson.tool[i] = []
  1621. _chaptersJson.tool[i] = { array: [], name: _chapters[i].dyName };
  1622. _chaptersJson.chapter[i] = [];
  1623. _chaptersJson.work[i] = {
  1624. name: _chapters[i].dyName,
  1625. chapter: [],
  1626. time: "",
  1627. };
  1628. for (var j = 0; j < _works.length; j++) {
  1629. if (i == _works[j].stage) {
  1630. _chaptersJson.chapterState[i].isFinsh = true;
  1631. _chaptersJson.work[i].time = _works[j].time;
  1632. _chaptersJson.state.finish++;
  1633. break;
  1634. }
  1635. }
  1636. let el = _chapters[i].chapterInfo[0].taskJson;
  1637. for (var z = 0; z < el.length; z++) {
  1638. // _chaptersJson.tool[i][z] = [];
  1639. _chaptersJson.tool[i].array[z] = { array: [], name: el[z].task };
  1640. _chaptersJson.chapter[i][z] = [];
  1641. _chaptersJson.work[i].chapter[z] = {
  1642. name: el[z].task,
  1643. task: [],
  1644. isWork: false,
  1645. };
  1646. if (d.length > 0) {
  1647. _chaptersJson.work[i].chapter[z].isWork = true;
  1648. }
  1649. _chaptersJson.work[i].is = false;
  1650. let tools = el[z].toolChoose;
  1651. for (var k = 0; k < tools.length; k++) {
  1652. _chaptersJson.work[i].chapter[z].task[k] = {
  1653. tool: tools[k].tool[0],
  1654. works: [],
  1655. likeCount: 0,
  1656. commentCount: 0,
  1657. score: 0,
  1658. isScore: 0,
  1659. };
  1660. for (var j = 0; j < _works.length; j++) {
  1661. if (
  1662. i == _works[j].stage &&
  1663. z == _works[j].task &&
  1664. k == _works[j].tool
  1665. ) {
  1666. _chaptersJson.work[i].chapter[z].task[k].works.push(
  1667. _works[j]
  1668. );
  1669. if (_works[j].score) {
  1670. _chaptersJson.work[i].chapter[z].task[k].score +=
  1671. JSON.parse(_works[j].score).wScore;
  1672. _chaptersJson.work[i].chapter[z].task[k].isScore++;
  1673. }
  1674. }
  1675. }
  1676. for (var j = 0; j < _comment.length; j++) {
  1677. if (
  1678. i == _comment[j].stage &&
  1679. z == _comment[j].task &&
  1680. k == _comment[j].tool
  1681. ) {
  1682. if (_comment[j].cType == 1) {
  1683. _chaptersJson.work[i].chapter[z].task[k].likeCount++;
  1684. }
  1685. if (_comment[j].cType == 2) {
  1686. _chaptersJson.work[i].chapter[z].task[k].commentCount++;
  1687. }
  1688. }
  1689. }
  1690. // if (_chaptersJson.chapter[i][z].indexOf(tools[k].tool[0]) == -1) {
  1691. // _chaptersJson.tool[i][z].push(tools[k].tool[0])
  1692. // }
  1693. _chaptersJson.chapter[i][z][k] = { tool: tools[k].tool[0] };
  1694. // _chaptersJson.tool[i][z][k] = { tool: tools[k].tool[0] };
  1695. _chaptersJson.tool[i].array[z].array[k] = {
  1696. tool: tools[k].tool[0],
  1697. };
  1698. }
  1699. }
  1700. }
  1701. _chaptersJson.state.learing =
  1702. _chaptersJson.state.stage - _chaptersJson.state.finish;
  1703. this.chaptersJson = _chaptersJson;
  1704. // debugger
  1705. })
  1706. .catch((err) => {
  1707. loading.close();
  1708. console.error(err);
  1709. });
  1710. },
  1711. getGroup() {
  1712. this.getCourseDetail1();
  1713. },
  1714. getUser() {
  1715. let params = { uid: this.userid };
  1716. this.ajax
  1717. .get(this.$store.state.api + "getUser", params)
  1718. .then((res) => {
  1719. this.userinfo = res.data[0][0];
  1720. })
  1721. .catch((err) => {
  1722. console.error(err);
  1723. });
  1724. },
  1725. // getSName() {
  1726. // let params = {
  1727. // uid: JSON.stringify(this.courseDetail.course_student),
  1728. // };
  1729. // this.ajax
  1730. // .get(this.$store.state.api + "selectSName", params)
  1731. // .then((res) => {
  1732. // this.aStudentName = res.data[0];
  1733. // })
  1734. // .catch((err) => {
  1735. // console.error(err);
  1736. // });
  1737. // },
  1738. async getInviteCode(cid) {
  1739. let code = this.randomNumber();
  1740. // let params = {
  1741. // code: code,
  1742. // oid: this.oid,
  1743. // }
  1744. // let type = 1
  1745. // for (var i = 0; i < this.inviteCode.length; i++) {
  1746. // if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  1747. // type = 2
  1748. // }
  1749. // }
  1750. // if (type == 2) {
  1751. // this.getInviteCode(cid)
  1752. // return;
  1753. // }
  1754. // const res = await this.ajax.get(this.$store.state.api + "selectInviteCode2", params)
  1755. // if (res.data.length && res.data[0].length && res.data[0][0].courseId != this.cid) {
  1756. // this.getInviteCode(cid)
  1757. // return;
  1758. // }
  1759. let array = [];
  1760. for (var i = 0; i < this.inviteCode.length; i++) {
  1761. array.push(this.inviteCode[i].cid);
  1762. }
  1763. if (array.indexOf(cid) != -1) {
  1764. this.inviteCode[array.indexOf(cid)].ic = code;
  1765. } else {
  1766. this.inviteCode.push({ cid: cid, ic: code });
  1767. }
  1768. },
  1769. randomNumber() {
  1770. // 随机生成两位数
  1771. // let num = Math.floor(Math.random() * 900) + 100;
  1772. // 生成 0 到 99 之间的随机整数
  1773. const randomNumber = Math.floor(Math.random() * 100);
  1774. // 如果随机数小于 10,补上前导零
  1775. const num =
  1776. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  1777. // 随机生成两个大写字母
  1778. let letters = "";
  1779. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  1780. for (let i = 0; i < 3; i++) {
  1781. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  1782. }
  1783. // 随机生成两位数字和字母的组合
  1784. let mix = "";
  1785. let chars =
  1786. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  1787. for (let i = 0; i < 3; i++) {
  1788. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  1789. mix += char;
  1790. }
  1791. // 随机选择一种类型
  1792. let type = Math.floor(Math.random() * 3);
  1793. return num;
  1794. // 根据类型输出结果
  1795. switch (type) {
  1796. case 0:
  1797. console.log(num); // 输出两位数
  1798. return num;
  1799. case 1:
  1800. console.log(letters); // 输出两个大写字母
  1801. return letters;
  1802. case 2:
  1803. console.log(mix); // 输出两位数字和字母的组合
  1804. return mix;
  1805. }
  1806. },
  1807. exportCourse() {
  1808. let _title = `<div style="font-size:50px;font-weight:bold;">${this.courseDetail.title}</div>`;
  1809. let _type = "";
  1810. if (this.courseType.length) {
  1811. _type = `<div style="font-size:30px;margin-top:10px;"><span style="color: rgb(113, 124, 141); font-weight: 400;">分类:</span><span>${
  1812. this.courseTypeJson[Object.keys(this.courseTypeJson)[0]]
  1813. }</span></div>`;
  1814. }
  1815. let _user = `<div style="font-size:30px;margin-top:10px;"><span style="color: rgb(113, 124, 141); font-weight: 400;">创建者:</span><span>${this.courseDetail.username}</span></div>`;
  1816. const _chapInfo = this.chapInfo;
  1817. let _chap = "";
  1818. for (let i = 0; i < _chapInfo.length; i++) {
  1819. _chap += `<div style="font-size:40px;margin-top:70px;"><span>第${
  1820. i + 1
  1821. }阶段:${_chapInfo[i].dyName}</span></div>`;
  1822. let _task = _chapInfo[i].chapterInfo[0].taskJson;
  1823. for (let j = 0; j < _task.length; j++) {
  1824. _chap += `<div style="font-size:30px;margin-top:50px;"><span>任务${
  1825. j + 1
  1826. }:${_task[j].task}</span></div>`;
  1827. if (_task[j].taskDetail) {
  1828. _chap += `<div style="font-size:25px;margin-top:40px;">任务描述</div>`;
  1829. _chap += `<div style="font-size:25px;margin-top:10px;">${_task[j].taskDetail}</div>`;
  1830. }
  1831. let _tool = _task[j].toolChoose;
  1832. if (_tool[0].tool.length) {
  1833. for (let z = 0; z < _tool.length; z++) {
  1834. _chap += `<div style="font-size:23px;margin-top:30px;"><span>步骤${
  1835. z + 1
  1836. }:</span><span>${
  1837. tools[_tool[z].tool[0]] ? tools[_tool[z].tool[0]].name : ""
  1838. }</span></div>`;
  1839. if (_tool[z].toolDetail) {
  1840. _chap += `<div style="font-size:23px;margin-top:20px;">工具描述</div>`;
  1841. _chap += `<div style="font-size:23px;margin-top:10px;">${_tool[z].toolDetail}</div>`;
  1842. }
  1843. }
  1844. }
  1845. }
  1846. }
  1847. let _html = _title + _type + _user + _chap;
  1848. this.generate(this.courseDetail, _html);
  1849. },
  1850. async generate(a, html) {
  1851. // 将html文件中需要用到的数据挂载到store上
  1852. const content = `<!DOCTYPE html>
  1853. <html lang="en">
  1854. <head>
  1855. <meta charset="UTF-8">
  1856. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  1857. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  1858. <title>报告</title>
  1859. <style>
  1860. </style>
  1861. </head>
  1862. <body>
  1863. ${html}
  1864. </body>
  1865. </html>`;
  1866. // debugger
  1867. // 生成报告
  1868. const link = document.createElement("a");
  1869. let dname = a.title + ".docx";
  1870. // link.download = "报告.html"; // 文件名
  1871. link.download = dname; // 文件名
  1872. link.style.display = "none";
  1873. // 创建文件流
  1874. // 创建bolb实例时,内容一定要放在[]中
  1875. const blob = new Blob([content], {
  1876. type: "text/plain;charset='utf-8'",
  1877. });
  1878. link.href = window.URL.createObjectURL(blob);
  1879. document.body.appendChild(link);
  1880. link.click();
  1881. document.body.removeChild(link);
  1882. // saveAs(
  1883. // htmlDocx.asBlob(content, {
  1884. // orientation: "landscape", //跨域设置
  1885. // }),
  1886. // //文件名
  1887. // "报告.doc"
  1888. // );
  1889. },
  1890. uploadCourse() {
  1891. // this.$confirm("确定导出课件吗?", "提示", {
  1892. // confirmButtonText: "确定",
  1893. // cancelButtonText: "取消",
  1894. // type: "warning",
  1895. // })
  1896. // .then(() => {
  1897. const loading = this.$loading.service({
  1898. background: "rgba(255, 255, 255, 0.7)",
  1899. target: document.body,
  1900. text: "文件加载中...",
  1901. });
  1902. const _chapInfo = this.chapInfo;
  1903. let url = [];
  1904. for (let i = 0; i < _chapInfo.length; i++) {
  1905. let _task = _chapInfo[i].chapterInfo[0].taskJson;
  1906. for (let j = 0; j < _task.length; j++) {
  1907. let _chapterData = _task[j].chapterData;
  1908. for (let k = 0; k < _chapterData.length; k++) {
  1909. if (
  1910. _chapterData[k].url.indexOf(
  1911. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  1912. ) !== -1 &&
  1913. _chapterData[k].url.indexOf("img") === -1
  1914. ) {
  1915. let _point = _chapterData[k].url.split(".")[_chapterData[k].url.split(".").length - 1]
  1916. url.push({
  1917. name: _chapterData[k].name.indexOf(_point) == -1 ? (_chapterData[k].name + '.' + _point) : _chapterData[k].name,
  1918. url: _chapterData[k].url,
  1919. });
  1920. }
  1921. }
  1922. }
  1923. }
  1924. console.log(url);
  1925. this.downLoadAll(url, loading);
  1926. // })
  1927. // .catch(() => {});
  1928. },
  1929. downLoadAll(url, loading) {
  1930. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  1931. const zip = new JSZip();
  1932. const cache = {};
  1933. const promises = [];
  1934. data.forEach((item) => {
  1935. const promise = getFile(item.url).then((data) => {
  1936. if (data.data != 1) {
  1937. // 下载文件, 并存成ArrayBuffer对象
  1938. const file_name = item.name; // 获取文件名
  1939. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  1940. cache[file_name] = data.data;
  1941. }
  1942. });
  1943. promises.push(promise);
  1944. });
  1945. Promise.all(promises).then(() => {
  1946. zip.generateAsync({ type: "blob" }).then((content) => {
  1947. // 生成二进制流
  1948. FileSaver.saveAs(content, this.courseDetail.title + ".zip"); // 利用file-saver保存文件 自定义文件名
  1949. setTimeout(() => {
  1950. loading.close();
  1951. }, 2000);
  1952. });
  1953. });
  1954. },
  1955. },
  1956. created() {
  1957. // if(this.tType == 1 || this.tType == 4){
  1958. // this.getCourseDetail2();
  1959. // }else{
  1960. // this.getCourseDetail1();
  1961. // }
  1962. this.getCourseDetail1();
  1963. this.getUser();
  1964. document.scrollingElement.scrollTop = 0;
  1965. // this.getSName();
  1966. },
  1967. };
  1968. </script>
  1969. <style scoped>
  1970. @media screen and (max-width: 1024px) {
  1971. /* .Tname {
  1972. width: 500px;
  1973. white-space: nowrap;
  1974. overflow: hidden;
  1975. text-overflow: ellipsis;
  1976. } */
  1977. }
  1978. .body_student {
  1979. margin: 10px auto;
  1980. width: 98%;
  1981. height: 100%;
  1982. }
  1983. .student_head {
  1984. width: 100%;
  1985. background: #fff;
  1986. height: 30%;
  1987. position: relative;
  1988. }
  1989. .returnIndexImg {
  1990. width: 18px;
  1991. margin: 0 7px 0 0;
  1992. height: auto;
  1993. box-sizing: border-box;
  1994. display: flex;
  1995. align-items: center;
  1996. }
  1997. .returnIndexImg > img {
  1998. width: 100%;
  1999. }
  2000. .wheel {
  2001. width: 250px;
  2002. max-height: 146px;
  2003. display: flex;
  2004. align-items: center;
  2005. }
  2006. .man {
  2007. width: 16px;
  2008. height: 16px;
  2009. }
  2010. .wheel > img,
  2011. .man > img {
  2012. width: 100%;
  2013. height: 100%;
  2014. }
  2015. .box_course {
  2016. display: flex;
  2017. padding: 25px 0 20px 60px;
  2018. }
  2019. .right_box {
  2020. display: flex;
  2021. flex-direction: column;
  2022. margin-left: 30px;
  2023. align-items: flex-start;
  2024. width: calc(100% - 350px);
  2025. }
  2026. .right_box_title {
  2027. font-size: 20px;
  2028. font-weight: bold;
  2029. max-width: calc(100% - 250px);
  2030. white-space: nowrap;
  2031. overflow: hidden;
  2032. text-overflow: ellipsis;
  2033. }
  2034. .people {
  2035. display: flex;
  2036. margin-top: 20px;
  2037. }
  2038. .person {
  2039. margin-left: 10px;
  2040. /* line-height: 18px; */
  2041. }
  2042. .btnBox {
  2043. display: flex;
  2044. margin-top: 20px;
  2045. }
  2046. .now_study {
  2047. /* width: 120px; */
  2048. padding: 0 10px;
  2049. height: 45px;
  2050. color: #fff;
  2051. background: #3681fc;
  2052. text-align: center;
  2053. line-height: 45px;
  2054. border-radius: 8px;
  2055. font-size: 16px;
  2056. cursor: pointer;
  2057. display: flex;
  2058. flex-direction: row;
  2059. flex-wrap: nowrap;
  2060. align-items: center;
  2061. justify-content: center;
  2062. }
  2063. .now_study + .now_study {
  2064. margin-left: 10px;
  2065. }
  2066. .goToStudy {
  2067. /* width: 120px; */
  2068. padding: 0 10px;
  2069. height: 45px;
  2070. background: #3681fc;
  2071. border-radius: 8px;
  2072. color: #fff;
  2073. display: flex;
  2074. flex-direction: row;
  2075. flex-wrap: nowrap;
  2076. align-items: center;
  2077. justify-content: center;
  2078. position: absolute;
  2079. right: 25px;
  2080. bottom: 25px;
  2081. font-size: 16px;
  2082. cursor: pointer;
  2083. }
  2084. .now_group {
  2085. height: 35px;
  2086. font-size: 14px;
  2087. line-height: 35px;
  2088. margin-left: 32px;
  2089. }
  2090. .now_group > span:nth-child(1) {
  2091. color: rgb(108, 108, 108);
  2092. }
  2093. .choose_who {
  2094. display: flex;
  2095. margin: 15px 0 0 25px;
  2096. }
  2097. .who_choose {
  2098. height: 28px;
  2099. cursor: pointer;
  2100. }
  2101. .choose_who > div:nth-child(2) {
  2102. margin-left: 35px;
  2103. }
  2104. .choose {
  2105. border-bottom: 5px solid #4a9eed;
  2106. color: #4a9eed;
  2107. }
  2108. .student_body {
  2109. display: flex;
  2110. }
  2111. .student_body,
  2112. .right {
  2113. width: 100%;
  2114. margin: 10px auto;
  2115. min-height: 688px;
  2116. }
  2117. .nav {
  2118. margin: auto 25px;
  2119. width: 80%;
  2120. padding-top: 5px;
  2121. text-indent: 25px;
  2122. }
  2123. .pic {
  2124. width: 100%;
  2125. display: flex;
  2126. flex-direction: row;
  2127. flex-wrap: wrap;
  2128. height: 100%;
  2129. justify-content: space-evenly;
  2130. }
  2131. .Img {
  2132. /*width: 30%; */
  2133. width: 300px;
  2134. margin: 20px 50px;
  2135. margin: 20px 10px;
  2136. border: 1px solid #dbdbdb;
  2137. border-radius: 5px;
  2138. overflow: hidden;
  2139. }
  2140. .Img > img {
  2141. width: 100%;
  2142. height: 100%;
  2143. }
  2144. .student_body_one,
  2145. .right_one {
  2146. width: 100%;
  2147. margin: 0 auto;
  2148. background: #fff;
  2149. margin-top: 10px;
  2150. min-height: 688px;
  2151. }
  2152. .student {
  2153. width: 85%;
  2154. display: flex;
  2155. flex-direction: row;
  2156. flex-wrap: wrap;
  2157. justify-content: flex-start;
  2158. margin: auto 10px;
  2159. }
  2160. .student > div {
  2161. width: 12%;
  2162. height: 35px;
  2163. background: #e3759a;
  2164. text-align: center;
  2165. border: 1px solid #e3759a;
  2166. border-radius: 5px;
  2167. color: #fff;
  2168. line-height: 35px;
  2169. margin: 10px;
  2170. }
  2171. .dialog_change >>> .el-dialog {
  2172. border-radius: 5px;
  2173. }
  2174. .dialog_change >>> .el-dialog__header {
  2175. background: #303030;
  2176. height: 36px;
  2177. line-height: 36px;
  2178. padding-left: 10px;
  2179. padding: 0px 10px 0px;
  2180. }
  2181. .dialog_change >>> .el-dialog__headerbtn {
  2182. top: 10px !important;
  2183. right: 10px !important;
  2184. }
  2185. .dialog_change >>> .el-dialog__title {
  2186. color: #fff;
  2187. font-size: 14px;
  2188. line-height: 5px;
  2189. }
  2190. .dialog_change >>> .el-dialog__body {
  2191. background: #f5f5f5;
  2192. }
  2193. .blue_box {
  2194. align-items: center;
  2195. display: flex;
  2196. flex-direction: column;
  2197. justify-content: center;
  2198. }
  2199. .blue_box,
  2200. .blue_box_one {
  2201. width: 30%;
  2202. height: 100px;
  2203. text-align: center;
  2204. color: #fff;
  2205. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  2206. border-radius: 15px;
  2207. margin: 15px 0 15px 15px;
  2208. cursor: pointer;
  2209. }
  2210. .courseItem {
  2211. width: 299px;
  2212. height: 70px;
  2213. background: #ddebf8;
  2214. border-radius: 8px;
  2215. margin-right: 16px;
  2216. margin-bottom: 16px;
  2217. display: flex;
  2218. flex-direction: row;
  2219. flex-wrap: nowrap;
  2220. align-items: flex-start;
  2221. justify-content: center;
  2222. padding-top: 20px;
  2223. cursor: pointer;
  2224. }
  2225. .jdAndTask {
  2226. display: flex;
  2227. flex-direction: column;
  2228. flex-wrap: nowrap;
  2229. justify-content: center;
  2230. align-items: flex-start;
  2231. }
  2232. .jdAndTask > div:nth-child(1) {
  2233. font-size: 18px;
  2234. font-weight: bold;
  2235. color: #000;
  2236. margin-bottom: 10px;
  2237. }
  2238. .jdAndTask > div:nth-child(2) {
  2239. font-size: 14px;
  2240. font-weight: 400;
  2241. color: #000;
  2242. max-width: 180px;
  2243. white-space: nowrap;
  2244. overflow: hidden;
  2245. text-overflow: ellipsis;
  2246. word-break: break-word;
  2247. width: 180px;
  2248. }
  2249. .blue_box_one {
  2250. width: 200px;
  2251. height: 200px;
  2252. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  2253. display: flex;
  2254. flex-direction: column;
  2255. flex-wrap: nowrap;
  2256. align-items: center;
  2257. justify-content: center;
  2258. }
  2259. .blue_box_one > div {
  2260. margin: 5px 0;
  2261. }
  2262. .blue_box_one > div:nth-child(1) {
  2263. font-size: 20px;
  2264. font-weight: bold;
  2265. }
  2266. .blue_box > div:nth-child(2) {
  2267. margin-top: 10px;
  2268. }
  2269. .blue_box_one > div:nth-child(2) {
  2270. white-space: nowrap;
  2271. text-overflow: ellipsis;
  2272. overflow: hidden;
  2273. word-break: break-all;
  2274. width: 100%;
  2275. text-align: center;
  2276. max-width: calc(100% - 85px);
  2277. margin: 0 auto;
  2278. }
  2279. .return {
  2280. background: #f0f4fa;
  2281. width: 75px;
  2282. height: 36px;
  2283. color: #000;
  2284. text-align: center;
  2285. line-height: 36px;
  2286. margin-right: 20px;
  2287. cursor: pointer;
  2288. border-radius: 5px;
  2289. position: absolute;
  2290. right: 10px;
  2291. top: 24px;
  2292. font-size: 14px;
  2293. display: flex;
  2294. flex-direction: row;
  2295. flex-wrap: nowrap;
  2296. justify-content: center;
  2297. align-items: center;
  2298. }
  2299. .return > img {
  2300. width: 100%;
  2301. height: 100%;
  2302. }
  2303. .cType {
  2304. display: flex;
  2305. flex-direction: row;
  2306. justify-content: center;
  2307. align-items: center;
  2308. margin-top: 20px;
  2309. }
  2310. .cType > div > span {
  2311. font-weight: 400;
  2312. color: #717c8d;
  2313. }
  2314. .type_children + .type_children {
  2315. margin-left: 10px;
  2316. }
  2317. .all_choose {
  2318. margin-right: 10px;
  2319. max-width: 250px;
  2320. white-space: nowrap;
  2321. overflow: hidden;
  2322. text-overflow: ellipsis;
  2323. }
  2324. .rightT {
  2325. display: flex;
  2326. flex-direction: row;
  2327. flex-wrap: nowrap;
  2328. align-items: center;
  2329. width: calc(100% - 20px);
  2330. }
  2331. .jd {
  2332. background: #f0f0f0;
  2333. margin-left: 12px;
  2334. border-radius: 4px;
  2335. font-size: 14px;
  2336. color: #3d3d3d;
  2337. width: 90px;
  2338. height: 28px;
  2339. text-align: center;
  2340. line-height: 28px;
  2341. }
  2342. .sLeft {
  2343. width: 25%;
  2344. margin-right: 10px;
  2345. background: rgb(255, 255, 255);
  2346. padding: 20px 20px 0 20px;
  2347. box-sizing: border-box;
  2348. border-radius: 12px;
  2349. }
  2350. .courseT {
  2351. border-left: 3px solid #3681fc;
  2352. padding-left: 5px;
  2353. font-weight: bold;
  2354. }
  2355. .courseTd {
  2356. padding-top: 15px;
  2357. height: 700px;
  2358. overflow: auto;
  2359. word-break: break-word;
  2360. }
  2361. .courseTd::-webkit-scrollbar {
  2362. /*滚动条整体样式*/
  2363. width: 6px;
  2364. /*高宽分别对应横竖滚动条的尺寸*/
  2365. height: 6px;
  2366. }
  2367. /*定义滚动条轨道 内阴影+圆角*/
  2368. .courseTd::-webkit-scrollbar {
  2369. border-radius: 10px;
  2370. background-color: #eee;
  2371. }
  2372. /*定义滑块 内阴影+圆角*/
  2373. .courseTd::-webkit-scrollbar-thumb {
  2374. border-radius: 10px;
  2375. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  2376. background-color: rgba(0, 0, 0, 0.1);
  2377. }
  2378. .rightTd,
  2379. .noBRight {
  2380. width: calc(100% - 25% - 10px);
  2381. background: #fff;
  2382. display: flex;
  2383. flex-direction: row;
  2384. flex-wrap: wrap;
  2385. align-content: flex-start;
  2386. align-items: center;
  2387. justify-content: flex-start;
  2388. border-radius: 12px;
  2389. padding-left: 17px;
  2390. }
  2391. .rightTd:nth-child(5n),
  2392. .noBRight:nth-child(5n) {
  2393. margin-right: 0;
  2394. }
  2395. .noBRight {
  2396. width: 100%;
  2397. }
  2398. .Tname {
  2399. word-break: break-all;
  2400. width: auto;
  2401. /* overflow: hidden;
  2402. white-space: nowrap;
  2403. text-overflow: ellipsis; */
  2404. }
  2405. /* .TnameC{
  2406. width:auto;
  2407. overflow: unset;
  2408. white-space: unset;
  2409. text-overflow: unset;
  2410. } */
  2411. .Tname > span {
  2412. cursor: pointer;
  2413. color: #1463eb;
  2414. margin-left: 10px;
  2415. }
  2416. .detail {
  2417. width: 100%;
  2418. padding: 15px;
  2419. box-sizing: border-box;
  2420. }
  2421. .statebox {
  2422. display: flex;
  2423. align-items: center;
  2424. box-sizing: border-box;
  2425. margin-left: 30px;
  2426. }
  2427. .statebox div {
  2428. padding: 10px 20px;
  2429. border-radius: 5px;
  2430. background: #fff;
  2431. display: flex;
  2432. align-items: center;
  2433. height: 46px;
  2434. line-height: 46px;
  2435. box-sizing: border-box;
  2436. }
  2437. .statebox div + div {
  2438. margin-left: 20px;
  2439. }
  2440. .statebox div span {
  2441. font-size: 16px;
  2442. display: flex;
  2443. align-items: center;
  2444. }
  2445. .statebox div span + span {
  2446. margin-left: 10px;
  2447. color: #1463eb;
  2448. }
  2449. .p_tool_box {
  2450. display: flex;
  2451. flex-wrap: wrap;
  2452. /* color: #fff; */
  2453. padding: 0 15px 10px;
  2454. align-items: center;
  2455. justify-content: space-evenly;
  2456. border-radius: 5px;
  2457. height: 200px;
  2458. overflow: auto;
  2459. max-width: 150px;
  2460. }
  2461. .p_tool {
  2462. display: flex;
  2463. margin-top: 10px;
  2464. }
  2465. .p_tool > div {
  2466. display: flex;
  2467. flex-direction: column;
  2468. align-items: center;
  2469. min-width: 60px;
  2470. }
  2471. .p_tool > div img {
  2472. width: 50px;
  2473. height: 50px;
  2474. }
  2475. .p_tool > div > div {
  2476. margin-top: 5px;
  2477. font-size: 12px;
  2478. }
  2479. .p_tool_box2 {
  2480. padding: 10px 15px;
  2481. }
  2482. .p_tool2 {
  2483. margin-right: 20px;
  2484. display: flex;
  2485. flex-direction: column;
  2486. align-items: flex-start;
  2487. /* margin-bottom: 10px; */
  2488. }
  2489. .p_tool2 > div:nth-child(1) {
  2490. margin-bottom: 10px;
  2491. }
  2492. .toolBigBox {
  2493. display: flex;
  2494. flex-direction: column;
  2495. }
  2496. .toolSta {
  2497. display: flex;
  2498. margin: 20px 0 0;
  2499. }
  2500. .toolSta > div {
  2501. display: flex;
  2502. }
  2503. .toolSta > div + div {
  2504. margin-left: 50px;
  2505. }
  2506. .toolSta > div > div:nth-child(1) {
  2507. margin: 10px 10px 0 0;
  2508. }
  2509. .blueBtn {
  2510. background: #61a0f5;
  2511. color: #fff;
  2512. display: flex;
  2513. padding: 10px 15px;
  2514. /* min-width: 150px; */
  2515. min-width: 165px;
  2516. font-size: 16px;
  2517. align-items: center;
  2518. border-radius: 5px;
  2519. }
  2520. .toolSta > div > div:nth-child(2) > div + div {
  2521. margin-top: 10px;
  2522. }
  2523. .toolSta > div > div:nth-child(2) > div > div + div {
  2524. margin: 0 20px;
  2525. }
  2526. .p_tool2 .toolbox {
  2527. display: flex;
  2528. align-items: center;
  2529. margin-top: 10px;
  2530. }
  2531. .p_tool2 .toolbox > div {
  2532. font-size: 16px;
  2533. font-weight: bold;
  2534. }
  2535. .checkBox {
  2536. display: flex;
  2537. padding: 20px 0 0 20px;
  2538. box-sizing: border-box;
  2539. width: 100%;
  2540. }
  2541. .checkBox span {
  2542. padding: 0 5px 5px;
  2543. cursor: pointer;
  2544. font-size: 18px;
  2545. font-weight: 400;
  2546. }
  2547. .checkBox span + span {
  2548. margin-left: 20px;
  2549. }
  2550. .checkBox .active {
  2551. border-bottom: 3px solid #3681fc;
  2552. color: #3681fc;
  2553. font-weight: bold;
  2554. }
  2555. .detail_box {
  2556. background-color: #f0f4fa;
  2557. padding: 15px 20px;
  2558. box-sizing: border-box;
  2559. width: 100%;
  2560. border-radius: 12px;
  2561. }
  2562. .detail_box + .detail_box {
  2563. margin-top: 20px;
  2564. }
  2565. .detail_box .title {
  2566. display: flex;
  2567. align-items: center;
  2568. }
  2569. .detail_box .title > span:nth-child(1) {
  2570. font-size: 18px;
  2571. display: flex;
  2572. align-items: center;
  2573. font-weight: 400;
  2574. color: #0e1e33;
  2575. }
  2576. .detail_box .box {
  2577. margin-top: 20px;
  2578. border-radius: 5px;
  2579. /* width: 100%; */
  2580. box-sizing: border-box;
  2581. overflow: auto;
  2582. }
  2583. .progress {
  2584. display: -webkit-box;
  2585. display: -ms-flexbox;
  2586. width: 100%;
  2587. overflow: auto;
  2588. }
  2589. .chapter {
  2590. margin-right: 30px;
  2591. min-width: 180px;
  2592. background-color: #fff;
  2593. border-radius: 12px;
  2594. }
  2595. .chapter + .chapter {
  2596. padding-left: 10px;
  2597. border-left: 1px solid rgb(220, 220, 220);
  2598. }
  2599. .chapter .stage {
  2600. width: 100%;
  2601. color: #fff;
  2602. background: linear-gradient(90deg, #477cd7, #65b9fc);
  2603. border-radius: 5px;
  2604. height: 50px;
  2605. line-height: 50px;
  2606. font-size: 18px;
  2607. text-align: center;
  2608. min-width: 180px;
  2609. }
  2610. .chapter .task {
  2611. display: flex;
  2612. width: 100%;
  2613. min-width: 180px;
  2614. padding-top: 15px;
  2615. }
  2616. .chapter .task .taskBox {
  2617. min-width: 180px;
  2618. height: 100%;
  2619. }
  2620. .borderRight {
  2621. border-right: 1px solid #eceef7;
  2622. }
  2623. .chapter .task .taskBox + .taskBox {
  2624. margin-left: 10px;
  2625. }
  2626. .chapter .task .taskBox .taskName {
  2627. text-align: center;
  2628. margin: 10px 0 10px 10px;
  2629. display: flex;
  2630. flex-direction: row;
  2631. flex-wrap: nowrap;
  2632. align-items: center;
  2633. min-width: 180px;
  2634. width: 100%;
  2635. }
  2636. /* .toolIcon::before {
  2637. content: "";
  2638. width: 26px;
  2639. height: 26px;
  2640. display: inline-block;
  2641. background-image: url(../assets/icon/toolion.png);
  2642. background-size: 100% 100%;
  2643. }
  2644. .toolIcon::before {
  2645. content: "";
  2646. width: 26px;
  2647. height: 26px;
  2648. display: inline-block;
  2649. background-image: url(../assets/icon/toolion.png);
  2650. background-size: 100% 100%;
  2651. }
  2652. .taskIcon::before {
  2653. content: "";
  2654. width: 26px;
  2655. height: 26px;
  2656. display: inline-block;
  2657. background-image: url(../assets/icon/task.png);
  2658. background-size: 100% 100%;
  2659. }
  2660. .finishIcon::before {
  2661. content: "";
  2662. width: 26px;
  2663. height: 26px;
  2664. display: inline-block;
  2665. background-image: url(../assets/icon/finish.png);
  2666. background-size: 100% 100%;
  2667. } */
  2668. .learningIcon {
  2669. color: #fe9999;
  2670. }
  2671. /* .learningIcon::before {
  2672. content: "";
  2673. width: 22px;
  2674. height: 22px;
  2675. display: inline-block;
  2676. background-image: url(../assets/icon/learning.png);
  2677. background-size: 100% 100%;
  2678. }
  2679. .frequencyIcon::before {
  2680. content: "";
  2681. width: 26px;
  2682. height: 26px;
  2683. display: inline-block;
  2684. background-image: url(../assets/icon/frequency.png);
  2685. background-size: 100% 100%;
  2686. }
  2687. .timeIcon::before {
  2688. content: "";
  2689. width: 26px;
  2690. height: 26px;
  2691. display: inline-block;
  2692. background-image: url(../assets/icon/time.png);
  2693. background-size: 100% 100%;
  2694. } */
  2695. .chapter_time_box {
  2696. border-left: 5px solid #f0f0f0;
  2697. padding: 0 30px;
  2698. box-sizing: border-box;
  2699. margin-top: 35px;
  2700. }
  2701. .c_box {
  2702. padding-top: 40px;
  2703. position: relative;
  2704. margin-top: 45px;
  2705. }
  2706. .c_box .stage_box {
  2707. display: flex;
  2708. align-items: center;
  2709. position: absolute;
  2710. top: -20px;
  2711. left: -45px;
  2712. }
  2713. .c_box .stage_box .yuan {
  2714. width: 25px;
  2715. height: 25px;
  2716. background: rgb(244, 244, 244);
  2717. border-radius: 25px;
  2718. display: flex;
  2719. align-items: center;
  2720. justify-content: center;
  2721. margin-right: 10px;
  2722. }
  2723. .bgCss::before {
  2724. background: #ccc !important;
  2725. }
  2726. .c_box .stage_box .yuan::before {
  2727. content: "";
  2728. width: 15px;
  2729. height: 15px;
  2730. background: rgb(59, 149, 238);
  2731. border-radius: 25px;
  2732. }
  2733. .c_box .stage_box .stage {
  2734. background: linear-gradient(90deg, #478bff, #65b9fc);
  2735. border-radius: 5px;
  2736. height: 50px;
  2737. line-height: 50px;
  2738. font-size: 18px;
  2739. color: #fff;
  2740. width: fit-content;
  2741. padding: 0 20px;
  2742. }
  2743. .s_up {
  2744. cursor: pointer;
  2745. transition: all 0.5s;
  2746. }
  2747. .s_up img {
  2748. width: 35px;
  2749. }
  2750. .s_up2 {
  2751. transform: rotate(90deg);
  2752. }
  2753. .lineBox {
  2754. width: 5px;
  2755. height: 20px;
  2756. background-image: linear-gradient(180deg, #3c65ba, #a1c6ec);
  2757. margin-right: 5px;
  2758. }
  2759. .disCss {
  2760. display: flex;
  2761. flex-direction: row;
  2762. flex-wrap: nowrap;
  2763. align-items: center;
  2764. }
  2765. .disCss > div {
  2766. margin: 10px 10px 0 0;
  2767. }
  2768. .titleCss {
  2769. max-width: 100px;
  2770. white-space: nowrap;
  2771. overflow: hidden;
  2772. text-overflow: ellipsis;
  2773. word-break: break-word;
  2774. margin-left: 10px;
  2775. font-size: 16px;
  2776. font-weight: bold;
  2777. color: #0e1e33;
  2778. }
  2779. .navIndex {
  2780. font-weight: bold;
  2781. color: #0e1e33;
  2782. font-size: 14px;
  2783. }
  2784. .stageCss {
  2785. cursor: pointer;
  2786. display: flex;
  2787. flex-direction: row;
  2788. flex-wrap: nowrap;
  2789. justify-content: center;
  2790. align-items: center;
  2791. border-bottom: 1px solid #e7ebf1;
  2792. }
  2793. .disabled {
  2794. background: rgba(210, 210, 210, 1);
  2795. }
  2796. .teaClass {
  2797. display: flex;
  2798. flex-direction: row;
  2799. flex-wrap: nowrap;
  2800. align-items: center;
  2801. }
  2802. .teaClass > div:nth-child(1) {
  2803. min-width: 90px;
  2804. }
  2805. .diy_sk >>> .el-dialog {
  2806. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  2807. border-radius: 18px 18px 18px 18px;
  2808. }
  2809. .diy_sk >>> .el-dialog__title {
  2810. font-size: 16px;
  2811. font-weight: bold;
  2812. color: #0e1e33;
  2813. }
  2814. .diy_sk >>> .el-dialog__body {
  2815. padding: 0 20px 15px 20px;
  2816. }
  2817. .classBox {
  2818. display: flex;
  2819. flex-direction: row;
  2820. flex-wrap: wrap;
  2821. justify-content: flex-start;
  2822. align-items: flex-start;
  2823. min-height: 300px;
  2824. max-height: 500px;
  2825. overflow: auto;
  2826. align-content: flex-start;
  2827. margin-bottom: 15px;
  2828. }
  2829. .classBox > div {
  2830. width: 106px;
  2831. height: 32px;
  2832. background: #3681fc;
  2833. border-radius: 4px;
  2834. font-weight: 400;
  2835. color: #fff;
  2836. font-size: 14px;
  2837. text-align: center;
  2838. line-height: 32px;
  2839. margin: 0 8px 8px 0;
  2840. cursor: pointer;
  2841. }
  2842. .cancelDiy {
  2843. width: 102px;
  2844. height: 36px;
  2845. background: #e7ebf1;
  2846. border-radius: 4px;
  2847. font-size: 14px;
  2848. font-weight: 400;
  2849. color: #717c8d;
  2850. text-align: center;
  2851. line-height: 32px;
  2852. margin: 0 auto;
  2853. cursor: pointer;
  2854. }
  2855. </style>