studyStudent.vue 475 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750
  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="pButton" style="
  5. left: 0;
  6. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  7. " v-if="mlDialog == false" @click="setContent2(true)">
  8. <!-- 批 , getCourseDetail()-->
  9. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  10. </div>
  11. <div class="pb_left" v-else>
  12. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  13. <div class="courseTitle">
  14. <div style="width:calc(100% - 25px)">
  15. <el-tooltip effect="light" :content="courseDetail.title" placement="top">
  16. <div class="ctitle">{{ courseDetail.title }}</div>
  17. </el-tooltip>
  18. <div class="inviteBox" v-if="tcid && inviteCode">
  19. <div><span>随机码:{{ inviteCode }}</span></div>
  20. </div>
  21. </div>
  22. <el-tooltip effect="light" content="收缩" placement="top">
  23. <div class="mlImg" @click="setContent2(false)">
  24. <img src="../assets/mlBtn.png" alt="" />
  25. </div>
  26. </el-tooltip>
  27. </div>
  28. <div class="ml">目录</div>
  29. <div class="cru_selectBox">
  30. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  31. <div class="blue_box_one" @click="get(stageIndex)">
  32. <div>第{{ stageIndex + 1 }}阶段</div>
  33. <div>{{ item.dyName }}</div>
  34. </div>
  35. <div class="twoChild" :class="{ navActive: item.isOpen }">
  36. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  37. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  38. openTaskActive:
  39. navIndex == taskCount &&
  40. nav.id == navId &&
  41. stageIndex == courseType,
  42. }">
  43. <div class="vedioNav" :class="{
  44. isClick:
  45. navIndex == taskCount &&
  46. nav.id == navId &&
  47. stageIndex == courseType,
  48. }" style="margin: 0">
  49. 任务{{ navIndex + 1 }}
  50. </div>
  51. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  52. <div :style="{
  53. width:
  54. IsLookOpen && !nav.isLook
  55. ? 'calc(100% - 75px)'
  56. : 'auto',
  57. }">
  58. {{ nav.taskName }}
  59. </div>
  60. </el-tooltip>
  61. <img src="../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  69. <div class="new_top" style="
  70. position: fixed;
  71. top: 0;
  72. left: 20.7%;
  73. width: 80%;
  74. z-index: 999;
  75. box-shadow: 0px 9px 0 0 #f2f2f2;
  76. " :class="{ navLeftCss: !mlDialog }">
  77. <div class="courseIndex">
  78. <div>第{{ courseType - 0 + 1 }}阶段</div>
  79. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  80. <div>{{ chapInfoList[courseType].dyName }}</div>
  81. </el-tooltip>
  82. <div>任务{{ taskCount + 1 }}</div>
  83. </div>
  84. <div class="btnAll">
  85. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  86. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  87. <div class="returnBtn" @click="allScrell">全屏</div>
  88. <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  89. 开始录制
  90. </div>
  91. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  92. style="background: #ee5255">
  93. 下载录制
  94. </div>
  95. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  96. 权限
  97. </div>
  98. <div class="returnBtn" style="background: #225bc7" @click.stop="
  99. goTo(
  100. '/courseDetail?userid=' +
  101. userid +
  102. '&oid=' +
  103. oid +
  104. '&org=' +
  105. org +
  106. '&cid=' +
  107. classId +
  108. '&courseId=' +
  109. id +
  110. '&tType=' +
  111. tType +
  112. '&screenType=' +
  113. screenType
  114. )
  115. ">
  116. 返回
  117. </div>
  118. </div>
  119. </div>
  120. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  121. .taskJson"
  122. :key="index"-->
  123. <div class="isNoMessage" v-if="
  124. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  125. .chapterData.length == 0 &&
  126. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  127. .toolChoose[0].tool.length == 0 &&
  128. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  129. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  130. .taskDetail == '' &&
  131. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  132. ">
  133. <img src="../assets/icon/isNoMessage.png" alt />
  134. </div>
  135. <div class="study_top" :class="{ pzClass: pzDialog }">
  136. <div class="vedioBox" v-if="
  137. vedio[taskCount].length > 0 ||
  138. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  139. .taskDetail != '' ||
  140. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  141. .chapterData.length > 0
  142. ">
  143. <div class="checkbox">
  144. <div class="check" style="font-size: 25px" :id="
  145. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  146. ">
  147. <!-- {{ taskCount + 1 }}
  148. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  149. 学一学
  150. </div>
  151. </div>
  152. <div class="student_head" v-if="
  153. vedio[taskCount].length > 0 ||
  154. textList[taskCount].length > 0 ||
  155. lineList[taskCount].length > 0 ||
  156. file[taskCount].length > 0 ||
  157. fileC[taskCount].length > 0 ||
  158. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  159. .taskDetail != ''
  160. ">
  161. <div class="taskBox">
  162. <div style="
  163. display: flex;
  164. flex-wrap: nowrap;
  165. flex-direction: column;
  166. position: relative;
  167. ">
  168. <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="
  169. chapInfoList[courseType].chapterInfo[0].taskJson[
  170. taskCount
  171. ].taskDetail != ''
  172. " v-html="
  173. chapInfoList[courseType].chapterInfo[0].taskJson[
  174. taskCount
  175. ].taskDetail
  176. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  177. taskCount
  178. ].taskDetail
  179. : '暂无描述'
  180. "></div>
  181. </div>
  182. </div>
  183. <div class="vedioTaskBox">
  184. <div :class="
  185. contentDialog == false
  186. ? 'box_course isContentCss'
  187. : 'box_course'
  188. " v-if="
  189. vedio[taskCount].length > 0 ||
  190. textList[taskCount].length > 0 ||
  191. lineList[taskCount].length > 0 ||
  192. file[taskCount].length > 0
  193. ">
  194. <div class="wheel" style="height: auto;" v-if="
  195. vedio.length &&
  196. vedio[taskCount] &&
  197. vedio[taskCount].length > 0 &&
  198. showType == 0
  199. ">
  200. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  201. <video-player class="video-player vjs-custom-skin"
  202. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  203. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  204. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  205. </div>
  206. </div>
  207. <div class="wheel" v-if="showType == 1" style="
  208. box-shadow: 0 0 6px 1px #f2f2f2;
  209. width: 95%;
  210. margin: 0 auto;
  211. background: #f1f1f1;
  212. ">
  213. <div class="title">查看文档</div>
  214. <el-form class="textBox">
  215. <el-form-item class="textTitle">
  216. <div style="font-size: 22px">
  217. {{ text.name }}
  218. </div>
  219. </el-form-item>
  220. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  221. <div v-html="text.url" class="textContent cont"></div>
  222. </el-form>
  223. </div>
  224. <div class="wheel" v-if="showType == 2" style="width: 95%; margin: 0 auto">
  225. <iframe style="width: 100%; height: 100%; border: none" security="restricted"
  226. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  227. :src="pptImgUrl1"></iframe>
  228. </div>
  229. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  230. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  231. </div>
  232. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  233. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  234. </div>
  235. </div>
  236. <div class="pButton" style="
  237. position: absolute;
  238. right: 20px;
  239. top: 0;
  240. background: #205cc6;
  241. z-index: 998;
  242. opacity: .8;
  243. " v-if="!contentDialog" @click="setContent(true)">
  244. <!-- 批 -->
  245. <img src="../assets/navBtn2.png" style="width: 25px" alt="" />
  246. </div>
  247. <div v-if="contentDialog == true" :style="{
  248. width: (!vedio[taskCount].length > 0 &&
  249. !textList[taskCount].length > 0 &&
  250. !lineList[taskCount].length > 0 &&
  251. !file[taskCount].length > 0 && fileC[taskCount].length) ? 'calc(100%)' : 'calc(100% - 83%)', margin: (!vedio[taskCount].length > 0 &&
  252. !textList[taskCount].length > 0 &&
  253. !lineList[taskCount].length > 0 &&
  254. !file[taskCount].length > 0 && fileC[taskCount].length) ? '0 15px' : '0 15px 0 0'
  255. }">
  256. <div class="vedioList" v-if="
  257. (vedio.length &&
  258. vedio[taskCount] &&
  259. vedio[taskCount].length > 0) ||
  260. (textList.length &&
  261. textList[taskCount] &&
  262. textList[taskCount].length > 0) ||
  263. (lineList.length &&
  264. lineList[taskCount] &&
  265. lineList[taskCount].length > 0) ||
  266. (file.length &&
  267. file[taskCount] &&
  268. file[taskCount].length > 0) ||
  269. (fileC.length &&
  270. fileC[taskCount] &&
  271. fileC[taskCount].length > 0)
  272. " style="height: 650px">
  273. <div class="navCorOpenBox">
  274. <div class="navTitile">内容列表:</div>
  275. <div class="navCorOpen" @click="setContent(false)">
  276. <img src="../assets/navBtn2.png" alt="" />
  277. </div>
  278. </div>
  279. <div class="navBox">
  280. <div v-show="
  281. vedio.length &&
  282. vedio[taskCount] &&
  283. vedio[taskCount].length > 0
  284. ">
  285. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  286. @click="lookVedio(media.url, vedioIndex)">
  287. <div class="vedioName" :class="
  288. isClickNav == 'video' + vedioIndex
  289. ? 'isClickNav'
  290. : ''
  291. ">
  292. <span v-if="media.text">{{ media.text }}-</span>{{ media.name }}
  293. </div>
  294. </div>
  295. </div>
  296. <div v-show="
  297. textList.length &&
  298. textList[taskCount] &&
  299. textList[taskCount].length > 0
  300. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  301. @click="lookText(taskCount, textIndex)">
  302. <div style="width: calc(100% - 0px)">
  303. <div class="navText" :class="
  304. isClickNav == 'text' + textIndex
  305. ? 'isClickNav'
  306. : ''
  307. ">
  308. {{
  309. textList[taskCount].length > 0 ? text.name : ""
  310. }}.doc
  311. </div>
  312. </div>
  313. </div>
  314. <div v-show="
  315. lineList.length &&
  316. lineList[taskCount] &&
  317. lineList[taskCount].length > 0
  318. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  319. @click="doUrl(lines.url, lineIndex)">
  320. <div style="width: calc(100% - 0px)">
  321. <div class="navText" :class="
  322. isClickNav == 'line' + lineIndex
  323. ? 'isClickNav'
  324. : ''
  325. ">
  326. {{ lines.title ? lines.title : lines.url }}
  327. </div>
  328. </div>
  329. </div>
  330. <div class="newNav" v-show="
  331. file.length &&
  332. file[taskCount] &&
  333. file[taskCount].length > 0
  334. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  335. <div style="width: calc(100% - 0px)">
  336. <div class="navText" :class="
  337. isClickNav == 'word' + fileIndex
  338. ? 'isClickNav'
  339. : ''
  340. ">
  341. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  342. </div>
  343. </div>
  344. </div>
  345. <div class="newNav" v-show="
  346. fileC.length &&
  347. fileC[taskCount] &&
  348. fileC[taskCount].length > 0
  349. " v-for="(f, fileIndex) in fileC[taskCount]" :key="fileIndex" @click="downloadFile2(f)">
  350. <div style="width: calc(100% - 0px)">
  351. <div class="navText">
  352. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. </div>
  359. </div>
  360. <div style="width: 81%">
  361. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  362. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  363. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  364. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  365. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  366. </el-button>
  367. </div>
  368. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  369. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. <div class="student_body" v-resize="resize">
  375. <!-- <div
  376. class="vedioBox"
  377. v-if="
  378. file.length && file[taskCount] && file[taskCount].length > 0
  379. "
  380. >
  381. <div class="queTop">
  382. <div class="question" style="width: 30px; margin-top: 5px">
  383. <img src="../assets/icon/fileIcon.png" alt />
  384. </div>
  385. <div class="queTitle">
  386. <div>附件</div>
  387. </div>
  388. </div>
  389. <div class="filebox" style="width: 100%">
  390. <div
  391. class="file"
  392. v-for="(f, fileIndex) in file[taskCount]"
  393. :key="fileIndex"
  394. @click="downFile(f, fileIndex)"
  395. >
  396. <img :src="require('../assets/file.png')" alt />
  397. <div>{{ f.name }}</div>
  398. </div>
  399. </div>
  400. <div class="upFile" v-if="type == 3">提交</div>
  401. </div>-->
  402. <div class="vedioBox" v-if="
  403. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  404. .toolChoose[0].tool &&
  405. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  406. .toolChoose[0].tool.length &&
  407. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  408. .toolChoose[0].tool.length > 0
  409. ">
  410. <div class="queTop" style="
  411. font-size: 25px;
  412. padding: 15px 0 15px 30px;
  413. font-weight: bold;
  414. ">
  415. <!-- <div class="question" style="width: 30px">
  416. <img src="../assets/icon/toolIcon.png" alt />
  417. </div>
  418. <div class="queTitle">
  419. <div>工具</div>
  420. </div>-->
  421. 练一练
  422. </div>
  423. <div class="toolHeng2" style="position: relative">
  424. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px" v-for="(tool, toolIndex) in chapInfoList[courseType]
  425. .chapterInfo[0].taskJson[taskCount].toolChoose" :key="toolIndex">
  426. <div class="bzBox">
  427. <div></div>
  428. <div>步骤{{ toolIndex + 1 }}</div>
  429. </div>
  430. <div class="toolBox">
  431. <div>
  432. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  433. :key="indexTool"-->
  434. <!-- <div class="iframeBox">
  435. <div
  436. class="addPoint isBorder"
  437. v-for="(tooC, toolCIndex) in tool.tool"
  438. :key="toolCIndex"
  439. >
  440. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  441. <div
  442. class="iframeName"
  443. >
  444. 电子白板
  445. </div>
  446. <iframe
  447. src="https://iwb.cocorobo.cn/"
  448. ref="whiteBoard"
  449. ></iframe>
  450. </div>
  451. </div>
  452. </div>-->
  453. <div class="noiframeBox">
  454. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  455. <div v-if="tooC == 1">
  456. <img src="../assets/icon/secondToolList/whiteBoard.png" alt
  457. @click="addTools(tooC, toolIndex, taskCount)" />
  458. <div style="margin: 5px 0">电子白板</div>
  459. </div>
  460. <div v-if="tooC == 3">
  461. <img src="../assets/icon/secondToolList/mindMapping.png" alt
  462. @click="addTools(tooC, toolIndex, taskCount)" />
  463. <div style="margin: 5px 0">思维导图</div>
  464. </div>
  465. <div v-if="tooC == 6">
  466. <img src="../assets/icon/secondToolList/doc.png" alt
  467. @click="addTools(tooC, toolIndex, taskCount)" />
  468. <div style="margin: 5px 0">协同文档</div>
  469. </div>
  470. <div v-if="tooC == 7">
  471. <img src="../assets/icon/secondToolList/mindNetwork.png" alt
  472. @click="addTools(tooC, toolIndex, taskCount)" />
  473. <div style="margin: 5px 0">思维网格</div>
  474. </div>
  475. <div v-if="tooC == 8">
  476. <img src="../assets/icon/secondToolList/library.png" alt
  477. @click="addTools(tooC, toolIndex, taskCount)" />
  478. <div style="margin: 5px 0">素材库</div>
  479. </div>
  480. <div v-if="tooC == 17">
  481. <img src="../assets/icon/secondToolList/library.png" alt
  482. @click="addTools(tooC, toolIndex, taskCount)" />
  483. <div style="margin: 5px 0">学习资料</div>
  484. </div>
  485. <div v-if="tooC == 2">
  486. <img @click="addTools(tooC, toolIndex, taskCount)"
  487. src="../assets/icon/secondToolList/note.png" alt />
  488. <div style="margin: 5px 0">便签</div>
  489. </div>
  490. <div v-if="tooC == 4">
  491. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/ask.png"
  492. alt />
  493. <div style="margin: 5px 0">问卷调查</div>
  494. </div>
  495. <div v-if="tooC == 45">
  496. <img @click="addTools(tooC, toolIndex, taskCount)"
  497. src="../assets/icon/thirdToolList/choose.png" alt />
  498. <div style="margin: 5px 0">选择题</div>
  499. </div>
  500. <!-- <div v-if="tooC == 5">
  501. <img
  502. @click="addTools(tooC, toolIndex, taskCount)"
  503. src="../assets/icon/thirdToolList/score.png"
  504. alt
  505. />
  506. <div style="margin: 5px 0">量规评分</div>
  507. </div> -->
  508. <div v-if="tooC == 10">
  509. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/time.png"
  510. alt />
  511. <div style="margin: 5px 0">倒计时</div>
  512. </div>
  513. <div v-if="tooC == 15">
  514. <img @click="addTools(tooC, toolIndex, taskCount)"
  515. src="../assets/icon/thirdToolList/answer.png" alt />
  516. <div style="margin: 5px 0">问答工具</div>
  517. </div>
  518. <div v-if="tooC == 26">
  519. <img @click="addTools(tooC, toolIndex, taskCount)"
  520. src="../assets/icon/thirdToolList/courseDesign.png" alt />
  521. <div style="margin: 5px 0">课程设计</div>
  522. </div>
  523. <div v-if="tooC == 18">
  524. <img @click="addTools(tooC, toolIndex, taskCount)"
  525. src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  526. <div style="margin: 5px 0">训练服务器</div>
  527. </div>
  528. <div v-if="tooC == 16">
  529. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/work.png"
  530. alt />
  531. <div style="margin: 5px 0">作业提交</div>
  532. </div>
  533. <div v-if="tooC == 50">
  534. <img @click="addTools(tooC, toolIndex, taskCount)"
  535. src="../assets/icon/thirdToolList/plwork.png" alt />
  536. <div style="margin: 5px 0">批量上传</div>
  537. </div>
  538. <div v-if="tooC == 21">
  539. <img @click="addTools(tooC, toolIndex, taskCount)"
  540. src="../assets/icon/fourthToolList/program.png" alt />
  541. <div style="margin: 5px 0">编程平台</div>
  542. </div>
  543. <div v-if="tooC == 22">
  544. <img @click="addTools(tooC, toolIndex, taskCount)"
  545. src="../assets/icon/fourthToolList/program.png" alt />
  546. <div style="margin: 5px 0">AI体验</div>
  547. </div>
  548. <div v-if="tooC == 23">
  549. <img @click="addTools(tooC, toolIndex, taskCount)"
  550. src="../assets/icon/fourthToolList/program.png" alt />
  551. <div style="margin: 5px 0">Python</div>
  552. </div>
  553. <div v-if="tooC == 24">
  554. <img @click="addTools(tooC, toolIndex, taskCount)"
  555. src="../assets/icon/fourthToolList/AIprogram.png" alt />
  556. <div style="margin: 5px 0">AI平台</div>
  557. </div>
  558. <div v-if="tooC == 25">
  559. <img @click="addTools(tooC, toolIndex, taskCount)"
  560. src="../assets/icon/thirdToolList/evalua.png" alt />
  561. <div style="margin: 5px 0">目标管理</div>
  562. </div>
  563. <div v-if="tooC == 31">
  564. <img @click="addTools(tooC, toolIndex, taskCount)"
  565. src="../assets/icon/secondToolList/networkPanel.png" alt />
  566. <div style="margin: 5px 0">数学画板</div>
  567. </div>
  568. <div v-if="tooC == 28">
  569. <img @click="addTools(tooC, toolIndex, taskCount)"
  570. src="../assets/icon/secondToolList/translation.png" alt />
  571. <div style="margin: 5px 0">翻译</div>
  572. </div>
  573. <div v-if="tooC == 37">
  574. <img @click="addTools(tooC, toolIndex, taskCount)"
  575. src="../assets/icon/secondToolList/mohe.png" alt />
  576. <div style="margin: 5px 0">魔盒识字</div>
  577. </div>
  578. <div v-if="tooC == 38">
  579. <img @click="addTools(tooC, toolIndex, taskCount)"
  580. src="../assets/icon/secondToolList/24game.png" alt />
  581. <div style="margin: 5px 0">24点</div>
  582. </div>
  583. <div v-if="tooC == 39">
  584. <img @click="addTools(tooC, toolIndex, taskCount)"
  585. src="../assets/icon/secondToolList/GeoGebra.png" alt />
  586. <div style="margin: 5px 0">GeoGebra</div>
  587. </div>
  588. <div v-if="tooC == 32">
  589. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/thirdToolList/code.png"
  590. alt />
  591. <div style="margin: 5px 0">源码编辑</div>
  592. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  593. style="position: absolute;left: 110px;bottom: 30px;">
  594. 上传文件
  595. <input type="file" accept="*" style="display: none"
  596. @change="beforeUpload1($event, 7, toolIndex)" />
  597. </div> -->
  598. </div>
  599. <div v-if="tooC == 40">
  600. <img @click="addTools(tooC, toolIndex, taskCount)"
  601. src="../assets/icon/secondToolList/eval.png" alt />
  602. <div style="margin: 5px 0">个人评价</div>
  603. </div>
  604. <div v-if="tooC == 41">
  605. <img @click="addTools(tooC, toolIndex, taskCount)"
  606. src="../assets/icon/thirdToolList/select.png" alt />
  607. <div style="margin: 5px 0">选择填空</div>
  608. </div>
  609. <div v-if="tooC == 44">
  610. <img @click="addTools(tooC, toolIndex, taskCount)"
  611. src="../assets/icon/thirdToolList/hanClass.png" alt />
  612. <div style="margin: 5px 0">汉字宫</div>
  613. </div>
  614. <div v-if="tooC == 47">
  615. <img @click="addTools(tooC, toolIndex, taskCount)"
  616. src="../assets/icon/fourthToolList/conSentences.png" alt />
  617. <div style="margin: 5px 0">连词成句</div>
  618. </div>
  619. <div v-if="tooC == 48">
  620. <img @click="addTools(tooC, toolIndex, taskCount)"
  621. src="../assets/icon/fourthToolList/table.png" alt />
  622. <div style="margin: 5px 0">表格</div>
  623. </div>
  624. <div v-if="tooC == 52">
  625. <img @click="addTools(tooC, toolIndex, taskCount)"
  626. src="../assets/icon/fourthToolList/text.png" alt />
  627. <div style="margin: 5px 0">文档</div>
  628. </div>
  629. <div v-if="tooC == 49">
  630. <img @click="addTools(tooC, toolIndex, taskCount)"
  631. src="../assets/icon/fourthToolList/group.png" alt />
  632. <div style="margin: 5px 0">学生分组</div>
  633. </div>
  634. <div v-if="tooC == 57">
  635. <img @click="addTools(tooC, toolIndex, taskCount)"
  636. src="../assets/icon/fourthToolList/cocopi.png" alt />
  637. <div style="margin: 5px 0">CocoPi</div>
  638. </div>
  639. <div v-if="tooC == 58">
  640. <img @click="addTools(tooC, toolIndex, taskCount)" src="../assets/icon/fourthToolList/car.png"
  641. alt />
  642. <div style="margin: 5px 0">模拟驾驶</div>
  643. </div>
  644. <div v-if="tooC == 59">
  645. <img @click="addTools(tooC, toolIndex, taskCount)"
  646. src="../assets/icon/fourthToolList/lineSearch.png" alt />
  647. <div style="margin: 5px 0">路径搜索</div>
  648. </div>
  649. <div v-if="tooC == 60">
  650. <img @click="addTools(tooC, toolIndex, taskCount)"
  651. src="../assets/icon/fourthToolList/deepLearning.png" alt />
  652. <div style="margin: 5px 0">深度学习</div>
  653. </div>
  654. </div>
  655. </div>
  656. </div>
  657. <div class="tooldetail" v-if="tool.toolDetail != ''">
  658. <!-- <div class="toolTitle">工具描述</div> -->
  659. <div v-html="contentConvent(tool.toolDetail)"></div>
  660. </div>
  661. <el-button type="primary" v-if="tool.tool[0] == 32" style="
  662. position: absolute;
  663. right: 30px;
  664. transform: translateY(-130%);
  665. " @click="addImg($event)">上传作业<input type="file" accept="*"
  666. style="display: none" @change="beforeUpload1($event, 7, toolIndex)" /></el-button>
  667. <el-button type="primary" v-if="tool.tool[0] == 57" style="
  668. position: absolute;
  669. right: 30px;
  670. transform: translateY(-130%);
  671. " @click="addImg($event)">上传作业<input type="file" accept="*"
  672. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button>
  673. </div>
  674. <div v-if="
  675. tType &&
  676. tType == 2 &&
  677. !sIsOpen &&
  678. tool.tool.indexOf(16) != -1
  679. " class="worksBox">
  680. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  681. <span>作业预览</span>
  682. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  683. </div>
  684. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  685. <div class="works" style="
  686. width: 200px;
  687. height: 140px;
  688. margin: 10px 10px 10px 0;
  689. box-shadow: 0 0 6px 1px #dfdada;
  690. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  691. <div class="workImg" v-if="w.type == 0">
  692. <img :src="w.works" @click="previewImg(w.works)" alt />
  693. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  694. rightW:
  695. w.userid == userid || tType == 1 || tType == 4,
  696. }">
  697. {{ JSON.parse(w.score).wScore }}分
  698. </div>
  699. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  700. :class="{
  701. rightW:
  702. w.userid == userid || tType == 1 || tType == 4,
  703. }">
  704. 评分
  705. </div>
  706. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  707. w.userid == userid || tType == 1 || tType == 4
  708. " @click.stop="deleteWorks(w.wid)" alt />
  709. </div>
  710. <div class="workImg" v-if="w.type == 1">
  711. <img :src="word" @click="openFile(w.works)" alt />
  712. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  713. rightW:
  714. w.userid == userid || tType == 1 || tType == 4,
  715. }">
  716. {{ JSON.parse(w.score).wScore }}分
  717. </div>
  718. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  719. :class="{
  720. rightW:
  721. w.userid == userid || tType == 1 || tType == 4,
  722. }">
  723. 评分
  724. </div>
  725. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  726. w.userid == userid || tType == 1 || tType == 4
  727. " @click.stop="deleteWorks(w.wid)" alt />
  728. </div>
  729. <div class="workImg" v-if="w.type == 3">
  730. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  731. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  732. rightW:
  733. w.userid == userid || tType == 1 || tType == 4,
  734. }">
  735. {{ JSON.parse(w.score).wScore }}分
  736. </div>
  737. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  738. :class="{
  739. rightW:
  740. w.userid == userid || tType == 1 || tType == 4,
  741. }">
  742. 评分
  743. </div>
  744. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  745. w.userid == userid || tType == 1 || tType == 4
  746. " @click.stop="deleteWorks(w.wid)" alt />
  747. </div>
  748. <div class="workImg" v-if="w.type == 12">
  749. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  750. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  751. rightW:
  752. w.userid == userid || tType == 1 || tType == 4,
  753. }">
  754. {{ JSON.parse(w.score).wScore }}分
  755. </div>
  756. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  757. :class="{
  758. rightW:
  759. w.userid == userid || tType == 1 || tType == 4,
  760. }">
  761. 评分
  762. </div>
  763. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  764. w.userid == userid || tType == 1 || tType == 4
  765. " @click.stop="deleteWorks(w.wid)" alt />
  766. </div>
  767. <div class="worksName">
  768. <div>{{ w.sName }}</div>
  769. </div>
  770. </div>
  771. </div>
  772. </div>
  773. <div v-if="
  774. tType &&
  775. tType == 2 &&
  776. !sIsOpen &&
  777. tool.tool.indexOf(32) != -1
  778. " class="worksBox">
  779. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  780. <span>作业预览</span>
  781. </div>
  782. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  783. <div class="works" style="
  784. width: 200px;
  785. height: 140px;
  786. margin: 10px 10px 10px 0;
  787. box-shadow: 0 0 6px 1px #dfdada;
  788. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  789. <div class="workImg">
  790. <img :src="word2" @click="downloadFile(w.works)" alt />
  791. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  792. rightW:
  793. w.userid == userid || tType == 1 || tType == 4,
  794. }">
  795. {{ JSON.parse(w.score).wScore }}分
  796. </div>
  797. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  798. :class="{
  799. rightW:
  800. w.userid == userid || tType == 1 || tType == 4,
  801. }">
  802. 评分
  803. </div>
  804. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  805. w.userid == userid || tType == 1 || tType == 4
  806. " @click.stop="deleteWorks(w.wid)" alt />
  807. </div>
  808. <div class="worksName">
  809. <div>{{ w.sName }}</div>
  810. </div>
  811. </div>
  812. </div>
  813. </div>
  814. <div v-if="
  815. tType &&
  816. tType == 2 &&
  817. !sIsOpen &&
  818. tool.tool.indexOf(57) != -1
  819. " class="worksBox">
  820. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  821. <span>作业预览</span>
  822. </div>
  823. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  824. <div class="works" style="
  825. width: 200px;
  826. height: 140px;
  827. margin: 10px 10px 10px 0;
  828. box-shadow: 0 0 6px 1px #dfdada;
  829. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  830. <div class="workImg">
  831. <img :src="word2" @click="downloadFile(w.works)" alt />
  832. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  833. rightW:
  834. w.userid == userid || tType == 1 || tType == 4,
  835. }">
  836. {{ JSON.parse(w.score).wScore }}分
  837. </div>
  838. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  839. :class="{
  840. rightW:
  841. w.userid == userid || tType == 1 || tType == 4,
  842. }">
  843. 评分
  844. </div>
  845. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  846. w.userid == userid || tType == 1 || tType == 4
  847. " @click.stop="deleteWorks(w.wid)" alt />
  848. </div>
  849. <div class="worksName">
  850. <div>{{ w.sName }}</div>
  851. </div>
  852. </div>
  853. </div>
  854. </div>
  855. <div v-if="
  856. tType &&
  857. tType == 2 &&
  858. !sIsOpen &&
  859. tool.tool.indexOf(4) != -1
  860. " class="worksBox">
  861. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  862. <span>作业预览</span>
  863. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  864. </div>
  865. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  866. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  867. openTools(4, toolIndex, taskCount, w.works, w.sName)
  868. ">
  869. {{ w.sName }}
  870. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  871. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  872. </div>
  873. <!-- <div
  874. class="works"
  875. style="
  876. width: 200px;
  877. height: 140px;
  878. border-radius: 10px;
  879. box-shadow: 0 0 6px 1px #dfdada;
  880. overflow: hidden;
  881. "
  882. v-for="(w, wIndex) in workStudent[toolIndex]"
  883. :key="wIndex"
  884. >
  885. <div class="workImg">
  886. <img
  887. src="../assets/icon/works/noImg.png"
  888. @click="
  889. openTools(
  890. 4,
  891. toolIndex,
  892. taskCount,
  893. w.works,
  894. w.sName
  895. )
  896. "
  897. alt
  898. />
  899. </div>
  900. <div class="worksName">
  901. <div>{{ w.sName }}</div>
  902. <div>{{ w.time }}</div>
  903. </div>
  904. </div> -->
  905. </div>
  906. </div>
  907. <div v-if="
  908. tType &&
  909. tType == 2 &&
  910. !sIsOpen &&
  911. tool.tool.indexOf(45) != -1
  912. " class="worksBox">
  913. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  914. <span>作业预览</span>
  915. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  916. </div>
  917. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  918. <div class="isWorksName" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex" @click="
  919. openTools(45, toolIndex, taskCount, w.works, w.sName)
  920. ">
  921. {{ w.sName }}
  922. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  923. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  924. </div>
  925. </div>
  926. </div>
  927. <div v-if="
  928. tType &&
  929. tType == 2 &&
  930. !sIsOpen &&
  931. tool.tool.indexOf(15) != -1
  932. " class="worksBox">
  933. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  934. <span>作业预览</span>
  935. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  936. </div>
  937. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  938. <div class="works" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  939. <div class="workImg">
  940. <!-- <img
  941. src="../assets/icon/works/noImg.png"
  942. @click="openTools(15, toolIndex, taskCount, w.works)"
  943. alt=""
  944. />-->
  945. <div class="answerBg">
  946. <!-- <div>{{ w.sName }}</div> -->
  947. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  948. placement="top">
  949. <div class="answerContent">
  950. {{ JSON.parse(w.works)[0].answer }}
  951. </div>
  952. </el-tooltip>
  953. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  954. rightW:
  955. w.userid == userid ||
  956. tType == 1 ||
  957. tType == 4,
  958. }">
  959. {{ JSON.parse(w.score).wScore }}分
  960. </div>
  961. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  962. :class="{
  963. rightW:
  964. w.userid == userid ||
  965. tType == 1 ||
  966. tType == 4,
  967. }">
  968. 评分
  969. </div>
  970. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  971. w.userid == userid || tType == 1 || tType == 4
  972. " @click.stop="deleteWorks(w.wid)" alt />
  973. </div>
  974. <div class="comment">
  975. <div class="worksName">
  976. <div>{{ w.sName }}</div>
  977. </div>
  978. </div>
  979. </div>
  980. </div>
  981. </div>
  982. </div>
  983. <div v-if="
  984. tType &&
  985. tType == 2 &&
  986. !sIsOpen &&
  987. tool.tool.indexOf(1) != -1
  988. " class="worksBox">
  989. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  990. <span>作业预览</span>
  991. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  992. </div>
  993. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  994. <div class="works" style="
  995. width: 200px;
  996. height: 140px;
  997. margin: 10px 10px 10px 0;
  998. box-shadow: 0 0 6px 1px #dfdada;
  999. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1000. <div class="workImg">
  1001. <img :src="w.works" @click="previewImg(w.works)" alt />
  1002. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1003. rightW:
  1004. w.userid == userid || tType == 1 || tType == 4,
  1005. }">
  1006. {{ JSON.parse(w.score).wScore }}分
  1007. </div>
  1008. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1009. :class="{
  1010. rightW:
  1011. w.userid == userid || tType == 1 || tType == 4,
  1012. }">
  1013. 评分
  1014. </div>
  1015. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1016. w.userid == userid || tType == 1 || tType == 4
  1017. " @click.stop="deleteWorks(w.wid)" alt />
  1018. </div>
  1019. <div class="worksName">
  1020. <div>{{ w.sName }}</div>
  1021. </div>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. <div v-if="
  1026. tType &&
  1027. tType == 2 &&
  1028. !sIsOpen &&
  1029. tool.tool.indexOf(3) != -1
  1030. " class="worksBox">
  1031. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1032. <span>作业预览</span>
  1033. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1034. </div>
  1035. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1036. <div class="works" style="
  1037. width: 200px;
  1038. height: 140px;
  1039. margin: 10px 10px 10px 0;
  1040. box-shadow: 0 0 6px 1px #dfdada;
  1041. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1042. <div class="workImg">
  1043. <img :src="w.works" @click="previewImg(w.works)" alt />
  1044. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1045. rightW:
  1046. w.userid == userid || tType == 1 || tType == 4,
  1047. }">
  1048. {{ JSON.parse(w.score).wScore }}分
  1049. </div>
  1050. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1051. :class="{
  1052. rightW:
  1053. w.userid == userid || tType == 1 || tType == 4,
  1054. }">
  1055. 评分
  1056. </div>
  1057. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1058. w.userid == userid || tType == 1 || tType == 4
  1059. " @click.stop="deleteWorks(w.wid)" alt />
  1060. </div>
  1061. <div class="worksName">
  1062. <div>{{ w.sName }}</div>
  1063. </div>
  1064. </div>
  1065. </div>
  1066. </div>
  1067. <div v-if="
  1068. tType &&
  1069. tType == 2 &&
  1070. !sIsOpen &&
  1071. tool.tool.indexOf(6) != -1
  1072. " class="worksBox">
  1073. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1074. <span>作业预览</span>
  1075. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1076. </div>
  1077. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1078. <div class="works" style="
  1079. width: 200px;
  1080. height: 140px;
  1081. margin: 10px 10px 10px 0;
  1082. box-shadow: 0 0 6px 1px #dfdada;
  1083. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1084. <div class="workImg">
  1085. <img :src="w.works" @click="previewImg(w.works)" alt />
  1086. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1087. rightW:
  1088. w.userid == userid || tType == 1 || tType == 4,
  1089. }">
  1090. {{ JSON.parse(w.score).wScore }}分
  1091. </div>
  1092. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1093. :class="{
  1094. rightW:
  1095. w.userid == userid || tType == 1 || tType == 4,
  1096. }">
  1097. 评分
  1098. </div>
  1099. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1100. w.userid == userid || tType == 1 || tType == 4
  1101. " @click.stop="deleteWorks(w.wid)" alt />
  1102. </div>
  1103. <div class="worksName">
  1104. <div>{{ w.sName }}</div>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. </div>
  1109. <div v-if="
  1110. tType &&
  1111. tType == 2 &&
  1112. !sIsOpen &&
  1113. tool.tool.indexOf(7) != -1
  1114. " class="worksBox">
  1115. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1116. <span>作业预览</span>
  1117. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1118. </div>
  1119. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1120. <div class="works" style="
  1121. width: 200px;
  1122. height: 140px;
  1123. margin: 10px 10px 10px 0;
  1124. box-shadow: 0 0 6px 1px #dfdada;
  1125. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1126. <div class="workImg">
  1127. <img :src="w.works" @click="previewImg(w.works)" alt />
  1128. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1129. rightW:
  1130. w.userid == userid || tType == 1 || tType == 4,
  1131. }">
  1132. {{ JSON.parse(w.score).wScore }}分
  1133. </div>
  1134. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1135. :class="{
  1136. rightW:
  1137. w.userid == userid || tType == 1 || tType == 4,
  1138. }">
  1139. 评分
  1140. </div>
  1141. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1142. w.userid == userid || tType == 1 || tType == 4
  1143. " @click.stop="deleteWorks(w.wid)" alt />
  1144. </div>
  1145. <div class="worksName">
  1146. <div>{{ w.sName }}</div>
  1147. </div>
  1148. </div>
  1149. </div>
  1150. </div>
  1151. <div v-if="
  1152. tType &&
  1153. tType == 2 &&
  1154. !sIsOpen &&
  1155. tool.tool.indexOf(26) != -1
  1156. " class="worksBox">
  1157. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1158. <span>作业预览</span>
  1159. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1160. </div>
  1161. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1162. <div class="works" style="
  1163. width: 200px;
  1164. height: 140px;
  1165. margin: 10px 10px 10px 0;
  1166. box-shadow: 0 0 6px 1px #dfdada;
  1167. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1168. <div class="workImg">
  1169. <img :src="w.works" @click="previewImg(w.works)" alt />
  1170. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1171. w.userid == userid || tType == 1 || tType == 4
  1172. " @click.stop="deleteWorks(w.wid)" alt />
  1173. </div>
  1174. <div class="worksName">
  1175. <div>{{ w.sName }}</div>
  1176. </div>
  1177. </div>
  1178. </div>
  1179. </div>
  1180. <div v-if="
  1181. tType &&
  1182. ((tType == 2 && sIsOpen == true) ||
  1183. tType == 1 ||
  1184. tType == 4) &&
  1185. tool.tool.indexOf(16) != -1
  1186. " class="worksBox">
  1187. <div class="zuoyeYulan" v-if="
  1188. worksStudent.length &&
  1189. worksStudent[toolIndex].length > 0
  1190. ">
  1191. <div class="worksTop">
  1192. <div>作业预览</div>
  1193. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1194. worksStudent[toolIndex].length > 6 &&
  1195. isCloseList[toolIndex].isClose == 0
  1196. ">
  1197. 收缩
  1198. </div>
  1199. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1200. 展开
  1201. </div>
  1202. </div>
  1203. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1204. </div>
  1205. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  1206. <div class="group_box">
  1207. <div class="group_title">
  1208. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  1209. <div class="group_name">{{ g.name }}</div>
  1210. </el-tooltip>
  1211. </div>
  1212. <div class="group_work" v-if="
  1213. g.works && g.works.length &&
  1214. g.works[toolIndex].length
  1215. ">
  1216. <div class="works" style="
  1217. width: 200px;
  1218. height: 140px;
  1219. margin: 10px 10px 10px 0;
  1220. border-radius: 15px;
  1221. box-shadow: 0 0 6px 1px #dfdada;
  1222. " v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex"
  1223. :class="w.type == 1 ? 'isTypeOne' : ''">
  1224. <div class="workImg" v-if="w.type == 0">
  1225. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1226. <img :src="w.works" @click="previewImg(w.works)" alt />
  1227. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1228. rightW:
  1229. w.userid == userid ||
  1230. tType == 1 ||
  1231. tType == 4 ||
  1232. w.ateacher == userid,
  1233. }">
  1234. {{ JSON.parse(w.score).wScore }}分
  1235. </div>
  1236. <div class="answerScore" @click.stop="openScore(w)"
  1237. v-else-if="courseDetail.userid == userid" :class="{
  1238. rightW:
  1239. w.userid == userid ||
  1240. tType == 1 ||
  1241. tType == 4 ||
  1242. w.ateacher == userid,
  1243. }">
  1244. 评分
  1245. </div>
  1246. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1247. w.userid == userid || tType == 1 || tType == 4
  1248. " @click.stop="deleteWorks(w.wid)" alt />
  1249. </div>
  1250. <div class="workImg" v-if="w.type == 1">
  1251. <img :src="word" @click="openFile(w.works)" alt />
  1252. <!-- @click="openFile(w.works)" -->
  1253. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1254. rightW:
  1255. w.userid == userid ||
  1256. tType == 1 ||
  1257. tType == 4 ||
  1258. w.ateacher == userid,
  1259. }">
  1260. {{ JSON.parse(w.score).wScore }}分
  1261. </div>
  1262. <div class="answerScore" @click.stop="openScore(w)"
  1263. v-else-if="courseDetail.userid == userid" :class="{
  1264. rightW:
  1265. w.userid == userid ||
  1266. tType == 1 ||
  1267. tType == 4 ||
  1268. w.ateacher == userid,
  1269. }">
  1270. 评分
  1271. </div>
  1272. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1273. w.userid == userid || tType == 1 || tType == 4
  1274. " @click.stop="deleteWorks(w.wid)" alt />
  1275. </div>
  1276. <div class="workImg" v-if="w.type == 3">
  1277. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1278. <!-- @click="openVideo(w.works)" -->
  1279. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1280. rightW:
  1281. w.userid == userid ||
  1282. tType == 1 ||
  1283. tType == 4 ||
  1284. w.ateacher == userid,
  1285. }">
  1286. {{ JSON.parse(w.score).wScore }}分
  1287. </div>
  1288. <div class="answerScore" @click.stop="openScore(w)"
  1289. v-else-if="courseDetail.userid == userid" :class="{
  1290. rightW:
  1291. w.userid == userid ||
  1292. tType == 1 ||
  1293. tType == 4 ||
  1294. w.ateacher == userid,
  1295. }">
  1296. 评分
  1297. </div>
  1298. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1299. w.userid == userid || tType == 1 || tType == 4
  1300. " @click.stop="deleteWorks(w.wid)" alt />
  1301. </div>
  1302. <div class="workImg" v-if="w.type == 12">
  1303. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  1304. <!-- @click="openVideo(w.works)" -->
  1305. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1306. rightW:
  1307. w.userid == userid ||
  1308. tType == 1 ||
  1309. tType == 4 ||
  1310. w.ateacher == userid,
  1311. }">
  1312. {{ JSON.parse(w.score).wScore }}分
  1313. </div>
  1314. <div class="answerScore" @click.stop="openScore(w)"
  1315. v-else-if="courseDetail.userid == userid" :class="{
  1316. rightW:
  1317. w.userid == userid ||
  1318. tType == 1 ||
  1319. tType == 4 ||
  1320. w.ateacher == userid,
  1321. }">
  1322. 评分
  1323. </div>
  1324. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1325. w.userid == userid || tType == 1 || tType == 4
  1326. " @click.stop="deleteWorks(w.wid)" alt />
  1327. </div>
  1328. <div class="comment" style="min-width: 200px">
  1329. <div class="worksName">
  1330. <div>{{ w.sName }}</div>
  1331. </div>
  1332. <div class="commentList">
  1333. <div class="commentList">
  1334. <div class="commentImg" @click="
  1335. isLikes(w.wid, userid, 1, null, w.isLikes)
  1336. ">
  1337. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1338. </div>
  1339. <div>{{ w.likesCount }}</div>
  1340. </div>
  1341. <div class="commentList" style="margin-right: 15px">
  1342. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex, null, g.id)">
  1343. <img src="../assets/icon/comment/comment.png" alt="" />
  1344. </div>
  1345. <div>{{ w.commentCount }}</div>
  1346. </div>
  1347. </div>
  1348. </div>
  1349. </div>
  1350. </div>
  1351. <div class="group_work" v-else>暂无提交作业</div>
  1352. </div>
  1353. </div>
  1354. <div class="worksDetailBox" v-if="
  1355. worksStudent.length &&
  1356. worksStudent[toolIndex].length > 0
  1357. ">
  1358. <div class="works" style="
  1359. width: 200px;
  1360. height: 140px;
  1361. margin: 10px 10px 10px 0;
  1362. border-radius: 15px;
  1363. box-shadow: 0 0 6px 1px #dfdada;
  1364. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1365. 0
  1366. ? worksStudent[toolIndex]
  1367. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  1368. :class="w.type == 1 ? 'isTypeOne' : ''">
  1369. <div class="workImg" v-if="w.type == 0">
  1370. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1371. <img :src="w.works" @click="previewImg(w.works)" alt />
  1372. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1373. rightW:
  1374. w.userid == userid ||
  1375. tType == 1 ||
  1376. tType == 4 ||
  1377. w.ateacher == userid,
  1378. }">
  1379. {{ JSON.parse(w.score).wScore }}分
  1380. </div>
  1381. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1382. :class="{
  1383. rightW:
  1384. w.userid == userid ||
  1385. tType == 1 ||
  1386. tType == 4 ||
  1387. w.ateacher == userid,
  1388. }">
  1389. 评分
  1390. </div>
  1391. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1392. w.userid == userid || tType == 1 || tType == 4
  1393. " @click.stop="deleteWorks(w.wid)" alt />
  1394. </div>
  1395. <div class="workImg" v-if="w.type == 1">
  1396. <img :src="word" @click="openFile(w.works)" alt />
  1397. <!-- @click="openFile(w.works)" -->
  1398. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1399. rightW:
  1400. w.userid == userid ||
  1401. tType == 1 ||
  1402. tType == 4 ||
  1403. w.ateacher == userid,
  1404. }">
  1405. {{ JSON.parse(w.score).wScore }}分
  1406. </div>
  1407. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1408. :class="{
  1409. rightW:
  1410. w.userid == userid ||
  1411. tType == 1 ||
  1412. tType == 4 ||
  1413. w.ateacher == userid,
  1414. }">
  1415. 评分
  1416. </div>
  1417. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1418. w.userid == userid || tType == 1 || tType == 4
  1419. " @click.stop="deleteWorks(w.wid)" alt />
  1420. </div>
  1421. <div class="workImg" v-if="w.type == 3">
  1422. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1423. <!-- @click="openVideo(w.works)" -->
  1424. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1425. rightW:
  1426. w.userid == userid ||
  1427. tType == 1 ||
  1428. tType == 4 ||
  1429. w.ateacher == userid,
  1430. }">
  1431. {{ JSON.parse(w.score).wScore }}分
  1432. </div>
  1433. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1434. :class="{
  1435. rightW:
  1436. w.userid == userid ||
  1437. tType == 1 ||
  1438. tType == 4 ||
  1439. w.ateacher == userid,
  1440. }">
  1441. 评分
  1442. </div>
  1443. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1444. w.userid == userid || tType == 1 || tType == 4
  1445. " @click.stop="deleteWorks(w.wid)" alt />
  1446. </div>
  1447. <div class="workImg" v-if="w.type == 12">
  1448. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  1449. <!-- @click="openVideo(w.works)" -->
  1450. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1451. rightW:
  1452. w.userid == userid ||
  1453. tType == 1 ||
  1454. tType == 4 ||
  1455. w.ateacher == userid,
  1456. }">
  1457. {{ JSON.parse(w.score).wScore }}分
  1458. </div>
  1459. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1460. :class="{
  1461. rightW:
  1462. w.userid == userid ||
  1463. tType == 1 ||
  1464. tType == 4 ||
  1465. w.ateacher == userid,
  1466. }">
  1467. 评分
  1468. </div>
  1469. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1470. w.userid == userid || tType == 1 || tType == 4
  1471. " @click.stop="deleteWorks(w.wid)" alt />
  1472. </div>
  1473. <div class="comment" style="min-width: 200px">
  1474. <div class="worksName">
  1475. <div>{{ w.sName }}</div>
  1476. </div>
  1477. <div class="commentList">
  1478. <div class="commentList">
  1479. <div class="commentImg" @click="
  1480. isLikes(w.wid, userid, 1, null, w.isLikes)
  1481. ">
  1482. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1483. </div>
  1484. <div>{{ w.likesCount }}</div>
  1485. </div>
  1486. <div class="commentList" style="margin-right: 15px">
  1487. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1488. <img src="../assets/icon/comment/comment.png" alt="" />
  1489. </div>
  1490. <div>{{ w.commentCount }}</div>
  1491. </div>
  1492. </div>
  1493. </div>
  1494. </div>
  1495. </div>
  1496. <div style="font-size: 18px">未提交</div>
  1497. <div class="noWorksS">
  1498. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1499. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)">
  1500. {{ s.student }}
  1501. </div>
  1502. </div>
  1503. </div>
  1504. <div v-if="
  1505. tType &&
  1506. ((tType == 2 && sIsOpen == true) ||
  1507. tType == 1 ||
  1508. tType == 4) &&
  1509. tool.tool.indexOf(32) != -1
  1510. " class="worksBox">
  1511. <div class="zuoyeYulan" v-if="
  1512. worksStudent.length &&
  1513. worksStudent[toolIndex].length > 0
  1514. ">
  1515. <div class="worksTop">
  1516. <div>作业预览</div>
  1517. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1518. worksStudent[toolIndex].length > 6 &&
  1519. isCloseList[toolIndex].isClose == 0
  1520. ">
  1521. 收缩
  1522. </div>
  1523. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1524. 展开
  1525. </div>
  1526. </div>
  1527. </div>
  1528. <div class="worksDetailBox" v-if="
  1529. worksStudent.length &&
  1530. worksStudent[toolIndex].length > 0
  1531. ">
  1532. <div class="works" style="
  1533. width: 200px;
  1534. height: 140px;
  1535. margin: 10px 10px 10px 0;
  1536. border-radius: 15px;
  1537. box-shadow: 0 0 6px 1px #dfdada;
  1538. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1539. 0
  1540. ? worksStudent[toolIndex]
  1541. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  1542. :class="w.type == 1 ? 'isTypeOne' : ''">
  1543. <div class="workImg">
  1544. <img :src="word2" @click="downloadFile(w.works)" alt />
  1545. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1546. rightW:
  1547. w.userid == userid ||
  1548. tType == 1 ||
  1549. tType == 4 ||
  1550. w.ateacher == userid,
  1551. }">
  1552. {{ JSON.parse(w.score).wScore }}分
  1553. </div>
  1554. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1555. :class="{
  1556. rightW:
  1557. w.userid == userid ||
  1558. tType == 1 ||
  1559. tType == 4 ||
  1560. w.ateacher == userid,
  1561. }">
  1562. 评分
  1563. </div>
  1564. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1565. w.userid == userid || tType == 1 || tType == 4
  1566. " @click.stop="deleteWorks(w.wid)" alt />
  1567. </div>
  1568. <div class="comment" style="min-width: 200px">
  1569. <div class="worksName">
  1570. <div>{{ w.sName }}</div>
  1571. </div>
  1572. <div class="commentList">
  1573. <div class="commentList">
  1574. <div class="commentImg" @click="
  1575. isLikes(w.wid, userid, 1, null, w.isLikes)
  1576. ">
  1577. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1578. </div>
  1579. <div>{{ w.likesCount }}</div>
  1580. </div>
  1581. <div class="commentList" style="margin-right: 15px">
  1582. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1583. <img src="../assets/icon/comment/comment.png" alt="" />
  1584. </div>
  1585. <div>{{ w.commentCount }}</div>
  1586. </div>
  1587. </div>
  1588. </div>
  1589. </div>
  1590. </div>
  1591. <div style="font-size: 18px">未提交</div>
  1592. <div class="noWorksS">
  1593. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1594. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)">
  1595. {{ s.student }}
  1596. </div>
  1597. </div>
  1598. </div>
  1599. <div v-if="
  1600. tType &&
  1601. ((tType == 2 && sIsOpen == true) ||
  1602. tType == 1 ||
  1603. tType == 4) &&
  1604. tool.tool.indexOf(57) != -1
  1605. " class="worksBox">
  1606. <div class="zuoyeYulan" v-if="
  1607. worksStudent.length &&
  1608. worksStudent[toolIndex].length > 0
  1609. ">
  1610. <div class="worksTop">
  1611. <div>作业预览</div>
  1612. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1613. worksStudent[toolIndex].length > 6 &&
  1614. isCloseList[toolIndex].isClose == 0
  1615. ">
  1616. 收缩
  1617. </div>
  1618. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1619. 展开
  1620. </div>
  1621. </div>
  1622. </div>
  1623. <div class="worksDetailBox" v-if="
  1624. worksStudent.length &&
  1625. worksStudent[toolIndex].length > 0
  1626. ">
  1627. <div class="works" style="
  1628. width: 200px;
  1629. height: 140px;
  1630. margin: 10px 10px 10px 0;
  1631. border-radius: 15px;
  1632. box-shadow: 0 0 6px 1px #dfdada;
  1633. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1634. 0
  1635. ? worksStudent[toolIndex]
  1636. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  1637. :class="w.type == 1 ? 'isTypeOne' : ''">
  1638. <div class="workImg">
  1639. <img :src="word2" @click="downloadFile(w.works)" alt />
  1640. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1641. rightW:
  1642. w.userid == userid ||
  1643. tType == 1 ||
  1644. tType == 4 ||
  1645. w.ateacher == userid,
  1646. }">
  1647. {{ JSON.parse(w.score).wScore }}分
  1648. </div>
  1649. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1650. :class="{
  1651. rightW:
  1652. w.userid == userid ||
  1653. tType == 1 ||
  1654. tType == 4 ||
  1655. w.ateacher == userid,
  1656. }">
  1657. 评分
  1658. </div>
  1659. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1660. w.userid == userid || tType == 1 || tType == 4
  1661. " @click.stop="deleteWorks(w.wid)" alt />
  1662. </div>
  1663. <div class="comment" style="min-width: 200px">
  1664. <div class="worksName">
  1665. <div>{{ w.sName }}</div>
  1666. </div>
  1667. <div class="commentList">
  1668. <div class="commentList">
  1669. <div class="commentImg" @click="
  1670. isLikes(w.wid, userid, 1, null, w.isLikes)
  1671. ">
  1672. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1673. </div>
  1674. <div>{{ w.likesCount }}</div>
  1675. </div>
  1676. <div class="commentList" style="margin-right: 15px">
  1677. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1678. <img src="../assets/icon/comment/comment.png" alt="" />
  1679. </div>
  1680. <div>{{ w.commentCount }}</div>
  1681. </div>
  1682. </div>
  1683. </div>
  1684. </div>
  1685. </div>
  1686. <div style="font-size: 18px">未提交</div>
  1687. <div class="noWorksS">
  1688. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1689. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)">
  1690. {{ s.student }}
  1691. </div>
  1692. </div>
  1693. </div>
  1694. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1695. <div class="zuoyeYulan" v-if="
  1696. worksStudent.length &&
  1697. worksStudent[toolIndex].length > 0
  1698. ">
  1699. <span>作业预览</span>
  1700. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1701. worksStudent[toolIndex].length > 6 &&
  1702. isCloseList[toolIndex].isClose == 0
  1703. ">
  1704. 收缩
  1705. </div>
  1706. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1707. 展开
  1708. </div>
  1709. </div>
  1710. <div class="worksDetailBox" v-if="
  1711. worksStudent.length &&
  1712. worksStudent[toolIndex].length > 0
  1713. ">
  1714. <div class="works" style="
  1715. width: 200px;
  1716. height: 140px;
  1717. margin: 10px 10px 10px 0;
  1718. border-radius: 15px;
  1719. box-shadow: 0 0 6px 1px #dfdada;
  1720. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1721. 0
  1722. ? worksStudent[toolIndex]
  1723. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  1724. :class="w.type == 1 ? 'isTypeOne' : ''">
  1725. <div class="workImg" v-if="w.type == 0">
  1726. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1727. <img :src="w.works" @click="previewImg(w.works)" alt />
  1728. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1729. rightW:
  1730. w.userid == userid ||
  1731. tType == 1 ||
  1732. tType == 4 ||
  1733. w.ateacher == userid,
  1734. }">
  1735. {{ JSON.parse(w.score).wScore }}分
  1736. </div>
  1737. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1738. :class="{
  1739. rightW:
  1740. w.userid == userid ||
  1741. tType == 1 ||
  1742. tType == 4 ||
  1743. w.ateacher == userid,
  1744. }">
  1745. 评分
  1746. </div>
  1747. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1748. w.userid == userid || tType == 1 || tType == 4
  1749. " @click.stop="deleteWorks(w.wid)" alt />
  1750. </div>
  1751. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  1752. <img :src="word" @click="openFile(w.works)" alt />
  1753. <!-- @click="openFile(w.works)" -->
  1754. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1755. rightW:
  1756. w.userid == userid ||
  1757. tType == 1 ||
  1758. tType == 4 ||
  1759. w.ateacher == userid,
  1760. }">
  1761. {{ JSON.parse(w.score).wScore }}分
  1762. </div>
  1763. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1764. :class="{
  1765. rightW:
  1766. w.userid == userid ||
  1767. tType == 1 ||
  1768. tType == 4 ||
  1769. w.ateacher == userid,
  1770. }">
  1771. 评分
  1772. </div>
  1773. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1774. w.userid == userid || tType == 1 || tType == 4
  1775. " @click.stop="deleteWorks(w.wid)" alt />
  1776. </div>
  1777. <div class="workImg" v-if="w.type == 3">
  1778. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1779. <!-- @click="openVideo(w.works)" -->
  1780. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1781. rightW:
  1782. w.userid == userid ||
  1783. tType == 1 ||
  1784. tType == 4 ||
  1785. w.ateacher == userid,
  1786. }">
  1787. {{ JSON.parse(w.score).wScore }}分
  1788. </div>
  1789. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1790. :class="{
  1791. rightW:
  1792. w.userid == userid ||
  1793. tType == 1 ||
  1794. tType == 4 ||
  1795. w.ateacher == userid,
  1796. }">
  1797. 评分
  1798. </div>
  1799. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  1800. w.userid == userid || tType == 1 || tType == 4
  1801. " @click.stop="deleteWorks(w.wid)" alt />
  1802. </div>
  1803. <div class="comment" style="min-width: 200px">
  1804. <div class="worksName">
  1805. <div style="cursor: pointer" @click="openSname(w.sName, w.wid)">
  1806. {{ w.sName }}
  1807. </div>
  1808. </div>
  1809. <div class="commentList">
  1810. <div class="commentList">
  1811. <div class="commentImg" @click="
  1812. isLikes(w.wid, userid, 1, null, w.isLikes)
  1813. ">
  1814. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1815. </div>
  1816. <div>{{ w.likesCount }}</div>
  1817. </div>
  1818. <div class="commentList" style="margin-right: 15px">
  1819. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1820. <img src="../assets/icon/comment/comment.png" alt="" />
  1821. </div>
  1822. <div>{{ w.commentCount }}</div>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. </div>
  1827. </div>
  1828. <div style="font-size: 18px">未提交</div>
  1829. <div class="noWorksS">
  1830. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1831. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)">
  1832. {{ s.student }}
  1833. </div>
  1834. </div>
  1835. </div>
  1836. <div v-if="
  1837. tType &&
  1838. ((tType == 2 && sIsOpen == true) ||
  1839. tType == 1 ||
  1840. tType == 4) &&
  1841. tool.tool.indexOf(4) != -1 &&
  1842. (tool.askJson[0].answer ||
  1843. tool.askJson[0].answer === 0) &&
  1844. checkJson[toolIndex].length
  1845. " class="xuan_right_box">
  1846. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  1847. <div>
  1848. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1849. </div>
  1850. <div class="right_box_xuan">
  1851. <span>正确率</span>
  1852. <span>{{
  1853. (checkJson[toolIndex][index].right
  1854. ? checkJson[toolIndex][index].right
  1855. : 0) + "%"
  1856. }}</span>
  1857. </div>
  1858. </div>
  1859. </div>
  1860. <div class="xuan_right_box" style="background: unset" v-if="
  1861. tType &&
  1862. ((tType == 2 && sIsOpen == true) ||
  1863. tType == 1 ||
  1864. tType == 4) &&
  1865. tool.tool.indexOf(4) != -1
  1866. ">
  1867. <AskStatic v-if="
  1868. worksStudent.length &&
  1869. worksStudent[toolIndex].length > 0
  1870. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  1871. </div>
  1872. <div v-if="
  1873. tType &&
  1874. ((tType == 2 && sIsOpen == true) ||
  1875. tType == 1 ||
  1876. tType == 4) &&
  1877. tool.tool.indexOf(4) != -1
  1878. " class="worksBox">
  1879. <div class="zuoyeYulan" v-if="
  1880. worksStudent.length &&
  1881. worksStudent[toolIndex].length > 0
  1882. ">
  1883. <div class="worksTop">
  1884. <div>作业预览</div>
  1885. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1886. worksStudent[toolIndex].length > 6 &&
  1887. isCloseList[toolIndex].isClose == 0
  1888. ">
  1889. 收缩
  1890. </div>
  1891. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1892. 展开
  1893. </div>
  1894. </div>
  1895. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1896. </div>
  1897. <div>
  1898. <div class="worksDetailBox" v-if="
  1899. worksStudent.length &&
  1900. worksStudent[toolIndex].length > 0
  1901. ">
  1902. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  1903. .isClose == 0
  1904. ? worksStudent[toolIndex]
  1905. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="
  1906. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1907. ">
  1908. {{ w.sName }}
  1909. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="
  1910. w.userid == userid || tType == 1 || tType == 4
  1911. " @click.stop="deleteWorks(w.wid)" alt />
  1912. </div>
  1913. <!-- <div class="works" style="
  1914. width: 200px;
  1915. height: 140px;
  1916. border-radius: 10px;
  1917. box-shadow: 0 0 6px 1px #dfdada;
  1918. overflow: hidden;
  1919. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1920. <div class="workImg">
  1921. <img src="../assets/icon/works/noImg.png" @click="
  1922. openTools(
  1923. 4,
  1924. toolIndex,
  1925. taskCount,
  1926. w.works,
  1927. w.sName
  1928. )
  1929. " alt />
  1930. </div>
  1931. <div class="worksName">
  1932. <div>{{ w.sName }}</div>
  1933. <div>{{ w.time }}</div>
  1934. </div>
  1935. </div> -->
  1936. </div>
  1937. </div>
  1938. <div style="font-size: 18px">未提交</div>
  1939. <div class="noWorksS">
  1940. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1941. {{ s.student }}
  1942. </div>
  1943. </div>
  1944. </div>
  1945. <div v-if="
  1946. tType &&
  1947. ((tType == 2 && sIsOpen == true) ||
  1948. tType == 1 ||
  1949. tType == 4) &&
  1950. tool.tool.indexOf(45) != -1 &&
  1951. (tool.testJson.testJson[0].answer ||
  1952. tool.testJson.testJson[0].answer === 0) &&
  1953. checkJson[toolIndex].length
  1954. " class="xuan_right_box">
  1955. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  1956. <div>
  1957. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1958. </div>
  1959. <div class="right_box_xuan">
  1960. <span>正确率</span>
  1961. <span>{{
  1962. (checkJson[toolIndex][index].right
  1963. ? checkJson[toolIndex][index].right
  1964. : 0) + "%"
  1965. }}</span>
  1966. </div>
  1967. </div>
  1968. </div>
  1969. <div class="xuan_right_box" style="background: unset" v-if="
  1970. tType &&
  1971. ((tType == 2 && sIsOpen == true) ||
  1972. tType == 1 ||
  1973. tType == 4) &&
  1974. tool.tool.indexOf(45) != -1
  1975. ">
  1976. <AskStatic2 v-if="
  1977. worksStudent.length &&
  1978. worksStudent[toolIndex].length > 0
  1979. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  1980. </div>
  1981. <div v-if="
  1982. tType &&
  1983. ((tType == 2 && sIsOpen == true) ||
  1984. tType == 1 ||
  1985. tType == 4) &&
  1986. tool.tool.indexOf(45) != -1
  1987. " class="worksBox">
  1988. <div class="zuoyeYulan" v-if="
  1989. worksStudent.length &&
  1990. worksStudent[toolIndex].length > 0
  1991. ">
  1992. <div class="worksTop">
  1993. <div>作业预览</div>
  1994. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1995. worksStudent[toolIndex].length > 6 &&
  1996. isCloseList[toolIndex].isClose == 0
  1997. ">
  1998. 收缩
  1999. </div>
  2000. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2001. 展开
  2002. </div>
  2003. </div>
  2004. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2005. </div>
  2006. <div>
  2007. <div class="worksDetailBox" v-if="
  2008. worksStudent.length &&
  2009. worksStudent[toolIndex].length > 0
  2010. ">
  2011. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2012. .isClose == 0
  2013. ? worksStudent[toolIndex]
  2014. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="
  2015. openTools(
  2016. 45,
  2017. toolIndex,
  2018. taskCount,
  2019. w.works,
  2020. w.sName
  2021. )
  2022. ">
  2023. {{ w.sName }}
  2024. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png" v-if="
  2025. w.userid == userid || tType == 1 || tType == 4
  2026. " @click.stop="deleteWorks(w.wid)" alt />
  2027. </div>
  2028. </div>
  2029. </div>
  2030. <div style="font-size: 18px">未提交</div>
  2031. <div class="noWorksS">
  2032. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2033. {{ s.student }}
  2034. </div>
  2035. </div>
  2036. </div>
  2037. <div v-if="
  2038. tType &&
  2039. ((tType == 2 && sIsOpen == true) ||
  2040. tType == 1 ||
  2041. tType == 4) &&
  2042. tool.tool.indexOf(15) != -1
  2043. " class="worksBox">
  2044. <div class="zuoyeYulan" v-if="
  2045. worksStudent.length &&
  2046. worksStudent[toolIndex].length > 0
  2047. ">
  2048. <div class="worksTop">
  2049. <div>作业预览</div>
  2050. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2051. worksStudent[toolIndex].length > 6 &&
  2052. isCloseList[toolIndex].isClose == 0
  2053. ">
  2054. 收缩
  2055. </div>
  2056. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2057. 展开
  2058. </div>
  2059. </div>
  2060. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2061. </div>
  2062. <div class="group_workBox" v-for="(g, gindex) in courseGroup.group" :key="gindex">
  2063. <div class="group_box">
  2064. <div class="group_title">
  2065. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  2066. <div class="group_name">{{ g.name }}</div>
  2067. </el-tooltip>
  2068. </div>
  2069. <div class="group_work" v-if="
  2070. g.works && g.works.length &&
  2071. g.works[toolIndex].length
  2072. ">
  2073. <div class="works" v-for="(w, wIndex) in g.works[toolIndex]" :key="wIndex">
  2074. <div class="workImg" style="
  2075. border-radius: 15px;
  2076. box-shadow: #eee 0px 0px 5px 5px;
  2077. ">
  2078. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  2079. @click="commentOther(w, toolIndex, wIndex)">
  2080. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  2081. placement="top">
  2082. <div class="answerContent">
  2083. {{ JSON.parse(w.works)[0].answer }}
  2084. </div>
  2085. </el-tooltip>
  2086. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2087. rightW:
  2088. w.userid == userid ||
  2089. tType == 1 ||
  2090. tType == 4,
  2091. }">
  2092. {{ JSON.parse(w.score).wScore }}分
  2093. </div>
  2094. <div class="answerScore" @click.stop="openScore(w)"
  2095. v-else-if="courseDetail.userid == userid" :class="{
  2096. rightW:
  2097. w.userid == userid ||
  2098. tType == 1 ||
  2099. tType == 4,
  2100. }">
  2101. 评分
  2102. </div>
  2103. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2104. w.userid == userid || tType == 1 || tType == 4
  2105. " @click.stop="deleteWorks(w.wid)" alt />
  2106. </div>
  2107. <div class="comment">
  2108. <div class="worksName">
  2109. <div>{{ w.sName }}</div>
  2110. </div>
  2111. <div class="commentList">
  2112. <div class="commentImg" @click="
  2113. isLikes(w.wid, userid, 1, null, w.isLikes)
  2114. ">
  2115. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2116. </div>
  2117. <div>{{ w.likesCount }}</div>
  2118. </div>
  2119. <div class="commentList" style="margin-right: 15px">
  2120. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex, null, g.id)">
  2121. <img src="../assets/icon/comment/comment.png" alt="" />
  2122. </div>
  2123. <div>{{ w.commentCount }}</div>
  2124. </div>
  2125. </div>
  2126. </div>
  2127. </div>
  2128. </div>
  2129. <div class="group_work" v-else>暂无提交作业</div>
  2130. </div>
  2131. </div>
  2132. <div class="worksDetailBox" v-if="
  2133. worksStudent.length &&
  2134. worksStudent[toolIndex].length > 0
  2135. ">
  2136. <div class="works" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2137. 0
  2138. ? worksStudent[toolIndex]
  2139. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2140. <div class="workImg" style="
  2141. border-radius: 15px;
  2142. box-shadow: #eee 0px 0px 5px 5px;
  2143. ">
  2144. <!-- <img
  2145. src="../assets/icon/works/noImg.png"
  2146. @click="openTools(15, toolIndex, taskCount, w.works)"
  2147. alt=""
  2148. />-->
  2149. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  2150. @click="commentOther(w, toolIndex, wIndex)">
  2151. <!-- <div>{{ w.sName }}</div> -->
  2152. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  2153. placement="top">
  2154. <div class="answerContent">
  2155. {{ JSON.parse(w.works)[0].answer }}
  2156. </div>
  2157. </el-tooltip>
  2158. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2159. rightW:
  2160. w.userid == userid ||
  2161. tType == 1 ||
  2162. tType == 4,
  2163. }">
  2164. {{ JSON.parse(w.score).wScore }}分
  2165. </div>
  2166. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2167. :class="{
  2168. rightW:
  2169. w.userid == userid ||
  2170. tType == 1 ||
  2171. tType == 4,
  2172. }">
  2173. 评分
  2174. </div>
  2175. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2176. w.userid == userid || tType == 1 || tType == 4
  2177. " @click.stop="deleteWorks(w.wid)" alt />
  2178. </div>
  2179. <div class="comment">
  2180. <div class="worksName">
  2181. <div>{{ w.sName }}</div>
  2182. </div>
  2183. <div class="commentList">
  2184. <div class="commentImg" @click="
  2185. isLikes(w.wid, userid, 1, null, w.isLikes)
  2186. ">
  2187. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2188. </div>
  2189. <div>{{ w.likesCount }}</div>
  2190. </div>
  2191. <div class="commentList" style="margin-right: 15px">
  2192. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2193. <img src="../assets/icon/comment/comment.png" alt="" />
  2194. </div>
  2195. <div>{{ w.commentCount }}</div>
  2196. </div>
  2197. </div>
  2198. </div>
  2199. </div>
  2200. </div>
  2201. <div style="font-size: 18px">未提交</div>
  2202. <div class="noWorksS">
  2203. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2204. {{ s.student }}
  2205. </div>
  2206. </div>
  2207. </div>
  2208. <div v-if="
  2209. tType &&
  2210. ((tType == 2 && sIsOpen == true) ||
  2211. tType == 1 ||
  2212. tType == 4) &&
  2213. tool.tool.indexOf(1) != -1
  2214. " class="worksBox">
  2215. <div class="zuoyeYulan" v-if="
  2216. worksStudent.length &&
  2217. worksStudent[toolIndex].length > 0
  2218. ">
  2219. <div class="worksTop">
  2220. <div>作业预览</div>
  2221. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2222. worksStudent[toolIndex].length > 6 &&
  2223. isCloseList[toolIndex].isClose == 0
  2224. ">
  2225. 收缩
  2226. </div>
  2227. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2228. 展开
  2229. </div>
  2230. </div>
  2231. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2232. </div>
  2233. <div class="worksDetailBox" v-if="
  2234. worksStudent.length &&
  2235. worksStudent[toolIndex].length > 0
  2236. ">
  2237. <div class="works" style="
  2238. width: 200px;
  2239. height: 140px;
  2240. margin: 10px 10px 10px 0;
  2241. border-radius: 15px;
  2242. box-shadow: 0 0 6px 1px #dfdada;
  2243. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2244. 0
  2245. ? worksStudent[toolIndex]
  2246. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2247. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2248. <div class="workImg">
  2249. <img :src="w.works" @click="previewImg(w.works)" alt />
  2250. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2251. rightW:
  2252. w.userid == userid || tType == 1 || tType == 4,
  2253. }">
  2254. {{ JSON.parse(w.score).wScore }}分
  2255. </div>
  2256. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2257. :class="{
  2258. rightW:
  2259. w.userid == userid || tType == 1 || tType == 4,
  2260. }">
  2261. 评分
  2262. </div>
  2263. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2264. w.userid == userid || tType == 1 || tType == 4
  2265. " @click.stop="deleteWorks(w.wid)" alt />
  2266. </div>
  2267. <div class="comment" style="min-width: 200px">
  2268. <div class="worksName">
  2269. <div>{{ w.sName }}</div>
  2270. </div>
  2271. <div class="commentList">
  2272. <div class="commentList">
  2273. <div class="commentImg" @click="
  2274. isLikes(w.wid, userid, 1, null, w.isLikes)
  2275. ">
  2276. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2277. </div>
  2278. <div>{{ w.likesCount }}</div>
  2279. </div>
  2280. <div class="commentList" style="margin-right: 15px">
  2281. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2282. <img src="../assets/icon/comment/comment.png" alt="" />
  2283. </div>
  2284. <div>{{ w.commentCount }}</div>
  2285. </div>
  2286. </div>
  2287. </div>
  2288. </div>
  2289. </div>
  2290. <div style="font-size: 18px">未提交</div>
  2291. <div class="noWorksS">
  2292. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2293. {{ s.student }}
  2294. </div>
  2295. </div>
  2296. </div>
  2297. <div v-if="
  2298. tType &&
  2299. ((tType == 2 && sIsOpen == true) ||
  2300. tType == 1 ||
  2301. tType == 4) &&
  2302. tool.tool.indexOf(3) != -1
  2303. " class="worksBox">
  2304. <div class="zuoyeYulan" v-if="
  2305. worksStudent.length &&
  2306. worksStudent[toolIndex].length > 0
  2307. ">
  2308. <div class="worksTop">
  2309. <div>作业预览</div>
  2310. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2311. worksStudent[toolIndex].length > 6 &&
  2312. isCloseList[toolIndex].isClose == 0
  2313. ">
  2314. 收缩
  2315. </div>
  2316. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2317. 展开
  2318. </div>
  2319. </div>
  2320. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2321. </div>
  2322. <div class="worksDetailBox" v-if="
  2323. worksStudent.length &&
  2324. worksStudent[toolIndex].length > 0
  2325. ">
  2326. <div class="works" style="
  2327. width: 200px;
  2328. height: 140px;
  2329. margin: 10px 10px 10px 0;
  2330. border-radius: 15px;
  2331. box-shadow: 0 0 6px 1px #dfdada;
  2332. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2333. 0
  2334. ? worksStudent[toolIndex]
  2335. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2336. <!-- @click="previewImg(w.works)" -->
  2337. <div class="workImg">
  2338. <img :src="w.works" @click="previewImg(w.works)" alt />
  2339. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2340. rightW:
  2341. w.userid == userid || tType == 1 || tType == 4,
  2342. }">
  2343. {{ JSON.parse(w.score).wScore }}分
  2344. </div>
  2345. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2346. :class="{
  2347. rightW:
  2348. w.userid == userid || tType == 1 || tType == 4,
  2349. }">
  2350. 评分
  2351. </div>
  2352. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2353. w.userid == userid || tType == 1 || tType == 4
  2354. " @click.stop="deleteWorks(w.wid)" alt />
  2355. </div>
  2356. <div class="comment" style="min-width: 200px">
  2357. <div class="worksName">
  2358. <div>{{ w.sName }}</div>
  2359. </div>
  2360. <div class="commentList">
  2361. <div class="commentList">
  2362. <div class="commentImg" @click="
  2363. isLikes(w.wid, userid, 1, null, w.isLikes)
  2364. ">
  2365. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2366. </div>
  2367. <div>{{ w.likesCount }}</div>
  2368. </div>
  2369. <div class="commentList" style="margin-right: 15px">
  2370. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2371. <img src="../assets/icon/comment/comment.png" alt="" />
  2372. </div>
  2373. <div>{{ w.commentCount }}</div>
  2374. </div>
  2375. </div>
  2376. </div>
  2377. </div>
  2378. </div>
  2379. <div style="font-size: 18px">未提交</div>
  2380. <div class="noWorksS">
  2381. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2382. {{ s.student }}
  2383. </div>
  2384. </div>
  2385. </div>
  2386. <div v-if="
  2387. tType &&
  2388. ((tType == 2 && sIsOpen == true) ||
  2389. tType == 1 ||
  2390. tType == 4) &&
  2391. tool.tool.indexOf(6) != -1
  2392. " class="worksBox">
  2393. <div class="zuoyeYulan" v-if="
  2394. worksStudent.length &&
  2395. worksStudent[toolIndex].length > 0
  2396. ">
  2397. <div class="worksTop">
  2398. <div>作业预览</div>
  2399. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2400. worksStudent[toolIndex].length > 6 &&
  2401. isCloseList[toolIndex].isClose == 0
  2402. ">
  2403. 收缩
  2404. </div>
  2405. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2406. 展开
  2407. </div>
  2408. </div>
  2409. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2410. </div>
  2411. <div class="worksDetailBox" v-if="
  2412. worksStudent.length &&
  2413. worksStudent[toolIndex].length > 0
  2414. ">
  2415. <div class="works" style="
  2416. width: 200px;
  2417. height: 140px;
  2418. margin: 10px 10px 10px 0;
  2419. border-radius: 15px;
  2420. box-shadow: 0 0 6px 1px #dfdada;
  2421. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2422. 0
  2423. ? worksStudent[toolIndex]
  2424. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2425. <!-- @click="previewImg(w.works)" -->
  2426. <div class="workImg">
  2427. <img :src="w.works" @click="previewImg(w.works)" alt />
  2428. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2429. rightW:
  2430. w.userid == userid || tType == 1 || tType == 4,
  2431. }">
  2432. {{ JSON.parse(w.score).wScore }}分
  2433. </div>
  2434. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2435. :class="{
  2436. rightW:
  2437. w.userid == userid || tType == 1 || tType == 4,
  2438. }">
  2439. 评分
  2440. </div>
  2441. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2442. w.userid == userid || tType == 1 || tType == 4
  2443. " @click.stop="deleteWorks(w.wid)" alt />
  2444. </div>
  2445. <div class="comment" style="min-width: 200px">
  2446. <div class="worksName">
  2447. <div>{{ w.sName }}</div>
  2448. </div>
  2449. <div class="commentList">
  2450. <div class="commentList">
  2451. <div class="commentImg" @click="
  2452. isLikes(w.wid, userid, 1, null, w.isLikes)
  2453. ">
  2454. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2455. </div>
  2456. <div>{{ w.likesCount }}</div>
  2457. </div>
  2458. <div class="commentList" style="margin-right: 15px">
  2459. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2460. <img src="../assets/icon/comment/comment.png" alt="" />
  2461. </div>
  2462. <div>{{ w.commentCount }}</div>
  2463. </div>
  2464. </div>
  2465. </div>
  2466. </div>
  2467. </div>
  2468. <div style="font-size: 18px">未提交</div>
  2469. <div class="noWorksS">
  2470. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2471. {{ s.student }}
  2472. </div>
  2473. </div>
  2474. </div>
  2475. <div v-if="
  2476. tType &&
  2477. ((tType == 2 && sIsOpen == true) ||
  2478. tType == 1 ||
  2479. tType == 4) &&
  2480. tool.tool.indexOf(7) != -1
  2481. " class="worksBox">
  2482. <div class="zuoyeYulan" v-if="
  2483. worksStudent.length &&
  2484. worksStudent[toolIndex].length > 0
  2485. ">
  2486. <div class="worksTop">
  2487. <div>作业预览</div>
  2488. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2489. worksStudent[toolIndex].length > 6 &&
  2490. isCloseList[toolIndex].isClose == 0
  2491. ">
  2492. 收缩
  2493. </div>
  2494. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2495. 展开
  2496. </div>
  2497. </div>
  2498. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2499. </div>
  2500. <div class="worksDetailBox" v-if="
  2501. worksStudent.length &&
  2502. worksStudent[toolIndex].length > 0
  2503. ">
  2504. <div class="works" style="
  2505. width: 200px;
  2506. height: 140px;
  2507. margin: 10px 10px 10px 0;
  2508. border-radius: 15px;
  2509. box-shadow: 0 0 6px 1px #dfdada;
  2510. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2511. 0
  2512. ? worksStudent[toolIndex]
  2513. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex">
  2514. <!-- @click="previewImg(w.works)" -->
  2515. <div class="workImg">
  2516. <img :src="w.works" @click="previewImg(w.works)" alt />
  2517. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2518. rightW:
  2519. w.userid == userid || tType == 1 || tType == 4,
  2520. }">
  2521. {{ JSON.parse(w.score).wScore }}分
  2522. </div>
  2523. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2524. :class="{
  2525. rightW:
  2526. w.userid == userid || tType == 1 || tType == 4,
  2527. }">
  2528. 评分
  2529. </div>
  2530. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2531. w.userid == userid || tType == 1 || tType == 4
  2532. " @click.stop="deleteWorks(w.wid)" alt />
  2533. </div>
  2534. <div class="comment" style="min-width: 200px">
  2535. <div class="worksName">
  2536. <div>{{ w.sName }}</div>
  2537. </div>
  2538. <div class="commentList">
  2539. <div class="commentList">
  2540. <div class="commentImg" @click="
  2541. isLikes(w.wid, userid, 1, null, w.isLikes)
  2542. ">
  2543. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2544. </div>
  2545. <div>{{ w.likesCount }}</div>
  2546. </div>
  2547. <div class="commentList" style="margin-right: 15px">
  2548. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2549. <img src="../assets/icon/comment/comment.png" alt="" />
  2550. </div>
  2551. <div>{{ w.commentCount }}</div>
  2552. </div>
  2553. </div>
  2554. </div>
  2555. </div>
  2556. </div>
  2557. <div style="font-size: 18px">未提交</div>
  2558. <div class="noWorksS">
  2559. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2560. {{ s.student }}
  2561. </div>
  2562. </div>
  2563. </div>
  2564. <div v-if="
  2565. tType &&
  2566. ((tType == 2 && sIsOpen == true) ||
  2567. tType == 1 ||
  2568. tType == 4) &&
  2569. tool.tool.indexOf(26) != -1
  2570. " class="worksBox">
  2571. <div class="zuoyeYulan" v-if="
  2572. worksStudent.length &&
  2573. worksStudent[toolIndex].length > 0
  2574. ">
  2575. <div class="worksTop">
  2576. <div>作业预览</div>
  2577. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2578. worksStudent[toolIndex].length > 6 &&
  2579. isCloseList[toolIndex].isClose == 0
  2580. ">
  2581. 收缩
  2582. </div>
  2583. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2584. 展开
  2585. </div>
  2586. </div>
  2587. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2588. </div>
  2589. <div class="worksDetailBox" v-if="
  2590. worksStudent.length &&
  2591. worksStudent[toolIndex].length > 0
  2592. ">
  2593. <div class="works" style="width: 240px; height: 140px; overflow: hidden" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2594. 0
  2595. ? worksStudent[toolIndex]
  2596. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2597. <div class="workImg" v-if="w.type == 0">
  2598. <img :src="w.works" @click="previewImg(w.works)" alt />
  2599. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2600. w.userid == userid || tType == 1 || tType == 4
  2601. " @click.stop="deleteWorks(w.wid)" alt />
  2602. </div>
  2603. <div class="workImg" v-if="w.type == 1">
  2604. <img :src="word" @click="openFile(w.works)" alt />
  2605. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2606. w.userid == userid || tType == 1 || tType == 4
  2607. " @click.stop="deleteWorks(w.wid)" alt />
  2608. </div>
  2609. <div class="worksName">
  2610. <div>{{ w.sName }}</div>
  2611. </div>
  2612. </div>
  2613. </div>
  2614. <div style="font-size: 18px">未提交</div>
  2615. <div class="noWorksS">
  2616. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2617. {{ s.student }}
  2618. </div>
  2619. </div>
  2620. </div>
  2621. <div v-if="
  2622. tType &&
  2623. ((tType == 2 && sIsOpen == true) ||
  2624. tType == 1 ||
  2625. tType == 4) &&
  2626. tool.tool.indexOf(40) != -1
  2627. " class="worksBox">
  2628. <div class="zuoyeYulan" v-if="
  2629. worksStudent.length &&
  2630. worksStudent[toolIndex].length > 0
  2631. ">
  2632. <div class="worksTop">
  2633. <div>作业预览</div>
  2634. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2635. worksStudent[toolIndex].length > 6 &&
  2636. isCloseList[toolIndex].isClose == 0
  2637. ">
  2638. 收缩
  2639. </div>
  2640. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2641. 展开
  2642. </div>
  2643. </div>
  2644. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2645. </div>
  2646. <div class="worksDetailBox" v-if="
  2647. worksStudent.length &&
  2648. worksStudent[toolIndex].length > 0
  2649. ">
  2650. <div class="works" style="
  2651. width: 200px;
  2652. height: 140px;
  2653. margin: 10px 10px 10px 0;
  2654. border-radius: 15px;
  2655. box-shadow: 0 0 6px 1px #dfdada;
  2656. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2657. 0
  2658. ? worksStudent[toolIndex]
  2659. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  2660. :class="w.type == 1 ? 'isTypeOne' : ''">
  2661. <div class="workImg">
  2662. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2663. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2664. w.userid == userid || tType == 1 || tType == 4
  2665. " @click.stop="deleteWorks(w.wid)" alt />
  2666. </div>
  2667. <div class="comment" style="min-width: 200px">
  2668. <div class="worksName">
  2669. <div>{{ w.sName }}</div>
  2670. </div>
  2671. <div class="commentList">
  2672. <div class="commentList">
  2673. <div class="commentImg" @click="
  2674. isLikes(w.wid, userid, 1, null, w.isLikes)
  2675. ">
  2676. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2677. </div>
  2678. <div>{{ w.likesCount }}</div>
  2679. </div>
  2680. <div class="commentList" style="margin-right: 15px">
  2681. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2682. <img src="../assets/icon/comment/comment.png" alt="" />
  2683. </div>
  2684. <div>{{ w.commentCount }}</div>
  2685. </div>
  2686. </div>
  2687. </div>
  2688. </div>
  2689. </div>
  2690. <div style="font-size: 18px">未提交</div>
  2691. <div class="noWorksS">
  2692. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2693. {{ s.student }}
  2694. </div>
  2695. </div>
  2696. </div>
  2697. <div v-if="
  2698. tType &&
  2699. tType == 2 &&
  2700. !sIsOpen &&
  2701. tool.tool.indexOf(40) != -1
  2702. " class="worksBox">
  2703. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2704. <span>作业预览</span>
  2705. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2706. </div>
  2707. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  2708. <div class="works" style="
  2709. width: 200px;
  2710. height: 140px;
  2711. margin: 10px 10px 10px 0;
  2712. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  2713. <div class="workImg">
  2714. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2715. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2716. w.userid == userid || tType == 1 || tType == 4
  2717. " @click.stop="deleteWorks(w.wid)" alt />
  2718. </div>
  2719. <div class="worksName">
  2720. <div>{{ w.sName }}</div>
  2721. </div>
  2722. </div>
  2723. </div>
  2724. </div>
  2725. <div v-if="
  2726. tType &&
  2727. ((tType == 2 && sIsOpen == true) ||
  2728. tType == 1 ||
  2729. tType == 4) &&
  2730. tool.tool.indexOf(41) != -1
  2731. ">
  2732. <AnswerData2 v-if="
  2733. worksStudent.length &&
  2734. worksStudent[toolIndex].length > 0
  2735. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  2736. </div>
  2737. <div v-if="
  2738. tType &&
  2739. ((tType == 2 && sIsOpen == true) ||
  2740. tType == 1 ||
  2741. tType == 4) &&
  2742. tool.tool.indexOf(41) != -1
  2743. " class="worksBox">
  2744. <div class="zuoyeYulan" v-if="
  2745. worksStudent.length &&
  2746. worksStudent[toolIndex].length > 0
  2747. ">
  2748. <div class="worksTop">
  2749. <div>作业预览</div>
  2750. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2751. worksStudent[toolIndex].length > 6 &&
  2752. isCloseList[toolIndex].isClose == 0
  2753. ">
  2754. 收缩
  2755. </div>
  2756. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2757. 展开
  2758. </div>
  2759. </div>
  2760. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2761. </div>
  2762. <div class="worksDetailBox" v-if="
  2763. worksStudent.length &&
  2764. worksStudent[toolIndex].length > 0
  2765. ">
  2766. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2767. 0
  2768. ? worksStudent[toolIndex]
  2769. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  2770. @click="openXz(w, toolIndex)">
  2771. {{ w.sName }}
  2772. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  2773. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  2774. </div>
  2775. <!-- <div
  2776. class="works"
  2777. style="
  2778. width: 200px;
  2779. height: 140px;
  2780. margin: 10px 10px 10px 0;
  2781. border-radius: 15px;
  2782. box-shadow: 0 0 6px 1px #dfdada;
  2783. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  2784. :class="w.type == 5 ? 'isTypeOne' : ''">
  2785. <div class="workImg">
  2786. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  2787. </div>
  2788. <div class="worksName">
  2789. <div>{{ w.sName }}</div>
  2790. </div>
  2791. </div> -->
  2792. </div>
  2793. <div style="font-size: 18px">未提交</div>
  2794. <div class="noWorksS">
  2795. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2796. {{ s.student }}
  2797. </div>
  2798. </div>
  2799. </div>
  2800. <div v-if="
  2801. tType &&
  2802. tType == 2 &&
  2803. !sIsOpen &&
  2804. tool.tool.indexOf(41) != -1
  2805. " class="worksBox">
  2806. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2807. <span>作业预览</span>
  2808. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2809. </div>
  2810. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  2811. <div class="works" style="
  2812. width: 200px;
  2813. height: 140px;
  2814. margin: 10px 10px 10px 0;
  2815. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  2816. <div class="workImg">
  2817. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  2818. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2819. w.userid == userid || tType == 1 || tType == 4
  2820. " @click.stop="deleteWorks(w.wid)" alt />
  2821. </div>
  2822. <div class="worksName">
  2823. <div>{{ w.sName }}</div>
  2824. </div>
  2825. </div>
  2826. </div>
  2827. </div>
  2828. <div v-if="false" class="xuan_right_box">
  2829. <div class="tool_right_box" v-for="(item, index) in tool.sentenceList" :key="index">
  2830. <div>
  2831. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  2832. </div>
  2833. <div class="right_box_xuan">
  2834. <span>正确率</span>
  2835. <span>{{
  2836. (checkJson[toolIndex][index].right
  2837. ? checkJson[toolIndex][index].right
  2838. : 0) + "%"
  2839. }}</span>
  2840. </div>
  2841. <div class="right_box_xuan">
  2842. <span>答对人数</span>
  2843. <span>{{
  2844. checkJson[toolIndex][index].rightPerson.length
  2845. }}</span>
  2846. </div>
  2847. </div>
  2848. </div>
  2849. <div v-if="
  2850. tType &&
  2851. ((tType == 2 && sIsOpen == true) ||
  2852. tType == 1 ||
  2853. tType == 4) &&
  2854. tool.tool.indexOf(47) != -1
  2855. ">
  2856. <AnswerData v-if="
  2857. checkJson[toolIndex].length &&
  2858. (tool.sentenceList || tool.sentenceList.length > 0)
  2859. " :people="checkJson[toolIndex]"></AnswerData>
  2860. </div>
  2861. <div v-if="
  2862. tType &&
  2863. tType == 2 &&
  2864. !sIsOpen &&
  2865. tool.tool.indexOf(47) != -1
  2866. " class="worksBox">
  2867. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  2868. <span>作业预览</span>
  2869. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2870. </div>
  2871. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  2872. <div class="works" style="
  2873. width: 200px;
  2874. height: 140px;
  2875. margin: 10px 10px 10px 0;
  2876. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  2877. <!-- @click="openXz(w, toolIndex)" -->
  2878. <div class="workImg" @click="openSen(w, toolIndex)">
  2879. <img src="../assets/icon/works/noImg.png" alt />
  2880. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  2881. w.userid == userid || tType == 1 || tType == 4
  2882. " @click.stop="deleteWorks(w.wid)" alt />
  2883. </div>
  2884. <div class="worksName">
  2885. <div>
  2886. {{ w.sName }}
  2887. </div>
  2888. </div>
  2889. </div>
  2890. </div>
  2891. </div>
  2892. <div v-if="
  2893. tType &&
  2894. ((tType == 2 && sIsOpen == true) ||
  2895. tType == 1 ||
  2896. tType == 4) &&
  2897. tool.tool.indexOf(47) != -1
  2898. " class="worksBox">
  2899. <div class="zuoyeYulan" v-if="
  2900. worksStudent.length &&
  2901. worksStudent[toolIndex].length > 0
  2902. ">
  2903. <div class="worksTop">
  2904. <div>作业预览</div>
  2905. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2906. worksStudent[toolIndex].length > 6 &&
  2907. isCloseList[toolIndex].isClose == 0
  2908. ">
  2909. 收缩
  2910. </div>
  2911. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2912. 展开
  2913. </div>
  2914. </div>
  2915. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2916. </div>
  2917. <div class="worksDetailBox" v-if="
  2918. worksStudent.length &&
  2919. worksStudent[toolIndex].length > 0
  2920. ">
  2921. <!-- @click="openXz(w, toolIndex)" -->
  2922. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2923. 0
  2924. ? worksStudent[toolIndex]
  2925. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  2926. @click="openSen(w, toolIndex)">
  2927. {{ w.sName }}
  2928. <img class="deleteImg deleteImg2" src="../assets/deleteworks.png"
  2929. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  2930. </div>
  2931. </div>
  2932. <div style="font-size: 18px">未提交</div>
  2933. <div class="noWorksS">
  2934. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2935. {{ s.student }}
  2936. </div>
  2937. </div>
  2938. </div>
  2939. <div v-if="
  2940. tType &&
  2941. ((tType == 2 && sIsOpen == true) ||
  2942. tType == 1 ||
  2943. tType == 4) &&
  2944. tool.tool.indexOf(48) != -1
  2945. " class="worksBox">
  2946. <div class="zuoyeYulan" v-if="
  2947. worksStudent.length &&
  2948. worksStudent[toolIndex].length > 0
  2949. ">
  2950. <div class="worksTop">
  2951. <div>作业预览</div>
  2952. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2953. worksStudent[toolIndex].length > 6 &&
  2954. isCloseList[toolIndex].isClose == 0
  2955. ">
  2956. 收缩
  2957. </div>
  2958. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2959. 展开
  2960. </div>
  2961. </div>
  2962. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  2963. </div>
  2964. <div class="worksDetailBox" v-if="
  2965. worksStudent.length &&
  2966. worksStudent[toolIndex].length > 0
  2967. ">
  2968. <div class="works" style="
  2969. width: 200px;
  2970. height: 140px;
  2971. margin: 10px 10px 10px 0;
  2972. border-radius: 15px;
  2973. box-shadow: 0 0 6px 1px #dfdada;
  2974. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2975. 0
  2976. ? worksStudent[toolIndex]
  2977. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  2978. :class="w.type == 1 ? 'isTypeOne' : ''">
  2979. <div class="workImg">
  2980. <img :src="word" @click="openTable(w)" alt />
  2981. <!-- @click="openFile(w.works)" -->
  2982. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2983. rightW:
  2984. w.userid == userid ||
  2985. tType == 1 ||
  2986. tType == 4 ||
  2987. w.ateacher == userid,
  2988. }">
  2989. {{ JSON.parse(w.score).wScore }}分
  2990. </div>
  2991. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2992. :class="{
  2993. rightW:
  2994. w.userid == userid ||
  2995. tType == 1 ||
  2996. tType == 4 ||
  2997. w.ateacher == userid,
  2998. }">
  2999. 评分
  3000. </div>
  3001. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3002. w.userid == userid || tType == 1 || tType == 4
  3003. " @click.stop="deleteWorks(w.wid)" alt />
  3004. </div>
  3005. <div class="comment" style="min-width: 200px">
  3006. <div class="worksName">
  3007. <div>{{ w.sName }}</div>
  3008. </div>
  3009. <div class="commentList">
  3010. <div class="commentList">
  3011. <div class="commentImg" @click="
  3012. isLikes(w.wid, userid, 1, null, w.isLikes)
  3013. ">
  3014. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3015. </div>
  3016. <div>{{ w.likesCount }}</div>
  3017. </div>
  3018. <div class="commentList" style="margin-right: 15px">
  3019. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3020. <img src="../assets/icon/comment/comment.png" alt="" />
  3021. </div>
  3022. <div>{{ w.commentCount }}</div>
  3023. </div>
  3024. </div>
  3025. </div>
  3026. </div>
  3027. </div>
  3028. <div style="font-size: 18px">未提交</div>
  3029. <div class="noWorksS">
  3030. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  3031. {{ s.student }}
  3032. </div>
  3033. </div>
  3034. </div>
  3035. <div v-if="
  3036. tType &&
  3037. tType == 2 &&
  3038. !sIsOpen &&
  3039. tool.tool.indexOf(48) != -1
  3040. " class="worksBox">
  3041. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  3042. <span>作业预览</span>
  3043. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  3044. </div>
  3045. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  3046. <div class="works" style="
  3047. width: 200px;
  3048. height: 140px;
  3049. margin: 10px 10px 10px 0;
  3050. box-shadow: 0 0 6px 1px #dfdada;
  3051. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  3052. <div class="workImg">
  3053. <img :src="word" @click="openTable(w)" alt />
  3054. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3055. rightW:
  3056. w.userid == userid || tType == 1 || tType == 4,
  3057. }">
  3058. {{ JSON.parse(w.score).wScore }}分
  3059. </div>
  3060. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3061. :class="{
  3062. rightW:
  3063. w.userid == userid || tType == 1 || tType == 4,
  3064. }">
  3065. 评分
  3066. </div>
  3067. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3068. w.userid == userid || tType == 1 || tType == 4
  3069. " @click.stop="deleteWorks(w.wid)" alt />
  3070. </div>
  3071. <div class="worksName">
  3072. <div>{{ w.sName }}</div>
  3073. </div>
  3074. </div>
  3075. </div>
  3076. </div>
  3077. <div v-if="
  3078. tType &&
  3079. ((tType == 2 && sIsOpen == true) ||
  3080. tType == 1 ||
  3081. tType == 4) &&
  3082. tool.tool.indexOf(52) != -1
  3083. " class="worksBox">
  3084. <div class="zuoyeYulan" v-if="
  3085. worksStudent.length &&
  3086. worksStudent[toolIndex].length > 0
  3087. ">
  3088. <div class="worksTop">
  3089. <div>作业预览</div>
  3090. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3091. worksStudent[toolIndex].length > 6 &&
  3092. isCloseList[toolIndex].isClose == 0
  3093. ">
  3094. 收缩
  3095. </div>
  3096. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3097. 展开
  3098. </div>
  3099. </div>
  3100. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  3101. </div>
  3102. <div class="worksDetailBox" v-if="
  3103. worksStudent.length &&
  3104. worksStudent[toolIndex].length > 0
  3105. ">
  3106. <div class="works" style="
  3107. width: 200px;
  3108. height: 140px;
  3109. margin: 10px 10px 10px 0;
  3110. border-radius: 15px;
  3111. box-shadow: 0 0 6px 1px #dfdada;
  3112. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3113. 0
  3114. ? worksStudent[toolIndex]
  3115. : worksStudent[toolIndex].slice(0, 6)" :key="wIndex"
  3116. :class="w.type == 1 ? 'isTypeOne' : ''">
  3117. <div class="workImg">
  3118. <img :src="word" @click="openTable(w)" alt />
  3119. <!-- @click="openFile(w.works)" -->
  3120. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3121. rightW:
  3122. w.userid == userid ||
  3123. tType == 1 ||
  3124. tType == 4 ||
  3125. w.ateacher == userid,
  3126. }">
  3127. {{ JSON.parse(w.score).wScore }}分
  3128. </div>
  3129. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3130. :class="{
  3131. rightW:
  3132. w.userid == userid ||
  3133. tType == 1 ||
  3134. tType == 4 ||
  3135. w.ateacher == userid,
  3136. }">
  3137. 评分
  3138. </div>
  3139. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3140. w.userid == userid || tType == 1 || tType == 4
  3141. " @click.stop="deleteWorks(w.wid)" alt />
  3142. </div>
  3143. <div class="comment" style="min-width: 200px">
  3144. <div class="worksName">
  3145. <div>{{ w.sName }}</div>
  3146. </div>
  3147. <div class="commentList">
  3148. <div class="commentList">
  3149. <div class="commentImg" @click="
  3150. isLikes(w.wid, userid, 1, null, w.isLikes)
  3151. ">
  3152. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3153. </div>
  3154. <div>{{ w.likesCount }}</div>
  3155. </div>
  3156. <div class="commentList" style="margin-right: 15px">
  3157. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3158. <img src="../assets/icon/comment/comment.png" alt="" />
  3159. </div>
  3160. <div>{{ w.commentCount }}</div>
  3161. </div>
  3162. </div>
  3163. </div>
  3164. </div>
  3165. </div>
  3166. <div style="font-size: 18px">未提交</div>
  3167. <div class="noWorksS">
  3168. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  3169. {{ s.student }}
  3170. </div>
  3171. </div>
  3172. </div>
  3173. <div v-if="
  3174. tType &&
  3175. tType == 2 &&
  3176. !sIsOpen &&
  3177. tool.tool.indexOf(52) != -1
  3178. " class="worksBox">
  3179. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  3180. <span>作业预览</span>
  3181. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  3182. </div>
  3183. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  3184. <div class="works" style="
  3185. width: 200px;
  3186. height: 140px;
  3187. margin: 10px 10px 10px 0;
  3188. box-shadow: 0 0 6px 1px #dfdada;
  3189. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  3190. <div class="workImg">
  3191. <img :src="word" @click="openTable(w)" alt />
  3192. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3193. rightW:
  3194. w.userid == userid || tType == 1 || tType == 4,
  3195. }">
  3196. {{ JSON.parse(w.score).wScore }}分
  3197. </div>
  3198. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3199. :class="{
  3200. rightW:
  3201. w.userid == userid || tType == 1 || tType == 4,
  3202. }">
  3203. 评分
  3204. </div>
  3205. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3206. w.userid == userid || tType == 1 || tType == 4
  3207. " @click.stop="deleteWorks(w.wid)" alt />
  3208. </div>
  3209. <div class="worksName">
  3210. <div>{{ w.sName }}</div>
  3211. </div>
  3212. </div>
  3213. </div>
  3214. </div>
  3215. <div v-if="tool.tool.indexOf(49) != -1" class="xuan_right_box">
  3216. <div v-if="courseDetail.userid == userid" style="display: flex; justify-content: flex-end">
  3217. <el-button type="primary" size="small" @click="addTools(49, toolIndex, taskCount)">分组设置</el-button>
  3218. </div>
  3219. <div v-if="groupStudentUid[toolIndex]" class="group_staic_box">
  3220. <div v-for="(gp, gd) in tool.groupJson.group" :key="gd" class="group_staic">
  3221. <span> {{ gp.name }}</span>
  3222. <span>
  3223. 目前人数{{
  3224. groupStudentUid[toolIndex][gd].length
  3225. }}人</span>
  3226. </div>
  3227. </div>
  3228. </div>
  3229. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  3230. <div class="zuoyeYulan" v-if="
  3231. worksStudent.length &&
  3232. worksStudent[toolIndex].length > 0
  3233. ">
  3234. <span>作业预览</span>
  3235. </div>
  3236. <div>
  3237. <div class="group_workBox" v-for="(g, gindex) in tool.groupJson.group" :key="gindex">
  3238. <div class="group_box" v-if="
  3239. groupStudentUid[toolIndex] &&
  3240. worksStudent[toolIndex] &&
  3241. (worksStudent[toolIndex][gindex].length ||
  3242. groupStudentUid[toolIndex][gindex].indexOf(
  3243. userid
  3244. ) != -1)
  3245. ">
  3246. <div class="group_title">
  3247. <el-tooltip class="item" effect="light" :content="g.name" placement="top">
  3248. <div class="group_name">{{ g.name }}</div>
  3249. </el-tooltip>
  3250. <el-button type="primary" v-if="
  3251. groupStudentUid[toolIndex][gindex].indexOf(
  3252. userid
  3253. ) != -1
  3254. " @click="groupUpload(toolIndex, taskCount, gindex)">上传作业</el-button>
  3255. </div>
  3256. <div class="group_work">
  3257. <div class="works" style="
  3258. width: 200px;
  3259. height: 140px;
  3260. margin: 10px 10px 10px 0;
  3261. border-radius: 15px;
  3262. box-shadow: 0 0 6px 1px #dfdada;
  3263. " v-for="(w, wIndex) in worksStudent[toolIndex][
  3264. gindex
  3265. ]" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  3266. <div class="workImg" v-if="w.type == 0">
  3267. <img :src="w.works" @click="previewImg(w.works)" alt />
  3268. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3269. rightW:
  3270. w.userid == userid ||
  3271. tType == 1 ||
  3272. tType == 4 ||
  3273. w.ateacher == userid,
  3274. }">
  3275. {{ JSON.parse(w.score).wScore }}分
  3276. </div>
  3277. <div class="answerScore" @click.stop="openScore(w)"
  3278. v-else-if="courseDetail.userid == userid" :class="{
  3279. rightW:
  3280. w.userid == userid ||
  3281. tType == 1 ||
  3282. tType == 4 ||
  3283. w.ateacher == userid,
  3284. }">
  3285. 评分
  3286. </div>
  3287. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3288. w.userid == userid ||
  3289. tType == 1 ||
  3290. tType == 4
  3291. " @click.stop="deleteWorks(w.wid)" alt />
  3292. </div>
  3293. <div class="workImg" v-if="w.type == 1">
  3294. <img :src="word" @click="openFile(w.works)" alt />
  3295. <!-- @click="openFile(w.works)" -->
  3296. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3297. rightW:
  3298. w.userid == userid ||
  3299. tType == 1 ||
  3300. tType == 4 ||
  3301. w.ateacher == userid,
  3302. }">
  3303. {{ JSON.parse(w.score).wScore }}分
  3304. </div>
  3305. <div class="answerScore" @click.stop="openScore(w)"
  3306. v-else-if="courseDetail.userid == userid" :class="{
  3307. rightW:
  3308. w.userid == userid ||
  3309. tType == 1 ||
  3310. tType == 4 ||
  3311. w.ateacher == userid,
  3312. }">
  3313. 评分
  3314. </div>
  3315. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3316. w.userid == userid ||
  3317. tType == 1 ||
  3318. tType == 4
  3319. " @click.stop="deleteWorks(w.wid)" alt />
  3320. </div>
  3321. <div class="workImg" v-if="w.type == 3">
  3322. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  3323. <!-- @click="openVideo(w.works)" -->
  3324. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3325. rightW:
  3326. w.userid == userid ||
  3327. tType == 1 ||
  3328. tType == 4 ||
  3329. w.ateacher == userid,
  3330. }">
  3331. {{ JSON.parse(w.score).wScore }}分
  3332. </div>
  3333. <div class="answerScore" @click.stop="openScore(w)"
  3334. v-else-if="courseDetail.userid == userid" :class="{
  3335. rightW:
  3336. w.userid == userid ||
  3337. tType == 1 ||
  3338. tType == 4 ||
  3339. w.ateacher == userid,
  3340. }">
  3341. 评分
  3342. </div>
  3343. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3344. w.userid == userid ||
  3345. tType == 1 ||
  3346. tType == 4
  3347. " @click.stop="deleteWorks(w.wid)" alt />
  3348. </div>
  3349. <div class="workImg" v-if="w.type == 12">
  3350. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  3351. <!-- @click="openVideo(w.works)" -->
  3352. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3353. rightW:
  3354. w.userid == userid ||
  3355. tType == 1 ||
  3356. tType == 4 ||
  3357. w.ateacher == userid,
  3358. }">
  3359. {{ JSON.parse(w.score).wScore }}分
  3360. </div>
  3361. <div class="answerScore" @click.stop="openScore(w)"
  3362. v-else-if="courseDetail.userid == userid" :class="{
  3363. rightW:
  3364. w.userid == userid ||
  3365. tType == 1 ||
  3366. tType == 4 ||
  3367. w.ateacher == userid,
  3368. }">
  3369. 评分
  3370. </div>
  3371. <img class="deleteImg" src="../assets/deleteworks.png" v-if="
  3372. w.userid == userid ||
  3373. tType == 1 ||
  3374. tType == 4
  3375. " @click.stop="deleteWorks(w.wid)" alt />
  3376. </div>
  3377. <div class="comment" style="min-width: 200px">
  3378. <div class="worksName">
  3379. <div>{{ w.sName }}</div>
  3380. </div>
  3381. <div class="commentList">
  3382. <div class="commentList">
  3383. <div class="commentImg" @click="
  3384. isLikes(
  3385. w.wid,
  3386. userid,
  3387. 1,
  3388. null,
  3389. w.isLikes
  3390. )
  3391. ">
  3392. <img :src="
  3393. w.isLikes == true ? likes : noLikes
  3394. " alt="" />
  3395. </div>
  3396. <div>{{ w.likesCount }}</div>
  3397. </div>
  3398. <div class="commentList" style="margin-right: 15px">
  3399. <div class="commentImg" @click="
  3400. commentOther(
  3401. w,
  3402. toolIndex,
  3403. wIndex,
  3404. gindex
  3405. )
  3406. ">
  3407. <img src="../assets/icon/comment/comment.png" alt="" />
  3408. </div>
  3409. <div>{{ w.commentCount }}</div>
  3410. </div>
  3411. </div>
  3412. </div>
  3413. </div>
  3414. </div>
  3415. </div>
  3416. </div>
  3417. </div>
  3418. </div>
  3419. </div>
  3420. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  3421. 上传文件
  3422. <input
  3423. type="file"
  3424. accept="image/png, image/gif, image/jpeg"
  3425. style="display: none"
  3426. @change="beforeUpload1($event, 2, index)"
  3427. />
  3428. </div>-->
  3429. </div>
  3430. </div>
  3431. <div class="vedioBox" v-if="
  3432. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  3433. .eList &&
  3434. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  3435. .eList.length &&
  3436. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  3437. .eList.length > 0 &&
  3438. tType != 2
  3439. ">
  3440. <div class="queTop" style="
  3441. font-size: 25px;
  3442. padding: 15px 0 15px 30px;
  3443. font-weight: bold;
  3444. ">
  3445. <!-- <div class="question" style="width: 30px">
  3446. <img src="../assets/icon/toolIcon.png" alt />
  3447. </div>
  3448. <div class="queTitle">
  3449. <div>工具</div>
  3450. </div>-->
  3451. 评一评
  3452. </div>
  3453. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  3454. <div class="elist_input">
  3455. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  3456. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  3457. <div style="width: 95%">
  3458. <div style="
  3459. display: flex;
  3460. flex-direction: row;
  3461. flex-wrap: nowrap;
  3462. align-items: center;
  3463. ">
  3464. <div style="max-width: calc(100% - 285px)">
  3465. <span>{{ eItem.value }}</span>
  3466. </div>
  3467. <div style="
  3468. padding-left: 25px;
  3469. display: flex;
  3470. flex-direction: row;
  3471. align-items: center;
  3472. ">
  3473. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  3474. </div>
  3475. </div>
  3476. <div class="elist_inptu_text" style="padding-left: 10px">
  3477. <span v-if="eItem.detail != ''">{{
  3478. eItem.detail
  3479. }}</span>
  3480. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  3481. </div>
  3482. </div>
  3483. </div>
  3484. </div>
  3485. <div v-if="evalua" style="
  3486. border: 1px solid #e5e5e5;
  3487. max-width: 650px;
  3488. width: 100%;
  3489. margin-top: 20px;
  3490. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3491. ">
  3492. <div class="e_add_top">
  3493. <div class="e_add_title">
  3494. <span>目标管理名称</span>
  3495. <span>{{ eTitle }}</span>
  3496. <img src="../assets/line.png" class="cru_line" style="
  3497. width: 125px;
  3498. height: 20px;
  3499. bottom: -10px;
  3500. left: 120px;
  3501. " />
  3502. <!-- <el-input
  3503. v-model="eTitle"
  3504. placeholder="请输入名称"
  3505. @change="setMindData"
  3506. ></el-input>-->
  3507. </div>
  3508. </div>
  3509. <div class="e_add_content">
  3510. <div class="e_add_list_pbox">
  3511. <div class="e_add_list_pbox_title">
  3512. <span class="type_title">切换模式</span>
  3513. <div class="type_content">
  3514. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  3515. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  3516. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  3517. </div>
  3518. </div>
  3519. <div class="e_add_list_pbox_content">
  3520. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  3521. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  3522. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  3523. </SeeBoard>
  3524. </div>
  3525. </div>
  3526. </div>
  3527. </div>
  3528. </div>
  3529. </div>
  3530. <!-- <div
  3531. class="project_box"
  3532. style="margin-top: 15px; padding-bottom: 30px"
  3533. >
  3534. <div
  3535. style="
  3536. display: flex;
  3537. flex-wrap: nowrap;
  3538. flex-direction: column;
  3539. position: relative;
  3540. "
  3541. >
  3542. <div class="queTop">
  3543. <div class="question">
  3544. <img src="../assets/icon/homeWork.png" alt="" />
  3545. </div>
  3546. <div class="queTitle">
  3547. <div>作业提交<span>(提交图文视频等)</span></div>
  3548. <div>:任务:{{ task.task }}</div>
  3549. </div>
  3550. </div>
  3551. <div class="ediBottom">
  3552. <div
  3553. class="addEditor"
  3554. style="margin-top: 23px"
  3555. @click="openAddWork"
  3556. v-if="!isNoHomeWork"
  3557. >
  3558. 选择文件
  3559. </div>
  3560. <div
  3561. class="addEditor"
  3562. style="margin-top: 23px"
  3563. @click="openAddWork"
  3564. v-else
  3565. >
  3566. 已提交
  3567. </div>
  3568. </div>
  3569. </div>
  3570. </div>-->
  3571. </div>
  3572. </div>
  3573. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  3574. :before-close="handleClose" class="dialog_change">
  3575. <div class="marginT">
  3576. <div>上传文件</div>
  3577. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3578. <div class="up_photo">
  3579. <img src="../assets/icon/uploadImg.png" alt />
  3580. </div>
  3581. <!-- <input
  3582. type="file"
  3583. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3584. style="display: none"
  3585. @change="beforeUpload1($event, 1)"
  3586. /> -->
  3587. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  3588. <!-- <input
  3589. type="file"
  3590. accept="image/*"
  3591. capture="camera"
  3592. style="display: none"
  3593. @change="beforeUpload1($event, 1)"
  3594. /> -->
  3595. </div>
  3596. <div class="chapter_add" style="
  3597. display: flex;
  3598. width: 100%;
  3599. flex-direction: row;
  3600. flex-wrap: wrap;
  3601. justify-content: flex-start;
  3602. padding: 15px 0;
  3603. " v-if="studyJuri[0].cover.length > 0">
  3604. <div class="upCover">
  3605. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3606. <img :src="word" alt v-else-if="fileType == 1" />
  3607. <img :src="video" alt v-else-if="fileType == 2" />
  3608. <img :src="word2" alt v-else-if="fileType == 3" />
  3609. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3610. <div class="deleteWord" @click="clean(1)">
  3611. <img src="../assets/icon/deleteWorks.png" alt />
  3612. </div>
  3613. </div>
  3614. </div>
  3615. </div>
  3616. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  3617. 提交
  3618. </div>
  3619. </el-dialog>
  3620. </div>
  3621. </div>
  3622. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4">
  3623. <!-- 批 -->
  3624. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  3625. </div>
  3626. <div v-if="pzDialog == true" class="newDialogCss">
  3627. <div class="pzTop2">
  3628. <!-- <div>批注</div>
  3629. <div @click="pzDialog = false">
  3630. <img src="../assets/close1.png" alt="" />
  3631. </div> -->
  3632. <div class="checkbox">
  3633. <div class="check" style="font-size: 25px">评课笔记</div>
  3634. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  3635. </div>
  3636. </div>
  3637. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  3638. <div class="pzListBox" v-if="pzList && pzList.length">
  3639. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  3640. <div class="pzNavTop">
  3641. <div>批</div>
  3642. <div>
  3643. {{
  3644. pz.username && pz.username.length > 5
  3645. ? pz.username.substring(0, 5) + "..."
  3646. : pz.username
  3647. }}的批注
  3648. </div>
  3649. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  3650. 删除
  3651. </div>
  3652. </div>
  3653. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  3654. <div class="pzContent" v-if="pz.type == '2'">
  3655. <audio :src="pz.content" controls="controls" ref="audio">
  3656. Your browser does not support the audio element.
  3657. </audio>
  3658. </div>
  3659. <div class="pzContent" v-if="pz.type == '3'">
  3660. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  3661. </div>
  3662. <div class="time">
  3663. {{ pz.time }}
  3664. </div>
  3665. </div>
  3666. </div>
  3667. <div class="noPz" v-else>
  3668. <img src="../assets/icon/noPz.png" alt="" />
  3669. </div>
  3670. <div class="addPzButton">
  3671. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  3672. 添加批注
  3673. </div>
  3674. <!-- <div class="img1">
  3675. <div @click="(addPzDialog = true), (pzType = 2)">
  3676. <img src="../assets/audio.png" /><span>音频</span>
  3677. </div>
  3678. </div> -->
  3679. </div>
  3680. </div>
  3681. </div>
  3682. <div v-if="addPzDialog == true" class="addDialogCss">
  3683. <div class="pzTop">
  3684. <div class="teacherPz">
  3685. <div class="teacherPzImg">
  3686. <img src="../assets/icon/teacherPz.png" alt="" />
  3687. </div>
  3688. <div style="margin-left: 10px; height: 25px">教师批注</div>
  3689. </div>
  3690. <div @click="addPzDialog = false">
  3691. <img src="../assets/close1.png" alt="" />
  3692. </div>
  3693. </div>
  3694. <div class="addPzBox">
  3695. <div class="addPzCheck">
  3696. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  3697. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  3698. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  3699. </div>
  3700. <div style="height: calc(100% - 95px)">
  3701. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  3702. v-if="pzType == 1"></textarea> -->
  3703. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  3704. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  3705. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  3706. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  3707. <div @click="addImg($event)">
  3708. <el-button type="primary">上传图片</el-button>
  3709. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  3710. @change="beforeUpload1($event, 4)" />
  3711. </div>
  3712. </div> -->
  3713. </div>
  3714. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  3715. 确定
  3716. </div>
  3717. </div>
  3718. </div>
  3719. <div v-if="proVisible" class="mask">
  3720. <div class="progressBox">
  3721. <!-- <div id="closePro" class="closeCss">
  3722. <img src="../assets/icon/close.png" alt />
  3723. </div> -->
  3724. <div class="lbox">
  3725. <img src="../assets/loading.gif" />上传中,请稍后
  3726. </div>
  3727. <div style="margin-bottom: 10px">
  3728. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  3729. </div>
  3730. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  3731. </div>
  3732. </div>
  3733. <div v-if="proVisible2" class="mask">
  3734. <div class="progressBox">
  3735. <div class="lbox">
  3736. <img src="../assets/loading.gif" />上传中,请稍后
  3737. </div>
  3738. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  3739. </div>
  3740. </div>
  3741. <el-dialog :visible.sync="pictureDialog" size="tiny">
  3742. <img width="100%" :src="dialogImageUrl" alt />
  3743. </el-dialog>
  3744. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  3745. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3746. <div>
  3747. <div class="a_add_title" style="
  3748. display: flex;
  3749. flex-direction: row;
  3750. align-items: center;
  3751. justify-content: center;
  3752. ">
  3753. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3754. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3755. </div>
  3756. <div class="a_addBox">
  3757. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3758. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3759. <div class="a_add_head">
  3760. <div style="display: flex">
  3761. {{ index1 + 1 + "、" }}
  3762. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3763. </div>
  3764. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3765. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3766. </div>
  3767. <div class="a_add_body">
  3768. <div class="a_add_input">
  3769. <el-radio-group v-model="radio[index1]">
  3770. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  3771. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3772. v-html="item2"></span></el-radio>
  3773. </el-radio-group>
  3774. </div>
  3775. </div>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. <span slot="footer" class="dialog-footer">
  3780. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  3781. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  3782. </span>
  3783. </el-dialog>
  3784. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  3785. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3786. <div>
  3787. <!-- <div class="a_add_title" style="
  3788. display: flex;
  3789. flex-direction: row;
  3790. align-items: center;
  3791. justify-content: center;
  3792. ">
  3793. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3794. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  3795. </div> -->
  3796. <div class="a_addBox">
  3797. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3798. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3799. <div class="a_add_head">
  3800. <div style="display: flex">
  3801. {{ index1 + 1 + "、" }}
  3802. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  3803. (单选题)
  3804. </div>
  3805. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  3806. (多选题)
  3807. </div>
  3808. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3809. </div>
  3810. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  3811. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3812. </div>
  3813. <div class="timuImgBox" v-if="
  3814. testJson.testJson[index1].timuList &&
  3815. testJson.testJson[index1].timuList.length
  3816. ">
  3817. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3818. @click.stop="previewImg(timg.src)">
  3819. <img :src="timg.src" alt="" />
  3820. </div>
  3821. </div>
  3822. <div class="a_add_body">
  3823. <div class="a_add_input">
  3824. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  3825. <div class="radioBox">
  3826. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3827. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3828. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3829. <div class="inImg" @click.stop="previewImg(item2.src)">
  3830. <img :src="item2.src" alt="" />
  3831. </div>
  3832. </div>
  3833. <span v-else v-html="item2"></span>
  3834. </el-radio>
  3835. </div>
  3836. </el-radio-group>
  3837. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  3838. <div class="radioBox">
  3839. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  3840. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3841. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3842. <div class="inImg" @click.stop="previewImg(item2.src)">
  3843. <img :src="item2.src" alt="" />
  3844. </div>
  3845. </div>
  3846. <span v-else v-html="item2"></span>
  3847. </el-checkbox>
  3848. </div>
  3849. </el-checkbox-group>
  3850. </div>
  3851. </div>
  3852. </div>
  3853. </div>
  3854. </div>
  3855. <span slot="footer" class="dialog-footer">
  3856. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  3857. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  3858. </span>
  3859. </el-dialog>
  3860. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  3861. :before-close="handleClose" class="dialog_diy textCss">
  3862. <el-form style="font-size: 20px">
  3863. <el-form-item label="文本标题" class="textTitle">
  3864. <div style="font-size: 20px">{{ text.name }}</div>
  3865. </el-form-item>
  3866. <div>富文本内容</div>
  3867. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  3868. </el-form>
  3869. <span slot="footer" class="dialog-footer">
  3870. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  3871. </span>
  3872. </el-dialog>
  3873. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  3874. :class="{ fullStyle: full }">
  3875. <div slot="title" class="header-title">
  3876. <div style="color: #fff">文件预览</div>
  3877. <div style="position: absolute; top: 19px; right: 50px">
  3878. <img src="../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  3879. </div>
  3880. </div>
  3881. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3882. :class="{ fullStyle: full }"></pdf>
  3883. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"
  3884. security="restricted"
  3885. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  3886. </el-dialog>
  3887. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  3888. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600" security="restricted"
  3889. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  3890. </el-dialog>
  3891. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  3892. class="dialog_diy notice">
  3893. <div>此功能暂未开放!</div>
  3894. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  3895. </el-dialog>
  3896. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  3897. :before-close="handleClose" class="dialog_diy">
  3898. <div>
  3899. <div style="
  3900. display: flex;
  3901. flex-wrap: nowrap;
  3902. flex-direction: column;
  3903. position: relative;
  3904. ">
  3905. <div class="queTop" style="padding: 20px 0 20px 0">
  3906. <div class="question">
  3907. <img src="../assets/icon/question.png" alt />
  3908. </div>
  3909. <div class="queTitle">
  3910. <div style="width: 90px; min-width: 90px">提问:</div>
  3911. <div>{{ answerQ }}</div>
  3912. </div>
  3913. </div>
  3914. <div class="ediBottom">
  3915. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  3916. v-model="questionAnswer"></textarea>
  3917. </div>
  3918. </div>
  3919. </div>
  3920. <div slot="footer">
  3921. <el-button @click="answerDialogVisible = false">取 消</el-button>
  3922. <el-button type="primary" @click="addQuestion">提 交</el-button>
  3923. </div>
  3924. </el-dialog>
  3925. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  3926. :before-close="handleClose" class="dialog_diy">
  3927. <div>
  3928. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  3929. </div>
  3930. <div slot="footer">
  3931. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  3932. </div>
  3933. </el-dialog>
  3934. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  3935. class="dialog_diy">
  3936. <div>
  3937. <div class="open_box">
  3938. <div class="switch_box">
  3939. <span>允许学生查看所有作业</span>
  3940. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  3941. </div>
  3942. <div class="switch_box" v-if="
  3943. courseDetail.userid == userid ||
  3944. (courseDetail.course_teacher &&
  3945. courseDetail.course_teacher.indexOf(userid) != -1)
  3946. ">
  3947. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  3948. <span>禁止学生查看所有阶段</span>
  3949. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  3950. </div>
  3951. <div class="switch_box" v-if="courseDetail.userid == userid">
  3952. <span>开启跟随模式</span>
  3953. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  3954. </div>
  3955. </div>
  3956. </div>
  3957. <div slot="footer">
  3958. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  3959. </div>
  3960. </el-dialog>
  3961. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  3962. class="dialog_diy1">
  3963. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  3964. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3965. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  3966. </div>
  3967. <div slot="footer">
  3968. <el-button style="background: #409efe; color: #fff"
  3969. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  3970. 关 闭</el-button>
  3971. </div>
  3972. </el-dialog>
  3973. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  3974. :before-close="handleClose" class="dialog_diy">
  3975. <div class="commentTop">
  3976. <div class="studentDetail">
  3977. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  3978. <div class="nameAndTime">
  3979. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  3980. <div>{{ commentDetail.time }}</div>
  3981. </div>
  3982. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="
  3983. commentDetail.works &&
  3984. commentDetail.type == 0 &&
  3985. (tType == 1 || tType == 4)
  3986. " @click="
  3987. showPicturePaint(
  3988. commentDetail.img ? commentDetail.img : commentDetail.works
  3989. )
  3990. ">
  3991. 教师批注
  3992. </div>
  3993. </div>
  3994. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  3995. {{ JSON.parse(commentDetail.works)[0].answer }}
  3996. </div>
  3997. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  3998. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  3999. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4000. :class="{ fullStyle: full }"></pdf>
  4001. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"
  4002. security="restricted"
  4003. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  4004. </div>
  4005. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4006. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  4007. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4008. </div>
  4009. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4010. <img src="../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  4011. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4012. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4013. </div>
  4014. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  4015. <div class="cont" v-html="commentDetail.works.text"></div>
  4016. </div>
  4017. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4018. @click="downloadFile(commentDetail.works)">
  4019. <img src="../assets/icon/codeFile.png" />
  4020. <div>点击下载文件</div>
  4021. </div>
  4022. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4023. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4024. </div>
  4025. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  4026. <div class="evalCss">
  4027. <div class="nav">请选择星星进行评分</div>
  4028. <div class="middleBox" v-if="eScore.eStar">
  4029. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4030. <div class="nameAndrate">
  4031. <div>{{ e.value }}</div>
  4032. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  4033. </div>
  4034. <div v-if="e.detail">{{ e.detail }}</div>
  4035. </div>
  4036. <div class="bz">
  4037. <textarea disabled rows="4" class="pj" style="
  4038. padding: 10px 5px;
  4039. width: 70%;
  4040. background: #f7f6f9;
  4041. font-size: 14px;
  4042. text-indent: 10px;
  4043. color: #000;
  4044. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4045. </div>
  4046. </div>
  4047. </div>
  4048. </div>
  4049. <div class="comment">
  4050. <div class="commentList">
  4051. <div class="commentImg">
  4052. <img @click="
  4053. isLikes(
  4054. commentDetail.wid,
  4055. userid,
  4056. 1,
  4057. null,
  4058. commentDetail.isLikes
  4059. )
  4060. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  4061. </div>
  4062. <div>{{ commentDetail.likesCount }}</div>
  4063. </div>
  4064. <div class="commentList">
  4065. <div class="commentImg">
  4066. <img src="../assets/icon/comment/comment.png" alt="" />
  4067. </div>
  4068. <div>{{ commentDetail.commentCount }}</div>
  4069. </div>
  4070. </div>
  4071. <div class="drawPBox" v-if="commentDetail.img">
  4072. <span>教师批注</span>
  4073. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  4074. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  4075. style="
  4076. font-size: 14px;
  4077. width: auto !important;
  4078. color: #b4b4b4;
  4079. top: unset;
  4080. bottom: 0;
  4081. border: none;
  4082. padding: 0;
  4083. height: auto !important;
  4084. margin: 0;
  4085. ">删除</span>
  4086. </div>
  4087. </div>
  4088. <div class="commentBox">
  4089. <div class="pl">评论:</div>
  4090. <div style="max-height: 200px; overflow: auto">
  4091. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  4092. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  4093. :key="coIndex">
  4094. <div class="tx" style="min-width: 50px">
  4095. <img src="../assets/avatar.png" alt="" />
  4096. </div>
  4097. <div class="plPerson">
  4098. <div class="plName">
  4099. <div>{{ co.commentPeople }}</div>
  4100. <div style="margin-left: 5px">
  4101. {{ co.commentTime }}
  4102. </div>
  4103. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">删除</div>
  4104. </div>
  4105. <div class="plContent">{{ co.commentText }}</div>
  4106. </div>
  4107. </div>
  4108. </div>
  4109. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  4110. </div>
  4111. </div>
  4112. <div style="margin-top: 10px">
  4113. <div class="displayBox">
  4114. <div style="
  4115. color: #556db4;
  4116. font-size: 14px;
  4117. font-weight: bold;
  4118. padding-bottom: 10px;
  4119. ">
  4120. 评价
  4121. </div>
  4122. <div class="easy_comment" v-if="false">
  4123. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  4124. {{ p }}
  4125. </div>
  4126. </div>
  4127. </div>
  4128. <div>
  4129. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  4130. placeholder="请输入对该学生的评价"></textarea>
  4131. </div>
  4132. </div>
  4133. <div slot="footer">
  4134. <el-button @click="
  4135. (commentDialogVisible = false),
  4136. (commentIndexJson = {}),
  4137. videoDetail.sources && videoDetail.sources[0]
  4138. ? (videoDetail.sources[0].src = '')
  4139. : ''
  4140. ">取 消</el-button>
  4141. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  4142. </div>
  4143. </el-dialog>
  4144. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  4145. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  4146. <div slot="title" class="header-title">
  4147. <div style="color: #fff">查看文档</div>
  4148. <div @click="fullDialogVisible = false" style="
  4149. cursor: pointer;
  4150. position: absolute;
  4151. top: 20px;
  4152. right: 20px;
  4153. color: #fff;
  4154. ">
  4155. 退出全屏
  4156. </div>
  4157. </div>
  4158. <div style="height: 100%">
  4159. <iframe v-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl" security="restricted"
  4160. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  4161. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  4162. <div class="wheel" v-if="fulltype == 1" style="
  4163. box-shadow: 0 0 6px 1px #f2f2f2;
  4164. width: 100%;
  4165. background: #f1f1f1;
  4166. ">
  4167. <div class="title" style="width: 100%; box-sizing: border-box">
  4168. 查看文档
  4169. </div>
  4170. <el-form class="textBox" style="height: 90%">
  4171. <el-form-item class="textTitle">
  4172. <div style="font-size: 22px">
  4173. {{ fullUrl.name }}
  4174. </div>
  4175. </el-form-item>
  4176. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  4177. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  4178. </el-form>
  4179. </div>
  4180. </div>
  4181. <!-- <div slot="footer">
  4182. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  4183. </div> -->
  4184. </el-dialog>
  4185. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  4186. :before-close="handleClose" class="dialog_diy">
  4187. <div class="evalCss">
  4188. <div class="nav">请选择星星进行评分</div>
  4189. <div class="middleBox" v-if="eScore.eStar">
  4190. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4191. <div class="nameAndrate">
  4192. <div>{{ e.value }}</div>
  4193. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4194. </div>
  4195. <div v-if="e.detail">{{ e.detail }}</div>
  4196. </div>
  4197. <div class="easy_comment" v-if="isStar == false">
  4198. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4199. {{ p }}
  4200. </div>
  4201. </div>
  4202. <div class="bz">
  4203. <textarea :disabled="isStar" rows="4" class="pj" style="
  4204. padding: 10px 5px;
  4205. width: 70%;
  4206. background: #f7f6f9;
  4207. font-size: 14px;
  4208. text-indent: 10px;
  4209. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4210. </div>
  4211. </div>
  4212. </div>
  4213. <div slot="footer">
  4214. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  4215. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  4216. </div>
  4217. </el-dialog>
  4218. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  4219. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4220. <div v-if="selectJson">
  4221. <div class="select_box2">
  4222. <div class="select_box2_title">
  4223. <div>选择填空</div>
  4224. <div>请选择对应的答案进行答题!</div>
  4225. </div>
  4226. <div class="select_box2_box">
  4227. <div class="select_box2_img">
  4228. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4229. </div>
  4230. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4231. <div style="padding-top: 15px">
  4232. <div class="select_answer_title" v-if="isSelect">
  4233. {{ selectAnswer.stu }}
  4234. </div>
  4235. <div class="select_answer_title" v-else>
  4236. 根据题目选择对应答案
  4237. </div>
  4238. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4239. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4240. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4241. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4242. </el-option>
  4243. </el-select>
  4244. </div>
  4245. </div>
  4246. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4247. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4248. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4249. 回答正确
  4250. </div>
  4251. <div v-else>回答错误</div>
  4252. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4253. 正确答案:
  4254. </div>
  4255. <div :class="
  4256. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4257. ">
  4258. {{ selectJson.select[a] }}
  4259. </div>
  4260. </div>
  4261. </div>
  4262. </div>
  4263. <div class="upAnswerCss">
  4264. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  4265. </div>
  4266. </div>
  4267. </div>
  4268. </div>
  4269. </el-dialog>
  4270. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  4271. :before-close="handleClose" class="dialog_diy">
  4272. <div>
  4273. <div class="studentDetail">
  4274. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  4275. <div class="nameAndTime">
  4276. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4277. <div>{{ commentDetail.time }}</div>
  4278. </div>
  4279. </div>
  4280. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4281. {{ JSON.parse(commentDetail.works)[0].answer }}
  4282. </div>
  4283. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4284. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4285. :class="{ fullStyle: full }"></pdf>
  4286. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"
  4287. security="restricted"
  4288. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  4289. </div>
  4290. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4291. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4292. </div>
  4293. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4294. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4295. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4296. </div>
  4297. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4298. @click="downloadFile(commentDetail.works)">
  4299. <img src="../assets/icon/codeFile.png" />
  4300. <div>点击下载文件</div>
  4301. </div>
  4302. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4303. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4304. </div>
  4305. <div class="scoreBox">
  4306. <span class="t">请输入分数</span>
  4307. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  4308. :max="100"></el-input-number>
  4309. </div>
  4310. <div class="scoreDetailBox">
  4311. <span class="t">评分评论</span>
  4312. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  4313. v-model="scoreDetail" placeholder="请输入对学生的评价">
  4314. </el-input>
  4315. </div>
  4316. </div>
  4317. <span slot="footer" class="dialog-footer">
  4318. <el-button @click="
  4319. (dialogVisibleScore = false),
  4320. (commentIndexJson = {}),
  4321. videoDetail.sources && videoDetail.sources[0]
  4322. ? (videoDetail.sources[0].src = '')
  4323. : ''
  4324. ">取 消</el-button>
  4325. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  4326. </el-button>
  4327. </span>
  4328. </el-dialog>
  4329. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4330. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4331. <div>
  4332. <div class="sentenBox">
  4333. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4334. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4335. <div class="cardList" v-if="st.chooseSenList">
  4336. <div class="cardBox">
  4337. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4338. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4339. <div :class="{
  4340. isCard: r,
  4341. isChooseCard: r == '' || r == undefined,
  4342. }">
  4343. <div>{{ r }}</div>
  4344. </div>
  4345. </el-tooltip>
  4346. <div :class="{
  4347. isCard: r,
  4348. isChooseCard: r == '' || r == undefined,
  4349. }" v-else>
  4350. <div>{{ r }}</div>
  4351. </div>
  4352. </div>
  4353. </div>
  4354. </div>
  4355. <div class="cardList" v-if="st.addChangeSen">
  4356. <div class="cardBox">
  4357. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4358. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4359. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4360. <div>{{ s }}</div>
  4361. </div>
  4362. </el-tooltip>
  4363. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4364. <div>{{ s }}</div>
  4365. </div>
  4366. </div>
  4367. </div>
  4368. </div>
  4369. </div>
  4370. </div>
  4371. </div>
  4372. <span slot="footer" class="dialog-footer">
  4373. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  4374. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  4375. </span>
  4376. </el-dialog>
  4377. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  4378. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4379. <div>
  4380. <div class="sentenBox">
  4381. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4382. {{ sentenceList1.stuName }}的作业
  4383. </div>
  4384. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  4385. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4386. 第{{ stIndex + 1 }}题
  4387. </div>
  4388. <div class="isWrong">
  4389. <div class="cardList1" v-if="st.chooseSenList">
  4390. <div class="cardBox">
  4391. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  4392. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4393. <div class="isCard">
  4394. <div>{{ s }}</div>
  4395. </div>
  4396. </el-tooltip>
  4397. </div>
  4398. </div>
  4399. <div class="cardAnswerBox">
  4400. 组成句子:{{ st.chooseSenList.join(" ") }}
  4401. </div>
  4402. </div>
  4403. <div v-if="tType == 2" class="isTj">
  4404. <div class="isTjImg">
  4405. <img src="../assets/icon/conSentences/right.png" alt="" />
  4406. </div>
  4407. <div>已提交</div>
  4408. </div>
  4409. <div class="answerRight isTj" v-if="
  4410. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  4411. (tType == 1 || tType == 4)
  4412. ">
  4413. <div class="isTjImg">
  4414. <img src="../assets/icon/conSentences/right.png" alt="" />
  4415. </div>
  4416. <div>回答正确</div>
  4417. </div>
  4418. <div class="answerRight isTj" v-if="
  4419. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4420. (tType == 1 || tType == 4)
  4421. ">
  4422. <div class="isTjImg">
  4423. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  4424. </div>
  4425. <div>回答错误</div>
  4426. </div>
  4427. </div>
  4428. <div v-if="
  4429. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4430. (tType == 1 || tType == 4)
  4431. ">
  4432. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  4433. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  4434. <div class="cardBox">
  4435. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  4436. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4437. <div class="isCard1">
  4438. <div>{{ r }}</div>
  4439. </div>
  4440. </el-tooltip>
  4441. </div>
  4442. </div>
  4443. <div class="cardAnswerBox">
  4444. 组成句子:{{ st.rightAnswer.join(" ") }}
  4445. </div>
  4446. </div>
  4447. </div>
  4448. </div>
  4449. </div>
  4450. </div>
  4451. <span slot="footer" class="dialog-footer">
  4452. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  4453. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  4454. </span>
  4455. </el-dialog>
  4456. <el-dialog title="教师提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  4457. :before-close="handleClose" class="dialog_change">
  4458. <div class="marginT">
  4459. <div class="w_name">
  4460. 学生姓名:<span>{{ sStudent.student }}</span>
  4461. </div>
  4462. <div>上传文件</div>
  4463. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4464. <div class="up_photo">
  4465. <img src="../assets/uploadImg2.png" alt />
  4466. </div>
  4467. <!-- <input
  4468. type="file"
  4469. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4470. style="display: none"
  4471. @change="beforeUpload1($event, 1)"
  4472. /> -->
  4473. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4474. </div>
  4475. <!-- capture="camera" -->
  4476. <div class="chapter_add" style="
  4477. display: flex;
  4478. width: 100%;
  4479. flex-direction: row;
  4480. flex-wrap: wrap;
  4481. justify-content: flex-start;
  4482. padding: 15px 0;
  4483. " v-if="studyJuri[0].cover.length > 0">
  4484. <div class="upCover">
  4485. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4486. <img :src="word" alt v-else-if="fileType == 1" />
  4487. <img :src="video" alt v-else-if="fileType == 2" />
  4488. <img :src="word2" alt v-else-if="fileType == 3" />
  4489. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4490. <div class="deleteWord" @click="clean(1)">
  4491. <img src="../assets/icon/deleteWorks.png" alt />
  4492. </div>
  4493. </div>
  4494. </div>
  4495. </div>
  4496. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  4497. 提交
  4498. </div>
  4499. </el-dialog>
  4500. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  4501. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4502. :before-close="handleClose" class="dialog_diy">
  4503. <el-form>
  4504. <div>表格内容</div>
  4505. <Table v-model="tableJson.text" @change="change"></Table>
  4506. </el-form>
  4507. <span slot="footer" class="dialog-footer">
  4508. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4509. <el-button type="primary" @click="addTableWorks">确定</el-button>
  4510. </span>
  4511. </el-dialog>
  4512. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  4513. class="dialog_diy">
  4514. <el-form>
  4515. <div>文档内容</div>
  4516. <editor-bar v-model="wordJson.text"></editor-bar>
  4517. </el-form>
  4518. <span slot="footer" class="dialog-footer">
  4519. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  4520. <el-button type="primary" @click="addWordWorks">确定</el-button>
  4521. </span>
  4522. </el-dialog>
  4523. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  4524. :before-close="handleClose" class="dialog_diy">
  4525. <el-form>
  4526. <div class="cont" v-html="tableJson.text"></div>
  4527. </el-form>
  4528. <span slot="footer" class="dialog-footer">
  4529. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  4530. </span>
  4531. </el-dialog>
  4532. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  4533. :before-close="handleClose" class="dialog_diy">
  4534. <div v-if="dialogVisibleGroup">
  4535. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  4536. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  4537. 提示:需要锁定位置,才能点击头像修改座位。
  4538. </div>
  4539. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  4540. @click="lockChair">
  4541. 锁定位置
  4542. </div>
  4543. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  4544. 解锁位置
  4545. </div>
  4546. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  4547. 分组设置
  4548. </div>
  4549. </div>
  4550. <div>
  4551. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  4552. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  4553. <div class="g_d_group_chair">
  4554. <div v-if="groupJson.number > 1">
  4555. <span :class="{
  4556. isChair:
  4557. groupStudent[toolindex][gindex] &&
  4558. groupStudent[toolindex][gindex][0],
  4559. updateChair:
  4560. courseDetail.userid == userid &&
  4561. groupStudent[toolindex][gindex] &&
  4562. groupStudent[toolindex][gindex][0] &&
  4563. groupJson.islock == 2,
  4564. }"><span class="updateChairBtn" @click="
  4565. updateGroupChair(
  4566. groupStudent[toolindex][gindex] &&
  4567. groupStudent[toolindex][gindex][0]
  4568. )
  4569. ">修改</span></span><span>{{
  4570. groupStudent[toolindex][gindex] &&
  4571. groupStudent[toolindex][gindex][0]
  4572. ? groupStudent[toolindex][gindex] &&
  4573. groupStudent[toolindex][gindex][0].name
  4574. : "空位置"
  4575. }}</span>
  4576. </div>
  4577. <div v-if="groupJson.number > 4">
  4578. <span :class="{
  4579. isChair:
  4580. groupStudent[toolindex][gindex] &&
  4581. groupStudent[toolindex][gindex][4],
  4582. updateChair:
  4583. courseDetail.userid == userid &&
  4584. groupStudent[toolindex][gindex] &&
  4585. groupStudent[toolindex][gindex][4] &&
  4586. groupJson.islock == 2,
  4587. }"><span class="updateChairBtn" @click="
  4588. updateGroupChair(
  4589. groupStudent[toolindex][gindex] &&
  4590. groupStudent[toolindex][gindex][4]
  4591. )
  4592. ">修改</span></span><span>{{
  4593. groupStudent[toolindex][gindex] &&
  4594. groupStudent[toolindex][gindex][4]
  4595. ? groupStudent[toolindex][gindex] &&
  4596. groupStudent[toolindex][gindex][4].name
  4597. : "空位置"
  4598. }}</span>
  4599. </div>
  4600. <div v-if="groupJson.number > 8">
  4601. <span :class="{
  4602. isChair:
  4603. groupStudent[toolindex][gindex] &&
  4604. groupStudent[toolindex][gindex][8],
  4605. updateChair:
  4606. courseDetail.userid == userid &&
  4607. groupStudent[toolindex][gindex] &&
  4608. groupStudent[toolindex][gindex][8] &&
  4609. groupJson.islock == 2,
  4610. }"><span class="updateChairBtn" @click="
  4611. updateGroupChair(
  4612. groupStudent[toolindex][gindex] &&
  4613. groupStudent[toolindex][gindex][8]
  4614. )
  4615. ">修改</span></span><span>{{
  4616. groupStudent[toolindex][gindex] &&
  4617. groupStudent[toolindex][gindex][8]
  4618. ? groupStudent[toolindex][gindex] &&
  4619. groupStudent[toolindex][gindex][8].name
  4620. : "空位置"
  4621. }}</span>
  4622. </div>
  4623. </div>
  4624. <div class="g_d_group_tableBox">
  4625. <div class="g_d_group_chair2">
  4626. <div v-if="groupJson.number > 2">
  4627. <span :class="{
  4628. isChair:
  4629. groupStudent[toolindex][gindex] &&
  4630. groupStudent[toolindex][gindex][2],
  4631. updateChair:
  4632. courseDetail.userid == userid &&
  4633. groupStudent[toolindex][gindex] &&
  4634. groupStudent[toolindex][gindex][2] &&
  4635. groupJson.islock == 2,
  4636. }"><span class="updateChairBtn" @click="
  4637. updateGroupChair(
  4638. groupStudent[toolindex][gindex] &&
  4639. groupStudent[toolindex][gindex][2]
  4640. )
  4641. ">修改</span></span><span>{{
  4642. groupStudent[toolindex][gindex] &&
  4643. groupStudent[toolindex][gindex][2]
  4644. ? groupStudent[toolindex][gindex] &&
  4645. groupStudent[toolindex][gindex][2].name
  4646. : "空位置"
  4647. }}</span>
  4648. </div>
  4649. <div v-if="groupJson.number > 6">
  4650. <span :class="{
  4651. isChair:
  4652. groupStudent[toolindex][gindex] &&
  4653. groupStudent[toolindex][gindex][6],
  4654. updateChair:
  4655. courseDetail.userid == userid &&
  4656. groupStudent[toolindex][gindex] &&
  4657. groupStudent[toolindex][gindex][6] &&
  4658. groupJson.islock == 2,
  4659. }"><span class="updateChairBtn" @click="
  4660. updateGroupChair(
  4661. groupStudent[toolindex][gindex] &&
  4662. groupStudent[toolindex][gindex][6]
  4663. )
  4664. ">修改</span></span><span>{{
  4665. groupStudent[toolindex][gindex] &&
  4666. groupStudent[toolindex][gindex][6]
  4667. ? groupStudent[toolindex][gindex] &&
  4668. groupStudent[toolindex][gindex][6].name
  4669. : "空位置"
  4670. }}</span>
  4671. </div>
  4672. </div>
  4673. <div class="g_d_group_table">
  4674. <div>
  4675. {{ g.name }}
  4676. </div>
  4677. <div>
  4678. <div v-if="
  4679. courseDetail.userid == userid && groupJson.islock == 2
  4680. " @click="deleteGroupChair(gindex)">
  4681. 移除组员
  4682. </div>
  4683. <div @click="selectGroup(gindex)" v-else-if="
  4684. groupStudentUid[toolindex] &&
  4685. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  4686. ">
  4687. 加入分组
  4688. </div>
  4689. <div @click="
  4690. exitGroup(
  4691. groupStudent[toolindex][gindex] &&
  4692. groupStudent[toolindex][gindex][
  4693. groupStudentUid[toolindex][gindex].indexOf(userid)
  4694. ].id
  4695. )
  4696. " v-else-if="
  4697. groupStudentUid[toolindex] &&
  4698. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  4699. ">
  4700. 退出分组
  4701. </div>
  4702. </div>
  4703. </div>
  4704. <div class="g_d_group_chair2">
  4705. <div v-if="groupJson.number > 3">
  4706. <span :class="{
  4707. isChair:
  4708. groupStudent[toolindex][gindex] &&
  4709. groupStudent[toolindex][gindex][3],
  4710. updateChair:
  4711. courseDetail.userid == userid &&
  4712. groupStudent[toolindex][gindex] &&
  4713. groupStudent[toolindex][gindex][3] &&
  4714. groupJson.islock == 2,
  4715. }"><span class="updateChairBtn" @click="
  4716. updateGroupChair(
  4717. groupStudent[toolindex][gindex] &&
  4718. groupStudent[toolindex][gindex][3]
  4719. )
  4720. ">修改</span></span><span>{{
  4721. groupStudent[toolindex][gindex] &&
  4722. groupStudent[toolindex][gindex][3]
  4723. ? groupStudent[toolindex][gindex] &&
  4724. groupStudent[toolindex][gindex][3].name
  4725. : "空位置"
  4726. }}</span>
  4727. </div>
  4728. <div v-if="groupJson.number > 7">
  4729. <span :class="{
  4730. isChair:
  4731. groupStudent[toolindex][gindex] &&
  4732. groupStudent[toolindex][gindex][7],
  4733. updateChair:
  4734. courseDetail.userid == userid &&
  4735. groupStudent[toolindex][gindex] &&
  4736. groupStudent[toolindex][gindex][7] &&
  4737. groupJson.islock == 2,
  4738. }"><span class="updateChairBtn" @click="
  4739. updateGroupChair(
  4740. groupStudent[toolindex][gindex] &&
  4741. groupStudent[toolindex][gindex][7]
  4742. )
  4743. ">修改</span></span><span>{{
  4744. groupStudent[toolindex][gindex] &&
  4745. groupStudent[toolindex][gindex][7]
  4746. ? groupStudent[toolindex][gindex] &&
  4747. groupStudent[toolindex][gindex][7].name
  4748. : "空位置"
  4749. }}</span>
  4750. </div>
  4751. </div>
  4752. </div>
  4753. <div class="g_d_group_chair">
  4754. <div v-if="groupJson.number > 1">
  4755. <span :class="{
  4756. isChair:
  4757. groupStudent[toolindex][gindex] &&
  4758. groupStudent[toolindex][gindex][1],
  4759. updateChair:
  4760. courseDetail.userid == userid &&
  4761. groupStudent[toolindex][gindex] &&
  4762. groupStudent[toolindex][gindex][1] &&
  4763. groupJson.islock == 2,
  4764. }"><span class="updateChairBtn" @click="
  4765. updateGroupChair(
  4766. groupStudent[toolindex][gindex] &&
  4767. groupStudent[toolindex][gindex][1]
  4768. )
  4769. ">修改</span></span><span>{{
  4770. groupStudent[toolindex][gindex] &&
  4771. groupStudent[toolindex][gindex][1]
  4772. ? groupStudent[toolindex][gindex] &&
  4773. groupStudent[toolindex][gindex][1].name
  4774. : "空位置"
  4775. }}</span>
  4776. </div>
  4777. <div v-if="groupJson.number > 5">
  4778. <span :class="{
  4779. isChair:
  4780. groupStudent[toolindex][gindex] &&
  4781. groupStudent[toolindex][gindex][5],
  4782. updateChair:
  4783. courseDetail.userid == userid &&
  4784. groupStudent[toolindex][gindex] &&
  4785. groupStudent[toolindex][gindex][5] &&
  4786. groupJson.islock == 2,
  4787. }"><span class="updateChairBtn" @click="
  4788. updateGroupChair(
  4789. groupStudent[toolindex][gindex] &&
  4790. groupStudent[toolindex][gindex][5]
  4791. )
  4792. ">修改</span></span><span>{{
  4793. groupStudent[toolindex][gindex] &&
  4794. groupStudent[toolindex][gindex][5]
  4795. ? groupStudent[toolindex][gindex] &&
  4796. groupStudent[toolindex][gindex][5].name
  4797. : "空位置"
  4798. }}</span>
  4799. </div>
  4800. <div v-if="groupJson.number > 9">
  4801. <span :class="{
  4802. isChair:
  4803. groupStudent[toolindex][gindex] &&
  4804. groupStudent[toolindex][gindex][9],
  4805. updateChair:
  4806. courseDetail.userid == userid &&
  4807. groupStudent[toolindex][gindex] &&
  4808. groupStudent[toolindex][gindex][9] &&
  4809. groupJson.islock == 2,
  4810. }"><span class="updateChairBtn" @click="
  4811. updateGroupChair(
  4812. groupStudent[toolindex][gindex] &&
  4813. groupStudent[toolindex][gindex][9]
  4814. )
  4815. ">修改</span></span><span>{{
  4816. groupStudent[toolindex][gindex] &&
  4817. groupStudent[toolindex][gindex][9]
  4818. ? groupStudent[toolindex][gindex] &&
  4819. groupStudent[toolindex][gindex][9].name
  4820. : "空位置"
  4821. }}</span>
  4822. </div>
  4823. </div>
  4824. </div>
  4825. </div>
  4826. </div>
  4827. </div>
  4828. <span slot="footer" class="dialog-footer">
  4829. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  4830. </span>
  4831. </el-dialog>
  4832. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  4833. :before-close="handleClose" class="dialog_diy">
  4834. <div class="groupBox">
  4835. <div v-if="groupJson2.group" class="groupContent">
  4836. <div class="groupTitle">请设置小组数量</div>
  4837. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  4838. <span class="groupn">组{{ index + 1 }}名称:</span>
  4839. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4840. <!-- <div class="groupBtn">
  4841. <el-button type="primary" size="small" @click="addGroup(index)">
  4842. 添加</el-button>
  4843. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4844. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  4845. </div> -->
  4846. </div>
  4847. </div>
  4848. <div class="groupContent">
  4849. <div class="groupTitle">请设置每组人数数量</div>
  4850. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4851. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4852. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  4853. placeholder="2-10人以内"></el-input-number>
  4854. </div>
  4855. </div>
  4856. <span slot="footer" class="dialog-footer">
  4857. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  4858. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  4859. </span>
  4860. </el-dialog>
  4861. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  4862. :before-close="handleClose" class="dialog_change">
  4863. <div class="marginT">
  4864. <div>上传文件</div>
  4865. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4866. <div class="up_photo">
  4867. <img src="../assets/icon/uploadImg.png" alt />
  4868. </div>
  4869. <!-- <input
  4870. type="file"
  4871. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4872. style="display: none"
  4873. @change="beforeUpload1($event, 1)"
  4874. /> -->
  4875. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4876. </div>
  4877. <!-- capture="camera" -->
  4878. <div class="chapter_add" style="
  4879. display: flex;
  4880. width: 100%;
  4881. flex-direction: row;
  4882. flex-wrap: wrap;
  4883. justify-content: flex-start;
  4884. padding: 15px 0;
  4885. " v-if="studyJuri[0].cover.length > 0">
  4886. <div class="upCover">
  4887. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4888. <img :src="word" alt v-else-if="fileType == 1" />
  4889. <img :src="video" alt v-else-if="fileType == 2" />
  4890. <img :src="word2" alt v-else-if="fileType == 3" />
  4891. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4892. <div class="deleteWord" @click="clean(1)">
  4893. <img src="../assets/icon/deleteWorks.png" alt />
  4894. </div>
  4895. </div>
  4896. </div>
  4897. </div>
  4898. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  4899. 提交
  4900. </div>
  4901. </el-dialog>
  4902. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  4903. :before-close="handleClose" class="dialog_diy">
  4904. <div>
  4905. <h2>
  4906. {{ this.updateGroupUser.name }}
  4907. </h2>
  4908. <div style="color: rgb(171 171 171); margin-top: 10px">
  4909. 请选择要进入的分组
  4910. </div>
  4911. <el-radio-group v-model="checkChair">
  4912. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  4913. :key="index">{{ item.name }}</el-radio>
  4914. </el-radio-group>
  4915. </div>
  4916. <span slot="footer" class="dialog-footer">
  4917. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  4918. <el-button type="primary" @click="updateChair">确定</el-button>
  4919. </span>
  4920. </el-dialog>
  4921. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  4922. :before-close="handleClose" class="dialog_diy">
  4923. <div>
  4924. <h2>
  4925. {{ this.deleteGroupArray.name }}
  4926. </h2>
  4927. <div style="color: rgb(171 171 171); margin-top: 10px">
  4928. 请选择要删除的组员
  4929. </div>
  4930. <el-checkbox-group v-model="checkDeleteGroup">
  4931. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  4932. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  4933. </el-checkbox-group>
  4934. </div>
  4935. <span slot="footer" class="dialog-footer">
  4936. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  4937. <el-button type="primary" @click="deleteChair">确定</el-button>
  4938. </span>
  4939. </el-dialog>
  4940. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  4941. :before-close="handleClose" class="dialog_change">
  4942. <div class="marginT">
  4943. <div>上传文件</div>
  4944. <div class="plworkBox">
  4945. <div class="chapter_add" style="
  4946. display: flex;
  4947. width: 150px;
  4948. flex-direction: row;
  4949. flex-wrap: wrap;
  4950. justify-content: flex-start;
  4951. margin: 0 10px 10px 0;
  4952. " v-for="(item, index) in plworkFile" :key="index">
  4953. <div class="upCover2">
  4954. <img :src="item.url" alt v-if="item.fileType == 1" />
  4955. <img :src="word" alt v-else-if="item.fileType == 4" />
  4956. <img :src="video" alt v-else />
  4957. <!-- <span class="picName">{{ item.name }}</span> -->
  4958. <!-- <el-input
  4959. v-model="item.username"
  4960. placeholder="请输入学生名字"
  4961. style="margin-top: 10px"
  4962. ></el-input> -->
  4963. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  4964. <el-option v-for="item1 in uploadStudentJuri" :key="item1.userid"
  4965. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  4966. </el-option>
  4967. </el-select>
  4968. <div class="deleteWord" @click="clean2(index)">
  4969. <img src="../assets/icon/deleteWorks.png" alt />
  4970. </div>
  4971. </div>
  4972. </div>
  4973. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  4974. <div class="up_photo2">
  4975. <img src="../assets/icon/plwork.png" alt />
  4976. <span>点击批量上传文件</span>
  4977. </div>
  4978. <input type="file"
  4979. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4980. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  4981. </div>
  4982. </div>
  4983. </div>
  4984. <!-- capture="camera" -->
  4985. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  4986. 提交
  4987. </div>
  4988. </el-dialog>
  4989. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  4990. class="dialog_diy" center>
  4991. <div style="text-align: center">
  4992. <span class="tian1">名称</span>
  4993. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  4994. placeholder="请选择学生">
  4995. <el-option v-for="item in classJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  4996. :value="item.userid">
  4997. </el-option>
  4998. </el-select>
  4999. <!-- <el-input
  5000. v-model="worksSName"
  5001. style="width: 250px; margin: 15px 0px"
  5002. ></el-input> -->
  5003. </div>
  5004. <span slot="footer" class="dialog-footer">
  5005. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  5006. <el-button type="primary" @click="updateName">确 定</el-button>
  5007. </span>
  5008. </el-dialog>
  5009. </div>
  5010. </template>
  5011. <script>
  5012. import "../common/aws-sdk-2.235.1.min.js";
  5013. // import pdf from "./components/pdf3";
  5014. import pdf from "./components/vpdf";
  5015. import AskStatic from "./components/askStatic";
  5016. import AskStatic2 from "./components/askStatic2";
  5017. import AnswerData2 from "./components/answerData2";
  5018. import AnswerData from "./components/answerData";
  5019. import EditorBar from "./tools/wangEnduit.vue";
  5020. import Table from "./tools/table.vue";
  5021. import Time from "./tools/time.vue";
  5022. import Mind from "./tools/jsmind.vue";
  5023. import Sunburst from "./tools/sunburst";
  5024. import SeeBoard from "./tools/seeBoard";
  5025. import * as imageConversion from "image-conversion";
  5026. import Audio from "./components/audio.vue";
  5027. import ImgDraw from "./tools/imgDraw/imgDraw";
  5028. import { Empty } from "element-ui";
  5029. import RecordRTC from "recordrtc";
  5030. export default {
  5031. components: {
  5032. EditorBar,
  5033. Time,
  5034. pdf,
  5035. AskStatic,
  5036. AskStatic2,
  5037. Mind,
  5038. Sunburst,
  5039. SeeBoard,
  5040. AnswerData2,
  5041. AnswerData,
  5042. Audio,
  5043. ImgDraw,
  5044. Table,
  5045. },
  5046. data() {
  5047. return {
  5048. bg: null,
  5049. drawShow: false,
  5050. dialogVisible: false,
  5051. dialogVisiblePl: false,
  5052. commentDialogVisible: false,
  5053. videoVisible: false,
  5054. isStar: false,
  5055. studentEvalDialogVisible: false,
  5056. dialogVisibleSelect: false,
  5057. dialogVisibleScore: false,
  5058. dialogVisibleSentence: false,
  5059. dialogVisibleSentence1: false,
  5060. dialogVisibleWorks: false,
  5061. dialogVisibleTable: false,
  5062. dialogVisibleWord: false,
  5063. dialogVisibleTable2: false,
  5064. dialogVisibleGroupWork: false,
  5065. dialogVisibleUpdateGroup: false,
  5066. dialogVisibleDeleteGroup: false,
  5067. dialogVisibleSname: false,
  5068. worksSName: "",
  5069. classJuri: [],
  5070. uploadStudentJuri: [],
  5071. uploadCid: "",
  5072. snameWid: "",
  5073. sStudent: {},
  5074. bzText: "",
  5075. commentDetail: [],
  5076. selectAnswer: [],
  5077. videoDetail: {},
  5078. selectJson: {},
  5079. eScore: { eBzText: "", eStar: [] },
  5080. id: this.$route.query.courseId,
  5081. userid: this.$route.query.userid,
  5082. classId: this.$route.query.cid,
  5083. // courseTypeLine: this.$route.query.type,
  5084. oid: this.$route.query.oid,
  5085. org: this.$route.query.org,
  5086. tType: this.$route.query.tType,
  5087. courseType: this.$route.query.type,
  5088. screenType: this.$route.query.screenType,
  5089. tcid2: this.$route.query.tcid,
  5090. tcid: "",
  5091. pptImgUrl: "",
  5092. pptImgUrl1: "",
  5093. commentText: "",
  5094. full: false,
  5095. sIsOpen: false,
  5096. IsLookOpen: false,
  5097. IsFollow: false,
  5098. pzDialog: false,
  5099. contentDialog: false,
  5100. mlDialog: false,
  5101. type: 1,
  5102. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5103. sentenceList1: [],
  5104. tableJson: [],
  5105. wordJson: [],
  5106. vedio: [],
  5107. text: [],
  5108. textList: [],
  5109. line: [],
  5110. lineList: [],
  5111. chapTools: [],
  5112. chapToolList: [],
  5113. file: [],
  5114. fileC: [],
  5115. vedioTime: [],
  5116. upToolImg: "",
  5117. preTime: 0,
  5118. rateList: {
  5119. ca: 0,
  5120. },
  5121. rateParams: [],
  5122. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  5123. studyJuri: [
  5124. {
  5125. content: "",
  5126. cover: [],
  5127. upVedio: [],
  5128. upFile: [],
  5129. },
  5130. ],
  5131. plworkFile: [],
  5132. mr: require("../assets/vedioPic.png"),
  5133. word: require("../assets/icon/isWord.png"),
  5134. word2: require("../assets/icon/word2.png"),
  5135. video: require("../assets/icon/isVideo.png"),
  5136. noLikes: require("../assets/icon/comment/noLikes.png"),
  5137. likes: require("../assets/icon/comment/likes.png"),
  5138. scoreImg: require("../assets/score.png"),
  5139. courseDetail: {},
  5140. isSelect: false,
  5141. chapInfo: [],
  5142. chapInfoList: [],
  5143. taskCount: 0,
  5144. imgList: [],
  5145. noImgList: [],
  5146. pzList: [],
  5147. PlTextList: [
  5148. "Excellent!",
  5149. "nice!",
  5150. "很有创意!",
  5151. "还不错哦~",
  5152. "继续努力哦~",
  5153. ],
  5154. isClickNav: "",
  5155. navId: "",
  5156. playerOptions: {
  5157. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5158. autoplay: false, //如果true,浏览器准备好时开始回放。
  5159. muted: false, // 默认情况下将会消除任何音频。
  5160. loop: false, // 导致视频一结束就重新开始。
  5161. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5162. language: "zh-CN",
  5163. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5164. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5165. sources: [
  5166. {
  5167. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5168. src: "", //url地址require("../../assets/media/aaa.mp4")
  5169. },
  5170. ],
  5171. // poster: require("../../assets/tu31.png"), //你的封面地址
  5172. // poster: dataRes.imgUrl, //你的封面地址
  5173. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5174. controlBar: {
  5175. timeDivider: true, //当前时间和持续时间的分隔符
  5176. durationDisplay: true, //显示持续时间
  5177. remainingTimeDisplay: false, //是否显示剩余时间功能
  5178. fullscreenToggle: true, //全屏按钮
  5179. },
  5180. },
  5181. playerOptions1: {
  5182. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5183. autoplay: false, //如果true,浏览器准备好时开始回放。
  5184. muted: false, // 默认情况下将会消除任何音频。
  5185. loop: false, // 导致视频一结束就重新开始。
  5186. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5187. language: "zh-CN",
  5188. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5189. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5190. sources: [
  5191. {
  5192. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5193. src: "", //url地址require("../../assets/media/aaa.mp4")
  5194. },
  5195. ],
  5196. // poster: require("../../assets/tu31.png"), //你的封面地址
  5197. // poster: dataRes.imgUrl, //你的封面地址
  5198. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5199. controlBar: {
  5200. timeDivider: true, //当前时间和持续时间的分隔符
  5201. durationDisplay: true, //显示持续时间
  5202. remainingTimeDisplay: false, //是否显示剩余时间功能
  5203. fullscreenToggle: true, //全屏按钮
  5204. },
  5205. },
  5206. playerO: {},
  5207. noneBtnImg: false,
  5208. proVisible: false,
  5209. proVisible2: false,
  5210. progress: 0,
  5211. isFinishSize: 0,
  5212. isAllSize: 0,
  5213. questionAnswer: "",
  5214. answerQ: "", //问答标题
  5215. rateJson: [],
  5216. wbCount: 0,
  5217. wordCount: 0,
  5218. mindCount: 0,
  5219. askCount: 0,
  5220. noteCount: 0,
  5221. mindNetWorkCount: 0,
  5222. libraryCount: 0,
  5223. workCount: 0,
  5224. timeCount: 0,
  5225. answerCount: 0,
  5226. trainCount: 0,
  5227. evalCount: 0,
  5228. dialogImageUrl: "",
  5229. pictureDialog: false,
  5230. toolTypeList: [],
  5231. dialogVisible1: false,
  5232. dialogVisible2: false,
  5233. dialogVisible3: false,
  5234. dialogVisible6: false,
  5235. dialogVisible4: false,
  5236. isNoHomeWork: false,
  5237. dialogVisible5: false,
  5238. dialogVisibleChoice: false,
  5239. answerDialogVisible: false,
  5240. juriVisible: false,
  5241. timeDialogVisible: false,
  5242. radio: [],
  5243. isAsk: false,
  5244. askJson: {
  5245. askCount: 1,
  5246. askTitle: "",
  5247. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5248. },
  5249. testJson: {},
  5250. checkJson: [],
  5251. askList: [],
  5252. answerList: [],
  5253. navList: [],
  5254. addPzDialog: false,
  5255. pzConText: "",
  5256. worksStudent: [],
  5257. isCloseList: [],
  5258. workStudent: [],
  5259. groupStudent: [],
  5260. groupStudentUid: [],
  5261. noWorksS: [],
  5262. isWorksS: [],
  5263. noWorksStudent: [],
  5264. toolindex: 0,
  5265. groupIndex: 0,
  5266. workTypeB: false,
  5267. workTypeC: false,
  5268. isAnswer: false,
  5269. timer: null,
  5270. opertimer: null,
  5271. showType: 0,
  5272. fileType: 0,
  5273. showPDF: false,
  5274. noteName: "",
  5275. evaJuri: [],
  5276. evalua: "",
  5277. eTitle: "",
  5278. eName: "",
  5279. eJson: {},
  5280. fid: "", //一级
  5281. sid: "", //二级
  5282. tid: "", //二级
  5283. typeMode: 1,
  5284. eJSONNum: 0,
  5285. Etype: 1,
  5286. data: {
  5287. meta: {
  5288. name: "example",
  5289. author: "dd@163.com",
  5290. version: "0.2",
  5291. },
  5292. format: "node_array",
  5293. data: [{ id: "root", isroot: true, topic: "" }],
  5294. },
  5295. fullDialogVisible: false,
  5296. fulltype: "",
  5297. fullUrl: "",
  5298. commentIndexJson: {},
  5299. Stbodywidth: 0,
  5300. pzType: 1,
  5301. wScore: 0,
  5302. scoreDetail: "",
  5303. videoStart: false,
  5304. recorder: null,
  5305. groupJson: {},
  5306. groupJson2: {},
  5307. dialogVisibleGroup: false,
  5308. dialogVisibleGroup2: false,
  5309. updateGroupArray: [],
  5310. updateGroupUser: {},
  5311. deleteGroupUser: [],
  5312. deleteGroupArray: {},
  5313. checkChair: "",
  5314. checkDeleteGroup: [],
  5315. inviteCode: "",
  5316. courseGroupStudent: [],
  5317. courseGroupStudentUid: [],
  5318. courseGroup: {},
  5319. isGroup: false,
  5320. };
  5321. },
  5322. methods: {
  5323. jump() {
  5324. window.parent.postMessage({ tools: "43" }, "*");
  5325. },
  5326. previewImg(url) {
  5327. this.$hevueImgPreview(url);
  5328. },
  5329. change(val) {
  5330. console.log(val);
  5331. },
  5332. goTo(path) {
  5333. this.$router.push(path);
  5334. },
  5335. handlePictureCardPreview(url) {
  5336. this.dialogImageUrl = url;
  5337. this.pictureDialog = true;
  5338. },
  5339. clean(type) {
  5340. if (type == 1) {
  5341. this.studyJuri[0].cover.splice(0, 1);
  5342. } else if (type == 2) {
  5343. this.studyJuri[0].upVedio.splice(0, 1);
  5344. } else {
  5345. this.studyJuri[0].upFile.splice(0, 1);
  5346. }
  5347. },
  5348. clean2(index) {
  5349. this.plworkFile.splice(index, 1);
  5350. },
  5351. handleClose(done) {
  5352. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  5353. this.videoDetail.sources[0].src = "";
  5354. }
  5355. this.commentIndexJson = {};
  5356. done();
  5357. },
  5358. fullTools() {
  5359. this.full = !this.full;
  5360. },
  5361. imgChange(file, fileList, type) {
  5362. if (type == 1) {
  5363. var _tmp = this.studyJuri[0].cover;
  5364. } else if (type == 2) {
  5365. var _tmp = this.studyJuri[0].upVedio;
  5366. } else {
  5367. var _tmp = this.studyJuri[0].upFile;
  5368. }
  5369. this.noneBtnImg = _tmp.length >= 1;
  5370. },
  5371. setContent(bool) {
  5372. this.contentDialog = bool
  5373. if (bool && this.mlDialog) {
  5374. document.querySelector('.workd_media').style.height = "650px"
  5375. } else {
  5376. document.querySelector('.workd_media').style.height = "auto"
  5377. }
  5378. },
  5379. setContent2(bool){
  5380. this.mlDialog = bool
  5381. if (bool && this.contentDialog) {
  5382. document.querySelector('.workd_media').style.height = "650px"
  5383. } else {
  5384. document.querySelector('.workd_media').style.height = "auto"
  5385. }
  5386. },
  5387. addImg(e) {
  5388. var el = e.currentTarget;
  5389. // this.$message.success('触发上传')
  5390. el.getElementsByTagName("input")[0].click();
  5391. e.target.value = "";
  5392. },
  5393. addSelectAnswer() {
  5394. let params = [
  5395. {
  5396. uid: this.userid,
  5397. cid: this.id,
  5398. stage: this.courseType,
  5399. task: this.taskCount,
  5400. tool: this.toolindex,
  5401. content: this.selectAnswer.answer,
  5402. type: 7,
  5403. },
  5404. ];
  5405. this.ajax
  5406. .post(this.$store.state.api + "addCourseWorks", params)
  5407. .then((res) => {
  5408. this.$message({
  5409. message: "提交成功",
  5410. type: "success",
  5411. });
  5412. this.dialogVisibleSelect = false;
  5413. // this.selectAnswer = {};
  5414. this.selectSWorks();
  5415. this.selectStudent();
  5416. })
  5417. .catch((err) => {
  5418. this.$message.error("提交失败");
  5419. console.error(err);
  5420. });
  5421. },
  5422. addSenWorks() {
  5423. for (var i = 0; i < this.sentenceList.length; i++) {
  5424. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5425. if (
  5426. this.sentenceList[i].chooseSenList[j] == undefined ||
  5427. this.sentenceList[i].chooseSenList[j] == ""
  5428. ) {
  5429. this.$message.error("请将答案填写完整!");
  5430. return;
  5431. }
  5432. }
  5433. }
  5434. let params = [
  5435. {
  5436. uid: this.userid,
  5437. cid: this.id,
  5438. stage: this.courseType,
  5439. task: this.taskCount,
  5440. tool: this.toolindex,
  5441. content: JSON.stringify(this.sentenceList),
  5442. type: 9,
  5443. },
  5444. ];
  5445. this.ajax
  5446. .post(this.$store.state.api + "addCourseWorks", params)
  5447. .then((res) => {
  5448. this.$message({
  5449. message: "提交成功",
  5450. type: "success",
  5451. });
  5452. this.dialogVisibleSentence = false;
  5453. // this.selectAnswer = {};
  5454. this.selectSWorks();
  5455. this.selectStudent();
  5456. })
  5457. .catch((err) => {
  5458. this.$message.error("提交失败");
  5459. console.error(err);
  5460. });
  5461. },
  5462. addTableWorks() {
  5463. let params = [
  5464. {
  5465. uid: this.userid,
  5466. cid: this.id,
  5467. stage: this.courseType,
  5468. task: this.taskCount,
  5469. tool: this.toolindex,
  5470. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  5471. type: 10,
  5472. },
  5473. ];
  5474. this.ajax
  5475. .post(this.$store.state.api + "addCourseWorks", params)
  5476. .then((res) => {
  5477. this.$message({
  5478. message: "提交成功",
  5479. type: "success",
  5480. });
  5481. this.dialogVisibleTable = false;
  5482. // this.selectAnswer = {};
  5483. this.selectSWorks();
  5484. this.selectStudent();
  5485. })
  5486. .catch((err) => {
  5487. this.$message.error("提交失败");
  5488. console.error(err);
  5489. });
  5490. },
  5491. addWordWorks() {
  5492. let params = {
  5493. uid: this.userid,
  5494. cid: this.id,
  5495. stage: this.courseType,
  5496. task: this.taskCount,
  5497. tool: this.toolindex,
  5498. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  5499. type: 13,
  5500. atool: 52,
  5501. };
  5502. console.log(params);
  5503. this.ajax
  5504. .get(this.$store.state.api + "addCourseWorks3", params)
  5505. .then((res) => {
  5506. this.$message({
  5507. message: "提交成功",
  5508. type: "success",
  5509. });
  5510. this.dialogVisibleWord = false;
  5511. // this.selectAnswer = {};
  5512. this.selectSWorks();
  5513. this.selectStudent();
  5514. })
  5515. .catch((err) => {
  5516. this.$message.error("提交失败");
  5517. console.error(err);
  5518. });
  5519. },
  5520. addCourseWorks(i) {
  5521. var typesql;
  5522. if (this.fileType === 0) {
  5523. typesql = 1;
  5524. } else if (this.fileType === 1) {
  5525. typesql = 4;
  5526. } else if (this.fileType === 2) {
  5527. typesql = 5;
  5528. } else if (this.fileType === 3) {
  5529. typesql = 12;
  5530. }
  5531. if (!this.studyJuri[0].cover[0].url) {
  5532. this.$message.error("请上传文件");
  5533. return;
  5534. }
  5535. let params = [
  5536. {
  5537. uid: this.userid,
  5538. cid: this.id,
  5539. stage: this.courseType,
  5540. task: i,
  5541. tool: this.toolindex,
  5542. content: this.studyJuri[0].cover[0].url,
  5543. type: typesql,
  5544. },
  5545. ];
  5546. this.ajax
  5547. .post(this.$store.state.api + "addCourseWorksR", params)
  5548. .then((res) => {
  5549. this.$message({
  5550. message: "提交成功",
  5551. type: "success",
  5552. });
  5553. this.studyJuri[0].cover = [];
  5554. this.dialogVisible = false;
  5555. this.getCourseDetail(2);
  5556. })
  5557. .catch((err) => {
  5558. this.$message.error("提交失败");
  5559. console.error(err);
  5560. });
  5561. },
  5562. addCourseWorksPl(i) {
  5563. let _files = this.plworkFile;
  5564. var c = 1;
  5565. for (var k = 0; k < _files.length; k++) {
  5566. if (!_files[k].username) {
  5567. c = 2;
  5568. }
  5569. }
  5570. if (c == 2) {
  5571. this.$message.error("请填写学生姓名");
  5572. return;
  5573. }
  5574. let params = [
  5575. {
  5576. ateacher: this.userid,
  5577. cid: this.id,
  5578. stage: this.courseType,
  5579. task: i,
  5580. tool: this.toolindex,
  5581. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  5582. },
  5583. ];
  5584. this.ajax
  5585. .post(this.$store.state.api + "addCourseWorksPl", params)
  5586. .then((res) => {
  5587. this.$message({
  5588. message: "提交成功",
  5589. type: "success",
  5590. });
  5591. this.plworkFile = [];
  5592. this.dialogVisiblePl = false;
  5593. this.getCourseDetail(2);
  5594. })
  5595. .catch((err) => {
  5596. this.$message.error("提交失败");
  5597. console.error(err);
  5598. });
  5599. },
  5600. addCourseWorks2(i) {
  5601. var typesql;
  5602. if (this.fileType === 0) {
  5603. typesql = 0;
  5604. } else if (this.fileType === 1) {
  5605. typesql = 1;
  5606. } else if (this.fileType === 2) {
  5607. typesql = 3;
  5608. } else if (this.fileType === 3) {
  5609. typesql = 12;
  5610. }
  5611. if (!this.studyJuri[0].cover[0].url) {
  5612. this.$message.error("请上传文件");
  5613. return;
  5614. }
  5615. let params = [
  5616. {
  5617. uid: this.userid,
  5618. cid: this.id,
  5619. stage: this.courseType,
  5620. task: i,
  5621. tool: this.toolindex,
  5622. content: JSON.stringify({
  5623. type: typesql,
  5624. groupIndex: this.groupIndex,
  5625. url: this.studyJuri[0].cover[0].url,
  5626. }).replaceAll(/%/g, "%25"),
  5627. type: 11,
  5628. atool: 49,
  5629. text: "",
  5630. },
  5631. ];
  5632. this.ajax
  5633. .post(this.$store.state.api + "addCourseWorks5", params)
  5634. .then((res) => {
  5635. this.$message({
  5636. message: "提交成功",
  5637. type: "success",
  5638. });
  5639. this.studyJuri[0].cover = [];
  5640. this.dialogVisibleGroupWork = false;
  5641. this.getCourseDetail(2);
  5642. })
  5643. .catch((err) => {
  5644. this.$message.error("提交失败");
  5645. console.error(err);
  5646. });
  5647. },
  5648. addCourseWorksGong(i, data, tool) {
  5649. let params = [
  5650. {
  5651. uid: this.userid,
  5652. cid: this.id,
  5653. stage: this.courseType,
  5654. task: this.taskCount,
  5655. tool: i,
  5656. content: data,
  5657. type: 12,
  5658. atool: tool,
  5659. text: "",
  5660. },
  5661. ];
  5662. this.ajax
  5663. .post(this.$store.state.api + "addCourseWorks5", params)
  5664. .then((res) => {
  5665. this.$message({
  5666. message: "提交成功",
  5667. type: "success",
  5668. });
  5669. this.studyJuri[0].cover = [];
  5670. this.selectSWorks();
  5671. this.selectStudent();
  5672. })
  5673. .catch((err) => {
  5674. this.$message.error("提交失败");
  5675. console.error(err);
  5676. });
  5677. },
  5678. addCourseWorksTeacher(i) {
  5679. var typesql;
  5680. if (this.fileType === 0) {
  5681. typesql = 1;
  5682. } else if (this.fileType === 1) {
  5683. typesql = 4;
  5684. } else if (this.fileType === 2) {
  5685. typesql = 5;
  5686. } else if (this.fileType === 3) {
  5687. typesql = 12;
  5688. }
  5689. if (!this.studyJuri[0].cover[0].url) {
  5690. this.$message.error("请上传文件");
  5691. return;
  5692. }
  5693. let params = [
  5694. {
  5695. uid: this.sStudent.userid,
  5696. cid: this.id,
  5697. stage: this.courseType,
  5698. task: i,
  5699. tool: this.toolindex,
  5700. content: this.studyJuri[0].cover[0].url,
  5701. type: typesql,
  5702. ateacher: this.userid,
  5703. },
  5704. ];
  5705. this.ajax
  5706. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  5707. .then((res) => {
  5708. this.$message({
  5709. message: "提交成功",
  5710. type: "success",
  5711. });
  5712. this.studyJuri[0].cover = [];
  5713. this.dialogVisibleWorks = false;
  5714. this.getCourseDetail(2);
  5715. })
  5716. .catch((err) => {
  5717. this.$message.error("提交失败");
  5718. console.error(err);
  5719. });
  5720. },
  5721. selectCStudent() {
  5722. let params = {
  5723. cid: this.classId,
  5724. };
  5725. this.ajax
  5726. .get(this.$store.state.api + "selectSnameByCid", params)
  5727. .then((res) => {
  5728. this.classJuri = res.data[0];
  5729. })
  5730. .catch((err) => {
  5731. console.error(err);
  5732. });
  5733. },
  5734. selectUploadStudent() {
  5735. let params = {
  5736. cid: this.uploadCid,
  5737. };
  5738. this.ajax
  5739. .get(this.$store.state.api + "selectSnameByCid", params)
  5740. .then((res) => {
  5741. this.uploadStudentJuri = res.data[0];
  5742. })
  5743. .catch((err) => {
  5744. console.error(err);
  5745. });
  5746. },
  5747. arrayToArray(arrayo, arrayt) {
  5748. let array1 = arrayo;
  5749. let array2 = arrayt;
  5750. let commonElements = [];
  5751. for (let i = 0; i < array1.length; i++) {
  5752. for (let j = 0; j < array2.length; j++) {
  5753. if (array1[i] === array2[j]) {
  5754. commonElements.push(array1[i]);
  5755. }
  5756. }
  5757. }
  5758. return commonElements
  5759. },
  5760. selectWorksStudent() {
  5761. let params = {
  5762. oid: this.oid,
  5763. cid: this.courseDetail.juri,
  5764. };
  5765. this.ajax
  5766. .get(this.$store.state.api + "selectWorksStudent", params)
  5767. .then((res) => {
  5768. var a = res.data[0];
  5769. for (var i = 0; i < this.isWorksS.length; i++) {
  5770. this.noWorksS[i] = [];
  5771. var studentK = [];
  5772. if (this.isWorksS[i].length > 0) {
  5773. for (var z = 0; z < this.isWorksS[i].length; z++) {
  5774. studentK.push(this.isWorksS[i][z].uid);
  5775. }
  5776. studentK = studentK.join(",");
  5777. for (var j = 0; j < a.length; j++) {
  5778. if (studentK.indexOf(a[j].userid) == -1) {
  5779. if (this.tcid) {
  5780. // a[j].classid.indexOf(this.tcid) != -1
  5781. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  5782. this.noWorksS[i].push({
  5783. student: a[j].name,
  5784. userid: a[j].userid,
  5785. });
  5786. }
  5787. } else {
  5788. this.noWorksS[i].push({
  5789. student: a[j].name,
  5790. userid: a[j].userid,
  5791. });
  5792. }
  5793. }
  5794. }
  5795. } else {
  5796. for (var k = 0; k < a.length; k++) {
  5797. if (this.tcid) {
  5798. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  5799. this.noWorksS[i].push({
  5800. student: a[k].name,
  5801. userid: a[k].userid,
  5802. });
  5803. }
  5804. } else {
  5805. this.noWorksS[i].push({
  5806. student: a[k].name,
  5807. userid: a[k].userid,
  5808. });
  5809. }
  5810. }
  5811. }
  5812. }
  5813. this.$forceUpdate();
  5814. if (
  5815. Object.keys(this.commentDetail).length &&
  5816. Object.keys(this.commentIndexJson).length &&
  5817. !this.dialogVisibleScore
  5818. ) {
  5819. let a = 1;
  5820. let c = this.commentIndexJson;
  5821. console.log(c);
  5822. if (
  5823. this.commentIndexJson.gindex ||
  5824. this.commentIndexJson.gindex === 0
  5825. ) {
  5826. for (
  5827. var i = 0;
  5828. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  5829. i++
  5830. ) {
  5831. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  5832. groupA: for (var k = 0; k < _el.length; k++) {
  5833. let el = _el[k];
  5834. if (el.wid == this.commentDetail.wid) {
  5835. a = 2;
  5836. this.commentOther(
  5837. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  5838. this.commentIndexJson.toolIndex,
  5839. k,
  5840. this.commentIndexJson.gindex
  5841. );
  5842. break groupA;
  5843. }
  5844. }
  5845. }
  5846. if (a === 1) {
  5847. this.commentDetail = [];
  5848. this.commentIndexJson = {};
  5849. this.commentDialogVisible = false;
  5850. this.$message("此作业已被删除");
  5851. }
  5852. } else {
  5853. if (this.isGroup && this.commentIndexJson.gid) {
  5854. groupA: for (
  5855. var i = 0;
  5856. i < this.courseGroup.group.length;
  5857. i++
  5858. ) {
  5859. let _group = this.courseGroup.group[i]
  5860. if (_group.id == this.commentIndexJson.gid) {
  5861. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  5862. for (var k = 0; k < _el2.length; k++) {
  5863. let el2 = _el2[k];
  5864. if (el2.wid == this.commentDetail.wid) {
  5865. a = 2;
  5866. this.commentOther(
  5867. _el2[k],
  5868. this.commentIndexJson.toolIndex,
  5869. k,
  5870. null,
  5871. this.commentIndexJson.gid
  5872. );
  5873. break groupA;
  5874. }
  5875. }
  5876. }
  5877. }
  5878. }
  5879. if (a == 1) {
  5880. for (
  5881. var i = 0;
  5882. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  5883. i++
  5884. ) {
  5885. let el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  5886. if (el.wid == this.commentDetail.wid) {
  5887. a = 2;
  5888. this.commentOther(
  5889. this.worksStudent[this.commentIndexJson.toolIndex][i],
  5890. this.commentIndexJson.toolIndex,
  5891. i
  5892. );
  5893. break;
  5894. }
  5895. }
  5896. }
  5897. if (a === 1) {
  5898. this.commentDetail = [];
  5899. this.commentIndexJson = {};
  5900. this.commentDialogVisible = false;
  5901. this.$message("此作业已被删除");
  5902. }
  5903. }
  5904. }
  5905. })
  5906. .catch((err) => {
  5907. console.error(err);
  5908. });
  5909. },
  5910. selectStudent() {
  5911. //学生查看自己作业
  5912. let params = {
  5913. uid: this.userid,
  5914. cid: this.id,
  5915. s: this.courseType,
  5916. t: this.taskCount,
  5917. };
  5918. this.ajax
  5919. .get(this.$store.state.api + "selectStudentWorks", params)
  5920. .then((res) => {
  5921. var a =
  5922. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5923. this.taskCount
  5924. ].toolChoose;
  5925. var b = res.data[0];
  5926. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  5927. var y = [
  5928. "AVI",
  5929. "NAVI",
  5930. "MPEG",
  5931. "ASF",
  5932. "MOV",
  5933. "WMV",
  5934. "3GP",
  5935. "RM",
  5936. "RMVB",
  5937. "FLV",
  5938. "F4V",
  5939. "H.264",
  5940. "H.265",
  5941. "REAL VIDEO",
  5942. "MKV",
  5943. "WebM",
  5944. "HDDVD",
  5945. "MP4",
  5946. "MPG",
  5947. "M4V",
  5948. "MGV",
  5949. "OGV",
  5950. "QTM",
  5951. "STR",
  5952. "AMC",
  5953. "DVX",
  5954. "EVO",
  5955. "DAT",
  5956. "OGG",
  5957. "OGM",
  5958. ];
  5959. for (var i = 0; i < a.length; i++) {
  5960. this.workStudent[i] = [];
  5961. for (var j = 0; j < b.length; j++) {
  5962. if (i == b[j].tool) {
  5963. if (
  5964. (b[j].type == 1 ||
  5965. b[j].type == 4 ||
  5966. b[j].type == 5 ||
  5967. b[j].type == 6 ||
  5968. b[j].type == 12 ||
  5969. b[j].type == 7) &&
  5970. a[i].tool[0] != 15 &&
  5971. a[i].tool[0] != 4 &&
  5972. a[i].tool[0] != 45 &&
  5973. a[i].tool[0] != 50 &&
  5974. a[i].tool[0] != 32 &&
  5975. a[i].tool[0] != 57 &&
  5976. a[i].tool[0] != 52
  5977. ) {
  5978. if (
  5979. c.indexOf(
  5980. b[j].content
  5981. .split(".")
  5982. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  5983. ) != -1 &&
  5984. a[i].tool[0] == 16 &&
  5985. b[j].atool != 50
  5986. ) {
  5987. this.workStudent[i].push({
  5988. works: b[j].content,
  5989. sName: b[j].name,
  5990. score: b[j].score,
  5991. img: b[j].img,
  5992. type: 1,
  5993. time: b[j].time,
  5994. userid: b[j].userid,
  5995. wid: b[j].id,
  5996. });
  5997. } else if (
  5998. y.indexOf(
  5999. b[j].content
  6000. .split(".")
  6001. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6002. ) != -1 &&
  6003. a[i].tool[0] == 16 &&
  6004. b[j].atool != 50
  6005. ) {
  6006. this.workStudent[i].push({
  6007. userid: b[j].userid,
  6008. wid: b[j].id,
  6009. works: b[j].content,
  6010. sName: b[j].name,
  6011. score: b[j].score,
  6012. img: b[j].img,
  6013. type: 3,
  6014. time: b[j].time,
  6015. });
  6016. } else if (b[j].type == 6 && b[j].atool != 50) {
  6017. this.workStudent[i].push({
  6018. userid: b[j].userid,
  6019. wid: b[j].id,
  6020. works: b[j].content,
  6021. sName: b[j].name,
  6022. score: b[j].score,
  6023. img: b[j].img,
  6024. type: 4,
  6025. time: b[j].time,
  6026. });
  6027. } else if (b[j].type == 7 && b[j].atool != 50) {
  6028. this.workStudent[i].push({
  6029. userid: b[j].userid,
  6030. wid: b[j].id,
  6031. works: b[j].content,
  6032. sName: b[j].name,
  6033. score: b[j].score,
  6034. img: b[j].img,
  6035. type: 5,
  6036. time: b[j].time,
  6037. });
  6038. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  6039. this.workStudent[i].push({
  6040. works: b[j].content,
  6041. sName: b[j].name,
  6042. score: b[j].score,
  6043. img: b[j].img,
  6044. type: 12,
  6045. time: b[j].time,
  6046. userid: b[j].userid,
  6047. wid: b[j].id,
  6048. });
  6049. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  6050. this.workStudent[i].push({
  6051. works: b[j].content,
  6052. sName: b[j].name,
  6053. score: b[j].score,
  6054. img: b[j].img,
  6055. type: 0,
  6056. time: b[j].time,
  6057. userid: b[j].userid,
  6058. wid: b[j].id,
  6059. });
  6060. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  6061. this.workStudent[i].push({
  6062. works: b[j].content,
  6063. sName: b[j].name,
  6064. score: b[j].score,
  6065. img: b[j].img,
  6066. type: 0,
  6067. time: b[j].time,
  6068. userid: b[j].userid,
  6069. wid: b[j].id,
  6070. });
  6071. }
  6072. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  6073. this.workStudent[i].push({
  6074. works: b[j].content,
  6075. sName: b[j].name,
  6076. score: b[j].score,
  6077. img: b[j].img,
  6078. type: 2,
  6079. time: b[j].time,
  6080. userid: b[j].userid,
  6081. wid: b[j].id,
  6082. });
  6083. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  6084. //问卷
  6085. this.workStudent[i].push({
  6086. works: b[j].content,
  6087. sName: b[j].name,
  6088. score: b[j].score,
  6089. img: b[j].img,
  6090. type: 2,
  6091. time: b[j].time,
  6092. userid: b[j].userid,
  6093. wid: b[j].id,
  6094. });
  6095. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  6096. //选择题
  6097. this.workStudent[i].push({
  6098. works: b[j].content,
  6099. sName: b[j].name,
  6100. score: b[j].score,
  6101. img: b[j].img,
  6102. type: 8,
  6103. time: b[j].time,
  6104. userid: b[j].userid,
  6105. wid: b[j].id,
  6106. });
  6107. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  6108. //选择题
  6109. this.workStudent[i].push({
  6110. works: b[j].content,
  6111. sName: b[j].name,
  6112. score: b[j].score,
  6113. img: b[j].img,
  6114. type: 9,
  6115. time: b[j].time,
  6116. userid: b[j].userid,
  6117. wid: b[j].id,
  6118. });
  6119. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  6120. //选择题
  6121. this.workStudent[i].push({
  6122. works: b[j].content,
  6123. sName: b[j].name,
  6124. score: b[j].score,
  6125. img: b[j].img,
  6126. type: 10,
  6127. time: b[j].time,
  6128. userid: b[j].userid,
  6129. wid: b[j].id,
  6130. });
  6131. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  6132. //选择题
  6133. this.workStudent[i].push({
  6134. works: b[j].content,
  6135. sName: b[j].name,
  6136. score: b[j].score,
  6137. img: b[j].img,
  6138. type: 13,
  6139. time: b[j].time,
  6140. userid: b[j].userid,
  6141. wid: b[j].id,
  6142. });
  6143. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  6144. //选择题
  6145. this.workStudent[i].push({
  6146. works: b[j].content,
  6147. sName: b[j].name,
  6148. score: b[j].score,
  6149. img: b[j].img,
  6150. type: 12,
  6151. time: b[j].time,
  6152. userid: b[j].userid,
  6153. wid: b[j].id,
  6154. });
  6155. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  6156. //选择题
  6157. this.workStudent[i].push({
  6158. works: b[j].content,
  6159. sName: b[j].name,
  6160. score: b[j].score,
  6161. img: b[j].img,
  6162. type: 12,
  6163. time: b[j].time,
  6164. userid: b[j].userid,
  6165. wid: b[j].id,
  6166. });
  6167. }
  6168. }
  6169. }
  6170. }
  6171. })
  6172. .catch((err) => {
  6173. console.error(err);
  6174. });
  6175. },
  6176. openVideo(w) {
  6177. this.videoDetail = {};
  6178. this.playerOptions1.sources[0].src = w.works;
  6179. this.videoDetail = this.playerOptions1;
  6180. this.videoVisible = true;
  6181. },
  6182. isLikes(wid, uid, t, c, isLikes) {
  6183. if (isLikes == false) {
  6184. let params = [
  6185. {
  6186. wid: wid,
  6187. lid: uid,
  6188. t: t,
  6189. c: c,
  6190. },
  6191. ];
  6192. this.ajax
  6193. .post(this.$store.state.api + "insertComment", params)
  6194. .then((res) => {
  6195. this.$message({
  6196. message: "点赞成功",
  6197. type: "success",
  6198. });
  6199. this.selectSWorks();
  6200. this.selectStudent();
  6201. })
  6202. .catch((err) => {
  6203. this.$message.error("点赞失败");
  6204. console.error(err);
  6205. });
  6206. } else {
  6207. let params = {
  6208. wid: wid,
  6209. lid: uid,
  6210. type: t,
  6211. };
  6212. this.ajax
  6213. .get(this.$store.state.api + "deleteComment", params)
  6214. .then((res) => {
  6215. this.$message({
  6216. message: "取消点赞成功",
  6217. type: "success",
  6218. });
  6219. this.selectSWorks();
  6220. this.selectStudent();
  6221. })
  6222. .catch((err) => {
  6223. console.error(err);
  6224. });
  6225. }
  6226. },
  6227. deleteComment(wid) {
  6228. this.$confirm("确定删除此评论吗?", "提示", {
  6229. confirmButtonText: "确定",
  6230. cancelButtonText: "取消",
  6231. type: "warning",
  6232. })
  6233. .then(() => {
  6234. let params = {
  6235. id: wid,
  6236. };
  6237. this.ajax
  6238. .get(this.$store.state.api + "deleteComment2", params)
  6239. .then((res) => {
  6240. this.$message({
  6241. message: "删除评论成功",
  6242. type: "success",
  6243. });
  6244. this.selectSWorks();
  6245. this.selectStudent();
  6246. })
  6247. .catch((err) => {
  6248. console.error(err);
  6249. });
  6250. })
  6251. .catch(() => { });
  6252. },
  6253. commentOther(w, toolIndex, wIndex, gindex, gid) {
  6254. this.commentIndexJson = {
  6255. toolIndex: toolIndex,
  6256. wIndex: wIndex,
  6257. gindex: gindex,
  6258. gid: gid
  6259. };
  6260. this.commentDetail = [];
  6261. this.commentDialogVisible = true;
  6262. this.commentDetail = w;
  6263. if (w.works && w.type == 1) {
  6264. this.pptImgUrl = "";
  6265. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6266. if (
  6267. a.indexOf(
  6268. w.works
  6269. .split(".")
  6270. [w.works.split(".").length - 1].toLocaleUpperCase()
  6271. ) != -1
  6272. ) {
  6273. this.pptImgUrl =
  6274. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6275. this.showPDF = false;
  6276. } else if (
  6277. w.works
  6278. .split(".")
  6279. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6280. ) {
  6281. this.pptImgUrl = w.works;
  6282. this.showPDF = true;
  6283. }
  6284. } else if (w.works && w.type == 3) {
  6285. this.videoDetail = {};
  6286. this.playerOptions1.sources[0].src = w.works;
  6287. this.videoDetail = this.playerOptions1;
  6288. // this.videoVisible = true;
  6289. } else if (w.works && w.type == 4) {
  6290. this.eScore = JSON.parse(w.works);
  6291. this.rateJson =
  6292. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6293. this.taskCount
  6294. ].toolChoose[toolIndex].rateJson;
  6295. } else if (w.works && w.type == 10) {
  6296. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  6297. } else if (w.works && w.type == 13) {
  6298. this.wordJson =
  6299. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6300. this.taskCount
  6301. ].toolChoose[toolIndex].wordJson;
  6302. }
  6303. },
  6304. openScore(w) {
  6305. this.wScore = 0;
  6306. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  6307. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  6308. this.commentDetail = [];
  6309. this.dialogVisibleScore = true;
  6310. this.commentDetail = w;
  6311. if (w.works && w.type == 1) {
  6312. this.pptImgUrl = "";
  6313. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6314. if (
  6315. a.indexOf(
  6316. w.works
  6317. .split(".")
  6318. [w.works.split(".").length - 1].toLocaleUpperCase()
  6319. ) != -1
  6320. ) {
  6321. this.pptImgUrl =
  6322. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6323. this.showPDF = false;
  6324. } else if (
  6325. w.works
  6326. .split(".")
  6327. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6328. ) {
  6329. this.pptImgUrl = w.works;
  6330. this.showPDF = true;
  6331. }
  6332. } else if (w.works && w.type == 3) {
  6333. this.videoDetail = {};
  6334. this.playerOptions1.sources[0].src = w.works;
  6335. this.videoDetail = this.playerOptions1;
  6336. }
  6337. },
  6338. addComment(wid, uid, t) {
  6339. if (this.commentText == "") {
  6340. this.$message.error("请输入对该学生的评价");
  6341. return;
  6342. }
  6343. let params2 = [
  6344. {
  6345. wid: wid,
  6346. lid: uid,
  6347. t: t,
  6348. },
  6349. ];
  6350. this.ajax
  6351. .post(this.$store.state.api + "getComment", params2)
  6352. .then((res) => {
  6353. if (res.data[0].length > 0) {
  6354. this.$message.error("一个作业只能评论一条");
  6355. } else {
  6356. let params = [
  6357. {
  6358. wid: wid,
  6359. lid: uid,
  6360. t: t,
  6361. c: this.commentText,
  6362. },
  6363. ];
  6364. this.ajax
  6365. .post(this.$store.state.api + "insertComment", params)
  6366. .then((res) => {
  6367. this.$message({
  6368. message: "评论成功",
  6369. type: "success",
  6370. });
  6371. this.commentText = "";
  6372. this.selectSWorks();
  6373. this.selectStudent();
  6374. })
  6375. .catch((err) => {
  6376. this.$message.error("评论失败");
  6377. console.error(err);
  6378. });
  6379. }
  6380. })
  6381. .catch((err) => {
  6382. // this.$message.error("评论失败");
  6383. console.error(err);
  6384. });
  6385. },
  6386. scoreWork(wid) {
  6387. if (this.wScore == 0) {
  6388. this.$message.error("请评分");
  6389. return;
  6390. }
  6391. let params = [
  6392. {
  6393. wid: wid,
  6394. score: JSON.stringify({
  6395. wScore: this.wScore,
  6396. detail: this.scoreDetail,
  6397. }),
  6398. },
  6399. ];
  6400. this.ajax
  6401. .post(this.$store.state.api + "scoreWork", params)
  6402. .then((res) => {
  6403. this.$message({
  6404. message: "评分成功",
  6405. type: "success",
  6406. });
  6407. this.wScore = 0;
  6408. this.scoreDetail = "";
  6409. this.dialogVisibleScore = false;
  6410. this.selectSWorks();
  6411. this.selectStudent();
  6412. })
  6413. .catch((err) => {
  6414. this.$message.error("评分失败");
  6415. console.error(err);
  6416. });
  6417. },
  6418. openXz(w, i) {
  6419. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6420. .taskJson[this.taskCount].toolChoose[i].selectJson
  6421. ? JSON.parse(
  6422. JSON.stringify(
  6423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6424. this.taskCount
  6425. ].toolChoose[i].selectJson
  6426. )
  6427. )
  6428. : { url: "", select: [], answer: [] };
  6429. var a = w.works.split(",");
  6430. for (var k = 0; k < a.length; k++) {
  6431. a[k] = parseInt(a[k]);
  6432. }
  6433. this.selectAnswer = { answer: a, stu: w.sName };
  6434. this.isSelect = true;
  6435. this.dialogVisibleSelect = true;
  6436. },
  6437. openSen(w, i) {
  6438. this.sentenceList1 = JSON.parse(w.works);
  6439. this.sentenceList1.stuName = w.sName;
  6440. this.dialogVisibleSentence1 = true;
  6441. },
  6442. openPj(w, toolindex) {
  6443. this.isStar = true;
  6444. this.eScore = JSON.parse(w);
  6445. this.rateJson =
  6446. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6447. this.taskCount
  6448. ].toolChoose[toolindex].rateJson;
  6449. this.studentEvalDialogVisible = true;
  6450. },
  6451. deleteWorks(id) {
  6452. this.$confirm("确定删除此作业吗?", "提示", {
  6453. confirmButtonText: "确定",
  6454. cancelButtonText: "取消",
  6455. type: "warning",
  6456. })
  6457. .then(() => {
  6458. let params = [
  6459. {
  6460. id: id,
  6461. },
  6462. ];
  6463. this.ajax
  6464. .post(this.$store.state.api + "deleteCourseWork", params)
  6465. .then((res) => {
  6466. this.$message({
  6467. message: "删除成功",
  6468. type: "success",
  6469. });
  6470. this.selectStudent();
  6471. this.selectSWorks();
  6472. this.selectSLook();
  6473. })
  6474. .catch((err) => {
  6475. this.$message.error("网络异常");
  6476. console.error(err);
  6477. });
  6478. })
  6479. .catch(() => { });
  6480. },
  6481. selectSWorks(gindex) {
  6482. //教师查看全部作业
  6483. let params = {
  6484. cid: this.id,
  6485. s: this.courseType,
  6486. t: this.taskCount,
  6487. };
  6488. this.ajax
  6489. .get(this.$store.state.api + "selectSWorks", params)
  6490. .then((res) => {
  6491. var a =
  6492. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6493. this.taskCount
  6494. ].toolChoose;
  6495. var b = res.data[0];
  6496. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6497. var y = [
  6498. "AVI",
  6499. "NAVI",
  6500. "MPEG",
  6501. "ASF",
  6502. "MOV",
  6503. "WMV",
  6504. "3GP",
  6505. "RM",
  6506. "RMVB",
  6507. "FLV",
  6508. "F4V",
  6509. "H.264",
  6510. "H.265",
  6511. "REAL VIDEO",
  6512. "MKV",
  6513. "WebM",
  6514. "HDDVD",
  6515. "MP4",
  6516. "MPG",
  6517. "M4V",
  6518. "MGV",
  6519. "OGV",
  6520. "QTM",
  6521. "STR",
  6522. "AMC",
  6523. "DVX",
  6524. "EVO",
  6525. "DAT",
  6526. "OGG",
  6527. "OGM",
  6528. ];
  6529. var d = res.data[1];
  6530. var e = res.data[2];
  6531. var f = res.data[3];
  6532. for (var i = 0; i < a.length; i++) {
  6533. this.worksStudent[i] = [];
  6534. if (
  6535. !this.isCloseList[i] ||
  6536. this.isCloseList[i].isClose == undefined
  6537. ) {
  6538. this.isCloseList[i] = { isClose: 0 };
  6539. }
  6540. this.groupStudent[i] = [];
  6541. this.groupStudentUid[i] = [];
  6542. if (this.isGroup) {
  6543. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  6544. this.courseGroup.group[groupI].works[i] = []
  6545. }
  6546. }
  6547. this.isWorksS[i] = [];
  6548. this.checkJson[i] = [];
  6549. if (a[i].tool[0] == 49) {
  6550. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  6551. this.groupStudent[i][gA] = [];
  6552. this.groupStudentUid[i][gA] = [];
  6553. this.worksStudent[i][gA] = [];
  6554. this.isCloseList[i][gA] = [];
  6555. for (var g = 0; g < f.length; g++) {
  6556. if (
  6557. f[g].ttype == 2 &&
  6558. this.tcid &&
  6559. this.arrayToArray(f[g].classid.split(","), this.tcid.split(",")).length == 0
  6560. ) {
  6561. continue;
  6562. }
  6563. if (gA == f[g].group && f[g].tool == i) {
  6564. this.groupStudent[i][gA].push(f[g]);
  6565. this.groupStudentUid[i][gA].push(f[g].userid);
  6566. }
  6567. }
  6568. }
  6569. this.$forceUpdate();
  6570. }
  6571. for (var j = 0; j < b.length; j++) {
  6572. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  6573. continue;
  6574. }
  6575. var likesCount = 0;
  6576. var commentCount = 0;
  6577. var isLikes = false;
  6578. var commentJson = [];
  6579. var data = b[j];
  6580. if (i == b[j].tool) {
  6581. if (data.type == 2 && a[i].tool[0] == 4) {
  6582. // if(JSON.parse(data.content)[0].anwer){
  6583. var checkL = JSON.parse(data.content)[0].anwer.split(",");
  6584. for (var z = 0; z < checkL.length; z++) {
  6585. if (!this.checkJson[i][z]) {
  6586. this.checkJson[i].push({
  6587. checkCount: [],
  6588. checkPerson: [],
  6589. rightPerson: [],
  6590. });
  6591. }
  6592. if (!this.checkJson[i][z].checkCount.length) {
  6593. this.checkJson[i][z].checkCount = [];
  6594. let _askItemCount = JSON.parse(data.content)[0].askJson
  6595. .askJson[z].askItem;
  6596. for (var aic = 0; aic < _askItemCount; aic++) {
  6597. this.checkJson[i][z].checkCount.push(0);
  6598. }
  6599. }
  6600. if (
  6601. (JSON.parse(data.content)[0].askJson.askJson[z].answer ||
  6602. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  6603. 0) &&
  6604. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  6605. checkL[z]
  6606. ) {
  6607. this.checkJson[i][z].rightPerson.push(data.name);
  6608. }
  6609. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6610. ? this.checkJson[i][z].checkPerson[
  6611. parseInt(checkL[z])
  6612. ].push(data.name)
  6613. : (this.checkJson[i][z].checkPerson[parseInt(checkL[z])] =
  6614. [data.name]);
  6615. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6616. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  6617. : (this.checkJson[i][z].checkCount[
  6618. parseInt(checkL[z])
  6619. ] = 1);
  6620. // }
  6621. }
  6622. } else if (data.type == 8 && a[i].tool[0] == 45) {
  6623. var checkL = JSON.parse(data.content)[0].anwer;
  6624. for (var z = 0; z < checkL.length; z++) {
  6625. if (!this.checkJson[i][z]) {
  6626. this.checkJson[i].push({
  6627. checkCount: [],
  6628. checkPerson: [],
  6629. rightPerson: [],
  6630. });
  6631. }
  6632. if (!this.checkJson[i][z].checkCount.length) {
  6633. this.checkJson[i][z].checkCount = [];
  6634. let _askItemCount = JSON.parse(data.content)[0].testJson
  6635. .testJson[z].testItem;
  6636. console.log(_askItemCount);
  6637. for (var aic = 0; aic < _askItemCount; aic++) {
  6638. this.checkJson[i][z].checkCount.push(0);
  6639. }
  6640. }
  6641. if (checkL[z] instanceof Array) {
  6642. if (
  6643. JSON.parse(data.content)[0]
  6644. .testJson.testJson[z].answer.sort()
  6645. .join(",") == checkL[z].sort().join(",")
  6646. ) {
  6647. this.checkJson[i][z].rightPerson.push(data.name);
  6648. }
  6649. for (var q = 0; q < checkL[z].length; q++) {
  6650. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  6651. ? this.checkJson[i][z].checkPerson[
  6652. parseInt(checkL[z][q])
  6653. ].push(data.name)
  6654. : (this.checkJson[i][z].checkPerson[
  6655. parseInt(checkL[z][q])
  6656. ] = [data.name]);
  6657. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  6658. ? this.checkJson[i][z].checkCount[
  6659. parseInt(checkL[z][q])
  6660. ]++
  6661. : (this.checkJson[i][z].checkCount[
  6662. parseInt(checkL[z][q])
  6663. ] = 1);
  6664. }
  6665. } else {
  6666. if (
  6667. JSON.parse(data.content)[0].testJson.testJson[z]
  6668. .answer == checkL[z]
  6669. ) {
  6670. this.checkJson[i][z].rightPerson.push(data.name);
  6671. }
  6672. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  6673. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6674. ? this.checkJson[i][z].checkPerson[
  6675. parseInt(checkL[z])
  6676. ].push(data.name)
  6677. : (this.checkJson[i][z].checkPerson[
  6678. parseInt(checkL[z])
  6679. ] = [data.name]);
  6680. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6681. ? this.checkJson[i][z].checkCount[
  6682. parseInt(checkL[z])
  6683. ]++
  6684. : (this.checkJson[i][z].checkCount[
  6685. parseInt(checkL[z])
  6686. ] = 1);
  6687. }
  6688. }
  6689. }
  6690. } else if (data.type == 9 && a[i].tool[0] == 47) {
  6691. var checkL = JSON.parse(data.content);
  6692. for (var z = 0; z < checkL.length; z++) {
  6693. if (!this.checkJson[i][z]) {
  6694. this.checkJson[i].push({
  6695. checkCount: [],
  6696. checkPerson: [],
  6697. rightPerson: [],
  6698. });
  6699. }
  6700. this.checkJson[i][z].checkPerson.push(data.name);
  6701. if (
  6702. checkL[z].chooseSenList.toString() ==
  6703. checkL[z].rightAnswer.toString()
  6704. ) {
  6705. this.checkJson[i][z].rightPerson.push(data.name);
  6706. }
  6707. }
  6708. }
  6709. for (var k = 0; k < d.length; k++) {
  6710. //点赞
  6711. if (d[k].workId == b[j].id) {
  6712. likesCount++;
  6713. if (d[k].likesId == this.userid) {
  6714. isLikes = true;
  6715. }
  6716. }
  6717. }
  6718. for (var l = 0; l < e.length; l++) {
  6719. //评论
  6720. if (e[l].workId == b[j].id) {
  6721. if (e[l].comment != "") {
  6722. commentCount++;
  6723. commentJson.push({
  6724. commentText: e[l].comment,
  6725. commentTime: e[l].commentTime,
  6726. commentPeople: e[l].commentPeople,
  6727. userid: e[l].userid,
  6728. wid: e[l].id,
  6729. });
  6730. }
  6731. }
  6732. }
  6733. if (
  6734. (b[j].type == 1 ||
  6735. b[j].type == 4 ||
  6736. b[j].type == 5 ||
  6737. b[j].type == 6 ||
  6738. b[j].type == 12 ||
  6739. b[j].type == 7) &&
  6740. a[i].tool[0] != 15 &&
  6741. a[i].tool[0] != 4 &&
  6742. a[i].tool[0] != 45 &&
  6743. a[i].tool[0] != 50 &&
  6744. a[i].tool[0] != 32 &&
  6745. a[i].tool[0] != 57 &&
  6746. a[i].tool[0] != 52
  6747. ) {
  6748. if (
  6749. c.indexOf(
  6750. b[j].content
  6751. .split(".")
  6752. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6753. ) != -1 &&
  6754. a[i].tool[0] == 16 &&
  6755. b[j].atool != 50
  6756. ) {
  6757. let _works = {
  6758. userid: b[j].userid,
  6759. ateacher: b[j].ateacher,
  6760. wid: b[j].id,
  6761. works: b[j].content,
  6762. sName: b[j].name,
  6763. type: 1,
  6764. time: b[j].time,
  6765. score: b[j].score,
  6766. img: b[j].img,
  6767. likesCount: likesCount,
  6768. commentCount: commentCount,
  6769. isLikes: isLikes,
  6770. commentJson: commentJson,
  6771. }
  6772. if (this.isGroup) {
  6773. let isGw = 1
  6774. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  6775. let gid = this.courseGroup.group[groupI].id
  6776. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  6777. isGw = 2
  6778. this.courseGroup.group[groupI].works[i].push(_works)
  6779. break;
  6780. }
  6781. }
  6782. if (isGw == 1) {
  6783. this.worksStudent[i].push(_works);
  6784. }
  6785. } else {
  6786. this.worksStudent[i].push(_works);
  6787. }
  6788. } else if (
  6789. y.indexOf(
  6790. b[j].content
  6791. .split(".")
  6792. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6793. ) != -1 &&
  6794. a[i].tool[0] == 16 &&
  6795. b[j].atool != 50
  6796. ) {
  6797. let _works = {
  6798. userid: b[j].userid,
  6799. ateacher: b[j].ateacher,
  6800. wid: b[j].id,
  6801. works: b[j].content,
  6802. sName: b[j].name,
  6803. type: 3,
  6804. time: b[j].time,
  6805. score: b[j].score,
  6806. img: b[j].img,
  6807. likesCount: likesCount,
  6808. commentCount: commentCount,
  6809. isLikes: isLikes,
  6810. commentJson: commentJson,
  6811. }
  6812. if (this.isGroup) {
  6813. let isGw = 1
  6814. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  6815. let gid = this.courseGroup.group[groupI].id
  6816. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  6817. isGw = 2
  6818. this.courseGroup.group[groupI].works[i].push(_works)
  6819. break;
  6820. }
  6821. }
  6822. if (isGw == 1) {
  6823. this.worksStudent[i].push(_works);
  6824. }
  6825. } else {
  6826. this.worksStudent[i].push(_works);
  6827. }
  6828. } else if (b[j].type == 6 && b[j].atool != 50) {
  6829. this.worksStudent[i].push({
  6830. userid: b[j].userid,
  6831. ateacher: b[j].ateacher,
  6832. wid: b[j].id,
  6833. works: b[j].content,
  6834. sName: b[j].name,
  6835. type: 4,
  6836. time: b[j].time,
  6837. score: b[j].score,
  6838. img: b[j].img,
  6839. likesCount: likesCount,
  6840. commentCount: commentCount,
  6841. isLikes: isLikes,
  6842. commentJson: commentJson,
  6843. });
  6844. } else if (b[j].type == 7 && b[j].atool != 50) {
  6845. this.worksStudent[i].push({
  6846. userid: b[j].userid,
  6847. ateacher: b[j].ateacher,
  6848. wid: b[j].id,
  6849. works: b[j].content,
  6850. sName: b[j].name,
  6851. type: 5,
  6852. time: b[j].time,
  6853. score: b[j].score,
  6854. img: b[j].img,
  6855. likesCount: likesCount,
  6856. commentCount: commentCount,
  6857. isLikes: isLikes,
  6858. commentJson: commentJson,
  6859. });
  6860. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  6861. let _works = {
  6862. userid: b[j].userid,
  6863. ateacher: b[j].ateacher,
  6864. wid: b[j].id,
  6865. works: b[j].content,
  6866. sName: b[j].name,
  6867. type: 12,
  6868. time: b[j].time,
  6869. score: b[j].score,
  6870. img: b[j].img,
  6871. likesCount: likesCount,
  6872. commentCount: commentCount,
  6873. isLikes: isLikes,
  6874. commentJson: commentJson,
  6875. }
  6876. if (this.isGroup) {
  6877. let isGw = 1
  6878. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  6879. let gid = this.courseGroup.group[groupI].id
  6880. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  6881. isGw = 2
  6882. this.courseGroup.group[groupI].works[i].push(_works)
  6883. break;
  6884. }
  6885. }
  6886. if (isGw == 1) {
  6887. this.worksStudent[i].push(_works);
  6888. }
  6889. } else {
  6890. this.worksStudent[i].push(_works);
  6891. }
  6892. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  6893. let _works = {
  6894. userid: b[j].userid,
  6895. ateacher: b[j].ateacher,
  6896. wid: b[j].id,
  6897. works: b[j].content,
  6898. sName: b[j].name,
  6899. type: 0,
  6900. time: b[j].time,
  6901. score: b[j].score,
  6902. img: b[j].img,
  6903. likesCount: likesCount,
  6904. commentCount: commentCount,
  6905. isLikes: isLikes,
  6906. commentJson: commentJson,
  6907. }
  6908. if (this.isGroup) {
  6909. let isGw = 1
  6910. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  6911. let gid = this.courseGroup.group[groupI].id
  6912. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  6913. isGw = 2
  6914. this.courseGroup.group[groupI].works[i].push(_works)
  6915. break;
  6916. }
  6917. }
  6918. if (isGw == 1) {
  6919. this.worksStudent[i].push(_works);
  6920. }
  6921. } else {
  6922. this.worksStudent[i].push(_works);
  6923. }
  6924. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  6925. let _works = {
  6926. userid: b[j].userid,
  6927. ateacher: b[j].ateacher,
  6928. wid: b[j].id,
  6929. works: b[j].content,
  6930. sName: b[j].name,
  6931. type: 0,
  6932. time: b[j].time,
  6933. score: b[j].score,
  6934. img: b[j].img,
  6935. likesCount: likesCount,
  6936. commentCount: commentCount,
  6937. isLikes: isLikes,
  6938. commentJson: commentJson,
  6939. }
  6940. if (this.isGroup) {
  6941. let isGw = 1
  6942. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  6943. let gid = this.courseGroup.group[groupI].id
  6944. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  6945. isGw = 2
  6946. this.courseGroup.group[groupI].works[i].push(_works)
  6947. break;
  6948. }
  6949. }
  6950. if (isGw == 1) {
  6951. this.worksStudent[i].push(_works);
  6952. }
  6953. } else {
  6954. this.worksStudent[i].push(_works);
  6955. }
  6956. }
  6957. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  6958. let _works = {
  6959. userid: b[j].userid,
  6960. ateacher: b[j].ateacher,
  6961. wid: b[j].id,
  6962. works: b[j].content,
  6963. sName: b[j].name,
  6964. type: 2,
  6965. time: b[j].time,
  6966. score: b[j].score,
  6967. img: b[j].img,
  6968. likesCount: likesCount,
  6969. commentCount: commentCount,
  6970. isLikes: isLikes,
  6971. commentJson: commentJson,
  6972. }
  6973. if (this.isGroup) {
  6974. let isGw = 1
  6975. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  6976. let gid = this.courseGroup.group[groupI].id
  6977. if (this.courseGroupStudentUid[gid].indexOf(b[j].userid) != -1) {
  6978. isGw = 2
  6979. this.courseGroup.group[groupI].works[i].push(_works)
  6980. break;
  6981. }
  6982. }
  6983. if (isGw == 1) {
  6984. this.worksStudent[i].push(_works);
  6985. }
  6986. } else {
  6987. this.worksStudent[i].push(_works);
  6988. }
  6989. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  6990. //问卷
  6991. this.worksStudent[i].push({
  6992. userid: b[j].userid,
  6993. ateacher: b[j].ateacher,
  6994. wid: b[j].id,
  6995. works: b[j].content,
  6996. sName: b[j].name,
  6997. type: 2,
  6998. time: b[j].time,
  6999. score: b[j].score,
  7000. img: b[j].img,
  7001. likesCount: likesCount,
  7002. commentCount: commentCount,
  7003. isLikes: isLikes,
  7004. commentJson: commentJson,
  7005. });
  7006. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  7007. //选择题
  7008. this.worksStudent[i].push({
  7009. userid: b[j].userid,
  7010. ateacher: b[j].ateacher,
  7011. wid: b[j].id,
  7012. works: b[j].content,
  7013. sName: b[j].name,
  7014. type: 8,
  7015. time: b[j].time,
  7016. score: b[j].score,
  7017. img: b[j].img,
  7018. likesCount: likesCount,
  7019. commentCount: commentCount,
  7020. isLikes: isLikes,
  7021. commentJson: commentJson,
  7022. });
  7023. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  7024. //选择题
  7025. this.worksStudent[i].push({
  7026. userid: b[j].userid,
  7027. ateacher: b[j].ateacher,
  7028. wid: b[j].id,
  7029. works: b[j].content,
  7030. sName: b[j].name,
  7031. type: 9,
  7032. time: b[j].time,
  7033. score: b[j].score,
  7034. img: b[j].img,
  7035. likesCount: likesCount,
  7036. commentCount: commentCount,
  7037. isLikes: isLikes,
  7038. commentJson: commentJson,
  7039. });
  7040. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  7041. //选择题
  7042. this.worksStudent[i].push({
  7043. userid: b[j].userid,
  7044. ateacher: b[j].ateacher,
  7045. wid: b[j].id,
  7046. works: b[j].content,
  7047. sName: b[j].name,
  7048. type: 10,
  7049. time: b[j].time,
  7050. score: b[j].score,
  7051. img: b[j].img,
  7052. likesCount: likesCount,
  7053. commentCount: commentCount,
  7054. isLikes: isLikes,
  7055. commentJson: commentJson,
  7056. });
  7057. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  7058. //选择题
  7059. this.worksStudent[i].push({
  7060. userid: b[j].userid,
  7061. ateacher: b[j].ateacher,
  7062. wid: b[j].id,
  7063. works: b[j].content,
  7064. sName: b[j].name,
  7065. type: 13,
  7066. time: b[j].time,
  7067. score: b[j].score,
  7068. img: b[j].img,
  7069. likesCount: likesCount,
  7070. commentCount: commentCount,
  7071. isLikes: isLikes,
  7072. commentJson: commentJson,
  7073. });
  7074. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  7075. let _gindex = JSON.parse(b[j].content);
  7076. if (
  7077. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  7078. b[j].userid
  7079. ) != -1
  7080. ) {
  7081. this.worksStudent[i][_gindex.groupIndex].push({
  7082. userid: b[j].userid,
  7083. ateacher: b[j].ateacher,
  7084. wid: b[j].id,
  7085. works: _gindex.url,
  7086. sName: b[j].name,
  7087. type: _gindex.type,
  7088. time: b[j].time,
  7089. score: b[j].score,
  7090. img: b[j].img,
  7091. likesCount: likesCount,
  7092. commentCount: commentCount,
  7093. isLikes: isLikes,
  7094. commentJson: commentJson,
  7095. });
  7096. }
  7097. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  7098. this.worksStudent[i].push({
  7099. userid: b[j].userid,
  7100. ateacher: b[j].ateacher,
  7101. wid: b[j].id,
  7102. works: b[j].content,
  7103. sName: b[j].name ? b[j].name : b[j].userid,
  7104. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  7105. time: b[j].time,
  7106. score: b[j].score,
  7107. img: b[j].img,
  7108. likesCount: likesCount,
  7109. commentCount: commentCount,
  7110. isLikes: isLikes,
  7111. commentJson: commentJson,
  7112. });
  7113. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  7114. this.worksStudent[i].push({
  7115. userid: b[j].userid,
  7116. ateacher: b[j].ateacher,
  7117. wid: b[j].id,
  7118. works: b[j].content,
  7119. sName: b[j].name ? b[j].name : b[j].userid,
  7120. type: 12,
  7121. time: b[j].time,
  7122. score: b[j].score,
  7123. img: b[j].img,
  7124. likesCount: likesCount,
  7125. commentCount: commentCount,
  7126. isLikes: isLikes,
  7127. commentJson: commentJson,
  7128. });
  7129. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  7130. this.worksStudent[i].push({
  7131. userid: b[j].userid,
  7132. ateacher: b[j].ateacher,
  7133. wid: b[j].id,
  7134. works: b[j].content,
  7135. sName: b[j].name ? b[j].name : b[j].userid,
  7136. type: 12,
  7137. time: b[j].time,
  7138. score: b[j].score,
  7139. img: b[j].img,
  7140. likesCount: likesCount,
  7141. commentCount: commentCount,
  7142. isLikes: isLikes,
  7143. commentJson: commentJson,
  7144. });
  7145. }
  7146. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7147. }
  7148. }
  7149. if (this.worksStudent[i] && this.worksStudent[i].length) {
  7150. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  7151. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7152. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7153. var scoreA = parseFloat(jscoreA);
  7154. var scoreB = parseFloat(jscoreB);
  7155. if (scoreA == scoreB) {
  7156. return b.likesCount - a.likesCount;
  7157. }
  7158. return scoreB - scoreA;
  7159. });
  7160. if (this.isGroup) {
  7161. for (var groupI = 0; groupI < this.courseGroup.group.length; groupI++) {
  7162. this.courseGroup.group[groupI].works[i] = this.courseGroup.group[groupI].works[i].sort(function (a, b) {
  7163. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7164. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7165. var scoreA = parseFloat(jscoreA);
  7166. var scoreB = parseFloat(jscoreB);
  7167. if (scoreA == scoreB) {
  7168. return b.likesCount - a.likesCount;
  7169. }
  7170. return scoreB - scoreA;
  7171. });
  7172. }
  7173. }
  7174. }
  7175. }
  7176. for (var i = 0; i < a.length; i++) {
  7177. for (var j = 0; j < b.length; j++) {
  7178. var data = b[j];
  7179. if (i == b[j].tool) {
  7180. if (data.type == 2 || data.type == 8) {
  7181. for (var z = 0; z < this.checkJson[i].length; z++) {
  7182. this.checkJson[i][z].checkPerent = [];
  7183. this.checkJson[i][z].right = Math.round(
  7184. (this.checkJson[i][z].rightPerson.length /
  7185. parseInt(this.worksStudent[i].length)) *
  7186. 100
  7187. );
  7188. let aaaa = this.checkJson[i][z];
  7189. console.log(aaaa);
  7190. for (
  7191. var k = 0;
  7192. k < this.checkJson[i][z].checkCount.length;
  7193. k++
  7194. ) {
  7195. this.checkJson[i][z].checkPerent.push(
  7196. Math.round(
  7197. (this.checkJson[i][z].checkCount[k] /
  7198. parseInt(this.worksStudent[i].length)) *
  7199. 100
  7200. )
  7201. );
  7202. }
  7203. }
  7204. } else if (data.type == 9) {
  7205. for (var z = 0; z < this.checkJson[i].length; z++) {
  7206. this.checkJson[i][z].checkPerent = [];
  7207. this.checkJson[i][z].right = Math.round(
  7208. (this.checkJson[i][z].rightPerson.length /
  7209. this.checkJson[i][z].checkPerson.length) *
  7210. 100
  7211. );
  7212. }
  7213. }
  7214. }
  7215. }
  7216. }
  7217. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  7218. this.joinGroup(gindex);
  7219. }
  7220. this.selectWorksStudent();
  7221. })
  7222. .catch((err) => {
  7223. console.error(err);
  7224. });
  7225. },
  7226. pngToWhiteBg(file) {
  7227. const _file = file;
  7228. let read = new FileReader();
  7229. read.readAsDataURL(file); // 文件转base64
  7230. return new Promise((resolve, reject) => {
  7231. read.onload = (e) => {
  7232. let img = new Image();
  7233. img.src = e.target.result;
  7234. img.onload = async () => {
  7235. // 生成canvas
  7236. let canvas = document.createElement("canvas");
  7237. let context = canvas.getContext("2d");
  7238. // 绘制图片到canvas上
  7239. canvas.width = img.width;
  7240. canvas.height = img.height;
  7241. // 在canvas绘制前填充白色背景
  7242. context.fillStyle = "#fff";
  7243. context.fillRect(0, 0, canvas.width, canvas.height);
  7244. context.drawImage(img, 0, 0);
  7245. let base64 = canvas.toDataURL(file["type"], 1);
  7246. let newFile = this.dataUrlToFile(base64, _file);
  7247. resolve(newFile);
  7248. };
  7249. };
  7250. });
  7251. },
  7252. dataUrlToFile(dataurl, file) {
  7253. let arr = dataurl.split(","),
  7254. mime = arr[0].match(/:(.*?);/)[1],
  7255. bstr = atob(arr[1]),
  7256. n = bstr.length,
  7257. u8arr = new Uint8Array(n);
  7258. while (n--) {
  7259. u8arr[n] = bstr.charCodeAt(n);
  7260. }
  7261. // return new Blob([u8arr], { type: mime });
  7262. return new File([new Blob([u8arr], { type: mime })], file.name, {
  7263. type: mime,
  7264. });
  7265. },
  7266. async beforeUpload1(event, type, i) {
  7267. // this.$message.success('进入上传')
  7268. var file = "";
  7269. if (type == 5) {
  7270. file = event;
  7271. } else {
  7272. file = event.target.files[0];
  7273. }
  7274. var credentials = {
  7275. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7276. secretAccessKey: "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",
  7277. }; //秘钥形式的登录上传
  7278. window.AWS.config.update(credentials);
  7279. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7280. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7281. var _this = this;
  7282. _this.progress = 0;
  7283. _this.proVisible = true;
  7284. _this.isFinishSize = 0;
  7285. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7286. var b = [
  7287. "DOC",
  7288. "DOCX",
  7289. "DOCM",
  7290. "DOTM",
  7291. "DOTX",
  7292. "PPTX",
  7293. "PPSX",
  7294. "PPT",
  7295. "PPS",
  7296. "PPTM",
  7297. "POTM",
  7298. "PPAM",
  7299. "POTX",
  7300. "PPSM",
  7301. ];
  7302. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7303. var photoA = [
  7304. "BMP",
  7305. "GIF",
  7306. "PNG",
  7307. "JPGE",
  7308. "JPG",
  7309. "TIF",
  7310. "PCX",
  7311. "TGA",
  7312. "EXIF",
  7313. "FPX",
  7314. "SVG",
  7315. "APNG",
  7316. ];
  7317. // if (
  7318. // b.indexOf(
  7319. // file.name
  7320. // .split(".")
  7321. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7322. // ) != -1
  7323. // ) {
  7324. // if (file.size / 1024 / 1024 > 10) {
  7325. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  7326. // return;
  7327. // }
  7328. // } else if (
  7329. // excelA.indexOf(
  7330. // file.name
  7331. // .split(".")
  7332. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7333. // ) != "-1"
  7334. // ) {
  7335. // if (file.size / 1024 / 1024 > 5) {
  7336. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  7337. // return;
  7338. // }
  7339. // }
  7340. if (
  7341. photoA.indexOf(
  7342. file.name
  7343. .split(".")
  7344. [file.name.split(".").length - 1].toLocaleUpperCase()
  7345. ) != -1 &&
  7346. type != 4
  7347. ) {
  7348. // const blob = await imageConversion.compress(file, 0.8)
  7349. file = await this.pngToWhiteBg(file);
  7350. const blob = await imageConversion.compressAccurately(file, 256);
  7351. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7352. file = new File([blob], file.name, { type: file.type });
  7353. }
  7354. if (file) {
  7355. var params = {
  7356. Key:
  7357. file.name.split(".")[0] +
  7358. new Date().getTime() +
  7359. "." +
  7360. file.name.split(".")[file.name.split(".").length - 1],
  7361. ContentType: file.type,
  7362. Body: file,
  7363. "Access-Control-Allow-Credentials": "*",
  7364. ACL: "public-read",
  7365. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7366. var options = {
  7367. // partSize: 2048 * 1024 * 1024,
  7368. partSize: 1024 * 1024 * 1024,
  7369. queueSize: 2,
  7370. leavePartsOnError: true,
  7371. };
  7372. bucket
  7373. .upload(params, options)
  7374. .on("httpUploadProgress", function (evt) {
  7375. //这里可以写进度条
  7376. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7377. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  7378. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7379. })
  7380. .send(function (err, data) {
  7381. _this.progress = 100;
  7382. _this.isFinishSize = _this.isAllSize;
  7383. setTimeout(() => {
  7384. _this.proVisible = false;
  7385. }, 1000);
  7386. if (err) {
  7387. var a = _this.$refs.upload1.uploadFiles;
  7388. a.splice(a.length - 1, a.length);
  7389. _this.$message.error("上传失败");
  7390. } else {
  7391. // _this.$message.success('上传成功')
  7392. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7393. var c = [
  7394. "AVI",
  7395. "NAVI",
  7396. "MPEG",
  7397. "ASF",
  7398. "MOV",
  7399. "WMV",
  7400. "3GP",
  7401. "RM",
  7402. "RMVB",
  7403. "FLV",
  7404. "F4V",
  7405. "H.264",
  7406. "H.265",
  7407. "REAL VIDEO",
  7408. "MKV",
  7409. "WebM",
  7410. "HDDVD",
  7411. "MP4",
  7412. "MPG",
  7413. "M4V",
  7414. "MGV",
  7415. "OGV",
  7416. "QTM",
  7417. "STR",
  7418. "AMC",
  7419. "DVX",
  7420. "EVO",
  7421. "DAT",
  7422. "OGG",
  7423. "OGM",
  7424. ];
  7425. if (type == 1) {
  7426. _this.studyJuri[0].cover.push({
  7427. name: file.name,
  7428. url: data.Location,
  7429. uid: file.uid,
  7430. });
  7431. if (
  7432. c.indexOf(
  7433. _this.studyJuri[0].cover[0].url
  7434. .split(".")
  7435. [
  7436. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7437. ].toLocaleUpperCase()
  7438. ) != -1
  7439. ) {
  7440. _this.fileType = 2;
  7441. } else if (
  7442. b.indexOf(
  7443. _this.studyJuri[0].cover[0].url
  7444. .split(".")
  7445. [
  7446. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7447. ].toLocaleUpperCase()
  7448. ) != -1
  7449. ) {
  7450. _this.fileType = 1;
  7451. } else if (photoA.indexOf(
  7452. _this.studyJuri[0].cover[0].url
  7453. .split(".")
  7454. [
  7455. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7456. ].toLocaleUpperCase()
  7457. ) != -1) {
  7458. _this.fileType = 0;
  7459. } else {
  7460. _this.fileType = 3;
  7461. }
  7462. _this.imgChange(null, null, type);
  7463. } else if (type == 2) {
  7464. _this.upToolImg = data.Location;
  7465. _this.imgChange(null, null, type);
  7466. _this.addCourseWorks(i);
  7467. } else if (type == 4) {
  7468. _this.addPz("3", data.Location);
  7469. } else if (type == 5) {
  7470. _this.addImgDrawImG(data.Location);
  7471. } else if (type == 6) {
  7472. var _ftype = 1;
  7473. if (
  7474. c.indexOf(
  7475. data.Location.split(".")[
  7476. data.Location.split(".").length - 1
  7477. ].toLocaleUpperCase()
  7478. ) != -1
  7479. ) {
  7480. _ftype = 5;
  7481. } else if (
  7482. b.indexOf(
  7483. data.Location.split(".")[
  7484. data.Location.split(".").length - 1
  7485. ].toLocaleUpperCase()
  7486. ) != -1
  7487. ) {
  7488. _ftype = 4;
  7489. } else {
  7490. _ftype = 1;
  7491. }
  7492. _this.plworkFile.push({
  7493. name: file.name,
  7494. url: data.Location,
  7495. uid: file.uid,
  7496. fileType: _ftype,
  7497. username:
  7498. _this.plworkFile.length + 1 > 10
  7499. ? _this.plworkFile.length + 1
  7500. : "0" + (_this.plworkFile.length + 1),
  7501. });
  7502. } else if (type == 7) {
  7503. _this.addCourseWorksGong(i, data.Location, 32);
  7504. } else if (type == 8) {
  7505. _this.addCourseWorksGong(i, data.Location, 57);
  7506. }
  7507. _this.imgChange(null, null, type);
  7508. console.log(data.Location);
  7509. // _this.$message.success('上传成功'+data.Location)
  7510. }
  7511. });
  7512. }
  7513. },
  7514. async beforeUpload3(event, type, i) {
  7515. // this.$message.success('进入上传')
  7516. let file = "";
  7517. let cfindex2 = 0;
  7518. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  7519. file = event.target.files[cfindex];
  7520. var credentials = {
  7521. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7522. secretAccessKey: "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",
  7523. }; //秘钥形式的登录上传
  7524. window.AWS.config.update(credentials);
  7525. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7526. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7527. var _this = this;
  7528. // _this.progress = 0;
  7529. _this.proVisible2 = true;
  7530. var b = [
  7531. "DOC",
  7532. "DOCX",
  7533. "DOCM",
  7534. "DOTM",
  7535. "DOTX",
  7536. "PPTX",
  7537. "PPSX",
  7538. "PPT",
  7539. "PPS",
  7540. "PPTM",
  7541. "POTM",
  7542. "PPAM",
  7543. "POTX",
  7544. "PPSM",
  7545. ];
  7546. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7547. var photoA = [
  7548. "BMP",
  7549. "GIF",
  7550. "PNG",
  7551. "JPGE",
  7552. "JPG",
  7553. "TIF",
  7554. "PCX",
  7555. "TGA",
  7556. "EXIF",
  7557. "FPX",
  7558. "SVG",
  7559. "APNG",
  7560. ];
  7561. if (
  7562. photoA.indexOf(
  7563. file.name
  7564. .split(".")
  7565. [file.name.split(".").length - 1].toLocaleUpperCase()
  7566. ) != -1 &&
  7567. type != 4
  7568. ) {
  7569. // const blob = await imageConversion.compress(file, 0.8)
  7570. file = await this.pngToWhiteBg(file);
  7571. const blob = await imageConversion.compressAccurately(file, 256);
  7572. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7573. file = new File([blob], file.name, { type: file.type });
  7574. }
  7575. if (file) {
  7576. var params = {
  7577. Key:
  7578. file.name.split(".")[0] +
  7579. new Date().getTime() +
  7580. "." +
  7581. file.name.split(".")[file.name.split(".").length - 1],
  7582. ContentType: file.type,
  7583. Body: file,
  7584. "Access-Control-Allow-Credentials": "*",
  7585. ACL: "public-read",
  7586. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7587. var options = {
  7588. // partSize: 2048 * 1024 * 1024,
  7589. partSize: 1024 * 1024 * 1024,
  7590. queueSize: 2,
  7591. leavePartsOnError: true,
  7592. };
  7593. bucket
  7594. .upload(params, options)
  7595. .on("httpUploadProgress", function (evt) {
  7596. //这里可以写进度条
  7597. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7598. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7599. })
  7600. .send(function (err, data) {
  7601. // _this.progress = 100;
  7602. cfindex2++;
  7603. setTimeout(() => {
  7604. if (
  7605. cfindex2 == event.target.files.length - 1 ||
  7606. cfindex2 > event.target.files.length - 1
  7607. ) {
  7608. _this.proVisible2 = false;
  7609. }
  7610. }, 1000);
  7611. if (err) {
  7612. var a = _this.$refs.upload1.uploadFiles;
  7613. a.splice(a.length - 1, a.length);
  7614. _this.$message.error("上传失败");
  7615. } else {
  7616. // _this.$message.success('上传成功')
  7617. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7618. var c = [
  7619. "AVI",
  7620. "NAVI",
  7621. "MPEG",
  7622. "ASF",
  7623. "MOV",
  7624. "WMV",
  7625. "3GP",
  7626. "RM",
  7627. "RMVB",
  7628. "FLV",
  7629. "F4V",
  7630. "H.264",
  7631. "H.265",
  7632. "REAL VIDEO",
  7633. "MKV",
  7634. "WebM",
  7635. "HDDVD",
  7636. "MP4",
  7637. "MPG",
  7638. "M4V",
  7639. "MGV",
  7640. "OGV",
  7641. "QTM",
  7642. "STR",
  7643. "AMC",
  7644. "DVX",
  7645. "EVO",
  7646. "DAT",
  7647. "OGG",
  7648. "OGM",
  7649. ];
  7650. if (type == 1) {
  7651. _this.studyJuri[0].cover.push({
  7652. name: file.name,
  7653. url: data.Location,
  7654. uid: file.uid,
  7655. });
  7656. if (
  7657. c.indexOf(
  7658. _this.studyJuri[0].cover[0].url
  7659. .split(".")
  7660. [
  7661. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7662. ].toLocaleUpperCase()
  7663. ) != -1
  7664. ) {
  7665. _this.fileType = 2;
  7666. } else if (
  7667. b.indexOf(
  7668. _this.studyJuri[0].cover[0].url
  7669. .split(".")
  7670. [
  7671. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7672. ].toLocaleUpperCase()
  7673. ) != -1
  7674. ) {
  7675. _this.fileType = 1;
  7676. } else {
  7677. _this.fileType = 0;
  7678. }
  7679. _this.imgChange(null, null, type);
  7680. } else if (type == 2) {
  7681. _this.upToolImg = data.Location;
  7682. _this.imgChange(null, null, type);
  7683. _this.addCourseWorks(i);
  7684. } else if (type == 4) {
  7685. _this.addPz("3", data.Location);
  7686. } else if (type == 5) {
  7687. _this.addImgDrawImG(data.Location);
  7688. } else if (type == 6) {
  7689. var _ftype = 1;
  7690. if (
  7691. c.indexOf(
  7692. data.Location.split(".")[
  7693. data.Location.split(".").length - 1
  7694. ].toLocaleUpperCase()
  7695. ) != -1
  7696. ) {
  7697. _ftype = 5;
  7698. } else if (
  7699. b.indexOf(
  7700. data.Location.split(".")[
  7701. data.Location.split(".").length - 1
  7702. ].toLocaleUpperCase()
  7703. ) != -1
  7704. ) {
  7705. _ftype = 4;
  7706. } else {
  7707. _ftype = 1;
  7708. }
  7709. _this.plworkFile.push({
  7710. name: file.name,
  7711. url: data.Location,
  7712. uid: file.uid,
  7713. fileType: _ftype,
  7714. username:
  7715. _this.plworkFile.length + 1 > 10
  7716. ? _this.plworkFile.length + 1
  7717. : "0" + (_this.plworkFile.length + 1),
  7718. });
  7719. }
  7720. _this.imgChange(null, null, type);
  7721. console.log(data.Location);
  7722. // _this.$message.success('上传成功'+data.Location)
  7723. }
  7724. });
  7725. }
  7726. }
  7727. },
  7728. beforeUpload2(event, type) {
  7729. var file = event.target.files[0];
  7730. var credentials = {
  7731. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7732. secretAccessKey: "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",
  7733. }; //秘钥形式的登录上传
  7734. window.AWS.config.update(credentials);
  7735. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7736. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7737. var _this = this;
  7738. _this.progress = 0;
  7739. _this.proVisible = true;
  7740. if (file) {
  7741. var params = {
  7742. Key:
  7743. file.name.split(".")[0] +
  7744. new Date().getTime() +
  7745. "." +
  7746. file.name.split(".")[file.name.split(".").length - 1],
  7747. ContentType: file.type,
  7748. Body: file,
  7749. "Access-Control-Allow-Credentials": "*",
  7750. ACL: "public-read",
  7751. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7752. var options = {
  7753. partSize: 2048 * 1024 * 1024,
  7754. queueSize: 2,
  7755. leavePartsOnError: true,
  7756. };
  7757. bucket
  7758. .upload(params, options)
  7759. .on("httpUploadProgress", function (evt) {
  7760. //这里可以写进度条
  7761. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7762. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7763. })
  7764. .send(function (err, data) {
  7765. _this.progress = 100;
  7766. setTimeout(() => {
  7767. _this.proVisible = false;
  7768. }, 1000);
  7769. if (err) {
  7770. var a = _this.$refs.upload1.uploadFiles;
  7771. a.splice(a.length - 1, a.length);
  7772. _this.$message.error("上传失败");
  7773. } else {
  7774. if (type == 2) {
  7775. _this.studyJuri[0].upVedio.push({
  7776. name: file.name,
  7777. url: data.Location,
  7778. uid: file.uid,
  7779. });
  7780. _this.imgChange(null, null, type);
  7781. } else if (type == 3) {
  7782. _this.studyJuri[0].upFile.push({
  7783. name: file.name,
  7784. url: data.Location,
  7785. uid: file.uid,
  7786. });
  7787. _this.imgChange(null, null, type);
  7788. }
  7789. console.log(data.Location);
  7790. }
  7791. });
  7792. }
  7793. },
  7794. allScrell() {
  7795. window.parent.postMessage({ allScreen: this.screenType }, "*");
  7796. },
  7797. nextOrpreSteps(t) {
  7798. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  7799. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  7800. return;
  7801. }
  7802. var b = this.chapInfoList.length - 1;
  7803. if (t == 0) {
  7804. if (this.courseType == 0) {
  7805. if (this.taskCount == 0) {
  7806. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  7807. if (this.IsLookOpen) {
  7808. if (
  7809. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  7810. ) {
  7811. if (
  7812. this.courseDetail.userid != this.userid &&
  7813. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  7814. ) {
  7815. this.$message.error("任务未解锁");
  7816. } else {
  7817. this.$message.error("上一任务未解锁");
  7818. }
  7819. return;
  7820. }
  7821. }
  7822. this.navList[this.courseType].isOpen = false;
  7823. this.courseType = b;
  7824. this.taskCount =
  7825. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7826. .length - 1;
  7827. this.navList[this.courseType].isOpen = true;
  7828. } else {
  7829. this.taskCount--;
  7830. }
  7831. } else {
  7832. if (this.taskCount == 0) {
  7833. this.navList[this.courseType].isOpen = false;
  7834. this.courseType--;
  7835. this.taskCount =
  7836. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7837. .length - 1;
  7838. this.navList[this.courseType].isOpen = true;
  7839. } else {
  7840. this.taskCount--;
  7841. }
  7842. }
  7843. } else {
  7844. if (this.courseType == b) {
  7845. if (
  7846. this.taskCount ==
  7847. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  7848. 1
  7849. ) {
  7850. this.navList[this.courseType].isOpen = false;
  7851. this.courseType = 0;
  7852. this.taskCount = 0;
  7853. this.navList[this.courseType].isOpen = true;
  7854. } else {
  7855. var bbb = parseInt(this.taskCount) + 1;
  7856. if (
  7857. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  7858. .isLook &&
  7859. this.courseDetail.userid != this.userid &&
  7860. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7861. this.IsLookOpen
  7862. ) {
  7863. this.$message.error("任务未解锁");
  7864. return;
  7865. }
  7866. this.taskCount++;
  7867. if (this.IsLookOpen) {
  7868. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7869. this.taskCount
  7870. ].isLook = true;
  7871. this.addCourseState(3);
  7872. }
  7873. }
  7874. } else {
  7875. if (
  7876. this.taskCount ==
  7877. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  7878. 1
  7879. ) {
  7880. var bbb = parseInt(this.courseType) + 1;
  7881. if (
  7882. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  7883. this.courseDetail.userid != this.userid &&
  7884. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7885. this.IsLookOpen
  7886. ) {
  7887. this.$message.error("任务未解锁");
  7888. return;
  7889. }
  7890. this.navList[this.courseType].isOpen = false;
  7891. this.courseType++;
  7892. this.taskCount = 0;
  7893. this.navList[this.courseType].isOpen = true;
  7894. } else {
  7895. var bbb = parseInt(this.taskCount) + 1;
  7896. if (
  7897. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  7898. .isLook &&
  7899. this.courseDetail.userid != this.userid &&
  7900. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7901. this.IsLookOpen
  7902. ) {
  7903. this.$message.error("任务未解锁");
  7904. return;
  7905. }
  7906. this.taskCount++;
  7907. }
  7908. if (this.IsLookOpen) {
  7909. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7910. this.taskCount
  7911. ].isLook = true;
  7912. this.addCourseState(3);
  7913. }
  7914. }
  7915. // if (
  7916. // this.taskCount ==
  7917. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  7918. // ) {
  7919. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  7920. // } else {
  7921. // this.taskCount++;
  7922. // }
  7923. }
  7924. document.scrollingElement.scrollTop = 0;
  7925. this.showType = 0;
  7926. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  7927. // if (this.vedio[this.taskCount].length > 0) {
  7928. // var a =
  7929. // document.getElementsByClassName("box_course")[this.taskCount]
  7930. // .offsetHeight;
  7931. // document.getElementsByClassName("vedioList")[
  7932. // this.taskCount
  7933. // ].style.height = a + "px";
  7934. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  7935. // a - 40 + "px";
  7936. // }
  7937. this.isNoHomeWork = false;
  7938. (this.studyJuri = [
  7939. {
  7940. content: "",
  7941. cover: [],
  7942. upVedio: [],
  7943. upFile: [],
  7944. },
  7945. ]),
  7946. (this.radio = []);
  7947. this.isClickNav = "";
  7948. this.selectPz();
  7949. this.getHomeWork();
  7950. this.getCourseDetail(2);
  7951. this.$forceUpdate();
  7952. },
  7953. openTask(s, n, i) {
  7954. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  7955. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  7956. return;
  7957. }
  7958. if (this.IsLookOpen) {
  7959. if (
  7960. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  7961. this.courseDetail.userid != this.userid &&
  7962. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  7963. ) {
  7964. this.$message.error("任务未解锁");
  7965. return;
  7966. }
  7967. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  7968. if (
  7969. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  7970. .isLook
  7971. ) {
  7972. this.$message.error("上一任务未解锁");
  7973. return;
  7974. }
  7975. } else if (s > this.courseType) {
  7976. if (n > 0) {
  7977. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  7978. this.$message.error("上一任务未解锁");
  7979. return;
  7980. }
  7981. } else {
  7982. if (
  7983. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  7984. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  7985. ].isLook
  7986. ) {
  7987. this.$message.error("上一任务未解锁");
  7988. return;
  7989. }
  7990. }
  7991. }
  7992. }
  7993. this.courseType = s;
  7994. this.navId = i;
  7995. this.taskCount = n;
  7996. if (this.IsLookOpen) {
  7997. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7998. this.taskCount
  7999. ].isLook = true;
  8000. this.addCourseState(3);
  8001. }
  8002. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  8003. this.isCloseList[ci].isClose = 0;
  8004. }
  8005. this.showType = 0;
  8006. this.isNoHomeWork = false;
  8007. (this.studyJuri = [
  8008. {
  8009. content: "",
  8010. cover: [],
  8011. upVedio: [],
  8012. upFile: [],
  8013. },
  8014. ]),
  8015. (this.radio = []);
  8016. document.scrollingElement.scrollTop = 0;
  8017. // setTimeout(() => {
  8018. // let a = document.getElementById(i);
  8019. // if (a.offsetTop - 110 == 0) {
  8020. // window.scrollTo(0, 0);
  8021. // } else {
  8022. // window.scrollTo(0, a.offsetTop);
  8023. // }
  8024. // }, 0);
  8025. this.selectPz();
  8026. this.getHomeWork();
  8027. this.getCourseDetail(2);
  8028. },
  8029. get(i) {
  8030. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8031. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8032. return;
  8033. }
  8034. this.navList[i].isOpen = !this.navList[i].isOpen;
  8035. },
  8036. addQuestion() {
  8037. this.answerList.push({
  8038. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8039. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8040. });
  8041. let params = [
  8042. {
  8043. uid: this.userid,
  8044. cid: this.id,
  8045. stage: this.courseType,
  8046. task: this.taskCount,
  8047. tool: this.toolindex,
  8048. content: JSON.stringify(this.answerList),
  8049. type: 3,
  8050. },
  8051. ];
  8052. this.ajax
  8053. .post(this.$store.state.api + "addCourseWorks", params)
  8054. .then((res) => {
  8055. this.$message({
  8056. message: "提交成功",
  8057. type: "success",
  8058. });
  8059. this.answerList = [];
  8060. this.answerDialogVisible = false;
  8061. this.selectStudent();
  8062. this.selectSWorks();
  8063. this.selectSLook();
  8064. })
  8065. .catch((err) => {
  8066. this.$message.error("提交失败");
  8067. console.error(err);
  8068. });
  8069. },
  8070. getCourseDetail(type, gindex) {
  8071. let loading;
  8072. if (type != 2) {
  8073. loading = this.$loading.service({
  8074. background: "rgba(255, 255, 255, 0.7)",
  8075. target: document.querySelector(".student_table"),
  8076. });
  8077. }
  8078. // this.navList[0].isOpen = false;
  8079. // this.navList[this.courseType].isOpen = true;
  8080. // this.courseType = this.courseTypeLine;
  8081. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8082. let params = {
  8083. courseId: this.id,
  8084. };
  8085. this.ajax
  8086. .get(this.$store.state.api + "selectCourseDetail3", params)
  8087. .then((res) => {
  8088. if (type != 2) {
  8089. loading.close();
  8090. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  8091. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  8092. }
  8093. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8094. .chapterInfo[0].taskJson;
  8095. var b = [
  8096. "AVI",
  8097. "NAVI",
  8098. "MPEG",
  8099. "ASF",
  8100. "MOV",
  8101. "WMV",
  8102. "3GP",
  8103. "RM",
  8104. "RMVB",
  8105. "FLV",
  8106. "F4V",
  8107. "H.264",
  8108. "H.265",
  8109. "REAL VIDEO",
  8110. "MKV",
  8111. "WebM",
  8112. "HDDVD",
  8113. "MP4",
  8114. "MPG",
  8115. "M4V",
  8116. "MGV",
  8117. "OGV",
  8118. "QTM",
  8119. "STR",
  8120. "AMC",
  8121. "DVX",
  8122. "EVO",
  8123. "DAT",
  8124. "OGG",
  8125. "OGM",
  8126. "MP3",
  8127. ];
  8128. for (var i = 0; i < a.length; i++) {
  8129. var c = a[i].chapterData;
  8130. this.vedio[i] = [];
  8131. this.textList[i] = [];
  8132. this.lineList[i] = [];
  8133. this.chapToolList[i] = [];
  8134. this.file[i] = [];
  8135. this.fileC[i] = [];
  8136. for (var j = 0; j < c.length; j++) {
  8137. if (c[j].type == 7) {
  8138. this.chapToolList[i].push(c[j]);
  8139. } else if (c[j].type == 8) {
  8140. this.lineList[i].push(c[j]);
  8141. } else if (c[j].type == 6) {
  8142. this.textList[i].push(c[j]);
  8143. } else if (c[j].type == 12) {
  8144. this.fileC[i].push(c[j]);
  8145. } else {
  8146. if (
  8147. b.indexOf(
  8148. c[j].url
  8149. .split(".")
  8150. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8151. ) != -1
  8152. ) {
  8153. this.vedio[i].push(c[j]);
  8154. } else {
  8155. this.file[i].push(c[j]);
  8156. }
  8157. }
  8158. }
  8159. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8160. d.sources[0].src =
  8161. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8162. this.playerO[i] = d;
  8163. }
  8164. this.courseDetail = res.data[0][0];
  8165. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  8166. console.log(this.tcid);
  8167. this.evalua = res.data[0][0].evaId;
  8168. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  8169. this.courseType
  8170. ];
  8171. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  8172. if (this.tcid && res.data[1].length) {
  8173. let _inviteA = []
  8174. for (var ik = 0; ik < res.data[1].length; ik++) {
  8175. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  8176. }
  8177. for (var ik = 0; ik < _inviteA.length; ik++) {
  8178. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  8179. this.inviteCode = _inviteA[ik].ic
  8180. break;
  8181. }
  8182. }
  8183. }
  8184. for (var l = 0; l < this.chapInfoList.length; l++) {
  8185. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8186. for (var m = 0; m < w.length; m++) {
  8187. w[m].id = l + "-" + m;
  8188. }
  8189. }
  8190. if (
  8191. !this.vedio[this.taskCount][0] ||
  8192. this.vedio[this.taskCount][0].url == ""
  8193. ) {
  8194. if (
  8195. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8196. this.taskCount
  8197. ].chapterData.length > 0
  8198. ) {
  8199. // if (
  8200. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8201. // this.taskCount
  8202. // ].chapterData[0].type != 8
  8203. // ) {
  8204. let _url =
  8205. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8206. this.taskCount
  8207. ].chapterData[0].url;
  8208. if (
  8209. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8210. this.taskCount
  8211. ].chapterData[0].type == 8
  8212. ) {
  8213. this.showType = 2;
  8214. if (
  8215. _url.indexOf("https://") == -1 &&
  8216. _url.indexOf("http://") == -1
  8217. ) {
  8218. _url = "https://" + _url;
  8219. }
  8220. this.pptImgUrl1 = _url;
  8221. this.isClickNav = "line0";
  8222. } else if (
  8223. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8224. this.taskCount
  8225. ].chapterData[0].type == 3
  8226. ) {
  8227. if (
  8228. _url
  8229. .split(".")
  8230. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8231. ) {
  8232. this.showType = 3;
  8233. this.pptImgUrl1 = _url;
  8234. this.isClickNav = "word0";
  8235. } else if (
  8236. this.isAssetTypeAnImage(
  8237. _url
  8238. .split(".")
  8239. [_url.split(".").length - 1].toLocaleLowerCase()
  8240. )
  8241. ) {
  8242. this.showType = 4;
  8243. this.pptImgUrl1 = _url;
  8244. this.isClickNav = "word0";
  8245. } else {
  8246. this.showType = 2;
  8247. this.pptImgUrl1 =
  8248. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8249. _url;
  8250. this.isClickNav = "word0";
  8251. }
  8252. } else if (
  8253. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8254. this.taskCount
  8255. ].chapterData[0].type == 6
  8256. ) {
  8257. this.showType = 1;
  8258. this.text = this.textList[this.taskCount][0];
  8259. this.isClickNav = "text0";
  8260. }
  8261. }
  8262. } else {
  8263. this.isClickNav = "video0";
  8264. }
  8265. }
  8266. // else {
  8267. // this.courseDetail = res.data[0][0];
  8268. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  8269. // }
  8270. let _this = this;
  8271. if (_this.timer) {
  8272. clearInterval(_this.timer);
  8273. _this.timer = null;
  8274. }
  8275. if (_this.tcid) {
  8276. _this.getCourseGroup(gindex)
  8277. } else {
  8278. _this.selectSWorks(gindex);
  8279. }
  8280. _this.selectStudent();
  8281. _this.selectSLook();
  8282. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  8283. _this.setCTask();
  8284. }
  8285. if (_this.dialogVisibleGroup) {
  8286. _this.groupJson =
  8287. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  8288. _this.taskCount
  8289. ].toolChoose[_this.toolindex].groupJson;
  8290. }
  8291. _this.$nextTick(() => {
  8292. setTimeout(() => {
  8293. _this.checkEva();
  8294. }, 1000);
  8295. });
  8296. _this.timer = setInterval(function () {
  8297. // _this.getCourseDetail(2);
  8298. if (_this.tcid) {
  8299. _this.getCourseGroup(gindex)
  8300. } else {
  8301. _this.selectSWorks(gindex);
  8302. }
  8303. _this.selectStudent();
  8304. _this.selectSLook();
  8305. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  8306. _this.setCTask();
  8307. }
  8308. if (_this.dialogVisibleGroup) {
  8309. _this.groupJson =
  8310. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  8311. _this.taskCount
  8312. ].toolChoose[_this.toolindex].groupJson;
  8313. }
  8314. if (_this.tType == 4) {
  8315. _this.selectPz();
  8316. }
  8317. }, 5000);
  8318. _this.$nextTick(function () {
  8319. setTimeout(() => {
  8320. // var a =
  8321. // document.getElementsByClassName("box_course")[0].offsetHeight;
  8322. // document.getElementsByClassName("vedioList")[0].style.height =
  8323. // a + "px";
  8324. // document.getElementsByClassName("navBox")[0].style.height =
  8325. // a - 40 + "px";
  8326. // if (_this.vedio[_this.taskCount].length > 0) {
  8327. // _this.vedioTime = [];
  8328. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  8329. // _this.vedioTime[i] = document.getElementsByClassName(
  8330. // "vjs-duration-display"
  8331. // )[i].textContent;
  8332. // }
  8333. // }
  8334. }, 1000);
  8335. });
  8336. })
  8337. .catch((err) => {
  8338. loading.close();
  8339. console.error(err);
  8340. });
  8341. },
  8342. getCourseGroup(gindex) {
  8343. let params = {
  8344. cid: this.id,
  8345. classid: this.tcid ? this.tcid : '1',
  8346. };
  8347. this.ajax
  8348. .get(this.$store.state.api + "getCourseGroup", params)
  8349. .then((res) => {
  8350. if (res.data && res.data[0].length) {
  8351. if (!this.isGroup) {
  8352. let courseGroup = JSON.parse(res.data[0][0].group)
  8353. courseGroup.group = courseGroup.group.filter(el => {
  8354. el.works = []
  8355. return el
  8356. });
  8357. this.courseGroup = courseGroup
  8358. let groupPerson = res.data[1]
  8359. let group = JSON.parse(res.data[0][0].group).group
  8360. let courseGroupStudent = {}
  8361. let courseGroupStudentUid = {}
  8362. for (var i = 0; i < group.length; i++) {
  8363. courseGroupStudent[group[i].id] = []
  8364. courseGroupStudentUid[group[i].id] = []
  8365. for (var j = 0; j < groupPerson.length; j++) {
  8366. if (groupPerson[j].groupCid == group[i].id) {
  8367. courseGroupStudent[group[i].id].push(groupPerson[j])
  8368. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  8369. }
  8370. }
  8371. }
  8372. this.courseGroupStudent = courseGroupStudent
  8373. this.courseGroupStudentUid = courseGroupStudentUid
  8374. }
  8375. this.isGroup = true
  8376. this.selectSWorks(gindex);
  8377. } else {
  8378. this.selectSWorks(gindex);
  8379. this.isGroup = false
  8380. }
  8381. })
  8382. .catch((err) => {
  8383. // this.$message.error("网络不佳");
  8384. console.error(err);
  8385. });
  8386. },
  8387. setOperationTime() {
  8388. let _this = this
  8389. if (_this.opertimer) {
  8390. clearInterval(_this.opertimer);
  8391. _this.opertimer = null;
  8392. }
  8393. _this.opertimer = setInterval(() => {
  8394. _this.setoTime('600')
  8395. }, 600000);
  8396. },
  8397. setoTime(time) {
  8398. let params = [
  8399. {
  8400. uid: this.userid,
  8401. cid: this.id,
  8402. type: '2',
  8403. time: time,
  8404. },
  8405. ];
  8406. this.ajax
  8407. .post(this.$store.state.api + "addOperationTimeT2", params)
  8408. .then((res) => {
  8409. })
  8410. .catch((err) => {
  8411. console.error(err);
  8412. });
  8413. },
  8414. addPz(type, content) {
  8415. if (type == "1" && this.pzConText == "") {
  8416. this.$message.error("批注不能为空!");
  8417. return;
  8418. }
  8419. let params = [
  8420. {
  8421. cid: this.id,
  8422. uid: this.userid,
  8423. s: this.courseType,
  8424. t: this.taskCount,
  8425. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  8426. type: type,
  8427. },
  8428. ];
  8429. this.ajax
  8430. .post(this.$store.state.api + "addPz2", params)
  8431. .then((res) => {
  8432. this.$message({
  8433. message: "添加成功",
  8434. type: "success",
  8435. });
  8436. this.pzConText = "";
  8437. this.addPzDialog = false;
  8438. this.selectPz();
  8439. })
  8440. .catch((err) => {
  8441. this.$message.error("添加失败");
  8442. console.error(err);
  8443. });
  8444. },
  8445. deletePz(id) {
  8446. this.$confirm("确定删除此批注吗?", "提示", {
  8447. confirmButtonText: "确定",
  8448. cancelButtonText: "取消",
  8449. type: "warning",
  8450. })
  8451. .then(() => {
  8452. let params = [
  8453. {
  8454. id: id,
  8455. },
  8456. ];
  8457. this.ajax
  8458. .post(this.$store.state.api + "deletePz", params)
  8459. .then((res) => {
  8460. this.$message({
  8461. message: "删除成功",
  8462. type: "success",
  8463. });
  8464. this.selectPz();
  8465. })
  8466. .catch((err) => {
  8467. this.$message.error("网络异常");
  8468. console.error(err);
  8469. });
  8470. })
  8471. .catch(() => { });
  8472. },
  8473. selectPz() {
  8474. let params = {
  8475. cid: this.id,
  8476. s: this.courseType,
  8477. t: this.taskCount,
  8478. };
  8479. this.ajax
  8480. .get(this.$store.state.api + "selectPzList", params)
  8481. .then((res) => {
  8482. this.pzList = res.data[0];
  8483. })
  8484. .catch((err) => {
  8485. console.error(err);
  8486. });
  8487. },
  8488. updateSLook() {
  8489. let params = {
  8490. sopen: this.sIsOpen == false ? 1 : 2,
  8491. cid: this.id,
  8492. };
  8493. this.ajax
  8494. .get(this.$store.state.api + "updateCourseSLook", params)
  8495. .then((res) => {
  8496. if (this.sIsOpen == true) {
  8497. this.$message({
  8498. message: "权限设置成功",
  8499. type: "success",
  8500. });
  8501. } else {
  8502. this.$message({
  8503. message: "权限关闭成功",
  8504. type: "success",
  8505. });
  8506. }
  8507. })
  8508. .catch((err) => {
  8509. console.error(err);
  8510. });
  8511. },
  8512. updateFollow() {
  8513. let params = [
  8514. {
  8515. sopen: this.IsFollow == false ? 1 : 2,
  8516. cid: this.id,
  8517. },
  8518. ];
  8519. this.ajax
  8520. .post(this.$store.state.api + "updateCourseFollow", params)
  8521. .then((res) => {
  8522. if (this.IsFollow == true) {
  8523. this.$message({
  8524. message: "开启成功",
  8525. type: "success",
  8526. });
  8527. } else {
  8528. this.$message({
  8529. message: "关闭成功",
  8530. type: "success",
  8531. });
  8532. }
  8533. this.setCTask();
  8534. })
  8535. .catch((err) => {
  8536. console.error(err);
  8537. });
  8538. },
  8539. setCTask() {
  8540. let params = [
  8541. {
  8542. sopen: this.courseType + '-' + this.taskCount,
  8543. cid: this.id,
  8544. },
  8545. ];
  8546. this.ajax
  8547. .post(this.$store.state.api + "updateCourseFollowC", params)
  8548. .then((res) => {
  8549. })
  8550. .catch((err) => {
  8551. console.error(err);
  8552. });
  8553. },
  8554. updateLookOpen() {
  8555. let params = [
  8556. {
  8557. sopen: this.IsLookOpen == false ? 1 : 2,
  8558. cid: this.id,
  8559. },
  8560. ];
  8561. this.ajax
  8562. .post(this.$store.state.api + "updateCourseLookOpen", params)
  8563. .then((res) => {
  8564. if (this.IsLookOpen == true) {
  8565. // if (this.courseType != 0 && this.taskCount != 0) {
  8566. // this.openTask(0, 0, "0-0");
  8567. // }
  8568. this.$message({
  8569. message: "权限设置成功",
  8570. type: "success",
  8571. });
  8572. } else {
  8573. this.$message({
  8574. message: "权限关闭成功",
  8575. type: "success",
  8576. });
  8577. }
  8578. this.getCourseState(2);
  8579. })
  8580. .catch((err) => {
  8581. console.error(err);
  8582. });
  8583. },
  8584. selectSLook() {
  8585. let params = {
  8586. cid: this.id,
  8587. };
  8588. this.ajax
  8589. .get(this.$store.state.api + "selectCourseSLook", params)
  8590. .then((res) => {
  8591. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  8592. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  8593. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  8594. if (!this.IsLookOpen) {
  8595. this.setNavList();
  8596. } else {
  8597. this.getCourseState(1);
  8598. }
  8599. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8600. let _followC = res.data[0][0].followC.split('-')
  8601. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  8602. this.navList[this.courseType].isOpen = false;
  8603. this.courseType = _followC[0]
  8604. this.navList[this.courseType].isOpen = true;
  8605. this.taskCount = parseInt(_followC[1])
  8606. this.navId = res.data[0][0].followC;
  8607. this.getCourseDetail(2)
  8608. }
  8609. }
  8610. })
  8611. .catch((err) => {
  8612. console.error(err);
  8613. });
  8614. },
  8615. setNavList() {
  8616. if (this.navList.length == 0) {
  8617. this.navList = [];
  8618. for (var l = 0; l < this.chapInfoList.length; l++) {
  8619. var q = this.chapInfoList[l].dyName;
  8620. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8621. var e;
  8622. this.navList.push({
  8623. dyName: q,
  8624. isOpen: l === 0 ? true : false,
  8625. task: [],
  8626. });
  8627. for (var r = 0; r < w.length; r++) {
  8628. e = w[r].task;
  8629. if (this.chapInfoList[l].easy == 1) {
  8630. this.navList[l].task.push({
  8631. taskName: q,
  8632. id: l + "-" + r,
  8633. isLook: w[r].isLook,
  8634. });
  8635. } else {
  8636. this.navList[l].task.push({
  8637. taskName: e,
  8638. id: l + "-" + r,
  8639. isLook: w[r].isLook,
  8640. });
  8641. }
  8642. // this.navId = this.navId ? this.navId : l + "-" + r;
  8643. // this.navId = l + "-" + r;
  8644. }
  8645. }
  8646. this.navList[0].isOpen = false;
  8647. this.navList[this.courseType].isOpen = true;
  8648. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8649. } else {
  8650. this.setNavList2();
  8651. }
  8652. },
  8653. setNavList2() {
  8654. for (var l = 0; l < this.chapInfoList.length; l++) {
  8655. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8656. for (var r = 0; r < w.length; r++) {
  8657. this.navList[l].task[r].isLook = w[r].isLook;
  8658. }
  8659. }
  8660. if (
  8661. this.IsLookOpen &&
  8662. !this.navList[this.courseType].task[this.taskCount].isLook
  8663. ) {
  8664. this.openTask(0, 0, "0-0");
  8665. }
  8666. this.$forceUpdate();
  8667. },
  8668. getCourseState(type) {
  8669. let params = {
  8670. cid: this.id,
  8671. };
  8672. this.ajax
  8673. .get(this.$store.state.api + "getCourseState", params)
  8674. .then((res) => {
  8675. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  8676. this.chapInfoList = JSON.parse(res.data[0][0].state);
  8677. this.setNavList();
  8678. this.$forceUpdate();
  8679. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  8680. this.addCourseState(2);
  8681. } else {
  8682. this.addCourseState(1);
  8683. }
  8684. })
  8685. .catch((err) => {
  8686. console.error(err);
  8687. });
  8688. },
  8689. addCourseState(type) {
  8690. let _state = this.chapInfoList;
  8691. // this.courseType this.taskCount
  8692. if (type == 1 || type == 2) {
  8693. for (var i = 0; i < _state.length; i++) {
  8694. let el = _state[i].chapterInfo[0].taskJson;
  8695. for (var j = 0; j < el.length; j++) {
  8696. // if (i == 0 && j == 0) {
  8697. // el[j].isLook = true;
  8698. // } else {
  8699. // el[j].isLook = false;
  8700. // }
  8701. if (
  8702. this.courseType > i ||
  8703. (this.courseType == i && this.taskCount + 1 > j)
  8704. ) {
  8705. el[j].isLook = true;
  8706. } else {
  8707. el[j].isLook = false;
  8708. }
  8709. }
  8710. }
  8711. }
  8712. let params = [
  8713. {
  8714. cid: this.id,
  8715. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  8716. },
  8717. ];
  8718. this.ajax
  8719. .post(
  8720. this.$store.state.api +
  8721. (type == 1 ? "addCourseState" : "updateCourseSate"),
  8722. params
  8723. )
  8724. .then((res) => {
  8725. if (this.IsLookOpen) {
  8726. this.setNavList();
  8727. }
  8728. if (type == 3 && type == 2) {
  8729. this.getCourseState(1);
  8730. }
  8731. })
  8732. .catch((err) => {
  8733. console.error(err);
  8734. });
  8735. },
  8736. getHomeWork() {
  8737. let params = {
  8738. cid: this.id,
  8739. stage: this.courseType,
  8740. task: this.taskCount,
  8741. uid: this.userid,
  8742. };
  8743. this.ajax
  8744. .get(this.$store.state.api + "selectWork", params)
  8745. .then((res) => {
  8746. if (res.data[0].length > 0) {
  8747. this.studyJuri = JSON.parse(res.data[0][0].content);
  8748. this.isNoHomeWork = true;
  8749. }
  8750. })
  8751. .catch((err) => {
  8752. console.error(err);
  8753. });
  8754. },
  8755. isAssetTypeAnImage(ext) {
  8756. return (
  8757. [
  8758. "png",
  8759. "jpg",
  8760. "jpeg",
  8761. "bmp",
  8762. "gif",
  8763. "webp",
  8764. "psd",
  8765. "svg",
  8766. "tiff",
  8767. ].indexOf(ext) !== -1
  8768. );
  8769. },
  8770. switchVideo(media) {
  8771. this.playerO = {};
  8772. this.playerOptions.poster = "";
  8773. this.playerOptions.sources[0].src = media;
  8774. this.playerO = this.playerOptions;
  8775. },
  8776. onPlayerPlay() { },
  8777. lookVedio(u, i) {
  8778. this.isClickNav = "";
  8779. // this.playerOptions.sources[0].src = u;
  8780. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8781. d.sources[0].src = u;
  8782. this.playerO[this.taskCount] = d;
  8783. this.showType = 0;
  8784. this.isClickNav = "video" + i;
  8785. this.$forceUpdate();
  8786. },
  8787. lookText(i, t) {
  8788. this.isClickNav = "";
  8789. this.text = this.textList[i][t];
  8790. // this.dialogVisible1 = true;
  8791. this.showType = 1;
  8792. this.isClickNav = "text" + t;
  8793. },
  8794. lookTools(i, t) {
  8795. this.chapTools = this.chapToolList[i][t];
  8796. this.dialogVisible2 = true;
  8797. },
  8798. openFile(f) {
  8799. this.pptImgUrl = "";
  8800. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  8801. if (
  8802. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  8803. -1
  8804. ) {
  8805. this.pptImgUrl =
  8806. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  8807. this.showPDF = false;
  8808. this.dialogVisible3 = true;
  8809. } else if (
  8810. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8811. ) {
  8812. this.pptImgUrl = f;
  8813. this.showPDF = true;
  8814. this.dialogVisible3 = true;
  8815. }
  8816. },
  8817. openTable(f) {
  8818. this.tableJson = JSON.parse(f.works);
  8819. this.dialogVisibleTable2 = true;
  8820. },
  8821. doUrl(url, i) {
  8822. this.isClickNav = "";
  8823. this.pptImgUrl1 = "";
  8824. this.showType = 2;
  8825. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  8826. url = "https://" + url;
  8827. }
  8828. this.pptImgUrl1 = url;
  8829. this.isClickNav = "line" + i;
  8830. },
  8831. downFile(f, i) {
  8832. this.isClickNav = "";
  8833. this.pptImgUrl1 = "";
  8834. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  8835. if (
  8836. a.indexOf(
  8837. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  8838. ) != -1
  8839. ) {
  8840. this.pptImgUrl1 =
  8841. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  8842. // this.dialogVisible3 = true;
  8843. this.showType = 2;
  8844. } else if (
  8845. this.isAssetTypeAnImage(
  8846. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  8847. )
  8848. ) {
  8849. this.showType = 4;
  8850. this.pptImgUrl1 = f.url;
  8851. } else if (
  8852. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  8853. "PDF"
  8854. ) {
  8855. this.pptImgUrl1 = f.url;
  8856. // this.dialogVisible3 = true;
  8857. this.showType = 3;
  8858. } else {
  8859. window.open(this.file[i].url);
  8860. }
  8861. this.isClickNav = "word" + i;
  8862. },
  8863. downFileList(i) {
  8864. window.open(this.noImgList[i].url);
  8865. },
  8866. openAddWork() {
  8867. this.dialogVisible = true;
  8868. },
  8869. addBzWorks() {
  8870. let params = [
  8871. {
  8872. uid: this.userid,
  8873. cid: this.id,
  8874. stage: this.courseType,
  8875. task: this.taskCount,
  8876. tool: this.toolindex,
  8877. content: JSON.stringify(this.eScore),
  8878. type: 6,
  8879. },
  8880. ];
  8881. this.ajax
  8882. .post(this.$store.state.api + "addCourseWorks", params)
  8883. .then((res) => {
  8884. this.$message({
  8885. message: "提交成功",
  8886. type: "success",
  8887. });
  8888. this.eScore = { eBzText: "", eStar: [] };
  8889. this.studentEvalDialogVisible = false;
  8890. this.selectSWorks();
  8891. })
  8892. .catch((err) => {
  8893. this.$message.error("提交失败");
  8894. console.error(err);
  8895. });
  8896. },
  8897. addStudentAsk() {
  8898. if (!this.radio.length) {
  8899. this.$message.error("请选择选项");
  8900. return;
  8901. }
  8902. for (var i = 0; i < this.askJson.askCount; i++) {
  8903. if (this.radio[i] !== 0 && !this.radio[i]) {
  8904. this.$message.error("请选择选项");
  8905. return;
  8906. }
  8907. }
  8908. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  8909. let params = [
  8910. {
  8911. uid: this.userid,
  8912. cid: this.id,
  8913. stage: this.courseType,
  8914. task: this.taskCount,
  8915. tool: this.toolindex,
  8916. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  8917. type: 2,
  8918. },
  8919. ];
  8920. this.ajax
  8921. .post(this.$store.state.api + "addCourseWorks", params)
  8922. .then((res) => {
  8923. this.$message({
  8924. message: "提交成功",
  8925. type: "success",
  8926. });
  8927. this.askList = [];
  8928. this.dialogVisible5 = false;
  8929. this.selectStudent();
  8930. this.selectSWorks();
  8931. this.selectSLook();
  8932. })
  8933. .catch((err) => {
  8934. this.$message.error("提交失败");
  8935. console.error(err);
  8936. });
  8937. },
  8938. addStudentTest() {
  8939. if (!this.radio.length) {
  8940. this.$message.error("请选择选项");
  8941. return;
  8942. }
  8943. for (var i = 0; i < this.testJson.testCount; i++) {
  8944. if (
  8945. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  8946. (this.radio[i] !== 0 && !this.radio[i])
  8947. ) {
  8948. this.$message.error("请选择选项");
  8949. return;
  8950. }
  8951. }
  8952. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  8953. let params = [
  8954. {
  8955. uid: this.userid,
  8956. cid: this.id,
  8957. stage: this.courseType,
  8958. task: this.taskCount,
  8959. tool: this.toolindex,
  8960. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  8961. type: 8,
  8962. },
  8963. ];
  8964. this.ajax
  8965. .post(this.$store.state.api + "addCourseWorks", params)
  8966. .then((res) => {
  8967. this.$message({
  8968. message: "提交成功",
  8969. type: "success",
  8970. });
  8971. this.askList = [];
  8972. this.dialogVisibleChoice = false;
  8973. this.selectStudent();
  8974. this.selectSWorks();
  8975. this.selectSLook();
  8976. })
  8977. .catch((err) => {
  8978. this.$message.error("提交失败");
  8979. console.error(err);
  8980. });
  8981. },
  8982. addWork() {
  8983. if (this.studyJuri[0].content == "") {
  8984. this.$message.error("请将信息填写完整");
  8985. return;
  8986. } else if (this.studyJuri[0].cover.length == 0) {
  8987. this.$message.error("请将信息填写完整");
  8988. return;
  8989. } else if (this.studyJuri[0].upVedio.length == 0) {
  8990. this.$message.error("请将信息填写完整");
  8991. return;
  8992. }
  8993. if (this.isNoHomeWork) {
  8994. this.$confirm(
  8995. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  8996. "提示",
  8997. {
  8998. confirmButtonText: "确定",
  8999. cancelButtonText: "取消",
  9000. type: "warning",
  9001. }
  9002. )
  9003. .then(() => {
  9004. let params = [
  9005. {
  9006. uid: this.userid,
  9007. cid: this.id,
  9008. stage: this.courseType,
  9009. task: this.taskCount,
  9010. content: JSON.stringify(this.studyJuri),
  9011. },
  9012. ];
  9013. this.ajax
  9014. .post(this.$store.state.api + "addWorks", params)
  9015. .then((res) => {
  9016. this.$message({
  9017. message: "提交成功",
  9018. type: "success",
  9019. });
  9020. this.isNoHomeWork = true;
  9021. this.dialogVisible = false;
  9022. })
  9023. .catch((err) => {
  9024. this.$message.error("提交失败");
  9025. console.error(err);
  9026. });
  9027. })
  9028. .catch(() => { });
  9029. } else {
  9030. let params = [
  9031. {
  9032. uid: this.userid,
  9033. cid: this.id,
  9034. stage: this.courseType,
  9035. task: this.taskCount,
  9036. content: JSON.stringify(this.studyJuri),
  9037. },
  9038. ];
  9039. this.ajax
  9040. .post(this.$store.state.api + "addWorks", params)
  9041. .then((res) => {
  9042. this.$message({
  9043. message: "提交成功",
  9044. type: "success",
  9045. });
  9046. this.isNoHomeWork = true;
  9047. this.dialogVisible = false;
  9048. })
  9049. .catch((err) => {
  9050. this.$message.error("提交失败");
  9051. console.error(err);
  9052. });
  9053. }
  9054. },
  9055. selectCount() {
  9056. let params = {
  9057. cid: this.id,
  9058. chid: this.courseType,
  9059. uid: this.userid,
  9060. };
  9061. this.ajax
  9062. .get(this.$store.state.api + "selectToolsCount", params)
  9063. .then((res) => {
  9064. for (var i = 0; i < res.data[0].length; i++) {
  9065. if (res.data[0][i].tools == 1) {
  9066. this.wbCount = res.data[0][i].count;
  9067. } else if (res.data[0][i].tools == 2) {
  9068. this.wordCount = res.data[0][i].count;
  9069. } else if (res.data[0][i].tools == 3) {
  9070. this.mindCount = res.data[0][i].count;
  9071. } else if (res.data[0][i].tools == 4) {
  9072. this.askCount = res.data[0][i].count;
  9073. } else if (res.data[0][i].tools == 6) {
  9074. this.noteCount = res.data[0][i].count;
  9075. } else if (res.data[0][i].tools == 7) {
  9076. this.mindNetWorkCount = res.data[0][i].count;
  9077. } else if (res.data[0][i].tools == 8) {
  9078. this.libraryCount = res.data[0][i].count;
  9079. } else if (res.data[0][i].tools == 16) {
  9080. this.workCount = res.data[0][i].count;
  9081. } else if (res.data[0][i].tools == 10) {
  9082. this.timeCount = res.data[0][i].count;
  9083. } else if (res.data[0][i].tools == 15) {
  9084. this.answerCount = res.data[0][i].count;
  9085. } else if (res.data[0][i].tools == 18) {
  9086. this.trainCount = res.data[0][i].count;
  9087. }
  9088. }
  9089. })
  9090. .catch((err) => {
  9091. console.error(err);
  9092. });
  9093. },
  9094. openTools(t, i, index, c, sName) {
  9095. var z = JSON.parse(c);
  9096. this.noteName = sName;
  9097. if (t == 4) {
  9098. this.radio = [];
  9099. this.isAnswer = false;
  9100. for (var i = 0; i < z.length; i++) {
  9101. let a = z[i];
  9102. let b = a.anwer.split(",");
  9103. let d = [];
  9104. for (var j = 0; j < b.length; j++) {
  9105. d.push(parseInt(b[j]));
  9106. }
  9107. this.radio = d;
  9108. this.askJson = a.askJson;
  9109. }
  9110. this.isAnswer = true;
  9111. this.dialogVisible5 = true;
  9112. } else if (t == 45) {
  9113. this.radio = [];
  9114. this.isAnswer = false;
  9115. let b = z[0].anwer;
  9116. this.radio = b;
  9117. this.testJson = z[0].testJson;
  9118. this.isAnswer = true;
  9119. this.dialogVisibleChoice = true;
  9120. }
  9121. // else if (t == 15) {
  9122. // this.answerQ = "";
  9123. // this.questionAnswer = "";
  9124. // this.answerQ = z[0].answerTitle;
  9125. // this.questionAnswer = z[0].answer;
  9126. // this.answerDialogVisible = true;
  9127. // }
  9128. },
  9129. fastText(p, t) {
  9130. if (t == 1) {
  9131. this.commentText += p;
  9132. } else {
  9133. this.eScore.eBzText += p;
  9134. }
  9135. },
  9136. addTools(t, i, index) {
  9137. var a = 0;
  9138. // this.taskCount = index;
  9139. this.toolindex = i;
  9140. if (t == 1) {
  9141. if (this.wbCount > 0) {
  9142. this.updateCount(this.wbCount, t);
  9143. } else {
  9144. this.wbCount++;
  9145. a = this.wbCount;
  9146. this.toolsCount(a, t);
  9147. }
  9148. window.parent.postMessage(
  9149. {
  9150. tools: "1",
  9151. cid: this.id,
  9152. stage: this.courseType,
  9153. task: this.taskCount,
  9154. tool: i,
  9155. },
  9156. "*"
  9157. );
  9158. } else if (t == 2) {
  9159. if (this.wordCount > 0) {
  9160. this.updateCount(this.wordCount, t);
  9161. } else {
  9162. this.wordCount++;
  9163. a = this.wordCount;
  9164. this.toolsCount(a, t);
  9165. }
  9166. window.parent.postMessage({ tools: "2" }, "*");
  9167. } else if (t == 3) {
  9168. if (this.mindCount > 0) {
  9169. this.updateCount(this.mindCount, t);
  9170. } else {
  9171. this.mindCount++;
  9172. a = this.mindCount;
  9173. this.toolsCount(a, t);
  9174. }
  9175. window.parent.postMessage(
  9176. {
  9177. tools: "3",
  9178. cid: this.id,
  9179. stage: this.courseType,
  9180. task: this.taskCount,
  9181. tool: i,
  9182. },
  9183. "*"
  9184. );
  9185. } else if (t == 4) {
  9186. this.radio = [];
  9187. this.noteName = "";
  9188. this.isAnswer = false;
  9189. if (this.askCount > 0) {
  9190. this.updateCount(this.askCount, t);
  9191. } else {
  9192. this.askCount++;
  9193. a = this.askCount;
  9194. this.toolsCount(a, t);
  9195. }
  9196. if (!this.dialogVisible2) {
  9197. this.askJson.askJson =
  9198. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9199. index
  9200. ].toolChoose[i].askJson;
  9201. this.askJson.askTitle =
  9202. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9203. index
  9204. ].toolChoose[i].askTitle;
  9205. this.askJson.askCount =
  9206. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9207. index
  9208. ].toolChoose[i].askCount;
  9209. } else {
  9210. this.askJson.askJson = this.chapTools.askJson.askJson;
  9211. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  9212. this.askJson.askCount = this.chapTools.askJson.askCount;
  9213. }
  9214. this.dialogVisible5 = true;
  9215. // window.parent.postMessage({ tools: "4" }, "*");
  9216. } else if (t == 45) {
  9217. this.noteName = "";
  9218. this.radio = [];
  9219. this.isAnswer = false;
  9220. if (this.askCount > 0) {
  9221. this.updateCount(this.askCount, t);
  9222. } else {
  9223. this.askCount++;
  9224. a = this.askCount;
  9225. this.toolsCount(a, t);
  9226. }
  9227. this.testJson =
  9228. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9229. index
  9230. ].toolChoose[i].testJson;
  9231. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9232. if (this.testJson.testJson[k].type == "2") {
  9233. this.radio.push([]);
  9234. } else {
  9235. this.radio.push("");
  9236. }
  9237. }
  9238. this.dialogVisibleChoice = true;
  9239. // window.parent.postMessage({ tools: "4" }, "*");
  9240. } else if (t == 5) {
  9241. if (this.scoreCount > 0) {
  9242. this.updateCount(this.scoreCount, t);
  9243. } else {
  9244. this.scoreCount++;
  9245. a = this.scoreCount;
  9246. this.toolsCount(a, t);
  9247. }
  9248. this.dialogVisible4 = true;
  9249. // window.parent.postMessage({ tools: "5" }, "*");
  9250. } else if (t == 6) {
  9251. if (this.noteCount > 0) {
  9252. this.updateCount(this.noteCount, t);
  9253. } else {
  9254. this.noteCount++;
  9255. a = this.noteCount;
  9256. this.toolsCount(a, t);
  9257. }
  9258. window.parent.postMessage(
  9259. {
  9260. tools: "6",
  9261. cid: this.id,
  9262. stage: this.courseType,
  9263. task: this.taskCount,
  9264. tool: i,
  9265. },
  9266. "*"
  9267. );
  9268. } else if (t == 7) {
  9269. if (this.mindNetWorkCount > 0) {
  9270. this.updateCount(this.mindNetWorkCount, t);
  9271. } else {
  9272. this.mindNetWorkCount++;
  9273. a = this.mindNetWorkCount;
  9274. this.toolsCount(a, t);
  9275. }
  9276. window.parent.postMessage(
  9277. {
  9278. tools: "7",
  9279. cid: this.id,
  9280. stage: this.courseType,
  9281. task: this.taskCount,
  9282. tool: i,
  9283. },
  9284. "*"
  9285. );
  9286. } else if (t == 16) {
  9287. if (this.workCount > 0) {
  9288. this.updateCount(this.workCount, t);
  9289. } else {
  9290. this.workCount++;
  9291. a = this.workCount;
  9292. this.toolsCount(a, t);
  9293. }
  9294. this.dialogVisible = true;
  9295. } else if (t == 50) {
  9296. if (this.tType == 2) {
  9297. this.$message.error("不支持学生使用");
  9298. return;
  9299. }
  9300. this.plworkFile = [];
  9301. this.uploadCid =
  9302. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9303. index
  9304. ].toolChoose[i].uploadJson[0];
  9305. this.selectUploadStudent();
  9306. this.dialogVisiblePl = true;
  9307. } else if (t == 8) {
  9308. if (this.libraryCount > 0) {
  9309. this.updateCount(this.libraryCount, t);
  9310. } else {
  9311. this.libraryCount++;
  9312. a = this.libraryCount;
  9313. this.toolsCount(a, t);
  9314. }
  9315. window.parent.postMessage({ tools: "8" }, "*");
  9316. } else if (t == 17) {
  9317. if (this.libraryCount > 0) {
  9318. this.updateCount(this.libraryCount, t);
  9319. } else {
  9320. this.libraryCount++;
  9321. a = this.libraryCount;
  9322. this.toolsCount(a, t);
  9323. }
  9324. window.parent.postMessage({ tools: "17" }, "*");
  9325. } else if (t == 18) {
  9326. if (this.trainCount > 0) {
  9327. this.updateCount(this.trainCount, t);
  9328. } else {
  9329. this.trainCount++;
  9330. a = this.trainCount;
  9331. this.toolsCount(a, t);
  9332. }
  9333. window.parent.postMessage({ tools: "18" }, "*");
  9334. } else if (t == 10) {
  9335. if (this.timeCount > 0) {
  9336. this.updateCount(this.timeCount, t);
  9337. } else {
  9338. this.timeCount++;
  9339. a = this.timeCount;
  9340. this.toolsCount(a, t);
  9341. }
  9342. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  9343. .taskJson[index].toolChoose[i].preTime
  9344. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9345. .toolChoose[i].preTime
  9346. : "";
  9347. this.timeDialogVisible = true;
  9348. } else if (t == 15) {
  9349. this.answerQ = "";
  9350. this.questionAnswer = "";
  9351. if (this.answerCount > 0) {
  9352. this.updateCount(this.answerCount, t);
  9353. } else {
  9354. this.answerCount++;
  9355. a = this.answerCount;
  9356. this.toolsCount(a, t);
  9357. }
  9358. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  9359. .taskJson[index].toolChoose[i].answerQ
  9360. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9361. .toolChoose[i].answerQ
  9362. : "";
  9363. this.answerDialogVisible = true;
  9364. } else if (t == 21) {
  9365. window.parent.postMessage({ tools: "21" }, "*");
  9366. } else if (t == 22) {
  9367. window.parent.postMessage({ tools: "22" }, "*");
  9368. } else if (t == 23) {
  9369. window.parent.postMessage({ tools: "23" }, "*");
  9370. } else if (t == 24) {
  9371. window.parent.postMessage({ tools: "24" }, "*");
  9372. } else if (t == 25) {
  9373. window.parent.postMessage({ tools: "25" }, "*");
  9374. } else if (t == 31) {
  9375. window.parent.postMessage({ tools: "31" }, "*");
  9376. } else if (t == 28) {
  9377. window.parent.postMessage({ tools: "28" }, "*");
  9378. } else if (t == 37) {
  9379. window.parent.postMessage({ tools: "37" }, "*");
  9380. } else if (t == 38) {
  9381. window.parent.postMessage({ tools: "38" }, "*");
  9382. } else if (t == 39) {
  9383. window.parent.postMessage({ tools: "39" }, "*");
  9384. } else if (t == 32) {
  9385. window.parent.postMessage({ tools: "32" }, "*");
  9386. } else if (t == 57) {
  9387. window.parent.postMessage({ tools: "57" }, "*");
  9388. } else if (t == 58) {
  9389. window.parent.postMessage({ tools: "58" }, "*");
  9390. } else if (t == 59) {
  9391. window.parent.postMessage({ tools: "59" }, "*");
  9392. } else if (t == 60) {
  9393. window.parent.postMessage({ tools: "60" }, "*");
  9394. } else if (t == 26) {
  9395. window.parent.postMessage(
  9396. {
  9397. tools: "26",
  9398. cid: this.id,
  9399. stage: this.courseType,
  9400. task: this.taskCount,
  9401. tool: i,
  9402. },
  9403. "*"
  9404. );
  9405. } else if (t == 40) {
  9406. if (this.evalCount > 0) {
  9407. this.updateCount(this.evalCount, t);
  9408. } else {
  9409. this.evalCount++;
  9410. a = this.evalCount;
  9411. this.toolsCount(a, t);
  9412. }
  9413. this.eScore = { eBzText: "", eStar: [] };
  9414. if (this.worksStudent[i].length) {
  9415. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9416. if (this.userid == this.worksStudent[i][k].userid) {
  9417. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  9418. this.rateJson =
  9419. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9420. index
  9421. ].toolChoose[i].rateJson;
  9422. break;
  9423. } else {
  9424. this.rateJson =
  9425. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9426. index
  9427. ].toolChoose[i].rateJson;
  9428. }
  9429. }
  9430. } else {
  9431. this.rateJson =
  9432. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9433. index
  9434. ].toolChoose[i].rateJson;
  9435. }
  9436. this.isStar = false;
  9437. this.studentEvalDialogVisible = true;
  9438. } else if (t == 41) {
  9439. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9440. .taskJson[index].toolChoose[i].selectJson
  9441. ? JSON.parse(
  9442. JSON.stringify(
  9443. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9444. index
  9445. ].toolChoose[i].selectJson
  9446. )
  9447. )
  9448. : { url: "", select: [], answer: [] };
  9449. if (this.worksStudent[i].length) {
  9450. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9451. if (this.userid == this.worksStudent[i][k].userid) {
  9452. var a = this.worksStudent[i][k].works.split(",");
  9453. for (var ki = 0; ki < a.length; ki++) {
  9454. a[ki] = parseInt(a[ki]);
  9455. }
  9456. this.selectAnswer = {
  9457. answer: a,
  9458. stu: this.worksStudent[i][k].sName,
  9459. };
  9460. break;
  9461. } else {
  9462. this.selectAnswer = { answer: [], stu: "" };
  9463. }
  9464. }
  9465. } else {
  9466. this.selectAnswer = { answer: [], stu: "" };
  9467. }
  9468. this.isSelect = false;
  9469. this.dialogVisibleSelect = true;
  9470. } else if (t == 44) {
  9471. window.parent.postMessage({ tools: "44" }, "*");
  9472. } else if (t == 47) {
  9473. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  9474. .taskJson[index].toolChoose[i].sentenceList
  9475. ? JSON.parse(
  9476. JSON.stringify(
  9477. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9478. index
  9479. ].toolChoose[i].sentenceList
  9480. )
  9481. )
  9482. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  9483. for (var q = 0; q < this.sentenceList.length; q++) {
  9484. this.sentenceList[q].chooseSenList = [];
  9485. this.sentenceList[q].addChangeSen = [];
  9486. this.sentenceList[q].addChangeSen = JSON.parse(
  9487. JSON.stringify(this.sentenceList[q].addSentence)
  9488. );
  9489. this.sentenceList[q].chooseSenList.length =
  9490. this.sentenceList[q].rightAnswer.length;
  9491. }
  9492. this.dialogVisibleSentence = true;
  9493. } else if (t == 48) {
  9494. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9495. .taskJson[index].toolChoose[i].tableJson
  9496. ? JSON.parse(
  9497. JSON.stringify(
  9498. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9499. index
  9500. ].toolChoose[i].tableJson
  9501. )
  9502. )
  9503. : { text: "" };
  9504. if (this.worksStudent[i].length) {
  9505. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9506. if (this.userid == this.worksStudent[i][k].userid) {
  9507. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  9508. break;
  9509. }
  9510. }
  9511. }
  9512. this.dialogVisibleTable = true;
  9513. } else if (t == 52) {
  9514. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9515. .taskJson[index].toolChoose[i].wordJson
  9516. ? JSON.parse(
  9517. JSON.stringify(
  9518. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9519. index
  9520. ].toolChoose[i].wordJson
  9521. )
  9522. )
  9523. : { text: "" };
  9524. this.dialogVisibleWord = true;
  9525. } else if (t == 49) {
  9526. this.groupJson =
  9527. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9528. index
  9529. ].toolChoose[i].groupJson;
  9530. this.dialogVisibleGroup = true;
  9531. }
  9532. },
  9533. teacherWorkSubmit(t, i, index, s) {
  9534. this.sStudent = s;
  9535. this.toolindex = i;
  9536. if (this.tType !== "1" && this.tType !== "4") {
  9537. return;
  9538. }
  9539. if (t == 16) {
  9540. // if (this.workCount > 0) {
  9541. // this.updateCount(this.workCount, t);
  9542. // } else {
  9543. // this.workCount++;
  9544. // a = this.workCount;
  9545. // this.toolsCount(a, t);
  9546. // }
  9547. this.dialogVisibleWorks = true;
  9548. }
  9549. },
  9550. setRightAnswer(s, i, j) {
  9551. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  9552. if (
  9553. this.sentenceList[i].chooseSenList[q] == undefined ||
  9554. this.sentenceList[i].chooseSenList[q] == ""
  9555. ) {
  9556. this.sentenceList[i].chooseSenList[q] = s;
  9557. this.sentenceList[i].addChangeSen[j] = "";
  9558. break;
  9559. }
  9560. }
  9561. this.$forceUpdate();
  9562. },
  9563. returnCard(r, i, j) {
  9564. var a = this.sentenceList[i].addSentence.indexOf(r);
  9565. this.sentenceList[i].chooseSenList[j] = "";
  9566. this.sentenceList[i].addChangeSen[a] = r;
  9567. this.$forceUpdate();
  9568. },
  9569. // addSentenceTool() {
  9570. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9571. // this.taskCount
  9572. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  9573. // this.sentenceList = [
  9574. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9575. // ];
  9576. // this.dialogVisibleSentence = false;
  9577. // },
  9578. toolsCount(a, t) {
  9579. let params = {
  9580. cid: this.id,
  9581. chid: this.courseType,
  9582. uid: this.userid,
  9583. tid: t,
  9584. count: a,
  9585. };
  9586. this.ajax
  9587. .get(this.$store.state.api + "insertToolsCount", params)
  9588. .then((res) => {
  9589. this.selectCount();
  9590. })
  9591. .catch((err) => {
  9592. console.error(err);
  9593. });
  9594. },
  9595. updateCount(c, t) {
  9596. c++;
  9597. let params = {
  9598. cid: this.id,
  9599. chid: this.courseType,
  9600. uid: this.userid,
  9601. tid: t,
  9602. count: c,
  9603. };
  9604. this.ajax
  9605. .get(this.$store.state.api + "updateToolsCount", params)
  9606. .then((res) => {
  9607. this.selectCount();
  9608. })
  9609. .catch((err) => {
  9610. console.error(err);
  9611. });
  9612. },
  9613. checkEva() {
  9614. if (this.evalua != "") {
  9615. for (var i = 0; i < this.evaJuri.length; i++) {
  9616. if (this.evalua == this.evaJuri[i].id) {
  9617. this.eTitle = this.evaJuri[i].title;
  9618. this.eJson = JSON.parse(this.evaJuri[i].content);
  9619. }
  9620. }
  9621. this.$forceUpdate();
  9622. setTimeout(() => {
  9623. this.setMindData();
  9624. }, 0);
  9625. }
  9626. },
  9627. selectEva() {
  9628. let params = {
  9629. oid: this.oid,
  9630. };
  9631. this.ajax
  9632. .get(this.$store.state.api + "selectAllEvaluation", params)
  9633. .then((res) => {
  9634. this.evaJuri = res.data[0];
  9635. })
  9636. .catch((err) => {
  9637. console.error(err);
  9638. });
  9639. },
  9640. setMindData() {
  9641. this.data.data = [];
  9642. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9643. let _eJson = Object.keys(this.eJson);
  9644. let _e = this.eJson;
  9645. for (let i = 0; i < _eJson.length; i++) {
  9646. let element = _e[_eJson[i]];
  9647. this.data.data.push({
  9648. id: element.id,
  9649. parentid: "root",
  9650. topic: element.name,
  9651. });
  9652. let _eJsonc = Object.keys(element.child);
  9653. let _e2 = element.child;
  9654. for (let j = 0; j < _eJsonc.length; j++) {
  9655. let _ec = _e2[_eJsonc[j]];
  9656. this.data.data.push({
  9657. id: _ec.id,
  9658. parentid: element.id,
  9659. topic: _ec.name,
  9660. });
  9661. let _eJsonz = Object.keys(_ec.child);
  9662. let _e3 = _ec.child;
  9663. for (let z = 0; z < _eJsonz.length; z++) {
  9664. let _ez = _e3[_eJsonz[z]];
  9665. this.data.data.push({
  9666. id: _ez.id,
  9667. parentid: _ec.id,
  9668. topic: _ez.name,
  9669. });
  9670. }
  9671. }
  9672. }
  9673. this.$forceUpdate();
  9674. },
  9675. checkFileFull(type, url) {
  9676. this.fullDialogVisible = true;
  9677. this.fulltype = type;
  9678. this.fullUrl = url;
  9679. },
  9680. openSname(n, id) {
  9681. this.snameWid = id;
  9682. this.worksSName = n;
  9683. this.dialogVisibleSname = true;
  9684. },
  9685. updateName() {
  9686. let params = {
  9687. n: this.worksSName,
  9688. cid: this.snameWid,
  9689. };
  9690. this.ajax
  9691. .get(this.$store.state.api + "updateCourseWorksName", params)
  9692. .then((res) => {
  9693. this.$message({
  9694. message: "修改成功",
  9695. type: "success",
  9696. });
  9697. this.dialogVisibleSname = false;
  9698. this.getCourseDetail(2);
  9699. this.snameWid = "";
  9700. this.worksSName = "";
  9701. })
  9702. .catch((err) => {
  9703. console.error(err);
  9704. });
  9705. },
  9706. downloadFile2(f) {
  9707. let url = f.url
  9708. let _this = this;
  9709. let _url = "";
  9710. if (
  9711. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  9712. ) {
  9713. _url = url.split(
  9714. "https://view.officeapps.live.com/op/view.aspx?src="
  9715. )[1];
  9716. } else {
  9717. _url = url;
  9718. }
  9719. const x = new XMLHttpRequest();
  9720. x.open("GET", _url, true);
  9721. x.responseType = "blob";
  9722. const loading = _this.$loading.service({
  9723. background: "rgba(255, 255, 255, 0.7)",
  9724. target: document.body,
  9725. text: "文件加载中...",
  9726. });
  9727. // _this.$message.success("文件下载中...");
  9728. x.onload = function (e) {
  9729. loading.close();
  9730. let content = x.response;
  9731. let elink = document.createElement("a");
  9732. elink.download = f.name;
  9733. elink.style.display = "none";
  9734. let blob = new Blob([content]);
  9735. elink.href = URL.createObjectURL(blob);
  9736. document.body.appendChild(elink);
  9737. elink.click();
  9738. document.body.removeChild(elink);
  9739. };
  9740. x.send();
  9741. },
  9742. downloadFile(url) {
  9743. let _this = this;
  9744. let _url = "";
  9745. if (
  9746. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  9747. ) {
  9748. _url = url.split(
  9749. "https://view.officeapps.live.com/op/view.aspx?src="
  9750. )[1];
  9751. } else {
  9752. _url = url;
  9753. }
  9754. const x = new XMLHttpRequest();
  9755. x.open("GET", _url, true);
  9756. x.responseType = "blob";
  9757. const loading = _this.$loading.service({
  9758. background: "rgba(255, 255, 255, 0.7)",
  9759. target: document.body,
  9760. text: "文件加载中...",
  9761. });
  9762. // _this.$message.success("文件下载中...");
  9763. x.onload = function (e) {
  9764. loading.close();
  9765. // const url = window.URL.createObjectURL(x.response);
  9766. // const a = document.createElement("a");
  9767. // a.href = url;
  9768. // a.target = "_blank";
  9769. // a.download = url;
  9770. // a.click();
  9771. // a.remove();
  9772. let content = x.response;
  9773. let elink = document.createElement("a");
  9774. elink.download = decodeURI(
  9775. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  9776. );
  9777. elink.style.display = "none";
  9778. let blob = new Blob([content]);
  9779. elink.href = URL.createObjectURL(blob);
  9780. document.body.appendChild(elink);
  9781. elink.click();
  9782. document.body.removeChild(elink);
  9783. };
  9784. x.send();
  9785. },
  9786. openLine(url) {
  9787. window.open(url);
  9788. },
  9789. resize() {
  9790. if (document.getElementsByClassName("box_course").length) {
  9791. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  9792. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  9793. document.getElementsByClassName("navBox")[0].style.height =
  9794. a - 40 + "px";
  9795. }
  9796. this.Stbodywidth =
  9797. document.getElementsByClassName("student_body").length &&
  9798. document.getElementsByClassName("student_body")[0].offsetWidth;
  9799. },
  9800. closeDraw() {
  9801. this.bg = null;
  9802. this.drawShow = false;
  9803. },
  9804. showPicturePaint(url) {
  9805. let params = {
  9806. img: url,
  9807. };
  9808. this.ajax
  9809. .get(this.$store.state.api + "imgToBase64", params)
  9810. .then((res) => {
  9811. console.log(res);
  9812. this.drawShow = true;
  9813. this.bg = res.data[0].img;
  9814. })
  9815. .catch((err) => {
  9816. console.error(err);
  9817. });
  9818. },
  9819. addImgDraw(base64) {
  9820. let file = { name: "批注图.png" };
  9821. let img = this.dataUrlToFile(base64, file);
  9822. this.beforeUpload1(img, 5);
  9823. },
  9824. addImgDrawImG(url) {
  9825. // console.log(url);
  9826. let params = [
  9827. {
  9828. wid: this.commentDetail.wid,
  9829. img: url,
  9830. },
  9831. ];
  9832. this.ajax
  9833. .post(this.$store.state.api + "updateCourseWorks", params)
  9834. .then((res) => {
  9835. this.$message({
  9836. message: "提交成功",
  9837. type: "success",
  9838. });
  9839. this.drawShow = false;
  9840. this.bg = "";
  9841. this.selectSWorks();
  9842. this.selectStudent();
  9843. })
  9844. .catch((err) => {
  9845. this.$message.error("提交失败");
  9846. console.error(err);
  9847. });
  9848. },
  9849. deletePicturePaint() {
  9850. this.$confirm("确定删除此批注吗?", "提示", {
  9851. confirmButtonText: "确定",
  9852. cancelButtonText: "取消",
  9853. type: "warning",
  9854. })
  9855. .then(() => {
  9856. let params = [
  9857. {
  9858. wid: this.commentDetail.wid,
  9859. img: "",
  9860. },
  9861. ];
  9862. this.ajax
  9863. .post(this.$store.state.api + "updateCourseWorks", params)
  9864. .then((res) => {
  9865. this.$message({
  9866. message: "删除成功",
  9867. type: "success",
  9868. });
  9869. this.selectSWorks();
  9870. this.selectStudent();
  9871. })
  9872. .catch((err) => {
  9873. this.$message.error("删除失败");
  9874. console.error(err);
  9875. });
  9876. })
  9877. .catch(() => { });
  9878. },
  9879. getAudioVideo(constraintsData) {
  9880. if (navigator.mediaDevices === undefined) {
  9881. navigator.mediaDevices = {};
  9882. }
  9883. if (navigator.mediaDevices.getUserMedia === undefined) {
  9884. navigator.mediaDevices.getUserMedia = function (constraints) {
  9885. // 首先,如果有getUserMedia的话,就获得它
  9886. var getUserMedia =
  9887. navigator.getUserMedia ||
  9888. navigator.webkitGetUserMedia ||
  9889. navigator.mozGetUserMedia ||
  9890. navigator.msGetUserMedia;
  9891. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  9892. if (!getUserMedia) {
  9893. return Promise.reject({ code: 404 });
  9894. }
  9895. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  9896. return new Promise(function (resolve, reject) {
  9897. getUserMedia.call(navigator, constraints, resolve, reject);
  9898. });
  9899. };
  9900. }
  9901. return navigator.mediaDevices.getUserMedia(constraintsData);
  9902. },
  9903. /**
  9904. * 开始录制
  9905. */
  9906. startRecording(callback) {
  9907. let _function = (screenStream) => {
  9908. this.addStreamStopListener(screenStream, () => {
  9909. console.log("流停止监听");
  9910. this.stopRecording();
  9911. this.$emit("streamStop", {});
  9912. // this.stopRecording();
  9913. });
  9914. var options = {
  9915. type: "video",
  9916. mimeType: "video/webm",
  9917. disableLogs: false,
  9918. getNativeBlob: false, // enable it for longer recordings
  9919. ignoreMutedMedia: false,
  9920. };
  9921. // this.video.srcObject = screenStream;
  9922. this.recorder = RecordRTC(screenStream, options);
  9923. this.recorder.startRecording();
  9924. this.recorder.screen = screenStream;
  9925. this.videoStart = true;
  9926. // callback(true);
  9927. };
  9928. this.getAudioVideo({ audio: true })
  9929. .then((res) => {
  9930. this.captureScreen(_function, true);
  9931. console.log("已点击允许,开启成功");
  9932. })
  9933. .catch((err) => {
  9934. // console.log('浏览器不支持,请更换浏览器')
  9935. // } else {
  9936. this.captureScreen(_function, false);
  9937. console.log("请检查是否存在麦克风");
  9938. });
  9939. },
  9940. /**
  9941. * 停止录制
  9942. */
  9943. stopRecording(callback) {
  9944. this.recorder.stopRecording(() => {
  9945. // this.video.src = this.video.srcObject = null;
  9946. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  9947. const url = URL.createObjectURL(this.recorder.getBlob());
  9948. const a = document.createElement("a"); //this.fileName+
  9949. let videoFile = new File(
  9950. [this.recorder.getBlob()],
  9951. this.courseDetail.title + "录屏.mp4",
  9952. {
  9953. type: "video/mp4",
  9954. }
  9955. );
  9956. let downloadUrl = URL.createObjectURL(videoFile);
  9957. document.body.appendChild(a);
  9958. a.style.display = "none";
  9959. a.href = url;
  9960. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  9961. a.click();
  9962. this.recorder.screen.stop();
  9963. this.recorder.destroy();
  9964. this.recorder = null;
  9965. this.videoStart = false;
  9966. // callback(false);
  9967. });
  9968. },
  9969. //初始化
  9970. captureScreen(callback, type) {
  9971. if (navigator.getDisplayMedia) {
  9972. //录制结束,文件下载
  9973. navigator
  9974. .getDisplayMedia({
  9975. video: true,
  9976. })
  9977. .then((screenStream) => {
  9978. if (type) {
  9979. navigator.mediaDevices
  9980. .getUserMedia({ audio: true })
  9981. .then((mic) => {
  9982. screenStream.addTrack(mic.getTracks()[0]);
  9983. callback(screenStream);
  9984. });
  9985. } else {
  9986. callback(screenStream);
  9987. }
  9988. })
  9989. .catch(function (error) {
  9990. console.log("error", error);
  9991. });
  9992. } else if (navigator.mediaDevices.getDisplayMedia) {
  9993. navigator.mediaDevices
  9994. .getDisplayMedia({
  9995. video: true,
  9996. })
  9997. .then((screenStream) => {
  9998. if (type) {
  9999. navigator.mediaDevices
  10000. .getUserMedia({ audio: true })
  10001. .then((mic) => {
  10002. screenStream.addTrack(mic.getTracks()[0]);
  10003. callback(screenStream);
  10004. });
  10005. } else {
  10006. callback(screenStream);
  10007. }
  10008. })
  10009. .catch(function (error) {
  10010. console.log("error", error);
  10011. });
  10012. } else {
  10013. var error = "getDisplayMedia API are not supported in this browser.";
  10014. console.log("error", error);
  10015. alert(error);
  10016. }
  10017. },
  10018. //流监听
  10019. addStreamStopListener(stream, callback) {
  10020. stream.addEventListener(
  10021. "ended",
  10022. function () {
  10023. callback();
  10024. callback = function () { };
  10025. },
  10026. false
  10027. );
  10028. stream.addEventListener(
  10029. "inactive",
  10030. function () {
  10031. callback();
  10032. callback = function () { };
  10033. },
  10034. false
  10035. );
  10036. stream.getTracks().forEach(function (track) {
  10037. track.addEventListener(
  10038. "ended",
  10039. function () {
  10040. callback();
  10041. callback = function () { };
  10042. },
  10043. false
  10044. );
  10045. track.addEventListener(
  10046. "inactive",
  10047. function () {
  10048. callback();
  10049. callback = function () { };
  10050. },
  10051. false
  10052. );
  10053. });
  10054. },
  10055. updateGroup() {
  10056. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10057. this.dialogVisibleGroup2 = true;
  10058. },
  10059. updateGroupJson() {
  10060. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  10061. if (
  10062. this.groupStudentUid[this.toolindex][i].length >
  10063. this.groupJson2.number
  10064. ) {
  10065. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  10066. return;
  10067. }
  10068. }
  10069. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  10070. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10071. this.taskCount
  10072. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  10073. let params = [
  10074. {
  10075. cid: this.id,
  10076. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  10077. uid: this.userid,
  10078. unitIndex: this.courseType,
  10079. },
  10080. ];
  10081. this.ajax
  10082. .post(this.$store.state.api + "updateWorkNew4", params)
  10083. .then((res) => {
  10084. this.$message.success("设置成功");
  10085. this.getCourseDetail(2);
  10086. this.dialogVisibleGroup2 = false;
  10087. this.groupJson2 = {};
  10088. this.$forceUpdate();
  10089. })
  10090. .catch((err) => {
  10091. this.$message.error("网络不佳");
  10092. console.error(err);
  10093. });
  10094. },
  10095. lockChair() {
  10096. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10097. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  10098. this.updateGroupJson();
  10099. },
  10100. selectGroup(index) {
  10101. this.getCourseDetail(2, index);
  10102. },
  10103. joinGroup(index) {
  10104. if (this.groupJson.islock == 2) {
  10105. this.$message.error("位置已被锁定,无法加入");
  10106. return;
  10107. }
  10108. if (
  10109. this.groupStudent[this.toolindex][index].length >
  10110. this.groupJson.number ||
  10111. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  10112. ) {
  10113. this.$message.error("位置已满,无法加入");
  10114. return;
  10115. }
  10116. let params = [
  10117. {
  10118. cid: this.id,
  10119. stage: this.courseType,
  10120. task: this.taskCount,
  10121. tool: this.toolindex,
  10122. g: index,
  10123. uid: this.userid,
  10124. },
  10125. ];
  10126. this.ajax
  10127. .post(this.$store.state.api + "joinGroup", params)
  10128. .then((res) => {
  10129. this.$message.success("加入成功");
  10130. this.getCourseDetail(2);
  10131. })
  10132. .catch((err) => {
  10133. this.$message.error("网络不佳");
  10134. console.error(err);
  10135. });
  10136. },
  10137. exitGroup(id) {
  10138. if (this.groupJson.islock == 2) {
  10139. this.$message.error("位置已被锁定,无法退出");
  10140. return;
  10141. }
  10142. let params = [
  10143. {
  10144. gid: id,
  10145. },
  10146. ];
  10147. this.ajax
  10148. .post(this.$store.state.api + "exitGroup", params)
  10149. .then((res) => {
  10150. this.$message.success("退出成功");
  10151. this.getCourseDetail(2);
  10152. })
  10153. .catch((err) => {
  10154. this.$message.error("网络不佳");
  10155. console.error(err);
  10156. });
  10157. },
  10158. groupUpload(index, task, gindex) {
  10159. this.taskCount = task;
  10160. this.toolindex = index;
  10161. this.groupIndex = gindex;
  10162. this.dialogVisibleGroupWork = true;
  10163. },
  10164. updateGroupChair(user) {
  10165. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  10166. el.label = index;
  10167. return index != user.group;
  10168. });
  10169. this.updateGroupUser = user;
  10170. this.dialogVisibleUpdateGroup = true;
  10171. },
  10172. updateChair() {
  10173. if (
  10174. this.groupStudent[this.toolindex][this.checkChair].length >
  10175. this.groupJson.number ||
  10176. this.groupStudent[this.toolindex][this.checkChair].length ==
  10177. this.groupJson.number
  10178. ) {
  10179. this.$message.error("位置已满,无法加入");
  10180. return;
  10181. }
  10182. let params = [
  10183. {
  10184. cid: this.id,
  10185. stage: this.courseType,
  10186. task: this.taskCount,
  10187. tool: this.toolindex,
  10188. g: this.checkChair,
  10189. uid: this.updateGroupUser.userid,
  10190. },
  10191. ];
  10192. this.ajax
  10193. .post(this.$store.state.api + "joinGroup", params)
  10194. .then((res) => {
  10195. this.$message.success("修改成功");
  10196. this.updateGroupUser = {};
  10197. this.checkChair = "";
  10198. this.updateGroupArray = {};
  10199. this.dialogVisibleUpdateGroup = false;
  10200. this.getCourseDetail(2);
  10201. })
  10202. .catch((err) => {
  10203. this.$message.error("网络不佳");
  10204. console.error(err);
  10205. });
  10206. },
  10207. deleteGroupChair(gindex) {
  10208. this.checkDeleteGroup = [];
  10209. this.deleteGroupUser = JSON.parse(
  10210. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  10211. );
  10212. this.deleteGroupArray = this.groupJson.group[gindex];
  10213. this.groupIndex = gindex;
  10214. this.dialogVisibleDeleteGroup = true;
  10215. },
  10216. async deleteChair() {
  10217. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  10218. const gid =
  10219. this.groupStudent[this.toolindex][this.groupIndex][
  10220. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  10221. this.checkDeleteGroup[i]
  10222. )
  10223. ];
  10224. let params = [
  10225. {
  10226. gid: gid.id,
  10227. },
  10228. ];
  10229. var a = await this.deleteChairA(params);
  10230. if (i == this.checkDeleteGroup.length - 1) {
  10231. this.$message.success("退出成功");
  10232. this.dialogVisibleDeleteGroup = false;
  10233. this.deleteGroupUser = [];
  10234. this.deleteGroupArray = {};
  10235. this.groupIndex = "";
  10236. this.checkDeleteGroup = [];
  10237. this.getCourseDetail(2);
  10238. }
  10239. }
  10240. },
  10241. deleteChairA(params) {
  10242. return new Promise((resolve, reject) => {
  10243. this.ajax
  10244. .post(this.$store.state.api + "exitGroup", params)
  10245. .then((res) => {
  10246. resolve(1);
  10247. })
  10248. .catch((err) => {
  10249. this.$message.error("网络不佳");
  10250. console.error(err);
  10251. });
  10252. });
  10253. },
  10254. contract(i) {
  10255. if (this.isCloseList[i].isClose == 0) {
  10256. this.isCloseList[i].isClose = 1;
  10257. } else {
  10258. this.isCloseList[i].isClose = 0;
  10259. }
  10260. this.$forceUpdate();
  10261. },
  10262. },
  10263. directives: {
  10264. // 使用局部注册指令的方式
  10265. resize: {
  10266. // 指令的名称
  10267. bind(el, binding) {
  10268. // el为绑定的元素,binding为绑定给指令的对象
  10269. let width = "",
  10270. height = "";
  10271. function isReize() {
  10272. const style = document.defaultView.getComputedStyle(el);
  10273. if (width !== style.width || height !== style.height) {
  10274. binding.value(); // 关键
  10275. }
  10276. width = style.width;
  10277. height = style.height;
  10278. }
  10279. el.__vueSetInterval__ = setInterval(isReize, 300);
  10280. },
  10281. unbind(el) {
  10282. clearInterval(el.__vueSetInterval__);
  10283. },
  10284. },
  10285. },
  10286. beforeDestroy() {
  10287. window.onresize = null;
  10288. clearInterval(this.timer);
  10289. this.timer = null;
  10290. clearInterval(this.opertimer);
  10291. this.opertimer = null;
  10292. },
  10293. computed: {
  10294. contentConvent() {
  10295. return function (c) {
  10296. return c
  10297. ? c
  10298. .replaceAll(/\r\n/g, "<br/>")
  10299. .replaceAll(/\n/g, "<br/>")
  10300. .replaceAll(/\s/g, " &nbsp")
  10301. : "";
  10302. };
  10303. },
  10304. },
  10305. mounted() {
  10306. if (this.screenType == 2) {
  10307. window.parent.postMessage({ allScreen: 4 }, "*");
  10308. } else if (this.screenType == 3) {
  10309. window.parent.postMessage({ allScreen: 5 }, "*");
  10310. } else if (this.screenType == 1) {
  10311. window.parent.postMessage({ allScreen: 6 }, "*");
  10312. }
  10313. this.setOperationTime();
  10314. this.selectEva();
  10315. this.getCourseDetail();
  10316. this.selectCount();
  10317. this.getHomeWork();
  10318. this.selectCStudent();
  10319. this.contentDialog = true;
  10320. this.setContent2(true)
  10321. if (this.tType == 4) {
  10322. this.pzDialog = true;
  10323. this.selectPz();
  10324. }
  10325. document.scrollingElement.scrollTop = 0;
  10326. window.addEventListener("resize", () => {
  10327. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10328. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10329. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  10330. });
  10331. let _this = this;
  10332. setTimeout(() => {
  10333. // _this.vedioTime = [];
  10334. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  10335. // _this.vedioTime[i] = document.getElementsByClassName(
  10336. // "vjs-duration-display"
  10337. // )[i].textContent;
  10338. // }
  10339. }, 1000);
  10340. },
  10341. };
  10342. </script>
  10343. <style scoped>
  10344. @media screen and (max-width: 1280px) {
  10345. /* .courseIndex > div:first-child(2) {
  10346. width: 15% !important;
  10347. } */
  10348. /* .navText {
  10349. width: 120px !important;
  10350. } */
  10351. .evaCss {
  10352. flex-direction: column !important;
  10353. align-items: center !important;
  10354. }
  10355. .dialog_diy1>>>.el-dialog {
  10356. width: 100% !important;
  10357. }
  10358. .rightWidthCss {
  10359. width: 100% !important;
  10360. }
  10361. .dialog_diy3>>>.el-dialog {
  10362. width: 100% !important;
  10363. }
  10364. /* .textTitle >>> .el-form-item__label {
  10365. width: 150px !important;
  10366. } */
  10367. }
  10368. .evaCssMax {
  10369. flex-direction: column !important;
  10370. align-items: center !important;
  10371. }
  10372. .dialog_diy>>>.el-dialog {
  10373. margin-top: 10vh !important;
  10374. }
  10375. .body_student {
  10376. width: 77%;
  10377. height: 100%;
  10378. position: absolute;
  10379. left: 22%;
  10380. top: 0;
  10381. }
  10382. .student_head {
  10383. width: 100%;
  10384. margin: 0 auto;
  10385. padding-bottom: 20px;
  10386. display: flex;
  10387. flex-direction: column;
  10388. flex-wrap: nowrap;
  10389. align-items: flex-start;
  10390. justify-content: flex-start;
  10391. }
  10392. .pb_left {
  10393. width: 20%;
  10394. margin-right: 10px;
  10395. background: rgb(255, 255, 255);
  10396. padding-right: 10px;
  10397. position: fixed;
  10398. height: 100%;
  10399. }
  10400. .wheel>img,
  10401. .project>img,
  10402. .star>img,
  10403. .evaluate>img,
  10404. .up_photo>img,
  10405. .chapter_add>img,
  10406. .deleteWord>img,
  10407. .question>img,
  10408. .homework>img {
  10409. width: 100%;
  10410. height: 100%;
  10411. }
  10412. .upCover>img {
  10413. width: 131px;
  10414. height: 69px;
  10415. object-fit: cover;
  10416. }
  10417. .upCover {
  10418. width: calc(100% / 3.5);
  10419. position: relative;
  10420. margin: 0 15px 10px 0;
  10421. display: flex;
  10422. flex-direction: column;
  10423. flex-wrap: nowrap;
  10424. justify-content: center;
  10425. align-content: center;
  10426. align-items: center;
  10427. height: fit-content;
  10428. }
  10429. .upCover2 {
  10430. width: 100%;
  10431. position: relative;
  10432. margin: 0 15px 10px 0;
  10433. display: flex;
  10434. flex-direction: column;
  10435. flex-wrap: nowrap;
  10436. justify-content: center;
  10437. align-content: center;
  10438. align-items: center;
  10439. }
  10440. .upCover2>img {
  10441. width: 100%;
  10442. height: 90px;
  10443. object-fit: contain;
  10444. }
  10445. .chapter_add {
  10446. width: 120px;
  10447. position: relative;
  10448. text-align: center;
  10449. }
  10450. .isAddThings {
  10451. margin-top: 20px;
  10452. position: relative;
  10453. text-align: center;
  10454. background: #f7f8fa;
  10455. height: 90px;
  10456. width: 90px;
  10457. display: flex;
  10458. flex-direction: column;
  10459. justify-content: center;
  10460. }
  10461. .deleteWord {
  10462. width: 22px;
  10463. height: 22px;
  10464. position: absolute;
  10465. right: -5px;
  10466. top: -5px;
  10467. cursor: pointer;
  10468. }
  10469. .box_course {
  10470. /* width: 60%; */
  10471. width: 81%;
  10472. }
  10473. .wheel {
  10474. width: 100%;
  10475. /* height: 100%; */
  10476. height: 650px;
  10477. }
  10478. .right_box {
  10479. display: flex;
  10480. flex-direction: column;
  10481. margin-left: 30px;
  10482. justify-content: space-around;
  10483. }
  10484. .right_box_title {
  10485. font-size: 23px;
  10486. }
  10487. .people {
  10488. display: flex;
  10489. }
  10490. .student_body {
  10491. width: 100%;
  10492. margin: 0 auto;
  10493. margin-top: 10px;
  10494. padding: 0 0 20px;
  10495. }
  10496. .study_top {
  10497. margin-top: 70px;
  10498. width: 100%;
  10499. /* overflow: auto; */
  10500. height: auto;
  10501. }
  10502. .study_top .checkbox {
  10503. display: flex;
  10504. align-items: center;
  10505. padding: 15px 0 15px 30px;
  10506. flex: 0 0 auto;
  10507. font-weight: bold;
  10508. border-bottom: 1px solid #eee;
  10509. }
  10510. .study_top .check {
  10511. padding-bottom: 5px;
  10512. text-align: center;
  10513. cursor: pointer;
  10514. height: 30px;
  10515. box-sizing: border-box;
  10516. display: flex;
  10517. }
  10518. .study_top .checked {
  10519. border-bottom: 4px solid #3fc6a0;
  10520. padding-bottom: 5px;
  10521. color: #3fc6a0;
  10522. display: flex;
  10523. height: 35px;
  10524. }
  10525. .study_top .checked>div,
  10526. .study_top .check>div {
  10527. margin-right: 5px;
  10528. }
  10529. .videoTop {
  10530. display: flex;
  10531. flex-direction: row;
  10532. justify-content: space-between;
  10533. background: #fff;
  10534. align-items: center;
  10535. width: 95%;
  10536. padding: 20px;
  10537. }
  10538. .upbtn {
  10539. margin: 25px;
  10540. background: #70afdb;
  10541. color: #fff;
  10542. width: 120px;
  10543. text-align: center;
  10544. height: 30px;
  10545. line-height: 30px;
  10546. font-size: 13px;
  10547. border-radius: 5px;
  10548. cursor: pointer;
  10549. }
  10550. .filebox {
  10551. display: flex;
  10552. flex-wrap: wrap;
  10553. flex-direction: column;
  10554. padding: 15px 0 5px;
  10555. }
  10556. .filebox .tooldetail {
  10557. width: 100%;
  10558. margin: 0px 12px;
  10559. background: rgb(247, 247, 247);
  10560. padding: 20px;
  10561. line-height: 30px;
  10562. word-break: break-word;
  10563. }
  10564. .file {
  10565. display: flex;
  10566. flex-direction: column;
  10567. align-items: center;
  10568. justify-content: center;
  10569. cursor: pointer;
  10570. width: 200px;
  10571. }
  10572. .file div {
  10573. margin-top: 10px;
  10574. width: 150px;
  10575. text-align: center;
  10576. overflow: hidden;
  10577. white-space: nowrap;
  10578. text-overflow: ellipsis;
  10579. }
  10580. .media {
  10581. display: flex;
  10582. flex-direction: column;
  10583. align-items: center;
  10584. justify-content: center;
  10585. margin: 0 20px 20px 0;
  10586. cursor: pointer;
  10587. margin: 12px 0 5px 15px;
  10588. overflow: hidden;
  10589. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  10590. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  10591. box-sizing: border-box;
  10592. }
  10593. .media img {
  10594. height: 90px;
  10595. width: 160px;
  10596. object-fit: cover;
  10597. }
  10598. .media .title {
  10599. padding: 5px;
  10600. text-align: left;
  10601. width: 100%;
  10602. box-sizing: border-box;
  10603. }
  10604. .media .btn {
  10605. width: 100%;
  10606. height: 35px;
  10607. line-height: 35px;
  10608. color: #fff;
  10609. background: #606060;
  10610. text-align: center;
  10611. overflow: hidden;
  10612. white-space: nowrap;
  10613. text-overflow: ellipsis;
  10614. }
  10615. .detail_content_top {
  10616. width: 100%;
  10617. padding: 25px 0 25px 0;
  10618. }
  10619. .detail_title {
  10620. text-align: center;
  10621. font-size: 24px;
  10622. }
  10623. .detail_time {
  10624. font-size: 13px;
  10625. padding: 15px 0 0 40px;
  10626. }
  10627. .detail_content {
  10628. line-height: 2pc;
  10629. width: 90%;
  10630. margin: 0 auto;
  10631. padding-top: 30px;
  10632. text-indent: 30px;
  10633. overflow: auto;
  10634. height: 200px;
  10635. }
  10636. .score_box>>>.el-rate {
  10637. margin-left: 10px;
  10638. }
  10639. .dialog_change>>>.el-dialog {
  10640. border-radius: 5px;
  10641. }
  10642. .dialog_change>>>.el-dialog__header {
  10643. background: #f2f2f2;
  10644. text-align: center;
  10645. }
  10646. .dialog_change>>>.el-dialog__title {
  10647. line-height: 5px;
  10648. }
  10649. .dialog_change>>>.el-dialog__body {
  10650. background: #fff;
  10651. padding: 10px 20px;
  10652. }
  10653. .score_box {
  10654. display: flex;
  10655. align-items: center;
  10656. margin-bottom: 18px;
  10657. margin-top: 20px;
  10658. }
  10659. .up_photo {
  10660. width: 120px;
  10661. cursor: pointer;
  10662. margin-top: 10px;
  10663. }
  10664. .up_photo2 {
  10665. width: 180px;
  10666. box-sizing: border-box;
  10667. min-width: 180px;
  10668. height: 180px;
  10669. max-height: 180px;
  10670. min-height: 180px;
  10671. cursor: pointer;
  10672. display: flex;
  10673. flex-direction: column;
  10674. align-items: center;
  10675. justify-content: center;
  10676. background: rgb(242, 246, 255);
  10677. /* padding: 25px; */
  10678. margin-bottom: 10px;
  10679. }
  10680. .up_photo2 img {
  10681. width: 50%;
  10682. height: auto;
  10683. }
  10684. .up_photo2 span {
  10685. color: #898989;
  10686. }
  10687. .plworkBox {
  10688. display: flex;
  10689. align-items: center;
  10690. margin-top: 10px;
  10691. flex-wrap: wrap;
  10692. }
  10693. .upload_send {
  10694. margin: 30px auto 30px;
  10695. width: 60%;
  10696. background: #169bd6;
  10697. text-align: center;
  10698. height: 35px;
  10699. line-height: 35px;
  10700. color: #fff;
  10701. border-radius: 5px;
  10702. cursor: pointer;
  10703. }
  10704. .marginT {
  10705. margin-top: 20px;
  10706. }
  10707. .cd_content_steps {
  10708. display: flex;
  10709. width: 90%;
  10710. justify-content: space-around;
  10711. border-top: 1px solid #eeeeee;
  10712. }
  10713. .cd_steps_box {
  10714. display: flex;
  10715. justify-content: center;
  10716. align-items: center;
  10717. flex-direction: column;
  10718. cursor: pointer;
  10719. }
  10720. .first {
  10721. display: flex;
  10722. align-items: center;
  10723. margin: 15px 0 20px 0;
  10724. font-size: 20px;
  10725. }
  10726. .first>div:nth-child(2) {
  10727. font-size: 16px !important;
  10728. padding-left: 10px;
  10729. line-height: 26px;
  10730. box-sizing: border-box;
  10731. }
  10732. .blue_box_one {
  10733. text-align: center;
  10734. color: #fff;
  10735. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  10736. border-radius: 7px;
  10737. margin: 10px;
  10738. cursor: pointer;
  10739. width: 95%;
  10740. height: 45px;
  10741. display: flex;
  10742. flex-direction: row;
  10743. justify-content: flex-start;
  10744. align-items: center;
  10745. }
  10746. .blue_box_one>div:nth-child(1) {
  10747. line-height: 30px;
  10748. margin: 0 5px 0 10px;
  10749. width: 30%;
  10750. min-width: 70px;
  10751. border-radius: 4px;
  10752. }
  10753. .blue_box_one>div:nth-child(2) {
  10754. white-space: nowrap;
  10755. text-overflow: ellipsis;
  10756. overflow: hidden;
  10757. word-break: break-all;
  10758. width: 70%;
  10759. text-align: left;
  10760. margin-right: 10px;
  10761. max-width: calc(100% - 85px);
  10762. }
  10763. .blue_box_one>div:nth-child(2):hover {
  10764. overflow: hidden;
  10765. text-overflow: ellipsis;
  10766. white-space: nowrap;
  10767. cursor: pointer;
  10768. }
  10769. .upFile {
  10770. margin: 0 auto;
  10771. width: 120px;
  10772. background: #70afdb;
  10773. color: #fff;
  10774. height: 30px;
  10775. text-align: center;
  10776. line-height: 30px;
  10777. border-radius: 5px;
  10778. font-size: 14px;
  10779. cursor: pointer;
  10780. }
  10781. .courseTitle {
  10782. background: #205cc6;
  10783. width: 85%;
  10784. margin: 10px auto;
  10785. color: #fff;
  10786. border-radius: 5px;
  10787. padding: 10px 10px;
  10788. display: flex;
  10789. flex-direction: row;
  10790. align-items: center;
  10791. justify-content: space-between;
  10792. text-align: center;
  10793. }
  10794. .courseTitle .ctitle {
  10795. font-weight: bold;
  10796. font-size: 20px;
  10797. white-space: nowrap;
  10798. overflow: hidden;
  10799. text-overflow: ellipsis;
  10800. }
  10801. .courseTitle .inviteBox {
  10802. font-size: 14px;
  10803. margin-top: 5px;
  10804. color: #a6cbff;
  10805. }
  10806. .courseTitle>>>.el-tooltip {
  10807. width: 100%;
  10808. white-space: nowrap;
  10809. overflow: hidden;
  10810. text-overflow: ellipsis;
  10811. word-break: break-word;
  10812. }
  10813. .ml {
  10814. margin-left: 20px;
  10815. color: #5b7dba;
  10816. border-left: 3px solid #5b7dba;
  10817. padding-left: 5px;
  10818. font-weight: bold;
  10819. }
  10820. .return {
  10821. width: 2rem;
  10822. height: 2rem;
  10823. cursor: pointer;
  10824. }
  10825. .return>img {
  10826. width: 100%;
  10827. height: 100%;
  10828. }
  10829. .returnBtn {
  10830. background: #499eef;
  10831. width: 65px;
  10832. height: 30px;
  10833. color: #fff;
  10834. text-align: center;
  10835. line-height: 32px;
  10836. margin-right: 20px;
  10837. cursor: pointer;
  10838. border-radius: 5px;
  10839. font-size: 14px;
  10840. }
  10841. .tool {
  10842. display: flex;
  10843. flex-direction: column;
  10844. flex-wrap: nowrap;
  10845. width: 13%;
  10846. margin: 0 30px;
  10847. align-items: center;
  10848. }
  10849. .whiteBIcon {
  10850. width: 150px;
  10851. cursor: pointer;
  10852. }
  10853. .whiteBIcon>img {
  10854. width: 100%;
  10855. height: 100%;
  10856. }
  10857. .mask {
  10858. background-color: rgba(0, 0, 0, 0);
  10859. position: fixed;
  10860. top: 0;
  10861. left: 0;
  10862. width: 100%;
  10863. height: 100%;
  10864. z-index: 20000;
  10865. display: flex;
  10866. align-items: center;
  10867. justify-content: center;
  10868. }
  10869. .progressBox {
  10870. width: 500px;
  10871. height: 180px;
  10872. background: #fff;
  10873. border-radius: 10px;
  10874. box-shadow: 0 0 6px 1px #bfbfbf;
  10875. display: flex;
  10876. align-items: center;
  10877. justify-content: center;
  10878. flex-direction: column;
  10879. position: relative;
  10880. color: #6c6c6c;
  10881. }
  10882. .progressBox>>>.el-progress-bar__outer {
  10883. background-color: #d1dfff !important;
  10884. }
  10885. .progressBox .lbox {
  10886. height: 50px;
  10887. font-size: 19px;
  10888. display: flex;
  10889. align-items: center;
  10890. color: #747474;
  10891. }
  10892. .progressBox .lbox img {
  10893. width: 40px;
  10894. margin-right: 20px;
  10895. }
  10896. .closeCss {
  10897. position: absolute;
  10898. top: 8px;
  10899. right: 8px;
  10900. cursor: pointer;
  10901. width: 20px;
  10902. height: 20px;
  10903. }
  10904. .closeCss>img {
  10905. width: 100%;
  10906. height: 100%;
  10907. }
  10908. .uploadVedio {
  10909. display: flex;
  10910. flex-direction: column;
  10911. flex-wrap: nowrap;
  10912. justify-content: center;
  10913. align-items: center;
  10914. margin: 0 15px 10px 0;
  10915. }
  10916. .uploadVedio>img {
  10917. width: 30px;
  10918. height: 30px;
  10919. }
  10920. .uploadVedio>span {
  10921. white-space: nowrap;
  10922. overflow: hidden;
  10923. text-overflow: ellipsis;
  10924. width: 75px;
  10925. margin-top: 7px;
  10926. }
  10927. .picName {
  10928. white-space: nowrap;
  10929. overflow: hidden;
  10930. text-overflow: ellipsis;
  10931. width: 75px;
  10932. margin-top: 7px;
  10933. }
  10934. .new_top {
  10935. display: flex;
  10936. background: #fff;
  10937. flex-direction: row;
  10938. justify-content: flex-start;
  10939. align-items: center;
  10940. height: 60px;
  10941. position: relative;
  10942. }
  10943. .before {
  10944. position: absolute;
  10945. background: #c3dad4;
  10946. width: 6px;
  10947. height: 100%;
  10948. }
  10949. .courseIndex {
  10950. display: flex;
  10951. flex-direction: row;
  10952. align-items: center;
  10953. width: calc(100% - 520px);
  10954. }
  10955. .courseIndex>div:nth-child(1) {
  10956. margin: 0 20px;
  10957. padding-left: 5px;
  10958. font-size: 24px;
  10959. min-width: 100px;
  10960. font-weight: bold;
  10961. border-left: 4px solid #3363b9;
  10962. height: 35px;
  10963. text-align: center;
  10964. line-height: 35px;
  10965. }
  10966. .courseIndex>div:nth-child(2) {
  10967. font-size: 23px;
  10968. /* width: 300px; */
  10969. max-width: calc(100% - 180px);
  10970. white-space: nowrap;
  10971. overflow: hidden;
  10972. text-overflow: ellipsis;
  10973. }
  10974. .courseIndex>div:nth-child(3) {
  10975. border-bottom: 1px solid #d7d7d7;
  10976. padding-bottom: 5px;
  10977. background: #49a0f0;
  10978. width: 55px;
  10979. min-width: 55px;
  10980. border-radius: 5px;
  10981. color: #fff;
  10982. text-align: center;
  10983. height: 20px;
  10984. line-height: 26px;
  10985. font-size: 14px;
  10986. margin: 0 0 0 10px;
  10987. }
  10988. .course_text {
  10989. padding: 20px 0 0 15px;
  10990. text-indent: 30px;
  10991. width: 80%;
  10992. min-height: 20px;
  10993. }
  10994. .vedioList {
  10995. background: #f2f2f2;
  10996. border: 1px solid #ececec;
  10997. /* width: 38.8%; */
  10998. width: 100%;
  10999. height: 445px;
  11000. border-radius: 10px;
  11001. overflow: hidden;
  11002. }
  11003. .vedioNav {
  11004. margin: 10px 0 0 15px;
  11005. border-bottom: 1px solid #d7d7d7;
  11006. padding-bottom: 5px;
  11007. background: #96d1ff;
  11008. width: 55px;
  11009. min-width: 55px;
  11010. border-radius: 5px;
  11011. color: #fff;
  11012. text-align: center;
  11013. height: 20px;
  11014. line-height: 26px;
  11015. font-size: 14px;
  11016. }
  11017. .queTop {
  11018. display: flex;
  11019. padding: 20px 0 20px 30px;
  11020. width: 100%;
  11021. flex-direction: row;
  11022. justify-content: flex-start;
  11023. align-items: center;
  11024. border-bottom: 1px solid #eeeeee;
  11025. box-sizing: border-box;
  11026. }
  11027. .question {
  11028. width: 40px;
  11029. margin-right: 10px;
  11030. margin-top: 7px;
  11031. }
  11032. .queTitle {
  11033. margin-left: 5px;
  11034. font-size: 25px;
  11035. display: flex;
  11036. align-items: center;
  11037. }
  11038. .addEditor {
  11039. width: 100px;
  11040. height: 30px;
  11041. background: #42cda6;
  11042. color: #fff;
  11043. border-radius: 5px;
  11044. text-align: center;
  11045. line-height: 30px;
  11046. box-shadow: 1px 3px 6px 1px #bfbfbf;
  11047. cursor: pointer;
  11048. }
  11049. .vedioName {
  11050. /* text-overflow: ellipsis;
  11051. top: 8px;
  11052. font-size: 14px;
  11053. overflow: hidden;
  11054. width: 100%;
  11055. word-break: break-all;
  11056. white-space: nowrap; */
  11057. cursor: pointer;
  11058. margin: 0px 0px 10px 5px;
  11059. white-space: nowrap;
  11060. overflow: hidden;
  11061. text-overflow: ellipsis;
  11062. width: 100%;
  11063. }
  11064. .vedioTime {
  11065. width: 35px;
  11066. position: absolute;
  11067. color: #fff;
  11068. bottom: 0px;
  11069. right: 0px;
  11070. text-align: center;
  11071. background: #46411f;
  11072. height: 20px;
  11073. font-size: 14px;
  11074. line-height: 20px;
  11075. }
  11076. .homework {
  11077. width: 200px;
  11078. display: flex;
  11079. flex-direction: column;
  11080. flex-wrap: nowrap;
  11081. align-items: center;
  11082. cursor: pointer;
  11083. }
  11084. .homebox {
  11085. display: flex;
  11086. flex-wrap: wrap;
  11087. flex-direction: row;
  11088. justify-content: flex-start;
  11089. align-items: center;
  11090. padding: 15px 0;
  11091. }
  11092. .isChooseActive {
  11093. color: #3e88f4;
  11094. border-bottom: 2px solid #2f80f3;
  11095. }
  11096. .chooseWho {
  11097. display: flex;
  11098. width: 100%;
  11099. flex-direction: row;
  11100. flex-wrap: nowrap;
  11101. justify-content: flex-start;
  11102. padding-bottom: 10px;
  11103. }
  11104. .chooseWho>div {
  11105. cursor: pointer;
  11106. padding-bottom: 10px;
  11107. margin: 0 30px;
  11108. }
  11109. .addPoint>div>img {
  11110. cursor: pointer;
  11111. margin: 0 10px;
  11112. width: 85px;
  11113. border-radius: 15px;
  11114. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  11115. }
  11116. .addPoint>div {
  11117. display: flex;
  11118. flex-direction: column;
  11119. flex-wrap: nowrap;
  11120. align-items: center;
  11121. }
  11122. .isBorder>div {
  11123. margin: 0 0 10px 0;
  11124. align-items: flex-start !important;
  11125. }
  11126. .noiframeBox {
  11127. display: flex;
  11128. flex-wrap: wrap;
  11129. }
  11130. .iframeBox iframe {
  11131. width: 100%;
  11132. height: 800px;
  11133. border: none;
  11134. margin-bottom: 20px;
  11135. border: 1px solid #ccc;
  11136. }
  11137. .upload_toolBtn {
  11138. background: #6b92c9;
  11139. color: #fff;
  11140. width: 110px;
  11141. text-align: center;
  11142. height: 35px;
  11143. line-height: 35px;
  11144. font-size: 14px;
  11145. border-radius: 5px;
  11146. cursor: pointer;
  11147. position: absolute;
  11148. right: 10px;
  11149. bottom: 0;
  11150. }
  11151. .binfo_input,
  11152. .pj {
  11153. font: inherit;
  11154. color: currentColor;
  11155. width: 100%;
  11156. margin: 0;
  11157. padding: 15px 14px;
  11158. display: block;
  11159. min-width: 0;
  11160. outline: none;
  11161. box-sizing: content-box;
  11162. background: none;
  11163. -webkit-tap-highlight-color: transparent;
  11164. border: 1px solid rgba(0, 0, 0, 0.23);
  11165. border-radius: 4px;
  11166. box-sizing: border-box;
  11167. resize: none;
  11168. }
  11169. .binfo_input:focus-visible {
  11170. border: 1px solid rgba(61, 103, 188);
  11171. }
  11172. .dialog_diy>>>.el-dialog__header,
  11173. .dialog_diy1>>>.el-dialog__header {
  11174. background: #454545 !important;
  11175. padding: 15px 20px;
  11176. }
  11177. .dialog_diy>>>.el-dialog__title,
  11178. .dialog_diy1>>>.el-dialog__title {
  11179. color: #fff;
  11180. }
  11181. .dialog_diy>>>.el-dialog__headerbtn,
  11182. .dialog_diy1>>>.el-dialog__headerbtn {
  11183. top: 19px;
  11184. }
  11185. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  11186. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  11187. color: #fff;
  11188. }
  11189. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  11190. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  11191. color: #fff;
  11192. }
  11193. .dialog_diy1>>>.el-dialog__body {
  11194. padding: 0;
  11195. }
  11196. .dialog_diy>>>.el-dialog__body,
  11197. .dialog_diy>>>.el-dialog__footer,
  11198. .dialog_diy1>>>.el-dialog__footer {
  11199. background: #fafafa;
  11200. }
  11201. .a_addBox {
  11202. margin: 10px 0;
  11203. background: #fff;
  11204. padding: 15px;
  11205. max-height: 400px;
  11206. overflow: auto;
  11207. }
  11208. .a_add_box {
  11209. border-bottom: 2px solid #eee;
  11210. padding-bottom: 10px;
  11211. }
  11212. .a_add_head {
  11213. display: flex;
  11214. align-items: flex-start;
  11215. /* justify-content: space-between; */
  11216. flex-direction: column;
  11217. /* flex-direction: row; */
  11218. margin: 10px 0 20px 0;
  11219. font-size: 18px;
  11220. width: 100%;
  11221. }
  11222. .a_add_head .a_add_head_input {
  11223. width: 300px;
  11224. }
  11225. .a_add_head .a_add_head_div {
  11226. display: flex;
  11227. align-items: center;
  11228. justify-content: space-between;
  11229. }
  11230. .a_add_body {
  11231. display: flex;
  11232. align-items: center;
  11233. }
  11234. .a_add_input {
  11235. display: flex;
  11236. align-items: center;
  11237. flex-wrap: wrap;
  11238. }
  11239. .a_add_input>>>el-radio-group {
  11240. margin: 10px 0;
  11241. }
  11242. .a_add_input>>>.el-radio,
  11243. .a_add_input>>>.el-checkbox {
  11244. margin-bottom: 10px;
  11245. display: flex;
  11246. flex-direction: row;
  11247. flex-wrap: nowrap;
  11248. align-items: center;
  11249. }
  11250. .redioStyle>>>.el-radio__label {
  11251. font-size: 18px;
  11252. }
  11253. .redioStyle>>>.el-checkbox__label {
  11254. font-size: 18px;
  11255. }
  11256. .toolHeng2 {
  11257. width: 100%;
  11258. }
  11259. .toolHeng {
  11260. display: flex;
  11261. flex-direction: row;
  11262. flex-wrap: wrap;
  11263. justify-content: flex-start;
  11264. align-items: center;
  11265. width: 100%;
  11266. }
  11267. .toolHeng>div {
  11268. padding-left: 20px;
  11269. }
  11270. .isWidth {
  11271. width: 20%;
  11272. }
  11273. .textTitle {
  11274. display: flex;
  11275. flex-direction: row;
  11276. flex-wrap: nowrap;
  11277. align-items: center;
  11278. width: 95%;
  11279. }
  11280. .textTitle>>>.el-form-item__label {
  11281. font-size: 22px;
  11282. color: #918f8f;
  11283. width: 100px;
  11284. }
  11285. .textTitle>>>.el-form-item__content {
  11286. width: calc(100% - 100px);
  11287. }
  11288. .textCss>>>.el-dialog {
  11289. width: 800px !important;
  11290. height: 400px;
  11291. background: #fafafa;
  11292. }
  11293. .textCss>>>.el-dialog__body {
  11294. margin: 55px 8% 0 8%;
  11295. padding: 0 !important;
  11296. }
  11297. .textCss>>>.el-dialog__footer {
  11298. padding-top: 38px;
  11299. }
  11300. .toolsCss>>>.el-dialog__body {
  11301. padding: 20px;
  11302. }
  11303. .lineCss>>>.el-dialog__body {
  11304. display: flex;
  11305. flex-direction: row;
  11306. align-items: center;
  11307. justify-content: center;
  11308. }
  11309. .newNav {
  11310. display: flex;
  11311. flex-direction: row;
  11312. align-items: baseline;
  11313. justify-content: flex-start;
  11314. }
  11315. .navText {
  11316. cursor: pointer;
  11317. margin: 0px 0px 10px 5px;
  11318. white-space: nowrap;
  11319. overflow: hidden;
  11320. text-overflow: ellipsis;
  11321. /* width: 300px; */
  11322. width: 100%;
  11323. }
  11324. .noVedio {
  11325. display: flex;
  11326. flex-direction: row;
  11327. justify-content: center;
  11328. align-content: center;
  11329. }
  11330. .noNavText {
  11331. cursor: pointer;
  11332. margin: 0px 0px 10px 5px;
  11333. width: 112px;
  11334. }
  11335. .listNoVedio {
  11336. margin: 0 0 0 30px;
  11337. width: 97%;
  11338. }
  11339. .video-player>>>.video-js {
  11340. height: 100%;
  11341. }
  11342. .hangVedioList {
  11343. width: 90% !important;
  11344. height: 150px !important;
  11345. margin: 20px 0 0 30px;
  11346. }
  11347. .hangVedio {
  11348. width: 100%;
  11349. height: 170px !important;
  11350. align-items: flex-start !important;
  11351. }
  11352. .hangHand {
  11353. height: 150px !important;
  11354. }
  11355. .twoChild {
  11356. width: 95%;
  11357. margin: 10px;
  11358. border-radius: 5px;
  11359. background: #f2f2f2;
  11360. display: flex;
  11361. flex-direction: column;
  11362. flex-wrap: nowrap;
  11363. justify-content: flex-start;
  11364. align-items: flex-start;
  11365. transition: all 0.5s;
  11366. overflow: hidden;
  11367. height: 0;
  11368. background: #e7f3ff;
  11369. }
  11370. .twoChild>div:nth-child(1) {
  11371. margin-top: 5px;
  11372. }
  11373. .navChild {
  11374. width: 100%;
  11375. cursor: pointer;
  11376. margin-bottom: 10px;
  11377. position: relative;
  11378. }
  11379. .navChild img {
  11380. position: absolute;
  11381. right: 11px;
  11382. width: 15px;
  11383. top: 50%;
  11384. transform: translateY(-50%);
  11385. }
  11386. .navActive {
  11387. height: auto;
  11388. }
  11389. .navTask {
  11390. display: flex;
  11391. flex-direction: row;
  11392. flex-wrap: nowrap;
  11393. align-items: center;
  11394. align-content: flex-start;
  11395. height: 40px;
  11396. justify-content: flex-start;
  11397. padding: 0 10px;
  11398. width: 100%;
  11399. box-sizing: border-box;
  11400. }
  11401. .navTaskname {
  11402. white-space: nowrap;
  11403. text-overflow: ellipsis;
  11404. overflow: hidden;
  11405. word-break: break-all;
  11406. padding-left: 5px;
  11407. }
  11408. .openTaskActive {
  11409. color: #4386e6;
  11410. }
  11411. .iframeName {
  11412. margin: 5px 0;
  11413. border-left: 4px solid #41c4a4;
  11414. padding-left: 4px;
  11415. }
  11416. .toolTitle {
  11417. margin: 0px 0px 20px;
  11418. font-size: 20px;
  11419. font-weight: 500;
  11420. border-left: 4px solid #41c4a4;
  11421. padding-left: 4px;
  11422. }
  11423. .cru_selectBox {
  11424. overflow: auto;
  11425. width: 96%;
  11426. margin: 0 auto;
  11427. height: calc(100% - 40px - 21px - 20px);
  11428. }
  11429. .cru_selectBox::-webkit-scrollbar,
  11430. .study_top::-webkit-scrollbar,
  11431. .textContent::-webkit-scrollbar {
  11432. /*滚动条整体样式*/
  11433. width: 6px;
  11434. /*高宽分别对应横竖滚动条的尺寸*/
  11435. height: 6px;
  11436. }
  11437. /*定义滚动条轨道 内阴影+圆角*/
  11438. .cru_selectBox::-webkit-scrollbar-track,
  11439. .study_top::-webkit-scrollbar-track,
  11440. .textContent::-webkit-scrollbar {
  11441. border-radius: 10px;
  11442. background-color: #b8bdc9;
  11443. }
  11444. /*定义滑块 内阴影+圆角*/
  11445. .cru_selectBox::-webkit-scrollbar-thumb,
  11446. .study_top::-webkit-scrollbar-thumb,
  11447. .textContent::-webkit-scrollbar-thumb {
  11448. border-radius: 10px;
  11449. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  11450. background-color: #2c5ab3;
  11451. }
  11452. .vedioBox {
  11453. border-radius: 20px;
  11454. background: #fff;
  11455. margin-bottom: 10px;
  11456. }
  11457. .taskBox {
  11458. margin: 15px auto 20px;
  11459. background: #f7f7f7;
  11460. width: 97%;
  11461. border-radius: 10px;
  11462. }
  11463. .vedioTaskBox {
  11464. width: 100%;
  11465. display: flex;
  11466. flex-direction: row;
  11467. flex-wrap: nowrap;
  11468. align-items: flex-start;
  11469. position: relative;
  11470. }
  11471. .toolBox {
  11472. padding: 20px 0 0 0;
  11473. display: flex;
  11474. }
  11475. .btnAll {
  11476. position: absolute;
  11477. right: 0;
  11478. display: flex;
  11479. flex-direction: row;
  11480. flex-wrap: nowrap;
  11481. align-items: center;
  11482. }
  11483. .vedioTimeBox {
  11484. display: flex;
  11485. flex-direction: row;
  11486. align-items: center;
  11487. flex-wrap: nowrap;
  11488. position: relative;
  11489. }
  11490. .navBox {
  11491. background: #fff;
  11492. height: calc(100% - 40px);
  11493. padding: 5px 1px 0;
  11494. overflow-y: auto;
  11495. overflow-x: hidden;
  11496. }
  11497. .worksBox {
  11498. padding: 5px 0 0 10px;
  11499. border-bottom: 1px solid #eeeeee;
  11500. }
  11501. .worksBTitle {
  11502. font-size: 20px;
  11503. padding-bottom: 15px;
  11504. border-bottom: 1px solid #eeeeee;
  11505. display: flex;
  11506. align-items: center;
  11507. }
  11508. .greenBox {
  11509. width: 5px;
  11510. height: 30px;
  11511. background: #63b6fa;
  11512. margin-right: 5px;
  11513. }
  11514. .worksDetailBox {
  11515. display: flex;
  11516. width: 100%;
  11517. flex-direction: row;
  11518. flex-wrap: wrap;
  11519. align-items: flex-end;
  11520. justify-content: flex-start;
  11521. padding: 15px 0;
  11522. }
  11523. .works {
  11524. display: flex;
  11525. flex-direction: column;
  11526. flex-wrap: nowrap;
  11527. align-items: flex-start;
  11528. justify-content: flex-start;
  11529. align-content: center;
  11530. max-width: 240px;
  11531. width: calc(100% / 3 - 10px);
  11532. height: auto;
  11533. margin-right: 10px;
  11534. margin-bottom: 10px;
  11535. overflow: hidden;
  11536. height: 140px;
  11537. box-shadow: 0 0 6px 1px #dfdada;
  11538. border-radius: 15px;
  11539. }
  11540. .workImg {
  11541. width: 100%;
  11542. /* height: calc(100% - 40px); */
  11543. height: 105px;
  11544. position: relative;
  11545. }
  11546. .workImg>img {
  11547. width: 100%;
  11548. height: 100%;
  11549. object-fit: contain;
  11550. cursor: pointer;
  11551. }
  11552. .worksName {
  11553. height: 40px;
  11554. line-height: 40px;
  11555. display: flex;
  11556. width: 100%;
  11557. flex-direction: row;
  11558. flex-wrap: nowrap;
  11559. justify-content: space-between;
  11560. align-items: center;
  11561. margin: 0 0 0 10px;
  11562. }
  11563. .worksName>div:nth-child(1) {
  11564. width: 110px;
  11565. white-space: nowrap;
  11566. overflow: hidden;
  11567. text-overflow: ellipsis;
  11568. }
  11569. .worksName>div:nth-child(2) {
  11570. color: #b7b4b5;
  11571. }
  11572. .noWorksS {
  11573. padding: 15px 0;
  11574. display: flex;
  11575. flex-direction: row;
  11576. flex-wrap: wrap;
  11577. align-items: center;
  11578. justify-content: flex-start;
  11579. }
  11580. .noWorksName,
  11581. .isWorksName {
  11582. background: #7cbcf1;
  11583. color: #fff;
  11584. width: 90px;
  11585. height: 25px;
  11586. text-align: center;
  11587. line-height: 25px;
  11588. border-radius: 5px;
  11589. margin: 10px 15px 10px 0;
  11590. white-space: nowrap;
  11591. overflow: hidden;
  11592. padding: 5px;
  11593. text-overflow: ellipsis;
  11594. }
  11595. .isWorksName {
  11596. cursor: pointer;
  11597. background: #46a1eb !important;
  11598. width: 100px;
  11599. height: 40px;
  11600. line-height: 40px;
  11601. position: relative;
  11602. }
  11603. .noWorksName:hover {
  11604. background: #46a1eb !important;
  11605. }
  11606. .title {
  11607. background: #1e5cc9;
  11608. /* width: 98%; */
  11609. height: 45px;
  11610. color: #fff;
  11611. line-height: 45px;
  11612. padding-left: 20px;
  11613. box-sizing: border-box;
  11614. }
  11615. .textBox {
  11616. font-size: 20px;
  11617. width: 90%;
  11618. display: flex;
  11619. flex-direction: column;
  11620. align-items: center;
  11621. margin: 20px auto 0;
  11622. max-height: 500px;
  11623. overflow: auto;
  11624. }
  11625. .textContent {
  11626. font-size: 18px;
  11627. width: 95%;
  11628. max-width: 95%;
  11629. }
  11630. .answerBg {
  11631. background: url("../assets/icon/answerBgNew.png") no-repeat;
  11632. background-size: 100% 100%;
  11633. width: 100%;
  11634. height: 100%;
  11635. color: #fff;
  11636. text-align: center;
  11637. display: flex;
  11638. flex-direction: column;
  11639. flex-wrap: nowrap;
  11640. align-items: center;
  11641. position: relative;
  11642. justify-content: center;
  11643. }
  11644. .answerBg>div:nth-child(1) {
  11645. /* font-size: 22px;
  11646. padding: 25px 0 10px; */
  11647. }
  11648. .answerContent {
  11649. width: 215px;
  11650. max-height: 60px;
  11651. word-break: break-all;
  11652. text-align: center;
  11653. /* white-space: nowrap; */
  11654. overflow: hidden;
  11655. text-overflow: ellipsis;
  11656. /* padding: 23px 0 0; */
  11657. -webkit-line-clamp: 3;
  11658. -webkit-box-orient: vertical;
  11659. display: -webkit-box;
  11660. font-size: 15px;
  11661. }
  11662. .elist_input_box {
  11663. display: flex;
  11664. align-items: flex-start;
  11665. flex-wrap: nowrap;
  11666. padding: 10px 0 15px 30px;
  11667. flex-direction: column;
  11668. }
  11669. .elist_input {
  11670. /* width: 40%; */
  11671. width: 100%;
  11672. }
  11673. .elist_input .elist_input_box input {
  11674. font: inherit;
  11675. color: currentColor;
  11676. width: 200px;
  11677. padding: 8px 14px;
  11678. display: block;
  11679. min-width: 0;
  11680. outline: none;
  11681. border: 1px solid rgba(0, 0, 0, 0.23);
  11682. border-radius: 4px;
  11683. box-sizing: border-box;
  11684. background: #fff;
  11685. margin: 0 20px 0 0;
  11686. }
  11687. .elist_input .elist_input_box span {
  11688. height: 36px;
  11689. line-height: 36px;
  11690. color: rgb(82, 82, 82);
  11691. }
  11692. .elist_input .elist_input_box .remove {
  11693. height: 20px;
  11694. width: 20px;
  11695. background-size: 100% 100%;
  11696. background-position: unset;
  11697. margin-left: 5px;
  11698. }
  11699. .elist_input_box>>>.el-rate {
  11700. display: flex;
  11701. height: 36px;
  11702. align-items: center;
  11703. }
  11704. .elist_input_box .elist_inptu_text {
  11705. min-height: 50px;
  11706. /* width: 500px;
  11707. max-height: 150px; */
  11708. width: 100%;
  11709. line-height: 50px;
  11710. color: rgb(82, 82, 82);
  11711. overflow: auto;
  11712. text-indent: 5px;
  11713. background: #f7f6f9;
  11714. border-radius: 10px;
  11715. }
  11716. .elist_input_box .elist_inptu_text input {
  11717. width: 500px;
  11718. }
  11719. .elist_input_box>>>.el-rate__icon {
  11720. font-size: 24px;
  11721. }
  11722. .isClick {
  11723. background: #4d9def;
  11724. }
  11725. .bzBox {
  11726. display: flex;
  11727. flex-direction: row;
  11728. align-items: center;
  11729. }
  11730. .bzBox>div:nth-child(1) {
  11731. width: 4px;
  11732. height: 40px;
  11733. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  11734. }
  11735. .bzBox>div:nth-child(2) {
  11736. font-size: 23px;
  11737. font-weight: bold;
  11738. padding: 0px 0px 0 10px;
  11739. }
  11740. .navTitile {
  11741. padding: 0 0px 0 15px;
  11742. color: #fff;
  11743. height: 40px;
  11744. line-height: 40px;
  11745. }
  11746. .isTypeOne {
  11747. width: 240px;
  11748. height: 170px;
  11749. /* border: 1px solid #f8f8f8; */
  11750. border-radius: 10px;
  11751. box-shadow: 0 0 6px 1px #dfdada;
  11752. }
  11753. .e_add_top {
  11754. display: flex;
  11755. justify-content: space-between;
  11756. padding: 20px 20px 0 20px;
  11757. border-radius: 3px;
  11758. background: #fff;
  11759. }
  11760. .e_add_title2 {
  11761. display: flex;
  11762. align-items: center;
  11763. }
  11764. .e_add_title2 span {
  11765. width: 40px;
  11766. }
  11767. .e_add_title {
  11768. display: flex;
  11769. align-items: center;
  11770. color: #b8b8b8;
  11771. font-size: 18px;
  11772. position: relative;
  11773. height: 40px;
  11774. }
  11775. .e_add_title span {
  11776. margin-right: 10px;
  11777. }
  11778. .e_add_title .el_input {
  11779. width: 300px;
  11780. }
  11781. .e_add_title>>>.el-input__inner {
  11782. width: 400px;
  11783. }
  11784. .e_add_btn {}
  11785. .e_add_content {
  11786. display: flex;
  11787. width: 100%;
  11788. max-width: 650px;
  11789. height: 550px;
  11790. }
  11791. .e_add_list {
  11792. background: #fff;
  11793. height: 500px;
  11794. width: 210px;
  11795. position: relative;
  11796. margin: 15px 5px 0 0;
  11797. flex-shrink: 0;
  11798. display: flex;
  11799. flex-direction: column;
  11800. }
  11801. .e_add_list_title {
  11802. font-size: 20px;
  11803. width: 100%;
  11804. box-sizing: border-box;
  11805. padding: 15px 40px;
  11806. text-align: center;
  11807. border-bottom: 1px solid #eaeaea;
  11808. position: relative;
  11809. display: flex;
  11810. align-items: center;
  11811. justify-content: center;
  11812. height: 57px;
  11813. background: #f6f6f6;
  11814. }
  11815. .e_add_list_title span {
  11816. overflow: hidden;
  11817. white-space: nowrap;
  11818. text-overflow: ellipsis;
  11819. }
  11820. .e_add_list_title img {
  11821. position: absolute;
  11822. right: 15px;
  11823. width: 25px;
  11824. cursor: pointer;
  11825. top: 50%;
  11826. transform: translateY(-50%);
  11827. }
  11828. .e_add_list_body {
  11829. height: calc(100% - 187px);
  11830. overflow: auto;
  11831. }
  11832. .e_add_list_child {
  11833. width: 100%;
  11834. display: flex;
  11835. align-items: center;
  11836. justify-content: center;
  11837. position: relative;
  11838. box-sizing: border-box;
  11839. padding: 15px 40px;
  11840. text-align: center;
  11841. }
  11842. .e_add_list_child span {
  11843. overflow: hidden;
  11844. white-space: nowrap;
  11845. text-overflow: ellipsis;
  11846. cursor: pointer;
  11847. }
  11848. .e_add_list_child img {
  11849. position: absolute;
  11850. right: 10px;
  11851. width: 21px;
  11852. cursor: pointer;
  11853. top: 50%;
  11854. transform: translateY(-50%);
  11855. }
  11856. .e_add_list_child+.e_add_list_child {
  11857. border-top: 1px solid #eaeaea;
  11858. }
  11859. .e_add_list_child .active {
  11860. color: #409eff;
  11861. }
  11862. .e_add_list_btn {
  11863. position: absolute;
  11864. bottom: 0;
  11865. height: 50px;
  11866. background: rgb(120, 120, 254);
  11867. width: 100%;
  11868. color: #fff;
  11869. font-size: 16px;
  11870. text-align: center;
  11871. line-height: 50px;
  11872. cursor: pointer;
  11873. }
  11874. .e_add_list_detail {
  11875. position: absolute;
  11876. bottom: 0;
  11877. height: 130px;
  11878. background: rgb(120, 120, 254);
  11879. width: 100%;
  11880. color: #fff;
  11881. font-size: 16px;
  11882. display: flex;
  11883. align-items: center;
  11884. justify-content: center;
  11885. }
  11886. .e_add_list_detail textarea {
  11887. height: 90%;
  11888. width: 95%;
  11889. border: none;
  11890. resize: none;
  11891. outline: none;
  11892. padding: 5px;
  11893. box-sizing: border-box;
  11894. }
  11895. .e_add_list_pbox {
  11896. width: 100%;
  11897. max-width: 650px;
  11898. /* height: 600px; */
  11899. }
  11900. .e_add_list_pbox_title {
  11901. height: 50px;
  11902. background: #fff;
  11903. display: flex;
  11904. align-items: center;
  11905. width: 100%;
  11906. box-sizing: border-box;
  11907. padding: 0 20px;
  11908. }
  11909. .type_title {
  11910. font-size: 18px;
  11911. font-weight: 700;
  11912. }
  11913. .type_content {
  11914. font-size: 16px;
  11915. margin-left: 30px;
  11916. }
  11917. .type_content span+span {
  11918. margin-left: 20px;
  11919. }
  11920. .type_content span {
  11921. cursor: pointer;
  11922. padding-bottom: 5px;
  11923. box-sizing: border-box;
  11924. }
  11925. .type_content .active {
  11926. color: #409eff;
  11927. border-bottom: 2px solid #409eff;
  11928. }
  11929. .e_add_list_pbox_content {
  11930. height: calc(100% - 50px);
  11931. display: flex;
  11932. align-items: center;
  11933. width: 100%;
  11934. background: #fff;
  11935. }
  11936. .evaCss {
  11937. display: flex;
  11938. flex-direction: row;
  11939. flex-wrap: nowrap;
  11940. align-items: flex-start;
  11941. }
  11942. .cru_line {
  11943. position: absolute;
  11944. bottom: 0px;
  11945. transition: all 0.5s;
  11946. left: 0px;
  11947. width: 125px;
  11948. margin-left: -25px;
  11949. }
  11950. .isNoMessage {
  11951. width: 20%;
  11952. margin: 25% auto 0;
  11953. }
  11954. .isNoMessage>img {
  11955. width: 100%;
  11956. height: 100%;
  11957. }
  11958. .fullStyle>>>.el-dialog__body {
  11959. height: 100% !important;
  11960. }
  11961. .fullStyle>>>.el-dialog,
  11962. .fullStyle {
  11963. width: 100% !important;
  11964. max-width: 100% !important;
  11965. height: 100% !important;
  11966. margin: 0 !important;
  11967. }
  11968. .full_diy>>>.el-dialog {
  11969. margin: 0 !important;
  11970. height: 100%;
  11971. padding: 4px;
  11972. }
  11973. .full_diy>>>.el-dialog__body {
  11974. height: calc(100% - 100px);
  11975. }
  11976. .full_diy2>>>.el-dialog__body {
  11977. height: calc(100% - 50px);
  11978. padding: 0;
  11979. }
  11980. .switchCss {
  11981. /* width: 100%; */
  11982. display: flex;
  11983. flex-direction: row;
  11984. flex-wrap: nowrap;
  11985. align-items: center;
  11986. /* justify-content: center; */
  11987. }
  11988. .isClickNav {
  11989. color: #499eef;
  11990. }
  11991. .commentImg {
  11992. width: 25px;
  11993. height: 25px;
  11994. cursor: pointer;
  11995. }
  11996. .commentImg>img {
  11997. width: 100%;
  11998. height: 100%;
  11999. }
  12000. .comment {
  12001. background: #f9f9f9;
  12002. border-radius: 0 0 15px 15px;
  12003. display: flex;
  12004. flex-direction: row;
  12005. flex-wrap: nowrap;
  12006. align-items: center;
  12007. justify-content: flex-end;
  12008. height: 35px;
  12009. }
  12010. .commentList {
  12011. display: flex;
  12012. flex-direction: row;
  12013. flex-wrap: nowrap;
  12014. align-items: center;
  12015. justify-content: center;
  12016. align-content: center;
  12017. /* margin-left: 15px; */
  12018. /* margin-left: 8px; */
  12019. }
  12020. .scoreImg {
  12021. width: 17px;
  12022. height: 17px;
  12023. }
  12024. .studentDetail {
  12025. display: flex;
  12026. flex-direction: row;
  12027. flex-wrap: nowrap;
  12028. /* align-items: center; */
  12029. align-items: flex-start;
  12030. }
  12031. .tx {
  12032. width: 50px;
  12033. }
  12034. .tx>img {
  12035. width: 100%;
  12036. height: 100%;
  12037. }
  12038. .nameAndTime {
  12039. display: flex;
  12040. flex-direction: column;
  12041. flex-wrap: nowrap;
  12042. align-items: flex-start;
  12043. margin-left: 10px;
  12044. }
  12045. .worksAnswer {
  12046. color: #4078dd;
  12047. margin: 10px 0;
  12048. font-size: 16px;
  12049. position: relative;
  12050. }
  12051. .worksAnswer>img {
  12052. width: 500px;
  12053. height: 300px;
  12054. object-fit: contain;
  12055. margin: 0 auto;
  12056. display: block;
  12057. }
  12058. .commentTop {
  12059. border-bottom: 1px solid #eaeaea;
  12060. padding-bottom: 10px;
  12061. }
  12062. .commentBox {
  12063. padding-top: 15px;
  12064. }
  12065. .pl {
  12066. font-size: 18px;
  12067. }
  12068. .plPerson {
  12069. width: 100%;
  12070. }
  12071. .plName {
  12072. display: flex;
  12073. flex-direction: row;
  12074. flex-wrap: nowrap;
  12075. align-items: baseline;
  12076. color: #78787a;
  12077. width: 100%;
  12078. }
  12079. .deleteComment {
  12080. cursor: pointer;
  12081. margin-left: auto;
  12082. color: #237ade;
  12083. }
  12084. .plContent {
  12085. margin-top: 5px;
  12086. }
  12087. .evalCss {
  12088. background: #fff;
  12089. font-size: 18px;
  12090. }
  12091. .nav {
  12092. color: #9d9d9d;
  12093. padding: 5px 0 15px 20px;
  12094. }
  12095. .middleBox {
  12096. padding: 5px 0 15px 20px;
  12097. }
  12098. .pfBox {
  12099. padding-bottom: 30px;
  12100. }
  12101. .nameAndrate {
  12102. display: flex;
  12103. flex-direction: row;
  12104. flex-wrap: nowrap;
  12105. align-items: center;
  12106. padding-bottom: 10px;
  12107. height: 30px;
  12108. line-height: 30px;
  12109. }
  12110. .nameAndrate>div {
  12111. margin-left: 10px;
  12112. color: #000;
  12113. height: 30px;
  12114. }
  12115. .nameAndrate>>>.el-rate__icon {
  12116. font-size: 28px !important;
  12117. }
  12118. .pfBox>div:nth-child(2) {
  12119. background: #f7f6f9;
  12120. width: 400px;
  12121. min-height: 45px;
  12122. border-radius: 10px;
  12123. font-size: 16px;
  12124. display: flex;
  12125. flex-wrap: wrap;
  12126. align-items: center;
  12127. padding: 10px 20px;
  12128. box-sizing: border-box;
  12129. color: #000;
  12130. }
  12131. .bz {
  12132. display: flex;
  12133. flex-direction: row;
  12134. flex-wrap: nowrap;
  12135. align-items: flex-start;
  12136. }
  12137. .bz>div {
  12138. padding: 0 10px;
  12139. }
  12140. .select_box2_title {
  12141. background: #fff;
  12142. border-radius: 5px;
  12143. padding: 15px 10px;
  12144. box-sizing: border-box;
  12145. margin-bottom: 10px;
  12146. display: flex;
  12147. flex-direction: row;
  12148. flex-wrap: nowrap;
  12149. align-items: center;
  12150. }
  12151. .select_box2_title>div:nth-child(2) {
  12152. margin-left: 10px;
  12153. color: #c4c4c4;
  12154. }
  12155. .select_box2_box {
  12156. display: flex;
  12157. height: 500px;
  12158. }
  12159. .select_box2_img {
  12160. width: calc(100% - 310px);
  12161. height: 100%;
  12162. overflow: auto;
  12163. background: #fff;
  12164. border-radius: 5px;
  12165. }
  12166. .select_box2_img img {
  12167. width: 100%;
  12168. }
  12169. .select_box2_answer {
  12170. background: #fff;
  12171. margin-left: 10px;
  12172. border-radius: 5px;
  12173. width: 300px;
  12174. overflow: auto;
  12175. height: 90%;
  12176. display: flex;
  12177. flex-direction: column;
  12178. align-items: flex-start;
  12179. padding-top: 10px;
  12180. box-sizing: border-box;
  12181. position: relative;
  12182. }
  12183. .select_answer_title {
  12184. padding: 0 0 15px 20px;
  12185. color: #c4c4c4;
  12186. }
  12187. .select_box2_answer_box {
  12188. margin: 0 0 10px 20px;
  12189. width: 85%;
  12190. display: flex;
  12191. flex-direction: row;
  12192. flex-wrap: nowrap;
  12193. align-items: center;
  12194. }
  12195. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  12196. color: #000;
  12197. }
  12198. .upAnswerCss {
  12199. position: absolute;
  12200. bottom: 15px;
  12201. right: 15px;
  12202. }
  12203. .upAnswerCss>>>.el-button {
  12204. width: 95px;
  12205. height: 35px;
  12206. line-height: 35px;
  12207. padding: 0;
  12208. }
  12209. .rightWidthCss {
  12210. width: 60%;
  12211. display: flex;
  12212. flex-direction: row;
  12213. align-items: flex-start;
  12214. }
  12215. .rightAnswer {
  12216. display: flex;
  12217. flex-direction: row;
  12218. flex-wrap: nowrap;
  12219. align-items: center;
  12220. color: red;
  12221. margin-bottom: 31px;
  12222. }
  12223. .rightAnswerCss {
  12224. display: flex;
  12225. flex-direction: column;
  12226. flex-wrap: nowrap;
  12227. padding-top: 60px;
  12228. }
  12229. .blueCss {
  12230. color: #767de1;
  12231. margin-left: 10px;
  12232. }
  12233. .redCss {
  12234. color: red;
  12235. }
  12236. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  12237. color: rgb(0 123 255) !important;
  12238. }
  12239. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  12240. color: rgb(0 123 255) !important;
  12241. }
  12242. .zuoyeYulan {
  12243. padding-top: 15px;
  12244. font-size: 18px;
  12245. display: flex;
  12246. align-items: flex-end;
  12247. }
  12248. .buttonA {
  12249. margin-left: 10px;
  12250. padding: 0;
  12251. }
  12252. .displayBox {
  12253. margin-bottom: 10px;
  12254. display: block;
  12255. border-bottom: 3px solid #eee;
  12256. display: flex;
  12257. align-items: center;
  12258. }
  12259. .easy_comment {
  12260. width: calc(100% - 90px);
  12261. margin-left: 10px;
  12262. display: flex;
  12263. flex-wrap: wrap;
  12264. }
  12265. .easy_comment>div {
  12266. border: 1px solid #4a4a4a;
  12267. color: #666;
  12268. border-radius: 15px;
  12269. padding: 5px 10px;
  12270. font-size: 16px;
  12271. margin-bottom: 10px;
  12272. margin-right: 5px;
  12273. cursor: pointer;
  12274. }
  12275. .easy_comment div:hover {
  12276. border: 1px solid #f7ba2a;
  12277. color: #c69217;
  12278. }
  12279. .xuan_right_box {
  12280. padding: 10px;
  12281. background: rgb(247, 247, 247);
  12282. margin: 10px 12px;
  12283. border-radius: 5px;
  12284. }
  12285. .tool_right_box {
  12286. display: flex;
  12287. align-items: center;
  12288. }
  12289. .tool_right_box+.tool_right_box {
  12290. margin-top: 10px;
  12291. }
  12292. .right_box_xuan {
  12293. background: rgb(0 123 255);
  12294. color: #fff;
  12295. border-radius: 5px;
  12296. padding: 5px;
  12297. margin-left: 10px;
  12298. }
  12299. .pButton:hover {
  12300. opacity: 1 !important;
  12301. }
  12302. .pButton {
  12303. position: fixed;
  12304. /* right: 5%; */
  12305. /* bottom: 5%; */
  12306. color: #fff;
  12307. /* width: 50px;
  12308. height: 50px; */
  12309. /* border-radius: 50%; */
  12310. text-align: center;
  12311. /* line-height: 50px; */
  12312. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  12313. cursor: pointer;
  12314. z-index: 999;
  12315. right: 0;
  12316. top: 83px;
  12317. width: 50px;
  12318. height: 50px;
  12319. background: #fff;
  12320. display: flex;
  12321. align-items: center;
  12322. justify-content: center;
  12323. box-shadow: 0px 0 8px 2px #c5c5c5;
  12324. border-radius: 5px;
  12325. }
  12326. .pzClass {
  12327. width: calc(100% - 340px);
  12328. }
  12329. .newDialogCss {
  12330. /* position: fixed;
  12331. right: 5%;
  12332. top: 50%;
  12333. width: 340px;
  12334. transform: translateY(-50%);
  12335. height: 60%;
  12336. box-shadow: 0px 0 8px 0px #555555;
  12337. border-radius: 15px;
  12338. z-index: 999; */
  12339. position: fixed;
  12340. right: 0;
  12341. top: 70px;
  12342. width: 340px;
  12343. height: calc(100% - 80px);
  12344. z-index: 999;
  12345. background: #fff;
  12346. border-radius: 15px;
  12347. border-top-right-radius: 0px;
  12348. border-bottom-right-radius: 0px;
  12349. overflow: hidden;
  12350. }
  12351. .pzTop {
  12352. color: #fff;
  12353. background: #000;
  12354. display: flex;
  12355. flex-direction: row;
  12356. flex-wrap: nowrap;
  12357. align-items: center;
  12358. justify-content: space-between;
  12359. height: 40px;
  12360. border-radius: 15px 15px 0 0;
  12361. }
  12362. .pzTop2 .checkbox {
  12363. display: flex;
  12364. align-items: center;
  12365. padding: 15px 30px;
  12366. flex: 0 0 auto;
  12367. font-weight: bold;
  12368. border-bottom: 1px solid #eee;
  12369. justify-content: space-between;
  12370. }
  12371. .pzTop2 .check {
  12372. text-align: center;
  12373. cursor: pointer;
  12374. box-sizing: border-box;
  12375. display: flex;
  12376. }
  12377. .pzTop2 img {
  12378. width: 25px;
  12379. cursor: pointer;
  12380. }
  12381. .pzTop>div:nth-child(1) {
  12382. padding-left: 10px;
  12383. }
  12384. .pzTop>div:nth-child(2) {
  12385. width: 15px;
  12386. height: 15px;
  12387. padding-right: 10px;
  12388. cursor: pointer;
  12389. }
  12390. .pzTop>div:nth-child(2)>img {
  12391. width: 100%;
  12392. height: 100%;
  12393. }
  12394. .pzBox,
  12395. .noPzBox {
  12396. height: calc(100% - 60px);
  12397. /* background: #ededed; */
  12398. background: #fff;
  12399. /* border-radius: 0 0 15px 15px; */
  12400. }
  12401. .noPzBox {
  12402. display: flex;
  12403. flex-direction: column;
  12404. flex-wrap: nowrap;
  12405. justify-content: center;
  12406. align-items: center;
  12407. }
  12408. .pzList {
  12409. background: #f7f7f7;
  12410. width: 90%;
  12411. margin: 0 auto 15px;
  12412. border-radius: 5px;
  12413. }
  12414. .pzNavTop {
  12415. display: flex;
  12416. flex-direction: row;
  12417. flex-wrap: nowrap;
  12418. padding: 10px 10px 0 10px;
  12419. align-items: center;
  12420. }
  12421. .pzDelete {
  12422. cursor: pointer;
  12423. margin-left: auto;
  12424. font-size: 14px;
  12425. color: #afafaf;
  12426. }
  12427. .pzNavTop>div:nth-child(1) {
  12428. background: #3760af;
  12429. width: 35px;
  12430. height: 35px;
  12431. color: #fff;
  12432. text-align: center;
  12433. line-height: 35px;
  12434. border-radius: 50%;
  12435. font-size: 14px;
  12436. }
  12437. .pzNavTop>div:nth-child(2) {
  12438. font-size: 18px;
  12439. color: #959595;
  12440. margin-left: 5px;
  12441. }
  12442. .pzContent {
  12443. padding: 10px;
  12444. word-break: break-word;
  12445. }
  12446. .pzContent audio {
  12447. width: 100%;
  12448. }
  12449. .pzContent audio::-webkit-media-controls-panel {
  12450. background: #fff;
  12451. }
  12452. .pzListBox {
  12453. padding-top: 15px;
  12454. height: calc(100% - 60px);
  12455. overflow: auto;
  12456. }
  12457. .addPzButton {
  12458. position: relative;
  12459. margin-top: 3px;
  12460. width: 100%;
  12461. }
  12462. .addPzButton .img1 {
  12463. position: absolute;
  12464. top: 50%;
  12465. right: 25px;
  12466. transform: translateY(-50%);
  12467. height: 100%;
  12468. display: flex;
  12469. align-items: center;
  12470. }
  12471. .addPzButton .img1 div {
  12472. display: flex;
  12473. }
  12474. .addPzButton .img1 div img {
  12475. width: 28px;
  12476. margin-left: 10px;
  12477. cursor: pointer;
  12478. }
  12479. .addPzButton .img1 div span {
  12480. font-size: 14px;
  12481. margin: 4px 0 0 3px;
  12482. color: #afafaf;
  12483. }
  12484. .addPz {
  12485. background: #4b79ce;
  12486. width: 100px;
  12487. color: #fff;
  12488. font-size: 12px;
  12489. height: 30px;
  12490. margin: 0 auto;
  12491. text-align: center;
  12492. line-height: 30px;
  12493. border-radius: 10px;
  12494. cursor: pointer;
  12495. }
  12496. .addDialogCss {
  12497. position: fixed;
  12498. right: 37%;
  12499. top: 50%;
  12500. width: 600px;
  12501. transform: translateY(-50%);
  12502. height: 70%;
  12503. min-height: 450px;
  12504. box-shadow: 0px 0 8px 0px #555555;
  12505. border-radius: 15px;
  12506. z-index: 999;
  12507. }
  12508. .teacherPz {
  12509. display: flex;
  12510. flex-direction: row;
  12511. align-items: center;
  12512. flex-wrap: nowrap;
  12513. }
  12514. .teacherPzImg {
  12515. width: 30px;
  12516. height: 30px;
  12517. }
  12518. .teacherPzImg>img {
  12519. width: 100%;
  12520. height: 100%;
  12521. }
  12522. .addPzBox {
  12523. height: calc(100% - 40px);
  12524. background: #ededed;
  12525. }
  12526. .pzAudioClass {
  12527. margin: 15px 14px;
  12528. background: #fff;
  12529. height: 100%;
  12530. display: flex;
  12531. justify-content: center;
  12532. align-items: center;
  12533. }
  12534. .pzConText {
  12535. width: 95%;
  12536. height: 100%;
  12537. margin: 10px auto 0;
  12538. border: none;
  12539. background: #fff;
  12540. border-radius: 0px;
  12541. }
  12542. .pzConText>>>.text {
  12543. height: calc(100% - 82px);
  12544. }
  12545. .addTextCss {
  12546. background: #4b79ce;
  12547. width: 80px;
  12548. height: 30px;
  12549. text-align: center;
  12550. color: #fff;
  12551. line-height: 30px;
  12552. border-radius: 10px;
  12553. margin: 10px auto 0;
  12554. cursor: pointer;
  12555. }
  12556. .pzConText:focus-visible {
  12557. border: none !important;
  12558. }
  12559. .maxWidth {
  12560. width: 1000px;
  12561. }
  12562. .noPz {
  12563. width: 150px;
  12564. margin: 0 auto 20%;
  12565. }
  12566. .noPz>img {
  12567. width: 100%;
  12568. height: 100%;
  12569. }
  12570. .pzList .time {
  12571. text-align: right;
  12572. box-sizing: border-box;
  12573. padding: 0 10px 10px 0px;
  12574. color: #949494;
  12575. font-size: 14px;
  12576. }
  12577. /* table 样式 */
  12578. .cont>>>table {
  12579. border-top: 1px solid #ccc;
  12580. border-left: 1px solid #ccc;
  12581. }
  12582. .cont>>>table td,
  12583. .cont>>>table th {
  12584. border-bottom: 1px solid #ccc;
  12585. border-right: 1px solid #ccc;
  12586. padding: 15px 5px;
  12587. max-width: 0px;
  12588. }
  12589. .cont>>>table th {
  12590. border-bottom: 2px solid #ccc;
  12591. text-align: center;
  12592. }
  12593. /* blockquote 样式 */
  12594. .cont>>>blockquote {
  12595. display: block;
  12596. border-left: 8px solid #d0e5f2;
  12597. padding: 5px 10px;
  12598. margin: 10px 0;
  12599. line-height: 1.4;
  12600. font-size: 100%;
  12601. background-color: #f1f1f1;
  12602. }
  12603. .addPzCheck {
  12604. display: flex;
  12605. flex-direction: row;
  12606. flex-wrap: nowrap;
  12607. padding: 10px 15px 0;
  12608. }
  12609. .addPzCheck span {
  12610. cursor: pointer;
  12611. padding-bottom: 5px;
  12612. font-weight: bold;
  12613. }
  12614. .addPzCheck span+span {
  12615. margin-left: 10px;
  12616. }
  12617. .addPzCheck .isChooseActive {
  12618. color: #3e88f4;
  12619. border-bottom: 2px solid #2f80f3;
  12620. }
  12621. /* code 样式 */
  12622. .cont>>>code {
  12623. display: inline-block;
  12624. *display: inline;
  12625. *zoom: 1;
  12626. background-color: #f1f1f1;
  12627. border-radius: 3px;
  12628. padding: 3px 5px;
  12629. margin: 0 3px;
  12630. }
  12631. .cont>>>pre code {
  12632. display: block;
  12633. }
  12634. /* ul ol 样式 */
  12635. .cont>>>ul,
  12636. ol {
  12637. margin: 10px 0 10px 20px;
  12638. }
  12639. .scoreBox,
  12640. .scoreDetailBox {
  12641. display: flex;
  12642. align-items: center;
  12643. justify-content: flex-start;
  12644. margin-top: 20px;
  12645. font-size: 18px;
  12646. width: 100%;
  12647. }
  12648. .scoreBox .t,
  12649. .scoreDetailBox .t {
  12650. margin-right: 10px;
  12651. width: 100px;
  12652. text-align: right;
  12653. }
  12654. .scoreDetailBox {
  12655. align-items: flex-start;
  12656. }
  12657. .scoreDetailBox>>>.el-textarea {
  12658. width: calc(100% - 200px);
  12659. }
  12660. .scoreBox>>>.el-input {
  12661. width: 130px;
  12662. font-size: 38px;
  12663. }
  12664. .scoreBox>>>.el-input__inner {
  12665. height: 60px;
  12666. }
  12667. .answerScore {
  12668. position: absolute;
  12669. top: 10px;
  12670. right: 10px;
  12671. background: #0000008f;
  12672. border-radius: 5px;
  12673. padding: 3px 5px;
  12674. font-size: 14px;
  12675. color: #fff;
  12676. cursor: pointer;
  12677. }
  12678. .open_box .switch_box {
  12679. width: 100%;
  12680. margin: 0 auto;
  12681. display: flex;
  12682. justify-content: space-between;
  12683. }
  12684. .open_box .switch_box+.switch_box {
  12685. margin-top: 10px;
  12686. }
  12687. .deleteImg {
  12688. width: 25px !important;
  12689. height: 25px !important;
  12690. cursor: pointer;
  12691. position: absolute;
  12692. top: 10px;
  12693. right: 10px;
  12694. }
  12695. .deleteImg2 {
  12696. width: 15px !important;
  12697. height: 15px !important;
  12698. top: 5px;
  12699. right: 5px;
  12700. }
  12701. .rightW {
  12702. right: 40px;
  12703. }
  12704. .drawPBox {
  12705. display: flex;
  12706. flex-direction: column;
  12707. position: relative;
  12708. }
  12709. .drawPBox span {
  12710. font-size: 18px;
  12711. color: #606266;
  12712. padding-bottom: 10px;
  12713. margin: 10px 0;
  12714. border-bottom: 1px solid #eaeaea;
  12715. }
  12716. .drawPBox img {
  12717. width: 500px;
  12718. height: 300px;
  12719. object-fit: contain;
  12720. cursor: pointer;
  12721. margin: 0 auto;
  12722. }
  12723. .sentenBox {
  12724. background: #fff;
  12725. height: 450px;
  12726. overflow: auto;
  12727. background-image: url("../assets/icon/conSentences/stuBg.png");
  12728. background-position: 102%;
  12729. background-repeat: no-repeat;
  12730. background-size: 60%;
  12731. }
  12732. .addSen {
  12733. background: #409efe;
  12734. width: 90px;
  12735. color: #fff;
  12736. height: 35px;
  12737. text-align: center;
  12738. line-height: 35px;
  12739. border-radius: 5px;
  12740. float: right;
  12741. margin: 10px 20px 0 0;
  12742. cursor: pointer;
  12743. }
  12744. .sentenTop {
  12745. display: flex;
  12746. flex-direction: row;
  12747. flex-wrap: nowrap;
  12748. align-items: center;
  12749. padding: 55px 0 0 20px;
  12750. box-sizing: border-box;
  12751. }
  12752. .sentenTop>div:nth-child(2) {
  12753. width: 300px;
  12754. margin: 0 15px;
  12755. }
  12756. .sentenTop>div:nth-child(3) {
  12757. background: #409efe;
  12758. color: #fff;
  12759. width: 65px;
  12760. height: 35px;
  12761. text-align: center;
  12762. line-height: 35px;
  12763. border-radius: 5px;
  12764. cursor: pointer;
  12765. }
  12766. .cardList,
  12767. .cardList1 {
  12768. padding: 10px 0 10px 0;
  12769. display: flex;
  12770. flex-direction: row;
  12771. flex-wrap: wrap;
  12772. align-items: center;
  12773. box-sizing: border-box;
  12774. border-bottom: 1px solid #f4f4f4;
  12775. width: 98%;
  12776. margin: 0 auto;
  12777. min-width: 60%;
  12778. max-width: 85%;
  12779. }
  12780. .cardList1 {
  12781. padding: 10px 0 10px 10px !important;
  12782. margin: 0 !important;
  12783. }
  12784. .cardBox {
  12785. display: flex;
  12786. flex-direction: row;
  12787. flex-wrap: wrap;
  12788. align-items: center;
  12789. align-content: center;
  12790. }
  12791. .cardBox>div {
  12792. margin-bottom: 10px;
  12793. }
  12794. .isCard,
  12795. .isChooseCard,
  12796. .noCard,
  12797. .isCard1 {
  12798. width: 130px;
  12799. height: 60px;
  12800. text-align: center;
  12801. line-height: 60px;
  12802. font-size: 20px;
  12803. cursor: pointer;
  12804. background-image: url("../assets/icon/conSentences/titleBorder.png");
  12805. background-size: cover;
  12806. transition: all 2s;
  12807. margin-right: 20px;
  12808. }
  12809. .isCard>div,
  12810. .noCard>div,
  12811. .isCard1>div {
  12812. white-space: nowrap;
  12813. overflow: hidden;
  12814. text-overflow: ellipsis;
  12815. width: 75%;
  12816. margin: 0 auto;
  12817. }
  12818. .noCard {
  12819. background-image: none;
  12820. }
  12821. .isCard1 {
  12822. background-image: url("../assets/icon/conSentences/answerBorder.png");
  12823. }
  12824. .isChooseCard {
  12825. background-image: none;
  12826. border: 1px dashed #b9b9b9;
  12827. border-radius: 10px;
  12828. }
  12829. .card {
  12830. width: 130px;
  12831. height: 60px;
  12832. }
  12833. .card>img {
  12834. width: 100%;
  12835. height: 100%;
  12836. }
  12837. .rightCardBox {
  12838. margin: 10px 0 0 10px;
  12839. }
  12840. .rightCardBox>div:nth-child(1) {
  12841. margin-bottom: 10px;
  12842. }
  12843. .cardCss {
  12844. display: flex;
  12845. flex-direction: column;
  12846. flex-wrap: nowrap;
  12847. align-items: center;
  12848. border-bottom: 3px solid #b4c3d3;
  12849. padding: 0 0 5px 0;
  12850. margin-right: 10px;
  12851. }
  12852. .cardCss>div:nth-child(2) {
  12853. background: #5b7b9d;
  12854. color: #fff;
  12855. width: 20px;
  12856. height: 20px;
  12857. border-radius: 50%;
  12858. text-align: center;
  12859. line-height: 20px;
  12860. }
  12861. .isWrong {
  12862. display: flex;
  12863. flex-direction: row;
  12864. flex-wrap: nowrap;
  12865. align-content: center;
  12866. align-items: center;
  12867. }
  12868. .answerRight {
  12869. width: 25%;
  12870. }
  12871. .isTj {
  12872. display: flex;
  12873. flex-direction: row;
  12874. flex-wrap: nowrap;
  12875. align-items: center;
  12876. }
  12877. .isTj>div:nth-child(2) {
  12878. color: #727070;
  12879. margin-left: 10px;
  12880. }
  12881. .isTjImg {
  12882. width: 30px;
  12883. height: 30px;
  12884. }
  12885. .isTjImg>img {
  12886. width: 100%;
  12887. height: 100%;
  12888. }
  12889. .cardAnswerBox {
  12890. font-size: 18px;
  12891. width: 97%;
  12892. border: 5px;
  12893. padding: 0;
  12894. border-radius: 5px;
  12895. margin: 10px auto;
  12896. word-break: break-word;
  12897. }
  12898. .w_name {
  12899. margin-bottom: 10px;
  12900. }
  12901. .w_name span {
  12902. font-size: 16px;
  12903. }
  12904. .w_teachert {
  12905. width: 50px !important;
  12906. position: absolute;
  12907. height: auto !important;
  12908. z-index: 10;
  12909. right: 25px;
  12910. top: -25px;
  12911. }
  12912. .group_workBox {}
  12913. .group_workBox+.group_workBox {
  12914. margin-top: 20px;
  12915. }
  12916. .group_box {
  12917. padding-bottom: 20px;
  12918. border-bottom: 2px solid #f0f0f0;
  12919. }
  12920. .group_title {
  12921. display: flex;
  12922. align-items: center;
  12923. justify-content: space-between;
  12924. }
  12925. .group_name {
  12926. background-image: url(../assets/icon/groupN.png);
  12927. width: 220px;
  12928. background-size: 100% 100%;
  12929. height: 67px;
  12930. padding: 0 20px 0 43px;
  12931. box-sizing: border-box;
  12932. line-height: 63px;
  12933. color: #fff;
  12934. overflow: hidden;
  12935. white-space: nowrap;
  12936. text-overflow: ellipsis;
  12937. }
  12938. .group_work {
  12939. width: 100%;
  12940. padding: 0 10px;
  12941. box-sizing: border-box;
  12942. display: flex;
  12943. flex-wrap: wrap;
  12944. }
  12945. .g_d_box {
  12946. display: flex;
  12947. flex-flow: wrap;
  12948. justify-content: space-around;
  12949. }
  12950. .g_d_box .isChair {
  12951. background-image: url(../assets/avatar.png) !important;
  12952. }
  12953. .g_d_group {
  12954. width: 500px;
  12955. margin-bottom: 80px;
  12956. }
  12957. .g_d_group_chair {
  12958. display: flex;
  12959. align-items: center;
  12960. justify-content: center;
  12961. }
  12962. .g_d_group_chair>div+div {
  12963. margin-left: 30px;
  12964. }
  12965. .g_d_group_chair>div,
  12966. .g_d_group_chair2>div {
  12967. display: flex;
  12968. flex-direction: column;
  12969. align-items: center;
  12970. }
  12971. .g_d_group_chair>div>span:nth-child(1),
  12972. .g_d_group_chair2>div>span:nth-child(1) {
  12973. background-image: url(../assets/icon/chair.png);
  12974. width: 50px;
  12975. height: 50px;
  12976. display: block;
  12977. background-size: 100% 100%;
  12978. }
  12979. .g_d_group_tableBox {
  12980. display: flex;
  12981. align-items: center;
  12982. justify-content: center;
  12983. }
  12984. .g_d_group_chair2 {
  12985. display: flex;
  12986. flex-direction: column;
  12987. align-items: center;
  12988. justify-content: center;
  12989. }
  12990. .g_d_group_chair2>div+div {
  12991. margin-top: 10px;
  12992. }
  12993. .g_d_group_table {
  12994. background-image: url(../assets/icon/groupBg.png);
  12995. width: 354px;
  12996. height: 196px;
  12997. background-size: 100% 100%;
  12998. display: flex;
  12999. align-items: center;
  13000. justify-content: center;
  13001. flex-direction: column;
  13002. color: #fff;
  13003. }
  13004. .g_d_group_table>div:nth-child(1) {
  13005. font-size: 24px;
  13006. margin-bottom: 5px;
  13007. }
  13008. .g_d_group_table>div:nth-child(2) div {
  13009. cursor: pointer;
  13010. background: #2e77bf;
  13011. padding: 4px 10px;
  13012. border-radius: 5px;
  13013. }
  13014. .groupBox {}
  13015. .groupContent+.groupContent {
  13016. margin-top: 30px;
  13017. }
  13018. .groupTitle {
  13019. font-size: 24px;
  13020. color: rgb(80, 80, 80);
  13021. margin-bottom: 20px;
  13022. }
  13023. .groupName {
  13024. display: flex;
  13025. align-items: center;
  13026. }
  13027. .groupn {
  13028. font-size: 15px;
  13029. margin-right: 10px;
  13030. }
  13031. .groupName+.groupName {
  13032. margin-top: 15px;
  13033. }
  13034. .groupBtn {
  13035. margin-left: 10px;
  13036. }
  13037. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13038. text-align: left;
  13039. }
  13040. .g_d_btnBox {
  13041. display: flex;
  13042. justify-content: flex-end;
  13043. align-items: flex-end;
  13044. margin-bottom: 20px;
  13045. }
  13046. .updateChair {
  13047. position: relative;
  13048. }
  13049. .updateChairBtn {
  13050. position: absolute;
  13051. width: 50px;
  13052. height: 50px;
  13053. overflow: hidden;
  13054. /* display: flex; */
  13055. align-items: center;
  13056. justify-content: center;
  13057. background: #00000087;
  13058. color: #fff;
  13059. border-radius: 50px;
  13060. display: none;
  13061. cursor: pointer;
  13062. }
  13063. .updateChair:hover .updateChairBtn {
  13064. display: flex;
  13065. }
  13066. .group_staic_box {
  13067. display: flex;
  13068. padding: 30px 40px 10px;
  13069. flex-wrap: wrap;
  13070. }
  13071. .group_staic {
  13072. /* width: 50%; */
  13073. margin-bottom: 20px;
  13074. display: flex;
  13075. align-items: center;
  13076. }
  13077. .group_staic span:nth-child(1) {
  13078. width: 150px;
  13079. text-align: right;
  13080. margin-right: 15px;
  13081. }
  13082. .group_staic span:nth-child(2) {
  13083. background: rgb(0 123 255);
  13084. color: #fff;
  13085. border-radius: 5px;
  13086. padding: 5px;
  13087. }
  13088. .codeFileBox {
  13089. height: 300px;
  13090. background: #fff;
  13091. display: flex;
  13092. align-items: center;
  13093. justify-content: center;
  13094. }
  13095. .codeFileBox img {
  13096. width: 200px;
  13097. margin: 0;
  13098. height: auto;
  13099. }
  13100. .codeFileBox div {
  13101. background: rgb(80, 142, 226);
  13102. color: #fff;
  13103. padding: 10px 20px;
  13104. border-radius: 25px;
  13105. cursor: pointer;
  13106. margin-left: 15px;
  13107. }
  13108. .radioBox {
  13109. display: flex;
  13110. flex-direction: row;
  13111. flex-wrap: nowrap;
  13112. align-items: center;
  13113. }
  13114. .radioBox>div {
  13115. margin: 10px 0 0 10px;
  13116. }
  13117. /* .radioBox >>> .el-radio__input,
  13118. .radioBox >>> .el-checkbox__inner {
  13119. margin-left: 10px;
  13120. } */
  13121. .radioBox>>>.el-radio__label,
  13122. .radioBox>>>.el-checkbox__label {
  13123. display: flex;
  13124. align-items: center;
  13125. }
  13126. .inImg {
  13127. width: 100px;
  13128. cursor: pointer;
  13129. }
  13130. .inImg>img {
  13131. width: 100%;
  13132. height: 100%;
  13133. object-fit: cover;
  13134. }
  13135. .timuImgBox {
  13136. margin: 10px 0;
  13137. display: flex;
  13138. flex-direction: column;
  13139. flex-wrap: wrap;
  13140. align-items: flex-start;
  13141. }
  13142. .timuImg {
  13143. width: auto;
  13144. margin: 5px 0;
  13145. cursor: pointer;
  13146. }
  13147. .timuImg>img {
  13148. width: 100%;
  13149. height: 100%;
  13150. object-fit: cover;
  13151. }
  13152. .worksTop {
  13153. display: flex;
  13154. flex-direction: row;
  13155. align-items: flex-end;
  13156. }
  13157. .corOpen {
  13158. margin: 0 0 0 10px;
  13159. font-size: 14px;
  13160. cursor: pointer;
  13161. color: #505050;
  13162. }
  13163. .corOpen:hover {
  13164. color: #499eef;
  13165. }
  13166. .navCorOpenBox {
  13167. display: flex;
  13168. flex-direction: row;
  13169. align-items: center;
  13170. background: #1e5cc9;
  13171. justify-content: space-between;
  13172. }
  13173. .navCorOpen {
  13174. padding-right: 15px;
  13175. cursor: pointer;
  13176. width: 20px;
  13177. display: flex;
  13178. }
  13179. .navCorOpen>img {
  13180. width: 100%;
  13181. height: 100%;
  13182. }
  13183. .mlImg {
  13184. width: 25px !important;
  13185. cursor: pointer;
  13186. margin-top: 5px;
  13187. }
  13188. .mlImg>img {
  13189. width: 100%;
  13190. height: 100%;
  13191. }
  13192. .navLeftCss {
  13193. width: 100% !important;
  13194. left: 0 !important;
  13195. }
  13196. .isContentCss {
  13197. width: 100% !important;
  13198. }
  13199. .isAllWidth {
  13200. width: 100% !important;
  13201. }
  13202. </style>