courseDetail.vue 111 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653
  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 && screenType != 5"
  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" v-if="courseDetail.state!=7">{{ chapInfo.length }}阶段</div>
  51. <div class="jd" v-if="courseDetail.state!=7">{{ 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. ><span style="margin: 0 5px; font-weight: 400; color: #b2b2b2" v-else-if="TnameCheck && Tname.length > 6">收起</span>
  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" v-if="screenType != 5">
  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 && courseDetail.state!=7"
  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. <div class="now_study" @click="uploadCourse" v-if="tType != 2">
  179. <div class="returnIndexImg">
  180. <img src="../assets/icon/newIcon/uploadCourse.png" alt="" />
  181. </div>
  182. <div>导出文件</div>
  183. </div> -->
  184. <!-- <div
  185. class="now_group"
  186. v-if="groupInfo && courseDetail.state == 1"
  187. >
  188. <span>所在分组:</span>{{ groupInfo.name }}
  189. </div> -->
  190. </div>
  191. <div
  192. v-if="tType != 2 && (classList.length || courseDetail.userid == userid)"
  193. class="goToStudy"
  194. @click="goToStudyOrDia(classList)"
  195. >
  196. <div class="returnIndexImg">
  197. <img src="../assets/icon/newIcon/people.png" alt="" />
  198. </div>
  199. <div>以班级授课</div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="student_body">
  205. <div class="sLeft" v-if="courseDetail.brief">
  206. <div class="courseT">
  207. <span>课程详情</span>
  208. <div class="r_pub_button_op" v-if="(courseDetail.state == 6 || courseDetail.state == 5) && courseDetail.userid == userid" @click="aiChatContent">优化</div>
  209. </div>
  210. <div v-loading="elLoading" element-loading-text="小可正在努力生成中,请稍等..." ref="chatDialog" class="courseTd vditor-reset" v-html="brief"></div>
  211. </div>
  212. <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'">
  213. <div v-if="(tType == 1 || tType == 4) && courseDetail.state !=7" class="checkBox">
  214. <span :class="{ active: type == 2 }" @click="type = 2"
  215. >阶段选择
  216. <div v-show="false">
  217. {{
  218. courseDetail.state == 1
  219. ? "阶段模式"
  220. : courseDetail.state == 2
  221. ? "任务模式"
  222. : courseDetail.state == 3
  223. ? "极简模式"
  224. : courseDetail.state == 4 || courseDetail.state == 5
  225. ? "AI模式"
  226. : "上课模式"
  227. }}
  228. </div></span
  229. >
  230. <span :class="{ active: type == 1 }" @click="getCTwo"
  231. >课程分析</span
  232. >
  233. <span :class="{ active: type == 3 }" @click="getCThree"
  234. >课程评价</span
  235. >
  236. </div>
  237. <div
  238. v-if="((tType == 1 || tType == 4) && type == 2) || tType == 2"
  239. :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
  240. style="width: 100%; padding-top: 20px"
  241. >
  242. <div
  243. class="courseItem"
  244. v-for="(item, index) in chapInfo"
  245. :key="index"
  246. v-if="courseDetail.state!=7"
  247. @click="goToStudyRate(index)"
  248. :class="{
  249. disabled: isFollow == 2 && tType == 2 && followC != index,
  250. }"
  251. >
  252. <div class="jdAndTask">
  253. <div>第{{ index + 1 }}阶段</div>
  254. <div
  255. v-if="courseDetail.state == 2 || courseDetail.state == 3 || courseDetail.state == 4 || courseDetail.state == 5 || courseDetail.state == 6"
  256. >
  257. 任务查看
  258. </div>
  259. <div :title="item.dyName">
  260. {{ item.dyName }}
  261. </div>
  262. </div>
  263. <div style="font-size: 14px; font-weight: 400; color: 3681FC">
  264. {{ item.chapterInfo[0].taskJson.length }}个任务
  265. </div>
  266. </div>
  267. <div
  268. class="courseItem"
  269. v-if="courseDetail.state==7"
  270. @click="goToStudyRate('')"
  271. >
  272. <div class="jdAndTask">
  273. <div>进入课程</div>
  274. <div>点击进入课程</div>
  275. </div>
  276. <div style="font-size: 14px; font-weight: 400; color: 3681FC;opacity: 0;">
  277. 0个任务
  278. </div>
  279. </div>
  280. <!-- <div
  281. class="blue_box_one"
  282. v-for="(item, index) in chapInfo"
  283. :key="index"
  284. @click="addUserRate(index)"
  285. :class="{
  286. disabled: isFollow == 2 && tType == 2 && followC != index,
  287. }"
  288. >
  289. <div v-if="courseDetail.state == 1">第{{ index + 1 }}阶段</div>
  290. <div v-if="courseDetail.state == 2 || courseDetail.state == 3">
  291. 任务查看
  292. </div>
  293. <div :title="item.dyName">{{ item.dyName }}</div>
  294. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  295. </div> -->
  296. </div>
  297. <div
  298. v-if="
  299. (tType == 1 || tType == 4) &&
  300. Object.keys(chaptersJson).length &&
  301. type == 1
  302. "
  303. class="detail"
  304. >
  305. <div class="detail_box">
  306. <div class="title">
  307. <span class="toolIcon">工具分析</span>
  308. <div class="statebox">
  309. <div>
  310. <span class="taskIcon">全部阶段:</span
  311. ><span>{{ chaptersJson.state.stage }}</span>
  312. </div>
  313. <div>
  314. <span class="finishIcon">已进行:</span
  315. ><span>{{ chaptersJson.state.finish }}</span>
  316. </div>
  317. <div>
  318. <span class="learningIcon">未进行:</span
  319. ><span style="color: #fe9999">{{
  320. chaptersJson.state.learing
  321. }}</span>
  322. </div>
  323. </div>
  324. </div>
  325. <div class="box" v-if="chaptersJson.tool.length">
  326. <div class="progress">
  327. <div
  328. v-for="(item, index) in chaptersJson.tool"
  329. :key="index"
  330. class="chapter"
  331. >
  332. <div class="stageCss" @click="addUserRate(index)">
  333. <div
  334. style="
  335. width: 95%;
  336. height: 60px;
  337. display: flex;
  338. justify-content: space-between;
  339. flex-direction: row;
  340. flex-wrap: nowrap;
  341. align-items: center;
  342. "
  343. >
  344. <el-tooltip
  345. class="item"
  346. effect="light"
  347. :content="item.name"
  348. placement="top"
  349. >
  350. <div
  351. class="titleCss"
  352. style="width: 80%; max-width: unset"
  353. >
  354. 第{{ index + 1 }}阶段 {{ item.name }}
  355. </div>
  356. </el-tooltip>
  357. <!-- <div
  358. style="
  359. font-size: 14px;
  360. font-weight: 400;
  361. color: #3681fc;
  362. min-width: 30px;
  363. "
  364. >
  365. 查看
  366. </div> -->
  367. </div>
  368. </div>
  369. <!-- {{ chaptersJson.chapterState[index].isFinsh ? '已完成' : '进行中' }} -->
  370. <div class="task">
  371. <div
  372. v-for="(item2, index2) in item.array"
  373. :key="index + '-' + index2"
  374. class="taskBox"
  375. :class="item.array.length > 1 ? 'borderRight' : ''"
  376. >
  377. <div class="taskName">
  378. <div class="navIndex">任务{{ index2 + 1 }}:</div>
  379. <div>
  380. <el-tooltip
  381. class="item"
  382. effect="light"
  383. :content="item2.name"
  384. placement="top"
  385. >
  386. <div
  387. class="titleCss"
  388. style="
  389. font-size: 14px;
  390. font-weight: 400;
  391. color: #717c8d;
  392. "
  393. >
  394. {{ item2.name }}
  395. </div>
  396. </el-tooltip>
  397. </div>
  398. </div>
  399. <div class="p_tool_box">
  400. <span
  401. v-for="(item3, index3) in item2.array"
  402. :key="index + '-' + index2 + '-' + index3"
  403. class="p_tool"
  404. >
  405. <div v-if="item3.tool == 1">
  406. <img
  407. src="../assets/icon/secondToolList/whiteBoard.png"
  408. alt
  409. />
  410. <div>电子白板</div>
  411. </div>
  412. <div v-if="item3.tool == 3">
  413. <img
  414. src="../assets/icon/secondToolList/mindMapping.png"
  415. alt
  416. />
  417. <div>思维导图</div>
  418. </div>
  419. <div v-if="item3.tool == 6">
  420. <img
  421. src="../assets/icon/secondToolList/doc.png"
  422. alt
  423. />
  424. <div>协同文档</div>
  425. </div>
  426. <div v-if="item3.tool == 7">
  427. <img
  428. src="../assets/icon/secondToolList/mindNetwork.png"
  429. alt
  430. />
  431. <div>思维网格</div>
  432. </div>
  433. <div v-if="item3.tool == 8">
  434. <img
  435. src="../assets/icon/secondToolList/library.png"
  436. alt
  437. />
  438. <div>素材库</div>
  439. </div>
  440. <div v-if="item3.tool == 17">
  441. <img
  442. src="../assets/icon/secondToolList/library.png"
  443. alt
  444. />
  445. <div>学习资料</div>
  446. </div>
  447. <div v-if="item3.tool == 2">
  448. <img
  449. src="../assets/icon/secondToolList/note.png"
  450. alt
  451. />
  452. <div>便签</div>
  453. </div>
  454. <div v-if="item3.tool == 4">
  455. <img
  456. src="../assets/icon/thirdToolList/ask.png"
  457. alt
  458. />
  459. <div>问卷调查</div>
  460. </div>
  461. <div v-if="item3.tool == 45">
  462. <img
  463. src="../assets/icon/thirdToolList/choose.png"
  464. alt
  465. />
  466. <div>选择题</div>
  467. </div>
  468. <!-- <div v-if="item3.tool == 5">
  469. <img
  470. src="../assets/icon/thirdToolList/score.png"
  471. alt
  472. />
  473. <div >量规评分</div>
  474. </div> -->
  475. <div v-if="item3.tool == 10">
  476. <img
  477. src="../assets/icon/thirdToolList/time.png"
  478. alt
  479. />
  480. <div>倒计时</div>
  481. </div>
  482. <div v-if="item3.tool == 15">
  483. <img
  484. src="../assets/icon/thirdToolList/answer.png"
  485. alt
  486. />
  487. <div>问答</div>
  488. </div>
  489. <div v-if="item3.tool == 26">
  490. <img
  491. src="../assets/icon/thirdToolList/courseDesign.png"
  492. alt
  493. />
  494. <div>课程设计</div>
  495. </div>
  496. <div v-if="item3.tool == 18">
  497. <img
  498. src="../assets/icon/thirdToolList/trainPlatform.png"
  499. alt
  500. />
  501. <div>训练服务器</div>
  502. </div>
  503. <div v-if="item3.tool == 16">
  504. <img
  505. src="../assets/icon/thirdToolList/work.png"
  506. alt
  507. />
  508. <div>作业提交</div>
  509. </div>
  510. <div v-if="item3.tool == 21">
  511. <img
  512. src="../assets/icon/fourthToolList/program.png"
  513. alt
  514. />
  515. <div>AIoT Blockly</div>
  516. </div>
  517. <div v-if="item3.tool == 22">
  518. <img
  519. src="../assets/icon/fourthToolList/program.png"
  520. alt
  521. />
  522. <div>AI体验</div>
  523. </div>
  524. <div v-if="item3.tool == 23">
  525. <img
  526. src="../assets/icon/fourthToolList/program.png"
  527. alt
  528. />
  529. <div>AI Python</div>
  530. </div>
  531. <div v-if="item3.tool == 24">
  532. <img
  533. src="../assets/icon/fourthToolList/AIprogram.png"
  534. alt
  535. />
  536. <div>AI Blockly</div>
  537. </div>
  538. <div v-if="item3.tool == 25">
  539. <img
  540. src="../assets/icon/thirdToolList/evalua.png"
  541. alt
  542. />
  543. <div>目标管理</div>
  544. </div>
  545. <div v-if="item3.tool == 31">
  546. <img
  547. src="../assets/icon/secondToolList/networkPanel.png"
  548. alt
  549. />
  550. <div>数学画板</div>
  551. </div>
  552. <div v-if="item3.tool == 28">
  553. <img
  554. src="../assets/icon/secondToolList/translation.png"
  555. alt
  556. />
  557. <div>翻译</div>
  558. </div>
  559. <div v-if="item3.tool == 37">
  560. <img
  561. src="../assets/icon/secondToolList/mohe.png"
  562. alt
  563. />
  564. <div>魔盒识字</div>
  565. </div>
  566. <div v-if="item3.tool == 38">
  567. <img
  568. src="../assets/icon/secondToolList/24game.png"
  569. alt
  570. />
  571. <div>24点</div>
  572. </div>
  573. <div v-if="item3.tool == 39">
  574. <img
  575. src="../assets/icon/secondToolList/GeoGebra.png"
  576. alt
  577. />
  578. <div>GeoGebra</div>
  579. </div>
  580. <div v-if="item3.tool == 32">
  581. <img
  582. src="../assets/icon/thirdToolList/code.png"
  583. alt
  584. />
  585. <div>源码编辑</div>
  586. </div>
  587. <div v-if="item3.tool == 40">
  588. <img
  589. src="../assets/icon/secondToolList/eval.png"
  590. alt
  591. />
  592. <div>学生评价</div>
  593. </div>
  594. <div v-if="item3.tool == 41">
  595. <img
  596. src="../assets/icon/thirdToolList/select.png"
  597. alt
  598. />
  599. <div>选择匹配</div>
  600. </div>
  601. <div v-if="item3.tool == 44">
  602. <img
  603. src="../assets/icon/thirdToolList/hanClass.png"
  604. alt
  605. />
  606. <div>汉字宫</div>
  607. </div>
  608. <div v-if="item3.tool == 47">
  609. <img
  610. src="../assets/icon/fourthToolList/conSentences.png"
  611. alt
  612. />
  613. <div>排序</div>
  614. </div>
  615. <div v-if="item3.tool == 48">
  616. <img
  617. src="../assets/icon/fourthToolList/table.png"
  618. alt
  619. />
  620. <div>表格</div>
  621. </div>
  622. <div v-if="item3.tool == 49">
  623. <img
  624. src="../assets/icon/fourthToolList/group.png"
  625. alt
  626. />
  627. <div>学生分组</div>
  628. </div>
  629. <div v-if="item3.tool == 50">
  630. <img
  631. src="../assets/icon/thirdToolList/plwork.png"
  632. alt
  633. />
  634. <div>批量上传</div>
  635. </div>
  636. <div v-if="item3.tool == 57">
  637. <img
  638. src="../assets/icon/fourthToolList/cocopi.png"
  639. alt
  640. />
  641. <div>CocoPi</div>
  642. </div>
  643. <div v-if="item3.tool == 58">
  644. <img
  645. src="../assets/icon/fourthToolList/car.png"
  646. alt
  647. />
  648. <div>模拟驾驶</div>
  649. </div>
  650. <div v-if="item3.tool == 59">
  651. <img
  652. src="../assets/icon/fourthToolList/lineSearch.png"
  653. alt
  654. />
  655. <div>路径搜索</div>
  656. </div>
  657. <div v-if="item3.tool == 60">
  658. <img
  659. src="../assets/icon/fourthToolList/deepLearning.png"
  660. alt
  661. />
  662. <div>深度学习</div>
  663. </div>
  664. <div v-if="item3.tool == 61">
  665. <img
  666. src="../assets/icon/fourthToolList/allHistory.png"
  667. alt
  668. />
  669. <div>深度学习</div>
  670. </div>
  671. <div v-if="item3.tool == 62">
  672. <img
  673. src="../assets/icon/fourthToolList/interVideo.png"
  674. alt
  675. />
  676. <div>交互视频</div>
  677. </div>
  678. <div v-if="item3.tool == 63">
  679. <img
  680. src="../assets/icon/fourthToolList/Wood.png"
  681. alt
  682. />
  683. <div>海龟编程</div>
  684. </div>
  685. <div v-if="item3.tool == 65">
  686. <img
  687. src="../assets/icon/firstToolList/pickPeople.png"
  688. alt
  689. />
  690. <div>挑人</div>
  691. </div>
  692. <div v-if="item3.tool == 66">
  693. <img
  694. src="../assets/icon/secondToolList/formulaEdi.png"
  695. alt
  696. />
  697. <div>公式编辑</div>
  698. </div>
  699. <div v-if="item3.tool == 67">
  700. <img
  701. src="../assets/icon/secondToolList/molStr.png"
  702. alt
  703. />
  704. <div>分子结构</div>
  705. </div>
  706. <div v-if="item3.tool == 68">
  707. <img
  708. src="../assets/icon/secondToolList/timeAxis.png"
  709. alt
  710. />
  711. <div>时间轴</div>
  712. </div>
  713. <div v-if="item3.tool == 69">
  714. <img
  715. src="../assets/icon/secondToolList/english.png"
  716. alt
  717. />
  718. <div>英语写作</div>
  719. </div>
  720. <div v-if="item3.tool == 70">
  721. <img
  722. src="../assets/icon/thirdToolList/englishVoice.png"
  723. alt
  724. />
  725. <div>英语口语</div>
  726. </div>
  727. <div v-if="item3.tool == 71">
  728. <img
  729. src="../assets/icon/fourthToolList/chatgpt.png"
  730. alt
  731. />
  732. <div>AI智能体</div>
  733. </div>
  734. <div v-if="item3.tool == 72">
  735. <img
  736. src="../assets/icon/firstToolList/appStore.png"
  737. alt
  738. />
  739. <div>应用中心</div>
  740. </div>
  741. <div v-if="item3.tool == undefined">
  742. <img
  743. src="../assets/icon/empytool.png"
  744. alt
  745. style="width: 64px; height: 75px"
  746. />
  747. </div>
  748. </span>
  749. </div>
  750. </div>
  751. </div>
  752. </div>
  753. </div>
  754. </div>
  755. </div>
  756. <div
  757. class="detail_box"
  758. v-if="Object.keys(chaptersJson.time).length"
  759. >
  760. <div class="title">
  761. <span class="frequencyIcon">活跃频率</span>
  762. </div>
  763. <div class="box">
  764. <div>
  765. <Heatmap
  766. :Josn="chaptersJson.time"
  767. :num="chaptersJson.studentCount"
  768. ></Heatmap>
  769. </div>
  770. </div>
  771. </div>
  772. <div class="detail_box">
  773. <div class="title"><span class="timeIcon">实施时间</span></div>
  774. <div class="box">
  775. <div
  776. style="
  777. font-size: 22px;
  778. margin: 15px 0 45px;
  779. font-weight: 700;
  780. "
  781. >
  782. {{ courseDetail.title }}
  783. </div>
  784. <div class="chapter_time_box" style="margin-left: 170px">
  785. <div
  786. v-for="(item, index) in chaptersJson.work"
  787. :key="index"
  788. class="c_box"
  789. >
  790. <div class="stage_box" style="left: -195px">
  791. <div
  792. v-if="item.time"
  793. style="
  794. min-width: 150px;
  795. position: relative;
  796. left: -5px;
  797. "
  798. >
  799. {{ item.time }}
  800. </div>
  801. <div
  802. class="yuan"
  803. :class="
  804. (item.chapter.length == 1 ||
  805. item.chapter.length > 1) &&
  806. (item.chapter[0].task.length == 1 ||
  807. item.chapter[0].task.length > 1)
  808. "
  809. ></div>
  810. <div
  811. class="stage"
  812. :style="{
  813. background:
  814. (item.chapter.length == 1 ||
  815. item.chapter.length > 1) &&
  816. (item.chapter[0].task.length == 1 ||
  817. item.chapter[0].task.length > 1) ,
  818. }"
  819. >
  820. 第{{ index + 1 }}阶段 {{ item.name }}
  821. </div>
  822. <div
  823. class="s_up"
  824. :style="{
  825. display:
  826. (item.chapter.length == 1 ||
  827. item.chapter.length > 1) &&
  828. (item.chapter[0].task.length == 1 ||
  829. item.chapter[0].task.length > 1) ,
  830. }"
  831. :class="{ s_up2: !item.is }"
  832. @click="item.is = !item.is"
  833. >
  834. <img src="../assets/icon/up.png" alt="" />
  835. </div>
  836. </div>
  837. <div v-show="item.is">
  838. <div
  839. v-for="(item2, index2) in item.chapter"
  840. :key="index + '-' + index2"
  841. >
  842. <div
  843. style="
  844. display: flex;
  845. flex-direction: row;
  846. flex-wrap: nowrap;
  847. align-items: center;
  848. "
  849. v-if="
  850. item2.task[0].tool != undefined && item2.isWork
  851. "
  852. >
  853. <div
  854. style="
  855. width: 13px;
  856. height: 13px;
  857. background: #5a82cb 100%;
  858. border-radius: 50%;
  859. margin-right: 10px;
  860. "
  861. ></div>
  862. <div style="font-size: 20px; font-weight: bold">
  863. 任务{{ index2 + 1 }}:{{ item2.name }}
  864. </div>
  865. </div>
  866. <div class="p_tool_box2">
  867. <span
  868. v-for="(item3, index3) in item2.task"
  869. :key="index + '-' + index2 + '-' + index3"
  870. class="p_tool2"
  871. >
  872. <div
  873. class="toolBigBox"
  874. style="
  875. display: flex;
  876. flex-direction: row;
  877. flex-wrap: nowrap;
  878. align-items: center;
  879. "
  880. v-if="item3.works.length"
  881. >
  882. <div
  883. style="
  884. display: flex;
  885. flex-direction: row;
  886. flex-wrap: nowrap;
  887. align-items: flex-end;
  888. min-width: 140px;
  889. "
  890. >
  891. <div class="lineBox"></div>
  892. <div class="toolbox">
  893. <div
  894. style="font-size: 16px; font-weight: bold"
  895. >
  896. 步骤{{ index3 + 1 }}:
  897. </div>
  898. <div v-if="item3.tool == 1">电子白板</div>
  899. <div v-if="item3.tool == 3">思维导图</div>
  900. <div v-if="item3.tool == 6">协同文档</div>
  901. <div v-if="item3.tool == 7">思维网格</div>
  902. <div v-if="item3.tool == 8">素材库</div>
  903. <div v-if="item3.tool == 17">学习资料</div>
  904. <div v-if="item3.tool == 2">便签</div>
  905. <div v-if="item3.tool == 52">文档</div>
  906. <div v-if="item3.tool == 72">AI应用</div>
  907. <div v-if="item3.tool == 4">问卷调查</div>
  908. <div v-if="item3.tool == 45">选择题</div>
  909. <div v-if="item3.tool == 10">倒计时</div>
  910. <div v-if="item3.tool == 15">问答</div>
  911. <div v-if="item3.tool == 26">课程设计</div>
  912. <div v-if="item3.tool == 18">
  913. 训练服务器
  914. </div>
  915. <div v-if="item3.tool == 16">作业提交</div>
  916. <div v-if="item3.tool == 21">
  917. AIoT Blockly
  918. </div>
  919. <div v-if="item3.tool == 22">AI体验</div>
  920. <div v-if="item3.tool == 23">AI Python</div>
  921. <div v-if="item3.tool == 24">
  922. AI Blockly
  923. </div>
  924. <div v-if="item3.tool == 25">目标管理</div>
  925. <div v-if="item3.tool == 31">数学画板</div>
  926. <div v-if="item3.tool == 28">翻译</div>
  927. <div v-if="item3.tool == 37">魔盒识字</div>
  928. <div v-if="item3.tool == 38">24点</div>
  929. <div v-if="item3.tool == 39">GeoGebra</div>
  930. <div v-if="item3.tool == 32">源码编辑</div>
  931. <div v-if="item3.tool == 40">学生评价</div>
  932. <div v-if="item3.tool == 41">选择匹配</div>
  933. <div v-if="item3.tool == 44">汉字宫</div>
  934. <div v-if="item3.tool == 47">排序</div>
  935. <div v-if="item3.tool == 48">表格</div>
  936. <div v-if="item3.tool == 49">学生分组</div>
  937. <div v-if="item3.tool == 50">批量上传</div>
  938. <div v-if="item3.tool == 57">CocoPi</div>
  939. <div v-if="item3.tool == 58">模拟驾驶</div>
  940. <div v-if="item3.tool == 59">路径搜索</div>
  941. <div v-if="item3.tool == 60">深度学习</div>
  942. <div v-if="item3.tool == 69">英语写作</div>
  943. <div v-if="item3.tool == 70">英语口语</div>
  944. </div>
  945. </div>
  946. <div
  947. v-if="item3.works.length"
  948. style="
  949. display: flex;
  950. flex-direction: row;
  951. flex-wrap: wrap;
  952. align-items: center;
  953. margin-left: 10px;
  954. "
  955. >
  956. <!-- works:[],likeCount: 0, commentCount: 0, score: 0, isScore: 0 -->
  957. <div class="disCss">
  958. <div class="blueBtn">
  959. 作业数量:{{ item3.works.length }}
  960. </div>
  961. <div
  962. v-if="chaptersJson.studentCount"
  963. class="blueBtn"
  964. >
  965. 任务完成率:{{
  966. (
  967. (item3.works.length /
  968. chaptersJson.studentCount) *
  969. 100
  970. ).toFixed(2) > 100.0
  971. ? 100 + "%"
  972. : (
  973. (item3.works.length /
  974. chaptersJson.studentCount) *
  975. 100
  976. ).toFixed(2) + "%"
  977. }}
  978. </div>
  979. <div class="blueBtn">
  980. <div>点赞:{{ item3.likeCount }}</div>
  981. <div style="margin-left: 15px">
  982. 评论:{{ item3.commentCount }}
  983. </div>
  984. </div>
  985. </div>
  986. <div v-if="item3.isScore">
  987. <div class="disCss">
  988. <div class="blueBtn">
  989. 作业评价量:{{ item3.isScore }}
  990. </div>
  991. <div class="blueBtn">
  992. 评价平均分:{{
  993. (item3.score / item3.isScore).toFixed(
  994. 2
  995. )
  996. }}分
  997. </div>
  998. </div>
  999. </div>
  1000. </div>
  1001. </div>
  1002. </span>
  1003. </div>
  1004. </div>
  1005. </div>
  1006. </div>
  1007. </div>
  1008. </div>
  1009. </div>
  1010. <!-- <div v-for="(item, index) in Object.keys(chaptersJson.time)" :key="index">
  1011. {{ '时间:' + item + '次数:' + chaptersJson.time[item] }}</div> -->
  1012. <!-- <div>实施时间:{{ chaptersJson.startTime }}</div> -->
  1013. </div>
  1014. <div
  1015. v-if="(type == 3)"
  1016. :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
  1017. style="width: 100%; padding-top: 20px"
  1018. >
  1019. <scoreZong :courseid="id" :title="courseDetail.title"></scoreZong>
  1020. </div>
  1021. </div>
  1022. </div>
  1023. <!-- <div
  1024. style="
  1025. text-align: center;
  1026. padding: 30px 0 20px 0;
  1027. box-sizing: border-box;
  1028. "
  1029. >
  1030. 此处滚动加载..
  1031. </div>-->
  1032. <el-dialog
  1033. title="阶段选择"
  1034. :visible.sync="dialogVisible"
  1035. :append-to-body="true"
  1036. width="700px"
  1037. :before-close="handleClose"
  1038. class="dialog_change"
  1039. >
  1040. <div style="font-size: 20px">请选择阶段</div>
  1041. <div
  1042. style="
  1043. padding: 20px 30px;
  1044. display: flex;
  1045. flex-direction: row;
  1046. flex-wrap: wrap;
  1047. "
  1048. >
  1049. <div
  1050. class="blue_box"
  1051. v-for="(item, index) in chapInfo"
  1052. v-if="courseDetail.state!=7"
  1053. :key="index"
  1054. @click="addUserRate(index)"
  1055. >
  1056. <div>第{{ index + 1 }}阶段</div>
  1057. <div>{{ item.dyName }}</div>
  1058. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  1059. </div>
  1060. </div>
  1061. </el-dialog>
  1062. <Group
  1063. :dialogVisibleGroup.sync="dialogVisibleGroup"
  1064. :classList="classList"
  1065. :cid="id"
  1066. :courseDetail="courseDetail"
  1067. :userid="userid"
  1068. :oid="oid"
  1069. :type="tType"
  1070. :classId="classId"
  1071. @getGroup="getGroup"
  1072. ></Group>
  1073. </div>
  1074. </div>
  1075. <el-dialog title="课程二维码" :visible.sync="dialogVisibleQR" width="400px">
  1076. <div class="qrcode" ref="qrCodeUrl"></div>
  1077. </el-dialog>
  1078. <el-dialog
  1079. title="选择授课班级"
  1080. :visible.sync="dialogVisibleSk"
  1081. width="626px"
  1082. class="diy_sk"
  1083. >
  1084. <div class="classBox">
  1085. <div @click="gotoCourse('')">全部</div>
  1086. <div
  1087. @click="gotoCourse(item.id)"
  1088. v-for="(item, index) in classList"
  1089. :key="index"
  1090. >
  1091. {{ item.name }}
  1092. </div>
  1093. </div>
  1094. <div class="cancelDiy" @click="dialogVisibleSk = false">取消</div>
  1095. </el-dialog>
  1096. <selectTeachingClassDialog :courseDetail="courseDetail" :userId="userid" ref="selectTeachingClassDialogRef" @success="selectClassSuccess" @changeClassList="changeClassList"/>
  1097. </div>
  1098. </template>
  1099. <script>
  1100. import Heatmap from "./tools/heatmap.vue";
  1101. import Group from "./group/group.vue";
  1102. import QRCode from "qrcodejs2";
  1103. import { tools } from "../common/tools";
  1104. import axios from "axios";
  1105. import JSZip from "jszip";
  1106. import FileSaver from "file-saver";
  1107. import scoreZong from './scoreZong/get.vue'
  1108. import MarkdownIt from "markdown-it";
  1109. import { v4 as uuidv4 } from "uuid";
  1110. import { myMixin } from "@/mixins/mixin.js"
  1111. var OpenCC = require("opencc-js");
  1112. let converter = OpenCC.Converter({
  1113. from:'hk',
  1114. to:'cn'
  1115. })
  1116. import selectTeachingClassDialog from "./dialog/selectTeachingClassDialog.vue";
  1117. const getFile = (url) => {
  1118. return new Promise((resolve, reject) => {
  1119. var credentials = {
  1120. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1121. secretAccessKey: "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",
  1122. }; //秘钥形式的登录上传
  1123. window.AWS.config.update(credentials);
  1124. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1125. let url2 = url;
  1126. let _url2 = "";
  1127. if (
  1128. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  1129. ) {
  1130. _url2 = url2.split(
  1131. "https://view.officeapps.live.com/op/view.aspx?src="
  1132. )[1];
  1133. } else {
  1134. _url2 = url2;
  1135. }
  1136. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  1137. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  1138. var params = {
  1139. Bucket: "ccrb",
  1140. Key: name
  1141. };
  1142. s3.getObject(params, function (err, data) {
  1143. if (err) {
  1144. console.log(err, err.stack)
  1145. resolve({ data: 1 });
  1146. }else {
  1147. resolve({ data: data.Body });
  1148. console.log(data);
  1149. } // sxuccessful response
  1150. });
  1151. // axios({
  1152. // method: "get",
  1153. // url,
  1154. // responseType: "blob",
  1155. // })
  1156. // .then((data) => {
  1157. // resolve({ data: data.data });
  1158. // })
  1159. // .catch((error) => {
  1160. // resolve({ data: 1 });
  1161. // // reject(error.toString());
  1162. // });
  1163. });
  1164. };
  1165. export default {
  1166. mixins: [ myMixin ],
  1167. components: {
  1168. Heatmap,
  1169. Group,
  1170. scoreZong,
  1171. selectTeachingClassDialog
  1172. },
  1173. data() {
  1174. return {
  1175. choose: 0,
  1176. dialogVisibleSk: false,
  1177. dialogVisible: false,
  1178. dialogVisibleGroup: false,
  1179. id: this.$route.query.courseId,
  1180. userid: this.$route.query.userid,
  1181. oid: this.$route.query.oid,
  1182. org: this.$route.query.org,
  1183. classId: this.$route.query.cid,
  1184. tType: this.$route.query.tType,
  1185. screenType: this.$route.query.screenType,
  1186. courseDetail: {},
  1187. classList: [],
  1188. aStudentName: [],
  1189. chapInfo: [],
  1190. courseType: [],
  1191. Tname: [],
  1192. TnameCheck: false,
  1193. courseTypeJson: {},
  1194. userinfo: [],
  1195. mr: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  1196. rw: 0,
  1197. chaptersJson: {},
  1198. type: 2,
  1199. inviteCode: [],
  1200. groupInfo: "",
  1201. isFollow: "",
  1202. followC: "",
  1203. dialogVisibleQR: false,
  1204. checkStage: 0,
  1205. tools: JSON.parse(converter(JSON.stringify(tools))),
  1206. brief: '',
  1207. sbrief: '',
  1208. setting: {},
  1209. elLoading: false,
  1210. eltLoading: false,
  1211. languageSetting: 0,
  1212. };
  1213. },
  1214. computed: {
  1215. MarkdownT() {
  1216. return function (c) {
  1217. let md = new MarkdownIt();
  1218. return c
  1219. ? md.render(c) : "";
  1220. };
  1221. },
  1222. },
  1223. methods: {
  1224. insertMemorandum(_html,tcid=""){//保存行为操作
  1225. //variable
  1226. //btn
  1227. let params = [{
  1228. uid:this.userid,
  1229. courseId:this.id+tcid,
  1230. content:_html
  1231. }]
  1232. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  1233. if(res.data==1){
  1234. console.log('保存操作成功')
  1235. }else{
  1236. console.log('保存操作失败')
  1237. }
  1238. }).catch(e=>{
  1239. console.log('保存操作失败')
  1240. console.log(e)
  1241. })
  1242. },
  1243. handleClose(done) {
  1244. done();
  1245. },
  1246. setQr(cid) {
  1247. this.dialogVisibleQR = true;
  1248. setTimeout(() => {
  1249. this.$refs.qrCodeUrl.innerHTML = "";
  1250. var qrcode = new QRCode(this.$refs.qrCodeUrl, {
  1251. text: "https://beta.cloud.cocorobo.cn/#/course?courseid=" + cid, // 需要转换为二维码的内容
  1252. width: 350,
  1253. height: 350,
  1254. colorDark: "#000000",
  1255. colorLight: "#ffffff",
  1256. correctLevel: QRCode.CorrectLevel.H,
  1257. });
  1258. }, 500);
  1259. },
  1260. goTo(path) {
  1261. this.$router.push(path);
  1262. },
  1263. gotoCourse(id) {
  1264. if(!id){
  1265. this.insertMemorandum(`开始为<span class='variable'>全部班级</span>授课`)
  1266. }else{
  1267. let _classData = this.classList.find(item=>item.id == id)
  1268. this.insertMemorandum(`开始为<span class='variable'>${_classData.name}</span>授课`,id)
  1269. }
  1270. this.addOp3('1', "", { courseid: this.id,classIdL: !id ? '全部' : id ,type: "course_class_open" }, "success")
  1271. if (this.courseDetail.state == 1) {
  1272. if (this.classList.length) {
  1273. this.goTo(
  1274. "/studyStudent?type=" +
  1275. this.checkStage +
  1276. "&courseId=" +
  1277. this.id +
  1278. "&userid=" +
  1279. this.userid +
  1280. "&oid=" +
  1281. this.oid +
  1282. "&org=" +
  1283. this.org +
  1284. "&cid=" +
  1285. this.classId +
  1286. "&tType=" +
  1287. this.tType +
  1288. "&screenType=" +
  1289. this.screenType +
  1290. "&tcid=" +
  1291. id
  1292. );
  1293. } else {
  1294. this.goTo(
  1295. "/studyStudent?type=" +
  1296. this.checkStage +
  1297. "&courseId=" +
  1298. this.id +
  1299. "&userid=" +
  1300. this.userid +
  1301. "&oid=" +
  1302. this.oid +
  1303. "&org=" +
  1304. this.org +
  1305. "&cid=" +
  1306. this.classId +
  1307. "&tType=" +
  1308. this.tType +
  1309. "&screenType=" +
  1310. this.screenType
  1311. );
  1312. }
  1313. } else if (this.courseDetail.state == 2 || this.courseDetail.state == 5) {
  1314. if (this.classList.length) {
  1315. this.goTo(
  1316. "/studystudentE2?type=" +
  1317. this.checkStage +
  1318. "&courseId=" +
  1319. this.id +
  1320. "&userid=" +
  1321. this.userid +
  1322. "&oid=" +
  1323. this.oid +
  1324. "&org=" +
  1325. this.org +
  1326. "&cid=" +
  1327. this.classId +
  1328. "&tType=" +
  1329. this.tType +
  1330. "&screenType=" +
  1331. this.screenType +
  1332. "&tcid=" +
  1333. id
  1334. );
  1335. } else {
  1336. this.goTo(
  1337. "/studystudentE2?type=" +
  1338. this.checkStage +
  1339. "&courseId=" +
  1340. this.id +
  1341. "&userid=" +
  1342. this.userid +
  1343. "&oid=" +
  1344. this.oid +
  1345. "&org=" +
  1346. this.org +
  1347. "&cid=" +
  1348. this.classId +
  1349. "&tType=" +
  1350. this.tType +
  1351. "&screenType=" +
  1352. this.screenType
  1353. );
  1354. }
  1355. } else if (this.courseDetail.state == 3 || this.courseDetail.state == 4) {
  1356. if (this.classList.length) {
  1357. this.goTo(
  1358. "/studystudentE3?type=" +
  1359. this.checkStage +
  1360. "&courseId=" +
  1361. this.id +
  1362. "&userid=" +
  1363. this.userid +
  1364. "&oid=" +
  1365. this.oid +
  1366. "&org=" +
  1367. this.org +
  1368. "&cid=" +
  1369. this.classId +
  1370. "&tType=" +
  1371. this.tType +
  1372. "&screenType=" +
  1373. this.screenType +
  1374. "&tcid=" +
  1375. id
  1376. );
  1377. } else {
  1378. this.goTo(
  1379. "/studystudentE3?type=" +
  1380. this.checkStage +
  1381. "&courseId=" +
  1382. this.id +
  1383. "&userid=" +
  1384. this.userid +
  1385. "&oid=" +
  1386. this.oid +
  1387. "&org=" +
  1388. this.org +
  1389. "&cid=" +
  1390. this.classId +
  1391. "&tType=" +
  1392. this.tType +
  1393. "&screenType=" +
  1394. this.screenType
  1395. );
  1396. }
  1397. } else if (this.courseDetail.state == 6) {
  1398. if (this.classList.length) {
  1399. this.goTo(
  1400. "/studySutdentClass?type=" +
  1401. this.checkStage +
  1402. "&courseId=" +
  1403. this.id +
  1404. "&userid=" +
  1405. this.userid +
  1406. "&oid=" +
  1407. this.oid +
  1408. "&org=" +
  1409. this.org +
  1410. "&cid=" +
  1411. this.classId +
  1412. "&tType=" +
  1413. this.tType +
  1414. "&screenType=" +
  1415. this.screenType +
  1416. "&tcid=" +
  1417. id
  1418. );
  1419. } else {
  1420. this.goTo(
  1421. "/studySutdentClass?type=" +
  1422. this.checkStage +
  1423. "&courseId=" +
  1424. this.id +
  1425. "&userid=" +
  1426. this.userid +
  1427. "&oid=" +
  1428. this.oid +
  1429. "&org=" +
  1430. this.org +
  1431. "&cid=" +
  1432. this.classId +
  1433. "&tType=" +
  1434. this.tType +
  1435. "&screenType=" +
  1436. this.screenType
  1437. );
  1438. }
  1439. } else if (this.courseDetail.state == 7) {
  1440. if(this.classList.length){
  1441. this.goTo(
  1442. "/pptEasyClass?type=" +
  1443. this.checkStage +
  1444. "&courseId=" +
  1445. this.id +
  1446. "&userid=" +
  1447. this.userid +
  1448. "&oid=" +
  1449. this.oid +
  1450. "&org=" +
  1451. this.org +
  1452. "&cid=" +
  1453. this.classId +
  1454. "&tType=" +
  1455. this.tType +
  1456. "&screenType=" +
  1457. this.screenType +
  1458. "&tcid=" +
  1459. id
  1460. );
  1461. }else {
  1462. this.goTo(
  1463. "/pptEasyClass?type=" +
  1464. this.checkStage +
  1465. "&courseId=" +
  1466. this.id +
  1467. "&userid=" +
  1468. this.userid +
  1469. "&oid=" +
  1470. this.oid +
  1471. "&org=" +
  1472. this.org +
  1473. "&cid=" +
  1474. this.classId +
  1475. "&tType=" +
  1476. this.tType +
  1477. "&screenType=" +
  1478. this.screenType
  1479. );
  1480. }
  1481. }
  1482. let params = [
  1483. {
  1484. courseId: this.id,
  1485. },
  1486. ];
  1487. this.ajax
  1488. .post(this.$store.state.api + "addOpenCoursenum", params)
  1489. .then((res) => {})
  1490. .catch((err) => {
  1491. console.error(err);
  1492. });
  1493. },
  1494. goToStudyOrDia(l) {
  1495. //if (l.length > 0) {
  1496. // this.dialogVisibleSk = true;
  1497. this.$refs.selectTeachingClassDialogRef.open({classList:this.classList})
  1498. this.inviteCodeFn(this.classList)
  1499. this.insertMemorandum("点击<span class='btn'>以班级授课</span>")
  1500. // } else {
  1501. // this.getCourseDetail1().then(_=>{
  1502. // if(this.classList.length<=0){
  1503. // this.$confirm("该课程尚未指定授课班级,请返回首页,使用修改功能添加授课班级。","提示",{
  1504. // confirmButtonText: '去修改',
  1505. // cancelButtonText: '取消',
  1506. // type:"error",
  1507. // }).then(() => {
  1508. // if(this.courseDetail.state == 1 || this.courseDetail.state == 2){
  1509. // window.topU.postMessage({ tools: "openNewCourseUpdate",cid:this.id }, "*");
  1510. // }else if(this.courseDetail.state == 3){
  1511. // window.topU.postMessage({ tools: "openCourseEUpdate",cid:this.id }, "*");
  1512. // }else if(this.courseDetail.state == 4 || this.courseDetail.state == 5){
  1513. // window.topU.postMessage({ tools: "openCourseAiUpdate",cid:this.id }, "*");
  1514. // }else if(this.courseDetail.state == 6){
  1515. // window.topU.postMessage({ tools: "openCourseAiUpdate2",cid:this.id }, "*");
  1516. // }else if(this.courseDetail.state == 7){
  1517. // window.topU.postMessage({ tools: "openCoursePptUpdate",cid:this.id }, "*");
  1518. // }
  1519. // })
  1520. // }else{
  1521. // this.dialogVisibleSk = true;
  1522. // }
  1523. // })
  1524. // this.addUserRate(0);
  1525. //}
  1526. },
  1527. goToStudyRate(i) {
  1528. this.checkStage = i;
  1529. if (this.tType == 2) {
  1530. this.addUserRate(i);
  1531. } else {
  1532. this.$refs.selectTeachingClassDialogRef.open({classList:this.classList})
  1533. this.inviteCodeFn(this.classList)
  1534. // if (this.classList.length > 0) {
  1535. // // this.dialogVisibleSk = true;
  1536. // this.$refs.selectTeachingClassDialogRef.open({classList:this.classList})
  1537. // } else {
  1538. // this.addUserRate(i);
  1539. // }
  1540. }
  1541. },
  1542. addUserRate(i) {
  1543. // var suid = this.userid;
  1544. // if (
  1545. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1 &&
  1546. // JSON.parse(this.courseDetail.userid) != suid
  1547. // ) {
  1548. // this.$message.error("你没有该权限");
  1549. // return;
  1550. // }
  1551. // var a =
  1552. // this.courseDetail.course_student != ""
  1553. // ? JSON.parse(this.courseDetail.course_student)
  1554. // : "";
  1555. // if (this.courseDetail.userid != suid) {
  1556. // if (this.userinfo.type == 2) {
  1557. // if (a != "") {
  1558. // if (
  1559. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
  1560. // ) {
  1561. // this.$message.error("你没有该权限");
  1562. // return;
  1563. // }
  1564. // } else {
  1565. // this.$message.error("暂无项目学员,请联系老师添加项目学员!");
  1566. // return;
  1567. // }
  1568. // }
  1569. // }
  1570. if (this.isFollow == 2 && this.tType == 2 && this.followC != i && this.courseDetail.state != 7) {
  1571. return;
  1572. }
  1573. let params = {
  1574. uid: this.userid,
  1575. cid: this.id,
  1576. };
  1577. this.ajax
  1578. .get(this.$store.state.api + "addUserR", params)
  1579. .then((res) => {
  1580. this.updateVc();
  1581. if (this.tType == 1 || this.tType == 4) {
  1582. if (this.courseDetail.state == 1) {
  1583. this.goTo(
  1584. "/studyStudent?type=" +
  1585. i +
  1586. "&courseId=" +
  1587. this.id +
  1588. "&userid=" +
  1589. this.userid +
  1590. "&oid=" +
  1591. this.oid +
  1592. "&org=" +
  1593. this.org +
  1594. "&cid=" +
  1595. this.classId +
  1596. "&tType=" +
  1597. this.tType +
  1598. "&screenType=" +
  1599. this.screenType
  1600. );
  1601. } else if (this.courseDetail.state == 2 || this.courseDetail.state == 5) {
  1602. this.goTo(
  1603. "/studystudentE2?type=" +
  1604. i +
  1605. "&courseId=" +
  1606. this.id +
  1607. "&userid=" +
  1608. this.userid +
  1609. "&oid=" +
  1610. this.oid +
  1611. "&org=" +
  1612. this.org +
  1613. "&cid=" +
  1614. this.classId +
  1615. "&tType=" +
  1616. this.tType +
  1617. "&screenType=" +
  1618. this.screenType
  1619. );
  1620. } else if (this.courseDetail.state == 3 || this.courseDetail.state == 4) {
  1621. this.goTo(
  1622. "/studystudentE3?type=" +
  1623. i +
  1624. "&courseId=" +
  1625. this.id +
  1626. "&userid=" +
  1627. this.userid +
  1628. "&oid=" +
  1629. this.oid +
  1630. "&org=" +
  1631. this.org +
  1632. "&cid=" +
  1633. this.classId +
  1634. "&tType=" +
  1635. this.tType +
  1636. "&screenType=" +
  1637. this.screenType
  1638. );
  1639. } else if (this.courseDetail.state == 6) {
  1640. this.goTo(
  1641. "/studySutdentClass?type=" +
  1642. i +
  1643. "&courseId=" +
  1644. this.id +
  1645. "&userid=" +
  1646. this.userid +
  1647. "&oid=" +
  1648. this.oid +
  1649. "&org=" +
  1650. this.org +
  1651. "&cid=" +
  1652. this.classId +
  1653. "&tType=" +
  1654. this.tType +
  1655. "&screenType=" +
  1656. this.screenType
  1657. );
  1658. }else if (this.courseDetail.state == 7) {
  1659. this.goTo(
  1660. "/pptEasyClass?type=" +
  1661. this.checkStage +
  1662. "&courseId=" +
  1663. this.id +
  1664. "&userid=" +
  1665. this.userid +
  1666. "&oid=" +
  1667. this.oid +
  1668. "&org=" +
  1669. this.org +
  1670. "&cid=" +
  1671. this.classId +
  1672. "&tType=" +
  1673. this.tType +
  1674. "&screenType=" +
  1675. this.screenType
  1676. );
  1677. // this.gotoCourse(this.classId);
  1678. }
  1679. } else if (this.tType == 2) {
  1680. // this.goTo(
  1681. // "/studyStudent?type=" +
  1682. // i +
  1683. // "&courseId=" +
  1684. // this.id +
  1685. // "&userid=" +
  1686. // this.userid +
  1687. // "&oid=" +
  1688. // this.oid +
  1689. // "&org=" +
  1690. // this.org +
  1691. // "&cid=" +
  1692. // this.classId +
  1693. // "&tType=" +
  1694. // this.tType +
  1695. // "&screenType=" +
  1696. // this.screenType
  1697. // );
  1698. if (this.courseDetail.state == 1) {
  1699. this.goTo(
  1700. "/studyStudent?type=" +
  1701. i +
  1702. "&courseId=" +
  1703. this.id +
  1704. "&userid=" +
  1705. this.userid +
  1706. "&oid=" +
  1707. this.oid +
  1708. "&org=" +
  1709. this.org +
  1710. "&cid=" +
  1711. this.classId +
  1712. "&tType=" +
  1713. this.tType +
  1714. "&screenType=" +
  1715. this.screenType
  1716. );
  1717. } else if (this.courseDetail.state == 2 || this.courseDetail.state == 5) {
  1718. this.goTo(
  1719. "/studystudentE2?type=" +
  1720. i +
  1721. "&courseId=" +
  1722. this.id +
  1723. "&userid=" +
  1724. this.userid +
  1725. "&oid=" +
  1726. this.oid +
  1727. "&org=" +
  1728. this.org +
  1729. "&cid=" +
  1730. this.classId +
  1731. "&tType=" +
  1732. this.tType +
  1733. "&screenType=" +
  1734. this.screenType
  1735. );
  1736. } else if (this.courseDetail.state == 3 || this.courseDetail.state == 4) {
  1737. this.goTo(
  1738. "/studystudentE3?type=" +
  1739. i +
  1740. "&courseId=" +
  1741. this.id +
  1742. "&userid=" +
  1743. this.userid +
  1744. "&oid=" +
  1745. this.oid +
  1746. "&org=" +
  1747. this.org +
  1748. "&cid=" +
  1749. this.classId +
  1750. "&tType=" +
  1751. this.tType +
  1752. "&screenType=" +
  1753. this.screenType
  1754. );
  1755. }else if (this.courseDetail.state == 6) {
  1756. this.goTo(
  1757. "/studySutdentClass?type=" +
  1758. i +
  1759. "&courseId=" +
  1760. this.id +
  1761. "&userid=" +
  1762. this.userid +
  1763. "&oid=" +
  1764. this.oid +
  1765. "&org=" +
  1766. this.org +
  1767. "&cid=" +
  1768. this.classId +
  1769. "&tType=" +
  1770. this.tType +
  1771. "&screenType=" +
  1772. this.screenType
  1773. );
  1774. }else if (this.courseDetail.state == 7) {
  1775. this.goTo(
  1776. "/pptEasyClass?type=" +
  1777. this.checkStage +
  1778. "&courseId=" +
  1779. this.id +
  1780. "&userid=" +
  1781. this.userid +
  1782. "&oid=" +
  1783. this.oid +
  1784. "&org=" +
  1785. this.org +
  1786. "&cid=" +
  1787. this.classId +
  1788. "&tType=" +
  1789. this.tType +
  1790. "&screenType=" +
  1791. this.screenType
  1792. );
  1793. // this.gotoCourse(this.classId);
  1794. }
  1795. // this.gotoCourse(this.classId);
  1796. } else {
  1797. this.goTo(
  1798. "/study?type=" +
  1799. i +
  1800. "&courseId=" +
  1801. this.id +
  1802. "&userid=" +
  1803. this.userid +
  1804. "&oid=" +
  1805. this.oid +
  1806. "&org=" +
  1807. this.org +
  1808. "&cid=" +
  1809. this.classId +
  1810. "&tType=" +
  1811. this.tType +
  1812. "&screenType=" +
  1813. this.screenType
  1814. );
  1815. }
  1816. })
  1817. .catch((err) => {
  1818. console.error(err);
  1819. });
  1820. },
  1821. updateVc() {
  1822. let params = {
  1823. cid: this.id,
  1824. };
  1825. this.ajax
  1826. .get(this.$store.state.api + "updateVc", params)
  1827. .then((res) => {
  1828. console.log(res.data);
  1829. })
  1830. .catch((err) => {
  1831. console.error(err);
  1832. });
  1833. },
  1834. async getCourseDetail1() {
  1835. const loading = this.$loading.service({
  1836. background: "rgba(255, 255, 255, 0.7)",
  1837. target: document.querySelector(".student_table"),
  1838. });
  1839. let params = {
  1840. courseId: this.id,
  1841. };
  1842. let res = await this.ajax.get(
  1843. this.$store.state.api + "selectCourseDetail2",
  1844. params
  1845. );
  1846. loading.close();
  1847. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1848. this.courseDetail = res.data[0][0];
  1849. if(res.data[0][0].setting){
  1850. try {
  1851. this.languageSetting = (JSON.parse(res.data[0][0].setting).languageSetting || JSON.parse(res.data[0][0].setting).languageSetting == 0) ? JSON.parse(res.data[0][0].setting).languageSetting : 0;
  1852. this.sbrief = JSON.parse(res.data[0][0].setting).sbrief ? JSON.parse(res.data[0][0].setting).sbrief : '';
  1853. this.setting = JSON.parse(res.data[0][0].setting)
  1854. }catch(error){
  1855. console.error(error)
  1856. }
  1857. }
  1858. this.brief = this.sbrief ? this.sbrief : this.MarkdownT(this.courseDetail.brief)
  1859. if(this.brief && !this.sbrief && (this.courseDetail.state == 6 || this.courseDetail.state == 5) && this.courseDetail.userid == this.userid){
  1860. this.aiChatContent()
  1861. }
  1862. this.isFollow = res.data[0][0].follow;
  1863. this.followC = res.data[0][0].followC
  1864. ? res.data[0][0].followC.split("-")[0]
  1865. : "";
  1866. this.classList = res.data[3];
  1867. let groupData = res.data[5];
  1868. var a = res.data[0];
  1869. var b = res.data[1];
  1870. var c = res.data[2];
  1871. for (var i = 0; i < b.length; i++) {
  1872. // if (!this.id) {
  1873. // this.courseType[b[i].id] = [];
  1874. // }
  1875. for (var j = 0; j < a.length; j++) {
  1876. if (b[i].id == a[j].pid) {
  1877. if (!this.courseTypeJson[b[i].name]) {
  1878. this.courseType.push(b[i].name);
  1879. this.courseTypeJson[b[i].name] = [];
  1880. }
  1881. this.courseTypeJson[b[i].name].push(a[j].name);
  1882. }
  1883. }
  1884. }
  1885. this.Tname = [];
  1886. for (var k = 0; k < c.length; k++) {
  1887. this.Tname.push(c[k].name);
  1888. }
  1889. console.log(this.courseTypeJson.length);
  1890. this.aStudentName = res.data[2];
  1891. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1892. this.rw = 0
  1893. for (var z = 0; z < this.chapInfo.length; z++) {
  1894. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1895. }
  1896. this.inviteCode = [];
  1897. for (var i = 0; i < res.data[4].length; i++) {
  1898. this.inviteCode.push({
  1899. cid: res.data[4][i].classid,
  1900. ic: res.data[4][i].code,
  1901. });
  1902. }
  1903. let _inviteCodeLength = res.data[3].reduce((pre,cur)=>{
  1904. this.inviteCode.map(i=>i.cid).includes(cur.id)?pre+=1:'';
  1905. return pre
  1906. },0)
  1907. if (_inviteCodeLength != res.data[3].length) {
  1908. let classArray = [];
  1909. let noClassArray = [];
  1910. for (var i = 0; i < res.data[3].length; i++) {
  1911. classArray.push(res.data[3][i].id);
  1912. noClassArray.push(res.data[3][i].id);
  1913. }
  1914. this.inviteCode = this.inviteCode.filter((el) => {
  1915. if (classArray.indexOf(el.cid) != -1) {
  1916. noClassArray.splice(noClassArray.indexOf(el.cid), 1);
  1917. return el;
  1918. }
  1919. });
  1920. for (var i = 0; i < noClassArray.length; i++) {
  1921. await this.getInviteCode(noClassArray[i]);
  1922. }
  1923. let a = this.inviteCode;
  1924. console.log(this.inviteCode);
  1925. this.addInviteCode();
  1926. }
  1927. this.groupInfo = "";
  1928. if (groupData.length) {
  1929. gp: for (var g = 0; g < groupData.length; g++) {
  1930. if (groupData[g].userid == this.userid) {
  1931. let gid = groupData[g].groupCid;
  1932. let groupA = JSON.parse(groupData[g].group).group;
  1933. for (var gA = 0; gA < groupA.length; gA++) {
  1934. if (groupA[gA].id == gid) {
  1935. this.groupInfo = {
  1936. name: groupA[gA].name,
  1937. };
  1938. break gp;
  1939. }
  1940. }
  1941. }
  1942. }
  1943. }
  1944. if(this.courseDetail.state == 7 && this.tType == 2){
  1945. this.goToStudyRate('')
  1946. }
  1947. // debugger
  1948. },
  1949. addInviteCode() {
  1950. let params = [
  1951. {
  1952. courseId: this.id,
  1953. inviteCode: JSON.stringify(this.inviteCode),
  1954. },
  1955. ];
  1956. this.ajax
  1957. .post(this.$store.state.api + "addInviteCode", params)
  1958. .then((res) => {})
  1959. .catch((err) => {
  1960. console.error(err);
  1961. });
  1962. },
  1963. getCTwo() {
  1964. this.type = 1;
  1965. this.getCourseDetail2();
  1966. },
  1967. getCThree(){
  1968. this.type = 3
  1969. },
  1970. getCourseDetail2() {
  1971. const loading = this.$loading.service({
  1972. background: "rgba(255, 255, 255, 0.7)",
  1973. target: document.querySelector(".student_table"),
  1974. });
  1975. let params = {
  1976. courseId: this.id,
  1977. };
  1978. this.ajax
  1979. .get(this.$store.state.api + "selectCourseDetail", params)
  1980. .then((res) => {
  1981. loading.close();
  1982. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1983. this.courseDetail = res.data[0][0];
  1984. var a = res.data[0];
  1985. var b = res.data[1];
  1986. var c = res.data[2];
  1987. var d = res.data[3];
  1988. for (var i = 0; i < b.length; i++) {
  1989. // if (!this.id) {
  1990. // this.courseType[b[i].id] = [];
  1991. // }
  1992. for (var j = 0; j < a.length; j++) {
  1993. if (b[i].id == a[j].pid) {
  1994. if (!this.courseTypeJson[b[i].name]) {
  1995. this.courseType.push(b[i].name);
  1996. this.courseTypeJson[b[i].name] = [];
  1997. }
  1998. this.courseTypeJson[b[i].name].push(a[j].name);
  1999. }
  2000. }
  2001. }
  2002. this.Tname = [];
  2003. for (var k = 0; k < c.length; k++) {
  2004. this.Tname.push(c[k].name);
  2005. }
  2006. console.log(this.courseTypeJson.length);
  2007. this.aStudentName = res.data[2];
  2008. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  2009. this.rw = 0
  2010. for (var z = 0; z < this.chapInfo.length; z++) {
  2011. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  2012. }
  2013. let _chapters = JSON.parse(a[0].chapters);
  2014. let _works = res.data[3];
  2015. let _sCont = res.data[4];
  2016. let _comment = res.data[5];
  2017. let _chaptersJson = {
  2018. chapterState: _chapters,
  2019. state: {
  2020. stage: _chapters.length,
  2021. finish: 0,
  2022. learing: 0,
  2023. },
  2024. tool: [],
  2025. chapter: [],
  2026. time: {},
  2027. startTime: _works.length ? _works[0].time : "",
  2028. work: [],
  2029. studentCount: _sCont[0].usercount,
  2030. };
  2031. let timeAarry = [];
  2032. for (var j = 0; j < _works.length; j++) {
  2033. timeAarry.push(_works[j].vtime);
  2034. }
  2035. timeAarry.forEach((item) => {
  2036. _chaptersJson.time[item] = _chaptersJson.time[item] + 1 || 1;
  2037. });
  2038. for (var i = 0; i < _chapters.length; i++) {
  2039. _chaptersJson.chapterState[i].isFinsh = false;
  2040. // _chaptersJson.tool[i] = []
  2041. _chaptersJson.tool[i] = { array: [], name: _chapters[i].dyName };
  2042. _chaptersJson.chapter[i] = [];
  2043. _chaptersJson.work[i] = {
  2044. name: _chapters[i].dyName,
  2045. chapter: [],
  2046. time: "",
  2047. };
  2048. for (var j = 0; j < _works.length; j++) {
  2049. if (i == _works[j].stage) {
  2050. _chaptersJson.chapterState[i].isFinsh = true;
  2051. _chaptersJson.work[i].time = _works[j].time;
  2052. _chaptersJson.state.finish++;
  2053. break;
  2054. }
  2055. }
  2056. let el = _chapters[i].chapterInfo[0].taskJson;
  2057. for (var z = 0; z < el.length; z++) {
  2058. // _chaptersJson.tool[i][z] = [];
  2059. _chaptersJson.tool[i].array[z] = { array: [], name: el[z].task };
  2060. _chaptersJson.chapter[i][z] = [];
  2061. _chaptersJson.work[i].chapter[z] = {
  2062. name: el[z].task,
  2063. task: [],
  2064. isWork: false,
  2065. };
  2066. if (d.length > 0) {
  2067. _chaptersJson.work[i].chapter[z].isWork = true;
  2068. }
  2069. _chaptersJson.work[i].is = false;
  2070. let tools = el[z].toolChoose;
  2071. for (var k = 0; k < tools.length; k++) {
  2072. _chaptersJson.work[i].chapter[z].task[k] = {
  2073. tool: tools[k].tool[0],
  2074. works: [],
  2075. likeCount: 0,
  2076. commentCount: 0,
  2077. score: 0,
  2078. isScore: 0,
  2079. };
  2080. for (var j = 0; j < _works.length; j++) {
  2081. if (
  2082. i == _works[j].stage &&
  2083. z == _works[j].task &&
  2084. k == _works[j].tool
  2085. ) {
  2086. _chaptersJson.work[i].chapter[z].task[k].works.push(
  2087. _works[j]
  2088. );
  2089. if (_works[j].score) {
  2090. _chaptersJson.work[i].chapter[z].task[k].score +=
  2091. JSON.parse(_works[j].score).wScore;
  2092. _chaptersJson.work[i].chapter[z].task[k].isScore++;
  2093. }
  2094. }
  2095. }
  2096. for (var j = 0; j < _comment.length; j++) {
  2097. if (
  2098. i == _comment[j].stage &&
  2099. z == _comment[j].task &&
  2100. k == _comment[j].tool
  2101. ) {
  2102. if (_comment[j].cType == 1) {
  2103. _chaptersJson.work[i].chapter[z].task[k].likeCount++;
  2104. }
  2105. if (_comment[j].cType == 2) {
  2106. _chaptersJson.work[i].chapter[z].task[k].commentCount++;
  2107. }
  2108. }
  2109. }
  2110. // if (_chaptersJson.chapter[i][z].indexOf(tools[k].tool[0]) == -1) {
  2111. // _chaptersJson.tool[i][z].push(tools[k].tool[0])
  2112. // }
  2113. _chaptersJson.chapter[i][z][k] = { tool: tools[k].tool[0] };
  2114. // _chaptersJson.tool[i][z][k] = { tool: tools[k].tool[0] };
  2115. _chaptersJson.tool[i].array[z].array[k] = {
  2116. tool: tools[k].tool[0],
  2117. };
  2118. }
  2119. }
  2120. }
  2121. _chaptersJson.state.learing =
  2122. _chaptersJson.state.stage - _chaptersJson.state.finish;
  2123. this.chaptersJson = _chaptersJson;
  2124. // debugger
  2125. })
  2126. .catch((err) => {
  2127. loading.close();
  2128. console.error(err);
  2129. });
  2130. },
  2131. getGroup() {
  2132. this.getCourseDetail1();
  2133. },
  2134. getUser() {
  2135. let params = { uid: this.userid };
  2136. this.ajax
  2137. .get(this.$store.state.api + "getUser", params)
  2138. .then((res) => {
  2139. this.userinfo = res.data[0][0];
  2140. })
  2141. .catch((err) => {
  2142. console.error(err);
  2143. });
  2144. },
  2145. // getSName() {
  2146. // let params = {
  2147. // uid: JSON.stringify(this.courseDetail.course_student),
  2148. // };
  2149. // this.ajax
  2150. // .get(this.$store.state.api + "selectSName", params)
  2151. // .then((res) => {
  2152. // this.aStudentName = res.data[0];
  2153. // })
  2154. // .catch((err) => {
  2155. // console.error(err);
  2156. // });
  2157. // },
  2158. async getInviteCode(cid) {
  2159. let code = this.randomNumber();
  2160. // let params = {
  2161. // code: code,
  2162. // oid: this.oid,
  2163. // }
  2164. // let type = 1
  2165. // for (var i = 0; i < this.inviteCode.length; i++) {
  2166. // if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  2167. // type = 2
  2168. // }
  2169. // }
  2170. // if (type == 2) {
  2171. // this.getInviteCode(cid)
  2172. // return;
  2173. // }
  2174. // const res = await this.ajax.get(this.$store.state.api + "selectInviteCode2", params)
  2175. // if (res.data.length && res.data[0].length && res.data[0][0].courseId != this.cid) {
  2176. // this.getInviteCode(cid)
  2177. // return;
  2178. // }
  2179. let array = [];
  2180. for (var i = 0; i < this.inviteCode.length; i++) {
  2181. array.push(this.inviteCode[i].cid);
  2182. }
  2183. if (array.indexOf(cid) != -1) {
  2184. this.inviteCode[array.indexOf(cid)].ic = code;
  2185. } else {
  2186. this.inviteCode.push({ cid: cid, ic: code });
  2187. }
  2188. },
  2189. randomNumber() {
  2190. // 随机生成两位数
  2191. // let num = Math.floor(Math.random() * 900) + 100;
  2192. // 生成 0 到 99 之间的随机整数
  2193. const randomNumber = Math.floor(Math.random() * 100);
  2194. // 如果随机数小于 10,补上前导零
  2195. const num =
  2196. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  2197. // 随机生成两个大写字母
  2198. let letters = "";
  2199. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  2200. for (let i = 0; i < 3; i++) {
  2201. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  2202. }
  2203. // 随机生成两位数字和字母的组合
  2204. let mix = "";
  2205. let chars =
  2206. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  2207. for (let i = 0; i < 3; i++) {
  2208. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  2209. mix += char;
  2210. }
  2211. // 随机选择一种类型
  2212. let type = Math.floor(Math.random() * 3);
  2213. return num;
  2214. // 根据类型输出结果
  2215. switch (type) {
  2216. case 0:
  2217. console.log(num); // 输出两位数
  2218. return num;
  2219. case 1:
  2220. console.log(letters); // 输出两个大写字母
  2221. return letters;
  2222. case 2:
  2223. console.log(mix); // 输出两位数字和字母的组合
  2224. return mix;
  2225. }
  2226. },
  2227. exportCourse() {
  2228. let _title = `<div style="font-size:50px;font-weight:bold;">${this.courseDetail.title}</div>`;
  2229. let _type = "";
  2230. if (this.courseType.length) {
  2231. _type = `<div style="font-size:30px;margin-top:10px;"><span style="color: rgb(113, 124, 141); font-weight: 400;">分类:</span><span>${
  2232. this.courseTypeJson[Object.keys(this.courseTypeJson)[0]]
  2233. }</span></div>`;
  2234. }
  2235. 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>`;
  2236. const _chapInfo = this.chapInfo;
  2237. let _chap = "";
  2238. for (let i = 0; i < _chapInfo.length; i++) {
  2239. _chap += `<div style="font-size:40px;margin-top:70px;"><span>第${
  2240. i + 1
  2241. }阶段:${_chapInfo[i].dyName}</span></div>`;
  2242. let _task = _chapInfo[i].chapterInfo[0].taskJson;
  2243. for (let j = 0; j < _task.length; j++) {
  2244. _chap += `<div style="font-size:30px;margin-top:50px;"><span>任务${
  2245. j + 1
  2246. }:${_task[j].task}</span></div>`;
  2247. if (_task[j].taskDetail) {
  2248. _chap += `<div style="font-size:25px;margin-top:40px;">任务描述</div>`;
  2249. _chap += `<div style="font-size:25px;margin-top:10px;">${_task[j].taskDetail}</div>`;
  2250. }
  2251. let _tool = _task[j].toolChoose;
  2252. if (_tool[0].tool.length) {
  2253. for (let z = 0; z < _tool.length; z++) {
  2254. _chap += `<div style="font-size:23px;margin-top:30px;"><span>步骤${
  2255. z + 1
  2256. }:</span><span>${
  2257. tools[_tool[z].tool[0]] ? tools[_tool[z].tool[0]].name : ""
  2258. }</span></div>`;
  2259. if (_tool[z].toolDetail) {
  2260. _chap += `<div style="font-size:23px;margin-top:20px;">工具描述</div>`;
  2261. _chap += `<div style="font-size:23px;margin-top:10px;">${_tool[z].toolDetail}</div>`;
  2262. }
  2263. }
  2264. }
  2265. }
  2266. }
  2267. let _html = _title + _type + _user + _chap;
  2268. this.generate(this.courseDetail, _html);
  2269. },
  2270. async generate(a, html) {
  2271. // 将html文件中需要用到的数据挂载到store上
  2272. const content = `<!DOCTYPE html>
  2273. <html lang="en">
  2274. <head>
  2275. <meta charset="UTF-8">
  2276. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  2277. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  2278. <title>${a.title}</title>
  2279. <style>
  2280. </style>
  2281. </head>
  2282. <body>
  2283. ${html}
  2284. </body>
  2285. </html>`;
  2286. // debugger
  2287. // 生成报告
  2288. const link = document.createElement("a");
  2289. let dname = a.title + ".doc";
  2290. // link.download = "报告.html"; // 文件名
  2291. link.download = dname; // 文件名
  2292. link.style.display = "none";
  2293. // 创建文件流
  2294. // 创建bolb实例时,内容一定要放在[]中
  2295. const blob = new Blob([content], {
  2296. type: "text/plain;charset='utf-8'",
  2297. });
  2298. link.href = window.URL.createObjectURL(blob);
  2299. document.body.appendChild(link);
  2300. link.click();
  2301. document.body.removeChild(link);
  2302. // saveAs(
  2303. // htmlDocx.asBlob(content, {
  2304. // orientation: "landscape", //跨域设置
  2305. // }),
  2306. // //文件名
  2307. // "报告.doc"
  2308. // );
  2309. },
  2310. uploadCourse() {
  2311. // this.$confirm("确定导出课件吗?", "提示", {
  2312. // confirmButtonText: "确定",
  2313. // cancelButtonText: "取消",
  2314. // type: "warning",
  2315. // })
  2316. // .then(() => {
  2317. const loading = this.$loading.service({
  2318. background: "rgba(255, 255, 255, 0.7)",
  2319. target: document.body,
  2320. text: "文件加载中...",
  2321. });
  2322. const _chapInfo = this.chapInfo;
  2323. let url = [];
  2324. for (let i = 0; i < _chapInfo.length; i++) {
  2325. let _task = _chapInfo[i].chapterInfo[0].taskJson;
  2326. for (let j = 0; j < _task.length; j++) {
  2327. let _chapterData = _task[j].chapterData;
  2328. for (let k = 0; k < _chapterData.length; k++) {
  2329. if (
  2330. _chapterData[k].url.indexOf(
  2331. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  2332. ) !== -1 &&
  2333. _chapterData[k].url.indexOf("img") === -1
  2334. ) {
  2335. let _point = _chapterData[k].url.split(".")[_chapterData[k].url.split(".").length - 1]
  2336. url.push({
  2337. name: _chapterData[k].name.indexOf(_point) == -1 ? (_chapterData[k].name + '.' + _point) : _chapterData[k].name,
  2338. url: _chapterData[k].url,
  2339. });
  2340. }
  2341. }
  2342. }
  2343. }
  2344. console.log(url);
  2345. this.downLoadAll(url, loading);
  2346. // })
  2347. // .catch(() => {});
  2348. },
  2349. downLoadAll(url, loading) {
  2350. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  2351. const zip = new JSZip();
  2352. const cache = {};
  2353. const promises = [];
  2354. data.forEach((item) => {
  2355. const promise = getFile(item.url).then((data) => {
  2356. if (data.data != 1) {
  2357. // 下载文件, 并存成ArrayBuffer对象
  2358. const file_name = item.name; // 获取文件名
  2359. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  2360. cache[file_name] = data.data;
  2361. }
  2362. });
  2363. promises.push(promise);
  2364. });
  2365. Promise.all(promises).then(() => {
  2366. zip.generateAsync({ type: "blob" }).then((content) => {
  2367. // 生成二进制流
  2368. FileSaver.saveAs(content, this.courseDetail.title + ".zip"); // 利用file-saver保存文件 自定义文件名
  2369. setTimeout(() => {
  2370. loading.close();
  2371. }, 2000);
  2372. });
  2373. });
  2374. },
  2375. getLang(){
  2376. let lang = ''
  2377. if(this.languageSetting == 0){
  2378. lang = 'Chinese.'
  2379. }else if(this.languageSetting == 1){
  2380. lang = 'Traditional Chinese.'
  2381. }else if(this.languageSetting == 2){
  2382. lang = 'English.'
  2383. }
  2384. return lang
  2385. },
  2386. updateSetting(){
  2387. let params = [{
  2388. cid: this.id,
  2389. setting: JSON.stringify(this.setting)
  2390. }]
  2391. this.ajax.post(this.$store.state.api+'updateWorksSetting',params).then(res=>{
  2392. if(res.data==1){
  2393. console.log('保存操作成功')
  2394. }else{
  2395. console.log('保存操作失败')
  2396. }
  2397. }).catch(e=>{
  2398. console.log('保存操作失败')
  2399. console.log(e)
  2400. })
  2401. },
  2402. aiChatContent() {
  2403. if(this.elLoading || this.eltLoading){
  2404. this.$message.error('正在优化中,请稍后')
  2405. return
  2406. }
  2407. this.elLoading = true
  2408. this.eltLoading = true
  2409. let _uuid = uuidv4();
  2410. this.brief = "";
  2411. let params = {
  2412. model: "qwen-plus",
  2413. temperature: 0,
  2414. max_tokens: 4096,
  2415. top_p: 1,
  2416. frequency_penalty: 0,
  2417. presence_penalty: 0,
  2418. messages: [
  2419. {
  2420. role: "user",
  2421. content: `Language: ${this.getLang()} 总结以下内容为150字左右的课程简介:${this.courseDetail.brief}`
  2422. }
  2423. ],
  2424. uid: _uuid,
  2425. mind_map_question: ""
  2426. }
  2427. this.ajax
  2428. .post("https://gpt4.cocorobo.cn/chat", params)
  2429. .then(res => {
  2430. if (
  2431. converter(res.data.FunctionResponse.result) ==
  2432. converter("发送成功")
  2433. ) {
  2434. } else {
  2435. this.$message.warning(res.data.FunctionResponse.result);
  2436. }
  2437. })
  2438. .catch(e => {
  2439. console.log(e);
  2440. this.elLoading = false
  2441. this.eltLoading = false
  2442. });
  2443. this.getAiContent(_uuid);
  2444. },
  2445. getAiContent(_uid) {
  2446. this.fasource = new EventSource(
  2447. `https://gpt4.cocorobo.cn/stream/${_uid}`
  2448. ); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  2449. let _allText = "";
  2450. let _mdText = "";
  2451. const md = new MarkdownIt();
  2452. this.fasource.onmessage = _e => {
  2453. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  2454. //对话已经完成
  2455. _mdText = _mdText.replace("_", "");
  2456. this.fasource.close();
  2457. this.fasource = null;
  2458. this.$nextTick(() => {
  2459. this.$refs.chatDialog.scrollTop = this.$refs.chatDialog.scrollHeight;
  2460. });
  2461. this.brief = _mdText;
  2462. this.setting.sbrief = _mdText
  2463. this.eltLoading = false
  2464. this.$forceUpdate()
  2465. this.updateSetting();
  2466. return;
  2467. } else {
  2468. //对话还在继续
  2469. let _text = "";
  2470. _text = _e.data.replaceAll("'", "");
  2471. if (_allText == "") {
  2472. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  2473. } else {
  2474. _allText += _text;
  2475. }
  2476. _mdText = _allText + "_";
  2477. _mdText = _mdText.replace(/\\n/g, "\n");
  2478. _mdText = _mdText.replace(/\\/g, "");
  2479. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  2480. //转化返回的回复流数据
  2481. _mdText = md.render(_mdText);
  2482. this.brief = _mdText;
  2483. this.elLoading = false
  2484. this.$nextTick(() => {
  2485. this.$refs.chatDialog.scrollTop = this.$refs.chatDialog.scrollHeight;
  2486. });
  2487. // 处理流数据
  2488. }
  2489. };
  2490. },
  2491. selectClassSuccess(classId){
  2492. this.gotoCourse(classId);
  2493. this.$refs.selectTeachingClassDialogRef.close();
  2494. },
  2495. async changeClassList(data){
  2496. this.classList = JSON.parse(JSON.stringify(data))
  2497. let params = [{
  2498. cid:this.id,
  2499. juri:this.classList.map(i=>i.id).join(',')
  2500. }]
  2501. this.ajax.post(this.$store.state.api+"update_CourseJuriById",params).then(res=>{
  2502. if(res.data==1){
  2503. console.log("修改成功")
  2504. }
  2505. })
  2506. this.inviteCodeFn();
  2507. },
  2508. // 随机码
  2509. async inviteCodeFn(){
  2510. let _inviteCodeLength = this.classList.reduce((pre,cur)=>{this.inviteCode.map(i=>i.cid).includes(cur.id)?pre+=1:'';return pre},0)
  2511. if (_inviteCodeLength != this.classList.length) {
  2512. let classArray = [];
  2513. let noClassArray = [];
  2514. for (var i = 0; i < this.classList.length; i++) {
  2515. classArray.push(this.classList[i].id);
  2516. noClassArray.push(this.classList[i].id);
  2517. }
  2518. this.inviteCode = this.inviteCode.filter((el) => {
  2519. if (classArray.indexOf(el.cid) != -1) {
  2520. noClassArray.splice(noClassArray.indexOf(el.cid), 1);
  2521. return el;
  2522. }
  2523. });
  2524. for (var i = 0; i < noClassArray.length; i++) {
  2525. await this.getInviteCode(noClassArray[i]);
  2526. }
  2527. let a = this.inviteCode;
  2528. console.log(this.inviteCode);
  2529. this.addInviteCode();
  2530. }
  2531. }
  2532. },
  2533. created() {
  2534. // if(this.tType == 1 || this.tType == 4){
  2535. // this.getCourseDetail2();
  2536. // }else{
  2537. // this.getCourseDetail1();
  2538. // }
  2539. this.getCourseDetail1();
  2540. this.getUser();
  2541. document.scrollingElement.scrollTop = 0;
  2542. // this.getSName();
  2543. },
  2544. };
  2545. </script>
  2546. <style scoped>
  2547. @media screen and (max-width: 1024px) {
  2548. /* .Tname {
  2549. width: 500px;
  2550. white-space: nowrap;
  2551. overflow: hidden;
  2552. text-overflow: ellipsis;
  2553. } */
  2554. }
  2555. .body_student {
  2556. margin: 10px auto;
  2557. width: 98%;
  2558. height: 100%;
  2559. }
  2560. .student_head {
  2561. width: 100%;
  2562. background: #fff;
  2563. height: 30%;
  2564. position: relative;
  2565. }
  2566. .returnIndexImg {
  2567. width: 18px;
  2568. margin: 0 7px 0 0;
  2569. height: auto;
  2570. box-sizing: border-box;
  2571. display: flex;
  2572. align-items: center;
  2573. }
  2574. .returnIndexImg > img {
  2575. width: 100%;
  2576. }
  2577. .wheel {
  2578. width: 250px;
  2579. max-height: 146px;
  2580. display: flex;
  2581. align-items: center;
  2582. }
  2583. .man {
  2584. width: 16px;
  2585. height: 16px;
  2586. }
  2587. .wheel > img,
  2588. .man > img {
  2589. width: 100%;
  2590. height: 100%;
  2591. }
  2592. .box_course {
  2593. display: flex;
  2594. padding: 25px 0 20px 60px;
  2595. }
  2596. .right_box {
  2597. display: flex;
  2598. flex-direction: column;
  2599. margin-left: 30px;
  2600. align-items: flex-start;
  2601. width: calc(100% - 350px);
  2602. }
  2603. .right_box_title {
  2604. font-size: 20px;
  2605. font-weight: bold;
  2606. max-width: calc(100% - 250px);
  2607. white-space: nowrap;
  2608. overflow: hidden;
  2609. text-overflow: ellipsis;
  2610. }
  2611. .people {
  2612. display: flex;
  2613. margin-top: 20px;
  2614. }
  2615. .person {
  2616. margin-left: 10px;
  2617. /* line-height: 18px; */
  2618. }
  2619. .btnBox {
  2620. display: flex;
  2621. margin-top: 20px;
  2622. }
  2623. .now_study {
  2624. /* width: 120px; */
  2625. padding: 0 10px;
  2626. height: 45px;
  2627. color: #fff;
  2628. background: #3681fc;
  2629. text-align: center;
  2630. line-height: 45px;
  2631. border-radius: 8px;
  2632. font-size: 16px;
  2633. cursor: pointer;
  2634. display: flex;
  2635. flex-direction: row;
  2636. flex-wrap: nowrap;
  2637. align-items: center;
  2638. justify-content: center;
  2639. }
  2640. .now_study + .now_study {
  2641. margin-left: 10px;
  2642. }
  2643. .goToStudy {
  2644. /* width: 120px; */
  2645. padding: 0 10px;
  2646. height: 45px;
  2647. background: #3681fc;
  2648. border-radius: 8px;
  2649. color: #fff;
  2650. display: flex;
  2651. flex-direction: row;
  2652. flex-wrap: nowrap;
  2653. align-items: center;
  2654. justify-content: center;
  2655. position: absolute;
  2656. right: 25px;
  2657. bottom: 25px;
  2658. font-size: 16px;
  2659. cursor: pointer;
  2660. }
  2661. .now_group {
  2662. height: 35px;
  2663. font-size: 14px;
  2664. line-height: 35px;
  2665. margin-left: 32px;
  2666. }
  2667. .now_group > span:nth-child(1) {
  2668. color: rgb(108, 108, 108);
  2669. }
  2670. .choose_who {
  2671. display: flex;
  2672. margin: 15px 0 0 25px;
  2673. }
  2674. .who_choose {
  2675. height: 28px;
  2676. cursor: pointer;
  2677. }
  2678. .choose_who > div:nth-child(2) {
  2679. margin-left: 35px;
  2680. }
  2681. .choose {
  2682. border-bottom: 5px solid #4a9eed;
  2683. color: #4a9eed;
  2684. }
  2685. .student_body {
  2686. display: flex;
  2687. }
  2688. .student_body,
  2689. .right {
  2690. width: 100%;
  2691. margin: 10px auto;
  2692. min-height: 688px;
  2693. }
  2694. .nav {
  2695. margin: auto 25px;
  2696. width: 80%;
  2697. padding-top: 5px;
  2698. text-indent: 25px;
  2699. }
  2700. .pic {
  2701. width: 100%;
  2702. display: flex;
  2703. flex-direction: row;
  2704. flex-wrap: wrap;
  2705. height: 100%;
  2706. justify-content: space-evenly;
  2707. }
  2708. .Img {
  2709. /*width: 30%; */
  2710. width: 300px;
  2711. margin: 20px 50px;
  2712. margin: 20px 10px;
  2713. border: 1px solid #dbdbdb;
  2714. border-radius: 5px;
  2715. overflow: hidden;
  2716. }
  2717. .Img > img {
  2718. width: 100%;
  2719. height: 100%;
  2720. }
  2721. .student_body_one,
  2722. .right_one {
  2723. width: 100%;
  2724. margin: 0 auto;
  2725. background: #fff;
  2726. margin-top: 10px;
  2727. min-height: 688px;
  2728. }
  2729. .student {
  2730. width: 85%;
  2731. display: flex;
  2732. flex-direction: row;
  2733. flex-wrap: wrap;
  2734. justify-content: flex-start;
  2735. margin: auto 10px;
  2736. }
  2737. .student > div {
  2738. width: 12%;
  2739. height: 35px;
  2740. background: #e3759a;
  2741. text-align: center;
  2742. border: 1px solid #e3759a;
  2743. border-radius: 5px;
  2744. color: #fff;
  2745. line-height: 35px;
  2746. margin: 10px;
  2747. }
  2748. .dialog_change >>> .el-dialog {
  2749. border-radius: 5px;
  2750. }
  2751. .dialog_change >>> .el-dialog__header {
  2752. background: #303030;
  2753. height: 36px;
  2754. line-height: 36px;
  2755. padding-left: 10px;
  2756. padding: 0px 10px 0px;
  2757. }
  2758. .dialog_change >>> .el-dialog__headerbtn {
  2759. top: 10px !important;
  2760. right: 10px !important;
  2761. }
  2762. .dialog_change >>> .el-dialog__title {
  2763. color: #fff;
  2764. font-size: 14px;
  2765. line-height: 5px;
  2766. }
  2767. .dialog_change >>> .el-dialog__body {
  2768. background: #f5f5f5;
  2769. }
  2770. .blue_box {
  2771. align-items: center;
  2772. display: flex;
  2773. flex-direction: column;
  2774. justify-content: center;
  2775. }
  2776. .blue_box,
  2777. .blue_box_one {
  2778. width: 30%;
  2779. height: 100px;
  2780. text-align: center;
  2781. color: #fff;
  2782. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  2783. border-radius: 15px;
  2784. margin: 15px 0 15px 15px;
  2785. cursor: pointer;
  2786. }
  2787. .courseItem {
  2788. width: 299px;
  2789. height: 70px;
  2790. background: #ddebf8;
  2791. border-radius: 8px;
  2792. margin-right: 16px;
  2793. margin-bottom: 16px;
  2794. display: flex;
  2795. flex-direction: row;
  2796. flex-wrap: nowrap;
  2797. align-items: flex-start;
  2798. justify-content: center;
  2799. padding-top: 20px;
  2800. cursor: pointer;
  2801. }
  2802. .jdAndTask {
  2803. display: flex;
  2804. flex-direction: column;
  2805. flex-wrap: nowrap;
  2806. justify-content: center;
  2807. align-items: flex-start;
  2808. }
  2809. .jdAndTask > div:nth-child(1) {
  2810. font-size: 18px;
  2811. font-weight: bold;
  2812. color: #000;
  2813. margin-bottom: 10px;
  2814. }
  2815. .jdAndTask > div:nth-child(2) {
  2816. font-size: 14px;
  2817. font-weight: 400;
  2818. color: #000;
  2819. max-width: 180px;
  2820. white-space: nowrap;
  2821. overflow: hidden;
  2822. text-overflow: ellipsis;
  2823. word-break: break-word;
  2824. width: 180px;
  2825. }
  2826. .blue_box_one {
  2827. width: 200px;
  2828. height: 200px;
  2829. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  2830. display: flex;
  2831. flex-direction: column;
  2832. flex-wrap: nowrap;
  2833. align-items: center;
  2834. justify-content: center;
  2835. }
  2836. .blue_box_one > div {
  2837. margin: 5px 0;
  2838. }
  2839. .blue_box_one > div:nth-child(1) {
  2840. font-size: 20px;
  2841. font-weight: bold;
  2842. }
  2843. .blue_box > div:nth-child(2) {
  2844. margin-top: 10px;
  2845. }
  2846. .blue_box_one > div:nth-child(2) {
  2847. white-space: nowrap;
  2848. text-overflow: ellipsis;
  2849. overflow: hidden;
  2850. word-break: break-all;
  2851. width: 100%;
  2852. text-align: center;
  2853. max-width: calc(100% - 85px);
  2854. margin: 0 auto;
  2855. }
  2856. .return {
  2857. background: #f0f4fa;
  2858. width: 75px;
  2859. height: 36px;
  2860. color: #000;
  2861. text-align: center;
  2862. line-height: 36px;
  2863. margin-right: 20px;
  2864. cursor: pointer;
  2865. border-radius: 5px;
  2866. position: absolute;
  2867. right: 10px;
  2868. top: 24px;
  2869. font-size: 14px;
  2870. display: flex;
  2871. flex-direction: row;
  2872. flex-wrap: nowrap;
  2873. justify-content: center;
  2874. align-items: center;
  2875. }
  2876. .return > img {
  2877. width: 100%;
  2878. height: 100%;
  2879. }
  2880. .cType {
  2881. display: flex;
  2882. flex-direction: row;
  2883. justify-content: center;
  2884. align-items: center;
  2885. margin-top: 20px;
  2886. }
  2887. .cType > div > span {
  2888. font-weight: 400;
  2889. color: #717c8d;
  2890. }
  2891. .type_children + .type_children {
  2892. margin-left: 10px;
  2893. }
  2894. .all_choose {
  2895. margin-right: 10px;
  2896. max-width: 250px;
  2897. white-space: nowrap;
  2898. overflow: hidden;
  2899. text-overflow: ellipsis;
  2900. }
  2901. .rightT {
  2902. display: flex;
  2903. flex-direction: row;
  2904. flex-wrap: nowrap;
  2905. align-items: center;
  2906. width: calc(100% - 20px);
  2907. }
  2908. .jd {
  2909. background: #f0f0f0;
  2910. margin-left: 12px;
  2911. border-radius: 4px;
  2912. font-size: 14px;
  2913. color: #3d3d3d;
  2914. width: 90px;
  2915. height: 28px;
  2916. text-align: center;
  2917. line-height: 28px;
  2918. }
  2919. .sLeft {
  2920. width: 343px;
  2921. margin-right: 10px;
  2922. background: rgb(255, 255, 255);
  2923. padding: 20px 20px 0 20px;
  2924. box-sizing: border-box;
  2925. border-radius: 12px;
  2926. }
  2927. .courseT {
  2928. border-left: 3px solid #3681fc;
  2929. padding-left: 5px;
  2930. font-weight: bold;
  2931. display: flex;
  2932. align-items: center;
  2933. justify-content: space-between;
  2934. }
  2935. .courseTd {
  2936. padding-top: 15px;
  2937. height: 700px;
  2938. overflow: auto;
  2939. word-break: break-word;
  2940. white-space: pre-line;
  2941. }
  2942. .courseTd::-webkit-scrollbar {
  2943. /*滚动条整体样式*/
  2944. width: 6px;
  2945. /*高宽分别对应横竖滚动条的尺寸*/
  2946. height: 6px;
  2947. }
  2948. /*定义滚动条轨道 内阴影+圆角*/
  2949. .courseTd::-webkit-scrollbar {
  2950. border-radius: 10px;
  2951. background-color: #eee;
  2952. }
  2953. /*定义滑块 内阴影+圆角*/
  2954. .courseTd::-webkit-scrollbar-thumb {
  2955. border-radius: 10px;
  2956. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  2957. background-color: rgba(0, 0, 0, 0.1);
  2958. }
  2959. .rightTd,
  2960. .noBRight {
  2961. width: calc(100% - 28% - 10px);
  2962. background: #fff;
  2963. display: flex;
  2964. flex-direction: row;
  2965. flex-wrap: wrap;
  2966. align-content: flex-start;
  2967. align-items: center;
  2968. justify-content: flex-start;
  2969. border-radius: 12px;
  2970. padding-left: 17px;
  2971. }
  2972. .rightTd:nth-child(5n),
  2973. .noBRight:nth-child(5n) {
  2974. margin-right: 0;
  2975. }
  2976. .noBRight {
  2977. width: 100%;
  2978. }
  2979. .Tname {
  2980. word-break: break-all;
  2981. width: auto;
  2982. /* overflow: hidden;
  2983. white-space: nowrap;
  2984. text-overflow: ellipsis; */
  2985. }
  2986. /* .TnameC{
  2987. width:auto;
  2988. overflow: unset;
  2989. white-space: unset;
  2990. text-overflow: unset;
  2991. } */
  2992. .Tname > span {
  2993. cursor: pointer;
  2994. color: #1463eb;
  2995. margin-left: 10px;
  2996. }
  2997. .detail {
  2998. width: 100%;
  2999. padding: 15px;
  3000. box-sizing: border-box;
  3001. }
  3002. .statebox {
  3003. display: flex;
  3004. align-items: center;
  3005. box-sizing: border-box;
  3006. margin-left: 30px;
  3007. }
  3008. .statebox div {
  3009. padding: 10px 20px;
  3010. border-radius: 5px;
  3011. background: #fff;
  3012. display: flex;
  3013. align-items: center;
  3014. height: 46px;
  3015. line-height: 46px;
  3016. box-sizing: border-box;
  3017. }
  3018. .statebox div + div {
  3019. margin-left: 20px;
  3020. }
  3021. .statebox div span {
  3022. font-size: 16px;
  3023. display: flex;
  3024. align-items: center;
  3025. }
  3026. .statebox div span + span {
  3027. margin-left: 10px;
  3028. color: #1463eb;
  3029. }
  3030. .p_tool_box {
  3031. display: flex;
  3032. flex-wrap: wrap;
  3033. /* color: #fff; */
  3034. padding: 0 15px 10px;
  3035. align-items: center;
  3036. justify-content: space-evenly;
  3037. border-radius: 5px;
  3038. height: 200px;
  3039. overflow: auto;
  3040. max-width: 150px;
  3041. }
  3042. .p_tool {
  3043. display: flex;
  3044. margin-top: 10px;
  3045. }
  3046. .p_tool > div {
  3047. display: flex;
  3048. flex-direction: column;
  3049. align-items: center;
  3050. min-width: 60px;
  3051. }
  3052. .p_tool > div img {
  3053. width: 50px;
  3054. height: 50px;
  3055. }
  3056. .p_tool > div > div {
  3057. margin-top: 5px;
  3058. font-size: 12px;
  3059. }
  3060. .p_tool_box2 {
  3061. padding: 10px 15px;
  3062. }
  3063. .p_tool2 {
  3064. margin-right: 20px;
  3065. display: flex;
  3066. flex-direction: column;
  3067. align-items: flex-start;
  3068. /* margin-bottom: 10px; */
  3069. }
  3070. .p_tool2 > div:nth-child(1) {
  3071. margin-bottom: 10px;
  3072. }
  3073. .toolBigBox {
  3074. display: flex;
  3075. flex-direction: column;
  3076. }
  3077. .toolSta {
  3078. display: flex;
  3079. margin: 20px 0 0;
  3080. }
  3081. .toolSta > div {
  3082. display: flex;
  3083. }
  3084. .toolSta > div + div {
  3085. margin-left: 50px;
  3086. }
  3087. .toolSta > div > div:nth-child(1) {
  3088. margin: 10px 10px 0 0;
  3089. }
  3090. .blueBtn {
  3091. background: #61a0f5;
  3092. color: #fff;
  3093. display: flex;
  3094. padding: 10px 15px;
  3095. /* min-width: 150px; */
  3096. min-width: 165px;
  3097. font-size: 16px;
  3098. align-items: center;
  3099. border-radius: 5px;
  3100. }
  3101. .toolSta > div > div:nth-child(2) > div + div {
  3102. margin-top: 10px;
  3103. }
  3104. .toolSta > div > div:nth-child(2) > div > div + div {
  3105. margin: 0 20px;
  3106. }
  3107. .p_tool2 .toolbox {
  3108. display: flex;
  3109. align-items: center;
  3110. margin-top: 10px;
  3111. }
  3112. .p_tool2 .toolbox > div {
  3113. font-size: 16px;
  3114. font-weight: bold;
  3115. }
  3116. .checkBox {
  3117. display: flex;
  3118. padding: 20px 0 0 20px;
  3119. box-sizing: border-box;
  3120. width: 100%;
  3121. }
  3122. .checkBox span {
  3123. padding: 0 5px 5px;
  3124. cursor: pointer;
  3125. font-size: 18px;
  3126. font-weight: 400;
  3127. }
  3128. .checkBox span + span {
  3129. margin-left: 20px;
  3130. }
  3131. .checkBox .active {
  3132. border-bottom: 3px solid #3681fc;
  3133. color: #3681fc;
  3134. font-weight: bold;
  3135. }
  3136. .detail_box {
  3137. background-color: #f0f4fa;
  3138. padding: 15px 20px;
  3139. box-sizing: border-box;
  3140. width: 100%;
  3141. border-radius: 12px;
  3142. }
  3143. .detail_box + .detail_box {
  3144. margin-top: 20px;
  3145. }
  3146. .detail_box .title {
  3147. display: flex;
  3148. align-items: center;
  3149. }
  3150. .detail_box .title > span:nth-child(1) {
  3151. font-size: 18px;
  3152. display: flex;
  3153. align-items: center;
  3154. font-weight: 400;
  3155. color: #0e1e33;
  3156. }
  3157. .detail_box .box {
  3158. margin-top: 20px;
  3159. border-radius: 5px;
  3160. /* width: 100%; */
  3161. box-sizing: border-box;
  3162. overflow: auto;
  3163. }
  3164. .progress {
  3165. display: -webkit-box;
  3166. display: -ms-flexbox;
  3167. width: 100%;
  3168. overflow: auto;
  3169. }
  3170. .chapter {
  3171. margin-right: 30px;
  3172. min-width: 180px;
  3173. background-color: #fff;
  3174. border-radius: 12px;
  3175. }
  3176. .chapter + .chapter {
  3177. padding-left: 10px;
  3178. border-left: 1px solid rgb(220, 220, 220);
  3179. }
  3180. .chapter .stage {
  3181. width: 100%;
  3182. color: #fff;
  3183. background: linear-gradient(90deg, #477cd7, #65b9fc);
  3184. border-radius: 5px;
  3185. height: 50px;
  3186. line-height: 50px;
  3187. font-size: 18px;
  3188. text-align: center;
  3189. min-width: 180px;
  3190. }
  3191. .chapter .task {
  3192. display: flex;
  3193. width: 100%;
  3194. min-width: 180px;
  3195. padding-top: 15px;
  3196. }
  3197. .chapter .task .taskBox {
  3198. min-width: 180px;
  3199. height: 100%;
  3200. }
  3201. .borderRight {
  3202. border-right: 1px solid #eceef7;
  3203. }
  3204. .chapter .task .taskBox + .taskBox {
  3205. margin-left: 10px;
  3206. }
  3207. .chapter .task .taskBox .taskName {
  3208. text-align: center;
  3209. margin: 10px 0 10px 10px;
  3210. display: flex;
  3211. flex-direction: row;
  3212. flex-wrap: nowrap;
  3213. align-items: center;
  3214. min-width: 180px;
  3215. width: 100%;
  3216. }
  3217. /* .toolIcon::before {
  3218. content: "";
  3219. width: 26px;
  3220. height: 26px;
  3221. display: inline-block;
  3222. background-image: url(../assets/icon/toolion.png);
  3223. background-size: 100% 100%;
  3224. }
  3225. .toolIcon::before {
  3226. content: "";
  3227. width: 26px;
  3228. height: 26px;
  3229. display: inline-block;
  3230. background-image: url(../assets/icon/toolion.png);
  3231. background-size: 100% 100%;
  3232. }
  3233. .taskIcon::before {
  3234. content: "";
  3235. width: 26px;
  3236. height: 26px;
  3237. display: inline-block;
  3238. background-image: url(../assets/icon/task.png);
  3239. background-size: 100% 100%;
  3240. }
  3241. .finishIcon::before {
  3242. content: "";
  3243. width: 26px;
  3244. height: 26px;
  3245. display: inline-block;
  3246. background-image: url(../assets/icon/finish.png);
  3247. background-size: 100% 100%;
  3248. } */
  3249. .learningIcon {
  3250. color: #fe9999;
  3251. }
  3252. /* .learningIcon::before {
  3253. content: "";
  3254. width: 22px;
  3255. height: 22px;
  3256. display: inline-block;
  3257. background-image: url(../assets/icon/learning.png);
  3258. background-size: 100% 100%;
  3259. }
  3260. .frequencyIcon::before {
  3261. content: "";
  3262. width: 26px;
  3263. height: 26px;
  3264. display: inline-block;
  3265. background-image: url(../assets/icon/frequency.png);
  3266. background-size: 100% 100%;
  3267. }
  3268. .timeIcon::before {
  3269. content: "";
  3270. width: 26px;
  3271. height: 26px;
  3272. display: inline-block;
  3273. background-image: url(../assets/icon/time.png);
  3274. background-size: 100% 100%;
  3275. } */
  3276. .chapter_time_box {
  3277. border-left: 5px solid #f0f0f0;
  3278. padding: 0 30px;
  3279. box-sizing: border-box;
  3280. margin-top: 35px;
  3281. }
  3282. .c_box {
  3283. padding-top: 40px;
  3284. position: relative;
  3285. margin-top: 45px;
  3286. }
  3287. .c_box .stage_box {
  3288. display: flex;
  3289. align-items: center;
  3290. position: absolute;
  3291. top: -20px;
  3292. left: -45px;
  3293. }
  3294. .c_box .stage_box .yuan {
  3295. width: 25px;
  3296. height: 25px;
  3297. background: rgb(244, 244, 244);
  3298. border-radius: 25px;
  3299. display: flex;
  3300. align-items: center;
  3301. justify-content: center;
  3302. margin-right: 10px;
  3303. }
  3304. .bgCss::before {
  3305. background: #ccc !important;
  3306. }
  3307. .c_box .stage_box .yuan::before {
  3308. content: "";
  3309. width: 15px;
  3310. height: 15px;
  3311. background: rgb(59, 149, 238);
  3312. border-radius: 25px;
  3313. }
  3314. .c_box .stage_box .stage {
  3315. background: linear-gradient(90deg, #478bff, #65b9fc);
  3316. border-radius: 5px;
  3317. height: 50px;
  3318. line-height: 50px;
  3319. font-size: 18px;
  3320. color: #fff;
  3321. width: fit-content;
  3322. padding: 0 20px;
  3323. }
  3324. .s_up {
  3325. cursor: pointer;
  3326. transition: all 0.5s;
  3327. }
  3328. .s_up img {
  3329. width: 35px;
  3330. }
  3331. .s_up2 {
  3332. transform: rotate(90deg);
  3333. }
  3334. .lineBox {
  3335. width: 5px;
  3336. height: 20px;
  3337. background-image: linear-gradient(180deg, #3c65ba, #a1c6ec);
  3338. margin-right: 5px;
  3339. }
  3340. .disCss {
  3341. display: flex;
  3342. flex-direction: row;
  3343. flex-wrap: nowrap;
  3344. align-items: center;
  3345. }
  3346. .disCss > div {
  3347. margin: 10px 10px 0 0;
  3348. }
  3349. .titleCss {
  3350. max-width: 100px;
  3351. white-space: nowrap;
  3352. overflow: hidden;
  3353. text-overflow: ellipsis;
  3354. word-break: break-word;
  3355. margin-left: 10px;
  3356. font-size: 16px;
  3357. font-weight: bold;
  3358. color: #0e1e33;
  3359. }
  3360. .navIndex {
  3361. font-weight: bold;
  3362. color: #0e1e33;
  3363. font-size: 14px;
  3364. }
  3365. .stageCss {
  3366. cursor: pointer;
  3367. display: flex;
  3368. flex-direction: row;
  3369. flex-wrap: nowrap;
  3370. justify-content: center;
  3371. align-items: center;
  3372. border-bottom: 1px solid #e7ebf1;
  3373. }
  3374. .disabled {
  3375. background: rgba(210, 210, 210, 1);
  3376. }
  3377. .teaClass {
  3378. display: flex;
  3379. flex-direction: row;
  3380. flex-wrap: nowrap;
  3381. align-items: center;
  3382. }
  3383. .teaClass > div:nth-child(1) {
  3384. min-width: 90px;
  3385. }
  3386. .diy_sk >>> .el-dialog {
  3387. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  3388. border-radius: 18px 18px 18px 18px;
  3389. }
  3390. .diy_sk >>> .el-dialog__title {
  3391. font-size: 16px;
  3392. font-weight: bold;
  3393. color: #0e1e33;
  3394. }
  3395. .diy_sk >>> .el-dialog__body {
  3396. padding: 0 20px 15px 20px;
  3397. }
  3398. .classBox {
  3399. display: flex;
  3400. flex-direction: row;
  3401. flex-wrap: wrap;
  3402. justify-content: flex-start;
  3403. align-items: flex-start;
  3404. min-height: 300px;
  3405. max-height: 500px;
  3406. overflow: auto;
  3407. align-content: flex-start;
  3408. margin-bottom: 15px;
  3409. }
  3410. .classBox > div {
  3411. width: 106px;
  3412. height: 32px;
  3413. background: #3681fc;
  3414. border-radius: 4px;
  3415. font-weight: 400;
  3416. color: #fff;
  3417. font-size: 14px;
  3418. text-align: center;
  3419. line-height: 32px;
  3420. margin: 0 8px 8px 0;
  3421. cursor: pointer;
  3422. }
  3423. .cancelDiy {
  3424. width: 102px;
  3425. height: 36px;
  3426. background: #e7ebf1;
  3427. border-radius: 4px;
  3428. font-size: 14px;
  3429. font-weight: 400;
  3430. color: #717c8d;
  3431. text-align: center;
  3432. line-height: 32px;
  3433. margin: 0 auto;
  3434. cursor: pointer;
  3435. }
  3436. .confirmButtonClass{
  3437. background-color: #1463eb !important;
  3438. border-color: #1463eb !important;
  3439. }
  3440. .r_pub_button_op{
  3441. color: #448bff;
  3442. font-size: 14px;
  3443. cursor: pointer;
  3444. display: flex;
  3445. align-items: center;
  3446. justify-content: center;
  3447. }
  3448. .r_pub_button_op::before {
  3449. content: "";
  3450. width: 14px;
  3451. height: 14px;
  3452. min-width: 14px;
  3453. min-height: 14px;
  3454. background-size: 100% 100%;
  3455. display: block;
  3456. margin-right: 7px;
  3457. background-image: url(../assets/icon/u_op.png);
  3458. }
  3459. </style>