study.vue 202 KB

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