courseDetail.vue 114 KB

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