study.vue 218 KB

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