studyStudent.vue 490 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341
  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="btnAllNT">
  5. <img src="../../assets/icon/learn/screen.png" @click="allScrell"/>
  6. <img src="../../assets/icon/learn/last.png" @click="nextOrpreSteps(0)"/>
  7. <img src="../../assets/icon/learn/next.png" @click="nextOrpreSteps(1)"/>
  8. <img src="../../assets/icon/learn/return.png" @click.stop="
  9. goTo(
  10. '/courseDetailNT?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&cid=' +
  17. classId +
  18. '&courseId=' +
  19. id +
  20. '&tType=' +
  21. tType +
  22. '&screenType=' +
  23. screenType
  24. )
  25. "/>
  26. </div>
  27. <div class="pButton" style="
  28. left: 0;
  29. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  30. " v-if="mlDialog == false" @click="setContent2(true)">
  31. <!-- 批 , getCourseDetail()-->
  32. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  33. </div>
  34. <div class="pb_left" v-else>
  35. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  36. <div class="courseTitle">
  37. <div style="width:calc(100% - 25px)">
  38. <el-tooltip effect="light" :content="courseDetail.title" placement="top">
  39. <div class="ctitle">{{ courseDetail.title }}</div>
  40. </el-tooltip>
  41. <!-- <div class="inviteBox" v-if="tcid && inviteCode">
  42. <div><span>随机码:{{ inviteCode }}</span></div>
  43. </div> -->
  44. </div>
  45. <el-tooltip effect="light" content="收缩" placement="top">
  46. <div class="mlImg" @click="setContent2(false)">
  47. <img src="../../assets/mlBtn.png" alt="" />
  48. </div>
  49. </el-tooltip>
  50. </div>
  51. <div class="ml">目录</div>
  52. <div class="cru_selectBox">
  53. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  54. <div class="blue_box_one" @click="get(stageIndex)">
  55. <div>第{{ stageIndex + 1 }}阶段</div>
  56. <div>{{ item.dyName }}</div>
  57. </div>
  58. <div class="twoChild" :class="{ navActive: item.isOpen }">
  59. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  60. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  61. openTaskActive:
  62. navIndex == taskCount &&
  63. nav.id == navId &&
  64. stageIndex == courseType,
  65. }">
  66. <div class="vedioNav" :class="{
  67. isClick:
  68. navIndex == taskCount &&
  69. nav.id == navId &&
  70. stageIndex == courseType,
  71. }" style="margin: 0">
  72. 任务{{ navIndex + 1 }}
  73. </div>
  74. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  75. <div :style="{
  76. width:
  77. IsLookOpen && !nav.isLook
  78. ? 'calc(100% - 75px)'
  79. : 'auto',
  80. }">
  81. {{ nav.taskName }}
  82. </div>
  83. </el-tooltip>
  84. <img src="../../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  92. <div class="new_top" style="
  93. position: fixed;
  94. top: 0;
  95. left: 20.7%;
  96. width: 80%;
  97. z-index: 999;
  98. box-shadow: 0px 9px 0 0 #f2f2f2;
  99. " :class="{ navLeftCss: !mlDialog }">
  100. <div class="courseIndex">
  101. <div>第{{ courseType - 0 + 1 }}阶段</div>
  102. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  103. <div>{{ chapInfoList[courseType].dyName }}</div>
  104. </el-tooltip>
  105. <div>任务{{ taskCount + 1 }}</div>
  106. </div>
  107. <div class="btnAll">
  108. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  109. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  110. <div class="returnBtn" @click="allScrell">全屏</div>
  111. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  112. 开始录制
  113. </div>
  114. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  115. style="background: #ee5255">
  116. 下载录制
  117. </div>
  118. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  119. 权限
  120. </div> -->
  121. <div class="returnBtn" style="background: #225bc7" @click.stop="
  122. goTo(
  123. '/courseDetailNT?userid=' +
  124. userid +
  125. '&oid=' +
  126. oid +
  127. '&org=' +
  128. org +
  129. '&cid=' +
  130. classId +
  131. '&courseId=' +
  132. id +
  133. '&tType=' +
  134. tType +
  135. '&screenType=' +
  136. screenType
  137. )
  138. ">
  139. 返回
  140. </div>
  141. </div>
  142. </div>
  143. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  144. .taskJson"
  145. :key="index"-->
  146. <div class="isNoMessage" v-if="
  147. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  148. .chapterData.length == 0 &&
  149. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  150. .toolChoose[0].tool.length == 0 &&
  151. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  152. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  153. .taskDetail == '' &&
  154. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  155. ">
  156. <img src="../../assets/icon/isNoMessage.png" alt />
  157. </div>
  158. <div class="study_top" :class="{ pzClass: pzDialog }">
  159. <div class="vedioBox" v-if="
  160. vedio[taskCount].length > 0 ||
  161. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  162. .taskDetail != '' ||
  163. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  164. .chapterData.length > 0
  165. ">
  166. <div class="checkbox">
  167. <div class="check" style="font-size: 25px" :id="
  168. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  169. ">
  170. 学一学
  171. </div>
  172. </div>
  173. <div class="student_head" v-if="
  174. vedio[taskCount].length > 0 ||
  175. textList[taskCount].length > 0 ||
  176. lineList[taskCount].length > 0 ||
  177. file[taskCount].length > 0 ||
  178. fileC[taskCount].length > 0 ||
  179. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  180. .taskDetail != ''
  181. ">
  182. <div class="taskBox">
  183. <div style="
  184. display: flex;
  185. flex-wrap: nowrap;
  186. flex-direction: column;
  187. position: relative;
  188. ">
  189. <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="
  190. chapInfoList[courseType].chapterInfo[0].taskJson[
  191. taskCount
  192. ].taskDetail != ''
  193. " v-html="
  194. chapInfoList[courseType].chapterInfo[0].taskJson[
  195. taskCount
  196. ].taskDetail
  197. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  198. taskCount
  199. ].taskDetail
  200. : '暂无描述'
  201. "></div>
  202. </div>
  203. </div>
  204. <div class="vedioTaskBox">
  205. <div :class="
  206. contentDialog == false
  207. ? 'box_course isContentCss'
  208. : 'box_course'
  209. " v-if="
  210. vedio[taskCount].length > 0 ||
  211. textList[taskCount].length > 0 ||
  212. lineList[taskCount].length > 0 ||
  213. file[taskCount].length > 0
  214. ">
  215. <div class="wheel" style="height: auto;" v-if="
  216. vedio.length &&
  217. vedio[taskCount] &&
  218. vedio[taskCount].length > 0 &&
  219. showType == 0
  220. ">
  221. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  222. <video-player class="video-player vjs-custom-skin"
  223. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  224. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  225. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  226. </div>
  227. </div>
  228. <div class="wheel" v-if="showType == 1" style="
  229. box-shadow: 0 0 6px 1px #f2f2f2;
  230. width: 95%;
  231. margin: 0 auto;
  232. background: #f1f1f1;
  233. ">
  234. <div class="title">查看文档</div>
  235. <el-form class="textBox">
  236. <el-form-item class="textTitle">
  237. <div style="font-size: 22px">
  238. {{ text.name }}
  239. </div>
  240. </el-form-item>
  241. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  242. <div v-html="text.url" class="textContent cont"></div>
  243. </el-form>
  244. </div>
  245. <div class="wheel" v-if="pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && showType == 2" style="width: 95%; margin: 0 auto">
  246. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  247. </div>
  248. <div class="wheel" v-else-if="showType == 2" style="width: 95%; margin: 0 auto">
  249. <iframe style="width: 100%; height: 100%; border: none" security="restricted"
  250. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  251. :src="pptImgUrl1"></iframe>
  252. </div>
  253. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  254. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  255. </div>
  256. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  257. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  258. </div>
  259. </div>
  260. <div class="pButton" style="
  261. position: absolute;
  262. right: 20px;
  263. top: 0;
  264. background: #205cc6;
  265. z-index: 998;
  266. opacity: .8;
  267. " v-if="!contentDialog" @click="setContent(true)">
  268. <!-- 批 -->
  269. <img src="../../assets/navBtn2.png" style="width: 25px" alt="" />
  270. </div>
  271. <div v-if="contentDialog == true" :style="{
  272. width: (!vedio[taskCount].length > 0 &&
  273. !textList[taskCount].length > 0 &&
  274. !lineList[taskCount].length > 0 &&
  275. !file[taskCount].length > 0 && fileC[taskCount].length) ? 'calc(100%)' : 'calc(100% - 83%)', margin: (!vedio[taskCount].length > 0 &&
  276. !textList[taskCount].length > 0 &&
  277. !lineList[taskCount].length > 0 &&
  278. !file[taskCount].length > 0 && fileC[taskCount].length) ? '0 15px' : '0 15px 0 0'
  279. }">
  280. <div class="vedioList" v-if="
  281. (vedio.length &&
  282. vedio[taskCount] &&
  283. vedio[taskCount].length > 0) ||
  284. (textList.length &&
  285. textList[taskCount] &&
  286. textList[taskCount].length > 0) ||
  287. (lineList.length &&
  288. lineList[taskCount] &&
  289. lineList[taskCount].length > 0) ||
  290. (file.length &&
  291. file[taskCount] &&
  292. file[taskCount].length > 0) ||
  293. (fileC.length &&
  294. fileC[taskCount] &&
  295. fileC[taskCount].length > 0)
  296. " style="height: 650px">
  297. <div class="navCorOpenBox">
  298. <div class="navTitile">内容列表:</div>
  299. <div class="navCorOpen" @click="setContent(false)">
  300. <img src="../../assets/navBtn2.png" alt="" />
  301. </div>
  302. </div>
  303. <div class="navBox">
  304. <div v-show="
  305. vedio.length &&
  306. vedio[taskCount] &&
  307. vedio[taskCount].length > 0
  308. ">
  309. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  310. @click="lookVedio(media.url, vedioIndex)">
  311. <div class="vedioName" :class="
  312. isClickNav == 'video' + vedioIndex
  313. ? 'isClickNav'
  314. : ''
  315. ">
  316. <span v-if="media.text">{{ media.text }}-</span>{{ media.name }}
  317. </div>
  318. </div>
  319. </div>
  320. <div v-show="
  321. textList.length &&
  322. textList[taskCount] &&
  323. textList[taskCount].length > 0
  324. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  325. @click="lookText(taskCount, textIndex)">
  326. <div style="width: calc(100% - 0px)">
  327. <div class="navText" :class="
  328. isClickNav == 'text' + textIndex
  329. ? 'isClickNav'
  330. : ''
  331. ">
  332. {{
  333. textList[taskCount].length > 0 ? text.name : ""
  334. }}.doc
  335. </div>
  336. </div>
  337. </div>
  338. <div v-show="
  339. lineList.length &&
  340. lineList[taskCount] &&
  341. lineList[taskCount].length > 0
  342. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  343. @click="doUrl(lines.url, lineIndex)">
  344. <div style="width: calc(100% - 0px)">
  345. <div class="navText" :class="
  346. isClickNav == 'line' + lineIndex
  347. ? 'isClickNav'
  348. : ''
  349. ">
  350. {{ lines.title ? lines.title : lines.url }}
  351. </div>
  352. </div>
  353. </div>
  354. <div class="newNav" v-show="
  355. file.length &&
  356. file[taskCount] &&
  357. file[taskCount].length > 0
  358. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  359. <div style="width: calc(100% - 0px)">
  360. <div class="navText" :class="
  361. isClickNav == 'word' + fileIndex
  362. ? 'isClickNav'
  363. : ''
  364. ">
  365. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  366. </div>
  367. </div>
  368. </div>
  369. <div class="newNav" v-show="
  370. fileC.length &&
  371. fileC[taskCount] &&
  372. fileC[taskCount].length > 0
  373. " v-for="(f, fileIndex) in fileC[taskCount]" :key="fileIndex" @click="downloadFile2(f)">
  374. <div style="width: calc(100% - 0px)">
  375. <div class="navText">
  376. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. </div>
  384. <div style="width: 81%">
  385. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  386. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  387. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  388. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  389. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  390. </el-button>
  391. </div>
  392. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  393. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  394. </div>
  395. </div>
  396. </div>
  397. </div>
  398. <div class="student_body" v-resize="resize">
  399. <div class="vedioBox" v-if="
  400. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  401. .toolChoose[0].tool &&
  402. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  403. .toolChoose[0].tool.length &&
  404. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  405. .toolChoose[0].tool.length > 0
  406. ">
  407. <div class="queTop" style="
  408. font-size: 25px;
  409. padding: 15px 0 15px 30px;
  410. font-weight: bold;
  411. ">
  412. 任务发布区
  413. </div>
  414. <div class="toolHeng2" style="position: relative">
  415. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px"
  416. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose.length">
  417. <div class="bzBox">
  418. <div></div>
  419. <div>步骤{{ toolIndex + 1 }}</div>
  420. </div>
  421. <div class="toolBox">
  422. <div class="toolBoxSteps" @click="nextToolindex('last')"><img src="../../assets/icon/leftIcon.png" />
  423. </div>
  424. <div class="toolBoxSteps" @click="nextToolindex('next')"><img src="../../assets/icon/rightIcon.png" />
  425. </div>
  426. <div>
  427. <div class="noiframeBox">
  428. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  429. <div v-if="tooC == 1">
  430. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt
  431. @click="addTools(tooC, toolIndex, taskCount)" />
  432. <div style="margin: 5px 0">电子白板</div>
  433. </div>
  434. <div v-if="tooC == 3">
  435. <img src="../../assets/icon/secondToolList/mindMapping.png" alt
  436. @click="addTools(tooC, toolIndex, taskCount)" />
  437. <div style="margin: 5px 0">思维导图</div>
  438. </div>
  439. <div v-if="tooC == 6">
  440. <img src="../../assets/icon/secondToolList/doc.png" alt
  441. @click="addTools(tooC, toolIndex, taskCount)" />
  442. <div style="margin: 5px 0">协同文档</div>
  443. </div>
  444. <div v-if="tooC == 7">
  445. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt
  446. @click="addTools(tooC, toolIndex, taskCount)" />
  447. <div style="margin: 5px 0">思维网格</div>
  448. </div>
  449. <div v-if="tooC == 8">
  450. <img src="../../assets/icon/secondToolList/library.png" alt
  451. @click="addTools(tooC, toolIndex, taskCount)" />
  452. <div style="margin: 5px 0">素材库</div>
  453. </div>
  454. <div v-if="tooC == 17">
  455. <img src="../../assets/icon/secondToolList/library.png" alt
  456. @click="addTools(tooC, toolIndex, taskCount)" />
  457. <div style="margin: 5px 0">学习资料</div>
  458. </div>
  459. <div v-if="tooC == 2">
  460. <img @click="addTools(tooC, toolIndex, taskCount)"
  461. src="../../assets/icon/secondToolList/note.png" alt />
  462. <div style="margin: 5px 0">便签</div>
  463. </div>
  464. <div v-if="tooC == 4">
  465. <img @click="addTools(tooC, toolIndex, taskCount)"
  466. src="../../assets/icon/thirdToolList/ask.png" alt />
  467. <div style="margin: 5px 0">问卷调查</div>
  468. </div>
  469. <div v-if="tooC == 45">
  470. <img @click="addTools(tooC, toolIndex, taskCount)"
  471. src="../../assets/icon/thirdToolList/choose.png" alt />
  472. <div style="margin: 5px 0">选择题</div>
  473. </div>
  474. <!-- <div v-if="tooC == 5">
  475. <img
  476. @click="addTools(tooC, toolIndex, taskCount)"
  477. src="../../assets/icon/thirdToolList/score.png"
  478. alt
  479. />
  480. <div style="margin: 5px 0">量规评分</div>
  481. </div> -->
  482. <div v-if="tooC == 10">
  483. <img @click="addTools(tooC, toolIndex, taskCount)"
  484. src="../../assets/icon/thirdToolList/time.png" alt />
  485. <div style="margin: 5px 0">倒计时</div>
  486. </div>
  487. <div v-if="tooC == 15">
  488. <img @click="addTools(tooC, toolIndex, taskCount)"
  489. src="../../assets/icon/thirdToolList/answer.png" alt />
  490. <div style="margin: 5px 0">问答工具</div>
  491. </div>
  492. <div v-if="tooC == 26">
  493. <img @click="addTools(tooC, toolIndex, taskCount)"
  494. src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  495. <div style="margin: 5px 0">课程设计</div>
  496. </div>
  497. <div v-if="tooC == 18">
  498. <img @click="addTools(tooC, toolIndex, taskCount)"
  499. src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  500. <div style="margin: 5px 0">训练服务器</div>
  501. </div>
  502. <div v-if="tooC == 16">
  503. <img @click="addTools(tooC, toolIndex, taskCount)"
  504. src="../../assets/icon/thirdToolList/work.png" alt />
  505. <div style="margin: 5px 0">作业提交</div>
  506. </div>
  507. <div v-if="tooC == 50">
  508. <img @click="addTools(tooC, toolIndex, taskCount)"
  509. src="../../assets/icon/thirdToolList/plwork.png" alt />
  510. <div style="margin: 5px 0">批量上传</div>
  511. </div>
  512. <div v-if="tooC == 21">
  513. <img @click="addTools(tooC, toolIndex, taskCount)"
  514. src="../../assets/icon/fourthToolList/program.png" alt />
  515. <div style="margin: 5px 0">编程平台</div>
  516. </div>
  517. <div v-if="tooC == 22">
  518. <img @click="addTools(tooC, toolIndex, taskCount)"
  519. src="../../assets/icon/fourthToolList/program.png" alt />
  520. <div style="margin: 5px 0">AI体验</div>
  521. </div>
  522. <div v-if="tooC == 23">
  523. <img @click="addTools(tooC, toolIndex, taskCount)"
  524. src="../../assets/icon/fourthToolList/program.png" alt />
  525. <div style="margin: 5px 0">Python</div>
  526. </div>
  527. <div v-if="tooC == 24">
  528. <img @click="addTools(tooC, toolIndex, taskCount)"
  529. src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  530. <div style="margin: 5px 0">AI平台</div>
  531. </div>
  532. <div v-if="tooC == 25">
  533. <img @click="addTools(tooC, toolIndex, taskCount)"
  534. src="../../assets/icon/thirdToolList/evalua.png" alt />
  535. <div style="margin: 5px 0">目标管理</div>
  536. </div>
  537. <div v-if="tooC == 31">
  538. <img @click="addTools(tooC, toolIndex, taskCount)"
  539. src="../../assets/icon/secondToolList/networkPanel.png" alt />
  540. <div style="margin: 5px 0">数学画板</div>
  541. </div>
  542. <div v-if="tooC == 28">
  543. <img @click="addTools(tooC, toolIndex, taskCount)"
  544. src="../../assets/icon/secondToolList/translation.png" alt />
  545. <div style="margin: 5px 0">翻译</div>
  546. </div>
  547. <div v-if="tooC == 37">
  548. <img @click="addTools(tooC, toolIndex, taskCount)"
  549. src="../../assets/icon/secondToolList/mohe.png" alt />
  550. <div style="margin: 5px 0">魔盒识字</div>
  551. </div>
  552. <div v-if="tooC == 38">
  553. <img @click="addTools(tooC, toolIndex, taskCount)"
  554. src="../../assets/icon/secondToolList/24game.png" alt />
  555. <div style="margin: 5px 0">24点</div>
  556. </div>
  557. <div v-if="tooC == 39">
  558. <img @click="addTools(tooC, toolIndex, taskCount)"
  559. src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  560. <div style="margin: 5px 0">GeoGebra</div>
  561. </div>
  562. <div v-if="tooC == 32">
  563. <img @click="addTools(tooC, toolIndex, taskCount)"
  564. src="../../assets/icon/thirdToolList/code.png" alt />
  565. <div style="margin: 5px 0">源码编辑</div>
  566. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  567. style="position: absolute;left: 110px;bottom: 30px;">
  568. 上传文件
  569. <input type="file" accept="*" style="display: none"
  570. @change="beforeUpload1($event, 7, toolIndex)" />
  571. </div> -->
  572. </div>
  573. <div v-if="tooC == 40">
  574. <img @click="addTools(tooC, toolIndex, taskCount)"
  575. src="../../assets/icon/secondToolList/eval.png" alt />
  576. <div style="margin: 5px 0">个人评价</div>
  577. </div>
  578. <div v-if="tooC == 41">
  579. <img @click="addTools(tooC, toolIndex, taskCount)"
  580. src="../../assets/icon/thirdToolList/select.png" alt />
  581. <div style="margin: 5px 0">选择填空</div>
  582. </div>
  583. <div v-if="tooC == 44">
  584. <img @click="addTools(tooC, toolIndex, taskCount)"
  585. src="../../assets/icon/thirdToolList/hanClass.png" alt />
  586. <div style="margin: 5px 0">汉字宫</div>
  587. </div>
  588. <div v-if="tooC == 47">
  589. <img @click="addTools(tooC, toolIndex, taskCount)"
  590. src="../../assets/icon/fourthToolList/conSentences.png" alt />
  591. <div style="margin: 5px 0">连词成句</div>
  592. </div>
  593. <div v-if="tooC == 48">
  594. <img @click="addTools(tooC, toolIndex, taskCount)"
  595. src="../../assets/icon/fourthToolList/table.png" alt />
  596. <div style="margin: 5px 0">表格</div>
  597. </div>
  598. <div v-if="tooC == 52">
  599. <img @click="addTools(tooC, toolIndex, taskCount)"
  600. src="../../assets/icon/fourthToolList/text.png" alt />
  601. <div style="margin: 5px 0">文档</div>
  602. </div>
  603. <div v-if="tooC == 49">
  604. <img @click="addTools(tooC, toolIndex, taskCount)"
  605. src="../../assets/icon/fourthToolList/group.png" alt />
  606. <div style="margin: 5px 0">学生分组</div>
  607. </div>
  608. <div v-if="tooC == 57">
  609. <img @click="addTools(tooC, toolIndex, taskCount)"
  610. src="../../assets/icon/fourthToolList/cocopi.png" alt />
  611. <div style="margin: 5px 0">CocoPi</div>
  612. </div>
  613. <div v-if="tooC == 58">
  614. <img @click="addTools(tooC, toolIndex, taskCount)"
  615. src="../../assets/icon/fourthToolList/car.png" alt />
  616. <div style="margin: 5px 0">模拟驾驶</div>
  617. </div>
  618. <div v-if="tooC == 59">
  619. <img @click="addTools(tooC, toolIndex, taskCount)"
  620. src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  621. <div style="margin: 5px 0">路径搜索</div>
  622. </div>
  623. <div v-if="tooC == 60">
  624. <img @click="addTools(tooC, toolIndex, taskCount)"
  625. src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  626. <div style="margin: 5px 0">深度学习</div>
  627. </div>
  628. <div v-if="tooC == 61">
  629. <img @click="addTools(tooC, toolIndex, taskCount)"
  630. src="../../assets/icon/fourthToolList/allHistory.png" alt />
  631. <div style="margin: 5px 0">全历史</div>
  632. </div>
  633. </div>
  634. </div>
  635. </div>
  636. <div class="tooldetail">
  637. <!-- <div class="toolTitle">工具描述</div> -->
  638. <div v-html="contentConvent(tool.toolDetail ? tool.toolDetail : '暂无描述')"></div>
  639. </div>
  640. <el-button type="primary" v-if="tool.tool[0] == 32" style="
  641. position: absolute;
  642. right: 30px;
  643. transform: translateY(-130%);
  644. " @click="addImg($event)">上传作业<input type="file" accept="*"
  645. style="display: none" @change="beforeUpload1($event, 7, toolIndex)" /></el-button>
  646. <el-button type="primary" v-if="tool.tool[0] == 57" style="
  647. position: absolute;
  648. right: 30px;
  649. transform: translateY(-130%);
  650. " @click="addImg($event)">上传作业<input type="file" accept="*"
  651. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button>
  652. </div>
  653. </div>
  654. </div>
  655. </div>
  656. <div class="vedioBox"
  657. v-if="arrayToArray(tool.tool, isWorkTool).length && worksTeacher.length && worksTeacher[toolIndex].length">
  658. <div class="queTop" style="
  659. font-size: 25px;
  660. padding: 15px 0 15px 30px;
  661. font-weight: bold;
  662. ">
  663. 教师工作区
  664. </div>
  665. <div class="tool_work_box">
  666. <div v-if="
  667. tType &&
  668. ((tType == 2 && sIsOpen == true) ||
  669. tType == 1 ||
  670. tType == 4) &&
  671. tool.tool.indexOf(16) != -1
  672. " class="worksBox">
  673. <div class="zuoyeYulan" v-if="
  674. worksTeacher.length &&
  675. worksTeacher[toolIndex].length > 0
  676. ">
  677. <div class="worksTop">
  678. <div>作业预览</div>
  679. </div>
  680. </div>
  681. <div class="worksDetailBox" v-if="
  682. worksTeacher.length &&
  683. worksTeacher[toolIndex].length > 0
  684. ">
  685. <div class="works" style="
  686. width: 200px;
  687. height: 140px;
  688. margin: 10px 10px 10px 0;
  689. border-radius: 15px;
  690. box-shadow: 0 0 6px 1px #dfdada;
  691. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  692. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  693. <div class="workImg" v-if="w.type == 0">
  694. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  695. <img :src="w.works" @click="previewImg(w.works)" alt />
  696. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  697. rightW:
  698. w.userid == userid ||
  699. tType == 1 ||
  700. tType == 4 ||
  701. w.ateacher == userid,
  702. }">
  703. {{ JSON.parse(w.score).wScore }}分
  704. </div>
  705. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  706. :class="{
  707. rightW:
  708. w.userid == userid ||
  709. tType == 1 ||
  710. tType == 4 ||
  711. w.ateacher == userid,
  712. }">
  713. 评分
  714. </div>
  715. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  716. w.userid == userid || tType == 1 || tType == 4
  717. " @click.stop="deleteWorks(w.wid)" alt />
  718. </div>
  719. <div class="workImg" v-if="w.type == 1">
  720. <img :src="word" @click="openFile(w.works)" alt />
  721. <!-- @click="openFile(w.works)" -->
  722. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  723. rightW:
  724. w.userid == userid ||
  725. tType == 1 ||
  726. tType == 4 ||
  727. w.ateacher == userid,
  728. }">
  729. {{ JSON.parse(w.score).wScore }}分
  730. </div>
  731. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  732. :class="{
  733. rightW:
  734. w.userid == userid ||
  735. tType == 1 ||
  736. tType == 4 ||
  737. w.ateacher == userid,
  738. }">
  739. 评分
  740. </div>
  741. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  742. w.userid == userid || tType == 1 || tType == 4
  743. " @click.stop="deleteWorks(w.wid)" alt />
  744. </div>
  745. <div class="workImg" v-if="w.type == 3">
  746. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  747. <!-- @click="openVideo(w.works)" -->
  748. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  749. rightW:
  750. w.userid == userid ||
  751. tType == 1 ||
  752. tType == 4 ||
  753. w.ateacher == userid,
  754. }">
  755. {{ JSON.parse(w.score).wScore }}分
  756. </div>
  757. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  758. :class="{
  759. rightW:
  760. w.userid == userid ||
  761. tType == 1 ||
  762. tType == 4 ||
  763. w.ateacher == userid,
  764. }">
  765. 评分
  766. </div>
  767. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  768. w.userid == userid || tType == 1 || tType == 4
  769. " @click.stop="deleteWorks(w.wid)" alt />
  770. </div>
  771. <div class="workImg" v-if="w.type == 12">
  772. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  773. <!-- @click="openVideo(w.works)" -->
  774. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  775. rightW:
  776. w.userid == userid ||
  777. tType == 1 ||
  778. tType == 4 ||
  779. w.ateacher == userid,
  780. }">
  781. {{ JSON.parse(w.score).wScore }}分
  782. </div>
  783. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  784. :class="{
  785. rightW:
  786. w.userid == userid ||
  787. tType == 1 ||
  788. tType == 4 ||
  789. w.ateacher == userid,
  790. }">
  791. 评分
  792. </div>
  793. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  794. w.userid == userid || tType == 1 || tType == 4
  795. " @click.stop="deleteWorks(w.wid)" alt />
  796. </div>
  797. <div class="comment" style="min-width: 200px">
  798. <div class="worksName">
  799. <div>{{ w.sName }}</div>
  800. </div>
  801. <div class="commentList">
  802. <div class="commentList">
  803. <div class="commentImg" @click="
  804. isLikes(w.wid, userid, 1, null, w.isLikes)
  805. ">
  806. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  807. </div>
  808. <div>{{ w.likesCount }}</div>
  809. </div>
  810. <div class="commentList" style="margin-right: 15px">
  811. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  812. <img src="../../assets/icon/comment/comment.png" alt="" />
  813. </div>
  814. <div>{{ w.commentCount }}</div>
  815. </div>
  816. </div>
  817. </div>
  818. </div>
  819. </div>
  820. </div>
  821. <div v-if="
  822. tType &&
  823. ((tType == 2 && sIsOpen == true) ||
  824. tType == 1 ||
  825. tType == 4) &&
  826. tool.tool.indexOf(32) != -1
  827. " class="worksBox">
  828. <div class="zuoyeYulan" v-if="
  829. worksTeacher.length &&
  830. worksTeacher[toolIndex].length > 0
  831. ">
  832. <div class="worksTop">
  833. <div>作业预览</div>
  834. </div>
  835. </div>
  836. <div class="worksDetailBox" v-if="
  837. worksTeacher.length &&
  838. worksTeacher[toolIndex].length > 0
  839. ">
  840. <div class="works" style="
  841. width: 200px;
  842. height: 140px;
  843. margin: 10px 10px 10px 0;
  844. border-radius: 15px;
  845. box-shadow: 0 0 6px 1px #dfdada;
  846. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  847. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  848. <div class="workImg">
  849. <img :src="word2" @click="downloadFile(w.works)" alt />
  850. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  851. rightW:
  852. w.userid == userid ||
  853. tType == 1 ||
  854. tType == 4 ||
  855. w.ateacher == userid,
  856. }">
  857. {{ JSON.parse(w.score).wScore }}分
  858. </div>
  859. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  860. :class="{
  861. rightW:
  862. w.userid == userid ||
  863. tType == 1 ||
  864. tType == 4 ||
  865. w.ateacher == userid,
  866. }">
  867. 评分
  868. </div>
  869. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  870. w.userid == userid || tType == 1 || tType == 4
  871. " @click.stop="deleteWorks(w.wid)" alt />
  872. </div>
  873. <div class="comment" style="min-width: 200px">
  874. <div class="worksName">
  875. <div>{{ w.sName }}</div>
  876. </div>
  877. <div class="commentList">
  878. <div class="commentList">
  879. <div class="commentImg" @click="
  880. isLikes(w.wid, userid, 1, null, w.isLikes)
  881. ">
  882. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  883. </div>
  884. <div>{{ w.likesCount }}</div>
  885. </div>
  886. <div class="commentList" style="margin-right: 15px">
  887. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  888. <img src="../../assets/icon/comment/comment.png" alt="" />
  889. </div>
  890. <div>{{ w.commentCount }}</div>
  891. </div>
  892. </div>
  893. </div>
  894. </div>
  895. </div>
  896. </div>
  897. <div v-if="
  898. tType &&
  899. ((tType == 2 && sIsOpen == true) ||
  900. tType == 1 ||
  901. tType == 4) &&
  902. tool.tool.indexOf(57) != -1
  903. " class="worksBox">
  904. <div class="zuoyeYulan" v-if="
  905. worksTeacher.length &&
  906. worksTeacher[toolIndex].length > 0
  907. ">
  908. <div class="worksTop">
  909. <div>作业预览</div>
  910. </div>
  911. </div>
  912. <div class="worksDetailBox" v-if="
  913. worksTeacher.length &&
  914. worksTeacher[toolIndex].length > 0
  915. ">
  916. <div class="works" style="
  917. width: 200px;
  918. height: 140px;
  919. margin: 10px 10px 10px 0;
  920. border-radius: 15px;
  921. box-shadow: 0 0 6px 1px #dfdada;
  922. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  923. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  924. <div class="workImg">
  925. <img :src="word2" @click="downloadFile(w.works)" alt />
  926. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  927. rightW:
  928. w.userid == userid ||
  929. tType == 1 ||
  930. tType == 4 ||
  931. w.ateacher == userid,
  932. }">
  933. {{ JSON.parse(w.score).wScore }}分
  934. </div>
  935. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  936. :class="{
  937. rightW:
  938. w.userid == userid ||
  939. tType == 1 ||
  940. tType == 4 ||
  941. w.ateacher == userid,
  942. }">
  943. 评分
  944. </div>
  945. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  946. w.userid == userid || tType == 1 || tType == 4
  947. " @click.stop="deleteWorks(w.wid)" alt />
  948. </div>
  949. <div class="comment" style="min-width: 200px">
  950. <div class="worksName">
  951. <div>{{ w.sName }}</div>
  952. </div>
  953. <div class="commentList">
  954. <div class="commentList">
  955. <div class="commentImg" @click="
  956. isLikes(w.wid, userid, 1, null, w.isLikes)
  957. ">
  958. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  959. </div>
  960. <div>{{ w.likesCount }}</div>
  961. </div>
  962. <div class="commentList" style="margin-right: 15px">
  963. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  964. <img src="../../assets/icon/comment/comment.png" alt="" />
  965. </div>
  966. <div>{{ w.commentCount }}</div>
  967. </div>
  968. </div>
  969. </div>
  970. </div>
  971. </div>
  972. </div>
  973. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  974. <div class="zuoyeYulan" v-if="
  975. worksTeacher.length &&
  976. worksTeacher[toolIndex].length > 0
  977. ">
  978. <span>作业预览</span>
  979. </div>
  980. <div class="worksDetailBox" v-if="
  981. worksTeacher.length &&
  982. worksTeacher[toolIndex].length > 0
  983. ">
  984. <div class="works" style="
  985. width: 200px;
  986. height: 140px;
  987. margin: 10px 10px 10px 0;
  988. border-radius: 15px;
  989. box-shadow: 0 0 6px 1px #dfdada;
  990. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  991. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  992. <div class="workImg" v-if="w.type == 0">
  993. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  994. <img :src="w.works" @click="previewImg(w.works)" alt />
  995. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  996. rightW:
  997. w.userid == userid ||
  998. tType == 1 ||
  999. tType == 4 ||
  1000. w.ateacher == userid,
  1001. }">
  1002. {{ JSON.parse(w.score).wScore }}分
  1003. </div>
  1004. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1005. :class="{
  1006. rightW:
  1007. w.userid == userid ||
  1008. tType == 1 ||
  1009. tType == 4 ||
  1010. w.ateacher == userid,
  1011. }">
  1012. 评分
  1013. </div>
  1014. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1015. w.userid == userid || tType == 1 || tType == 4
  1016. " @click.stop="deleteWorks(w.wid)" alt />
  1017. </div>
  1018. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  1019. <img :src="word" @click="openFile(w.works)" alt />
  1020. <!-- @click="openFile(w.works)" -->
  1021. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1022. rightW:
  1023. w.userid == userid ||
  1024. tType == 1 ||
  1025. tType == 4 ||
  1026. w.ateacher == userid,
  1027. }">
  1028. {{ JSON.parse(w.score).wScore }}分
  1029. </div>
  1030. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1031. :class="{
  1032. rightW:
  1033. w.userid == userid ||
  1034. tType == 1 ||
  1035. tType == 4 ||
  1036. w.ateacher == userid,
  1037. }">
  1038. 评分
  1039. </div>
  1040. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1041. w.userid == userid || tType == 1 || tType == 4
  1042. " @click.stop="deleteWorks(w.wid)" alt />
  1043. </div>
  1044. <div class="workImg" v-if="w.type == 3">
  1045. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1046. <!-- @click="openVideo(w.works)" -->
  1047. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1048. rightW:
  1049. w.userid == userid ||
  1050. tType == 1 ||
  1051. tType == 4 ||
  1052. w.ateacher == userid,
  1053. }">
  1054. {{ JSON.parse(w.score).wScore }}分
  1055. </div>
  1056. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1057. :class="{
  1058. rightW:
  1059. w.userid == userid ||
  1060. tType == 1 ||
  1061. tType == 4 ||
  1062. w.ateacher == userid,
  1063. }">
  1064. 评分
  1065. </div>
  1066. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1067. w.userid == userid || tType == 1 || tType == 4
  1068. " @click.stop="deleteWorks(w.wid)" alt />
  1069. </div>
  1070. <div class="comment" style="min-width: 200px">
  1071. <div class="worksName">
  1072. <div style="cursor: pointer" @click="openSname(w.sName, w.wid)">
  1073. {{ w.sName }}
  1074. </div>
  1075. </div>
  1076. <div class="commentList">
  1077. <div class="commentList">
  1078. <div class="commentImg" @click="
  1079. isLikes(w.wid, userid, 1, null, w.isLikes)
  1080. ">
  1081. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1082. </div>
  1083. <div>{{ w.likesCount }}</div>
  1084. </div>
  1085. <div class="commentList" style="margin-right: 15px">
  1086. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1087. <img src="../../assets/icon/comment/comment.png" alt="" />
  1088. </div>
  1089. <div>{{ w.commentCount }}</div>
  1090. </div>
  1091. </div>
  1092. </div>
  1093. </div>
  1094. </div>
  1095. </div>
  1096. <div v-if="
  1097. tType &&
  1098. ((tType == 2 && sIsOpen == true) ||
  1099. tType == 1 ||
  1100. tType == 4) &&
  1101. tool.tool.indexOf(4) != -1
  1102. " class="worksBox">
  1103. <div class="zuoyeYulan" v-if="
  1104. worksTeacher.length &&
  1105. worksTeacher[toolIndex].length > 0
  1106. ">
  1107. <div class="worksTop">
  1108. <div>作业预览</div>
  1109. </div>
  1110. </div>
  1111. <div>
  1112. <div class="worksDetailBox" v-if="
  1113. worksTeacher.length &&
  1114. worksTeacher[toolIndex].length > 0
  1115. ">
  1116. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName" @click="
  1117. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1118. ">
  1119. {{ w.sName }}
  1120. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="
  1121. w.userid == userid || tType == 1 || tType == 4
  1122. " @click.stop="deleteWorks(w.wid)" alt />
  1123. </div>
  1124. </div>
  1125. </div>
  1126. </div>
  1127. <div v-if="
  1128. tType &&
  1129. ((tType == 2 && sIsOpen == true) ||
  1130. tType == 1 ||
  1131. tType == 4) &&
  1132. tool.tool.indexOf(45) != -1
  1133. " class="worksBox">
  1134. <div class="zuoyeYulan" v-if="
  1135. worksTeacher.length &&
  1136. worksTeacher[toolIndex].length > 0
  1137. ">
  1138. <div class="worksTop">
  1139. <div>作业预览</div>
  1140. </div>
  1141. </div>
  1142. <div>
  1143. <div class="worksDetailBox" v-if="
  1144. worksTeacher.length &&
  1145. worksTeacher[toolIndex].length > 0
  1146. ">
  1147. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName" @click="
  1148. openTools(
  1149. 45,
  1150. toolIndex,
  1151. taskCount,
  1152. w.works,
  1153. w.sName
  1154. )
  1155. ">
  1156. {{ w.sName }}
  1157. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="
  1158. w.userid == userid || tType == 1 || tType == 4
  1159. " @click.stop="deleteWorks(w.wid)" alt />
  1160. </div>
  1161. </div>
  1162. </div>
  1163. </div>
  1164. <div v-if="
  1165. tType &&
  1166. ((tType == 2 && sIsOpen == true) ||
  1167. tType == 1 ||
  1168. tType == 4) &&
  1169. tool.tool.indexOf(15) != -1
  1170. " class="worksBox">
  1171. <div class="zuoyeYulan" v-if="
  1172. worksTeacher.length &&
  1173. worksTeacher[toolIndex].length > 0
  1174. ">
  1175. <div class="worksTop">
  1176. <div>作业预览</div>
  1177. </div>
  1178. </div>
  1179. <div class="worksDetailBox" v-if="
  1180. worksTeacher.length &&
  1181. worksTeacher[toolIndex].length > 0
  1182. ">
  1183. <div class="works" v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex">
  1184. <div class="workImg" style="
  1185. border-radius: 15px;
  1186. box-shadow: #eee 0px 0px 5px 5px;
  1187. ">
  1188. <!-- <img
  1189. src="../../assets/icon/works/noImg.png"
  1190. @click="openTools(15, toolIndex, taskCount, w.works)"
  1191. alt=""
  1192. />-->
  1193. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  1194. @click="commentOther(w, toolIndex, wIndex)">
  1195. <!-- <div>{{ w.sName }}</div> -->
  1196. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  1197. placement="top">
  1198. <div class="answerContent">
  1199. {{ JSON.parse(w.works)[0].answer }}
  1200. </div>
  1201. </el-tooltip>
  1202. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1203. rightW:
  1204. w.userid == userid ||
  1205. tType == 1 ||
  1206. tType == 4,
  1207. }">
  1208. {{ JSON.parse(w.score).wScore }}分
  1209. </div>
  1210. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1211. :class="{
  1212. rightW:
  1213. w.userid == userid ||
  1214. tType == 1 ||
  1215. tType == 4,
  1216. }">
  1217. 评分
  1218. </div>
  1219. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1220. w.userid == userid || tType == 1 || tType == 4
  1221. " @click.stop="deleteWorks(w.wid)" alt />
  1222. </div>
  1223. <div class="comment">
  1224. <div class="worksName">
  1225. <div>{{ w.sName }}</div>
  1226. </div>
  1227. <div class="commentList">
  1228. <div class="commentImg" @click="
  1229. isLikes(w.wid, userid, 1, null, w.isLikes)
  1230. ">
  1231. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1232. </div>
  1233. <div>{{ w.likesCount }}</div>
  1234. </div>
  1235. <div class="commentList" style="margin-right: 15px">
  1236. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1237. <img src="../../assets/icon/comment/comment.png" alt="" />
  1238. </div>
  1239. <div>{{ w.commentCount }}</div>
  1240. </div>
  1241. </div>
  1242. </div>
  1243. </div>
  1244. </div>
  1245. </div>
  1246. <div v-if="
  1247. tType &&
  1248. ((tType == 2 && sIsOpen == true) ||
  1249. tType == 1 ||
  1250. tType == 4) &&
  1251. tool.tool.indexOf(1) != -1
  1252. " class="worksBox">
  1253. <div class="zuoyeYulan" v-if="
  1254. worksTeacher.length &&
  1255. worksTeacher[toolIndex].length > 0
  1256. ">
  1257. <div class="worksTop">
  1258. <div>作业预览</div>
  1259. </div>
  1260. </div>
  1261. <div class="worksDetailBox" v-if="
  1262. worksTeacher.length &&
  1263. worksTeacher[toolIndex].length > 0
  1264. ">
  1265. <div class="works" style="
  1266. width: 200px;
  1267. height: 140px;
  1268. margin: 10px 10px 10px 0;
  1269. border-radius: 15px;
  1270. box-shadow: 0 0 6px 1px #dfdada;
  1271. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1272. :key="wIndex">
  1273. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  1274. <div class="workImg">
  1275. <img :src="w.works" @click="previewImg(w.works)" alt />
  1276. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1277. rightW:
  1278. w.userid == userid || tType == 1 || tType == 4,
  1279. }">
  1280. {{ JSON.parse(w.score).wScore }}分
  1281. </div>
  1282. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1283. :class="{
  1284. rightW:
  1285. w.userid == userid || tType == 1 || tType == 4,
  1286. }">
  1287. 评分
  1288. </div>
  1289. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1290. w.userid == userid || tType == 1 || tType == 4
  1291. " @click.stop="deleteWorks(w.wid)" alt />
  1292. </div>
  1293. <div class="comment" style="min-width: 200px">
  1294. <div class="worksName">
  1295. <div>{{ w.sName }}</div>
  1296. </div>
  1297. <div class="commentList">
  1298. <div class="commentList">
  1299. <div class="commentImg" @click="
  1300. isLikes(w.wid, userid, 1, null, w.isLikes)
  1301. ">
  1302. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1303. </div>
  1304. <div>{{ w.likesCount }}</div>
  1305. </div>
  1306. <div class="commentList" style="margin-right: 15px">
  1307. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1308. <img src="../../assets/icon/comment/comment.png" alt="" />
  1309. </div>
  1310. <div>{{ w.commentCount }}</div>
  1311. </div>
  1312. </div>
  1313. </div>
  1314. </div>
  1315. </div>
  1316. </div>
  1317. <div v-if="
  1318. tType &&
  1319. ((tType == 2 && sIsOpen == true) ||
  1320. tType == 1 ||
  1321. tType == 4) &&
  1322. tool.tool.indexOf(3) != -1
  1323. " class="worksBox">
  1324. <div class="zuoyeYulan" v-if="
  1325. worksTeacher.length &&
  1326. worksTeacher[toolIndex].length > 0
  1327. ">
  1328. <div class="worksTop">
  1329. <div>作业预览</div>
  1330. </div>
  1331. </div>
  1332. <div class="worksDetailBox" v-if="
  1333. worksTeacher.length &&
  1334. worksTeacher[toolIndex].length > 0
  1335. ">
  1336. <div class="works" style="
  1337. width: 200px;
  1338. height: 140px;
  1339. margin: 10px 10px 10px 0;
  1340. border-radius: 15px;
  1341. box-shadow: 0 0 6px 1px #dfdada;
  1342. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1343. :key="wIndex">
  1344. <!-- @click="previewImg(w.works)" -->
  1345. <div class="workImg">
  1346. <img :src="w.works" @click="previewImg(w.works)" alt />
  1347. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1348. rightW:
  1349. w.userid == userid || tType == 1 || tType == 4,
  1350. }">
  1351. {{ JSON.parse(w.score).wScore }}分
  1352. </div>
  1353. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1354. :class="{
  1355. rightW:
  1356. w.userid == userid || tType == 1 || tType == 4,
  1357. }">
  1358. 评分
  1359. </div>
  1360. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1361. w.userid == userid || tType == 1 || tType == 4
  1362. " @click.stop="deleteWorks(w.wid)" alt />
  1363. </div>
  1364. <div class="comment" style="min-width: 200px">
  1365. <div class="worksName">
  1366. <div>{{ w.sName }}</div>
  1367. </div>
  1368. <div class="commentList">
  1369. <div class="commentList">
  1370. <div class="commentImg" @click="
  1371. isLikes(w.wid, userid, 1, null, w.isLikes)
  1372. ">
  1373. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1374. </div>
  1375. <div>{{ w.likesCount }}</div>
  1376. </div>
  1377. <div class="commentList" style="margin-right: 15px">
  1378. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1379. <img src="../../assets/icon/comment/comment.png" alt="" />
  1380. </div>
  1381. <div>{{ w.commentCount }}</div>
  1382. </div>
  1383. </div>
  1384. </div>
  1385. </div>
  1386. </div>
  1387. </div>
  1388. <div v-if="
  1389. tType &&
  1390. ((tType == 2 && sIsOpen == true) ||
  1391. tType == 1 ||
  1392. tType == 4) &&
  1393. tool.tool.indexOf(6) != -1
  1394. " class="worksBox">
  1395. <div class="zuoyeYulan" v-if="
  1396. worksTeacher.length &&
  1397. worksTeacher[toolIndex].length > 0
  1398. ">
  1399. <div class="worksTop">
  1400. <div>作业预览</div>
  1401. </div>
  1402. </div>
  1403. <div class="worksDetailBox" v-if="
  1404. worksTeacher.length &&
  1405. worksTeacher[toolIndex].length > 0
  1406. ">
  1407. <div class="works" style="
  1408. width: 200px;
  1409. height: 140px;
  1410. margin: 10px 10px 10px 0;
  1411. border-radius: 15px;
  1412. box-shadow: 0 0 6px 1px #dfdada;
  1413. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1414. :key="wIndex">
  1415. <!-- @click="previewImg(w.works)" -->
  1416. <div class="workImg">
  1417. <img :src="w.works" @click="previewImg(w.works)" alt />
  1418. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1419. rightW:
  1420. w.userid == userid || tType == 1 || tType == 4,
  1421. }">
  1422. {{ JSON.parse(w.score).wScore }}分
  1423. </div>
  1424. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1425. :class="{
  1426. rightW:
  1427. w.userid == userid || tType == 1 || tType == 4,
  1428. }">
  1429. 评分
  1430. </div>
  1431. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1432. w.userid == userid || tType == 1 || tType == 4
  1433. " @click.stop="deleteWorks(w.wid)" alt />
  1434. </div>
  1435. <div class="comment" style="min-width: 200px">
  1436. <div class="worksName">
  1437. <div>{{ w.sName }}</div>
  1438. </div>
  1439. <div class="commentList">
  1440. <div class="commentList">
  1441. <div class="commentImg" @click="
  1442. isLikes(w.wid, userid, 1, null, w.isLikes)
  1443. ">
  1444. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1445. </div>
  1446. <div>{{ w.likesCount }}</div>
  1447. </div>
  1448. <div class="commentList" style="margin-right: 15px">
  1449. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1450. <img src="../../assets/icon/comment/comment.png" alt="" />
  1451. </div>
  1452. <div>{{ w.commentCount }}</div>
  1453. </div>
  1454. </div>
  1455. </div>
  1456. </div>
  1457. </div>
  1458. </div>
  1459. <div v-if="
  1460. tType &&
  1461. ((tType == 2 && sIsOpen == true) ||
  1462. tType == 1 ||
  1463. tType == 4) &&
  1464. tool.tool.indexOf(7) != -1
  1465. " class="worksBox">
  1466. <div class="zuoyeYulan" v-if="
  1467. worksTeacher.length &&
  1468. worksTeacher[toolIndex].length > 0
  1469. ">
  1470. <div class="worksTop">
  1471. <div>作业预览</div>
  1472. </div>
  1473. </div>
  1474. <div class="worksDetailBox" v-if="
  1475. worksTeacher.length &&
  1476. worksTeacher[toolIndex].length > 0
  1477. ">
  1478. <div class="works" style="
  1479. width: 200px;
  1480. height: 140px;
  1481. margin: 10px 10px 10px 0;
  1482. border-radius: 15px;
  1483. box-shadow: 0 0 6px 1px #dfdada;
  1484. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1485. :key="wIndex">
  1486. <!-- @click="previewImg(w.works)" -->
  1487. <div class="workImg">
  1488. <img :src="w.works" @click="previewImg(w.works)" alt />
  1489. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1490. rightW:
  1491. w.userid == userid || tType == 1 || tType == 4,
  1492. }">
  1493. {{ JSON.parse(w.score).wScore }}分
  1494. </div>
  1495. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1496. :class="{
  1497. rightW:
  1498. w.userid == userid || tType == 1 || tType == 4,
  1499. }">
  1500. 评分
  1501. </div>
  1502. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1503. w.userid == userid || tType == 1 || tType == 4
  1504. " @click.stop="deleteWorks(w.wid)" alt />
  1505. </div>
  1506. <div class="comment" style="min-width: 200px">
  1507. <div class="worksName">
  1508. <div>{{ w.sName }}</div>
  1509. </div>
  1510. <div class="commentList">
  1511. <div class="commentList">
  1512. <div class="commentImg" @click="
  1513. isLikes(w.wid, userid, 1, null, w.isLikes)
  1514. ">
  1515. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1516. </div>
  1517. <div>{{ w.likesCount }}</div>
  1518. </div>
  1519. <div class="commentList" style="margin-right: 15px">
  1520. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1521. <img src="../../assets/icon/comment/comment.png" alt="" />
  1522. </div>
  1523. <div>{{ w.commentCount }}</div>
  1524. </div>
  1525. </div>
  1526. </div>
  1527. </div>
  1528. </div>
  1529. </div>
  1530. <div v-if="
  1531. tType &&
  1532. ((tType == 2 && sIsOpen == true) ||
  1533. tType == 1 ||
  1534. tType == 4) &&
  1535. tool.tool.indexOf(26) != -1
  1536. " class="worksBox">
  1537. <div class="zuoyeYulan" v-if="
  1538. worksTeacher.length &&
  1539. worksTeacher[toolIndex].length > 0
  1540. ">
  1541. <div class="worksTop">
  1542. <div>作业预览</div>
  1543. </div>
  1544. </div>
  1545. <div class="worksDetailBox" v-if="
  1546. worksTeacher.length &&
  1547. worksTeacher[toolIndex].length > 0
  1548. ">
  1549. <div class="works" style="width: 240px; height: 140px; overflow: hidden"
  1550. v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex"
  1551. :class="w.type == 1 ? 'isTypeOne' : ''">
  1552. <div class="workImg" v-if="w.type == 0">
  1553. <img :src="w.works" @click="previewImg(w.works)" alt />
  1554. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1555. w.userid == userid || tType == 1 || tType == 4
  1556. " @click.stop="deleteWorks(w.wid)" alt />
  1557. </div>
  1558. <div class="workImg" v-if="w.type == 1">
  1559. <img :src="word" @click="openFile(w.works)" alt />
  1560. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1561. w.userid == userid || tType == 1 || tType == 4
  1562. " @click.stop="deleteWorks(w.wid)" alt />
  1563. </div>
  1564. <div class="worksName">
  1565. <div>{{ w.sName }}</div>
  1566. </div>
  1567. </div>
  1568. </div>
  1569. </div>
  1570. <div v-if="
  1571. tType &&
  1572. ((tType == 2 && sIsOpen == true) ||
  1573. tType == 1 ||
  1574. tType == 4) &&
  1575. tool.tool.indexOf(40) != -1
  1576. " class="worksBox">
  1577. <div class="zuoyeYulan" v-if="
  1578. worksTeacher.length &&
  1579. worksTeacher[toolIndex].length > 0
  1580. ">
  1581. <div class="worksTop">
  1582. <div>作业预览</div>
  1583. </div>
  1584. </div>
  1585. <div class="worksDetailBox" v-if="
  1586. worksTeacher.length &&
  1587. worksTeacher[toolIndex].length > 0
  1588. ">
  1589. <div class="works" style="
  1590. width: 200px;
  1591. height: 140px;
  1592. margin: 10px 10px 10px 0;
  1593. border-radius: 15px;
  1594. box-shadow: 0 0 6px 1px #dfdada;
  1595. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1596. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1597. <div class="workImg">
  1598. <img src="../../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1599. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1600. w.userid == userid || tType == 1 || tType == 4
  1601. " @click.stop="deleteWorks(w.wid)" alt />
  1602. </div>
  1603. <div class="comment" style="min-width: 200px">
  1604. <div class="worksName">
  1605. <div>{{ w.sName }}</div>
  1606. </div>
  1607. <div class="commentList">
  1608. <div class="commentList">
  1609. <div class="commentImg" @click="
  1610. isLikes(w.wid, userid, 1, null, w.isLikes)
  1611. ">
  1612. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1613. </div>
  1614. <div>{{ w.likesCount }}</div>
  1615. </div>
  1616. <div class="commentList" style="margin-right: 15px">
  1617. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1618. <img src="../../assets/icon/comment/comment.png" alt="" />
  1619. </div>
  1620. <div>{{ w.commentCount }}</div>
  1621. </div>
  1622. </div>
  1623. </div>
  1624. </div>
  1625. </div>
  1626. </div>
  1627. <div v-if="
  1628. tType &&
  1629. ((tType == 2 && sIsOpen == true) ||
  1630. tType == 1 ||
  1631. tType == 4) &&
  1632. tool.tool.indexOf(41) != -1
  1633. " class="worksBox">
  1634. <div class="zuoyeYulan" v-if="
  1635. worksTeacher.length &&
  1636. worksTeacher[toolIndex].length > 0
  1637. ">
  1638. <div class="worksTop">
  1639. <div>作业预览</div>
  1640. </div>
  1641. </div>
  1642. <div class="worksDetailBox" v-if="
  1643. worksTeacher.length &&
  1644. worksTeacher[toolIndex].length > 0
  1645. ">
  1646. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName"
  1647. @click="openXz(w, toolIndex)">
  1648. {{ w.sName }}
  1649. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  1650. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  1651. </div>
  1652. </div>
  1653. </div>
  1654. <div v-if="
  1655. tType &&
  1656. ((tType == 2 && sIsOpen == true) ||
  1657. tType == 1 ||
  1658. tType == 4) &&
  1659. tool.tool.indexOf(47) != -1
  1660. " class="worksBox">
  1661. <div class="zuoyeYulan" v-if="
  1662. worksTeacher.length &&
  1663. worksTeacher[toolIndex].length > 0
  1664. ">
  1665. <div class="worksTop">
  1666. <div>作业预览</div>
  1667. </div>
  1668. </div>
  1669. <div class="worksDetailBox" v-if="
  1670. worksTeacher.length &&
  1671. worksTeacher[toolIndex].length > 0
  1672. ">
  1673. <!-- @click="openXz(w, toolIndex)" -->
  1674. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName"
  1675. @click="openSen(w, toolIndex)">
  1676. {{ w.sName }}
  1677. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  1678. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  1679. </div>
  1680. </div>
  1681. </div>
  1682. <div v-if="
  1683. tType &&
  1684. ((tType == 2 && sIsOpen == true) ||
  1685. tType == 1 ||
  1686. tType == 4) &&
  1687. tool.tool.indexOf(48) != -1
  1688. " class="worksBox">
  1689. <div class="zuoyeYulan" v-if="
  1690. worksTeacher.length &&
  1691. worksTeacher[toolIndex].length > 0
  1692. ">
  1693. <div class="worksTop">
  1694. <div>作业预览</div>
  1695. </div>
  1696. </div>
  1697. <div class="worksDetailBox" v-if="
  1698. worksTeacher.length &&
  1699. worksTeacher[toolIndex].length > 0
  1700. ">
  1701. <div class="works" style="
  1702. width: 200px;
  1703. height: 140px;
  1704. margin: 10px 10px 10px 0;
  1705. border-radius: 15px;
  1706. box-shadow: 0 0 6px 1px #dfdada;
  1707. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1708. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1709. <div class="workImg">
  1710. <img :src="word" @click="openTable(w)" alt />
  1711. <!-- @click="openFile(w.works)" -->
  1712. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1713. rightW:
  1714. w.userid == userid ||
  1715. tType == 1 ||
  1716. tType == 4 ||
  1717. w.ateacher == userid,
  1718. }">
  1719. {{ JSON.parse(w.score).wScore }}分
  1720. </div>
  1721. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1722. :class="{
  1723. rightW:
  1724. w.userid == userid ||
  1725. tType == 1 ||
  1726. tType == 4 ||
  1727. w.ateacher == userid,
  1728. }">
  1729. 评分
  1730. </div>
  1731. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1732. w.userid == userid || tType == 1 || tType == 4
  1733. " @click.stop="deleteWorks(w.wid)" alt />
  1734. </div>
  1735. <div class="comment" style="min-width: 200px">
  1736. <div class="worksName">
  1737. <div>{{ w.sName }}</div>
  1738. </div>
  1739. <div class="commentList">
  1740. <div class="commentList">
  1741. <div class="commentImg" @click="
  1742. isLikes(w.wid, userid, 1, null, w.isLikes)
  1743. ">
  1744. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1745. </div>
  1746. <div>{{ w.likesCount }}</div>
  1747. </div>
  1748. <div class="commentList" style="margin-right: 15px">
  1749. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1750. <img src="../../assets/icon/comment/comment.png" alt="" />
  1751. </div>
  1752. <div>{{ w.commentCount }}</div>
  1753. </div>
  1754. </div>
  1755. </div>
  1756. </div>
  1757. </div>
  1758. </div>
  1759. <div v-if="
  1760. tType &&
  1761. ((tType == 2 && sIsOpen == true) ||
  1762. tType == 1 ||
  1763. tType == 4) &&
  1764. tool.tool.indexOf(52) != -1
  1765. " class="worksBox">
  1766. <div class="zuoyeYulan" v-if="
  1767. worksTeacher.length &&
  1768. worksTeacher[toolIndex].length > 0
  1769. ">
  1770. <div class="worksTop">
  1771. <div>作业预览</div>
  1772. </div>
  1773. </div>
  1774. <div class="worksDetailBox" v-if="
  1775. worksTeacher.length &&
  1776. worksTeacher[toolIndex].length > 0
  1777. ">
  1778. <div class="works" style="
  1779. width: 200px;
  1780. height: 140px;
  1781. margin: 10px 10px 10px 0;
  1782. border-radius: 15px;
  1783. box-shadow: 0 0 6px 1px #dfdada;
  1784. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1785. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1786. <div class="workImg">
  1787. <img :src="word" @click="openTable(w)" alt />
  1788. <!-- @click="openFile(w.works)" -->
  1789. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1790. rightW:
  1791. w.userid == userid ||
  1792. tType == 1 ||
  1793. tType == 4 ||
  1794. w.ateacher == userid,
  1795. }">
  1796. {{ JSON.parse(w.score).wScore }}分
  1797. </div>
  1798. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1799. :class="{
  1800. rightW:
  1801. w.userid == userid ||
  1802. tType == 1 ||
  1803. tType == 4 ||
  1804. w.ateacher == userid,
  1805. }">
  1806. 评分
  1807. </div>
  1808. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  1809. w.userid == userid || tType == 1 || tType == 4
  1810. " @click.stop="deleteWorks(w.wid)" alt />
  1811. </div>
  1812. <div class="comment" style="min-width: 200px">
  1813. <div class="worksName">
  1814. <div>{{ w.sName }}</div>
  1815. </div>
  1816. <div class="commentList">
  1817. <div class="commentList">
  1818. <div class="commentImg" @click="
  1819. isLikes(w.wid, userid, 1, null, w.isLikes)
  1820. ">
  1821. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1822. </div>
  1823. <div>{{ w.likesCount }}</div>
  1824. </div>
  1825. <div class="commentList" style="margin-right: 15px">
  1826. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1827. <img src="../../assets/icon/comment/comment.png" alt="" />
  1828. </div>
  1829. <div>{{ w.commentCount }}</div>
  1830. </div>
  1831. </div>
  1832. </div>
  1833. </div>
  1834. </div>
  1835. </div>
  1836. </div>
  1837. </div>
  1838. <div class="vedioBox">
  1839. <div v-if="
  1840. tType &&
  1841. ((tType == 2 && sIsOpen == true) ||
  1842. tType == 1 ||
  1843. tType == 4) &&
  1844. tool.tool.indexOf(4) != -1 && worksStudent.length &&
  1845. worksStudent[toolIndex].length &&
  1846. (tool.askJson[0].answer ||
  1847. tool.askJson[0].answer === 0) &&
  1848. checkJson[toolIndex].length
  1849. " class="xuan_right_box">
  1850. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  1851. <div>
  1852. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1853. </div>
  1854. <div class="right_box_xuan">
  1855. <span>正确率</span>
  1856. <span>{{
  1857. (checkJson[toolIndex][index].right
  1858. ? checkJson[toolIndex][index].right
  1859. : 0) + "%"
  1860. }}</span>
  1861. </div>
  1862. </div>
  1863. </div>
  1864. <div class="xuan_right_box" style="background: unset" v-if="
  1865. tType &&
  1866. ((tType == 2 && sIsOpen == true) ||
  1867. tType == 1 ||
  1868. tType == 4) &&
  1869. tool.tool.indexOf(4) != -1 && worksStudent.length &&
  1870. worksStudent[toolIndex].length
  1871. ">
  1872. <AskStatic v-if="
  1873. worksStudent.length &&
  1874. worksStudent[toolIndex].length > 0
  1875. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  1876. </div>
  1877. <div v-if="
  1878. tType &&
  1879. ((tType == 2 && sIsOpen == true) ||
  1880. tType == 1 ||
  1881. tType == 4) &&
  1882. tool.tool.indexOf(45) != -1 && worksStudent.length &&
  1883. worksStudent[toolIndex].length &&
  1884. (tool.testJson.testJson[0].answer ||
  1885. tool.testJson.testJson[0].answer === 0) &&
  1886. checkJson[toolIndex].length
  1887. " class="xuan_right_box">
  1888. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  1889. <div>
  1890. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1891. </div>
  1892. <div class="right_box_xuan">
  1893. <span>正确率</span>
  1894. <span>{{
  1895. (checkJson[toolIndex][index].right
  1896. ? checkJson[toolIndex][index].right
  1897. : 0) + "%"
  1898. }}</span>
  1899. </div>
  1900. </div>
  1901. </div>
  1902. <div class="xuan_right_box" style="background: unset" v-if="
  1903. tType &&
  1904. ((tType == 2 && sIsOpen == true) ||
  1905. tType == 1 ||
  1906. tType == 4) &&
  1907. tool.tool.indexOf(45) != -1 && worksStudent.length &&
  1908. worksStudent[toolIndex].length
  1909. ">
  1910. <AskStatic2 v-if="
  1911. worksStudent.length &&
  1912. worksStudent[toolIndex].length > 0
  1913. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  1914. </div>
  1915. <div v-if="
  1916. tType &&
  1917. ((tType == 2 && sIsOpen == true) ||
  1918. tType == 1 ||
  1919. tType == 4) &&
  1920. tool.tool.indexOf(41) != -1
  1921. ">
  1922. <AnswerData2 v-if="
  1923. worksStudent.length &&
  1924. worksStudent[toolIndex].length > 0
  1925. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  1926. </div>
  1927. <div v-if="
  1928. tType &&
  1929. ((tType == 2 && sIsOpen == true) ||
  1930. tType == 1 ||
  1931. tType == 4) &&
  1932. tool.tool.indexOf(47) != -1
  1933. ">
  1934. <AnswerData v-if="
  1935. checkJson[toolIndex].length &&
  1936. (tool.sentenceList || tool.sentenceList.length > 0)
  1937. " :people="checkJson[toolIndex]"></AnswerData>
  1938. </div>
  1939. </div>
  1940. <div class="vedioBox" v-if="arrayToArray(tool.tool, isWorkTool).length">
  1941. <div class="queTop" style="
  1942. font-size: 25px;
  1943. padding: 15px 0 15px 30px;
  1944. font-weight: bold;
  1945. ">
  1946. 学生工作区
  1947. </div>
  1948. <div class="tool_work_box">
  1949. <div v-if="
  1950. tType &&
  1951. ((tType == 2 && sIsOpen == true) ||
  1952. tType == 1 ||
  1953. tType == 4) &&
  1954. tool.tool.indexOf(16) != -1
  1955. " class="worksBox">
  1956. <div class="noWorksS">
  1957. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  1958. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)">
  1959. {{ s.student }}
  1960. </div>
  1961. </div>
  1962. <div class="zuoyeYulan" v-if="
  1963. worksStudent2.length &&
  1964. worksStudent2[toolIndex].length > 0
  1965. ">
  1966. <div class="worksTop">
  1967. <div>作业预览</div>
  1968. <div class="corOpen" @click="contract(toolIndex)" v-if="
  1969. worksStudent2[toolIndex].length > 6 &&
  1970. isCloseList[toolIndex].isClose == 0
  1971. ">
  1972. 收缩
  1973. </div>
  1974. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1975. 展开
  1976. </div>
  1977. </div>
  1978. </div>
  1979. <div class="worksDetailBox" v-if="
  1980. worksStudent2.length &&
  1981. worksStudent2[toolIndex].length > 0
  1982. ">
  1983. <div class="works" style="
  1984. width: 200px;
  1985. height: 140px;
  1986. margin: 10px 10px 10px 0;
  1987. border-radius: 15px;
  1988. box-shadow: 0 0 6px 1px #dfdada;
  1989. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1990. 0
  1991. ? worksStudent2[toolIndex]
  1992. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  1993. :class="w.type == 1 ? 'isTypeOne' : ''">
  1994. <div class="workImg" v-if="w.type == 0">
  1995. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1996. <img :src="w.works" @click="previewImg(w.works)" alt />
  1997. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1998. rightW:
  1999. w.userid == userid ||
  2000. tType == 1 ||
  2001. tType == 4 ||
  2002. w.ateacher == userid,
  2003. }">
  2004. {{ JSON.parse(w.score).wScore }}分
  2005. </div>
  2006. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2007. :class="{
  2008. rightW:
  2009. w.userid == userid ||
  2010. tType == 1 ||
  2011. tType == 4 ||
  2012. w.ateacher == userid,
  2013. }">
  2014. 评分
  2015. </div>
  2016. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2017. w.userid == userid || tType == 1 || tType == 4
  2018. " @click.stop="deleteWorks(w.wid)" alt />
  2019. </div>
  2020. <div class="workImg" v-if="w.type == 1">
  2021. <img :src="word" @click="openFile(w.works)" alt />
  2022. <!-- @click="openFile(w.works)" -->
  2023. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2024. rightW:
  2025. w.userid == userid ||
  2026. tType == 1 ||
  2027. tType == 4 ||
  2028. w.ateacher == userid,
  2029. }">
  2030. {{ JSON.parse(w.score).wScore }}分
  2031. </div>
  2032. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2033. :class="{
  2034. rightW:
  2035. w.userid == userid ||
  2036. tType == 1 ||
  2037. tType == 4 ||
  2038. w.ateacher == userid,
  2039. }">
  2040. 评分
  2041. </div>
  2042. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2043. w.userid == userid || tType == 1 || tType == 4
  2044. " @click.stop="deleteWorks(w.wid)" alt />
  2045. </div>
  2046. <div class="workImg" v-if="w.type == 3">
  2047. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  2048. <!-- @click="openVideo(w.works)" -->
  2049. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2050. rightW:
  2051. w.userid == userid ||
  2052. tType == 1 ||
  2053. tType == 4 ||
  2054. w.ateacher == userid,
  2055. }">
  2056. {{ JSON.parse(w.score).wScore }}分
  2057. </div>
  2058. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2059. :class="{
  2060. rightW:
  2061. w.userid == userid ||
  2062. tType == 1 ||
  2063. tType == 4 ||
  2064. w.ateacher == userid,
  2065. }">
  2066. 评分
  2067. </div>
  2068. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2069. w.userid == userid || tType == 1 || tType == 4
  2070. " @click.stop="deleteWorks(w.wid)" alt />
  2071. </div>
  2072. <div class="workImg" v-if="w.type == 12">
  2073. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  2074. <!-- @click="openVideo(w.works)" -->
  2075. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2076. rightW:
  2077. w.userid == userid ||
  2078. tType == 1 ||
  2079. tType == 4 ||
  2080. w.ateacher == userid,
  2081. }">
  2082. {{ JSON.parse(w.score).wScore }}分
  2083. </div>
  2084. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2085. :class="{
  2086. rightW:
  2087. w.userid == userid ||
  2088. tType == 1 ||
  2089. tType == 4 ||
  2090. w.ateacher == userid,
  2091. }">
  2092. 评分
  2093. </div>
  2094. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2095. w.userid == userid || tType == 1 || tType == 4
  2096. " @click.stop="deleteWorks(w.wid)" alt />
  2097. </div>
  2098. <div class="comment" style="min-width: 200px">
  2099. <div class="worksName">
  2100. <div>{{ w.sName }}</div>
  2101. </div>
  2102. <div class="commentList">
  2103. <div class="commentList">
  2104. <div class="commentImg" @click="
  2105. isLikes(w.wid, userid, 1, null, w.isLikes)
  2106. ">
  2107. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2108. </div>
  2109. <div>{{ w.likesCount }}</div>
  2110. </div>
  2111. <div class="commentList" style="margin-right: 15px">
  2112. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2113. <img src="../../assets/icon/comment/comment.png" alt="" />
  2114. </div>
  2115. <div>{{ w.commentCount }}</div>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. </div>
  2120. </div>
  2121. </div>
  2122. <div v-if="
  2123. tType &&
  2124. ((tType == 2 && sIsOpen == true) ||
  2125. tType == 1 ||
  2126. tType == 4) &&
  2127. tool.tool.indexOf(32) != -1
  2128. " class="worksBox">
  2129. <div class="noWorksS">
  2130. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2131. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)">
  2132. {{ s.student }}
  2133. </div>
  2134. </div>
  2135. <div class="zuoyeYulan" v-if="
  2136. worksStudent2.length &&
  2137. worksStudent2[toolIndex].length > 0
  2138. ">
  2139. <div class="worksTop">
  2140. <div>作业预览</div>
  2141. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2142. worksStudent2[toolIndex].length > 6 &&
  2143. isCloseList[toolIndex].isClose == 0
  2144. ">
  2145. 收缩
  2146. </div>
  2147. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2148. 展开
  2149. </div>
  2150. </div>
  2151. </div>
  2152. <div class="worksDetailBox" v-if="
  2153. worksStudent2.length &&
  2154. worksStudent2[toolIndex].length > 0
  2155. ">
  2156. <div class="works" style="
  2157. width: 200px;
  2158. height: 140px;
  2159. margin: 10px 10px 10px 0;
  2160. border-radius: 15px;
  2161. box-shadow: 0 0 6px 1px #dfdada;
  2162. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2163. 0
  2164. ? worksStudent2[toolIndex]
  2165. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2166. :class="w.type == 1 ? 'isTypeOne' : ''">
  2167. <div class="workImg">
  2168. <img :src="word2" @click="downloadFile(w.works)" alt />
  2169. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2170. rightW:
  2171. w.userid == userid ||
  2172. tType == 1 ||
  2173. tType == 4 ||
  2174. w.ateacher == userid,
  2175. }">
  2176. {{ JSON.parse(w.score).wScore }}分
  2177. </div>
  2178. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2179. :class="{
  2180. rightW:
  2181. w.userid == userid ||
  2182. tType == 1 ||
  2183. tType == 4 ||
  2184. w.ateacher == userid,
  2185. }">
  2186. 评分
  2187. </div>
  2188. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2189. w.userid == userid || tType == 1 || tType == 4
  2190. " @click.stop="deleteWorks(w.wid)" alt />
  2191. </div>
  2192. <div class="comment" style="min-width: 200px">
  2193. <div class="worksName">
  2194. <div>{{ w.sName }}</div>
  2195. </div>
  2196. <div class="commentList">
  2197. <div class="commentList">
  2198. <div class="commentImg" @click="
  2199. isLikes(w.wid, userid, 1, null, w.isLikes)
  2200. ">
  2201. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2202. </div>
  2203. <div>{{ w.likesCount }}</div>
  2204. </div>
  2205. <div class="commentList" style="margin-right: 15px">
  2206. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2207. <img src="../../assets/icon/comment/comment.png" alt="" />
  2208. </div>
  2209. <div>{{ w.commentCount }}</div>
  2210. </div>
  2211. </div>
  2212. </div>
  2213. </div>
  2214. </div>
  2215. </div>
  2216. <div v-if="
  2217. tType &&
  2218. ((tType == 2 && sIsOpen == true) ||
  2219. tType == 1 ||
  2220. tType == 4) &&
  2221. tool.tool.indexOf(57) != -1
  2222. " class="worksBox">
  2223. <div class="noWorksS">
  2224. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2225. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)">
  2226. {{ s.student }}
  2227. </div>
  2228. </div>
  2229. <div class="zuoyeYulan" v-if="
  2230. worksStudent2.length &&
  2231. worksStudent2[toolIndex].length > 0
  2232. ">
  2233. <div class="worksTop">
  2234. <div>作业预览</div>
  2235. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2236. worksStudent2[toolIndex].length > 6 &&
  2237. isCloseList[toolIndex].isClose == 0
  2238. ">
  2239. 收缩
  2240. </div>
  2241. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2242. 展开
  2243. </div>
  2244. </div>
  2245. </div>
  2246. <div class="worksDetailBox" v-if="
  2247. worksStudent2.length &&
  2248. worksStudent2[toolIndex].length > 0
  2249. ">
  2250. <div class="works" style="
  2251. width: 200px;
  2252. height: 140px;
  2253. margin: 10px 10px 10px 0;
  2254. border-radius: 15px;
  2255. box-shadow: 0 0 6px 1px #dfdada;
  2256. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2257. 0
  2258. ? worksStudent2[toolIndex]
  2259. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2260. :class="w.type == 1 ? 'isTypeOne' : ''">
  2261. <div class="workImg">
  2262. <img :src="word2" @click="downloadFile(w.works)" alt />
  2263. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2264. rightW:
  2265. w.userid == userid ||
  2266. tType == 1 ||
  2267. tType == 4 ||
  2268. w.ateacher == userid,
  2269. }">
  2270. {{ JSON.parse(w.score).wScore }}分
  2271. </div>
  2272. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2273. :class="{
  2274. rightW:
  2275. w.userid == userid ||
  2276. tType == 1 ||
  2277. tType == 4 ||
  2278. w.ateacher == userid,
  2279. }">
  2280. 评分
  2281. </div>
  2282. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2283. w.userid == userid || tType == 1 || tType == 4
  2284. " @click.stop="deleteWorks(w.wid)" alt />
  2285. </div>
  2286. <div class="comment" style="min-width: 200px">
  2287. <div class="worksName">
  2288. <div>{{ w.sName }}</div>
  2289. </div>
  2290. <div class="commentList">
  2291. <div class="commentList">
  2292. <div class="commentImg" @click="
  2293. isLikes(w.wid, userid, 1, null, w.isLikes)
  2294. ">
  2295. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2296. </div>
  2297. <div>{{ w.likesCount }}</div>
  2298. </div>
  2299. <div class="commentList" style="margin-right: 15px">
  2300. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2301. <img src="../../assets/icon/comment/comment.png" alt="" />
  2302. </div>
  2303. <div>{{ w.commentCount }}</div>
  2304. </div>
  2305. </div>
  2306. </div>
  2307. </div>
  2308. </div>
  2309. </div>
  2310. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2311. <div class="noWorksS">
  2312. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2313. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)">
  2314. {{ s.student }}
  2315. </div>
  2316. </div>
  2317. <div class="zuoyeYulan" v-if="
  2318. worksStudent2.length &&
  2319. worksStudent2[toolIndex].length > 0
  2320. ">
  2321. <span>作业预览</span>
  2322. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2323. worksStudent2[toolIndex].length > 6 &&
  2324. isCloseList[toolIndex].isClose == 0
  2325. ">
  2326. 收缩
  2327. </div>
  2328. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2329. 展开
  2330. </div>
  2331. </div>
  2332. <div class="worksDetailBox" v-if="
  2333. worksStudent2.length &&
  2334. worksStudent2[toolIndex].length > 0
  2335. ">
  2336. <div class="works" style="
  2337. width: 200px;
  2338. height: 140px;
  2339. margin: 10px 10px 10px 0;
  2340. border-radius: 15px;
  2341. box-shadow: 0 0 6px 1px #dfdada;
  2342. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2343. 0
  2344. ? worksStudent2[toolIndex]
  2345. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2346. :class="w.type == 1 ? 'isTypeOne' : ''">
  2347. <div class="workImg" v-if="w.type == 0">
  2348. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2349. <img :src="w.works" @click="previewImg(w.works)" alt />
  2350. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2351. rightW:
  2352. w.userid == userid ||
  2353. tType == 1 ||
  2354. tType == 4 ||
  2355. w.ateacher == userid,
  2356. }">
  2357. {{ JSON.parse(w.score).wScore }}分
  2358. </div>
  2359. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2360. :class="{
  2361. rightW:
  2362. w.userid == userid ||
  2363. tType == 1 ||
  2364. tType == 4 ||
  2365. w.ateacher == userid,
  2366. }">
  2367. 评分
  2368. </div>
  2369. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2370. w.userid == userid || tType == 1 || tType == 4
  2371. " @click.stop="deleteWorks(w.wid)" alt />
  2372. </div>
  2373. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  2374. <img :src="word" @click="openFile(w.works)" alt />
  2375. <!-- @click="openFile(w.works)" -->
  2376. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2377. rightW:
  2378. w.userid == userid ||
  2379. tType == 1 ||
  2380. tType == 4 ||
  2381. w.ateacher == userid,
  2382. }">
  2383. {{ JSON.parse(w.score).wScore }}分
  2384. </div>
  2385. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2386. :class="{
  2387. rightW:
  2388. w.userid == userid ||
  2389. tType == 1 ||
  2390. tType == 4 ||
  2391. w.ateacher == userid,
  2392. }">
  2393. 评分
  2394. </div>
  2395. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2396. w.userid == userid || tType == 1 || tType == 4
  2397. " @click.stop="deleteWorks(w.wid)" alt />
  2398. </div>
  2399. <div class="workImg" v-if="w.type == 3">
  2400. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  2401. <!-- @click="openVideo(w.works)" -->
  2402. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2403. rightW:
  2404. w.userid == userid ||
  2405. tType == 1 ||
  2406. tType == 4 ||
  2407. w.ateacher == userid,
  2408. }">
  2409. {{ JSON.parse(w.score).wScore }}分
  2410. </div>
  2411. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2412. :class="{
  2413. rightW:
  2414. w.userid == userid ||
  2415. tType == 1 ||
  2416. tType == 4 ||
  2417. w.ateacher == userid,
  2418. }">
  2419. 评分
  2420. </div>
  2421. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2422. w.userid == userid || tType == 1 || tType == 4
  2423. " @click.stop="deleteWorks(w.wid)" alt />
  2424. </div>
  2425. <div class="comment" style="min-width: 200px">
  2426. <div class="worksName">
  2427. <div style="cursor: pointer" @click="openSname(w.sName, w.wid)">
  2428. {{ w.sName }}
  2429. </div>
  2430. </div>
  2431. <div class="commentList">
  2432. <div class="commentList">
  2433. <div class="commentImg" @click="
  2434. isLikes(w.wid, userid, 1, null, w.isLikes)
  2435. ">
  2436. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2437. </div>
  2438. <div>{{ w.likesCount }}</div>
  2439. </div>
  2440. <div class="commentList" style="margin-right: 15px">
  2441. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2442. <img src="../../assets/icon/comment/comment.png" alt="" />
  2443. </div>
  2444. <div>{{ w.commentCount }}</div>
  2445. </div>
  2446. </div>
  2447. </div>
  2448. </div>
  2449. </div>
  2450. </div>
  2451. <div v-if="
  2452. tType &&
  2453. ((tType == 2 && sIsOpen == true) ||
  2454. tType == 1 ||
  2455. tType == 4) &&
  2456. tool.tool.indexOf(4) != -1
  2457. " class="worksBox">
  2458. <div class="noWorksS">
  2459. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2460. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)">
  2461. {{ s.student }}
  2462. </div>
  2463. </div>
  2464. <div class="zuoyeYulan" v-if="
  2465. worksStudent2.length &&
  2466. worksStudent2[toolIndex].length > 0
  2467. ">
  2468. <div class="worksTop">
  2469. <div>作业预览</div>
  2470. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2471. worksStudent2[toolIndex].length > 6 &&
  2472. isCloseList[toolIndex].isClose == 0
  2473. ">
  2474. 收缩
  2475. </div>
  2476. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2477. 展开
  2478. </div>
  2479. </div>
  2480. </div>
  2481. <div>
  2482. <div class="worksDetailBox" v-if="
  2483. worksStudent2.length &&
  2484. worksStudent2[toolIndex].length > 0
  2485. ">
  2486. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2487. .isClose == 0
  2488. ? worksStudent2[toolIndex]
  2489. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="
  2490. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2491. ">
  2492. {{ w.sName }}
  2493. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="
  2494. w.userid == userid || tType == 1 || tType == 4
  2495. " @click.stop="deleteWorks(w.wid)" alt />
  2496. </div>
  2497. </div>
  2498. </div>
  2499. </div>
  2500. <div v-if="
  2501. tType &&
  2502. ((tType == 2 && sIsOpen == true) ||
  2503. tType == 1 ||
  2504. tType == 4) &&
  2505. tool.tool.indexOf(45) != -1
  2506. " class="worksBox">
  2507. <div class="noWorksS">
  2508. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2509. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)">
  2510. {{ s.student }}
  2511. </div>
  2512. </div>
  2513. <div class="zuoyeYulan" v-if="
  2514. worksStudent2.length &&
  2515. worksStudent2[toolIndex].length > 0
  2516. ">
  2517. <div class="worksTop">
  2518. <div>作业预览</div>
  2519. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2520. worksStudent2[toolIndex].length > 6 &&
  2521. isCloseList[toolIndex].isClose == 0
  2522. ">
  2523. 收缩
  2524. </div>
  2525. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2526. 展开
  2527. </div>
  2528. </div>
  2529. </div>
  2530. <div>
  2531. <div class="worksDetailBox" v-if="
  2532. worksStudent2.length &&
  2533. worksStudent2[toolIndex].length > 0
  2534. ">
  2535. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2536. .isClose == 0
  2537. ? worksStudent2[toolIndex]
  2538. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="
  2539. openTools(
  2540. 45,
  2541. toolIndex,
  2542. taskCount,
  2543. w.works,
  2544. w.sName
  2545. )
  2546. ">
  2547. {{ w.sName }}
  2548. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="
  2549. w.userid == userid || tType == 1 || tType == 4
  2550. " @click.stop="deleteWorks(w.wid)" alt />
  2551. </div>
  2552. </div>
  2553. </div>
  2554. </div>
  2555. <div v-if="
  2556. tType &&
  2557. ((tType == 2 && sIsOpen == true) ||
  2558. tType == 1 ||
  2559. tType == 4) &&
  2560. tool.tool.indexOf(15) != -1
  2561. " class="worksBox">
  2562. <div class="noWorksS">
  2563. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2564. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)">
  2565. {{ s.student }}
  2566. </div>
  2567. </div>
  2568. <div class="zuoyeYulan" v-if="
  2569. worksStudent2.length &&
  2570. worksStudent2[toolIndex].length > 0
  2571. ">
  2572. <div class="worksTop">
  2573. <div>作业预览</div>
  2574. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2575. worksStudent2[toolIndex].length > 6 &&
  2576. isCloseList[toolIndex].isClose == 0
  2577. ">
  2578. 收缩
  2579. </div>
  2580. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2581. 展开
  2582. </div>
  2583. </div>
  2584. </div>
  2585. <div class="worksDetailBox" v-if="
  2586. worksStudent2.length &&
  2587. worksStudent2[toolIndex].length > 0
  2588. ">
  2589. <div class="works" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2590. 0
  2591. ? worksStudent2[toolIndex]
  2592. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2593. <div class="workImg" style="
  2594. border-radius: 15px;
  2595. box-shadow: #eee 0px 0px 5px 5px;
  2596. ">
  2597. <!-- <img
  2598. src="../../assets/icon/works/noImg.png"
  2599. @click="openTools(15, toolIndex, taskCount, w.works)"
  2600. alt=""
  2601. />-->
  2602. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  2603. @click="commentOther(w, toolIndex, wIndex)">
  2604. <!-- <div>{{ w.sName }}</div> -->
  2605. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  2606. placement="top">
  2607. <div class="answerContent">
  2608. {{ JSON.parse(w.works)[0].answer }}
  2609. </div>
  2610. </el-tooltip>
  2611. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2612. rightW:
  2613. w.userid == userid ||
  2614. tType == 1 ||
  2615. tType == 4,
  2616. }">
  2617. {{ JSON.parse(w.score).wScore }}分
  2618. </div>
  2619. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2620. :class="{
  2621. rightW:
  2622. w.userid == userid ||
  2623. tType == 1 ||
  2624. tType == 4,
  2625. }">
  2626. 评分
  2627. </div>
  2628. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2629. w.userid == userid || tType == 1 || tType == 4
  2630. " @click.stop="deleteWorks(w.wid)" alt />
  2631. </div>
  2632. <div class="comment">
  2633. <div class="worksName">
  2634. <div>{{ w.sName }}</div>
  2635. </div>
  2636. <div class="commentList">
  2637. <div class="commentImg" @click="
  2638. isLikes(w.wid, userid, 1, null, w.isLikes)
  2639. ">
  2640. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2641. </div>
  2642. <div>{{ w.likesCount }}</div>
  2643. </div>
  2644. <div class="commentList" style="margin-right: 15px">
  2645. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2646. <img src="../../assets/icon/comment/comment.png" alt="" />
  2647. </div>
  2648. <div>{{ w.commentCount }}</div>
  2649. </div>
  2650. </div>
  2651. </div>
  2652. </div>
  2653. </div>
  2654. </div>
  2655. <div v-if="
  2656. tType &&
  2657. ((tType == 2 && sIsOpen == true) ||
  2658. tType == 1 ||
  2659. tType == 4) &&
  2660. tool.tool.indexOf(1) != -1
  2661. " class="worksBox">
  2662. <div class="noWorksS">
  2663. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2664. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)">
  2665. {{ s.student }}
  2666. </div>
  2667. </div>
  2668. <div class="zuoyeYulan" v-if="
  2669. worksStudent2.length &&
  2670. worksStudent2[toolIndex].length > 0
  2671. ">
  2672. <div class="worksTop">
  2673. <div>作业预览</div>
  2674. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2675. worksStudent2[toolIndex].length > 6 &&
  2676. isCloseList[toolIndex].isClose == 0
  2677. ">
  2678. 收缩
  2679. </div>
  2680. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2681. 展开
  2682. </div>
  2683. </div>
  2684. </div>
  2685. <div class="worksDetailBox" v-if="
  2686. worksStudent2.length &&
  2687. worksStudent2[toolIndex].length > 0
  2688. ">
  2689. <div class="works" style="
  2690. width: 200px;
  2691. height: 140px;
  2692. margin: 10px 10px 10px 0;
  2693. border-radius: 15px;
  2694. box-shadow: 0 0 6px 1px #dfdada;
  2695. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2696. 0
  2697. ? worksStudent2[toolIndex]
  2698. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2699. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2700. <div class="workImg">
  2701. <img :src="w.works" @click="previewImg(w.works)" alt />
  2702. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2703. rightW:
  2704. w.userid == userid || tType == 1 || tType == 4,
  2705. }">
  2706. {{ JSON.parse(w.score).wScore }}分
  2707. </div>
  2708. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2709. :class="{
  2710. rightW:
  2711. w.userid == userid || tType == 1 || tType == 4,
  2712. }">
  2713. 评分
  2714. </div>
  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="comment" style="min-width: 200px">
  2720. <div class="worksName">
  2721. <div>{{ w.sName }}</div>
  2722. </div>
  2723. <div class="commentList">
  2724. <div class="commentList">
  2725. <div class="commentImg" @click="
  2726. isLikes(w.wid, userid, 1, null, w.isLikes)
  2727. ">
  2728. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2729. </div>
  2730. <div>{{ w.likesCount }}</div>
  2731. </div>
  2732. <div class="commentList" style="margin-right: 15px">
  2733. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2734. <img src="../../assets/icon/comment/comment.png" alt="" />
  2735. </div>
  2736. <div>{{ w.commentCount }}</div>
  2737. </div>
  2738. </div>
  2739. </div>
  2740. </div>
  2741. </div>
  2742. </div>
  2743. <div v-if="
  2744. tType &&
  2745. ((tType == 2 && sIsOpen == true) ||
  2746. tType == 1 ||
  2747. tType == 4) &&
  2748. tool.tool.indexOf(3) != -1
  2749. " class="worksBox">
  2750. <div class="noWorksS">
  2751. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2752. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)">
  2753. {{ s.student }}
  2754. </div>
  2755. </div>
  2756. <div class="zuoyeYulan" v-if="
  2757. worksStudent2.length &&
  2758. worksStudent2[toolIndex].length > 0
  2759. ">
  2760. <div class="worksTop">
  2761. <div>作业预览</div>
  2762. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2763. worksStudent2[toolIndex].length > 6 &&
  2764. isCloseList[toolIndex].isClose == 0
  2765. ">
  2766. 收缩
  2767. </div>
  2768. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2769. 展开
  2770. </div>
  2771. </div>
  2772. </div>
  2773. <div class="worksDetailBox" v-if="
  2774. worksStudent2.length &&
  2775. worksStudent2[toolIndex].length > 0
  2776. ">
  2777. <div class="works" 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 isCloseList[toolIndex].isClose ==
  2784. 0
  2785. ? worksStudent2[toolIndex]
  2786. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2787. <!-- @click="previewImg(w.works)" -->
  2788. <div class="workImg">
  2789. <img :src="w.works" @click="previewImg(w.works)" alt />
  2790. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2791. rightW:
  2792. w.userid == userid || tType == 1 || tType == 4,
  2793. }">
  2794. {{ JSON.parse(w.score).wScore }}分
  2795. </div>
  2796. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2797. :class="{
  2798. rightW:
  2799. w.userid == userid || tType == 1 || tType == 4,
  2800. }">
  2801. 评分
  2802. </div>
  2803. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2804. w.userid == userid || tType == 1 || tType == 4
  2805. " @click.stop="deleteWorks(w.wid)" alt />
  2806. </div>
  2807. <div class="comment" style="min-width: 200px">
  2808. <div class="worksName">
  2809. <div>{{ w.sName }}</div>
  2810. </div>
  2811. <div class="commentList">
  2812. <div class="commentList">
  2813. <div class="commentImg" @click="
  2814. isLikes(w.wid, userid, 1, null, w.isLikes)
  2815. ">
  2816. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2817. </div>
  2818. <div>{{ w.likesCount }}</div>
  2819. </div>
  2820. <div class="commentList" style="margin-right: 15px">
  2821. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2822. <img src="../../assets/icon/comment/comment.png" alt="" />
  2823. </div>
  2824. <div>{{ w.commentCount }}</div>
  2825. </div>
  2826. </div>
  2827. </div>
  2828. </div>
  2829. </div>
  2830. </div>
  2831. <div v-if="
  2832. tType &&
  2833. ((tType == 2 && sIsOpen == true) ||
  2834. tType == 1 ||
  2835. tType == 4) &&
  2836. tool.tool.indexOf(6) != -1
  2837. " class="worksBox">
  2838. <div class="noWorksS">
  2839. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  2840. {{ s.student }}
  2841. </div>
  2842. </div>
  2843. <div class="zuoyeYulan" v-if="
  2844. worksStudent2.length &&
  2845. worksStudent2[toolIndex].length > 0
  2846. ">
  2847. <div class="worksTop">
  2848. <div>作业预览</div>
  2849. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2850. worksStudent[toolIndex].length > 6 &&
  2851. isCloseList[toolIndex].isClose == 0
  2852. ">
  2853. 收缩
  2854. </div>
  2855. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2856. 展开
  2857. </div>
  2858. </div>
  2859. </div>
  2860. <div class="worksDetailBox" v-if="
  2861. worksStudent2.length &&
  2862. worksStudent2[toolIndex].length > 0
  2863. ">
  2864. <div class="works" style="
  2865. width: 200px;
  2866. height: 140px;
  2867. margin: 10px 10px 10px 0;
  2868. border-radius: 15px;
  2869. box-shadow: 0 0 6px 1px #dfdada;
  2870. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2871. 0
  2872. ? worksStudent2[toolIndex]
  2873. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2874. <!-- @click="previewImg(w.works)" -->
  2875. <div class="workImg">
  2876. <img :src="w.works" @click="previewImg(w.works)" alt />
  2877. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2878. rightW:
  2879. w.userid == userid || tType == 1 || tType == 4,
  2880. }">
  2881. {{ JSON.parse(w.score).wScore }}分
  2882. </div>
  2883. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2884. :class="{
  2885. rightW:
  2886. w.userid == userid || tType == 1 || tType == 4,
  2887. }">
  2888. 评分
  2889. </div>
  2890. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2891. w.userid == userid || tType == 1 || tType == 4
  2892. " @click.stop="deleteWorks(w.wid)" alt />
  2893. </div>
  2894. <div class="comment" style="min-width: 200px">
  2895. <div class="worksName">
  2896. <div>{{ w.sName }}</div>
  2897. </div>
  2898. <div class="commentList">
  2899. <div class="commentList">
  2900. <div class="commentImg" @click="
  2901. isLikes(w.wid, userid, 1, null, w.isLikes)
  2902. ">
  2903. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2904. </div>
  2905. <div>{{ w.likesCount }}</div>
  2906. </div>
  2907. <div class="commentList" style="margin-right: 15px">
  2908. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2909. <img src="../../assets/icon/comment/comment.png" alt="" />
  2910. </div>
  2911. <div>{{ w.commentCount }}</div>
  2912. </div>
  2913. </div>
  2914. </div>
  2915. </div>
  2916. </div>
  2917. </div>
  2918. <div v-if="
  2919. tType &&
  2920. ((tType == 2 && sIsOpen == true) ||
  2921. tType == 1 ||
  2922. tType == 4) &&
  2923. tool.tool.indexOf(7) != -1
  2924. " class="worksBox">
  2925. <div class="noWorksS">
  2926. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2927. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)">
  2928. {{ s.student }}
  2929. </div>
  2930. </div>
  2931. <div class="zuoyeYulan" v-if="
  2932. worksStudent2.length &&
  2933. worksStudent2[toolIndex].length > 0
  2934. ">
  2935. <div class="worksTop">
  2936. <div>作业预览</div>
  2937. <div class="corOpen" @click="contract(toolIndex)" v-if="
  2938. worksStudent2[toolIndex].length > 6 &&
  2939. isCloseList[toolIndex].isClose == 0
  2940. ">
  2941. 收缩
  2942. </div>
  2943. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2944. 展开
  2945. </div>
  2946. </div>
  2947. </div>
  2948. <div class="worksDetailBox" v-if="
  2949. worksStudent2.length &&
  2950. worksStudent2[toolIndex].length > 0
  2951. ">
  2952. <div class="works" style="
  2953. width: 200px;
  2954. height: 140px;
  2955. margin: 10px 10px 10px 0;
  2956. border-radius: 15px;
  2957. box-shadow: 0 0 6px 1px #dfdada;
  2958. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2959. 0
  2960. ? worksStudent2[toolIndex]
  2961. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2962. <!-- @click="previewImg(w.works)" -->
  2963. <div class="workImg">
  2964. <img :src="w.works" @click="previewImg(w.works)" alt />
  2965. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2966. rightW:
  2967. w.userid == userid || tType == 1 || tType == 4,
  2968. }">
  2969. {{ JSON.parse(w.score).wScore }}分
  2970. </div>
  2971. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2972. :class="{
  2973. rightW:
  2974. w.userid == userid || tType == 1 || tType == 4,
  2975. }">
  2976. 评分
  2977. </div>
  2978. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  2979. w.userid == userid || tType == 1 || tType == 4
  2980. " @click.stop="deleteWorks(w.wid)" alt />
  2981. </div>
  2982. <div class="comment" style="min-width: 200px">
  2983. <div class="worksName">
  2984. <div>{{ w.sName }}</div>
  2985. </div>
  2986. <div class="commentList">
  2987. <div class="commentList">
  2988. <div class="commentImg" @click="
  2989. isLikes(w.wid, userid, 1, null, w.isLikes)
  2990. ">
  2991. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2992. </div>
  2993. <div>{{ w.likesCount }}</div>
  2994. </div>
  2995. <div class="commentList" style="margin-right: 15px">
  2996. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2997. <img src="../../assets/icon/comment/comment.png" alt="" />
  2998. </div>
  2999. <div>{{ w.commentCount }}</div>
  3000. </div>
  3001. </div>
  3002. </div>
  3003. </div>
  3004. </div>
  3005. </div>
  3006. <div v-if="
  3007. tType &&
  3008. ((tType == 2 && sIsOpen == true) ||
  3009. tType == 1 ||
  3010. tType == 4) &&
  3011. tool.tool.indexOf(26) != -1
  3012. " class="worksBox">
  3013. <div class="noWorksS">
  3014. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  3015. {{ s.student }}
  3016. </div>
  3017. </div>
  3018. <div class="zuoyeYulan" v-if="
  3019. worksStudent2.length &&
  3020. worksStudent2[toolIndex].length > 0
  3021. ">
  3022. <div class="worksTop">
  3023. <div>作业预览</div>
  3024. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3025. worksStudent2[toolIndex].length > 6 &&
  3026. isCloseList[toolIndex].isClose == 0
  3027. ">
  3028. 收缩
  3029. </div>
  3030. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3031. 展开
  3032. </div>
  3033. </div>
  3034. </div>
  3035. <div class="worksDetailBox" v-if="
  3036. worksStudent2.length &&
  3037. worksStudent2[toolIndex].length > 0
  3038. ">
  3039. <div class="works" style="width: 240px; height: 140px; overflow: hidden" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3040. 0
  3041. ? worksStudent2[toolIndex]
  3042. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  3043. <div class="workImg" v-if="w.type == 0">
  3044. <img :src="w.works" @click="previewImg(w.works)" alt />
  3045. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  3046. w.userid == userid || tType == 1 || tType == 4
  3047. " @click.stop="deleteWorks(w.wid)" alt />
  3048. </div>
  3049. <div class="workImg" v-if="w.type == 1">
  3050. <img :src="word" @click="openFile(w.works)" alt />
  3051. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  3052. w.userid == userid || tType == 1 || tType == 4
  3053. " @click.stop="deleteWorks(w.wid)" alt />
  3054. </div>
  3055. <div class="worksName">
  3056. <div>{{ w.sName }}</div>
  3057. </div>
  3058. </div>
  3059. </div>
  3060. </div>
  3061. <div v-if="
  3062. tType &&
  3063. ((tType == 2 && sIsOpen == true) ||
  3064. tType == 1 ||
  3065. tType == 4) &&
  3066. tool.tool.indexOf(40) != -1
  3067. " class="worksBox">
  3068. <div class="noWorksS">
  3069. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  3070. {{ s.student }}
  3071. </div>
  3072. </div>
  3073. <div class="zuoyeYulan" v-if="
  3074. worksStudent2.length &&
  3075. worksStudent2[toolIndex].length > 0
  3076. ">
  3077. <div class="worksTop">
  3078. <div>作业预览</div>
  3079. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3080. worksStudent2[toolIndex].length > 6 &&
  3081. isCloseList[toolIndex].isClose == 0
  3082. ">
  3083. 收缩
  3084. </div>
  3085. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3086. 展开
  3087. </div>
  3088. </div>
  3089. </div>
  3090. <div class="worksDetailBox" v-if="
  3091. worksStudent2.length &&
  3092. worksStudent2[toolIndex].length > 0
  3093. ">
  3094. <div class="works" style="
  3095. width: 200px;
  3096. height: 140px;
  3097. margin: 10px 10px 10px 0;
  3098. border-radius: 15px;
  3099. box-shadow: 0 0 6px 1px #dfdada;
  3100. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3101. 0
  3102. ? worksStudent2[toolIndex]
  3103. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3104. :class="w.type == 1 ? 'isTypeOne' : ''">
  3105. <div class="workImg">
  3106. <img src="../../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  3107. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  3108. w.userid == userid || tType == 1 || tType == 4
  3109. " @click.stop="deleteWorks(w.wid)" alt />
  3110. </div>
  3111. <div class="comment" style="min-width: 200px">
  3112. <div class="worksName">
  3113. <div>{{ w.sName }}</div>
  3114. </div>
  3115. <div class="commentList">
  3116. <div class="commentList">
  3117. <div class="commentImg" @click="
  3118. isLikes(w.wid, userid, 1, null, w.isLikes)
  3119. ">
  3120. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3121. </div>
  3122. <div>{{ w.likesCount }}</div>
  3123. </div>
  3124. <div class="commentList" style="margin-right: 15px">
  3125. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3126. <img src="../../assets/icon/comment/comment.png" alt="" />
  3127. </div>
  3128. <div>{{ w.commentCount }}</div>
  3129. </div>
  3130. </div>
  3131. </div>
  3132. </div>
  3133. </div>
  3134. </div>
  3135. <div v-if="
  3136. tType &&
  3137. ((tType == 2 && sIsOpen == true) ||
  3138. tType == 1 ||
  3139. tType == 4) &&
  3140. tool.tool.indexOf(41) != -1
  3141. " class="worksBox">
  3142. <div class="noWorksS">
  3143. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3144. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)">
  3145. {{ s.student }}
  3146. </div>
  3147. </div>
  3148. <div class="zuoyeYulan" v-if="
  3149. worksStudent2.length &&
  3150. worksStudent2[toolIndex].length > 0
  3151. ">
  3152. <div class="worksTop">
  3153. <div>作业预览</div>
  3154. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3155. worksStudent2[toolIndex].length > 6 &&
  3156. isCloseList[toolIndex].isClose == 0
  3157. ">
  3158. 收缩
  3159. </div>
  3160. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3161. 展开
  3162. </div>
  3163. </div>
  3164. </div>
  3165. <div class="worksDetailBox" v-if="
  3166. worksStudent2.length &&
  3167. worksStudent2[toolIndex].length > 0
  3168. ">
  3169. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3170. 0
  3171. ? worksStudent2[toolIndex]
  3172. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  3173. @click="openXz(w, toolIndex)">
  3174. {{ w.sName }}
  3175. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  3176. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  3177. </div>
  3178. </div>
  3179. </div>
  3180. <div v-if="
  3181. tType &&
  3182. ((tType == 2 && sIsOpen == true) ||
  3183. tType == 1 ||
  3184. tType == 4) &&
  3185. tool.tool.indexOf(47) != -1
  3186. " class="worksBox">
  3187. <div class="noWorksS">
  3188. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3189. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)">
  3190. {{ s.student }}
  3191. </div>
  3192. </div>
  3193. <div class="zuoyeYulan" v-if="
  3194. worksStudent2.length &&
  3195. worksStudent2[toolIndex].length > 0
  3196. ">
  3197. <div class="worksTop">
  3198. <div>作业预览</div>
  3199. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3200. worksStudent2[toolIndex].length > 6 &&
  3201. isCloseList[toolIndex].isClose == 0
  3202. ">
  3203. 收缩
  3204. </div>
  3205. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3206. 展开
  3207. </div>
  3208. </div>
  3209. </div>
  3210. <div class="worksDetailBox" v-if="
  3211. worksStudent2.length &&
  3212. worksStudent2[toolIndex].length > 0
  3213. ">
  3214. <!-- @click="openXz(w, toolIndex)" -->
  3215. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3216. 0
  3217. ? worksStudent2[toolIndex]
  3218. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  3219. @click="openSen(w, toolIndex)">
  3220. {{ w.sName }}
  3221. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  3222. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  3223. </div>
  3224. </div>
  3225. </div>
  3226. <div v-if="
  3227. tType &&
  3228. ((tType == 2 && sIsOpen == true) ||
  3229. tType == 1 ||
  3230. tType == 4) &&
  3231. tool.tool.indexOf(48) != -1
  3232. " class="worksBox">
  3233. <div class="noWorksS">
  3234. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3235. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)">
  3236. {{ s.student }}
  3237. </div>
  3238. </div>
  3239. <div class="zuoyeYulan" v-if="
  3240. worksStudent2.length &&
  3241. worksStudent2[toolIndex].length > 0
  3242. ">
  3243. <div class="worksTop">
  3244. <div>作业预览</div>
  3245. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3246. worksStudent2[toolIndex].length > 6 &&
  3247. isCloseList[toolIndex].isClose == 0
  3248. ">
  3249. 收缩
  3250. </div>
  3251. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3252. 展开
  3253. </div>
  3254. </div>
  3255. </div>
  3256. <div class="worksDetailBox" v-if="
  3257. worksStudent2.length &&
  3258. worksStudent2[toolIndex].length > 0
  3259. ">
  3260. <div class="works" style="
  3261. width: 200px;
  3262. height: 140px;
  3263. margin: 10px 10px 10px 0;
  3264. border-radius: 15px;
  3265. box-shadow: 0 0 6px 1px #dfdada;
  3266. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3267. 0
  3268. ? worksStudent2[toolIndex]
  3269. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3270. :class="w.type == 1 ? 'isTypeOne' : ''">
  3271. <div class="workImg">
  3272. <img :src="word" @click="openTable(w)" alt />
  3273. <!-- @click="openFile(w.works)" -->
  3274. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3275. rightW:
  3276. w.userid == userid ||
  3277. tType == 1 ||
  3278. tType == 4 ||
  3279. w.ateacher == userid,
  3280. }">
  3281. {{ JSON.parse(w.score).wScore }}分
  3282. </div>
  3283. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3284. :class="{
  3285. rightW:
  3286. w.userid == userid ||
  3287. tType == 1 ||
  3288. tType == 4 ||
  3289. w.ateacher == userid,
  3290. }">
  3291. 评分
  3292. </div>
  3293. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  3294. w.userid == userid || tType == 1 || tType == 4
  3295. " @click.stop="deleteWorks(w.wid)" alt />
  3296. </div>
  3297. <div class="comment" style="min-width: 200px">
  3298. <div class="worksName">
  3299. <div>{{ w.sName }}</div>
  3300. </div>
  3301. <div class="commentList">
  3302. <div class="commentList">
  3303. <div class="commentImg" @click="
  3304. isLikes(w.wid, userid, 1, null, w.isLikes)
  3305. ">
  3306. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3307. </div>
  3308. <div>{{ w.likesCount }}</div>
  3309. </div>
  3310. <div class="commentList" style="margin-right: 15px">
  3311. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3312. <img src="../../assets/icon/comment/comment.png" alt="" />
  3313. </div>
  3314. <div>{{ w.commentCount }}</div>
  3315. </div>
  3316. </div>
  3317. </div>
  3318. </div>
  3319. </div>
  3320. </div>
  3321. <div v-if="
  3322. tType &&
  3323. ((tType == 2 && sIsOpen == true) ||
  3324. tType == 1 ||
  3325. tType == 4) &&
  3326. tool.tool.indexOf(52) != -1
  3327. " class="worksBox">
  3328. <div class="noWorksS">
  3329. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3330. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)">
  3331. {{ s.student }}
  3332. </div>
  3333. </div>
  3334. <div class="zuoyeYulan" v-if="
  3335. worksStudent2.length &&
  3336. worksStudent2[toolIndex].length > 0
  3337. ">
  3338. <div class="worksTop">
  3339. <div>作业预览</div>
  3340. <div class="corOpen" @click="contract(toolIndex)" v-if="
  3341. worksStudent2[toolIndex].length > 6 &&
  3342. isCloseList[toolIndex].isClose == 0
  3343. ">
  3344. 收缩
  3345. </div>
  3346. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3347. 展开
  3348. </div>
  3349. </div>
  3350. </div>
  3351. <div class="worksDetailBox" v-if="
  3352. worksStudent2.length &&
  3353. worksStudent2[toolIndex].length > 0
  3354. ">
  3355. <div class="works" style="
  3356. width: 200px;
  3357. height: 140px;
  3358. margin: 10px 10px 10px 0;
  3359. border-radius: 15px;
  3360. box-shadow: 0 0 6px 1px #dfdada;
  3361. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3362. 0
  3363. ? worksStudent2[toolIndex]
  3364. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3365. :class="w.type == 1 ? 'isTypeOne' : ''">
  3366. <div class="workImg">
  3367. <img :src="word" @click="openTable(w)" alt />
  3368. <!-- @click="openFile(w.works)" -->
  3369. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3370. rightW:
  3371. w.userid == userid ||
  3372. tType == 1 ||
  3373. tType == 4 ||
  3374. w.ateacher == userid,
  3375. }">
  3376. {{ JSON.parse(w.score).wScore }}分
  3377. </div>
  3378. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3379. :class="{
  3380. rightW:
  3381. w.userid == userid ||
  3382. tType == 1 ||
  3383. tType == 4 ||
  3384. w.ateacher == userid,
  3385. }">
  3386. 评分
  3387. </div>
  3388. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="
  3389. w.userid == userid || tType == 1 || tType == 4
  3390. " @click.stop="deleteWorks(w.wid)" alt />
  3391. </div>
  3392. <div class="comment" style="min-width: 200px">
  3393. <div class="worksName">
  3394. <div>{{ w.sName }}</div>
  3395. </div>
  3396. <div class="commentList">
  3397. <div class="commentList">
  3398. <div class="commentImg" @click="
  3399. isLikes(w.wid, userid, 1, null, w.isLikes)
  3400. ">
  3401. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3402. </div>
  3403. <div>{{ w.likesCount }}</div>
  3404. </div>
  3405. <div class="commentList" style="margin-right: 15px">
  3406. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  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 class="vedioBox" v-if="
  3419. false
  3420. ">
  3421. <div class="queTop" style="
  3422. font-size: 25px;
  3423. padding: 15px 0 15px 30px;
  3424. font-weight: bold;
  3425. ">
  3426. 评一评
  3427. </div>
  3428. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  3429. <div class="elist_input">
  3430. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  3431. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  3432. <div style="width: 95%">
  3433. <div style="
  3434. display: flex;
  3435. flex-direction: row;
  3436. flex-wrap: nowrap;
  3437. align-items: center;
  3438. ">
  3439. <div style="max-width: calc(100% - 285px)">
  3440. <span>{{ eItem.value }}</span>
  3441. </div>
  3442. <div style="
  3443. padding-left: 25px;
  3444. display: flex;
  3445. flex-direction: row;
  3446. align-items: center;
  3447. ">
  3448. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  3449. </div>
  3450. </div>
  3451. <div class="elist_inptu_text" style="padding-left: 10px">
  3452. <span v-if="eItem.detail != ''">{{
  3453. eItem.detail
  3454. }}</span>
  3455. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  3456. </div>
  3457. </div>
  3458. </div>
  3459. </div>
  3460. <div v-if="evalua" style="
  3461. border: 1px solid #e5e5e5;
  3462. max-width: 650px;
  3463. width: 100%;
  3464. margin-top: 20px;
  3465. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3466. ">
  3467. <div class="e_add_top">
  3468. <div class="e_add_title">
  3469. <span>目标管理名称</span>
  3470. <span>{{ eTitle }}</span>
  3471. <img src="../../assets/line.png" class="cru_line" style="
  3472. width: 125px;
  3473. height: 20px;
  3474. bottom: -10px;
  3475. left: 120px;
  3476. " />
  3477. <!-- <el-input
  3478. v-model="eTitle"
  3479. placeholder="请输入名称"
  3480. @change="setMindData"
  3481. ></el-input>-->
  3482. </div>
  3483. </div>
  3484. <div class="e_add_content">
  3485. <div class="e_add_list_pbox">
  3486. <div class="e_add_list_pbox_title">
  3487. <span class="type_title">切换模式</span>
  3488. <div class="type_content">
  3489. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  3490. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  3491. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  3492. </div>
  3493. </div>
  3494. <div class="e_add_list_pbox_content">
  3495. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  3496. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  3497. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  3498. </SeeBoard>
  3499. </div>
  3500. </div>
  3501. </div>
  3502. </div>
  3503. </div>
  3504. </div>
  3505. </div>
  3506. </div>
  3507. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  3508. :before-close="handleClose" class="dialog_change">
  3509. <div class="marginT">
  3510. <div>上传文件</div>
  3511. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3512. <div class="up_photo">
  3513. <img src="../../assets/icon/uploadImg.png" alt />
  3514. </div>
  3515. <!-- <input
  3516. type="file"
  3517. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3518. style="display: none"
  3519. @change="beforeUpload1($event, 1)"
  3520. /> -->
  3521. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  3522. <!-- <input
  3523. type="file"
  3524. accept="image/*"
  3525. capture="camera"
  3526. style="display: none"
  3527. @change="beforeUpload1($event, 1)"
  3528. /> -->
  3529. </div>
  3530. <div class="chapter_add" style="
  3531. display: flex;
  3532. width: 100%;
  3533. flex-direction: row;
  3534. flex-wrap: wrap;
  3535. justify-content: flex-start;
  3536. padding: 15px 0;
  3537. " v-if="studyJuri[0].cover.length > 0">
  3538. <div class="upCover">
  3539. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3540. <img :src="word" alt v-else-if="fileType == 1" />
  3541. <img :src="video" alt v-else-if="fileType == 2" />
  3542. <img :src="word2" alt v-else-if="fileType == 3" />
  3543. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3544. <div class="deleteWord" @click="clean(1)">
  3545. <img src="../../assets/icon/deleteWorks.png" alt />
  3546. </div>
  3547. </div>
  3548. </div>
  3549. </div>
  3550. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  3551. 提交
  3552. </div>
  3553. </el-dialog>
  3554. </div>
  3555. </div>
  3556. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4">
  3557. <!-- 批 -->
  3558. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  3559. </div>
  3560. <div v-if="pzDialog == true" class="newDialogCss">
  3561. <div class="pzTop2">
  3562. <!-- <div>批注</div>
  3563. <div @click="pzDialog = false">
  3564. <img src="../../assets/close1.png" alt="" />
  3565. </div> -->
  3566. <div class="checkbox">
  3567. <div class="check" style="font-size: 25px">评课笔记</div>
  3568. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  3569. </div>
  3570. </div>
  3571. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  3572. <div class="pzListBox" v-if="pzList && pzList.length">
  3573. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  3574. <div class="pzNavTop">
  3575. <div>批</div>
  3576. <div>
  3577. {{
  3578. pz.username && pz.username.length > 5
  3579. ? pz.username.substring(0, 5) + "..."
  3580. : pz.username
  3581. }}的批注
  3582. </div>
  3583. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  3584. 删除
  3585. </div>
  3586. </div>
  3587. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  3588. <div class="pzContent" v-if="pz.type == '2'">
  3589. <audio :src="pz.content" controls="controls" ref="audio">
  3590. Your browser does not support the audio element.
  3591. </audio>
  3592. </div>
  3593. <div class="pzContent" v-if="pz.type == '3'">
  3594. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  3595. </div>
  3596. <div class="time">
  3597. {{ pz.time }}
  3598. </div>
  3599. </div>
  3600. </div>
  3601. <div class="noPz" v-else>
  3602. <img src="../../assets/icon/noPz.png" alt="" />
  3603. </div>
  3604. <div class="addPzButton">
  3605. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  3606. 添加批注
  3607. </div>
  3608. <!-- <div class="img1">
  3609. <div @click="(addPzDialog = true), (pzType = 2)">
  3610. <img src="../../assets/audio.png" /><span>音频</span>
  3611. </div>
  3612. </div> -->
  3613. </div>
  3614. </div>
  3615. </div>
  3616. <div v-if="addPzDialog == true" class="addDialogCss">
  3617. <div class="pzTop">
  3618. <div class="teacherPz">
  3619. <div class="teacherPzImg">
  3620. <img src="../../assets/icon/teacherPz.png" alt="" />
  3621. </div>
  3622. <div style="margin-left: 10px; height: 25px">教师批注</div>
  3623. </div>
  3624. <div @click="addPzDialog = false">
  3625. <img src="../../assets/close1.png" alt="" />
  3626. </div>
  3627. </div>
  3628. <div class="addPzBox">
  3629. <div class="addPzCheck">
  3630. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  3631. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  3632. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  3633. </div>
  3634. <div style="height: calc(100% - 95px)">
  3635. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  3636. v-if="pzType == 1"></textarea> -->
  3637. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  3638. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  3639. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  3640. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  3641. <div @click="addImg($event)">
  3642. <el-button type="primary">上传图片</el-button>
  3643. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  3644. @change="beforeUpload1($event, 4)" />
  3645. </div>
  3646. </div> -->
  3647. </div>
  3648. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  3649. 确定
  3650. </div>
  3651. </div>
  3652. </div>
  3653. <div v-if="proVisible" class="mask">
  3654. <div class="progressBox">
  3655. <!-- <div id="closePro" class="closeCss">
  3656. <img src="../../assets/icon/close.png" alt />
  3657. </div> -->
  3658. <div class="lbox">
  3659. <img src="../../assets/loading.gif" />上传中,请稍后
  3660. </div>
  3661. <div style="margin-bottom: 10px">
  3662. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  3663. </div>
  3664. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  3665. </div>
  3666. </div>
  3667. <div v-if="proVisible2" class="mask">
  3668. <div class="progressBox">
  3669. <div class="lbox">
  3670. <img src="../../assets/loading.gif" />上传中,请稍后
  3671. </div>
  3672. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  3673. </div>
  3674. </div>
  3675. <el-dialog :visible.sync="pictureDialog" size="tiny">
  3676. <img width="100%" :src="dialogImageUrl" alt />
  3677. </el-dialog>
  3678. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  3679. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3680. <div>
  3681. <div class="a_add_title" style="
  3682. display: flex;
  3683. flex-direction: row;
  3684. align-items: center;
  3685. justify-content: center;
  3686. ">
  3687. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3688. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3689. </div>
  3690. <div class="a_addBox">
  3691. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3692. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3693. <div class="a_add_head">
  3694. <div style="display: flex">
  3695. {{ index1 + 1 + "、" }}
  3696. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3697. </div>
  3698. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3699. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3700. </div>
  3701. <div class="a_add_body">
  3702. <div class="a_add_input">
  3703. <el-radio-group v-model="radio[index1]">
  3704. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  3705. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3706. v-html="item2"></span></el-radio>
  3707. </el-radio-group>
  3708. </div>
  3709. </div>
  3710. </div>
  3711. </div>
  3712. </div>
  3713. <span slot="footer" class="dialog-footer">
  3714. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  3715. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  3716. </span>
  3717. </el-dialog>
  3718. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5Teacher" :append-to-body="true"
  3719. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3720. <div>
  3721. <div class="w_name">
  3722. 学生姓名:<span>{{ sStudent.student }}</span>
  3723. </div>
  3724. <div class="a_add_title" style="
  3725. display: flex;
  3726. flex-direction: row;
  3727. align-items: center;
  3728. justify-content: center;
  3729. ">
  3730. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3731. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3732. </div>
  3733. <div class="a_addBox">
  3734. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3735. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3736. <div class="a_add_head">
  3737. <div style="display: flex">
  3738. {{ index1 + 1 + "、" }}
  3739. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3740. </div>
  3741. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3742. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3743. </div>
  3744. <div class="a_add_body">
  3745. <div class="a_add_input">
  3746. <el-radio-group v-model="radio[index1]">
  3747. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  3748. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3749. v-html="item2"></span></el-radio>
  3750. </el-radio-group>
  3751. </div>
  3752. </div>
  3753. </div>
  3754. </div>
  3755. </div>
  3756. <span slot="footer" class="dialog-footer">
  3757. <el-button @click="dialogVisible5Teacher = false" v-show="noteName == ''">取 消</el-button>
  3758. <el-button type="primary" @click="addStudentAskTeacher" v-show="noteName == ''">确 定</el-button>
  3759. </span>
  3760. </el-dialog>
  3761. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  3762. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3763. <div>
  3764. <div class="a_addBox">
  3765. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3766. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3767. <div class="a_add_head">
  3768. <div style="display: flex">
  3769. {{ index1 + 1 + "、" }}
  3770. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  3771. (单选题)
  3772. </div>
  3773. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  3774. (多选题)
  3775. </div>
  3776. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3777. </div>
  3778. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  3779. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3780. </div>
  3781. <div class="timuImgBox" v-if="
  3782. testJson.testJson[index1].timuList &&
  3783. testJson.testJson[index1].timuList.length
  3784. ">
  3785. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3786. @click.stop="previewImg(timg.src)">
  3787. <img :src="timg.src" alt="" />
  3788. </div>
  3789. </div>
  3790. <div class="a_add_body">
  3791. <div class="a_add_input">
  3792. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  3793. <div class="radioBox">
  3794. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3795. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3796. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3797. <div class="inImg" @click.stop="previewImg(item2.src)">
  3798. <img :src="item2.src" alt="" />
  3799. </div>
  3800. </div>
  3801. <span v-else v-html="item2"></span>
  3802. </el-radio>
  3803. </div>
  3804. </el-radio-group>
  3805. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  3806. <div class="radioBox">
  3807. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  3808. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3809. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3810. <div class="inImg" @click.stop="previewImg(item2.src)">
  3811. <img :src="item2.src" alt="" />
  3812. </div>
  3813. </div>
  3814. <span v-else v-html="item2"></span>
  3815. </el-checkbox>
  3816. </div>
  3817. </el-checkbox-group>
  3818. </div>
  3819. </div>
  3820. </div>
  3821. </div>
  3822. </div>
  3823. <span slot="footer" class="dialog-footer">
  3824. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  3825. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  3826. </span>
  3827. </el-dialog>
  3828. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoiceTeacher"
  3829. :append-to-body="true" width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3830. <div>
  3831. <div class="w_name">
  3832. 学生姓名:<span>{{ sStudent.student }}</span>
  3833. </div>
  3834. <div class="a_addBox">
  3835. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3836. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3837. <div class="a_add_head">
  3838. <div style="display: flex">
  3839. {{ index1 + 1 + "、" }}
  3840. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  3841. (单选题)
  3842. </div>
  3843. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  3844. (多选题)
  3845. </div>
  3846. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3847. </div>
  3848. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  3849. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3850. </div>
  3851. <div class="timuImgBox" v-if="
  3852. testJson.testJson[index1].timuList &&
  3853. testJson.testJson[index1].timuList.length
  3854. ">
  3855. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3856. @click.stop="previewImg(timg.src)">
  3857. <img :src="timg.src" alt="" />
  3858. </div>
  3859. </div>
  3860. <div class="a_add_body">
  3861. <div class="a_add_input">
  3862. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  3863. <div class="radioBox">
  3864. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3865. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3866. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3867. <div class="inImg" @click.stop="previewImg(item2.src)">
  3868. <img :src="item2.src" alt="" />
  3869. </div>
  3870. </div>
  3871. <span v-else v-html="item2"></span>
  3872. </el-radio>
  3873. </div>
  3874. </el-radio-group>
  3875. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  3876. <div class="radioBox">
  3877. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  3878. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3879. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3880. <div class="inImg" @click.stop="previewImg(item2.src)">
  3881. <img :src="item2.src" alt="" />
  3882. </div>
  3883. </div>
  3884. <span v-else v-html="item2"></span>
  3885. </el-checkbox>
  3886. </div>
  3887. </el-checkbox-group>
  3888. </div>
  3889. </div>
  3890. </div>
  3891. </div>
  3892. </div>
  3893. <span slot="footer" class="dialog-footer">
  3894. <el-button @click="dialogVisibleChoiceTeacher = false" v-show="noteName == ''">取 消</el-button>
  3895. <el-button type="primary" @click="addStudentTestTeacher" v-show="noteName == ''">确 定</el-button>
  3896. </span>
  3897. </el-dialog>
  3898. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  3899. :before-close="handleClose" class="dialog_diy textCss">
  3900. <el-form style="font-size: 20px">
  3901. <el-form-item label="文本标题" class="textTitle">
  3902. <div style="font-size: 20px">{{ text.name }}</div>
  3903. </el-form-item>
  3904. <div>富文本内容</div>
  3905. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  3906. </el-form>
  3907. <span slot="footer" class="dialog-footer">
  3908. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  3909. </span>
  3910. </el-dialog>
  3911. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  3912. :class="{ fullStyle: full }">
  3913. <div slot="title" class="header-title">
  3914. <div style="color: #fff">文件预览</div>
  3915. <div style="position: absolute; top: 19px; right: 50px">
  3916. <img src="../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  3917. </div>
  3918. </div>
  3919. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3920. :class="{ fullStyle: full }"></pdf>
  3921. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  3922. </el-dialog>
  3923. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  3924. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  3925. </el-dialog>
  3926. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  3927. class="dialog_diy notice">
  3928. <div>此功能暂未开放!</div>
  3929. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  3930. </el-dialog>
  3931. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  3932. :before-close="handleClose" class="dialog_diy">
  3933. <div>
  3934. <div style="
  3935. display: flex;
  3936. flex-wrap: nowrap;
  3937. flex-direction: column;
  3938. position: relative;
  3939. ">
  3940. <div class="queTop" style="padding: 20px 0 20px 0">
  3941. <div class="question">
  3942. <img src="../../assets/icon/question.png" alt />
  3943. </div>
  3944. <div class="queTitle">
  3945. <div style="width: 90px; min-width: 90px">提问:</div>
  3946. <div>{{ answerQ }}</div>
  3947. </div>
  3948. </div>
  3949. <div class="ediBottom">
  3950. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  3951. v-model="questionAnswer"></textarea>
  3952. </div>
  3953. </div>
  3954. </div>
  3955. <div slot="footer">
  3956. <el-button @click="answerDialogVisible = false">取 消</el-button>
  3957. <el-button type="primary" @click="addQuestion">提 交</el-button>
  3958. </div>
  3959. </el-dialog>
  3960. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  3961. :before-close="handleClose" class="dialog_diy">
  3962. <div>
  3963. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  3964. </div>
  3965. <div slot="footer">
  3966. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  3967. </div>
  3968. </el-dialog>
  3969. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  3970. class="dialog_diy">
  3971. <div>
  3972. <div class="open_box">
  3973. <div class="switch_box">
  3974. <span>允许学生查看所有作业</span>
  3975. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  3976. </div>
  3977. <div class="switch_box" v-if="
  3978. courseDetail.userid == userid ||
  3979. (courseDetail.course_teacher &&
  3980. courseDetail.course_teacher.indexOf(userid) != -1)
  3981. ">
  3982. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  3983. <span>禁止学生查看所有阶段</span>
  3984. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  3985. </div>
  3986. <div class="switch_box" v-if="courseDetail.userid == userid">
  3987. <span>开启跟随模式</span>
  3988. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  3989. </div>
  3990. </div>
  3991. </div>
  3992. <div slot="footer">
  3993. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  3994. </div>
  3995. </el-dialog>
  3996. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  3997. class="dialog_diy1">
  3998. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  3999. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4000. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  4001. </div>
  4002. <div slot="footer">
  4003. <el-button style="background: #409efe; color: #fff"
  4004. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  4005. 关 闭</el-button>
  4006. </div>
  4007. </el-dialog>
  4008. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  4009. :before-close="handleClose" class="dialog_diy">
  4010. <div class="commentTop">
  4011. <div class="studentDetail">
  4012. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  4013. <div class="nameAndTime">
  4014. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4015. <div>{{ commentDetail.time }}</div>
  4016. </div>
  4017. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="
  4018. commentDetail.works &&
  4019. commentDetail.type == 0 &&
  4020. (tType == 1 || tType == 4)
  4021. " @click="
  4022. showPicturePaint(
  4023. commentDetail.img ? commentDetail.img : commentDetail.works
  4024. )
  4025. ">
  4026. 教师批注
  4027. </div>
  4028. </div>
  4029. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4030. {{ JSON.parse(commentDetail.works)[0].answer }}
  4031. </div>
  4032. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4033. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  4034. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4035. :class="{ fullStyle: full }"></pdf>
  4036. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4037. </div>
  4038. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4039. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  4040. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4041. </div>
  4042. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4043. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  4044. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4045. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4046. </div>
  4047. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  4048. <div class="cont" v-html="commentDetail.works.text"></div>
  4049. </div>
  4050. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4051. @click="downloadFile(commentDetail.works)">
  4052. <img src="../../assets/icon/codeFile.png" />
  4053. <div>点击下载文件</div>
  4054. </div>
  4055. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4056. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4057. </div>
  4058. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  4059. <div class="evalCss">
  4060. <div class="nav">请选择星星进行评分</div>
  4061. <div class="middleBox" v-if="eScore.eStar">
  4062. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4063. <div class="nameAndrate">
  4064. <div>{{ e.value }}</div>
  4065. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  4066. </div>
  4067. <div v-if="e.detail">{{ e.detail }}</div>
  4068. </div>
  4069. <div class="bz">
  4070. <textarea disabled rows="4" class="pj" style="
  4071. padding: 10px 5px;
  4072. width: 70%;
  4073. background: #f7f6f9;
  4074. font-size: 14px;
  4075. text-indent: 10px;
  4076. color: #000;
  4077. " cols v-model="eScore.eBzText"
  4078. placeholder="请输入评价内容..."></textarea>
  4079. </div>
  4080. </div>
  4081. </div>
  4082. </div>
  4083. <div class="comment">
  4084. <div class="commentList">
  4085. <div class="commentImg">
  4086. <img @click="
  4087. isLikes(
  4088. commentDetail.wid,
  4089. userid,
  4090. 1,
  4091. null,
  4092. commentDetail.isLikes
  4093. )
  4094. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  4095. </div>
  4096. <div>{{ commentDetail.likesCount }}</div>
  4097. </div>
  4098. <div class="commentList">
  4099. <div class="commentImg">
  4100. <img src="../../assets/icon/comment/comment.png" alt="" />
  4101. </div>
  4102. <div>{{ commentDetail.commentCount }}</div>
  4103. </div>
  4104. </div>
  4105. <div class="drawPBox" v-if="commentDetail.img">
  4106. <span>教师批注</span>
  4107. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  4108. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  4109. style="
  4110. font-size: 14px;
  4111. width: auto !important;
  4112. color: #b4b4b4;
  4113. top: unset;
  4114. bottom: 0;
  4115. border: none;
  4116. padding: 0;
  4117. height: auto !important;
  4118. margin: 0;
  4119. ">删除</span>
  4120. </div>
  4121. </div>
  4122. <div class="commentBox">
  4123. <div class="pl">评论:</div>
  4124. <div style="max-height: 200px; overflow: auto">
  4125. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  4126. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  4127. :key="coIndex">
  4128. <div class="tx" style="min-width: 50px">
  4129. <img src="../../assets/avatar.png" alt="" />
  4130. </div>
  4131. <div class="plPerson">
  4132. <div class="plName">
  4133. <div>{{ co.commentPeople }}</div>
  4134. <div style="margin-left: 5px">
  4135. {{ co.commentTime }}
  4136. </div>
  4137. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">删除</div>
  4138. </div>
  4139. <div class="plContent">{{ co.commentText }}</div>
  4140. </div>
  4141. </div>
  4142. </div>
  4143. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  4144. </div>
  4145. </div>
  4146. <div style="margin-top: 10px">
  4147. <div class="displayBox">
  4148. <div style="
  4149. color: #556db4;
  4150. font-size: 14px;
  4151. font-weight: bold;
  4152. padding-bottom: 10px;
  4153. ">
  4154. 评价
  4155. </div>
  4156. <div class="easy_comment" v-if="false">
  4157. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  4158. {{ p }}
  4159. </div>
  4160. </div>
  4161. </div>
  4162. <div>
  4163. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  4164. placeholder="请输入对该学生的评价"></textarea>
  4165. </div>
  4166. </div>
  4167. <div slot="footer">
  4168. <el-button @click="
  4169. (commentDialogVisible = false),
  4170. (commentIndexJson = {}),
  4171. videoDetail.sources && videoDetail.sources[0]
  4172. ? (videoDetail.sources[0].src = '')
  4173. : ''
  4174. ">取 消</el-button>
  4175. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  4176. </div>
  4177. </el-dialog>
  4178. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  4179. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  4180. <div slot="title" class="header-title">
  4181. <div style="color: #fff">查看文档</div>
  4182. <div @click="fullDialogVisible = false" style="
  4183. cursor: pointer;
  4184. position: absolute;
  4185. top: 20px;
  4186. right: 20px;
  4187. color: #fff;
  4188. ">
  4189. 退出全屏
  4190. </div>
  4191. </div>
  4192. <div style="height: 100%">
  4193. <div class="wheel" v-if="fullUrl.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && fulltype == 2" style="width: 95%; margin: 0 auto">
  4194. <iframe style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  4195. </div>
  4196. <iframe v-else-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl" security="restricted"
  4197. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  4198. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  4199. <div class="wheel" v-if="fulltype == 1" style="
  4200. box-shadow: 0 0 6px 1px #f2f2f2;
  4201. width: 100%;
  4202. background: #f1f1f1;
  4203. ">
  4204. <div class="title" style="width: 100%; box-sizing: border-box">
  4205. 查看文档
  4206. </div>
  4207. <el-form class="textBox" style="height: 90%">
  4208. <el-form-item class="textTitle">
  4209. <div style="font-size: 22px">
  4210. {{ fullUrl.name }}
  4211. </div>
  4212. </el-form-item>
  4213. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  4214. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  4215. </el-form>
  4216. </div>
  4217. </div>
  4218. <!-- <div slot="footer">
  4219. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  4220. </div> -->
  4221. </el-dialog>
  4222. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  4223. :before-close="handleClose" class="dialog_diy">
  4224. <div class="evalCss">
  4225. <div class="nav">请选择星星进行评分</div>
  4226. <div class="middleBox" v-if="eScore.eStar">
  4227. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4228. <div class="nameAndrate">
  4229. <div>{{ e.value }}</div>
  4230. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4231. </div>
  4232. <div v-if="e.detail">{{ e.detail }}</div>
  4233. </div>
  4234. <div class="easy_comment" v-if="isStar == false">
  4235. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4236. {{ p }}
  4237. </div>
  4238. </div>
  4239. <div class="bz">
  4240. <textarea :disabled="isStar" rows="4" class="pj" style="
  4241. padding: 10px 5px;
  4242. width: 70%;
  4243. background: #f7f6f9;
  4244. font-size: 14px;
  4245. text-indent: 10px;
  4246. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4247. </div>
  4248. </div>
  4249. </div>
  4250. <div slot="footer">
  4251. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  4252. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  4253. </div>
  4254. </el-dialog>
  4255. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  4256. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4257. <div v-if="selectJson">
  4258. <div class="select_box2">
  4259. <div class="select_box2_title">
  4260. <div>选择填空</div>
  4261. <div>请选择对应的答案进行答题!</div>
  4262. </div>
  4263. <div class="select_box2_box">
  4264. <div class="select_box2_img">
  4265. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4266. </div>
  4267. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4268. <div style="padding-top: 15px">
  4269. <div class="select_answer_title" v-if="isSelect">
  4270. {{ selectAnswer.stu }}
  4271. </div>
  4272. <div class="select_answer_title" v-else>
  4273. 根据题目选择对应答案
  4274. </div>
  4275. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4276. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4277. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4278. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4279. </el-option>
  4280. </el-select>
  4281. </div>
  4282. </div>
  4283. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4284. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4285. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4286. 回答正确
  4287. </div>
  4288. <div v-else>回答错误</div>
  4289. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4290. 正确答案:
  4291. </div>
  4292. <div :class="
  4293. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4294. ">
  4295. {{ selectJson.select[a] }}
  4296. </div>
  4297. </div>
  4298. </div>
  4299. </div>
  4300. <div class="upAnswerCss">
  4301. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  4302. </div>
  4303. </div>
  4304. </div>
  4305. </div>
  4306. </el-dialog>
  4307. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelectTeacher" :append-to-body="true" width="90%"
  4308. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4309. <div v-if="selectJson">
  4310. <div class="w_name">
  4311. 学生姓名:<span>{{ sStudent.student }}</span>
  4312. </div>
  4313. <div class="select_box2">
  4314. <div class="select_box2_title">
  4315. <div>选择填空</div>
  4316. <div>请选择对应的答案进行答题!</div>
  4317. </div>
  4318. <div class="select_box2_box">
  4319. <div class="select_box2_img">
  4320. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4321. </div>
  4322. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4323. <div style="padding-top: 15px">
  4324. <div class="select_answer_title" v-if="isSelect">
  4325. {{ selectAnswer.stu }}
  4326. </div>
  4327. <div class="select_answer_title" v-else>
  4328. 根据题目选择对应答案
  4329. </div>
  4330. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4331. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4332. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4333. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4334. </el-option>
  4335. </el-select>
  4336. </div>
  4337. </div>
  4338. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4339. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4340. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4341. 回答正确
  4342. </div>
  4343. <div v-else>回答错误</div>
  4344. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4345. 正确答案:
  4346. </div>
  4347. <div :class="
  4348. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4349. ">
  4350. {{ selectJson.select[a] }}
  4351. </div>
  4352. </div>
  4353. </div>
  4354. </div>
  4355. <div class="upAnswerCss">
  4356. <el-button type="primary" @click="addSelectAnswerTeacher" v-if="!isSelect">提交答案</el-button>
  4357. </div>
  4358. </div>
  4359. </div>
  4360. </div>
  4361. </el-dialog>
  4362. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  4363. :before-close="handleClose" class="dialog_diy">
  4364. <div>
  4365. <div class="studentDetail">
  4366. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  4367. <div class="nameAndTime">
  4368. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4369. <div>{{ commentDetail.time }}</div>
  4370. </div>
  4371. </div>
  4372. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4373. {{ JSON.parse(commentDetail.works)[0].answer }}
  4374. </div>
  4375. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4376. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4377. :class="{ fullStyle: full }"></pdf>
  4378. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4379. </div>
  4380. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4381. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4382. </div>
  4383. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4384. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4385. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4386. </div>
  4387. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4388. @click="downloadFile(commentDetail.works)">
  4389. <img src="../../assets/icon/codeFile.png" />
  4390. <div>点击下载文件</div>
  4391. </div>
  4392. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4393. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4394. </div>
  4395. <div class="scoreBox">
  4396. <span class="t">请输入分数</span>
  4397. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  4398. :max="100"></el-input-number>
  4399. </div>
  4400. <div class="scoreDetailBox">
  4401. <span class="t">评分评论</span>
  4402. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  4403. v-model="scoreDetail" placeholder="请输入对学生的评价">
  4404. </el-input>
  4405. </div>
  4406. </div>
  4407. <span slot="footer" class="dialog-footer">
  4408. <el-button @click="
  4409. (dialogVisibleScore = false),
  4410. (commentIndexJson = {}),
  4411. videoDetail.sources && videoDetail.sources[0]
  4412. ? (videoDetail.sources[0].src = '')
  4413. : ''
  4414. ">取 消</el-button>
  4415. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  4416. </el-button>
  4417. </span>
  4418. </el-dialog>
  4419. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4420. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4421. <div>
  4422. <div class="sentenBox">
  4423. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4424. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4425. <div class="cardList" v-if="st.chooseSenList">
  4426. <div class="cardBox">
  4427. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4428. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4429. <div :class="{
  4430. isCard: r,
  4431. isChooseCard: r == '' || r == undefined,
  4432. }">
  4433. <div>{{ r }}</div>
  4434. </div>
  4435. </el-tooltip>
  4436. <div :class="{
  4437. isCard: r,
  4438. isChooseCard: r == '' || r == undefined,
  4439. }" v-else>
  4440. <div>{{ r }}</div>
  4441. </div>
  4442. </div>
  4443. </div>
  4444. </div>
  4445. <div class="cardList" v-if="st.addChangeSen">
  4446. <div class="cardBox">
  4447. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4448. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4449. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4450. <div>{{ s }}</div>
  4451. </div>
  4452. </el-tooltip>
  4453. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4454. <div>{{ s }}</div>
  4455. </div>
  4456. </div>
  4457. </div>
  4458. </div>
  4459. </div>
  4460. </div>
  4461. </div>
  4462. <span slot="footer" class="dialog-footer">
  4463. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  4464. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  4465. </span>
  4466. </el-dialog>
  4467. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentenceTeacher" :append-to-body="true" width="1000px"
  4468. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4469. <div>
  4470. <div class="w_name">
  4471. 学生姓名:<span>{{ sStudent.student }}</span>
  4472. </div>
  4473. <div class="sentenBox">
  4474. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4475. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4476. <div class="cardList" v-if="st.chooseSenList">
  4477. <div class="cardBox">
  4478. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4479. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4480. <div :class="{
  4481. isCard: r,
  4482. isChooseCard: r == '' || r == undefined,
  4483. }">
  4484. <div>{{ r }}</div>
  4485. </div>
  4486. </el-tooltip>
  4487. <div :class="{
  4488. isCard: r,
  4489. isChooseCard: r == '' || r == undefined,
  4490. }" v-else>
  4491. <div>{{ r }}</div>
  4492. </div>
  4493. </div>
  4494. </div>
  4495. </div>
  4496. <div class="cardList" v-if="st.addChangeSen">
  4497. <div class="cardBox">
  4498. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4499. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4500. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4501. <div>{{ s }}</div>
  4502. </div>
  4503. </el-tooltip>
  4504. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4505. <div>{{ s }}</div>
  4506. </div>
  4507. </div>
  4508. </div>
  4509. </div>
  4510. </div>
  4511. </div>
  4512. </div>
  4513. <span slot="footer" class="dialog-footer">
  4514. <el-button @click="dialogVisibleSentenceTeacher = false">取 消</el-button>
  4515. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  4516. </span>
  4517. </el-dialog>
  4518. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  4519. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4520. <div>
  4521. <div class="sentenBox">
  4522. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4523. {{ sentenceList1.stuName }}的作业
  4524. </div>
  4525. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  4526. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4527. 第{{ stIndex + 1 }}题
  4528. </div>
  4529. <div class="isWrong">
  4530. <div class="cardList1" v-if="st.chooseSenList">
  4531. <div class="cardBox">
  4532. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  4533. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4534. <div class="isCard">
  4535. <div>{{ s }}</div>
  4536. </div>
  4537. </el-tooltip>
  4538. </div>
  4539. </div>
  4540. <div class="cardAnswerBox">
  4541. 组成句子:{{ st.chooseSenList.join(" ") }}
  4542. </div>
  4543. </div>
  4544. <div class="answerRight isTj" v-if="
  4545. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  4546. (tType == 1 || tType == 4)
  4547. ">
  4548. <div class="isTjImg">
  4549. <img src="../../assets/icon/conSentences/right.png" alt="" />
  4550. </div>
  4551. <div>回答正确</div>
  4552. </div>
  4553. <div class="answerRight isTj" v-if="
  4554. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4555. (tType == 1 || tType == 4)
  4556. ">
  4557. <div class="isTjImg">
  4558. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  4559. </div>
  4560. <div>回答错误</div>
  4561. </div>
  4562. </div>
  4563. <div v-if="
  4564. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4565. (tType == 1 || tType == 4)
  4566. ">
  4567. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  4568. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  4569. <div class="cardBox">
  4570. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  4571. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4572. <div class="isCard1">
  4573. <div>{{ r }}</div>
  4574. </div>
  4575. </el-tooltip>
  4576. </div>
  4577. </div>
  4578. <div class="cardAnswerBox">
  4579. 组成句子:{{ st.rightAnswer.join(" ") }}
  4580. </div>
  4581. </div>
  4582. </div>
  4583. </div>
  4584. </div>
  4585. </div>
  4586. <span slot="footer" class="dialog-footer">
  4587. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  4588. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  4589. </span>
  4590. </el-dialog>
  4591. <el-dialog title="提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  4592. :before-close="handleClose" class="dialog_change">
  4593. <div class="marginT">
  4594. <div class="w_name">
  4595. 学生姓名:<span>{{ sStudent.student }}</span>
  4596. </div>
  4597. <div>上传文件</div>
  4598. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4599. <div class="up_photo">
  4600. <img src="../../assets/uploadImg2.png" alt />
  4601. </div>
  4602. <!-- <input
  4603. type="file"
  4604. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4605. style="display: none"
  4606. @change="beforeUpload1($event, 1)"
  4607. /> -->
  4608. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4609. </div>
  4610. <!-- capture="camera" -->
  4611. <div class="chapter_add" style="
  4612. display: flex;
  4613. width: 100%;
  4614. flex-direction: row;
  4615. flex-wrap: wrap;
  4616. justify-content: flex-start;
  4617. padding: 15px 0;
  4618. " v-if="studyJuri[0].cover.length > 0">
  4619. <div class="upCover">
  4620. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4621. <img :src="word" alt v-else-if="fileType == 1" />
  4622. <img :src="video" alt v-else-if="fileType == 2" />
  4623. <img :src="word2" alt v-else-if="fileType == 3" />
  4624. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4625. <div class="deleteWord" @click="clean(1)">
  4626. <img src="../../assets/icon/deleteWorks.png" alt />
  4627. </div>
  4628. </div>
  4629. </div>
  4630. </div>
  4631. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  4632. 提交
  4633. </div>
  4634. </el-dialog>
  4635. <el-dialog title="问答" :visible.sync="answerDialogVisibleTeacher" :append-to-body="true" width="800px"
  4636. :before-close="handleClose" class="dialog_diy">
  4637. <div>
  4638. <div class="w_name">
  4639. 学生姓名:<span>{{ sStudent.student }}</span>
  4640. </div>
  4641. <div style="
  4642. display: flex;
  4643. flex-wrap: nowrap;
  4644. flex-direction: column;
  4645. position: relative;
  4646. ">
  4647. <div class="queTop" style="padding: 20px 0 20px 0">
  4648. <div class="question">
  4649. <img src="../../assets/icon/question.png" alt />
  4650. </div>
  4651. <div class="queTitle">
  4652. <div style="width: 90px; min-width: 90px">提问:</div>
  4653. <div>{{ answerQ }}</div>
  4654. </div>
  4655. </div>
  4656. <div class="ediBottom">
  4657. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  4658. v-model="questionAnswer"></textarea>
  4659. </div>
  4660. </div>
  4661. </div>
  4662. <div slot="footer">
  4663. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  4664. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  4665. </div>
  4666. </el-dialog>
  4667. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  4668. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4669. :before-close="handleClose" class="dialog_diy">
  4670. <el-form>
  4671. <div>表格内容</div>
  4672. <Table v-model="tableJson.text" @change="change"></Table>
  4673. </el-form>
  4674. <span slot="footer" class="dialog-footer">
  4675. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4676. <el-button type="primary" @click="addTableWorks">确定</el-button>
  4677. </span>
  4678. </el-dialog>
  4679. <el-dialog title="表格" :visible.sync="dialogVisibleTableTeacher" :append-to-body="true" width="95%"
  4680. :before-close="handleClose" class="dialog_diy">
  4681. <el-form>
  4682. <div class="w_name">
  4683. 学生姓名:<span>{{ sStudent.student }}</span>
  4684. </div>
  4685. <div>表格内容</div>
  4686. <Table v-model="tableJson.text" @change="change"></Table>
  4687. </el-form>
  4688. <span slot="footer" class="dialog-footer">
  4689. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  4690. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  4691. </span>
  4692. </el-dialog>
  4693. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  4694. class="dialog_diy">
  4695. <el-form>
  4696. <div>文档内容</div>
  4697. <editor-bar v-model="wordJson.text"></editor-bar>
  4698. </el-form>
  4699. <span slot="footer" class="dialog-footer">
  4700. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  4701. <el-button type="primary" @click="addWordWorks">确定</el-button>
  4702. </span>
  4703. </el-dialog>
  4704. <el-dialog title="文档" :visible.sync="dialogVisibleWordTeacher" :append-to-body="true" width="95%"
  4705. :before-close="handleClose" class="dialog_diy">
  4706. <el-form>
  4707. <div class="w_name">
  4708. 学生姓名:<span>{{ sStudent.student }}</span>
  4709. </div>
  4710. <div>文档内容</div>
  4711. <editor-bar v-model="wordJson.text"></editor-bar>
  4712. </el-form>
  4713. <span slot="footer" class="dialog-footer">
  4714. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  4715. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  4716. </span>
  4717. </el-dialog>
  4718. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  4719. :before-close="handleClose" class="dialog_diy">
  4720. <el-form>
  4721. <div class="cont" v-html="tableJson.text"></div>
  4722. </el-form>
  4723. <span slot="footer" class="dialog-footer">
  4724. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  4725. </span>
  4726. </el-dialog>
  4727. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  4728. :before-close="handleClose" class="dialog_diy">
  4729. <div v-if="dialogVisibleGroup">
  4730. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  4731. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  4732. 提示:需要锁定位置,才能点击头像修改座位。
  4733. </div>
  4734. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  4735. @click="lockChair">
  4736. 锁定位置
  4737. </div>
  4738. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  4739. 解锁位置
  4740. </div>
  4741. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  4742. 分组设置
  4743. </div>
  4744. </div>
  4745. <div>
  4746. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  4747. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  4748. <div class="g_d_group_chair">
  4749. <div v-if="groupJson.number > 1">
  4750. <span :class="{
  4751. isChair:
  4752. groupStudent[toolindex][gindex] &&
  4753. groupStudent[toolindex][gindex][0],
  4754. updateChair:
  4755. courseDetail.userid == userid &&
  4756. groupStudent[toolindex][gindex] &&
  4757. groupStudent[toolindex][gindex][0] &&
  4758. groupJson.islock == 2,
  4759. }"><span class="updateChairBtn" @click="
  4760. updateGroupChair(
  4761. groupStudent[toolindex][gindex] &&
  4762. groupStudent[toolindex][gindex][0]
  4763. )
  4764. ">修改</span></span><span>{{
  4765. groupStudent[toolindex][gindex] &&
  4766. groupStudent[toolindex][gindex][0]
  4767. ? groupStudent[toolindex][gindex] &&
  4768. groupStudent[toolindex][gindex][0].name
  4769. : "空位置"
  4770. }}</span>
  4771. </div>
  4772. <div v-if="groupJson.number > 4">
  4773. <span :class="{
  4774. isChair:
  4775. groupStudent[toolindex][gindex] &&
  4776. groupStudent[toolindex][gindex][4],
  4777. updateChair:
  4778. courseDetail.userid == userid &&
  4779. groupStudent[toolindex][gindex] &&
  4780. groupStudent[toolindex][gindex][4] &&
  4781. groupJson.islock == 2,
  4782. }"><span class="updateChairBtn" @click="
  4783. updateGroupChair(
  4784. groupStudent[toolindex][gindex] &&
  4785. groupStudent[toolindex][gindex][4]
  4786. )
  4787. ">修改</span></span><span>{{
  4788. groupStudent[toolindex][gindex] &&
  4789. groupStudent[toolindex][gindex][4]
  4790. ? groupStudent[toolindex][gindex] &&
  4791. groupStudent[toolindex][gindex][4].name
  4792. : "空位置"
  4793. }}</span>
  4794. </div>
  4795. <div v-if="groupJson.number > 8">
  4796. <span :class="{
  4797. isChair:
  4798. groupStudent[toolindex][gindex] &&
  4799. groupStudent[toolindex][gindex][8],
  4800. updateChair:
  4801. courseDetail.userid == userid &&
  4802. groupStudent[toolindex][gindex] &&
  4803. groupStudent[toolindex][gindex][8] &&
  4804. groupJson.islock == 2,
  4805. }"><span class="updateChairBtn" @click="
  4806. updateGroupChair(
  4807. groupStudent[toolindex][gindex] &&
  4808. groupStudent[toolindex][gindex][8]
  4809. )
  4810. ">修改</span></span><span>{{
  4811. groupStudent[toolindex][gindex] &&
  4812. groupStudent[toolindex][gindex][8]
  4813. ? groupStudent[toolindex][gindex] &&
  4814. groupStudent[toolindex][gindex][8].name
  4815. : "空位置"
  4816. }}</span>
  4817. </div>
  4818. </div>
  4819. <div class="g_d_group_tableBox">
  4820. <div class="g_d_group_chair2">
  4821. <div v-if="groupJson.number > 2">
  4822. <span :class="{
  4823. isChair:
  4824. groupStudent[toolindex][gindex] &&
  4825. groupStudent[toolindex][gindex][2],
  4826. updateChair:
  4827. courseDetail.userid == userid &&
  4828. groupStudent[toolindex][gindex] &&
  4829. groupStudent[toolindex][gindex][2] &&
  4830. groupJson.islock == 2,
  4831. }"><span class="updateChairBtn" @click="
  4832. updateGroupChair(
  4833. groupStudent[toolindex][gindex] &&
  4834. groupStudent[toolindex][gindex][2]
  4835. )
  4836. ">修改</span></span><span>{{
  4837. groupStudent[toolindex][gindex] &&
  4838. groupStudent[toolindex][gindex][2]
  4839. ? groupStudent[toolindex][gindex] &&
  4840. groupStudent[toolindex][gindex][2].name
  4841. : "空位置"
  4842. }}</span>
  4843. </div>
  4844. <div v-if="groupJson.number > 6">
  4845. <span :class="{
  4846. isChair:
  4847. groupStudent[toolindex][gindex] &&
  4848. groupStudent[toolindex][gindex][6],
  4849. updateChair:
  4850. courseDetail.userid == userid &&
  4851. groupStudent[toolindex][gindex] &&
  4852. groupStudent[toolindex][gindex][6] &&
  4853. groupJson.islock == 2,
  4854. }"><span class="updateChairBtn" @click="
  4855. updateGroupChair(
  4856. groupStudent[toolindex][gindex] &&
  4857. groupStudent[toolindex][gindex][6]
  4858. )
  4859. ">修改</span></span><span>{{
  4860. groupStudent[toolindex][gindex] &&
  4861. groupStudent[toolindex][gindex][6]
  4862. ? groupStudent[toolindex][gindex] &&
  4863. groupStudent[toolindex][gindex][6].name
  4864. : "空位置"
  4865. }}</span>
  4866. </div>
  4867. </div>
  4868. <div class="g_d_group_table">
  4869. <div>
  4870. {{ g.name }}
  4871. </div>
  4872. <div>
  4873. <div v-if="
  4874. courseDetail.userid == userid && groupJson.islock == 2
  4875. " @click="deleteGroupChair(gindex)">
  4876. 移除组员
  4877. </div>
  4878. <div @click="selectGroup(gindex)" v-else-if="
  4879. groupStudentUid[toolindex] &&
  4880. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  4881. ">
  4882. 加入分组
  4883. </div>
  4884. <div @click="
  4885. exitGroup(
  4886. groupStudent[toolindex][gindex] &&
  4887. groupStudent[toolindex][gindex][
  4888. groupStudentUid[toolindex][gindex].indexOf(userid)
  4889. ].id
  4890. )
  4891. " v-else-if="
  4892. groupStudentUid[toolindex] &&
  4893. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  4894. ">
  4895. 退出分组
  4896. </div>
  4897. </div>
  4898. </div>
  4899. <div class="g_d_group_chair2">
  4900. <div v-if="groupJson.number > 3">
  4901. <span :class="{
  4902. isChair:
  4903. groupStudent[toolindex][gindex] &&
  4904. groupStudent[toolindex][gindex][3],
  4905. updateChair:
  4906. courseDetail.userid == userid &&
  4907. groupStudent[toolindex][gindex] &&
  4908. groupStudent[toolindex][gindex][3] &&
  4909. groupJson.islock == 2,
  4910. }"><span class="updateChairBtn" @click="
  4911. updateGroupChair(
  4912. groupStudent[toolindex][gindex] &&
  4913. groupStudent[toolindex][gindex][3]
  4914. )
  4915. ">修改</span></span><span>{{
  4916. groupStudent[toolindex][gindex] &&
  4917. groupStudent[toolindex][gindex][3]
  4918. ? groupStudent[toolindex][gindex] &&
  4919. groupStudent[toolindex][gindex][3].name
  4920. : "空位置"
  4921. }}</span>
  4922. </div>
  4923. <div v-if="groupJson.number > 7">
  4924. <span :class="{
  4925. isChair:
  4926. groupStudent[toolindex][gindex] &&
  4927. groupStudent[toolindex][gindex][7],
  4928. updateChair:
  4929. courseDetail.userid == userid &&
  4930. groupStudent[toolindex][gindex] &&
  4931. groupStudent[toolindex][gindex][7] &&
  4932. groupJson.islock == 2,
  4933. }"><span class="updateChairBtn" @click="
  4934. updateGroupChair(
  4935. groupStudent[toolindex][gindex] &&
  4936. groupStudent[toolindex][gindex][7]
  4937. )
  4938. ">修改</span></span><span>{{
  4939. groupStudent[toolindex][gindex] &&
  4940. groupStudent[toolindex][gindex][7]
  4941. ? groupStudent[toolindex][gindex] &&
  4942. groupStudent[toolindex][gindex][7].name
  4943. : "空位置"
  4944. }}</span>
  4945. </div>
  4946. </div>
  4947. </div>
  4948. <div class="g_d_group_chair">
  4949. <div v-if="groupJson.number > 1">
  4950. <span :class="{
  4951. isChair:
  4952. groupStudent[toolindex][gindex] &&
  4953. groupStudent[toolindex][gindex][1],
  4954. updateChair:
  4955. courseDetail.userid == userid &&
  4956. groupStudent[toolindex][gindex] &&
  4957. groupStudent[toolindex][gindex][1] &&
  4958. groupJson.islock == 2,
  4959. }"><span class="updateChairBtn" @click="
  4960. updateGroupChair(
  4961. groupStudent[toolindex][gindex] &&
  4962. groupStudent[toolindex][gindex][1]
  4963. )
  4964. ">修改</span></span><span>{{
  4965. groupStudent[toolindex][gindex] &&
  4966. groupStudent[toolindex][gindex][1]
  4967. ? groupStudent[toolindex][gindex] &&
  4968. groupStudent[toolindex][gindex][1].name
  4969. : "空位置"
  4970. }}</span>
  4971. </div>
  4972. <div v-if="groupJson.number > 5">
  4973. <span :class="{
  4974. isChair:
  4975. groupStudent[toolindex][gindex] &&
  4976. groupStudent[toolindex][gindex][5],
  4977. updateChair:
  4978. courseDetail.userid == userid &&
  4979. groupStudent[toolindex][gindex] &&
  4980. groupStudent[toolindex][gindex][5] &&
  4981. groupJson.islock == 2,
  4982. }"><span class="updateChairBtn" @click="
  4983. updateGroupChair(
  4984. groupStudent[toolindex][gindex] &&
  4985. groupStudent[toolindex][gindex][5]
  4986. )
  4987. ">修改</span></span><span>{{
  4988. groupStudent[toolindex][gindex] &&
  4989. groupStudent[toolindex][gindex][5]
  4990. ? groupStudent[toolindex][gindex] &&
  4991. groupStudent[toolindex][gindex][5].name
  4992. : "空位置"
  4993. }}</span>
  4994. </div>
  4995. <div v-if="groupJson.number > 9">
  4996. <span :class="{
  4997. isChair:
  4998. groupStudent[toolindex][gindex] &&
  4999. groupStudent[toolindex][gindex][9],
  5000. updateChair:
  5001. courseDetail.userid == userid &&
  5002. groupStudent[toolindex][gindex] &&
  5003. groupStudent[toolindex][gindex][9] &&
  5004. groupJson.islock == 2,
  5005. }"><span class="updateChairBtn" @click="
  5006. updateGroupChair(
  5007. groupStudent[toolindex][gindex] &&
  5008. groupStudent[toolindex][gindex][9]
  5009. )
  5010. ">修改</span></span><span>{{
  5011. groupStudent[toolindex][gindex] &&
  5012. groupStudent[toolindex][gindex][9]
  5013. ? groupStudent[toolindex][gindex] &&
  5014. groupStudent[toolindex][gindex][9].name
  5015. : "空位置"
  5016. }}</span>
  5017. </div>
  5018. </div>
  5019. </div>
  5020. </div>
  5021. </div>
  5022. </div>
  5023. <span slot="footer" class="dialog-footer">
  5024. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  5025. </span>
  5026. </el-dialog>
  5027. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  5028. :before-close="handleClose" class="dialog_diy">
  5029. <div class="groupBox">
  5030. <div v-if="groupJson2.group" class="groupContent">
  5031. <div class="groupTitle">请设置小组数量</div>
  5032. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  5033. <span class="groupn">组{{ index + 1 }}名称:</span>
  5034. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  5035. <!-- <div class="groupBtn">
  5036. <el-button type="primary" size="small" @click="addGroup(index)">
  5037. 添加</el-button>
  5038. <el-button type="primary" size="small" @click="deleteGroup(index)"
  5039. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  5040. </div> -->
  5041. </div>
  5042. </div>
  5043. <div class="groupContent">
  5044. <div class="groupTitle">请设置每组人数数量</div>
  5045. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  5046. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  5047. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  5048. placeholder="2-10人以内"></el-input-number>
  5049. </div>
  5050. </div>
  5051. <span slot="footer" class="dialog-footer">
  5052. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  5053. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  5054. </span>
  5055. </el-dialog>
  5056. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  5057. :before-close="handleClose" class="dialog_change">
  5058. <div class="marginT">
  5059. <div>上传文件</div>
  5060. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  5061. <div class="up_photo">
  5062. <img src="../../assets/icon/uploadImg.png" alt />
  5063. </div>
  5064. <!-- <input
  5065. type="file"
  5066. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5067. style="display: none"
  5068. @change="beforeUpload1($event, 1)"
  5069. /> -->
  5070. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  5071. </div>
  5072. <!-- capture="camera" -->
  5073. <div class="chapter_add" style="
  5074. display: flex;
  5075. width: 100%;
  5076. flex-direction: row;
  5077. flex-wrap: wrap;
  5078. justify-content: flex-start;
  5079. padding: 15px 0;
  5080. " v-if="studyJuri[0].cover.length > 0">
  5081. <div class="upCover">
  5082. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  5083. <img :src="word" alt v-else-if="fileType == 1" />
  5084. <img :src="video" alt v-else-if="fileType == 2" />
  5085. <img :src="word2" alt v-else-if="fileType == 3" />
  5086. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  5087. <div class="deleteWord" @click="clean(1)">
  5088. <img src="../../assets/icon/deleteWorks.png" alt />
  5089. </div>
  5090. </div>
  5091. </div>
  5092. </div>
  5093. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  5094. 提交
  5095. </div>
  5096. </el-dialog>
  5097. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  5098. :before-close="handleClose" class="dialog_diy">
  5099. <div>
  5100. <h2>
  5101. {{ this.updateGroupUser.name }}
  5102. </h2>
  5103. <div style="color: rgb(171 171 171); margin-top: 10px">
  5104. 请选择要进入的分组
  5105. </div>
  5106. <el-radio-group v-model="checkChair">
  5107. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  5108. :key="index">{{ item.name }}</el-radio>
  5109. </el-radio-group>
  5110. </div>
  5111. <span slot="footer" class="dialog-footer">
  5112. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  5113. <el-button type="primary" @click="updateChair">确定</el-button>
  5114. </span>
  5115. </el-dialog>
  5116. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  5117. :before-close="handleClose" class="dialog_diy">
  5118. <div>
  5119. <h2>
  5120. {{ this.deleteGroupArray.name }}
  5121. </h2>
  5122. <div style="color: rgb(171 171 171); margin-top: 10px">
  5123. 请选择要删除的组员
  5124. </div>
  5125. <el-checkbox-group v-model="checkDeleteGroup">
  5126. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  5127. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  5128. </el-checkbox-group>
  5129. </div>
  5130. <span slot="footer" class="dialog-footer">
  5131. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  5132. <el-button type="primary" @click="deleteChair">确定</el-button>
  5133. </span>
  5134. </el-dialog>
  5135. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  5136. :before-close="handleClose" class="dialog_change">
  5137. <div class="marginT">
  5138. <div>上传文件</div>
  5139. <div class="plworkBox">
  5140. <div class="chapter_add" style="
  5141. display: flex;
  5142. width: 150px;
  5143. flex-direction: row;
  5144. flex-wrap: wrap;
  5145. justify-content: flex-start;
  5146. margin: 0 10px 10px 0;
  5147. " v-for="(item, index) in plworkFile" :key="index">
  5148. <div class="upCover2">
  5149. <img :src="item.url" alt v-if="item.fileType == 1" />
  5150. <img :src="word" alt v-else-if="item.fileType == 4" />
  5151. <img :src="video" alt v-else />
  5152. <!-- <span class="picName">{{ item.name }}</span> -->
  5153. <!-- <el-input
  5154. v-model="item.username"
  5155. placeholder="请输入学生名字"
  5156. style="margin-top: 10px"
  5157. ></el-input> -->
  5158. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  5159. <el-option v-for="item1 in uploadStudentJuri" :key="item1.userid"
  5160. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  5161. </el-option>
  5162. </el-select>
  5163. <div class="deleteWord" @click="clean2(index)">
  5164. <img src="../../assets/icon/deleteWorks.png" alt />
  5165. </div>
  5166. </div>
  5167. </div>
  5168. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  5169. <div class="up_photo2">
  5170. <img src="../../assets/icon/plwork.png" alt />
  5171. <span>点击批量上传文件</span>
  5172. </div>
  5173. <input type="file"
  5174. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5175. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  5176. </div>
  5177. </div>
  5178. </div>
  5179. <!-- capture="camera" -->
  5180. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  5181. 提交
  5182. </div>
  5183. </el-dialog>
  5184. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  5185. class="dialog_diy" center>
  5186. <div style="text-align: center">
  5187. <span class="tian1">名称</span>
  5188. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  5189. placeholder="请选择学生">
  5190. <el-option v-for="item in classJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  5191. :value="item.userid">
  5192. </el-option>
  5193. </el-select>
  5194. <!-- <el-input
  5195. v-model="worksSName"
  5196. style="width: 250px; margin: 15px 0px"
  5197. ></el-input> -->
  5198. </div>
  5199. <span slot="footer" class="dialog-footer">
  5200. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  5201. <el-button type="primary" @click="updateName">确 定</el-button>
  5202. </span>
  5203. </el-dialog>
  5204. </div>
  5205. </template>
  5206. <script>
  5207. import "../../common/aws-sdk-2.235.1.min.js";
  5208. // import pdf from "../components/pdf3";
  5209. import pdf from "../components/vpdf";
  5210. import AskStatic from "../components/askStatic";
  5211. import AskStatic2 from "../components/askStatic2";
  5212. import AnswerData2 from "../components/answerData2";
  5213. import AnswerData from "../components/answerData";
  5214. import EditorBar from "../tools/wangEnduit.vue";
  5215. import Table from "../tools/table.vue";
  5216. import Time from "../tools/time.vue";
  5217. import Mind from "../tools/jsmind.vue";
  5218. import Sunburst from "../tools/sunburst";
  5219. import SeeBoard from "../tools/seeBoard";
  5220. import * as imageConversion from "image-conversion";
  5221. import Audio from "../components/audio.vue";
  5222. import ImgDraw from "../tools/imgDraw/imgDraw";
  5223. import { Empty } from "element-ui";
  5224. import RecordRTC from "recordrtc";
  5225. export default {
  5226. components: {
  5227. EditorBar,
  5228. Time,
  5229. pdf,
  5230. AskStatic,
  5231. AskStatic2,
  5232. Mind,
  5233. Sunburst,
  5234. SeeBoard,
  5235. AnswerData2,
  5236. AnswerData,
  5237. Audio,
  5238. ImgDraw,
  5239. Table,
  5240. },
  5241. data() {
  5242. return {
  5243. bg: null,
  5244. drawShow: false,
  5245. dialogVisible: false,
  5246. dialogVisiblePl: false,
  5247. commentDialogVisible: false,
  5248. videoVisible: false,
  5249. isStar: false,
  5250. studentEvalDialogVisible: false,
  5251. dialogVisibleSelect: false,
  5252. dialogVisibleSelectTeacher: false,
  5253. dialogVisibleScore: false,
  5254. dialogVisibleSentence: false,
  5255. dialogVisibleSentenceTeacher: false,
  5256. dialogVisibleSentence1: false,
  5257. dialogVisibleWorks: false,
  5258. answerDialogVisibleTeacher: false,
  5259. dialogVisibleTable: false,
  5260. dialogVisibleTableTeacher: false,
  5261. dialogVisibleWord: false,
  5262. dialogVisibleWordTeacher: false,
  5263. dialogVisibleTable2: false,
  5264. dialogVisibleGroupWork: false,
  5265. dialogVisibleUpdateGroup: false,
  5266. dialogVisibleDeleteGroup: false,
  5267. dialogVisibleSname: false,
  5268. worksSName: "",
  5269. classJuri: [],
  5270. uploadStudentJuri: [],
  5271. uploadCid: "",
  5272. snameWid: "",
  5273. sStudent: {},
  5274. sTool: "",
  5275. bzText: "",
  5276. commentDetail: [],
  5277. selectAnswer: [],
  5278. videoDetail: {},
  5279. selectJson: {},
  5280. eScore: { eBzText: "", eStar: [] },
  5281. id: this.$route.query.courseId,
  5282. userid: this.$route.query.userid,
  5283. classId: this.$route.query.cid,
  5284. // courseTypeLine: this.$route.query.type,
  5285. oid: this.$route.query.oid,
  5286. org: this.$route.query.org,
  5287. tType: this.$route.query.tType,
  5288. courseType: this.$route.query.type,
  5289. screenType: this.$route.query.screenType,
  5290. tcid2: this.$route.query.tcid,
  5291. tcid: "",
  5292. pptImgUrl: "",
  5293. pptImgUrl1: "",
  5294. commentText: "",
  5295. full: false,
  5296. sIsOpen: false,
  5297. IsLookOpen: false,
  5298. IsFollow: false,
  5299. pzDialog: false,
  5300. contentDialog: false,
  5301. mlDialog: false,
  5302. type: 1,
  5303. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5304. sentenceList1: [],
  5305. tableJson: [],
  5306. wordJson: [],
  5307. vedio: [],
  5308. text: [],
  5309. textList: [],
  5310. line: [],
  5311. lineList: [],
  5312. chapTools: [],
  5313. chapToolList: [],
  5314. file: [],
  5315. fileC: [],
  5316. vedioTime: [],
  5317. upToolImg: "",
  5318. preTime: 0,
  5319. rateList: {
  5320. ca: 0,
  5321. },
  5322. rateParams: [],
  5323. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  5324. studyJuri: [
  5325. {
  5326. content: "",
  5327. cover: [],
  5328. upVedio: [],
  5329. upFile: [],
  5330. },
  5331. ],
  5332. plworkFile: [],
  5333. mr: require("../../assets/vedioPic.png"),
  5334. word: require("../../assets/icon/isWord.png"),
  5335. word2: require("../../assets/icon/word2.png"),
  5336. video: require("../../assets/icon/isVideo.png"),
  5337. noLikes: require("../../assets/icon/comment/noLikes.png"),
  5338. likes: require("../../assets/icon/comment/likes.png"),
  5339. scoreImg: require("../../assets/score.png"),
  5340. courseDetail: {},
  5341. isSelect: false,
  5342. chapInfo: [],
  5343. chapInfoList: [],
  5344. taskCount: 0,
  5345. imgList: [],
  5346. noImgList: [],
  5347. pzList: [],
  5348. PlTextList: [
  5349. "Excellent!",
  5350. "nice!",
  5351. "很有创意!",
  5352. "还不错哦~",
  5353. "继续努力哦~",
  5354. ],
  5355. isClickNav: "",
  5356. navId: "",
  5357. playerOptions: {
  5358. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5359. autoplay: false, //如果true,浏览器准备好时开始回放。
  5360. muted: false, // 默认情况下将会消除任何音频。
  5361. loop: false, // 导致视频一结束就重新开始。
  5362. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5363. language: "zh-CN",
  5364. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5365. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5366. sources: [
  5367. {
  5368. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5369. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5370. },
  5371. ],
  5372. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5373. // poster: dataRes.imgUrl, //你的封面地址
  5374. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5375. controlBar: {
  5376. timeDivider: true, //当前时间和持续时间的分隔符
  5377. durationDisplay: true, //显示持续时间
  5378. remainingTimeDisplay: false, //是否显示剩余时间功能
  5379. fullscreenToggle: true, //全屏按钮
  5380. },
  5381. },
  5382. playerOptions1: {
  5383. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5384. autoplay: false, //如果true,浏览器准备好时开始回放。
  5385. muted: false, // 默认情况下将会消除任何音频。
  5386. loop: false, // 导致视频一结束就重新开始。
  5387. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5388. language: "zh-CN",
  5389. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5390. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5391. sources: [
  5392. {
  5393. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5394. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5395. },
  5396. ],
  5397. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5398. // poster: dataRes.imgUrl, //你的封面地址
  5399. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5400. controlBar: {
  5401. timeDivider: true, //当前时间和持续时间的分隔符
  5402. durationDisplay: true, //显示持续时间
  5403. remainingTimeDisplay: false, //是否显示剩余时间功能
  5404. fullscreenToggle: true, //全屏按钮
  5405. },
  5406. },
  5407. playerO: {},
  5408. noneBtnImg: false,
  5409. proVisible: false,
  5410. proVisible2: false,
  5411. progress: 0,
  5412. isFinishSize: 0,
  5413. isAllSize: 0,
  5414. questionAnswer: "",
  5415. answerQ: "", //问答标题
  5416. rateJson: [],
  5417. wbCount: 0,
  5418. wordCount: 0,
  5419. mindCount: 0,
  5420. askCount: 0,
  5421. noteCount: 0,
  5422. mindNetWorkCount: 0,
  5423. libraryCount: 0,
  5424. workCount: 0,
  5425. timeCount: 0,
  5426. answerCount: 0,
  5427. trainCount: 0,
  5428. evalCount: 0,
  5429. dialogImageUrl: "",
  5430. pictureDialog: false,
  5431. toolTypeList: [],
  5432. dialogVisible1: false,
  5433. dialogVisible2: false,
  5434. dialogVisible3: false,
  5435. dialogVisible6: false,
  5436. dialogVisible4: false,
  5437. isNoHomeWork: false,
  5438. dialogVisible5: false,
  5439. dialogVisible5Teacher: false,
  5440. dialogVisibleChoice: false,
  5441. dialogVisibleChoiceTeacher: false,
  5442. answerDialogVisible: false,
  5443. juriVisible: false,
  5444. timeDialogVisible: false,
  5445. radio: [],
  5446. isAsk: false,
  5447. askJson: {
  5448. askCount: 1,
  5449. askTitle: "",
  5450. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5451. },
  5452. testJson: {},
  5453. checkJson: [],
  5454. askList: [],
  5455. answerList: [],
  5456. navList: [],
  5457. addPzDialog: false,
  5458. pzConText: "",
  5459. worksStudent: [],
  5460. worksStudent2: [],
  5461. worksTeacher: [],
  5462. isCloseList: [],
  5463. workStudent: [],
  5464. groupStudent: [],
  5465. groupStudentUid: [],
  5466. noWorksS: [],
  5467. isWorksS: [],
  5468. noWorksStudent: [],
  5469. toolindex: 0,
  5470. groupIndex: 0,
  5471. workTypeB: false,
  5472. workTypeC: false,
  5473. isAnswer: false,
  5474. timer: null,
  5475. opertimer: null,
  5476. showType: 0,
  5477. fileType: 0,
  5478. showPDF: false,
  5479. noteName: "",
  5480. evaJuri: [],
  5481. evalua: "",
  5482. eTitle: "",
  5483. eName: "",
  5484. eJson: {},
  5485. fid: "", //一级
  5486. sid: "", //二级
  5487. tid: "", //二级
  5488. typeMode: 1,
  5489. eJSONNum: 0,
  5490. Etype: 1,
  5491. data: {
  5492. meta: {
  5493. name: "example",
  5494. author: "dd@163.com",
  5495. version: "0.2",
  5496. },
  5497. format: "node_array",
  5498. data: [{ id: "root", isroot: true, topic: "" }],
  5499. },
  5500. fullDialogVisible: false,
  5501. fulltype: "",
  5502. fullUrl: "",
  5503. commentIndexJson: {},
  5504. Stbodywidth: 0,
  5505. pzType: 1,
  5506. wScore: 0,
  5507. scoreDetail: "",
  5508. videoStart: false,
  5509. recorder: null,
  5510. groupJson: {},
  5511. groupJson2: {},
  5512. dialogVisibleGroup: false,
  5513. dialogVisibleGroup2: false,
  5514. updateGroupArray: [],
  5515. updateGroupUser: {},
  5516. deleteGroupUser: [],
  5517. deleteGroupArray: {},
  5518. checkChair: "",
  5519. checkDeleteGroup: [],
  5520. inviteCode: "",
  5521. courseGroupStudent: [],
  5522. courseGroupStudentUid: [],
  5523. courseGroup: {},
  5524. isGroup: false,
  5525. toolIndex: null,
  5526. tool: {},
  5527. isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50]//, 40
  5528. };
  5529. },
  5530. methods: {
  5531. jump() {
  5532. window.parent.postMessage({ tools: "43" }, "*");
  5533. },
  5534. previewImg(url) {
  5535. this.$hevueImgPreview(url);
  5536. },
  5537. change(val) {
  5538. console.log(val);
  5539. },
  5540. goTo(path) {
  5541. this.$router.push(path);
  5542. },
  5543. handlePictureCardPreview(url) {
  5544. this.dialogImageUrl = url;
  5545. this.pictureDialog = true;
  5546. },
  5547. clean(type) {
  5548. if (type == 1) {
  5549. this.studyJuri[0].cover.splice(0, 1);
  5550. } else if (type == 2) {
  5551. this.studyJuri[0].upVedio.splice(0, 1);
  5552. } else {
  5553. this.studyJuri[0].upFile.splice(0, 1);
  5554. }
  5555. },
  5556. clean2(index) {
  5557. this.plworkFile.splice(index, 1);
  5558. },
  5559. handleClose(done) {
  5560. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  5561. this.videoDetail.sources[0].src = "";
  5562. }
  5563. this.commentIndexJson = {};
  5564. done();
  5565. },
  5566. fullTools() {
  5567. this.full = !this.full;
  5568. },
  5569. imgChange(file, fileList, type) {
  5570. if (type == 1) {
  5571. var _tmp = this.studyJuri[0].cover;
  5572. } else if (type == 2) {
  5573. var _tmp = this.studyJuri[0].upVedio;
  5574. } else {
  5575. var _tmp = this.studyJuri[0].upFile;
  5576. }
  5577. this.noneBtnImg = _tmp.length >= 1;
  5578. },
  5579. setContent(bool) {
  5580. this.contentDialog = bool
  5581. if (bool && this.mlDialog) {
  5582. document.querySelector('.workd_media').style.height = "650px"
  5583. } else {
  5584. document.querySelector('.workd_media').style.height = "auto"
  5585. }
  5586. },
  5587. setContent2(bool) {
  5588. this.mlDialog = bool
  5589. if (bool && this.contentDialog) {
  5590. document.querySelector('.workd_media').style.height = "650px"
  5591. } else {
  5592. document.querySelector('.workd_media').style.height = "auto"
  5593. }
  5594. },
  5595. addImg(e) {
  5596. var el = e.currentTarget;
  5597. // this.$message.success('触发上传')
  5598. el.getElementsByTagName("input")[0].click();
  5599. e.target.value = "";
  5600. },
  5601. addSelectAnswer() {
  5602. let params = [
  5603. {
  5604. uid: this.userid,
  5605. cid: this.id,
  5606. stage: this.courseType,
  5607. task: this.taskCount,
  5608. tool: this.toolindex,
  5609. content: this.selectAnswer.answer,
  5610. type: 7,
  5611. },
  5612. ];
  5613. this.ajax
  5614. .post(this.$store.state.api + "addCourseWorks", params)
  5615. .then((res) => {
  5616. this.$message({
  5617. message: "提交成功",
  5618. type: "success",
  5619. });
  5620. this.dialogVisibleSelect = false;
  5621. // this.selectAnswer = {};
  5622. this.selectSWorks();
  5623. this.selectStudent();
  5624. })
  5625. .catch((err) => {
  5626. this.$message.error("提交失败");
  5627. console.error(err);
  5628. });
  5629. },
  5630. addSelectAnswerTeacher() {
  5631. let params = [
  5632. {
  5633. uid: this.sStudent.userid,
  5634. cid: this.id,
  5635. stage: this.courseType,
  5636. task: this.taskCount,
  5637. tool: this.toolindex,
  5638. content: this.selectAnswer.answer,
  5639. type: 7,
  5640. },
  5641. ];
  5642. this.ajax
  5643. .post(this.$store.state.api + "addCourseWorks", params)
  5644. .then((res) => {
  5645. this.$message({
  5646. message: "提交成功",
  5647. type: "success",
  5648. });
  5649. this.dialogVisibleSelectTeacher = false;
  5650. // this.selectAnswer = {};
  5651. this.selectSWorks();
  5652. this.selectStudent();
  5653. })
  5654. .catch((err) => {
  5655. this.$message.error("提交失败");
  5656. console.error(err);
  5657. });
  5658. },
  5659. addSenWorks() {
  5660. for (var i = 0; i < this.sentenceList.length; i++) {
  5661. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5662. if (
  5663. this.sentenceList[i].chooseSenList[j] == undefined ||
  5664. this.sentenceList[i].chooseSenList[j] == ""
  5665. ) {
  5666. this.$message.error("请将答案填写完整!");
  5667. return;
  5668. }
  5669. }
  5670. }
  5671. let params = [
  5672. {
  5673. uid: this.userid,
  5674. cid: this.id,
  5675. stage: this.courseType,
  5676. task: this.taskCount,
  5677. tool: this.toolindex,
  5678. content: JSON.stringify(this.sentenceList),
  5679. type: 9,
  5680. },
  5681. ];
  5682. this.ajax
  5683. .post(this.$store.state.api + "addCourseWorks", params)
  5684. .then((res) => {
  5685. this.$message({
  5686. message: "提交成功",
  5687. type: "success",
  5688. });
  5689. this.dialogVisibleSentence = false;
  5690. // this.selectAnswer = {};
  5691. this.selectSWorks();
  5692. this.selectStudent();
  5693. })
  5694. .catch((err) => {
  5695. this.$message.error("提交失败");
  5696. console.error(err);
  5697. });
  5698. },
  5699. addSenWorksTeacher() {
  5700. for (var i = 0; i < this.sentenceList.length; i++) {
  5701. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5702. if (
  5703. this.sentenceList[i].chooseSenList[j] == undefined ||
  5704. this.sentenceList[i].chooseSenList[j] == ""
  5705. ) {
  5706. this.$message.error("请将答案填写完整!");
  5707. return;
  5708. }
  5709. }
  5710. }
  5711. let params = [
  5712. {
  5713. uid: this.sStudent.userid,
  5714. cid: this.id,
  5715. stage: this.courseType,
  5716. task: this.taskCount,
  5717. tool: this.toolindex,
  5718. content: JSON.stringify(this.sentenceList),
  5719. type: 9,
  5720. },
  5721. ];
  5722. this.ajax
  5723. .post(this.$store.state.api + "addCourseWorks", params)
  5724. .then((res) => {
  5725. this.$message({
  5726. message: "提交成功",
  5727. type: "success",
  5728. });
  5729. this.dialogVisibleSentenceTeacher = false;
  5730. // this.selectAnswer = {};
  5731. this.selectSWorks();
  5732. this.selectStudent();
  5733. })
  5734. .catch((err) => {
  5735. this.$message.error("提交失败");
  5736. console.error(err);
  5737. });
  5738. },
  5739. addTableWorks() {
  5740. let params = [
  5741. {
  5742. uid: this.userid,
  5743. cid: this.id,
  5744. stage: this.courseType,
  5745. task: this.taskCount,
  5746. tool: this.toolindex,
  5747. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  5748. type: 10,
  5749. },
  5750. ];
  5751. this.ajax
  5752. .post(this.$store.state.api + "addCourseWorks", params)
  5753. .then((res) => {
  5754. this.$message({
  5755. message: "提交成功",
  5756. type: "success",
  5757. });
  5758. this.dialogVisibleTable = false;
  5759. // this.selectAnswer = {};
  5760. this.selectSWorks();
  5761. this.selectStudent();
  5762. })
  5763. .catch((err) => {
  5764. this.$message.error("提交失败");
  5765. console.error(err);
  5766. });
  5767. },
  5768. addTableWorksTeacher() {
  5769. let params = [
  5770. {
  5771. uid: this.sStudent.userid,
  5772. cid: this.id,
  5773. stage: this.courseType,
  5774. task: this.taskCount,
  5775. tool: this.toolindex,
  5776. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  5777. type: 10,
  5778. },
  5779. ];
  5780. this.ajax
  5781. .post(this.$store.state.api + "addCourseWorks", params)
  5782. .then((res) => {
  5783. this.$message({
  5784. message: "提交成功",
  5785. type: "success",
  5786. });
  5787. this.dialogVisibleTableTeacher = false;
  5788. // this.selectAnswer = {};
  5789. this.selectSWorks();
  5790. this.selectStudent();
  5791. })
  5792. .catch((err) => {
  5793. this.$message.error("提交失败");
  5794. console.error(err);
  5795. });
  5796. },
  5797. addWordWorks() {
  5798. let params = {
  5799. uid: this.userid,
  5800. cid: this.id,
  5801. stage: this.courseType,
  5802. task: this.taskCount,
  5803. tool: this.toolindex,
  5804. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  5805. type: 13,
  5806. atool: 52,
  5807. };
  5808. console.log(params);
  5809. this.ajax
  5810. .get(this.$store.state.api + "addCourseWorks3", params)
  5811. .then((res) => {
  5812. this.$message({
  5813. message: "提交成功",
  5814. type: "success",
  5815. });
  5816. this.dialogVisibleWord = false;
  5817. // this.selectAnswer = {};
  5818. this.selectSWorks();
  5819. this.selectStudent();
  5820. })
  5821. .catch((err) => {
  5822. this.$message.error("提交失败");
  5823. console.error(err);
  5824. });
  5825. },
  5826. addWordWorksTeacher() {
  5827. let params = {
  5828. uid: this.sStudent.userid,
  5829. cid: this.id,
  5830. stage: this.courseType,
  5831. task: this.taskCount,
  5832. tool: this.toolindex,
  5833. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  5834. type: 13,
  5835. atool: 52,
  5836. };
  5837. console.log(params);
  5838. this.ajax
  5839. .get(this.$store.state.api + "addCourseWorks3", params)
  5840. .then((res) => {
  5841. this.$message({
  5842. message: "提交成功",
  5843. type: "success",
  5844. });
  5845. this.dialogVisibleWordTeacher = false;
  5846. // this.selectAnswer = {};
  5847. this.selectSWorks();
  5848. this.selectStudent();
  5849. })
  5850. .catch((err) => {
  5851. this.$message.error("提交失败");
  5852. console.error(err);
  5853. });
  5854. },
  5855. addCourseWorks(i) {
  5856. var typesql;
  5857. if (this.fileType === 0) {
  5858. typesql = 1;
  5859. } else if (this.fileType === 1) {
  5860. typesql = 4;
  5861. } else if (this.fileType === 2) {
  5862. typesql = 5;
  5863. } else if (this.fileType === 3) {
  5864. typesql = 12;
  5865. }
  5866. if (!this.studyJuri[0].cover[0].url) {
  5867. this.$message.error("请上传文件");
  5868. return;
  5869. }
  5870. let params = [
  5871. {
  5872. uid: this.userid,
  5873. cid: this.id,
  5874. stage: this.courseType,
  5875. task: i,
  5876. tool: this.toolindex,
  5877. content: this.studyJuri[0].cover[0].url,
  5878. type: typesql,
  5879. },
  5880. ];
  5881. this.ajax
  5882. .post(this.$store.state.api + "addCourseWorksR", params)
  5883. .then((res) => {
  5884. this.$message({
  5885. message: "提交成功",
  5886. type: "success",
  5887. });
  5888. this.studyJuri[0].cover = [];
  5889. this.dialogVisible = false;
  5890. this.getCourseDetail();
  5891. })
  5892. .catch((err) => {
  5893. this.$message.error("提交失败");
  5894. console.error(err);
  5895. });
  5896. },
  5897. addCourseWorksPl(i) {
  5898. let _files = this.plworkFile;
  5899. var c = 1;
  5900. for (var k = 0; k < _files.length; k++) {
  5901. if (!_files[k].username) {
  5902. c = 2;
  5903. }
  5904. }
  5905. if (c == 2) {
  5906. this.$message.error("请填写学生姓名");
  5907. return;
  5908. }
  5909. let params = [
  5910. {
  5911. ateacher: this.userid,
  5912. cid: this.id,
  5913. stage: this.courseType,
  5914. task: i,
  5915. tool: this.toolindex,
  5916. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  5917. },
  5918. ];
  5919. this.ajax
  5920. .post(this.$store.state.api + "addCourseWorksPl", params)
  5921. .then((res) => {
  5922. this.$message({
  5923. message: "提交成功",
  5924. type: "success",
  5925. });
  5926. this.plworkFile = [];
  5927. this.dialogVisiblePl = false;
  5928. this.getCourseDetail();
  5929. })
  5930. .catch((err) => {
  5931. this.$message.error("提交失败");
  5932. console.error(err);
  5933. });
  5934. },
  5935. addCourseWorks2(i) {
  5936. var typesql;
  5937. if (this.fileType === 0) {
  5938. typesql = 0;
  5939. } else if (this.fileType === 1) {
  5940. typesql = 1;
  5941. } else if (this.fileType === 2) {
  5942. typesql = 3;
  5943. } else if (this.fileType === 3) {
  5944. typesql = 12;
  5945. }
  5946. if (!this.studyJuri[0].cover[0].url) {
  5947. this.$message.error("请上传文件");
  5948. return;
  5949. }
  5950. let params = [
  5951. {
  5952. uid: this.userid,
  5953. cid: this.id,
  5954. stage: this.courseType,
  5955. task: i,
  5956. tool: this.toolindex,
  5957. content: JSON.stringify({
  5958. type: typesql,
  5959. groupIndex: this.groupIndex,
  5960. url: this.studyJuri[0].cover[0].url,
  5961. }).replaceAll(/%/g, "%25"),
  5962. type: 11,
  5963. atool: 49,
  5964. text: "",
  5965. },
  5966. ];
  5967. this.ajax
  5968. .post(this.$store.state.api + "addCourseWorks5", params)
  5969. .then((res) => {
  5970. this.$message({
  5971. message: "提交成功",
  5972. type: "success",
  5973. });
  5974. this.studyJuri[0].cover = [];
  5975. this.dialogVisibleGroupWork = false;
  5976. this.getCourseDetail();
  5977. })
  5978. .catch((err) => {
  5979. this.$message.error("提交失败");
  5980. console.error(err);
  5981. });
  5982. },
  5983. addCourseWorksGong(i, data, tool) {
  5984. let params = [
  5985. {
  5986. uid: this.userid,
  5987. cid: this.id,
  5988. stage: this.courseType,
  5989. task: this.taskCount,
  5990. tool: i,
  5991. content: data,
  5992. type: 12,
  5993. atool: tool,
  5994. text: "",
  5995. },
  5996. ];
  5997. this.ajax
  5998. .post(this.$store.state.api + "addCourseWorks5", params)
  5999. .then((res) => {
  6000. this.$message({
  6001. message: "提交成功",
  6002. type: "success",
  6003. });
  6004. this.studyJuri[0].cover = [];
  6005. this.selectSWorks();
  6006. this.selectStudent();
  6007. })
  6008. .catch((err) => {
  6009. this.$message.error("提交失败");
  6010. console.error(err);
  6011. });
  6012. },
  6013. addCourseWorksGongTeacher(i, data, tool) {
  6014. let params = [
  6015. {
  6016. uid: this.sStudent.userid,
  6017. cid: this.id,
  6018. stage: this.courseType,
  6019. task: this.taskCount,
  6020. tool: i,
  6021. content: data,
  6022. type: 12,
  6023. atool: tool,
  6024. text: "",
  6025. },
  6026. ];
  6027. this.ajax
  6028. .post(this.$store.state.api + "addCourseWorks5", params)
  6029. .then((res) => {
  6030. this.$message({
  6031. message: "提交成功",
  6032. type: "success",
  6033. });
  6034. this.studyJuri[0].cover = [];
  6035. this.dialogVisibleWorks = false;
  6036. this.selectSWorks();
  6037. this.selectStudent();
  6038. })
  6039. .catch((err) => {
  6040. this.$message.error("提交失败");
  6041. console.error(err);
  6042. });
  6043. },
  6044. addCourseWorksGongPl(i, data, tool, type) {
  6045. let params = [
  6046. {
  6047. uid: this.sStudent.userid,
  6048. cid: this.id,
  6049. stage: this.courseType,
  6050. task: this.taskCount,
  6051. tool: i,
  6052. content: data,
  6053. type: type,
  6054. atool: tool,
  6055. text: "",
  6056. },
  6057. ];
  6058. this.ajax
  6059. .post(this.$store.state.api + "addCourseWorks5", params)
  6060. .then((res) => {
  6061. this.$message({
  6062. message: "提交成功",
  6063. type: "success",
  6064. });
  6065. this.studyJuri[0].cover = [];
  6066. this.dialogVisibleWorks = false;
  6067. this.selectSWorks();
  6068. this.selectStudent();
  6069. })
  6070. .catch((err) => {
  6071. this.$message.error("提交失败");
  6072. console.error(err);
  6073. });
  6074. },
  6075. addCourseWorksTeacher(i) {
  6076. var typesql;
  6077. if (this.sTool == 32 || this.sTool == 57) {
  6078. this.addCourseWorksGongTeacher(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool);
  6079. return;
  6080. }
  6081. if (this.fileType === 0) {
  6082. typesql = 1;
  6083. } else if (this.fileType === 1) {
  6084. typesql = 4;
  6085. } else if (this.fileType === 2) {
  6086. typesql = 5;
  6087. } else if (this.fileType === 3) {
  6088. typesql = 12;
  6089. }
  6090. if (this.sTool == 50) {
  6091. this.addCourseWorksGongPl(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool, typesql);
  6092. return;
  6093. }
  6094. if (!this.studyJuri[0].cover[0].url) {
  6095. this.$message.error("请上传文件");
  6096. return;
  6097. }
  6098. let params = [
  6099. {
  6100. uid: this.sStudent.userid,
  6101. cid: this.id,
  6102. stage: this.courseType,
  6103. task: i,
  6104. tool: this.toolindex,
  6105. content: this.studyJuri[0].cover[0].url,
  6106. type: typesql,
  6107. ateacher: this.userid,
  6108. },
  6109. ];
  6110. this.ajax
  6111. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  6112. .then((res) => {
  6113. this.$message({
  6114. message: "提交成功",
  6115. type: "success",
  6116. });
  6117. this.studyJuri[0].cover = [];
  6118. this.dialogVisibleWorks = false;
  6119. this.getCourseDetail();
  6120. })
  6121. .catch((err) => {
  6122. this.$message.error("提交失败");
  6123. console.error(err);
  6124. });
  6125. },
  6126. selectCStudent() {
  6127. let params = {
  6128. cid: this.classId,
  6129. };
  6130. this.ajax
  6131. .get(this.$store.state.api + "selectSnameByCid", params)
  6132. .then((res) => {
  6133. this.classJuri = res.data[0];
  6134. })
  6135. .catch((err) => {
  6136. console.error(err);
  6137. });
  6138. },
  6139. selectUploadStudent() {
  6140. let params = {
  6141. cid: this.uploadCid,
  6142. };
  6143. this.ajax
  6144. .get(this.$store.state.api + "selectSnameByCid", params)
  6145. .then((res) => {
  6146. this.uploadStudentJuri = res.data[0];
  6147. })
  6148. .catch((err) => {
  6149. console.error(err);
  6150. });
  6151. },
  6152. arrayToArray(arrayo, arrayt) {
  6153. let array1 = arrayo;
  6154. let array2 = arrayt;
  6155. let commonElements = [];
  6156. for (let i = 0; i < array1.length; i++) {
  6157. for (let j = 0; j < array2.length; j++) {
  6158. if (array1[i] === array2[j]) {
  6159. commonElements.push(array1[i]);
  6160. }
  6161. }
  6162. }
  6163. return commonElements
  6164. },
  6165. selectWorksStudent() {
  6166. let params = {
  6167. oid: this.oid,
  6168. cid: this.courseDetail.juri,
  6169. };
  6170. this.ajax
  6171. .get(this.$store.state.api + "selectWorksStudent", params)
  6172. .then((res) => {
  6173. var a = res.data[0];
  6174. for (var i = 0; i < this.isWorksS.length; i++) {
  6175. this.noWorksS[i] = [];
  6176. var studentK = [];
  6177. if (this.isWorksS[i].length > 0) {
  6178. for (var z = 0; z < this.isWorksS[i].length; z++) {
  6179. studentK.push(this.isWorksS[i][z].uid);
  6180. }
  6181. studentK = studentK.join(",");
  6182. for (var j = 0; j < a.length; j++) {
  6183. // if (studentK.indexOf(a[j].userid) == -1) {
  6184. if (this.tcid) {
  6185. // a[j].classid.indexOf(this.tcid) != -1
  6186. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  6187. this.noWorksS[i].push({
  6188. student: a[j].name,
  6189. userid: a[j].userid,
  6190. });
  6191. }
  6192. } else {
  6193. this.noWorksS[i].push({
  6194. student: a[j].name,
  6195. userid: a[j].userid,
  6196. });
  6197. }
  6198. // }
  6199. }
  6200. } else {
  6201. for (var k = 0; k < a.length; k++) {
  6202. if (this.tcid) {
  6203. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  6204. this.noWorksS[i].push({
  6205. student: a[k].name,
  6206. userid: a[k].userid,
  6207. });
  6208. }
  6209. } else {
  6210. this.noWorksS[i].push({
  6211. student: a[k].name,
  6212. userid: a[k].userid,
  6213. });
  6214. }
  6215. }
  6216. }
  6217. }
  6218. this.$forceUpdate();
  6219. if (
  6220. Object.keys(this.commentDetail).length &&
  6221. Object.keys(this.commentIndexJson).length &&
  6222. !this.dialogVisibleScore
  6223. ) {
  6224. let a = 1;
  6225. let c = this.commentIndexJson;
  6226. console.log(c);
  6227. if (
  6228. this.commentIndexJson.gindex ||
  6229. this.commentIndexJson.gindex === 0
  6230. ) {
  6231. for (
  6232. var i = 0;
  6233. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6234. i++
  6235. ) {
  6236. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6237. groupA: for (var k = 0; k < _el.length; k++) {
  6238. let el = _el[k];
  6239. if (el.wid == this.commentDetail.wid) {
  6240. a = 2;
  6241. this.commentOther(
  6242. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  6243. this.commentIndexJson.toolIndex,
  6244. k,
  6245. this.commentIndexJson.gindex
  6246. );
  6247. break groupA;
  6248. }
  6249. }
  6250. }
  6251. if (a === 1) {
  6252. this.commentDetail = [];
  6253. this.commentIndexJson = {};
  6254. this.commentDialogVisible = false;
  6255. this.$message("此作业已被删除");
  6256. }
  6257. } else {
  6258. if (this.isGroup && this.commentIndexJson.gid) {
  6259. groupA: for (
  6260. var i = 0;
  6261. i < this.courseGroup.group.length;
  6262. i++
  6263. ) {
  6264. let _group = this.courseGroup.group[i]
  6265. if (_group.id == this.commentIndexJson.gid) {
  6266. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  6267. for (var k = 0; k < _el2.length; k++) {
  6268. let el2 = _el2[k];
  6269. if (el2.wid == this.commentDetail.wid) {
  6270. a = 2;
  6271. this.commentOther(
  6272. _el2[k],
  6273. this.commentIndexJson.toolIndex,
  6274. k,
  6275. null,
  6276. this.commentIndexJson.gid
  6277. );
  6278. break groupA;
  6279. }
  6280. }
  6281. }
  6282. }
  6283. }
  6284. if (a == 1) {
  6285. for (
  6286. var i = 0;
  6287. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6288. i++
  6289. ) {
  6290. let el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6291. if (el.wid == this.commentDetail.wid) {
  6292. a = 2;
  6293. this.commentOther(
  6294. this.worksStudent[this.commentIndexJson.toolIndex][i],
  6295. this.commentIndexJson.toolIndex,
  6296. i
  6297. );
  6298. break;
  6299. }
  6300. }
  6301. }
  6302. if (a === 1) {
  6303. this.commentDetail = [];
  6304. this.commentIndexJson = {};
  6305. this.commentDialogVisible = false;
  6306. this.$message("此作业已被删除");
  6307. }
  6308. }
  6309. }
  6310. })
  6311. .catch((err) => {
  6312. console.error(err);
  6313. });
  6314. },
  6315. selectStudent() {
  6316. },
  6317. openVideo(w) {
  6318. this.videoDetail = {};
  6319. this.playerOptions1.sources[0].src = w.works;
  6320. this.videoDetail = this.playerOptions1;
  6321. this.videoVisible = true;
  6322. },
  6323. isLikes(wid, uid, t, c, isLikes) {
  6324. if (isLikes == false) {
  6325. let params = [
  6326. {
  6327. wid: wid,
  6328. lid: uid,
  6329. t: t,
  6330. c: c,
  6331. },
  6332. ];
  6333. this.ajax
  6334. .post(this.$store.state.api + "insertComment", params)
  6335. .then((res) => {
  6336. this.$message({
  6337. message: "点赞成功",
  6338. type: "success",
  6339. });
  6340. this.selectSWorks();
  6341. this.selectStudent();
  6342. })
  6343. .catch((err) => {
  6344. this.$message.error("点赞失败");
  6345. console.error(err);
  6346. });
  6347. } else {
  6348. let params = {
  6349. wid: wid,
  6350. lid: uid,
  6351. type: t,
  6352. };
  6353. this.ajax
  6354. .get(this.$store.state.api + "deleteComment", params)
  6355. .then((res) => {
  6356. this.$message({
  6357. message: "取消点赞成功",
  6358. type: "success",
  6359. });
  6360. this.selectSWorks();
  6361. this.selectStudent();
  6362. })
  6363. .catch((err) => {
  6364. console.error(err);
  6365. });
  6366. }
  6367. },
  6368. deleteComment(wid) {
  6369. this.$confirm("确定删除此评论吗?", "提示", {
  6370. confirmButtonText: "确定",
  6371. cancelButtonText: "取消",
  6372. type: "warning",
  6373. })
  6374. .then(() => {
  6375. let params = {
  6376. id: wid,
  6377. };
  6378. this.ajax
  6379. .get(this.$store.state.api + "deleteComment2", params)
  6380. .then((res) => {
  6381. this.$message({
  6382. message: "删除评论成功",
  6383. type: "success",
  6384. });
  6385. this.selectSWorks();
  6386. this.selectStudent();
  6387. })
  6388. .catch((err) => {
  6389. console.error(err);
  6390. });
  6391. })
  6392. .catch(() => { });
  6393. },
  6394. commentOther(w, toolIndex, wIndex, gindex, gid) {
  6395. this.commentIndexJson = {
  6396. toolIndex: toolIndex,
  6397. wIndex: wIndex,
  6398. gindex: gindex,
  6399. gid: gid
  6400. };
  6401. this.commentDetail = [];
  6402. this.commentDialogVisible = true;
  6403. this.commentDetail = w;
  6404. if (w.works && w.type == 1) {
  6405. this.pptImgUrl = "";
  6406. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6407. if (
  6408. a.indexOf(
  6409. w.works
  6410. .split(".")
  6411. [w.works.split(".").length - 1].toLocaleUpperCase()
  6412. ) != -1
  6413. ) {
  6414. this.pptImgUrl =
  6415. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6416. this.showPDF = false;
  6417. } else if (
  6418. w.works
  6419. .split(".")
  6420. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6421. ) {
  6422. this.pptImgUrl = w.works;
  6423. this.showPDF = true;
  6424. }
  6425. } else if (w.works && w.type == 3) {
  6426. this.videoDetail = {};
  6427. this.playerOptions1.sources[0].src = w.works;
  6428. this.videoDetail = this.playerOptions1;
  6429. // this.videoVisible = true;
  6430. } else if (w.works && w.type == 4) {
  6431. this.eScore = JSON.parse(w.works);
  6432. this.rateJson =
  6433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6434. this.taskCount
  6435. ].toolChoose[toolIndex].rateJson;
  6436. } else if (w.works && w.type == 10) {
  6437. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  6438. } else if (w.works && w.type == 13) {
  6439. this.wordJson =
  6440. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6441. this.taskCount
  6442. ].toolChoose[toolIndex].wordJson;
  6443. }
  6444. },
  6445. openScore(w) {
  6446. this.wScore = 0;
  6447. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  6448. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  6449. this.commentDetail = [];
  6450. this.dialogVisibleScore = true;
  6451. this.commentDetail = w;
  6452. if (w.works && w.type == 1) {
  6453. this.pptImgUrl = "";
  6454. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6455. if (
  6456. a.indexOf(
  6457. w.works
  6458. .split(".")
  6459. [w.works.split(".").length - 1].toLocaleUpperCase()
  6460. ) != -1
  6461. ) {
  6462. this.pptImgUrl =
  6463. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6464. this.showPDF = false;
  6465. } else if (
  6466. w.works
  6467. .split(".")
  6468. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6469. ) {
  6470. this.pptImgUrl = w.works;
  6471. this.showPDF = true;
  6472. }
  6473. } else if (w.works && w.type == 3) {
  6474. this.videoDetail = {};
  6475. this.playerOptions1.sources[0].src = w.works;
  6476. this.videoDetail = this.playerOptions1;
  6477. }
  6478. },
  6479. addComment(wid, uid, t) {
  6480. if (this.commentText == "") {
  6481. this.$message.error("请输入对该学生的评价");
  6482. return;
  6483. }
  6484. let params2 = [
  6485. {
  6486. wid: wid,
  6487. lid: uid,
  6488. t: t,
  6489. },
  6490. ];
  6491. this.ajax
  6492. .post(this.$store.state.api + "getComment", params2)
  6493. .then((res) => {
  6494. if (res.data[0].length > 0) {
  6495. this.$message.error("一个作业只能评论一条");
  6496. } else {
  6497. let params = [
  6498. {
  6499. wid: wid,
  6500. lid: uid,
  6501. t: t,
  6502. c: this.commentText,
  6503. },
  6504. ];
  6505. this.ajax
  6506. .post(this.$store.state.api + "insertComment", params)
  6507. .then((res) => {
  6508. this.$message({
  6509. message: "评论成功",
  6510. type: "success",
  6511. });
  6512. this.commentText = "";
  6513. this.selectSWorks();
  6514. this.selectStudent();
  6515. })
  6516. .catch((err) => {
  6517. this.$message.error("评论失败");
  6518. console.error(err);
  6519. });
  6520. }
  6521. })
  6522. .catch((err) => {
  6523. // this.$message.error("评论失败");
  6524. console.error(err);
  6525. });
  6526. },
  6527. scoreWork(wid) {
  6528. if (this.wScore == 0) {
  6529. this.$message.error("请评分");
  6530. return;
  6531. }
  6532. let params = [
  6533. {
  6534. wid: wid,
  6535. score: JSON.stringify({
  6536. wScore: this.wScore,
  6537. detail: this.scoreDetail,
  6538. }),
  6539. },
  6540. ];
  6541. this.ajax
  6542. .post(this.$store.state.api + "scoreWork", params)
  6543. .then((res) => {
  6544. this.$message({
  6545. message: "评分成功",
  6546. type: "success",
  6547. });
  6548. this.wScore = 0;
  6549. this.scoreDetail = "";
  6550. this.dialogVisibleScore = false;
  6551. this.selectSWorks();
  6552. this.selectStudent();
  6553. })
  6554. .catch((err) => {
  6555. this.$message.error("评分失败");
  6556. console.error(err);
  6557. });
  6558. },
  6559. openXz(w, i) {
  6560. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6561. .taskJson[this.taskCount].toolChoose[i].selectJson
  6562. ? JSON.parse(
  6563. JSON.stringify(
  6564. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6565. this.taskCount
  6566. ].toolChoose[i].selectJson
  6567. )
  6568. )
  6569. : { url: "", select: [], answer: [] };
  6570. var a = w.works.split(",");
  6571. for (var k = 0; k < a.length; k++) {
  6572. a[k] = parseInt(a[k]);
  6573. }
  6574. this.selectAnswer = { answer: a, stu: w.sName };
  6575. this.isSelect = true;
  6576. this.dialogVisibleSelect = true;
  6577. },
  6578. openSen(w, i) {
  6579. this.sentenceList1 = JSON.parse(w.works);
  6580. this.sentenceList1.stuName = w.sName;
  6581. this.dialogVisibleSentence1 = true;
  6582. },
  6583. openPj(w, toolindex) {
  6584. this.isStar = true;
  6585. this.eScore = JSON.parse(w);
  6586. this.rateJson =
  6587. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6588. this.taskCount
  6589. ].toolChoose[toolindex].rateJson;
  6590. this.studentEvalDialogVisible = true;
  6591. },
  6592. deleteWorks(id) {
  6593. this.$confirm("确定删除此作业吗?", "提示", {
  6594. confirmButtonText: "确定",
  6595. cancelButtonText: "取消",
  6596. type: "warning",
  6597. })
  6598. .then(() => {
  6599. let params = [
  6600. {
  6601. id: id,
  6602. },
  6603. ];
  6604. this.ajax
  6605. .post(this.$store.state.api + "deleteCourseWork", params)
  6606. .then((res) => {
  6607. this.$message({
  6608. message: "删除成功",
  6609. type: "success",
  6610. });
  6611. this.selectStudent();
  6612. this.selectSWorks();
  6613. this.selectSLook();
  6614. })
  6615. .catch((err) => {
  6616. this.$message.error("网络异常");
  6617. console.error(err);
  6618. });
  6619. })
  6620. .catch(() => { });
  6621. },
  6622. selectSWorks(gindex) {
  6623. //教师查看全部作业
  6624. let params = {
  6625. cid: this.id,
  6626. s: this.courseType,
  6627. t: this.taskCount,
  6628. };
  6629. this.ajax
  6630. .get(this.$store.state.api + "selectSWorks", params)
  6631. .then((res) => {
  6632. var a =
  6633. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6634. this.taskCount
  6635. ].toolChoose;
  6636. var b = res.data[0];
  6637. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6638. var y = [
  6639. "AVI",
  6640. "NAVI",
  6641. "MPEG",
  6642. "ASF",
  6643. "MOV",
  6644. "WMV",
  6645. "3GP",
  6646. "RM",
  6647. "RMVB",
  6648. "FLV",
  6649. "F4V",
  6650. "H.264",
  6651. "H.265",
  6652. "REAL VIDEO",
  6653. "MKV",
  6654. "WebM",
  6655. "HDDVD",
  6656. "MP4",
  6657. "MPG",
  6658. "M4V",
  6659. "MGV",
  6660. "OGV",
  6661. "QTM",
  6662. "STR",
  6663. "AMC",
  6664. "DVX",
  6665. "EVO",
  6666. "DAT",
  6667. "OGG",
  6668. "OGM",
  6669. ];
  6670. var d = res.data[1];
  6671. var e = res.data[2];
  6672. var f = res.data[3];
  6673. for (var i = 0; i < a.length; i++) {
  6674. this.worksStudent[i] = [];
  6675. this.worksTeacher[i] = [];
  6676. this.worksStudent2[i] = [];
  6677. if (
  6678. !this.isCloseList[i] ||
  6679. this.isCloseList[i].isClose == undefined
  6680. ) {
  6681. this.isCloseList[i] = { isClose: 0 };
  6682. }
  6683. this.groupStudent[i] = [];
  6684. this.groupStudentUid[i] = [];
  6685. this.isWorksS[i] = [];
  6686. this.checkJson[i] = [];
  6687. if (a[i].tool[0] == 49) {
  6688. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  6689. this.groupStudent[i][gA] = [];
  6690. this.groupStudentUid[i][gA] = [];
  6691. this.worksStudent[i][gA] = [];
  6692. this.isCloseList[i][gA] = [];
  6693. for (var g = 0; g < f.length; g++) {
  6694. if (
  6695. f[g].ttype == 2 &&
  6696. this.tcid &&
  6697. this.arrayToArray(f[g].classid.split(","), this.tcid.split(",")).length == 0
  6698. ) {
  6699. continue;
  6700. }
  6701. if (gA == f[g].group && f[g].tool == i) {
  6702. this.groupStudent[i][gA].push(f[g]);
  6703. this.groupStudentUid[i][gA].push(f[g].userid);
  6704. }
  6705. }
  6706. }
  6707. this.$forceUpdate();
  6708. }
  6709. for (var j = 0; j < b.length; j++) {
  6710. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  6711. continue;
  6712. }
  6713. var likesCount = 0;
  6714. var commentCount = 0;
  6715. var isLikes = false;
  6716. var commentJson = [];
  6717. var data = b[j];
  6718. if (i == b[j].tool) {
  6719. if (data.type == 2 && a[i].tool[0] == 4) {
  6720. // if(JSON.parse(data.content)[0].anwer){
  6721. var checkL = JSON.parse(data.content)[0].anwer.split(",");
  6722. for (var z = 0; z < checkL.length; z++) {
  6723. if (!this.checkJson[i][z]) {
  6724. this.checkJson[i].push({
  6725. checkCount: [],
  6726. checkPerson: [],
  6727. rightPerson: [],
  6728. });
  6729. }
  6730. if (!this.checkJson[i][z].checkCount.length) {
  6731. this.checkJson[i][z].checkCount = [];
  6732. let _askItemCount = JSON.parse(data.content)[0].askJson
  6733. .askJson[z].askItem;
  6734. for (var aic = 0; aic < _askItemCount; aic++) {
  6735. this.checkJson[i][z].checkCount.push(0);
  6736. }
  6737. }
  6738. if (
  6739. (JSON.parse(data.content)[0].askJson.askJson[z].answer ||
  6740. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  6741. 0) &&
  6742. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  6743. checkL[z]
  6744. ) {
  6745. this.checkJson[i][z].rightPerson.push(data.name);
  6746. }
  6747. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6748. ? this.checkJson[i][z].checkPerson[
  6749. parseInt(checkL[z])
  6750. ].push(data.name)
  6751. : (this.checkJson[i][z].checkPerson[parseInt(checkL[z])] =
  6752. [data.name]);
  6753. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6754. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  6755. : (this.checkJson[i][z].checkCount[
  6756. parseInt(checkL[z])
  6757. ] = 1);
  6758. // }
  6759. }
  6760. } else if (data.type == 8 && a[i].tool[0] == 45) {
  6761. var checkL = JSON.parse(data.content)[0].anwer;
  6762. for (var z = 0; z < checkL.length; z++) {
  6763. if (!this.checkJson[i][z]) {
  6764. this.checkJson[i].push({
  6765. checkCount: [],
  6766. checkPerson: [],
  6767. rightPerson: [],
  6768. });
  6769. }
  6770. if (!this.checkJson[i][z].checkCount.length) {
  6771. this.checkJson[i][z].checkCount = [];
  6772. let _askItemCount = JSON.parse(data.content)[0].testJson
  6773. .testJson[z].testItem;
  6774. console.log(_askItemCount);
  6775. for (var aic = 0; aic < _askItemCount; aic++) {
  6776. this.checkJson[i][z].checkCount.push(0);
  6777. }
  6778. }
  6779. if (checkL[z] instanceof Array) {
  6780. if (
  6781. JSON.parse(data.content)[0]
  6782. .testJson.testJson[z].answer.sort()
  6783. .join(",") == checkL[z].sort().join(",")
  6784. ) {
  6785. this.checkJson[i][z].rightPerson.push(data.name);
  6786. }
  6787. for (var q = 0; q < checkL[z].length; q++) {
  6788. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  6789. ? this.checkJson[i][z].checkPerson[
  6790. parseInt(checkL[z][q])
  6791. ].push(data.name)
  6792. : (this.checkJson[i][z].checkPerson[
  6793. parseInt(checkL[z][q])
  6794. ] = [data.name]);
  6795. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  6796. ? this.checkJson[i][z].checkCount[
  6797. parseInt(checkL[z][q])
  6798. ]++
  6799. : (this.checkJson[i][z].checkCount[
  6800. parseInt(checkL[z][q])
  6801. ] = 1);
  6802. }
  6803. } else {
  6804. if (
  6805. JSON.parse(data.content)[0].testJson.testJson[z]
  6806. .answer == checkL[z]
  6807. ) {
  6808. this.checkJson[i][z].rightPerson.push(data.name);
  6809. }
  6810. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  6811. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6812. ? this.checkJson[i][z].checkPerson[
  6813. parseInt(checkL[z])
  6814. ].push(data.name)
  6815. : (this.checkJson[i][z].checkPerson[
  6816. parseInt(checkL[z])
  6817. ] = [data.name]);
  6818. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6819. ? this.checkJson[i][z].checkCount[
  6820. parseInt(checkL[z])
  6821. ]++
  6822. : (this.checkJson[i][z].checkCount[
  6823. parseInt(checkL[z])
  6824. ] = 1);
  6825. }
  6826. }
  6827. }
  6828. } else if (data.type == 9 && a[i].tool[0] == 47) {
  6829. var checkL = JSON.parse(data.content);
  6830. for (var z = 0; z < checkL.length; z++) {
  6831. if (!this.checkJson[i][z]) {
  6832. this.checkJson[i].push({
  6833. checkCount: [],
  6834. checkPerson: [],
  6835. rightPerson: [],
  6836. });
  6837. }
  6838. this.checkJson[i][z].checkPerson.push(data.name);
  6839. if (
  6840. checkL[z].chooseSenList.toString() ==
  6841. checkL[z].rightAnswer.toString()
  6842. ) {
  6843. this.checkJson[i][z].rightPerson.push(data.name);
  6844. }
  6845. }
  6846. }
  6847. for (var k = 0; k < d.length; k++) {
  6848. //点赞
  6849. if (d[k].workId == b[j].id) {
  6850. likesCount++;
  6851. if (d[k].likesId == this.userid) {
  6852. isLikes = true;
  6853. }
  6854. }
  6855. }
  6856. for (var l = 0; l < e.length; l++) {
  6857. //评论
  6858. if (e[l].workId == b[j].id) {
  6859. if (e[l].comment != "") {
  6860. commentCount++;
  6861. commentJson.push({
  6862. commentText: e[l].comment,
  6863. commentTime: e[l].commentTime,
  6864. commentPeople: e[l].commentPeople,
  6865. userid: e[l].userid,
  6866. wid: e[l].id,
  6867. });
  6868. }
  6869. }
  6870. }
  6871. if (
  6872. (b[j].type == 1 ||
  6873. b[j].type == 4 ||
  6874. b[j].type == 5 ||
  6875. b[j].type == 6 ||
  6876. b[j].type == 12 ||
  6877. b[j].type == 7) &&
  6878. a[i].tool[0] != 15 &&
  6879. a[i].tool[0] != 4 &&
  6880. a[i].tool[0] != 45 &&
  6881. a[i].tool[0] != 50 &&
  6882. a[i].tool[0] != 32 &&
  6883. a[i].tool[0] != 57 &&
  6884. a[i].tool[0] != 52
  6885. ) {
  6886. if (
  6887. c.indexOf(
  6888. b[j].content
  6889. .split(".")
  6890. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6891. ) != -1 &&
  6892. a[i].tool[0] == 16 &&
  6893. b[j].atool != 50
  6894. ) {
  6895. let _works = {
  6896. userid: b[j].userid,
  6897. ateacher: b[j].ateacher,
  6898. wid: b[j].id,
  6899. works: b[j].content,
  6900. sName: b[j].name,
  6901. type: 1,
  6902. time: b[j].time,
  6903. score: b[j].score,
  6904. img: b[j].img,
  6905. likesCount: likesCount,
  6906. commentCount: commentCount,
  6907. isLikes: isLikes,
  6908. commentJson: commentJson,
  6909. }
  6910. if (b[j].ttype == 1) {
  6911. this.worksTeacher[i].push(_works);
  6912. } else {
  6913. this.worksStudent2[i].push(_works);
  6914. }
  6915. this.worksStudent[i].push(_works);
  6916. } else if (
  6917. y.indexOf(
  6918. b[j].content
  6919. .split(".")
  6920. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6921. ) != -1 &&
  6922. a[i].tool[0] == 16 &&
  6923. b[j].atool != 50
  6924. ) {
  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: 3,
  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 (b[j].ttype == 1) {
  6941. this.worksTeacher[i].push(_works);
  6942. } else {
  6943. this.worksStudent2[i].push(_works);
  6944. }
  6945. this.worksStudent[i].push(_works);
  6946. } else if (b[j].type == 6 && b[j].atool != 50) {
  6947. let _works = {
  6948. userid: b[j].userid,
  6949. ateacher: b[j].ateacher,
  6950. wid: b[j].id,
  6951. works: b[j].content,
  6952. sName: b[j].name,
  6953. type: 4,
  6954. time: b[j].time,
  6955. score: b[j].score,
  6956. img: b[j].img,
  6957. likesCount: likesCount,
  6958. commentCount: commentCount,
  6959. isLikes: isLikes,
  6960. commentJson: commentJson,
  6961. }
  6962. if (b[j].ttype == 1) {
  6963. this.worksTeacher[i].push(_works);
  6964. } else {
  6965. this.worksStudent2[i].push(_works);
  6966. }
  6967. this.worksStudent[i].push(_works);
  6968. } else if (b[j].type == 7 && b[j].atool != 50) {
  6969. let _works = {
  6970. userid: b[j].userid,
  6971. ateacher: b[j].ateacher,
  6972. wid: b[j].id,
  6973. works: b[j].content,
  6974. sName: b[j].name,
  6975. type: 5,
  6976. time: b[j].time,
  6977. score: b[j].score,
  6978. img: b[j].img,
  6979. likesCount: likesCount,
  6980. commentCount: commentCount,
  6981. isLikes: isLikes,
  6982. commentJson: commentJson,
  6983. }
  6984. if (b[j].ttype == 1) {
  6985. this.worksTeacher[i].push(_works);
  6986. } else {
  6987. this.worksStudent2[i].push(_works);
  6988. }
  6989. this.worksStudent[i].push(_works);
  6990. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  6991. let _works = {
  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: 12,
  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. if (b[j].ttype == 1) {
  7007. this.worksTeacher[i].push(_works);
  7008. } else {
  7009. this.worksStudent2[i].push(_works);
  7010. }
  7011. this.worksStudent[i].push(_works);
  7012. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  7013. let _works = {
  7014. userid: b[j].userid,
  7015. ateacher: b[j].ateacher,
  7016. wid: b[j].id,
  7017. works: b[j].content,
  7018. sName: b[j].name,
  7019. type: 0,
  7020. time: b[j].time,
  7021. score: b[j].score,
  7022. img: b[j].img,
  7023. likesCount: likesCount,
  7024. commentCount: commentCount,
  7025. isLikes: isLikes,
  7026. commentJson: commentJson,
  7027. }
  7028. if (b[j].ttype == 1) {
  7029. this.worksTeacher[i].push(_works);
  7030. } else {
  7031. this.worksStudent2[i].push(_works);
  7032. }
  7033. this.worksStudent[i].push(_works);
  7034. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  7035. let _works = {
  7036. userid: b[j].userid,
  7037. ateacher: b[j].ateacher,
  7038. wid: b[j].id,
  7039. works: b[j].content,
  7040. sName: b[j].name,
  7041. type: 0,
  7042. time: b[j].time,
  7043. score: b[j].score,
  7044. img: b[j].img,
  7045. likesCount: likesCount,
  7046. commentCount: commentCount,
  7047. isLikes: isLikes,
  7048. commentJson: commentJson,
  7049. }
  7050. if (b[j].ttype == 1) {
  7051. this.worksTeacher[i].push(_works);
  7052. } else {
  7053. this.worksStudent2[i].push(_works);
  7054. }
  7055. this.worksStudent[i].push(_works);
  7056. }
  7057. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  7058. let _works = {
  7059. userid: b[j].userid,
  7060. ateacher: b[j].ateacher,
  7061. wid: b[j].id,
  7062. works: b[j].content,
  7063. sName: b[j].name,
  7064. type: 2,
  7065. time: b[j].time,
  7066. score: b[j].score,
  7067. img: b[j].img,
  7068. likesCount: likesCount,
  7069. commentCount: commentCount,
  7070. isLikes: isLikes,
  7071. commentJson: commentJson,
  7072. }
  7073. if (b[j].ttype == 1) {
  7074. this.worksTeacher[i].push(_works);
  7075. } else {
  7076. this.worksStudent2[i].push(_works);
  7077. }
  7078. this.worksStudent[i].push(_works);
  7079. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  7080. //问卷
  7081. let _works = {
  7082. userid: b[j].userid,
  7083. ateacher: b[j].ateacher,
  7084. wid: b[j].id,
  7085. works: b[j].content,
  7086. sName: b[j].name,
  7087. type: 2,
  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. if (b[j].ttype == 1) {
  7097. this.worksTeacher[i].push(_works);
  7098. } else {
  7099. this.worksStudent2[i].push(_works);
  7100. }
  7101. this.worksStudent[i].push(_works);
  7102. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  7103. //选择题
  7104. let _works = {
  7105. userid: b[j].userid,
  7106. ateacher: b[j].ateacher,
  7107. wid: b[j].id,
  7108. works: b[j].content,
  7109. sName: b[j].name,
  7110. type: 8,
  7111. time: b[j].time,
  7112. score: b[j].score,
  7113. img: b[j].img,
  7114. likesCount: likesCount,
  7115. commentCount: commentCount,
  7116. isLikes: isLikes,
  7117. commentJson: commentJson,
  7118. }
  7119. if (b[j].ttype == 1) {
  7120. this.worksTeacher[i].push(_works);
  7121. } else {
  7122. this.worksStudent2[i].push(_works);
  7123. }
  7124. this.worksStudent[i].push(_works);
  7125. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  7126. //选择题
  7127. let _works = {
  7128. userid: b[j].userid,
  7129. ateacher: b[j].ateacher,
  7130. wid: b[j].id,
  7131. works: b[j].content,
  7132. sName: b[j].name,
  7133. type: 9,
  7134. time: b[j].time,
  7135. score: b[j].score,
  7136. img: b[j].img,
  7137. likesCount: likesCount,
  7138. commentCount: commentCount,
  7139. isLikes: isLikes,
  7140. commentJson: commentJson,
  7141. }
  7142. if (b[j].ttype == 1) {
  7143. this.worksTeacher[i].push(_works);
  7144. } else {
  7145. this.worksStudent2[i].push(_works);
  7146. }
  7147. this.worksStudent[i].push(_works);
  7148. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  7149. //选择题
  7150. let _works = {
  7151. userid: b[j].userid,
  7152. ateacher: b[j].ateacher,
  7153. wid: b[j].id,
  7154. works: b[j].content,
  7155. sName: b[j].name,
  7156. type: 10,
  7157. time: b[j].time,
  7158. score: b[j].score,
  7159. img: b[j].img,
  7160. likesCount: likesCount,
  7161. commentCount: commentCount,
  7162. isLikes: isLikes,
  7163. commentJson: commentJson,
  7164. }
  7165. if (b[j].ttype == 1) {
  7166. this.worksTeacher[i].push(_works);
  7167. } else {
  7168. this.worksStudent2[i].push(_works);
  7169. }
  7170. this.worksStudent[i].push(_works);
  7171. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  7172. //选择题
  7173. let _works = {
  7174. userid: b[j].userid,
  7175. ateacher: b[j].ateacher,
  7176. wid: b[j].id,
  7177. works: b[j].content,
  7178. sName: b[j].name,
  7179. type: 13,
  7180. time: b[j].time,
  7181. score: b[j].score,
  7182. img: b[j].img,
  7183. likesCount: likesCount,
  7184. commentCount: commentCount,
  7185. isLikes: isLikes,
  7186. commentJson: commentJson,
  7187. }
  7188. if (b[j].ttype == 1) {
  7189. this.worksTeacher[i].push(_works);
  7190. } else {
  7191. this.worksStudent2[i].push(_works);
  7192. }
  7193. this.worksStudent[i].push(_works);
  7194. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  7195. let _gindex = JSON.parse(b[j].content);
  7196. if (
  7197. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  7198. b[j].userid
  7199. ) != -1
  7200. ) {
  7201. this.worksStudent[i][_gindex.groupIndex].push({
  7202. userid: b[j].userid,
  7203. ateacher: b[j].ateacher,
  7204. wid: b[j].id,
  7205. works: _gindex.url,
  7206. sName: b[j].name,
  7207. type: _gindex.type,
  7208. time: b[j].time,
  7209. score: b[j].score,
  7210. img: b[j].img,
  7211. likesCount: likesCount,
  7212. commentCount: commentCount,
  7213. isLikes: isLikes,
  7214. commentJson: commentJson,
  7215. });
  7216. }
  7217. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  7218. let _works = {
  7219. userid: b[j].userid,
  7220. ateacher: b[j].ateacher,
  7221. wid: b[j].id,
  7222. works: b[j].content,
  7223. sName: b[j].name ? b[j].name : b[j].userid,
  7224. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  7225. time: b[j].time,
  7226. score: b[j].score,
  7227. img: b[j].img,
  7228. likesCount: likesCount,
  7229. commentCount: commentCount,
  7230. isLikes: isLikes,
  7231. commentJson: commentJson,
  7232. }
  7233. if (b[j].ttype == 1) {
  7234. this.worksTeacher[i].push(_works);
  7235. } else {
  7236. this.worksStudent2[i].push(_works);
  7237. }
  7238. this.worksStudent[i].push(_works);
  7239. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  7240. let _works = {
  7241. userid: b[j].userid,
  7242. ateacher: b[j].ateacher,
  7243. wid: b[j].id,
  7244. works: b[j].content,
  7245. sName: b[j].name ? b[j].name : b[j].userid,
  7246. type: 12,
  7247. time: b[j].time,
  7248. score: b[j].score,
  7249. img: b[j].img,
  7250. likesCount: likesCount,
  7251. commentCount: commentCount,
  7252. isLikes: isLikes,
  7253. commentJson: commentJson,
  7254. }
  7255. if (b[j].ttype == 1) {
  7256. this.worksTeacher[i].push(_works);
  7257. } else {
  7258. this.worksStudent2[i].push(_works);
  7259. }
  7260. this.worksStudent[i].push(_works);
  7261. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  7262. let _works = {
  7263. userid: b[j].userid,
  7264. ateacher: b[j].ateacher,
  7265. wid: b[j].id,
  7266. works: b[j].content,
  7267. sName: b[j].name ? b[j].name : b[j].userid,
  7268. type: 12,
  7269. time: b[j].time,
  7270. score: b[j].score,
  7271. img: b[j].img,
  7272. likesCount: likesCount,
  7273. commentCount: commentCount,
  7274. isLikes: isLikes,
  7275. commentJson: commentJson,
  7276. }
  7277. if (b[j].ttype == 1) {
  7278. this.worksTeacher[i].push(_works);
  7279. } else {
  7280. this.worksStudent2[i].push(_works);
  7281. }
  7282. this.worksStudent[i].push(_works);
  7283. }
  7284. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7285. }
  7286. }
  7287. if (this.worksStudent[i] && this.worksStudent[i].length) {
  7288. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  7289. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7290. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7291. var scoreA = parseFloat(jscoreA);
  7292. var scoreB = parseFloat(jscoreB);
  7293. if (scoreA == scoreB) {
  7294. return b.likesCount - a.likesCount;
  7295. }
  7296. return scoreB - scoreA;
  7297. });
  7298. }
  7299. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  7300. this.worksStudent2[i] = this.worksStudent2[i].sort(function (a, b) {
  7301. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7302. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7303. var scoreA = parseFloat(jscoreA);
  7304. var scoreB = parseFloat(jscoreB);
  7305. if (scoreA == scoreB) {
  7306. return b.likesCount - a.likesCount;
  7307. }
  7308. return scoreB - scoreA;
  7309. });
  7310. }
  7311. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  7312. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  7313. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7314. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7315. var scoreA = parseFloat(jscoreA);
  7316. var scoreB = parseFloat(jscoreB);
  7317. if (scoreA == scoreB) {
  7318. return b.likesCount - a.likesCount;
  7319. }
  7320. return scoreB - scoreA;
  7321. });
  7322. }
  7323. }
  7324. for (var i = 0; i < a.length; i++) {
  7325. for (var j = 0; j < b.length; j++) {
  7326. var data = b[j];
  7327. if (i == b[j].tool) {
  7328. if (data.type == 2 || data.type == 8) {
  7329. for (var z = 0; z < this.checkJson[i].length; z++) {
  7330. this.checkJson[i][z].checkPerent = [];
  7331. this.checkJson[i][z].right = Math.round(
  7332. (this.checkJson[i][z].rightPerson.length /
  7333. parseInt(this.worksStudent[i].length)) *
  7334. 100
  7335. );
  7336. let aaaa = this.checkJson[i][z];
  7337. console.log(aaaa);
  7338. for (
  7339. var k = 0;
  7340. k < this.checkJson[i][z].checkCount.length;
  7341. k++
  7342. ) {
  7343. this.checkJson[i][z].checkPerent.push(
  7344. Math.round(
  7345. (this.checkJson[i][z].checkCount[k] /
  7346. parseInt(this.worksStudent[i].length)) *
  7347. 100
  7348. )
  7349. );
  7350. }
  7351. }
  7352. } else if (data.type == 9) {
  7353. for (var z = 0; z < this.checkJson[i].length; z++) {
  7354. this.checkJson[i][z].checkPerent = [];
  7355. this.checkJson[i][z].right = Math.round(
  7356. (this.checkJson[i][z].rightPerson.length /
  7357. this.checkJson[i][z].checkPerson.length) *
  7358. 100
  7359. );
  7360. }
  7361. }
  7362. }
  7363. }
  7364. }
  7365. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  7366. this.joinGroup(gindex);
  7367. }
  7368. this.selectWorksStudent();
  7369. })
  7370. .catch((err) => {
  7371. console.error(err);
  7372. });
  7373. },
  7374. pngToWhiteBg(file) {
  7375. const _file = file;
  7376. let read = new FileReader();
  7377. read.readAsDataURL(file); // 文件转base64
  7378. return new Promise((resolve, reject) => {
  7379. read.onload = (e) => {
  7380. let img = new Image();
  7381. img.src = e.target.result;
  7382. img.onload = async () => {
  7383. // 生成canvas
  7384. let canvas = document.createElement("canvas");
  7385. let context = canvas.getContext("2d");
  7386. // 绘制图片到canvas上
  7387. canvas.width = img.width;
  7388. canvas.height = img.height;
  7389. // 在canvas绘制前填充白色背景
  7390. context.fillStyle = "#fff";
  7391. context.fillRect(0, 0, canvas.width, canvas.height);
  7392. context.drawImage(img, 0, 0);
  7393. let base64 = canvas.toDataURL(file["type"], 1);
  7394. let newFile = this.dataUrlToFile(base64, _file);
  7395. resolve(newFile);
  7396. };
  7397. };
  7398. });
  7399. },
  7400. dataUrlToFile(dataurl, file) {
  7401. let arr = dataurl.split(","),
  7402. mime = arr[0].match(/:(.*?);/)[1],
  7403. bstr = atob(arr[1]),
  7404. n = bstr.length,
  7405. u8arr = new Uint8Array(n);
  7406. while (n--) {
  7407. u8arr[n] = bstr.charCodeAt(n);
  7408. }
  7409. // return new Blob([u8arr], { type: mime });
  7410. return new File([new Blob([u8arr], { type: mime })], file.name, {
  7411. type: mime,
  7412. });
  7413. },
  7414. async beforeUpload1(event, type, i) {
  7415. // this.$message.success('进入上传')
  7416. var file = "";
  7417. if (type == 5) {
  7418. file = event;
  7419. } else {
  7420. file = event.target.files[0];
  7421. }
  7422. var credentials = {
  7423. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7424. secretAccessKey: "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",
  7425. }; //秘钥形式的登录上传
  7426. window.AWS.config.update(credentials);
  7427. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7428. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7429. var _this = this;
  7430. _this.progress = 0;
  7431. _this.proVisible = true;
  7432. _this.isFinishSize = 0;
  7433. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7434. var b = [
  7435. "DOC",
  7436. "DOCX",
  7437. "DOCM",
  7438. "DOTM",
  7439. "DOTX",
  7440. "PPTX",
  7441. "PPSX",
  7442. "PPT",
  7443. "PPS",
  7444. "PPTM",
  7445. "POTM",
  7446. "PPAM",
  7447. "POTX",
  7448. "PPSM",
  7449. ];
  7450. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7451. var photoA = [
  7452. "BMP",
  7453. "GIF",
  7454. "PNG",
  7455. "JPGE",
  7456. "JPG",
  7457. "TIF",
  7458. "PCX",
  7459. "TGA",
  7460. "EXIF",
  7461. "FPX",
  7462. "SVG",
  7463. "APNG",
  7464. ];
  7465. // if (
  7466. // b.indexOf(
  7467. // file.name
  7468. // .split(".")
  7469. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7470. // ) != -1
  7471. // ) {
  7472. // if (file.size / 1024 / 1024 > 10) {
  7473. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  7474. // return;
  7475. // }
  7476. // } else if (
  7477. // excelA.indexOf(
  7478. // file.name
  7479. // .split(".")
  7480. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7481. // ) != "-1"
  7482. // ) {
  7483. // if (file.size / 1024 / 1024 > 5) {
  7484. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  7485. // return;
  7486. // }
  7487. // }
  7488. if (
  7489. photoA.indexOf(
  7490. file.name
  7491. .split(".")
  7492. [file.name.split(".").length - 1].toLocaleUpperCase()
  7493. ) != -1 &&
  7494. type != 4
  7495. ) {
  7496. // const blob = await imageConversion.compress(file, 0.8)
  7497. file = await this.pngToWhiteBg(file);
  7498. const blob = await imageConversion.compressAccurately(file, 256);
  7499. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7500. file = new File([blob], file.name, { type: file.type });
  7501. }
  7502. if (file) {
  7503. var params = {
  7504. Key:
  7505. file.name.split(".")[0] +
  7506. new Date().getTime() +
  7507. "." +
  7508. file.name.split(".")[file.name.split(".").length - 1],
  7509. ContentType: file.type,
  7510. Body: file,
  7511. "Access-Control-Allow-Credentials": "*",
  7512. ACL: "public-read",
  7513. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7514. var options = {
  7515. // partSize: 2048 * 1024 * 1024,
  7516. partSize: 1024 * 1024 * 1024,
  7517. queueSize: 2,
  7518. leavePartsOnError: true,
  7519. };
  7520. bucket
  7521. .upload(params, options)
  7522. .on("httpUploadProgress", function (evt) {
  7523. //这里可以写进度条
  7524. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7525. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  7526. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7527. })
  7528. .send(function (err, data) {
  7529. _this.progress = 100;
  7530. _this.isFinishSize = _this.isAllSize;
  7531. setTimeout(() => {
  7532. _this.proVisible = false;
  7533. }, 1000);
  7534. if (err) {
  7535. var a = _this.$refs.upload1.uploadFiles;
  7536. a.splice(a.length - 1, a.length);
  7537. _this.$message.error("上传失败");
  7538. } else {
  7539. // _this.$message.success('上传成功')
  7540. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7541. var c = [
  7542. "AVI",
  7543. "NAVI",
  7544. "MPEG",
  7545. "ASF",
  7546. "MOV",
  7547. "WMV",
  7548. "3GP",
  7549. "RM",
  7550. "RMVB",
  7551. "FLV",
  7552. "F4V",
  7553. "H.264",
  7554. "H.265",
  7555. "REAL VIDEO",
  7556. "MKV",
  7557. "WebM",
  7558. "HDDVD",
  7559. "MP4",
  7560. "MPG",
  7561. "M4V",
  7562. "MGV",
  7563. "OGV",
  7564. "QTM",
  7565. "STR",
  7566. "AMC",
  7567. "DVX",
  7568. "EVO",
  7569. "DAT",
  7570. "OGG",
  7571. "OGM",
  7572. ];
  7573. if (type == 1) {
  7574. _this.studyJuri[0].cover.push({
  7575. name: file.name,
  7576. url: data.Location,
  7577. uid: file.uid,
  7578. });
  7579. if (
  7580. c.indexOf(
  7581. _this.studyJuri[0].cover[0].url
  7582. .split(".")
  7583. [
  7584. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7585. ].toLocaleUpperCase()
  7586. ) != -1
  7587. ) {
  7588. _this.fileType = 2;
  7589. } else if (
  7590. b.indexOf(
  7591. _this.studyJuri[0].cover[0].url
  7592. .split(".")
  7593. [
  7594. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7595. ].toLocaleUpperCase()
  7596. ) != -1
  7597. ) {
  7598. _this.fileType = 1;
  7599. } else if (photoA.indexOf(
  7600. _this.studyJuri[0].cover[0].url
  7601. .split(".")
  7602. [
  7603. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7604. ].toLocaleUpperCase()
  7605. ) != -1) {
  7606. _this.fileType = 0;
  7607. } else {
  7608. _this.fileType = 3;
  7609. }
  7610. _this.imgChange(null, null, type);
  7611. } else if (type == 2) {
  7612. _this.upToolImg = data.Location;
  7613. _this.imgChange(null, null, type);
  7614. _this.addCourseWorks(i);
  7615. } else if (type == 4) {
  7616. _this.addPz("3", data.Location);
  7617. } else if (type == 5) {
  7618. _this.addImgDrawImG(data.Location);
  7619. } else if (type == 6) {
  7620. var _ftype = 1;
  7621. if (
  7622. c.indexOf(
  7623. data.Location.split(".")[
  7624. data.Location.split(".").length - 1
  7625. ].toLocaleUpperCase()
  7626. ) != -1
  7627. ) {
  7628. _ftype = 5;
  7629. } else if (
  7630. b.indexOf(
  7631. data.Location.split(".")[
  7632. data.Location.split(".").length - 1
  7633. ].toLocaleUpperCase()
  7634. ) != -1
  7635. ) {
  7636. _ftype = 4;
  7637. } else {
  7638. _ftype = 1;
  7639. }
  7640. _this.plworkFile.push({
  7641. name: file.name,
  7642. url: data.Location,
  7643. uid: file.uid,
  7644. fileType: _ftype,
  7645. username:
  7646. _this.plworkFile.length + 1 > 10
  7647. ? _this.plworkFile.length + 1
  7648. : "0" + (_this.plworkFile.length + 1),
  7649. });
  7650. } else if (type == 7) {
  7651. _this.addCourseWorksGong(i, data.Location, 32);
  7652. } else if (type == 8) {
  7653. _this.addCourseWorksGong(i, data.Location, 57);
  7654. }
  7655. _this.imgChange(null, null, type);
  7656. console.log(data.Location);
  7657. // _this.$message.success('上传成功'+data.Location)
  7658. }
  7659. });
  7660. }
  7661. },
  7662. async beforeUpload3(event, type, i) {
  7663. // this.$message.success('进入上传')
  7664. let file = "";
  7665. let cfindex2 = 0;
  7666. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  7667. file = event.target.files[cfindex];
  7668. var credentials = {
  7669. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7670. secretAccessKey: "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",
  7671. }; //秘钥形式的登录上传
  7672. window.AWS.config.update(credentials);
  7673. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7674. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7675. var _this = this;
  7676. // _this.progress = 0;
  7677. _this.proVisible2 = true;
  7678. var b = [
  7679. "DOC",
  7680. "DOCX",
  7681. "DOCM",
  7682. "DOTM",
  7683. "DOTX",
  7684. "PPTX",
  7685. "PPSX",
  7686. "PPT",
  7687. "PPS",
  7688. "PPTM",
  7689. "POTM",
  7690. "PPAM",
  7691. "POTX",
  7692. "PPSM",
  7693. ];
  7694. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7695. var photoA = [
  7696. "BMP",
  7697. "GIF",
  7698. "PNG",
  7699. "JPGE",
  7700. "JPG",
  7701. "TIF",
  7702. "PCX",
  7703. "TGA",
  7704. "EXIF",
  7705. "FPX",
  7706. "SVG",
  7707. "APNG",
  7708. ];
  7709. if (
  7710. photoA.indexOf(
  7711. file.name
  7712. .split(".")
  7713. [file.name.split(".").length - 1].toLocaleUpperCase()
  7714. ) != -1 &&
  7715. type != 4
  7716. ) {
  7717. // const blob = await imageConversion.compress(file, 0.8)
  7718. file = await this.pngToWhiteBg(file);
  7719. const blob = await imageConversion.compressAccurately(file, 256);
  7720. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7721. file = new File([blob], file.name, { type: file.type });
  7722. }
  7723. if (file) {
  7724. var params = {
  7725. Key:
  7726. file.name.split(".")[0] +
  7727. new Date().getTime() +
  7728. "." +
  7729. file.name.split(".")[file.name.split(".").length - 1],
  7730. ContentType: file.type,
  7731. Body: file,
  7732. "Access-Control-Allow-Credentials": "*",
  7733. ACL: "public-read",
  7734. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7735. var options = {
  7736. // partSize: 2048 * 1024 * 1024,
  7737. partSize: 1024 * 1024 * 1024,
  7738. queueSize: 2,
  7739. leavePartsOnError: true,
  7740. };
  7741. bucket
  7742. .upload(params, options)
  7743. .on("httpUploadProgress", function (evt) {
  7744. //这里可以写进度条
  7745. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7746. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7747. })
  7748. .send(function (err, data) {
  7749. // _this.progress = 100;
  7750. cfindex2++;
  7751. setTimeout(() => {
  7752. if (
  7753. cfindex2 == event.target.files.length - 1 ||
  7754. cfindex2 > event.target.files.length - 1
  7755. ) {
  7756. _this.proVisible2 = false;
  7757. }
  7758. }, 1000);
  7759. if (err) {
  7760. var a = _this.$refs.upload1.uploadFiles;
  7761. a.splice(a.length - 1, a.length);
  7762. _this.$message.error("上传失败");
  7763. } else {
  7764. // _this.$message.success('上传成功')
  7765. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7766. var c = [
  7767. "AVI",
  7768. "NAVI",
  7769. "MPEG",
  7770. "ASF",
  7771. "MOV",
  7772. "WMV",
  7773. "3GP",
  7774. "RM",
  7775. "RMVB",
  7776. "FLV",
  7777. "F4V",
  7778. "H.264",
  7779. "H.265",
  7780. "REAL VIDEO",
  7781. "MKV",
  7782. "WebM",
  7783. "HDDVD",
  7784. "MP4",
  7785. "MPG",
  7786. "M4V",
  7787. "MGV",
  7788. "OGV",
  7789. "QTM",
  7790. "STR",
  7791. "AMC",
  7792. "DVX",
  7793. "EVO",
  7794. "DAT",
  7795. "OGG",
  7796. "OGM",
  7797. ];
  7798. if (type == 1) {
  7799. _this.studyJuri[0].cover.push({
  7800. name: file.name,
  7801. url: data.Location,
  7802. uid: file.uid,
  7803. });
  7804. if (
  7805. c.indexOf(
  7806. _this.studyJuri[0].cover[0].url
  7807. .split(".")
  7808. [
  7809. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7810. ].toLocaleUpperCase()
  7811. ) != -1
  7812. ) {
  7813. _this.fileType = 2;
  7814. } else if (
  7815. b.indexOf(
  7816. _this.studyJuri[0].cover[0].url
  7817. .split(".")
  7818. [
  7819. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7820. ].toLocaleUpperCase()
  7821. ) != -1
  7822. ) {
  7823. _this.fileType = 1;
  7824. } else {
  7825. _this.fileType = 0;
  7826. }
  7827. _this.imgChange(null, null, type);
  7828. } else if (type == 2) {
  7829. _this.upToolImg = data.Location;
  7830. _this.imgChange(null, null, type);
  7831. _this.addCourseWorks(i);
  7832. } else if (type == 4) {
  7833. _this.addPz("3", data.Location);
  7834. } else if (type == 5) {
  7835. _this.addImgDrawImG(data.Location);
  7836. } else if (type == 6) {
  7837. var _ftype = 1;
  7838. if (
  7839. c.indexOf(
  7840. data.Location.split(".")[
  7841. data.Location.split(".").length - 1
  7842. ].toLocaleUpperCase()
  7843. ) != -1
  7844. ) {
  7845. _ftype = 5;
  7846. } else if (
  7847. b.indexOf(
  7848. data.Location.split(".")[
  7849. data.Location.split(".").length - 1
  7850. ].toLocaleUpperCase()
  7851. ) != -1
  7852. ) {
  7853. _ftype = 4;
  7854. } else {
  7855. _ftype = 1;
  7856. }
  7857. _this.plworkFile.push({
  7858. name: file.name,
  7859. url: data.Location,
  7860. uid: file.uid,
  7861. fileType: _ftype,
  7862. username:
  7863. _this.plworkFile.length + 1 > 10
  7864. ? _this.plworkFile.length + 1
  7865. : "0" + (_this.plworkFile.length + 1),
  7866. });
  7867. }
  7868. _this.imgChange(null, null, type);
  7869. console.log(data.Location);
  7870. // _this.$message.success('上传成功'+data.Location)
  7871. }
  7872. });
  7873. }
  7874. }
  7875. },
  7876. beforeUpload2(event, type) {
  7877. var file = event.target.files[0];
  7878. var credentials = {
  7879. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7880. secretAccessKey: "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",
  7881. }; //秘钥形式的登录上传
  7882. window.AWS.config.update(credentials);
  7883. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7884. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7885. var _this = this;
  7886. _this.progress = 0;
  7887. _this.proVisible = true;
  7888. if (file) {
  7889. var params = {
  7890. Key:
  7891. file.name.split(".")[0] +
  7892. new Date().getTime() +
  7893. "." +
  7894. file.name.split(".")[file.name.split(".").length - 1],
  7895. ContentType: file.type,
  7896. Body: file,
  7897. "Access-Control-Allow-Credentials": "*",
  7898. ACL: "public-read",
  7899. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7900. var options = {
  7901. partSize: 2048 * 1024 * 1024,
  7902. queueSize: 2,
  7903. leavePartsOnError: true,
  7904. };
  7905. bucket
  7906. .upload(params, options)
  7907. .on("httpUploadProgress", function (evt) {
  7908. //这里可以写进度条
  7909. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7910. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7911. })
  7912. .send(function (err, data) {
  7913. _this.progress = 100;
  7914. setTimeout(() => {
  7915. _this.proVisible = false;
  7916. }, 1000);
  7917. if (err) {
  7918. var a = _this.$refs.upload1.uploadFiles;
  7919. a.splice(a.length - 1, a.length);
  7920. _this.$message.error("上传失败");
  7921. } else {
  7922. if (type == 2) {
  7923. _this.studyJuri[0].upVedio.push({
  7924. name: file.name,
  7925. url: data.Location,
  7926. uid: file.uid,
  7927. });
  7928. _this.imgChange(null, null, type);
  7929. } else if (type == 3) {
  7930. _this.studyJuri[0].upFile.push({
  7931. name: file.name,
  7932. url: data.Location,
  7933. uid: file.uid,
  7934. });
  7935. _this.imgChange(null, null, type);
  7936. }
  7937. console.log(data.Location);
  7938. }
  7939. });
  7940. }
  7941. },
  7942. allScrell() {
  7943. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  7944. },
  7945. nextToolindex(type) {
  7946. if (type == 'last') {
  7947. if (this.toolIndex == 0) {
  7948. this.$message.error("已经是第一个步骤")
  7949. return;
  7950. }
  7951. this.toolIndex = this.toolIndex - 1
  7952. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7953. } else if (type == 'next') {
  7954. if (this.toolIndex == this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length - 1) {
  7955. this.$message.error("已经是最后一个步骤")
  7956. return;
  7957. }
  7958. this.toolIndex = this.toolIndex + 1
  7959. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7960. }
  7961. this.$forceUpdate();
  7962. },
  7963. nextOrpreSteps(t) {
  7964. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  7965. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  7966. return;
  7967. }
  7968. var b = this.chapInfoList.length - 1;
  7969. if (t == 0) {
  7970. if (this.courseType == 0) {
  7971. if (this.taskCount == 0) {
  7972. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  7973. if (this.IsLookOpen) {
  7974. if (
  7975. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  7976. ) {
  7977. if (
  7978. this.courseDetail.userid != this.userid &&
  7979. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  7980. ) {
  7981. this.$message.error("任务未解锁");
  7982. } else {
  7983. this.$message.error("上一任务未解锁");
  7984. }
  7985. return;
  7986. }
  7987. }
  7988. this.navList[this.courseType].isOpen = false;
  7989. this.courseType = b;
  7990. this.taskCount =
  7991. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7992. .length - 1;
  7993. this.navList[this.courseType].isOpen = true;
  7994. } else {
  7995. this.taskCount--;
  7996. }
  7997. } else {
  7998. if (this.taskCount == 0) {
  7999. this.navList[this.courseType].isOpen = false;
  8000. this.courseType--;
  8001. this.taskCount =
  8002. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  8003. .length - 1;
  8004. this.navList[this.courseType].isOpen = true;
  8005. } else {
  8006. this.taskCount--;
  8007. }
  8008. }
  8009. } else {
  8010. if (this.courseType == b) {
  8011. if (
  8012. this.taskCount ==
  8013. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  8014. 1
  8015. ) {
  8016. this.navList[this.courseType].isOpen = false;
  8017. this.courseType = 0;
  8018. this.taskCount = 0;
  8019. this.navList[this.courseType].isOpen = true;
  8020. } else {
  8021. var bbb = parseInt(this.taskCount) + 1;
  8022. if (
  8023. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  8024. .isLook &&
  8025. this.courseDetail.userid != this.userid &&
  8026. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8027. this.IsLookOpen
  8028. ) {
  8029. this.$message.error("任务未解锁");
  8030. return;
  8031. }
  8032. this.taskCount++;
  8033. if (this.IsLookOpen) {
  8034. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8035. this.taskCount
  8036. ].isLook = true;
  8037. this.addCourseState(3);
  8038. }
  8039. }
  8040. } else {
  8041. if (
  8042. this.taskCount ==
  8043. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  8044. 1
  8045. ) {
  8046. var bbb = parseInt(this.courseType) + 1;
  8047. if (
  8048. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  8049. this.courseDetail.userid != this.userid &&
  8050. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8051. this.IsLookOpen
  8052. ) {
  8053. this.$message.error("任务未解锁");
  8054. return;
  8055. }
  8056. this.navList[this.courseType].isOpen = false;
  8057. this.courseType++;
  8058. this.taskCount = 0;
  8059. this.navList[this.courseType].isOpen = true;
  8060. } else {
  8061. var bbb = parseInt(this.taskCount) + 1;
  8062. if (
  8063. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  8064. .isLook &&
  8065. this.courseDetail.userid != this.userid &&
  8066. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8067. this.IsLookOpen
  8068. ) {
  8069. this.$message.error("任务未解锁");
  8070. return;
  8071. }
  8072. this.taskCount++;
  8073. }
  8074. if (this.IsLookOpen) {
  8075. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8076. this.taskCount
  8077. ].isLook = true;
  8078. this.addCourseState(3);
  8079. }
  8080. }
  8081. }
  8082. document.scrollingElement.scrollTop = 0;
  8083. this.showType = 0;
  8084. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8085. this.toolIndex = null
  8086. this.isNoHomeWork = false;
  8087. (this.studyJuri = [
  8088. {
  8089. content: "",
  8090. cover: [],
  8091. upVedio: [],
  8092. upFile: [],
  8093. },
  8094. ]),
  8095. (this.radio = []);
  8096. this.isClickNav = "";
  8097. this.selectPz();
  8098. this.getHomeWork();
  8099. this.getCourseDetail();
  8100. this.$forceUpdate();
  8101. },
  8102. openTask(s, n, i) {
  8103. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8104. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8105. return;
  8106. }
  8107. if (this.IsLookOpen) {
  8108. if (
  8109. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  8110. this.courseDetail.userid != this.userid &&
  8111. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  8112. ) {
  8113. this.$message.error("任务未解锁");
  8114. return;
  8115. }
  8116. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  8117. if (
  8118. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  8119. .isLook
  8120. ) {
  8121. this.$message.error("上一任务未解锁");
  8122. return;
  8123. }
  8124. } else if (s > this.courseType) {
  8125. if (n > 0) {
  8126. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  8127. this.$message.error("上一任务未解锁");
  8128. return;
  8129. }
  8130. } else {
  8131. if (
  8132. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  8133. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  8134. ].isLook
  8135. ) {
  8136. this.$message.error("上一任务未解锁");
  8137. return;
  8138. }
  8139. }
  8140. }
  8141. }
  8142. this.courseType = s;
  8143. this.navId = i;
  8144. this.taskCount = n;
  8145. if (this.IsLookOpen) {
  8146. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8147. this.taskCount
  8148. ].isLook = true;
  8149. this.addCourseState(3);
  8150. }
  8151. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  8152. this.isCloseList[ci].isClose = 0;
  8153. }
  8154. this.showType = 0;
  8155. this.isNoHomeWork = false;
  8156. (this.studyJuri = [
  8157. {
  8158. content: "",
  8159. cover: [],
  8160. upVedio: [],
  8161. upFile: [],
  8162. },
  8163. ]),
  8164. (this.radio = []);
  8165. document.scrollingElement.scrollTop = 0;
  8166. this.toolIndex = null
  8167. // setTimeout(() => {
  8168. // let a = document.getElementById(i);
  8169. // if (a.offsetTop - 110 == 0) {
  8170. // window.scrollTo(0, 0);
  8171. // } else {
  8172. // window.scrollTo(0, a.offsetTop);
  8173. // }
  8174. // }, 0);
  8175. this.selectPz();
  8176. this.getHomeWork();
  8177. this.getCourseDetail();
  8178. },
  8179. get(i) {
  8180. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8181. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8182. return;
  8183. }
  8184. this.navList[i].isOpen = !this.navList[i].isOpen;
  8185. },
  8186. addQuestion() {
  8187. this.answerList.push({
  8188. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8189. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8190. });
  8191. let params = [
  8192. {
  8193. uid: this.userid,
  8194. cid: this.id,
  8195. stage: this.courseType,
  8196. task: this.taskCount,
  8197. tool: this.toolindex,
  8198. content: JSON.stringify(this.answerList),
  8199. type: 3,
  8200. },
  8201. ];
  8202. this.ajax
  8203. .post(this.$store.state.api + "addCourseWorks", params)
  8204. .then((res) => {
  8205. this.$message({
  8206. message: "提交成功",
  8207. type: "success",
  8208. });
  8209. this.answerList = [];
  8210. this.questionAnswer = ""
  8211. this.answerDialogVisible = false;
  8212. this.selectStudent();
  8213. this.selectSWorks();
  8214. this.selectSLook();
  8215. })
  8216. .catch((err) => {
  8217. this.$message.error("提交失败");
  8218. console.error(err);
  8219. });
  8220. },
  8221. addQuestionTeacher() {
  8222. this.answerList.push({
  8223. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8224. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8225. });
  8226. let params = [
  8227. {
  8228. uid: this.sStudent.userid,
  8229. cid: this.id,
  8230. stage: this.courseType,
  8231. task: this.taskCount,
  8232. tool: this.toolindex,
  8233. content: JSON.stringify(this.answerList),
  8234. type: 3,
  8235. ateacher: this.userid,
  8236. },
  8237. ];
  8238. this.ajax
  8239. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  8240. .then((res) => {
  8241. this.$message({
  8242. message: "提交成功",
  8243. type: "success",
  8244. });
  8245. this.answerList = [];
  8246. this.questionAnswer = ""
  8247. this.answerDialogVisibleTeacher = false;
  8248. this.selectStudent();
  8249. this.selectSWorks();
  8250. this.selectSLook();
  8251. })
  8252. .catch((err) => {
  8253. this.$message.error("提交失败");
  8254. console.error(err);
  8255. });
  8256. },
  8257. getCourseDetail(type, gindex) {
  8258. let loading;
  8259. if (type != 2) {
  8260. loading = this.$loading.service({
  8261. background: "rgba(255, 255, 255, 0.7)",
  8262. target: document.querySelector(".student_table"),
  8263. });
  8264. }
  8265. let params = {
  8266. courseId: this.id,
  8267. };
  8268. this.ajax
  8269. .get(this.$store.state.api + "selectCourseDetail3", params)
  8270. .then((res) => {
  8271. if (type != 2) {
  8272. loading.close();
  8273. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  8274. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  8275. }
  8276. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8277. .chapterInfo[0].taskJson;
  8278. var b = [
  8279. "AVI",
  8280. "NAVI",
  8281. "MPEG",
  8282. "ASF",
  8283. "MOV",
  8284. "WMV",
  8285. "3GP",
  8286. "RM",
  8287. "RMVB",
  8288. "FLV",
  8289. "F4V",
  8290. "H.264",
  8291. "H.265",
  8292. "REAL VIDEO",
  8293. "MKV",
  8294. "WebM",
  8295. "HDDVD",
  8296. "MP4",
  8297. "MPG",
  8298. "M4V",
  8299. "MGV",
  8300. "OGV",
  8301. "QTM",
  8302. "STR",
  8303. "AMC",
  8304. "DVX",
  8305. "EVO",
  8306. "DAT",
  8307. "OGG",
  8308. "OGM",
  8309. "MP3",
  8310. ];
  8311. for (var i = 0; i < a.length; i++) {
  8312. var c = a[i].chapterData;
  8313. this.vedio[i] = [];
  8314. this.textList[i] = [];
  8315. this.lineList[i] = [];
  8316. this.chapToolList[i] = [];
  8317. this.file[i] = [];
  8318. this.fileC[i] = [];
  8319. for (var j = 0; j < c.length; j++) {
  8320. if (c[j].type == 7) {
  8321. this.chapToolList[i].push(c[j]);
  8322. } else if (c[j].type == 8) {
  8323. this.lineList[i].push(c[j]);
  8324. } else if (c[j].type == 6) {
  8325. this.textList[i].push(c[j]);
  8326. } else if (c[j].type == 12) {
  8327. this.fileC[i].push(c[j]);
  8328. } else {
  8329. if (
  8330. b.indexOf(
  8331. c[j].url
  8332. .split(".")
  8333. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8334. ) != -1
  8335. ) {
  8336. this.vedio[i].push(c[j]);
  8337. } else {
  8338. this.file[i].push(c[j]);
  8339. }
  8340. }
  8341. }
  8342. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8343. d.sources[0].src =
  8344. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8345. this.playerO[i] = d;
  8346. }
  8347. this.courseDetail = res.data[0][0];
  8348. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  8349. console.log(this.tcid);
  8350. this.evalua = res.data[0][0].evaId;
  8351. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  8352. this.courseType
  8353. ];
  8354. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  8355. if (this.tcid && res.data[1].length) {
  8356. let _inviteA = []
  8357. for (var ik = 0; ik < res.data[1].length; ik++) {
  8358. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  8359. }
  8360. for (var ik = 0; ik < _inviteA.length; ik++) {
  8361. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  8362. this.inviteCode = _inviteA[ik].ic
  8363. break;
  8364. }
  8365. }
  8366. }
  8367. for (var l = 0; l < this.chapInfoList.length; l++) {
  8368. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8369. for (var m = 0; m < w.length; m++) {
  8370. w[m].id = l + "-" + m;
  8371. }
  8372. }
  8373. if (
  8374. !this.vedio[this.taskCount][0] ||
  8375. this.vedio[this.taskCount][0].url == ""
  8376. ) {
  8377. if (
  8378. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8379. this.taskCount
  8380. ].chapterData.length > 0
  8381. ) {
  8382. // if (
  8383. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8384. // this.taskCount
  8385. // ].chapterData[0].type != 8
  8386. // ) {
  8387. let _url =
  8388. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8389. this.taskCount
  8390. ].chapterData[0].url;
  8391. if (
  8392. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8393. this.taskCount
  8394. ].chapterData[0].type == 8
  8395. ) {
  8396. this.showType = 2;
  8397. if (
  8398. _url.indexOf("https://") == -1 &&
  8399. _url.indexOf("http://") == -1
  8400. ) {
  8401. _url = "https://" + _url;
  8402. }
  8403. this.pptImgUrl1 = _url;
  8404. this.isClickNav = "line0";
  8405. } else if (
  8406. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8407. this.taskCount
  8408. ].chapterData[0].type == 3
  8409. ) {
  8410. if (
  8411. _url
  8412. .split(".")
  8413. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8414. ) {
  8415. this.showType = 3;
  8416. this.pptImgUrl1 = _url;
  8417. this.isClickNav = "word0";
  8418. } else if (
  8419. this.isAssetTypeAnImage(
  8420. _url
  8421. .split(".")
  8422. [_url.split(".").length - 1].toLocaleLowerCase()
  8423. )
  8424. ) {
  8425. this.showType = 4;
  8426. this.pptImgUrl1 = _url;
  8427. this.isClickNav = "word0";
  8428. } else {
  8429. this.showType = 2;
  8430. this.pptImgUrl1 =
  8431. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8432. _url;
  8433. this.isClickNav = "word0";
  8434. }
  8435. } else if (
  8436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8437. this.taskCount
  8438. ].chapterData[0].type == 6
  8439. ) {
  8440. this.showType = 1;
  8441. this.text = this.textList[this.taskCount][0];
  8442. this.isClickNav = "text0";
  8443. }
  8444. }
  8445. } else {
  8446. this.isClickNav = "video0";
  8447. }
  8448. if (this.toolIndex == null && this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length) {
  8449. this.toolIndex = 0
  8450. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  8451. }
  8452. } else {
  8453. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8454. .chapterInfo[0].taskJson;
  8455. var b = [
  8456. "AVI",
  8457. "NAVI",
  8458. "MPEG",
  8459. "ASF",
  8460. "MOV",
  8461. "WMV",
  8462. "3GP",
  8463. "RM",
  8464. "RMVB",
  8465. "FLV",
  8466. "F4V",
  8467. "H.264",
  8468. "H.265",
  8469. "REAL VIDEO",
  8470. "MKV",
  8471. "WebM",
  8472. "HDDVD",
  8473. "MP4",
  8474. "MPG",
  8475. "M4V",
  8476. "MGV",
  8477. "OGV",
  8478. "QTM",
  8479. "STR",
  8480. "AMC",
  8481. "DVX",
  8482. "EVO",
  8483. "DAT",
  8484. "OGG",
  8485. "OGM",
  8486. "MP3",
  8487. ];
  8488. for (var i = 0; i < a.length; i++) {
  8489. var c = a[i].chapterData;
  8490. this.vedio[i] = [];
  8491. this.textList[i] = [];
  8492. this.lineList[i] = [];
  8493. this.chapToolList[i] = [];
  8494. this.file[i] = [];
  8495. this.fileC[i] = [];
  8496. for (var j = 0; j < c.length; j++) {
  8497. if (c[j].type == 7) {
  8498. this.chapToolList[i].push(c[j]);
  8499. } else if (c[j].type == 8) {
  8500. this.lineList[i].push(c[j]);
  8501. } else if (c[j].type == 6) {
  8502. this.textList[i].push(c[j]);
  8503. } else if (c[j].type == 12) {
  8504. this.fileC[i].push(c[j]);
  8505. } else {
  8506. if (
  8507. b.indexOf(
  8508. c[j].url
  8509. .split(".")
  8510. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8511. ) != -1
  8512. ) {
  8513. this.vedio[i].push(c[j]);
  8514. } else {
  8515. this.file[i].push(c[j]);
  8516. }
  8517. }
  8518. }
  8519. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8520. d.sources[0].src =
  8521. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8522. this.playerO[i] = d;
  8523. }
  8524. if (
  8525. !this.vedio[this.taskCount][0] ||
  8526. this.vedio[this.taskCount][0].url == ""
  8527. ) {
  8528. if (
  8529. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8530. this.taskCount
  8531. ].chapterData.length > 0
  8532. ) {
  8533. // if (
  8534. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8535. // this.taskCount
  8536. // ].chapterData[0].type != 8
  8537. // ) {
  8538. let _url =
  8539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8540. this.taskCount
  8541. ].chapterData[0].url;
  8542. if (
  8543. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8544. this.taskCount
  8545. ].chapterData[0].type == 8
  8546. ) {
  8547. this.showType = 2;
  8548. if (
  8549. _url.indexOf("https://") == -1 &&
  8550. _url.indexOf("http://") == -1
  8551. ) {
  8552. _url = "https://" + _url;
  8553. }
  8554. this.pptImgUrl1 = _url;
  8555. this.isClickNav = "line0";
  8556. } else if (
  8557. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8558. this.taskCount
  8559. ].chapterData[0].type == 3
  8560. ) {
  8561. if (
  8562. _url
  8563. .split(".")
  8564. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8565. ) {
  8566. this.showType = 3;
  8567. this.pptImgUrl1 = _url;
  8568. this.isClickNav = "word0";
  8569. } else if (
  8570. this.isAssetTypeAnImage(
  8571. _url
  8572. .split(".")
  8573. [_url.split(".").length - 1].toLocaleLowerCase()
  8574. )
  8575. ) {
  8576. this.showType = 4;
  8577. this.pptImgUrl1 = _url;
  8578. this.isClickNav = "word0";
  8579. } else {
  8580. this.showType = 2;
  8581. this.pptImgUrl1 =
  8582. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8583. _url;
  8584. this.isClickNav = "word0";
  8585. }
  8586. } else if (
  8587. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8588. this.taskCount
  8589. ].chapterData[0].type == 6
  8590. ) {
  8591. this.showType = 1;
  8592. this.text = this.textList[this.taskCount][0];
  8593. this.isClickNav = "text0";
  8594. }
  8595. }
  8596. } else {
  8597. this.isClickNav = "video0";
  8598. }
  8599. this.$forceUpdate();
  8600. }
  8601. this.$nextTick(() => {
  8602. setTimeout(() => {
  8603. this.checkEva();
  8604. }, 1000);
  8605. });
  8606. let _this = this;
  8607. if (_this.timer) {
  8608. clearInterval(_this.timer);
  8609. _this.timer = null;
  8610. }
  8611. _this.selectSWorks(gindex);
  8612. _this.selectStudent();
  8613. _this.selectSLook();
  8614. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  8615. _this.setCTask();
  8616. }
  8617. if (_this.dialogVisibleGroup) {
  8618. _this.groupJson =
  8619. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  8620. _this.taskCount
  8621. ].toolChoose[_this.toolindex].groupJson;
  8622. }
  8623. _this.timer = setInterval(function () {
  8624. _this.selectSWorks(gindex);
  8625. }, 5000);
  8626. })
  8627. .catch((err) => {
  8628. loading.close();
  8629. console.error(err);
  8630. });
  8631. },
  8632. getCourseGroup(gindex) {
  8633. let params = {
  8634. cid: this.id,
  8635. classid: this.tcid ? this.tcid : '1',
  8636. };
  8637. this.ajax
  8638. .get(this.$store.state.api + "getCourseGroup", params)
  8639. .then((res) => {
  8640. if (res.data && res.data[0].length) {
  8641. if (!this.isGroup) {
  8642. let courseGroup = JSON.parse(res.data[0][0].group)
  8643. courseGroup.group = courseGroup.group.filter(el => {
  8644. el.works = []
  8645. return el
  8646. });
  8647. this.courseGroup = courseGroup
  8648. let groupPerson = res.data[1]
  8649. let group = JSON.parse(res.data[0][0].group).group
  8650. let courseGroupStudent = {}
  8651. let courseGroupStudentUid = {}
  8652. for (var i = 0; i < group.length; i++) {
  8653. courseGroupStudent[group[i].id] = []
  8654. courseGroupStudentUid[group[i].id] = []
  8655. for (var j = 0; j < groupPerson.length; j++) {
  8656. if (groupPerson[j].groupCid == group[i].id) {
  8657. courseGroupStudent[group[i].id].push(groupPerson[j])
  8658. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  8659. }
  8660. }
  8661. }
  8662. this.courseGroupStudent = courseGroupStudent
  8663. this.courseGroupStudentUid = courseGroupStudentUid
  8664. }
  8665. this.isGroup = true
  8666. this.selectSWorks(gindex);
  8667. } else {
  8668. this.selectSWorks(gindex);
  8669. this.isGroup = false
  8670. }
  8671. })
  8672. .catch((err) => {
  8673. // this.$message.error("网络不佳");
  8674. console.error(err);
  8675. });
  8676. },
  8677. setOperationTime() {
  8678. let _this = this
  8679. if (_this.opertimer) {
  8680. clearInterval(_this.opertimer);
  8681. _this.opertimer = null;
  8682. }
  8683. _this.opertimer = setInterval(() => {
  8684. _this.setoTime('600')
  8685. }, 600000);
  8686. },
  8687. setoTime(time) {
  8688. let params = [
  8689. {
  8690. uid: this.userid,
  8691. cid: this.id,
  8692. type: '2',
  8693. time: time,
  8694. },
  8695. ];
  8696. this.ajax
  8697. .post(this.$store.state.api + "addOperationTimeT2", params)
  8698. .then((res) => {
  8699. })
  8700. .catch((err) => {
  8701. console.error(err);
  8702. });
  8703. },
  8704. addPz(type, content) {
  8705. if (type == "1" && this.pzConText == "") {
  8706. this.$message.error("批注不能为空!");
  8707. return;
  8708. }
  8709. let params = [
  8710. {
  8711. cid: this.id,
  8712. uid: this.userid,
  8713. s: this.courseType,
  8714. t: this.taskCount,
  8715. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  8716. type: type,
  8717. },
  8718. ];
  8719. this.ajax
  8720. .post(this.$store.state.api + "addPz2", params)
  8721. .then((res) => {
  8722. this.$message({
  8723. message: "添加成功",
  8724. type: "success",
  8725. });
  8726. this.pzConText = "";
  8727. this.addPzDialog = false;
  8728. this.selectPz();
  8729. })
  8730. .catch((err) => {
  8731. this.$message.error("添加失败");
  8732. console.error(err);
  8733. });
  8734. },
  8735. deletePz(id) {
  8736. this.$confirm("确定删除此批注吗?", "提示", {
  8737. confirmButtonText: "确定",
  8738. cancelButtonText: "取消",
  8739. type: "warning",
  8740. })
  8741. .then(() => {
  8742. let params = [
  8743. {
  8744. id: id,
  8745. },
  8746. ];
  8747. this.ajax
  8748. .post(this.$store.state.api + "deletePz", params)
  8749. .then((res) => {
  8750. this.$message({
  8751. message: "删除成功",
  8752. type: "success",
  8753. });
  8754. this.selectPz();
  8755. })
  8756. .catch((err) => {
  8757. this.$message.error("网络异常");
  8758. console.error(err);
  8759. });
  8760. })
  8761. .catch(() => { });
  8762. },
  8763. selectPz() {
  8764. let params = {
  8765. cid: this.id,
  8766. s: this.courseType,
  8767. t: this.taskCount,
  8768. };
  8769. this.ajax
  8770. .get(this.$store.state.api + "selectPzList", params)
  8771. .then((res) => {
  8772. this.pzList = res.data[0];
  8773. })
  8774. .catch((err) => {
  8775. console.error(err);
  8776. });
  8777. },
  8778. updateSLook() {
  8779. let params = {
  8780. sopen: this.sIsOpen == false ? 1 : 2,
  8781. cid: this.id,
  8782. };
  8783. this.ajax
  8784. .get(this.$store.state.api + "updateCourseSLook", params)
  8785. .then((res) => {
  8786. if (this.sIsOpen == true) {
  8787. this.$message({
  8788. message: "权限设置成功",
  8789. type: "success",
  8790. });
  8791. } else {
  8792. this.$message({
  8793. message: "权限关闭成功",
  8794. type: "success",
  8795. });
  8796. }
  8797. })
  8798. .catch((err) => {
  8799. console.error(err);
  8800. });
  8801. },
  8802. updateFollow() {
  8803. let params = [
  8804. {
  8805. sopen: this.IsFollow == false ? 1 : 2,
  8806. cid: this.id,
  8807. },
  8808. ];
  8809. this.ajax
  8810. .post(this.$store.state.api + "updateCourseFollow", params)
  8811. .then((res) => {
  8812. if (this.IsFollow == true) {
  8813. this.$message({
  8814. message: "开启成功",
  8815. type: "success",
  8816. });
  8817. } else {
  8818. this.$message({
  8819. message: "关闭成功",
  8820. type: "success",
  8821. });
  8822. }
  8823. this.setCTask();
  8824. })
  8825. .catch((err) => {
  8826. console.error(err);
  8827. });
  8828. },
  8829. setCTask() {
  8830. let params = [
  8831. {
  8832. sopen: this.courseType + '-' + this.taskCount,
  8833. cid: this.id,
  8834. },
  8835. ];
  8836. this.ajax
  8837. .post(this.$store.state.api + "updateCourseFollowC", params)
  8838. .then((res) => {
  8839. })
  8840. .catch((err) => {
  8841. console.error(err);
  8842. });
  8843. },
  8844. updateLookOpen() {
  8845. let params = [
  8846. {
  8847. sopen: this.IsLookOpen == false ? 1 : 2,
  8848. cid: this.id,
  8849. },
  8850. ];
  8851. this.ajax
  8852. .post(this.$store.state.api + "updateCourseLookOpen", params)
  8853. .then((res) => {
  8854. if (this.IsLookOpen == true) {
  8855. // if (this.courseType != 0 && this.taskCount != 0) {
  8856. // this.openTask(0, 0, "0-0");
  8857. // }
  8858. this.$message({
  8859. message: "权限设置成功",
  8860. type: "success",
  8861. });
  8862. } else {
  8863. this.$message({
  8864. message: "权限关闭成功",
  8865. type: "success",
  8866. });
  8867. }
  8868. this.getCourseState(2);
  8869. })
  8870. .catch((err) => {
  8871. console.error(err);
  8872. });
  8873. },
  8874. selectSLook() {
  8875. let params = {
  8876. cid: this.id,
  8877. };
  8878. this.ajax
  8879. .get(this.$store.state.api + "selectCourseSLook", params)
  8880. .then((res) => {
  8881. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  8882. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  8883. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  8884. if (!this.IsLookOpen) {
  8885. this.setNavList();
  8886. } else {
  8887. this.getCourseState(1);
  8888. }
  8889. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8890. let _followC = res.data[0][0].followC.split('-')
  8891. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  8892. this.navList[this.courseType].isOpen = false;
  8893. this.courseType = _followC[0]
  8894. this.navList[this.courseType].isOpen = true;
  8895. this.taskCount = parseInt(_followC[1])
  8896. this.navId = res.data[0][0].followC;
  8897. this.getCourseDetail()
  8898. }
  8899. }
  8900. })
  8901. .catch((err) => {
  8902. console.error(err);
  8903. });
  8904. },
  8905. setNavList() {
  8906. if (this.navList.length == 0) {
  8907. this.navList = [];
  8908. for (var l = 0; l < this.chapInfoList.length; l++) {
  8909. var q = this.chapInfoList[l].dyName;
  8910. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8911. var e;
  8912. this.navList.push({
  8913. dyName: q,
  8914. isOpen: l === 0 ? true : false,
  8915. task: [],
  8916. });
  8917. for (var r = 0; r < w.length; r++) {
  8918. e = w[r].task;
  8919. if (this.chapInfoList[l].easy == 1) {
  8920. this.navList[l].task.push({
  8921. taskName: q,
  8922. id: l + "-" + r,
  8923. isLook: w[r].isLook,
  8924. });
  8925. } else {
  8926. this.navList[l].task.push({
  8927. taskName: e,
  8928. id: l + "-" + r,
  8929. isLook: w[r].isLook,
  8930. });
  8931. }
  8932. // this.navId = this.navId ? this.navId : l + "-" + r;
  8933. // this.navId = l + "-" + r;
  8934. }
  8935. }
  8936. this.navList[0].isOpen = false;
  8937. this.navList[this.courseType].isOpen = true;
  8938. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8939. } else {
  8940. this.setNavList2();
  8941. }
  8942. },
  8943. setNavList2() {
  8944. for (var l = 0; l < this.chapInfoList.length; l++) {
  8945. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8946. for (var r = 0; r < w.length; r++) {
  8947. this.navList[l].task[r].isLook = w[r].isLook;
  8948. }
  8949. }
  8950. if (
  8951. this.IsLookOpen &&
  8952. !this.navList[this.courseType].task[this.taskCount].isLook
  8953. ) {
  8954. this.openTask(0, 0, "0-0");
  8955. }
  8956. this.$forceUpdate();
  8957. },
  8958. getCourseState(type) {
  8959. let params = {
  8960. cid: this.id,
  8961. };
  8962. this.ajax
  8963. .get(this.$store.state.api + "getCourseState", params)
  8964. .then((res) => {
  8965. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  8966. this.chapInfoList = JSON.parse(res.data[0][0].state);
  8967. this.setNavList();
  8968. this.$forceUpdate();
  8969. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  8970. this.addCourseState(2);
  8971. } else {
  8972. this.addCourseState(1);
  8973. }
  8974. })
  8975. .catch((err) => {
  8976. console.error(err);
  8977. });
  8978. },
  8979. addCourseState(type) {
  8980. let _state = this.chapInfoList;
  8981. // this.courseType this.taskCount
  8982. if (type == 1 || type == 2) {
  8983. for (var i = 0; i < _state.length; i++) {
  8984. let el = _state[i].chapterInfo[0].taskJson;
  8985. for (var j = 0; j < el.length; j++) {
  8986. // if (i == 0 && j == 0) {
  8987. // el[j].isLook = true;
  8988. // } else {
  8989. // el[j].isLook = false;
  8990. // }
  8991. if (
  8992. this.courseType > i ||
  8993. (this.courseType == i && this.taskCount + 1 > j)
  8994. ) {
  8995. el[j].isLook = true;
  8996. } else {
  8997. el[j].isLook = false;
  8998. }
  8999. }
  9000. }
  9001. }
  9002. let params = [
  9003. {
  9004. cid: this.id,
  9005. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  9006. },
  9007. ];
  9008. this.ajax
  9009. .post(
  9010. this.$store.state.api +
  9011. (type == 1 ? "addCourseState" : "updateCourseSate"),
  9012. params
  9013. )
  9014. .then((res) => {
  9015. if (this.IsLookOpen) {
  9016. this.setNavList();
  9017. }
  9018. if (type == 3 && type == 2) {
  9019. this.getCourseState(1);
  9020. }
  9021. })
  9022. .catch((err) => {
  9023. console.error(err);
  9024. });
  9025. },
  9026. getHomeWork() {
  9027. let params = {
  9028. cid: this.id,
  9029. stage: this.courseType,
  9030. task: this.taskCount,
  9031. uid: this.userid,
  9032. };
  9033. this.ajax
  9034. .get(this.$store.state.api + "selectWork", params)
  9035. .then((res) => {
  9036. if (res.data[0].length > 0) {
  9037. this.studyJuri = JSON.parse(res.data[0][0].content);
  9038. this.isNoHomeWork = true;
  9039. }
  9040. })
  9041. .catch((err) => {
  9042. console.error(err);
  9043. });
  9044. },
  9045. isAssetTypeAnImage(ext) {
  9046. return (
  9047. [
  9048. "png",
  9049. "jpg",
  9050. "jpeg",
  9051. "bmp",
  9052. "gif",
  9053. "webp",
  9054. "psd",
  9055. "svg",
  9056. "tiff",
  9057. ].indexOf(ext) !== -1
  9058. );
  9059. },
  9060. switchVideo(media) {
  9061. this.playerO = {};
  9062. this.playerOptions.poster = "";
  9063. this.playerOptions.sources[0].src = media;
  9064. this.playerO = this.playerOptions;
  9065. },
  9066. onPlayerPlay() { },
  9067. lookVedio(u, i) {
  9068. this.isClickNav = "";
  9069. // this.playerOptions.sources[0].src = u;
  9070. var d = JSON.parse(JSON.stringify(this.playerOptions));
  9071. d.sources[0].src = u;
  9072. this.playerO[this.taskCount] = d;
  9073. this.showType = 0;
  9074. this.isClickNav = "video" + i;
  9075. this.$forceUpdate();
  9076. },
  9077. lookText(i, t) {
  9078. this.isClickNav = "";
  9079. this.text = this.textList[i][t];
  9080. // this.dialogVisible1 = true;
  9081. this.showType = 1;
  9082. this.isClickNav = "text" + t;
  9083. },
  9084. lookTools(i, t) {
  9085. this.chapTools = this.chapToolList[i][t];
  9086. this.dialogVisible2 = true;
  9087. },
  9088. openFile(f) {
  9089. this.pptImgUrl = "";
  9090. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  9091. if (
  9092. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  9093. -1
  9094. ) {
  9095. this.pptImgUrl =
  9096. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  9097. this.showPDF = false;
  9098. this.dialogVisible3 = true;
  9099. } else if (
  9100. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9101. ) {
  9102. this.pptImgUrl = f;
  9103. this.showPDF = true;
  9104. this.dialogVisible3 = true;
  9105. }
  9106. },
  9107. openTable(f) {
  9108. this.tableJson = JSON.parse(f.works);
  9109. this.dialogVisibleTable2 = true;
  9110. },
  9111. doUrl(url, i) {
  9112. this.isClickNav = "";
  9113. this.pptImgUrl1 = "";
  9114. this.showType = 2;
  9115. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  9116. url = "https://" + url;
  9117. }
  9118. this.pptImgUrl1 = url;
  9119. this.isClickNav = "line" + i;
  9120. },
  9121. downFile(f, i) {
  9122. this.isClickNav = "";
  9123. this.pptImgUrl1 = "";
  9124. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  9125. if (
  9126. a.indexOf(
  9127. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  9128. ) != -1
  9129. ) {
  9130. this.pptImgUrl1 =
  9131. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  9132. // this.dialogVisible3 = true;
  9133. this.showType = 2;
  9134. } else if (
  9135. this.isAssetTypeAnImage(
  9136. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  9137. )
  9138. ) {
  9139. this.showType = 4;
  9140. this.pptImgUrl1 = f.url;
  9141. } else if (
  9142. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  9143. "PDF"
  9144. ) {
  9145. this.pptImgUrl1 = f.url;
  9146. // this.dialogVisible3 = true;
  9147. this.showType = 3;
  9148. } else {
  9149. window.open(this.file[i].url);
  9150. }
  9151. this.isClickNav = "word" + i;
  9152. },
  9153. downFileList(i) {
  9154. window.open(this.noImgList[i].url);
  9155. },
  9156. openAddWork() {
  9157. this.dialogVisible = true;
  9158. },
  9159. addBzWorks() {
  9160. let params = [
  9161. {
  9162. uid: this.userid,
  9163. cid: this.id,
  9164. stage: this.courseType,
  9165. task: this.taskCount,
  9166. tool: this.toolindex,
  9167. content: JSON.stringify(this.eScore),
  9168. type: 6,
  9169. },
  9170. ];
  9171. this.ajax
  9172. .post(this.$store.state.api + "addCourseWorks", params)
  9173. .then((res) => {
  9174. this.$message({
  9175. message: "提交成功",
  9176. type: "success",
  9177. });
  9178. this.eScore = { eBzText: "", eStar: [] };
  9179. this.studentEvalDialogVisible = false;
  9180. this.selectSWorks();
  9181. })
  9182. .catch((err) => {
  9183. this.$message.error("提交失败");
  9184. console.error(err);
  9185. });
  9186. },
  9187. addStudentAsk() {
  9188. if (!this.radio.length) {
  9189. this.$message.error("请选择选项");
  9190. return;
  9191. }
  9192. for (var i = 0; i < this.askJson.askCount; i++) {
  9193. if (this.radio[i] !== 0 && !this.radio[i]) {
  9194. this.$message.error("请选择选项");
  9195. return;
  9196. }
  9197. }
  9198. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  9199. let params = [
  9200. {
  9201. uid: this.userid,
  9202. cid: this.id,
  9203. stage: this.courseType,
  9204. task: this.taskCount,
  9205. tool: this.toolindex,
  9206. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9207. type: 2,
  9208. },
  9209. ];
  9210. this.ajax
  9211. .post(this.$store.state.api + "addCourseWorks", params)
  9212. .then((res) => {
  9213. this.$message({
  9214. message: "提交成功",
  9215. type: "success",
  9216. });
  9217. this.askList = [];
  9218. this.dialogVisible5 = false;
  9219. this.selectStudent();
  9220. this.selectSWorks();
  9221. this.selectSLook();
  9222. })
  9223. .catch((err) => {
  9224. this.$message.error("提交失败");
  9225. console.error(err);
  9226. });
  9227. },
  9228. addStudentAskTeacher() {
  9229. if (!this.radio.length) {
  9230. this.$message.error("请选择选项");
  9231. return;
  9232. }
  9233. for (var i = 0; i < this.askJson.askCount; i++) {
  9234. if (this.radio[i] !== 0 && !this.radio[i]) {
  9235. this.$message.error("请选择选项");
  9236. return;
  9237. }
  9238. }
  9239. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  9240. let params = [
  9241. {
  9242. uid: this.sStudent.userid,
  9243. cid: this.id,
  9244. stage: this.courseType,
  9245. task: this.taskCount,
  9246. tool: this.toolindex,
  9247. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9248. type: 2,
  9249. },
  9250. ];
  9251. this.ajax
  9252. .post(this.$store.state.api + "addCourseWorks", params)
  9253. .then((res) => {
  9254. this.$message({
  9255. message: "提交成功",
  9256. type: "success",
  9257. });
  9258. this.askList = [];
  9259. this.dialogVisible5Teacher = false;
  9260. this.selectStudent();
  9261. this.selectSWorks();
  9262. this.selectSLook();
  9263. })
  9264. .catch((err) => {
  9265. this.$message.error("提交失败");
  9266. console.error(err);
  9267. });
  9268. },
  9269. addStudentTest() {
  9270. if (!this.radio.length) {
  9271. this.$message.error("请选择选项");
  9272. return;
  9273. }
  9274. for (var i = 0; i < this.testJson.testCount; i++) {
  9275. if (
  9276. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9277. (this.radio[i] !== 0 && !this.radio[i])
  9278. ) {
  9279. this.$message.error("请选择选项");
  9280. return;
  9281. }
  9282. }
  9283. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9284. let params = [
  9285. {
  9286. uid: this.userid,
  9287. cid: this.id,
  9288. stage: this.courseType,
  9289. task: this.taskCount,
  9290. tool: this.toolindex,
  9291. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9292. type: 8,
  9293. },
  9294. ];
  9295. this.ajax
  9296. .post(this.$store.state.api + "addCourseWorks", params)
  9297. .then((res) => {
  9298. this.$message({
  9299. message: "提交成功",
  9300. type: "success",
  9301. });
  9302. this.askList = [];
  9303. this.dialogVisibleChoice = false;
  9304. this.selectStudent();
  9305. this.selectSWorks();
  9306. this.selectSLook();
  9307. })
  9308. .catch((err) => {
  9309. this.$message.error("提交失败");
  9310. console.error(err);
  9311. });
  9312. },
  9313. addStudentTestTeacher() {
  9314. if (!this.radio.length) {
  9315. this.$message.error("请选择选项");
  9316. return;
  9317. }
  9318. for (var i = 0; i < this.testJson.testCount; i++) {
  9319. if (
  9320. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9321. (this.radio[i] !== 0 && !this.radio[i])
  9322. ) {
  9323. this.$message.error("请选择选项");
  9324. return;
  9325. }
  9326. }
  9327. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9328. let params = [
  9329. {
  9330. uid: this.sStudent.userid,
  9331. cid: this.id,
  9332. stage: this.courseType,
  9333. task: this.taskCount,
  9334. tool: this.toolindex,
  9335. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9336. type: 8,
  9337. },
  9338. ];
  9339. this.ajax
  9340. .post(this.$store.state.api + "addCourseWorks", params)
  9341. .then((res) => {
  9342. this.$message({
  9343. message: "提交成功",
  9344. type: "success",
  9345. });
  9346. this.askList = [];
  9347. this.dialogVisibleChoiceTeacher = false;
  9348. this.selectStudent();
  9349. this.selectSWorks();
  9350. this.selectSLook();
  9351. })
  9352. .catch((err) => {
  9353. this.$message.error("提交失败");
  9354. console.error(err);
  9355. });
  9356. },
  9357. addWork() {
  9358. if (this.studyJuri[0].content == "") {
  9359. this.$message.error("请将信息填写完整");
  9360. return;
  9361. } else if (this.studyJuri[0].cover.length == 0) {
  9362. this.$message.error("请将信息填写完整");
  9363. return;
  9364. } else if (this.studyJuri[0].upVedio.length == 0) {
  9365. this.$message.error("请将信息填写完整");
  9366. return;
  9367. }
  9368. if (this.isNoHomeWork) {
  9369. this.$confirm(
  9370. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  9371. "提示",
  9372. {
  9373. confirmButtonText: "确定",
  9374. cancelButtonText: "取消",
  9375. type: "warning",
  9376. }
  9377. )
  9378. .then(() => {
  9379. let params = [
  9380. {
  9381. uid: this.userid,
  9382. cid: this.id,
  9383. stage: this.courseType,
  9384. task: this.taskCount,
  9385. content: JSON.stringify(this.studyJuri),
  9386. },
  9387. ];
  9388. this.ajax
  9389. .post(this.$store.state.api + "addWorks", params)
  9390. .then((res) => {
  9391. this.$message({
  9392. message: "提交成功",
  9393. type: "success",
  9394. });
  9395. this.isNoHomeWork = true;
  9396. this.dialogVisible = false;
  9397. })
  9398. .catch((err) => {
  9399. this.$message.error("提交失败");
  9400. console.error(err);
  9401. });
  9402. })
  9403. .catch(() => { });
  9404. } else {
  9405. let params = [
  9406. {
  9407. uid: this.userid,
  9408. cid: this.id,
  9409. stage: this.courseType,
  9410. task: this.taskCount,
  9411. content: JSON.stringify(this.studyJuri),
  9412. },
  9413. ];
  9414. this.ajax
  9415. .post(this.$store.state.api + "addWorks", params)
  9416. .then((res) => {
  9417. this.$message({
  9418. message: "提交成功",
  9419. type: "success",
  9420. });
  9421. this.isNoHomeWork = true;
  9422. this.dialogVisible = false;
  9423. })
  9424. .catch((err) => {
  9425. this.$message.error("提交失败");
  9426. console.error(err);
  9427. });
  9428. }
  9429. },
  9430. selectCount() {
  9431. let params = {
  9432. cid: this.id,
  9433. chid: this.courseType,
  9434. uid: this.userid,
  9435. };
  9436. this.ajax
  9437. .get(this.$store.state.api + "selectToolsCount", params)
  9438. .then((res) => {
  9439. for (var i = 0; i < res.data[0].length; i++) {
  9440. if (res.data[0][i].tools == 1) {
  9441. this.wbCount = res.data[0][i].count;
  9442. } else if (res.data[0][i].tools == 2) {
  9443. this.wordCount = res.data[0][i].count;
  9444. } else if (res.data[0][i].tools == 3) {
  9445. this.mindCount = res.data[0][i].count;
  9446. } else if (res.data[0][i].tools == 4) {
  9447. this.askCount = res.data[0][i].count;
  9448. } else if (res.data[0][i].tools == 6) {
  9449. this.noteCount = res.data[0][i].count;
  9450. } else if (res.data[0][i].tools == 7) {
  9451. this.mindNetWorkCount = res.data[0][i].count;
  9452. } else if (res.data[0][i].tools == 8) {
  9453. this.libraryCount = res.data[0][i].count;
  9454. } else if (res.data[0][i].tools == 16) {
  9455. this.workCount = res.data[0][i].count;
  9456. } else if (res.data[0][i].tools == 10) {
  9457. this.timeCount = res.data[0][i].count;
  9458. } else if (res.data[0][i].tools == 15) {
  9459. this.answerCount = res.data[0][i].count;
  9460. } else if (res.data[0][i].tools == 18) {
  9461. this.trainCount = res.data[0][i].count;
  9462. }
  9463. }
  9464. })
  9465. .catch((err) => {
  9466. console.error(err);
  9467. });
  9468. },
  9469. openTools(t, i, index, c, sName) {
  9470. var z = JSON.parse(c);
  9471. this.noteName = sName;
  9472. if (t == 4) {
  9473. this.radio = [];
  9474. this.isAnswer = false;
  9475. for (var i = 0; i < z.length; i++) {
  9476. let a = z[i];
  9477. let b = a.anwer.split(",");
  9478. let d = [];
  9479. for (var j = 0; j < b.length; j++) {
  9480. d.push(parseInt(b[j]));
  9481. }
  9482. this.radio = d;
  9483. this.askJson = a.askJson;
  9484. }
  9485. this.isAnswer = true;
  9486. this.dialogVisible5 = true;
  9487. } else if (t == 45) {
  9488. this.radio = [];
  9489. this.isAnswer = false;
  9490. let b = z[0].anwer;
  9491. this.radio = b;
  9492. this.testJson = z[0].testJson;
  9493. this.isAnswer = true;
  9494. this.dialogVisibleChoice = true;
  9495. }
  9496. // else if (t == 15) {
  9497. // this.answerQ = "";
  9498. // this.questionAnswer = "";
  9499. // this.answerQ = z[0].answerTitle;
  9500. // this.questionAnswer = z[0].answer;
  9501. // this.answerDialogVisible = true;
  9502. // }
  9503. },
  9504. fastText(p, t) {
  9505. if (t == 1) {
  9506. this.commentText += p;
  9507. } else {
  9508. this.eScore.eBzText += p;
  9509. }
  9510. },
  9511. addTools(t, i, index) {
  9512. var a = 0;
  9513. // this.taskCount = index;
  9514. this.toolindex = i;
  9515. if (t == 1) {
  9516. if (this.wbCount > 0) {
  9517. this.updateCount(this.wbCount, t);
  9518. } else {
  9519. this.wbCount++;
  9520. a = this.wbCount;
  9521. this.toolsCount(a, t);
  9522. }
  9523. window.parent.postMessage(
  9524. {
  9525. tools: "1",
  9526. cid: this.id,
  9527. stage: this.courseType,
  9528. task: this.taskCount,
  9529. tool: i,
  9530. },
  9531. "*"
  9532. );
  9533. } else if (t == 2) {
  9534. if (this.wordCount > 0) {
  9535. this.updateCount(this.wordCount, t);
  9536. } else {
  9537. this.wordCount++;
  9538. a = this.wordCount;
  9539. this.toolsCount(a, t);
  9540. }
  9541. window.parent.postMessage({ tools: "2" }, "*");
  9542. } else if (t == 3) {
  9543. if (this.mindCount > 0) {
  9544. this.updateCount(this.mindCount, t);
  9545. } else {
  9546. this.mindCount++;
  9547. a = this.mindCount;
  9548. this.toolsCount(a, t);
  9549. }
  9550. window.parent.postMessage(
  9551. {
  9552. tools: "3",
  9553. cid: this.id,
  9554. stage: this.courseType,
  9555. task: this.taskCount,
  9556. tool: i,
  9557. },
  9558. "*"
  9559. );
  9560. } else if (t == 4) {
  9561. this.radio = [];
  9562. this.noteName = "";
  9563. this.isAnswer = false;
  9564. if (this.askCount > 0) {
  9565. this.updateCount(this.askCount, t);
  9566. } else {
  9567. this.askCount++;
  9568. a = this.askCount;
  9569. this.toolsCount(a, t);
  9570. }
  9571. this.askJson.askJson =
  9572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9573. index
  9574. ].toolChoose[i].askJson;
  9575. this.askJson.askTitle =
  9576. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9577. index
  9578. ].toolChoose[i].askTitle;
  9579. this.askJson.askCount =
  9580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9581. index
  9582. ].toolChoose[i].askCount;
  9583. this.dialogVisible5 = true;
  9584. // window.parent.postMessage({ tools: "4" }, "*");
  9585. } else if (t == 45) {
  9586. this.noteName = "";
  9587. this.radio = [];
  9588. this.isAnswer = false;
  9589. if (this.askCount > 0) {
  9590. this.updateCount(this.askCount, t);
  9591. } else {
  9592. this.askCount++;
  9593. a = this.askCount;
  9594. this.toolsCount(a, t);
  9595. }
  9596. this.testJson =
  9597. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9598. index
  9599. ].toolChoose[i].testJson;
  9600. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9601. if (this.testJson.testJson[k].type == "2") {
  9602. this.radio.push([]);
  9603. } else {
  9604. this.radio.push("");
  9605. }
  9606. }
  9607. this.dialogVisibleChoice = true;
  9608. // window.parent.postMessage({ tools: "4" }, "*");
  9609. } else if (t == 5) {
  9610. if (this.scoreCount > 0) {
  9611. this.updateCount(this.scoreCount, t);
  9612. } else {
  9613. this.scoreCount++;
  9614. a = this.scoreCount;
  9615. this.toolsCount(a, t);
  9616. }
  9617. this.dialogVisible4 = true;
  9618. // window.parent.postMessage({ tools: "5" }, "*");
  9619. } else if (t == 6) {
  9620. if (this.noteCount > 0) {
  9621. this.updateCount(this.noteCount, t);
  9622. } else {
  9623. this.noteCount++;
  9624. a = this.noteCount;
  9625. this.toolsCount(a, t);
  9626. }
  9627. window.parent.postMessage(
  9628. {
  9629. tools: "6",
  9630. cid: this.id,
  9631. stage: this.courseType,
  9632. task: this.taskCount,
  9633. tool: i,
  9634. },
  9635. "*"
  9636. );
  9637. } else if (t == 7) {
  9638. if (this.mindNetWorkCount > 0) {
  9639. this.updateCount(this.mindNetWorkCount, t);
  9640. } else {
  9641. this.mindNetWorkCount++;
  9642. a = this.mindNetWorkCount;
  9643. this.toolsCount(a, t);
  9644. }
  9645. window.parent.postMessage(
  9646. {
  9647. tools: "7",
  9648. cid: this.id,
  9649. stage: this.courseType,
  9650. task: this.taskCount,
  9651. tool: i,
  9652. },
  9653. "*"
  9654. );
  9655. } else if (t == 16) {
  9656. if (this.workCount > 0) {
  9657. this.updateCount(this.workCount, t);
  9658. } else {
  9659. this.workCount++;
  9660. a = this.workCount;
  9661. this.toolsCount(a, t);
  9662. }
  9663. this.dialogVisible = true;
  9664. } else if (t == 50) {
  9665. if (this.tType == 2) {
  9666. this.$message.error("不支持学生使用");
  9667. return;
  9668. }
  9669. this.plworkFile = [];
  9670. this.uploadCid =
  9671. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9672. index
  9673. ].toolChoose[i].uploadJson[0];
  9674. this.selectUploadStudent();
  9675. this.dialogVisiblePl = true;
  9676. } else if (t == 8) {
  9677. if (this.libraryCount > 0) {
  9678. this.updateCount(this.libraryCount, t);
  9679. } else {
  9680. this.libraryCount++;
  9681. a = this.libraryCount;
  9682. this.toolsCount(a, t);
  9683. }
  9684. window.parent.postMessage({ tools: "8" }, "*");
  9685. } else if (t == 17) {
  9686. if (this.libraryCount > 0) {
  9687. this.updateCount(this.libraryCount, t);
  9688. } else {
  9689. this.libraryCount++;
  9690. a = this.libraryCount;
  9691. this.toolsCount(a, t);
  9692. }
  9693. window.parent.postMessage({ tools: "17" }, "*");
  9694. } else if (t == 18) {
  9695. if (this.trainCount > 0) {
  9696. this.updateCount(this.trainCount, t);
  9697. } else {
  9698. this.trainCount++;
  9699. a = this.trainCount;
  9700. this.toolsCount(a, t);
  9701. }
  9702. window.parent.postMessage({ tools: "18" }, "*");
  9703. } else if (t == 10) {
  9704. if (this.timeCount > 0) {
  9705. this.updateCount(this.timeCount, t);
  9706. } else {
  9707. this.timeCount++;
  9708. a = this.timeCount;
  9709. this.toolsCount(a, t);
  9710. }
  9711. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  9712. .taskJson[index].toolChoose[i].preTime
  9713. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9714. .toolChoose[i].preTime
  9715. : "";
  9716. this.timeDialogVisible = true;
  9717. } else if (t == 15) {
  9718. this.answerQ = "";
  9719. this.questionAnswer = "";
  9720. if (this.answerCount > 0) {
  9721. this.updateCount(this.answerCount, t);
  9722. } else {
  9723. this.answerCount++;
  9724. a = this.answerCount;
  9725. this.toolsCount(a, t);
  9726. }
  9727. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  9728. .taskJson[index].toolChoose[i].answerQ
  9729. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9730. .toolChoose[i].answerQ
  9731. : "";
  9732. this.answerDialogVisible = true;
  9733. } else if (t == 21) {
  9734. window.parent.postMessage({ tools: "21" }, "*");
  9735. } else if (t == 22) {
  9736. window.parent.postMessage({ tools: "22" }, "*");
  9737. } else if (t == 23) {
  9738. window.parent.postMessage({ tools: "23" }, "*");
  9739. } else if (t == 24) {
  9740. window.parent.postMessage({ tools: "24" }, "*");
  9741. } else if (t == 25) {
  9742. window.parent.postMessage({ tools: "25" }, "*");
  9743. } else if (t == 31) {
  9744. window.parent.postMessage({ tools: "31" }, "*");
  9745. } else if (t == 28) {
  9746. window.parent.postMessage({ tools: "28" }, "*");
  9747. } else if (t == 37) {
  9748. window.parent.postMessage({ tools: "37" }, "*");
  9749. } else if (t == 38) {
  9750. window.parent.postMessage({ tools: "38" }, "*");
  9751. } else if (t == 39) {
  9752. window.parent.postMessage({ tools: "39" }, "*");
  9753. } else if (t == 32) {
  9754. window.parent.postMessage({ tools: "32" }, "*");
  9755. } else if (t == 57) {
  9756. window.parent.postMessage({ tools: "57" }, "*");
  9757. } else if (t == 58) {
  9758. window.parent.postMessage({ tools: "58" }, "*");
  9759. } else if (t == 59) {
  9760. window.parent.postMessage({ tools: "59" }, "*");
  9761. } else if (t == 60) {
  9762. window.parent.postMessage({ tools: "60" }, "*");
  9763. } else if (t == 61) {
  9764. window.parent.postMessage({ tools: "61" }, "*");
  9765. } else if (t == 26) {
  9766. window.parent.postMessage(
  9767. {
  9768. tools: "26",
  9769. cid: this.id,
  9770. stage: this.courseType,
  9771. task: this.taskCount,
  9772. tool: i,
  9773. },
  9774. "*"
  9775. );
  9776. } else if (t == 40) {
  9777. if (this.evalCount > 0) {
  9778. this.updateCount(this.evalCount, t);
  9779. } else {
  9780. this.evalCount++;
  9781. a = this.evalCount;
  9782. this.toolsCount(a, t);
  9783. }
  9784. this.eScore = { eBzText: "", eStar: [] };
  9785. if (this.worksStudent[i].length) {
  9786. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9787. if (this.userid == this.worksStudent[i][k].userid) {
  9788. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  9789. this.rateJson =
  9790. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9791. index
  9792. ].toolChoose[i].rateJson;
  9793. break;
  9794. } else {
  9795. this.rateJson =
  9796. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9797. index
  9798. ].toolChoose[i].rateJson;
  9799. }
  9800. }
  9801. } else {
  9802. this.rateJson =
  9803. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9804. index
  9805. ].toolChoose[i].rateJson;
  9806. }
  9807. this.isStar = false;
  9808. this.studentEvalDialogVisible = true;
  9809. } else if (t == 41) {
  9810. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9811. .taskJson[index].toolChoose[i].selectJson
  9812. ? JSON.parse(
  9813. JSON.stringify(
  9814. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9815. index
  9816. ].toolChoose[i].selectJson
  9817. )
  9818. )
  9819. : { url: "", select: [], answer: [] };
  9820. if (this.worksStudent[i].length) {
  9821. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9822. if (this.userid == this.worksStudent[i][k].userid) {
  9823. var a = this.worksStudent[i][k].works.split(",");
  9824. for (var ki = 0; ki < a.length; ki++) {
  9825. a[ki] = parseInt(a[ki]);
  9826. }
  9827. this.selectAnswer = {
  9828. answer: a,
  9829. stu: this.worksStudent[i][k].sName,
  9830. };
  9831. break;
  9832. } else {
  9833. this.selectAnswer = { answer: [], stu: "" };
  9834. }
  9835. }
  9836. } else {
  9837. this.selectAnswer = { answer: [], stu: "" };
  9838. }
  9839. this.isSelect = false;
  9840. this.dialogVisibleSelect = true;
  9841. } else if (t == 44) {
  9842. window.parent.postMessage({ tools: "44" }, "*");
  9843. } else if (t == 47) {
  9844. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  9845. .taskJson[index].toolChoose[i].sentenceList
  9846. ? JSON.parse(
  9847. JSON.stringify(
  9848. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9849. index
  9850. ].toolChoose[i].sentenceList
  9851. )
  9852. )
  9853. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  9854. for (var q = 0; q < this.sentenceList.length; q++) {
  9855. this.sentenceList[q].chooseSenList = [];
  9856. this.sentenceList[q].addChangeSen = [];
  9857. this.sentenceList[q].addChangeSen = JSON.parse(
  9858. JSON.stringify(this.sentenceList[q].addSentence)
  9859. );
  9860. this.sentenceList[q].chooseSenList.length =
  9861. this.sentenceList[q].rightAnswer.length;
  9862. }
  9863. this.dialogVisibleSentence = true;
  9864. } else if (t == 48) {
  9865. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9866. .taskJson[index].toolChoose[i].tableJson
  9867. ? JSON.parse(
  9868. JSON.stringify(
  9869. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9870. index
  9871. ].toolChoose[i].tableJson
  9872. )
  9873. )
  9874. : { text: "" };
  9875. if (this.worksStudent[i].length) {
  9876. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9877. if (this.userid == this.worksStudent[i][k].userid) {
  9878. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  9879. break;
  9880. }
  9881. }
  9882. }
  9883. this.dialogVisibleTable = true;
  9884. } else if (t == 52) {
  9885. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9886. .taskJson[index].toolChoose[i].wordJson
  9887. ? JSON.parse(
  9888. JSON.stringify(
  9889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9890. index
  9891. ].toolChoose[i].wordJson
  9892. )
  9893. )
  9894. : { text: "" };
  9895. this.dialogVisibleWord = true;
  9896. } else if (t == 49) {
  9897. this.groupJson =
  9898. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9899. index
  9900. ].toolChoose[i].groupJson;
  9901. this.dialogVisibleGroup = true;
  9902. }
  9903. },
  9904. teacherWorkSubmit(t, i, index, s) {
  9905. this.sStudent = s;
  9906. this.sTool = t;
  9907. this.toolindex = i;
  9908. if (this.tType !== "1" && this.tType !== "4") {
  9909. return;
  9910. }
  9911. if (t == 16 || t == 32 || t == 57 || t == 50) {
  9912. this.dialogVisibleWorks = true; //作业提交
  9913. } else if (t == 15) {
  9914. this.answerDialogVisibleTeacher = true;//问答
  9915. } else if (t == 52) {
  9916. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9917. .taskJson[index].toolChoose[i].wordJson
  9918. ? JSON.parse(
  9919. JSON.stringify(
  9920. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9921. index
  9922. ].toolChoose[i].wordJson
  9923. )
  9924. )
  9925. : { text: "" };
  9926. this.dialogVisibleWordTeacher = true;//文档
  9927. } else if (t == 4) {
  9928. this.radio = [];
  9929. this.noteName = "";
  9930. this.isAnswer = false;
  9931. if (this.askCount > 0) {
  9932. this.updateCount(this.askCount, t);
  9933. } else {
  9934. this.askCount++;
  9935. a = this.askCount;
  9936. this.toolsCount(a, t);
  9937. }
  9938. if (!this.dialogVisible2) {
  9939. this.askJson.askJson =
  9940. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9941. index
  9942. ].toolChoose[i].askJson;
  9943. this.askJson.askTitle =
  9944. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9945. index
  9946. ].toolChoose[i].askTitle;
  9947. this.askJson.askCount =
  9948. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9949. index
  9950. ].toolChoose[i].askCount;
  9951. } else {
  9952. this.askJson.askJson = this.chapTools.askJson.askJson;
  9953. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  9954. this.askJson.askCount = this.chapTools.askJson.askCount;
  9955. }
  9956. this.dialogVisible5Teacher = true;
  9957. } else if (t == 45) {
  9958. this.noteName = "";
  9959. this.radio = [];
  9960. this.isAnswer = false;
  9961. if (this.askCount > 0) {
  9962. this.updateCount(this.askCount, t);
  9963. } else {
  9964. this.askCount++;
  9965. a = this.askCount;
  9966. this.toolsCount(a, t);
  9967. }
  9968. this.testJson =
  9969. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9970. index
  9971. ].toolChoose[i].testJson;
  9972. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9973. if (this.testJson.testJson[k].type == "2") {
  9974. this.radio.push([]);
  9975. } else {
  9976. this.radio.push("");
  9977. }
  9978. }
  9979. this.dialogVisibleChoiceTeacher = true;
  9980. } else if (t == 41) {
  9981. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9982. .taskJson[index].toolChoose[i].selectJson
  9983. ? JSON.parse(
  9984. JSON.stringify(
  9985. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9986. index
  9987. ].toolChoose[i].selectJson
  9988. )
  9989. )
  9990. : { url: "", select: [], answer: [] };
  9991. if (this.worksStudent[i].length) {
  9992. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9993. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  9994. var a = this.worksStudent[i][k].works.split(",");
  9995. for (var ki = 0; ki < a.length; ki++) {
  9996. a[ki] = parseInt(a[ki]);
  9997. }
  9998. this.selectAnswer = {
  9999. answer: a,
  10000. stu: this.worksStudent[i][k].sName,
  10001. };
  10002. break;
  10003. } else {
  10004. this.selectAnswer = { answer: [], stu: "" };
  10005. }
  10006. }
  10007. } else {
  10008. this.selectAnswer = { answer: [], stu: "" };
  10009. }
  10010. this.isSelect = false;
  10011. this.dialogVisibleSelectTeacher = true;
  10012. } else if (t == 47) {
  10013. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  10014. .taskJson[index].toolChoose[i].sentenceList
  10015. ? JSON.parse(
  10016. JSON.stringify(
  10017. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10018. index
  10019. ].toolChoose[i].sentenceList
  10020. )
  10021. )
  10022. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  10023. for (var q = 0; q < this.sentenceList.length; q++) {
  10024. this.sentenceList[q].chooseSenList = [];
  10025. this.sentenceList[q].addChangeSen = [];
  10026. this.sentenceList[q].addChangeSen = JSON.parse(
  10027. JSON.stringify(this.sentenceList[q].addSentence)
  10028. );
  10029. this.sentenceList[q].chooseSenList.length =
  10030. this.sentenceList[q].rightAnswer.length;
  10031. }
  10032. this.dialogVisibleSentenceTeacher = true;
  10033. } else if (t == 48) {
  10034. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10035. .taskJson[index].toolChoose[i].tableJson
  10036. ? JSON.parse(
  10037. JSON.stringify(
  10038. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10039. index
  10040. ].toolChoose[i].tableJson
  10041. )
  10042. )
  10043. : { text: "" };
  10044. if (this.worksStudent[i].length) {
  10045. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10046. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10047. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  10048. break;
  10049. }
  10050. }
  10051. }
  10052. this.dialogVisibleTableTeacher = true;
  10053. } else if (t == 3 || t == 1 || t == 7) {
  10054. window.parent.postMessage(
  10055. {
  10056. tools: t + 'teacher',
  10057. cid: this.id,
  10058. stage: this.courseType,
  10059. task: this.taskCount,
  10060. tool: i,
  10061. student: this.sStudent,
  10062. },
  10063. "*"
  10064. );
  10065. }
  10066. },
  10067. setRightAnswer(s, i, j) {
  10068. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  10069. if (
  10070. this.sentenceList[i].chooseSenList[q] == undefined ||
  10071. this.sentenceList[i].chooseSenList[q] == ""
  10072. ) {
  10073. this.sentenceList[i].chooseSenList[q] = s;
  10074. this.sentenceList[i].addChangeSen[j] = "";
  10075. break;
  10076. }
  10077. }
  10078. this.$forceUpdate();
  10079. },
  10080. returnCard(r, i, j) {
  10081. var a = this.sentenceList[i].addSentence.indexOf(r);
  10082. this.sentenceList[i].chooseSenList[j] = "";
  10083. this.sentenceList[i].addChangeSen[a] = r;
  10084. this.$forceUpdate();
  10085. },
  10086. // addSentenceTool() {
  10087. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10088. // this.taskCount
  10089. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  10090. // this.sentenceList = [
  10091. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10092. // ];
  10093. // this.dialogVisibleSentence = false;
  10094. // },
  10095. toolsCount(a, t) {
  10096. let params = {
  10097. cid: this.id,
  10098. chid: this.courseType,
  10099. uid: this.userid,
  10100. tid: t,
  10101. count: a,
  10102. };
  10103. this.ajax
  10104. .get(this.$store.state.api + "insertToolsCount", params)
  10105. .then((res) => {
  10106. this.selectCount();
  10107. })
  10108. .catch((err) => {
  10109. console.error(err);
  10110. });
  10111. },
  10112. updateCount(c, t) {
  10113. c++;
  10114. let params = {
  10115. cid: this.id,
  10116. chid: this.courseType,
  10117. uid: this.userid,
  10118. tid: t,
  10119. count: c,
  10120. };
  10121. this.ajax
  10122. .get(this.$store.state.api + "updateToolsCount", params)
  10123. .then((res) => {
  10124. this.selectCount();
  10125. })
  10126. .catch((err) => {
  10127. console.error(err);
  10128. });
  10129. },
  10130. checkEva() {
  10131. if (this.evalua != "") {
  10132. for (var i = 0; i < this.evaJuri.length; i++) {
  10133. if (this.evalua == this.evaJuri[i].id) {
  10134. this.eTitle = this.evaJuri[i].title;
  10135. this.eJson = JSON.parse(this.evaJuri[i].content);
  10136. }
  10137. }
  10138. this.$forceUpdate();
  10139. setTimeout(() => {
  10140. this.setMindData();
  10141. }, 0);
  10142. }
  10143. },
  10144. selectEva() {
  10145. let params = {
  10146. oid: this.oid,
  10147. };
  10148. this.ajax
  10149. .get(this.$store.state.api + "selectAllEvaluation", params)
  10150. .then((res) => {
  10151. this.evaJuri = res.data[0];
  10152. })
  10153. .catch((err) => {
  10154. console.error(err);
  10155. });
  10156. },
  10157. setMindData() {
  10158. this.data.data = [];
  10159. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10160. let _eJson = Object.keys(this.eJson);
  10161. let _e = this.eJson;
  10162. for (let i = 0; i < _eJson.length; i++) {
  10163. let element = _e[_eJson[i]];
  10164. this.data.data.push({
  10165. id: element.id,
  10166. parentid: "root",
  10167. topic: element.name,
  10168. });
  10169. let _eJsonc = Object.keys(element.child);
  10170. let _e2 = element.child;
  10171. for (let j = 0; j < _eJsonc.length; j++) {
  10172. let _ec = _e2[_eJsonc[j]];
  10173. this.data.data.push({
  10174. id: _ec.id,
  10175. parentid: element.id,
  10176. topic: _ec.name,
  10177. });
  10178. let _eJsonz = Object.keys(_ec.child);
  10179. let _e3 = _ec.child;
  10180. for (let z = 0; z < _eJsonz.length; z++) {
  10181. let _ez = _e3[_eJsonz[z]];
  10182. this.data.data.push({
  10183. id: _ez.id,
  10184. parentid: _ec.id,
  10185. topic: _ez.name,
  10186. });
  10187. }
  10188. }
  10189. }
  10190. this.$forceUpdate();
  10191. },
  10192. checkFileFull(type, url) {
  10193. this.fullDialogVisible = true;
  10194. this.fulltype = type;
  10195. this.fullUrl = url;
  10196. },
  10197. openSname(n, id) {
  10198. this.snameWid = id;
  10199. this.worksSName = n;
  10200. this.dialogVisibleSname = true;
  10201. },
  10202. updateName() {
  10203. let params = {
  10204. n: this.worksSName,
  10205. cid: this.snameWid,
  10206. };
  10207. this.ajax
  10208. .get(this.$store.state.api + "updateCourseWorksName", params)
  10209. .then((res) => {
  10210. this.$message({
  10211. message: "修改成功",
  10212. type: "success",
  10213. });
  10214. this.dialogVisibleSname = false;
  10215. this.getCourseDetail();
  10216. this.snameWid = "";
  10217. this.worksSName = "";
  10218. })
  10219. .catch((err) => {
  10220. console.error(err);
  10221. });
  10222. },
  10223. downloadFile2(f) {
  10224. let url = f.url
  10225. let _this = this;
  10226. let _url = "";
  10227. if (
  10228. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10229. ) {
  10230. _url = url.split(
  10231. "https://view.officeapps.live.com/op/view.aspx?src="
  10232. )[1];
  10233. } else {
  10234. _url = url;
  10235. }
  10236. const x = new XMLHttpRequest();
  10237. x.open("GET", _url, true);
  10238. x.responseType = "blob";
  10239. const loading = _this.$loading.service({
  10240. background: "rgba(255, 255, 255, 0.7)",
  10241. target: document.body,
  10242. text: "文件加载中...",
  10243. });
  10244. // _this.$message.success("文件下载中...");
  10245. x.onload = function (e) {
  10246. loading.close();
  10247. let content = x.response;
  10248. let elink = document.createElement("a");
  10249. elink.download = f.name;
  10250. elink.style.display = "none";
  10251. let blob = new Blob([content]);
  10252. elink.href = URL.createObjectURL(blob);
  10253. document.body.appendChild(elink);
  10254. elink.click();
  10255. document.body.removeChild(elink);
  10256. };
  10257. x.send();
  10258. },
  10259. downloadFile(url) {
  10260. let _this = this;
  10261. let _url = "";
  10262. if (
  10263. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10264. ) {
  10265. _url = url.split(
  10266. "https://view.officeapps.live.com/op/view.aspx?src="
  10267. )[1];
  10268. } else {
  10269. _url = url;
  10270. }
  10271. const x = new XMLHttpRequest();
  10272. x.open("GET", _url, true);
  10273. x.responseType = "blob";
  10274. const loading = _this.$loading.service({
  10275. background: "rgba(255, 255, 255, 0.7)",
  10276. target: document.body,
  10277. text: "文件加载中...",
  10278. });
  10279. // _this.$message.success("文件下载中...");
  10280. x.onload = function (e) {
  10281. loading.close();
  10282. // const url = window.URL.createObjectURL(x.response);
  10283. // const a = document.createElement("a");
  10284. // a.href = url;
  10285. // a.target = "_blank";
  10286. // a.download = url;
  10287. // a.click();
  10288. // a.remove();
  10289. let content = x.response;
  10290. let elink = document.createElement("a");
  10291. elink.download = decodeURI(
  10292. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  10293. );
  10294. elink.style.display = "none";
  10295. let blob = new Blob([content]);
  10296. elink.href = URL.createObjectURL(blob);
  10297. document.body.appendChild(elink);
  10298. elink.click();
  10299. document.body.removeChild(elink);
  10300. };
  10301. x.send();
  10302. },
  10303. openLine(url) {
  10304. window.open(url);
  10305. },
  10306. resize() {
  10307. if (document.getElementsByClassName("box_course").length) {
  10308. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10309. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10310. document.getElementsByClassName("navBox")[0].style.height =
  10311. a - 40 + "px";
  10312. }
  10313. this.Stbodywidth =
  10314. document.getElementsByClassName("student_body").length &&
  10315. document.getElementsByClassName("student_body")[0].offsetWidth;
  10316. },
  10317. closeDraw() {
  10318. this.bg = null;
  10319. this.drawShow = false;
  10320. },
  10321. showPicturePaint(url) {
  10322. let params = {
  10323. img: url,
  10324. };
  10325. this.ajax
  10326. .get(this.$store.state.api + "imgToBase64", params)
  10327. .then((res) => {
  10328. console.log(res);
  10329. this.drawShow = true;
  10330. this.bg = res.data[0].img;
  10331. })
  10332. .catch((err) => {
  10333. console.error(err);
  10334. });
  10335. },
  10336. addImgDraw(base64) {
  10337. let file = { name: "批注图.png" };
  10338. let img = this.dataUrlToFile(base64, file);
  10339. this.beforeUpload1(img, 5);
  10340. },
  10341. addImgDrawImG(url) {
  10342. // console.log(url);
  10343. let params = [
  10344. {
  10345. wid: this.commentDetail.wid,
  10346. img: url,
  10347. },
  10348. ];
  10349. this.ajax
  10350. .post(this.$store.state.api + "updateCourseWorks", params)
  10351. .then((res) => {
  10352. this.$message({
  10353. message: "提交成功",
  10354. type: "success",
  10355. });
  10356. this.drawShow = false;
  10357. this.bg = "";
  10358. this.selectSWorks();
  10359. this.selectStudent();
  10360. })
  10361. .catch((err) => {
  10362. this.$message.error("提交失败");
  10363. console.error(err);
  10364. });
  10365. },
  10366. deletePicturePaint() {
  10367. this.$confirm("确定删除此批注吗?", "提示", {
  10368. confirmButtonText: "确定",
  10369. cancelButtonText: "取消",
  10370. type: "warning",
  10371. })
  10372. .then(() => {
  10373. let params = [
  10374. {
  10375. wid: this.commentDetail.wid,
  10376. img: "",
  10377. },
  10378. ];
  10379. this.ajax
  10380. .post(this.$store.state.api + "updateCourseWorks", params)
  10381. .then((res) => {
  10382. this.$message({
  10383. message: "删除成功",
  10384. type: "success",
  10385. });
  10386. this.selectSWorks();
  10387. this.selectStudent();
  10388. })
  10389. .catch((err) => {
  10390. this.$message.error("删除失败");
  10391. console.error(err);
  10392. });
  10393. })
  10394. .catch(() => { });
  10395. },
  10396. getAudioVideo(constraintsData) {
  10397. if (navigator.mediaDevices === undefined) {
  10398. navigator.mediaDevices = {};
  10399. }
  10400. if (navigator.mediaDevices.getUserMedia === undefined) {
  10401. navigator.mediaDevices.getUserMedia = function (constraints) {
  10402. // 首先,如果有getUserMedia的话,就获得它
  10403. var getUserMedia =
  10404. navigator.getUserMedia ||
  10405. navigator.webkitGetUserMedia ||
  10406. navigator.mozGetUserMedia ||
  10407. navigator.msGetUserMedia;
  10408. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  10409. if (!getUserMedia) {
  10410. return Promise.reject({ code: 404 });
  10411. }
  10412. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  10413. return new Promise(function (resolve, reject) {
  10414. getUserMedia.call(navigator, constraints, resolve, reject);
  10415. });
  10416. };
  10417. }
  10418. return navigator.mediaDevices.getUserMedia(constraintsData);
  10419. },
  10420. /**
  10421. * 开始录制
  10422. */
  10423. startRecording(callback) {
  10424. let _function = (screenStream) => {
  10425. this.addStreamStopListener(screenStream, () => {
  10426. console.log("流停止监听");
  10427. this.stopRecording();
  10428. this.$emit("streamStop", {});
  10429. // this.stopRecording();
  10430. });
  10431. var options = {
  10432. type: "video",
  10433. mimeType: "video/webm",
  10434. disableLogs: false,
  10435. getNativeBlob: false, // enable it for longer recordings
  10436. ignoreMutedMedia: false,
  10437. };
  10438. // this.video.srcObject = screenStream;
  10439. this.recorder = RecordRTC(screenStream, options);
  10440. this.recorder.startRecording();
  10441. this.recorder.screen = screenStream;
  10442. this.videoStart = true;
  10443. // callback(true);
  10444. };
  10445. this.getAudioVideo({ audio: true })
  10446. .then((res) => {
  10447. this.captureScreen(_function, true);
  10448. console.log("已点击允许,开启成功");
  10449. })
  10450. .catch((err) => {
  10451. // console.log('浏览器不支持,请更换浏览器')
  10452. // } else {
  10453. this.captureScreen(_function, false);
  10454. console.log("请检查是否存在麦克风");
  10455. });
  10456. },
  10457. /**
  10458. * 停止录制
  10459. */
  10460. stopRecording(callback) {
  10461. this.recorder.stopRecording(() => {
  10462. // this.video.src = this.video.srcObject = null;
  10463. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  10464. const url = URL.createObjectURL(this.recorder.getBlob());
  10465. const a = document.createElement("a"); //this.fileName+
  10466. let videoFile = new File(
  10467. [this.recorder.getBlob()],
  10468. this.courseDetail.title + "录屏.mp4",
  10469. {
  10470. type: "video/mp4",
  10471. }
  10472. );
  10473. let downloadUrl = URL.createObjectURL(videoFile);
  10474. document.body.appendChild(a);
  10475. a.style.display = "none";
  10476. a.href = url;
  10477. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  10478. a.click();
  10479. this.recorder.screen.stop();
  10480. this.recorder.destroy();
  10481. this.recorder = null;
  10482. this.videoStart = false;
  10483. // callback(false);
  10484. });
  10485. },
  10486. //初始化
  10487. captureScreen(callback, type) {
  10488. if (navigator.getDisplayMedia) {
  10489. //录制结束,文件下载
  10490. navigator
  10491. .getDisplayMedia({
  10492. video: true,
  10493. })
  10494. .then((screenStream) => {
  10495. if (type) {
  10496. navigator.mediaDevices
  10497. .getUserMedia({ audio: true })
  10498. .then((mic) => {
  10499. screenStream.addTrack(mic.getTracks()[0]);
  10500. callback(screenStream);
  10501. });
  10502. } else {
  10503. callback(screenStream);
  10504. }
  10505. })
  10506. .catch(function (error) {
  10507. console.log("error", error);
  10508. });
  10509. } else if (navigator.mediaDevices.getDisplayMedia) {
  10510. navigator.mediaDevices
  10511. .getDisplayMedia({
  10512. video: true,
  10513. })
  10514. .then((screenStream) => {
  10515. if (type) {
  10516. navigator.mediaDevices
  10517. .getUserMedia({ audio: true })
  10518. .then((mic) => {
  10519. screenStream.addTrack(mic.getTracks()[0]);
  10520. callback(screenStream);
  10521. });
  10522. } else {
  10523. callback(screenStream);
  10524. }
  10525. })
  10526. .catch(function (error) {
  10527. console.log("error", error);
  10528. });
  10529. } else {
  10530. var error = "getDisplayMedia API are not supported in this browser.";
  10531. console.log("error", error);
  10532. alert(error);
  10533. }
  10534. },
  10535. //流监听
  10536. addStreamStopListener(stream, callback) {
  10537. stream.addEventListener(
  10538. "ended",
  10539. function () {
  10540. callback();
  10541. callback = function () { };
  10542. },
  10543. false
  10544. );
  10545. stream.addEventListener(
  10546. "inactive",
  10547. function () {
  10548. callback();
  10549. callback = function () { };
  10550. },
  10551. false
  10552. );
  10553. stream.getTracks().forEach(function (track) {
  10554. track.addEventListener(
  10555. "ended",
  10556. function () {
  10557. callback();
  10558. callback = function () { };
  10559. },
  10560. false
  10561. );
  10562. track.addEventListener(
  10563. "inactive",
  10564. function () {
  10565. callback();
  10566. callback = function () { };
  10567. },
  10568. false
  10569. );
  10570. });
  10571. },
  10572. updateGroup() {
  10573. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10574. this.dialogVisibleGroup2 = true;
  10575. },
  10576. updateGroupJson() {
  10577. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  10578. if (
  10579. this.groupStudentUid[this.toolindex][i].length >
  10580. this.groupJson2.number
  10581. ) {
  10582. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  10583. return;
  10584. }
  10585. }
  10586. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  10587. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10588. this.taskCount
  10589. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  10590. let params = [
  10591. {
  10592. cid: this.id,
  10593. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  10594. uid: this.userid,
  10595. unitIndex: this.courseType,
  10596. },
  10597. ];
  10598. this.ajax
  10599. .post(this.$store.state.api + "updateWorkNew4", params)
  10600. .then((res) => {
  10601. this.$message.success("设置成功");
  10602. this.getCourseDetail(2);
  10603. this.dialogVisibleGroup2 = false;
  10604. this.groupJson2 = {};
  10605. this.$forceUpdate();
  10606. })
  10607. .catch((err) => {
  10608. this.$message.error("网络不佳");
  10609. console.error(err);
  10610. });
  10611. },
  10612. lockChair() {
  10613. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10614. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  10615. this.updateGroupJson();
  10616. },
  10617. selectGroup(index) {
  10618. this.getCourseDetail(2, index);
  10619. },
  10620. joinGroup(index) {
  10621. if (this.groupJson.islock == 2) {
  10622. this.$message.error("位置已被锁定,无法加入");
  10623. return;
  10624. }
  10625. if (
  10626. this.groupStudent[this.toolindex][index].length >
  10627. this.groupJson.number ||
  10628. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  10629. ) {
  10630. this.$message.error("位置已满,无法加入");
  10631. return;
  10632. }
  10633. let params = [
  10634. {
  10635. cid: this.id,
  10636. stage: this.courseType,
  10637. task: this.taskCount,
  10638. tool: this.toolindex,
  10639. g: index,
  10640. uid: this.userid,
  10641. },
  10642. ];
  10643. this.ajax
  10644. .post(this.$store.state.api + "joinGroup", params)
  10645. .then((res) => {
  10646. this.$message.success("加入成功");
  10647. this.getCourseDetail();
  10648. })
  10649. .catch((err) => {
  10650. this.$message.error("网络不佳");
  10651. console.error(err);
  10652. });
  10653. },
  10654. exitGroup(id) {
  10655. if (this.groupJson.islock == 2) {
  10656. this.$message.error("位置已被锁定,无法退出");
  10657. return;
  10658. }
  10659. let params = [
  10660. {
  10661. gid: id,
  10662. },
  10663. ];
  10664. this.ajax
  10665. .post(this.$store.state.api + "exitGroup", params)
  10666. .then((res) => {
  10667. this.$message.success("退出成功");
  10668. this.getCourseDetail();
  10669. })
  10670. .catch((err) => {
  10671. this.$message.error("网络不佳");
  10672. console.error(err);
  10673. });
  10674. },
  10675. groupUpload(index, task, gindex) {
  10676. this.taskCount = task;
  10677. this.toolindex = index;
  10678. this.groupIndex = gindex;
  10679. this.dialogVisibleGroupWork = true;
  10680. },
  10681. updateGroupChair(user) {
  10682. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  10683. el.label = index;
  10684. return index != user.group;
  10685. });
  10686. this.updateGroupUser = user;
  10687. this.dialogVisibleUpdateGroup = true;
  10688. },
  10689. updateChair() {
  10690. if (
  10691. this.groupStudent[this.toolindex][this.checkChair].length >
  10692. this.groupJson.number ||
  10693. this.groupStudent[this.toolindex][this.checkChair].length ==
  10694. this.groupJson.number
  10695. ) {
  10696. this.$message.error("位置已满,无法加入");
  10697. return;
  10698. }
  10699. let params = [
  10700. {
  10701. cid: this.id,
  10702. stage: this.courseType,
  10703. task: this.taskCount,
  10704. tool: this.toolindex,
  10705. g: this.checkChair,
  10706. uid: this.updateGroupUser.userid,
  10707. },
  10708. ];
  10709. this.ajax
  10710. .post(this.$store.state.api + "joinGroup", params)
  10711. .then((res) => {
  10712. this.$message.success("修改成功");
  10713. this.updateGroupUser = {};
  10714. this.checkChair = "";
  10715. this.updateGroupArray = {};
  10716. this.dialogVisibleUpdateGroup = false;
  10717. this.getCourseDetail();
  10718. })
  10719. .catch((err) => {
  10720. this.$message.error("网络不佳");
  10721. console.error(err);
  10722. });
  10723. },
  10724. deleteGroupChair(gindex) {
  10725. this.checkDeleteGroup = [];
  10726. this.deleteGroupUser = JSON.parse(
  10727. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  10728. );
  10729. this.deleteGroupArray = this.groupJson.group[gindex];
  10730. this.groupIndex = gindex;
  10731. this.dialogVisibleDeleteGroup = true;
  10732. },
  10733. async deleteChair() {
  10734. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  10735. const gid =
  10736. this.groupStudent[this.toolindex][this.groupIndex][
  10737. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  10738. this.checkDeleteGroup[i]
  10739. )
  10740. ];
  10741. let params = [
  10742. {
  10743. gid: gid.id,
  10744. },
  10745. ];
  10746. var a = await this.deleteChairA(params);
  10747. if (i == this.checkDeleteGroup.length - 1) {
  10748. this.$message.success("退出成功");
  10749. this.dialogVisibleDeleteGroup = false;
  10750. this.deleteGroupUser = [];
  10751. this.deleteGroupArray = {};
  10752. this.groupIndex = "";
  10753. this.checkDeleteGroup = [];
  10754. this.getCourseDetail();
  10755. }
  10756. }
  10757. },
  10758. deleteChairA(params) {
  10759. return new Promise((resolve, reject) => {
  10760. this.ajax
  10761. .post(this.$store.state.api + "exitGroup", params)
  10762. .then((res) => {
  10763. resolve(1);
  10764. })
  10765. .catch((err) => {
  10766. this.$message.error("网络不佳");
  10767. console.error(err);
  10768. });
  10769. });
  10770. },
  10771. contract(i) {
  10772. if (this.isCloseList[i].isClose == 0) {
  10773. this.isCloseList[i].isClose = 1;
  10774. } else {
  10775. this.isCloseList[i].isClose = 0;
  10776. }
  10777. this.$forceUpdate();
  10778. },
  10779. },
  10780. directives: {
  10781. // 使用局部注册指令的方式
  10782. resize: {
  10783. // 指令的名称
  10784. bind(el, binding) {
  10785. // el为绑定的元素,binding为绑定给指令的对象
  10786. let width = "",
  10787. height = "";
  10788. function isReize() {
  10789. const style = document.defaultView.getComputedStyle(el);
  10790. if (width !== style.width || height !== style.height) {
  10791. binding.value(); // 关键
  10792. }
  10793. width = style.width;
  10794. height = style.height;
  10795. }
  10796. el.__vueSetInterval__ = setInterval(isReize, 300);
  10797. },
  10798. unbind(el) {
  10799. clearInterval(el.__vueSetInterval__);
  10800. },
  10801. },
  10802. },
  10803. beforeDestroy() {
  10804. window.onresize = null;
  10805. clearInterval(this.timer);
  10806. this.timer = null;
  10807. clearInterval(this.opertimer);
  10808. this.opertimer = null;
  10809. },
  10810. computed: {
  10811. contentConvent() {
  10812. return function (c) {
  10813. return c
  10814. ? c
  10815. .replaceAll(/\r\n/g, "<br/>")
  10816. .replaceAll(/\n/g, "<br/>")
  10817. .replaceAll(/\s/g, " &nbsp")
  10818. : "";
  10819. };
  10820. },
  10821. },
  10822. mounted() {
  10823. if (this.screenType == 2) {
  10824. window.parent.postMessage({ allScreen: 4 }, "*");
  10825. } else if (this.screenType == 3) {
  10826. window.parent.postMessage({ allScreen: 5 }, "*");
  10827. } else if (this.screenType == 1) {
  10828. window.parent.postMessage({ allScreen: 6 }, "*");
  10829. }
  10830. this.setOperationTime();
  10831. this.selectEva();
  10832. this.getCourseDetail();
  10833. this.selectCount();
  10834. this.getHomeWork();
  10835. this.selectCStudent();
  10836. this.toolIndex = null
  10837. this.contentDialog = true;
  10838. this.setContent2(true)
  10839. if (this.tType == 4) {
  10840. this.pzDialog = true;
  10841. this.selectPz();
  10842. }
  10843. document.scrollingElement.scrollTop = 0;
  10844. window.addEventListener("resize", () => {
  10845. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10846. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10847. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  10848. });
  10849. let _this = this;
  10850. setTimeout(() => {
  10851. // _this.vedioTime = [];
  10852. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  10853. // _this.vedioTime[i] = document.getElementsByClassName(
  10854. // "vjs-duration-display"
  10855. // )[i].textContent;
  10856. // }
  10857. }, 1000);
  10858. },
  10859. };
  10860. </script>
  10861. <style scoped>
  10862. @media screen and (max-width: 1280px) {
  10863. /* .courseIndex > div:first-child(2) {
  10864. width: 15% !important;
  10865. } */
  10866. /* .navText {
  10867. width: 120px !important;
  10868. } */
  10869. .evaCss {
  10870. flex-direction: column !important;
  10871. align-items: center !important;
  10872. }
  10873. .dialog_diy1>>>.el-dialog {
  10874. width: 100% !important;
  10875. }
  10876. .rightWidthCss {
  10877. width: 100% !important;
  10878. }
  10879. .dialog_diy3>>>.el-dialog {
  10880. width: 100% !important;
  10881. }
  10882. /* .textTitle >>> .el-form-item__label {
  10883. width: 150px !important;
  10884. } */
  10885. }
  10886. .evaCssMax {
  10887. flex-direction: column !important;
  10888. align-items: center !important;
  10889. }
  10890. .dialog_diy>>>.el-dialog {
  10891. margin-top: 10vh !important;
  10892. }
  10893. .body_student {
  10894. width: 77%;
  10895. height: 100%;
  10896. position: absolute;
  10897. left: 22%;
  10898. top: 0;
  10899. }
  10900. .student_head {
  10901. width: 100%;
  10902. margin: 0 auto;
  10903. padding-bottom: 20px;
  10904. display: flex;
  10905. flex-direction: column;
  10906. flex-wrap: nowrap;
  10907. align-items: flex-start;
  10908. justify-content: flex-start;
  10909. }
  10910. .pb_left {
  10911. width: 20%;
  10912. margin-right: 10px;
  10913. background: rgb(255, 255, 255);
  10914. padding-right: 10px;
  10915. position: fixed;
  10916. height: 100%;
  10917. }
  10918. .wheel>img,
  10919. .project>img,
  10920. .star>img,
  10921. .evaluate>img,
  10922. .up_photo>img,
  10923. .chapter_add>img,
  10924. .deleteWord>img,
  10925. .question>img,
  10926. .homework>img {
  10927. width: 100%;
  10928. height: 100%;
  10929. }
  10930. .upCover>img {
  10931. width: 131px;
  10932. height: 69px;
  10933. object-fit: cover;
  10934. }
  10935. .upCover {
  10936. width: calc(100% / 3.5);
  10937. position: relative;
  10938. margin: 0 15px 10px 0;
  10939. display: flex;
  10940. flex-direction: column;
  10941. flex-wrap: nowrap;
  10942. justify-content: center;
  10943. align-content: center;
  10944. align-items: center;
  10945. height: fit-content;
  10946. }
  10947. .upCover2 {
  10948. width: 100%;
  10949. position: relative;
  10950. margin: 0 15px 10px 0;
  10951. display: flex;
  10952. flex-direction: column;
  10953. flex-wrap: nowrap;
  10954. justify-content: center;
  10955. align-content: center;
  10956. align-items: center;
  10957. }
  10958. .upCover2>img {
  10959. width: 100%;
  10960. height: 90px;
  10961. object-fit: contain;
  10962. }
  10963. .chapter_add {
  10964. width: 120px;
  10965. position: relative;
  10966. text-align: center;
  10967. }
  10968. .isAddThings {
  10969. margin-top: 20px;
  10970. position: relative;
  10971. text-align: center;
  10972. background: #f7f8fa;
  10973. height: 90px;
  10974. width: 90px;
  10975. display: flex;
  10976. flex-direction: column;
  10977. justify-content: center;
  10978. }
  10979. .deleteWord {
  10980. width: 22px;
  10981. height: 22px;
  10982. position: absolute;
  10983. right: -5px;
  10984. top: -5px;
  10985. cursor: pointer;
  10986. }
  10987. .box_course {
  10988. /* width: 60%; */
  10989. width: 81%;
  10990. }
  10991. .wheel {
  10992. width: 100%;
  10993. /* height: 100%; */
  10994. height: 650px;
  10995. }
  10996. .right_box {
  10997. display: flex;
  10998. flex-direction: column;
  10999. margin-left: 30px;
  11000. justify-content: space-around;
  11001. }
  11002. .right_box_title {
  11003. font-size: 23px;
  11004. }
  11005. .people {
  11006. display: flex;
  11007. }
  11008. .student_body {
  11009. width: 100%;
  11010. margin: 0 auto;
  11011. margin-top: 10px;
  11012. padding: 0 0 20px;
  11013. }
  11014. .study_top {
  11015. margin-top: 70px;
  11016. width: 100%;
  11017. /* overflow: auto; */
  11018. height: auto;
  11019. }
  11020. .study_top .checkbox {
  11021. display: flex;
  11022. align-items: center;
  11023. padding: 15px 0 15px 30px;
  11024. flex: 0 0 auto;
  11025. font-weight: bold;
  11026. border-bottom: 1px solid #eee;
  11027. }
  11028. .study_top .check {
  11029. padding-bottom: 5px;
  11030. text-align: center;
  11031. cursor: pointer;
  11032. height: 30px;
  11033. box-sizing: border-box;
  11034. display: flex;
  11035. }
  11036. .study_top .checked {
  11037. border-bottom: 4px solid #3fc6a0;
  11038. padding-bottom: 5px;
  11039. color: #3fc6a0;
  11040. display: flex;
  11041. height: 35px;
  11042. }
  11043. .study_top .checked>div,
  11044. .study_top .check>div {
  11045. margin-right: 5px;
  11046. }
  11047. .videoTop {
  11048. display: flex;
  11049. flex-direction: row;
  11050. justify-content: space-between;
  11051. background: #fff;
  11052. align-items: center;
  11053. width: 95%;
  11054. padding: 20px;
  11055. }
  11056. .upbtn {
  11057. margin: 25px;
  11058. background: #70afdb;
  11059. color: #fff;
  11060. width: 120px;
  11061. text-align: center;
  11062. height: 30px;
  11063. line-height: 30px;
  11064. font-size: 13px;
  11065. border-radius: 5px;
  11066. cursor: pointer;
  11067. }
  11068. .filebox {
  11069. display: flex;
  11070. flex-wrap: wrap;
  11071. flex-direction: column;
  11072. padding: 15px 0 5px;
  11073. }
  11074. .filebox .tooldetail {
  11075. width: 100%;
  11076. margin: 0px 12px;
  11077. background: rgb(247, 247, 247);
  11078. padding: 20px;
  11079. line-height: 30px;
  11080. word-break: break-word;
  11081. }
  11082. .file {
  11083. display: flex;
  11084. flex-direction: column;
  11085. align-items: center;
  11086. justify-content: center;
  11087. cursor: pointer;
  11088. width: 200px;
  11089. }
  11090. .file div {
  11091. margin-top: 10px;
  11092. width: 150px;
  11093. text-align: center;
  11094. overflow: hidden;
  11095. white-space: nowrap;
  11096. text-overflow: ellipsis;
  11097. }
  11098. .media {
  11099. display: flex;
  11100. flex-direction: column;
  11101. align-items: center;
  11102. justify-content: center;
  11103. margin: 0 20px 20px 0;
  11104. cursor: pointer;
  11105. margin: 12px 0 5px 15px;
  11106. overflow: hidden;
  11107. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  11108. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  11109. box-sizing: border-box;
  11110. }
  11111. .media img {
  11112. height: 90px;
  11113. width: 160px;
  11114. object-fit: cover;
  11115. }
  11116. .media .title {
  11117. padding: 5px;
  11118. text-align: left;
  11119. width: 100%;
  11120. box-sizing: border-box;
  11121. }
  11122. .media .btn {
  11123. width: 100%;
  11124. height: 35px;
  11125. line-height: 35px;
  11126. color: #fff;
  11127. background: #606060;
  11128. text-align: center;
  11129. overflow: hidden;
  11130. white-space: nowrap;
  11131. text-overflow: ellipsis;
  11132. }
  11133. .detail_content_top {
  11134. width: 100%;
  11135. padding: 25px 0 25px 0;
  11136. }
  11137. .detail_title {
  11138. text-align: center;
  11139. font-size: 24px;
  11140. }
  11141. .detail_time {
  11142. font-size: 13px;
  11143. padding: 15px 0 0 40px;
  11144. }
  11145. .detail_content {
  11146. line-height: 2pc;
  11147. width: 90%;
  11148. margin: 0 auto;
  11149. padding-top: 30px;
  11150. text-indent: 30px;
  11151. overflow: auto;
  11152. height: 200px;
  11153. }
  11154. .score_box>>>.el-rate {
  11155. margin-left: 10px;
  11156. }
  11157. .dialog_change>>>.el-dialog {
  11158. border-radius: 5px;
  11159. }
  11160. .dialog_change>>>.el-dialog__header {
  11161. background: #f2f2f2;
  11162. text-align: center;
  11163. }
  11164. .dialog_change>>>.el-dialog__title {
  11165. line-height: 5px;
  11166. }
  11167. .dialog_change>>>.el-dialog__body {
  11168. background: #fff;
  11169. padding: 10px 20px;
  11170. }
  11171. .score_box {
  11172. display: flex;
  11173. align-items: center;
  11174. margin-bottom: 18px;
  11175. margin-top: 20px;
  11176. }
  11177. .up_photo {
  11178. width: 120px;
  11179. cursor: pointer;
  11180. margin-top: 10px;
  11181. }
  11182. .up_photo2 {
  11183. width: 180px;
  11184. box-sizing: border-box;
  11185. min-width: 180px;
  11186. height: 180px;
  11187. max-height: 180px;
  11188. min-height: 180px;
  11189. cursor: pointer;
  11190. display: flex;
  11191. flex-direction: column;
  11192. align-items: center;
  11193. justify-content: center;
  11194. background: rgb(242, 246, 255);
  11195. /* padding: 25px; */
  11196. margin-bottom: 10px;
  11197. }
  11198. .up_photo2 img {
  11199. width: 50%;
  11200. height: auto;
  11201. }
  11202. .up_photo2 span {
  11203. color: #898989;
  11204. }
  11205. .plworkBox {
  11206. display: flex;
  11207. align-items: center;
  11208. margin-top: 10px;
  11209. flex-wrap: wrap;
  11210. }
  11211. .upload_send {
  11212. margin: 30px auto 30px;
  11213. width: 60%;
  11214. background: #169bd6;
  11215. text-align: center;
  11216. height: 35px;
  11217. line-height: 35px;
  11218. color: #fff;
  11219. border-radius: 5px;
  11220. cursor: pointer;
  11221. }
  11222. .marginT {
  11223. margin-top: 20px;
  11224. }
  11225. .cd_content_steps {
  11226. display: flex;
  11227. width: 90%;
  11228. justify-content: space-around;
  11229. border-top: 1px solid #eeeeee;
  11230. }
  11231. .cd_steps_box {
  11232. display: flex;
  11233. justify-content: center;
  11234. align-items: center;
  11235. flex-direction: column;
  11236. cursor: pointer;
  11237. }
  11238. .first {
  11239. display: flex;
  11240. align-items: center;
  11241. margin: 15px 0 20px 0;
  11242. font-size: 20px;
  11243. }
  11244. .first>div:nth-child(2) {
  11245. font-size: 16px !important;
  11246. padding-left: 10px;
  11247. line-height: 26px;
  11248. box-sizing: border-box;
  11249. }
  11250. .blue_box_one {
  11251. text-align: center;
  11252. color: #fff;
  11253. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  11254. border-radius: 7px;
  11255. margin: 10px;
  11256. cursor: pointer;
  11257. width: 95%;
  11258. height: 45px;
  11259. display: flex;
  11260. flex-direction: row;
  11261. justify-content: flex-start;
  11262. align-items: center;
  11263. }
  11264. .blue_box_one>div:nth-child(1) {
  11265. line-height: 30px;
  11266. margin: 0 5px 0 10px;
  11267. width: 30%;
  11268. min-width: 70px;
  11269. border-radius: 4px;
  11270. }
  11271. .blue_box_one>div:nth-child(2) {
  11272. white-space: nowrap;
  11273. text-overflow: ellipsis;
  11274. overflow: hidden;
  11275. word-break: break-all;
  11276. width: 70%;
  11277. text-align: left;
  11278. margin-right: 10px;
  11279. max-width: calc(100% - 85px);
  11280. }
  11281. .blue_box_one>div:nth-child(2):hover {
  11282. overflow: hidden;
  11283. text-overflow: ellipsis;
  11284. white-space: nowrap;
  11285. cursor: pointer;
  11286. }
  11287. .upFile {
  11288. margin: 0 auto;
  11289. width: 120px;
  11290. background: #70afdb;
  11291. color: #fff;
  11292. height: 30px;
  11293. text-align: center;
  11294. line-height: 30px;
  11295. border-radius: 5px;
  11296. font-size: 14px;
  11297. cursor: pointer;
  11298. }
  11299. .courseTitle {
  11300. background: #205cc6;
  11301. width: 85%;
  11302. margin: 10px auto;
  11303. color: #fff;
  11304. border-radius: 5px;
  11305. padding: 10px 10px;
  11306. display: flex;
  11307. flex-direction: row;
  11308. align-items: center;
  11309. justify-content: space-between;
  11310. text-align: center;
  11311. }
  11312. .courseTitle .ctitle {
  11313. font-weight: bold;
  11314. font-size: 20px;
  11315. white-space: nowrap;
  11316. overflow: hidden;
  11317. text-overflow: ellipsis;
  11318. }
  11319. .courseTitle .inviteBox {
  11320. font-size: 14px;
  11321. margin-top: 5px;
  11322. color: #a6cbff;
  11323. }
  11324. .courseTitle>>>.el-tooltip {
  11325. width: 100%;
  11326. white-space: nowrap;
  11327. overflow: hidden;
  11328. text-overflow: ellipsis;
  11329. word-break: break-word;
  11330. }
  11331. .ml {
  11332. margin-left: 20px;
  11333. color: #5b7dba;
  11334. border-left: 3px solid #5b7dba;
  11335. padding-left: 5px;
  11336. font-weight: bold;
  11337. }
  11338. .return {
  11339. width: 2rem;
  11340. height: 2rem;
  11341. cursor: pointer;
  11342. }
  11343. .return>img {
  11344. width: 100%;
  11345. height: 100%;
  11346. }
  11347. .returnBtn {
  11348. background: #499eef;
  11349. width: 65px;
  11350. height: 30px;
  11351. color: #fff;
  11352. text-align: center;
  11353. line-height: 32px;
  11354. margin-right: 20px;
  11355. cursor: pointer;
  11356. border-radius: 5px;
  11357. font-size: 14px;
  11358. }
  11359. .tool {
  11360. display: flex;
  11361. flex-direction: column;
  11362. flex-wrap: nowrap;
  11363. width: 13%;
  11364. margin: 0 30px;
  11365. align-items: center;
  11366. }
  11367. .whiteBIcon {
  11368. width: 150px;
  11369. cursor: pointer;
  11370. }
  11371. .whiteBIcon>img {
  11372. width: 100%;
  11373. height: 100%;
  11374. }
  11375. .mask {
  11376. background-color: rgba(0, 0, 0, 0);
  11377. position: fixed;
  11378. top: 0;
  11379. left: 0;
  11380. width: 100%;
  11381. height: 100%;
  11382. z-index: 20000;
  11383. display: flex;
  11384. align-items: center;
  11385. justify-content: center;
  11386. }
  11387. .progressBox {
  11388. width: 500px;
  11389. height: 180px;
  11390. background: #fff;
  11391. border-radius: 10px;
  11392. box-shadow: 0 0 6px 1px #bfbfbf;
  11393. display: flex;
  11394. align-items: center;
  11395. justify-content: center;
  11396. flex-direction: column;
  11397. position: relative;
  11398. color: #6c6c6c;
  11399. }
  11400. .progressBox>>>.el-progress-bar__outer {
  11401. background-color: #d1dfff !important;
  11402. }
  11403. .progressBox .lbox {
  11404. height: 50px;
  11405. font-size: 19px;
  11406. display: flex;
  11407. align-items: center;
  11408. color: #747474;
  11409. }
  11410. .progressBox .lbox img {
  11411. width: 40px;
  11412. margin-right: 20px;
  11413. }
  11414. .closeCss {
  11415. position: absolute;
  11416. top: 8px;
  11417. right: 8px;
  11418. cursor: pointer;
  11419. width: 20px;
  11420. height: 20px;
  11421. }
  11422. .closeCss>img {
  11423. width: 100%;
  11424. height: 100%;
  11425. }
  11426. .uploadVedio {
  11427. display: flex;
  11428. flex-direction: column;
  11429. flex-wrap: nowrap;
  11430. justify-content: center;
  11431. align-items: center;
  11432. margin: 0 15px 10px 0;
  11433. }
  11434. .uploadVedio>img {
  11435. width: 30px;
  11436. height: 30px;
  11437. }
  11438. .uploadVedio>span {
  11439. white-space: nowrap;
  11440. overflow: hidden;
  11441. text-overflow: ellipsis;
  11442. width: 75px;
  11443. margin-top: 7px;
  11444. }
  11445. .picName {
  11446. white-space: nowrap;
  11447. overflow: hidden;
  11448. text-overflow: ellipsis;
  11449. width: 75px;
  11450. margin-top: 7px;
  11451. }
  11452. .new_top {
  11453. display: flex;
  11454. background: #fff;
  11455. flex-direction: row;
  11456. justify-content: flex-start;
  11457. align-items: center;
  11458. height: 60px;
  11459. position: relative;
  11460. }
  11461. .before {
  11462. position: absolute;
  11463. background: #c3dad4;
  11464. width: 6px;
  11465. height: 100%;
  11466. }
  11467. .courseIndex {
  11468. display: flex;
  11469. flex-direction: row;
  11470. align-items: center;
  11471. width: calc(100% - 520px);
  11472. }
  11473. .courseIndex>div:nth-child(1) {
  11474. margin: 0 20px;
  11475. padding-left: 5px;
  11476. font-size: 24px;
  11477. min-width: 100px;
  11478. font-weight: bold;
  11479. border-left: 4px solid #3363b9;
  11480. height: 35px;
  11481. text-align: center;
  11482. line-height: 35px;
  11483. }
  11484. .courseIndex>div:nth-child(2) {
  11485. font-size: 23px;
  11486. /* width: 300px; */
  11487. max-width: calc(100% - 180px);
  11488. white-space: nowrap;
  11489. overflow: hidden;
  11490. text-overflow: ellipsis;
  11491. }
  11492. .courseIndex>div:nth-child(3) {
  11493. border-bottom: 1px solid #d7d7d7;
  11494. padding-bottom: 5px;
  11495. background: #49a0f0;
  11496. width: 55px;
  11497. min-width: 55px;
  11498. border-radius: 5px;
  11499. color: #fff;
  11500. text-align: center;
  11501. height: 20px;
  11502. line-height: 26px;
  11503. font-size: 14px;
  11504. margin: 0 0 0 10px;
  11505. }
  11506. .course_text {
  11507. padding: 20px 0 0 15px;
  11508. text-indent: 30px;
  11509. width: 80%;
  11510. min-height: 20px;
  11511. }
  11512. .vedioList {
  11513. background: #f2f2f2;
  11514. border: 1px solid #ececec;
  11515. /* width: 38.8%; */
  11516. width: 100%;
  11517. height: 445px;
  11518. border-radius: 10px;
  11519. overflow: hidden;
  11520. }
  11521. .vedioNav {
  11522. margin: 10px 0 0 15px;
  11523. border-bottom: 1px solid #d7d7d7;
  11524. padding-bottom: 5px;
  11525. background: #96d1ff;
  11526. width: 55px;
  11527. min-width: 55px;
  11528. border-radius: 5px;
  11529. color: #fff;
  11530. text-align: center;
  11531. height: 20px;
  11532. line-height: 26px;
  11533. font-size: 14px;
  11534. }
  11535. .queTop {
  11536. display: flex;
  11537. padding: 20px 0 20px 30px;
  11538. width: 100%;
  11539. flex-direction: row;
  11540. justify-content: flex-start;
  11541. align-items: center;
  11542. border-bottom: 1px solid #eeeeee;
  11543. box-sizing: border-box;
  11544. }
  11545. .question {
  11546. width: 40px;
  11547. margin-right: 10px;
  11548. margin-top: 7px;
  11549. }
  11550. .queTitle {
  11551. margin-left: 5px;
  11552. font-size: 25px;
  11553. display: flex;
  11554. align-items: center;
  11555. }
  11556. .addEditor {
  11557. width: 100px;
  11558. height: 30px;
  11559. background: #42cda6;
  11560. color: #fff;
  11561. border-radius: 5px;
  11562. text-align: center;
  11563. line-height: 30px;
  11564. box-shadow: 1px 3px 6px 1px #bfbfbf;
  11565. cursor: pointer;
  11566. }
  11567. .vedioName {
  11568. /* text-overflow: ellipsis;
  11569. top: 8px;
  11570. font-size: 14px;
  11571. overflow: hidden;
  11572. width: 100%;
  11573. word-break: break-all;
  11574. white-space: nowrap; */
  11575. cursor: pointer;
  11576. margin: 0px 0px 10px 5px;
  11577. white-space: nowrap;
  11578. overflow: hidden;
  11579. text-overflow: ellipsis;
  11580. width: 100%;
  11581. }
  11582. .vedioTime {
  11583. width: 35px;
  11584. position: absolute;
  11585. color: #fff;
  11586. bottom: 0px;
  11587. right: 0px;
  11588. text-align: center;
  11589. background: #46411f;
  11590. height: 20px;
  11591. font-size: 14px;
  11592. line-height: 20px;
  11593. }
  11594. .homework {
  11595. width: 200px;
  11596. display: flex;
  11597. flex-direction: column;
  11598. flex-wrap: nowrap;
  11599. align-items: center;
  11600. cursor: pointer;
  11601. }
  11602. .homebox {
  11603. display: flex;
  11604. flex-wrap: wrap;
  11605. flex-direction: row;
  11606. justify-content: flex-start;
  11607. align-items: center;
  11608. padding: 15px 0;
  11609. }
  11610. .isChooseActive {
  11611. color: #3e88f4;
  11612. border-bottom: 2px solid #2f80f3;
  11613. }
  11614. .chooseWho {
  11615. display: flex;
  11616. width: 100%;
  11617. flex-direction: row;
  11618. flex-wrap: nowrap;
  11619. justify-content: flex-start;
  11620. padding-bottom: 10px;
  11621. }
  11622. .chooseWho>div {
  11623. cursor: pointer;
  11624. padding-bottom: 10px;
  11625. margin: 0 30px;
  11626. }
  11627. .addPoint>div>img {
  11628. cursor: pointer;
  11629. margin: 0 10px;
  11630. width: 85px;
  11631. border-radius: 15px;
  11632. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  11633. }
  11634. .addPoint>div {
  11635. display: flex;
  11636. flex-direction: column;
  11637. flex-wrap: nowrap;
  11638. align-items: center;
  11639. }
  11640. .isBorder>div {
  11641. margin: 0 0 10px 0;
  11642. align-items: flex-start !important;
  11643. }
  11644. .noiframeBox {
  11645. display: flex;
  11646. flex-wrap: wrap;
  11647. }
  11648. .iframeBox iframe {
  11649. width: 100%;
  11650. height: 800px;
  11651. border: none;
  11652. margin-bottom: 20px;
  11653. border: 1px solid #ccc;
  11654. }
  11655. .upload_toolBtn {
  11656. background: #6b92c9;
  11657. color: #fff;
  11658. width: 110px;
  11659. text-align: center;
  11660. height: 35px;
  11661. line-height: 35px;
  11662. font-size: 14px;
  11663. border-radius: 5px;
  11664. cursor: pointer;
  11665. position: absolute;
  11666. right: 10px;
  11667. bottom: 0;
  11668. }
  11669. .binfo_input,
  11670. .pj {
  11671. font: inherit;
  11672. color: currentColor;
  11673. width: 100%;
  11674. margin: 0;
  11675. padding: 15px 14px;
  11676. display: block;
  11677. min-width: 0;
  11678. outline: none;
  11679. box-sizing: content-box;
  11680. background: none;
  11681. -webkit-tap-highlight-color: transparent;
  11682. border: 1px solid rgba(0, 0, 0, 0.23);
  11683. border-radius: 4px;
  11684. box-sizing: border-box;
  11685. resize: none;
  11686. }
  11687. .binfo_input:focus-visible {
  11688. border: 1px solid rgba(61, 103, 188);
  11689. }
  11690. .dialog_diy>>>.el-dialog__header,
  11691. .dialog_diy1>>>.el-dialog__header {
  11692. background: #454545 !important;
  11693. padding: 15px 20px;
  11694. }
  11695. .dialog_diy>>>.el-dialog__title,
  11696. .dialog_diy1>>>.el-dialog__title {
  11697. color: #fff;
  11698. }
  11699. .dialog_diy>>>.el-dialog__headerbtn,
  11700. .dialog_diy1>>>.el-dialog__headerbtn {
  11701. top: 19px;
  11702. }
  11703. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  11704. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  11705. color: #fff;
  11706. }
  11707. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  11708. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  11709. color: #fff;
  11710. }
  11711. .dialog_diy1>>>.el-dialog__body {
  11712. padding: 0;
  11713. }
  11714. .dialog_diy>>>.el-dialog__body,
  11715. .dialog_diy>>>.el-dialog__footer,
  11716. .dialog_diy1>>>.el-dialog__footer {
  11717. background: #fafafa;
  11718. }
  11719. .a_addBox {
  11720. margin: 10px 0;
  11721. background: #fff;
  11722. padding: 15px;
  11723. max-height: 400px;
  11724. overflow: auto;
  11725. }
  11726. .a_add_box {
  11727. border-bottom: 2px solid #eee;
  11728. padding-bottom: 10px;
  11729. }
  11730. .a_add_head {
  11731. display: flex;
  11732. align-items: flex-start;
  11733. /* justify-content: space-between; */
  11734. flex-direction: column;
  11735. /* flex-direction: row; */
  11736. margin: 10px 0 20px 0;
  11737. font-size: 18px;
  11738. width: 100%;
  11739. }
  11740. .a_add_head .a_add_head_input {
  11741. width: 300px;
  11742. }
  11743. .a_add_head .a_add_head_div {
  11744. display: flex;
  11745. align-items: center;
  11746. justify-content: space-between;
  11747. }
  11748. .a_add_body {
  11749. display: flex;
  11750. align-items: center;
  11751. }
  11752. .a_add_input {
  11753. display: flex;
  11754. align-items: center;
  11755. flex-wrap: wrap;
  11756. }
  11757. .a_add_input>>>el-radio-group {
  11758. margin: 10px 0;
  11759. }
  11760. .a_add_input>>>.el-radio,
  11761. .a_add_input>>>.el-checkbox {
  11762. margin-bottom: 10px;
  11763. display: flex;
  11764. flex-direction: row;
  11765. flex-wrap: nowrap;
  11766. align-items: center;
  11767. }
  11768. .redioStyle>>>.el-radio__label {
  11769. font-size: 18px;
  11770. }
  11771. .redioStyle>>>.el-checkbox__label {
  11772. font-size: 18px;
  11773. }
  11774. .toolHeng2 {
  11775. width: 100%;
  11776. }
  11777. .toolHeng {
  11778. display: flex;
  11779. flex-direction: row;
  11780. flex-wrap: wrap;
  11781. justify-content: flex-start;
  11782. align-items: center;
  11783. width: 100%;
  11784. }
  11785. .toolHeng>div {
  11786. padding-left: 20px;
  11787. }
  11788. .isWidth {
  11789. width: 20%;
  11790. }
  11791. .textTitle {
  11792. display: flex;
  11793. flex-direction: row;
  11794. flex-wrap: nowrap;
  11795. align-items: center;
  11796. width: 95%;
  11797. }
  11798. .textTitle>>>.el-form-item__label {
  11799. font-size: 22px;
  11800. color: #918f8f;
  11801. width: 100px;
  11802. }
  11803. .textTitle>>>.el-form-item__content {
  11804. width: calc(100% - 100px);
  11805. }
  11806. .textCss>>>.el-dialog {
  11807. width: 800px !important;
  11808. height: 400px;
  11809. background: #fafafa;
  11810. }
  11811. .textCss>>>.el-dialog__body {
  11812. margin: 55px 8% 0 8%;
  11813. padding: 0 !important;
  11814. }
  11815. .textCss>>>.el-dialog__footer {
  11816. padding-top: 38px;
  11817. }
  11818. .toolsCss>>>.el-dialog__body {
  11819. padding: 20px;
  11820. }
  11821. .lineCss>>>.el-dialog__body {
  11822. display: flex;
  11823. flex-direction: row;
  11824. align-items: center;
  11825. justify-content: center;
  11826. }
  11827. .newNav {
  11828. display: flex;
  11829. flex-direction: row;
  11830. align-items: baseline;
  11831. justify-content: flex-start;
  11832. }
  11833. .navText {
  11834. cursor: pointer;
  11835. margin: 0px 0px 10px 5px;
  11836. white-space: nowrap;
  11837. overflow: hidden;
  11838. text-overflow: ellipsis;
  11839. /* width: 300px; */
  11840. width: 100%;
  11841. }
  11842. .noVedio {
  11843. display: flex;
  11844. flex-direction: row;
  11845. justify-content: center;
  11846. align-content: center;
  11847. }
  11848. .noNavText {
  11849. cursor: pointer;
  11850. margin: 0px 0px 10px 5px;
  11851. width: 112px;
  11852. }
  11853. .listNoVedio {
  11854. margin: 0 0 0 30px;
  11855. width: 97%;
  11856. }
  11857. .video-player>>>.video-js {
  11858. height: 100%;
  11859. }
  11860. .hangVedioList {
  11861. width: 90% !important;
  11862. height: 150px !important;
  11863. margin: 20px 0 0 30px;
  11864. }
  11865. .hangVedio {
  11866. width: 100%;
  11867. height: 170px !important;
  11868. align-items: flex-start !important;
  11869. }
  11870. .hangHand {
  11871. height: 150px !important;
  11872. }
  11873. .twoChild {
  11874. width: 95%;
  11875. margin: 10px;
  11876. border-radius: 5px;
  11877. background: #f2f2f2;
  11878. display: flex;
  11879. flex-direction: column;
  11880. flex-wrap: nowrap;
  11881. justify-content: flex-start;
  11882. align-items: flex-start;
  11883. transition: all 0.5s;
  11884. overflow: hidden;
  11885. height: 0;
  11886. background: #e7f3ff;
  11887. }
  11888. .twoChild>div:nth-child(1) {
  11889. margin-top: 5px;
  11890. }
  11891. .navChild {
  11892. width: 100%;
  11893. cursor: pointer;
  11894. margin-bottom: 10px;
  11895. position: relative;
  11896. }
  11897. .navChild img {
  11898. position: absolute;
  11899. right: 11px;
  11900. width: 15px;
  11901. top: 50%;
  11902. transform: translateY(-50%);
  11903. }
  11904. .navActive {
  11905. height: auto;
  11906. }
  11907. .navTask {
  11908. display: flex;
  11909. flex-direction: row;
  11910. flex-wrap: nowrap;
  11911. align-items: center;
  11912. align-content: flex-start;
  11913. height: 40px;
  11914. justify-content: flex-start;
  11915. padding: 0 10px;
  11916. width: 100%;
  11917. box-sizing: border-box;
  11918. }
  11919. .navTaskname {
  11920. white-space: nowrap;
  11921. text-overflow: ellipsis;
  11922. overflow: hidden;
  11923. word-break: break-all;
  11924. padding-left: 5px;
  11925. }
  11926. .openTaskActive {
  11927. color: #4386e6;
  11928. }
  11929. .iframeName {
  11930. margin: 5px 0;
  11931. border-left: 4px solid #41c4a4;
  11932. padding-left: 4px;
  11933. }
  11934. .toolTitle {
  11935. margin: 0px 0px 20px;
  11936. font-size: 20px;
  11937. font-weight: 500;
  11938. border-left: 4px solid #41c4a4;
  11939. padding-left: 4px;
  11940. }
  11941. .cru_selectBox {
  11942. overflow: auto;
  11943. width: 96%;
  11944. margin: 0 auto;
  11945. height: calc(100% - 40px - 21px - 20px);
  11946. }
  11947. .cru_selectBox::-webkit-scrollbar,
  11948. .study_top::-webkit-scrollbar,
  11949. .textContent::-webkit-scrollbar {
  11950. /*滚动条整体样式*/
  11951. width: 6px;
  11952. /*高宽分别对应横竖滚动条的尺寸*/
  11953. height: 6px;
  11954. }
  11955. /*定义滚动条轨道 内阴影+圆角*/
  11956. .cru_selectBox::-webkit-scrollbar-track,
  11957. .study_top::-webkit-scrollbar-track,
  11958. .textContent::-webkit-scrollbar {
  11959. border-radius: 10px;
  11960. background-color: #b8bdc9;
  11961. }
  11962. /*定义滑块 内阴影+圆角*/
  11963. .cru_selectBox::-webkit-scrollbar-thumb,
  11964. .study_top::-webkit-scrollbar-thumb,
  11965. .textContent::-webkit-scrollbar-thumb {
  11966. border-radius: 10px;
  11967. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  11968. background-color: #2c5ab3;
  11969. }
  11970. .vedioBox {
  11971. border-radius: 20px;
  11972. background: #fff;
  11973. margin-bottom: 10px;
  11974. overflow: auto;
  11975. }
  11976. .taskBox {
  11977. margin: 15px auto 20px;
  11978. background: #f7f7f7;
  11979. width: 97%;
  11980. border-radius: 10px;
  11981. }
  11982. .vedioTaskBox {
  11983. width: 100%;
  11984. display: flex;
  11985. flex-direction: row;
  11986. flex-wrap: nowrap;
  11987. align-items: flex-start;
  11988. position: relative;
  11989. }
  11990. .toolBox {
  11991. padding: 20px 60px 15px;
  11992. display: flex;
  11993. position: relative;
  11994. }
  11995. .btnAll {
  11996. position: absolute;
  11997. right: 0;
  11998. display: flex;
  11999. flex-direction: row;
  12000. flex-wrap: nowrap;
  12001. align-items: center;
  12002. }
  12003. .btnAllNT{
  12004. position: fixed;
  12005. bottom:50px;
  12006. right:40px;
  12007. z-index: 999;
  12008. display: flex;
  12009. flex-direction: row;
  12010. }
  12011. .btnAllNT > img{
  12012. cursor:pointer;
  12013. width:80px;
  12014. }
  12015. .vedioTimeBox {
  12016. display: flex;
  12017. flex-direction: row;
  12018. align-items: center;
  12019. flex-wrap: nowrap;
  12020. position: relative;
  12021. }
  12022. .navBox {
  12023. background: #fff;
  12024. height: calc(100% - 40px);
  12025. padding: 5px 1px 0;
  12026. overflow-y: auto;
  12027. overflow-x: hidden;
  12028. }
  12029. .tool_work_box {
  12030. width: 100%;
  12031. padding: 0 30px 10px;
  12032. box-sizing: border-box;
  12033. }
  12034. .worksBox {
  12035. padding: 5px 0;
  12036. border-bottom: 1px solid #eeeeee;
  12037. }
  12038. .worksBTitle {
  12039. font-size: 20px;
  12040. padding-bottom: 15px;
  12041. border-bottom: 1px solid #eeeeee;
  12042. display: flex;
  12043. align-items: center;
  12044. }
  12045. .greenBox {
  12046. width: 5px;
  12047. height: 30px;
  12048. background: #63b6fa;
  12049. margin-right: 5px;
  12050. }
  12051. .worksDetailBox {
  12052. display: flex;
  12053. width: 100%;
  12054. flex-direction: row;
  12055. flex-wrap: wrap;
  12056. align-items: flex-end;
  12057. justify-content: flex-start;
  12058. padding: 15px 0;
  12059. }
  12060. .works {
  12061. display: flex;
  12062. flex-direction: column;
  12063. flex-wrap: nowrap;
  12064. align-items: flex-start;
  12065. justify-content: flex-start;
  12066. align-content: center;
  12067. max-width: 240px;
  12068. width: calc(100% / 3 - 10px);
  12069. height: auto;
  12070. margin-right: 10px;
  12071. margin-bottom: 10px;
  12072. overflow: hidden;
  12073. height: 140px;
  12074. box-shadow: 0 0 6px 1px #dfdada;
  12075. border-radius: 15px;
  12076. }
  12077. .workImg {
  12078. width: 100%;
  12079. /* height: calc(100% - 40px); */
  12080. height: 105px;
  12081. position: relative;
  12082. }
  12083. .workImg>img {
  12084. width: 100%;
  12085. height: 100%;
  12086. object-fit: contain;
  12087. cursor: pointer;
  12088. }
  12089. .worksName {
  12090. height: 40px;
  12091. line-height: 40px;
  12092. display: flex;
  12093. width: 100%;
  12094. flex-direction: row;
  12095. flex-wrap: nowrap;
  12096. justify-content: space-between;
  12097. align-items: center;
  12098. margin: 0 0 0 10px;
  12099. }
  12100. .worksName>div:nth-child(1) {
  12101. width: 110px;
  12102. white-space: nowrap;
  12103. overflow: hidden;
  12104. text-overflow: ellipsis;
  12105. }
  12106. .worksName>div:nth-child(2) {
  12107. color: #b7b4b5;
  12108. }
  12109. .noWorksS {
  12110. padding: 15px 0 0;
  12111. display: flex;
  12112. flex-direction: row;
  12113. flex-wrap: wrap;
  12114. align-items: center;
  12115. justify-content: flex-start;
  12116. }
  12117. .noWorksS>div {
  12118. cursor: pointer;
  12119. }
  12120. .noWorksName,
  12121. .isWorksName {
  12122. background: #7cbcf1;
  12123. color: #fff;
  12124. width: 90px;
  12125. height: 25px;
  12126. text-align: center;
  12127. line-height: 25px;
  12128. border-radius: 5px;
  12129. margin: 10px 15px 10px 0;
  12130. white-space: nowrap;
  12131. overflow: hidden;
  12132. padding: 5px;
  12133. text-overflow: ellipsis;
  12134. }
  12135. .isWorksName {
  12136. cursor: pointer;
  12137. background: #46a1eb !important;
  12138. width: 100px;
  12139. height: 40px;
  12140. line-height: 40px;
  12141. position: relative;
  12142. }
  12143. .noWorksName:hover {
  12144. background: #46a1eb !important;
  12145. }
  12146. .title {
  12147. background: #1e5cc9;
  12148. /* width: 98%; */
  12149. height: 45px;
  12150. color: #fff;
  12151. line-height: 45px;
  12152. padding-left: 20px;
  12153. box-sizing: border-box;
  12154. }
  12155. .textBox {
  12156. font-size: 20px;
  12157. width: 90%;
  12158. display: flex;
  12159. flex-direction: column;
  12160. align-items: center;
  12161. margin: 20px auto 0;
  12162. max-height: 500px;
  12163. overflow: auto;
  12164. }
  12165. .textContent {
  12166. font-size: 18px;
  12167. width: 95%;
  12168. max-width: 95%;
  12169. }
  12170. .answerBg {
  12171. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  12172. background-size: 100% 100%;
  12173. width: 100%;
  12174. height: 100%;
  12175. color: #fff;
  12176. text-align: center;
  12177. display: flex;
  12178. flex-direction: column;
  12179. flex-wrap: nowrap;
  12180. align-items: center;
  12181. position: relative;
  12182. justify-content: center;
  12183. }
  12184. .answerBg>div:nth-child(1) {
  12185. /* font-size: 22px;
  12186. padding: 25px 0 10px; */
  12187. }
  12188. .answerContent {
  12189. width: 215px;
  12190. max-height: 60px;
  12191. word-break: break-all;
  12192. text-align: center;
  12193. /* white-space: nowrap; */
  12194. overflow: hidden;
  12195. text-overflow: ellipsis;
  12196. /* padding: 23px 0 0; */
  12197. -webkit-line-clamp: 3;
  12198. -webkit-box-orient: vertical;
  12199. display: -webkit-box;
  12200. font-size: 15px;
  12201. }
  12202. .elist_input_box {
  12203. display: flex;
  12204. align-items: flex-start;
  12205. flex-wrap: nowrap;
  12206. padding: 10px 0 15px 30px;
  12207. flex-direction: column;
  12208. }
  12209. .elist_input {
  12210. /* width: 40%; */
  12211. width: 100%;
  12212. }
  12213. .elist_input .elist_input_box input {
  12214. font: inherit;
  12215. color: currentColor;
  12216. width: 200px;
  12217. padding: 8px 14px;
  12218. display: block;
  12219. min-width: 0;
  12220. outline: none;
  12221. border: 1px solid rgba(0, 0, 0, 0.23);
  12222. border-radius: 4px;
  12223. box-sizing: border-box;
  12224. background: #fff;
  12225. margin: 0 20px 0 0;
  12226. }
  12227. .elist_input .elist_input_box span {
  12228. height: 36px;
  12229. line-height: 36px;
  12230. color: rgb(82, 82, 82);
  12231. }
  12232. .elist_input .elist_input_box .remove {
  12233. height: 20px;
  12234. width: 20px;
  12235. background-size: 100% 100%;
  12236. background-position: unset;
  12237. margin-left: 5px;
  12238. }
  12239. .elist_input_box>>>.el-rate {
  12240. display: flex;
  12241. height: 36px;
  12242. align-items: center;
  12243. }
  12244. .elist_input_box .elist_inptu_text {
  12245. min-height: 50px;
  12246. /* width: 500px;
  12247. max-height: 150px; */
  12248. width: 100%;
  12249. line-height: 50px;
  12250. color: rgb(82, 82, 82);
  12251. overflow: auto;
  12252. text-indent: 5px;
  12253. background: #f7f6f9;
  12254. border-radius: 10px;
  12255. }
  12256. .elist_input_box .elist_inptu_text input {
  12257. width: 500px;
  12258. }
  12259. .elist_input_box>>>.el-rate__icon {
  12260. font-size: 24px;
  12261. }
  12262. .isClick {
  12263. background: #4d9def;
  12264. }
  12265. .bzBox {
  12266. display: flex;
  12267. flex-direction: row;
  12268. align-items: center;
  12269. }
  12270. .bzBox>div:nth-child(1) {
  12271. width: 4px;
  12272. height: 40px;
  12273. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  12274. }
  12275. .bzBox>div:nth-child(2) {
  12276. font-size: 23px;
  12277. font-weight: bold;
  12278. padding: 0px 0px 0 10px;
  12279. }
  12280. .navTitile {
  12281. padding: 0 0px 0 15px;
  12282. color: #fff;
  12283. height: 40px;
  12284. line-height: 40px;
  12285. }
  12286. .isTypeOne {
  12287. width: 240px;
  12288. height: 170px;
  12289. /* border: 1px solid #f8f8f8; */
  12290. border-radius: 10px;
  12291. box-shadow: 0 0 6px 1px #dfdada;
  12292. }
  12293. .e_add_top {
  12294. display: flex;
  12295. justify-content: space-between;
  12296. padding: 20px 20px 0 20px;
  12297. border-radius: 3px;
  12298. background: #fff;
  12299. }
  12300. .e_add_title2 {
  12301. display: flex;
  12302. align-items: center;
  12303. }
  12304. .e_add_title2 span {
  12305. width: 40px;
  12306. }
  12307. .e_add_title {
  12308. display: flex;
  12309. align-items: center;
  12310. color: #b8b8b8;
  12311. font-size: 18px;
  12312. position: relative;
  12313. height: 40px;
  12314. }
  12315. .e_add_title span {
  12316. margin-right: 10px;
  12317. }
  12318. .e_add_title .el_input {
  12319. width: 300px;
  12320. }
  12321. .e_add_title>>>.el-input__inner {
  12322. width: 400px;
  12323. }
  12324. .e_add_btn {}
  12325. .e_add_content {
  12326. display: flex;
  12327. width: 100%;
  12328. max-width: 650px;
  12329. height: 550px;
  12330. }
  12331. .e_add_list {
  12332. background: #fff;
  12333. height: 500px;
  12334. width: 210px;
  12335. position: relative;
  12336. margin: 15px 5px 0 0;
  12337. flex-shrink: 0;
  12338. display: flex;
  12339. flex-direction: column;
  12340. }
  12341. .e_add_list_title {
  12342. font-size: 20px;
  12343. width: 100%;
  12344. box-sizing: border-box;
  12345. padding: 15px 40px;
  12346. text-align: center;
  12347. border-bottom: 1px solid #eaeaea;
  12348. position: relative;
  12349. display: flex;
  12350. align-items: center;
  12351. justify-content: center;
  12352. height: 57px;
  12353. background: #f6f6f6;
  12354. }
  12355. .e_add_list_title span {
  12356. overflow: hidden;
  12357. white-space: nowrap;
  12358. text-overflow: ellipsis;
  12359. }
  12360. .e_add_list_title img {
  12361. position: absolute;
  12362. right: 15px;
  12363. width: 25px;
  12364. cursor: pointer;
  12365. top: 50%;
  12366. transform: translateY(-50%);
  12367. }
  12368. .e_add_list_body {
  12369. height: calc(100% - 187px);
  12370. overflow: auto;
  12371. }
  12372. .e_add_list_child {
  12373. width: 100%;
  12374. display: flex;
  12375. align-items: center;
  12376. justify-content: center;
  12377. position: relative;
  12378. box-sizing: border-box;
  12379. padding: 15px 40px;
  12380. text-align: center;
  12381. }
  12382. .e_add_list_child span {
  12383. overflow: hidden;
  12384. white-space: nowrap;
  12385. text-overflow: ellipsis;
  12386. cursor: pointer;
  12387. }
  12388. .e_add_list_child img {
  12389. position: absolute;
  12390. right: 10px;
  12391. width: 21px;
  12392. cursor: pointer;
  12393. top: 50%;
  12394. transform: translateY(-50%);
  12395. }
  12396. .e_add_list_child+.e_add_list_child {
  12397. border-top: 1px solid #eaeaea;
  12398. }
  12399. .e_add_list_child .active {
  12400. color: #409eff;
  12401. }
  12402. .e_add_list_btn {
  12403. position: absolute;
  12404. bottom: 0;
  12405. height: 50px;
  12406. background: rgb(120, 120, 254);
  12407. width: 100%;
  12408. color: #fff;
  12409. font-size: 16px;
  12410. text-align: center;
  12411. line-height: 50px;
  12412. cursor: pointer;
  12413. }
  12414. .e_add_list_detail {
  12415. position: absolute;
  12416. bottom: 0;
  12417. height: 130px;
  12418. background: rgb(120, 120, 254);
  12419. width: 100%;
  12420. color: #fff;
  12421. font-size: 16px;
  12422. display: flex;
  12423. align-items: center;
  12424. justify-content: center;
  12425. }
  12426. .e_add_list_detail textarea {
  12427. height: 90%;
  12428. width: 95%;
  12429. border: none;
  12430. resize: none;
  12431. outline: none;
  12432. padding: 5px;
  12433. box-sizing: border-box;
  12434. }
  12435. .e_add_list_pbox {
  12436. width: 100%;
  12437. max-width: 650px;
  12438. /* height: 600px; */
  12439. }
  12440. .e_add_list_pbox_title {
  12441. height: 50px;
  12442. background: #fff;
  12443. display: flex;
  12444. align-items: center;
  12445. width: 100%;
  12446. box-sizing: border-box;
  12447. padding: 0 20px;
  12448. }
  12449. .type_title {
  12450. font-size: 18px;
  12451. font-weight: 700;
  12452. }
  12453. .type_content {
  12454. font-size: 16px;
  12455. margin-left: 30px;
  12456. }
  12457. .type_content span+span {
  12458. margin-left: 20px;
  12459. }
  12460. .type_content span {
  12461. cursor: pointer;
  12462. padding-bottom: 5px;
  12463. box-sizing: border-box;
  12464. }
  12465. .type_content .active {
  12466. color: #409eff;
  12467. border-bottom: 2px solid #409eff;
  12468. }
  12469. .e_add_list_pbox_content {
  12470. height: calc(100% - 50px);
  12471. display: flex;
  12472. align-items: center;
  12473. width: 100%;
  12474. background: #fff;
  12475. }
  12476. .evaCss {
  12477. display: flex;
  12478. flex-direction: row;
  12479. flex-wrap: nowrap;
  12480. align-items: flex-start;
  12481. }
  12482. .cru_line {
  12483. position: absolute;
  12484. bottom: 0px;
  12485. transition: all 0.5s;
  12486. left: 0px;
  12487. width: 125px;
  12488. margin-left: -25px;
  12489. }
  12490. .isNoMessage {
  12491. width: 20%;
  12492. margin: 25% auto 0;
  12493. }
  12494. .isNoMessage>img {
  12495. width: 100%;
  12496. height: 100%;
  12497. }
  12498. .fullStyle>>>.el-dialog__body {
  12499. height: 100% !important;
  12500. }
  12501. .fullStyle>>>.el-dialog,
  12502. .fullStyle {
  12503. width: 100% !important;
  12504. max-width: 100% !important;
  12505. height: 100% !important;
  12506. margin: 0 !important;
  12507. }
  12508. .full_diy>>>.el-dialog {
  12509. margin: 0 !important;
  12510. height: 100%;
  12511. padding: 4px;
  12512. }
  12513. .full_diy>>>.el-dialog__body {
  12514. height: calc(100% - 100px);
  12515. }
  12516. .full_diy2>>>.el-dialog__body {
  12517. height: calc(100% - 50px);
  12518. padding: 0;
  12519. }
  12520. .switchCss {
  12521. /* width: 100%; */
  12522. display: flex;
  12523. flex-direction: row;
  12524. flex-wrap: nowrap;
  12525. align-items: center;
  12526. /* justify-content: center; */
  12527. }
  12528. .isClickNav {
  12529. color: #499eef;
  12530. }
  12531. .commentImg {
  12532. width: 25px;
  12533. height: 25px;
  12534. cursor: pointer;
  12535. }
  12536. .commentImg>img {
  12537. width: 100%;
  12538. height: 100%;
  12539. }
  12540. .comment {
  12541. background: #f9f9f9;
  12542. border-radius: 0 0 15px 15px;
  12543. display: flex;
  12544. flex-direction: row;
  12545. flex-wrap: nowrap;
  12546. align-items: center;
  12547. justify-content: flex-end;
  12548. height: 35px;
  12549. }
  12550. .commentList {
  12551. display: flex;
  12552. flex-direction: row;
  12553. flex-wrap: nowrap;
  12554. align-items: center;
  12555. justify-content: center;
  12556. align-content: center;
  12557. /* margin-left: 15px; */
  12558. /* margin-left: 8px; */
  12559. }
  12560. .scoreImg {
  12561. width: 17px;
  12562. height: 17px;
  12563. }
  12564. .studentDetail {
  12565. display: flex;
  12566. flex-direction: row;
  12567. flex-wrap: nowrap;
  12568. /* align-items: center; */
  12569. align-items: flex-start;
  12570. }
  12571. .tx {
  12572. width: 50px;
  12573. }
  12574. .tx>img {
  12575. width: 100%;
  12576. height: 100%;
  12577. }
  12578. .nameAndTime {
  12579. display: flex;
  12580. flex-direction: column;
  12581. flex-wrap: nowrap;
  12582. align-items: flex-start;
  12583. margin-left: 10px;
  12584. }
  12585. .worksAnswer {
  12586. color: #4078dd;
  12587. margin: 10px 0;
  12588. font-size: 16px;
  12589. position: relative;
  12590. }
  12591. .worksAnswer>img {
  12592. width: 500px;
  12593. height: 300px;
  12594. object-fit: contain;
  12595. margin: 0 auto;
  12596. display: block;
  12597. }
  12598. .commentTop {
  12599. border-bottom: 1px solid #eaeaea;
  12600. padding-bottom: 10px;
  12601. }
  12602. .commentBox {
  12603. padding-top: 15px;
  12604. }
  12605. .pl {
  12606. font-size: 18px;
  12607. }
  12608. .plPerson {
  12609. width: 100%;
  12610. }
  12611. .plName {
  12612. display: flex;
  12613. flex-direction: row;
  12614. flex-wrap: nowrap;
  12615. align-items: baseline;
  12616. color: #78787a;
  12617. width: 100%;
  12618. }
  12619. .deleteComment {
  12620. cursor: pointer;
  12621. margin-left: auto;
  12622. color: #237ade;
  12623. }
  12624. .plContent {
  12625. margin-top: 5px;
  12626. }
  12627. .evalCss {
  12628. background: #fff;
  12629. font-size: 18px;
  12630. }
  12631. .nav {
  12632. color: #9d9d9d;
  12633. padding: 5px 0 15px 20px;
  12634. }
  12635. .middleBox {
  12636. padding: 5px 0 15px 20px;
  12637. }
  12638. .pfBox {
  12639. padding-bottom: 30px;
  12640. }
  12641. .nameAndrate {
  12642. display: flex;
  12643. flex-direction: row;
  12644. flex-wrap: nowrap;
  12645. align-items: center;
  12646. padding-bottom: 10px;
  12647. height: 30px;
  12648. line-height: 30px;
  12649. }
  12650. .nameAndrate>div {
  12651. margin-left: 10px;
  12652. color: #000;
  12653. height: 30px;
  12654. }
  12655. .nameAndrate>>>.el-rate__icon {
  12656. font-size: 28px !important;
  12657. }
  12658. .pfBox>div:nth-child(2) {
  12659. background: #f7f6f9;
  12660. width: 400px;
  12661. min-height: 45px;
  12662. border-radius: 10px;
  12663. font-size: 16px;
  12664. display: flex;
  12665. flex-wrap: wrap;
  12666. align-items: center;
  12667. padding: 10px 20px;
  12668. box-sizing: border-box;
  12669. color: #000;
  12670. }
  12671. .bz {
  12672. display: flex;
  12673. flex-direction: row;
  12674. flex-wrap: nowrap;
  12675. align-items: flex-start;
  12676. }
  12677. .bz>div {
  12678. padding: 0 10px;
  12679. }
  12680. .select_box2_title {
  12681. background: #fff;
  12682. border-radius: 5px;
  12683. padding: 15px 10px;
  12684. box-sizing: border-box;
  12685. margin-bottom: 10px;
  12686. display: flex;
  12687. flex-direction: row;
  12688. flex-wrap: nowrap;
  12689. align-items: center;
  12690. }
  12691. .select_box2_title>div:nth-child(2) {
  12692. margin-left: 10px;
  12693. color: #c4c4c4;
  12694. }
  12695. .select_box2_box {
  12696. display: flex;
  12697. height: 500px;
  12698. }
  12699. .select_box2_img {
  12700. width: calc(100% - 310px);
  12701. height: 100%;
  12702. overflow: auto;
  12703. background: #fff;
  12704. border-radius: 5px;
  12705. }
  12706. .select_box2_img img {
  12707. width: 100%;
  12708. }
  12709. .select_box2_answer {
  12710. background: #fff;
  12711. margin-left: 10px;
  12712. border-radius: 5px;
  12713. width: 300px;
  12714. overflow: auto;
  12715. height: 90%;
  12716. display: flex;
  12717. flex-direction: column;
  12718. align-items: flex-start;
  12719. padding-top: 10px;
  12720. box-sizing: border-box;
  12721. position: relative;
  12722. }
  12723. .select_answer_title {
  12724. padding: 0 0 15px 20px;
  12725. color: #c4c4c4;
  12726. }
  12727. .select_box2_answer_box {
  12728. margin: 0 0 10px 20px;
  12729. width: 85%;
  12730. display: flex;
  12731. flex-direction: row;
  12732. flex-wrap: nowrap;
  12733. align-items: center;
  12734. }
  12735. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  12736. color: #000;
  12737. }
  12738. .upAnswerCss {
  12739. position: absolute;
  12740. bottom: 15px;
  12741. right: 15px;
  12742. }
  12743. .upAnswerCss>>>.el-button {
  12744. width: 95px;
  12745. height: 35px;
  12746. line-height: 35px;
  12747. padding: 0;
  12748. }
  12749. .rightWidthCss {
  12750. width: 60%;
  12751. display: flex;
  12752. flex-direction: row;
  12753. align-items: flex-start;
  12754. }
  12755. .rightAnswer {
  12756. display: flex;
  12757. flex-direction: row;
  12758. flex-wrap: nowrap;
  12759. align-items: center;
  12760. color: red;
  12761. margin-bottom: 31px;
  12762. }
  12763. .rightAnswerCss {
  12764. display: flex;
  12765. flex-direction: column;
  12766. flex-wrap: nowrap;
  12767. padding-top: 60px;
  12768. }
  12769. .blueCss {
  12770. color: #767de1;
  12771. margin-left: 10px;
  12772. }
  12773. .redCss {
  12774. color: red;
  12775. }
  12776. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  12777. color: rgb(0 123 255) !important;
  12778. }
  12779. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  12780. color: rgb(0 123 255) !important;
  12781. }
  12782. .zuoyeYulan {
  12783. padding-top: 15px;
  12784. font-size: 18px;
  12785. display: flex;
  12786. align-items: flex-end;
  12787. }
  12788. .buttonA {
  12789. margin-left: 10px;
  12790. padding: 0;
  12791. }
  12792. .displayBox {
  12793. margin-bottom: 10px;
  12794. display: block;
  12795. border-bottom: 3px solid #eee;
  12796. display: flex;
  12797. align-items: center;
  12798. }
  12799. .easy_comment {
  12800. width: calc(100% - 90px);
  12801. margin-left: 10px;
  12802. display: flex;
  12803. flex-wrap: wrap;
  12804. }
  12805. .easy_comment>div {
  12806. border: 1px solid #4a4a4a;
  12807. color: #666;
  12808. border-radius: 15px;
  12809. padding: 5px 10px;
  12810. font-size: 16px;
  12811. margin-bottom: 10px;
  12812. margin-right: 5px;
  12813. cursor: pointer;
  12814. }
  12815. .easy_comment div:hover {
  12816. border: 1px solid #f7ba2a;
  12817. color: #c69217;
  12818. }
  12819. .xuan_right_box {
  12820. padding: 10px;
  12821. background: rgb(247, 247, 247);
  12822. margin: 10px 12px;
  12823. border-radius: 5px;
  12824. }
  12825. .tool_right_box {
  12826. display: flex;
  12827. align-items: center;
  12828. }
  12829. .tool_right_box+.tool_right_box {
  12830. margin-top: 10px;
  12831. }
  12832. .right_box_xuan {
  12833. background: rgb(0 123 255);
  12834. color: #fff;
  12835. border-radius: 5px;
  12836. padding: 5px;
  12837. margin-left: 10px;
  12838. }
  12839. .pButton:hover {
  12840. opacity: 1 !important;
  12841. }
  12842. .pButton {
  12843. position: fixed;
  12844. /* right: 5%; */
  12845. /* bottom: 5%; */
  12846. color: #fff;
  12847. /* width: 50px;
  12848. height: 50px; */
  12849. /* border-radius: 50%; */
  12850. text-align: center;
  12851. /* line-height: 50px; */
  12852. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  12853. cursor: pointer;
  12854. z-index: 999;
  12855. right: 0;
  12856. top: 83px;
  12857. width: 50px;
  12858. height: 50px;
  12859. background: #fff;
  12860. display: flex;
  12861. align-items: center;
  12862. justify-content: center;
  12863. box-shadow: 0px 0 8px 2px #c5c5c5;
  12864. border-radius: 5px;
  12865. }
  12866. .pzClass {
  12867. width: calc(100% - 340px);
  12868. }
  12869. .newDialogCss {
  12870. /* position: fixed;
  12871. right: 5%;
  12872. top: 50%;
  12873. width: 340px;
  12874. transform: translateY(-50%);
  12875. height: 60%;
  12876. box-shadow: 0px 0 8px 0px #555555;
  12877. border-radius: 15px;
  12878. z-index: 999; */
  12879. position: fixed;
  12880. right: 0;
  12881. top: 70px;
  12882. width: 340px;
  12883. height: calc(100% - 80px);
  12884. z-index: 999;
  12885. background: #fff;
  12886. border-radius: 15px;
  12887. border-top-right-radius: 0px;
  12888. border-bottom-right-radius: 0px;
  12889. overflow: hidden;
  12890. }
  12891. .pzTop {
  12892. color: #fff;
  12893. background: #000;
  12894. display: flex;
  12895. flex-direction: row;
  12896. flex-wrap: nowrap;
  12897. align-items: center;
  12898. justify-content: space-between;
  12899. height: 40px;
  12900. border-radius: 15px 15px 0 0;
  12901. }
  12902. .pzTop2 .checkbox {
  12903. display: flex;
  12904. align-items: center;
  12905. padding: 15px 30px;
  12906. flex: 0 0 auto;
  12907. font-weight: bold;
  12908. border-bottom: 1px solid #eee;
  12909. justify-content: space-between;
  12910. }
  12911. .pzTop2 .check {
  12912. text-align: center;
  12913. cursor: pointer;
  12914. box-sizing: border-box;
  12915. display: flex;
  12916. }
  12917. .pzTop2 img {
  12918. width: 25px;
  12919. cursor: pointer;
  12920. }
  12921. .pzTop>div:nth-child(1) {
  12922. padding-left: 10px;
  12923. }
  12924. .pzTop>div:nth-child(2) {
  12925. width: 15px;
  12926. height: 15px;
  12927. padding-right: 10px;
  12928. cursor: pointer;
  12929. }
  12930. .pzTop>div:nth-child(2)>img {
  12931. width: 100%;
  12932. height: 100%;
  12933. }
  12934. .pzBox,
  12935. .noPzBox {
  12936. height: calc(100% - 60px);
  12937. /* background: #ededed; */
  12938. background: #fff;
  12939. /* border-radius: 0 0 15px 15px; */
  12940. }
  12941. .noPzBox {
  12942. display: flex;
  12943. flex-direction: column;
  12944. flex-wrap: nowrap;
  12945. justify-content: center;
  12946. align-items: center;
  12947. }
  12948. .pzList {
  12949. background: #f7f7f7;
  12950. width: 90%;
  12951. margin: 0 auto 15px;
  12952. border-radius: 5px;
  12953. }
  12954. .pzNavTop {
  12955. display: flex;
  12956. flex-direction: row;
  12957. flex-wrap: nowrap;
  12958. padding: 10px 10px 0 10px;
  12959. align-items: center;
  12960. }
  12961. .pzDelete {
  12962. cursor: pointer;
  12963. margin-left: auto;
  12964. font-size: 14px;
  12965. color: #afafaf;
  12966. }
  12967. .pzNavTop>div:nth-child(1) {
  12968. background: #3760af;
  12969. width: 35px;
  12970. height: 35px;
  12971. color: #fff;
  12972. text-align: center;
  12973. line-height: 35px;
  12974. border-radius: 50%;
  12975. font-size: 14px;
  12976. }
  12977. .pzNavTop>div:nth-child(2) {
  12978. font-size: 18px;
  12979. color: #959595;
  12980. margin-left: 5px;
  12981. }
  12982. .pzContent {
  12983. padding: 10px;
  12984. word-break: break-word;
  12985. }
  12986. .pzContent audio {
  12987. width: 100%;
  12988. }
  12989. .pzContent audio::-webkit-media-controls-panel {
  12990. background: #fff;
  12991. }
  12992. .pzListBox {
  12993. padding-top: 15px;
  12994. height: calc(100% - 60px);
  12995. overflow: auto;
  12996. }
  12997. .addPzButton {
  12998. position: relative;
  12999. margin-top: 3px;
  13000. width: 100%;
  13001. }
  13002. .addPzButton .img1 {
  13003. position: absolute;
  13004. top: 50%;
  13005. right: 25px;
  13006. transform: translateY(-50%);
  13007. height: 100%;
  13008. display: flex;
  13009. align-items: center;
  13010. }
  13011. .addPzButton .img1 div {
  13012. display: flex;
  13013. }
  13014. .addPzButton .img1 div img {
  13015. width: 28px;
  13016. margin-left: 10px;
  13017. cursor: pointer;
  13018. }
  13019. .addPzButton .img1 div span {
  13020. font-size: 14px;
  13021. margin: 4px 0 0 3px;
  13022. color: #afafaf;
  13023. }
  13024. .addPz {
  13025. background: #4b79ce;
  13026. width: 100px;
  13027. color: #fff;
  13028. font-size: 12px;
  13029. height: 30px;
  13030. margin: 0 auto;
  13031. text-align: center;
  13032. line-height: 30px;
  13033. border-radius: 10px;
  13034. cursor: pointer;
  13035. }
  13036. .addDialogCss {
  13037. position: fixed;
  13038. right: 37%;
  13039. top: 50%;
  13040. width: 600px;
  13041. transform: translateY(-50%);
  13042. height: 70%;
  13043. min-height: 450px;
  13044. box-shadow: 0px 0 8px 0px #555555;
  13045. border-radius: 15px;
  13046. z-index: 999;
  13047. }
  13048. .teacherPz {
  13049. display: flex;
  13050. flex-direction: row;
  13051. align-items: center;
  13052. flex-wrap: nowrap;
  13053. }
  13054. .teacherPzImg {
  13055. width: 30px;
  13056. height: 30px;
  13057. }
  13058. .teacherPzImg>img {
  13059. width: 100%;
  13060. height: 100%;
  13061. }
  13062. .addPzBox {
  13063. height: calc(100% - 40px);
  13064. background: #ededed;
  13065. }
  13066. .pzAudioClass {
  13067. margin: 15px 14px;
  13068. background: #fff;
  13069. height: 100%;
  13070. display: flex;
  13071. justify-content: center;
  13072. align-items: center;
  13073. }
  13074. .pzConText {
  13075. width: 95%;
  13076. height: 100%;
  13077. margin: 10px auto 0;
  13078. border: none;
  13079. background: #fff;
  13080. border-radius: 0px;
  13081. }
  13082. .pzConText>>>.text {
  13083. height: calc(100% - 82px);
  13084. }
  13085. .addTextCss {
  13086. background: #4b79ce;
  13087. width: 80px;
  13088. height: 30px;
  13089. text-align: center;
  13090. color: #fff;
  13091. line-height: 30px;
  13092. border-radius: 10px;
  13093. margin: 10px auto 0;
  13094. cursor: pointer;
  13095. }
  13096. .pzConText:focus-visible {
  13097. border: none !important;
  13098. }
  13099. .maxWidth {
  13100. width: 1000px;
  13101. }
  13102. .noPz {
  13103. width: 150px;
  13104. margin: 0 auto 20%;
  13105. }
  13106. .noPz>img {
  13107. width: 100%;
  13108. height: 100%;
  13109. }
  13110. .pzList .time {
  13111. text-align: right;
  13112. box-sizing: border-box;
  13113. padding: 0 10px 10px 0px;
  13114. color: #949494;
  13115. font-size: 14px;
  13116. }
  13117. /* table 样式 */
  13118. .cont>>>table {
  13119. border-top: 1px solid #ccc;
  13120. border-left: 1px solid #ccc;
  13121. }
  13122. .cont>>>table td,
  13123. .cont>>>table th {
  13124. border-bottom: 1px solid #ccc;
  13125. border-right: 1px solid #ccc;
  13126. padding: 15px 5px;
  13127. max-width: 0px;
  13128. }
  13129. .cont>>>table th {
  13130. border-bottom: 2px solid #ccc;
  13131. text-align: center;
  13132. }
  13133. /* blockquote 样式 */
  13134. .cont>>>blockquote {
  13135. display: block;
  13136. border-left: 8px solid #d0e5f2;
  13137. padding: 5px 10px;
  13138. margin: 10px 0;
  13139. line-height: 1.4;
  13140. font-size: 100%;
  13141. background-color: #f1f1f1;
  13142. }
  13143. .addPzCheck {
  13144. display: flex;
  13145. flex-direction: row;
  13146. flex-wrap: nowrap;
  13147. padding: 10px 15px 0;
  13148. }
  13149. .addPzCheck span {
  13150. cursor: pointer;
  13151. padding-bottom: 5px;
  13152. font-weight: bold;
  13153. }
  13154. .addPzCheck span+span {
  13155. margin-left: 10px;
  13156. }
  13157. .addPzCheck .isChooseActive {
  13158. color: #3e88f4;
  13159. border-bottom: 2px solid #2f80f3;
  13160. }
  13161. /* code 样式 */
  13162. .cont>>>code {
  13163. display: inline-block;
  13164. *display: inline;
  13165. *zoom: 1;
  13166. background-color: #f1f1f1;
  13167. border-radius: 3px;
  13168. padding: 3px 5px;
  13169. margin: 0 3px;
  13170. }
  13171. .cont>>>pre code {
  13172. display: block;
  13173. }
  13174. /* ul ol 样式 */
  13175. .cont>>>ul,
  13176. ol {
  13177. margin: 10px 0 10px 20px;
  13178. }
  13179. .scoreBox,
  13180. .scoreDetailBox {
  13181. display: flex;
  13182. align-items: center;
  13183. justify-content: flex-start;
  13184. margin-top: 20px;
  13185. font-size: 18px;
  13186. width: 100%;
  13187. }
  13188. .scoreBox .t,
  13189. .scoreDetailBox .t {
  13190. margin-right: 10px;
  13191. width: 100px;
  13192. text-align: right;
  13193. }
  13194. .scoreDetailBox {
  13195. align-items: flex-start;
  13196. }
  13197. .scoreDetailBox>>>.el-textarea {
  13198. width: calc(100% - 200px);
  13199. }
  13200. .scoreBox>>>.el-input {
  13201. width: 130px;
  13202. font-size: 38px;
  13203. }
  13204. .scoreBox>>>.el-input__inner {
  13205. height: 60px;
  13206. }
  13207. .answerScore {
  13208. position: absolute;
  13209. top: 10px;
  13210. right: 10px;
  13211. background: #0000008f;
  13212. border-radius: 5px;
  13213. padding: 3px 5px;
  13214. font-size: 14px;
  13215. color: #fff;
  13216. cursor: pointer;
  13217. }
  13218. .open_box .switch_box {
  13219. width: 100%;
  13220. margin: 0 auto;
  13221. display: flex;
  13222. justify-content: space-between;
  13223. }
  13224. .open_box .switch_box+.switch_box {
  13225. margin-top: 10px;
  13226. }
  13227. .deleteImg {
  13228. width: 25px !important;
  13229. height: 25px !important;
  13230. cursor: pointer;
  13231. position: absolute;
  13232. top: 10px;
  13233. right: 10px;
  13234. }
  13235. .deleteImg2 {
  13236. width: 15px !important;
  13237. height: 15px !important;
  13238. top: 5px;
  13239. right: 5px;
  13240. }
  13241. .rightW {
  13242. right: 40px;
  13243. }
  13244. .drawPBox {
  13245. display: flex;
  13246. flex-direction: column;
  13247. position: relative;
  13248. }
  13249. .drawPBox span {
  13250. font-size: 18px;
  13251. color: #606266;
  13252. padding-bottom: 10px;
  13253. margin: 10px 0;
  13254. border-bottom: 1px solid #eaeaea;
  13255. }
  13256. .drawPBox img {
  13257. width: 500px;
  13258. height: 300px;
  13259. object-fit: contain;
  13260. cursor: pointer;
  13261. margin: 0 auto;
  13262. }
  13263. .sentenBox {
  13264. background: #fff;
  13265. height: 450px;
  13266. overflow: auto;
  13267. background-image: url("../../assets/icon/conSentences/stuBg.png");
  13268. background-position: 102%;
  13269. background-repeat: no-repeat;
  13270. background-size: 60%;
  13271. }
  13272. .addSen {
  13273. background: #409efe;
  13274. width: 90px;
  13275. color: #fff;
  13276. height: 35px;
  13277. text-align: center;
  13278. line-height: 35px;
  13279. border-radius: 5px;
  13280. float: right;
  13281. margin: 10px 20px 0 0;
  13282. cursor: pointer;
  13283. }
  13284. .sentenTop {
  13285. display: flex;
  13286. flex-direction: row;
  13287. flex-wrap: nowrap;
  13288. align-items: center;
  13289. padding: 55px 0 0 20px;
  13290. box-sizing: border-box;
  13291. }
  13292. .sentenTop>div:nth-child(2) {
  13293. width: 300px;
  13294. margin: 0 15px;
  13295. }
  13296. .sentenTop>div:nth-child(3) {
  13297. background: #409efe;
  13298. color: #fff;
  13299. width: 65px;
  13300. height: 35px;
  13301. text-align: center;
  13302. line-height: 35px;
  13303. border-radius: 5px;
  13304. cursor: pointer;
  13305. }
  13306. .cardList,
  13307. .cardList1 {
  13308. padding: 10px 0 10px 0;
  13309. display: flex;
  13310. flex-direction: row;
  13311. flex-wrap: wrap;
  13312. align-items: center;
  13313. box-sizing: border-box;
  13314. border-bottom: 1px solid #f4f4f4;
  13315. width: 98%;
  13316. margin: 0 auto;
  13317. min-width: 60%;
  13318. max-width: 85%;
  13319. }
  13320. .cardList1 {
  13321. padding: 10px 0 10px 10px !important;
  13322. margin: 0 !important;
  13323. }
  13324. .cardBox {
  13325. display: flex;
  13326. flex-direction: row;
  13327. flex-wrap: wrap;
  13328. align-items: center;
  13329. align-content: center;
  13330. }
  13331. .cardBox>div {
  13332. margin-bottom: 10px;
  13333. }
  13334. .isCard,
  13335. .isChooseCard,
  13336. .noCard,
  13337. .isCard1 {
  13338. width: 130px;
  13339. height: 60px;
  13340. text-align: center;
  13341. line-height: 60px;
  13342. font-size: 20px;
  13343. cursor: pointer;
  13344. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  13345. background-size: cover;
  13346. transition: all 2s;
  13347. margin-right: 20px;
  13348. }
  13349. .isCard>div,
  13350. .noCard>div,
  13351. .isCard1>div {
  13352. white-space: nowrap;
  13353. overflow: hidden;
  13354. text-overflow: ellipsis;
  13355. width: 75%;
  13356. margin: 0 auto;
  13357. }
  13358. .noCard {
  13359. background-image: none;
  13360. }
  13361. .isCard1 {
  13362. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  13363. }
  13364. .isChooseCard {
  13365. background-image: none;
  13366. border: 1px dashed #b9b9b9;
  13367. border-radius: 10px;
  13368. }
  13369. .card {
  13370. width: 130px;
  13371. height: 60px;
  13372. }
  13373. .card>img {
  13374. width: 100%;
  13375. height: 100%;
  13376. }
  13377. .rightCardBox {
  13378. margin: 10px 0 0 10px;
  13379. }
  13380. .rightCardBox>div:nth-child(1) {
  13381. margin-bottom: 10px;
  13382. }
  13383. .cardCss {
  13384. display: flex;
  13385. flex-direction: column;
  13386. flex-wrap: nowrap;
  13387. align-items: center;
  13388. border-bottom: 3px solid #b4c3d3;
  13389. padding: 0 0 5px 0;
  13390. margin-right: 10px;
  13391. }
  13392. .cardCss>div:nth-child(2) {
  13393. background: #5b7b9d;
  13394. color: #fff;
  13395. width: 20px;
  13396. height: 20px;
  13397. border-radius: 50%;
  13398. text-align: center;
  13399. line-height: 20px;
  13400. }
  13401. .isWrong {
  13402. display: flex;
  13403. flex-direction: row;
  13404. flex-wrap: nowrap;
  13405. align-content: center;
  13406. align-items: center;
  13407. }
  13408. .answerRight {
  13409. width: 25%;
  13410. }
  13411. .isTj {
  13412. display: flex;
  13413. flex-direction: row;
  13414. flex-wrap: nowrap;
  13415. align-items: center;
  13416. }
  13417. .isTj>div:nth-child(2) {
  13418. color: #727070;
  13419. margin-left: 10px;
  13420. }
  13421. .isTjImg {
  13422. width: 30px;
  13423. height: 30px;
  13424. }
  13425. .isTjImg>img {
  13426. width: 100%;
  13427. height: 100%;
  13428. }
  13429. .cardAnswerBox {
  13430. font-size: 18px;
  13431. width: 97%;
  13432. border: 5px;
  13433. padding: 0;
  13434. border-radius: 5px;
  13435. margin: 10px auto;
  13436. word-break: break-word;
  13437. }
  13438. .w_name {
  13439. margin-bottom: 10px;
  13440. }
  13441. .w_name span {
  13442. font-size: 16px;
  13443. }
  13444. .w_teachert {
  13445. width: 50px !important;
  13446. position: absolute;
  13447. height: auto !important;
  13448. z-index: 10;
  13449. right: 25px;
  13450. top: -25px;
  13451. }
  13452. .group_workBox {}
  13453. .group_workBox+.group_workBox {
  13454. margin-top: 20px;
  13455. }
  13456. .group_box {
  13457. padding-bottom: 20px;
  13458. border-bottom: 2px solid #f0f0f0;
  13459. }
  13460. .group_title {
  13461. display: flex;
  13462. align-items: center;
  13463. justify-content: space-between;
  13464. }
  13465. .group_name {
  13466. background-image: url(../../assets/icon/groupN.png);
  13467. width: 220px;
  13468. background-size: 100% 100%;
  13469. height: 67px;
  13470. padding: 0 20px 0 43px;
  13471. box-sizing: border-box;
  13472. line-height: 63px;
  13473. color: #fff;
  13474. overflow: hidden;
  13475. white-space: nowrap;
  13476. text-overflow: ellipsis;
  13477. }
  13478. .group_work {
  13479. width: 100%;
  13480. padding: 0 10px;
  13481. box-sizing: border-box;
  13482. display: flex;
  13483. flex-wrap: wrap;
  13484. }
  13485. .g_d_box {
  13486. display: flex;
  13487. flex-flow: wrap;
  13488. justify-content: space-around;
  13489. }
  13490. .g_d_box .isChair {
  13491. background-image: url(../../assets/avatar.png) !important;
  13492. }
  13493. .g_d_group {
  13494. width: 500px;
  13495. margin-bottom: 80px;
  13496. }
  13497. .g_d_group_chair {
  13498. display: flex;
  13499. align-items: center;
  13500. justify-content: center;
  13501. }
  13502. .g_d_group_chair>div+div {
  13503. margin-left: 30px;
  13504. }
  13505. .g_d_group_chair>div,
  13506. .g_d_group_chair2>div {
  13507. display: flex;
  13508. flex-direction: column;
  13509. align-items: center;
  13510. }
  13511. .g_d_group_chair>div>span:nth-child(1),
  13512. .g_d_group_chair2>div>span:nth-child(1) {
  13513. background-image: url(../../assets/icon/chair.png);
  13514. width: 50px;
  13515. height: 50px;
  13516. display: block;
  13517. background-size: 100% 100%;
  13518. }
  13519. .g_d_group_tableBox {
  13520. display: flex;
  13521. align-items: center;
  13522. justify-content: center;
  13523. }
  13524. .g_d_group_chair2 {
  13525. display: flex;
  13526. flex-direction: column;
  13527. align-items: center;
  13528. justify-content: center;
  13529. }
  13530. .g_d_group_chair2>div+div {
  13531. margin-top: 10px;
  13532. }
  13533. .g_d_group_table {
  13534. background-image: url(../../assets/icon/groupBg.png);
  13535. width: 354px;
  13536. height: 196px;
  13537. background-size: 100% 100%;
  13538. display: flex;
  13539. align-items: center;
  13540. justify-content: center;
  13541. flex-direction: column;
  13542. color: #fff;
  13543. }
  13544. .g_d_group_table>div:nth-child(1) {
  13545. font-size: 24px;
  13546. margin-bottom: 5px;
  13547. }
  13548. .g_d_group_table>div:nth-child(2) div {
  13549. cursor: pointer;
  13550. background: #2e77bf;
  13551. padding: 4px 10px;
  13552. border-radius: 5px;
  13553. }
  13554. .groupBox {}
  13555. .groupContent+.groupContent {
  13556. margin-top: 30px;
  13557. }
  13558. .groupTitle {
  13559. font-size: 24px;
  13560. color: rgb(80, 80, 80);
  13561. margin-bottom: 20px;
  13562. }
  13563. .groupName {
  13564. display: flex;
  13565. align-items: center;
  13566. }
  13567. .groupn {
  13568. font-size: 15px;
  13569. margin-right: 10px;
  13570. }
  13571. .groupName+.groupName {
  13572. margin-top: 15px;
  13573. }
  13574. .groupBtn {
  13575. margin-left: 10px;
  13576. }
  13577. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13578. text-align: left;
  13579. }
  13580. .g_d_btnBox {
  13581. display: flex;
  13582. justify-content: flex-end;
  13583. align-items: flex-end;
  13584. margin-bottom: 20px;
  13585. }
  13586. .updateChair {
  13587. position: relative;
  13588. }
  13589. .updateChairBtn {
  13590. position: absolute;
  13591. width: 50px;
  13592. height: 50px;
  13593. overflow: hidden;
  13594. /* display: flex; */
  13595. align-items: center;
  13596. justify-content: center;
  13597. background: #00000087;
  13598. color: #fff;
  13599. border-radius: 50px;
  13600. display: none;
  13601. cursor: pointer;
  13602. }
  13603. .updateChair:hover .updateChairBtn {
  13604. display: flex;
  13605. }
  13606. .group_staic_box {
  13607. display: flex;
  13608. padding: 30px 40px 10px;
  13609. flex-wrap: wrap;
  13610. }
  13611. .group_staic {
  13612. /* width: 50%; */
  13613. margin-bottom: 20px;
  13614. display: flex;
  13615. align-items: center;
  13616. }
  13617. .group_staic span:nth-child(1) {
  13618. width: 150px;
  13619. text-align: right;
  13620. margin-right: 15px;
  13621. }
  13622. .group_staic span:nth-child(2) {
  13623. background: rgb(0 123 255);
  13624. color: #fff;
  13625. border-radius: 5px;
  13626. padding: 5px;
  13627. }
  13628. .codeFileBox {
  13629. height: 300px;
  13630. background: #fff;
  13631. display: flex;
  13632. align-items: center;
  13633. justify-content: center;
  13634. }
  13635. .codeFileBox img {
  13636. width: 200px;
  13637. margin: 0;
  13638. height: auto;
  13639. }
  13640. .codeFileBox div {
  13641. background: rgb(80, 142, 226);
  13642. color: #fff;
  13643. padding: 10px 20px;
  13644. border-radius: 25px;
  13645. cursor: pointer;
  13646. margin-left: 15px;
  13647. }
  13648. .radioBox {
  13649. display: flex;
  13650. flex-direction: row;
  13651. flex-wrap: nowrap;
  13652. align-items: center;
  13653. }
  13654. .radioBox>div {
  13655. margin: 10px 0 0 10px;
  13656. }
  13657. /* .radioBox >>> .el-radio__input,
  13658. .radioBox >>> .el-checkbox__inner {
  13659. margin-left: 10px;
  13660. } */
  13661. .radioBox>>>.el-radio__label,
  13662. .radioBox>>>.el-checkbox__label {
  13663. display: flex;
  13664. align-items: center;
  13665. }
  13666. .inImg {
  13667. width: 100px;
  13668. cursor: pointer;
  13669. }
  13670. .inImg>img {
  13671. width: 100%;
  13672. height: 100%;
  13673. object-fit: cover;
  13674. }
  13675. .timuImgBox {
  13676. margin: 10px 0;
  13677. display: flex;
  13678. flex-direction: column;
  13679. flex-wrap: wrap;
  13680. align-items: flex-start;
  13681. }
  13682. .timuImg {
  13683. width: auto;
  13684. margin: 5px 0;
  13685. cursor: pointer;
  13686. }
  13687. .timuImg>img {
  13688. width: 100%;
  13689. height: 100%;
  13690. object-fit: cover;
  13691. }
  13692. .worksTop {
  13693. display: flex;
  13694. flex-direction: row;
  13695. align-items: flex-end;
  13696. }
  13697. .corOpen {
  13698. margin: 0 0 0 10px;
  13699. font-size: 14px;
  13700. cursor: pointer;
  13701. color: #505050;
  13702. }
  13703. .corOpen:hover {
  13704. color: #499eef;
  13705. }
  13706. .navCorOpenBox {
  13707. display: flex;
  13708. flex-direction: row;
  13709. align-items: center;
  13710. background: #1e5cc9;
  13711. justify-content: space-between;
  13712. }
  13713. .navCorOpen {
  13714. padding-right: 15px;
  13715. cursor: pointer;
  13716. width: 20px;
  13717. display: flex;
  13718. }
  13719. .navCorOpen>img {
  13720. width: 100%;
  13721. height: 100%;
  13722. }
  13723. .mlImg {
  13724. width: 25px !important;
  13725. cursor: pointer;
  13726. margin-top: 5px;
  13727. }
  13728. .mlImg>img {
  13729. width: 100%;
  13730. height: 100%;
  13731. }
  13732. .navLeftCss {
  13733. width: 100% !important;
  13734. left: 0 !important;
  13735. }
  13736. .isContentCss {
  13737. width: 100% !important;
  13738. }
  13739. .isAllWidth {
  13740. width: 100% !important;
  13741. }
  13742. .toolBoxSteps {
  13743. position: absolute;
  13744. top: 50%;
  13745. transform: translateY(-50%);
  13746. cursor: pointer;
  13747. width: 60px;
  13748. display: flex;
  13749. align-items: center;
  13750. justify-content: center;
  13751. }
  13752. .toolBoxSteps:nth-child(1)>img,
  13753. .toolBoxSteps:nth-child(2)>img {
  13754. width: 24px;
  13755. }
  13756. .toolBoxSteps:nth-child(1) {
  13757. left: 0;
  13758. }
  13759. .toolBoxSteps:nth-child(2) {
  13760. right: 0;
  13761. }</style>