study.vue 167 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531
  1. <template>
  2. <div class="pb_content" style="overflow: unset; background: #eff7ff">
  3. <div
  4. class="pb_content_body"
  5. style="display: flex; height: 900px; position: relative"
  6. >
  7. <div class="pb_left">
  8. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  9. <el-tooltip
  10. class="courseTitle"
  11. effect="light"
  12. :content="courseDetail.title"
  13. placement="top"
  14. >
  15. <div>{{ courseDetail.title }}</div>
  16. </el-tooltip>
  17. <div class="ml">目录</div>
  18. <div class="cru_selectBox">
  19. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  20. <div class="blue_box_one" @click="get(stageIndex)">
  21. <div>第{{ stageIndex + 1 }}阶段</div>
  22. <div>{{ item.dyName }}</div>
  23. </div>
  24. <div class="twoChild" :class="{ navActive: item.isOpen }">
  25. <div
  26. class="navChild"
  27. v-for="(nav, navIndex) in item.task"
  28. :key="navIndex"
  29. >
  30. <div
  31. class="navTask"
  32. @click="openTask(stageIndex, navIndex, nav.id)"
  33. :class="{
  34. openTaskActive:
  35. navIndex == taskCount &&
  36. nav.id == navId &&
  37. stageIndex == courseType,
  38. }"
  39. >
  40. <div
  41. class="vedioNav"
  42. :class="{
  43. isClick:
  44. navIndex == taskCount &&
  45. nav.id == navId &&
  46. stageIndex == courseType,
  47. }"
  48. style="margin: 0"
  49. >
  50. 任务{{ navIndex + 1 }}
  51. </div>
  52. <el-tooltip
  53. class="navTaskname item"
  54. effect="light"
  55. :content="nav.taskName"
  56. placement="top"
  57. >
  58. <div>{{ nav.taskName }}</div>
  59. </el-tooltip>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="body_student">
  67. <div
  68. v-for="(jd, jdIndex) in chapInfoList"
  69. :key="jdIndex"
  70. style="background: #f2f2f2"
  71. >
  72. <div
  73. class="new_top"
  74. style="width: 100%; box-shadow: 0px 9px 0 0 #f2f2f2"
  75. >
  76. <div class="courseIndex">
  77. <div>第{{ jdIndex - 0 + 1 }}阶段</div>
  78. <el-tooltip effect="light" :content="jd.dyName" placement="top">
  79. <div>{{ jd.dyName }}</div>
  80. </el-tooltip>
  81. </div>
  82. <div class="btnAll">
  83. <!-- <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div> -->
  84. <!-- <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div> -->
  85. <div class="returnBtn" @click="allScrell" v-if="jdIndex == 0">
  86. 全屏
  87. </div>
  88. <div
  89. class="returnBtn"
  90. @click="juriVisible = true"
  91. v-if="jdIndex == 0 && tType == 1"
  92. >
  93. 权限
  94. </div>
  95. <div
  96. class="returnBtn"
  97. style="background: #225bc7"
  98. v-if="jdIndex == 0"
  99. @click.stop="
  100. goTo(
  101. '/courseDetail?userid=' +
  102. userid +
  103. '&oid=' +
  104. oid +
  105. '&cid=' +
  106. classId +
  107. '&courseId=' +
  108. id +
  109. '&tType=' +
  110. tType +
  111. '&screenType=' +
  112. screenType
  113. )
  114. "
  115. >
  116. 返回
  117. </div>
  118. </div>
  119. </div>
  120. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  121. .taskJson"
  122. :key="index"-->
  123. <div
  124. class="isNoMessage"
  125. v-if="
  126. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  127. .chapterData.length == 0 &&
  128. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  129. .toolChoose[0].tool.length == 0 &&
  130. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  131. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  132. .taskDetail == '' &&
  133. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  134. "
  135. >
  136. <img src="../assets/icon/isNoMessage.png" alt />
  137. </div>
  138. <div
  139. class="study_top"
  140. v-for="(rw, rwIndex) in jd.chapterInfo[0].taskJson"
  141. :key="rwIndex"
  142. >
  143. <div class="rwCss">
  144. <div :id="jdIndex + '-' + rwIndex">任务{{ rwIndex + 1 }}</div>
  145. <div style="margin: 0px 0 0 10px">{{ rw.task }}</div>
  146. </div>
  147. <div
  148. class="vedioBox"
  149. v-if="
  150. vedio[jdIndex][rwIndex].length > 0 ||
  151. rw.taskDetail != '' ||
  152. rw.chapterData.length > 0
  153. "
  154. >
  155. <div class="checkbox">
  156. <div class="check" style="font-size: 25px" :id="rw.id">
  157. 学一学
  158. </div>
  159. </div>
  160. <div
  161. class="student_head"
  162. v-if="
  163. vedio[jdIndex][rwIndex].length > 0 ||
  164. textList[jdIndex][rwIndex].length > 0 ||
  165. file[jdIndex][rwIndex].length > 0 ||
  166. rw.taskDetail != ''
  167. "
  168. >
  169. <div class="taskBox">
  170. <div
  171. style="
  172. display: flex;
  173. flex-wrap: nowrap;
  174. flex-direction: column;
  175. position: relative;
  176. "
  177. >
  178. <div
  179. style="
  180. padding: 20px;
  181. line-height: 30px;
  182. max-height: 105px;
  183. overflow: auto;
  184. "
  185. v-if="rw.taskDetail != ''"
  186. v-html="rw.taskDetail ? rw.taskDetail : '暂无描述'"
  187. ></div>
  188. </div>
  189. </div>
  190. <div class="vedioTaskBox">
  191. <div
  192. class="box_course"
  193. v-if="
  194. vedio[jdIndex][rwIndex].length > 0 ||
  195. textList[jdIndex][rwIndex].length > 0 ||
  196. file[jdIndex][rwIndex].length > 0
  197. "
  198. >
  199. <div
  200. class="wheel"
  201. v-if="
  202. vedio.length &&
  203. vedio[jdIndex][rwIndex] &&
  204. vedio[jdIndex][rwIndex].length > 0 &&
  205. showType[jdIndex] &&
  206. showType[jdIndex][rwIndex] == 0
  207. "
  208. >
  209. <div class="workd_media" style="height: 100%">
  210. <video-player
  211. class="video-player vjs-custom-skin"
  212. :playsinline="true"
  213. :options="playerO[jdIndex][rwIndex]"
  214. @play="onPlayerPlay($event)"
  215. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  216. ></video-player>
  217. </div>
  218. </div>
  219. <div
  220. class="wheel"
  221. v-if="showType[jdIndex][rwIndex] == 1"
  222. style="
  223. box-shadow: 0 0 6px 1px #f2f2f2;
  224. width: 90%;
  225. margin: 0 0 20px 30px;
  226. background: #f1f1f1;
  227. "
  228. >
  229. <div class="title">查看文档</div>
  230. <el-form class="textBox">
  231. <el-form-item class="textTitle">
  232. <div
  233. style="
  234. font-size: 22px;
  235. max-height: 100px;
  236. overflow: auto;
  237. "
  238. >
  239. {{ textList[jdIndex][rwIndex][0].name }}
  240. </div>
  241. </el-form-item>
  242. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  243. <div
  244. v-html="textList[jdIndex][rwIndex][0].url"
  245. class="textContent"
  246. ></div>
  247. </el-form>
  248. </div>
  249. <div
  250. class="wheel"
  251. v-if="showType[jdIndex][rwIndex] == 2"
  252. style="height: 520px; width: 95%; margin: 0 auto"
  253. >
  254. <iframe
  255. style="width: 100%; height: 100%; border: none"
  256. :src="pptImgUrl1[jdIndex][rwIndex]"
  257. ></iframe>
  258. </div>
  259. <div
  260. class="wheel"
  261. v-if="showType[jdIndex][rwIndex] == 3"
  262. style="height: 520px; width: 95%; margin: 0 auto"
  263. >
  264. <pdf
  265. :pdfUrl="pptImgUrl1[jdIndex][rwIndex]"
  266. style="width: 100%; height: 100%; overflow: auto"
  267. ></pdf>
  268. </div>
  269. <div
  270. class="wheel"
  271. v-if="showType[jdIndex][rwIndex] == 4"
  272. style="height: 520px; width: 95%; margin: 0 auto"
  273. >
  274. <el-image
  275. :src="pptImgUrl1[jdIndex][rwIndex]"
  276. fit="cover"
  277. style="width: 100%"
  278. ></el-image>
  279. </div>
  280. </div>
  281. <div
  282. class="vedioList"
  283. :class="
  284. vedio[jdIndex][rwIndex].length == 0 &&
  285. file[jdIndex][rwIndex].length == 0 &&
  286. textList[jdIndex][rwIndex].length == 0
  287. ? 'listNoVedio'
  288. : ''
  289. "
  290. v-if="
  291. (vedio.length &&
  292. vedio[jdIndex][rwIndex] &&
  293. vedio[jdIndex][rwIndex].length > 0) ||
  294. (textList.length &&
  295. textList[jdIndex][rwIndex] &&
  296. textList[jdIndex][rwIndex].length > 0) ||
  297. (lineList.length &&
  298. lineList[jdIndex][rwIndex] &&
  299. lineList[jdIndex][rwIndex].length > 0) ||
  300. (file.length &&
  301. file[jdIndex][rwIndex] &&
  302. file[jdIndex][rwIndex].length > 0)
  303. "
  304. >
  305. <div class="navTitile">内容列表:</div>
  306. <div class="navBox">
  307. <div
  308. v-show="
  309. vedio.length &&
  310. vedio[jdIndex][rwIndex] &&
  311. vedio[jdIndex][rwIndex].length > 0
  312. "
  313. >
  314. <!-- <div
  315. class="vedioNav"
  316. style="
  317. width: 80px;
  318. min-width: 80px;
  319. height: 30px;
  320. line-height: 36px;
  321. font-size: 16px;
  322. border-radius: 10px;
  323. "
  324. >
  325. 视频
  326. </div> -->
  327. <div
  328. class="vedioTimeBox"
  329. v-for="(media, vedioIndex) in vedio[jdIndex][rwIndex]"
  330. :key="vedioIndex + '1'"
  331. @click="
  332. lookVedio(media.url, jdIndex, rwIndex, vedioIndex)
  333. "
  334. >
  335. <div
  336. class="media"
  337. style="
  338. width: 90px;
  339. height: 60px;
  340. position: relative;
  341. "
  342. >
  343. <img
  344. style="height: 90px; width: 160px"
  345. :src="
  346. media.cover != null && media.cover != ''
  347. ? JSON.parse(media.cover).length > 0
  348. ? JSON.parse(media.cover)[0].url
  349. : mr
  350. : mr
  351. "
  352. alt
  353. />
  354. <!-- <div class="vedioTime" v-if="vedioTime[jdIndex]">
  355. {{ vedioTime[jdIndex][rwIndex][vedioIndex] }}
  356. </div> -->
  357. </div>
  358. <div
  359. class="vedioName"
  360. :class="
  361. isClickNavOne[jdIndex][rwIndex][vedioIndex] ==
  362. 'video' + vedioIndex
  363. ? 'isClickNavOne'
  364. : ''
  365. "
  366. >
  367. {{ media.name }}
  368. </div>
  369. </div>
  370. </div>
  371. <div
  372. v-show="
  373. textList.length &&
  374. textList[jdIndex][rwIndex] &&
  375. textList[jdIndex][rwIndex].length > 0
  376. "
  377. class="newNav"
  378. v-for="(text, textIndex) in textList[jdIndex][rwIndex]"
  379. :key="textIndex + '2'"
  380. @click="lookText(jdIndex, rwIndex, textIndex)"
  381. >
  382. <!-- <div
  383. class="vedioNav"
  384. style="
  385. width: 80px;
  386. min-width: 80px;
  387. height: 30px;
  388. line-height: 36px;
  389. font-size: 16px;
  390. border-radius: 10px;
  391. "
  392. >
  393. 文档
  394. </div> -->
  395. <div style="width: calc(100% - 115px)">
  396. <div
  397. class="navText"
  398. :class="
  399. isClickNavOne[jdIndex][rwIndex][textIndex] ==
  400. 'text' + textIndex
  401. ? 'isClickNavOne'
  402. : ''
  403. "
  404. >
  405. {{
  406. textList[jdIndex][rwIndex].length > 0
  407. ? text.name
  408. : ""
  409. }}.doc
  410. </div>
  411. </div>
  412. </div>
  413. <div
  414. v-show="
  415. lineList.length &&
  416. lineList[jdIndex][rwIndex] &&
  417. lineList[jdIndex][rwIndex].length > 0
  418. "
  419. class="newNav"
  420. v-for="(lines, lineIndex) in lineList[jdIndex][rwIndex]"
  421. :key="lineIndex + '4'"
  422. @click="doUrl(lines.url)"
  423. >
  424. <!-- <div
  425. class="vedioNav"
  426. style="
  427. width: 80px;
  428. min-width: 80px;
  429. height: 30px;
  430. line-height: 36px;
  431. font-size: 16px;
  432. border-radius: 10px;
  433. "
  434. >
  435. 链接
  436. </div> -->
  437. <div style="width: calc(100% - 115px)">
  438. <div class="navText">
  439. <a
  440. style="text-decoration: none; color: #000"
  441. target="_Blank"
  442. >{{ lines.url }}</a
  443. >
  444. </div>
  445. </div>
  446. </div>
  447. <div
  448. class="newNav"
  449. v-show="
  450. file.length &&
  451. file[jdIndex][rwIndex] &&
  452. file[jdIndex][rwIndex].length > 0
  453. "
  454. v-for="(f, fileIndex) in file[jdIndex][rwIndex]"
  455. :key="fileIndex"
  456. @click="downFile(f, fileIndex, jdIndex, rwIndex)"
  457. >
  458. <!-- <div
  459. class="vedioNav"
  460. style="
  461. width: 80px;
  462. min-width: 80px;
  463. height: 30px;
  464. line-height: 36px;
  465. font-size: 16px;
  466. border-radius: 10px;
  467. "
  468. >
  469. 文档
  470. </div> -->
  471. <div style="width: calc(100% - 115px)">
  472. <div
  473. class="navText"
  474. :class="
  475. isClickNavOne[jdIndex][rwIndex][fileIndex] ==
  476. 'word' + fileIndex
  477. ? 'isClickNavOne'
  478. : ''
  479. "
  480. >
  481. {{ f.name }}
  482. </div>
  483. </div>
  484. </div>
  485. </div>
  486. </div>
  487. </div>
  488. <div
  489. style="padding: 10px 30px 0"
  490. v-if="
  491. showType[jdIndex][rwIndex] == 2 ||
  492. showType[jdIndex][rwIndex] == 3
  493. "
  494. >
  495. <el-button
  496. type="primary"
  497. @click="
  498. checkFileFull(
  499. showType[jdIndex][rwIndex],
  500. pptImgUrl1[jdIndex][rwIndex]
  501. )
  502. "
  503. >全屏查看</el-button
  504. >
  505. </div>
  506. <div
  507. style="padding: 10px 30px 0"
  508. v-if="showType[jdIndex][rwIndex] == 1"
  509. >
  510. <el-button
  511. type="primary"
  512. @click="
  513. checkFileFull(
  514. showType[jdIndex][rwIndex],
  515. textList[jdIndex][rwIndex][0]
  516. )
  517. "
  518. >全屏查看</el-button
  519. >
  520. </div>
  521. </div>
  522. </div>
  523. <div class="student_body">
  524. <!-- <div
  525. class="vedioBox"
  526. v-if="
  527. file.length && file[taskCount] && file[taskCount].length > 0
  528. "
  529. >
  530. <div class="queTop">
  531. <div class="question" style="width: 30px; margin-top: 5px">
  532. <img src="../assets/icon/fileIcon.png" alt />
  533. </div>
  534. <div class="queTitle">
  535. <div>附件</div>
  536. </div>
  537. </div>
  538. <div class="filebox" style="width: 100%">
  539. <div
  540. class="file"
  541. v-for="(f, fileIndex) in file[taskCount]"
  542. :key="fileIndex"
  543. @click="downFile(f, fileIndex)"
  544. >
  545. <img :src="require('../assets/file.png')" alt />
  546. <div>{{ f.name }}</div>
  547. </div>
  548. </div>
  549. <div class="upFile" v-if="type == 3">提交</div>
  550. </div>-->
  551. <div
  552. class="vedioBox"
  553. v-if="
  554. rw.toolChoose[0].tool &&
  555. rw.toolChoose[0].tool.length &&
  556. rw.toolChoose[0].tool.length > 0
  557. "
  558. >
  559. <div
  560. class="queTop"
  561. style="
  562. font-size: 25px;
  563. padding: 20px 0 20px 30px;
  564. font-weight: bold;
  565. "
  566. >
  567. <!-- <div class="question" style="width: 30px">
  568. <img src="../assets/icon/toolIcon.png" alt />
  569. </div>
  570. <div class="queTitle">
  571. <div>工具</div>
  572. </div>-->
  573. 练一练
  574. </div>
  575. <div class="toolHeng2" style="position: relative">
  576. <div
  577. class="filebox"
  578. style="flex-wrap: nowrap; margin: 0 20px"
  579. v-for="(tool, toolIndex) in rw.toolChoose"
  580. :key="toolIndex"
  581. >
  582. <div class="bzBox">
  583. <div></div>
  584. <div>步骤{{ toolIndex + 1 }}</div>
  585. </div>
  586. <div class="toolBox">
  587. <div>
  588. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  589. :key="indexTool"-->
  590. <!-- <div class="iframeBox">
  591. <div
  592. class="addPoint isBorder"
  593. v-for="(tooC, toolCIndex) in tool.tool"
  594. :key="toolCIndex"
  595. >
  596. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  597. <div
  598. class="iframeName"
  599. >
  600. 电子白板
  601. </div>
  602. <iframe
  603. src="https://iwb.cocorobo.cn/"
  604. ref="whiteBoard"
  605. ></iframe>
  606. </div>
  607. </div>
  608. </div>-->
  609. <div class="tooldetail" v-if="tool.toolDetail != ''">
  610. <!-- <div class="toolTitle">工具描述</div> -->
  611. <div v-html="contentConvent(tool.toolDetail)">
  612. <!-- {{ contentConvent(tool.toolDetail) }} -->
  613. </div>
  614. </div>
  615. <div class="noiframeBox">
  616. <div
  617. class="addPoint"
  618. v-for="(tooC, toolCIndex) in tool.tool"
  619. :key="toolCIndex"
  620. >
  621. <div v-if="tooC == 1">
  622. <div class="iframeName">电子白板</div>
  623. <iframe
  624. src="https://iwb.cocorobo.cn/"
  625. class="iframeCss"
  626. ></iframe>
  627. </div>
  628. <div v-if="tooC == 3">
  629. <div class="iframeName">思维导图</div>
  630. <iframe
  631. src="https://cloud.cocorobo.cn/kityminder-editor/dist/index.html"
  632. class="iframeCss"
  633. ></iframe>
  634. </div>
  635. <div v-if="tooC == 6">
  636. <div class="iframeName">协同文档</div>
  637. <iframe
  638. src="https://cloud.cocorobo.cn/Office/Word/WordEditArea.htm"
  639. class="iframeCss"
  640. ></iframe>
  641. </div>
  642. <div v-if="tooC == 7">
  643. <div class="iframeName">思维网格</div>
  644. <iframe
  645. src="https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid"
  646. class="iframeCss"
  647. ></iframe>
  648. </div>
  649. <div v-if="tooC == 8">
  650. <div class="iframeName">素材库</div>
  651. <iframe
  652. src="https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library"
  653. class="iframeCss"
  654. ></iframe>
  655. </div>
  656. <div v-if="tooC == 17">
  657. <div class="iframeName">学习资料</div>
  658. <iframe
  659. src="https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studyLibrary"
  660. class="iframeCss"
  661. ></iframe>
  662. </div>
  663. <div v-if="tooC == 2">
  664. <div class="iframeName">便签</div>
  665. <iframe
  666. src="https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note"
  667. class="iframeCss"
  668. ></iframe>
  669. </div>
  670. <div v-if="tooC == 25">
  671. <div class="iframeName">目标管理</div>
  672. <iframe
  673. :src="
  674. 'https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=' +
  675. userid +
  676. '&oid=' +
  677. oid
  678. "
  679. class="iframeCss"
  680. ></iframe>
  681. </div>
  682. <div v-if="tooC == 32">
  683. <div class="iframeName">源码编辑</div>
  684. <iframe
  685. src="//kitten.codemao.cn/"
  686. class="iframeCss"
  687. ></iframe>
  688. </div>
  689. <div v-if="tooC == 31">
  690. <div class="iframeName">数学画板</div>
  691. <iframe
  692. src="//www.netpad.net.cn/svg.html"
  693. class="iframeCss"
  694. ></iframe>
  695. </div>
  696. <div v-if="tooC == 28">
  697. <div class="iframeName">翻译</div>
  698. <iframe
  699. src="//dict.youdao.com/"
  700. class="iframeCss"
  701. ></iframe>
  702. </div>
  703. <div v-if="tooC == 37">
  704. <div class="iframeName">魔盒识字</div>
  705. <iframe
  706. src="//games.cocorobo.cn/view/index.html#/"
  707. class="iframeCss"
  708. ></iframe>
  709. </div>
  710. <div v-if="tooC == 38">
  711. <div class="iframeName">24点</div>
  712. <iframe
  713. src="//24.cocorobo.cn/#/index"
  714. class="iframeCss"
  715. ></iframe>
  716. </div>
  717. <div v-if="tooC == 39">
  718. <div class="iframeName">GeoGebra</div>
  719. <iframe
  720. src="//www.geogebra.org/calculator"
  721. class="iframeCss"
  722. ></iframe>
  723. </div>
  724. <div v-if="tooC == 4">
  725. <div class="iframeName">问卷调查</div>
  726. <div>
  727. <div
  728. class="a_add_title"
  729. style="
  730. display: flex;
  731. flex-direction: row;
  732. align-items: center;
  733. justify-content: flex-start;
  734. margin: 10px 0;
  735. "
  736. >
  737. <div
  738. style="margin-right: 20px; font-size: 20px"
  739. >
  740. 问卷标题:
  741. </div>
  742. <div style="font-size: 20px">
  743. {{ tool.askTitle }}
  744. </div>
  745. </div>
  746. <div
  747. class="a_addBox"
  748. style="padding: 0 !important"
  749. >
  750. <div style="font-size: 16px; color: #c7c7c7">
  751. 问卷内容
  752. </div>
  753. <div
  754. class="a_add_box"
  755. v-for="(item1, index1) in tool.askCount"
  756. :key="index1"
  757. >
  758. <div class="a_add_head">
  759. <div style="display: flex">
  760. {{ index1 + 1 + "、" }}
  761. <div>
  762. 问卷题目:{{
  763. tool.askJson[index1].askstitle
  764. }}
  765. </div>
  766. </div>
  767. </div>
  768. <div class="a_add_body" v-if="!isAnswer">
  769. <div class="a_add_input">
  770. <el-radio-group v-model="radio[index1]">
  771. <el-radio
  772. v-for="(item2, checkIndex) in tool
  773. .askJson[index1].checkList"
  774. :key="checkIndex"
  775. :label="checkIndex"
  776. class="redioStyle"
  777. >{{ item2 }}</el-radio
  778. >
  779. </el-radio-group>
  780. </div>
  781. </div>
  782. <div class="a_add_body" v-else>
  783. <div class="a_add_input">
  784. <el-radio-group v-model="radio[index1]">
  785. <el-radio
  786. v-for="(item2, checkIndex) in tool
  787. .askJson[index1].checkList"
  788. :key="checkIndex"
  789. :label="checkIndex"
  790. disabled
  791. class="redioStyle"
  792. >{{ item2 }}</el-radio
  793. >
  794. </el-radio-group>
  795. </div>
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. <!-- <div v-if="tooC == 5">
  802. <img
  803. @click="addTools(tooC, toolIndex, taskCount)"
  804. src="../assets/icon/thirdToolList/score.png"
  805. alt
  806. />
  807. <div style="margin: 5px 0">量规评分</div>
  808. </div> -->
  809. <div v-if="tooC == 10">
  810. <div class="iframeName">倒计时</div>
  811. <div>
  812. <Time></Time>
  813. </div>
  814. </div>
  815. <div v-if="tooC == 15">
  816. <div class="iframeName">问答工具</div>
  817. <div>
  818. <div
  819. style="
  820. display: flex;
  821. flex-wrap: nowrap;
  822. flex-direction: column;
  823. position: relative;
  824. "
  825. >
  826. <div
  827. class="queTop"
  828. style="padding: 20px 0 20px 0"
  829. >
  830. <div class="question">
  831. <img
  832. src="../assets/icon/question.png"
  833. alt
  834. />
  835. </div>
  836. <div class="queTitle">
  837. <div style="width: 90px; min-width: 90px">
  838. 提问:
  839. </div>
  840. <div>{{ tool.answerQ }}</div>
  841. </div>
  842. </div>
  843. </div>
  844. </div>
  845. </div>
  846. <div v-if="tooC == 26">
  847. <div class="iframeName">课程设计</div>
  848. <iframe
  849. src="https://cloud.cocorobo.cn/course-design/index.html"
  850. class="iframeCss"
  851. ></iframe>
  852. </div>
  853. <div v-if="tooC == 18">
  854. <div class="iframeName">训练平台</div>
  855. <iframe
  856. src="https://xunlian.cocorobo.cn/"
  857. class="iframeCss"
  858. ></iframe>
  859. </div>
  860. <div v-if="tooC == 16">
  861. <img
  862. @click="addTools(tooC, toolIndex, taskCount)"
  863. src="../assets/icon/thirdToolList/work.png"
  864. alt
  865. />
  866. <div style="margin: 5px 0">作业提交</div>
  867. </div>
  868. <div v-if="tooC == 21">
  869. <div class="iframeName">编程平台</div>
  870. <iframe
  871. src="https://x.cocorobo.cn"
  872. class="iframeCss"
  873. ></iframe>
  874. </div>
  875. <div v-if="tooC == 22">
  876. <div class="iframeName">AI体验</div>
  877. <iframe
  878. src="https://aihub.cocorobo.cn/"
  879. class="iframeCss"
  880. ></iframe>
  881. </div>
  882. <div v-if="tooC == 23">
  883. <div class="iframeName">python</div>
  884. <iframe
  885. src="https://python-blockly.cocorobo.cn/"
  886. class="iframeCss"
  887. ></iframe>
  888. </div>
  889. <div v-if="tooC == 24">
  890. <div class="iframeName">AI平台</div>
  891. <iframe
  892. src="https://ai-blockly.cocorobo.cn/?lang=zh-hans"
  893. class="iframeCss"
  894. ></iframe>
  895. </div>
  896. </div>
  897. </div>
  898. </div>
  899. </div>
  900. <div
  901. v-if="
  902. worksStudent[jdIndex] &&
  903. worksStudent[jdIndex][rwIndex] &&
  904. tType &&
  905. tType == 1 &&
  906. tool.tool.indexOf(16) != -1
  907. "
  908. class="worksBox"
  909. >
  910. <div
  911. style="padding-top: 15px; font-size: 18px"
  912. v-if="
  913. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  914. "
  915. >
  916. 作业预览
  917. </div>
  918. <div
  919. class="worksDetailBox"
  920. v-if="
  921. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  922. "
  923. >
  924. <div
  925. class="works"
  926. style="width: 200px; height: 140px; padding-top: 25px"
  927. v-for="(w, wIndex) in worksStudent[jdIndex][rwIndex][
  928. toolIndex
  929. ]"
  930. :key="wIndex"
  931. :class="w.type == 1 ? 'isTypeOne' : ''"
  932. >
  933. <div class="workImg" v-if="w.type == 0">
  934. <img
  935. :src="w.works"
  936. @click="previewImg(w.works)"
  937. alt
  938. />
  939. </div>
  940. <div class="workImg" v-if="w.type == 1">
  941. <img
  942. src="../assets/icon/works/noImg.png"
  943. @click="openFile(w.works)"
  944. alt
  945. />
  946. </div>
  947. <div class="worksName">
  948. <div>{{ w.sName }}</div>
  949. </div>
  950. </div>
  951. </div>
  952. <div style="padding-top: 15px; font-size: 18px">
  953. 未提交
  954. </div>
  955. <div class="noWorksS">
  956. <div
  957. v-for="(s, sIndex) in noWorksS[toolIndex]"
  958. :key="sIndex"
  959. class="noWorksName"
  960. >
  961. {{ s.student }}
  962. </div>
  963. </div>
  964. </div>
  965. <div
  966. v-if="
  967. worksStudent[jdIndex] &&
  968. worksStudent[jdIndex][rwIndex] &&
  969. tType &&
  970. tType == 1 &&
  971. tool.tool.indexOf(4) != -1
  972. "
  973. class="worksBox"
  974. >
  975. <div
  976. style="padding-top: 15px; font-size: 18px"
  977. v-if="
  978. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  979. "
  980. >
  981. 作业预览
  982. </div>
  983. <div>
  984. <div
  985. class="worksDetailBox"
  986. v-if="
  987. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  988. "
  989. >
  990. <div
  991. class="works"
  992. style="
  993. width: 240px;
  994. height: 170px;
  995. border: 1px solid #f8f8f8;
  996. border-radius: 10px;
  997. box-shadow: 0 0 6px 1px #dfdada;
  998. overflow: hidden;
  999. "
  1000. v-for="(w, wIndex) in worksStudent[jdIndex][
  1001. rwIndex
  1002. ][toolIndex]"
  1003. :key="wIndex"
  1004. >
  1005. <!-- @click="previewImg(w.works)" -->
  1006. <div class="workImg">
  1007. <img
  1008. src="../assets/icon/works/noImg.png"
  1009. @click="
  1010. openTools(
  1011. 4,
  1012. toolIndex,
  1013. taskCount,
  1014. w.works,
  1015. w.sName
  1016. )
  1017. "
  1018. alt
  1019. />
  1020. </div>
  1021. <div class="worksName">
  1022. <div>{{ w.sName }}</div>
  1023. <div>{{ w.time }}</div>
  1024. </div>
  1025. </div>
  1026. </div>
  1027. </div>
  1028. <div style="padding-top: 15px; font-size: 18px">
  1029. 未提交
  1030. </div>
  1031. <div class="noWorksS">
  1032. <div
  1033. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1034. :key="sIndex"
  1035. class="noWorksName"
  1036. >
  1037. {{ s.student }}
  1038. </div>
  1039. </div>
  1040. <AskStatic
  1041. v-if="
  1042. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1043. "
  1044. :askJSON="
  1045. worksStudent[jdIndex][rwIndex][toolIndex][0].works
  1046. "
  1047. :checkJson="checkJson[jdIndex][rwIndex][toolIndex]"
  1048. ></AskStatic>
  1049. </div>
  1050. <div
  1051. v-if="
  1052. worksStudent[jdIndex] &&
  1053. worksStudent[jdIndex][rwIndex] &&
  1054. tType &&
  1055. tType == 1 &&
  1056. tool.tool.indexOf(15) != -1
  1057. "
  1058. class="worksBox"
  1059. >
  1060. <div
  1061. style="padding-top: 15px; font-size: 18px"
  1062. v-if="
  1063. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1064. "
  1065. >
  1066. 作业预览
  1067. </div>
  1068. <div
  1069. class="worksDetailBox"
  1070. v-if="
  1071. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1072. "
  1073. >
  1074. <div
  1075. class="works"
  1076. v-for="(w, wIndex) in worksStudent[jdIndex][rwIndex][
  1077. toolIndex
  1078. ]"
  1079. :key="wIndex"
  1080. >
  1081. <div class="workImg">
  1082. <!-- <img
  1083. src="../assets/icon/works/noImg.png"
  1084. @click="openTools(15, toolIndex, taskCount, w.works)"
  1085. alt=""
  1086. />-->
  1087. <div class="answerBg">
  1088. <div>{{ w.sName }}</div>
  1089. <el-tooltip
  1090. class="item"
  1091. effect="light"
  1092. :content="JSON.parse(w.works)[0].answer"
  1093. placement="top"
  1094. >
  1095. <div class="answerContent">
  1096. {{ JSON.parse(w.works)[0].answer }}
  1097. </div>
  1098. </el-tooltip>
  1099. </div>
  1100. </div>
  1101. </div>
  1102. </div>
  1103. <div style="padding-top: 15px; font-size: 18px">
  1104. 未提交
  1105. </div>
  1106. <div class="noWorksS">
  1107. <div
  1108. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1109. :key="sIndex"
  1110. class="noWorksName"
  1111. >
  1112. {{ s.student }}
  1113. </div>
  1114. </div>
  1115. </div>
  1116. <div
  1117. v-if="
  1118. worksStudent[jdIndex] &&
  1119. worksStudent[jdIndex][rwIndex] &&
  1120. tType &&
  1121. tType == 1 &&
  1122. tool.tool.indexOf(1) != -1
  1123. "
  1124. class="worksBox"
  1125. >
  1126. <div
  1127. style="padding-top: 15px; font-size: 18px"
  1128. v-if="
  1129. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1130. "
  1131. >
  1132. 作业预览
  1133. </div>
  1134. <div
  1135. class="worksDetailBox"
  1136. v-if="
  1137. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1138. "
  1139. >
  1140. <div
  1141. class="works"
  1142. style="width: 200px; height: 140px; padding-top: 25px"
  1143. v-for="(w, wIndex) in worksStudent[jdIndex][rwIndex][
  1144. toolIndex
  1145. ]"
  1146. :key="wIndex"
  1147. >
  1148. <!-- @click="previewImg(w.works)" -->
  1149. <div class="workImg">
  1150. <img
  1151. :src="w.works"
  1152. @click="previewImg(w.works)"
  1153. alt
  1154. />
  1155. </div>
  1156. <div class="worksName">
  1157. <div>{{ w.sName }}</div>
  1158. </div>
  1159. </div>
  1160. </div>
  1161. <div style="padding-top: 15px; font-size: 18px">
  1162. 未提交
  1163. </div>
  1164. <div class="noWorksS">
  1165. <div
  1166. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1167. :key="sIndex"
  1168. class="noWorksName"
  1169. >
  1170. {{ s.student }}
  1171. </div>
  1172. </div>
  1173. </div>
  1174. <div
  1175. v-if="
  1176. worksStudent[jdIndex] &&
  1177. worksStudent[jdIndex][rwIndex] &&
  1178. tType &&
  1179. tType == 1 &&
  1180. tool.tool.indexOf(3) != -1
  1181. "
  1182. class="worksBox"
  1183. >
  1184. <div
  1185. style="padding-top: 15px; font-size: 18px"
  1186. v-if="
  1187. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1188. "
  1189. >
  1190. 作业预览
  1191. </div>
  1192. <div
  1193. class="worksDetailBox"
  1194. v-if="
  1195. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1196. "
  1197. >
  1198. <div
  1199. class="works"
  1200. style="width: 200px; height: 140px; padding-top: 25px"
  1201. v-for="(w, wIndex) in worksStudent[jdIndex][rwIndex][
  1202. toolIndex
  1203. ]"
  1204. :key="wIndex"
  1205. >
  1206. <!-- @click="previewImg(w.works)" -->
  1207. <div class="workImg">
  1208. <img
  1209. :src="w.works"
  1210. @click="previewImg(w.works)"
  1211. alt
  1212. />
  1213. </div>
  1214. <div class="worksName">
  1215. <div>{{ w.sName }}</div>
  1216. </div>
  1217. </div>
  1218. </div>
  1219. <div style="padding-top: 15px; font-size: 18px">
  1220. 未提交
  1221. </div>
  1222. <div class="noWorksS">
  1223. <div
  1224. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1225. :key="sIndex"
  1226. class="noWorksName"
  1227. >
  1228. {{ s.student }}
  1229. </div>
  1230. </div>
  1231. </div>
  1232. <div
  1233. v-if="
  1234. worksStudent[jdIndex] &&
  1235. worksStudent[jdIndex][rwIndex] &&
  1236. tType &&
  1237. tType == 1 &&
  1238. tool.tool.indexOf(6) != -1
  1239. "
  1240. class="worksBox"
  1241. >
  1242. <div
  1243. style="padding-top: 15px; font-size: 18px"
  1244. v-if="
  1245. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1246. "
  1247. >
  1248. 作业预览
  1249. </div>
  1250. <div
  1251. class="worksDetailBox"
  1252. v-if="
  1253. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1254. "
  1255. >
  1256. <div
  1257. class="works"
  1258. style="width: 200px; height: 140px; padding-top: 25px"
  1259. v-for="(w, wIndex) in worksStudent[jdIndex][rwIndex][
  1260. toolIndex
  1261. ]"
  1262. :key="wIndex"
  1263. >
  1264. <!-- @click="previewImg(w.works)" -->
  1265. <div class="workImg">
  1266. <img
  1267. :src="w.works"
  1268. @click="previewImg(w.works)"
  1269. alt
  1270. />
  1271. </div>
  1272. <div class="worksName">
  1273. <div>{{ w.sName }}</div>
  1274. </div>
  1275. </div>
  1276. </div>
  1277. <div style="padding-top: 15px; font-size: 18px">
  1278. 未提交
  1279. </div>
  1280. <div class="noWorksS">
  1281. <div
  1282. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1283. :key="sIndex"
  1284. class="noWorksName"
  1285. >
  1286. {{ s.student }}
  1287. </div>
  1288. </div>
  1289. </div>
  1290. <div
  1291. v-if="
  1292. worksStudent[jdIndex] &&
  1293. worksStudent[jdIndex][rwIndex] &&
  1294. tType &&
  1295. tType == 1 &&
  1296. tool.tool.indexOf(7) != -1
  1297. "
  1298. class="worksBox"
  1299. >
  1300. <div
  1301. style="padding-top: 15px; font-size: 18px"
  1302. v-if="
  1303. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1304. "
  1305. >
  1306. 作业预览
  1307. </div>
  1308. <div
  1309. class="worksDetailBox"
  1310. v-if="
  1311. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1312. "
  1313. >
  1314. <div
  1315. class="works"
  1316. style="width: 200px; height: 140px; padding-top: 25px"
  1317. v-for="(w, wIndex) in worksStudent[jdIndex][rwIndex][
  1318. toolIndex
  1319. ]"
  1320. :key="wIndex"
  1321. >
  1322. <!-- @click="previewImg(w.works)" -->
  1323. <div class="workImg">
  1324. <img
  1325. :src="w.works"
  1326. @click="previewImg(w.works)"
  1327. alt
  1328. />
  1329. </div>
  1330. <div class="worksName">
  1331. <div>{{ w.sName }}</div>
  1332. </div>
  1333. </div>
  1334. </div>
  1335. <div style="padding-top: 15px; font-size: 18px">
  1336. 未提交
  1337. </div>
  1338. <div class="noWorksS">
  1339. <div
  1340. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1341. :key="sIndex"
  1342. class="noWorksName"
  1343. >
  1344. {{ s.student }}
  1345. </div>
  1346. </div>
  1347. </div>
  1348. <div
  1349. v-if="
  1350. worksStudent[jdIndex] &&
  1351. worksStudent[jdIndex][rwIndex] &&
  1352. tType &&
  1353. tType == 1 &&
  1354. tool.tool.indexOf(26) != -1
  1355. "
  1356. class="worksBox"
  1357. >
  1358. <div
  1359. style="padding-top: 15px; font-size: 18px"
  1360. v-if="
  1361. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1362. "
  1363. >
  1364. 作业预览
  1365. </div>
  1366. <div
  1367. class="worksDetailBox"
  1368. v-if="
  1369. worksStudent[jdIndex][rwIndex][toolIndex].length > 0
  1370. "
  1371. >
  1372. <div
  1373. class="works"
  1374. style="width: 240px; height: 170px; overflow: hidden"
  1375. v-for="(w, wIndex) in worksStudent[jdIndex][rwIndex][
  1376. toolIndex
  1377. ]"
  1378. :key="wIndex"
  1379. :class="w.type == 1 ? 'isTypeOne' : ''"
  1380. >
  1381. <div class="workImg" v-if="w.type == 0">
  1382. <img
  1383. :src="w.works"
  1384. @click="previewImg(w.works)"
  1385. alt
  1386. />
  1387. </div>
  1388. <div class="workImg" v-if="w.type == 1">
  1389. <img
  1390. src="../assets/icon/works/noImg.png"
  1391. @click="openFile(w.works)"
  1392. alt
  1393. />
  1394. </div>
  1395. <div class="worksName">
  1396. <div>{{ w.sName }}</div>
  1397. </div>
  1398. </div>
  1399. </div>
  1400. <div style="padding-top: 15px; font-size: 18px">
  1401. 未提交
  1402. </div>
  1403. <div class="noWorksS">
  1404. <div
  1405. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1406. :key="sIndex"
  1407. class="noWorksName"
  1408. >
  1409. {{ s.student }}
  1410. </div>
  1411. </div>
  1412. </div>
  1413. </div>
  1414. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  1415. 上传文件
  1416. <input
  1417. type="file"
  1418. accept="image/png, image/gif, image/jpeg"
  1419. style="display: none"
  1420. @change="beforeUpload1($event, 2, index)"
  1421. />
  1422. </div>-->
  1423. </div>
  1424. </div>
  1425. <div
  1426. class="vedioBox"
  1427. v-if="
  1428. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1429. .eList &&
  1430. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1431. .eList.length &&
  1432. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1433. .eList.length > 0
  1434. "
  1435. >
  1436. <div
  1437. class="queTop"
  1438. style="
  1439. font-size: 25px;
  1440. padding: 20px 0 20px 30px;
  1441. font-weight: bold;
  1442. "
  1443. >
  1444. <!-- <div class="question" style="width: 30px">
  1445. <img src="../assets/icon/toolIcon.png" alt />
  1446. </div>
  1447. <div class="queTitle">
  1448. <div>工具</div>
  1449. </div>-->
  1450. 评一评
  1451. </div>
  1452. <div class="evaCss">
  1453. <div class="elist_input">
  1454. <div
  1455. v-for="(eItem, eIndex) in rw.eList"
  1456. :key="eIndex"
  1457. class="elist_input_box"
  1458. >
  1459. <div style="width: 95%">
  1460. <div
  1461. style="
  1462. display: flex;
  1463. flex-direction: row;
  1464. flex-wrap: nowrap;
  1465. align-items: center;
  1466. "
  1467. >
  1468. <div style="max-width: calc(100% - 285px)">
  1469. <span>{{ eItem.value }}</span>
  1470. </div>
  1471. <div
  1472. style="
  1473. padding-left: 25px;
  1474. display: flex;
  1475. flex-direction: row;
  1476. align-items: center;
  1477. "
  1478. >
  1479. <el-rate
  1480. v-model="eItem.score"
  1481. :colors="colors"
  1482. disabled
  1483. ></el-rate>
  1484. </div>
  1485. </div>
  1486. <div
  1487. class="elist_inptu_text"
  1488. style="padding-left: 10px"
  1489. >
  1490. <span v-if="eItem.detail != ''">{{
  1491. eItem.detail
  1492. }}</span>
  1493. <span v-else style="color: #b2b1b3; font-size: 14px"
  1494. >暂无描述...</span
  1495. >
  1496. </div>
  1497. </div>
  1498. </div>
  1499. </div>
  1500. <div
  1501. v-if="evalua"
  1502. style="
  1503. border: 1px solid #e5e5e5;
  1504. width: 650px;
  1505. margin-top: 20px;
  1506. box-shadow: 3px 1px 15px 3px #e0e0e0;
  1507. "
  1508. >
  1509. <div class="e_add_top">
  1510. <div class="e_add_title">
  1511. <span>目标管理名称</span>
  1512. <span>{{ eTitle }}</span>
  1513. <img
  1514. src="../assets/line.png"
  1515. class="cru_line"
  1516. style="
  1517. width: 125px;
  1518. height: 20px;
  1519. bottom: -10px;
  1520. left: 120px;
  1521. "
  1522. />
  1523. <!-- <el-input
  1524. v-model="eTitle"
  1525. placeholder="请输入名称"
  1526. @change="setMindData"
  1527. ></el-input>-->
  1528. </div>
  1529. </div>
  1530. <div class="e_add_content">
  1531. <div class="e_add_list_pbox">
  1532. <div class="e_add_list_pbox_title">
  1533. <span class="type_title">切换模式</span>
  1534. <div class="type_content">
  1535. <span
  1536. :class="{ active: typeMode == 1 }"
  1537. @click="typeMode = 1"
  1538. >目标树</span
  1539. >
  1540. <span
  1541. :class="{ active: typeMode == 2 }"
  1542. @click="typeMode = 2"
  1543. >目标罗盘</span
  1544. >
  1545. <span
  1546. :class="{ active: typeMode == 3 }"
  1547. @click="typeMode = 3"
  1548. >目标看板</span
  1549. >
  1550. </div>
  1551. </div>
  1552. <div class="e_add_list_pbox_content">
  1553. <Mind
  1554. :showBar="false"
  1555. :mindData="data"
  1556. style="width: 100%"
  1557. v-show="typeMode == 1"
  1558. ></Mind>
  1559. <Sunburst
  1560. :Josn="eJson"
  1561. :num="eJSONNum"
  1562. style="width: 100%"
  1563. v-if="typeMode == 2"
  1564. ></Sunburst>
  1565. <SeeBoard
  1566. :Josn="eJson"
  1567. :num="eJSONNum"
  1568. :ename="eTitle"
  1569. style="width: 100%"
  1570. v-if="typeMode == 3"
  1571. ></SeeBoard>
  1572. </div>
  1573. </div>
  1574. </div>
  1575. </div>
  1576. </div>
  1577. </div>
  1578. <!-- <div
  1579. class="project_box"
  1580. style="margin-top: 15px; padding-bottom: 30px"
  1581. >
  1582. <div
  1583. style="
  1584. display: flex;
  1585. flex-wrap: nowrap;
  1586. flex-direction: column;
  1587. position: relative;
  1588. "
  1589. >
  1590. <div class="queTop">
  1591. <div class="question">
  1592. <img src="../assets/icon/homeWork.png" alt="" />
  1593. </div>
  1594. <div class="queTitle">
  1595. <div>作业提交<span>(提交图文视频等)</span></div>
  1596. <div>:任务:{{ task.task }}</div>
  1597. </div>
  1598. </div>
  1599. <div class="ediBottom">
  1600. <div
  1601. class="addEditor"
  1602. style="margin-top: 23px"
  1603. @click="openAddWork"
  1604. v-if="!isNoHomeWork"
  1605. >
  1606. 选择文件
  1607. </div>
  1608. <div
  1609. class="addEditor"
  1610. style="margin-top: 23px"
  1611. @click="openAddWork"
  1612. v-else
  1613. >
  1614. 已提交
  1615. </div>
  1616. </div>
  1617. </div>
  1618. </div>-->
  1619. </div>
  1620. </div>
  1621. <el-dialog
  1622. title="提交实践作业"
  1623. :visible.sync="dialogVisible"
  1624. :append-to-body="true"
  1625. width="500px"
  1626. :before-close="handleClose"
  1627. class="dialog_change"
  1628. >
  1629. <div class="marginT">
  1630. <div>上传文件</div>
  1631. <div
  1632. class="chapter_add"
  1633. @click="addImg($event)"
  1634. v-if="studyJuri[0].cover.length == 0"
  1635. >
  1636. <div class="up_photo">
  1637. <img src="../assets/icon/uploadImg.png" alt />
  1638. </div>
  1639. <input
  1640. type="file"
  1641. accept="application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  1642. capture="camera"
  1643. style="display: none"
  1644. @change="beforeUpload1($event, 1)"
  1645. />
  1646. <!-- <input
  1647. type="file"
  1648. accept="image/*"
  1649. style="display: none"
  1650. @change="beforeUpload1($event, 1)"
  1651. /> -->
  1652. </div>
  1653. <div
  1654. class="chapter_add"
  1655. style="
  1656. display: flex;
  1657. width: 100%;
  1658. flex-direction: row;
  1659. flex-wrap: wrap;
  1660. justify-content: flex-start;
  1661. padding: 15px 0;
  1662. "
  1663. v-if="studyJuri[0].cover.length > 0"
  1664. >
  1665. <div class="upCover">
  1666. <img
  1667. :src="studyJuri[0].cover[0].url"
  1668. alt
  1669. v-if="fileType == 0"
  1670. />
  1671. <img :src="word" alt v-else />
  1672. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  1673. <div class="deleteWord" @click="clean(1)">
  1674. <img src="../assets/icon/deleteWorks.png" alt />
  1675. </div>
  1676. </div>
  1677. </div>
  1678. </div>
  1679. <!-- <div class="first">
  1680. <div>作业名称:</div>
  1681. <div>{{ chapInfoList[courseType].dyName }}</div>
  1682. </div>
  1683. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  1684. <el-input
  1685. type="textarea"
  1686. resize="none"
  1687. rows="7"
  1688. placeholder="输入文字描述..."
  1689. v-model="studyJuri[0].content"
  1690. ></el-input>
  1691. <div class="marginT">
  1692. <div>上传图片</div>
  1693. <div class="chapter_add" @click="addImg($event)">
  1694. <div class="up_photo">
  1695. <img src="../assets/photo.png" alt />
  1696. </div>
  1697. <input
  1698. type="file"
  1699. accept="image/png, image/gif, image/jpeg"
  1700. style="display: none"
  1701. @change="beforeUpload1($event, 1)"
  1702. />
  1703. </div>
  1704. <div
  1705. class="chapter_add"
  1706. style="
  1707. display: flex;
  1708. width: 100%;
  1709. flex-direction: row;
  1710. flex-wrap: wrap;
  1711. justify-content: flex-start;
  1712. "
  1713. v-if="studyJuri[0].cover.length > 0"
  1714. >
  1715. <div
  1716. v-for="(c, cIndex) in studyJuri[0].cover"
  1717. :key="cIndex"
  1718. class="upCover"
  1719. >
  1720. <img :src="c.url != null && c.url != '' ? c.url : mr" alt />
  1721. <span class="picName">{{ c.name }}</span>
  1722. <div class="deleteWord" @click="clean(1)">
  1723. <img src="../assets/icon/delete.png" alt />
  1724. </div>
  1725. </div>
  1726. </div>
  1727. </div>
  1728. <div class="marginT">
  1729. <div>上传视频</div>
  1730. <div class="chapter_add" @click="addImg($event)">
  1731. <div class="up_photo">
  1732. <img src="../assets/vidio.png" alt />
  1733. </div>
  1734. <input
  1735. type="file"
  1736. accept="video/mp4, video/quicktime, video/x-msvideo"
  1737. style="display: none"
  1738. @change="beforeUpload2($event, 2)"
  1739. />
  1740. </div>
  1741. <div
  1742. class="chapter_add"
  1743. style="
  1744. display: flex;
  1745. flex-direction: row;
  1746. flex-wrap: wrap;
  1747. width: 100%;
  1748. justify-content: flex-start;
  1749. "
  1750. v-if="studyJuri[0].upVedio.length > 0"
  1751. >
  1752. <div
  1753. style="
  1754. width: 100%;
  1755. display: flex;
  1756. flex-direction: row;
  1757. flex-wrap: wrap;
  1758. align-content: flex-start;
  1759. justify-content: flex-start;
  1760. align-items: center;
  1761. "
  1762. >
  1763. <div
  1764. class="uploadVedio isAddThings"
  1765. v-for="(v, vIndex) in studyJuri[0].upVedio"
  1766. :key="vIndex"
  1767. >
  1768. <img src="../assets/uploadMp4.png" alt />
  1769. <span>{{ v.name }}</span>
  1770. <div class="deleteWord" @click="clean(2)">
  1771. <img src="../assets/icon/delete.png" alt />
  1772. </div>
  1773. </div>
  1774. </div>
  1775. </div>
  1776. </div>-->
  1777. <div class="upload_send" @click="addCourseWorks(taskCount)">
  1778. 提交
  1779. </div>
  1780. </el-dialog>
  1781. </div>
  1782. </div>
  1783. </div>
  1784. <div v-if="proVisible" class="mask">
  1785. <div class="progressBox">
  1786. <div class="lbox">
  1787. <img src="../assets/loading.gif" />上传中,请稍后
  1788. </div>
  1789. <el-progress
  1790. :text-inside="true"
  1791. :stroke-width="20"
  1792. :percentage="progress"
  1793. style="width: 80%"
  1794. ></el-progress>
  1795. </div>
  1796. </div>
  1797. <el-dialog :visible.sync="pictureDialog" size="tiny">
  1798. <img width="100%" :src="dialogImageUrl" alt />
  1799. </el-dialog>
  1800. <el-dialog
  1801. :title="noteName != '' ? noteName : '查看问卷调查'"
  1802. :visible.sync="dialogVisible5"
  1803. :append-to-body="true"
  1804. width="800px"
  1805. :before-close="handleClose"
  1806. class="dialog_diy"
  1807. >
  1808. <div>
  1809. <div
  1810. class="a_add_title"
  1811. style="
  1812. display: flex;
  1813. flex-direction: row;
  1814. align-items: center;
  1815. justify-content: center;
  1816. "
  1817. >
  1818. <div style="margin-right: 20px; font-size: 20px">问卷标题:</div>
  1819. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  1820. </div>
  1821. <div class="a_addBox">
  1822. <div style="font-size: 16px; color: #c7c7c7">问卷内容</div>
  1823. <div
  1824. class="a_add_box"
  1825. v-for="(item1, index1) in askJson.askCount"
  1826. :key="index1"
  1827. >
  1828. <div class="a_add_head">
  1829. <div style="display: flex">
  1830. {{ index1 + 1 + "、" }}
  1831. <div>问卷题目:{{ askJson.askJson[index1].askstitle }}</div>
  1832. </div>
  1833. </div>
  1834. <div class="a_add_body" v-if="!isAnswer">
  1835. <div class="a_add_input">
  1836. <el-radio-group v-model="radio[index1]">
  1837. <el-radio
  1838. v-for="(item2, checkIndex) in askJson.askJson[index1]
  1839. .checkList"
  1840. :key="checkIndex"
  1841. :label="checkIndex"
  1842. class="redioStyle"
  1843. >{{ item2 }}</el-radio
  1844. >
  1845. </el-radio-group>
  1846. </div>
  1847. </div>
  1848. <div class="a_add_body" v-else>
  1849. <div class="a_add_input">
  1850. <el-radio-group v-model="radio[index1]">
  1851. <el-radio
  1852. v-for="(item2, checkIndex) in askJson.askJson[index1]
  1853. .checkList"
  1854. :key="checkIndex"
  1855. :label="checkIndex"
  1856. disabled
  1857. class="redioStyle"
  1858. >{{ item2 }}</el-radio
  1859. >
  1860. </el-radio-group>
  1861. </div>
  1862. </div>
  1863. </div>
  1864. </div>
  1865. </div>
  1866. <span slot="footer" class="dialog-footer">
  1867. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  1868. >取 消</el-button
  1869. >
  1870. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  1871. >确 定</el-button
  1872. >
  1873. </span>
  1874. </el-dialog>
  1875. <el-dialog
  1876. title="查看富文本"
  1877. :visible.sync="dialogVisible1"
  1878. :append-to-body="true"
  1879. width="500px"
  1880. :before-close="handleClose"
  1881. class="dialog_diy textCss"
  1882. >
  1883. <el-form style="font-size: 20px">
  1884. <el-form-item label="文本标题" class="textTitle">
  1885. <div style="font-size: 20px">{{ text.name }}</div>
  1886. </el-form-item>
  1887. <div>富文本内容</div>
  1888. <div
  1889. v-html="text.url"
  1890. style="font-size: 18px; padding: 40px 0 0 0"
  1891. ></div>
  1892. </el-form>
  1893. <span slot="footer" class="dialog-footer">
  1894. <el-button type="primary" @click="dialogVisible1 = false"
  1895. >确定</el-button
  1896. >
  1897. </span>
  1898. </el-dialog>
  1899. <el-dialog
  1900. title="文件预览"
  1901. :visible.sync="dialogVisible3"
  1902. width="50%"
  1903. :before-close="handleClose"
  1904. class="dialog_diy"
  1905. :class="{ fullStyle: full }"
  1906. >
  1907. <div slot="title" class="header-title">
  1908. <div style="color: #fff">文件预览</div>
  1909. <div style="position: absolute; top: 19px; right: 50px">
  1910. <img
  1911. src="../assets/full.png"
  1912. style="height: 16px; cursor: pointer"
  1913. alt=""
  1914. @click="fullTools"
  1915. />
  1916. </div>
  1917. </div>
  1918. <pdf
  1919. v-if="showPDF"
  1920. :pdfUrl="pptImgUrl"
  1921. style="width: 100%; height: 520px; overflow: auto"
  1922. :class="{ fullStyle: full }"
  1923. ></pdf>
  1924. <iframe
  1925. v-else
  1926. :src="pptImgUrl"
  1927. frameborder="0"
  1928. width="100%"
  1929. height="600"
  1930. :class="{ fullStyle: full }"
  1931. ></iframe>
  1932. </el-dialog>
  1933. <el-dialog
  1934. title="文件预览"
  1935. :visible.sync="dialogVisible6"
  1936. width="50%"
  1937. :before-close="handleClose"
  1938. class="dialog_diy"
  1939. >
  1940. <iframe
  1941. :src="pptImgUrl1"
  1942. frameborder="0"
  1943. width="100%"
  1944. height="600"
  1945. ></iframe>
  1946. </el-dialog>
  1947. <el-dialog
  1948. title="提示"
  1949. :visible.sync="dialogVisible4"
  1950. :append-to-body="true"
  1951. width="800px"
  1952. :before-close="handleClose"
  1953. class="dialog_diy notice"
  1954. >
  1955. <div>此功能暂未开放!</div>
  1956. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  1957. </el-dialog>
  1958. <el-dialog
  1959. title="问答"
  1960. :visible.sync="answerDialogVisible"
  1961. :append-to-body="true"
  1962. width="800px"
  1963. :before-close="handleClose"
  1964. class="dialog_diy"
  1965. >
  1966. <div>
  1967. <div
  1968. style="
  1969. display: flex;
  1970. flex-wrap: nowrap;
  1971. flex-direction: column;
  1972. position: relative;
  1973. "
  1974. >
  1975. <div class="queTop" style="padding: 20px 0 20px 0">
  1976. <div class="question">
  1977. <img src="../assets/icon/question.png" alt />
  1978. </div>
  1979. <div class="queTitle">
  1980. <div style="width: 90px; min-width: 90px">提问:</div>
  1981. <div>{{ answerQ }}</div>
  1982. </div>
  1983. </div>
  1984. <div class="ediBottom">
  1985. <textarea
  1986. rows="6"
  1987. class="binfo_input"
  1988. cols
  1989. style="width: 95%; height: 120px"
  1990. v-model="questionAnswer"
  1991. ></textarea>
  1992. </div>
  1993. </div>
  1994. </div>
  1995. <div slot="footer">
  1996. <el-button @click="answerDialogVisible = false">取 消</el-button>
  1997. <el-button type="primary" @click="addQuestion">提 交</el-button>
  1998. </div>
  1999. </el-dialog>
  2000. <el-dialog
  2001. title="倒计时"
  2002. :visible.sync="timeDialogVisible"
  2003. :append-to-body="true"
  2004. width="800px"
  2005. :before-close="handleClose"
  2006. class="dialog_diy"
  2007. >
  2008. <div>
  2009. <Time v-if="timeDialogVisible"></Time>
  2010. </div>
  2011. <div slot="footer">
  2012. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  2013. </div>
  2014. </el-dialog>
  2015. <el-dialog
  2016. title="权限设置"
  2017. :visible.sync="juriVisible"
  2018. :append-to-body="true"
  2019. width="400px"
  2020. :before-close="handleClose"
  2021. class="dialog_diy"
  2022. >
  2023. <div>
  2024. <div>
  2025. <div>
  2026. <el-switch
  2027. v-model="sIsOpen"
  2028. active-text="学生是否能查看所有作业"
  2029. class="switchCss"
  2030. @change="updateSLook"
  2031. ></el-switch>
  2032. </div>
  2033. </div>
  2034. </div>
  2035. <div slot="footer">
  2036. <el-button
  2037. style="background: #409efe; color: #fff"
  2038. @click="juriVisible = false"
  2039. >关 闭</el-button
  2040. >
  2041. </div>
  2042. </el-dialog>
  2043. <el-dialog
  2044. title="查看文档"
  2045. :visible.sync="fullDialogVisible"
  2046. :append-to-body="true"
  2047. width="100%"
  2048. :before-close="handleClose"
  2049. class="dialog_diy full_diy"
  2050. >
  2051. <div style="height: 100%">
  2052. <iframe
  2053. v-if="fulltype == 2"
  2054. style="width: 100%; height: 100%; border: none"
  2055. :src="fullUrl"
  2056. ></iframe>
  2057. <pdf
  2058. v-else-if="fulltype == 3"
  2059. :pdfUrl="fullUrl"
  2060. style="width: 100%; height: 100%; overflow: auto"
  2061. ></pdf>
  2062. <div
  2063. class="wheel"
  2064. v-if="fulltype == 1"
  2065. style="
  2066. box-shadow: 0 0 6px 1px #f2f2f2;
  2067. width: 100%;
  2068. background: #f1f1f1;
  2069. "
  2070. >
  2071. <div class="title" style="width: 100%; box-sizing: border-box">
  2072. 查看文档
  2073. </div>
  2074. <el-form class="textBox" style="height: 90%">
  2075. <el-form-item class="textTitle">
  2076. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  2077. {{ fullUrl.name }}
  2078. </div>
  2079. </el-form-item>
  2080. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  2081. <div
  2082. v-html="fullUrl.url"
  2083. class="textContent"
  2084. style="height: auto"
  2085. ></div>
  2086. </el-form>
  2087. </div>
  2088. </div>
  2089. <!-- <div slot="footer">
  2090. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  2091. </div> -->
  2092. </el-dialog>
  2093. </div>
  2094. </template>
  2095. <script>
  2096. import "../common/aws-sdk-2.235.1.min.js";
  2097. import pdf from "./components/pdf3";
  2098. import AskStatic from "./components/askStatic";
  2099. import EditorBar from "./tools/wangEnduit.vue";
  2100. import Time from "./tools/time.vue";
  2101. import Mind from "./tools/jsmind.vue";
  2102. import Sunburst from "./tools/sunburst";
  2103. import SeeBoard from "./tools/seeBoard";
  2104. export default {
  2105. components: { EditorBar, Time, pdf, AskStatic, Mind, Sunburst, SeeBoard },
  2106. data() {
  2107. return {
  2108. dialogVisible: false,
  2109. id: this.$route.query.courseId,
  2110. userid: this.$route.query.userid,
  2111. classId: this.$route.query.cid,
  2112. // courseTypeLine: this.$route.query.type,
  2113. oid: this.$route.query.oid,
  2114. tType: this.$route.query.tType,
  2115. courseType: this.$route.query.type,
  2116. screenType: this.$route.query.screenType,
  2117. juriVisible: false,
  2118. pptImgUrl: "",
  2119. pptImgUrl1: [],
  2120. full: false,
  2121. type: 1,
  2122. vedio: [],
  2123. text: [],
  2124. textList: [],
  2125. line: [],
  2126. lineList: [],
  2127. chapTools: [],
  2128. chapToolList: [],
  2129. file: [],
  2130. vedioTime: "",
  2131. upToolImg: "",
  2132. rateList: {
  2133. ca: 0,
  2134. },
  2135. rateParams: [],
  2136. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  2137. studyJuri: [
  2138. {
  2139. content: "",
  2140. cover: [],
  2141. upVedio: [],
  2142. upFile: [],
  2143. },
  2144. ],
  2145. mr: require("../assets/vedioPic.png"),
  2146. word: require("../assets/uploadMp4.png"),
  2147. courseDetail: {},
  2148. chapInfo: [],
  2149. chapInfoList: [],
  2150. taskCount: 0,
  2151. imgList: [],
  2152. noImgList: [],
  2153. navId: "",
  2154. playerOptions: {
  2155. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2156. autoplay: false, //如果true,浏览器准备好时开始回放。
  2157. muted: false, // 默认情况下将会消除任何音频。
  2158. loop: false, // 导致视频一结束就重新开始。
  2159. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2160. language: "zh-CN",
  2161. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2162. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2163. sources: [
  2164. {
  2165. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2166. src: "", //url地址require("../../assets/media/aaa.mp4")
  2167. },
  2168. ],
  2169. // poster: require("../../assets/tu31.png"), //你的封面地址
  2170. // poster: dataRes.imgUrl, //你的封面地址
  2171. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2172. controlBar: {
  2173. timeDivider: true, //当前时间和持续时间的分隔符
  2174. durationDisplay: true, //显示持续时间
  2175. remainingTimeDisplay: false, //是否显示剩余时间功能
  2176. fullscreenToggle: true, //全屏按钮
  2177. },
  2178. },
  2179. playerO: [],
  2180. noneBtnImg: false,
  2181. proVisible: false,
  2182. progress: 0,
  2183. questionAnswer: "",
  2184. answerQ: "", //问答标题
  2185. wbCount: 0,
  2186. wordCount: 0,
  2187. mindCount: 0,
  2188. askCount: 0,
  2189. noteCount: 0,
  2190. mindNetWorkCount: 0,
  2191. libraryCount: 0,
  2192. workCount: 0,
  2193. timeCount: 0,
  2194. answerCount: 0,
  2195. trainCount: 0,
  2196. dialogImageUrl: "",
  2197. pictureDialog: false,
  2198. toolTypeList: [],
  2199. dialogVisible1: false,
  2200. dialogVisible2: false,
  2201. dialogVisible3: false,
  2202. dialogVisible6: false,
  2203. dialogVisible4: false,
  2204. isNoHomeWork: false,
  2205. dialogVisible5: false,
  2206. answerDialogVisible: false,
  2207. timeDialogVisible: false,
  2208. radio: [],
  2209. isClickNavOne: [],
  2210. isAsk: false,
  2211. askJson: {
  2212. askCount: 1,
  2213. askTitle: "",
  2214. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2215. },
  2216. checkJson: [],
  2217. askList: [],
  2218. answerList: [],
  2219. navList: [],
  2220. worksStudent: [],
  2221. workStudent: [],
  2222. noWorksS: [],
  2223. isWorksS: [],
  2224. noWorksStudent: [],
  2225. toolindex: 0,
  2226. workTypeA: false,
  2227. workTypeB: false,
  2228. workTypeC: false,
  2229. isAnswer: false,
  2230. timer: null,
  2231. showType: [],
  2232. fileType: 0,
  2233. showPDF: false,
  2234. noteName: "",
  2235. evaJuri: [],
  2236. evalua: "",
  2237. eTitle: "",
  2238. eName: "",
  2239. eJson: {},
  2240. fid: "", //一级
  2241. sid: "", //二级
  2242. tid: "", //二级
  2243. typeMode: 1,
  2244. eJSONNum: 0,
  2245. Etype: 1,
  2246. data: {
  2247. meta: {
  2248. name: "example",
  2249. author: "dd@163.com",
  2250. version: "0.2",
  2251. },
  2252. format: "node_array",
  2253. data: [{ id: "root", isroot: true, topic: "" }],
  2254. },
  2255. fullDialogVisible: false,
  2256. fulltype: "",
  2257. fullUrl: "",
  2258. };
  2259. },
  2260. methods: {
  2261. previewImg(url) {
  2262. this.$hevueImgPreview(url);
  2263. },
  2264. change(val) {
  2265. console.log(val);
  2266. },
  2267. goTo(path) {
  2268. this.$router.push(path);
  2269. },
  2270. handlePictureCardPreview(url) {
  2271. this.dialogImageUrl = url;
  2272. this.pictureDialog = true;
  2273. },
  2274. clean(type) {
  2275. if (type == 1) {
  2276. this.studyJuri[0].cover.splice(0, 1);
  2277. } else if (type == 2) {
  2278. this.studyJuri[0].upVedio.splice(0, 1);
  2279. } else {
  2280. this.studyJuri[0].upFile.splice(0, 1);
  2281. }
  2282. },
  2283. handleClose(done) {
  2284. done();
  2285. },
  2286. fullTools() {
  2287. this.full = !this.full;
  2288. },
  2289. imgChange(file, fileList, type) {
  2290. if (type == 1) {
  2291. var _tmp = this.studyJuri[0].cover;
  2292. } else if (type == 2) {
  2293. var _tmp = this.studyJuri[0].upVedio;
  2294. } else {
  2295. var _tmp = this.studyJuri[0].upFile;
  2296. }
  2297. this.noneBtnImg = _tmp.length >= 1;
  2298. },
  2299. addImg(e) {
  2300. var el = e.currentTarget;
  2301. el.getElementsByTagName("input")[0].click();
  2302. },
  2303. addCourseWorks(i) {
  2304. var typesql;
  2305. if (this.fileType === 0) {
  2306. typesql = 1;
  2307. } else {
  2308. typesql = 4;
  2309. }
  2310. if (this.workTypeA == true) {
  2311. this.$confirm(
  2312. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  2313. "提示",
  2314. {
  2315. confirmButtonText: "确定",
  2316. cancelButtonText: "取消",
  2317. type: "warning",
  2318. }
  2319. )
  2320. .then(() => {
  2321. let params = [
  2322. {
  2323. uid: this.userid,
  2324. cid: this.id,
  2325. stage: this.courseType,
  2326. task: i,
  2327. tool: this.toolindex,
  2328. content: this.studyJuri[0].cover[0].url,
  2329. type: typesql,
  2330. },
  2331. ];
  2332. this.ajax
  2333. .post(this.$store.state.api + "addCourseWorks", params)
  2334. .then((res) => {
  2335. this.$message({
  2336. message: "提交成功",
  2337. type: "success",
  2338. });
  2339. this.studyJuri[0].cover = [];
  2340. this.dialogVisible = false;
  2341. this.getCourseDetail();
  2342. })
  2343. .catch((err) => {
  2344. this.$message.error("提交失败");
  2345. console.error(err);
  2346. });
  2347. })
  2348. .catch(() => {});
  2349. } else {
  2350. let params = [
  2351. {
  2352. uid: this.userid,
  2353. cid: this.id,
  2354. stage: this.courseType,
  2355. task: i,
  2356. tool: this.toolindex,
  2357. content: this.studyJuri[0].cover[0].url,
  2358. type: typesql,
  2359. },
  2360. ];
  2361. this.ajax
  2362. .post(this.$store.state.api + "addCourseWorks", params)
  2363. .then((res) => {
  2364. this.$message({
  2365. message: "提交成功",
  2366. type: "success",
  2367. });
  2368. this.studyJuri[0].cover = [];
  2369. this.dialogVisible = false;
  2370. this.getCourseDetail();
  2371. })
  2372. .catch((err) => {
  2373. this.$message.error("提交失败");
  2374. console.error(err);
  2375. });
  2376. }
  2377. },
  2378. selectWorksStudent() {
  2379. let params = {
  2380. oid: this.oid,
  2381. cid: this.classId,
  2382. };
  2383. this.ajax
  2384. .get(this.$store.state.api + "selectWorksStudent", params)
  2385. .then((res) => {
  2386. var a = res.data[0];
  2387. for (var i = 0; i < this.isWorksS.length; i++) {
  2388. this.noWorksS[i] = [];
  2389. var studentK = [];
  2390. if (this.isWorksS[i].length > 0) {
  2391. for (var z = 0; z < this.isWorksS[i].length; z++) {
  2392. studentK.push(this.isWorksS[i][z].uid);
  2393. }
  2394. studentK = studentK.join(",");
  2395. for (var j = 0; j < a.length; j++) {
  2396. if (studentK.indexOf(a[j].userid) == -1) {
  2397. this.noWorksS[i].push({ student: a[j].name });
  2398. }
  2399. }
  2400. } else {
  2401. for (var k = 0; k < a.length; k++) {
  2402. this.noWorksS[i].push({ student: a[k].name });
  2403. }
  2404. }
  2405. }
  2406. this.$forceUpdate();
  2407. })
  2408. .catch((err) => {
  2409. console.error(err);
  2410. });
  2411. },
  2412. selectStudent() {
  2413. let params = {
  2414. uid: this.userid,
  2415. cid: this.id,
  2416. s: this.courseType,
  2417. t: this.taskCount,
  2418. };
  2419. this.ajax
  2420. .get(this.$store.state.api + "selectStudentWorks", params)
  2421. .then((res) => {
  2422. var a =
  2423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2424. this.taskCount
  2425. ].toolChoose;
  2426. var b = res.data[0];
  2427. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  2428. for (var i = 0; i < a.length; i++) {
  2429. this.workStudent[i] = [];
  2430. for (var j = 0; j < b.length; j++) {
  2431. if (i == b[j].tool) {
  2432. if (b[j].type == 1 || b[j].type == 4) {
  2433. if (
  2434. c.indexOf(
  2435. b[j].content
  2436. .split(".")
  2437. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  2438. ) != -1
  2439. ) {
  2440. this.workStudent[i].push({
  2441. works: b[j].content,
  2442. sName: b[j].name,
  2443. type: 1,
  2444. time: b[j].time,
  2445. });
  2446. } else {
  2447. this.workStudent[i].push({
  2448. works: b[j].content,
  2449. sName: b[j].name,
  2450. type: 0,
  2451. time: b[j].time,
  2452. });
  2453. }
  2454. } else {
  2455. this.workStudent[i].push({
  2456. works: b[j].content,
  2457. sName: b[j].name,
  2458. type: 2,
  2459. time: b[j].time,
  2460. });
  2461. }
  2462. }
  2463. }
  2464. }
  2465. })
  2466. .catch((err) => {
  2467. console.error(err);
  2468. });
  2469. },
  2470. selectSWorks() {
  2471. let params = {
  2472. cid: this.id,
  2473. // s: this.courseType,
  2474. // t: this.taskCount,
  2475. };
  2476. this.ajax
  2477. .get(this.$store.state.api + "selectSWorks2", params)
  2478. .then((res) => {
  2479. // var a =
  2480. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2481. // this.taskCount
  2482. // ].toolChoose;
  2483. var b = res.data[0];
  2484. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  2485. var a = this.chapInfoList;
  2486. for (var q = 0; q < a.length; q++) {
  2487. this.worksStudent[q] = [];
  2488. this.isWorksS[q] = [];
  2489. this.checkJson[q] = [];
  2490. var d = a[q].chapterInfo[0].taskJson;
  2491. for (var w = 0; w < d.length; w++) {
  2492. this.worksStudent[q][w] = [];
  2493. this.isWorksS[q][w] = [];
  2494. this.checkJson[q][w] = [];
  2495. var e = d[w].toolChoose;
  2496. for (var i = 0; i < e.length; i++) {
  2497. this.worksStudent[q][w][i] = [];
  2498. this.isWorksS[q][w][i] = [];
  2499. this.checkJson[q][w][i] = [];
  2500. for (var j = 0; j < b.length; j++) {
  2501. var data = b[j];
  2502. if (i == b[j].tool) {
  2503. if (data.type == 2) {
  2504. var checkL = JSON.parse(data.content)[0].anwer.split(",");
  2505. for (var z = 0; z < checkL.length; z++) {
  2506. if (!this.checkJson[q][w][i][z]) {
  2507. this.checkJson[q][w][i].push({ checkCount: [] });
  2508. }
  2509. if (!this.checkJson[q][w][i][z].checkCount.length) {
  2510. this.checkJson[q][w][i][z].checkCount = [];
  2511. let _askItemCount = JSON.parse(data.content)[0]
  2512. .askJson.askJson[z].askItem;
  2513. for (var aic = 0; aic < _askItemCount; aic++) {
  2514. this.checkJson[q][w][i][z].checkCount.push(0);
  2515. }
  2516. }
  2517. this.checkJson[q][w][i][z].checkCount[
  2518. parseInt(checkL[z])
  2519. ]
  2520. ? this.checkJson[q][w][i][z].checkCount[
  2521. parseInt(checkL[z])
  2522. ]++
  2523. : (this.checkJson[q][w][i][z].checkCount[
  2524. parseInt(checkL[z])
  2525. ] = 1);
  2526. }
  2527. }
  2528. if (b[j].stage == q && b[j].task == w) {
  2529. // 1、电子白板,3、思维导图,6协同文档,7思维网格 16、作业提交
  2530. let _toolsAarry1 = [1, 3, 6, 7, 16];
  2531. let _toolsAarry2 = [4];
  2532. let _toolsAarry3 = [15];
  2533. if (
  2534. (b[j].type == 1 || b[j].type == 4) &&
  2535. _toolsAarry1.indexOf(e[i].tool[0]) != -1
  2536. ) {
  2537. if (
  2538. c.indexOf(
  2539. b[j].content
  2540. .split(".")
  2541. [
  2542. b[j].content.split(".").length - 1
  2543. ].toLocaleUpperCase()
  2544. ) != -1
  2545. ) {
  2546. this.worksStudent[q][w][i].push({
  2547. works: b[j].content,
  2548. sName: b[j].name,
  2549. type: 1,
  2550. time: b[j].time,
  2551. });
  2552. } else {
  2553. this.worksStudent[q][w][i].push({
  2554. works: b[j].content,
  2555. sName: b[j].name,
  2556. type: 0,
  2557. time: b[j].time,
  2558. });
  2559. }
  2560. } else {
  2561. if (
  2562. b[j].type == 2 &&
  2563. _toolsAarry2.indexOf(e[i].tool[0]) != -1
  2564. ) {
  2565. this.worksStudent[q][w][i].push({
  2566. works: b[j].content,
  2567. sName: b[j].name,
  2568. type: 2,
  2569. time: b[j].time,
  2570. });
  2571. }
  2572. if (
  2573. b[j].type == 3 &&
  2574. _toolsAarry3.indexOf(e[i].tool[0]) != -1
  2575. ) {
  2576. this.worksStudent[q][w][i].push({
  2577. works: b[j].content,
  2578. sName: b[j].name,
  2579. type: 2,
  2580. time: b[j].time,
  2581. });
  2582. }
  2583. }
  2584. }
  2585. this.isWorksS[q][w][i].push({
  2586. uid: b[j].userid,
  2587. sName: b[j].name,
  2588. });
  2589. }
  2590. }
  2591. }
  2592. }
  2593. }
  2594. for (var q = 0; q < a.length; q++) {
  2595. var d = a[q].chapterInfo[0].taskJson;
  2596. for (var w = 0; w < d.length; w++) {
  2597. var e = d[w].toolChoose;
  2598. for (var i = 0; i < e.length; i++) {
  2599. for (var j = 0; j < b.length; j++) {
  2600. var data = b[j];
  2601. if (i == b[j].tool) {
  2602. if (data.type == 2) {
  2603. for (var z = 0; z < this.checkJson[q][w][i].length; z++) {
  2604. this.checkJson[q][w][i][z].checkPerent = [];
  2605. for (
  2606. var k = 0;
  2607. k < this.checkJson[q][w][i][z].checkCount.length;
  2608. k++
  2609. ) {
  2610. this.checkJson[q][w][i][z].checkPerent.push(
  2611. Math.round(
  2612. (this.checkJson[q][w][i][z].checkCount[k] /
  2613. parseInt(this.worksStudent[q][w][i].length)) *
  2614. 100
  2615. )
  2616. );
  2617. }
  2618. }
  2619. }
  2620. }
  2621. }
  2622. }
  2623. }
  2624. }
  2625. this.selectWorksStudent();
  2626. })
  2627. .catch((err) => {
  2628. console.error(err);
  2629. });
  2630. },
  2631. beforeUpload1(event, type, i) {
  2632. var file = event.target.files[0];
  2633. var credentials = {
  2634. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  2635. secretAccessKey: "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",
  2636. }; //秘钥形式的登录上传
  2637. window.AWS.config.update(credentials);
  2638. window.AWS.config.region = "cn-northwest-1"; //设置区域
  2639. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  2640. var _this = this;
  2641. var b = [
  2642. "DOC",
  2643. "DOCX",
  2644. "DOCM",
  2645. "DOTM",
  2646. "DOTX",
  2647. "PPTX",
  2648. "PPSX",
  2649. "PPT",
  2650. "PPS",
  2651. "PPTM",
  2652. "POTM",
  2653. "PPAM",
  2654. "POTX",
  2655. "PPSM",
  2656. ];
  2657. if (
  2658. b.indexOf(
  2659. file.name
  2660. .split(".")
  2661. [file.name.split(".").length - 1].toLocaleUpperCase()
  2662. ) != -1
  2663. ) {
  2664. if (file.size / 1024 / 1024 > 10) {
  2665. _this.$message({
  2666. message: "上传文件大于10兆,请重新选择文件!",
  2667. type: "success",
  2668. });
  2669. return;
  2670. }
  2671. } else {
  2672. if (file.size / 1024 / 1024 > 5) {
  2673. _this.$message({
  2674. message: "上传文件大于5兆,请重新选择文件!",
  2675. type: "success",
  2676. });
  2677. return;
  2678. }
  2679. }
  2680. _this.progress = 0;
  2681. _this.proVisible = true;
  2682. if (file) {
  2683. var params = {
  2684. Key:
  2685. file.name.split(".")[0] +
  2686. new Date().getTime() +
  2687. "." +
  2688. file.name.split(".")[file.name.split(".").length - 1],
  2689. ContentType: file.type,
  2690. Body: file,
  2691. "Access-Control-Allow-Credentials": "*",
  2692. ACL: "public-read",
  2693. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  2694. var options = {
  2695. partSize: 1024 * 1024 * 1024,
  2696. queueSize: 2,
  2697. leavePartsOnError: true,
  2698. };
  2699. bucket
  2700. .upload(params, options)
  2701. .on("httpUploadProgress", function (evt) {
  2702. //这里可以写进度条
  2703. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  2704. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  2705. })
  2706. .send(function (err, data) {
  2707. _this.progress = 100;
  2708. setTimeout(() => {
  2709. _this.proVisible = false;
  2710. }, 1000);
  2711. if (err) {
  2712. var a = _this.$refs.upload1.uploadFiles;
  2713. a.splice(a.length - 1, a.length);
  2714. _this.$message.error("上传失败");
  2715. } else {
  2716. if (type == 1) {
  2717. _this.studyJuri[0].cover.push({
  2718. name: file.name,
  2719. url: data.Location,
  2720. uid: file.uid,
  2721. });
  2722. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  2723. if (
  2724. b.indexOf(
  2725. _this.studyJuri[0].cover[0].url
  2726. .split(".")
  2727. [
  2728. _this.studyJuri[0].cover[0].url.split(".").length - 1
  2729. ].toLocaleUpperCase()
  2730. ) != -1
  2731. ) {
  2732. _this.fileType = 1;
  2733. } else {
  2734. _this.fileType = 0;
  2735. }
  2736. _this.imgChange(null, null, type);
  2737. } else if (type == 2) {
  2738. _this.upToolImg = data.Location;
  2739. _this.imgChange(null, null, type);
  2740. _this.addCourseWorks(i);
  2741. }
  2742. _this.imgChange(null, null, type);
  2743. console.log(data.Location);
  2744. }
  2745. });
  2746. }
  2747. },
  2748. beforeUpload2(event, type) {
  2749. var file = event.target.files[0];
  2750. var credentials = {
  2751. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  2752. secretAccessKey: "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",
  2753. }; //秘钥形式的登录上传
  2754. window.AWS.config.update(credentials);
  2755. window.AWS.config.region = "cn-northwest-1"; //设置区域
  2756. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  2757. var _this = this;
  2758. _this.progress = 0;
  2759. _this.proVisible = true;
  2760. if (file) {
  2761. var params = {
  2762. Key:
  2763. file.name.split(".")[0] +
  2764. new Date().getTime() +
  2765. "." +
  2766. file.name.split(".")[file.name.split(".").length - 1],
  2767. ContentType: file.type,
  2768. Body: file,
  2769. "Access-Control-Allow-Credentials": "*",
  2770. ACL: "public-read",
  2771. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  2772. var options = {
  2773. partSize: 2048 * 1024 * 1024,
  2774. queueSize: 2,
  2775. leavePartsOnError: true,
  2776. };
  2777. bucket
  2778. .upload(params, options)
  2779. .on("httpUploadProgress", function (evt) {
  2780. //这里可以写进度条
  2781. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  2782. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  2783. })
  2784. .send(function (err, data) {
  2785. _this.progress = 100;
  2786. setTimeout(() => {
  2787. _this.proVisible = false;
  2788. }, 1000);
  2789. if (err) {
  2790. var a = _this.$refs.upload1.uploadFiles;
  2791. a.splice(a.length - 1, a.length);
  2792. _this.$message.error("上传失败");
  2793. } else {
  2794. if (type == 2) {
  2795. _this.studyJuri[0].upVedio.push({
  2796. name: file.name,
  2797. url: data.Location,
  2798. uid: file.uid,
  2799. });
  2800. _this.imgChange(null, null, type);
  2801. } else if (type == 3) {
  2802. _this.studyJuri[0].upFile.push({
  2803. name: file.name,
  2804. url: data.Location,
  2805. uid: file.uid,
  2806. });
  2807. _this.imgChange(null, null, type);
  2808. }
  2809. console.log(data.Location);
  2810. }
  2811. });
  2812. }
  2813. },
  2814. allScrell() {
  2815. window.parent.postMessage({ allScreen: this.screenType }, "*");
  2816. },
  2817. nextOrpreSteps(t) {
  2818. // this.showType = 0;
  2819. var b = this.chapInfoList.length - 1;
  2820. if (t == 0) {
  2821. if (this.courseType == 0) {
  2822. if (this.taskCount == 0) {
  2823. this.navList[this.courseType].isOpen = false;
  2824. this.courseType = b;
  2825. this.taskCount =
  2826. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  2827. .length - 1;
  2828. this.navList[this.courseType].isOpen = true;
  2829. } else {
  2830. this.taskCount--;
  2831. }
  2832. } else {
  2833. if (this.taskCount == 0) {
  2834. this.navList[this.courseType].isOpen = false;
  2835. this.courseType--;
  2836. this.taskCount =
  2837. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  2838. .length - 1;
  2839. this.navList[this.courseType].isOpen = true;
  2840. } else {
  2841. this.taskCount--;
  2842. }
  2843. }
  2844. } else {
  2845. var b = this.chapInfoList.length - 1;
  2846. if (this.courseType == b) {
  2847. if (
  2848. this.taskCount ==
  2849. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  2850. 1
  2851. ) {
  2852. this.navList[this.courseType].isOpen = false;
  2853. this.courseType = 0;
  2854. this.taskCount = 0;
  2855. this.navList[this.courseType].isOpen = true;
  2856. } else {
  2857. this.taskCount++;
  2858. }
  2859. } else {
  2860. if (
  2861. this.taskCount ==
  2862. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  2863. 1
  2864. ) {
  2865. this.navList[this.courseType].isOpen = false;
  2866. this.courseType++;
  2867. this.taskCount = 0;
  2868. this.navList[this.courseType].isOpen = true;
  2869. } else {
  2870. this.taskCount++;
  2871. }
  2872. }
  2873. // if (
  2874. // this.taskCount ==
  2875. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  2876. // ) {
  2877. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  2878. // } else {
  2879. // this.taskCount++;
  2880. // }
  2881. }
  2882. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  2883. if (this.vedio[this.taskCount].length > 0) {
  2884. var a =
  2885. document.getElementsByClassName("box_course")[this.taskCount]
  2886. .offsetHeight;
  2887. document.getElementsByClassName("vedioList")[
  2888. this.taskCount
  2889. ].style.height = a + "px";
  2890. document.getElementsByClassName("navBox")[this.taskCount].style.height =
  2891. a - 40 + "px";
  2892. }
  2893. this.isNoHomeWork = false;
  2894. (this.studyJuri = [
  2895. {
  2896. content: "",
  2897. cover: [],
  2898. upVedio: [],
  2899. upFile: [],
  2900. },
  2901. ]),
  2902. (this.radio = []);
  2903. this.getHomeWork();
  2904. this.getCourseDetail();
  2905. },
  2906. openTask(s, n, i) {
  2907. var a = s + "-" + n;
  2908. var b = document.getElementById(a);
  2909. document.documentElement.scrollTop = b.offsetTop;
  2910. this.courseType = s;
  2911. this.navId = i;
  2912. this.taskCount = n;
  2913. this.showType = [];
  2914. this.isNoHomeWork = false;
  2915. (this.studyJuri = [
  2916. {
  2917. content: "",
  2918. cover: [],
  2919. upVedio: [],
  2920. upFile: [],
  2921. },
  2922. ]),
  2923. (this.radio = []);
  2924. // setTimeout(() => {
  2925. // let a = document.getElementById(i);
  2926. // if (a.offsetTop - 110 == 0) {
  2927. // window.scrollTo(0, 0);
  2928. // } else {
  2929. // window.scrollTo(0, a.offsetTop);
  2930. // }
  2931. // }, 0);
  2932. this.getHomeWork();
  2933. this.getCourseDetail();
  2934. this.$forceUpdate();
  2935. },
  2936. get(i) {
  2937. this.navList[i].isOpen = !this.navList[i].isOpen;
  2938. },
  2939. addQuestion() {
  2940. this.answerList.push({
  2941. answerTitle: this.answerQ,
  2942. answer: this.questionAnswer,
  2943. });
  2944. let params = [
  2945. {
  2946. uid: this.userid,
  2947. cid: this.id,
  2948. stage: this.courseType,
  2949. task: this.taskCount,
  2950. tool: this.toolindex,
  2951. content: JSON.stringify(this.answerList),
  2952. type: 3,
  2953. },
  2954. ];
  2955. this.ajax
  2956. .post(this.$store.state.api + "addCourseWorks", params)
  2957. .then((res) => {
  2958. this.$message({
  2959. message: "提交成功",
  2960. type: "success",
  2961. });
  2962. this.answerList = [];
  2963. this.answerDialogVisible = false;
  2964. })
  2965. .catch((err) => {
  2966. this.$message.error("提交失败");
  2967. console.error(err);
  2968. });
  2969. },
  2970. getCourseDetail() {
  2971. const loading = this.$loading.service({
  2972. background: "rgba(255, 255, 255, 0.7)",
  2973. target: document.querySelector(".student_table"),
  2974. });
  2975. // this.navList[0].isOpen = false;
  2976. // this.navList[this.courseType].isOpen = true;
  2977. // this.courseType = this.courseTypeLine;
  2978. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  2979. let params = {
  2980. courseId: this.id,
  2981. };
  2982. this.ajax
  2983. .get(this.$store.state.api + "selectCourseDetail", params)
  2984. .then((res) => {
  2985. loading.close();
  2986. // var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  2987. // .chapterInfo[0].taskJson;
  2988. var a = JSON.parse(res.data[0][0].chapters);
  2989. var b = [
  2990. "AVI",
  2991. "NAVI",
  2992. "MPEG",
  2993. "ASF",
  2994. "MOV",
  2995. "WMV",
  2996. "3GP",
  2997. "RM",
  2998. "RMVB",
  2999. "FLV",
  3000. "F4V",
  3001. "H.264",
  3002. "H.265",
  3003. "REAL VIDEO",
  3004. "MKV",
  3005. "WebM",
  3006. "HDDVD",
  3007. "MP4",
  3008. "MPG",
  3009. "M4V",
  3010. "MGV",
  3011. "OGV",
  3012. "QTM",
  3013. "STR",
  3014. "AMC",
  3015. "DVX",
  3016. "EVO",
  3017. "DAT",
  3018. "OGG",
  3019. "OGM",
  3020. ];
  3021. for (var i = 0; i < a.length; i++) {
  3022. var c = a[i].chapterInfo[0].taskJson;
  3023. this.vedio[i] = [];
  3024. this.textList[i] = [];
  3025. this.lineList[i] = [];
  3026. this.chapToolList[i] = [];
  3027. this.file[i] = [];
  3028. this.playerO[i] = [];
  3029. this.isClickNavOne[i] = [];
  3030. for (var j = 0; j < c.length; j++) {
  3031. var d = c[j].chapterData;
  3032. this.vedio[i][j] = [];
  3033. this.textList[i][j] = [];
  3034. this.lineList[i][j] = [];
  3035. this.chapToolList[i][j] = [];
  3036. this.file[i][j] = [];
  3037. this.isClickNavOne[i][j] = [];
  3038. for (var z = 0; z < d.length; z++) {
  3039. if (d[z].type == 7) {
  3040. this.chapToolList[i][j].push(d[z]);
  3041. } else if (d[z].type == 8) {
  3042. this.lineList[i][j].push(d[z]);
  3043. } else if (d[z].type == 6) {
  3044. this.textList[i][j].push(d[z]);
  3045. } else {
  3046. if (
  3047. b.indexOf(
  3048. d[z].url
  3049. .split(".")
  3050. [d[z].url.split(".").length - 1].toLocaleUpperCase()
  3051. ) != -1
  3052. ) {
  3053. this.vedio[i][j].push(d[z]);
  3054. } else {
  3055. this.file[i][j].push(d[z]);
  3056. }
  3057. }
  3058. }
  3059. var e = JSON.parse(JSON.stringify(this.playerOptions));
  3060. e.sources[0].src =
  3061. this.vedio[i][j].length > 0 ? this.vedio[i][j][0].url : this.mr;
  3062. this.playerO[i][j] = e;
  3063. }
  3064. }
  3065. this.courseDetail = res.data[0][0];
  3066. this.evalua = res.data[0][0].evaId;
  3067. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  3068. this.courseType
  3069. ];
  3070. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  3071. if (this.navList.length == 0) {
  3072. this.navList = [];
  3073. for (var l = 0; l < this.chapInfoList.length; l++) {
  3074. var q = this.chapInfoList[l].dyName;
  3075. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  3076. var e;
  3077. this.navList.push({
  3078. dyName: q,
  3079. isOpen: l === 0 ? true : false,
  3080. task: [],
  3081. });
  3082. for (var r = 0; r < w.length; r++) {
  3083. e = w[r].task;
  3084. this.navList[l].task.push({ taskName: e, id: l + "-" + r });
  3085. this.navId = this.navId ? this.navId : l + "-" + r;
  3086. }
  3087. }
  3088. }
  3089. this.navList[0].isOpen = false;
  3090. this.navList[this.courseType].isOpen = true;
  3091. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  3092. for (var l = 0; l < this.chapInfoList.length; l++) {
  3093. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  3094. for (var m = 0; m < w.length; m++) {
  3095. w[m].id = l + "-" + m;
  3096. }
  3097. }
  3098. for (var i = 0; i < a.length; i++) {
  3099. this.showType[i] = [];
  3100. this.pptImgUrl1[i] = [];
  3101. var f = a[i].chapterInfo[0].taskJson;
  3102. for (var j = 0; j < f.length; j++) {
  3103. this.showType[i][j] = 0;
  3104. if (!this.vedio[i][j][0] || this.vedio[i][j][0].url == "") {
  3105. if (f[j].chapterData.length > 0) {
  3106. if (f[j].chapterData[0].type != 8) {
  3107. if (f[j].chapterData[0].type == 3) {
  3108. let _url = f[j].chapterData[0].url;
  3109. if (
  3110. _url
  3111. .split(".")
  3112. [_url.split(".").length - 1].toLocaleUpperCase() ==
  3113. "PDF"
  3114. ) {
  3115. this.showType[i][j] = 3;
  3116. this.pptImgUrl1[i][j] = _url;
  3117. this.isClickNavOne[i][j][0] = "word0";
  3118. } else if (
  3119. this.isAssetTypeAnImage(
  3120. _url
  3121. .split(".")
  3122. [_url.split(".").length - 1].toLocaleLowerCase()
  3123. )
  3124. ) {
  3125. this.showType[i][j] = 4;
  3126. this.pptImgUrl1[i][j] = _url;
  3127. this.isClickNavOne[i][j][0] = "word0";
  3128. } else {
  3129. this.showType[i][j] = 2;
  3130. this.pptImgUrl1[i][j] =
  3131. "https://view.officeapps.live.com/op/view.aspx?src=" +
  3132. _url;
  3133. this.isClickNavOne[i][j][0] = "word0";
  3134. }
  3135. } else if (f[j].chapterData[0].type == 6) {
  3136. this.showType[i][j] = 1;
  3137. this.text = this.textList[i][j][0];
  3138. this.isClickNavOne[i][j][0] = "text0";
  3139. }
  3140. } else {
  3141. for (var y = 0; y < f[j].chapterData.length; y++) {
  3142. if (f[j].chapterData[y].type != 8) {
  3143. if (f[j].chapterData[y].type == 3) {
  3144. let _url = f[j].chapterData[y].url;
  3145. if (
  3146. _url
  3147. .split(".")
  3148. [
  3149. _url.split(".").length - 1
  3150. ].toLocaleUpperCase() == "PDF"
  3151. ) {
  3152. this.showType[i][j] = 3;
  3153. this.pptImgUrl1[i][j] = _url;
  3154. this.isClickNavOne[i][j][0] = "word0";
  3155. } else if (
  3156. this.isAssetTypeAnImage(
  3157. _url
  3158. .split(".")
  3159. [_url.split(".").length - 1].toLocaleLowerCase()
  3160. )
  3161. ) {
  3162. this.showType[i][j] = 4;
  3163. this.pptImgUrl1[i][j] = _url;
  3164. this.isClickNavOne[i][j][0] = "word0";
  3165. } else {
  3166. this.showType[i][j] = 2;
  3167. this.pptImgUrl1[i][j] =
  3168. "https://view.officeapps.live.com/op/view.aspx?src=" +
  3169. _url;
  3170. this.isClickNavOne[i][j][0] = "word0";
  3171. }
  3172. } else if (f[j].chapterData[y].type == 6) {
  3173. this.showType[i][j] = 1;
  3174. this.text = this.textList[i][j][0];
  3175. this.isClickNavOne[i][j][0] = "text0";
  3176. }
  3177. }
  3178. }
  3179. }
  3180. }
  3181. } else {
  3182. this.isClickNavOne[i][j][0] = "video0";
  3183. }
  3184. }
  3185. }
  3186. setTimeout(() => {
  3187. this.checkEva();
  3188. }, 500);
  3189. this.selectStudent();
  3190. this.selectSWorks();
  3191. let _this = this;
  3192. _this.timer = setInterval(function () {
  3193. _this.selectSWorks();
  3194. _this.selectStudent();
  3195. _this.selectSLook();
  3196. }, 5000);
  3197. _this.$nextTick(function () {
  3198. setTimeout(() => {
  3199. let _box = document.getElementsByClassName("box_course");
  3200. for (var i = 0; i < _box.length; i++) {
  3201. var a =
  3202. document.getElementsByClassName("box_course")[i].offsetHeight;
  3203. document.getElementsByClassName("vedioList")[i].style.height =
  3204. a + "px";
  3205. document.getElementsByClassName("navBox")[i].style.height =
  3206. a - 40 + "px";
  3207. }
  3208. let _vedio = _this.vedio;
  3209. let _count = 0;
  3210. _this.vedioTime = [];
  3211. for (var i = 0; i < _vedio.length; i++) {
  3212. if (typeof _this.vedioTime != "object") {
  3213. _this.vedioTime = [];
  3214. }
  3215. for (var j = 0; j < _vedio[i].length; j++) {
  3216. if (!_this.vedioTime[i]) {
  3217. _this.vedioTime[i] = [];
  3218. }
  3219. for (var k = 0; k < _vedio[i][j].length; k++) {
  3220. if (!_this.vedioTime[i][j]) {
  3221. _this.vedioTime[i][j] = [];
  3222. }
  3223. if (_vedio[i][j][k]) {
  3224. _this.vedioTime[i][j].push(
  3225. document.getElementsByClassName("vjs-duration-display")[
  3226. _count
  3227. ].textContent
  3228. );
  3229. _count++;
  3230. }
  3231. }
  3232. }
  3233. }
  3234. }, 500);
  3235. });
  3236. // if (_this.vedio[_this.taskCount].length > 0) {
  3237. // _this.vedioTime = document.getElementsByClassName(
  3238. // "vjs-duration-display"
  3239. // )[0].textContent;
  3240. // }
  3241. })
  3242. .catch((err) => {
  3243. loading.close();
  3244. console.error(err);
  3245. });
  3246. },
  3247. getHomeWork() {
  3248. let params = {
  3249. cid: this.id,
  3250. stage: this.courseType,
  3251. task: this.taskCount,
  3252. uid: this.userid,
  3253. };
  3254. this.ajax
  3255. .get(this.$store.state.api + "selectWork", params)
  3256. .then((res) => {
  3257. if (res.data[0].length > 0) {
  3258. this.studyJuri = JSON.parse(res.data[0][0].content);
  3259. this.isNoHomeWork = true;
  3260. }
  3261. })
  3262. .catch((err) => {
  3263. console.error(err);
  3264. });
  3265. },
  3266. isAssetTypeAnImage(ext) {
  3267. return (
  3268. [
  3269. "png",
  3270. "jpg",
  3271. "jpeg",
  3272. "bmp",
  3273. "gif",
  3274. "webp",
  3275. "psd",
  3276. "svg",
  3277. "tiff",
  3278. ].indexOf(ext) !== -1
  3279. );
  3280. },
  3281. // switchVideo(media) {
  3282. // this.playerO = {};
  3283. // this.playerOptions.poster = "";
  3284. // this.playerOptions.sources[0].src = media;
  3285. // this.playerO = this.playerOptions;
  3286. // },
  3287. // onPlayerPlay() {},
  3288. lookVedio(u, i, j, v) {
  3289. this.isClickNavOne[i][j] = [];
  3290. var e = JSON.parse(JSON.stringify(this.playerOptions));
  3291. e.sources[0].src = u;
  3292. this.playerO[i][j] = e;
  3293. this.showType[i][j] = 0;
  3294. this.isClickNavOne[i][j][v] = "video" + v;
  3295. },
  3296. lookText(i, j, t) {
  3297. this.isClickNavOne[i][j] = [];
  3298. // this.textList[i][j][t] = this.textList[i][j][t];
  3299. // this.dialogVisible1 = true;
  3300. this.showType[i][j] = 1;
  3301. this.isClickNavOne[i][j][t] = "text" + t;
  3302. },
  3303. lookTools(i, t) {
  3304. this.chapTools = this.chapToolList[i][t];
  3305. this.dialogVisible2 = true;
  3306. },
  3307. openFile(f) {
  3308. this.pptImgUrl = "";
  3309. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  3310. if (
  3311. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  3312. -1
  3313. ) {
  3314. this.pptImgUrl =
  3315. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  3316. this.showPDF = false;
  3317. this.dialogVisible3 = true;
  3318. } else if (
  3319. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3320. ) {
  3321. this.pptImgUrl = f;
  3322. this.showPDF = true;
  3323. this.dialogVisible3 = true;
  3324. }
  3325. },
  3326. downFile(f, i, j, k) {
  3327. this.isClickNavOne[j][k] = [];
  3328. this.pptImgUrl1[j][k] = [];
  3329. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  3330. if (
  3331. a.indexOf(
  3332. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  3333. ) != -1
  3334. ) {
  3335. this.pptImgUrl1[j][k] =
  3336. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  3337. // this.dialogVisible3 = true;
  3338. this.showType[j][k] = 2;
  3339. } else if (
  3340. this.isAssetTypeAnImage(
  3341. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  3342. )
  3343. ) {
  3344. this.showType[j][k] = 4;
  3345. this.pptImgUrl1[j][k] = f.url;
  3346. } else if (
  3347. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  3348. "PDF"
  3349. ) {
  3350. this.pptImgUrl1[j][k] = f.url;
  3351. // this.dialogVisible3 = true;
  3352. this.showType[j][k] = 3;
  3353. } else {
  3354. window.open(this.file[i].url);
  3355. }
  3356. this.isClickNavOne[j][k][i] = "word" + i;
  3357. },
  3358. downFileList(i) {
  3359. window.open(this.noImgList[i].url);
  3360. },
  3361. openAddWork() {
  3362. this.dialogVisible = true;
  3363. },
  3364. addStudentAsk() {
  3365. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  3366. let params = [
  3367. {
  3368. uid: this.userid,
  3369. cid: this.id,
  3370. stage: this.courseType,
  3371. task: this.taskCount,
  3372. tool: this.toolindex,
  3373. content: JSON.stringify(this.askList),
  3374. type: 2,
  3375. },
  3376. ];
  3377. this.ajax
  3378. .post(this.$store.state.api + "addCourseWorks", params)
  3379. .then((res) => {
  3380. this.$message({
  3381. message: "提交成功",
  3382. type: "success",
  3383. });
  3384. this.askList = [];
  3385. this.dialogVisible5 = false;
  3386. })
  3387. .catch((err) => {
  3388. this.$message.error("提交失败");
  3389. console.error(err);
  3390. });
  3391. },
  3392. updateSLook() {
  3393. let params = {
  3394. sopen: this.sIsOpen == false ? 1 : 2,
  3395. cid: this.id,
  3396. };
  3397. this.ajax
  3398. .get(this.$store.state.api + "updateCourseSLook", params)
  3399. .then((res) => {
  3400. if (this.sIsOpen == true) {
  3401. this.$message({
  3402. message: "权限开放成功",
  3403. type: "success",
  3404. });
  3405. } else {
  3406. this.$message({
  3407. message: "权限关闭成功",
  3408. type: "success",
  3409. });
  3410. }
  3411. })
  3412. .catch((err) => {
  3413. console.error(err);
  3414. });
  3415. },
  3416. addWork() {
  3417. if (this.studyJuri[0].content == "") {
  3418. this.$message.error("请将信息填写完整");
  3419. return;
  3420. } else if (this.studyJuri[0].cover.length == 0) {
  3421. this.$message.error("请将信息填写完整");
  3422. return;
  3423. } else if (this.studyJuri[0].upVedio.length == 0) {
  3424. this.$message.error("请将信息填写完整");
  3425. return;
  3426. }
  3427. if (this.isNoHomeWork) {
  3428. this.$confirm(
  3429. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  3430. "提示",
  3431. {
  3432. confirmButtonText: "确定",
  3433. cancelButtonText: "取消",
  3434. type: "warning",
  3435. }
  3436. )
  3437. .then(() => {
  3438. let params = [
  3439. {
  3440. uid: this.userid,
  3441. cid: this.id,
  3442. stage: this.courseType,
  3443. task: this.taskCount,
  3444. content: JSON.stringify(this.studyJuri),
  3445. },
  3446. ];
  3447. this.ajax
  3448. .post(this.$store.state.api + "addWorks", params)
  3449. .then((res) => {
  3450. this.$message({
  3451. message: "提交成功",
  3452. type: "success",
  3453. });
  3454. this.isNoHomeWork = true;
  3455. this.dialogVisible = false;
  3456. })
  3457. .catch((err) => {
  3458. this.$message.error("提交失败");
  3459. console.error(err);
  3460. });
  3461. })
  3462. .catch(() => {});
  3463. } else {
  3464. let params = [
  3465. {
  3466. uid: this.userid,
  3467. cid: this.id,
  3468. stage: this.courseType,
  3469. task: this.taskCount,
  3470. content: JSON.stringify(this.studyJuri),
  3471. },
  3472. ];
  3473. this.ajax
  3474. .post(this.$store.state.api + "addWorks", params)
  3475. .then((res) => {
  3476. this.$message({
  3477. message: "提交成功",
  3478. type: "success",
  3479. });
  3480. this.isNoHomeWork = true;
  3481. this.dialogVisible = false;
  3482. })
  3483. .catch((err) => {
  3484. this.$message.error("提交失败");
  3485. console.error(err);
  3486. });
  3487. }
  3488. },
  3489. selectCount() {
  3490. let params = {
  3491. cid: this.id,
  3492. chid: this.courseType,
  3493. uid: this.userid,
  3494. };
  3495. this.ajax
  3496. .get(this.$store.state.api + "selectToolsCount", params)
  3497. .then((res) => {
  3498. for (var i = 0; i < res.data[0].length; i++) {
  3499. if (res.data[0][i].tools == 1) {
  3500. this.wbCount = res.data[0][i].count;
  3501. } else if (res.data[0][i].tools == 2) {
  3502. this.wordCount = res.data[0][i].count;
  3503. } else if (res.data[0][i].tools == 3) {
  3504. this.mindCount = res.data[0][i].count;
  3505. } else if (res.data[0][i].tools == 4) {
  3506. this.askCount = res.data[0][i].count;
  3507. } else if (res.data[0][i].tools == 6) {
  3508. this.noteCount = res.data[0][i].count;
  3509. } else if (res.data[0][i].tools == 7) {
  3510. this.mindNetWorkCount = res.data[0][i].count;
  3511. } else if (res.data[0][i].tools == 8) {
  3512. this.libraryCount = res.data[0][i].count;
  3513. } else if (res.data[0][i].tools == 16) {
  3514. this.workCount = res.data[0][i].count;
  3515. } else if (res.data[0][i].tools == 10) {
  3516. this.timeCount = res.data[0][i].count;
  3517. } else if (res.data[0][i].tools == 15) {
  3518. this.answerCount = res.data[0][i].count;
  3519. } else if (res.data[0][i].tools == 18) {
  3520. this.trainCount = res.data[0][i].count;
  3521. }
  3522. }
  3523. })
  3524. .catch((err) => {
  3525. console.error(err);
  3526. });
  3527. },
  3528. openTools(t, i, index, c, sName) {
  3529. var z = JSON.parse(c);
  3530. this.noteName = sName;
  3531. if (t == 4) {
  3532. this.radio = [];
  3533. this.isAnswer = false;
  3534. for (var i = 0; i < z.length; i++) {
  3535. let a = z[i];
  3536. let b = a.anwer.split(",");
  3537. let d = [];
  3538. for (var j = 0; j < b.length; j++) {
  3539. d.push(parseInt(b[j]));
  3540. }
  3541. this.radio = d;
  3542. this.askJson = a.askJson;
  3543. }
  3544. this.isAnswer = true;
  3545. this.dialogVisible5 = true;
  3546. }
  3547. // else if (t == 15) {
  3548. // this.answerQ = "";
  3549. // this.questionAnswer = "";
  3550. // this.answerQ = z[0].answerTitle;
  3551. // this.questionAnswer = z[0].answer;
  3552. // this.answerDialogVisible = true;
  3553. // }
  3554. },
  3555. doUrl(url) {
  3556. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  3557. url = "https://" + url;
  3558. }
  3559. window.open(url);
  3560. },
  3561. addTools(t, i, index) {
  3562. var a = 0;
  3563. // this.taskCount = index;
  3564. this.toolindex = i;
  3565. if (t == 1) {
  3566. if (this.wbCount > 0) {
  3567. this.updateCount(this.wbCount, t);
  3568. } else {
  3569. this.wbCount++;
  3570. a = this.wbCount;
  3571. this.toolsCount(a, t);
  3572. }
  3573. // window.parent.postMessage(
  3574. // {
  3575. // tools: "1",
  3576. // cid: this.id,
  3577. // stage: this.courseType,
  3578. // task: this.taskCount,
  3579. // tool: i,
  3580. // },
  3581. // "*"
  3582. // );
  3583. } else if (t == 2) {
  3584. if (this.wordCount > 0) {
  3585. this.updateCount(this.wordCount, t);
  3586. } else {
  3587. this.wordCount++;
  3588. a = this.wordCount;
  3589. this.toolsCount(a, t);
  3590. }
  3591. window.parent.postMessage({ tools: "2" }, "*");
  3592. } else if (t == 3) {
  3593. if (this.mindCount > 0) {
  3594. this.updateCount(this.mindCount, t);
  3595. } else {
  3596. this.mindCount++;
  3597. a = this.mindCount;
  3598. this.toolsCount(a, t);
  3599. }
  3600. window.parent.postMessage(
  3601. {
  3602. tools: "3",
  3603. cid: this.id,
  3604. stage: this.courseType,
  3605. task: this.taskCount,
  3606. tool: i,
  3607. },
  3608. "*"
  3609. );
  3610. } else if (t == 4) {
  3611. this.radio = [];
  3612. this.noteName = "";
  3613. this.isAnswer = false;
  3614. if (this.askCount > 0) {
  3615. this.updateCount(this.askCount, t);
  3616. } else {
  3617. this.askCount++;
  3618. a = this.askCount;
  3619. this.toolsCount(a, t);
  3620. }
  3621. if (!this.dialogVisible2) {
  3622. this.askJson.askJson =
  3623. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3624. index
  3625. ].toolChoose[i].askJson;
  3626. this.askJson.askTitle =
  3627. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3628. index
  3629. ].toolChoose[i].askTitle;
  3630. this.askJson.askCount =
  3631. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3632. index
  3633. ].toolChoose[i].askCount;
  3634. } else {
  3635. this.askJson.askJson = this.chapTools.askJson.askJson;
  3636. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  3637. this.askJson.askCount = this.chapTools.askJson.askCount;
  3638. }
  3639. this.dialogVisible5 = true;
  3640. // window.parent.postMessage({ tools: "4" }, "*");
  3641. } else if (t == 5) {
  3642. if (this.scoreCount > 0) {
  3643. this.updateCount(this.scoreCount, t);
  3644. } else {
  3645. this.scoreCount++;
  3646. a = this.scoreCount;
  3647. this.toolsCount(a, t);
  3648. }
  3649. this.dialogVisible4 = true;
  3650. // window.parent.postMessage({ tools: "5" }, "*");
  3651. } else if (t == 6) {
  3652. if (this.noteCount > 0) {
  3653. this.updateCount(this.noteCount, t);
  3654. } else {
  3655. this.noteCount++;
  3656. a = this.noteCount;
  3657. this.toolsCount(a, t);
  3658. }
  3659. window.parent.postMessage(
  3660. {
  3661. tools: "6",
  3662. cid: this.id,
  3663. stage: this.courseType,
  3664. task: this.taskCount,
  3665. tool: i,
  3666. },
  3667. "*"
  3668. );
  3669. } else if (t == 7) {
  3670. if (this.mindNetWorkCount > 0) {
  3671. this.updateCount(this.mindNetWorkCount, t);
  3672. } else {
  3673. this.mindNetWorkCount++;
  3674. a = this.mindNetWorkCount;
  3675. this.toolsCount(a, t);
  3676. }
  3677. window.parent.postMessage(
  3678. {
  3679. tools: "7",
  3680. cid: this.id,
  3681. stage: this.courseType,
  3682. task: this.taskCount,
  3683. tool: i,
  3684. },
  3685. "*"
  3686. );
  3687. } else if (t == 16) {
  3688. if (this.workCount > 0) {
  3689. this.updateCount(this.workCount, t);
  3690. } else {
  3691. this.workCount++;
  3692. a = this.workCount;
  3693. this.toolsCount(a, t);
  3694. }
  3695. this.dialogVisible = true;
  3696. } else if (t == 8) {
  3697. if (this.libraryCount > 0) {
  3698. this.updateCount(this.libraryCount, t);
  3699. } else {
  3700. this.libraryCount++;
  3701. a = this.libraryCount;
  3702. this.toolsCount(a, t);
  3703. }
  3704. window.parent.postMessage({ tools: "8" }, "*");
  3705. } else if (t == 17) {
  3706. if (this.libraryCount > 0) {
  3707. this.updateCount(this.libraryCount, t);
  3708. } else {
  3709. this.libraryCount++;
  3710. a = this.libraryCount;
  3711. this.toolsCount(a, t);
  3712. }
  3713. window.parent.postMessage({ tools: "17" }, "*");
  3714. } else if (t == 18) {
  3715. if (this.trainCount > 0) {
  3716. this.updateCount(this.trainCount, t);
  3717. } else {
  3718. this.trainCount++;
  3719. a = this.trainCount;
  3720. this.toolsCount(a, t);
  3721. }
  3722. window.parent.postMessage({ tools: "18" }, "*");
  3723. } else if (t == 10) {
  3724. if (this.timeCount > 0) {
  3725. this.updateCount(this.timeCount, t);
  3726. } else {
  3727. this.timeCount++;
  3728. a = this.timeCount;
  3729. this.toolsCount(a, t);
  3730. }
  3731. this.timeDialogVisible = true;
  3732. } else if (t == 15) {
  3733. this.answerQ = "";
  3734. this.questionAnswer = "";
  3735. if (this.answerCount > 0) {
  3736. this.updateCount(this.answerCount, t);
  3737. } else {
  3738. this.answerCount++;
  3739. a = this.answerCount;
  3740. this.toolsCount(a, t);
  3741. }
  3742. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  3743. .taskJson[index].toolChoose[i].answerQ
  3744. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  3745. .toolChoose[i].answerQ
  3746. : "";
  3747. this.answerDialogVisible = true;
  3748. } else if (t == 21) {
  3749. window.parent.postMessage({ tools: "21" }, "*");
  3750. } else if (t == 22) {
  3751. window.parent.postMessage({ tools: "22" }, "*");
  3752. } else if (t == 23) {
  3753. window.parent.postMessage({ tools: "23" }, "*");
  3754. } else if (t == 24) {
  3755. window.parent.postMessage({ tools: "24" }, "*");
  3756. } else if (t == 26) {
  3757. window.parent.postMessage(
  3758. {
  3759. tools: "26",
  3760. cid: this.id,
  3761. stage: this.courseType,
  3762. task: this.taskCount,
  3763. tool: i,
  3764. },
  3765. "*"
  3766. );
  3767. }
  3768. },
  3769. toolsCount(a, t) {
  3770. let params = {
  3771. cid: this.id,
  3772. chid: this.courseType,
  3773. uid: this.userid,
  3774. tid: t,
  3775. count: a,
  3776. };
  3777. this.ajax
  3778. .get(this.$store.state.api + "insertToolsCount", params)
  3779. .then((res) => {
  3780. this.selectCount();
  3781. })
  3782. .catch((err) => {
  3783. console.error(err);
  3784. });
  3785. },
  3786. updateCount(c, t) {
  3787. c++;
  3788. let params = {
  3789. cid: this.id,
  3790. chid: this.courseType,
  3791. uid: this.userid,
  3792. tid: t,
  3793. count: c,
  3794. };
  3795. this.ajax
  3796. .get(this.$store.state.api + "updateToolsCount", params)
  3797. .then((res) => {
  3798. this.selectCount();
  3799. })
  3800. .catch((err) => {
  3801. console.error(err);
  3802. });
  3803. },
  3804. checkEva() {
  3805. if (this.evalua != "") {
  3806. for (var i = 0; i < this.evaJuri.length; i++) {
  3807. if (this.evalua == this.evaJuri[i].id) {
  3808. this.eTitle = this.evaJuri[i].title;
  3809. this.eJson = JSON.parse(this.evaJuri[i].content);
  3810. }
  3811. }
  3812. this.$forceUpdate();
  3813. setTimeout(() => {
  3814. this.setMindData();
  3815. }, 0);
  3816. }
  3817. },
  3818. selectEva() {
  3819. let params = {
  3820. oid: this.oid,
  3821. };
  3822. this.ajax
  3823. .get(this.$store.state.api + "selectAllEvaluation", params)
  3824. .then((res) => {
  3825. this.evaJuri = res.data[0];
  3826. })
  3827. .catch((err) => {
  3828. console.error(err);
  3829. });
  3830. },
  3831. selectSLook() {
  3832. let params = {
  3833. cid: this.id,
  3834. };
  3835. this.ajax
  3836. .get(this.$store.state.api + "selectCourseSLook", params)
  3837. .then((res) => {
  3838. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  3839. })
  3840. .catch((err) => {
  3841. console.error(err);
  3842. });
  3843. },
  3844. setMindData() {
  3845. this.data.data = [];
  3846. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  3847. let _eJson = Object.keys(this.eJson);
  3848. let _e = this.eJson;
  3849. for (let i = 0; i < _eJson.length; i++) {
  3850. let element = _e[_eJson[i]];
  3851. this.data.data.push({
  3852. id: element.id,
  3853. parentid: "root",
  3854. topic: element.name,
  3855. });
  3856. let _eJsonc = Object.keys(element.child);
  3857. let _e2 = element.child;
  3858. for (let j = 0; j < _eJsonc.length; j++) {
  3859. let _ec = _e2[_eJsonc[j]];
  3860. this.data.data.push({
  3861. id: _ec.id,
  3862. parentid: element.id,
  3863. topic: _ec.name,
  3864. });
  3865. let _eJsonz = Object.keys(_ec.child);
  3866. let _e3 = _ec.child;
  3867. for (let z = 0; z < _eJsonz.length; z++) {
  3868. let _ez = _e3[_eJsonz[z]];
  3869. this.data.data.push({
  3870. id: _ez.id,
  3871. parentid: _ec.id,
  3872. topic: _ez.name,
  3873. });
  3874. }
  3875. }
  3876. }
  3877. this.$forceUpdate();
  3878. },
  3879. checkFileFull(type, url) {
  3880. this.fullDialogVisible = true;
  3881. this.fulltype = type;
  3882. this.fullUrl = url;
  3883. },
  3884. },
  3885. destroyed() {
  3886. window.onresize = null;
  3887. },
  3888. computed: {
  3889. contentConvent() {
  3890. return function (c) {
  3891. return c
  3892. ? c
  3893. .replaceAll(/\r\n/g, "<br/>")
  3894. .replaceAll(/\n/g, "<br/>")
  3895. .replaceAll(/\s/g, " &nbsp")
  3896. : "";
  3897. };
  3898. },
  3899. },
  3900. created() {
  3901. if (this.screenType == 2) {
  3902. window.parent.postMessage({ allScreen: 4 }, "*");
  3903. } else if (this.screenType == 3) {
  3904. window.parent.postMessage({ allScreen: 5 }, "*");
  3905. } else if (this.screenType == 1) {
  3906. window.parent.postMessage({ allScreen: 6 }, "*");
  3907. }
  3908. this.selectEva();
  3909. this.getCourseDetail();
  3910. this.selectCount();
  3911. this.getHomeWork();
  3912. this.selectSLook();
  3913. document.scrollingElement.scrollTop = 0;
  3914. window.addEventListener("resize", () => {
  3915. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  3916. document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  3917. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  3918. });
  3919. let _this = this;
  3920. setTimeout(() => {
  3921. // this.vedioTime = document.getElementsByClassName(
  3922. // "vjs-duration-display"
  3923. // )[0].textContent;
  3924. let _vedio = _this.vedio;
  3925. let _count = 0;
  3926. for (var i = 0; i < _vedio.length; i++) {
  3927. if (typeof _this.vedioTime != "object") {
  3928. _this.vedioTime = [];
  3929. }
  3930. for (var j = 0; j < _vedio[i].length; j++) {
  3931. if (!_this.vedioTime[i]) {
  3932. _this.vedioTime[i] = [];
  3933. }
  3934. for (var k = 0; k < _vedio[i][j].length; k++) {
  3935. if (!_this.vedioTime[i][j]) {
  3936. _this.vedioTime[i][j] = [];
  3937. }
  3938. if (_vedio[i][j][k]) {
  3939. _this.vedioTime[i][j].push(
  3940. document.getElementsByClassName("vjs-duration-display")[_count]
  3941. .textContent
  3942. );
  3943. _count++;
  3944. }
  3945. }
  3946. }
  3947. }
  3948. }, 1000);
  3949. },
  3950. };
  3951. </script>
  3952. <style scoped>
  3953. @media screen and (max-width: 1024px) {
  3954. /* .navText {
  3955. width: 120px !important;
  3956. } */
  3957. /* .textBox {
  3958. margin: 0 !important;
  3959. } */
  3960. .evaCss {
  3961. flex-direction: column !important;
  3962. align-items: center !important;
  3963. }
  3964. /* .courseIndex {
  3965. width: 43% !important;
  3966. } */
  3967. .courseIndex > div:first-child(2) {
  3968. width: 50px !important;
  3969. }
  3970. /* .pb_left{
  3971. position: unset !important;
  3972. height: auto !important;
  3973. }
  3974. .body_student{
  3975. position: unset !important;
  3976. width:600px !important;
  3977. } */
  3978. /* .btnAll{
  3979. width: 55% !important;
  3980. } */
  3981. .taskBox {
  3982. width: 550px !important;
  3983. }
  3984. }
  3985. .body_student {
  3986. width: 77%;
  3987. height: 100%;
  3988. position: absolute;
  3989. left: 20.5%;
  3990. top: 0;
  3991. }
  3992. .student_head {
  3993. width: 100%;
  3994. margin: 0 auto;
  3995. padding-bottom: 50px;
  3996. display: flex;
  3997. flex-direction: column;
  3998. flex-wrap: nowrap;
  3999. align-items: flex-start;
  4000. justify-content: flex-start;
  4001. }
  4002. .pb_left {
  4003. width: 20%;
  4004. margin-right: 10px;
  4005. background: rgb(255, 255, 255);
  4006. padding-right: 10px;
  4007. position: fixed;
  4008. height: 100%;
  4009. }
  4010. .wheel > img,
  4011. .project > img,
  4012. .star > img,
  4013. .evaluate > img,
  4014. .up_photo > img,
  4015. .chapter_add > img,
  4016. .upCover > img,
  4017. .deleteWord > img,
  4018. .question > img,
  4019. .homework > img {
  4020. width: 100%;
  4021. height: 100%;
  4022. }
  4023. .upCover {
  4024. width: calc(100% / 3.5);
  4025. position: relative;
  4026. margin: 0 15px 10px 0;
  4027. display: flex;
  4028. flex-direction: column;
  4029. flex-wrap: nowrap;
  4030. justify-content: center;
  4031. align-content: center;
  4032. align-items: center;
  4033. }
  4034. .chapter_add {
  4035. width: 120px;
  4036. position: relative;
  4037. text-align: center;
  4038. }
  4039. .isAddThings {
  4040. margin-top: 20px;
  4041. position: relative;
  4042. text-align: center;
  4043. background: #f7f8fa;
  4044. height: 90px;
  4045. width: 90px;
  4046. display: flex;
  4047. flex-direction: column;
  4048. justify-content: center;
  4049. }
  4050. .deleteWord {
  4051. width: 22px;
  4052. height: 22px;
  4053. position: absolute;
  4054. right: -5px;
  4055. top: -5px;
  4056. cursor: pointer;
  4057. }
  4058. .box_course {
  4059. /* width: 60%; */
  4060. width: 81%;
  4061. }
  4062. .wheel {
  4063. width: 100%;
  4064. height: 100%;
  4065. }
  4066. .right_box {
  4067. display: flex;
  4068. flex-direction: column;
  4069. margin-left: 30px;
  4070. justify-content: space-around;
  4071. }
  4072. .right_box_title {
  4073. font-size: 23px;
  4074. }
  4075. .people {
  4076. display: flex;
  4077. }
  4078. .student_body {
  4079. width: 100%;
  4080. margin: 0 auto;
  4081. margin-top: 20px;
  4082. padding: 0 0 20px;
  4083. }
  4084. .study_top {
  4085. /* margin-top: 90px; */
  4086. width: 95%;
  4087. /* overflow: auto; */
  4088. height: auto;
  4089. margin: 0 auto;
  4090. }
  4091. .study_top .checkbox {
  4092. display: flex;
  4093. align-items: center;
  4094. padding: 20px 0 20px 30px;
  4095. flex: 0 0 auto;
  4096. font-weight: bold;
  4097. border-bottom: 1px solid #eee;
  4098. }
  4099. .study_top .check {
  4100. padding-bottom: 5px;
  4101. text-align: center;
  4102. cursor: pointer;
  4103. height: 30px;
  4104. box-sizing: border-box;
  4105. display: flex;
  4106. }
  4107. .study_top .checked {
  4108. border-bottom: 4px solid #3fc6a0;
  4109. padding-bottom: 5px;
  4110. color: #3fc6a0;
  4111. display: flex;
  4112. height: 35px;
  4113. }
  4114. .study_top .checked > div,
  4115. .study_top .check > div {
  4116. margin-right: 5px;
  4117. }
  4118. .videoTop {
  4119. display: flex;
  4120. flex-direction: row;
  4121. justify-content: space-between;
  4122. background: #fff;
  4123. align-items: center;
  4124. width: 95%;
  4125. padding: 20px;
  4126. }
  4127. .upbtn {
  4128. margin: 25px;
  4129. background: #70afdb;
  4130. color: #fff;
  4131. width: 120px;
  4132. text-align: center;
  4133. height: 30px;
  4134. line-height: 30px;
  4135. font-size: 13px;
  4136. border-radius: 5px;
  4137. cursor: pointer;
  4138. }
  4139. .filebox {
  4140. display: flex;
  4141. flex-wrap: wrap;
  4142. flex-direction: column;
  4143. padding: 15px 0 25px;
  4144. }
  4145. .filebox .tooldetail {
  4146. width: 95%;
  4147. background: rgb(247, 247, 247);
  4148. padding: 20px;
  4149. line-height: 30px;
  4150. max-height: 105px;
  4151. overflow: auto;
  4152. height: 70px;
  4153. word-break: break-word;
  4154. }
  4155. .file {
  4156. display: flex;
  4157. flex-direction: column;
  4158. align-items: center;
  4159. justify-content: center;
  4160. cursor: pointer;
  4161. width: 200px;
  4162. }
  4163. .file div {
  4164. margin-top: 10px;
  4165. width: 150px;
  4166. text-align: center;
  4167. overflow: hidden;
  4168. white-space: nowrap;
  4169. text-overflow: ellipsis;
  4170. }
  4171. .media {
  4172. display: flex;
  4173. flex-direction: column;
  4174. align-items: center;
  4175. justify-content: center;
  4176. margin: 0 20px 20px 0;
  4177. cursor: pointer;
  4178. margin: 12px 0 5px 15px;
  4179. overflow: hidden;
  4180. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  4181. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  4182. box-sizing: border-box;
  4183. }
  4184. .media img {
  4185. height: 90px;
  4186. width: 160px;
  4187. object-fit: cover;
  4188. }
  4189. .media .title {
  4190. padding: 5px;
  4191. text-align: left;
  4192. width: 100%;
  4193. box-sizing: border-box;
  4194. }
  4195. .media .btn {
  4196. width: 100%;
  4197. height: 35px;
  4198. line-height: 35px;
  4199. color: #fff;
  4200. background: #606060;
  4201. text-align: center;
  4202. overflow: hidden;
  4203. white-space: nowrap;
  4204. text-overflow: ellipsis;
  4205. }
  4206. .detail_content_top {
  4207. width: 100%;
  4208. padding: 25px 0 25px 0;
  4209. }
  4210. .detail_title {
  4211. text-align: center;
  4212. font-size: 24px;
  4213. }
  4214. .detail_time {
  4215. font-size: 13px;
  4216. padding: 15px 0 0 40px;
  4217. }
  4218. .detail_content {
  4219. line-height: 2pc;
  4220. width: 90%;
  4221. margin: 0 auto;
  4222. padding-top: 30px;
  4223. text-indent: 30px;
  4224. overflow: auto;
  4225. height: 200px;
  4226. }
  4227. .score_box >>> .el-rate {
  4228. margin-left: 10px;
  4229. }
  4230. .dialog_change >>> .el-dialog {
  4231. border-radius: 5px;
  4232. }
  4233. .dialog_change >>> .el-dialog__header {
  4234. background: #f2f2f2;
  4235. text-align: center;
  4236. }
  4237. .dialog_change >>> .el-dialog__title {
  4238. line-height: 5px;
  4239. }
  4240. .dialog_change >>> .el-dialog__body {
  4241. background: #fff;
  4242. padding: 10px 20px;
  4243. }
  4244. .score_box {
  4245. display: flex;
  4246. align-items: center;
  4247. margin-bottom: 18px;
  4248. margin-top: 20px;
  4249. }
  4250. .up_photo {
  4251. width: 120px;
  4252. cursor: pointer;
  4253. margin-top: 10px;
  4254. }
  4255. .upload_send {
  4256. margin: 30px auto 30px;
  4257. width: 60%;
  4258. background: #169bd6;
  4259. text-align: center;
  4260. height: 35px;
  4261. line-height: 35px;
  4262. color: #fff;
  4263. border-radius: 5px;
  4264. cursor: pointer;
  4265. }
  4266. .marginT {
  4267. margin-top: 20px;
  4268. }
  4269. .cd_content_steps {
  4270. display: flex;
  4271. width: 90%;
  4272. justify-content: space-around;
  4273. border-top: 1px solid #eeeeee;
  4274. }
  4275. .cd_steps_box {
  4276. display: flex;
  4277. justify-content: center;
  4278. align-items: center;
  4279. flex-direction: column;
  4280. cursor: pointer;
  4281. }
  4282. .first {
  4283. display: flex;
  4284. align-items: center;
  4285. margin: 15px 0 20px 0;
  4286. font-size: 20px;
  4287. }
  4288. .first > div:nth-child(2) {
  4289. font-size: 16px !important;
  4290. padding-left: 10px;
  4291. line-height: 26px;
  4292. box-sizing: border-box;
  4293. }
  4294. .blue_box_one {
  4295. text-align: center;
  4296. color: #fff;
  4297. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  4298. border-radius: 7px;
  4299. margin: 10px;
  4300. cursor: pointer;
  4301. height: 45px;
  4302. display: flex;
  4303. flex-direction: row;
  4304. justify-content: flex-start;
  4305. align-items: center;
  4306. }
  4307. .blue_box_one > div:nth-child(1) {
  4308. line-height: 30px;
  4309. margin: 0 5px 0 10px;
  4310. width: 30%;
  4311. min-width: 70px;
  4312. border-radius: 4px;
  4313. }
  4314. .blue_box_one > div:nth-child(2) {
  4315. white-space: nowrap;
  4316. text-overflow: ellipsis;
  4317. overflow: hidden;
  4318. word-break: break-all;
  4319. width: 70%;
  4320. text-align: left;
  4321. margin-right: 10px;
  4322. max-width: calc(100% - 85px);
  4323. }
  4324. .blue_box_one > div:nth-child(2):hover {
  4325. overflow: hidden;
  4326. text-overflow: ellipsis;
  4327. white-space: nowrap;
  4328. cursor: pointer;
  4329. }
  4330. .upFile {
  4331. margin: 0 auto;
  4332. width: 120px;
  4333. background: #70afdb;
  4334. color: #fff;
  4335. height: 30px;
  4336. text-align: center;
  4337. line-height: 30px;
  4338. border-radius: 5px;
  4339. font-size: 14px;
  4340. cursor: pointer;
  4341. }
  4342. .courseTitle {
  4343. background: #205cc6;
  4344. width: 85%;
  4345. margin: 10px auto;
  4346. height: 50px;
  4347. color: #fff;
  4348. line-height: 50px;
  4349. text-align: center;
  4350. font-size: 20px;
  4351. font-weight: bold;
  4352. border-radius: 5px;
  4353. cursor: pointer;
  4354. white-space: nowrap;
  4355. overflow: hidden;
  4356. text-overflow: ellipsis;
  4357. padding: 0 10px;
  4358. }
  4359. .ml {
  4360. margin-left: 20px;
  4361. color: #5b7dba;
  4362. border-left: 3px solid #5b7dba;
  4363. padding-left: 5px;
  4364. font-weight: bold;
  4365. }
  4366. .return {
  4367. width: 2rem;
  4368. height: 2rem;
  4369. cursor: pointer;
  4370. }
  4371. .return > img {
  4372. width: 100%;
  4373. height: 100%;
  4374. }
  4375. .returnBtn {
  4376. background: #499eef;
  4377. width: 65px;
  4378. height: 30px;
  4379. color: #fff;
  4380. text-align: center;
  4381. line-height: 32px;
  4382. margin-right: 20px;
  4383. cursor: pointer;
  4384. border-radius: 5px;
  4385. font-size: 14px;
  4386. }
  4387. .tool {
  4388. display: flex;
  4389. flex-direction: column;
  4390. flex-wrap: nowrap;
  4391. width: 13%;
  4392. margin: 0 30px;
  4393. align-items: center;
  4394. }
  4395. .whiteBIcon {
  4396. width: 150px;
  4397. cursor: pointer;
  4398. }
  4399. .whiteBIcon > img {
  4400. width: 100%;
  4401. height: 100%;
  4402. }
  4403. .mask {
  4404. background-color: rgba(0, 0, 0, 0);
  4405. position: fixed;
  4406. top: 0;
  4407. left: 0;
  4408. width: 100%;
  4409. height: 100%;
  4410. z-index: 20000;
  4411. display: flex;
  4412. align-items: center;
  4413. justify-content: center;
  4414. }
  4415. .progressBox {
  4416. width: 500px;
  4417. height: 180px;
  4418. background: #fff;
  4419. border-radius: 10px;
  4420. box-shadow: 0 0 6px 1px #bfbfbf;
  4421. display: flex;
  4422. align-items: center;
  4423. justify-content: center;
  4424. flex-direction: column;
  4425. }
  4426. .progressBox .lbox {
  4427. height: 100px;
  4428. font-size: 19px;
  4429. display: flex;
  4430. align-items: center;
  4431. }
  4432. .progressBox .lbox img {
  4433. width: 40px;
  4434. margin-right: 20px;
  4435. }
  4436. .progressBox >>> .el-progress-bar__outer {
  4437. background-color: #d1dfff !important;
  4438. }
  4439. .progressBox .lbox {
  4440. height: 100px;
  4441. font-size: 19px;
  4442. display: flex;
  4443. align-items: center;
  4444. }
  4445. .progressBox .lbox img {
  4446. width: 40px;
  4447. margin-right: 20px;
  4448. }
  4449. .uploadVedio {
  4450. display: flex;
  4451. flex-direction: column;
  4452. flex-wrap: nowrap;
  4453. justify-content: center;
  4454. align-items: center;
  4455. margin: 0 15px 10px 0;
  4456. }
  4457. .uploadVedio > img {
  4458. width: 30px;
  4459. height: 30px;
  4460. }
  4461. .uploadVedio > span {
  4462. white-space: nowrap;
  4463. overflow: hidden;
  4464. text-overflow: ellipsis;
  4465. width: 75px;
  4466. margin-top: 7px;
  4467. }
  4468. .picName {
  4469. white-space: nowrap;
  4470. overflow: hidden;
  4471. text-overflow: ellipsis;
  4472. width: 75px;
  4473. margin-top: 7px;
  4474. }
  4475. .new_top {
  4476. display: flex;
  4477. background: #fff;
  4478. flex-direction: row;
  4479. justify-content: flex-start;
  4480. align-items: center;
  4481. height: 60px;
  4482. position: relative;
  4483. }
  4484. .before {
  4485. position: absolute;
  4486. background: #c3dad4;
  4487. width: 6px;
  4488. height: 100%;
  4489. }
  4490. .courseIndex {
  4491. display: flex;
  4492. flex-direction: row;
  4493. align-items: center;
  4494. }
  4495. .courseIndex > div:nth-child(1) {
  4496. margin: 0 20px;
  4497. padding-left: 5px;
  4498. font-size: 21px;
  4499. width: 100px;
  4500. font-weight: bold;
  4501. border-left: 4px solid #3363b9;
  4502. height: 35px;
  4503. text-align: center;
  4504. line-height: 35px;
  4505. }
  4506. .courseIndex > div:nth-child(2) {
  4507. font-size: 21px;
  4508. width: 300px;
  4509. white-space: nowrap;
  4510. overflow: hidden;
  4511. text-overflow: ellipsis;
  4512. }
  4513. .courseIndex > div:nth-child(3) {
  4514. border-bottom: 1px solid #d7d7d7;
  4515. padding-bottom: 5px;
  4516. background: #49a0f0;
  4517. width: 55px;
  4518. min-width: 55px;
  4519. border-radius: 5px;
  4520. color: #fff;
  4521. text-align: center;
  4522. height: 20px;
  4523. line-height: 26px;
  4524. font-size: 14px;
  4525. margin: 0 0 0 10px;
  4526. }
  4527. .course_text {
  4528. padding: 20px 0 0 15px;
  4529. text-indent: 30px;
  4530. width: 80%;
  4531. min-height: 20px;
  4532. }
  4533. .vedioList {
  4534. background: #f2f2f2;
  4535. border: 1px solid #ececec;
  4536. /* width: 38.8%; */
  4537. width: calc(100% - 83%);
  4538. height: 445px;
  4539. border-radius: 10px;
  4540. overflow: hidden;
  4541. }
  4542. .vedioNav {
  4543. margin: 10px 0 0 15px;
  4544. border-bottom: 1px solid #d7d7d7;
  4545. padding-bottom: 5px;
  4546. background: #96d1ff;
  4547. width: 55px;
  4548. min-width: 55px;
  4549. border-radius: 5px;
  4550. color: #fff;
  4551. text-align: center;
  4552. height: 20px;
  4553. line-height: 26px;
  4554. font-size: 14px;
  4555. }
  4556. .queTop {
  4557. display: flex;
  4558. padding: 20px 0 20px 30px;
  4559. width: 100%;
  4560. flex-direction: row;
  4561. justify-content: flex-start;
  4562. align-items: center;
  4563. border-bottom: 1px solid #eeeeee;
  4564. box-sizing: border-box;
  4565. }
  4566. .question {
  4567. width: 40px;
  4568. margin-right: 10px;
  4569. margin-top: 7px;
  4570. }
  4571. .queTitle {
  4572. margin-left: 5px;
  4573. font-size: 25px;
  4574. display: flex;
  4575. align-items: center;
  4576. }
  4577. .addEditor {
  4578. width: 100px;
  4579. height: 30px;
  4580. background: #42cda6;
  4581. color: #fff;
  4582. border-radius: 5px;
  4583. text-align: center;
  4584. line-height: 30px;
  4585. box-shadow: 1px 3px 6px 1px #bfbfbf;
  4586. cursor: pointer;
  4587. }
  4588. .vedioName {
  4589. text-overflow: ellipsis;
  4590. position: absolute;
  4591. top: 8px;
  4592. font-size: 14px;
  4593. left: 110px;
  4594. height: 60px;
  4595. overflow: hidden;
  4596. width: auto;
  4597. word-break: break-all;
  4598. }
  4599. .vedioTime {
  4600. width: 35px;
  4601. position: absolute;
  4602. color: #fff;
  4603. bottom: 0px;
  4604. right: 0px;
  4605. text-align: center;
  4606. background: #46411f;
  4607. height: 20px;
  4608. font-size: 14px;
  4609. line-height: 20px;
  4610. }
  4611. .homework {
  4612. width: 200px;
  4613. display: flex;
  4614. flex-direction: column;
  4615. flex-wrap: nowrap;
  4616. align-items: center;
  4617. cursor: pointer;
  4618. }
  4619. .homebox {
  4620. display: flex;
  4621. flex-wrap: wrap;
  4622. flex-direction: row;
  4623. justify-content: flex-start;
  4624. align-items: center;
  4625. padding: 15px 0;
  4626. }
  4627. .isChooseActive {
  4628. color: #3e88f4;
  4629. border-bottom: 2px solid #2f80f3;
  4630. }
  4631. .chooseWho {
  4632. display: flex;
  4633. width: 100%;
  4634. flex-direction: row;
  4635. flex-wrap: nowrap;
  4636. justify-content: flex-start;
  4637. padding-bottom: 10px;
  4638. }
  4639. .chooseWho > div {
  4640. cursor: pointer;
  4641. padding-bottom: 10px;
  4642. margin: 0 30px;
  4643. }
  4644. .addPoint > div > img {
  4645. cursor: pointer;
  4646. margin: 10px 0;
  4647. width: 85px;
  4648. border-radius: 15px;
  4649. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  4650. }
  4651. .addPoint {
  4652. width: 100%;
  4653. height: 100%;
  4654. }
  4655. .addPoint > div {
  4656. display: flex;
  4657. flex-direction: column;
  4658. flex-wrap: nowrap;
  4659. align-items: flex-start;
  4660. }
  4661. .isBorder > div {
  4662. margin: 0 0 10px 0;
  4663. align-items: flex-start !important;
  4664. }
  4665. .noiframeBox {
  4666. display: flex;
  4667. flex-wrap: wrap;
  4668. }
  4669. .iframeBox iframe {
  4670. width: 100%;
  4671. height: 800px;
  4672. border: none;
  4673. margin-bottom: 20px;
  4674. border: 1px solid #ccc;
  4675. }
  4676. .upload_toolBtn {
  4677. background: #6b92c9;
  4678. color: #fff;
  4679. width: 110px;
  4680. text-align: center;
  4681. height: 35px;
  4682. line-height: 35px;
  4683. font-size: 14px;
  4684. border-radius: 5px;
  4685. cursor: pointer;
  4686. position: absolute;
  4687. right: 10px;
  4688. bottom: 0;
  4689. }
  4690. .binfo_input {
  4691. font: inherit;
  4692. color: currentColor;
  4693. width: 100%;
  4694. margin: 0;
  4695. padding: 15px 14px;
  4696. display: block;
  4697. min-width: 0;
  4698. outline: none;
  4699. box-sizing: content-box;
  4700. background: none;
  4701. -webkit-tap-highlight-color: transparent;
  4702. border: 1px solid rgba(0, 0, 0, 0.23);
  4703. border-radius: 4px;
  4704. box-sizing: border-box;
  4705. resize: none;
  4706. }
  4707. .binfo_input:focus-visible {
  4708. border: 1px solid rgba(61, 103, 188);
  4709. }
  4710. .dialog_diy >>> .el-dialog__header {
  4711. background: #002e81 !important;
  4712. padding: 15px 20px;
  4713. }
  4714. .dialog_diy >>> .el-dialog__title {
  4715. color: #fff;
  4716. }
  4717. .dialog_diy >>> .el-dialog__headerbtn {
  4718. top: 19px;
  4719. }
  4720. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  4721. color: #fff;
  4722. }
  4723. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  4724. color: #fff;
  4725. }
  4726. .dialog_diy >>> .el-dialog__body,
  4727. .dialog_diy >>> .el-dialog__footer {
  4728. background: #fafafa;
  4729. }
  4730. .a_addBox {
  4731. margin: 10px 0;
  4732. background: #fff;
  4733. padding: 15px;
  4734. max-height: 400px;
  4735. overflow: auto;
  4736. }
  4737. .a_add_box {
  4738. border-bottom: 2px solid #eee;
  4739. padding-bottom: 10px;
  4740. }
  4741. .a_add_head {
  4742. display: flex;
  4743. align-items: center;
  4744. justify-content: space-between;
  4745. margin: 10px 0;
  4746. font-size: 18px;
  4747. }
  4748. .a_add_head .a_add_head_input {
  4749. width: 300px;
  4750. }
  4751. .a_add_head .a_add_head_div {
  4752. display: flex;
  4753. align-items: center;
  4754. justify-content: space-between;
  4755. }
  4756. .a_add_body {
  4757. display: flex;
  4758. align-items: center;
  4759. }
  4760. .a_add_input {
  4761. display: flex;
  4762. align-items: center;
  4763. flex-wrap: wrap;
  4764. }
  4765. .a_add_input >>> el-radio-group {
  4766. margin: 10px 0;
  4767. }
  4768. .a_add_input >>> .el-radio {
  4769. margin-bottom: 10px;
  4770. }
  4771. .redioStyle >>> .el-radio__label {
  4772. font-size: 18px;
  4773. }
  4774. .toolHeng2 {
  4775. width: 100%;
  4776. }
  4777. .toolHeng {
  4778. display: flex;
  4779. flex-direction: row;
  4780. flex-wrap: wrap;
  4781. justify-content: flex-start;
  4782. align-items: center;
  4783. width: 100%;
  4784. }
  4785. .toolHeng > div {
  4786. padding-left: 20px;
  4787. }
  4788. .isWidth {
  4789. width: 20%;
  4790. }
  4791. .textTitle {
  4792. display: flex;
  4793. flex-direction: row;
  4794. flex-wrap: nowrap;
  4795. align-items: center;
  4796. width: 95%;
  4797. }
  4798. .textTitle >>> .el-form-item__label {
  4799. font-size: 22px;
  4800. color: #918f8f;
  4801. width: 100px;
  4802. }
  4803. .textCss >>> .el-dialog {
  4804. width: 800px !important;
  4805. height: 400px;
  4806. background: #fafafa;
  4807. }
  4808. .textCss >>> .el-dialog__body {
  4809. margin: 55px 8% 0 8%;
  4810. padding: 0 !important;
  4811. }
  4812. .textCss >>> .el-dialog__footer {
  4813. padding-top: 38px;
  4814. }
  4815. .toolsCss >>> .el-dialog__body {
  4816. padding: 20px;
  4817. }
  4818. .lineCss >>> .el-dialog__body {
  4819. display: flex;
  4820. flex-direction: row;
  4821. align-items: center;
  4822. justify-content: center;
  4823. }
  4824. .newNav {
  4825. display: flex;
  4826. flex-direction: row;
  4827. align-items: baseline;
  4828. justify-content: flex-start;
  4829. }
  4830. .navText {
  4831. cursor: pointer;
  4832. margin: 0px 0px 10px 5px;
  4833. white-space: nowrap;
  4834. overflow: hidden;
  4835. text-overflow: ellipsis;
  4836. width: 100%;
  4837. }
  4838. .noVedio {
  4839. display: flex;
  4840. flex-direction: row;
  4841. justify-content: center;
  4842. align-content: center;
  4843. }
  4844. .noNavText {
  4845. cursor: pointer;
  4846. margin: 0px 0px 10px 5px;
  4847. width: 112px;
  4848. }
  4849. .listNoVedio {
  4850. margin: 0 0 0 30px;
  4851. width: 97%;
  4852. }
  4853. .video-player >>> .video-js {
  4854. height: 100%;
  4855. }
  4856. .hangVedioList {
  4857. width: 90% !important;
  4858. height: 150px !important;
  4859. margin: 20px 0 0 30px;
  4860. }
  4861. .hangVedio {
  4862. width: 100%;
  4863. height: 170px !important;
  4864. align-items: flex-start !important;
  4865. }
  4866. .hangHand {
  4867. height: 150px !important;
  4868. }
  4869. .twoChild {
  4870. margin: 10px;
  4871. border-radius: 5px;
  4872. background: #f2f2f2;
  4873. display: flex;
  4874. flex-direction: column;
  4875. flex-wrap: nowrap;
  4876. justify-content: flex-start;
  4877. align-items: flex-start;
  4878. transition: all 0.5s;
  4879. overflow: hidden;
  4880. height: 0;
  4881. background: #e7f3ff;
  4882. }
  4883. .twoChild > div:nth-child(1) {
  4884. margin-top: 5px;
  4885. }
  4886. .navChild {
  4887. width: 100%;
  4888. cursor: pointer;
  4889. margin-bottom: 10px;
  4890. }
  4891. .navActive {
  4892. height: auto;
  4893. }
  4894. .navTask {
  4895. display: flex;
  4896. flex-direction: row;
  4897. flex-wrap: nowrap;
  4898. align-items: center;
  4899. align-content: flex-start;
  4900. height: 40px;
  4901. justify-content: flex-start;
  4902. padding: 0 10px;
  4903. width: 100%;
  4904. box-sizing: border-box;
  4905. }
  4906. .navTaskname {
  4907. white-space: nowrap;
  4908. text-overflow: ellipsis;
  4909. overflow: hidden;
  4910. word-break: break-all;
  4911. padding-left: 5px;
  4912. }
  4913. .openTaskActive {
  4914. color: #4386e6 !important;
  4915. }
  4916. .iframeName {
  4917. margin: 5px 0;
  4918. border-left: 4px solid #41c4a4;
  4919. padding-left: 4px;
  4920. width: 100%;
  4921. }
  4922. .iframeCss {
  4923. width: 100%;
  4924. height: 600px;
  4925. border: 1px solid #d7d4d4;
  4926. }
  4927. .toolTitle {
  4928. margin: 0px 0px 20px;
  4929. font-size: 20px;
  4930. font-weight: 500;
  4931. border-left: 4px solid #41c4a4;
  4932. padding-left: 4px;
  4933. }
  4934. .cru_selectBox {
  4935. overflow: auto;
  4936. width: 96%;
  4937. margin: 0 auto;
  4938. height: calc(100% - 40px - 21px - 20px);
  4939. }
  4940. .cru_selectBox::-webkit-scrollbar,
  4941. .study_top::-webkit-scrollbar,
  4942. .textContent::-webkit-scrollbar {
  4943. /*滚动条整体样式*/
  4944. width: 6px;
  4945. /*高宽分别对应横竖滚动条的尺寸*/
  4946. height: 6px;
  4947. }
  4948. /*定义滚动条轨道 内阴影+圆角*/
  4949. .cru_selectBox::-webkit-scrollbar-track,
  4950. .study_top::-webkit-scrollbar-track,
  4951. .textContent::-webkit-scrollbar {
  4952. border-radius: 10px;
  4953. background-color: #b8bdc9;
  4954. }
  4955. /*定义滑块 内阴影+圆角*/
  4956. .cru_selectBox::-webkit-scrollbar-thumb,
  4957. .study_top::-webkit-scrollbar-thumb,
  4958. .textContent::-webkit-scrollbar-thumb {
  4959. border-radius: 10px;
  4960. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  4961. background-color: #2c5ab3;
  4962. }
  4963. .vedioBox {
  4964. border-radius: 20px;
  4965. background: #fff;
  4966. margin-bottom: 10px;
  4967. }
  4968. .taskBox {
  4969. margin: 15px 0 20px 30px;
  4970. background: #f7f7f7;
  4971. width: 97%;
  4972. border-radius: 10px;
  4973. }
  4974. .vedioTaskBox {
  4975. width: 100%;
  4976. display: flex;
  4977. flex-direction: row;
  4978. flex-wrap: nowrap;
  4979. align-items: center;
  4980. }
  4981. .toolBox {
  4982. padding: 20px 0 0 0;
  4983. }
  4984. .btnAll {
  4985. position: absolute;
  4986. right: 0;
  4987. display: flex;
  4988. flex-direction: row;
  4989. flex-wrap: nowrap;
  4990. align-items: center;
  4991. }
  4992. .vedioTimeBox {
  4993. display: flex;
  4994. flex-direction: row;
  4995. align-items: center;
  4996. flex-wrap: nowrap;
  4997. position: relative;
  4998. }
  4999. .navBox {
  5000. background: rgb(255, 255, 255);
  5001. height: 400px;
  5002. padding: 5px 1px 0 1px;
  5003. overflow: auto;
  5004. }
  5005. .worksBox {
  5006. padding: 30px 0 0 10px;
  5007. border-bottom: 1px solid #eeeeee;
  5008. }
  5009. .worksBTitle {
  5010. font-size: 20px;
  5011. padding-bottom: 15px;
  5012. border-bottom: 1px solid #eeeeee;
  5013. display: flex;
  5014. align-items: center;
  5015. }
  5016. .greenBox {
  5017. width: 5px;
  5018. height: 30px;
  5019. background: #63b6fa;
  5020. margin-right: 5px;
  5021. }
  5022. .worksDetailBox {
  5023. display: flex;
  5024. width: 100%;
  5025. flex-direction: row;
  5026. flex-wrap: wrap;
  5027. align-items: center;
  5028. justify-content: flex-start;
  5029. padding-top: 30px;
  5030. }
  5031. .works {
  5032. display: flex;
  5033. flex-direction: column;
  5034. flex-wrap: nowrap;
  5035. align-items: flex-start;
  5036. justify-content: flex-start;
  5037. align-content: center;
  5038. width: 240px;
  5039. height: 170px;
  5040. margin-right: 10px;
  5041. }
  5042. .workImg {
  5043. width: 100%;
  5044. height: calc(100% - 40px);
  5045. }
  5046. .workImg > img {
  5047. width: 100%;
  5048. height: 100%;
  5049. }
  5050. .worksName {
  5051. height: 40px;
  5052. line-height: 40px;
  5053. display: flex;
  5054. width: 92%;
  5055. flex-direction: row;
  5056. flex-wrap: nowrap;
  5057. justify-content: space-between;
  5058. align-items: center;
  5059. margin: 0 10px;
  5060. }
  5061. .worksName > div:nth-child(2) {
  5062. color: #b7b4b5;
  5063. }
  5064. .noWorksS {
  5065. padding: 15px 0;
  5066. display: flex;
  5067. flex-direction: row;
  5068. flex-wrap: wrap;
  5069. align-items: center;
  5070. justify-content: flex-start;
  5071. }
  5072. .noWorksName {
  5073. background: #46a1eb;
  5074. color: #fff;
  5075. width: 90px;
  5076. height: 25px;
  5077. text-align: center;
  5078. line-height: 25px;
  5079. border-radius: 5px;
  5080. margin: 10px 15px 10px 0;
  5081. white-space: nowrap;
  5082. overflow: hidden;
  5083. padding: 5px;
  5084. text-overflow: ellipsis;
  5085. }
  5086. .noWorksName:hover {
  5087. background: #e7e7e7 !important;
  5088. }
  5089. .title {
  5090. background: #1e5cc9;
  5091. width: 98%;
  5092. height: 45px;
  5093. color: #fff;
  5094. line-height: 45px;
  5095. padding-left: 20px;
  5096. }
  5097. .textBox {
  5098. font-size: 20px;
  5099. margin: 15px 0px 20px 30px;
  5100. width: 90%;
  5101. padding: 30px 0 0 50px;
  5102. }
  5103. .textContent {
  5104. font-size: 18px;
  5105. padding: 30px 0px 0px;
  5106. height: 300px;
  5107. width: 95%;
  5108. overflow: auto;
  5109. line-height: 30px;
  5110. }
  5111. .textContent >>> p {
  5112. text-indent: 0pt !important;
  5113. }
  5114. .answerBg {
  5115. background: url("../assets/icon/answerBg.png") no-repeat;
  5116. background-size: 100% 100%;
  5117. width: 100%;
  5118. height: 100%;
  5119. color: #fff;
  5120. text-align: center;
  5121. display: flex;
  5122. flex-direction: column;
  5123. flex-wrap: nowrap;
  5124. align-items: center;
  5125. }
  5126. .answerBg > div:nth-child(1) {
  5127. font-size: 22px;
  5128. padding: 25px 0 10px;
  5129. }
  5130. .answerContent {
  5131. width: 215px;
  5132. height: 60px;
  5133. word-break: break-all;
  5134. text-align: center;
  5135. white-space: nowrap;
  5136. overflow: hidden;
  5137. text-overflow: ellipsis;
  5138. }
  5139. .elist_input_box {
  5140. display: flex;
  5141. align-items: flex-start;
  5142. flex-wrap: nowrap;
  5143. padding: 10px 0 15px 30px;
  5144. flex-direction: column;
  5145. }
  5146. .elist_input {
  5147. width: 100%;
  5148. }
  5149. .elist_input .elist_input_box input {
  5150. font: inherit;
  5151. color: currentColor;
  5152. width: 200px;
  5153. padding: 8px 14px;
  5154. display: block;
  5155. min-width: 0;
  5156. outline: none;
  5157. border: 1px solid rgba(0, 0, 0, 0.23);
  5158. border-radius: 4px;
  5159. box-sizing: border-box;
  5160. background: #fff;
  5161. margin: 0 20px 0 0;
  5162. }
  5163. .elist_input .elist_input_box span {
  5164. height: 36px;
  5165. line-height: 36px;
  5166. color: rgb(82, 82, 82);
  5167. }
  5168. .elist_input .elist_input_box .remove {
  5169. height: 20px;
  5170. width: 20px;
  5171. background-size: 100% 100%;
  5172. background-position: unset;
  5173. margin-left: 5px;
  5174. }
  5175. .elist_input_box >>> .el-rate {
  5176. display: flex;
  5177. height: 36px;
  5178. align-items: center;
  5179. }
  5180. .elist_input_box .elist_inptu_text {
  5181. min-height: 50px;
  5182. /* width: 500px;
  5183. max-height: 150px; */
  5184. width: 100%;
  5185. line-height: 50px;
  5186. color: rgb(82, 82, 82);
  5187. overflow: auto;
  5188. text-indent: 5px;
  5189. background: #f7f6f9;
  5190. border-radius: 10px;
  5191. }
  5192. .elist_input_box .elist_inptu_text input {
  5193. width: 500px;
  5194. }
  5195. .elist_input_box >>> .el-rate__icon {
  5196. font-size: 24px;
  5197. }
  5198. .isClick {
  5199. background: #4d9def;
  5200. }
  5201. .bzBox {
  5202. display: flex;
  5203. flex-direction: row;
  5204. align-items: center;
  5205. }
  5206. .bzBox > div:nth-child(1) {
  5207. width: 4px;
  5208. height: 40px;
  5209. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  5210. }
  5211. .bzBox > div:nth-child(2) {
  5212. font-size: 23px;
  5213. font-weight: bold;
  5214. padding: 0px 0px 0 10px;
  5215. }
  5216. .navTitile {
  5217. padding: 0 0px 0 15px;
  5218. background: #1e5cc9;
  5219. color: #fff;
  5220. height: 40px;
  5221. line-height: 40px;
  5222. border-top-left-radius: 10px;
  5223. border-top-right-radius: 10px;
  5224. }
  5225. .isTypeOne {
  5226. width: 240px;
  5227. height: 170px;
  5228. border: 1px solid #f8f8f8;
  5229. border-radius: 10px;
  5230. box-shadow: 0 0 6px 1px #dfdada;
  5231. }
  5232. .e_add_top {
  5233. display: flex;
  5234. justify-content: space-between;
  5235. padding: 20px 20px 0 20px;
  5236. border-radius: 3px;
  5237. background: #fff;
  5238. }
  5239. .e_add_title2 {
  5240. display: flex;
  5241. align-items: center;
  5242. }
  5243. .e_add_title2 span {
  5244. width: 40px;
  5245. }
  5246. .e_add_title {
  5247. display: flex;
  5248. align-items: center;
  5249. color: #b8b8b8;
  5250. font-size: 18px;
  5251. position: relative;
  5252. height: 40px;
  5253. }
  5254. .e_add_title span {
  5255. margin-right: 10px;
  5256. }
  5257. .e_add_title .el_input {
  5258. width: 300px;
  5259. }
  5260. .e_add_title >>> .el-input__inner {
  5261. width: 400px;
  5262. }
  5263. .e_add_btn {
  5264. }
  5265. .e_add_content {
  5266. display: flex;
  5267. width: 650px;
  5268. height: 550px;
  5269. }
  5270. .e_add_list {
  5271. background: #fff;
  5272. height: 500px;
  5273. width: 210px;
  5274. position: relative;
  5275. margin: 15px 5px 0 0;
  5276. flex-shrink: 0;
  5277. display: flex;
  5278. flex-direction: column;
  5279. }
  5280. .e_add_list_title {
  5281. font-size: 20px;
  5282. width: 100%;
  5283. box-sizing: border-box;
  5284. padding: 15px 40px;
  5285. text-align: center;
  5286. border-bottom: 1px solid #eaeaea;
  5287. position: relative;
  5288. display: flex;
  5289. align-items: center;
  5290. justify-content: center;
  5291. height: 57px;
  5292. background: #f6f6f6;
  5293. }
  5294. .e_add_list_title span {
  5295. overflow: hidden;
  5296. white-space: nowrap;
  5297. text-overflow: ellipsis;
  5298. }
  5299. .e_add_list_title img {
  5300. position: absolute;
  5301. right: 15px;
  5302. width: 25px;
  5303. cursor: pointer;
  5304. top: 50%;
  5305. transform: translateY(-50%);
  5306. }
  5307. .e_add_list_body {
  5308. height: calc(100% - 187px);
  5309. overflow: auto;
  5310. }
  5311. .e_add_list_child {
  5312. width: 100%;
  5313. display: flex;
  5314. align-items: center;
  5315. justify-content: center;
  5316. position: relative;
  5317. box-sizing: border-box;
  5318. padding: 15px 40px;
  5319. text-align: center;
  5320. }
  5321. .e_add_list_child span {
  5322. overflow: hidden;
  5323. white-space: nowrap;
  5324. text-overflow: ellipsis;
  5325. cursor: pointer;
  5326. }
  5327. .e_add_list_child img {
  5328. position: absolute;
  5329. right: 10px;
  5330. width: 21px;
  5331. cursor: pointer;
  5332. top: 50%;
  5333. transform: translateY(-50%);
  5334. }
  5335. .e_add_list_child + .e_add_list_child {
  5336. border-top: 1px solid #eaeaea;
  5337. }
  5338. .e_add_list_child .active {
  5339. color: #409eff;
  5340. }
  5341. .e_add_list_btn {
  5342. position: absolute;
  5343. bottom: 0;
  5344. height: 50px;
  5345. background: rgb(120, 120, 254);
  5346. width: 100%;
  5347. color: #fff;
  5348. font-size: 16px;
  5349. text-align: center;
  5350. line-height: 50px;
  5351. cursor: pointer;
  5352. }
  5353. .e_add_list_detail {
  5354. position: absolute;
  5355. bottom: 0;
  5356. height: 130px;
  5357. background: rgb(120, 120, 254);
  5358. width: 100%;
  5359. color: #fff;
  5360. font-size: 16px;
  5361. display: flex;
  5362. align-items: center;
  5363. justify-content: center;
  5364. }
  5365. .e_add_list_detail textarea {
  5366. height: 90%;
  5367. width: 95%;
  5368. border: none;
  5369. resize: none;
  5370. outline: none;
  5371. padding: 5px;
  5372. box-sizing: border-box;
  5373. }
  5374. .e_add_list_pbox {
  5375. width: 650px;
  5376. /* height: 600px; */
  5377. }
  5378. .e_add_list_pbox_title {
  5379. height: 50px;
  5380. background: #fff;
  5381. display: flex;
  5382. align-items: center;
  5383. width: 100%;
  5384. box-sizing: border-box;
  5385. padding: 0 20px;
  5386. }
  5387. .type_title {
  5388. font-size: 18px;
  5389. font-weight: 700;
  5390. }
  5391. .type_content {
  5392. font-size: 16px;
  5393. margin-left: 30px;
  5394. }
  5395. .type_content span + span {
  5396. margin-left: 20px;
  5397. }
  5398. .type_content span {
  5399. cursor: pointer;
  5400. padding-bottom: 5px;
  5401. box-sizing: border-box;
  5402. }
  5403. .type_content .active {
  5404. color: #409eff;
  5405. border-bottom: 2px solid #409eff;
  5406. }
  5407. .e_add_list_pbox_content {
  5408. height: calc(100% - 50px);
  5409. display: flex;
  5410. align-items: center;
  5411. width: 100%;
  5412. background: #fff;
  5413. }
  5414. .evaCss {
  5415. display: flex;
  5416. flex-direction: row;
  5417. flex-wrap: nowrap;
  5418. align-items: flex-start;
  5419. }
  5420. .cru_line {
  5421. position: absolute;
  5422. bottom: 0px;
  5423. transition: all 0.5s;
  5424. left: 0px;
  5425. width: 125px;
  5426. margin-left: -25px;
  5427. }
  5428. .isNoMessage {
  5429. width: 20%;
  5430. margin: 25% auto 0;
  5431. }
  5432. .isNoMessage > img {
  5433. width: 100%;
  5434. height: 100%;
  5435. }
  5436. .fullStyle >>> .el-dialog__body {
  5437. height: 100% !important;
  5438. }
  5439. .fullStyle >>> .el-dialog,
  5440. .fullStyle {
  5441. width: 100% !important;
  5442. max-width: 100% !important;
  5443. height: 100% !important;
  5444. margin: 0 !important;
  5445. }
  5446. .full_diy >>> .el-dialog {
  5447. margin: 0 !important;
  5448. height: 100%;
  5449. }
  5450. .full_diy >>> .el-dialog__body {
  5451. height: calc(100% - 100px);
  5452. padding: 4px;
  5453. }
  5454. .full_diy >>> .el-dialog {
  5455. margin: 0 !important;
  5456. height: 100%;
  5457. }
  5458. .rwCss {
  5459. font-size: 24px;
  5460. padding: 20px;
  5461. display: flex;
  5462. flex-direction: row;
  5463. align-items: center;
  5464. color: rgb(255, 255, 255);
  5465. background-image: linear-gradient(90deg, #4574cc, #6eb0ff);
  5466. border-radius: 10px;
  5467. margin: 10px 0;
  5468. }
  5469. .isClickNavOne {
  5470. color: #499eef;
  5471. }
  5472. </style>