studyStudent.vue 501 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434
  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="goTo(
  9. '/courseDetailNT?userid=' +
  10. userid +
  11. '&oid=' +
  12. oid +
  13. '&org=' +
  14. org +
  15. '&cid=' +
  16. classId +
  17. '&courseId=' +
  18. id +
  19. '&tType=' +
  20. tType +
  21. '&screenType=' +
  22. screenType
  23. )
  24. " />
  25. </div>
  26. <div class="pButton" style="
  27. left: 0;
  28. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  29. " v-if="mlDialog == false" @click="setContent2(true)">
  30. <!-- 批 , getCourseDetail()-->
  31. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  32. </div>
  33. <div class="pb_left" v-else>
  34. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  35. <div class="courseTitle">
  36. <div style="width:calc(100% - 25px)">
  37. <el-tooltip effect="light" :content="courseDetail.title" placement="top">
  38. <div class="ctitle">{{ courseDetail.title }}</div>
  39. </el-tooltip>
  40. <!-- <div class="inviteBox" v-if="tcid && inviteCode">
  41. <div><span>随机码:{{ inviteCode }}</span></div>
  42. </div> -->
  43. </div>
  44. <el-tooltip effect="light" content="收缩" placement="top">
  45. <div class="mlImg" @click="setContent2(false)">
  46. <img src="../../assets/mlBtn.png" alt="" />
  47. </div>
  48. </el-tooltip>
  49. </div>
  50. <div class="ml">目录</div>
  51. <div class="cru_selectBox">
  52. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  53. <div class="blue_box_one" @click="get(stageIndex)">
  54. <div>第{{ stageIndex + 1 }}阶段</div>
  55. <div>{{ item.dyName }}</div>
  56. </div>
  57. <div class="twoChild" :class="{ navActive: item.isOpen }">
  58. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  59. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  60. openTaskActive:
  61. navIndex == taskCount &&
  62. nav.id == navId &&
  63. stageIndex == courseType,
  64. }">
  65. <div class="vedioNav" :class="{
  66. isClick:
  67. navIndex == taskCount &&
  68. nav.id == navId &&
  69. stageIndex == courseType,
  70. }" style="margin: 0">
  71. 任务{{ navIndex + 1 }}
  72. </div>
  73. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  74. <div :style="{
  75. width:
  76. IsLookOpen && !nav.isLook
  77. ? 'calc(100% - 75px)'
  78. : 'auto',
  79. }">
  80. {{ nav.taskName }}
  81. </div>
  82. </el-tooltip>
  83. <img src="../../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  91. <div class="new_top" style="
  92. position: fixed;
  93. top: 0;
  94. left: 20.7%;
  95. width: 80%;
  96. z-index: 999;
  97. box-shadow: 0px 9px 0 0 #f2f2f2;
  98. " :class="{ navLeftCss: !mlDialog }">
  99. <div class="courseIndex">
  100. <div>第{{ courseType - 0 + 1 }}阶段</div>
  101. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  102. <div>{{ chapInfoList[courseType].dyName }}</div>
  103. </el-tooltip>
  104. <div>任务{{ taskCount + 1 }}</div>
  105. </div>
  106. <div class="btnAll">
  107. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  108. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  109. <div class="returnBtn" @click="allScrell">全屏</div>
  110. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  111. 开始录制
  112. </div>
  113. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  114. style="background: #ee5255">
  115. 下载录制
  116. </div>
  117. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  118. 权限
  119. </div> -->
  120. <div class="returnBtn" style="background: #225bc7" @click.stop="goTo(
  121. '/courseDetailNT?userid=' +
  122. userid +
  123. '&oid=' +
  124. oid +
  125. '&org=' +
  126. org +
  127. '&cid=' +
  128. classId +
  129. '&courseId=' +
  130. id +
  131. '&tType=' +
  132. tType +
  133. '&screenType=' +
  134. screenType
  135. )
  136. ">
  137. 返回
  138. </div>
  139. </div>
  140. </div>
  141. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  142. .taskJson"
  143. :key="index"-->
  144. <div class="isNoMessage" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  145. .chapterData.length == 0 &&
  146. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  147. .toolChoose[0].tool.length == 0 &&
  148. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  149. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  150. .taskDetail == '' &&
  151. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  152. ">
  153. <img src="../../assets/icon/isNoMessage.png" alt />
  154. </div>
  155. <div class="study_top" :class="{ pzClass: pzDialog }">
  156. <div class="vedioBox" v-if="vedio[taskCount].length > 0 ||
  157. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  158. .taskDetail != '' ||
  159. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  160. .chapterData.length > 0
  161. ">
  162. <div class="checkbox">
  163. <div class="check" style="font-size: 25px" :id="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  164. ">
  165. 学一学
  166. </div>
  167. </div>
  168. <div class="student_head" v-if="vedio[taskCount].length > 0 ||
  169. textList[taskCount].length > 0 ||
  170. lineList[taskCount].length > 0 ||
  171. file[taskCount].length > 0 ||
  172. fileC[taskCount].length > 0 ||
  173. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  174. .taskDetail != ''
  175. ">
  176. <div class="taskBox">
  177. <div style="
  178. display: flex;
  179. flex-wrap: nowrap;
  180. flex-direction: column;
  181. position: relative;
  182. ">
  183. <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
  184. taskCount
  185. ].taskDetail != ''
  186. " v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
  187. taskCount
  188. ].taskDetail
  189. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  190. taskCount
  191. ].taskDetail
  192. : '暂无描述'
  193. "></div>
  194. </div>
  195. </div>
  196. <div class="vedioTaskBox">
  197. <div :class="contentDialog == false
  198. ? 'box_course isContentCss'
  199. : 'box_course'
  200. " v-if="vedio[taskCount].length > 0 ||
  201. textList[taskCount].length > 0 ||
  202. lineList[taskCount].length > 0 ||
  203. file[taskCount].length > 0
  204. ">
  205. <div class="wheel" style="height: auto;" v-if="vedio.length &&
  206. vedio[taskCount] &&
  207. vedio[taskCount].length > 0 &&
  208. showType == 0
  209. ">
  210. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  211. <video-player class="video-player vjs-custom-skin"
  212. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  213. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  214. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  215. </div>
  216. </div>
  217. <div class="wheel" v-if="showType == 1" style="
  218. box-shadow: 0 0 6px 1px #f2f2f2;
  219. width: 95%;
  220. margin: 0 auto;
  221. background: #f1f1f1;
  222. ">
  223. <div class="title">查看文档</div>
  224. <el-form class="textBox">
  225. <el-form-item class="textTitle">
  226. <div style="font-size: 22px">
  227. {{ text.name }}
  228. </div>
  229. </el-form-item>
  230. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  231. <div v-html="text.url" class="textContent cont"></div>
  232. </el-form>
  233. </div>
  234. <div class="wheel"
  235. v-if="pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && showType == 2"
  236. style="width: 95%; margin: 0 auto">
  237. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  238. </div>
  239. <div class="wheel" v-else-if="showType == 2" style="width: 95%; margin: 0 auto">
  240. <iframe style="width: 100%; height: 100%; border: none" security="restricted"
  241. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  242. :src="pptImgUrl1"></iframe>
  243. </div>
  244. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  245. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  246. </div>
  247. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  248. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  249. </div>
  250. </div>
  251. <div class="pButton" style="
  252. position: absolute;
  253. right: 20px;
  254. top: 0;
  255. background: #205cc6;
  256. z-index: 998;
  257. opacity: .8;
  258. " v-if="!contentDialog" @click="setContent(true)">
  259. <!-- 批 -->
  260. <img src="../../assets/navBtn2.png" style="width: 25px" alt="" />
  261. </div>
  262. <div v-if="contentDialog == true" :style="{
  263. width: (!vedio[taskCount].length > 0 &&
  264. !textList[taskCount].length > 0 &&
  265. !lineList[taskCount].length > 0 &&
  266. !file[taskCount].length > 0 && fileC[taskCount].length) ? 'calc(100%)' : 'calc(100% - 83%)', margin: (!vedio[taskCount].length > 0 &&
  267. !textList[taskCount].length > 0 &&
  268. !lineList[taskCount].length > 0 &&
  269. !file[taskCount].length > 0 && fileC[taskCount].length) ? '0 15px' : '0 15px 0 0'
  270. }">
  271. <div class="vedioList" v-if="(vedio.length &&
  272. vedio[taskCount] &&
  273. vedio[taskCount].length > 0) ||
  274. (textList.length &&
  275. textList[taskCount] &&
  276. textList[taskCount].length > 0) ||
  277. (lineList.length &&
  278. lineList[taskCount] &&
  279. lineList[taskCount].length > 0) ||
  280. (file.length &&
  281. file[taskCount] &&
  282. file[taskCount].length > 0) ||
  283. (fileC.length &&
  284. fileC[taskCount] &&
  285. fileC[taskCount].length > 0)
  286. " style="height: 650px">
  287. <div class="navCorOpenBox">
  288. <div class="navTitile">内容列表:</div>
  289. <div class="navCorOpen" @click="setContent(false)">
  290. <img src="../../assets/navBtn2.png" alt="" />
  291. </div>
  292. </div>
  293. <div class="navBox">
  294. <div v-show="vedio.length &&
  295. vedio[taskCount] &&
  296. vedio[taskCount].length > 0
  297. ">
  298. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  299. @click="lookVedio(media.url, vedioIndex)">
  300. <div class="vedioName" :class="isClickNav == 'video' + vedioIndex
  301. ? 'isClickNav'
  302. : ''
  303. ">
  304. <span v-if="media.text">{{ media.text }}-</span>{{ media.name }}
  305. </div>
  306. </div>
  307. </div>
  308. <div v-show="textList.length &&
  309. textList[taskCount] &&
  310. textList[taskCount].length > 0
  311. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  312. @click="lookText(taskCount, textIndex)">
  313. <div style="width: calc(100% - 0px)">
  314. <div class="navText" :class="isClickNav == 'text' + textIndex
  315. ? 'isClickNav'
  316. : ''
  317. ">
  318. {{
  319. textList[taskCount].length > 0 ? text.name : ""
  320. }}.doc
  321. </div>
  322. </div>
  323. </div>
  324. <div v-show="lineList.length &&
  325. lineList[taskCount] &&
  326. lineList[taskCount].length > 0
  327. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  328. @click="doUrl(lines.url, lineIndex)">
  329. <div style="width: calc(100% - 0px)">
  330. <div class="navText" :class="isClickNav == 'line' + lineIndex
  331. ? 'isClickNav'
  332. : ''
  333. ">
  334. {{ lines.title ? lines.title : lines.url }}
  335. </div>
  336. </div>
  337. </div>
  338. <div class="newNav" v-show="file.length &&
  339. file[taskCount] &&
  340. file[taskCount].length > 0
  341. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  342. <div style="width: calc(100% - 0px)">
  343. <div class="navText" :class="isClickNav == 'word' + fileIndex
  344. ? 'isClickNav'
  345. : ''
  346. ">
  347. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  348. </div>
  349. </div>
  350. </div>
  351. <div class="newNav" v-show="fileC.length &&
  352. fileC[taskCount] &&
  353. fileC[taskCount].length > 0
  354. " v-for="(f, fileIndex) in fileC[taskCount]" :key="fileIndex" @click="downloadFile2(f)">
  355. <div style="width: calc(100% - 0px)">
  356. <div class="navText">
  357. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. <div style="width: 81%">
  366. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  367. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  368. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  369. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  370. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  371. </el-button>
  372. </div>
  373. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  374. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. <div class="student_body" v-resize="resize">
  380. <div class="vedioBox" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  381. .toolChoose[0].tool &&
  382. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  383. .toolChoose[0].tool.length &&
  384. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  385. .toolChoose[0].tool.length > 0
  386. ">
  387. <div class="queTop" style="
  388. font-size: 25px;
  389. padding: 15px 0 15px 30px;
  390. font-weight: bold;
  391. ">
  392. 任务发布区
  393. </div>
  394. <div class="toolHeng2" style="position: relative">
  395. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px"
  396. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose.length">
  397. <div class="choiceBox">
  398. <div class="bzChild" style="margin-right:20px;">
  399. <span>步骤选择:</span>
  400. </div>
  401. <div class="bzTypeBox">
  402. <div class="bzChild"
  403. v-for="(bz, bzIndex) in chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose"
  404. :key="bzIndex" :class="{active:toolIndex == bzIndex}" @click="checkBz(bzIndex)">
  405. <span>步骤{{ bzIndex + 1 }}</span>
  406. </div>
  407. </div>
  408. </div>
  409. <div class="bzBox">
  410. <div></div>
  411. <div>步骤{{ toolIndex + 1 }}</div>
  412. </div>
  413. <div class="toolBox">
  414. <div class="toolBoxSteps" @click="nextToolindex('last')"><img src="../../assets/icon/leftIcon.png" />
  415. </div>
  416. <div class="toolBoxSteps" @click="nextToolindex('next')"><img src="../../assets/icon/rightIcon.png" />
  417. </div>
  418. <div>
  419. <div class="noiframeBox">
  420. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  421. <div v-if="tooC == 1">
  422. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt
  423. @click="addTools(tooC, toolIndex, taskCount)" />
  424. <div style="margin: 5px 0">电子白板</div>
  425. </div>
  426. <div v-if="tooC == 3">
  427. <img src="../../assets/icon/secondToolList/mindMapping.png" alt
  428. @click="addTools(tooC, toolIndex, taskCount)" />
  429. <div style="margin: 5px 0">思维导图</div>
  430. </div>
  431. <div v-if="tooC == 6">
  432. <img src="../../assets/icon/secondToolList/doc.png" alt
  433. @click="addTools(tooC, toolIndex, taskCount)" />
  434. <div style="margin: 5px 0">协同文档</div>
  435. </div>
  436. <div v-if="tooC == 7">
  437. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt
  438. @click="addTools(tooC, toolIndex, taskCount)" />
  439. <div style="margin: 5px 0">思维网格</div>
  440. </div>
  441. <div v-if="tooC == 8">
  442. <img src="../../assets/icon/secondToolList/library.png" alt
  443. @click="addTools(tooC, toolIndex, taskCount)" />
  444. <div style="margin: 5px 0">素材库</div>
  445. </div>
  446. <div v-if="tooC == 17">
  447. <img src="../../assets/icon/secondToolList/library.png" alt
  448. @click="addTools(tooC, toolIndex, taskCount)" />
  449. <div style="margin: 5px 0">学习资料</div>
  450. </div>
  451. <div v-if="tooC == 2">
  452. <img @click="addTools(tooC, toolIndex, taskCount)"
  453. src="../../assets/icon/secondToolList/note.png" alt />
  454. <div style="margin: 5px 0">便签</div>
  455. </div>
  456. <div v-if="tooC == 4">
  457. <img @click="addTools(tooC, toolIndex, taskCount)"
  458. src="../../assets/icon/thirdToolList/ask.png" alt />
  459. <div style="margin: 5px 0">问卷调查</div>
  460. </div>
  461. <div v-if="tooC == 45">
  462. <img @click="addTools(tooC, toolIndex, taskCount)"
  463. src="../../assets/icon/thirdToolList/choose.png" alt />
  464. <div style="margin: 5px 0">选择题</div>
  465. </div>
  466. <!-- <div v-if="tooC == 5">
  467. <img
  468. @click="addTools(tooC, toolIndex, taskCount)"
  469. src="../../assets/icon/thirdToolList/score.png"
  470. alt
  471. />
  472. <div style="margin: 5px 0">量规评分</div>
  473. </div> -->
  474. <div v-if="tooC == 10">
  475. <img @click="addTools(tooC, toolIndex, taskCount)"
  476. src="../../assets/icon/thirdToolList/time.png" alt />
  477. <div style="margin: 5px 0">倒计时</div>
  478. </div>
  479. <div v-if="tooC == 15">
  480. <img @click="addTools(tooC, toolIndex, taskCount)"
  481. src="../../assets/icon/thirdToolList/answer.png" alt />
  482. <div style="margin: 5px 0">问答</div>
  483. </div>
  484. <div v-if="tooC == 26">
  485. <img @click="addTools(tooC, toolIndex, taskCount)"
  486. src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  487. <div style="margin: 5px 0">课程设计</div>
  488. </div>
  489. <div v-if="tooC == 18">
  490. <img @click="addTools(tooC, toolIndex, taskCount)"
  491. src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  492. <div style="margin: 5px 0">训练服务器</div>
  493. </div>
  494. <div v-if="tooC == 16">
  495. <img @click="addTools(tooC, toolIndex, taskCount)"
  496. src="../../assets/icon/thirdToolList/work.png" alt />
  497. <div style="margin: 5px 0">作业提交</div>
  498. </div>
  499. <div v-if="tooC == 50">
  500. <img @click="addTools(tooC, toolIndex, taskCount)"
  501. src="../../assets/icon/thirdToolList/plwork.png" alt />
  502. <div style="margin: 5px 0">批量上传</div>
  503. </div>
  504. <div v-if="tooC == 21">
  505. <img @click="addTools(tooC, toolIndex, taskCount)"
  506. src="../../assets/icon/fourthToolList/program.png" alt />
  507. <div style="margin: 5px 0">AIoT Blockly</div>
  508. </div>
  509. <div v-if="tooC == 22">
  510. <img @click="addTools(tooC, toolIndex, taskCount)"
  511. src="../../assets/icon/fourthToolList/program.png" alt />
  512. <div style="margin: 5px 0">AI体验</div>
  513. </div>
  514. <div v-if="tooC == 23">
  515. <img @click="addTools(tooC, toolIndex, taskCount)"
  516. src="../../assets/icon/fourthToolList/program.png" alt />
  517. <div style="margin: 5px 0">AI Python</div>
  518. </div>
  519. <div v-if="tooC == 24">
  520. <img @click="addTools(tooC, toolIndex, taskCount)"
  521. src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  522. <div style="margin: 5px 0">AI Blockly</div>
  523. </div>
  524. <div v-if="tooC == 25">
  525. <img @click="addTools(tooC, toolIndex, taskCount)"
  526. src="../../assets/icon/thirdToolList/evalua.png" alt />
  527. <div style="margin: 5px 0">目标管理</div>
  528. </div>
  529. <div v-if="tooC == 31">
  530. <img @click="addTools(tooC, toolIndex, taskCount)"
  531. src="../../assets/icon/secondToolList/networkPanel.png" alt />
  532. <div style="margin: 5px 0">数学画板</div>
  533. </div>
  534. <div v-if="tooC == 28">
  535. <img @click="addTools(tooC, toolIndex, taskCount)"
  536. src="../../assets/icon/secondToolList/translation.png" alt />
  537. <div style="margin: 5px 0">翻译</div>
  538. </div>
  539. <div v-if="tooC == 37">
  540. <img @click="addTools(tooC, toolIndex, taskCount)"
  541. src="../../assets/icon/secondToolList/mohe.png" alt />
  542. <div style="margin: 5px 0">魔盒识字</div>
  543. </div>
  544. <div v-if="tooC == 38">
  545. <img @click="addTools(tooC, toolIndex, taskCount)"
  546. src="../../assets/icon/secondToolList/24game.png" alt />
  547. <div style="margin: 5px 0">24点</div>
  548. </div>
  549. <div v-if="tooC == 39">
  550. <img @click="addTools(tooC, toolIndex, taskCount)"
  551. src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  552. <div style="margin: 5px 0">GeoGebra</div>
  553. </div>
  554. <div v-if="tooC == 32">
  555. <img @click="addTools(tooC, toolIndex, taskCount)"
  556. src="../../assets/icon/thirdToolList/code.png" alt />
  557. <div style="margin: 5px 0">源码编辑</div>
  558. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  559. style="position: absolute;left: 110px;bottom: 30px;">
  560. 上传文件
  561. <input type="file" accept="*" style="display: none"
  562. @change="beforeUpload1($event, 7, toolIndex)" />
  563. </div> -->
  564. </div>
  565. <div v-if="tooC == 40">
  566. <img @click="addTools(tooC, toolIndex, taskCount)"
  567. src="../../assets/icon/secondToolList/eval.png" alt />
  568. <div style="margin: 5px 0">个人评价</div>
  569. </div>
  570. <div v-if="tooC == 41">
  571. <img @click="addTools(tooC, toolIndex, taskCount)"
  572. src="../../assets/icon/thirdToolList/select.png" alt />
  573. <div style="margin: 5px 0">选择匹配</div>
  574. </div>
  575. <div v-if="tooC == 44">
  576. <img @click="addTools(tooC, toolIndex, taskCount)"
  577. src="../../assets/icon/thirdToolList/hanClass.png" alt />
  578. <div style="margin: 5px 0">汉字宫</div>
  579. </div>
  580. <div v-if="tooC == 47">
  581. <img @click="addTools(tooC, toolIndex, taskCount)"
  582. src="../../assets/icon/fourthToolList/conSentences.png" alt />
  583. <div style="margin: 5px 0">排序</div>
  584. </div>
  585. <div v-if="tooC == 48">
  586. <img @click="addTools(tooC, toolIndex, taskCount)"
  587. src="../../assets/icon/fourthToolList/table.png" alt />
  588. <div style="margin: 5px 0">表格</div>
  589. </div>
  590. <div v-if="tooC == 52">
  591. <img @click="addTools(tooC, toolIndex, taskCount)"
  592. src="../../assets/icon/fourthToolList/text.png" alt />
  593. <div style="margin: 5px 0">文档</div>
  594. </div>
  595. <div v-if="tooC == 49">
  596. <img @click="addTools(tooC, toolIndex, taskCount)"
  597. src="../../assets/icon/fourthToolList/group.png" alt />
  598. <div style="margin: 5px 0">学生分组</div>
  599. </div>
  600. <div v-if="tooC == 57">
  601. <img @click="addTools(tooC, toolIndex, taskCount)"
  602. src="../../assets/icon/fourthToolList/cocopi.png" alt />
  603. <div style="margin: 5px 0">CocoPi</div>
  604. </div>
  605. <div v-if="tooC == 58">
  606. <img @click="addTools(tooC, toolIndex, taskCount)"
  607. src="../../assets/icon/fourthToolList/car.png" alt />
  608. <div style="margin: 5px 0">模拟驾驶</div>
  609. </div>
  610. <div v-if="tooC == 59">
  611. <img @click="addTools(tooC, toolIndex, taskCount)"
  612. src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  613. <div style="margin: 5px 0">路径搜索</div>
  614. </div>
  615. <div v-if="tooC == 60">
  616. <img @click="addTools(tooC, toolIndex, taskCount)"
  617. src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  618. <div style="margin: 5px 0">深度学习</div>
  619. </div>
  620. <div v-if="tooC == 61">
  621. <img @click="addTools(tooC, toolIndex, taskCount)"
  622. src="../../assets/icon/fourthToolList/allHistory.png" alt />
  623. <div style="margin: 5px 0">全历史</div>
  624. </div>
  625. <div v-if="tooC == 62">
  626. <img @click="addTools(tooC, toolIndex, taskCount)"
  627. src="../../assets/icon/fourthToolList/interVideo.png" alt />
  628. <div style="margin: 5px 0">交互视频</div>
  629. </div>
  630. <div v-if="tooC == 63">
  631. <img @click="addTools(tooC, toolIndex, taskCount)"
  632. src="../../assets/icon/fourthToolList/Wood.png" alt />
  633. <div style="margin: 5px 0">海龟编程</div>
  634. </div>
  635. </div>
  636. </div>
  637. </div>
  638. <div class="tooldetail">
  639. <!-- <div class="toolTitle">工具描述</div> -->
  640. <div v-html="contentConvent(tool.toolDetail ? tool.toolDetail : '暂无描述')"></div>
  641. </div>
  642. <el-button type="primary" v-if="tool.tool[0] == 32" style="
  643. position: absolute;
  644. right: 30px;
  645. transform: translateY(-130%);
  646. " @click="addImg($event)">上传作业<input type="file" accept="*"
  647. style="display: none" @change="beforeUpload1($event, 7, toolIndex)" /></el-button>
  648. <el-button type="primary" v-if="tool.tool[0] == 57" style="
  649. position: absolute;
  650. right: 30px;
  651. transform: translateY(-130%);
  652. " @click="addImg($event)">上传作业<input type="file" accept="*"
  653. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button>
  654. </div>
  655. </div>
  656. </div>
  657. </div>
  658. <div class="vedioBox"
  659. v-if="arrayToArray(tool.tool, isWorkTool).length && worksTeacher.length && worksTeacher[toolIndex].length">
  660. <div class="queTop" style="
  661. font-size: 25px;
  662. padding: 15px 0 15px 30px;
  663. font-weight: bold;
  664. ">
  665. 教师工作区
  666. </div>
  667. <div class="tool_work_box">
  668. <div v-if="tType &&
  669. ((tType == 2 && sIsOpen == true) ||
  670. tType == 1 ||
  671. tType == 4) &&
  672. tool.tool.indexOf(16) != -1
  673. " class="worksBox">
  674. <div class="zuoyeYulan" v-if="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="worksTeacher.length &&
  682. worksTeacher[toolIndex].length > 0
  683. ">
  684. <div class="works" style="
  685. width: 200px;
  686. height: 140px;
  687. margin: 10px 10px 10px 0;
  688. border-radius: 15px;
  689. box-shadow: 0 0 6px 1px #dfdada;
  690. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  691. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  692. <div class="workImg" v-if="w.type == 0">
  693. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  694. <img :src="w.works" @click="previewImg(w.works)" alt />
  695. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  696. rightW:
  697. w.userid == userid ||
  698. tType == 1 ||
  699. tType == 4 ||
  700. w.ateacher == userid,
  701. }">
  702. {{ JSON.parse(w.score).wScore }}分
  703. </div>
  704. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  705. :class="{
  706. rightW:
  707. w.userid == userid ||
  708. tType == 1 ||
  709. tType == 4 ||
  710. w.ateacher == userid,
  711. }">
  712. 评分
  713. </div>
  714. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  715. " @click.stop="deleteWorks(w.wid)" alt />
  716. </div>
  717. <div class="workImg" v-if="w.type == 1">
  718. <img :src="word" @click="openFile(w.works)" alt />
  719. <!-- @click="openFile(w.works)" -->
  720. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  721. rightW:
  722. w.userid == userid ||
  723. tType == 1 ||
  724. tType == 4 ||
  725. w.ateacher == userid,
  726. }">
  727. {{ JSON.parse(w.score).wScore }}分
  728. </div>
  729. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  730. :class="{
  731. rightW:
  732. w.userid == userid ||
  733. tType == 1 ||
  734. tType == 4 ||
  735. w.ateacher == userid,
  736. }">
  737. 评分
  738. </div>
  739. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  740. " @click.stop="deleteWorks(w.wid)" alt />
  741. </div>
  742. <div class="workImg" v-if="w.type == 3">
  743. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  744. <!-- @click="openVideo(w.works)" -->
  745. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  746. rightW:
  747. w.userid == userid ||
  748. tType == 1 ||
  749. tType == 4 ||
  750. w.ateacher == userid,
  751. }">
  752. {{ JSON.parse(w.score).wScore }}分
  753. </div>
  754. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  755. :class="{
  756. rightW:
  757. w.userid == userid ||
  758. tType == 1 ||
  759. tType == 4 ||
  760. w.ateacher == userid,
  761. }">
  762. 评分
  763. </div>
  764. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  765. " @click.stop="deleteWorks(w.wid)" alt />
  766. </div>
  767. <div class="workImg" v-if="w.type == 12">
  768. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  769. <!-- @click="openVideo(w.works)" -->
  770. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  771. rightW:
  772. w.userid == userid ||
  773. tType == 1 ||
  774. tType == 4 ||
  775. w.ateacher == userid,
  776. }">
  777. {{ JSON.parse(w.score).wScore }}分
  778. </div>
  779. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  780. :class="{
  781. rightW:
  782. w.userid == userid ||
  783. tType == 1 ||
  784. tType == 4 ||
  785. w.ateacher == userid,
  786. }">
  787. 评分
  788. </div>
  789. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  790. " @click.stop="deleteWorks(w.wid)" alt />
  791. </div>
  792. <div class="comment" style="min-width: 200px">
  793. <div class="worksName">
  794. <div>{{ w.sName }}</div>
  795. </div>
  796. <div class="commentList">
  797. <div class="commentList">
  798. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  799. ">
  800. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  801. </div>
  802. <div>{{ w.likesCount }}</div>
  803. </div>
  804. <div class="commentList" style="margin-right: 15px">
  805. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  806. <img src="../../assets/icon/comment/comment.png" alt="" />
  807. </div>
  808. <div>{{ w.commentCount }}</div>
  809. </div>
  810. </div>
  811. </div>
  812. </div>
  813. </div>
  814. </div>
  815. <div v-if="tType &&
  816. ((tType == 2 && sIsOpen == true) ||
  817. tType == 1 ||
  818. tType == 4) &&
  819. tool.tool.indexOf(32) != -1
  820. " class="worksBox">
  821. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  822. worksTeacher[toolIndex].length > 0
  823. ">
  824. <div class="worksTop">
  825. <div>作业预览</div>
  826. </div>
  827. </div>
  828. <div class="worksDetailBox" v-if="worksTeacher.length &&
  829. worksTeacher[toolIndex].length > 0
  830. ">
  831. <div class="works" style="
  832. width: 200px;
  833. height: 140px;
  834. margin: 10px 10px 10px 0;
  835. border-radius: 15px;
  836. box-shadow: 0 0 6px 1px #dfdada;
  837. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  838. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  839. <div class="workImg">
  840. <img :src="word2" @click="downloadFile(w.works)" alt />
  841. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  842. rightW:
  843. w.userid == userid ||
  844. tType == 1 ||
  845. tType == 4 ||
  846. w.ateacher == userid,
  847. }">
  848. {{ JSON.parse(w.score).wScore }}分
  849. </div>
  850. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  851. :class="{
  852. rightW:
  853. w.userid == userid ||
  854. tType == 1 ||
  855. tType == 4 ||
  856. w.ateacher == userid,
  857. }">
  858. 评分
  859. </div>
  860. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  861. " @click.stop="deleteWorks(w.wid)" alt />
  862. </div>
  863. <div class="comment" style="min-width: 200px">
  864. <div class="worksName">
  865. <div>{{ w.sName }}</div>
  866. </div>
  867. <div class="commentList">
  868. <div class="commentList">
  869. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  870. ">
  871. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  872. </div>
  873. <div>{{ w.likesCount }}</div>
  874. </div>
  875. <div class="commentList" style="margin-right: 15px">
  876. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  877. <img src="../../assets/icon/comment/comment.png" alt="" />
  878. </div>
  879. <div>{{ w.commentCount }}</div>
  880. </div>
  881. </div>
  882. </div>
  883. </div>
  884. </div>
  885. </div>
  886. <div v-if="tType &&
  887. ((tType == 2 && sIsOpen == true) ||
  888. tType == 1 ||
  889. tType == 4) &&
  890. tool.tool.indexOf(57) != -1
  891. " class="worksBox">
  892. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  893. worksTeacher[toolIndex].length > 0
  894. ">
  895. <div class="worksTop">
  896. <div>作业预览</div>
  897. </div>
  898. </div>
  899. <div class="worksDetailBox" v-if="worksTeacher.length &&
  900. worksTeacher[toolIndex].length > 0
  901. ">
  902. <div class="works" style="
  903. width: 200px;
  904. height: 140px;
  905. margin: 10px 10px 10px 0;
  906. border-radius: 15px;
  907. box-shadow: 0 0 6px 1px #dfdada;
  908. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  909. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  910. <div class="workImg">
  911. <img :src="word2" @click="downloadFile(w.works)" alt />
  912. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  913. rightW:
  914. w.userid == userid ||
  915. tType == 1 ||
  916. tType == 4 ||
  917. w.ateacher == userid,
  918. }">
  919. {{ JSON.parse(w.score).wScore }}分
  920. </div>
  921. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  922. :class="{
  923. rightW:
  924. w.userid == userid ||
  925. tType == 1 ||
  926. tType == 4 ||
  927. w.ateacher == userid,
  928. }">
  929. 评分
  930. </div>
  931. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  932. " @click.stop="deleteWorks(w.wid)" alt />
  933. </div>
  934. <div class="comment" style="min-width: 200px">
  935. <div class="worksName">
  936. <div>{{ w.sName }}</div>
  937. </div>
  938. <div class="commentList">
  939. <div class="commentList">
  940. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  941. ">
  942. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  943. </div>
  944. <div>{{ w.likesCount }}</div>
  945. </div>
  946. <div class="commentList" style="margin-right: 15px">
  947. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  948. <img src="../../assets/icon/comment/comment.png" alt="" />
  949. </div>
  950. <div>{{ w.commentCount }}</div>
  951. </div>
  952. </div>
  953. </div>
  954. </div>
  955. </div>
  956. </div>
  957. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  958. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  959. worksTeacher[toolIndex].length > 0
  960. ">
  961. <span>作业预览</span>
  962. </div>
  963. <div class="worksDetailBox" v-if="worksTeacher.length &&
  964. worksTeacher[toolIndex].length > 0
  965. ">
  966. <div class="works" style="
  967. width: 200px;
  968. height: 140px;
  969. margin: 10px 10px 10px 0;
  970. border-radius: 15px;
  971. box-shadow: 0 0 6px 1px #dfdada;
  972. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  973. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  974. <div class="workImg" v-if="w.type == 0">
  975. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  976. <img :src="w.works" @click="previewImg(w.works)" alt />
  977. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  978. rightW:
  979. w.userid == userid ||
  980. tType == 1 ||
  981. tType == 4 ||
  982. w.ateacher == userid,
  983. }">
  984. {{ JSON.parse(w.score).wScore }}分
  985. </div>
  986. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  987. :class="{
  988. rightW:
  989. w.userid == userid ||
  990. tType == 1 ||
  991. tType == 4 ||
  992. w.ateacher == userid,
  993. }">
  994. 评分
  995. </div>
  996. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  997. " @click.stop="deleteWorks(w.wid)" alt />
  998. </div>
  999. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  1000. <img :src="word" @click="openFile(w.works)" alt />
  1001. <!-- @click="openFile(w.works)" -->
  1002. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1003. rightW:
  1004. w.userid == userid ||
  1005. tType == 1 ||
  1006. tType == 4 ||
  1007. w.ateacher == userid,
  1008. }">
  1009. {{ JSON.parse(w.score).wScore }}分
  1010. </div>
  1011. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1012. :class="{
  1013. rightW:
  1014. w.userid == userid ||
  1015. tType == 1 ||
  1016. tType == 4 ||
  1017. w.ateacher == userid,
  1018. }">
  1019. 评分
  1020. </div>
  1021. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1022. " @click.stop="deleteWorks(w.wid)" alt />
  1023. </div>
  1024. <div class="workImg" v-if="w.type == 3">
  1025. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1026. <!-- @click="openVideo(w.works)" -->
  1027. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1028. rightW:
  1029. w.userid == userid ||
  1030. tType == 1 ||
  1031. tType == 4 ||
  1032. w.ateacher == userid,
  1033. }">
  1034. {{ JSON.parse(w.score).wScore }}分
  1035. </div>
  1036. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1037. :class="{
  1038. rightW:
  1039. w.userid == userid ||
  1040. tType == 1 ||
  1041. tType == 4 ||
  1042. w.ateacher == userid,
  1043. }">
  1044. 评分
  1045. </div>
  1046. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1047. " @click.stop="deleteWorks(w.wid)" alt />
  1048. </div>
  1049. <div class="comment" style="min-width: 200px">
  1050. <div class="worksName">
  1051. <div style="cursor: pointer" @click="openSname(w.sName, w.wid,toolIndex)">
  1052. {{ w.sName }}
  1053. </div>
  1054. </div>
  1055. <div class="commentList">
  1056. <div class="commentList">
  1057. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1058. ">
  1059. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1060. </div>
  1061. <div>{{ w.likesCount }}</div>
  1062. </div>
  1063. <div class="commentList" style="margin-right: 15px">
  1064. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1065. <img src="../../assets/icon/comment/comment.png" alt="" />
  1066. </div>
  1067. <div>{{ w.commentCount }}</div>
  1068. </div>
  1069. </div>
  1070. </div>
  1071. </div>
  1072. </div>
  1073. </div>
  1074. <div v-if="tType &&
  1075. ((tType == 2 && sIsOpen == true) ||
  1076. tType == 1 ||
  1077. tType == 4) &&
  1078. tool.tool.indexOf(4) != -1
  1079. " class="worksBox">
  1080. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1081. worksTeacher[toolIndex].length > 0
  1082. ">
  1083. <div class="worksTop">
  1084. <div>作业预览</div>
  1085. </div>
  1086. </div>
  1087. <div>
  1088. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1089. worksTeacher[toolIndex].length > 0
  1090. ">
  1091. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName" @click="openTools(4, toolIndex, taskCount, w.works, w.sName)
  1092. ">
  1093. {{ w.sName }}
  1094. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1095. " @click.stop="deleteWorks(w.wid)" alt />
  1096. </div>
  1097. </div>
  1098. </div>
  1099. </div>
  1100. <div v-if="tType &&
  1101. ((tType == 2 && sIsOpen == true) ||
  1102. tType == 1 ||
  1103. tType == 4) &&
  1104. tool.tool.indexOf(45) != -1
  1105. " class="worksBox">
  1106. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1107. worksTeacher[toolIndex].length > 0
  1108. ">
  1109. <div class="worksTop">
  1110. <div>作业预览</div>
  1111. </div>
  1112. </div>
  1113. <div>
  1114. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1115. worksTeacher[toolIndex].length > 0
  1116. ">
  1117. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName" @click="openTools(
  1118. 45,
  1119. toolIndex,
  1120. taskCount,
  1121. w.works,
  1122. w.sName
  1123. )
  1124. ">
  1125. {{ w.sName }}
  1126. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1127. " @click.stop="deleteWorks(w.wid)" alt />
  1128. </div>
  1129. </div>
  1130. </div>
  1131. </div>
  1132. <div v-if="tType &&
  1133. ((tType == 2 && sIsOpen == true) ||
  1134. tType == 1 ||
  1135. tType == 4) &&
  1136. tool.tool.indexOf(15) != -1
  1137. " class="worksBox">
  1138. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1139. worksTeacher[toolIndex].length > 0
  1140. ">
  1141. <div class="worksTop">
  1142. <div>作业预览</div>
  1143. </div>
  1144. </div>
  1145. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1146. worksTeacher[toolIndex].length > 0
  1147. ">
  1148. <div class="works" v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex">
  1149. <div class="workImg" style="
  1150. border-radius: 15px;
  1151. box-shadow: 0px 0px 5px 5px #eee;
  1152. ">
  1153. <!-- <img
  1154. src="../../assets/icon/works/noImg.png"
  1155. @click="openTools(15, toolIndex, taskCount, w.works)"
  1156. alt=""
  1157. />-->
  1158. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  1159. @click="commentOther(w, toolIndex, wIndex)">
  1160. <!-- <div>{{ w.sName }}</div> -->
  1161. <div class="answerContent">
  1162. {{ JSON.parse(w.works)[0].answer }}
  1163. </div>
  1164. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1165. rightW:
  1166. w.userid == userid ||
  1167. tType == 1 ||
  1168. tType == 4,
  1169. }">
  1170. {{ JSON.parse(w.score).wScore }}分
  1171. </div>
  1172. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1173. :class="{
  1174. rightW:
  1175. w.userid == userid ||
  1176. tType == 1 ||
  1177. tType == 4,
  1178. }">
  1179. 评分
  1180. </div>
  1181. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1182. " @click.stop="deleteWorks(w.wid)" alt />
  1183. </div>
  1184. <div class="comment">
  1185. <div class="worksName">
  1186. <div>{{ w.sName }}</div>
  1187. </div>
  1188. <div class="commentList">
  1189. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1190. ">
  1191. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1192. </div>
  1193. <div>{{ w.likesCount }}</div>
  1194. </div>
  1195. <div class="commentList" style="margin-right: 15px">
  1196. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1197. <img src="../../assets/icon/comment/comment.png" alt="" />
  1198. </div>
  1199. <div>{{ w.commentCount }}</div>
  1200. </div>
  1201. </div>
  1202. </div>
  1203. </div>
  1204. </div>
  1205. </div>
  1206. <div v-if="tType &&
  1207. ((tType == 2 && sIsOpen == true) ||
  1208. tType == 1 ||
  1209. tType == 4) &&
  1210. tool.tool.indexOf(1) != -1
  1211. " class="worksBox">
  1212. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1213. worksTeacher[toolIndex].length > 0
  1214. ">
  1215. <div class="worksTop">
  1216. <div>作业预览</div>
  1217. </div>
  1218. </div>
  1219. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1220. worksTeacher[toolIndex].length > 0
  1221. ">
  1222. <div class="works" style="
  1223. width: 200px;
  1224. height: 140px;
  1225. margin: 10px 10px 10px 0;
  1226. border-radius: 15px;
  1227. box-shadow: 0 0 6px 1px #dfdada;
  1228. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1229. :key="wIndex">
  1230. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  1231. <div class="workImg">
  1232. <img :src="w.works" @click="previewImg(w.works)" alt />
  1233. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1234. rightW:
  1235. w.userid == userid || tType == 1 || tType == 4,
  1236. }">
  1237. {{ JSON.parse(w.score).wScore }}分
  1238. </div>
  1239. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1240. :class="{
  1241. rightW:
  1242. w.userid == userid || tType == 1 || tType == 4,
  1243. }">
  1244. 评分
  1245. </div>
  1246. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1247. " @click.stop="deleteWorks(w.wid)" alt />
  1248. </div>
  1249. <div class="comment" style="min-width: 200px">
  1250. <div class="worksName">
  1251. <div>{{ w.sName }}</div>
  1252. </div>
  1253. <div class="commentList">
  1254. <div class="commentList">
  1255. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1256. ">
  1257. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1258. </div>
  1259. <div>{{ w.likesCount }}</div>
  1260. </div>
  1261. <div class="commentList" style="margin-right: 15px">
  1262. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1263. <img src="../../assets/icon/comment/comment.png" alt="" />
  1264. </div>
  1265. <div>{{ w.commentCount }}</div>
  1266. </div>
  1267. </div>
  1268. </div>
  1269. </div>
  1270. </div>
  1271. </div>
  1272. <div v-if="tType &&
  1273. ((tType == 2 && sIsOpen == true) ||
  1274. tType == 1 ||
  1275. tType == 4) &&
  1276. tool.tool.indexOf(3) != -1
  1277. " class="worksBox">
  1278. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1279. worksTeacher[toolIndex].length > 0
  1280. ">
  1281. <div class="worksTop">
  1282. <div>作业预览</div>
  1283. </div>
  1284. </div>
  1285. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1286. worksTeacher[toolIndex].length > 0
  1287. ">
  1288. <div class="works" style="
  1289. width: 200px;
  1290. height: 140px;
  1291. margin: 10px 10px 10px 0;
  1292. border-radius: 15px;
  1293. box-shadow: 0 0 6px 1px #dfdada;
  1294. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1295. :key="wIndex">
  1296. <!-- @click="previewImg(w.works)" -->
  1297. <div class="workImg">
  1298. <img :src="w.works" @click="previewImg(w.works)" alt />
  1299. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1300. rightW:
  1301. w.userid == userid || tType == 1 || tType == 4,
  1302. }">
  1303. {{ JSON.parse(w.score).wScore }}分
  1304. </div>
  1305. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1306. :class="{
  1307. rightW:
  1308. w.userid == userid || tType == 1 || tType == 4,
  1309. }">
  1310. 评分
  1311. </div>
  1312. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1313. " @click.stop="deleteWorks(w.wid)" alt />
  1314. </div>
  1315. <div class="comment" style="min-width: 200px">
  1316. <div class="worksName">
  1317. <div>{{ w.sName }}</div>
  1318. </div>
  1319. <div class="commentList">
  1320. <div class="commentList">
  1321. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1322. ">
  1323. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1324. </div>
  1325. <div>{{ w.likesCount }}</div>
  1326. </div>
  1327. <div class="commentList" style="margin-right: 15px">
  1328. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1329. <img src="../../assets/icon/comment/comment.png" alt="" />
  1330. </div>
  1331. <div>{{ w.commentCount }}</div>
  1332. </div>
  1333. </div>
  1334. </div>
  1335. </div>
  1336. </div>
  1337. </div>
  1338. <div v-if="tType &&
  1339. ((tType == 2 && sIsOpen == true) ||
  1340. tType == 1 ||
  1341. tType == 4) &&
  1342. tool.tool.indexOf(6) != -1
  1343. " class="worksBox">
  1344. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1345. worksTeacher[toolIndex].length > 0
  1346. ">
  1347. <div class="worksTop">
  1348. <div>作业预览</div>
  1349. </div>
  1350. </div>
  1351. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1352. worksTeacher[toolIndex].length > 0
  1353. ">
  1354. <div class="works" style="
  1355. width: 200px;
  1356. height: 140px;
  1357. margin: 10px 10px 10px 0;
  1358. border-radius: 15px;
  1359. box-shadow: 0 0 6px 1px #dfdada;
  1360. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1361. :key="wIndex">
  1362. <!-- @click="previewImg(w.works)" -->
  1363. <div class="workImg">
  1364. <img :src="w.works" @click="previewImg(w.works)" alt />
  1365. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1366. rightW:
  1367. w.userid == userid || tType == 1 || tType == 4,
  1368. }">
  1369. {{ JSON.parse(w.score).wScore }}分
  1370. </div>
  1371. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1372. :class="{
  1373. rightW:
  1374. w.userid == userid || tType == 1 || tType == 4,
  1375. }">
  1376. 评分
  1377. </div>
  1378. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1379. " @click.stop="deleteWorks(w.wid)" alt />
  1380. </div>
  1381. <div class="comment" style="min-width: 200px">
  1382. <div class="worksName">
  1383. <div>{{ w.sName }}</div>
  1384. </div>
  1385. <div class="commentList">
  1386. <div class="commentList">
  1387. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1388. ">
  1389. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1390. </div>
  1391. <div>{{ w.likesCount }}</div>
  1392. </div>
  1393. <div class="commentList" style="margin-right: 15px">
  1394. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1395. <img src="../../assets/icon/comment/comment.png" alt="" />
  1396. </div>
  1397. <div>{{ w.commentCount }}</div>
  1398. </div>
  1399. </div>
  1400. </div>
  1401. </div>
  1402. </div>
  1403. </div>
  1404. <div v-if="tType &&
  1405. ((tType == 2 && sIsOpen == true) ||
  1406. tType == 1 ||
  1407. tType == 4) &&
  1408. tool.tool.indexOf(7) != -1
  1409. " class="worksBox">
  1410. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1411. worksTeacher[toolIndex].length > 0
  1412. ">
  1413. <div class="worksTop">
  1414. <div>作业预览</div>
  1415. </div>
  1416. </div>
  1417. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1418. worksTeacher[toolIndex].length > 0
  1419. ">
  1420. <div class="works" style="
  1421. width: 200px;
  1422. height: 140px;
  1423. margin: 10px 10px 10px 0;
  1424. border-radius: 15px;
  1425. box-shadow: 0 0 6px 1px #dfdada;
  1426. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1427. :key="wIndex">
  1428. <!-- @click="previewImg(w.works)" -->
  1429. <div class="workImg">
  1430. <img :src="w.works" @click="previewImg(w.works)" alt />
  1431. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1432. rightW:
  1433. w.userid == userid || tType == 1 || tType == 4,
  1434. }">
  1435. {{ JSON.parse(w.score).wScore }}分
  1436. </div>
  1437. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1438. :class="{
  1439. rightW:
  1440. w.userid == userid || tType == 1 || tType == 4,
  1441. }">
  1442. 评分
  1443. </div>
  1444. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1445. " @click.stop="deleteWorks(w.wid)" alt />
  1446. </div>
  1447. <div class="comment" style="min-width: 200px">
  1448. <div class="worksName">
  1449. <div>{{ w.sName }}</div>
  1450. </div>
  1451. <div class="commentList">
  1452. <div class="commentList">
  1453. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1454. ">
  1455. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1456. </div>
  1457. <div>{{ w.likesCount }}</div>
  1458. </div>
  1459. <div class="commentList" style="margin-right: 15px">
  1460. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1461. <img src="../../assets/icon/comment/comment.png" alt="" />
  1462. </div>
  1463. <div>{{ w.commentCount }}</div>
  1464. </div>
  1465. </div>
  1466. </div>
  1467. </div>
  1468. </div>
  1469. </div>
  1470. <div v-if="tType &&
  1471. ((tType == 2 && sIsOpen == true) ||
  1472. tType == 1 ||
  1473. tType == 4) &&
  1474. tool.tool.indexOf(26) != -1
  1475. " class="worksBox">
  1476. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1477. worksTeacher[toolIndex].length > 0
  1478. ">
  1479. <div class="worksTop">
  1480. <div>作业预览</div>
  1481. </div>
  1482. </div>
  1483. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1484. worksTeacher[toolIndex].length > 0
  1485. ">
  1486. <div class="works" style="width: 240px; height: 140px; overflow: hidden"
  1487. v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex"
  1488. :class="w.type == 1 ? 'isTypeOne' : ''">
  1489. <div class="workImg" v-if="w.type == 0">
  1490. <img :src="w.works" @click="previewImg(w.works)" alt />
  1491. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1492. " @click.stop="deleteWorks(w.wid)" alt />
  1493. </div>
  1494. <div class="workImg" v-if="w.type == 1">
  1495. <img :src="word" @click="openFile(w.works)" alt />
  1496. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1497. " @click.stop="deleteWorks(w.wid)" alt />
  1498. </div>
  1499. <div class="worksName">
  1500. <div>{{ w.sName }}</div>
  1501. </div>
  1502. </div>
  1503. </div>
  1504. </div>
  1505. <div v-if="tType &&
  1506. ((tType == 2 && sIsOpen == true) ||
  1507. tType == 1 ||
  1508. tType == 4) &&
  1509. tool.tool.indexOf(40) != -1
  1510. " class="worksBox">
  1511. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1512. worksTeacher[toolIndex].length > 0
  1513. ">
  1514. <div class="worksTop">
  1515. <div>作业预览</div>
  1516. </div>
  1517. </div>
  1518. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1519. worksTeacher[toolIndex].length > 0
  1520. ">
  1521. <div class="works" style="
  1522. width: 200px;
  1523. height: 140px;
  1524. margin: 10px 10px 10px 0;
  1525. border-radius: 15px;
  1526. box-shadow: 0 0 6px 1px #dfdada;
  1527. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1528. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1529. <div class="workImg">
  1530. <img src="../../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1531. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1532. " @click.stop="deleteWorks(w.wid)" alt />
  1533. </div>
  1534. <div class="comment" style="min-width: 200px">
  1535. <div class="worksName">
  1536. <div>{{ w.sName }}</div>
  1537. </div>
  1538. <div class="commentList">
  1539. <div class="commentList">
  1540. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1541. ">
  1542. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1543. </div>
  1544. <div>{{ w.likesCount }}</div>
  1545. </div>
  1546. <div class="commentList" style="margin-right: 15px">
  1547. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1548. <img src="../../assets/icon/comment/comment.png" alt="" />
  1549. </div>
  1550. <div>{{ w.commentCount }}</div>
  1551. </div>
  1552. </div>
  1553. </div>
  1554. </div>
  1555. </div>
  1556. </div>
  1557. <div v-if="tType &&
  1558. ((tType == 2 && sIsOpen == true) ||
  1559. tType == 1 ||
  1560. tType == 4) &&
  1561. tool.tool.indexOf(41) != -1
  1562. " class="worksBox">
  1563. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1564. worksTeacher[toolIndex].length > 0
  1565. ">
  1566. <div class="worksTop">
  1567. <div>作业预览</div>
  1568. </div>
  1569. </div>
  1570. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1571. worksTeacher[toolIndex].length > 0
  1572. ">
  1573. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName"
  1574. @click="openXz(w, toolIndex)">
  1575. {{ w.sName }}
  1576. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  1577. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  1578. </div>
  1579. </div>
  1580. </div>
  1581. <div v-if="tType &&
  1582. ((tType == 2 && sIsOpen == true) ||
  1583. tType == 1 ||
  1584. tType == 4) &&
  1585. tool.tool.indexOf(47) != -1
  1586. " class="worksBox">
  1587. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1588. worksTeacher[toolIndex].length > 0
  1589. ">
  1590. <div class="worksTop">
  1591. <div>作业预览</div>
  1592. </div>
  1593. </div>
  1594. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1595. worksTeacher[toolIndex].length > 0
  1596. ">
  1597. <!-- @click="openXz(w, toolIndex)" -->
  1598. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName"
  1599. @click="openSen(w, toolIndex)">
  1600. {{ w.sName }}
  1601. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  1602. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  1603. </div>
  1604. </div>
  1605. </div>
  1606. <div v-if="tType &&
  1607. ((tType == 2 && sIsOpen == true) ||
  1608. tType == 1 ||
  1609. tType == 4) &&
  1610. tool.tool.indexOf(48) != -1
  1611. " class="worksBox">
  1612. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1613. worksTeacher[toolIndex].length > 0
  1614. ">
  1615. <div class="worksTop">
  1616. <div>作业预览</div>
  1617. </div>
  1618. </div>
  1619. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1620. worksTeacher[toolIndex].length > 0
  1621. ">
  1622. <div class="works" style="
  1623. width: 200px;
  1624. height: 140px;
  1625. margin: 10px 10px 10px 0;
  1626. border-radius: 15px;
  1627. box-shadow: 0 0 6px 1px #dfdada;
  1628. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1629. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1630. <div class="workImg">
  1631. <img :src="word" @click="openTable(w)" alt />
  1632. <!-- @click="openFile(w.works)" -->
  1633. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1634. rightW:
  1635. w.userid == userid ||
  1636. tType == 1 ||
  1637. tType == 4 ||
  1638. w.ateacher == userid,
  1639. }">
  1640. {{ JSON.parse(w.score).wScore }}分
  1641. </div>
  1642. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1643. :class="{
  1644. rightW:
  1645. w.userid == userid ||
  1646. tType == 1 ||
  1647. tType == 4 ||
  1648. w.ateacher == userid,
  1649. }">
  1650. 评分
  1651. </div>
  1652. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1653. " @click.stop="deleteWorks(w.wid)" alt />
  1654. </div>
  1655. <div class="comment" style="min-width: 200px">
  1656. <div class="worksName">
  1657. <div>{{ w.sName }}</div>
  1658. </div>
  1659. <div class="commentList">
  1660. <div class="commentList">
  1661. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1662. ">
  1663. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1664. </div>
  1665. <div>{{ w.likesCount }}</div>
  1666. </div>
  1667. <div class="commentList" style="margin-right: 15px">
  1668. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1669. <img src="../../assets/icon/comment/comment.png" alt="" />
  1670. </div>
  1671. <div>{{ w.commentCount }}</div>
  1672. </div>
  1673. </div>
  1674. </div>
  1675. </div>
  1676. </div>
  1677. </div>
  1678. <div v-if="tType &&
  1679. ((tType == 2 && sIsOpen == true) ||
  1680. tType == 1 ||
  1681. tType == 4) &&
  1682. tool.tool.indexOf(52) != -1
  1683. " class="worksBox">
  1684. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1685. worksTeacher[toolIndex].length > 0
  1686. ">
  1687. <div class="worksTop">
  1688. <div>作业预览</div>
  1689. </div>
  1690. </div>
  1691. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1692. worksTeacher[toolIndex].length > 0
  1693. ">
  1694. <div class="works" style="
  1695. width: 200px;
  1696. height: 140px;
  1697. margin: 10px 10px 10px 0;
  1698. border-radius: 15px;
  1699. box-shadow: 0 0 6px 1px #dfdada;
  1700. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1701. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1702. <div class="workImg">
  1703. <img :src="word" @click="openWord(w)" alt />
  1704. <!-- @click="openFile(w.works)" -->
  1705. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1706. rightW:
  1707. w.userid == userid ||
  1708. tType == 1 ||
  1709. tType == 4 ||
  1710. w.ateacher == userid,
  1711. }">
  1712. {{ JSON.parse(w.score).wScore }}分
  1713. </div>
  1714. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1715. :class="{
  1716. rightW:
  1717. w.userid == userid ||
  1718. tType == 1 ||
  1719. tType == 4 ||
  1720. w.ateacher == userid,
  1721. }">
  1722. 评分
  1723. </div>
  1724. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1725. " @click.stop="deleteWorks(w.wid)" alt />
  1726. </div>
  1727. <div class="comment" style="min-width: 200px">
  1728. <div class="worksName">
  1729. <div>{{ w.sName }}</div>
  1730. </div>
  1731. <div class="commentList">
  1732. <div class="commentList">
  1733. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1734. ">
  1735. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1736. </div>
  1737. <div>{{ w.likesCount }}</div>
  1738. </div>
  1739. <div class="commentList" style="margin-right: 15px">
  1740. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1741. <img src="../../assets/icon/comment/comment.png" alt="" />
  1742. </div>
  1743. <div>{{ w.commentCount }}</div>
  1744. </div>
  1745. </div>
  1746. </div>
  1747. </div>
  1748. </div>
  1749. </div>
  1750. </div>
  1751. </div>
  1752. <div class="vedioBox">
  1753. <div v-if="tType &&
  1754. ((tType == 2 && sIsOpen == true) ||
  1755. tType == 1 ||
  1756. tType == 4) &&
  1757. tool.tool.indexOf(4) != -1 && worksStudent.length &&
  1758. worksStudent[toolIndex].length &&
  1759. (tool.askJson[0].answer ||
  1760. tool.askJson[0].answer === 0) &&
  1761. checkJson[toolIndex].length
  1762. " class="xuan_right_box">
  1763. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  1764. <div>
  1765. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1766. </div>
  1767. <div class="right_box_xuan">
  1768. <span>正确率</span>
  1769. <span>{{
  1770. (checkJson[toolIndex][index].right
  1771. ? checkJson[toolIndex][index].right
  1772. : 0) + "%"
  1773. }}</span>
  1774. </div>
  1775. </div>
  1776. </div>
  1777. <div class="xuan_right_box" style="background: unset" v-if="tType &&
  1778. ((tType == 2 && sIsOpen == true) ||
  1779. tType == 1 ||
  1780. tType == 4) &&
  1781. tool.tool.indexOf(4) != -1 && worksStudent.length &&
  1782. worksStudent[toolIndex].length
  1783. ">
  1784. <AskStatic v-if="worksStudent.length &&
  1785. worksStudent[toolIndex].length > 0
  1786. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  1787. </div>
  1788. <div v-if="tType &&
  1789. ((tType == 2 && sIsOpen == true) ||
  1790. tType == 1 ||
  1791. tType == 4) &&
  1792. tool.tool.indexOf(45) != -1 && worksStudent.length &&
  1793. worksStudent[toolIndex].length &&
  1794. (tool.testJson.testJson[0].answer ||
  1795. tool.testJson.testJson[0].answer === 0) &&
  1796. checkJson[toolIndex].length
  1797. " class="xuan_right_box">
  1798. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  1799. <div>
  1800. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1801. </div>
  1802. <div class="right_box_xuan">
  1803. <span>正确率</span>
  1804. <span>{{
  1805. (checkJson[toolIndex][index].right
  1806. ? checkJson[toolIndex][index].right
  1807. : 0) + "%"
  1808. }}</span>
  1809. </div>
  1810. </div>
  1811. </div>
  1812. <div class="xuan_right_box" style="background: unset" v-if="tType &&
  1813. ((tType == 2 && sIsOpen == true) ||
  1814. tType == 1 ||
  1815. tType == 4) &&
  1816. tool.tool.indexOf(45) != -1 && worksStudent.length &&
  1817. worksStudent[toolIndex].length
  1818. ">
  1819. <AskStatic2 v-if="worksStudent.length &&
  1820. worksStudent[toolIndex].length > 0
  1821. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  1822. </div>
  1823. <div v-if="tType &&
  1824. ((tType == 2 && sIsOpen == true) ||
  1825. tType == 1 ||
  1826. tType == 4) &&
  1827. tool.tool.indexOf(41) != -1
  1828. ">
  1829. <AnswerData2 v-if="worksStudent.length &&
  1830. worksStudent[toolIndex].length > 0
  1831. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  1832. </div>
  1833. <div v-if="tType &&
  1834. ((tType == 2 && sIsOpen == true) ||
  1835. tType == 1 ||
  1836. tType == 4) &&
  1837. tool.tool.indexOf(47) != -1
  1838. ">
  1839. <AnswerData v-if="checkJson[toolIndex].length &&
  1840. (tool.sentenceList || tool.sentenceList.length > 0)
  1841. " :people="checkJson[toolIndex]"></AnswerData>
  1842. </div>
  1843. </div>
  1844. <div class="vedioBox" v-if="arrayToArray(tool.tool, isWorkTool).length">
  1845. <div class="queTop" style="
  1846. font-size: 25px;
  1847. padding: 15px 0 15px 30px;
  1848. font-weight: bold;
  1849. ">
  1850. 学生工作区
  1851. </div>
  1852. <div class="tool_work_box">
  1853. <div v-if="tType &&
  1854. ((tType == 2 && sIsOpen == true) ||
  1855. tType == 1 ||
  1856. tType == 4) &&
  1857. tool.tool.indexOf(16) != -1
  1858. " class="worksBox">
  1859. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  1860. worksStudent2[toolIndex].length > 0
  1861. ">
  1862. <div class="worksTop">
  1863. <div>作业预览</div>
  1864. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  1865. isCloseList[toolIndex].isClose == 0
  1866. ">
  1867. 收缩
  1868. </div>
  1869. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1870. 展开
  1871. </div>
  1872. </div>
  1873. </div>
  1874. <div class="worksDetailBox" v-if="worksStudent2.length &&
  1875. worksStudent2[toolIndex].length > 0
  1876. ">
  1877. <div class="works" style="
  1878. width: 200px;
  1879. height: 140px;
  1880. margin: 10px 10px 10px 0;
  1881. border-radius: 15px;
  1882. box-shadow: 0 0 6px 1px #dfdada;
  1883. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1884. 0
  1885. ? worksStudent2[toolIndex]
  1886. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  1887. :class="w.type == 1 ? 'isTypeOne' : ''">
  1888. <div class="workImg" v-if="w.type == 0">
  1889. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1890. <img :src="w.works" @click="previewImg(w.works)" alt />
  1891. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1892. rightW:
  1893. w.userid == userid ||
  1894. tType == 1 ||
  1895. tType == 4 ||
  1896. w.ateacher == userid,
  1897. }">
  1898. {{ JSON.parse(w.score).wScore }}分
  1899. </div>
  1900. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1901. :class="{
  1902. rightW:
  1903. w.userid == userid ||
  1904. tType == 1 ||
  1905. tType == 4 ||
  1906. w.ateacher == userid,
  1907. }">
  1908. 评分
  1909. </div>
  1910. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1911. " @click.stop="deleteWorks(w.wid)" alt />
  1912. </div>
  1913. <div class="workImg" v-if="w.type == 1">
  1914. <img :src="word" @click="openFile(w.works)" alt />
  1915. <!-- @click="openFile(w.works)" -->
  1916. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1917. rightW:
  1918. w.userid == userid ||
  1919. tType == 1 ||
  1920. tType == 4 ||
  1921. w.ateacher == userid,
  1922. }">
  1923. {{ JSON.parse(w.score).wScore }}分
  1924. </div>
  1925. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1926. :class="{
  1927. rightW:
  1928. w.userid == userid ||
  1929. tType == 1 ||
  1930. tType == 4 ||
  1931. w.ateacher == userid,
  1932. }">
  1933. 评分
  1934. </div>
  1935. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1936. " @click.stop="deleteWorks(w.wid)" alt />
  1937. </div>
  1938. <div class="workImg" v-if="w.type == 3">
  1939. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1940. <!-- @click="openVideo(w.works)" -->
  1941. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1942. rightW:
  1943. w.userid == userid ||
  1944. tType == 1 ||
  1945. tType == 4 ||
  1946. w.ateacher == userid,
  1947. }">
  1948. {{ JSON.parse(w.score).wScore }}分
  1949. </div>
  1950. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1951. :class="{
  1952. rightW:
  1953. w.userid == userid ||
  1954. tType == 1 ||
  1955. tType == 4 ||
  1956. w.ateacher == userid,
  1957. }">
  1958. 评分
  1959. </div>
  1960. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1961. " @click.stop="deleteWorks(w.wid)" alt />
  1962. </div>
  1963. <div class="workImg" v-if="w.type == 12">
  1964. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  1965. <!-- @click="openVideo(w.works)" -->
  1966. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1967. rightW:
  1968. w.userid == userid ||
  1969. tType == 1 ||
  1970. tType == 4 ||
  1971. w.ateacher == userid,
  1972. }">
  1973. {{ JSON.parse(w.score).wScore }}分
  1974. </div>
  1975. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1976. :class="{
  1977. rightW:
  1978. w.userid == userid ||
  1979. tType == 1 ||
  1980. tType == 4 ||
  1981. w.ateacher == userid,
  1982. }">
  1983. 评分
  1984. </div>
  1985. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1986. " @click.stop="deleteWorks(w.wid)" alt />
  1987. </div>
  1988. <div class="comment" style="min-width: 200px">
  1989. <div class="worksName">
  1990. <div>{{ w.sName }}</div>
  1991. </div>
  1992. <div class="commentList">
  1993. <div class="commentList">
  1994. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1995. ">
  1996. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1997. </div>
  1998. <div>{{ w.likesCount }}</div>
  1999. </div>
  2000. <div class="commentList" style="margin-right: 15px">
  2001. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2002. <img src="../../assets/icon/comment/comment.png" alt="" />
  2003. </div>
  2004. <div>{{ w.commentCount }}</div>
  2005. </div>
  2006. </div>
  2007. </div>
  2008. </div>
  2009. </div>
  2010. <div class="noWorksS">
  2011. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2012. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2013. {{ s.student }}
  2014. </div>
  2015. </div>
  2016. </div>
  2017. <div v-if="tType &&
  2018. ((tType == 2 && sIsOpen == true) ||
  2019. tType == 1 ||
  2020. tType == 4) &&
  2021. tool.tool.indexOf(32) != -1
  2022. " class="worksBox">
  2023. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2024. worksStudent2[toolIndex].length > 0
  2025. ">
  2026. <div class="worksTop">
  2027. <div>作业预览</div>
  2028. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2029. isCloseList[toolIndex].isClose == 0
  2030. ">
  2031. 收缩
  2032. </div>
  2033. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2034. 展开
  2035. </div>
  2036. </div>
  2037. </div>
  2038. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2039. worksStudent2[toolIndex].length > 0
  2040. ">
  2041. <div class="works" style="
  2042. width: 200px;
  2043. height: 140px;
  2044. margin: 10px 10px 10px 0;
  2045. border-radius: 15px;
  2046. box-shadow: 0 0 6px 1px #dfdada;
  2047. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2048. 0
  2049. ? worksStudent2[toolIndex]
  2050. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2051. :class="w.type == 1 ? 'isTypeOne' : ''">
  2052. <div class="workImg">
  2053. <img :src="word2" @click="downloadFile(w.works)" alt />
  2054. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2055. rightW:
  2056. w.userid == userid ||
  2057. tType == 1 ||
  2058. tType == 4 ||
  2059. w.ateacher == userid,
  2060. }">
  2061. {{ JSON.parse(w.score).wScore }}分
  2062. </div>
  2063. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2064. :class="{
  2065. rightW:
  2066. w.userid == userid ||
  2067. tType == 1 ||
  2068. tType == 4 ||
  2069. w.ateacher == userid,
  2070. }">
  2071. 评分
  2072. </div>
  2073. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2074. " @click.stop="deleteWorks(w.wid)" alt />
  2075. </div>
  2076. <div class="comment" style="min-width: 200px">
  2077. <div class="worksName">
  2078. <div>{{ w.sName }}</div>
  2079. </div>
  2080. <div class="commentList">
  2081. <div class="commentList">
  2082. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2083. ">
  2084. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2085. </div>
  2086. <div>{{ w.likesCount }}</div>
  2087. </div>
  2088. <div class="commentList" style="margin-right: 15px">
  2089. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2090. <img src="../../assets/icon/comment/comment.png" alt="" />
  2091. </div>
  2092. <div>{{ w.commentCount }}</div>
  2093. </div>
  2094. </div>
  2095. </div>
  2096. </div>
  2097. </div>
  2098. <div class="noWorksS">
  2099. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2100. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2101. {{ s.student }}
  2102. </div>
  2103. </div>
  2104. </div>
  2105. <div v-if="tType &&
  2106. ((tType == 2 && sIsOpen == true) ||
  2107. tType == 1 ||
  2108. tType == 4) &&
  2109. tool.tool.indexOf(57) != -1
  2110. " class="worksBox">
  2111. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2112. worksStudent2[toolIndex].length > 0
  2113. ">
  2114. <div class="worksTop">
  2115. <div>作业预览</div>
  2116. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2117. isCloseList[toolIndex].isClose == 0
  2118. ">
  2119. 收缩
  2120. </div>
  2121. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2122. 展开
  2123. </div>
  2124. </div>
  2125. </div>
  2126. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2127. worksStudent2[toolIndex].length > 0
  2128. ">
  2129. <div class="works" style="
  2130. width: 200px;
  2131. height: 140px;
  2132. margin: 10px 10px 10px 0;
  2133. border-radius: 15px;
  2134. box-shadow: 0 0 6px 1px #dfdada;
  2135. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2136. 0
  2137. ? worksStudent2[toolIndex]
  2138. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2139. :class="w.type == 1 ? 'isTypeOne' : ''">
  2140. <div class="workImg">
  2141. <img :src="word2" @click="downloadFile(w.works)" alt />
  2142. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2143. rightW:
  2144. w.userid == userid ||
  2145. tType == 1 ||
  2146. tType == 4 ||
  2147. w.ateacher == userid,
  2148. }">
  2149. {{ JSON.parse(w.score).wScore }}分
  2150. </div>
  2151. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2152. :class="{
  2153. rightW:
  2154. w.userid == userid ||
  2155. tType == 1 ||
  2156. tType == 4 ||
  2157. w.ateacher == userid,
  2158. }">
  2159. 评分
  2160. </div>
  2161. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2162. " @click.stop="deleteWorks(w.wid)" alt />
  2163. </div>
  2164. <div class="comment" style="min-width: 200px">
  2165. <div class="worksName">
  2166. <div>{{ w.sName }}</div>
  2167. </div>
  2168. <div class="commentList">
  2169. <div class="commentList">
  2170. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2171. ">
  2172. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2173. </div>
  2174. <div>{{ w.likesCount }}</div>
  2175. </div>
  2176. <div class="commentList" style="margin-right: 15px">
  2177. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2178. <img src="../../assets/icon/comment/comment.png" alt="" />
  2179. </div>
  2180. <div>{{ w.commentCount }}</div>
  2181. </div>
  2182. </div>
  2183. </div>
  2184. </div>
  2185. </div>
  2186. <div class="noWorksS">
  2187. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2188. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2189. {{ s.student }}
  2190. </div>
  2191. </div>
  2192. </div>
  2193. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2194. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2195. worksStudent2[toolIndex].length > 0
  2196. ">
  2197. <span>作业预览</span>
  2198. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2199. isCloseList[toolIndex].isClose == 0
  2200. ">
  2201. 收缩
  2202. </div>
  2203. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2204. 展开
  2205. </div>
  2206. </div>
  2207. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2208. worksStudent2[toolIndex].length > 0
  2209. ">
  2210. <div class="works" style="
  2211. width: 200px;
  2212. height: 140px;
  2213. margin: 10px 10px 10px 0;
  2214. border-radius: 15px;
  2215. box-shadow: 0 0 6px 1px #dfdada;
  2216. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2217. 0
  2218. ? worksStudent2[toolIndex]
  2219. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2220. :class="w.type == 1 ? 'isTypeOne' : ''">
  2221. <div class="workImg" v-if="w.type == 0">
  2222. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2223. <img :src="w.works" @click="previewImg(w.works)" alt />
  2224. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2225. rightW:
  2226. w.userid == userid ||
  2227. tType == 1 ||
  2228. tType == 4 ||
  2229. w.ateacher == userid,
  2230. }">
  2231. {{ JSON.parse(w.score).wScore }}分
  2232. </div>
  2233. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2234. :class="{
  2235. rightW:
  2236. w.userid == userid ||
  2237. tType == 1 ||
  2238. tType == 4 ||
  2239. w.ateacher == userid,
  2240. }">
  2241. 评分
  2242. </div>
  2243. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2244. " @click.stop="deleteWorks(w.wid)" alt />
  2245. </div>
  2246. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  2247. <img :src="word" @click="openFile(w.works)" alt />
  2248. <!-- @click="openFile(w.works)" -->
  2249. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2250. rightW:
  2251. w.userid == userid ||
  2252. tType == 1 ||
  2253. tType == 4 ||
  2254. w.ateacher == userid,
  2255. }">
  2256. {{ JSON.parse(w.score).wScore }}分
  2257. </div>
  2258. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2259. :class="{
  2260. rightW:
  2261. w.userid == userid ||
  2262. tType == 1 ||
  2263. tType == 4 ||
  2264. w.ateacher == userid,
  2265. }">
  2266. 评分
  2267. </div>
  2268. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2269. " @click.stop="deleteWorks(w.wid)" alt />
  2270. </div>
  2271. <div class="workImg" v-if="w.type == 3">
  2272. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  2273. <!-- @click="openVideo(w.works)" -->
  2274. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2275. rightW:
  2276. w.userid == userid ||
  2277. tType == 1 ||
  2278. tType == 4 ||
  2279. w.ateacher == userid,
  2280. }">
  2281. {{ JSON.parse(w.score).wScore }}分
  2282. </div>
  2283. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2284. :class="{
  2285. rightW:
  2286. w.userid == userid ||
  2287. tType == 1 ||
  2288. tType == 4 ||
  2289. w.ateacher == userid,
  2290. }">
  2291. 评分
  2292. </div>
  2293. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2294. " @click.stop="deleteWorks(w.wid)" alt />
  2295. </div>
  2296. <div class="comment" style="min-width: 200px">
  2297. <div class="worksName">
  2298. <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex)">
  2299. {{ w.sName }}
  2300. </div>
  2301. </div>
  2302. <div class="commentList">
  2303. <div class="commentList">
  2304. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2305. ">
  2306. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2307. </div>
  2308. <div>{{ w.likesCount }}</div>
  2309. </div>
  2310. <div class="commentList" style="margin-right: 15px">
  2311. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2312. <img src="../../assets/icon/comment/comment.png" alt="" />
  2313. </div>
  2314. <div>{{ w.commentCount }}</div>
  2315. </div>
  2316. </div>
  2317. </div>
  2318. </div>
  2319. </div>
  2320. <div class="noWorksS">
  2321. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2322. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2323. {{ s.student }}
  2324. </div>
  2325. </div>
  2326. </div>
  2327. <div v-if="tType &&
  2328. ((tType == 2 && sIsOpen == true) ||
  2329. tType == 1 ||
  2330. tType == 4) &&
  2331. tool.tool.indexOf(4) != -1
  2332. " class="worksBox">
  2333. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2334. worksStudent2[toolIndex].length > 0
  2335. ">
  2336. <div class="worksTop">
  2337. <div>作业预览</div>
  2338. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2339. isCloseList[toolIndex].isClose == 0
  2340. ">
  2341. 收缩
  2342. </div>
  2343. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2344. 展开
  2345. </div>
  2346. </div>
  2347. </div>
  2348. <div>
  2349. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2350. worksStudent2[toolIndex].length > 0
  2351. ">
  2352. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2353. .isClose == 0
  2354. ? worksStudent2[toolIndex]
  2355. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="openTools(4, toolIndex, taskCount, w.works, w.sName)
  2356. ">
  2357. {{ w.sName }}
  2358. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2359. " @click.stop="deleteWorks(w.wid)" alt />
  2360. </div>
  2361. </div>
  2362. </div>
  2363. <div class="noWorksS">
  2364. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2365. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2366. {{ s.student }}
  2367. </div>
  2368. </div>
  2369. </div>
  2370. <div v-if="tType &&
  2371. ((tType == 2 && sIsOpen == true) ||
  2372. tType == 1 ||
  2373. tType == 4) &&
  2374. tool.tool.indexOf(45) != -1
  2375. " class="worksBox">
  2376. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2377. worksStudent2[toolIndex].length > 0
  2378. ">
  2379. <div class="worksTop">
  2380. <div>作业预览</div>
  2381. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2382. isCloseList[toolIndex].isClose == 0
  2383. ">
  2384. 收缩
  2385. </div>
  2386. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2387. 展开
  2388. </div>
  2389. </div>
  2390. </div>
  2391. <div>
  2392. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2393. worksStudent2[toolIndex].length > 0
  2394. ">
  2395. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2396. .isClose == 0
  2397. ? worksStudent2[toolIndex]
  2398. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="openTools(
  2399. 45,
  2400. toolIndex,
  2401. taskCount,
  2402. w.works,
  2403. w.sName
  2404. )
  2405. ">
  2406. {{ w.sName }}
  2407. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2408. " @click.stop="deleteWorks(w.wid)" alt />
  2409. </div>
  2410. </div>
  2411. </div>
  2412. <div class="noWorksS">
  2413. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2414. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2415. {{ s.student }}
  2416. </div>
  2417. </div>
  2418. </div>
  2419. <div v-if="tType &&
  2420. ((tType == 2 && sIsOpen == true) ||
  2421. tType == 1 ||
  2422. tType == 4) &&
  2423. tool.tool.indexOf(15) != -1
  2424. " class="worksBox">
  2425. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2426. worksStudent2[toolIndex].length > 0
  2427. ">
  2428. <div class="worksTop">
  2429. <div>作业预览</div>
  2430. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2431. isCloseList[toolIndex].isClose == 0
  2432. ">
  2433. 收缩
  2434. </div>
  2435. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2436. 展开
  2437. </div>
  2438. </div>
  2439. </div>
  2440. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2441. worksStudent2[toolIndex].length > 0
  2442. ">
  2443. <div class="works" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2444. 0
  2445. ? worksStudent2[toolIndex]
  2446. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2447. <div class="workImg" style="
  2448. border-radius: 15px;
  2449. box-shadow: 0px 0px 5px 5px #eee;
  2450. ">
  2451. <!-- <img
  2452. src="../../assets/icon/works/noImg.png"
  2453. @click="openTools(15, toolIndex, taskCount, w.works)"
  2454. alt=""
  2455. />-->
  2456. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  2457. @click="commentOther(w, toolIndex, wIndex)">
  2458. <!-- <div>{{ w.sName }}</div> -->
  2459. <div class="answerContent">
  2460. {{ JSON.parse(w.works)[0].answer }}
  2461. </div>
  2462. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2463. rightW:
  2464. w.userid == userid ||
  2465. tType == 1 ||
  2466. tType == 4,
  2467. }">
  2468. {{ JSON.parse(w.score).wScore }}分
  2469. </div>
  2470. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2471. :class="{
  2472. rightW:
  2473. w.userid == userid ||
  2474. tType == 1 ||
  2475. tType == 4,
  2476. }">
  2477. 评分
  2478. </div>
  2479. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2480. " @click.stop="deleteWorks(w.wid)" alt />
  2481. </div>
  2482. <div class="comment">
  2483. <div class="worksName">
  2484. <div>{{ w.sName }}</div>
  2485. </div>
  2486. <div class="commentList">
  2487. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2488. ">
  2489. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2490. </div>
  2491. <div>{{ w.likesCount }}</div>
  2492. </div>
  2493. <div class="commentList" style="margin-right: 15px">
  2494. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2495. <img src="../../assets/icon/comment/comment.png" alt="" />
  2496. </div>
  2497. <div>{{ w.commentCount }}</div>
  2498. </div>
  2499. </div>
  2500. </div>
  2501. </div>
  2502. </div>
  2503. <div class="noWorksS">
  2504. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2505. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2506. {{ s.student }}
  2507. </div>
  2508. </div>
  2509. </div>
  2510. <div v-if="tType &&
  2511. ((tType == 2 && sIsOpen == true) ||
  2512. tType == 1 ||
  2513. tType == 4) &&
  2514. tool.tool.indexOf(1) != -1
  2515. " class="worksBox">
  2516. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2517. worksStudent2[toolIndex].length > 0
  2518. ">
  2519. <div class="worksTop">
  2520. <div>作业预览</div>
  2521. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2522. isCloseList[toolIndex].isClose == 0
  2523. ">
  2524. 收缩
  2525. </div>
  2526. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2527. 展开
  2528. </div>
  2529. </div>
  2530. </div>
  2531. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2532. worksStudent2[toolIndex].length > 0
  2533. ">
  2534. <div class="works" style="
  2535. width: 200px;
  2536. height: 140px;
  2537. margin: 10px 10px 10px 0;
  2538. border-radius: 15px;
  2539. box-shadow: 0 0 6px 1px #dfdada;
  2540. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2541. 0
  2542. ? worksStudent2[toolIndex]
  2543. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2544. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2545. <div class="workImg">
  2546. <img :src="w.works" @click="previewImg(w.works)" alt />
  2547. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2548. rightW:
  2549. w.userid == userid || tType == 1 || tType == 4,
  2550. }">
  2551. {{ JSON.parse(w.score).wScore }}分
  2552. </div>
  2553. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2554. :class="{
  2555. rightW:
  2556. w.userid == userid || tType == 1 || tType == 4,
  2557. }">
  2558. 评分
  2559. </div>
  2560. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2561. " @click.stop="deleteWorks(w.wid)" alt />
  2562. </div>
  2563. <div class="comment" style="min-width: 200px">
  2564. <div class="worksName">
  2565. <div>{{ w.sName }}</div>
  2566. </div>
  2567. <div class="commentList">
  2568. <div class="commentList">
  2569. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2570. ">
  2571. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2572. </div>
  2573. <div>{{ w.likesCount }}</div>
  2574. </div>
  2575. <div class="commentList" style="margin-right: 15px">
  2576. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2577. <img src="../../assets/icon/comment/comment.png" alt="" />
  2578. </div>
  2579. <div>{{ w.commentCount }}</div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. </div>
  2584. </div>
  2585. <div class="noWorksS">
  2586. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2587. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2588. {{ s.student }}
  2589. </div>
  2590. </div>
  2591. </div>
  2592. <div v-if="tType &&
  2593. ((tType == 2 && sIsOpen == true) ||
  2594. tType == 1 ||
  2595. tType == 4) &&
  2596. tool.tool.indexOf(3) != -1
  2597. " class="worksBox">
  2598. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2599. worksStudent2[toolIndex].length > 0
  2600. ">
  2601. <div class="worksTop">
  2602. <div>作业预览</div>
  2603. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2604. isCloseList[toolIndex].isClose == 0
  2605. ">
  2606. 收缩
  2607. </div>
  2608. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2609. 展开
  2610. </div>
  2611. </div>
  2612. </div>
  2613. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2614. worksStudent2[toolIndex].length > 0
  2615. ">
  2616. <div class="works" style="
  2617. width: 200px;
  2618. height: 140px;
  2619. margin: 10px 10px 10px 0;
  2620. border-radius: 15px;
  2621. box-shadow: 0 0 6px 1px #dfdada;
  2622. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2623. 0
  2624. ? worksStudent2[toolIndex]
  2625. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2626. <!-- @click="previewImg(w.works)" -->
  2627. <div class="workImg">
  2628. <img :src="w.works" @click="previewImg(w.works)" alt />
  2629. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2630. rightW:
  2631. w.userid == userid || tType == 1 || tType == 4,
  2632. }">
  2633. {{ JSON.parse(w.score).wScore }}分
  2634. </div>
  2635. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2636. :class="{
  2637. rightW:
  2638. w.userid == userid || tType == 1 || tType == 4,
  2639. }">
  2640. 评分
  2641. </div>
  2642. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2643. " @click.stop="deleteWorks(w.wid)" alt />
  2644. </div>
  2645. <div class="comment" style="min-width: 200px">
  2646. <div class="worksName">
  2647. <div>{{ w.sName }}</div>
  2648. </div>
  2649. <div class="commentList">
  2650. <div class="commentList">
  2651. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2652. ">
  2653. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2654. </div>
  2655. <div>{{ w.likesCount }}</div>
  2656. </div>
  2657. <div class="commentList" style="margin-right: 15px">
  2658. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2659. <img src="../../assets/icon/comment/comment.png" alt="" />
  2660. </div>
  2661. <div>{{ w.commentCount }}</div>
  2662. </div>
  2663. </div>
  2664. </div>
  2665. </div>
  2666. </div>
  2667. <div class="noWorksS">
  2668. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2669. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2670. {{ s.student }}
  2671. </div>
  2672. </div>
  2673. </div>
  2674. <div v-if="tType &&
  2675. ((tType == 2 && sIsOpen == true) ||
  2676. tType == 1 ||
  2677. tType == 4) &&
  2678. tool.tool.indexOf(6) != -1
  2679. " class="worksBox">
  2680. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2681. worksStudent2[toolIndex].length > 0
  2682. ">
  2683. <div class="worksTop">
  2684. <div>作业预览</div>
  2685. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  2686. isCloseList[toolIndex].isClose == 0
  2687. ">
  2688. 收缩
  2689. </div>
  2690. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2691. 展开
  2692. </div>
  2693. </div>
  2694. </div>
  2695. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2696. worksStudent2[toolIndex].length > 0
  2697. ">
  2698. <div class="works" style="
  2699. width: 200px;
  2700. height: 140px;
  2701. margin: 10px 10px 10px 0;
  2702. border-radius: 15px;
  2703. box-shadow: 0 0 6px 1px #dfdada;
  2704. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2705. 0
  2706. ? worksStudent2[toolIndex]
  2707. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2708. <!-- @click="previewImg(w.works)" -->
  2709. <div class="workImg">
  2710. <img :src="w.works" @click="previewImg(w.works)" alt />
  2711. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2712. rightW:
  2713. w.userid == userid || tType == 1 || tType == 4,
  2714. }">
  2715. {{ JSON.parse(w.score).wScore }}分
  2716. </div>
  2717. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2718. :class="{
  2719. rightW:
  2720. w.userid == userid || tType == 1 || tType == 4,
  2721. }">
  2722. 评分
  2723. </div>
  2724. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2725. " @click.stop="deleteWorks(w.wid)" alt />
  2726. </div>
  2727. <div class="comment" style="min-width: 200px">
  2728. <div class="worksName">
  2729. <div>{{ w.sName }}</div>
  2730. </div>
  2731. <div class="commentList">
  2732. <div class="commentList">
  2733. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2734. ">
  2735. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2736. </div>
  2737. <div>{{ w.likesCount }}</div>
  2738. </div>
  2739. <div class="commentList" style="margin-right: 15px">
  2740. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2741. <img src="../../assets/icon/comment/comment.png" alt="" />
  2742. </div>
  2743. <div>{{ w.commentCount }}</div>
  2744. </div>
  2745. </div>
  2746. </div>
  2747. </div>
  2748. </div>
  2749. <div class="noWorksS">
  2750. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" :class="{isWork:s.type == '2'}">
  2751. {{ s.student }}
  2752. </div>
  2753. </div>
  2754. </div>
  2755. <div v-if="tType &&
  2756. ((tType == 2 && sIsOpen == true) ||
  2757. tType == 1 ||
  2758. tType == 4) &&
  2759. tool.tool.indexOf(7) != -1
  2760. " class="worksBox">
  2761. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2762. worksStudent2[toolIndex].length > 0
  2763. ">
  2764. <div class="worksTop">
  2765. <div>作业预览</div>
  2766. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2767. isCloseList[toolIndex].isClose == 0
  2768. ">
  2769. 收缩
  2770. </div>
  2771. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2772. 展开
  2773. </div>
  2774. </div>
  2775. </div>
  2776. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2777. worksStudent2[toolIndex].length > 0
  2778. ">
  2779. <div class="works" style="
  2780. width: 200px;
  2781. height: 140px;
  2782. margin: 10px 10px 10px 0;
  2783. border-radius: 15px;
  2784. box-shadow: 0 0 6px 1px #dfdada;
  2785. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2786. 0
  2787. ? worksStudent2[toolIndex]
  2788. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2789. <!-- @click="previewImg(w.works)" -->
  2790. <div class="workImg">
  2791. <img :src="w.works" @click="previewImg(w.works)" alt />
  2792. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2793. rightW:
  2794. w.userid == userid || tType == 1 || tType == 4,
  2795. }">
  2796. {{ JSON.parse(w.score).wScore }}分
  2797. </div>
  2798. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2799. :class="{
  2800. rightW:
  2801. w.userid == userid || tType == 1 || tType == 4,
  2802. }">
  2803. 评分
  2804. </div>
  2805. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2806. " @click.stop="deleteWorks(w.wid)" alt />
  2807. </div>
  2808. <div class="comment" style="min-width: 200px">
  2809. <div class="worksName">
  2810. <div>{{ w.sName }}</div>
  2811. </div>
  2812. <div class="commentList">
  2813. <div class="commentList">
  2814. <div class="commentImg" @click="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 class="noWorksS">
  2831. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2832. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2833. {{ s.student }}
  2834. </div>
  2835. </div>
  2836. </div>
  2837. <div v-if="tType &&
  2838. ((tType == 2 && sIsOpen == true) ||
  2839. tType == 1 ||
  2840. tType == 4) &&
  2841. tool.tool.indexOf(26) != -1
  2842. " class="worksBox">
  2843. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2844. worksStudent2[toolIndex].length > 0
  2845. ">
  2846. <div class="worksTop">
  2847. <div>作业预览</div>
  2848. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2849. isCloseList[toolIndex].isClose == 0
  2850. ">
  2851. 收缩
  2852. </div>
  2853. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2854. 展开
  2855. </div>
  2856. </div>
  2857. </div>
  2858. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2859. worksStudent2[toolIndex].length > 0
  2860. ">
  2861. <div class="works" style="width: 240px; height: 140px; overflow: hidden" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2862. 0
  2863. ? worksStudent2[toolIndex]
  2864. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2865. <div class="workImg" v-if="w.type == 0">
  2866. <img :src="w.works" @click="previewImg(w.works)" alt />
  2867. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2868. " @click.stop="deleteWorks(w.wid)" alt />
  2869. </div>
  2870. <div class="workImg" v-if="w.type == 1">
  2871. <img :src="word" @click="openFile(w.works)" alt />
  2872. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2873. " @click.stop="deleteWorks(w.wid)" alt />
  2874. </div>
  2875. <div class="worksName">
  2876. <div>{{ w.sName }}</div>
  2877. </div>
  2878. </div>
  2879. </div>
  2880. <div class="noWorksS">
  2881. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" :class="{isWork:s.type == '2'}">
  2882. {{ s.student }}
  2883. </div>
  2884. </div>
  2885. </div>
  2886. <div v-if="tType &&
  2887. ((tType == 2 && sIsOpen == true) ||
  2888. tType == 1 ||
  2889. tType == 4) &&
  2890. tool.tool.indexOf(40) != -1
  2891. " class="worksBox">
  2892. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2893. worksStudent2[toolIndex].length > 0
  2894. ">
  2895. <div class="worksTop">
  2896. <div>作业预览</div>
  2897. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2898. isCloseList[toolIndex].isClose == 0
  2899. ">
  2900. 收缩
  2901. </div>
  2902. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2903. 展开
  2904. </div>
  2905. </div>
  2906. </div>
  2907. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2908. worksStudent2[toolIndex].length > 0
  2909. ">
  2910. <div class="works" style="
  2911. width: 200px;
  2912. height: 140px;
  2913. margin: 10px 10px 10px 0;
  2914. border-radius: 15px;
  2915. box-shadow: 0 0 6px 1px #dfdada;
  2916. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2917. 0
  2918. ? worksStudent2[toolIndex]
  2919. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2920. :class="w.type == 1 ? 'isTypeOne' : ''">
  2921. <div class="workImg">
  2922. <img src="../../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2923. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2924. " @click.stop="deleteWorks(w.wid)" alt />
  2925. </div>
  2926. <div class="comment" style="min-width: 200px">
  2927. <div class="worksName">
  2928. <div>{{ w.sName }}</div>
  2929. </div>
  2930. <div class="commentList">
  2931. <div class="commentList">
  2932. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2933. ">
  2934. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2935. </div>
  2936. <div>{{ w.likesCount }}</div>
  2937. </div>
  2938. <div class="commentList" style="margin-right: 15px">
  2939. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2940. <img src="../../assets/icon/comment/comment.png" alt="" />
  2941. </div>
  2942. <div>{{ w.commentCount }}</div>
  2943. </div>
  2944. </div>
  2945. </div>
  2946. </div>
  2947. </div>
  2948. <div class="noWorksS">
  2949. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2950. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2951. {{ s.student }}
  2952. </div>
  2953. </div>
  2954. </div>
  2955. <div v-if="tType &&
  2956. ((tType == 2 && sIsOpen == true) ||
  2957. tType == 1 ||
  2958. tType == 4) &&
  2959. tool.tool.indexOf(41) != -1
  2960. " class="worksBox">
  2961. <div class="noWorksS">
  2962. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2963. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2964. {{ s.student }}
  2965. </div>
  2966. </div>
  2967. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2968. worksStudent2[toolIndex].length > 0
  2969. ">
  2970. <div class="worksTop">
  2971. <div>作业预览</div>
  2972. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2973. isCloseList[toolIndex].isClose == 0
  2974. ">
  2975. 收缩
  2976. </div>
  2977. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2978. 展开
  2979. </div>
  2980. </div>
  2981. </div>
  2982. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2983. worksStudent2[toolIndex].length > 0
  2984. ">
  2985. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2986. 0
  2987. ? worksStudent2[toolIndex]
  2988. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  2989. @click="openXz(w, toolIndex)">
  2990. {{ w.sName }}
  2991. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  2992. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  2993. </div>
  2994. </div>
  2995. </div>
  2996. <div v-if="tType &&
  2997. ((tType == 2 && sIsOpen == true) ||
  2998. tType == 1 ||
  2999. tType == 4) &&
  3000. tool.tool.indexOf(47) != -1
  3001. " class="worksBox">
  3002. <div class="noWorksS">
  3003. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3004. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  3005. {{ s.student }}
  3006. </div>
  3007. </div>
  3008. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3009. worksStudent2[toolIndex].length > 0
  3010. ">
  3011. <div class="worksTop">
  3012. <div>作业预览</div>
  3013. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3014. isCloseList[toolIndex].isClose == 0
  3015. ">
  3016. 收缩
  3017. </div>
  3018. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3019. 展开
  3020. </div>
  3021. </div>
  3022. </div>
  3023. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3024. worksStudent2[toolIndex].length > 0
  3025. ">
  3026. <!-- @click="openXz(w, toolIndex)" -->
  3027. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3028. 0
  3029. ? worksStudent2[toolIndex]
  3030. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  3031. @click="openSen(w, toolIndex)">
  3032. {{ w.sName }}
  3033. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  3034. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  3035. </div>
  3036. </div>
  3037. </div>
  3038. <div v-if="tType &&
  3039. ((tType == 2 && sIsOpen == true) ||
  3040. tType == 1 ||
  3041. tType == 4) &&
  3042. tool.tool.indexOf(48) != -1
  3043. " class="worksBox">
  3044. <div class="noWorksS">
  3045. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3046. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  3047. {{ s.student }}
  3048. </div>
  3049. </div>
  3050. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3051. worksStudent2[toolIndex].length > 0
  3052. ">
  3053. <div class="worksTop">
  3054. <div>作业预览</div>
  3055. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3056. isCloseList[toolIndex].isClose == 0
  3057. ">
  3058. 收缩
  3059. </div>
  3060. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3061. 展开
  3062. </div>
  3063. </div>
  3064. </div>
  3065. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3066. worksStudent2[toolIndex].length > 0
  3067. ">
  3068. <div class="works" style="
  3069. width: 200px;
  3070. height: 140px;
  3071. margin: 10px 10px 10px 0;
  3072. border-radius: 15px;
  3073. box-shadow: 0 0 6px 1px #dfdada;
  3074. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3075. 0
  3076. ? worksStudent2[toolIndex]
  3077. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3078. :class="w.type == 1 ? 'isTypeOne' : ''">
  3079. <div class="workImg">
  3080. <img :src="word" @click="openTable(w)" alt />
  3081. <!-- @click="openFile(w.works)" -->
  3082. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3083. rightW:
  3084. w.userid == userid ||
  3085. tType == 1 ||
  3086. tType == 4 ||
  3087. w.ateacher == userid,
  3088. }">
  3089. {{ JSON.parse(w.score).wScore }}分
  3090. </div>
  3091. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3092. :class="{
  3093. rightW:
  3094. w.userid == userid ||
  3095. tType == 1 ||
  3096. tType == 4 ||
  3097. w.ateacher == userid,
  3098. }">
  3099. 评分
  3100. </div>
  3101. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3102. " @click.stop="deleteWorks(w.wid)" alt />
  3103. </div>
  3104. <div class="comment" style="min-width: 200px">
  3105. <div class="worksName">
  3106. <div>{{ w.sName }}</div>
  3107. </div>
  3108. <div class="commentList">
  3109. <div class="commentList">
  3110. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3111. ">
  3112. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3113. </div>
  3114. <div>{{ w.likesCount }}</div>
  3115. </div>
  3116. <div class="commentList" style="margin-right: 15px">
  3117. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3118. <img src="../../assets/icon/comment/comment.png" alt="" />
  3119. </div>
  3120. <div>{{ w.commentCount }}</div>
  3121. </div>
  3122. </div>
  3123. </div>
  3124. </div>
  3125. </div>
  3126. </div>
  3127. <div v-if="tType &&
  3128. ((tType == 2 && sIsOpen == true) ||
  3129. tType == 1 ||
  3130. tType == 4) &&
  3131. tool.tool.indexOf(52) != -1
  3132. " class="worksBox">
  3133. <div class="noWorksS">
  3134. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3135. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  3136. {{ s.student }}
  3137. </div>
  3138. </div>
  3139. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3140. worksStudent2[toolIndex].length > 0
  3141. ">
  3142. <div class="worksTop">
  3143. <div>作业预览</div>
  3144. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3145. isCloseList[toolIndex].isClose == 0
  3146. ">
  3147. 收缩
  3148. </div>
  3149. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3150. 展开
  3151. </div>
  3152. </div>
  3153. </div>
  3154. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3155. worksStudent2[toolIndex].length > 0
  3156. ">
  3157. <div class="works" style="
  3158. width: 200px;
  3159. height: 140px;
  3160. margin: 10px 10px 10px 0;
  3161. border-radius: 15px;
  3162. box-shadow: 0 0 6px 1px #dfdada;
  3163. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3164. 0
  3165. ? worksStudent2[toolIndex]
  3166. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3167. :class="w.type == 1 ? 'isTypeOne' : ''">
  3168. <div class="workImg">
  3169. <img :src="word" @click="openWord(w)" alt />
  3170. <!-- @click="openFile(w.works)" -->
  3171. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3172. rightW:
  3173. w.userid == userid ||
  3174. tType == 1 ||
  3175. tType == 4 ||
  3176. w.ateacher == userid,
  3177. }">
  3178. {{ JSON.parse(w.score).wScore }}分
  3179. </div>
  3180. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3181. :class="{
  3182. rightW:
  3183. w.userid == userid ||
  3184. tType == 1 ||
  3185. tType == 4 ||
  3186. w.ateacher == userid,
  3187. }">
  3188. 评分
  3189. </div>
  3190. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3191. " @click.stop="deleteWorks(w.wid)" alt />
  3192. </div>
  3193. <div class="comment" style="min-width: 200px">
  3194. <div class="worksName">
  3195. <div>{{ w.sName }}</div>
  3196. </div>
  3197. <div class="commentList">
  3198. <div class="commentList">
  3199. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3200. ">
  3201. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3202. </div>
  3203. <div>{{ w.likesCount }}</div>
  3204. </div>
  3205. <div class="commentList" style="margin-right: 15px">
  3206. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3207. <img src="../../assets/icon/comment/comment.png" alt="" />
  3208. </div>
  3209. <div>{{ w.commentCount }}</div>
  3210. </div>
  3211. </div>
  3212. </div>
  3213. </div>
  3214. </div>
  3215. </div>
  3216. </div>
  3217. </div>
  3218. <div class="vedioBox" v-if="false
  3219. ">
  3220. <div class="queTop" style="
  3221. font-size: 25px;
  3222. padding: 15px 0 15px 30px;
  3223. font-weight: bold;
  3224. ">
  3225. 评一评
  3226. </div>
  3227. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  3228. <div class="elist_input">
  3229. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  3230. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  3231. <div style="width: 95%">
  3232. <div style="
  3233. display: flex;
  3234. flex-direction: row;
  3235. flex-wrap: nowrap;
  3236. align-items: center;
  3237. ">
  3238. <div style="max-width: calc(100% - 285px)">
  3239. <span>{{ eItem.value }}</span>
  3240. </div>
  3241. <div style="
  3242. padding-left: 25px;
  3243. display: flex;
  3244. flex-direction: row;
  3245. align-items: center;
  3246. ">
  3247. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  3248. </div>
  3249. </div>
  3250. <div class="elist_inptu_text" style="padding-left: 10px">
  3251. <span v-if="eItem.detail != ''">{{
  3252. eItem.detail
  3253. }}</span>
  3254. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  3255. </div>
  3256. </div>
  3257. </div>
  3258. </div>
  3259. <div v-if="evalua" style="
  3260. border: 1px solid #e5e5e5;
  3261. max-width: 650px;
  3262. width: 100%;
  3263. margin-top: 20px;
  3264. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3265. ">
  3266. <div class="e_add_top">
  3267. <div class="e_add_title">
  3268. <span>目标管理名称</span>
  3269. <span>{{ eTitle }}</span>
  3270. <img src="../../assets/line.png" class="cru_line" style="
  3271. width: 125px;
  3272. height: 20px;
  3273. bottom: -10px;
  3274. left: 120px;
  3275. " />
  3276. <!-- <el-input
  3277. v-model="eTitle"
  3278. placeholder="请输入名称"
  3279. @change="setMindData"
  3280. ></el-input>-->
  3281. </div>
  3282. </div>
  3283. <div class="e_add_content">
  3284. <div class="e_add_list_pbox">
  3285. <div class="e_add_list_pbox_title">
  3286. <span class="type_title">切换模式</span>
  3287. <div class="type_content">
  3288. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  3289. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  3290. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  3291. </div>
  3292. </div>
  3293. <div class="e_add_list_pbox_content">
  3294. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  3295. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  3296. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  3297. </SeeBoard>
  3298. </div>
  3299. </div>
  3300. </div>
  3301. </div>
  3302. </div>
  3303. </div>
  3304. </div>
  3305. </div>
  3306. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  3307. :before-close="handleClose" class="dialog_change">
  3308. <div class="marginT">
  3309. <div>上传文件</div>
  3310. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3311. <div class="up_photo">
  3312. <img src="../../assets/icon/uploadImg.png" alt />
  3313. </div>
  3314. <!-- <input
  3315. type="file"
  3316. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3317. style="display: none"
  3318. @change="beforeUpload1($event, 1)"
  3319. /> -->
  3320. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  3321. <!-- <input
  3322. type="file"
  3323. accept="image/*"
  3324. capture="camera"
  3325. style="display: none"
  3326. @change="beforeUpload1($event, 1)"
  3327. /> -->
  3328. </div>
  3329. <div class="chapter_add" style="
  3330. display: flex;
  3331. width: 100%;
  3332. flex-direction: row;
  3333. flex-wrap: wrap;
  3334. justify-content: flex-start;
  3335. padding: 15px 0;
  3336. " v-if="studyJuri[0].cover.length > 0">
  3337. <div class="upCover">
  3338. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3339. <img :src="word" alt v-else-if="fileType == 1" />
  3340. <img :src="video" alt v-else-if="fileType == 2" />
  3341. <img :src="word2" alt v-else-if="fileType == 3" />
  3342. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3343. <div class="deleteWord" @click="clean(1)">
  3344. <img src="../../assets/icon/deleteWorks.png" alt />
  3345. </div>
  3346. </div>
  3347. </div>
  3348. </div>
  3349. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  3350. 提交
  3351. </div>
  3352. </el-dialog>
  3353. </div>
  3354. </div>
  3355. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4">
  3356. <!-- 批 -->
  3357. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  3358. </div>
  3359. <div v-if="pzDialog == true" class="newDialogCss">
  3360. <div class="pzTop2">
  3361. <!-- <div>批注</div>
  3362. <div @click="pzDialog = false">
  3363. <img src="../../assets/close1.png" alt="" />
  3364. </div> -->
  3365. <div class="checkbox">
  3366. <div class="check" style="font-size: 25px">评课笔记</div>
  3367. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  3368. </div>
  3369. </div>
  3370. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  3371. <div class="pzListBox" v-if="pzList && pzList.length">
  3372. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  3373. <div class="pzNavTop">
  3374. <div>批</div>
  3375. <div>
  3376. {{
  3377. pz.username && pz.username.length > 5
  3378. ? pz.username.substring(0, 5) + "..."
  3379. : pz.username
  3380. }}的批注
  3381. </div>
  3382. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  3383. 删除
  3384. </div>
  3385. </div>
  3386. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  3387. <div class="pzContent" v-if="pz.type == '2'">
  3388. <audio :src="pz.content" controls="controls" ref="audio">
  3389. Your browser does not support the audio element.
  3390. </audio>
  3391. </div>
  3392. <div class="pzContent" v-if="pz.type == '3'">
  3393. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  3394. </div>
  3395. <div class="time">
  3396. {{ pz.time }}
  3397. </div>
  3398. </div>
  3399. </div>
  3400. <div class="noPz" v-else>
  3401. <img src="../../assets/icon/noPz.png" alt="" />
  3402. </div>
  3403. <div class="addPzButton">
  3404. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  3405. 添加批注
  3406. </div>
  3407. <!-- <div class="img1">
  3408. <div @click="(addPzDialog = true), (pzType = 2)">
  3409. <img src="../../assets/audio.png" /><span>音频</span>
  3410. </div>
  3411. </div> -->
  3412. </div>
  3413. </div>
  3414. </div>
  3415. <div v-if="addPzDialog == true" class="addDialogCss">
  3416. <div class="pzTop">
  3417. <div class="teacherPz">
  3418. <div class="teacherPzImg">
  3419. <img src="../../assets/icon/teacherPz.png" alt="" />
  3420. </div>
  3421. <div style="margin-left: 10px; height: 25px">教师批注</div>
  3422. </div>
  3423. <div @click="addPzDialog = false">
  3424. <img src="../../assets/close1.png" alt="" />
  3425. </div>
  3426. </div>
  3427. <div class="addPzBox">
  3428. <div class="addPzCheck">
  3429. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  3430. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  3431. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  3432. </div>
  3433. <div style="height: calc(100% - 95px)">
  3434. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  3435. v-if="pzType == 1"></textarea> -->
  3436. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  3437. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  3438. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  3439. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  3440. <div @click="addImg($event)">
  3441. <el-button type="primary">上传图片</el-button>
  3442. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  3443. @change="beforeUpload1($event, 4)" />
  3444. </div>
  3445. </div> -->
  3446. </div>
  3447. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  3448. 确定
  3449. </div>
  3450. </div>
  3451. </div>
  3452. <div v-if="proVisible" class="mask">
  3453. <div class="progressBox">
  3454. <!-- <div id="closePro" class="closeCss">
  3455. <img src="../../assets/icon/close.png" alt />
  3456. </div> -->
  3457. <div class="lbox">
  3458. <img src="../../assets/loading.gif" />上传中,请稍后
  3459. </div>
  3460. <div style="margin-bottom: 10px">
  3461. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  3462. </div>
  3463. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  3464. </div>
  3465. </div>
  3466. <div v-if="proVisible2" class="mask">
  3467. <div class="progressBox">
  3468. <div class="lbox">
  3469. <img src="../../assets/loading.gif" />上传中,请稍后
  3470. </div>
  3471. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  3472. </div>
  3473. </div>
  3474. <el-dialog :visible.sync="pictureDialog" size="tiny">
  3475. <img width="100%" :src="dialogImageUrl" alt />
  3476. </el-dialog>
  3477. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  3478. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3479. <div>
  3480. <div class="a_add_title" style="
  3481. display: flex;
  3482. flex-direction: row;
  3483. align-items: center;
  3484. justify-content: center;
  3485. ">
  3486. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3487. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3488. </div>
  3489. <div class="a_addBox">
  3490. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3491. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3492. <div class="a_add_head">
  3493. <div style="display: flex">
  3494. {{ index1 + 1 + "、" }}
  3495. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3496. </div>
  3497. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3498. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3499. </div>
  3500. <div class="a_add_body">
  3501. <div class="a_add_input">
  3502. <el-radio-group v-model="radio[index1]" v-if="
  3503. askJson.askJson[index1].type == '1' ||
  3504. !askJson.askJson[index1].type
  3505. ">
  3506. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  3507. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3508. v-html="item2"></span></el-radio>
  3509. </el-radio-group>
  3510. <el-checkbox-group
  3511. v-model="radio[index1]"
  3512. v-if="askJson.askJson[index1].type == '2'"
  3513. >
  3514. <el-checkbox
  3515. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  3516. .checkList"
  3517. :key="checkIndex1"
  3518. :label="checkIndex1"
  3519. :disabled="isAnswer"
  3520. class="redioStyle"
  3521. ><span v-html="item2"></span>
  3522. </el-checkbox>
  3523. </el-checkbox-group>
  3524. </div>
  3525. </div>
  3526. </div>
  3527. </div>
  3528. </div>
  3529. <span slot="footer" class="dialog-footer">
  3530. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  3531. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  3532. </span>
  3533. </el-dialog>
  3534. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5Teacher" :append-to-body="true"
  3535. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3536. <div>
  3537. <div class="w_name">
  3538. 学生姓名:<span>{{ sStudent.student }}</span>
  3539. </div>
  3540. <div class="a_add_title" style="
  3541. display: flex;
  3542. flex-direction: row;
  3543. align-items: center;
  3544. justify-content: center;
  3545. ">
  3546. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3547. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3548. </div>
  3549. <div class="a_addBox">
  3550. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3551. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3552. <div class="a_add_head">
  3553. <div style="display: flex">
  3554. {{ index1 + 1 + "、" }}
  3555. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3556. </div>
  3557. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3558. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3559. </div>
  3560. <div class="a_add_body">
  3561. <div class="a_add_input">
  3562. <el-radio-group
  3563. v-model="radio[index1]"
  3564. v-if="
  3565. askJson.askJson[index1].type == '1' ||
  3566. !askJson.askJson[index1].type
  3567. "
  3568. >
  3569. <el-radio
  3570. v-for="(item2, checkIndex) in askJson.askJson[index1]
  3571. .checkList"
  3572. :key="checkIndex"
  3573. :label="checkIndex"
  3574. :disabled="isAnswer"
  3575. class="redioStyle"
  3576. ><span v-html="item2"></span
  3577. ></el-radio>
  3578. </el-radio-group>
  3579. <el-checkbox-group
  3580. v-model="radio[index1]"
  3581. v-if="askJson.askJson[index1].type == '2'"
  3582. >
  3583. <el-checkbox
  3584. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  3585. .checkList"
  3586. :key="checkIndex1"
  3587. :label="checkIndex1"
  3588. :disabled="isAnswer"
  3589. class="redioStyle"
  3590. ><span v-html="item2"></span>
  3591. </el-checkbox>
  3592. </el-checkbox-group>
  3593. </div>
  3594. </div>
  3595. </div>
  3596. </div>
  3597. </div>
  3598. <span slot="footer" class="dialog-footer">
  3599. <el-button @click="dialogVisible5Teacher = false" v-show="noteName == ''">取 消</el-button>
  3600. <el-button type="primary" @click="addStudentAskTeacher" v-show="noteName == ''">确 定</el-button>
  3601. </span>
  3602. </el-dialog>
  3603. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  3604. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3605. <div>
  3606. <div class="a_addBox">
  3607. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3608. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3609. <div class="a_add_head">
  3610. <div style="display: flex">
  3611. {{ index1 + 1 + "、" }}
  3612. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px;min-width: 70px;">
  3613. (单选题)
  3614. </div>
  3615. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px;min-width: 70px;">
  3616. (多选题)
  3617. </div>
  3618. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3619. </div>
  3620. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  3621. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3622. </div>
  3623. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3624. testJson.testJson[index1].timuList.length
  3625. ">
  3626. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3627. @click.stop="previewImg(timg.src)">
  3628. <img :src="timg.src" alt="" />
  3629. </div>
  3630. </div>
  3631. <div class="a_add_body">
  3632. <div class="a_add_input">
  3633. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  3634. <div class="radioBox">
  3635. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3636. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3637. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3638. <div class="inImg" @click.stop="previewImg(item2.src)">
  3639. <img :src="item2.src" alt="" />
  3640. </div>
  3641. </div>
  3642. <span v-else v-html="item2"></span>
  3643. </el-radio>
  3644. </div>
  3645. </el-radio-group>
  3646. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  3647. <div class="radioBox">
  3648. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  3649. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3650. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3651. <div class="inImg" @click.stop="previewImg(item2.src)">
  3652. <img :src="item2.src" alt="" />
  3653. </div>
  3654. </div>
  3655. <span v-else v-html="item2"></span>
  3656. </el-checkbox>
  3657. </div>
  3658. </el-checkbox-group>
  3659. </div>
  3660. </div>
  3661. </div>
  3662. </div>
  3663. </div>
  3664. <span slot="footer" class="dialog-footer">
  3665. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  3666. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  3667. </span>
  3668. </el-dialog>
  3669. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoiceTeacher"
  3670. :append-to-body="true" width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3671. <div>
  3672. <div class="w_name">
  3673. 学生姓名:<span>{{ sStudent.student }}</span>
  3674. </div>
  3675. <div class="a_addBox">
  3676. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3677. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3678. <div class="a_add_head">
  3679. <div style="display: flex">
  3680. {{ index1 + 1 + "、" }}
  3681. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px;min-width: 70px;">
  3682. (单选题)
  3683. </div>
  3684. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px;min-width: 70px;">
  3685. (多选题)
  3686. </div>
  3687. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3688. </div>
  3689. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  3690. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3691. </div>
  3692. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3693. testJson.testJson[index1].timuList.length
  3694. ">
  3695. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3696. @click.stop="previewImg(timg.src)">
  3697. <img :src="timg.src" alt="" />
  3698. </div>
  3699. </div>
  3700. <div class="a_add_body">
  3701. <div class="a_add_input">
  3702. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  3703. <div class="radioBox">
  3704. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3705. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3706. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3707. <div class="inImg" @click.stop="previewImg(item2.src)">
  3708. <img :src="item2.src" alt="" />
  3709. </div>
  3710. </div>
  3711. <span v-else v-html="item2"></span>
  3712. </el-radio>
  3713. </div>
  3714. </el-radio-group>
  3715. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  3716. <div class="radioBox">
  3717. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  3718. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3719. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3720. <div class="inImg" @click.stop="previewImg(item2.src)">
  3721. <img :src="item2.src" alt="" />
  3722. </div>
  3723. </div>
  3724. <span v-else v-html="item2"></span>
  3725. </el-checkbox>
  3726. </div>
  3727. </el-checkbox-group>
  3728. </div>
  3729. </div>
  3730. </div>
  3731. </div>
  3732. </div>
  3733. <span slot="footer" class="dialog-footer">
  3734. <el-button @click="dialogVisibleChoiceTeacher = false" v-show="noteName == ''">取 消</el-button>
  3735. <el-button type="primary" @click="addStudentTestTeacher" v-show="noteName == ''">确 定</el-button>
  3736. </span>
  3737. </el-dialog>
  3738. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  3739. :before-close="handleClose" class="dialog_diy textCss">
  3740. <el-form style="font-size: 20px">
  3741. <el-form-item label="文本标题" class="textTitle">
  3742. <div style="font-size: 20px">{{ text.name }}</div>
  3743. </el-form-item>
  3744. <div>富文本内容</div>
  3745. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  3746. </el-form>
  3747. <span slot="footer" class="dialog-footer">
  3748. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  3749. </span>
  3750. </el-dialog>
  3751. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  3752. :class="{ fullStyle: full }">
  3753. <div slot="title" class="header-title">
  3754. <div style="color: #fff">文件预览</div>
  3755. <div style="position: absolute; top: 19px; right: 50px">
  3756. <img src="../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  3757. </div>
  3758. </div>
  3759. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3760. :class="{ fullStyle: full }"></pdf>
  3761. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  3762. </el-dialog>
  3763. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  3764. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  3765. </el-dialog>
  3766. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  3767. class="dialog_diy notice">
  3768. <div>此功能暂未开放!</div>
  3769. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  3770. </el-dialog>
  3771. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  3772. :before-close="handleClose" class="dialog_diy">
  3773. <div>
  3774. <div style="
  3775. display: flex;
  3776. flex-wrap: nowrap;
  3777. flex-direction: column;
  3778. position: relative;
  3779. ">
  3780. <div class="queTop" style="padding: 20px 0 20px 0">
  3781. <div class="question">
  3782. <img src="../../assets/icon/question.png" alt />
  3783. </div>
  3784. <div class="queTitle">
  3785. <div style="width: 90px; min-width: 90px">提问:</div>
  3786. <div>{{ answerQ }}</div>
  3787. </div>
  3788. </div>
  3789. <div class="ediBottom">
  3790. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  3791. v-model="questionAnswer"></textarea>
  3792. </div>
  3793. </div>
  3794. </div>
  3795. <div slot="footer">
  3796. <el-button @click="answerDialogVisible = false">取 消</el-button>
  3797. <el-button type="primary" @click="addQuestion">提 交</el-button>
  3798. </div>
  3799. </el-dialog>
  3800. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  3801. :before-close="handleClose" class="dialog_diy">
  3802. <div>
  3803. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  3804. </div>
  3805. <div slot="footer">
  3806. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  3807. </div>
  3808. </el-dialog>
  3809. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  3810. class="dialog_diy">
  3811. <div>
  3812. <div class="open_box">
  3813. <div class="switch_box">
  3814. <span>允许学生查看所有作业</span>
  3815. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  3816. </div>
  3817. <div class="switch_box" v-if="courseDetail.userid == userid ||
  3818. (courseDetail.course_teacher &&
  3819. courseDetail.course_teacher.indexOf(userid) != -1)
  3820. ">
  3821. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  3822. <span>禁止学生查看所有阶段</span>
  3823. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  3824. </div>
  3825. <div class="switch_box" v-if="courseDetail.userid == userid">
  3826. <span>开启跟随模式</span>
  3827. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  3828. </div>
  3829. </div>
  3830. </div>
  3831. <div slot="footer">
  3832. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  3833. </div>
  3834. </el-dialog>
  3835. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  3836. class="dialog_diy1">
  3837. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  3838. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3839. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  3840. </div>
  3841. <div slot="footer">
  3842. <el-button style="background: #409efe; color: #fff"
  3843. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  3844. 关 闭</el-button>
  3845. </div>
  3846. </el-dialog>
  3847. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  3848. :before-close="handleClose" class="dialog_diy">
  3849. <div class="commentTop">
  3850. <div class="studentDetail">
  3851. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  3852. <div class="nameAndTime">
  3853. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  3854. <div>{{ commentDetail.time }}</div>
  3855. </div>
  3856. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="commentDetail.works &&
  3857. commentDetail.type == 0 &&
  3858. (tType == 1 || tType == 4)
  3859. " @click="showPicturePaint(
  3860. commentDetail.img ? commentDetail.img : commentDetail.works
  3861. )
  3862. ">
  3863. 教师批注
  3864. </div>
  3865. </div>
  3866. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  3867. {{ JSON.parse(commentDetail.works)[0].answer }}
  3868. </div>
  3869. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  3870. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  3871. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3872. :class="{ fullStyle: full }"></pdf>
  3873. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  3874. </div>
  3875. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  3876. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  3877. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  3878. </div>
  3879. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  3880. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  3881. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3882. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  3883. </div>
  3884. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  3885. <div class="cont" v-html="commentDetail.works.text"></div>
  3886. </div>
  3887. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  3888. @click="downloadFile(commentDetail.works)">
  3889. <img src="../../assets/icon/codeFile.png" />
  3890. <div>点击下载文件</div>
  3891. </div>
  3892. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  3893. <div v-html="JSON.parse(commentDetail.works).text"></div>
  3894. </div>
  3895. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  3896. <div class="evalCss">
  3897. <div class="nav">请选择星星进行评分</div>
  3898. <div class="middleBox" v-if="eScore.eStar">
  3899. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  3900. <div class="nameAndrate">
  3901. <div>{{ e.value }}</div>
  3902. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  3903. </div>
  3904. <div v-if="e.detail">{{ e.detail }}</div>
  3905. </div>
  3906. <div class="bz">
  3907. <textarea disabled rows="4" class="pj" style="
  3908. padding: 10px 5px;
  3909. width: 70%;
  3910. background: #f7f6f9;
  3911. font-size: 14px;
  3912. text-indent: 10px;
  3913. color: #000;
  3914. " cols v-model="eScore.eBzText"
  3915. placeholder="请输入评价内容..."></textarea>
  3916. </div>
  3917. </div>
  3918. </div>
  3919. </div>
  3920. <div class="comment">
  3921. <div class="commentList">
  3922. <div class="commentImg">
  3923. <img @click="isLikes(
  3924. commentDetail.wid,
  3925. userid,
  3926. 1,
  3927. null,
  3928. commentDetail.isLikes
  3929. )
  3930. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  3931. </div>
  3932. <div>{{ commentDetail.likesCount }}</div>
  3933. </div>
  3934. <div class="commentList">
  3935. <div class="commentImg">
  3936. <img src="../../assets/icon/comment/comment.png" alt="" />
  3937. </div>
  3938. <div>{{ commentDetail.commentCount }}</div>
  3939. </div>
  3940. </div>
  3941. <div class="drawPBox" v-if="commentDetail.img">
  3942. <span>教师批注</span>
  3943. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  3944. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  3945. style="
  3946. font-size: 14px;
  3947. width: auto !important;
  3948. color: #b4b4b4;
  3949. top: unset;
  3950. bottom: 0;
  3951. border: none;
  3952. padding: 0;
  3953. height: auto !important;
  3954. margin: 0;
  3955. ">删除</span>
  3956. </div>
  3957. </div>
  3958. <div class="commentBox">
  3959. <div class="pl">评论:</div>
  3960. <div style="max-height: 200px; overflow: auto">
  3961. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  3962. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  3963. :key="coIndex">
  3964. <div class="tx" style="min-width: 50px">
  3965. <img src="../../assets/avatar.png" alt="" />
  3966. </div>
  3967. <div class="plPerson">
  3968. <div class="plName">
  3969. <div>{{ co.commentPeople }}</div>
  3970. <div style="margin-left: 5px">
  3971. {{ co.commentTime }}
  3972. </div>
  3973. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">删除</div>
  3974. </div>
  3975. <div class="plContent">{{ co.commentText }}</div>
  3976. </div>
  3977. </div>
  3978. </div>
  3979. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  3980. </div>
  3981. </div>
  3982. <div style="margin-top: 10px">
  3983. <div class="displayBox">
  3984. <div style="
  3985. color: #556db4;
  3986. font-size: 14px;
  3987. font-weight: bold;
  3988. padding-bottom: 10px;
  3989. ">
  3990. 评价
  3991. </div>
  3992. <div class="easy_comment" v-if="false">
  3993. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  3994. {{ p }}
  3995. </div>
  3996. </div>
  3997. </div>
  3998. <div>
  3999. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  4000. placeholder="请输入评论"></textarea>
  4001. </div>
  4002. </div>
  4003. <div slot="footer">
  4004. <el-button @click="(commentDialogVisible = false),
  4005. (commentIndexJson = {}),
  4006. videoDetail.sources && videoDetail.sources[0]
  4007. ? (videoDetail.sources[0].src = '')
  4008. : ''
  4009. ">取 消</el-button>
  4010. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  4011. </div>
  4012. </el-dialog>
  4013. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  4014. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  4015. <div slot="title" class="header-title">
  4016. <div style="color: #fff">查看文档</div>
  4017. <div @click="fullDialogVisible = false" style="
  4018. cursor: pointer;
  4019. position: absolute;
  4020. top: 20px;
  4021. right: 20px;
  4022. color: #fff;
  4023. ">
  4024. 退出全屏
  4025. </div>
  4026. </div>
  4027. <div style="height: 100%">
  4028. <div class="wheel"
  4029. v-if="fullUrl.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && fulltype == 2"
  4030. style="width: 95%; margin: 0 auto">
  4031. <iframe style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  4032. </div>
  4033. <iframe v-else-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"
  4034. security="restricted"
  4035. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  4036. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  4037. <div class="wheel" v-if="fulltype == 1" style="
  4038. box-shadow: 0 0 6px 1px #f2f2f2;
  4039. width: 100%;
  4040. background: #f1f1f1;
  4041. ">
  4042. <div class="title" style="width: 100%; box-sizing: border-box">
  4043. 查看文档
  4044. </div>
  4045. <el-form class="textBox" style="height: 90%">
  4046. <el-form-item class="textTitle">
  4047. <div style="font-size: 22px">
  4048. {{ fullUrl.name }}
  4049. </div>
  4050. </el-form-item>
  4051. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  4052. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  4053. </el-form>
  4054. </div>
  4055. </div>
  4056. <!-- <div slot="footer">
  4057. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  4058. </div> -->
  4059. </el-dialog>
  4060. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  4061. :before-close="handleClose" class="dialog_diy">
  4062. <div class="evalCss">
  4063. <div class="nav">请选择星星进行评分</div>
  4064. <div class="middleBox" v-if="eScore.eStar">
  4065. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4066. <div class="nameAndrate">
  4067. <div>{{ e.value }}</div>
  4068. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4069. </div>
  4070. <div v-if="e.detail">{{ e.detail }}</div>
  4071. </div>
  4072. <div class="easy_comment" v-if="false">
  4073. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4074. {{ p }}
  4075. </div>
  4076. </div>
  4077. <div class="bz">
  4078. <textarea :disabled="isStar" rows="4" class="pj" style="
  4079. padding: 10px 5px;
  4080. width: 70%;
  4081. background: #f7f6f9;
  4082. font-size: 14px;
  4083. text-indent: 10px;
  4084. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4085. </div>
  4086. </div>
  4087. </div>
  4088. <div slot="footer">
  4089. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  4090. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  4091. </div>
  4092. </el-dialog>
  4093. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisibleTeacher" :append-to-body="true" width="800px"
  4094. :before-close="handleClose" class="dialog_diy">
  4095. <div class="w_name">
  4096. 学生姓名:<span>{{ sStudent.student }}</span>
  4097. </div>
  4098. <div class="evalCss">
  4099. <div class="nav">请选择星星进行评分</div>
  4100. <div class="middleBox" v-if="eScore.eStar">
  4101. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4102. <div class="nameAndrate">
  4103. <div>{{ e.value }}</div>
  4104. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4105. </div>
  4106. <div v-if="e.detail">{{ e.detail }}</div>
  4107. </div>
  4108. <div class="easy_comment" v-if="false">
  4109. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4110. {{ p }}
  4111. </div>
  4112. </div>
  4113. <div class="bz">
  4114. <textarea :disabled="isStar" rows="4" class="pj" style="
  4115. padding: 10px 5px;
  4116. width: 70%;
  4117. background: #f7f6f9;
  4118. font-size: 14px;
  4119. text-indent: 10px;
  4120. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4121. </div>
  4122. </div>
  4123. </div>
  4124. <div slot="footer">
  4125. <el-button @click="studentEvalDialogVisibleTeacher = false">取 消</el-button>
  4126. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar">确 定</el-button>
  4127. </div>
  4128. </el-dialog>
  4129. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  4130. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4131. <div v-if="selectJson">
  4132. <div class="select_box2">
  4133. <div class="select_box2_title">
  4134. <div>选择匹配</div>
  4135. <div>请选择对应的答案进行答题!</div>
  4136. </div>
  4137. <div class="select_box2_box">
  4138. <div class="select_box2_img">
  4139. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4140. </div>
  4141. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4142. <div style="padding-top: 15px">
  4143. <div class="select_answer_title" v-if="isSelect">
  4144. {{ selectAnswer.stu }}
  4145. </div>
  4146. <div class="select_answer_title" v-else>
  4147. 根据题目选择对应答案
  4148. </div>
  4149. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4150. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4151. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4152. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4153. </el-option>
  4154. </el-select>
  4155. </div>
  4156. </div>
  4157. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4158. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4159. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4160. 回答正确
  4161. </div>
  4162. <div v-else>回答错误</div>
  4163. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4164. 正确答案:
  4165. </div>
  4166. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4167. ">
  4168. {{ selectJson.select[a] }}
  4169. </div>
  4170. </div>
  4171. </div>
  4172. </div>
  4173. <div class="upAnswerCss">
  4174. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  4175. </div>
  4176. </div>
  4177. </div>
  4178. </div>
  4179. </el-dialog>
  4180. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelectTeacher" :append-to-body="true" width="90%"
  4181. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4182. <div v-if="selectJson">
  4183. <div class="w_name">
  4184. 学生姓名:<span>{{ sStudent.student }}</span>
  4185. </div>
  4186. <div class="select_box2">
  4187. <div class="select_box2_title">
  4188. <div>选择匹配</div>
  4189. <div>请选择对应的答案进行答题!</div>
  4190. </div>
  4191. <div class="select_box2_box">
  4192. <div class="select_box2_img">
  4193. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4194. </div>
  4195. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4196. <div style="padding-top: 15px">
  4197. <div class="select_answer_title" v-if="isSelect">
  4198. {{ selectAnswer.stu }}
  4199. </div>
  4200. <div class="select_answer_title" v-else>
  4201. 根据题目选择对应答案
  4202. </div>
  4203. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4204. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4205. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4206. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4207. </el-option>
  4208. </el-select>
  4209. </div>
  4210. </div>
  4211. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4212. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4213. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4214. 回答正确
  4215. </div>
  4216. <div v-else>回答错误</div>
  4217. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4218. 正确答案:
  4219. </div>
  4220. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4221. ">
  4222. {{ selectJson.select[a] }}
  4223. </div>
  4224. </div>
  4225. </div>
  4226. </div>
  4227. <div class="upAnswerCss">
  4228. <el-button type="primary" @click="addSelectAnswerTeacher" v-if="!isSelect">提交答案</el-button>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. </div>
  4233. </el-dialog>
  4234. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  4235. :before-close="handleClose" class="dialog_diy">
  4236. <div>
  4237. <div class="studentDetail">
  4238. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  4239. <div class="nameAndTime">
  4240. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4241. <div>{{ commentDetail.time }}</div>
  4242. </div>
  4243. </div>
  4244. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4245. {{ JSON.parse(commentDetail.works)[0].answer }}
  4246. </div>
  4247. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4248. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4249. :class="{ fullStyle: full }"></pdf>
  4250. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4251. </div>
  4252. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4253. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4254. </div>
  4255. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4256. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4257. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4258. </div>
  4259. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4260. @click="downloadFile(commentDetail.works)">
  4261. <img src="../../assets/icon/codeFile.png" />
  4262. <div>点击下载文件</div>
  4263. </div>
  4264. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4265. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4266. </div>
  4267. <div class="scoreBox">
  4268. <span class="t">请输入分数</span>
  4269. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  4270. :max="100"></el-input-number>
  4271. </div>
  4272. <div class="scoreDetailBox">
  4273. <span class="t">评分评论</span>
  4274. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  4275. v-model="scoreDetail" placeholder="请输入对学生的评价">
  4276. </el-input>
  4277. </div>
  4278. </div>
  4279. <span slot="footer" class="dialog-footer">
  4280. <el-button @click="(dialogVisibleScore = false),
  4281. (commentIndexJson = {}),
  4282. videoDetail.sources && videoDetail.sources[0]
  4283. ? (videoDetail.sources[0].src = '')
  4284. : ''
  4285. ">取 消</el-button>
  4286. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  4287. </el-button>
  4288. </span>
  4289. </el-dialog>
  4290. <el-dialog title="排序" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4291. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4292. <div>
  4293. <div class="sentenBox">
  4294. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4295. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4296. <div class="cardList" v-if="st.chooseSenList">
  4297. <div class="cardBox">
  4298. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4299. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4300. <div :class="{
  4301. isCard: r,
  4302. isChooseCard: r == '' || r == undefined,
  4303. }">
  4304. <div>{{ r }}</div>
  4305. </div>
  4306. </el-tooltip>
  4307. <div :class="{
  4308. isCard: r,
  4309. isChooseCard: r == '' || r == undefined,
  4310. }" v-else>
  4311. <div>{{ r }}</div>
  4312. </div>
  4313. </div>
  4314. </div>
  4315. </div>
  4316. <div class="cardList" v-if="st.addChangeSen">
  4317. <div class="cardBox">
  4318. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4319. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4320. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4321. <div>{{ s }}</div>
  4322. </div>
  4323. </el-tooltip>
  4324. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4325. <div>{{ s }}</div>
  4326. </div>
  4327. </div>
  4328. </div>
  4329. </div>
  4330. </div>
  4331. </div>
  4332. </div>
  4333. <span slot="footer" class="dialog-footer">
  4334. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  4335. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  4336. </span>
  4337. </el-dialog>
  4338. <el-dialog title="排序" :visible.sync="dialogVisibleSentenceTeacher" :append-to-body="true" width="1000px"
  4339. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4340. <div>
  4341. <div class="w_name">
  4342. 学生姓名:<span>{{ sStudent.student }}</span>
  4343. </div>
  4344. <div class="sentenBox">
  4345. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4346. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4347. <div class="cardList" v-if="st.chooseSenList">
  4348. <div class="cardBox">
  4349. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4350. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4351. <div :class="{
  4352. isCard: r,
  4353. isChooseCard: r == '' || r == undefined,
  4354. }">
  4355. <div>{{ r }}</div>
  4356. </div>
  4357. </el-tooltip>
  4358. <div :class="{
  4359. isCard: r,
  4360. isChooseCard: r == '' || r == undefined,
  4361. }" v-else>
  4362. <div>{{ r }}</div>
  4363. </div>
  4364. </div>
  4365. </div>
  4366. </div>
  4367. <div class="cardList" v-if="st.addChangeSen">
  4368. <div class="cardBox">
  4369. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4370. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4371. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4372. <div>{{ s }}</div>
  4373. </div>
  4374. </el-tooltip>
  4375. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4376. <div>{{ s }}</div>
  4377. </div>
  4378. </div>
  4379. </div>
  4380. </div>
  4381. </div>
  4382. </div>
  4383. </div>
  4384. <span slot="footer" class="dialog-footer">
  4385. <el-button @click="dialogVisibleSentenceTeacher = false">取 消</el-button>
  4386. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  4387. </span>
  4388. </el-dialog>
  4389. <el-dialog title="排序" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  4390. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4391. <div>
  4392. <div class="sentenBox">
  4393. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4394. {{ sentenceList1.stuName }}的作业
  4395. </div>
  4396. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  4397. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4398. 第{{ stIndex + 1 }}题
  4399. </div>
  4400. <div class="isWrong">
  4401. <div class="cardList1" v-if="st.chooseSenList">
  4402. <div class="cardBox">
  4403. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  4404. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4405. <div class="isCard">
  4406. <div>{{ s }}</div>
  4407. </div>
  4408. </el-tooltip>
  4409. </div>
  4410. </div>
  4411. <div class="cardAnswerBox">
  4412. 组成句子:{{ st.chooseSenList.join(" ") }}
  4413. </div>
  4414. </div>
  4415. <div class="answerRight isTj" v-if="st.chooseSenList.toString() == st.rightAnswer.toString() &&
  4416. (tType == 1 || tType == 4)
  4417. ">
  4418. <div class="isTjImg">
  4419. <img src="../../assets/icon/conSentences/right.png" alt="" />
  4420. </div>
  4421. <div>回答正确</div>
  4422. </div>
  4423. <div class="answerRight isTj" v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4424. (tType == 1 || tType == 4)
  4425. ">
  4426. <div class="isTjImg">
  4427. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  4428. </div>
  4429. <div>回答错误</div>
  4430. </div>
  4431. </div>
  4432. <div v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4433. (tType == 1 || tType == 4)
  4434. ">
  4435. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  4436. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  4437. <div class="cardBox">
  4438. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  4439. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4440. <div class="isCard1">
  4441. <div>{{ r }}</div>
  4442. </div>
  4443. </el-tooltip>
  4444. </div>
  4445. </div>
  4446. <div class="cardAnswerBox">
  4447. 组成句子:{{ st.rightAnswer.join(" ") }}
  4448. </div>
  4449. </div>
  4450. </div>
  4451. </div>
  4452. </div>
  4453. </div>
  4454. <span slot="footer" class="dialog-footer">
  4455. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  4456. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  4457. </span>
  4458. </el-dialog>
  4459. <el-dialog title="提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  4460. :before-close="handleClose" class="dialog_change">
  4461. <div class="marginT">
  4462. <div class="w_name">
  4463. 学生姓名:<span>{{ sStudent.student }}</span>
  4464. </div>
  4465. <div>上传文件</div>
  4466. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4467. <div class="up_photo">
  4468. <img src="../../assets/uploadImg2.png" alt />
  4469. </div>
  4470. <!-- <input
  4471. type="file"
  4472. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4473. style="display: none"
  4474. @change="beforeUpload1($event, 1)"
  4475. /> -->
  4476. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4477. </div>
  4478. <!-- capture="camera" -->
  4479. <div class="chapter_add" style="
  4480. display: flex;
  4481. width: 100%;
  4482. flex-direction: row;
  4483. flex-wrap: wrap;
  4484. justify-content: flex-start;
  4485. padding: 15px 0;
  4486. " v-if="studyJuri[0].cover.length > 0">
  4487. <div class="upCover">
  4488. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4489. <img :src="word" alt v-else-if="fileType == 1" />
  4490. <img :src="video" alt v-else-if="fileType == 2" />
  4491. <img :src="word2" alt v-else-if="fileType == 3" />
  4492. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4493. <div class="deleteWord" @click="clean(1)">
  4494. <img src="../../assets/icon/deleteWorks.png" alt />
  4495. </div>
  4496. </div>
  4497. </div>
  4498. </div>
  4499. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  4500. 提交
  4501. </div>
  4502. </el-dialog>
  4503. <el-dialog title="问答" :visible.sync="answerDialogVisibleTeacher" :append-to-body="true" width="800px"
  4504. :before-close="handleClose" class="dialog_diy">
  4505. <div>
  4506. <div class="w_name">
  4507. 学生姓名:<span>{{ sStudent.student }}</span>
  4508. </div>
  4509. <div style="
  4510. display: flex;
  4511. flex-wrap: nowrap;
  4512. flex-direction: column;
  4513. position: relative;
  4514. ">
  4515. <div class="queTop" style="padding: 20px 0 20px 0">
  4516. <div class="question">
  4517. <img src="../../assets/icon/question.png" alt />
  4518. </div>
  4519. <div class="queTitle">
  4520. <div style="width: 90px; min-width: 90px">提问:</div>
  4521. <div>{{ answerQ }}</div>
  4522. </div>
  4523. </div>
  4524. <div class="ediBottom">
  4525. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  4526. v-model="questionAnswer"></textarea>
  4527. </div>
  4528. </div>
  4529. </div>
  4530. <div slot="footer">
  4531. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  4532. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  4533. </div>
  4534. </el-dialog>
  4535. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  4536. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4537. :before-close="handleClose" class="dialog_diy">
  4538. <el-form>
  4539. <div>表格内容</div>
  4540. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  4541. </el-form>
  4542. <span slot="footer" class="dialog-footer">
  4543. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4544. <el-button type="primary" @click="addTableWorks">确定</el-button>
  4545. </span>
  4546. </el-dialog>
  4547. <el-dialog title="表格" :visible.sync="dialogVisibleTableTeacher" :append-to-body="true" width="95%"
  4548. :before-close="handleClose" class="dialog_diy">
  4549. <el-form>
  4550. <div class="w_name">
  4551. 学生姓名:<span>{{ sStudent.student }}</span>
  4552. </div>
  4553. <div>表格内容</div>
  4554. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTableTeacher"></Table>
  4555. </el-form>
  4556. <span slot="footer" class="dialog-footer">
  4557. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  4558. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  4559. </span>
  4560. </el-dialog>
  4561. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  4562. class="dialog_diy">
  4563. <el-form>
  4564. <div>文档内容</div>
  4565. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWord"></editor-bar>
  4566. </el-form>
  4567. <span slot="footer" class="dialog-footer">
  4568. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  4569. <el-button type="primary" @click="addWordWorks">确定</el-button>
  4570. </span>
  4571. </el-dialog>
  4572. <el-dialog title="文档" :visible.sync="dialogVisibleWordTeacher" :append-to-body="true" width="95%"
  4573. :before-close="handleClose" class="dialog_diy">
  4574. <el-form>
  4575. <div class="w_name">
  4576. 学生姓名:<span>{{ sStudent.student }}</span>
  4577. </div>
  4578. <div>文档内容</div>
  4579. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWordTeacher"></editor-bar>
  4580. </el-form>
  4581. <span slot="footer" class="dialog-footer">
  4582. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  4583. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  4584. </span>
  4585. </el-dialog>
  4586. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  4587. :before-close="handleClose" class="dialog_diy">
  4588. <el-form>
  4589. <div class="cont" v-html="tableJson.text"></div>
  4590. </el-form>
  4591. <span slot="footer" class="dialog-footer">
  4592. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  4593. </span>
  4594. </el-dialog>
  4595. <el-dialog title="文档" :visible.sync="dialogVisibleTable3" :append-to-body="true" width="95%"
  4596. :before-close="handleClose" class="dialog_diy">
  4597. <el-form>
  4598. <div class="cont" v-html="tableJson.text"></div>
  4599. </el-form>
  4600. <span slot="footer" class="dialog-footer">
  4601. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  4602. </span>
  4603. </el-dialog>
  4604. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  4605. :before-close="handleClose" class="dialog_diy">
  4606. <div v-if="dialogVisibleGroup">
  4607. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  4608. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  4609. 提示:需要锁定位置,才能点击头像修改座位。
  4610. </div>
  4611. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  4612. @click="lockChair">
  4613. 锁定位置
  4614. </div>
  4615. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  4616. 解锁位置
  4617. </div>
  4618. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  4619. 分组设置
  4620. </div>
  4621. </div>
  4622. <div>
  4623. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  4624. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  4625. <div class="g_d_group_chair">
  4626. <div v-if="groupJson.number > 1">
  4627. <span :class="{
  4628. isChair:
  4629. groupStudent[toolindex][gindex] &&
  4630. groupStudent[toolindex][gindex][0],
  4631. updateChair:
  4632. courseDetail.userid == userid &&
  4633. groupStudent[toolindex][gindex] &&
  4634. groupStudent[toolindex][gindex][0] &&
  4635. groupJson.islock == 2,
  4636. }"><span class="updateChairBtn" @click="updateGroupChair(
  4637. groupStudent[toolindex][gindex] &&
  4638. groupStudent[toolindex][gindex][0]
  4639. )
  4640. ">修改</span></span><span>{{
  4641. groupStudent[toolindex][gindex] &&
  4642. groupStudent[toolindex][gindex][0]
  4643. ? groupStudent[toolindex][gindex] &&
  4644. groupStudent[toolindex][gindex][0].name
  4645. : "空位置"
  4646. }}</span>
  4647. </div>
  4648. <div v-if="groupJson.number > 4">
  4649. <span :class="{
  4650. isChair:
  4651. groupStudent[toolindex][gindex] &&
  4652. groupStudent[toolindex][gindex][4],
  4653. updateChair:
  4654. courseDetail.userid == userid &&
  4655. groupStudent[toolindex][gindex] &&
  4656. groupStudent[toolindex][gindex][4] &&
  4657. groupJson.islock == 2,
  4658. }"><span class="updateChairBtn" @click="updateGroupChair(
  4659. groupStudent[toolindex][gindex] &&
  4660. groupStudent[toolindex][gindex][4]
  4661. )
  4662. ">修改</span></span><span>{{
  4663. groupStudent[toolindex][gindex] &&
  4664. groupStudent[toolindex][gindex][4]
  4665. ? groupStudent[toolindex][gindex] &&
  4666. groupStudent[toolindex][gindex][4].name
  4667. : "空位置"
  4668. }}</span>
  4669. </div>
  4670. <div v-if="groupJson.number > 8">
  4671. <span :class="{
  4672. isChair:
  4673. groupStudent[toolindex][gindex] &&
  4674. groupStudent[toolindex][gindex][8],
  4675. updateChair:
  4676. courseDetail.userid == userid &&
  4677. groupStudent[toolindex][gindex] &&
  4678. groupStudent[toolindex][gindex][8] &&
  4679. groupJson.islock == 2,
  4680. }"><span class="updateChairBtn" @click="updateGroupChair(
  4681. groupStudent[toolindex][gindex] &&
  4682. groupStudent[toolindex][gindex][8]
  4683. )
  4684. ">修改</span></span><span>{{
  4685. groupStudent[toolindex][gindex] &&
  4686. groupStudent[toolindex][gindex][8]
  4687. ? groupStudent[toolindex][gindex] &&
  4688. groupStudent[toolindex][gindex][8].name
  4689. : "空位置"
  4690. }}</span>
  4691. </div>
  4692. </div>
  4693. <div class="g_d_group_tableBox">
  4694. <div class="g_d_group_chair2">
  4695. <div v-if="groupJson.number > 2">
  4696. <span :class="{
  4697. isChair:
  4698. groupStudent[toolindex][gindex] &&
  4699. groupStudent[toolindex][gindex][2],
  4700. updateChair:
  4701. courseDetail.userid == userid &&
  4702. groupStudent[toolindex][gindex] &&
  4703. groupStudent[toolindex][gindex][2] &&
  4704. groupJson.islock == 2,
  4705. }"><span class="updateChairBtn" @click="updateGroupChair(
  4706. groupStudent[toolindex][gindex] &&
  4707. groupStudent[toolindex][gindex][2]
  4708. )
  4709. ">修改</span></span><span>{{
  4710. groupStudent[toolindex][gindex] &&
  4711. groupStudent[toolindex][gindex][2]
  4712. ? groupStudent[toolindex][gindex] &&
  4713. groupStudent[toolindex][gindex][2].name
  4714. : "空位置"
  4715. }}</span>
  4716. </div>
  4717. <div v-if="groupJson.number > 6">
  4718. <span :class="{
  4719. isChair:
  4720. groupStudent[toolindex][gindex] &&
  4721. groupStudent[toolindex][gindex][6],
  4722. updateChair:
  4723. courseDetail.userid == userid &&
  4724. groupStudent[toolindex][gindex] &&
  4725. groupStudent[toolindex][gindex][6] &&
  4726. groupJson.islock == 2,
  4727. }"><span class="updateChairBtn" @click="updateGroupChair(
  4728. groupStudent[toolindex][gindex] &&
  4729. groupStudent[toolindex][gindex][6]
  4730. )
  4731. ">修改</span></span><span>{{
  4732. groupStudent[toolindex][gindex] &&
  4733. groupStudent[toolindex][gindex][6]
  4734. ? groupStudent[toolindex][gindex] &&
  4735. groupStudent[toolindex][gindex][6].name
  4736. : "空位置"
  4737. }}</span>
  4738. </div>
  4739. </div>
  4740. <div class="g_d_group_table">
  4741. <div>
  4742. {{ g.name }}
  4743. </div>
  4744. <div>
  4745. <div v-if="courseDetail.userid == userid && groupJson.islock == 2
  4746. " @click="deleteGroupChair(gindex)">
  4747. 移除组员
  4748. </div>
  4749. <div @click="selectGroup(gindex)" v-else-if="groupStudentUid[toolindex] &&
  4750. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  4751. ">
  4752. 加入分组
  4753. </div>
  4754. <div @click="exitGroup(
  4755. groupStudent[toolindex][gindex] &&
  4756. groupStudent[toolindex][gindex][
  4757. groupStudentUid[toolindex][gindex].indexOf(userid)
  4758. ].id
  4759. )
  4760. " v-else-if="groupStudentUid[toolindex] &&
  4761. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  4762. ">
  4763. 退出分组
  4764. </div>
  4765. </div>
  4766. </div>
  4767. <div class="g_d_group_chair2">
  4768. <div v-if="groupJson.number > 3">
  4769. <span :class="{
  4770. isChair:
  4771. groupStudent[toolindex][gindex] &&
  4772. groupStudent[toolindex][gindex][3],
  4773. updateChair:
  4774. courseDetail.userid == userid &&
  4775. groupStudent[toolindex][gindex] &&
  4776. groupStudent[toolindex][gindex][3] &&
  4777. groupJson.islock == 2,
  4778. }"><span class="updateChairBtn" @click="updateGroupChair(
  4779. groupStudent[toolindex][gindex] &&
  4780. groupStudent[toolindex][gindex][3]
  4781. )
  4782. ">修改</span></span><span>{{
  4783. groupStudent[toolindex][gindex] &&
  4784. groupStudent[toolindex][gindex][3]
  4785. ? groupStudent[toolindex][gindex] &&
  4786. groupStudent[toolindex][gindex][3].name
  4787. : "空位置"
  4788. }}</span>
  4789. </div>
  4790. <div v-if="groupJson.number > 7">
  4791. <span :class="{
  4792. isChair:
  4793. groupStudent[toolindex][gindex] &&
  4794. groupStudent[toolindex][gindex][7],
  4795. updateChair:
  4796. courseDetail.userid == userid &&
  4797. groupStudent[toolindex][gindex] &&
  4798. groupStudent[toolindex][gindex][7] &&
  4799. groupJson.islock == 2,
  4800. }"><span class="updateChairBtn" @click="updateGroupChair(
  4801. groupStudent[toolindex][gindex] &&
  4802. groupStudent[toolindex][gindex][7]
  4803. )
  4804. ">修改</span></span><span>{{
  4805. groupStudent[toolindex][gindex] &&
  4806. groupStudent[toolindex][gindex][7]
  4807. ? groupStudent[toolindex][gindex] &&
  4808. groupStudent[toolindex][gindex][7].name
  4809. : "空位置"
  4810. }}</span>
  4811. </div>
  4812. </div>
  4813. </div>
  4814. <div class="g_d_group_chair">
  4815. <div v-if="groupJson.number > 1">
  4816. <span :class="{
  4817. isChair:
  4818. groupStudent[toolindex][gindex] &&
  4819. groupStudent[toolindex][gindex][1],
  4820. updateChair:
  4821. courseDetail.userid == userid &&
  4822. groupStudent[toolindex][gindex] &&
  4823. groupStudent[toolindex][gindex][1] &&
  4824. groupJson.islock == 2,
  4825. }"><span class="updateChairBtn" @click="updateGroupChair(
  4826. groupStudent[toolindex][gindex] &&
  4827. groupStudent[toolindex][gindex][1]
  4828. )
  4829. ">修改</span></span><span>{{
  4830. groupStudent[toolindex][gindex] &&
  4831. groupStudent[toolindex][gindex][1]
  4832. ? groupStudent[toolindex][gindex] &&
  4833. groupStudent[toolindex][gindex][1].name
  4834. : "空位置"
  4835. }}</span>
  4836. </div>
  4837. <div v-if="groupJson.number > 5">
  4838. <span :class="{
  4839. isChair:
  4840. groupStudent[toolindex][gindex] &&
  4841. groupStudent[toolindex][gindex][5],
  4842. updateChair:
  4843. courseDetail.userid == userid &&
  4844. groupStudent[toolindex][gindex] &&
  4845. groupStudent[toolindex][gindex][5] &&
  4846. groupJson.islock == 2,
  4847. }"><span class="updateChairBtn" @click="updateGroupChair(
  4848. groupStudent[toolindex][gindex] &&
  4849. groupStudent[toolindex][gindex][5]
  4850. )
  4851. ">修改</span></span><span>{{
  4852. groupStudent[toolindex][gindex] &&
  4853. groupStudent[toolindex][gindex][5]
  4854. ? groupStudent[toolindex][gindex] &&
  4855. groupStudent[toolindex][gindex][5].name
  4856. : "空位置"
  4857. }}</span>
  4858. </div>
  4859. <div v-if="groupJson.number > 9">
  4860. <span :class="{
  4861. isChair:
  4862. groupStudent[toolindex][gindex] &&
  4863. groupStudent[toolindex][gindex][9],
  4864. updateChair:
  4865. courseDetail.userid == userid &&
  4866. groupStudent[toolindex][gindex] &&
  4867. groupStudent[toolindex][gindex][9] &&
  4868. groupJson.islock == 2,
  4869. }"><span class="updateChairBtn" @click="updateGroupChair(
  4870. groupStudent[toolindex][gindex] &&
  4871. groupStudent[toolindex][gindex][9]
  4872. )
  4873. ">修改</span></span><span>{{
  4874. groupStudent[toolindex][gindex] &&
  4875. groupStudent[toolindex][gindex][9]
  4876. ? groupStudent[toolindex][gindex] &&
  4877. groupStudent[toolindex][gindex][9].name
  4878. : "空位置"
  4879. }}</span>
  4880. </div>
  4881. </div>
  4882. </div>
  4883. </div>
  4884. </div>
  4885. </div>
  4886. <span slot="footer" class="dialog-footer">
  4887. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  4888. </span>
  4889. </el-dialog>
  4890. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  4891. :before-close="handleClose" class="dialog_diy">
  4892. <div class="groupBox">
  4893. <div v-if="groupJson2.group" class="groupContent">
  4894. <div class="groupTitle">请设置小组数量</div>
  4895. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  4896. <span class="groupn">组{{ index + 1 }}名称:</span>
  4897. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4898. <!-- <div class="groupBtn">
  4899. <el-button type="primary" size="small" @click="addGroup(index)">
  4900. 添加</el-button>
  4901. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4902. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  4903. </div> -->
  4904. </div>
  4905. </div>
  4906. <div class="groupContent">
  4907. <div class="groupTitle">请设置每组人数数量</div>
  4908. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4909. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4910. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  4911. placeholder="2-10人以内"></el-input-number>
  4912. </div>
  4913. </div>
  4914. <span slot="footer" class="dialog-footer">
  4915. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  4916. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  4917. </span>
  4918. </el-dialog>
  4919. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  4920. :before-close="handleClose" class="dialog_change">
  4921. <div class="marginT">
  4922. <div>上传文件</div>
  4923. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4924. <div class="up_photo">
  4925. <img src="../../assets/icon/uploadImg.png" alt />
  4926. </div>
  4927. <!-- <input
  4928. type="file"
  4929. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4930. style="display: none"
  4931. @change="beforeUpload1($event, 1)"
  4932. /> -->
  4933. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4934. </div>
  4935. <!-- capture="camera" -->
  4936. <div class="chapter_add" style="
  4937. display: flex;
  4938. width: 100%;
  4939. flex-direction: row;
  4940. flex-wrap: wrap;
  4941. justify-content: flex-start;
  4942. padding: 15px 0;
  4943. " v-if="studyJuri[0].cover.length > 0">
  4944. <div class="upCover">
  4945. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4946. <img :src="word" alt v-else-if="fileType == 1" />
  4947. <img :src="video" alt v-else-if="fileType == 2" />
  4948. <img :src="word2" alt v-else-if="fileType == 3" />
  4949. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4950. <div class="deleteWord" @click="clean(1)">
  4951. <img src="../../assets/icon/deleteWorks.png" alt />
  4952. </div>
  4953. </div>
  4954. </div>
  4955. </div>
  4956. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  4957. 提交
  4958. </div>
  4959. </el-dialog>
  4960. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  4961. :before-close="handleClose" class="dialog_diy">
  4962. <div>
  4963. <h2>
  4964. {{ this.updateGroupUser.name }}
  4965. </h2>
  4966. <div style="color: rgb(171 171 171); margin-top: 10px">
  4967. 请选择要进入的分组
  4968. </div>
  4969. <el-radio-group v-model="checkChair">
  4970. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  4971. :key="index">{{ item.name }}</el-radio>
  4972. </el-radio-group>
  4973. </div>
  4974. <span slot="footer" class="dialog-footer">
  4975. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  4976. <el-button type="primary" @click="updateChair">确定</el-button>
  4977. </span>
  4978. </el-dialog>
  4979. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  4980. :before-close="handleClose" class="dialog_diy">
  4981. <div>
  4982. <h2>
  4983. {{ this.deleteGroupArray.name }}
  4984. </h2>
  4985. <div style="color: rgb(171 171 171); margin-top: 10px">
  4986. 请选择要删除的组员
  4987. </div>
  4988. <el-checkbox-group v-model="checkDeleteGroup">
  4989. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  4990. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  4991. </el-checkbox-group>
  4992. </div>
  4993. <span slot="footer" class="dialog-footer">
  4994. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  4995. <el-button type="primary" @click="deleteChair">确定</el-button>
  4996. </span>
  4997. </el-dialog>
  4998. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  4999. :before-close="handleClose" class="dialog_change">
  5000. <div class="marginT">
  5001. <div class="plworkBox">
  5002. <div class="chapter_add" style="
  5003. display: flex;
  5004. width: 150px;
  5005. flex-direction: row;
  5006. flex-wrap: wrap;
  5007. justify-content: flex-start;
  5008. margin: 0 10px 10px 0;
  5009. " v-for="(item, index) in plworkFile" :key="index">
  5010. <div class="upCover2">
  5011. <img :src="item.url" alt v-if="item.fileType == 1" />
  5012. <img :src="word" alt v-else-if="item.fileType == 4" />
  5013. <img :src="video" alt v-else />
  5014. <!-- <span class="picName">{{ item.name }}</span> -->
  5015. <!-- <el-input
  5016. v-model="item.username"
  5017. placeholder="请输入学生名字"
  5018. style="margin-top: 10px"
  5019. ></el-input> -->
  5020. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  5021. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  5022. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  5023. </el-option>
  5024. </el-select>
  5025. <div class="deleteWord" @click="clean2(index)">
  5026. <img src="../../assets/icon/deleteWorks.png" alt />
  5027. </div>
  5028. </div>
  5029. </div>
  5030. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  5031. <div class="up_photo2">
  5032. <img src="../../assets/icon/plwork.png" alt />
  5033. <span>点击上传文件</span>
  5034. </div>
  5035. <input type="file"
  5036. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5037. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  5038. </div>
  5039. </div>
  5040. </div>
  5041. <!-- capture="camera" -->
  5042. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  5043. 提交
  5044. </div>
  5045. </el-dialog>
  5046. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  5047. class="dialog_diy" center>
  5048. <div style="text-align: center">
  5049. <span class="tian1">名称</span>
  5050. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  5051. placeholder="请选择学生">
  5052. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  5053. :value="item.userid">
  5054. </el-option>
  5055. </el-select>
  5056. <!-- <el-input
  5057. v-model="worksSName"
  5058. style="width: 250px; margin: 15px 0px"
  5059. ></el-input> -->
  5060. </div>
  5061. <span slot="footer" class="dialog-footer">
  5062. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  5063. <el-button type="primary" @click="updateName">确 定</el-button>
  5064. </span>
  5065. </el-dialog>
  5066. <interVideo
  5067. :dialogVisibleVideo.sync="dialogVisibleVideo"
  5068. :videoJson="videoJson"
  5069. :userid="userid"
  5070. :id="id"
  5071. :courseType="courseType"
  5072. :taskCount="taskCount"
  5073. :toolindex="toolindex"
  5074. ></interVideo>
  5075. </div>
  5076. </template>
  5077. <script>
  5078. import "../../common/aws-sdk-2.235.1.min.js";
  5079. // import pdf from "../components/pdf3";
  5080. import pdf from "../components/vpdf";
  5081. import AskStatic from "../components/askStatic";
  5082. import AskStatic2 from "../components/askStatic2";
  5083. import AnswerData2 from "../components/answerData2";
  5084. import AnswerData from "../components/answerData";
  5085. import EditorBar from "../tools/wangEnduit.vue";
  5086. import Table from "../tools/table.vue";
  5087. import Time from "../tools/time.vue";
  5088. import Mind from "../tools/jsmind.vue";
  5089. import Sunburst from "../tools/sunburst";
  5090. import SeeBoard from "../tools/seeBoard";
  5091. import * as imageConversion from "image-conversion";
  5092. import Audio from "../components/audio.vue";
  5093. import ImgDraw from "../tools/imgDraw/imgDraw";
  5094. import { Empty } from "element-ui";
  5095. import RecordRTC from "recordrtc";
  5096. import interVideo from "../interVideo/index.vue"
  5097. export default {
  5098. components: {
  5099. EditorBar,
  5100. Time,
  5101. pdf,
  5102. AskStatic,
  5103. AskStatic2,
  5104. Mind,
  5105. Sunburst,
  5106. SeeBoard,
  5107. AnswerData2,
  5108. AnswerData,
  5109. Audio,
  5110. ImgDraw,
  5111. Table,
  5112. interVideo
  5113. },
  5114. data() {
  5115. return {
  5116. bg: null,
  5117. drawShow: false,
  5118. dialogVisible: false,
  5119. dialogVisiblePl: false,
  5120. commentDialogVisible: false,
  5121. videoVisible: false,
  5122. isStar: false,
  5123. studentEvalDialogVisible: false,
  5124. studentEvalDialogVisibleTeacher: false,
  5125. dialogVisibleSelect: false,
  5126. dialogVisibleSelectTeacher: false,
  5127. dialogVisibleScore: false,
  5128. dialogVisibleSentence: false,
  5129. dialogVisibleSentenceTeacher: false,
  5130. dialogVisibleSentence1: false,
  5131. dialogVisibleWorks: false,
  5132. answerDialogVisibleTeacher: false,
  5133. dialogVisibleTable: false,
  5134. dialogVisibleTableTeacher: false,
  5135. dialogVisibleWord: false,
  5136. dialogVisibleWordTeacher: false,
  5137. dialogVisibleTable2: false,
  5138. dialogVisibleTable3: false,
  5139. dialogVisibleGroupWork: false,
  5140. dialogVisibleUpdateGroup: false,
  5141. dialogVisibleDeleteGroup: false,
  5142. dialogVisibleSname: false,
  5143. dialogVisibleVideo:false,
  5144. worksSName: "",
  5145. classJuri: [],
  5146. uploadStudentJuri: [],
  5147. uploadCid: "",
  5148. snameWid: "",
  5149. sStudent: {},
  5150. sTool: "",
  5151. bzText: "",
  5152. commentDetail: [],
  5153. selectAnswer: [],
  5154. videoDetail: {},
  5155. selectJson: {},
  5156. eScore: { eBzText: "", eStar: [] },
  5157. id: this.$route.query.courseId,
  5158. userid: this.$route.query.userid,
  5159. classId: this.$route.query.cid,
  5160. // courseTypeLine: this.$route.query.type,
  5161. oid: this.$route.query.oid,
  5162. org: this.$route.query.org,
  5163. tType: this.$route.query.tType,
  5164. courseType: this.$route.query.type,
  5165. screenType: this.$route.query.screenType,
  5166. tcid2: this.$route.query.tcid,
  5167. tcid: "",
  5168. pptImgUrl: "",
  5169. pptImgUrl1: "",
  5170. commentText: "",
  5171. full: false,
  5172. sIsOpen: false,
  5173. IsLookOpen: false,
  5174. IsFollow: false,
  5175. pzDialog: false,
  5176. contentDialog: false,
  5177. mlDialog: false,
  5178. type: 1,
  5179. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5180. sentenceList1: [],
  5181. tableJson: [],
  5182. wordJson: [],
  5183. vedio: [],
  5184. text: [],
  5185. textList: [],
  5186. line: [],
  5187. lineList: [],
  5188. chapTools: [],
  5189. chapToolList: [],
  5190. file: [],
  5191. fileC: [],
  5192. vedioTime: [],
  5193. upToolImg: "",
  5194. preTime: 0,
  5195. rateList: {
  5196. ca: 0,
  5197. },
  5198. rateParams: [],
  5199. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  5200. studyJuri: [
  5201. {
  5202. content: "",
  5203. cover: [],
  5204. upVedio: [],
  5205. upFile: [],
  5206. },
  5207. ],
  5208. plworkFile: [],
  5209. mr: require("../../assets/vedioPic.png"),
  5210. word: require("../../assets/icon/isWord.png"),
  5211. word2: require("../../assets/icon/word2.png"),
  5212. video: require("../../assets/icon/isVideo.png"),
  5213. noLikes: require("../../assets/icon/comment/noLikes.png"),
  5214. likes: require("../../assets/icon/comment/likes.png"),
  5215. scoreImg: require("../../assets/score.png"),
  5216. courseDetail: {},
  5217. isSelect: false,
  5218. chapInfo: [],
  5219. chapInfoList: [],
  5220. taskCount: 0,
  5221. imgList: [],
  5222. noImgList: [],
  5223. pzList: [],
  5224. PlTextList: [
  5225. "Excellent!",
  5226. "nice!",
  5227. "很有创意!",
  5228. "还不错哦~",
  5229. "继续努力哦~",
  5230. ],
  5231. isClickNav: "",
  5232. navId: "",
  5233. playerOptions: {
  5234. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5235. autoplay: false, //如果true,浏览器准备好时开始回放。
  5236. muted: false, // 默认情况下将会消除任何音频。
  5237. loop: false, // 导致视频一结束就重新开始。
  5238. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5239. language: "zh-CN",
  5240. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5241. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5242. sources: [
  5243. {
  5244. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5245. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5246. },
  5247. ],
  5248. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5249. // poster: dataRes.imgUrl, //你的封面地址
  5250. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5251. controlBar: {
  5252. timeDivider: true, //当前时间和持续时间的分隔符
  5253. durationDisplay: true, //显示持续时间
  5254. remainingTimeDisplay: false, //是否显示剩余时间功能
  5255. fullscreenToggle: true, //全屏按钮
  5256. },
  5257. },
  5258. playerOptions1: {
  5259. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5260. autoplay: false, //如果true,浏览器准备好时开始回放。
  5261. muted: false, // 默认情况下将会消除任何音频。
  5262. loop: false, // 导致视频一结束就重新开始。
  5263. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5264. language: "zh-CN",
  5265. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5266. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5267. sources: [
  5268. {
  5269. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5270. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5271. },
  5272. ],
  5273. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5274. // poster: dataRes.imgUrl, //你的封面地址
  5275. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5276. controlBar: {
  5277. timeDivider: true, //当前时间和持续时间的分隔符
  5278. durationDisplay: true, //显示持续时间
  5279. remainingTimeDisplay: false, //是否显示剩余时间功能
  5280. fullscreenToggle: true, //全屏按钮
  5281. },
  5282. },
  5283. playerO: {},
  5284. noneBtnImg: false,
  5285. proVisible: false,
  5286. proVisible2: false,
  5287. progress: 0,
  5288. isFinishSize: 0,
  5289. isAllSize: 0,
  5290. questionAnswer: "",
  5291. answerQ: "", //问答标题
  5292. rateJson: [],
  5293. wbCount: 0,
  5294. wordCount: 0,
  5295. mindCount: 0,
  5296. askCount: 0,
  5297. noteCount: 0,
  5298. mindNetWorkCount: 0,
  5299. libraryCount: 0,
  5300. workCount: 0,
  5301. timeCount: 0,
  5302. answerCount: 0,
  5303. trainCount: 0,
  5304. evalCount: 0,
  5305. dialogImageUrl: "",
  5306. pictureDialog: false,
  5307. toolTypeList: [],
  5308. dialogVisible1: false,
  5309. dialogVisible2: false,
  5310. dialogVisible3: false,
  5311. dialogVisible6: false,
  5312. dialogVisible4: false,
  5313. isNoHomeWork: false,
  5314. dialogVisible5: false,
  5315. dialogVisible5Teacher: false,
  5316. dialogVisibleChoice: false,
  5317. dialogVisibleChoiceTeacher: false,
  5318. answerDialogVisible: false,
  5319. juriVisible: false,
  5320. timeDialogVisible: false,
  5321. radio: [],
  5322. isAsk: false,
  5323. askJson: {
  5324. askCount: 1,
  5325. askTitle: "",
  5326. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5327. },
  5328. testJson: {},
  5329. checkJson: [],
  5330. askList: [],
  5331. answerList: [],
  5332. navList: [],
  5333. addPzDialog: false,
  5334. pzConText: "",
  5335. worksStudent: [],
  5336. worksStudent2: [],
  5337. worksTeacher: [],
  5338. isCloseList: [],
  5339. workStudent: [],
  5340. groupStudent: [],
  5341. groupStudentUid: [],
  5342. noWorksS: [],
  5343. isWorksS: [],
  5344. noWorksStudent: [],
  5345. toolindex: 0,
  5346. groupIndex: 0,
  5347. workTypeB: false,
  5348. workTypeC: false,
  5349. isAnswer: false,
  5350. timer: null,
  5351. opertimer: null,
  5352. showType: 0,
  5353. fileType: 0,
  5354. showPDF: false,
  5355. noteName: "",
  5356. evaJuri: [],
  5357. evalua: "",
  5358. eTitle: "",
  5359. eName: "",
  5360. eJson: {},
  5361. fid: "", //一级
  5362. sid: "", //二级
  5363. tid: "", //二级
  5364. typeMode: 1,
  5365. eJSONNum: 0,
  5366. Etype: 1,
  5367. data: {
  5368. meta: {
  5369. name: "example",
  5370. author: "dd@163.com",
  5371. version: "0.2",
  5372. },
  5373. format: "node_array",
  5374. data: [{ id: "root", isroot: true, topic: "" }],
  5375. },
  5376. fullDialogVisible: false,
  5377. fulltype: "",
  5378. fullUrl: "",
  5379. commentIndexJson: {},
  5380. Stbodywidth: 0,
  5381. pzType: 1,
  5382. wScore: 0,
  5383. scoreDetail: "",
  5384. videoStart: false,
  5385. recorder: null,
  5386. groupJson: {},
  5387. groupJson2: {},
  5388. dialogVisibleGroup: false,
  5389. dialogVisibleGroup2: false,
  5390. updateGroupArray: [],
  5391. updateGroupUser: {},
  5392. deleteGroupUser: [],
  5393. deleteGroupArray: {},
  5394. checkChair: "",
  5395. checkDeleteGroup: [],
  5396. inviteCode: "",
  5397. courseGroupStudent: [],
  5398. courseGroupStudentUid: [],
  5399. courseGroup: {},
  5400. isGroup: false,
  5401. toolIndex: null,
  5402. tool: {},
  5403. isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40],//, 40
  5404. videoJson:{},
  5405. };
  5406. },
  5407. methods: {
  5408. jump() {
  5409. window.parent.postMessage({ tools: "43" }, "*");
  5410. },
  5411. previewImg(url) {
  5412. this.$hevueImgPreview(url);
  5413. },
  5414. change(val) {
  5415. console.log(val);
  5416. },
  5417. goTo(path) {
  5418. this.$router.push(path);
  5419. },
  5420. handlePictureCardPreview(url) {
  5421. this.dialogImageUrl = url;
  5422. this.pictureDialog = true;
  5423. },
  5424. clean(type) {
  5425. if (type == 1) {
  5426. this.studyJuri[0].cover.splice(0, 1);
  5427. } else if (type == 2) {
  5428. this.studyJuri[0].upVedio.splice(0, 1);
  5429. } else {
  5430. this.studyJuri[0].upFile.splice(0, 1);
  5431. }
  5432. },
  5433. clean2(index) {
  5434. this.plworkFile.splice(index, 1);
  5435. },
  5436. handleClose(done) {
  5437. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  5438. this.videoDetail.sources[0].src = "";
  5439. }
  5440. this.commentIndexJson = {};
  5441. done();
  5442. },
  5443. fullTools() {
  5444. this.full = !this.full;
  5445. },
  5446. imgChange(file, fileList, type) {
  5447. if (type == 1) {
  5448. var _tmp = this.studyJuri[0].cover;
  5449. } else if (type == 2) {
  5450. var _tmp = this.studyJuri[0].upVedio;
  5451. } else {
  5452. var _tmp = this.studyJuri[0].upFile;
  5453. }
  5454. this.noneBtnImg = _tmp.length >= 1;
  5455. },
  5456. setContent(bool) {
  5457. this.contentDialog = bool
  5458. if (bool && this.mlDialog) {
  5459. document.querySelector('.workd_media').style.height = "650px"
  5460. } else {
  5461. document.querySelector('.workd_media').style.height = "auto"
  5462. }
  5463. },
  5464. setContent2(bool) {
  5465. this.mlDialog = bool
  5466. if (bool && this.contentDialog) {
  5467. document.querySelector('.workd_media').style.height = "650px"
  5468. } else {
  5469. document.querySelector('.workd_media').style.height = "auto"
  5470. }
  5471. },
  5472. addImg(e) {
  5473. var el = e.currentTarget;
  5474. // this.$message.success('触发上传')
  5475. el.getElementsByTagName("input")[0].click();
  5476. e.target.value = "";
  5477. },
  5478. addSelectAnswer() {
  5479. let params = [
  5480. {
  5481. uid: this.userid,
  5482. cid: this.id,
  5483. stage: this.courseType,
  5484. task: this.taskCount,
  5485. tool: this.toolindex,
  5486. content: this.selectAnswer.answer,
  5487. type: 7,
  5488. },
  5489. ];
  5490. this.ajax
  5491. .post(this.$store.state.api + "addCourseWorks", params)
  5492. .then((res) => {
  5493. this.$message({
  5494. message: "提交成功",
  5495. type: "success",
  5496. });
  5497. this.dialogVisibleSelect = false;
  5498. // this.selectAnswer = {};
  5499. this.selectSWorks();
  5500. this.selectStudent();
  5501. })
  5502. .catch((err) => {
  5503. this.$message.error("提交失败");
  5504. console.error(err);
  5505. });
  5506. },
  5507. addSelectAnswerTeacher() {
  5508. let params = [
  5509. {
  5510. uid: this.sStudent.userid,
  5511. cid: this.id,
  5512. stage: this.courseType,
  5513. task: this.taskCount,
  5514. tool: this.toolindex,
  5515. content: this.selectAnswer.answer,
  5516. type: 7,
  5517. },
  5518. ];
  5519. this.ajax
  5520. .post(this.$store.state.api + "addCourseWorks", params)
  5521. .then((res) => {
  5522. this.$message({
  5523. message: "提交成功",
  5524. type: "success",
  5525. });
  5526. this.dialogVisibleSelectTeacher = false;
  5527. // this.selectAnswer = {};
  5528. this.selectSWorks();
  5529. this.selectStudent();
  5530. })
  5531. .catch((err) => {
  5532. this.$message.error("提交失败");
  5533. console.error(err);
  5534. });
  5535. },
  5536. addSenWorks() {
  5537. for (var i = 0; i < this.sentenceList.length; i++) {
  5538. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5539. if (
  5540. this.sentenceList[i].chooseSenList[j] == undefined ||
  5541. this.sentenceList[i].chooseSenList[j] == ""
  5542. ) {
  5543. this.$message.error("请将答案填写完整!");
  5544. return;
  5545. }
  5546. }
  5547. }
  5548. let params = [
  5549. {
  5550. uid: this.userid,
  5551. cid: this.id,
  5552. stage: this.courseType,
  5553. task: this.taskCount,
  5554. tool: this.toolindex,
  5555. content: JSON.stringify(this.sentenceList),
  5556. type: 9,
  5557. },
  5558. ];
  5559. this.ajax
  5560. .post(this.$store.state.api + "addCourseWorks", params)
  5561. .then((res) => {
  5562. this.$message({
  5563. message: "提交成功",
  5564. type: "success",
  5565. });
  5566. this.dialogVisibleSentence = false;
  5567. // this.selectAnswer = {};
  5568. this.selectSWorks();
  5569. this.selectStudent();
  5570. })
  5571. .catch((err) => {
  5572. this.$message.error("提交失败");
  5573. console.error(err);
  5574. });
  5575. },
  5576. addSenWorksTeacher() {
  5577. for (var i = 0; i < this.sentenceList.length; i++) {
  5578. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5579. if (
  5580. this.sentenceList[i].chooseSenList[j] == undefined ||
  5581. this.sentenceList[i].chooseSenList[j] == ""
  5582. ) {
  5583. this.$message.error("请将答案填写完整!");
  5584. return;
  5585. }
  5586. }
  5587. }
  5588. let params = [
  5589. {
  5590. uid: this.sStudent.userid,
  5591. cid: this.id,
  5592. stage: this.courseType,
  5593. task: this.taskCount,
  5594. tool: this.toolindex,
  5595. content: JSON.stringify(this.sentenceList),
  5596. type: 9,
  5597. },
  5598. ];
  5599. this.ajax
  5600. .post(this.$store.state.api + "addCourseWorks", params)
  5601. .then((res) => {
  5602. this.$message({
  5603. message: "提交成功",
  5604. type: "success",
  5605. });
  5606. this.dialogVisibleSentenceTeacher = false;
  5607. // this.selectAnswer = {};
  5608. this.selectSWorks();
  5609. this.selectStudent();
  5610. })
  5611. .catch((err) => {
  5612. this.$message.error("提交失败");
  5613. console.error(err);
  5614. });
  5615. },
  5616. addTableWorks() {
  5617. let params = [
  5618. {
  5619. uid: this.userid,
  5620. cid: this.id,
  5621. stage: this.courseType,
  5622. task: this.taskCount,
  5623. tool: this.toolindex,
  5624. content: JSON.stringify(this.tableJson),
  5625. type: 10,
  5626. },
  5627. ];
  5628. this.ajax
  5629. .post(this.$store.state.api + "addCourseWorks", params)
  5630. .then((res) => {
  5631. this.$message({
  5632. message: "提交成功",
  5633. type: "success",
  5634. });
  5635. this.dialogVisibleTable = false;
  5636. // this.selectAnswer = {};
  5637. this.selectSWorks();
  5638. this.selectStudent();
  5639. })
  5640. .catch((err) => {
  5641. this.$message.error("提交失败");
  5642. console.error(err);
  5643. });
  5644. },
  5645. addTableWorksTeacher() {
  5646. let params = [
  5647. {
  5648. uid: this.sStudent.userid,
  5649. cid: this.id,
  5650. stage: this.courseType,
  5651. task: this.taskCount,
  5652. tool: this.toolindex,
  5653. content: JSON.stringify(this.tableJson),
  5654. type: 10,
  5655. },
  5656. ];
  5657. this.ajax
  5658. .post(this.$store.state.api + "addCourseWorks", params)
  5659. .then((res) => {
  5660. this.$message({
  5661. message: "提交成功",
  5662. type: "success",
  5663. });
  5664. this.dialogVisibleTableTeacher = false;
  5665. // this.selectAnswer = {};
  5666. this.selectSWorks();
  5667. this.selectStudent();
  5668. })
  5669. .catch((err) => {
  5670. this.$message.error("提交失败");
  5671. console.error(err);
  5672. });
  5673. },
  5674. addWordWorks() {
  5675. let params = [{
  5676. uid: this.userid,
  5677. cid: this.id,
  5678. stage: this.courseType,
  5679. task: this.taskCount,
  5680. tool: this.toolindex,
  5681. content: JSON.stringify(this.wordJson),
  5682. type: 13,
  5683. atool: 52,
  5684. }];
  5685. console.log(params);
  5686. this.ajax
  5687. .post(this.$store.state.api + "addCourseWorks3-2", params)
  5688. .then((res) => {
  5689. this.$message({
  5690. message: "提交成功",
  5691. type: "success",
  5692. });
  5693. this.dialogVisibleWord = false;
  5694. // this.selectAnswer = {};
  5695. this.selectSWorks();
  5696. this.selectStudent();
  5697. })
  5698. .catch((err) => {
  5699. this.$message.error("提交失败");
  5700. console.error(err);
  5701. });
  5702. },
  5703. addWordWorksTeacher() {
  5704. let params = [{
  5705. uid: this.sStudent.userid,
  5706. cid: this.id,
  5707. stage: this.courseType,
  5708. task: this.taskCount,
  5709. tool: this.toolindex,
  5710. content: JSON.stringify(this.wordJson),
  5711. type: 13,
  5712. atool: 52,
  5713. }];
  5714. console.log(params);
  5715. this.ajax
  5716. .post(this.$store.state.api + "addCourseWorks3-2", params)
  5717. .then((res) => {
  5718. this.$message({
  5719. message: "提交成功",
  5720. type: "success",
  5721. });
  5722. this.dialogVisibleWordTeacher = false;
  5723. // this.selectAnswer = {};
  5724. this.selectSWorks();
  5725. this.selectStudent();
  5726. })
  5727. .catch((err) => {
  5728. this.$message.error("提交失败");
  5729. console.error(err);
  5730. });
  5731. },
  5732. addCourseWorks(i) {
  5733. var typesql;
  5734. if (this.fileType === 0) {
  5735. typesql = 1;
  5736. } else if (this.fileType === 1) {
  5737. typesql = 4;
  5738. } else if (this.fileType === 2) {
  5739. typesql = 5;
  5740. } else if (this.fileType === 3) {
  5741. typesql = 12;
  5742. }
  5743. if (!this.studyJuri[0].cover[0].url) {
  5744. this.$message.error("请上传文件");
  5745. return;
  5746. }
  5747. let params = [
  5748. {
  5749. uid: this.userid,
  5750. cid: this.id,
  5751. stage: this.courseType,
  5752. task: i,
  5753. tool: this.toolindex,
  5754. content: this.studyJuri[0].cover[0].url,
  5755. type: typesql,
  5756. },
  5757. ];
  5758. this.ajax
  5759. .post(this.$store.state.api + "addCourseWorksR", params)
  5760. .then((res) => {
  5761. this.$message({
  5762. message: "提交成功",
  5763. type: "success",
  5764. });
  5765. this.studyJuri[0].cover = [];
  5766. this.dialogVisible = false;
  5767. this.getCourseDetail();
  5768. })
  5769. .catch((err) => {
  5770. this.$message.error("提交失败");
  5771. console.error(err);
  5772. });
  5773. },
  5774. addCourseWorksPl(i) {
  5775. let _files = this.plworkFile;
  5776. var c = 1;
  5777. for (var k = 0; k < _files.length; k++) {
  5778. if (!_files[k].username) {
  5779. c = 2;
  5780. }
  5781. }
  5782. if (c == 2) {
  5783. this.$message.error("请填写学生姓名");
  5784. return;
  5785. }
  5786. let params = [
  5787. {
  5788. ateacher: this.userid,
  5789. cid: this.id,
  5790. stage: this.courseType,
  5791. task: i,
  5792. tool: this.toolindex,
  5793. content: JSON.stringify(_files),
  5794. },
  5795. ];
  5796. this.ajax
  5797. .post(this.$store.state.api + "addCourseWorksPl", params)
  5798. .then((res) => {
  5799. this.$message({
  5800. message: "提交成功",
  5801. type: "success",
  5802. });
  5803. this.plworkFile = [];
  5804. this.dialogVisiblePl = false;
  5805. this.getCourseDetail();
  5806. })
  5807. .catch((err) => {
  5808. this.$message.error("提交失败");
  5809. console.error(err);
  5810. });
  5811. },
  5812. addCourseWorks2(i) {
  5813. var typesql;
  5814. if (this.fileType === 0) {
  5815. typesql = 0;
  5816. } else if (this.fileType === 1) {
  5817. typesql = 1;
  5818. } else if (this.fileType === 2) {
  5819. typesql = 3;
  5820. } else if (this.fileType === 3) {
  5821. typesql = 12;
  5822. }
  5823. if (!this.studyJuri[0].cover[0].url) {
  5824. this.$message.error("请上传文件");
  5825. return;
  5826. }
  5827. let params = [
  5828. {
  5829. uid: this.userid,
  5830. cid: this.id,
  5831. stage: this.courseType,
  5832. task: i,
  5833. tool: this.toolindex,
  5834. content: JSON.stringify({
  5835. type: typesql,
  5836. groupIndex: this.groupIndex,
  5837. url: this.studyJuri[0].cover[0].url,
  5838. }),
  5839. type: 11,
  5840. atool: 49,
  5841. text: "",
  5842. },
  5843. ];
  5844. this.ajax
  5845. .post(this.$store.state.api + "addCourseWorks5", params)
  5846. .then((res) => {
  5847. this.$message({
  5848. message: "提交成功",
  5849. type: "success",
  5850. });
  5851. this.studyJuri[0].cover = [];
  5852. this.dialogVisibleGroupWork = false;
  5853. this.getCourseDetail();
  5854. })
  5855. .catch((err) => {
  5856. this.$message.error("提交失败");
  5857. console.error(err);
  5858. });
  5859. },
  5860. addCourseWorksGong(i, data, tool) {
  5861. let params = [
  5862. {
  5863. uid: this.userid,
  5864. cid: this.id,
  5865. stage: this.courseType,
  5866. task: this.taskCount,
  5867. tool: i,
  5868. content: data,
  5869. type: 12,
  5870. atool: tool,
  5871. text: "",
  5872. },
  5873. ];
  5874. this.ajax
  5875. .post(this.$store.state.api + "addCourseWorks5", params)
  5876. .then((res) => {
  5877. this.$message({
  5878. message: "提交成功",
  5879. type: "success",
  5880. });
  5881. this.studyJuri[0].cover = [];
  5882. this.selectSWorks();
  5883. this.selectStudent();
  5884. })
  5885. .catch((err) => {
  5886. this.$message.error("提交失败");
  5887. console.error(err);
  5888. });
  5889. },
  5890. addCourseWorksGongTeacher(i, data, tool) {
  5891. let params = [
  5892. {
  5893. uid: this.sStudent.userid,
  5894. cid: this.id,
  5895. stage: this.courseType,
  5896. task: this.taskCount,
  5897. tool: i,
  5898. content: data,
  5899. type: 12,
  5900. atool: tool,
  5901. text: "",
  5902. },
  5903. ];
  5904. this.ajax
  5905. .post(this.$store.state.api + "addCourseWorks5", params)
  5906. .then((res) => {
  5907. this.$message({
  5908. message: "提交成功",
  5909. type: "success",
  5910. });
  5911. this.studyJuri[0].cover = [];
  5912. this.dialogVisibleWorks = false;
  5913. this.selectSWorks();
  5914. this.selectStudent();
  5915. })
  5916. .catch((err) => {
  5917. this.$message.error("提交失败");
  5918. console.error(err);
  5919. });
  5920. },
  5921. addCourseWorksGongPl(i, data, tool, type) {
  5922. let params = [
  5923. {
  5924. uid: this.sStudent.userid,
  5925. cid: this.id,
  5926. stage: this.courseType,
  5927. task: this.taskCount,
  5928. tool: i,
  5929. content: data,
  5930. type: type,
  5931. atool: tool,
  5932. text: "",
  5933. },
  5934. ];
  5935. this.ajax
  5936. .post(this.$store.state.api + "addCourseWorks5", params)
  5937. .then((res) => {
  5938. this.$message({
  5939. message: "提交成功",
  5940. type: "success",
  5941. });
  5942. this.studyJuri[0].cover = [];
  5943. this.dialogVisibleWorks = false;
  5944. this.selectSWorks();
  5945. this.selectStudent();
  5946. })
  5947. .catch((err) => {
  5948. this.$message.error("提交失败");
  5949. console.error(err);
  5950. });
  5951. },
  5952. addCourseWorksTeacher(i) {
  5953. var typesql;
  5954. if (this.sTool == 32 || this.sTool == 57) {
  5955. this.addCourseWorksGongTeacher(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool);
  5956. return;
  5957. }
  5958. if (this.fileType === 0) {
  5959. typesql = 1;
  5960. } else if (this.fileType === 1) {
  5961. typesql = 4;
  5962. } else if (this.fileType === 2) {
  5963. typesql = 5;
  5964. } else if (this.fileType === 3) {
  5965. typesql = 12;
  5966. }
  5967. if (this.sTool == 50) {
  5968. this.addCourseWorksGongPl(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool, typesql);
  5969. return;
  5970. }
  5971. if (!this.studyJuri[0].cover[0].url) {
  5972. this.$message.error("请上传文件");
  5973. return;
  5974. }
  5975. let params = [
  5976. {
  5977. uid: this.sStudent.userid,
  5978. cid: this.id,
  5979. stage: this.courseType,
  5980. task: i,
  5981. tool: this.toolindex,
  5982. content: this.studyJuri[0].cover[0].url,
  5983. type: typesql,
  5984. ateacher: this.userid,
  5985. },
  5986. ];
  5987. this.ajax
  5988. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  5989. .then((res) => {
  5990. this.$message({
  5991. message: "提交成功",
  5992. type: "success",
  5993. });
  5994. this.studyJuri[0].cover = [];
  5995. this.dialogVisibleWorks = false;
  5996. this.getCourseDetail();
  5997. })
  5998. .catch((err) => {
  5999. this.$message.error("提交失败");
  6000. console.error(err);
  6001. });
  6002. },
  6003. selectUploadStudent() {
  6004. let params = {
  6005. cid: this.tcid ? this.tcid : this.courseDetail.juri,
  6006. oid: this.oid,
  6007. cn: '',
  6008. };
  6009. this.ajax
  6010. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  6011. .then((res) => {
  6012. var studentK = [];
  6013. if (this.isWorksS[this.toolindex].length > 0) {
  6014. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  6015. studentK.push(this.isWorksS[this.toolindex][z].uid);
  6016. }
  6017. studentK = studentK.join(",");
  6018. }
  6019. this.uploadStudentJuri = res.data[0].filter((el)=>{
  6020. return studentK.indexOf(el.userid) == -1
  6021. });
  6022. })
  6023. .catch((err) => {
  6024. console.error(err);
  6025. });
  6026. },
  6027. arrayToArray(arrayo, arrayt) {
  6028. let array1 = arrayo;
  6029. let array2 = arrayt;
  6030. let commonElements = [];
  6031. for (let i = 0; i < array1.length; i++) {
  6032. for (let j = 0; j < array2.length; j++) {
  6033. if (array1[i] === array2[j]) {
  6034. commonElements.push(array1[i]);
  6035. }
  6036. }
  6037. }
  6038. return commonElements
  6039. },
  6040. selectWorksStudent() {
  6041. let params = {
  6042. oid: this.oid,
  6043. cid: this.courseDetail.juri,
  6044. };
  6045. this.ajax
  6046. .get(this.$store.state.api + "selectWorksStudent", params)
  6047. .then((res) => {
  6048. var a = res.data[0];
  6049. for (var i = 0; i < this.isWorksS.length; i++) {
  6050. this.noWorksS[i] = [];
  6051. var studentK = [];
  6052. if (this.isWorksS[i].length > 0) {
  6053. for (var z = 0; z < this.isWorksS[i].length; z++) {
  6054. studentK.push(this.isWorksS[i][z].uid);
  6055. }
  6056. studentK = studentK.join(",");
  6057. for (var j = 0; j < a.length; j++) {
  6058. // if (studentK.indexOf(a[j].userid) == -1) {
  6059. if (this.tcid) {
  6060. // a[j].classid.indexOf(this.tcid) != -1
  6061. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  6062. this.noWorksS[i].push({
  6063. student: a[j].name,
  6064. userid: a[j].userid,
  6065. type:studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  6066. });
  6067. }
  6068. } else {
  6069. this.noWorksS[i].push({
  6070. student: a[j].name,
  6071. userid: a[j].userid,
  6072. type:studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  6073. });
  6074. }
  6075. // }
  6076. }
  6077. } else {
  6078. for (var k = 0; k < a.length; k++) {
  6079. if (this.tcid) {
  6080. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  6081. this.noWorksS[i].push({
  6082. student: a[k].name,
  6083. userid: a[k].userid,
  6084. type:'1'
  6085. });
  6086. }
  6087. } else {
  6088. this.noWorksS[i].push({
  6089. student: a[k].name,
  6090. userid: a[k].userid,
  6091. type:'1'
  6092. });
  6093. }
  6094. }
  6095. }
  6096. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  6097. // let jscoreA = parseInt(a.type);
  6098. // let jscoreB = parseInt(b.type);
  6099. // return jscoreB - jscoreA;
  6100. // });
  6101. }
  6102. this.$forceUpdate();
  6103. if (
  6104. Object.keys(this.commentDetail).length &&
  6105. Object.keys(this.commentIndexJson).length &&
  6106. !this.dialogVisibleScore
  6107. ) {
  6108. let a = 1;
  6109. let c = this.commentIndexJson;
  6110. console.log(c);
  6111. if (
  6112. this.commentIndexJson.gindex ||
  6113. this.commentIndexJson.gindex === 0
  6114. ) {
  6115. for (
  6116. var i = 0;
  6117. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6118. i++
  6119. ) {
  6120. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6121. groupA: for (var k = 0; k < _el.length; k++) {
  6122. let el = _el[k];
  6123. if (el.wid == this.commentDetail.wid) {
  6124. a = 2;
  6125. this.commentOther(
  6126. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  6127. this.commentIndexJson.toolIndex,
  6128. k,
  6129. this.commentIndexJson.gindex
  6130. );
  6131. break groupA;
  6132. }
  6133. }
  6134. }
  6135. if (a === 1) {
  6136. this.commentDetail = [];
  6137. this.commentIndexJson = {};
  6138. this.commentDialogVisible = false;
  6139. this.$message("此作业已被删除");
  6140. }
  6141. } else {
  6142. if (this.isGroup && this.commentIndexJson.gid) {
  6143. groupA: for (
  6144. var i = 0;
  6145. i < this.courseGroup.group.length;
  6146. i++
  6147. ) {
  6148. let _group = this.courseGroup.group[i]
  6149. if (_group.id == this.commentIndexJson.gid) {
  6150. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  6151. for (var k = 0; k < _el2.length; k++) {
  6152. let el2 = _el2[k];
  6153. if (el2.wid == this.commentDetail.wid) {
  6154. a = 2;
  6155. this.commentOther(
  6156. _el2[k],
  6157. this.commentIndexJson.toolIndex,
  6158. k,
  6159. null,
  6160. this.commentIndexJson.gid
  6161. );
  6162. break groupA;
  6163. }
  6164. }
  6165. }
  6166. }
  6167. }
  6168. if (a == 1) {
  6169. for (
  6170. var i = 0;
  6171. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6172. i++
  6173. ) {
  6174. let el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6175. if (el.wid == this.commentDetail.wid) {
  6176. a = 2;
  6177. this.commentOther(
  6178. this.worksStudent[this.commentIndexJson.toolIndex][i],
  6179. this.commentIndexJson.toolIndex,
  6180. i
  6181. );
  6182. break;
  6183. }
  6184. }
  6185. }
  6186. if (a === 1) {
  6187. this.commentDetail = [];
  6188. this.commentIndexJson = {};
  6189. this.commentDialogVisible = false;
  6190. this.$message("此作业已被删除");
  6191. }
  6192. }
  6193. }
  6194. })
  6195. .catch((err) => {
  6196. console.error(err);
  6197. });
  6198. },
  6199. selectStudent() {
  6200. },
  6201. openVideo(w) {
  6202. this.videoDetail = {};
  6203. this.playerOptions1.sources[0].src = w.works;
  6204. this.videoDetail = this.playerOptions1;
  6205. this.videoVisible = true;
  6206. },
  6207. isLikes(wid, uid, t, c, isLikes) {
  6208. if (isLikes == false) {
  6209. let params = [
  6210. {
  6211. wid: wid,
  6212. lid: uid,
  6213. t: t,
  6214. c: c,
  6215. },
  6216. ];
  6217. this.ajax
  6218. .post(this.$store.state.api + "insertComment", params)
  6219. .then((res) => {
  6220. this.$message({
  6221. message: "点赞成功",
  6222. type: "success",
  6223. });
  6224. this.selectSWorks();
  6225. this.selectStudent();
  6226. })
  6227. .catch((err) => {
  6228. this.$message.error("点赞失败");
  6229. console.error(err);
  6230. });
  6231. } else {
  6232. let params = {
  6233. wid: wid,
  6234. lid: uid,
  6235. type: t,
  6236. };
  6237. this.ajax
  6238. .get(this.$store.state.api + "deleteComment", params)
  6239. .then((res) => {
  6240. this.$message({
  6241. message: "取消点赞成功",
  6242. type: "success",
  6243. });
  6244. this.selectSWorks();
  6245. this.selectStudent();
  6246. })
  6247. .catch((err) => {
  6248. console.error(err);
  6249. });
  6250. }
  6251. },
  6252. deleteComment(wid) {
  6253. this.$confirm("确定删除此评论吗?", "提示", {
  6254. confirmButtonText: "确定",
  6255. cancelButtonText: "取消",
  6256. type: "warning",
  6257. })
  6258. .then(() => {
  6259. let params = {
  6260. id: wid,
  6261. };
  6262. this.ajax
  6263. .get(this.$store.state.api + "deleteComment2", params)
  6264. .then((res) => {
  6265. this.$message({
  6266. message: "删除评论成功",
  6267. type: "success",
  6268. });
  6269. this.selectSWorks();
  6270. this.selectStudent();
  6271. })
  6272. .catch((err) => {
  6273. console.error(err);
  6274. });
  6275. })
  6276. .catch(() => { });
  6277. },
  6278. commentOther(w, toolIndex, wIndex, gindex, gid) {
  6279. this.commentIndexJson = {
  6280. toolIndex: toolIndex,
  6281. wIndex: wIndex,
  6282. gindex: gindex,
  6283. gid: gid
  6284. };
  6285. this.commentDetail = [];
  6286. this.commentDialogVisible = true;
  6287. this.commentDetail = w;
  6288. if (w.works && w.type == 1) {
  6289. this.pptImgUrl = "";
  6290. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6291. if (
  6292. a.indexOf(
  6293. w.works
  6294. .split(".")
  6295. [w.works.split(".").length - 1].toLocaleUpperCase()
  6296. ) != -1
  6297. ) {
  6298. this.pptImgUrl =
  6299. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6300. this.showPDF = false;
  6301. } else if (
  6302. w.works
  6303. .split(".")
  6304. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6305. ) {
  6306. this.pptImgUrl = w.works;
  6307. this.showPDF = true;
  6308. }
  6309. } else if (w.works && w.type == 3) {
  6310. this.videoDetail = {};
  6311. this.playerOptions1.sources[0].src = w.works;
  6312. this.videoDetail = this.playerOptions1;
  6313. // this.videoVisible = true;
  6314. } else if (w.works && w.type == 4) {
  6315. this.eScore = JSON.parse(w.works);
  6316. this.rateJson =
  6317. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6318. this.taskCount
  6319. ].toolChoose[toolIndex].rateJson;
  6320. } else if (w.works && w.type == 10) {
  6321. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  6322. } else if (w.works && w.type == 13) {
  6323. this.wordJson =
  6324. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6325. this.taskCount
  6326. ].toolChoose[toolIndex].wordJson;
  6327. }
  6328. },
  6329. openScore(w) {
  6330. this.wScore = 0;
  6331. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  6332. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  6333. this.commentDetail = [];
  6334. this.dialogVisibleScore = true;
  6335. this.commentDetail = w;
  6336. if (w.works && w.type == 1) {
  6337. this.pptImgUrl = "";
  6338. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6339. if (
  6340. a.indexOf(
  6341. w.works
  6342. .split(".")
  6343. [w.works.split(".").length - 1].toLocaleUpperCase()
  6344. ) != -1
  6345. ) {
  6346. this.pptImgUrl =
  6347. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6348. this.showPDF = false;
  6349. } else if (
  6350. w.works
  6351. .split(".")
  6352. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6353. ) {
  6354. this.pptImgUrl = w.works;
  6355. this.showPDF = true;
  6356. }
  6357. } else if (w.works && w.type == 3) {
  6358. this.videoDetail = {};
  6359. this.playerOptions1.sources[0].src = w.works;
  6360. this.videoDetail = this.playerOptions1;
  6361. }
  6362. },
  6363. addComment(wid, uid, t) {
  6364. if (this.commentText == "") {
  6365. this.$message.error("请输入评论");
  6366. return;
  6367. }
  6368. let params2 = [
  6369. {
  6370. wid: wid,
  6371. lid: uid,
  6372. t: t,
  6373. },
  6374. ];
  6375. this.ajax
  6376. .post(this.$store.state.api + "getComment", params2)
  6377. .then((res) => {
  6378. if (res.data[0].length > 0) {
  6379. this.$message.error("一个作业只能评论一条");
  6380. } else {
  6381. let params = [
  6382. {
  6383. wid: wid,
  6384. lid: uid,
  6385. t: t,
  6386. c: this.commentText,
  6387. },
  6388. ];
  6389. this.ajax
  6390. .post(this.$store.state.api + "insertComment", params)
  6391. .then((res) => {
  6392. this.$message({
  6393. message: "评论成功",
  6394. type: "success",
  6395. });
  6396. this.commentText = "";
  6397. this.selectSWorks();
  6398. this.selectStudent();
  6399. })
  6400. .catch((err) => {
  6401. this.$message.error("评论失败");
  6402. console.error(err);
  6403. });
  6404. }
  6405. })
  6406. .catch((err) => {
  6407. // this.$message.error("评论失败");
  6408. console.error(err);
  6409. });
  6410. },
  6411. scoreWork(wid) {
  6412. if (this.wScore == 0) {
  6413. this.$message.error("请评分");
  6414. return;
  6415. }
  6416. let params = [
  6417. {
  6418. wid: wid,
  6419. score: JSON.stringify({
  6420. wScore: this.wScore,
  6421. detail: this.scoreDetail,
  6422. }),
  6423. },
  6424. ];
  6425. this.ajax
  6426. .post(this.$store.state.api + "scoreWork", params)
  6427. .then((res) => {
  6428. this.$message({
  6429. message: "评分成功",
  6430. type: "success",
  6431. });
  6432. this.wScore = 0;
  6433. this.scoreDetail = "";
  6434. this.dialogVisibleScore = false;
  6435. this.selectSWorks();
  6436. this.selectStudent();
  6437. })
  6438. .catch((err) => {
  6439. this.$message.error("评分失败");
  6440. console.error(err);
  6441. });
  6442. },
  6443. openXz(w, i) {
  6444. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6445. .taskJson[this.taskCount].toolChoose[i].selectJson
  6446. ? JSON.parse(
  6447. JSON.stringify(
  6448. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6449. this.taskCount
  6450. ].toolChoose[i].selectJson
  6451. )
  6452. )
  6453. : { url: "", select: [], answer: [] };
  6454. var a = w.works.split(",");
  6455. for (var k = 0; k < a.length; k++) {
  6456. a[k] = parseInt(a[k]);
  6457. }
  6458. this.selectAnswer = { answer: a, stu: w.sName };
  6459. this.isSelect = true;
  6460. this.dialogVisibleSelect = true;
  6461. },
  6462. openSen(w, i) {
  6463. this.sentenceList1 = JSON.parse(w.works);
  6464. this.sentenceList1.stuName = w.sName;
  6465. this.dialogVisibleSentence1 = true;
  6466. },
  6467. openPj(w, toolindex) {
  6468. this.isStar = true;
  6469. this.eScore = JSON.parse(w);
  6470. this.rateJson =
  6471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6472. this.taskCount
  6473. ].toolChoose[toolindex].rateJson;
  6474. this.studentEvalDialogVisible = true;
  6475. },
  6476. deleteWorks(id) {
  6477. this.$confirm("确定删除此作业吗?", "提示", {
  6478. confirmButtonText: "确定",
  6479. cancelButtonText: "取消",
  6480. type: "warning",
  6481. })
  6482. .then(() => {
  6483. let params = [
  6484. {
  6485. id: id,
  6486. },
  6487. ];
  6488. this.ajax
  6489. .post(this.$store.state.api + "deleteCourseWork", params)
  6490. .then((res) => {
  6491. this.$message({
  6492. message: "删除成功",
  6493. type: "success",
  6494. });
  6495. this.selectStudent();
  6496. this.selectSWorks();
  6497. this.selectSLook();
  6498. })
  6499. .catch((err) => {
  6500. this.$message.error("网络异常");
  6501. console.error(err);
  6502. });
  6503. })
  6504. .catch(() => { });
  6505. },
  6506. selectSWorks(gindex) {
  6507. //教师查看全部作业
  6508. let params = {
  6509. cid: this.id,
  6510. s: this.courseType,
  6511. t: this.taskCount,
  6512. };
  6513. this.ajax
  6514. .get(this.$store.state.api + "selectSWorks", params)
  6515. .then((res) => {
  6516. var a =
  6517. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6518. this.taskCount
  6519. ].toolChoose;
  6520. var b = res.data[0];
  6521. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6522. var y = [
  6523. "AVI",
  6524. "NAVI",
  6525. "MPEG",
  6526. "ASF",
  6527. "MOV",
  6528. "WMV",
  6529. "3GP",
  6530. "RM",
  6531. "RMVB",
  6532. "FLV",
  6533. "F4V",
  6534. "H.264",
  6535. "H.265",
  6536. "REAL VIDEO",
  6537. "MKV",
  6538. "WebM",
  6539. "HDDVD",
  6540. "MP4",
  6541. "MPG",
  6542. "M4V",
  6543. "MGV",
  6544. "OGV",
  6545. "QTM",
  6546. "STR",
  6547. "AMC",
  6548. "DVX",
  6549. "EVO",
  6550. "DAT",
  6551. "OGG",
  6552. "OGM",
  6553. ];
  6554. var d = res.data[1];
  6555. var e = res.data[2];
  6556. var f = res.data[3];
  6557. for (var i = 0; i < a.length; i++) {
  6558. this.worksStudent[i] = [];
  6559. this.worksTeacher[i] = [];
  6560. this.worksStudent2[i] = [];
  6561. if (
  6562. !this.isCloseList[i] ||
  6563. this.isCloseList[i].isClose == undefined
  6564. ) {
  6565. this.isCloseList[i] = { isClose: 0 };
  6566. }
  6567. this.groupStudent[i] = [];
  6568. this.groupStudentUid[i] = [];
  6569. this.isWorksS[i] = [];
  6570. this.checkJson[i] = [];
  6571. if (a[i].tool[0] == 49) {
  6572. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  6573. this.groupStudent[i][gA] = [];
  6574. this.groupStudentUid[i][gA] = [];
  6575. this.worksStudent[i][gA] = [];
  6576. this.isCloseList[i][gA] = [];
  6577. for (var g = 0; g < f.length; g++) {
  6578. if (
  6579. f[g].ttype == 2 &&
  6580. this.tcid &&
  6581. this.arrayToArray(f[g].classid.split(","), this.tcid.split(",")).length == 0
  6582. ) {
  6583. continue;
  6584. }
  6585. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  6586. f[g].classid.split(","),
  6587. this.tcid.split(",")
  6588. ).length !== 0 || this.arrayToArray(
  6589. f[g].classid.split(","),
  6590. this.classId ? this.classId.split(",") : []
  6591. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  6592. this.groupStudent[i][gA].push(f[g]);
  6593. this.groupStudentUid[i][gA].push(f[g].userid);
  6594. }
  6595. }
  6596. }
  6597. this.$forceUpdate();
  6598. }
  6599. for (var j = 0; j < b.length; j++) {
  6600. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  6601. continue;
  6602. }
  6603. var likesCount = 0;
  6604. var commentCount = 0;
  6605. var isLikes = false;
  6606. var commentJson = [];
  6607. var data = b[j];
  6608. if (i == b[j].tool) {
  6609. if (data.type == 2 && a[i].tool[0] == 4) {
  6610. // if(JSON.parse(data.content)[0].anwer){
  6611. var checkL = JSON.parse(data.content)[0].anwer instanceof Array ? JSON.parse(data.content)[0].anwer : JSON.parse(data.content)[0].anwer.split(",");
  6612. for (var z = 0; z < checkL.length; z++) {
  6613. if (!this.checkJson[i][z]) {
  6614. this.checkJson[i].push({
  6615. checkCount: [],
  6616. checkPerson: [],
  6617. rightPerson: [],
  6618. });
  6619. }
  6620. if (!this.checkJson[i][z].checkCount.length) {
  6621. this.checkJson[i][z].checkCount = [];
  6622. let _askItemCount = JSON.parse(data.content)[0].askJson
  6623. .askJson[z].askItem;
  6624. for (var aic = 0; aic < _askItemCount; aic++) {
  6625. this.checkJson[i][z].checkCount.push(0);
  6626. }
  6627. }
  6628. if (checkL[z] instanceof Array) {
  6629. if (
  6630. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  6631. checkL[z].sort().join(",")
  6632. ) {
  6633. this.checkJson[i][z].rightPerson.push(data.name);
  6634. }
  6635. for (var q = 0; q < checkL[z].length; q++) {
  6636. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  6637. ? this.checkJson[i][z].checkPerson[
  6638. parseInt(checkL[z][q])
  6639. ].push(data.name)
  6640. : (this.checkJson[i][z].checkPerson[
  6641. parseInt(checkL[z][q])
  6642. ] = [data.name]);
  6643. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  6644. ? this.checkJson[i][z].checkCount[
  6645. parseInt(checkL[z][q])
  6646. ]++
  6647. : (this.checkJson[i][z].checkCount[
  6648. parseInt(checkL[z][q])
  6649. ] = 1);
  6650. }
  6651. } else {
  6652. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  6653. this.checkJson[i][z].rightPerson.push(data.name);
  6654. }
  6655. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  6656. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6657. ? this.checkJson[i][z].checkPerson[
  6658. parseInt(checkL[z])
  6659. ].push(data.name)
  6660. : (this.checkJson[i][z].checkPerson[
  6661. parseInt(checkL[z])
  6662. ] = [data.name]);
  6663. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6664. ? this.checkJson[i][z].checkCount[
  6665. parseInt(checkL[z])
  6666. ]++
  6667. : (this.checkJson[i][z].checkCount[
  6668. parseInt(checkL[z])
  6669. ] = 1);
  6670. }
  6671. }
  6672. }
  6673. } else if (data.type == 8 && a[i].tool[0] == 45) {
  6674. var checkL = JSON.parse(data.content)[0].anwer;
  6675. for (var z = 0; z < checkL.length; z++) {
  6676. if (!this.checkJson[i][z]) {
  6677. this.checkJson[i].push({
  6678. checkCount: [],
  6679. checkPerson: [],
  6680. rightPerson: [],
  6681. });
  6682. }
  6683. if (!this.checkJson[i][z].checkCount.length) {
  6684. this.checkJson[i][z].checkCount = [];
  6685. let _askItemCount = JSON.parse(data.content)[0].testJson
  6686. .testJson[z].testItem;
  6687. console.log(_askItemCount);
  6688. for (var aic = 0; aic < _askItemCount; aic++) {
  6689. this.checkJson[i][z].checkCount.push(0);
  6690. }
  6691. }
  6692. if (checkL[z] instanceof Array) {
  6693. if (
  6694. JSON.parse(data.content)[0]
  6695. .testJson.testJson[z].answer.sort()
  6696. .join(",") == checkL[z].sort().join(",")
  6697. ) {
  6698. this.checkJson[i][z].rightPerson.push(data.name);
  6699. }
  6700. for (var q = 0; q < checkL[z].length; q++) {
  6701. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  6702. ? this.checkJson[i][z].checkPerson[
  6703. parseInt(checkL[z][q])
  6704. ].push(data.name)
  6705. : (this.checkJson[i][z].checkPerson[
  6706. parseInt(checkL[z][q])
  6707. ] = [data.name]);
  6708. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  6709. ? this.checkJson[i][z].checkCount[
  6710. parseInt(checkL[z][q])
  6711. ]++
  6712. : (this.checkJson[i][z].checkCount[
  6713. parseInt(checkL[z][q])
  6714. ] = 1);
  6715. }
  6716. } else {
  6717. if (
  6718. JSON.parse(data.content)[0].testJson.testJson[z]
  6719. .answer == checkL[z]
  6720. ) {
  6721. this.checkJson[i][z].rightPerson.push(data.name);
  6722. }
  6723. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  6724. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6725. ? this.checkJson[i][z].checkPerson[
  6726. parseInt(checkL[z])
  6727. ].push(data.name)
  6728. : (this.checkJson[i][z].checkPerson[
  6729. parseInt(checkL[z])
  6730. ] = [data.name]);
  6731. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6732. ? this.checkJson[i][z].checkCount[
  6733. parseInt(checkL[z])
  6734. ]++
  6735. : (this.checkJson[i][z].checkCount[
  6736. parseInt(checkL[z])
  6737. ] = 1);
  6738. }
  6739. }
  6740. }
  6741. } else if (data.type == 9 && a[i].tool[0] == 47) {
  6742. var checkL = JSON.parse(data.content);
  6743. for (var z = 0; z < checkL.length; z++) {
  6744. if (!this.checkJson[i][z]) {
  6745. this.checkJson[i].push({
  6746. checkCount: [],
  6747. checkPerson: [],
  6748. rightPerson: [],
  6749. });
  6750. }
  6751. this.checkJson[i][z].checkPerson.push(data.name);
  6752. if (
  6753. checkL[z].chooseSenList.toString() ==
  6754. checkL[z].rightAnswer.toString()
  6755. ) {
  6756. this.checkJson[i][z].rightPerson.push(data.name);
  6757. }
  6758. }
  6759. }
  6760. for (var k = 0; k < d.length; k++) {
  6761. //点赞
  6762. if (d[k].workId == b[j].id) {
  6763. likesCount++;
  6764. if (d[k].likesId == this.userid) {
  6765. isLikes = true;
  6766. }
  6767. }
  6768. }
  6769. for (var l = 0; l < e.length; l++) {
  6770. //评论
  6771. if (e[l].workId == b[j].id) {
  6772. if (e[l].comment != "") {
  6773. commentCount++;
  6774. commentJson.push({
  6775. commentText: e[l].comment,
  6776. commentTime: e[l].commentTime,
  6777. commentPeople: e[l].commentPeople,
  6778. userid: e[l].userid,
  6779. wid: e[l].id,
  6780. });
  6781. }
  6782. }
  6783. }
  6784. if (
  6785. (b[j].type == 1 ||
  6786. b[j].type == 4 ||
  6787. b[j].type == 5 ||
  6788. b[j].type == 6 ||
  6789. b[j].type == 12 ||
  6790. b[j].type == 7) &&
  6791. a[i].tool[0] != 15 &&
  6792. a[i].tool[0] != 4 &&
  6793. a[i].tool[0] != 45 &&
  6794. a[i].tool[0] != 50 &&
  6795. a[i].tool[0] != 32 &&
  6796. a[i].tool[0] != 57 &&
  6797. a[i].tool[0] != 52
  6798. ) {
  6799. if (
  6800. c.indexOf(
  6801. b[j].content
  6802. .split(".")
  6803. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6804. ) != -1 &&
  6805. a[i].tool[0] == 16 &&
  6806. b[j].atool != 50
  6807. ) {
  6808. let _works = {
  6809. userid: b[j].userid,
  6810. ateacher: b[j].ateacher,
  6811. wid: b[j].id,
  6812. works: b[j].content,
  6813. sName: b[j].name,
  6814. type: 1,
  6815. time: b[j].time,
  6816. score: b[j].score,
  6817. img: b[j].img,
  6818. likesCount: likesCount,
  6819. commentCount: commentCount,
  6820. isLikes: isLikes,
  6821. commentJson: commentJson,
  6822. }
  6823. if (b[j].ttype == 1) {
  6824. this.worksTeacher[i].push(_works);
  6825. } else {
  6826. this.worksStudent2[i].push(_works);
  6827. }
  6828. this.worksStudent[i].push(_works);
  6829. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6830. } else if (
  6831. y.indexOf(
  6832. b[j].content
  6833. .split(".")
  6834. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6835. ) != -1 &&
  6836. a[i].tool[0] == 16 &&
  6837. b[j].atool != 50
  6838. ) {
  6839. let _works = {
  6840. userid: b[j].userid,
  6841. ateacher: b[j].ateacher,
  6842. wid: b[j].id,
  6843. works: b[j].content,
  6844. sName: b[j].name,
  6845. type: 3,
  6846. time: b[j].time,
  6847. score: b[j].score,
  6848. img: b[j].img,
  6849. likesCount: likesCount,
  6850. commentCount: commentCount,
  6851. isLikes: isLikes,
  6852. commentJson: commentJson,
  6853. }
  6854. if (b[j].ttype == 1) {
  6855. this.worksTeacher[i].push(_works);
  6856. } else {
  6857. this.worksStudent2[i].push(_works);
  6858. }
  6859. this.worksStudent[i].push(_works);
  6860. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6861. } else if (b[j].type == 6 && b[j].atool != 50) {
  6862. let _works = {
  6863. userid: b[j].userid,
  6864. ateacher: b[j].ateacher,
  6865. wid: b[j].id,
  6866. works: b[j].content,
  6867. sName: b[j].name,
  6868. type: 4,
  6869. time: b[j].time,
  6870. score: b[j].score,
  6871. img: b[j].img,
  6872. likesCount: likesCount,
  6873. commentCount: commentCount,
  6874. isLikes: isLikes,
  6875. commentJson: commentJson,
  6876. }
  6877. if (b[j].ttype == 1) {
  6878. this.worksTeacher[i].push(_works);
  6879. } else {
  6880. this.worksStudent2[i].push(_works);
  6881. }
  6882. this.worksStudent[i].push(_works);
  6883. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6884. } else if (b[j].type == 7 && b[j].atool != 50) {
  6885. let _works = {
  6886. userid: b[j].userid,
  6887. ateacher: b[j].ateacher,
  6888. wid: b[j].id,
  6889. works: b[j].content,
  6890. sName: b[j].name,
  6891. type: 5,
  6892. time: b[j].time,
  6893. score: b[j].score,
  6894. img: b[j].img,
  6895. likesCount: likesCount,
  6896. commentCount: commentCount,
  6897. isLikes: isLikes,
  6898. commentJson: commentJson,
  6899. }
  6900. if (b[j].ttype == 1) {
  6901. this.worksTeacher[i].push(_works);
  6902. } else {
  6903. this.worksStudent2[i].push(_works);
  6904. }
  6905. this.worksStudent[i].push(_works);
  6906. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6907. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  6908. let _works = {
  6909. userid: b[j].userid,
  6910. ateacher: b[j].ateacher,
  6911. wid: b[j].id,
  6912. works: b[j].content,
  6913. sName: b[j].name,
  6914. type: 12,
  6915. time: b[j].time,
  6916. score: b[j].score,
  6917. img: b[j].img,
  6918. likesCount: likesCount,
  6919. commentCount: commentCount,
  6920. isLikes: isLikes,
  6921. commentJson: commentJson,
  6922. }
  6923. if (b[j].ttype == 1) {
  6924. this.worksTeacher[i].push(_works);
  6925. } else {
  6926. this.worksStudent2[i].push(_works);
  6927. }
  6928. this.worksStudent[i].push(_works);
  6929. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6930. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  6931. let _works = {
  6932. userid: b[j].userid,
  6933. ateacher: b[j].ateacher,
  6934. wid: b[j].id,
  6935. works: b[j].content,
  6936. sName: b[j].name,
  6937. type: 0,
  6938. time: b[j].time,
  6939. score: b[j].score,
  6940. img: b[j].img,
  6941. likesCount: likesCount,
  6942. commentCount: commentCount,
  6943. isLikes: isLikes,
  6944. commentJson: commentJson,
  6945. }
  6946. if (b[j].ttype == 1) {
  6947. this.worksTeacher[i].push(_works);
  6948. } else {
  6949. this.worksStudent2[i].push(_works);
  6950. }
  6951. this.worksStudent[i].push(_works);
  6952. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6953. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  6954. let _works = {
  6955. userid: b[j].userid,
  6956. ateacher: b[j].ateacher,
  6957. wid: b[j].id,
  6958. works: b[j].content,
  6959. sName: b[j].name,
  6960. type: 0,
  6961. time: b[j].time,
  6962. score: b[j].score,
  6963. img: b[j].img,
  6964. likesCount: likesCount,
  6965. commentCount: commentCount,
  6966. isLikes: isLikes,
  6967. commentJson: commentJson,
  6968. }
  6969. if (b[j].ttype == 1) {
  6970. this.worksTeacher[i].push(_works);
  6971. } else {
  6972. this.worksStudent2[i].push(_works);
  6973. }
  6974. this.worksStudent[i].push(_works);
  6975. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6976. }
  6977. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  6978. let _works = {
  6979. userid: b[j].userid,
  6980. ateacher: b[j].ateacher,
  6981. wid: b[j].id,
  6982. works: b[j].content,
  6983. sName: b[j].name,
  6984. type: 2,
  6985. time: b[j].time,
  6986. score: b[j].score,
  6987. img: b[j].img,
  6988. likesCount: likesCount,
  6989. commentCount: commentCount,
  6990. isLikes: isLikes,
  6991. commentJson: commentJson,
  6992. }
  6993. if (b[j].ttype == 1) {
  6994. this.worksTeacher[i].push(_works);
  6995. } else {
  6996. this.worksStudent2[i].push(_works);
  6997. }
  6998. this.worksStudent[i].push(_works);
  6999. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7000. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  7001. //问卷
  7002. let _works = {
  7003. userid: b[j].userid,
  7004. ateacher: b[j].ateacher,
  7005. wid: b[j].id,
  7006. works: b[j].content,
  7007. sName: b[j].name,
  7008. type: 2,
  7009. time: b[j].time,
  7010. score: b[j].score,
  7011. img: b[j].img,
  7012. likesCount: likesCount,
  7013. commentCount: commentCount,
  7014. isLikes: isLikes,
  7015. commentJson: commentJson,
  7016. }
  7017. if (b[j].ttype == 1) {
  7018. this.worksTeacher[i].push(_works);
  7019. } else {
  7020. this.worksStudent2[i].push(_works);
  7021. }
  7022. this.worksStudent[i].push(_works);
  7023. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7024. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  7025. //选择题
  7026. let _works = {
  7027. userid: b[j].userid,
  7028. ateacher: b[j].ateacher,
  7029. wid: b[j].id,
  7030. works: b[j].content,
  7031. sName: b[j].name,
  7032. type: 8,
  7033. time: b[j].time,
  7034. score: b[j].score,
  7035. img: b[j].img,
  7036. likesCount: likesCount,
  7037. commentCount: commentCount,
  7038. isLikes: isLikes,
  7039. commentJson: commentJson,
  7040. }
  7041. if (b[j].ttype == 1) {
  7042. this.worksTeacher[i].push(_works);
  7043. } else {
  7044. this.worksStudent2[i].push(_works);
  7045. }
  7046. this.worksStudent[i].push(_works);
  7047. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7048. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  7049. //选择题
  7050. let _works = {
  7051. userid: b[j].userid,
  7052. ateacher: b[j].ateacher,
  7053. wid: b[j].id,
  7054. works: b[j].content,
  7055. sName: b[j].name,
  7056. type: 9,
  7057. time: b[j].time,
  7058. score: b[j].score,
  7059. img: b[j].img,
  7060. likesCount: likesCount,
  7061. commentCount: commentCount,
  7062. isLikes: isLikes,
  7063. commentJson: commentJson,
  7064. }
  7065. if (b[j].ttype == 1) {
  7066. this.worksTeacher[i].push(_works);
  7067. } else {
  7068. this.worksStudent2[i].push(_works);
  7069. }
  7070. this.worksStudent[i].push(_works);
  7071. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7072. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  7073. //选择题
  7074. let _works = {
  7075. userid: b[j].userid,
  7076. ateacher: b[j].ateacher,
  7077. wid: b[j].id,
  7078. works: b[j].content,
  7079. sName: b[j].name,
  7080. type: 10,
  7081. time: b[j].time,
  7082. score: b[j].score,
  7083. img: b[j].img,
  7084. likesCount: likesCount,
  7085. commentCount: commentCount,
  7086. isLikes: isLikes,
  7087. commentJson: commentJson,
  7088. }
  7089. if (b[j].ttype == 1) {
  7090. this.worksTeacher[i].push(_works);
  7091. } else {
  7092. this.worksStudent2[i].push(_works);
  7093. }
  7094. this.worksStudent[i].push(_works);
  7095. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7096. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  7097. //选择题
  7098. let _works = {
  7099. userid: b[j].userid,
  7100. ateacher: b[j].ateacher,
  7101. wid: b[j].id,
  7102. works: b[j].content,
  7103. sName: b[j].name,
  7104. type: 13,
  7105. time: b[j].time,
  7106. score: b[j].score,
  7107. img: b[j].img,
  7108. likesCount: likesCount,
  7109. commentCount: commentCount,
  7110. isLikes: isLikes,
  7111. commentJson: commentJson,
  7112. }
  7113. if (b[j].ttype == 1) {
  7114. this.worksTeacher[i].push(_works);
  7115. } else {
  7116. this.worksStudent2[i].push(_works);
  7117. }
  7118. this.worksStudent[i].push(_works);
  7119. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7120. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  7121. let _gindex = JSON.parse(b[j].content);
  7122. if (
  7123. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  7124. b[j].userid
  7125. ) != -1
  7126. ) {
  7127. this.worksStudent[i][_gindex.groupIndex].push({
  7128. userid: b[j].userid,
  7129. ateacher: b[j].ateacher,
  7130. wid: b[j].id,
  7131. works: _gindex.url,
  7132. sName: b[j].name,
  7133. type: _gindex.type,
  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. }
  7143. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7144. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  7145. let _works = {
  7146. userid: b[j].userid,
  7147. ateacher: b[j].ateacher,
  7148. wid: b[j].id,
  7149. works: b[j].content,
  7150. sName: b[j].name ? b[j].name : b[j].userid,
  7151. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  7152. time: b[j].time,
  7153. score: b[j].score,
  7154. img: b[j].img,
  7155. likesCount: likesCount,
  7156. commentCount: commentCount,
  7157. isLikes: isLikes,
  7158. commentJson: commentJson,
  7159. }
  7160. if (b[j].ttype == 1) {
  7161. this.worksTeacher[i].push(_works);
  7162. } else {
  7163. this.worksStudent2[i].push(_works);
  7164. }
  7165. this.worksStudent[i].push(_works);
  7166. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7167. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  7168. let _works = {
  7169. userid: b[j].userid,
  7170. ateacher: b[j].ateacher,
  7171. wid: b[j].id,
  7172. works: b[j].content,
  7173. sName: b[j].name ? b[j].name : b[j].userid,
  7174. type: 12,
  7175. time: b[j].time,
  7176. score: b[j].score,
  7177. img: b[j].img,
  7178. likesCount: likesCount,
  7179. commentCount: commentCount,
  7180. isLikes: isLikes,
  7181. commentJson: commentJson,
  7182. }
  7183. if (b[j].ttype == 1) {
  7184. this.worksTeacher[i].push(_works);
  7185. } else {
  7186. this.worksStudent2[i].push(_works);
  7187. }
  7188. this.worksStudent[i].push(_works);
  7189. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7190. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  7191. let _works = {
  7192. userid: b[j].userid,
  7193. ateacher: b[j].ateacher,
  7194. wid: b[j].id,
  7195. works: b[j].content,
  7196. sName: b[j].name ? b[j].name : b[j].userid,
  7197. type: 12,
  7198. time: b[j].time,
  7199. score: b[j].score,
  7200. img: b[j].img,
  7201. likesCount: likesCount,
  7202. commentCount: commentCount,
  7203. isLikes: isLikes,
  7204. commentJson: commentJson,
  7205. }
  7206. if (b[j].ttype == 1) {
  7207. this.worksTeacher[i].push(_works);
  7208. } else {
  7209. this.worksStudent2[i].push(_works);
  7210. }
  7211. this.worksStudent[i].push(_works);
  7212. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7213. }
  7214. }
  7215. }
  7216. if (this.worksStudent[i] && this.worksStudent[i].length) {
  7217. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  7218. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7219. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7220. var scoreA = parseFloat(jscoreA);
  7221. var scoreB = parseFloat(jscoreB);
  7222. if (scoreA == scoreB) {
  7223. return b.likesCount - a.likesCount;
  7224. }
  7225. return scoreB - scoreA;
  7226. });
  7227. }
  7228. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  7229. this.worksStudent2[i] = this.worksStudent2[i].sort(function (a, b) {
  7230. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7231. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7232. var scoreA = parseFloat(jscoreA);
  7233. var scoreB = parseFloat(jscoreB);
  7234. if (scoreA == scoreB) {
  7235. return b.likesCount - a.likesCount;
  7236. }
  7237. return scoreB - scoreA;
  7238. });
  7239. }
  7240. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  7241. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  7242. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7243. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7244. var scoreA = parseFloat(jscoreA);
  7245. var scoreB = parseFloat(jscoreB);
  7246. if (scoreA == scoreB) {
  7247. return b.likesCount - a.likesCount;
  7248. }
  7249. return scoreB - scoreA;
  7250. });
  7251. }
  7252. }
  7253. for (var i = 0; i < a.length; i++) {
  7254. for (var j = 0; j < b.length; j++) {
  7255. var data = b[j];
  7256. if (i == b[j].tool) {
  7257. if (data.type == 2 || data.type == 8) {
  7258. for (var z = 0; z < this.checkJson[i].length; z++) {
  7259. this.checkJson[i][z].checkPerent = [];
  7260. this.checkJson[i][z].right = Math.round(
  7261. (this.checkJson[i][z].rightPerson.length /
  7262. parseInt(this.worksStudent[i].length)) *
  7263. 100
  7264. );
  7265. let aaaa = this.checkJson[i][z];
  7266. console.log(aaaa);
  7267. for (
  7268. var k = 0;
  7269. k < this.checkJson[i][z].checkCount.length;
  7270. k++
  7271. ) {
  7272. this.checkJson[i][z].checkPerent.push(
  7273. Math.round(
  7274. (this.checkJson[i][z].checkCount[k] /
  7275. parseInt(this.worksStudent[i].length)) *
  7276. 100
  7277. )
  7278. );
  7279. }
  7280. }
  7281. } else if (data.type == 9) {
  7282. for (var z = 0; z < this.checkJson[i].length; z++) {
  7283. this.checkJson[i][z].checkPerent = [];
  7284. this.checkJson[i][z].right = Math.round(
  7285. (this.checkJson[i][z].rightPerson.length /
  7286. this.checkJson[i][z].checkPerson.length) *
  7287. 100
  7288. );
  7289. }
  7290. }
  7291. }
  7292. }
  7293. }
  7294. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  7295. this.joinGroup(gindex);
  7296. }
  7297. this.selectWorksStudent();
  7298. })
  7299. .catch((err) => {
  7300. console.error(err);
  7301. });
  7302. },
  7303. pngToWhiteBg(file) {
  7304. const _file = file;
  7305. let read = new FileReader();
  7306. read.readAsDataURL(file); // 文件转base64
  7307. return new Promise((resolve, reject) => {
  7308. read.onload = (e) => {
  7309. let img = new Image();
  7310. img.src = e.target.result;
  7311. img.onload = async () => {
  7312. // 生成canvas
  7313. let canvas = document.createElement("canvas");
  7314. let context = canvas.getContext("2d");
  7315. // 绘制图片到canvas上
  7316. canvas.width = img.width;
  7317. canvas.height = img.height;
  7318. // 在canvas绘制前填充白色背景
  7319. context.fillStyle = "#fff";
  7320. context.fillRect(0, 0, canvas.width, canvas.height);
  7321. context.drawImage(img, 0, 0);
  7322. let base64 = canvas.toDataURL(file["type"], 1);
  7323. let newFile = this.dataUrlToFile(base64, _file);
  7324. resolve(newFile);
  7325. };
  7326. };
  7327. });
  7328. },
  7329. dataUrlToFile(dataurl, file) {
  7330. let arr = dataurl.split(","),
  7331. mime = arr[0].match(/:(.*?);/)[1],
  7332. bstr = atob(arr[1]),
  7333. n = bstr.length,
  7334. u8arr = new Uint8Array(n);
  7335. while (n--) {
  7336. u8arr[n] = bstr.charCodeAt(n);
  7337. }
  7338. // return new Blob([u8arr], { type: mime });
  7339. return new File([new Blob([u8arr], { type: mime })], file.name, {
  7340. type: mime,
  7341. });
  7342. },
  7343. async beforeUpload1(event, type, i) {
  7344. // this.$message.success('进入上传')
  7345. var file = "";
  7346. if (type == 5) {
  7347. file = event;
  7348. } else {
  7349. file = event.target.files[0];
  7350. }
  7351. var credentials = {
  7352. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7353. secretAccessKey: "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",
  7354. }; //秘钥形式的登录上传
  7355. window.AWS.config.update(credentials);
  7356. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7357. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7358. var _this = this;
  7359. _this.progress = 0;
  7360. _this.proVisible = true;
  7361. _this.isFinishSize = 0;
  7362. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7363. var b = [
  7364. "DOC",
  7365. "DOCX",
  7366. "DOCM",
  7367. "DOTM",
  7368. "DOTX",
  7369. "PPTX",
  7370. "PPSX",
  7371. "PPT",
  7372. "PPS",
  7373. "PPTM",
  7374. "POTM",
  7375. "PPAM",
  7376. "POTX",
  7377. "PPSM",
  7378. ];
  7379. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7380. var photoA = [
  7381. "BMP",
  7382. "GIF",
  7383. "PNG",
  7384. "JPEG",
  7385. "JPG",
  7386. "TIF",
  7387. "PCX",
  7388. "TGA",
  7389. "EXIF",
  7390. "FPX",
  7391. "SVG",
  7392. "APNG",
  7393. ];
  7394. // if (
  7395. // b.indexOf(
  7396. // file.name
  7397. // .split(".")
  7398. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7399. // ) != -1
  7400. // ) {
  7401. // if (file.size / 1024 / 1024 > 10) {
  7402. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  7403. // return;
  7404. // }
  7405. // } else if (
  7406. // excelA.indexOf(
  7407. // file.name
  7408. // .split(".")
  7409. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7410. // ) != "-1"
  7411. // ) {
  7412. // if (file.size / 1024 / 1024 > 5) {
  7413. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  7414. // return;
  7415. // }
  7416. // }
  7417. if (
  7418. photoA.indexOf(
  7419. file.name
  7420. .split(".")
  7421. [file.name.split(".").length - 1].toLocaleUpperCase()
  7422. ) != -1 &&
  7423. type != 4
  7424. ) {
  7425. // const blob = await imageConversion.compress(file, 0.8)
  7426. file = await this.pngToWhiteBg(file);
  7427. const blob = await imageConversion.compressAccurately(file, 256);
  7428. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7429. file = new File([blob], file.name, { type: file.type });
  7430. }
  7431. if (file) {
  7432. var params = {
  7433. Key:
  7434. file.name.split(".")[0] +
  7435. new Date().getTime() +
  7436. "." +
  7437. file.name.split(".")[file.name.split(".").length - 1],
  7438. ContentType: file.type,
  7439. Body: file,
  7440. "Access-Control-Allow-Credentials": "*",
  7441. ACL: "public-read",
  7442. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7443. var options = {
  7444. // partSize: 2048 * 1024 * 1024,
  7445. partSize: 1024 * 1024 * 1024,
  7446. queueSize: 2,
  7447. leavePartsOnError: true,
  7448. };
  7449. bucket
  7450. .upload(params, options)
  7451. .on("httpUploadProgress", function (evt) {
  7452. //这里可以写进度条
  7453. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7454. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  7455. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7456. })
  7457. .send(function (err, data) {
  7458. _this.progress = 100;
  7459. _this.isFinishSize = _this.isAllSize;
  7460. setTimeout(() => {
  7461. _this.proVisible = false;
  7462. }, 1000);
  7463. if (err) {
  7464. var a = _this.$refs.upload1.uploadFiles;
  7465. a.splice(a.length - 1, a.length);
  7466. _this.$message.error("上传失败");
  7467. } else {
  7468. // _this.$message.success('上传成功')
  7469. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7470. var c = [
  7471. "AVI",
  7472. "NAVI",
  7473. "MPEG",
  7474. "ASF",
  7475. "MOV",
  7476. "WMV",
  7477. "3GP",
  7478. "RM",
  7479. "RMVB",
  7480. "FLV",
  7481. "F4V",
  7482. "H.264",
  7483. "H.265",
  7484. "REAL VIDEO",
  7485. "MKV",
  7486. "WebM",
  7487. "HDDVD",
  7488. "MP4",
  7489. "MPG",
  7490. "M4V",
  7491. "MGV",
  7492. "OGV",
  7493. "QTM",
  7494. "STR",
  7495. "AMC",
  7496. "DVX",
  7497. "EVO",
  7498. "DAT",
  7499. "OGG",
  7500. "OGM",
  7501. ];
  7502. if (type == 1) {
  7503. _this.studyJuri[0].cover.push({
  7504. name: file.name,
  7505. url: data.Location,
  7506. uid: file.uid,
  7507. });
  7508. if (
  7509. c.indexOf(
  7510. _this.studyJuri[0].cover[0].url
  7511. .split(".")
  7512. [
  7513. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7514. ].toLocaleUpperCase()
  7515. ) != -1
  7516. ) {
  7517. _this.fileType = 2;
  7518. } else if (
  7519. b.indexOf(
  7520. _this.studyJuri[0].cover[0].url
  7521. .split(".")
  7522. [
  7523. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7524. ].toLocaleUpperCase()
  7525. ) != -1
  7526. ) {
  7527. _this.fileType = 1;
  7528. } else if (photoA.indexOf(
  7529. _this.studyJuri[0].cover[0].url
  7530. .split(".")
  7531. [
  7532. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7533. ].toLocaleUpperCase()
  7534. ) != -1) {
  7535. _this.fileType = 0;
  7536. } else {
  7537. _this.fileType = 3;
  7538. }
  7539. _this.imgChange(null, null, type);
  7540. } else if (type == 2) {
  7541. _this.upToolImg = data.Location;
  7542. _this.imgChange(null, null, type);
  7543. _this.addCourseWorks(i);
  7544. } else if (type == 4) {
  7545. _this.addPz("3", data.Location);
  7546. } else if (type == 5) {
  7547. _this.addImgDrawImG(data.Location);
  7548. } else if (type == 6) {
  7549. var _ftype = 1;
  7550. if (
  7551. c.indexOf(
  7552. data.Location.split(".")[
  7553. data.Location.split(".").length - 1
  7554. ].toLocaleUpperCase()
  7555. ) != -1
  7556. ) {
  7557. _ftype = 5;
  7558. } else if (
  7559. b.indexOf(
  7560. data.Location.split(".")[
  7561. data.Location.split(".").length - 1
  7562. ].toLocaleUpperCase()
  7563. ) != -1
  7564. ) {
  7565. _ftype = 4;
  7566. } else {
  7567. _ftype = 1;
  7568. }
  7569. _this.plworkFile.push({
  7570. name: file.name,
  7571. url: data.Location,
  7572. uid: file.uid,
  7573. fileType: _ftype,
  7574. username:
  7575. _this.plworkFile.length + 1 > 10
  7576. ? _this.plworkFile.length + 1
  7577. : "0" + (_this.plworkFile.length + 1),
  7578. });
  7579. } else if (type == 7) {
  7580. _this.addCourseWorksGong(i, data.Location, 32);
  7581. } else if (type == 8) {
  7582. _this.addCourseWorksGong(i, data.Location, 57);
  7583. }
  7584. _this.imgChange(null, null, type);
  7585. console.log(data.Location);
  7586. // _this.$message.success('上传成功'+data.Location)
  7587. }
  7588. });
  7589. }
  7590. },
  7591. async beforeUpload3(event, type, i) {
  7592. // this.$message.success('进入上传')
  7593. let file = "";
  7594. let cfindex2 = 0;
  7595. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  7596. file = event.target.files[cfindex];
  7597. var credentials = {
  7598. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7599. secretAccessKey: "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",
  7600. }; //秘钥形式的登录上传
  7601. window.AWS.config.update(credentials);
  7602. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7603. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7604. var _this = this;
  7605. // _this.progress = 0;
  7606. _this.proVisible2 = true;
  7607. var b = [
  7608. "DOC",
  7609. "DOCX",
  7610. "DOCM",
  7611. "DOTM",
  7612. "DOTX",
  7613. "PPTX",
  7614. "PPSX",
  7615. "PPT",
  7616. "PPS",
  7617. "PPTM",
  7618. "POTM",
  7619. "PPAM",
  7620. "POTX",
  7621. "PPSM",
  7622. ];
  7623. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7624. var photoA = [
  7625. "BMP",
  7626. "GIF",
  7627. "PNG",
  7628. "JPEG",
  7629. "JPG",
  7630. "TIF",
  7631. "PCX",
  7632. "TGA",
  7633. "EXIF",
  7634. "FPX",
  7635. "SVG",
  7636. "APNG",
  7637. ];
  7638. if (
  7639. photoA.indexOf(
  7640. file.name
  7641. .split(".")
  7642. [file.name.split(".").length - 1].toLocaleUpperCase()
  7643. ) != -1 &&
  7644. type != 4
  7645. ) {
  7646. // const blob = await imageConversion.compress(file, 0.8)
  7647. file = await this.pngToWhiteBg(file);
  7648. const blob = await imageConversion.compressAccurately(file, 256);
  7649. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7650. file = new File([blob], file.name, { type: file.type });
  7651. }
  7652. if (file) {
  7653. var params = {
  7654. Key:
  7655. file.name.split(".")[0] +
  7656. new Date().getTime() +
  7657. "." +
  7658. file.name.split(".")[file.name.split(".").length - 1],
  7659. ContentType: file.type,
  7660. Body: file,
  7661. "Access-Control-Allow-Credentials": "*",
  7662. ACL: "public-read",
  7663. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7664. var options = {
  7665. // partSize: 2048 * 1024 * 1024,
  7666. partSize: 1024 * 1024 * 1024,
  7667. queueSize: 2,
  7668. leavePartsOnError: true,
  7669. };
  7670. bucket
  7671. .upload(params, options)
  7672. .on("httpUploadProgress", function (evt) {
  7673. //这里可以写进度条
  7674. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7675. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7676. })
  7677. .send(function (err, data) {
  7678. // _this.progress = 100;
  7679. cfindex2++;
  7680. setTimeout(() => {
  7681. if (
  7682. cfindex2 == event.target.files.length - 1 ||
  7683. cfindex2 > event.target.files.length - 1
  7684. ) {
  7685. _this.proVisible2 = false;
  7686. }
  7687. }, 1000);
  7688. if (err) {
  7689. var a = _this.$refs.upload1.uploadFiles;
  7690. a.splice(a.length - 1, a.length);
  7691. _this.$message.error("上传失败");
  7692. } else {
  7693. // _this.$message.success('上传成功')
  7694. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7695. var c = [
  7696. "AVI",
  7697. "NAVI",
  7698. "MPEG",
  7699. "ASF",
  7700. "MOV",
  7701. "WMV",
  7702. "3GP",
  7703. "RM",
  7704. "RMVB",
  7705. "FLV",
  7706. "F4V",
  7707. "H.264",
  7708. "H.265",
  7709. "REAL VIDEO",
  7710. "MKV",
  7711. "WebM",
  7712. "HDDVD",
  7713. "MP4",
  7714. "MPG",
  7715. "M4V",
  7716. "MGV",
  7717. "OGV",
  7718. "QTM",
  7719. "STR",
  7720. "AMC",
  7721. "DVX",
  7722. "EVO",
  7723. "DAT",
  7724. "OGG",
  7725. "OGM",
  7726. ];
  7727. if (type == 1) {
  7728. _this.studyJuri[0].cover.push({
  7729. name: file.name,
  7730. url: data.Location,
  7731. uid: file.uid,
  7732. });
  7733. if (
  7734. c.indexOf(
  7735. _this.studyJuri[0].cover[0].url
  7736. .split(".")
  7737. [
  7738. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7739. ].toLocaleUpperCase()
  7740. ) != -1
  7741. ) {
  7742. _this.fileType = 2;
  7743. } else if (
  7744. b.indexOf(
  7745. _this.studyJuri[0].cover[0].url
  7746. .split(".")
  7747. [
  7748. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7749. ].toLocaleUpperCase()
  7750. ) != -1
  7751. ) {
  7752. _this.fileType = 1;
  7753. } else {
  7754. _this.fileType = 0;
  7755. }
  7756. _this.imgChange(null, null, type);
  7757. } else if (type == 2) {
  7758. _this.upToolImg = data.Location;
  7759. _this.imgChange(null, null, type);
  7760. _this.addCourseWorks(i);
  7761. } else if (type == 4) {
  7762. _this.addPz("3", data.Location);
  7763. } else if (type == 5) {
  7764. _this.addImgDrawImG(data.Location);
  7765. } else if (type == 6) {
  7766. var _ftype = 1;
  7767. if (
  7768. c.indexOf(
  7769. data.Location.split(".")[
  7770. data.Location.split(".").length - 1
  7771. ].toLocaleUpperCase()
  7772. ) != -1
  7773. ) {
  7774. _ftype = 5;
  7775. } else if (
  7776. b.indexOf(
  7777. data.Location.split(".")[
  7778. data.Location.split(".").length - 1
  7779. ].toLocaleUpperCase()
  7780. ) != -1
  7781. ) {
  7782. _ftype = 4;
  7783. } else {
  7784. _ftype = 1;
  7785. }
  7786. _this.plworkFile.push({
  7787. name: file.name,
  7788. url: data.Location,
  7789. uid: file.uid,
  7790. fileType: _ftype,
  7791. username:
  7792. _this.plworkFile.length+1 > 9
  7793. ? _this.plworkFile.length+1
  7794. : "0" + (_this.plworkFile.length+1),
  7795. });
  7796. }
  7797. _this.imgChange(null, null, type);
  7798. console.log(data.Location);
  7799. // _this.$message.success('上传成功'+data.Location)
  7800. }
  7801. });
  7802. }
  7803. }
  7804. },
  7805. beforeUpload2(event, type) {
  7806. var file = event.target.files[0];
  7807. var credentials = {
  7808. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7809. secretAccessKey: "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",
  7810. }; //秘钥形式的登录上传
  7811. window.AWS.config.update(credentials);
  7812. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7813. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7814. var _this = this;
  7815. _this.progress = 0;
  7816. _this.proVisible = true;
  7817. if (file) {
  7818. var params = {
  7819. Key:
  7820. file.name.split(".")[0] +
  7821. new Date().getTime() +
  7822. "." +
  7823. file.name.split(".")[file.name.split(".").length - 1],
  7824. ContentType: file.type,
  7825. Body: file,
  7826. "Access-Control-Allow-Credentials": "*",
  7827. ACL: "public-read",
  7828. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7829. var options = {
  7830. partSize: 2048 * 1024 * 1024,
  7831. queueSize: 2,
  7832. leavePartsOnError: true,
  7833. };
  7834. bucket
  7835. .upload(params, options)
  7836. .on("httpUploadProgress", function (evt) {
  7837. //这里可以写进度条
  7838. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7839. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7840. })
  7841. .send(function (err, data) {
  7842. _this.progress = 100;
  7843. setTimeout(() => {
  7844. _this.proVisible = false;
  7845. }, 1000);
  7846. if (err) {
  7847. var a = _this.$refs.upload1.uploadFiles;
  7848. a.splice(a.length - 1, a.length);
  7849. _this.$message.error("上传失败");
  7850. } else {
  7851. if (type == 2) {
  7852. _this.studyJuri[0].upVedio.push({
  7853. name: file.name,
  7854. url: data.Location,
  7855. uid: file.uid,
  7856. });
  7857. _this.imgChange(null, null, type);
  7858. } else if (type == 3) {
  7859. _this.studyJuri[0].upFile.push({
  7860. name: file.name,
  7861. url: data.Location,
  7862. uid: file.uid,
  7863. });
  7864. _this.imgChange(null, null, type);
  7865. }
  7866. console.log(data.Location);
  7867. }
  7868. });
  7869. }
  7870. },
  7871. allScrell() {
  7872. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  7873. },
  7874. nextToolindex(type) {
  7875. if (type == 'last') {
  7876. if (this.toolIndex == 0) {
  7877. this.$message.error("已经是第一个步骤")
  7878. return;
  7879. }
  7880. this.toolIndex = this.toolIndex - 1
  7881. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7882. } else if (type == 'next') {
  7883. if (this.toolIndex == this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length - 1) {
  7884. this.$message.error("已经是最后一个步骤")
  7885. return;
  7886. }
  7887. this.toolIndex = this.toolIndex + 1
  7888. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7889. }
  7890. this.$forceUpdate();
  7891. },
  7892. checkBz(index){
  7893. this.toolIndex = index
  7894. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7895. this.$forceUpdate();
  7896. },
  7897. nextOrpreSteps(t) {
  7898. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  7899. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  7900. return;
  7901. }
  7902. var b = this.chapInfoList.length - 1;
  7903. if (t == 0) {
  7904. if (this.courseType == 0) {
  7905. if (this.taskCount == 0) {
  7906. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  7907. if (this.IsLookOpen) {
  7908. if (
  7909. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  7910. ) {
  7911. if (
  7912. this.courseDetail.userid != this.userid &&
  7913. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  7914. ) {
  7915. this.$message.error("任务未解锁");
  7916. } else {
  7917. this.$message.error("上一任务未解锁");
  7918. }
  7919. return;
  7920. }
  7921. }
  7922. this.navList[this.courseType].isOpen = false;
  7923. this.courseType = b;
  7924. this.taskCount =
  7925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7926. .length - 1;
  7927. this.navList[this.courseType].isOpen = true;
  7928. } else {
  7929. this.taskCount--;
  7930. }
  7931. } else {
  7932. if (this.taskCount == 0) {
  7933. this.navList[this.courseType].isOpen = false;
  7934. this.courseType--;
  7935. this.taskCount =
  7936. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7937. .length - 1;
  7938. this.navList[this.courseType].isOpen = true;
  7939. } else {
  7940. this.taskCount--;
  7941. }
  7942. }
  7943. } else {
  7944. if (this.courseType == b) {
  7945. if (
  7946. this.taskCount ==
  7947. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  7948. 1
  7949. ) {
  7950. this.navList[this.courseType].isOpen = false;
  7951. this.courseType = 0;
  7952. this.taskCount = 0;
  7953. this.navList[this.courseType].isOpen = true;
  7954. } else {
  7955. var bbb = parseInt(this.taskCount) + 1;
  7956. if (
  7957. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  7958. .isLook &&
  7959. this.courseDetail.userid != this.userid &&
  7960. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7961. this.IsLookOpen
  7962. ) {
  7963. this.$message.error("任务未解锁");
  7964. return;
  7965. }
  7966. this.taskCount++;
  7967. if (this.IsLookOpen) {
  7968. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7969. this.taskCount
  7970. ].isLook = true;
  7971. this.addCourseState(3);
  7972. }
  7973. }
  7974. } else {
  7975. if (
  7976. this.taskCount ==
  7977. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  7978. 1
  7979. ) {
  7980. var bbb = parseInt(this.courseType) + 1;
  7981. if (
  7982. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  7983. this.courseDetail.userid != this.userid &&
  7984. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7985. this.IsLookOpen
  7986. ) {
  7987. this.$message.error("任务未解锁");
  7988. return;
  7989. }
  7990. this.navList[this.courseType].isOpen = false;
  7991. this.courseType++;
  7992. this.taskCount = 0;
  7993. this.navList[this.courseType].isOpen = true;
  7994. } else {
  7995. var bbb = parseInt(this.taskCount) + 1;
  7996. if (
  7997. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  7998. .isLook &&
  7999. this.courseDetail.userid != this.userid &&
  8000. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8001. this.IsLookOpen
  8002. ) {
  8003. this.$message.error("任务未解锁");
  8004. return;
  8005. }
  8006. this.taskCount++;
  8007. }
  8008. if (this.IsLookOpen) {
  8009. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8010. this.taskCount
  8011. ].isLook = true;
  8012. this.addCourseState(3);
  8013. }
  8014. }
  8015. }
  8016. document.scrollingElement.scrollTop = 0;
  8017. this.showType = 0;
  8018. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8019. this.toolIndex = null
  8020. this.isNoHomeWork = false;
  8021. (this.studyJuri = [
  8022. {
  8023. content: "",
  8024. cover: [],
  8025. upVedio: [],
  8026. upFile: [],
  8027. },
  8028. ]),
  8029. (this.radio = []);
  8030. this.isClickNav = "";
  8031. this.selectPz();
  8032. this.getHomeWork();
  8033. this.getCourseDetail();
  8034. this.$forceUpdate();
  8035. },
  8036. openTask(s, n, i) {
  8037. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8038. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8039. return;
  8040. }
  8041. if (this.IsLookOpen) {
  8042. if (
  8043. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  8044. this.courseDetail.userid != this.userid &&
  8045. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  8046. ) {
  8047. this.$message.error("任务未解锁");
  8048. return;
  8049. }
  8050. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  8051. if (
  8052. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  8053. .isLook
  8054. ) {
  8055. this.$message.error("上一任务未解锁");
  8056. return;
  8057. }
  8058. } else if (s > this.courseType) {
  8059. if (n > 0) {
  8060. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  8061. this.$message.error("上一任务未解锁");
  8062. return;
  8063. }
  8064. } else {
  8065. if (
  8066. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  8067. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  8068. ].isLook
  8069. ) {
  8070. this.$message.error("上一任务未解锁");
  8071. return;
  8072. }
  8073. }
  8074. }
  8075. }
  8076. this.courseType = s;
  8077. this.navId = i;
  8078. this.taskCount = n;
  8079. if (this.IsLookOpen) {
  8080. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8081. this.taskCount
  8082. ].isLook = true;
  8083. this.addCourseState(3);
  8084. }
  8085. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  8086. this.isCloseList[ci].isClose = 0;
  8087. }
  8088. this.showType = 0;
  8089. this.isNoHomeWork = false;
  8090. (this.studyJuri = [
  8091. {
  8092. content: "",
  8093. cover: [],
  8094. upVedio: [],
  8095. upFile: [],
  8096. },
  8097. ]),
  8098. (this.radio = []);
  8099. document.scrollingElement.scrollTop = 0;
  8100. this.toolIndex = null
  8101. // setTimeout(() => {
  8102. // let a = document.getElementById(i);
  8103. // if (a.offsetTop - 110 == 0) {
  8104. // window.scrollTo(0, 0);
  8105. // } else {
  8106. // window.scrollTo(0, a.offsetTop);
  8107. // }
  8108. // }, 0);
  8109. this.selectPz();
  8110. this.getHomeWork();
  8111. this.getCourseDetail();
  8112. },
  8113. get(i) {
  8114. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8115. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8116. return;
  8117. }
  8118. this.navList[i].isOpen = !this.navList[i].isOpen;
  8119. },
  8120. addQuestion() {
  8121. this.answerList.push({
  8122. answerTitle: this.answerQ,
  8123. answer: this.questionAnswer,
  8124. });
  8125. let params = [
  8126. {
  8127. uid: this.userid,
  8128. cid: this.id,
  8129. stage: this.courseType,
  8130. task: this.taskCount,
  8131. tool: this.toolindex,
  8132. content: JSON.stringify(this.answerList),
  8133. type: 3,
  8134. },
  8135. ];
  8136. this.ajax
  8137. .post(this.$store.state.api + "addCourseWorks", params)
  8138. .then((res) => {
  8139. this.$message({
  8140. message: "提交成功",
  8141. type: "success",
  8142. });
  8143. this.answerList = [];
  8144. this.questionAnswer = ""
  8145. this.answerDialogVisible = false;
  8146. this.selectStudent();
  8147. this.selectSWorks();
  8148. this.selectSLook();
  8149. })
  8150. .catch((err) => {
  8151. this.$message.error("提交失败");
  8152. console.error(err);
  8153. });
  8154. },
  8155. addQuestionTeacher() {
  8156. this.answerList.push({
  8157. answerTitle: this.answerQ,
  8158. answer: this.questionAnswer,
  8159. });
  8160. let params = [
  8161. {
  8162. uid: this.sStudent.userid,
  8163. cid: this.id,
  8164. stage: this.courseType,
  8165. task: this.taskCount,
  8166. tool: this.toolindex,
  8167. content: JSON.stringify(this.answerList),
  8168. type: 3,
  8169. ateacher: this.userid,
  8170. },
  8171. ];
  8172. this.ajax
  8173. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  8174. .then((res) => {
  8175. this.$message({
  8176. message: "提交成功",
  8177. type: "success",
  8178. });
  8179. this.answerList = [];
  8180. this.questionAnswer = ""
  8181. this.answerDialogVisibleTeacher = false;
  8182. this.selectStudent();
  8183. this.selectSWorks();
  8184. this.selectSLook();
  8185. })
  8186. .catch((err) => {
  8187. this.$message.error("提交失败");
  8188. console.error(err);
  8189. });
  8190. },
  8191. getCourseDetail(type, gindex) {
  8192. let loading;
  8193. if (type != 2) {
  8194. loading = this.$loading.service({
  8195. background: "rgba(255, 255, 255, 0.7)",
  8196. target: document.querySelector(".student_table"),
  8197. });
  8198. }
  8199. let params = {
  8200. courseId: this.id,
  8201. };
  8202. this.ajax
  8203. .get(this.$store.state.api + "selectCourseDetail3", params)
  8204. .then((res) => {
  8205. if (type != 2) {
  8206. loading.close();
  8207. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  8208. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  8209. }
  8210. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8211. .chapterInfo[0].taskJson;
  8212. var b = [
  8213. "AVI",
  8214. "NAVI",
  8215. "MPEG",
  8216. "ASF",
  8217. "MOV",
  8218. "WMV",
  8219. "3GP",
  8220. "RM",
  8221. "RMVB",
  8222. "FLV",
  8223. "F4V",
  8224. "H.264",
  8225. "H.265",
  8226. "REAL VIDEO",
  8227. "MKV",
  8228. "WebM",
  8229. "HDDVD",
  8230. "MP4",
  8231. "MPG",
  8232. "M4V",
  8233. "MGV",
  8234. "OGV",
  8235. "QTM",
  8236. "STR",
  8237. "AMC",
  8238. "DVX",
  8239. "EVO",
  8240. "DAT",
  8241. "OGG",
  8242. "OGM",
  8243. "MP3",
  8244. ];
  8245. for (var i = 0; i < a.length; i++) {
  8246. var c = a[i].chapterData;
  8247. this.vedio[i] = [];
  8248. this.textList[i] = [];
  8249. this.lineList[i] = [];
  8250. this.chapToolList[i] = [];
  8251. this.file[i] = [];
  8252. this.fileC[i] = [];
  8253. for (var j = 0; j < c.length; j++) {
  8254. if (c[j].type == 7) {
  8255. this.chapToolList[i].push(c[j]);
  8256. } else if (c[j].type == 8) {
  8257. this.lineList[i].push(c[j]);
  8258. } else if (c[j].type == 6) {
  8259. this.textList[i].push(c[j]);
  8260. } else if (c[j].type == 12) {
  8261. this.fileC[i].push(c[j]);
  8262. } else {
  8263. if (
  8264. b.indexOf(
  8265. c[j].url
  8266. .split(".")
  8267. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8268. ) != -1
  8269. ) {
  8270. this.vedio[i].push(c[j]);
  8271. } else {
  8272. this.file[i].push(c[j]);
  8273. }
  8274. }
  8275. }
  8276. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8277. d.sources[0].src =
  8278. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8279. this.playerO[i] = d;
  8280. }
  8281. this.courseDetail = res.data[0][0];
  8282. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  8283. console.log(this.tcid);
  8284. this.evalua = res.data[0][0].evaId;
  8285. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  8286. this.courseType
  8287. ];
  8288. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  8289. if (this.tcid && res.data[1].length) {
  8290. let _inviteA = []
  8291. for (var ik = 0; ik < res.data[1].length; ik++) {
  8292. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  8293. }
  8294. for (var ik = 0; ik < _inviteA.length; ik++) {
  8295. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  8296. this.inviteCode = _inviteA[ik].ic
  8297. break;
  8298. }
  8299. }
  8300. }
  8301. for (var l = 0; l < this.chapInfoList.length; l++) {
  8302. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8303. for (var m = 0; m < w.length; m++) {
  8304. w[m].id = l + "-" + m;
  8305. }
  8306. }
  8307. if (
  8308. !this.vedio[this.taskCount][0] ||
  8309. this.vedio[this.taskCount][0].url == ""
  8310. ) {
  8311. if (
  8312. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8313. this.taskCount
  8314. ].chapterData.length > 0
  8315. ) {
  8316. // if (
  8317. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8318. // this.taskCount
  8319. // ].chapterData[0].type != 8
  8320. // ) {
  8321. let _url =
  8322. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8323. this.taskCount
  8324. ].chapterData[0].url;
  8325. if (
  8326. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8327. this.taskCount
  8328. ].chapterData[0].type == 8
  8329. ) {
  8330. this.showType = 2;
  8331. if (
  8332. _url.indexOf("https://") == -1 &&
  8333. _url.indexOf("http://") == -1
  8334. ) {
  8335. _url = "https://" + _url;
  8336. }
  8337. this.pptImgUrl1 = _url;
  8338. this.isClickNav = "line0";
  8339. } else if (
  8340. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8341. this.taskCount
  8342. ].chapterData[0].type == 3
  8343. ) {
  8344. if (
  8345. _url
  8346. .split(".")
  8347. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8348. ) {
  8349. this.showType = 3;
  8350. this.pptImgUrl1 = _url;
  8351. this.isClickNav = "word0";
  8352. } else if (
  8353. this.isAssetTypeAnImage(
  8354. _url
  8355. .split(".")
  8356. [_url.split(".").length - 1].toLocaleLowerCase()
  8357. )
  8358. ) {
  8359. this.showType = 4;
  8360. this.pptImgUrl1 = _url;
  8361. this.isClickNav = "word0";
  8362. } else {
  8363. this.showType = 2;
  8364. this.pptImgUrl1 =
  8365. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8366. _url;
  8367. this.isClickNav = "word0";
  8368. }
  8369. } else if (
  8370. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8371. this.taskCount
  8372. ].chapterData[0].type == 6
  8373. ) {
  8374. this.showType = 1;
  8375. this.text = this.textList[this.taskCount][0];
  8376. this.isClickNav = "text0";
  8377. }
  8378. }
  8379. } else {
  8380. this.isClickNav = "video0";
  8381. }
  8382. if (this.toolIndex == null && this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length) {
  8383. this.toolIndex = 0
  8384. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  8385. }
  8386. } else {
  8387. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8388. .chapterInfo[0].taskJson;
  8389. var b = [
  8390. "AVI",
  8391. "NAVI",
  8392. "MPEG",
  8393. "ASF",
  8394. "MOV",
  8395. "WMV",
  8396. "3GP",
  8397. "RM",
  8398. "RMVB",
  8399. "FLV",
  8400. "F4V",
  8401. "H.264",
  8402. "H.265",
  8403. "REAL VIDEO",
  8404. "MKV",
  8405. "WebM",
  8406. "HDDVD",
  8407. "MP4",
  8408. "MPG",
  8409. "M4V",
  8410. "MGV",
  8411. "OGV",
  8412. "QTM",
  8413. "STR",
  8414. "AMC",
  8415. "DVX",
  8416. "EVO",
  8417. "DAT",
  8418. "OGG",
  8419. "OGM",
  8420. "MP3",
  8421. ];
  8422. for (var i = 0; i < a.length; i++) {
  8423. var c = a[i].chapterData;
  8424. this.vedio[i] = [];
  8425. this.textList[i] = [];
  8426. this.lineList[i] = [];
  8427. this.chapToolList[i] = [];
  8428. this.file[i] = [];
  8429. this.fileC[i] = [];
  8430. for (var j = 0; j < c.length; j++) {
  8431. if (c[j].type == 7) {
  8432. this.chapToolList[i].push(c[j]);
  8433. } else if (c[j].type == 8) {
  8434. this.lineList[i].push(c[j]);
  8435. } else if (c[j].type == 6) {
  8436. this.textList[i].push(c[j]);
  8437. } else if (c[j].type == 12) {
  8438. this.fileC[i].push(c[j]);
  8439. } else {
  8440. if (
  8441. b.indexOf(
  8442. c[j].url
  8443. .split(".")
  8444. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8445. ) != -1
  8446. ) {
  8447. this.vedio[i].push(c[j]);
  8448. } else {
  8449. this.file[i].push(c[j]);
  8450. }
  8451. }
  8452. }
  8453. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8454. d.sources[0].src =
  8455. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8456. this.playerO[i] = d;
  8457. }
  8458. if (
  8459. !this.vedio[this.taskCount][0] ||
  8460. this.vedio[this.taskCount][0].url == ""
  8461. ) {
  8462. if (
  8463. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8464. this.taskCount
  8465. ].chapterData.length > 0
  8466. ) {
  8467. // if (
  8468. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8469. // this.taskCount
  8470. // ].chapterData[0].type != 8
  8471. // ) {
  8472. let _url =
  8473. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8474. this.taskCount
  8475. ].chapterData[0].url;
  8476. if (
  8477. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8478. this.taskCount
  8479. ].chapterData[0].type == 8
  8480. ) {
  8481. this.showType = 2;
  8482. if (
  8483. _url.indexOf("https://") == -1 &&
  8484. _url.indexOf("http://") == -1
  8485. ) {
  8486. _url = "https://" + _url;
  8487. }
  8488. this.pptImgUrl1 = _url;
  8489. this.isClickNav = "line0";
  8490. } else if (
  8491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8492. this.taskCount
  8493. ].chapterData[0].type == 3
  8494. ) {
  8495. if (
  8496. _url
  8497. .split(".")
  8498. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8499. ) {
  8500. this.showType = 3;
  8501. this.pptImgUrl1 = _url;
  8502. this.isClickNav = "word0";
  8503. } else if (
  8504. this.isAssetTypeAnImage(
  8505. _url
  8506. .split(".")
  8507. [_url.split(".").length - 1].toLocaleLowerCase()
  8508. )
  8509. ) {
  8510. this.showType = 4;
  8511. this.pptImgUrl1 = _url;
  8512. this.isClickNav = "word0";
  8513. } else {
  8514. this.showType = 2;
  8515. this.pptImgUrl1 =
  8516. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8517. _url;
  8518. this.isClickNav = "word0";
  8519. }
  8520. } else if (
  8521. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8522. this.taskCount
  8523. ].chapterData[0].type == 6
  8524. ) {
  8525. this.showType = 1;
  8526. this.text = this.textList[this.taskCount][0];
  8527. this.isClickNav = "text0";
  8528. }
  8529. }
  8530. } else {
  8531. this.isClickNav = "video0";
  8532. }
  8533. this.$forceUpdate();
  8534. }
  8535. this.$nextTick(() => {
  8536. setTimeout(() => {
  8537. this.checkEva();
  8538. }, 1000);
  8539. });
  8540. let _this = this;
  8541. if (_this.timer) {
  8542. clearInterval(_this.timer);
  8543. _this.timer = null;
  8544. }
  8545. _this.selectSWorks(gindex);
  8546. _this.selectStudent();
  8547. _this.selectSLook();
  8548. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  8549. _this.setCTask();
  8550. }
  8551. if (_this.dialogVisibleGroup) {
  8552. _this.groupJson =
  8553. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  8554. _this.taskCount
  8555. ].toolChoose[_this.toolindex].groupJson;
  8556. }
  8557. _this.timer = setInterval(function () {
  8558. _this.selectSWorks(gindex);
  8559. }, 5000);
  8560. })
  8561. .catch((err) => {
  8562. loading.close();
  8563. console.error(err);
  8564. });
  8565. },
  8566. getCourseGroup(gindex) {
  8567. let params = {
  8568. cid: this.id,
  8569. classid: this.tcid ? this.tcid : '1',
  8570. };
  8571. this.ajax
  8572. .get(this.$store.state.api + "getCourseGroup", params)
  8573. .then((res) => {
  8574. if (res.data && res.data[0].length) {
  8575. if (!this.isGroup) {
  8576. let courseGroup = JSON.parse(res.data[0][0].group)
  8577. courseGroup.group = courseGroup.group.filter(el => {
  8578. el.works = []
  8579. return el
  8580. });
  8581. this.courseGroup = courseGroup
  8582. let groupPerson = res.data[1]
  8583. let group = JSON.parse(res.data[0][0].group).group
  8584. let courseGroupStudent = {}
  8585. let courseGroupStudentUid = {}
  8586. for (var i = 0; i < group.length; i++) {
  8587. courseGroupStudent[group[i].id] = []
  8588. courseGroupStudentUid[group[i].id] = []
  8589. for (var j = 0; j < groupPerson.length; j++) {
  8590. if (groupPerson[j].groupCid == group[i].id) {
  8591. courseGroupStudent[group[i].id].push(groupPerson[j])
  8592. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  8593. }
  8594. }
  8595. }
  8596. this.courseGroupStudent = courseGroupStudent
  8597. this.courseGroupStudentUid = courseGroupStudentUid
  8598. }
  8599. this.isGroup = true
  8600. this.selectSWorks(gindex);
  8601. } else {
  8602. this.selectSWorks(gindex);
  8603. this.isGroup = false
  8604. }
  8605. })
  8606. .catch((err) => {
  8607. // this.$message.error("网络不佳");
  8608. console.error(err);
  8609. });
  8610. },
  8611. setOperationTime() {
  8612. let _this = this
  8613. if (_this.opertimer) {
  8614. clearInterval(_this.opertimer);
  8615. _this.opertimer = null;
  8616. }
  8617. _this.opertimer = setInterval(() => {
  8618. _this.setoTime('600')
  8619. }, 600000);
  8620. },
  8621. setoTime(time) {
  8622. let params = [
  8623. {
  8624. uid: this.userid,
  8625. cid: this.id,
  8626. type: '2',
  8627. time: time,
  8628. },
  8629. ];
  8630. this.ajax
  8631. .post(this.$store.state.api + "addOperationTimeT2", params)
  8632. .then((res) => {
  8633. })
  8634. .catch((err) => {
  8635. console.error(err);
  8636. });
  8637. },
  8638. addPz(type, content) {
  8639. if (type == "1" && this.pzConText == "") {
  8640. this.$message.error("批注不能为空!");
  8641. return;
  8642. }
  8643. let params = [
  8644. {
  8645. cid: this.id,
  8646. uid: this.userid,
  8647. s: this.courseType,
  8648. t: this.taskCount,
  8649. c: type == "1" ? this.pzConText : content,
  8650. type: type,
  8651. },
  8652. ];
  8653. this.ajax
  8654. .post(this.$store.state.api + "addPz2", params)
  8655. .then((res) => {
  8656. this.$message({
  8657. message: "添加成功",
  8658. type: "success",
  8659. });
  8660. this.pzConText = "";
  8661. this.addPzDialog = false;
  8662. this.selectPz();
  8663. })
  8664. .catch((err) => {
  8665. this.$message.error("添加失败");
  8666. console.error(err);
  8667. });
  8668. },
  8669. deletePz(id) {
  8670. this.$confirm("确定删除此批注吗?", "提示", {
  8671. confirmButtonText: "确定",
  8672. cancelButtonText: "取消",
  8673. type: "warning",
  8674. })
  8675. .then(() => {
  8676. let params = [
  8677. {
  8678. id: id,
  8679. },
  8680. ];
  8681. this.ajax
  8682. .post(this.$store.state.api + "deletePz", params)
  8683. .then((res) => {
  8684. this.$message({
  8685. message: "删除成功",
  8686. type: "success",
  8687. });
  8688. this.selectPz();
  8689. })
  8690. .catch((err) => {
  8691. this.$message.error("网络异常");
  8692. console.error(err);
  8693. });
  8694. })
  8695. .catch(() => { });
  8696. },
  8697. selectPz() {
  8698. let params = {
  8699. cid: this.id,
  8700. s: this.courseType,
  8701. t: this.taskCount,
  8702. };
  8703. this.ajax
  8704. .get(this.$store.state.api + "selectPzList", params)
  8705. .then((res) => {
  8706. this.pzList = res.data[0];
  8707. })
  8708. .catch((err) => {
  8709. console.error(err);
  8710. });
  8711. },
  8712. updateSLook() {
  8713. let params = {
  8714. sopen: this.sIsOpen == false ? 1 : 2,
  8715. cid: this.id,
  8716. };
  8717. this.ajax
  8718. .get(this.$store.state.api + "updateCourseSLook", params)
  8719. .then((res) => {
  8720. if (this.sIsOpen == true) {
  8721. this.$message({
  8722. message: "权限设置成功",
  8723. type: "success",
  8724. });
  8725. } else {
  8726. this.$message({
  8727. message: "权限关闭成功",
  8728. type: "success",
  8729. });
  8730. }
  8731. })
  8732. .catch((err) => {
  8733. console.error(err);
  8734. });
  8735. },
  8736. updateFollow() {
  8737. let params = [
  8738. {
  8739. sopen: this.IsFollow == false ? 1 : 2,
  8740. cid: this.id,
  8741. },
  8742. ];
  8743. this.ajax
  8744. .post(this.$store.state.api + "updateCourseFollow", params)
  8745. .then((res) => {
  8746. if (this.IsFollow == true) {
  8747. this.$message({
  8748. message: "开启成功",
  8749. type: "success",
  8750. });
  8751. } else {
  8752. this.$message({
  8753. message: "关闭成功",
  8754. type: "success",
  8755. });
  8756. }
  8757. this.setCTask();
  8758. })
  8759. .catch((err) => {
  8760. console.error(err);
  8761. });
  8762. },
  8763. setCTask() {
  8764. let params = [
  8765. {
  8766. sopen: this.courseType + '-' + this.taskCount,
  8767. cid: this.id,
  8768. },
  8769. ];
  8770. this.ajax
  8771. .post(this.$store.state.api + "updateCourseFollowC", params)
  8772. .then((res) => {
  8773. })
  8774. .catch((err) => {
  8775. console.error(err);
  8776. });
  8777. },
  8778. updateLookOpen() {
  8779. let params = [
  8780. {
  8781. sopen: this.IsLookOpen == false ? 1 : 2,
  8782. cid: this.id,
  8783. },
  8784. ];
  8785. this.ajax
  8786. .post(this.$store.state.api + "updateCourseLookOpen", params)
  8787. .then((res) => {
  8788. if (this.IsLookOpen == true) {
  8789. // if (this.courseType != 0 && this.taskCount != 0) {
  8790. // this.openTask(0, 0, "0-0");
  8791. // }
  8792. this.$message({
  8793. message: "权限设置成功",
  8794. type: "success",
  8795. });
  8796. } else {
  8797. this.$message({
  8798. message: "权限关闭成功",
  8799. type: "success",
  8800. });
  8801. }
  8802. this.getCourseState(2);
  8803. })
  8804. .catch((err) => {
  8805. console.error(err);
  8806. });
  8807. },
  8808. selectSLook() {
  8809. let params = {
  8810. cid: this.id,
  8811. };
  8812. this.ajax
  8813. .get(this.$store.state.api + "selectCourseSLook", params)
  8814. .then((res) => {
  8815. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  8816. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  8817. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  8818. if (!this.IsLookOpen) {
  8819. this.setNavList();
  8820. } else {
  8821. this.getCourseState(1);
  8822. }
  8823. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8824. let _followC = res.data[0][0].followC.split('-')
  8825. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  8826. this.navList[this.courseType].isOpen = false;
  8827. this.courseType = _followC[0]
  8828. this.navList[this.courseType].isOpen = true;
  8829. this.taskCount = parseInt(_followC[1])
  8830. this.navId = res.data[0][0].followC;
  8831. this.getCourseDetail()
  8832. }
  8833. }
  8834. })
  8835. .catch((err) => {
  8836. console.error(err);
  8837. });
  8838. },
  8839. setNavList() {
  8840. if (this.navList.length == 0) {
  8841. this.navList = [];
  8842. for (var l = 0; l < this.chapInfoList.length; l++) {
  8843. var q = this.chapInfoList[l].dyName;
  8844. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8845. var e;
  8846. this.navList.push({
  8847. dyName: q,
  8848. isOpen: l === 0 ? true : false,
  8849. task: [],
  8850. });
  8851. for (var r = 0; r < w.length; r++) {
  8852. e = w[r].task;
  8853. if (this.chapInfoList[l].easy == 1) {
  8854. this.navList[l].task.push({
  8855. taskName: q,
  8856. id: l + "-" + r,
  8857. isLook: w[r].isLook,
  8858. });
  8859. } else {
  8860. this.navList[l].task.push({
  8861. taskName: e,
  8862. id: l + "-" + r,
  8863. isLook: w[r].isLook,
  8864. });
  8865. }
  8866. // this.navId = this.navId ? this.navId : l + "-" + r;
  8867. // this.navId = l + "-" + r;
  8868. }
  8869. }
  8870. this.navList[0].isOpen = false;
  8871. this.navList[this.courseType].isOpen = true;
  8872. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8873. } else {
  8874. this.setNavList2();
  8875. }
  8876. },
  8877. setNavList2() {
  8878. for (var l = 0; l < this.chapInfoList.length; l++) {
  8879. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8880. for (var r = 0; r < w.length; r++) {
  8881. this.navList[l].task[r].isLook = w[r].isLook;
  8882. }
  8883. }
  8884. if (
  8885. this.IsLookOpen &&
  8886. !this.navList[this.courseType].task[this.taskCount].isLook
  8887. ) {
  8888. this.openTask(0, 0, "0-0");
  8889. }
  8890. this.$forceUpdate();
  8891. },
  8892. getCourseState(type) {
  8893. let params = {
  8894. cid: this.id,
  8895. };
  8896. this.ajax
  8897. .get(this.$store.state.api + "getCourseState", params)
  8898. .then((res) => {
  8899. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  8900. this.chapInfoList = JSON.parse(res.data[0][0].state);
  8901. this.setNavList();
  8902. this.$forceUpdate();
  8903. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  8904. this.addCourseState(2);
  8905. } else {
  8906. this.addCourseState(1);
  8907. }
  8908. })
  8909. .catch((err) => {
  8910. console.error(err);
  8911. });
  8912. },
  8913. addCourseState(type) {
  8914. let _state = this.chapInfoList;
  8915. // this.courseType this.taskCount
  8916. if (type == 1 || type == 2) {
  8917. for (var i = 0; i < _state.length; i++) {
  8918. let el = _state[i].chapterInfo[0].taskJson;
  8919. for (var j = 0; j < el.length; j++) {
  8920. // if (i == 0 && j == 0) {
  8921. // el[j].isLook = true;
  8922. // } else {
  8923. // el[j].isLook = false;
  8924. // }
  8925. if (
  8926. this.courseType > i ||
  8927. (this.courseType == i && this.taskCount + 1 > j)
  8928. ) {
  8929. el[j].isLook = true;
  8930. } else {
  8931. el[j].isLook = false;
  8932. }
  8933. }
  8934. }
  8935. }
  8936. let params = [
  8937. {
  8938. cid: this.id,
  8939. state: JSON.stringify(_state),
  8940. },
  8941. ];
  8942. this.ajax
  8943. .post(
  8944. this.$store.state.api +
  8945. (type == 1 ? "addCourseState" : "updateCourseSate"),
  8946. params
  8947. )
  8948. .then((res) => {
  8949. if (this.IsLookOpen) {
  8950. this.setNavList();
  8951. }
  8952. if (type == 3 && type == 2) {
  8953. this.getCourseState(1);
  8954. }
  8955. })
  8956. .catch((err) => {
  8957. console.error(err);
  8958. });
  8959. },
  8960. getHomeWork() {
  8961. let params = {
  8962. cid: this.id,
  8963. stage: this.courseType,
  8964. task: this.taskCount,
  8965. uid: this.userid,
  8966. };
  8967. this.ajax
  8968. .get(this.$store.state.api + "selectWork", params)
  8969. .then((res) => {
  8970. if (res.data[0].length > 0) {
  8971. this.studyJuri = JSON.parse(res.data[0][0].content);
  8972. this.isNoHomeWork = true;
  8973. }
  8974. })
  8975. .catch((err) => {
  8976. console.error(err);
  8977. });
  8978. },
  8979. isAssetTypeAnImage(ext) {
  8980. return (
  8981. [
  8982. "png",
  8983. "jpg",
  8984. "jpeg",
  8985. "bmp",
  8986. "gif",
  8987. "webp",
  8988. "psd",
  8989. "svg",
  8990. "tiff",
  8991. ].indexOf(ext) !== -1
  8992. );
  8993. },
  8994. switchVideo(media) {
  8995. this.playerO = {};
  8996. this.playerOptions.poster = "";
  8997. this.playerOptions.sources[0].src = media;
  8998. this.playerO = this.playerOptions;
  8999. },
  9000. onPlayerPlay() { },
  9001. lookVedio(u, i) {
  9002. this.isClickNav = "";
  9003. // this.playerOptions.sources[0].src = u;
  9004. var d = JSON.parse(JSON.stringify(this.playerOptions));
  9005. d.sources[0].src = u;
  9006. this.playerO[this.taskCount] = d;
  9007. this.showType = 0;
  9008. this.isClickNav = "video" + i;
  9009. this.$forceUpdate();
  9010. },
  9011. lookText(i, t) {
  9012. this.isClickNav = "";
  9013. this.text = this.textList[i][t];
  9014. // this.dialogVisible1 = true;
  9015. this.showType = 1;
  9016. this.isClickNav = "text" + t;
  9017. },
  9018. lookTools(i, t) {
  9019. this.chapTools = this.chapToolList[i][t];
  9020. this.dialogVisible2 = true;
  9021. },
  9022. openFile(f) {
  9023. this.pptImgUrl = "";
  9024. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  9025. if (
  9026. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  9027. -1
  9028. ) {
  9029. this.pptImgUrl =
  9030. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  9031. this.showPDF = false;
  9032. this.dialogVisible3 = true;
  9033. } else if (
  9034. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9035. ) {
  9036. this.pptImgUrl = f;
  9037. this.showPDF = true;
  9038. this.dialogVisible3 = true;
  9039. }
  9040. },
  9041. openTable(f) {
  9042. this.tableJson = JSON.parse(f.works);
  9043. this.$forceUpdate();
  9044. this.dialogVisibleTable2 = true;
  9045. },
  9046. openWord(f) {
  9047. this.tableJson = JSON.parse(f.works);
  9048. this.$forceUpdate();
  9049. this.dialogVisibleTable3 = true;
  9050. },
  9051. doUrl(url, i) {
  9052. this.isClickNav = "";
  9053. this.pptImgUrl1 = "";
  9054. this.showType = 2;
  9055. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  9056. url = "https://" + url;
  9057. }
  9058. this.pptImgUrl1 = url;
  9059. this.isClickNav = "line" + i;
  9060. },
  9061. downFile(f, i) {
  9062. this.isClickNav = "";
  9063. this.pptImgUrl1 = "";
  9064. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  9065. if (
  9066. a.indexOf(
  9067. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  9068. ) != -1
  9069. ) {
  9070. this.pptImgUrl1 =
  9071. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  9072. // this.dialogVisible3 = true;
  9073. this.showType = 2;
  9074. } else if (
  9075. this.isAssetTypeAnImage(
  9076. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  9077. )
  9078. ) {
  9079. this.showType = 4;
  9080. this.pptImgUrl1 = f.url;
  9081. } else if (
  9082. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  9083. "PDF"
  9084. ) {
  9085. this.pptImgUrl1 = f.url;
  9086. // this.dialogVisible3 = true;
  9087. this.showType = 3;
  9088. } else {
  9089. window.open(this.file[i].url);
  9090. }
  9091. this.isClickNav = "word" + i;
  9092. },
  9093. downFileList(i) {
  9094. window.open(this.noImgList[i].url);
  9095. },
  9096. openAddWork() {
  9097. this.dialogVisible = true;
  9098. },
  9099. addBzWorks() {
  9100. let params = [
  9101. {
  9102. uid: this.userid,
  9103. cid: this.id,
  9104. stage: this.courseType,
  9105. task: this.taskCount,
  9106. tool: this.toolindex,
  9107. content: JSON.stringify(this.eScore),
  9108. type: 6,
  9109. },
  9110. ];
  9111. this.ajax
  9112. .post(this.$store.state.api + "addCourseWorks", params)
  9113. .then((res) => {
  9114. this.$message({
  9115. message: "提交成功",
  9116. type: "success",
  9117. });
  9118. this.eScore = { eBzText: "", eStar: [] };
  9119. this.studentEvalDialogVisible = false;
  9120. this.selectSWorks();
  9121. })
  9122. .catch((err) => {
  9123. this.$message.error("提交失败");
  9124. console.error(err);
  9125. });
  9126. },
  9127. addBzWorksTeacher() {
  9128. let params = [
  9129. {
  9130. uid: this.sStudent.userid,
  9131. cid: this.id,
  9132. stage: this.courseType,
  9133. task: this.taskCount,
  9134. tool: this.toolindex,
  9135. content: JSON.stringify(this.eScore),
  9136. type: 6,
  9137. },
  9138. ];
  9139. this.ajax
  9140. .post(this.$store.state.api + "addCourseWorks", params)
  9141. .then((res) => {
  9142. this.$message({
  9143. message: "提交成功",
  9144. type: "success",
  9145. });
  9146. this.eScore = { eBzText: "", eStar: [] };
  9147. this.studentEvalDialogVisibleTeacher = false;
  9148. this.selectSWorks();
  9149. })
  9150. .catch((err) => {
  9151. this.$message.error("提交失败");
  9152. console.error(err);
  9153. });
  9154. },
  9155. addStudentAsk() {
  9156. if (!this.radio.length) {
  9157. this.$message.error("请选择选项");
  9158. return;
  9159. }
  9160. for (var i = 0; i < this.askJson.askCount; i++) {
  9161. if (
  9162. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9163. (this.radio[i] !== 0 && !this.radio[i])
  9164. ) {
  9165. this.$message.error("请选择选项");
  9166. return;
  9167. }
  9168. }
  9169. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  9170. let params = [
  9171. {
  9172. uid: this.userid,
  9173. cid: this.id,
  9174. stage: this.courseType,
  9175. task: this.taskCount,
  9176. tool: this.toolindex,
  9177. content: JSON.stringify(this.askList),
  9178. type: 2,
  9179. },
  9180. ];
  9181. this.ajax
  9182. .post(this.$store.state.api + "addCourseWorks", params)
  9183. .then((res) => {
  9184. this.$message({
  9185. message: "提交成功",
  9186. type: "success",
  9187. });
  9188. this.askList = [];
  9189. this.dialogVisible5 = false;
  9190. this.selectStudent();
  9191. this.selectSWorks();
  9192. this.selectSLook();
  9193. })
  9194. .catch((err) => {
  9195. this.$message.error("提交失败");
  9196. console.error(err);
  9197. });
  9198. },
  9199. addStudentAskTeacher() {
  9200. if (!this.radio.length) {
  9201. this.$message.error("请选择选项");
  9202. return;
  9203. }
  9204. for (var i = 0; i < this.askJson.askCount; i++) {
  9205. if (
  9206. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9207. (this.radio[i] !== 0 && !this.radio[i])
  9208. ) {
  9209. this.$message.error("请选择选项");
  9210. return;
  9211. }
  9212. }
  9213. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  9214. let params = [
  9215. {
  9216. uid: this.sStudent.userid,
  9217. cid: this.id,
  9218. stage: this.courseType,
  9219. task: this.taskCount,
  9220. tool: this.toolindex,
  9221. content: JSON.stringify(this.askList),
  9222. type: 2,
  9223. },
  9224. ];
  9225. this.ajax
  9226. .post(this.$store.state.api + "addCourseWorks", params)
  9227. .then((res) => {
  9228. this.$message({
  9229. message: "提交成功",
  9230. type: "success",
  9231. });
  9232. this.askList = [];
  9233. this.dialogVisible5Teacher = false;
  9234. this.selectStudent();
  9235. this.selectSWorks();
  9236. this.selectSLook();
  9237. })
  9238. .catch((err) => {
  9239. this.$message.error("提交失败");
  9240. console.error(err);
  9241. });
  9242. },
  9243. addStudentTest() {
  9244. if (!this.radio.length) {
  9245. this.$message.error("请选择选项");
  9246. return;
  9247. }
  9248. for (var i = 0; i < this.testJson.testCount; i++) {
  9249. if (
  9250. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9251. (this.radio[i] !== 0 && !this.radio[i])
  9252. ) {
  9253. this.$message.error("请选择选项");
  9254. return;
  9255. }
  9256. }
  9257. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9258. let params = [
  9259. {
  9260. uid: this.userid,
  9261. cid: this.id,
  9262. stage: this.courseType,
  9263. task: this.taskCount,
  9264. tool: this.toolindex,
  9265. content: JSON.stringify(this.askList),
  9266. type: 8,
  9267. },
  9268. ];
  9269. this.ajax
  9270. .post(this.$store.state.api + "addCourseWorks", params)
  9271. .then((res) => {
  9272. this.$message({
  9273. message: "提交成功",
  9274. type: "success",
  9275. });
  9276. this.askList = [];
  9277. this.dialogVisibleChoice = false;
  9278. this.selectStudent();
  9279. this.selectSWorks();
  9280. this.selectSLook();
  9281. })
  9282. .catch((err) => {
  9283. this.$message.error("提交失败");
  9284. console.error(err);
  9285. });
  9286. },
  9287. addStudentTestTeacher() {
  9288. if (!this.radio.length) {
  9289. this.$message.error("请选择选项");
  9290. return;
  9291. }
  9292. for (var i = 0; i < this.testJson.testCount; i++) {
  9293. if (
  9294. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9295. (this.radio[i] !== 0 && !this.radio[i])
  9296. ) {
  9297. this.$message.error("请选择选项");
  9298. return;
  9299. }
  9300. }
  9301. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9302. let params = [
  9303. {
  9304. uid: this.sStudent.userid,
  9305. cid: this.id,
  9306. stage: this.courseType,
  9307. task: this.taskCount,
  9308. tool: this.toolindex,
  9309. content: JSON.stringify(this.askList),
  9310. type: 8,
  9311. },
  9312. ];
  9313. this.ajax
  9314. .post(this.$store.state.api + "addCourseWorks", params)
  9315. .then((res) => {
  9316. this.$message({
  9317. message: "提交成功",
  9318. type: "success",
  9319. });
  9320. this.askList = [];
  9321. this.dialogVisibleChoiceTeacher = false;
  9322. this.selectStudent();
  9323. this.selectSWorks();
  9324. this.selectSLook();
  9325. })
  9326. .catch((err) => {
  9327. this.$message.error("提交失败");
  9328. console.error(err);
  9329. });
  9330. },
  9331. addWork() {
  9332. if (this.studyJuri[0].content == "") {
  9333. this.$message.error("请将信息填写完整");
  9334. return;
  9335. } else if (this.studyJuri[0].cover.length == 0) {
  9336. this.$message.error("请将信息填写完整");
  9337. return;
  9338. } else if (this.studyJuri[0].upVedio.length == 0) {
  9339. this.$message.error("请将信息填写完整");
  9340. return;
  9341. }
  9342. if (this.isNoHomeWork) {
  9343. this.$confirm(
  9344. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  9345. "提示",
  9346. {
  9347. confirmButtonText: "确定",
  9348. cancelButtonText: "取消",
  9349. type: "warning",
  9350. }
  9351. )
  9352. .then(() => {
  9353. let params = [
  9354. {
  9355. uid: this.userid,
  9356. cid: this.id,
  9357. stage: this.courseType,
  9358. task: this.taskCount,
  9359. content: JSON.stringify(this.studyJuri),
  9360. },
  9361. ];
  9362. this.ajax
  9363. .post(this.$store.state.api + "addWorks", params)
  9364. .then((res) => {
  9365. this.$message({
  9366. message: "提交成功",
  9367. type: "success",
  9368. });
  9369. this.isNoHomeWork = true;
  9370. this.dialogVisible = false;
  9371. })
  9372. .catch((err) => {
  9373. this.$message.error("提交失败");
  9374. console.error(err);
  9375. });
  9376. })
  9377. .catch(() => { });
  9378. } else {
  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. },
  9404. selectCount() {
  9405. let params = {
  9406. cid: this.id,
  9407. chid: this.courseType,
  9408. uid: this.userid,
  9409. };
  9410. this.ajax
  9411. .get(this.$store.state.api + "selectToolsCount", params)
  9412. .then((res) => {
  9413. for (var i = 0; i < res.data[0].length; i++) {
  9414. if (res.data[0][i].tools == 1) {
  9415. this.wbCount = res.data[0][i].count;
  9416. } else if (res.data[0][i].tools == 2) {
  9417. this.wordCount = res.data[0][i].count;
  9418. } else if (res.data[0][i].tools == 3) {
  9419. this.mindCount = res.data[0][i].count;
  9420. } else if (res.data[0][i].tools == 4) {
  9421. this.askCount = res.data[0][i].count;
  9422. } else if (res.data[0][i].tools == 6) {
  9423. this.noteCount = res.data[0][i].count;
  9424. } else if (res.data[0][i].tools == 7) {
  9425. this.mindNetWorkCount = res.data[0][i].count;
  9426. } else if (res.data[0][i].tools == 8) {
  9427. this.libraryCount = res.data[0][i].count;
  9428. } else if (res.data[0][i].tools == 16) {
  9429. this.workCount = res.data[0][i].count;
  9430. } else if (res.data[0][i].tools == 10) {
  9431. this.timeCount = res.data[0][i].count;
  9432. } else if (res.data[0][i].tools == 15) {
  9433. this.answerCount = res.data[0][i].count;
  9434. } else if (res.data[0][i].tools == 18) {
  9435. this.trainCount = res.data[0][i].count;
  9436. }
  9437. }
  9438. })
  9439. .catch((err) => {
  9440. console.error(err);
  9441. });
  9442. },
  9443. openTools(t, i, index, c, sName) {
  9444. var z = JSON.parse(c);
  9445. this.noteName = sName;
  9446. if (t == 4) {
  9447. this.radio = [];
  9448. this.isAnswer = false;
  9449. let b = z[0].anwer;
  9450. this.radio = b;
  9451. this.askJson = z[0].askJson;
  9452. this.isAnswer = true;
  9453. this.dialogVisible5 = true;
  9454. } else if (t == 45) {
  9455. this.radio = [];
  9456. this.isAnswer = false;
  9457. let b = z[0].anwer;
  9458. this.radio = b;
  9459. this.testJson = z[0].testJson;
  9460. this.isAnswer = true;
  9461. this.dialogVisibleChoice = true;
  9462. }
  9463. // else if (t == 15) {
  9464. // this.answerQ = "";
  9465. // this.questionAnswer = "";
  9466. // this.answerQ = z[0].answerTitle;
  9467. // this.questionAnswer = z[0].answer;
  9468. // this.answerDialogVisible = true;
  9469. // }
  9470. },
  9471. fastText(p, t) {
  9472. if (t == 1) {
  9473. this.commentText += p;
  9474. } else {
  9475. this.eScore.eBzText += p;
  9476. }
  9477. },
  9478. addTools(t, i, index) {
  9479. var a = 0;
  9480. // this.taskCount = index;
  9481. this.toolindex = i;
  9482. if (t == 1) {
  9483. if (this.wbCount > 0) {
  9484. this.updateCount(this.wbCount, t);
  9485. } else {
  9486. this.wbCount++;
  9487. a = this.wbCount;
  9488. this.toolsCount(a, t);
  9489. }
  9490. window.parent.postMessage(
  9491. {
  9492. tools: "1",
  9493. cid: this.id,
  9494. stage: this.courseType,
  9495. task: this.taskCount,
  9496. tool: i,
  9497. },
  9498. "*"
  9499. );
  9500. } else if (t == 2) {
  9501. if (this.wordCount > 0) {
  9502. this.updateCount(this.wordCount, t);
  9503. } else {
  9504. this.wordCount++;
  9505. a = this.wordCount;
  9506. this.toolsCount(a, t);
  9507. }
  9508. window.parent.postMessage({ tools: "2" }, "*");
  9509. } else if (t == 3) {
  9510. if (this.mindCount > 0) {
  9511. this.updateCount(this.mindCount, t);
  9512. } else {
  9513. this.mindCount++;
  9514. a = this.mindCount;
  9515. this.toolsCount(a, t);
  9516. }
  9517. window.parent.postMessage(
  9518. {
  9519. tools: "3",
  9520. cid: this.id,
  9521. stage: this.courseType,
  9522. task: this.taskCount,
  9523. tool: i,
  9524. },
  9525. "*"
  9526. );
  9527. } else if (t == 4) {
  9528. this.radio = [];
  9529. this.noteName = "";
  9530. this.isAnswer = false;
  9531. if (this.askCount > 0) {
  9532. this.updateCount(this.askCount, t);
  9533. } else {
  9534. this.askCount++;
  9535. a = this.askCount;
  9536. this.toolsCount(a, t);
  9537. }
  9538. this.askJson.askJson =
  9539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9540. index
  9541. ].toolChoose[i].askJson;
  9542. this.askJson.askTitle =
  9543. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9544. index
  9545. ].toolChoose[i].askTitle;
  9546. this.askJson.askCount =
  9547. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9548. index
  9549. ].toolChoose[i].askCount;
  9550. for (var k = 0; k < this.askJson.askJson.length; k++) {
  9551. if (this.askJson.askJson[k].type == "2") {
  9552. this.radio.push([]);
  9553. } else {
  9554. this.radio.push("");
  9555. }
  9556. }
  9557. this.dialogVisible5 = true;
  9558. // window.parent.postMessage({ tools: "4" }, "*");
  9559. } else if (t == 45) {
  9560. this.noteName = "";
  9561. this.radio = [];
  9562. this.isAnswer = false;
  9563. if (this.askCount > 0) {
  9564. this.updateCount(this.askCount, t);
  9565. } else {
  9566. this.askCount++;
  9567. a = this.askCount;
  9568. this.toolsCount(a, t);
  9569. }
  9570. this.testJson =
  9571. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9572. index
  9573. ].toolChoose[i].testJson;
  9574. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9575. if (this.testJson.testJson[k].type == "2") {
  9576. this.radio.push([]);
  9577. } else {
  9578. this.radio.push("");
  9579. }
  9580. }
  9581. this.dialogVisibleChoice = true;
  9582. // window.parent.postMessage({ tools: "4" }, "*");
  9583. } else if (t == 5) {
  9584. if (this.scoreCount > 0) {
  9585. this.updateCount(this.scoreCount, t);
  9586. } else {
  9587. this.scoreCount++;
  9588. a = this.scoreCount;
  9589. this.toolsCount(a, t);
  9590. }
  9591. this.dialogVisible4 = true;
  9592. // window.parent.postMessage({ tools: "5" }, "*");
  9593. } else if (t == 6) {
  9594. if (this.noteCount > 0) {
  9595. this.updateCount(this.noteCount, t);
  9596. } else {
  9597. this.noteCount++;
  9598. a = this.noteCount;
  9599. this.toolsCount(a, t);
  9600. }
  9601. window.parent.postMessage(
  9602. {
  9603. tools: "6",
  9604. cid: this.id,
  9605. stage: this.courseType,
  9606. task: this.taskCount,
  9607. tool: i,
  9608. },
  9609. "*"
  9610. );
  9611. } else if (t == 7) {
  9612. if (this.mindNetWorkCount > 0) {
  9613. this.updateCount(this.mindNetWorkCount, t);
  9614. } else {
  9615. this.mindNetWorkCount++;
  9616. a = this.mindNetWorkCount;
  9617. this.toolsCount(a, t);
  9618. }
  9619. window.parent.postMessage(
  9620. {
  9621. tools: "7",
  9622. cid: this.id,
  9623. stage: this.courseType,
  9624. task: this.taskCount,
  9625. tool: i,
  9626. },
  9627. "*"
  9628. );
  9629. } else if (t == 16) {
  9630. if (this.workCount > 0) {
  9631. this.updateCount(this.workCount, t);
  9632. } else {
  9633. this.workCount++;
  9634. a = this.workCount;
  9635. this.toolsCount(a, t);
  9636. }
  9637. this.dialogVisible = true;
  9638. } else if (t == 50) {
  9639. if (this.tType == 2) {
  9640. this.$message.error("不支持学生使用");
  9641. return;
  9642. }
  9643. this.plworkFile = [];
  9644. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  9645. this.selectUploadStudent();
  9646. this.dialogVisiblePl = true;
  9647. } else if (t == 8) {
  9648. if (this.libraryCount > 0) {
  9649. this.updateCount(this.libraryCount, t);
  9650. } else {
  9651. this.libraryCount++;
  9652. a = this.libraryCount;
  9653. this.toolsCount(a, t);
  9654. }
  9655. window.parent.postMessage({ tools: "8" }, "*");
  9656. } else if (t == 17) {
  9657. if (this.libraryCount > 0) {
  9658. this.updateCount(this.libraryCount, t);
  9659. } else {
  9660. this.libraryCount++;
  9661. a = this.libraryCount;
  9662. this.toolsCount(a, t);
  9663. }
  9664. window.parent.postMessage({ tools: "17" }, "*");
  9665. } else if (t == 18) {
  9666. if (this.trainCount > 0) {
  9667. this.updateCount(this.trainCount, t);
  9668. } else {
  9669. this.trainCount++;
  9670. a = this.trainCount;
  9671. this.toolsCount(a, t);
  9672. }
  9673. window.parent.postMessage({ tools: "18" }, "*");
  9674. } else if (t == 10) {
  9675. if (this.timeCount > 0) {
  9676. this.updateCount(this.timeCount, t);
  9677. } else {
  9678. this.timeCount++;
  9679. a = this.timeCount;
  9680. this.toolsCount(a, t);
  9681. }
  9682. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  9683. .taskJson[index].toolChoose[i].preTime
  9684. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9685. .toolChoose[i].preTime
  9686. : "";
  9687. this.timeDialogVisible = true;
  9688. } else if (t == 15) {
  9689. this.answerQ = "";
  9690. this.questionAnswer = "";
  9691. if (this.answerCount > 0) {
  9692. this.updateCount(this.answerCount, t);
  9693. } else {
  9694. this.answerCount++;
  9695. a = this.answerCount;
  9696. this.toolsCount(a, t);
  9697. }
  9698. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  9699. .taskJson[index].toolChoose[i].answerQ
  9700. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9701. .toolChoose[i].answerQ
  9702. : "";
  9703. this.answerDialogVisible = true;
  9704. } else if (t == 21) {
  9705. window.parent.postMessage({ tools: "21" }, "*");
  9706. } else if (t == 22) {
  9707. window.parent.postMessage({ tools: "22" }, "*");
  9708. } else if (t == 23) {
  9709. window.parent.postMessage({ tools: "23" }, "*");
  9710. } else if (t == 24) {
  9711. window.parent.postMessage({ tools: "24" }, "*");
  9712. } else if (t == 25) {
  9713. window.parent.postMessage({ tools: "25" }, "*");
  9714. } else if (t == 31) {
  9715. window.parent.postMessage({ tools: "31" }, "*");
  9716. } else if (t == 28) {
  9717. window.parent.postMessage({ tools: "28" }, "*");
  9718. } else if (t == 37) {
  9719. window.parent.postMessage({ tools: "37" }, "*");
  9720. } else if (t == 38) {
  9721. window.parent.postMessage({ tools: "38" }, "*");
  9722. } else if (t == 39) {
  9723. window.parent.postMessage({ tools: "39" }, "*");
  9724. } else if (t == 32) {
  9725. window.parent.postMessage({ tools: "32" }, "*");
  9726. } else if (t == 57) {
  9727. window.parent.postMessage({ tools: "57" }, "*");
  9728. } else if (t == 58) {
  9729. window.parent.postMessage({ tools: "58" }, "*");
  9730. } else if (t == 59) {
  9731. window.parent.postMessage({ tools: "59" }, "*");
  9732. } else if (t == 60) {
  9733. window.parent.postMessage({ tools: "60" }, "*");
  9734. } else if (t == 61) {
  9735. window.parent.postMessage({ tools: "61" }, "*");
  9736. } else if (t == 63) {
  9737. window.parent.postMessage({ tools: "63" }, "*");
  9738. } else if (t == 26) {
  9739. window.parent.postMessage(
  9740. {
  9741. tools: "26",
  9742. cid: this.id,
  9743. stage: this.courseType,
  9744. task: this.taskCount,
  9745. tool: i,
  9746. },
  9747. "*"
  9748. );
  9749. } else if (t == 40) {
  9750. if (this.evalCount > 0) {
  9751. this.updateCount(this.evalCount, t);
  9752. } else {
  9753. this.evalCount++;
  9754. a = this.evalCount;
  9755. this.toolsCount(a, t);
  9756. }
  9757. this.eScore = { eBzText: "", eStar: [] };
  9758. if (this.worksStudent[i].length) {
  9759. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9760. if (this.userid == this.worksStudent[i][k].userid) {
  9761. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  9762. this.rateJson =
  9763. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9764. index
  9765. ].toolChoose[i].rateJson;
  9766. break;
  9767. } else {
  9768. this.rateJson =
  9769. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9770. index
  9771. ].toolChoose[i].rateJson;
  9772. }
  9773. }
  9774. } else {
  9775. this.rateJson =
  9776. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9777. index
  9778. ].toolChoose[i].rateJson;
  9779. }
  9780. this.isStar = false;
  9781. this.studentEvalDialogVisible = true;
  9782. } else if (t == 41) {
  9783. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9784. .taskJson[index].toolChoose[i].selectJson
  9785. ? JSON.parse(
  9786. JSON.stringify(
  9787. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9788. index
  9789. ].toolChoose[i].selectJson
  9790. )
  9791. )
  9792. : { url: "", select: [], answer: [] };
  9793. if (this.worksStudent[i].length) {
  9794. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9795. if (this.userid == this.worksStudent[i][k].userid) {
  9796. var a = this.worksStudent[i][k].works.split(",");
  9797. for (var ki = 0; ki < a.length; ki++) {
  9798. a[ki] = parseInt(a[ki]);
  9799. }
  9800. this.selectAnswer = {
  9801. answer: a,
  9802. stu: this.worksStudent[i][k].sName,
  9803. };
  9804. break;
  9805. } else {
  9806. this.selectAnswer = { answer: [], stu: "" };
  9807. }
  9808. }
  9809. } else {
  9810. this.selectAnswer = { answer: [], stu: "" };
  9811. }
  9812. this.isSelect = false;
  9813. this.dialogVisibleSelect = true;
  9814. } else if (t == 44) {
  9815. window.parent.postMessage({ tools: "44" }, "*");
  9816. } else if (t == 47) {
  9817. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  9818. .taskJson[index].toolChoose[i].sentenceList
  9819. ? JSON.parse(
  9820. JSON.stringify(
  9821. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9822. index
  9823. ].toolChoose[i].sentenceList
  9824. )
  9825. )
  9826. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  9827. for (var q = 0; q < this.sentenceList.length; q++) {
  9828. this.sentenceList[q].chooseSenList = [];
  9829. this.sentenceList[q].addChangeSen = [];
  9830. this.sentenceList[q].addChangeSen = JSON.parse(
  9831. JSON.stringify(this.sentenceList[q].addSentence)
  9832. );
  9833. this.sentenceList[q].chooseSenList.length =
  9834. this.sentenceList[q].rightAnswer.length;
  9835. }
  9836. this.dialogVisibleSentence = true;
  9837. } else if (t == 48) {
  9838. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9839. .taskJson[index].toolChoose[i].tableJson
  9840. ? JSON.parse(
  9841. JSON.stringify(
  9842. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9843. index
  9844. ].toolChoose[i].tableJson
  9845. )
  9846. )
  9847. : { text: "" };
  9848. if (this.worksStudent[i].length) {
  9849. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9850. if (this.userid == this.worksStudent[i][k].userid) {
  9851. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  9852. break;
  9853. }
  9854. }
  9855. }
  9856. this.dialogVisibleTable = true;
  9857. } else if (t == 52) {
  9858. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9859. .taskJson[index].toolChoose[i].wordJson
  9860. ? JSON.parse(
  9861. JSON.stringify(
  9862. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9863. index
  9864. ].toolChoose[i].wordJson
  9865. )
  9866. )
  9867. : { text: "" };
  9868. this.dialogVisibleWord = true;
  9869. } else if (t == 49) {
  9870. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  9871. return
  9872. }
  9873. this.groupJson =
  9874. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9875. index
  9876. ].toolChoose[i].groupJson;
  9877. this.dialogVisibleGroup = true;
  9878. } else if (t == 62) {
  9879. this.videoJson =
  9880. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9881. index
  9882. ].toolChoose[i].videoJson;
  9883. this.dialogVisibleVideo = true;
  9884. }
  9885. },
  9886. teacherWorkSubmit(t, i, index, s) {
  9887. this.sStudent = s;
  9888. this.sTool = t;
  9889. this.toolindex = i;
  9890. if (this.tType !== "1" && this.tType !== "4") {
  9891. return;
  9892. }
  9893. if (t == 16 || t == 32 || t == 57 || t == 50) {
  9894. this.dialogVisibleWorks = true; //作业提交
  9895. } else if (t == 15) {
  9896. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  9897. .taskJson[index].toolChoose[i].answerQ
  9898. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9899. .toolChoose[i].answerQ
  9900. : "";
  9901. this.questionAnswer = ''
  9902. this.answerDialogVisibleTeacher = true;//问答
  9903. } else if (t == 52) {
  9904. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9905. .taskJson[index].toolChoose[i].wordJson
  9906. ? JSON.parse(
  9907. JSON.stringify(
  9908. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9909. index
  9910. ].toolChoose[i].wordJson
  9911. )
  9912. )
  9913. : { text: "" };
  9914. this.dialogVisibleWordTeacher = true;//文档
  9915. } else if (t == 4) {
  9916. this.radio = [];
  9917. this.noteName = "";
  9918. this.isAnswer = false;
  9919. if (this.askCount > 0) {
  9920. this.updateCount(this.askCount, t);
  9921. } else {
  9922. this.askCount++;
  9923. a = this.askCount;
  9924. this.toolsCount(a, t);
  9925. }
  9926. if (!this.dialogVisible2) {
  9927. this.askJson.askJson =
  9928. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9929. index
  9930. ].toolChoose[i].askJson;
  9931. this.askJson.askTitle =
  9932. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9933. index
  9934. ].toolChoose[i].askTitle;
  9935. this.askJson.askCount =
  9936. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9937. index
  9938. ].toolChoose[i].askCount;
  9939. } else {
  9940. this.askJson.askJson = this.chapTools.askJson.askJson;
  9941. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  9942. this.askJson.askCount = this.chapTools.askJson.askCount;
  9943. }
  9944. this.dialogVisible5Teacher = true;
  9945. } else if (t == 45) {
  9946. this.noteName = "";
  9947. this.radio = [];
  9948. this.isAnswer = false;
  9949. if (this.askCount > 0) {
  9950. this.updateCount(this.askCount, t);
  9951. } else {
  9952. this.askCount++;
  9953. a = this.askCount;
  9954. this.toolsCount(a, t);
  9955. }
  9956. this.testJson =
  9957. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9958. index
  9959. ].toolChoose[i].testJson;
  9960. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9961. if (this.testJson.testJson[k].type == "2") {
  9962. this.radio.push([]);
  9963. } else {
  9964. this.radio.push("");
  9965. }
  9966. }
  9967. this.dialogVisibleChoiceTeacher = true;
  9968. } else if (t == 41) {
  9969. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9970. .taskJson[index].toolChoose[i].selectJson
  9971. ? JSON.parse(
  9972. JSON.stringify(
  9973. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9974. index
  9975. ].toolChoose[i].selectJson
  9976. )
  9977. )
  9978. : { url: "", select: [], answer: [] };
  9979. if (this.worksStudent[i].length) {
  9980. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9981. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  9982. var a = this.worksStudent[i][k].works.split(",");
  9983. for (var ki = 0; ki < a.length; ki++) {
  9984. a[ki] = parseInt(a[ki]);
  9985. }
  9986. this.selectAnswer = {
  9987. answer: a,
  9988. stu: this.worksStudent[i][k].sName,
  9989. };
  9990. break;
  9991. } else {
  9992. this.selectAnswer = { answer: [], stu: "" };
  9993. }
  9994. }
  9995. } else {
  9996. this.selectAnswer = { answer: [], stu: "" };
  9997. }
  9998. this.isSelect = false;
  9999. this.dialogVisibleSelectTeacher = true;
  10000. } else if (t == 47) {
  10001. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  10002. .taskJson[index].toolChoose[i].sentenceList
  10003. ? JSON.parse(
  10004. JSON.stringify(
  10005. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10006. index
  10007. ].toolChoose[i].sentenceList
  10008. )
  10009. )
  10010. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  10011. for (var q = 0; q < this.sentenceList.length; q++) {
  10012. this.sentenceList[q].chooseSenList = [];
  10013. this.sentenceList[q].addChangeSen = [];
  10014. this.sentenceList[q].addChangeSen = JSON.parse(
  10015. JSON.stringify(this.sentenceList[q].addSentence)
  10016. );
  10017. this.sentenceList[q].chooseSenList.length =
  10018. this.sentenceList[q].rightAnswer.length;
  10019. }
  10020. this.dialogVisibleSentenceTeacher = true;
  10021. } else if (t == 48) {
  10022. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10023. .taskJson[index].toolChoose[i].tableJson
  10024. ? JSON.parse(
  10025. JSON.stringify(
  10026. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10027. index
  10028. ].toolChoose[i].tableJson
  10029. )
  10030. )
  10031. : { text: "" };
  10032. if (this.worksStudent[i].length) {
  10033. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10034. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10035. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  10036. break;
  10037. }
  10038. }
  10039. }
  10040. this.dialogVisibleTableTeacher = true;
  10041. } else if (t == 40) {
  10042. if (this.evalCount > 0) {
  10043. this.updateCount(this.evalCount, t);
  10044. } else {
  10045. this.evalCount++;
  10046. a = this.evalCount;
  10047. this.toolsCount(a, t);
  10048. }
  10049. this.eScore = { eBzText: "", eStar: [] };
  10050. if (this.worksStudent[i].length) {
  10051. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10052. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10053. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  10054. this.rateJson =
  10055. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10056. index
  10057. ].toolChoose[i].rateJson;
  10058. break;
  10059. } else {
  10060. this.rateJson =
  10061. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10062. index
  10063. ].toolChoose[i].rateJson;
  10064. }
  10065. }
  10066. } else {
  10067. this.rateJson =
  10068. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10069. index
  10070. ].toolChoose[i].rateJson;
  10071. }
  10072. this.isStar = false;
  10073. this.studentEvalDialogVisibleTeacher = true;
  10074. } else if (t == 3 || t == 1 || t == 7) {
  10075. window.parent.postMessage(
  10076. {
  10077. tools: t + 'teacher',
  10078. cid: this.id,
  10079. stage: this.courseType,
  10080. task: this.taskCount,
  10081. tool: i,
  10082. student: this.sStudent,
  10083. },
  10084. "*"
  10085. );
  10086. }
  10087. },
  10088. setRightAnswer(s, i, j) {
  10089. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  10090. if (
  10091. this.sentenceList[i].chooseSenList[q] == undefined ||
  10092. this.sentenceList[i].chooseSenList[q] == ""
  10093. ) {
  10094. this.sentenceList[i].chooseSenList[q] = s;
  10095. this.sentenceList[i].addChangeSen[j] = "";
  10096. break;
  10097. }
  10098. }
  10099. this.$forceUpdate();
  10100. },
  10101. returnCard(r, i, j) {
  10102. var a = this.sentenceList[i].addSentence.indexOf(r);
  10103. this.sentenceList[i].chooseSenList[j] = "";
  10104. this.sentenceList[i].addChangeSen[a] = r;
  10105. this.$forceUpdate();
  10106. },
  10107. // addSentenceTool() {
  10108. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10109. // this.taskCount
  10110. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  10111. // this.sentenceList = [
  10112. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10113. // ];
  10114. // this.dialogVisibleSentence = false;
  10115. // },
  10116. toolsCount(a, t) {
  10117. let params = {
  10118. cid: this.id,
  10119. chid: this.courseType,
  10120. uid: this.userid,
  10121. tid: t,
  10122. count: a,
  10123. };
  10124. this.ajax
  10125. .get(this.$store.state.api + "insertToolsCount", params)
  10126. .then((res) => {
  10127. this.selectCount();
  10128. })
  10129. .catch((err) => {
  10130. console.error(err);
  10131. });
  10132. },
  10133. updateCount(c, t) {
  10134. c++;
  10135. let params = {
  10136. cid: this.id,
  10137. chid: this.courseType,
  10138. uid: this.userid,
  10139. tid: t,
  10140. count: c,
  10141. };
  10142. this.ajax
  10143. .get(this.$store.state.api + "updateToolsCount", params)
  10144. .then((res) => {
  10145. this.selectCount();
  10146. })
  10147. .catch((err) => {
  10148. console.error(err);
  10149. });
  10150. },
  10151. checkEva() {
  10152. if (this.evalua != "") {
  10153. for (var i = 0; i < this.evaJuri.length; i++) {
  10154. if (this.evalua == this.evaJuri[i].id) {
  10155. this.eTitle = this.evaJuri[i].title;
  10156. this.eJson = JSON.parse(this.evaJuri[i].content);
  10157. }
  10158. }
  10159. this.$forceUpdate();
  10160. setTimeout(() => {
  10161. this.setMindData();
  10162. }, 0);
  10163. }
  10164. },
  10165. selectEva() {
  10166. let params = {
  10167. oid: this.oid,
  10168. };
  10169. this.ajax
  10170. .get(this.$store.state.api + "selectAllEvaluation", params)
  10171. .then((res) => {
  10172. this.evaJuri = res.data[0];
  10173. })
  10174. .catch((err) => {
  10175. console.error(err);
  10176. });
  10177. },
  10178. setMindData() {
  10179. this.data.data = [];
  10180. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10181. let _eJson = Object.keys(this.eJson);
  10182. let _e = this.eJson;
  10183. for (let i = 0; i < _eJson.length; i++) {
  10184. let element = _e[_eJson[i]];
  10185. this.data.data.push({
  10186. id: element.id,
  10187. parentid: "root",
  10188. topic: element.name,
  10189. });
  10190. let _eJsonc = Object.keys(element.child);
  10191. let _e2 = element.child;
  10192. for (let j = 0; j < _eJsonc.length; j++) {
  10193. let _ec = _e2[_eJsonc[j]];
  10194. this.data.data.push({
  10195. id: _ec.id,
  10196. parentid: element.id,
  10197. topic: _ec.name,
  10198. });
  10199. let _eJsonz = Object.keys(_ec.child);
  10200. let _e3 = _ec.child;
  10201. for (let z = 0; z < _eJsonz.length; z++) {
  10202. let _ez = _e3[_eJsonz[z]];
  10203. this.data.data.push({
  10204. id: _ez.id,
  10205. parentid: _ec.id,
  10206. topic: _ez.name,
  10207. });
  10208. }
  10209. }
  10210. }
  10211. this.$forceUpdate();
  10212. },
  10213. checkFileFull(type, url) {
  10214. this.fullDialogVisible = true;
  10215. this.fulltype = type;
  10216. this.fullUrl = url;
  10217. },
  10218. openSname(n, id, i) {
  10219. this.snameWid = id;
  10220. this.worksSName = n;
  10221. this.toolindex = i
  10222. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  10223. this.selectUploadStudent()
  10224. this.dialogVisibleSname = true;
  10225. },
  10226. updateName() {
  10227. let params = {
  10228. n: this.worksSName,
  10229. cid: this.snameWid,
  10230. };
  10231. this.ajax
  10232. .get(this.$store.state.api + "updateCourseWorksName", params)
  10233. .then((res) => {
  10234. this.$message({
  10235. message: "修改成功",
  10236. type: "success",
  10237. });
  10238. this.dialogVisibleSname = false;
  10239. this.getCourseDetail();
  10240. this.snameWid = "";
  10241. this.worksSName = "";
  10242. })
  10243. .catch((err) => {
  10244. console.error(err);
  10245. });
  10246. },
  10247. downloadFile2(f) {
  10248. let url = f.url
  10249. let _this = this;
  10250. let _url = "";
  10251. if (
  10252. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10253. ) {
  10254. _url = url.split(
  10255. "https://view.officeapps.live.com/op/view.aspx?src="
  10256. )[1];
  10257. } else {
  10258. _url = url;
  10259. }
  10260. const x = new XMLHttpRequest();
  10261. x.open("GET", _url, true);
  10262. x.responseType = "blob";
  10263. const loading = _this.$loading.service({
  10264. background: "rgba(255, 255, 255, 0.7)",
  10265. target: document.body,
  10266. text: "文件加载中...",
  10267. });
  10268. // _this.$message.success("文件下载中...");
  10269. x.onload = function (e) {
  10270. loading.close();
  10271. let content = x.response;
  10272. let elink = document.createElement("a");
  10273. elink.download = f.name;
  10274. elink.style.display = "none";
  10275. let blob = new Blob([content]);
  10276. elink.href = URL.createObjectURL(blob);
  10277. document.body.appendChild(elink);
  10278. elink.click();
  10279. document.body.removeChild(elink);
  10280. };
  10281. x.send();
  10282. },
  10283. downloadFile(url) {
  10284. let _this = this;
  10285. let _url = "";
  10286. if (
  10287. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10288. ) {
  10289. _url = url.split(
  10290. "https://view.officeapps.live.com/op/view.aspx?src="
  10291. )[1];
  10292. } else {
  10293. _url = url;
  10294. }
  10295. const x = new XMLHttpRequest();
  10296. x.open("GET", _url, true);
  10297. x.responseType = "blob";
  10298. const loading = _this.$loading.service({
  10299. background: "rgba(255, 255, 255, 0.7)",
  10300. target: document.body,
  10301. text: "文件加载中...",
  10302. });
  10303. // _this.$message.success("文件下载中...");
  10304. x.onload = function (e) {
  10305. loading.close();
  10306. // const url = window.URL.createObjectURL(x.response);
  10307. // const a = document.createElement("a");
  10308. // a.href = url;
  10309. // a.target = "_blank";
  10310. // a.download = url;
  10311. // a.click();
  10312. // a.remove();
  10313. let content = x.response;
  10314. let elink = document.createElement("a");
  10315. elink.download = decodeURI(
  10316. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  10317. );
  10318. elink.style.display = "none";
  10319. let blob = new Blob([content]);
  10320. elink.href = URL.createObjectURL(blob);
  10321. document.body.appendChild(elink);
  10322. elink.click();
  10323. document.body.removeChild(elink);
  10324. };
  10325. x.send();
  10326. },
  10327. openLine(url) {
  10328. window.open(url);
  10329. },
  10330. resize() {
  10331. if (document.getElementsByClassName("box_course").length) {
  10332. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10333. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10334. document.getElementsByClassName("navBox")[0].style.height =
  10335. a - 40 + "px";
  10336. }
  10337. this.Stbodywidth =
  10338. document.getElementsByClassName("student_body").length &&
  10339. document.getElementsByClassName("student_body")[0].offsetWidth;
  10340. },
  10341. closeDraw() {
  10342. this.bg = null;
  10343. this.drawShow = false;
  10344. },
  10345. showPicturePaint(url) {
  10346. let params = {
  10347. img: url,
  10348. };
  10349. this.ajax
  10350. .get(this.$store.state.api + "imgToBase64", params)
  10351. .then((res) => {
  10352. console.log(res);
  10353. this.drawShow = true;
  10354. this.bg = res.data[0].img;
  10355. })
  10356. .catch((err) => {
  10357. console.error(err);
  10358. });
  10359. },
  10360. addImgDraw(base64) {
  10361. let file = { name: "批注图.png" };
  10362. let img = this.dataUrlToFile(base64, file);
  10363. this.beforeUpload1(img, 5);
  10364. },
  10365. addImgDrawImG(url) {
  10366. // console.log(url);
  10367. let params = [
  10368. {
  10369. wid: this.commentDetail.wid,
  10370. img: url,
  10371. },
  10372. ];
  10373. this.ajax
  10374. .post(this.$store.state.api + "updateCourseWorks", params)
  10375. .then((res) => {
  10376. this.$message({
  10377. message: "提交成功",
  10378. type: "success",
  10379. });
  10380. this.drawShow = false;
  10381. this.bg = "";
  10382. this.selectSWorks();
  10383. this.selectStudent();
  10384. })
  10385. .catch((err) => {
  10386. this.$message.error("提交失败");
  10387. console.error(err);
  10388. });
  10389. },
  10390. deletePicturePaint() {
  10391. this.$confirm("确定删除此批注吗?", "提示", {
  10392. confirmButtonText: "确定",
  10393. cancelButtonText: "取消",
  10394. type: "warning",
  10395. })
  10396. .then(() => {
  10397. let params = [
  10398. {
  10399. wid: this.commentDetail.wid,
  10400. img: "",
  10401. },
  10402. ];
  10403. this.ajax
  10404. .post(this.$store.state.api + "updateCourseWorks", params)
  10405. .then((res) => {
  10406. this.$message({
  10407. message: "删除成功",
  10408. type: "success",
  10409. });
  10410. this.selectSWorks();
  10411. this.selectStudent();
  10412. })
  10413. .catch((err) => {
  10414. this.$message.error("删除失败");
  10415. console.error(err);
  10416. });
  10417. })
  10418. .catch(() => { });
  10419. },
  10420. getAudioVideo(constraintsData) {
  10421. if (navigator.mediaDevices === undefined) {
  10422. navigator.mediaDevices = {};
  10423. }
  10424. if (navigator.mediaDevices.getUserMedia === undefined) {
  10425. navigator.mediaDevices.getUserMedia = function (constraints) {
  10426. // 首先,如果有getUserMedia的话,就获得它
  10427. var getUserMedia =
  10428. navigator.getUserMedia ||
  10429. navigator.webkitGetUserMedia ||
  10430. navigator.mozGetUserMedia ||
  10431. navigator.msGetUserMedia;
  10432. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  10433. if (!getUserMedia) {
  10434. return Promise.reject({ code: 404 });
  10435. }
  10436. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  10437. return new Promise(function (resolve, reject) {
  10438. getUserMedia.call(navigator, constraints, resolve, reject);
  10439. });
  10440. };
  10441. }
  10442. return navigator.mediaDevices.getUserMedia(constraintsData);
  10443. },
  10444. /**
  10445. * 开始录制
  10446. */
  10447. startRecording(callback) {
  10448. let _function = (screenStream) => {
  10449. this.addStreamStopListener(screenStream, () => {
  10450. console.log("流停止监听");
  10451. this.stopRecording();
  10452. this.$emit("streamStop", {});
  10453. // this.stopRecording();
  10454. });
  10455. var options = {
  10456. type: "video",
  10457. mimeType: "video/webm",
  10458. disableLogs: false,
  10459. getNativeBlob: false, // enable it for longer recordings
  10460. ignoreMutedMedia: false,
  10461. };
  10462. // this.video.srcObject = screenStream;
  10463. this.recorder = RecordRTC(screenStream, options);
  10464. this.recorder.startRecording();
  10465. this.recorder.screen = screenStream;
  10466. this.videoStart = true;
  10467. // callback(true);
  10468. };
  10469. this.getAudioVideo({ audio: true })
  10470. .then((res) => {
  10471. this.captureScreen(_function, true);
  10472. console.log("已点击允许,开启成功");
  10473. })
  10474. .catch((err) => {
  10475. // console.log('浏览器不支持,请更换浏览器')
  10476. // } else {
  10477. this.captureScreen(_function, false);
  10478. console.log("请检查是否存在麦克风");
  10479. });
  10480. },
  10481. /**
  10482. * 停止录制
  10483. */
  10484. stopRecording(callback) {
  10485. this.recorder.stopRecording(() => {
  10486. // this.video.src = this.video.srcObject = null;
  10487. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  10488. const url = URL.createObjectURL(this.recorder.getBlob());
  10489. const a = document.createElement("a"); //this.fileName+
  10490. let videoFile = new File(
  10491. [this.recorder.getBlob()],
  10492. this.courseDetail.title + "录屏.mp4",
  10493. {
  10494. type: "video/mp4",
  10495. }
  10496. );
  10497. let downloadUrl = URL.createObjectURL(videoFile);
  10498. document.body.appendChild(a);
  10499. a.style.display = "none";
  10500. a.href = url;
  10501. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  10502. a.click();
  10503. this.recorder.screen.stop();
  10504. this.recorder.destroy();
  10505. this.recorder = null;
  10506. this.videoStart = false;
  10507. // callback(false);
  10508. });
  10509. },
  10510. //初始化
  10511. captureScreen(callback, type) {
  10512. if (navigator.getDisplayMedia) {
  10513. //录制结束,文件下载
  10514. navigator
  10515. .getDisplayMedia({
  10516. video: true,
  10517. })
  10518. .then((screenStream) => {
  10519. if (type) {
  10520. navigator.mediaDevices
  10521. .getUserMedia({ audio: true })
  10522. .then((mic) => {
  10523. screenStream.addTrack(mic.getTracks()[0]);
  10524. callback(screenStream);
  10525. });
  10526. } else {
  10527. callback(screenStream);
  10528. }
  10529. })
  10530. .catch(function (error) {
  10531. console.log("error", error);
  10532. });
  10533. } else if (navigator.mediaDevices.getDisplayMedia) {
  10534. navigator.mediaDevices
  10535. .getDisplayMedia({
  10536. video: true,
  10537. })
  10538. .then((screenStream) => {
  10539. if (type) {
  10540. navigator.mediaDevices
  10541. .getUserMedia({ audio: true })
  10542. .then((mic) => {
  10543. screenStream.addTrack(mic.getTracks()[0]);
  10544. callback(screenStream);
  10545. });
  10546. } else {
  10547. callback(screenStream);
  10548. }
  10549. })
  10550. .catch(function (error) {
  10551. console.log("error", error);
  10552. });
  10553. } else {
  10554. var error = "getDisplayMedia API are not supported in this browser.";
  10555. console.log("error", error);
  10556. alert(error);
  10557. }
  10558. },
  10559. //流监听
  10560. addStreamStopListener(stream, callback) {
  10561. stream.addEventListener(
  10562. "ended",
  10563. function () {
  10564. callback();
  10565. callback = function () { };
  10566. },
  10567. false
  10568. );
  10569. stream.addEventListener(
  10570. "inactive",
  10571. function () {
  10572. callback();
  10573. callback = function () { };
  10574. },
  10575. false
  10576. );
  10577. stream.getTracks().forEach(function (track) {
  10578. track.addEventListener(
  10579. "ended",
  10580. function () {
  10581. callback();
  10582. callback = function () { };
  10583. },
  10584. false
  10585. );
  10586. track.addEventListener(
  10587. "inactive",
  10588. function () {
  10589. callback();
  10590. callback = function () { };
  10591. },
  10592. false
  10593. );
  10594. });
  10595. },
  10596. updateGroup() {
  10597. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10598. this.dialogVisibleGroup2 = true;
  10599. },
  10600. updateGroupJson() {
  10601. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  10602. if (
  10603. this.groupStudentUid[this.toolindex][i].length >
  10604. this.groupJson2.number
  10605. ) {
  10606. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  10607. return;
  10608. }
  10609. }
  10610. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  10611. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10612. this.taskCount
  10613. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  10614. let params = [
  10615. {
  10616. cid: this.id,
  10617. chapters: JSON.stringify(this.chapInfoList),
  10618. uid: this.userid,
  10619. unitIndex: this.courseType,
  10620. },
  10621. ];
  10622. this.ajax
  10623. .post(this.$store.state.api + "updateWorkNew4", params)
  10624. .then((res) => {
  10625. this.$message.success("设置成功");
  10626. this.getCourseDetail(2);
  10627. this.dialogVisibleGroup2 = false;
  10628. this.groupJson2 = {};
  10629. this.$forceUpdate();
  10630. })
  10631. .catch((err) => {
  10632. this.$message.error("网络不佳");
  10633. console.error(err);
  10634. });
  10635. },
  10636. lockChair() {
  10637. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10638. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  10639. this.updateGroupJson();
  10640. },
  10641. selectGroup(index) {
  10642. this.getCourseDetail(2, index);
  10643. },
  10644. joinGroup(index) {
  10645. if (this.groupJson.islock == 2) {
  10646. this.$message.error("位置已被锁定,无法加入");
  10647. return;
  10648. }
  10649. if (
  10650. this.groupStudent[this.toolindex][index].length >
  10651. this.groupJson.number ||
  10652. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  10653. ) {
  10654. this.$message.error("位置已满,无法加入");
  10655. return;
  10656. }
  10657. let params = [
  10658. {
  10659. cid: this.id,
  10660. stage: this.courseType,
  10661. task: this.taskCount,
  10662. tool: this.toolindex,
  10663. g: index,
  10664. uid: this.userid,
  10665. },
  10666. ];
  10667. this.ajax
  10668. .post(this.$store.state.api + "joinGroup", params)
  10669. .then((res) => {
  10670. this.$message.success("加入成功");
  10671. this.getCourseDetail();
  10672. })
  10673. .catch((err) => {
  10674. this.$message.error("网络不佳");
  10675. console.error(err);
  10676. });
  10677. },
  10678. exitGroup(id) {
  10679. if (this.groupJson.islock == 2) {
  10680. this.$message.error("位置已被锁定,无法退出");
  10681. return;
  10682. }
  10683. let params = [
  10684. {
  10685. gid: id,
  10686. },
  10687. ];
  10688. this.ajax
  10689. .post(this.$store.state.api + "exitGroup", params)
  10690. .then((res) => {
  10691. this.$message.success("退出成功");
  10692. this.getCourseDetail();
  10693. })
  10694. .catch((err) => {
  10695. this.$message.error("网络不佳");
  10696. console.error(err);
  10697. });
  10698. },
  10699. groupUpload(index, task, gindex) {
  10700. this.taskCount = task;
  10701. this.toolindex = index;
  10702. this.groupIndex = gindex;
  10703. this.dialogVisibleGroupWork = true;
  10704. },
  10705. updateGroupChair(user) {
  10706. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  10707. el.label = index;
  10708. return index != user.group;
  10709. });
  10710. this.updateGroupUser = user;
  10711. this.dialogVisibleUpdateGroup = true;
  10712. },
  10713. updateChair() {
  10714. if (
  10715. this.groupStudent[this.toolindex][this.checkChair].length >
  10716. this.groupJson.number ||
  10717. this.groupStudent[this.toolindex][this.checkChair].length ==
  10718. this.groupJson.number
  10719. ) {
  10720. this.$message.error("位置已满,无法加入");
  10721. return;
  10722. }
  10723. let params = [
  10724. {
  10725. cid: this.id,
  10726. stage: this.courseType,
  10727. task: this.taskCount,
  10728. tool: this.toolindex,
  10729. g: this.checkChair,
  10730. uid: this.updateGroupUser.userid,
  10731. },
  10732. ];
  10733. this.ajax
  10734. .post(this.$store.state.api + "joinGroup", params)
  10735. .then((res) => {
  10736. this.$message.success("修改成功");
  10737. this.updateGroupUser = {};
  10738. this.checkChair = "";
  10739. this.updateGroupArray = {};
  10740. this.dialogVisibleUpdateGroup = false;
  10741. this.getCourseDetail();
  10742. })
  10743. .catch((err) => {
  10744. this.$message.error("网络不佳");
  10745. console.error(err);
  10746. });
  10747. },
  10748. deleteGroupChair(gindex) {
  10749. this.checkDeleteGroup = [];
  10750. this.deleteGroupUser = JSON.parse(
  10751. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  10752. );
  10753. this.deleteGroupArray = this.groupJson.group[gindex];
  10754. this.groupIndex = gindex;
  10755. this.dialogVisibleDeleteGroup = true;
  10756. },
  10757. async deleteChair() {
  10758. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  10759. const gid =
  10760. this.groupStudent[this.toolindex][this.groupIndex][
  10761. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  10762. this.checkDeleteGroup[i]
  10763. )
  10764. ];
  10765. let params = [
  10766. {
  10767. gid: gid.id,
  10768. },
  10769. ];
  10770. var a = await this.deleteChairA(params);
  10771. if (i == this.checkDeleteGroup.length - 1) {
  10772. this.$message.success("退出成功");
  10773. this.dialogVisibleDeleteGroup = false;
  10774. this.deleteGroupUser = [];
  10775. this.deleteGroupArray = {};
  10776. this.groupIndex = "";
  10777. this.checkDeleteGroup = [];
  10778. this.getCourseDetail();
  10779. }
  10780. }
  10781. },
  10782. deleteChairA(params) {
  10783. return new Promise((resolve, reject) => {
  10784. this.ajax
  10785. .post(this.$store.state.api + "exitGroup", params)
  10786. .then((res) => {
  10787. resolve(1);
  10788. })
  10789. .catch((err) => {
  10790. this.$message.error("网络不佳");
  10791. console.error(err);
  10792. });
  10793. });
  10794. },
  10795. contract(i) {
  10796. if (this.isCloseList[i].isClose == 0) {
  10797. this.isCloseList[i].isClose = 1;
  10798. } else {
  10799. this.isCloseList[i].isClose = 0;
  10800. }
  10801. this.$forceUpdate();
  10802. },
  10803. },
  10804. directives: {
  10805. // 使用局部注册指令的方式
  10806. resize: {
  10807. // 指令的名称
  10808. bind(el, binding) {
  10809. // el为绑定的元素,binding为绑定给指令的对象
  10810. let width = "",
  10811. height = "";
  10812. function isReize() {
  10813. const style = document.defaultView.getComputedStyle(el);
  10814. if (width !== style.width || height !== style.height) {
  10815. binding.value(); // 关键
  10816. }
  10817. width = style.width;
  10818. height = style.height;
  10819. }
  10820. el.__vueSetInterval__ = setInterval(isReize, 300);
  10821. },
  10822. unbind(el) {
  10823. clearInterval(el.__vueSetInterval__);
  10824. },
  10825. },
  10826. },
  10827. beforeDestroy() {
  10828. window.onresize = null;
  10829. clearInterval(this.timer);
  10830. this.timer = null;
  10831. clearInterval(this.opertimer);
  10832. this.opertimer = null;
  10833. },
  10834. computed: {
  10835. contentConvent() {
  10836. return function (c) {
  10837. return c
  10838. ? c
  10839. .replaceAll(/\r\n/g, "<br/>")
  10840. .replaceAll(/\n/g, "<br/>")
  10841. .replaceAll(/\s/g, " &nbsp")
  10842. : "";
  10843. };
  10844. },
  10845. checkUpload(){
  10846. return function(){
  10847. var studentK = [];
  10848. if (this.plworkFile.length > 0) {
  10849. for (var z = 0; z < this.plworkFile.length; z++) {
  10850. studentK.push(this.plworkFile[z].username);
  10851. }
  10852. studentK = studentK.join(",");
  10853. }
  10854. var a = this.uploadStudentJuri.filter((el)=>{
  10855. return studentK.indexOf(el.userid) == -1
  10856. });
  10857. return a
  10858. }
  10859. }
  10860. },
  10861. mounted() {
  10862. if (this.screenType == 2) {
  10863. window.parent.postMessage({ allScreen: 4 }, "*");
  10864. } else if (this.screenType == 3) {
  10865. window.parent.postMessage({ allScreen: 5 }, "*");
  10866. } else if (this.screenType == 1) {
  10867. window.parent.postMessage({ allScreen: 6 }, "*");
  10868. }
  10869. this.setOperationTime();
  10870. this.selectEva();
  10871. this.getCourseDetail();
  10872. this.selectCount();
  10873. this.getHomeWork();
  10874. this.toolIndex = null
  10875. this.contentDialog = true;
  10876. this.setContent2(true)
  10877. if (this.tType == 4) {
  10878. this.pzDialog = true;
  10879. this.selectPz();
  10880. }
  10881. document.scrollingElement.scrollTop = 0;
  10882. window.addEventListener("resize", () => {
  10883. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10884. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10885. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  10886. });
  10887. let _this = this;
  10888. setTimeout(() => {
  10889. // _this.vedioTime = [];
  10890. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  10891. // _this.vedioTime[i] = document.getElementsByClassName(
  10892. // "vjs-duration-display"
  10893. // )[i].textContent;
  10894. // }
  10895. }, 1000);
  10896. },
  10897. };
  10898. </script>
  10899. <style scoped>
  10900. @media screen and (max-width: 1280px) {
  10901. /* .courseIndex > div:first-child(2) {
  10902. width: 15% !important;
  10903. } */
  10904. /* .navText {
  10905. width: 120px !important;
  10906. } */
  10907. .evaCss {
  10908. flex-direction: column !important;
  10909. align-items: center !important;
  10910. }
  10911. .dialog_diy1>>>.el-dialog {
  10912. width: 100% !important;
  10913. }
  10914. .rightWidthCss {
  10915. width: 100% !important;
  10916. }
  10917. .dialog_diy3>>>.el-dialog {
  10918. width: 100% !important;
  10919. }
  10920. /* .textTitle >>> .el-form-item__label {
  10921. width: 150px !important;
  10922. } */
  10923. }
  10924. .evaCssMax {
  10925. flex-direction: column !important;
  10926. align-items: center !important;
  10927. }
  10928. .dialog_diy>>>.el-dialog {
  10929. margin-top: 10vh !important;
  10930. }
  10931. .body_student {
  10932. width: 77%;
  10933. height: 100%;
  10934. position: absolute;
  10935. left: 22%;
  10936. top: 0;
  10937. }
  10938. .student_head {
  10939. width: 100%;
  10940. margin: 0 auto;
  10941. padding-bottom: 20px;
  10942. display: flex;
  10943. flex-direction: column;
  10944. flex-wrap: nowrap;
  10945. align-items: flex-start;
  10946. justify-content: flex-start;
  10947. }
  10948. .pb_left {
  10949. width: 20%;
  10950. margin-right: 10px;
  10951. background: rgb(255, 255, 255);
  10952. padding-right: 10px;
  10953. position: fixed;
  10954. height: 100%;
  10955. }
  10956. .wheel>img,
  10957. .project>img,
  10958. .star>img,
  10959. .evaluate>img,
  10960. .up_photo>img,
  10961. .chapter_add>img,
  10962. .deleteWord>img,
  10963. .question>img,
  10964. .homework>img {
  10965. width: 100%;
  10966. height: 100%;
  10967. }
  10968. .upCover>img {
  10969. width: 131px;
  10970. height: 69px;
  10971. object-fit: cover;
  10972. }
  10973. .upCover {
  10974. width: calc(100% / 3.5);
  10975. position: relative;
  10976. margin: 0 15px 10px 0;
  10977. display: flex;
  10978. flex-direction: column;
  10979. flex-wrap: nowrap;
  10980. justify-content: center;
  10981. align-content: center;
  10982. align-items: center;
  10983. height: fit-content;
  10984. }
  10985. .upCover2 {
  10986. width: 100%;
  10987. position: relative;
  10988. margin: 0 15px 10px 0;
  10989. display: flex;
  10990. flex-direction: column;
  10991. flex-wrap: nowrap;
  10992. justify-content: center;
  10993. align-content: center;
  10994. align-items: center;
  10995. }
  10996. .upCover2>img {
  10997. width: 100%;
  10998. height: 90px;
  10999. object-fit: contain;
  11000. }
  11001. .chapter_add {
  11002. width: 120px;
  11003. position: relative;
  11004. text-align: center;
  11005. }
  11006. .isAddThings {
  11007. margin-top: 20px;
  11008. position: relative;
  11009. text-align: center;
  11010. background: #f7f8fa;
  11011. height: 90px;
  11012. width: 90px;
  11013. display: flex;
  11014. flex-direction: column;
  11015. justify-content: center;
  11016. }
  11017. .deleteWord {
  11018. width: 22px;
  11019. height: 22px;
  11020. position: absolute;
  11021. right: -5px;
  11022. top: -5px;
  11023. cursor: pointer;
  11024. }
  11025. .box_course {
  11026. /* width: 60%; */
  11027. width: 81%;
  11028. }
  11029. .wheel {
  11030. width: 100%;
  11031. /* height: 100%; */
  11032. height: 650px;
  11033. }
  11034. .right_box {
  11035. display: flex;
  11036. flex-direction: column;
  11037. margin-left: 30px;
  11038. justify-content: space-around;
  11039. }
  11040. .right_box_title {
  11041. font-size: 23px;
  11042. }
  11043. .people {
  11044. display: flex;
  11045. }
  11046. .student_body {
  11047. width: 100%;
  11048. margin: 0 auto;
  11049. margin-top: 10px;
  11050. padding: 0 0 20px;
  11051. }
  11052. .study_top {
  11053. margin-top: 70px;
  11054. width: 100%;
  11055. /* overflow: auto; */
  11056. height: auto;
  11057. }
  11058. .study_top .checkbox {
  11059. display: flex;
  11060. align-items: center;
  11061. padding: 15px 0 15px 30px;
  11062. flex: 0 0 auto;
  11063. font-weight: bold;
  11064. border-bottom: 1px solid #eee;
  11065. }
  11066. .study_top .check {
  11067. padding-bottom: 5px;
  11068. text-align: center;
  11069. cursor: pointer;
  11070. height: 30px;
  11071. box-sizing: border-box;
  11072. display: flex;
  11073. }
  11074. .study_top .checked {
  11075. border-bottom: 4px solid #3fc6a0;
  11076. padding-bottom: 5px;
  11077. color: #3fc6a0;
  11078. display: flex;
  11079. height: 35px;
  11080. }
  11081. .study_top .checked>div,
  11082. .study_top .check>div {
  11083. margin-right: 5px;
  11084. }
  11085. .videoTop {
  11086. display: flex;
  11087. flex-direction: row;
  11088. justify-content: space-between;
  11089. background: #fff;
  11090. align-items: center;
  11091. width: 95%;
  11092. padding: 20px;
  11093. }
  11094. .upbtn {
  11095. margin: 25px;
  11096. background: #70afdb;
  11097. color: #fff;
  11098. width: 120px;
  11099. text-align: center;
  11100. height: 30px;
  11101. line-height: 30px;
  11102. font-size: 13px;
  11103. border-radius: 5px;
  11104. cursor: pointer;
  11105. }
  11106. .filebox {
  11107. display: flex;
  11108. flex-wrap: wrap;
  11109. flex-direction: column;
  11110. padding: 15px 0 5px;
  11111. }
  11112. .filebox .tooldetail {
  11113. width: 100%;
  11114. margin: 0px 12px;
  11115. background: rgb(247, 247, 247);
  11116. padding: 20px;
  11117. line-height: 30px;
  11118. word-break: break-word;
  11119. }
  11120. .file {
  11121. display: flex;
  11122. flex-direction: column;
  11123. align-items: center;
  11124. justify-content: center;
  11125. cursor: pointer;
  11126. width: 200px;
  11127. }
  11128. .file div {
  11129. margin-top: 10px;
  11130. width: 150px;
  11131. text-align: center;
  11132. overflow: hidden;
  11133. white-space: nowrap;
  11134. text-overflow: ellipsis;
  11135. }
  11136. .media {
  11137. display: flex;
  11138. flex-direction: column;
  11139. align-items: center;
  11140. justify-content: center;
  11141. margin: 0 20px 20px 0;
  11142. cursor: pointer;
  11143. margin: 12px 0 5px 15px;
  11144. overflow: hidden;
  11145. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  11146. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  11147. box-sizing: border-box;
  11148. }
  11149. .media img {
  11150. height: 90px;
  11151. width: 160px;
  11152. object-fit: cover;
  11153. }
  11154. .media .title {
  11155. padding: 5px;
  11156. text-align: left;
  11157. width: 100%;
  11158. box-sizing: border-box;
  11159. }
  11160. .media .btn {
  11161. width: 100%;
  11162. height: 35px;
  11163. line-height: 35px;
  11164. color: #fff;
  11165. background: #606060;
  11166. text-align: center;
  11167. overflow: hidden;
  11168. white-space: nowrap;
  11169. text-overflow: ellipsis;
  11170. }
  11171. .detail_content_top {
  11172. width: 100%;
  11173. padding: 25px 0 25px 0;
  11174. }
  11175. .detail_title {
  11176. text-align: center;
  11177. font-size: 24px;
  11178. }
  11179. .detail_time {
  11180. font-size: 13px;
  11181. padding: 15px 0 0 40px;
  11182. }
  11183. .detail_content {
  11184. line-height: 2pc;
  11185. width: 90%;
  11186. margin: 0 auto;
  11187. padding-top: 30px;
  11188. text-indent: 30px;
  11189. overflow: auto;
  11190. height: 200px;
  11191. }
  11192. .score_box>>>.el-rate {
  11193. margin-left: 10px;
  11194. }
  11195. .dialog_change>>>.el-dialog {
  11196. border-radius: 5px;
  11197. }
  11198. .dialog_change>>>.el-dialog__header {
  11199. background: #f2f2f2;
  11200. text-align: center;
  11201. }
  11202. .dialog_change>>>.el-dialog__title {
  11203. line-height: 5px;
  11204. }
  11205. .dialog_change>>>.el-dialog__body {
  11206. background: #fff;
  11207. padding: 10px 20px;
  11208. }
  11209. .score_box {
  11210. display: flex;
  11211. align-items: center;
  11212. margin-bottom: 18px;
  11213. margin-top: 20px;
  11214. }
  11215. .up_photo {
  11216. width: 120px;
  11217. cursor: pointer;
  11218. margin-top: 10px;
  11219. }
  11220. .up_photo2 {
  11221. width: 180px;
  11222. box-sizing: border-box;
  11223. min-width: 180px;
  11224. height: 180px;
  11225. max-height: 180px;
  11226. min-height: 180px;
  11227. cursor: pointer;
  11228. display: flex;
  11229. flex-direction: column;
  11230. align-items: center;
  11231. justify-content: center;
  11232. background: rgb(242, 246, 255);
  11233. /* padding: 25px; */
  11234. margin-bottom: 10px;
  11235. }
  11236. .up_photo2 img {
  11237. width: 50%;
  11238. height: auto;
  11239. }
  11240. .up_photo2 span {
  11241. color: #898989;
  11242. }
  11243. .plworkBox {
  11244. display: flex;
  11245. align-items: center;
  11246. margin-top: 10px;
  11247. flex-wrap: wrap;
  11248. }
  11249. .upload_send {
  11250. margin: 30px auto 30px;
  11251. width: 60%;
  11252. background: #169bd6;
  11253. text-align: center;
  11254. height: 35px;
  11255. line-height: 35px;
  11256. color: #fff;
  11257. border-radius: 5px;
  11258. cursor: pointer;
  11259. }
  11260. .marginT {
  11261. margin-top: 20px;
  11262. }
  11263. .cd_content_steps {
  11264. display: flex;
  11265. width: 90%;
  11266. justify-content: space-around;
  11267. border-top: 1px solid #eeeeee;
  11268. }
  11269. .cd_steps_box {
  11270. display: flex;
  11271. justify-content: center;
  11272. align-items: center;
  11273. flex-direction: column;
  11274. cursor: pointer;
  11275. }
  11276. .first {
  11277. display: flex;
  11278. align-items: center;
  11279. margin: 15px 0 20px 0;
  11280. font-size: 20px;
  11281. }
  11282. .first>div:nth-child(2) {
  11283. font-size: 16px !important;
  11284. padding-left: 10px;
  11285. line-height: 26px;
  11286. box-sizing: border-box;
  11287. }
  11288. .blue_box_one {
  11289. text-align: center;
  11290. color: #fff;
  11291. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  11292. border-radius: 7px;
  11293. margin: 10px;
  11294. cursor: pointer;
  11295. width: 95%;
  11296. height: 45px;
  11297. display: flex;
  11298. flex-direction: row;
  11299. justify-content: flex-start;
  11300. align-items: center;
  11301. }
  11302. .blue_box_one>div:nth-child(1) {
  11303. line-height: 30px;
  11304. margin: 0 5px 0 10px;
  11305. width: 30%;
  11306. min-width: 70px;
  11307. border-radius: 4px;
  11308. }
  11309. .blue_box_one>div:nth-child(2) {
  11310. white-space: nowrap;
  11311. text-overflow: ellipsis;
  11312. overflow: hidden;
  11313. word-break: break-all;
  11314. width: 70%;
  11315. text-align: left;
  11316. margin-right: 10px;
  11317. max-width: calc(100% - 85px);
  11318. }
  11319. .blue_box_one>div:nth-child(2):hover {
  11320. overflow: hidden;
  11321. text-overflow: ellipsis;
  11322. white-space: nowrap;
  11323. cursor: pointer;
  11324. }
  11325. .upFile {
  11326. margin: 0 auto;
  11327. width: 120px;
  11328. background: #70afdb;
  11329. color: #fff;
  11330. height: 30px;
  11331. text-align: center;
  11332. line-height: 30px;
  11333. border-radius: 5px;
  11334. font-size: 14px;
  11335. cursor: pointer;
  11336. }
  11337. .courseTitle {
  11338. background: #205cc6;
  11339. width: 85%;
  11340. margin: 10px auto;
  11341. color: #fff;
  11342. border-radius: 5px;
  11343. padding: 10px 10px;
  11344. display: flex;
  11345. flex-direction: row;
  11346. align-items: center;
  11347. justify-content: space-between;
  11348. text-align: center;
  11349. }
  11350. .courseTitle .ctitle {
  11351. font-weight: bold;
  11352. font-size: 20px;
  11353. white-space: nowrap;
  11354. overflow: hidden;
  11355. text-overflow: ellipsis;
  11356. }
  11357. .courseTitle .inviteBox {
  11358. font-size: 14px;
  11359. margin-top: 5px;
  11360. color: #a6cbff;
  11361. }
  11362. .courseTitle>>>.el-tooltip {
  11363. width: 100%;
  11364. white-space: nowrap;
  11365. overflow: hidden;
  11366. text-overflow: ellipsis;
  11367. word-break: break-word;
  11368. }
  11369. .ml {
  11370. margin-left: 20px;
  11371. color: #5b7dba;
  11372. border-left: 3px solid #5b7dba;
  11373. padding-left: 5px;
  11374. font-weight: bold;
  11375. }
  11376. .return {
  11377. width: 2rem;
  11378. height: 2rem;
  11379. cursor: pointer;
  11380. }
  11381. .return>img {
  11382. width: 100%;
  11383. height: 100%;
  11384. }
  11385. .returnBtn {
  11386. background: #499eef;
  11387. width: 65px;
  11388. height: 30px;
  11389. color: #fff;
  11390. text-align: center;
  11391. line-height: 32px;
  11392. margin-right: 20px;
  11393. cursor: pointer;
  11394. border-radius: 5px;
  11395. font-size: 14px;
  11396. }
  11397. .tool {
  11398. display: flex;
  11399. flex-direction: column;
  11400. flex-wrap: nowrap;
  11401. width: 13%;
  11402. margin: 0 30px;
  11403. align-items: center;
  11404. }
  11405. .whiteBIcon {
  11406. width: 150px;
  11407. cursor: pointer;
  11408. }
  11409. .whiteBIcon>img {
  11410. width: 100%;
  11411. height: 100%;
  11412. }
  11413. .mask {
  11414. background-color: rgba(0, 0, 0, 0);
  11415. position: fixed;
  11416. top: 0;
  11417. left: 0;
  11418. width: 100%;
  11419. height: 100%;
  11420. z-index: 20000;
  11421. display: flex;
  11422. align-items: center;
  11423. justify-content: center;
  11424. }
  11425. .progressBox {
  11426. width: 500px;
  11427. height: 180px;
  11428. background: #fff;
  11429. border-radius: 10px;
  11430. box-shadow: 0 0 6px 1px #bfbfbf;
  11431. display: flex;
  11432. align-items: center;
  11433. justify-content: center;
  11434. flex-direction: column;
  11435. position: relative;
  11436. color: #6c6c6c;
  11437. }
  11438. .progressBox>>>.el-progress-bar__outer {
  11439. background-color: #d1dfff !important;
  11440. }
  11441. .progressBox .lbox {
  11442. height: 50px;
  11443. font-size: 19px;
  11444. display: flex;
  11445. align-items: center;
  11446. color: #747474;
  11447. }
  11448. .progressBox .lbox img {
  11449. width: 40px;
  11450. margin-right: 20px;
  11451. }
  11452. .closeCss {
  11453. position: absolute;
  11454. top: 8px;
  11455. right: 8px;
  11456. cursor: pointer;
  11457. width: 20px;
  11458. height: 20px;
  11459. }
  11460. .closeCss>img {
  11461. width: 100%;
  11462. height: 100%;
  11463. }
  11464. .uploadVedio {
  11465. display: flex;
  11466. flex-direction: column;
  11467. flex-wrap: nowrap;
  11468. justify-content: center;
  11469. align-items: center;
  11470. margin: 0 15px 10px 0;
  11471. }
  11472. .uploadVedio>img {
  11473. width: 30px;
  11474. height: 30px;
  11475. }
  11476. .uploadVedio>span {
  11477. white-space: nowrap;
  11478. overflow: hidden;
  11479. text-overflow: ellipsis;
  11480. width: 75px;
  11481. margin-top: 7px;
  11482. }
  11483. .picName {
  11484. white-space: nowrap;
  11485. overflow: hidden;
  11486. text-overflow: ellipsis;
  11487. width: 75px;
  11488. margin-top: 7px;
  11489. }
  11490. .new_top {
  11491. display: flex;
  11492. background: #fff;
  11493. flex-direction: row;
  11494. justify-content: flex-start;
  11495. align-items: center;
  11496. height: 60px;
  11497. position: relative;
  11498. }
  11499. .before {
  11500. position: absolute;
  11501. background: #c3dad4;
  11502. width: 6px;
  11503. height: 100%;
  11504. }
  11505. .courseIndex {
  11506. display: flex;
  11507. flex-direction: row;
  11508. align-items: center;
  11509. width: calc(100% - 520px);
  11510. }
  11511. .courseIndex>div:nth-child(1) {
  11512. margin: 0 20px;
  11513. padding-left: 5px;
  11514. font-size: 24px;
  11515. min-width: 100px;
  11516. font-weight: bold;
  11517. border-left: 4px solid #3363b9;
  11518. height: 35px;
  11519. text-align: center;
  11520. line-height: 35px;
  11521. }
  11522. .courseIndex>div:nth-child(2) {
  11523. font-size: 23px;
  11524. /* width: 300px; */
  11525. max-width: calc(100% - 180px);
  11526. white-space: nowrap;
  11527. overflow: hidden;
  11528. text-overflow: ellipsis;
  11529. }
  11530. .courseIndex>div:nth-child(3) {
  11531. border-bottom: 1px solid #d7d7d7;
  11532. padding-bottom: 5px;
  11533. background: #49a0f0;
  11534. width: 55px;
  11535. min-width: 55px;
  11536. border-radius: 5px;
  11537. color: #fff;
  11538. text-align: center;
  11539. height: 20px;
  11540. line-height: 26px;
  11541. font-size: 14px;
  11542. margin: 0 0 0 10px;
  11543. }
  11544. .course_text {
  11545. padding: 20px 0 0 15px;
  11546. text-indent: 30px;
  11547. width: 80%;
  11548. min-height: 20px;
  11549. }
  11550. .vedioList {
  11551. background: #f2f2f2;
  11552. border: 1px solid #ececec;
  11553. /* width: 38.8%; */
  11554. width: 100%;
  11555. height: 445px;
  11556. border-radius: 10px;
  11557. overflow: hidden;
  11558. }
  11559. .vedioNav {
  11560. margin: 10px 0 0 15px;
  11561. border-bottom: 1px solid #d7d7d7;
  11562. padding-bottom: 5px;
  11563. background: #96d1ff;
  11564. width: 55px;
  11565. min-width: 55px;
  11566. border-radius: 5px;
  11567. color: #fff;
  11568. text-align: center;
  11569. height: 20px;
  11570. line-height: 26px;
  11571. font-size: 14px;
  11572. }
  11573. .queTop {
  11574. display: flex;
  11575. padding: 20px 0 20px 30px;
  11576. width: 100%;
  11577. flex-direction: row;
  11578. justify-content: flex-start;
  11579. align-items: center;
  11580. border-bottom: 1px solid #eeeeee;
  11581. box-sizing: border-box;
  11582. }
  11583. .question {
  11584. width: 40px;
  11585. margin-right: 10px;
  11586. margin-top: 7px;
  11587. }
  11588. .queTitle {
  11589. margin-left: 5px;
  11590. font-size: 25px;
  11591. display: flex;
  11592. align-items: center;
  11593. }
  11594. .addEditor {
  11595. width: 100px;
  11596. height: 30px;
  11597. background: #42cda6;
  11598. color: #fff;
  11599. border-radius: 5px;
  11600. text-align: center;
  11601. line-height: 30px;
  11602. box-shadow: 1px 3px 6px 1px #bfbfbf;
  11603. cursor: pointer;
  11604. }
  11605. .vedioName {
  11606. /* text-overflow: ellipsis;
  11607. top: 8px;
  11608. font-size: 14px;
  11609. overflow: hidden;
  11610. width: 100%;
  11611. word-break: break-all;
  11612. white-space: nowrap; */
  11613. cursor: pointer;
  11614. margin: 0px 0px 10px 5px;
  11615. white-space: nowrap;
  11616. overflow: hidden;
  11617. text-overflow: ellipsis;
  11618. width: 100%;
  11619. }
  11620. .vedioTime {
  11621. width: 35px;
  11622. position: absolute;
  11623. color: #fff;
  11624. bottom: 0px;
  11625. right: 0px;
  11626. text-align: center;
  11627. background: #46411f;
  11628. height: 20px;
  11629. font-size: 14px;
  11630. line-height: 20px;
  11631. }
  11632. .homework {
  11633. width: 200px;
  11634. display: flex;
  11635. flex-direction: column;
  11636. flex-wrap: nowrap;
  11637. align-items: center;
  11638. cursor: pointer;
  11639. }
  11640. .homebox {
  11641. display: flex;
  11642. flex-wrap: wrap;
  11643. flex-direction: row;
  11644. justify-content: flex-start;
  11645. align-items: center;
  11646. padding: 15px 0;
  11647. }
  11648. .isChooseActive {
  11649. color: #3e88f4;
  11650. border-bottom: 2px solid #2f80f3;
  11651. }
  11652. .chooseWho {
  11653. display: flex;
  11654. width: 100%;
  11655. flex-direction: row;
  11656. flex-wrap: nowrap;
  11657. justify-content: flex-start;
  11658. padding-bottom: 10px;
  11659. }
  11660. .chooseWho>div {
  11661. cursor: pointer;
  11662. padding-bottom: 10px;
  11663. margin: 0 30px;
  11664. }
  11665. .addPoint>div>img {
  11666. cursor: pointer;
  11667. margin: 0 10px;
  11668. width: 85px;
  11669. border-radius: 15px;
  11670. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  11671. }
  11672. .addPoint>div {
  11673. display: flex;
  11674. flex-direction: column;
  11675. flex-wrap: nowrap;
  11676. align-items: center;
  11677. }
  11678. .isBorder>div {
  11679. margin: 0 0 10px 0;
  11680. align-items: flex-start !important;
  11681. }
  11682. .noiframeBox {
  11683. display: flex;
  11684. flex-wrap: wrap;
  11685. }
  11686. .iframeBox iframe {
  11687. width: 100%;
  11688. height: 800px;
  11689. border: none;
  11690. margin-bottom: 20px;
  11691. border: 1px solid #ccc;
  11692. }
  11693. .upload_toolBtn {
  11694. background: #6b92c9;
  11695. color: #fff;
  11696. width: 110px;
  11697. text-align: center;
  11698. height: 35px;
  11699. line-height: 35px;
  11700. font-size: 14px;
  11701. border-radius: 5px;
  11702. cursor: pointer;
  11703. position: absolute;
  11704. right: 10px;
  11705. bottom: 0;
  11706. }
  11707. .binfo_input,
  11708. .pj {
  11709. font: inherit;
  11710. color: currentColor;
  11711. width: 100%;
  11712. margin: 0;
  11713. padding: 15px 14px;
  11714. display: block;
  11715. min-width: 0;
  11716. outline: none;
  11717. box-sizing: content-box;
  11718. background: none;
  11719. -webkit-tap-highlight-color: transparent;
  11720. border: 1px solid rgba(0, 0, 0, 0.23);
  11721. border-radius: 4px;
  11722. box-sizing: border-box;
  11723. resize: none;
  11724. }
  11725. .binfo_input:focus-visible {
  11726. border: 1px solid rgba(61, 103, 188);
  11727. }
  11728. .dialog_diy>>>.el-dialog__header,
  11729. .dialog_diy1>>>.el-dialog__header {
  11730. background: #454545 !important;
  11731. padding: 15px 20px;
  11732. }
  11733. .dialog_diy>>>.el-dialog__title,
  11734. .dialog_diy1>>>.el-dialog__title {
  11735. color: #fff;
  11736. }
  11737. .dialog_diy>>>.el-dialog__headerbtn,
  11738. .dialog_diy1>>>.el-dialog__headerbtn {
  11739. top: 19px;
  11740. }
  11741. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  11742. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  11743. color: #fff;
  11744. }
  11745. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  11746. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  11747. color: #fff;
  11748. }
  11749. .dialog_diy1>>>.el-dialog__body {
  11750. padding: 0;
  11751. }
  11752. .dialog_diy>>>.el-dialog__body,
  11753. .dialog_diy>>>.el-dialog__footer,
  11754. .dialog_diy1>>>.el-dialog__footer {
  11755. background: #fafafa;
  11756. }
  11757. .a_addBox {
  11758. margin: 10px 0;
  11759. background: #fff;
  11760. padding: 15px;
  11761. }
  11762. .a_add_box {
  11763. border-bottom: 2px solid #eee;
  11764. padding-bottom: 10px;
  11765. }
  11766. .a_add_head {
  11767. display: flex;
  11768. align-items: flex-start;
  11769. /* justify-content: space-between; */
  11770. flex-direction: column;
  11771. /* flex-direction: row; */
  11772. margin: 10px 0 20px 0;
  11773. font-size: 18px;
  11774. width: 100%;
  11775. }
  11776. .a_add_head .a_add_head_input {
  11777. width: 300px;
  11778. }
  11779. .a_add_head .a_add_head_div {
  11780. display: flex;
  11781. align-items: center;
  11782. justify-content: space-between;
  11783. }
  11784. .a_add_body {
  11785. display: flex;
  11786. align-items: center;
  11787. }
  11788. .a_add_input {
  11789. display: flex;
  11790. align-items: center;
  11791. flex-wrap: wrap;
  11792. }
  11793. .a_add_input>>>el-radio-group {
  11794. margin: 10px 0;
  11795. }
  11796. .a_add_input>>>.el-radio,
  11797. .a_add_input>>>.el-checkbox {
  11798. margin-bottom: 10px;
  11799. display: flex;
  11800. flex-direction: row;
  11801. flex-wrap: nowrap;
  11802. align-items: center;
  11803. }
  11804. .redioStyle>>>.el-radio__label {
  11805. font-size: 18px;
  11806. }
  11807. .redioStyle>>>.el-checkbox__label {
  11808. font-size: 18px;
  11809. }
  11810. .toolHeng2 {
  11811. width: 100%;
  11812. }
  11813. .toolHeng {
  11814. display: flex;
  11815. flex-direction: row;
  11816. flex-wrap: wrap;
  11817. justify-content: flex-start;
  11818. align-items: center;
  11819. width: 100%;
  11820. }
  11821. .toolHeng>div {
  11822. padding-left: 20px;
  11823. }
  11824. .isWidth {
  11825. width: 20%;
  11826. }
  11827. .textTitle {
  11828. display: flex;
  11829. flex-direction: row;
  11830. flex-wrap: nowrap;
  11831. align-items: center;
  11832. width: 95%;
  11833. }
  11834. .textTitle>>>.el-form-item__label {
  11835. font-size: 22px;
  11836. color: #918f8f;
  11837. width: 100px;
  11838. }
  11839. .textTitle>>>.el-form-item__content {
  11840. width: calc(100% - 100px);
  11841. }
  11842. .textCss>>>.el-dialog {
  11843. width: 800px !important;
  11844. height: 400px;
  11845. background: #fafafa;
  11846. }
  11847. .textCss>>>.el-dialog__body {
  11848. margin: 55px 8% 0 8%;
  11849. padding: 0 !important;
  11850. }
  11851. .textCss>>>.el-dialog__footer {
  11852. padding-top: 38px;
  11853. }
  11854. .toolsCss>>>.el-dialog__body {
  11855. padding: 20px;
  11856. }
  11857. .lineCss>>>.el-dialog__body {
  11858. display: flex;
  11859. flex-direction: row;
  11860. align-items: center;
  11861. justify-content: center;
  11862. }
  11863. .newNav {
  11864. display: flex;
  11865. flex-direction: row;
  11866. align-items: baseline;
  11867. justify-content: flex-start;
  11868. }
  11869. .navText {
  11870. cursor: pointer;
  11871. margin: 0px 0px 10px 5px;
  11872. white-space: nowrap;
  11873. overflow: hidden;
  11874. text-overflow: ellipsis;
  11875. /* width: 300px; */
  11876. width: 100%;
  11877. }
  11878. .noVedio {
  11879. display: flex;
  11880. flex-direction: row;
  11881. justify-content: center;
  11882. align-content: center;
  11883. }
  11884. .noNavText {
  11885. cursor: pointer;
  11886. margin: 0px 0px 10px 5px;
  11887. width: 112px;
  11888. }
  11889. .listNoVedio {
  11890. margin: 0 0 0 30px;
  11891. width: 97%;
  11892. }
  11893. .video-player>>>.video-js {
  11894. height: 100%;
  11895. }
  11896. .hangVedioList {
  11897. width: 90% !important;
  11898. height: 150px !important;
  11899. margin: 20px 0 0 30px;
  11900. }
  11901. .hangVedio {
  11902. width: 100%;
  11903. height: 170px !important;
  11904. align-items: flex-start !important;
  11905. }
  11906. .hangHand {
  11907. height: 150px !important;
  11908. }
  11909. .twoChild {
  11910. width: 95%;
  11911. margin: 10px;
  11912. border-radius: 5px;
  11913. background: #f2f2f2;
  11914. display: flex;
  11915. flex-direction: column;
  11916. flex-wrap: nowrap;
  11917. justify-content: flex-start;
  11918. align-items: flex-start;
  11919. transition: all 0.5s;
  11920. overflow: hidden;
  11921. height: 0;
  11922. background: #e7f3ff;
  11923. }
  11924. .twoChild>div:nth-child(1) {
  11925. margin-top: 5px;
  11926. }
  11927. .navChild {
  11928. width: 100%;
  11929. cursor: pointer;
  11930. margin-bottom: 10px;
  11931. position: relative;
  11932. }
  11933. .navChild img {
  11934. position: absolute;
  11935. right: 11px;
  11936. width: 15px;
  11937. top: 50%;
  11938. transform: translateY(-50%);
  11939. }
  11940. .navActive {
  11941. height: auto;
  11942. }
  11943. .navTask {
  11944. display: flex;
  11945. flex-direction: row;
  11946. flex-wrap: nowrap;
  11947. align-items: center;
  11948. align-content: flex-start;
  11949. height: 40px;
  11950. justify-content: flex-start;
  11951. padding: 0 10px;
  11952. width: 100%;
  11953. box-sizing: border-box;
  11954. }
  11955. .navTaskname {
  11956. white-space: nowrap;
  11957. text-overflow: ellipsis;
  11958. overflow: hidden;
  11959. word-break: break-all;
  11960. padding-left: 5px;
  11961. }
  11962. .openTaskActive {
  11963. color: #4386e6;
  11964. }
  11965. .iframeName {
  11966. margin: 5px 0;
  11967. border-left: 4px solid #41c4a4;
  11968. padding-left: 4px;
  11969. }
  11970. .toolTitle {
  11971. margin: 0px 0px 20px;
  11972. font-size: 20px;
  11973. font-weight: 500;
  11974. border-left: 4px solid #41c4a4;
  11975. padding-left: 4px;
  11976. }
  11977. .cru_selectBox {
  11978. overflow: auto;
  11979. width: 96%;
  11980. margin: 0 auto;
  11981. height: calc(100% - 40px - 21px - 20px);
  11982. }
  11983. .cru_selectBox::-webkit-scrollbar,
  11984. .study_top::-webkit-scrollbar,
  11985. .textContent::-webkit-scrollbar {
  11986. /*滚动条整体样式*/
  11987. width: 6px;
  11988. /*高宽分别对应横竖滚动条的尺寸*/
  11989. height: 6px;
  11990. }
  11991. /*定义滚动条轨道 内阴影+圆角*/
  11992. .cru_selectBox::-webkit-scrollbar-track,
  11993. .study_top::-webkit-scrollbar-track,
  11994. .textContent::-webkit-scrollbar {
  11995. border-radius: 10px;
  11996. background-color: #b8bdc9;
  11997. }
  11998. /*定义滑块 内阴影+圆角*/
  11999. .cru_selectBox::-webkit-scrollbar-thumb,
  12000. .study_top::-webkit-scrollbar-thumb,
  12001. .textContent::-webkit-scrollbar-thumb {
  12002. border-radius: 10px;
  12003. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  12004. background-color: #2c5ab3;
  12005. }
  12006. .vedioBox {
  12007. border-radius: 20px;
  12008. background: #fff;
  12009. margin-bottom: 10px;
  12010. overflow: auto;
  12011. }
  12012. .taskBox {
  12013. margin: 15px auto 20px;
  12014. background: #f7f7f7;
  12015. width: 97%;
  12016. border-radius: 10px;
  12017. }
  12018. .vedioTaskBox {
  12019. width: 100%;
  12020. display: flex;
  12021. flex-direction: row;
  12022. flex-wrap: nowrap;
  12023. align-items: flex-start;
  12024. position: relative;
  12025. }
  12026. .toolBox {
  12027. padding: 20px 60px 15px;
  12028. display: flex;
  12029. position: relative;
  12030. }
  12031. .btnAll {
  12032. position: absolute;
  12033. right: 0;
  12034. display: flex;
  12035. flex-direction: row;
  12036. flex-wrap: nowrap;
  12037. align-items: center;
  12038. }
  12039. .btnAllNT {
  12040. position: fixed;
  12041. bottom: 50px;
  12042. right: 40px;
  12043. z-index: 999;
  12044. display: flex;
  12045. flex-direction: row;
  12046. }
  12047. .btnAllNT>img {
  12048. cursor: pointer;
  12049. width: 80px;
  12050. }
  12051. .vedioTimeBox {
  12052. display: flex;
  12053. flex-direction: row;
  12054. align-items: center;
  12055. flex-wrap: nowrap;
  12056. position: relative;
  12057. }
  12058. .navBox {
  12059. background: #fff;
  12060. height: calc(100% - 40px);
  12061. padding: 5px 1px 0;
  12062. overflow-y: auto;
  12063. overflow-x: hidden;
  12064. }
  12065. .tool_work_box {
  12066. width: 100%;
  12067. padding: 0 30px 10px;
  12068. box-sizing: border-box;
  12069. }
  12070. .worksBox {
  12071. padding: 5px 0;
  12072. border-bottom: 1px solid #eeeeee;
  12073. }
  12074. .worksBTitle {
  12075. font-size: 20px;
  12076. padding-bottom: 15px;
  12077. border-bottom: 1px solid #eeeeee;
  12078. display: flex;
  12079. align-items: center;
  12080. }
  12081. .greenBox {
  12082. width: 5px;
  12083. height: 30px;
  12084. background: #63b6fa;
  12085. margin-right: 5px;
  12086. }
  12087. .worksDetailBox {
  12088. display: flex;
  12089. width: 100%;
  12090. flex-direction: row;
  12091. flex-wrap: wrap;
  12092. align-items: flex-end;
  12093. justify-content: flex-start;
  12094. padding: 15px 0;
  12095. }
  12096. .works {
  12097. display: flex;
  12098. flex-direction: column;
  12099. flex-wrap: nowrap;
  12100. align-items: flex-start;
  12101. justify-content: flex-start;
  12102. align-content: center;
  12103. max-width: 240px;
  12104. width: calc(100% / 3 - 10px);
  12105. height: auto;
  12106. margin-right: 10px;
  12107. margin-bottom: 10px;
  12108. overflow: hidden;
  12109. height: 140px;
  12110. box-shadow: 0 0 6px 1px #dfdada;
  12111. border-radius: 15px;
  12112. }
  12113. .workImg {
  12114. width: 100%;
  12115. /* height: calc(100% - 40px); */
  12116. height: 105px;
  12117. position: relative;
  12118. }
  12119. .workImg>img {
  12120. width: 100%;
  12121. height: 100%;
  12122. object-fit: contain;
  12123. cursor: pointer;
  12124. }
  12125. .worksName {
  12126. height: 40px;
  12127. line-height: 40px;
  12128. display: flex;
  12129. width: 100%;
  12130. flex-direction: row;
  12131. flex-wrap: nowrap;
  12132. justify-content: space-between;
  12133. align-items: center;
  12134. margin: 0 0 0 10px;
  12135. }
  12136. .worksName>div:nth-child(1) {
  12137. width: 110px;
  12138. white-space: nowrap;
  12139. overflow: hidden;
  12140. text-overflow: ellipsis;
  12141. }
  12142. .worksName>div:nth-child(2) {
  12143. color: #b7b4b5;
  12144. }
  12145. .noWorksS {
  12146. padding: 15px 0 0;
  12147. display: flex;
  12148. flex-direction: row;
  12149. flex-wrap: wrap;
  12150. align-items: center;
  12151. justify-content: flex-start;
  12152. }
  12153. .noWorksS>div {
  12154. cursor: pointer;
  12155. }
  12156. .noWorksName,
  12157. .isWorksName {
  12158. background: #7cbcf1;
  12159. color: #fff;
  12160. width: 90px;
  12161. height: 25px;
  12162. text-align: center;
  12163. line-height: 25px;
  12164. border-radius: 5px;
  12165. margin: 10px 15px 10px 0;
  12166. white-space: nowrap;
  12167. overflow: hidden;
  12168. padding: 5px;
  12169. text-overflow: ellipsis;
  12170. }
  12171. .noWorksName.isWork{
  12172. background: #165d96 !important;
  12173. }
  12174. .isWorksName {
  12175. cursor: pointer;
  12176. background: #46a1eb !important;
  12177. width: 100px;
  12178. height: 40px;
  12179. line-height: 40px;
  12180. position: relative;
  12181. }
  12182. .noWorksName:hover {
  12183. background: #46a1eb !important;
  12184. }
  12185. .title {
  12186. background: #1e5cc9;
  12187. /* width: 98%; */
  12188. height: 45px;
  12189. color: #fff;
  12190. line-height: 45px;
  12191. padding-left: 20px;
  12192. box-sizing: border-box;
  12193. }
  12194. .textBox {
  12195. font-size: 20px;
  12196. width: 90%;
  12197. display: flex;
  12198. flex-direction: column;
  12199. align-items: center;
  12200. margin: 20px auto 0;
  12201. max-height: 500px;
  12202. overflow: auto;
  12203. }
  12204. .textContent {
  12205. font-size: 18px;
  12206. width: 95%;
  12207. max-width: 95%;
  12208. }
  12209. .answerBg {
  12210. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  12211. background-size: 100% 100%;
  12212. width: 100%;
  12213. height: 100%;
  12214. color: #fff;
  12215. text-align: center;
  12216. display: flex;
  12217. flex-direction: column;
  12218. flex-wrap: nowrap;
  12219. align-items: center;
  12220. position: relative;
  12221. justify-content: center;
  12222. }
  12223. .answerBg>div:nth-child(1) {
  12224. /* font-size: 22px;
  12225. padding: 25px 0 10px; */
  12226. }
  12227. .answerContent {
  12228. width: 215px;
  12229. max-height: 60px;
  12230. word-break: break-all;
  12231. text-align: center;
  12232. /* white-space: nowrap; */
  12233. overflow: hidden;
  12234. text-overflow: ellipsis;
  12235. /* padding: 23px 0 0; */
  12236. -webkit-line-clamp: 3;
  12237. -webkit-box-orient: vertical;
  12238. display: -webkit-box;
  12239. font-size: 15px;
  12240. cursor: pointer;
  12241. }
  12242. .elist_input_box {
  12243. display: flex;
  12244. align-items: flex-start;
  12245. flex-wrap: nowrap;
  12246. padding: 10px 0 15px 30px;
  12247. flex-direction: column;
  12248. }
  12249. .elist_input {
  12250. /* width: 40%; */
  12251. width: 100%;
  12252. }
  12253. .elist_input .elist_input_box input {
  12254. font: inherit;
  12255. color: currentColor;
  12256. width: 200px;
  12257. padding: 8px 14px;
  12258. display: block;
  12259. min-width: 0;
  12260. outline: none;
  12261. border: 1px solid rgba(0, 0, 0, 0.23);
  12262. border-radius: 4px;
  12263. box-sizing: border-box;
  12264. background: #fff;
  12265. margin: 0 20px 0 0;
  12266. }
  12267. .elist_input .elist_input_box span {
  12268. height: 36px;
  12269. line-height: 36px;
  12270. color: rgb(82, 82, 82);
  12271. }
  12272. .elist_input .elist_input_box .remove {
  12273. height: 20px;
  12274. width: 20px;
  12275. background-size: 100% 100%;
  12276. background-position: unset;
  12277. margin-left: 5px;
  12278. }
  12279. .elist_input_box>>>.el-rate {
  12280. display: flex;
  12281. height: 36px;
  12282. align-items: center;
  12283. }
  12284. .elist_input_box .elist_inptu_text {
  12285. min-height: 50px;
  12286. /* width: 500px;
  12287. max-height: 150px; */
  12288. width: 100%;
  12289. line-height: 50px;
  12290. color: rgb(82, 82, 82);
  12291. overflow: auto;
  12292. text-indent: 5px;
  12293. background: #f7f6f9;
  12294. border-radius: 10px;
  12295. }
  12296. .elist_input_box .elist_inptu_text input {
  12297. width: 500px;
  12298. }
  12299. .elist_input_box>>>.el-rate__icon {
  12300. font-size: 24px;
  12301. }
  12302. .isClick {
  12303. background: #4d9def;
  12304. }
  12305. /*定义滚动条轨道 内阴影+圆角*/
  12306. .bzTypeBox::-webkit-scrollbar {
  12307. /*滚动条整体样式*/
  12308. width: 6px;
  12309. /*高宽分别对应横竖滚动条的尺寸*/
  12310. height: 6px;
  12311. }
  12312. /*定义滚动条轨道 内阴影+圆角*/
  12313. .bzTypeBox::-webkit-scrollbar-track {
  12314. border-radius: 10px;
  12315. background-color: rgba(0, 0, 0, 0.1);
  12316. }
  12317. /*定义滑块 内阴影+圆角*/
  12318. .bzTypeBox::-webkit-scrollbar-thumb {
  12319. border-radius: 10px;
  12320. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  12321. background-color: rgba(0, 0, 0, 0.1);
  12322. }
  12323. .choiceBox{
  12324. display:flex;
  12325. margin: 20px 0;
  12326. width: 100%;
  12327. }
  12328. .bzTypeBox {
  12329. display: flex;
  12330. width: 100%;
  12331. overflow: auto;
  12332. white-space: nowrap;
  12333. }
  12334. .bzChild {
  12335. cursor: pointer;
  12336. box-sizing: border-box;
  12337. padding-bottom: 10px;
  12338. font-weight: bold;
  12339. min-width: fit-content;
  12340. }
  12341. .bzChild.active{
  12342. color: #3e88f4;
  12343. border-bottom: 2px solid #2f80f3;
  12344. }
  12345. .bzChild +.bzChild{
  12346. margin-left: 25px;
  12347. }
  12348. .bzBox {
  12349. display: flex;
  12350. flex-direction: row;
  12351. align-items: center;
  12352. }
  12353. .bzBox>div:nth-child(1) {
  12354. width: 4px;
  12355. height: 40px;
  12356. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  12357. }
  12358. .bzBox>div:nth-child(2) {
  12359. font-size: 23px;
  12360. font-weight: bold;
  12361. padding: 0px 0px 0 10px;
  12362. }
  12363. .navTitile {
  12364. padding: 0 0px 0 15px;
  12365. color: #fff;
  12366. height: 40px;
  12367. line-height: 40px;
  12368. }
  12369. .isTypeOne {
  12370. width: 240px;
  12371. height: 170px;
  12372. /* border: 1px solid #f8f8f8; */
  12373. border-radius: 10px;
  12374. box-shadow: 0 0 6px 1px #dfdada;
  12375. }
  12376. .e_add_top {
  12377. display: flex;
  12378. justify-content: space-between;
  12379. padding: 20px 20px 0 20px;
  12380. border-radius: 3px;
  12381. background: #fff;
  12382. }
  12383. .e_add_title2 {
  12384. display: flex;
  12385. align-items: center;
  12386. }
  12387. .e_add_title2 span {
  12388. width: 40px;
  12389. }
  12390. .e_add_title {
  12391. display: flex;
  12392. align-items: center;
  12393. color: #b8b8b8;
  12394. font-size: 18px;
  12395. position: relative;
  12396. height: 40px;
  12397. }
  12398. .e_add_title span {
  12399. margin-right: 10px;
  12400. }
  12401. .e_add_title .el_input {
  12402. width: 300px;
  12403. }
  12404. .e_add_title>>>.el-input__inner {
  12405. width: 400px;
  12406. }
  12407. .e_add_btn {}
  12408. .e_add_content {
  12409. display: flex;
  12410. width: 100%;
  12411. max-width: 650px;
  12412. height: 550px;
  12413. }
  12414. .e_add_list {
  12415. background: #fff;
  12416. height: 500px;
  12417. width: 210px;
  12418. position: relative;
  12419. margin: 15px 5px 0 0;
  12420. flex-shrink: 0;
  12421. display: flex;
  12422. flex-direction: column;
  12423. }
  12424. .e_add_list_title {
  12425. font-size: 20px;
  12426. width: 100%;
  12427. box-sizing: border-box;
  12428. padding: 15px 40px;
  12429. text-align: center;
  12430. border-bottom: 1px solid #eaeaea;
  12431. position: relative;
  12432. display: flex;
  12433. align-items: center;
  12434. justify-content: center;
  12435. height: 57px;
  12436. background: #f6f6f6;
  12437. }
  12438. .e_add_list_title span {
  12439. overflow: hidden;
  12440. white-space: nowrap;
  12441. text-overflow: ellipsis;
  12442. }
  12443. .e_add_list_title img {
  12444. position: absolute;
  12445. right: 15px;
  12446. width: 25px;
  12447. cursor: pointer;
  12448. top: 50%;
  12449. transform: translateY(-50%);
  12450. }
  12451. .e_add_list_body {
  12452. height: calc(100% - 187px);
  12453. overflow: auto;
  12454. }
  12455. .e_add_list_child {
  12456. width: 100%;
  12457. display: flex;
  12458. align-items: center;
  12459. justify-content: center;
  12460. position: relative;
  12461. box-sizing: border-box;
  12462. padding: 15px 40px;
  12463. text-align: center;
  12464. }
  12465. .e_add_list_child span {
  12466. overflow: hidden;
  12467. white-space: nowrap;
  12468. text-overflow: ellipsis;
  12469. cursor: pointer;
  12470. }
  12471. .e_add_list_child img {
  12472. position: absolute;
  12473. right: 10px;
  12474. width: 21px;
  12475. cursor: pointer;
  12476. top: 50%;
  12477. transform: translateY(-50%);
  12478. }
  12479. .e_add_list_child+.e_add_list_child {
  12480. border-top: 1px solid #eaeaea;
  12481. }
  12482. .e_add_list_child .active {
  12483. color: #409eff;
  12484. }
  12485. .e_add_list_btn {
  12486. position: absolute;
  12487. bottom: 0;
  12488. height: 50px;
  12489. background: rgb(120, 120, 254);
  12490. width: 100%;
  12491. color: #fff;
  12492. font-size: 16px;
  12493. text-align: center;
  12494. line-height: 50px;
  12495. cursor: pointer;
  12496. }
  12497. .e_add_list_detail {
  12498. position: absolute;
  12499. bottom: 0;
  12500. height: 130px;
  12501. background: rgb(120, 120, 254);
  12502. width: 100%;
  12503. color: #fff;
  12504. font-size: 16px;
  12505. display: flex;
  12506. align-items: center;
  12507. justify-content: center;
  12508. }
  12509. .e_add_list_detail textarea {
  12510. height: 90%;
  12511. width: 95%;
  12512. border: none;
  12513. resize: none;
  12514. outline: none;
  12515. padding: 5px;
  12516. box-sizing: border-box;
  12517. }
  12518. .e_add_list_pbox {
  12519. width: 100%;
  12520. max-width: 650px;
  12521. /* height: 600px; */
  12522. }
  12523. .e_add_list_pbox_title {
  12524. height: 50px;
  12525. background: #fff;
  12526. display: flex;
  12527. align-items: center;
  12528. width: 100%;
  12529. box-sizing: border-box;
  12530. padding: 0 20px;
  12531. }
  12532. .type_title {
  12533. font-size: 18px;
  12534. font-weight: 700;
  12535. }
  12536. .type_content {
  12537. font-size: 16px;
  12538. margin-left: 30px;
  12539. }
  12540. .type_content span+span {
  12541. margin-left: 20px;
  12542. }
  12543. .type_content span {
  12544. cursor: pointer;
  12545. padding-bottom: 5px;
  12546. box-sizing: border-box;
  12547. }
  12548. .type_content .active {
  12549. color: #409eff;
  12550. border-bottom: 2px solid #409eff;
  12551. }
  12552. .e_add_list_pbox_content {
  12553. height: calc(100% - 50px);
  12554. display: flex;
  12555. align-items: center;
  12556. width: 100%;
  12557. background: #fff;
  12558. }
  12559. .evaCss {
  12560. display: flex;
  12561. flex-direction: row;
  12562. flex-wrap: nowrap;
  12563. align-items: flex-start;
  12564. }
  12565. .cru_line {
  12566. position: absolute;
  12567. bottom: 0px;
  12568. transition: all 0.5s;
  12569. left: 0px;
  12570. width: 125px;
  12571. margin-left: -25px;
  12572. }
  12573. .isNoMessage {
  12574. width: 20%;
  12575. margin: 25% auto 0;
  12576. }
  12577. .isNoMessage>img {
  12578. width: 100%;
  12579. height: 100%;
  12580. }
  12581. .fullStyle>>>.el-dialog__body {
  12582. height: 100% !important;
  12583. }
  12584. .fullStyle>>>.el-dialog,
  12585. .fullStyle {
  12586. width: 100% !important;
  12587. max-width: 100% !important;
  12588. height: 100% !important;
  12589. margin: 0 !important;
  12590. }
  12591. .full_diy>>>.el-dialog {
  12592. margin: 0 !important;
  12593. height: 100%;
  12594. padding: 4px;
  12595. }
  12596. .full_diy>>>.el-dialog__body {
  12597. height: calc(100% - 100px);
  12598. }
  12599. .full_diy2>>>.el-dialog__body {
  12600. height: calc(100% - 50px);
  12601. padding: 0;
  12602. }
  12603. .switchCss {
  12604. /* width: 100%; */
  12605. display: flex;
  12606. flex-direction: row;
  12607. flex-wrap: nowrap;
  12608. align-items: center;
  12609. /* justify-content: center; */
  12610. }
  12611. .isClickNav {
  12612. color: #499eef;
  12613. }
  12614. .commentImg {
  12615. width: 25px;
  12616. height: 25px;
  12617. cursor: pointer;
  12618. }
  12619. .commentImg>img {
  12620. width: 100%;
  12621. height: 100%;
  12622. }
  12623. .comment {
  12624. background: #f9f9f9;
  12625. border-radius: 0 0 15px 15px;
  12626. display: flex;
  12627. flex-direction: row;
  12628. flex-wrap: nowrap;
  12629. align-items: center;
  12630. justify-content: flex-end;
  12631. height: 35px;
  12632. }
  12633. .commentList {
  12634. display: flex;
  12635. flex-direction: row;
  12636. flex-wrap: nowrap;
  12637. align-items: center;
  12638. justify-content: center;
  12639. align-content: center;
  12640. /* margin-left: 15px; */
  12641. /* margin-left: 8px; */
  12642. }
  12643. .scoreImg {
  12644. width: 17px;
  12645. height: 17px;
  12646. }
  12647. .studentDetail {
  12648. display: flex;
  12649. flex-direction: row;
  12650. flex-wrap: nowrap;
  12651. /* align-items: center; */
  12652. align-items: flex-start;
  12653. }
  12654. .tx {
  12655. width: 50px;
  12656. }
  12657. .tx>img {
  12658. width: 100%;
  12659. height: 100%;
  12660. }
  12661. .nameAndTime {
  12662. display: flex;
  12663. flex-direction: column;
  12664. flex-wrap: nowrap;
  12665. align-items: flex-start;
  12666. margin-left: 10px;
  12667. }
  12668. .worksAnswer {
  12669. color: #4078dd;
  12670. margin: 10px 0;
  12671. font-size: 16px;
  12672. position: relative;
  12673. }
  12674. .worksAnswer>img {
  12675. width: 500px;
  12676. height: 300px;
  12677. object-fit: contain;
  12678. margin: 0 auto;
  12679. display: block;
  12680. }
  12681. .commentTop {
  12682. border-bottom: 1px solid #eaeaea;
  12683. padding-bottom: 10px;
  12684. }
  12685. .commentBox {
  12686. padding-top: 15px;
  12687. }
  12688. .pl {
  12689. font-size: 18px;
  12690. }
  12691. .plPerson {
  12692. width: 100%;
  12693. }
  12694. .plName {
  12695. display: flex;
  12696. flex-direction: row;
  12697. flex-wrap: nowrap;
  12698. align-items: baseline;
  12699. color: #78787a;
  12700. width: 100%;
  12701. }
  12702. .deleteComment {
  12703. cursor: pointer;
  12704. margin-left: auto;
  12705. color: #237ade;
  12706. }
  12707. .plContent {
  12708. margin-top: 5px;
  12709. }
  12710. .evalCss {
  12711. background: #fff;
  12712. font-size: 18px;
  12713. }
  12714. .nav {
  12715. color: #9d9d9d;
  12716. padding: 5px 0 15px 20px;
  12717. }
  12718. .middleBox {
  12719. padding: 5px 0 15px 20px;
  12720. }
  12721. .pfBox {
  12722. padding-bottom: 30px;
  12723. }
  12724. .nameAndrate {
  12725. display: flex;
  12726. flex-direction: row;
  12727. flex-wrap: nowrap;
  12728. align-items: center;
  12729. padding-bottom: 10px;
  12730. height: 30px;
  12731. line-height: 30px;
  12732. }
  12733. .nameAndrate>div {
  12734. margin-left: 10px;
  12735. color: #000;
  12736. height: 30px;
  12737. }
  12738. .nameAndrate>>>.el-rate__icon {
  12739. font-size: 28px !important;
  12740. }
  12741. .pfBox>div:nth-child(2) {
  12742. background: #f7f6f9;
  12743. width: 400px;
  12744. min-height: 45px;
  12745. border-radius: 10px;
  12746. font-size: 16px;
  12747. display: flex;
  12748. flex-wrap: wrap;
  12749. align-items: center;
  12750. padding: 10px 20px;
  12751. box-sizing: border-box;
  12752. color: #000;
  12753. }
  12754. .bz {
  12755. display: flex;
  12756. flex-direction: row;
  12757. flex-wrap: nowrap;
  12758. align-items: flex-start;
  12759. }
  12760. .bz>div {
  12761. padding: 0 10px;
  12762. }
  12763. .select_box2_title {
  12764. background: #fff;
  12765. border-radius: 5px;
  12766. padding: 15px 10px;
  12767. box-sizing: border-box;
  12768. margin-bottom: 10px;
  12769. display: flex;
  12770. flex-direction: row;
  12771. flex-wrap: nowrap;
  12772. align-items: center;
  12773. }
  12774. .select_box2_title>div:nth-child(2) {
  12775. margin-left: 10px;
  12776. color: #c4c4c4;
  12777. }
  12778. .select_box2_box {
  12779. display: flex;
  12780. height: 500px;
  12781. }
  12782. .select_box2_img {
  12783. width: calc(100% - 310px);
  12784. height: 100%;
  12785. overflow: auto;
  12786. background: #fff;
  12787. border-radius: 5px;
  12788. }
  12789. .select_box2_img img {
  12790. width: 100%;
  12791. }
  12792. .select_box2_answer {
  12793. background: #fff;
  12794. margin-left: 10px;
  12795. border-radius: 5px;
  12796. width: 300px;
  12797. overflow: auto;
  12798. height: 90%;
  12799. display: flex;
  12800. flex-direction: column;
  12801. align-items: flex-start;
  12802. padding-top: 10px;
  12803. box-sizing: border-box;
  12804. position: relative;
  12805. }
  12806. .select_answer_title {
  12807. padding: 0 0 15px 20px;
  12808. color: #c4c4c4;
  12809. }
  12810. .select_box2_answer_box {
  12811. margin: 0 0 10px 20px;
  12812. width: 85%;
  12813. display: flex;
  12814. flex-direction: row;
  12815. flex-wrap: nowrap;
  12816. align-items: center;
  12817. }
  12818. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  12819. color: #000;
  12820. }
  12821. .upAnswerCss {
  12822. position: absolute;
  12823. bottom: 15px;
  12824. right: 15px;
  12825. }
  12826. .upAnswerCss>>>.el-button {
  12827. width: 95px;
  12828. height: 35px;
  12829. line-height: 35px;
  12830. padding: 0;
  12831. }
  12832. .rightWidthCss {
  12833. width: 60%;
  12834. display: flex;
  12835. flex-direction: row;
  12836. align-items: flex-start;
  12837. }
  12838. .rightAnswer {
  12839. display: flex;
  12840. flex-direction: row;
  12841. flex-wrap: nowrap;
  12842. align-items: center;
  12843. color: red;
  12844. margin-bottom: 31px;
  12845. }
  12846. .rightAnswerCss {
  12847. display: flex;
  12848. flex-direction: column;
  12849. flex-wrap: nowrap;
  12850. padding-top: 60px;
  12851. }
  12852. .blueCss {
  12853. color: #767de1;
  12854. margin-left: 10px;
  12855. }
  12856. .redCss {
  12857. color: red;
  12858. }
  12859. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  12860. color: rgb(0 123 255) !important;
  12861. }
  12862. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  12863. color: rgb(0 123 255) !important;
  12864. }
  12865. .zuoyeYulan {
  12866. padding-top: 15px;
  12867. font-size: 18px;
  12868. display: flex;
  12869. align-items: flex-end;
  12870. }
  12871. .buttonA {
  12872. margin-left: 10px;
  12873. padding: 0;
  12874. }
  12875. .displayBox {
  12876. margin-bottom: 10px;
  12877. display: block;
  12878. border-bottom: 3px solid #eee;
  12879. display: flex;
  12880. align-items: center;
  12881. }
  12882. .easy_comment {
  12883. width: calc(100% - 90px);
  12884. margin-left: 10px;
  12885. display: flex;
  12886. flex-wrap: wrap;
  12887. }
  12888. .easy_comment>div {
  12889. border: 1px solid #4a4a4a;
  12890. color: #666;
  12891. border-radius: 15px;
  12892. padding: 5px 10px;
  12893. font-size: 16px;
  12894. margin-bottom: 10px;
  12895. margin-right: 5px;
  12896. cursor: pointer;
  12897. }
  12898. .easy_comment div:hover {
  12899. border: 1px solid #f7ba2a;
  12900. color: #c69217;
  12901. }
  12902. .xuan_right_box {
  12903. padding: 10px;
  12904. background: rgb(247, 247, 247);
  12905. margin: 10px 12px;
  12906. border-radius: 5px;
  12907. }
  12908. .tool_right_box {
  12909. display: flex;
  12910. align-items: center;
  12911. }
  12912. .tool_right_box+.tool_right_box {
  12913. margin-top: 10px;
  12914. }
  12915. .right_box_xuan {
  12916. background: rgb(0 123 255);
  12917. color: #fff;
  12918. border-radius: 5px;
  12919. padding: 5px;
  12920. margin-left: 10px;
  12921. }
  12922. .pButton:hover {
  12923. opacity: 1 !important;
  12924. }
  12925. .pButton {
  12926. position: fixed;
  12927. /* right: 5%; */
  12928. /* bottom: 5%; */
  12929. color: #fff;
  12930. /* width: 50px;
  12931. height: 50px; */
  12932. /* border-radius: 50%; */
  12933. text-align: center;
  12934. /* line-height: 50px; */
  12935. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  12936. cursor: pointer;
  12937. z-index: 999;
  12938. right: 0;
  12939. top: 83px;
  12940. width: 50px;
  12941. height: 50px;
  12942. background: #fff;
  12943. display: flex;
  12944. align-items: center;
  12945. justify-content: center;
  12946. box-shadow: 0px 0 8px 2px #c5c5c5;
  12947. border-radius: 5px;
  12948. }
  12949. .pzClass {
  12950. width: calc(100% - 340px);
  12951. }
  12952. .newDialogCss {
  12953. /* position: fixed;
  12954. right: 5%;
  12955. top: 50%;
  12956. width: 340px;
  12957. transform: translateY(-50%);
  12958. height: 60%;
  12959. box-shadow: 0px 0 8px 0px #555555;
  12960. border-radius: 15px;
  12961. z-index: 999; */
  12962. position: fixed;
  12963. right: 0;
  12964. top: 70px;
  12965. width: 340px;
  12966. height: calc(100% - 80px);
  12967. z-index: 999;
  12968. background: #fff;
  12969. border-radius: 15px;
  12970. border-top-right-radius: 0px;
  12971. border-bottom-right-radius: 0px;
  12972. overflow: hidden;
  12973. }
  12974. .pzTop {
  12975. color: #fff;
  12976. background: #000;
  12977. display: flex;
  12978. flex-direction: row;
  12979. flex-wrap: nowrap;
  12980. align-items: center;
  12981. justify-content: space-between;
  12982. height: 40px;
  12983. border-radius: 15px 15px 0 0;
  12984. }
  12985. .pzTop2 .checkbox {
  12986. display: flex;
  12987. align-items: center;
  12988. padding: 15px 30px;
  12989. flex: 0 0 auto;
  12990. font-weight: bold;
  12991. border-bottom: 1px solid #eee;
  12992. justify-content: space-between;
  12993. }
  12994. .pzTop2 .check {
  12995. text-align: center;
  12996. cursor: pointer;
  12997. box-sizing: border-box;
  12998. display: flex;
  12999. }
  13000. .pzTop2 img {
  13001. width: 25px;
  13002. cursor: pointer;
  13003. }
  13004. .pzTop>div:nth-child(1) {
  13005. padding-left: 10px;
  13006. }
  13007. .pzTop>div:nth-child(2) {
  13008. width: 15px;
  13009. height: 15px;
  13010. padding-right: 10px;
  13011. cursor: pointer;
  13012. }
  13013. .pzTop>div:nth-child(2)>img {
  13014. width: 100%;
  13015. height: 100%;
  13016. }
  13017. .pzBox,
  13018. .noPzBox {
  13019. height: calc(100% - 60px);
  13020. /* background: #ededed; */
  13021. background: #fff;
  13022. /* border-radius: 0 0 15px 15px; */
  13023. }
  13024. .noPzBox {
  13025. display: flex;
  13026. flex-direction: column;
  13027. flex-wrap: nowrap;
  13028. justify-content: center;
  13029. align-items: center;
  13030. }
  13031. .pzList {
  13032. background: #f7f7f7;
  13033. width: 90%;
  13034. margin: 0 auto 15px;
  13035. border-radius: 5px;
  13036. }
  13037. .pzNavTop {
  13038. display: flex;
  13039. flex-direction: row;
  13040. flex-wrap: nowrap;
  13041. padding: 10px 10px 0 10px;
  13042. align-items: center;
  13043. }
  13044. .pzDelete {
  13045. cursor: pointer;
  13046. margin-left: auto;
  13047. font-size: 14px;
  13048. color: #afafaf;
  13049. }
  13050. .pzNavTop>div:nth-child(1) {
  13051. background: #3760af;
  13052. width: 35px;
  13053. height: 35px;
  13054. color: #fff;
  13055. text-align: center;
  13056. line-height: 35px;
  13057. border-radius: 50%;
  13058. font-size: 14px;
  13059. }
  13060. .pzNavTop>div:nth-child(2) {
  13061. font-size: 18px;
  13062. color: #959595;
  13063. margin-left: 5px;
  13064. }
  13065. .pzContent {
  13066. padding: 10px;
  13067. word-break: break-word;
  13068. }
  13069. .pzContent audio {
  13070. width: 100%;
  13071. }
  13072. .pzContent audio::-webkit-media-controls-panel {
  13073. background: #fff;
  13074. }
  13075. .pzListBox {
  13076. padding-top: 15px;
  13077. height: calc(100% - 60px);
  13078. overflow: auto;
  13079. }
  13080. .addPzButton {
  13081. position: relative;
  13082. margin-top: 3px;
  13083. width: 100%;
  13084. }
  13085. .addPzButton .img1 {
  13086. position: absolute;
  13087. top: 50%;
  13088. right: 25px;
  13089. transform: translateY(-50%);
  13090. height: 100%;
  13091. display: flex;
  13092. align-items: center;
  13093. }
  13094. .addPzButton .img1 div {
  13095. display: flex;
  13096. }
  13097. .addPzButton .img1 div img {
  13098. width: 28px;
  13099. margin-left: 10px;
  13100. cursor: pointer;
  13101. }
  13102. .addPzButton .img1 div span {
  13103. font-size: 14px;
  13104. margin: 4px 0 0 3px;
  13105. color: #afafaf;
  13106. }
  13107. .addPz {
  13108. background: #4b79ce;
  13109. width: 100px;
  13110. color: #fff;
  13111. font-size: 12px;
  13112. height: 30px;
  13113. margin: 0 auto;
  13114. text-align: center;
  13115. line-height: 30px;
  13116. border-radius: 10px;
  13117. cursor: pointer;
  13118. }
  13119. .addDialogCss {
  13120. position: fixed;
  13121. right: 37%;
  13122. top: 50%;
  13123. width: 600px;
  13124. transform: translateY(-50%);
  13125. height: 70%;
  13126. min-height: 450px;
  13127. box-shadow: 0px 0 8px 0px #555555;
  13128. border-radius: 15px;
  13129. z-index: 999;
  13130. }
  13131. .teacherPz {
  13132. display: flex;
  13133. flex-direction: row;
  13134. align-items: center;
  13135. flex-wrap: nowrap;
  13136. }
  13137. .teacherPzImg {
  13138. width: 30px;
  13139. height: 30px;
  13140. }
  13141. .teacherPzImg>img {
  13142. width: 100%;
  13143. height: 100%;
  13144. }
  13145. .addPzBox {
  13146. height: calc(100% - 40px);
  13147. background: #ededed;
  13148. }
  13149. .pzAudioClass {
  13150. margin: 15px 14px;
  13151. background: #fff;
  13152. height: 100%;
  13153. display: flex;
  13154. justify-content: center;
  13155. align-items: center;
  13156. }
  13157. .pzConText {
  13158. width: 95%;
  13159. height: 100%;
  13160. margin: 10px auto 0;
  13161. border: none;
  13162. background: #fff;
  13163. border-radius: 0px;
  13164. }
  13165. .pzConText>>>.text {
  13166. height: calc(100% - 82px);
  13167. }
  13168. .addTextCss {
  13169. background: #4b79ce;
  13170. width: 80px;
  13171. height: 30px;
  13172. text-align: center;
  13173. color: #fff;
  13174. line-height: 30px;
  13175. border-radius: 10px;
  13176. margin: 10px auto 0;
  13177. cursor: pointer;
  13178. }
  13179. .pzConText:focus-visible {
  13180. border: none !important;
  13181. }
  13182. .maxWidth {
  13183. width: 1000px;
  13184. }
  13185. .noPz {
  13186. width: 150px;
  13187. margin: 0 auto 20%;
  13188. }
  13189. .noPz>img {
  13190. width: 100%;
  13191. height: 100%;
  13192. }
  13193. .pzList .time {
  13194. text-align: right;
  13195. box-sizing: border-box;
  13196. padding: 0 10px 10px 0px;
  13197. color: #949494;
  13198. font-size: 14px;
  13199. }
  13200. /* table 样式 */
  13201. .cont>>>table {
  13202. border-top: 1px solid #ccc;
  13203. border-left: 1px solid #ccc;
  13204. }
  13205. .cont>>>table td,
  13206. .cont>>>table th {
  13207. border-bottom: 1px solid #ccc;
  13208. border-right: 1px solid #ccc;
  13209. padding: 15px 5px;
  13210. max-width: 0px;
  13211. }
  13212. .cont>>>table th {
  13213. border-bottom: 2px solid #ccc;
  13214. text-align: center;
  13215. }
  13216. /* blockquote 样式 */
  13217. .cont>>>blockquote {
  13218. display: block;
  13219. border-left: 8px solid #d0e5f2;
  13220. padding: 5px 10px;
  13221. margin: 10px 0;
  13222. line-height: 1.4;
  13223. font-size: 100%;
  13224. background-color: #f1f1f1;
  13225. }
  13226. .addPzCheck {
  13227. display: flex;
  13228. flex-direction: row;
  13229. flex-wrap: nowrap;
  13230. padding: 10px 15px 0;
  13231. }
  13232. .addPzCheck span {
  13233. cursor: pointer;
  13234. padding-bottom: 5px;
  13235. font-weight: bold;
  13236. }
  13237. .addPzCheck span+span {
  13238. margin-left: 10px;
  13239. }
  13240. .addPzCheck .isChooseActive {
  13241. color: #3e88f4;
  13242. border-bottom: 2px solid #2f80f3;
  13243. }
  13244. /* code 样式 */
  13245. .cont>>>code {
  13246. display: inline-block;
  13247. *display: inline;
  13248. *zoom: 1;
  13249. background-color: #f1f1f1;
  13250. border-radius: 3px;
  13251. padding: 3px 5px;
  13252. margin: 0 3px;
  13253. }
  13254. .cont>>>pre code {
  13255. display: block;
  13256. }
  13257. /* ul ol 样式 */
  13258. .cont>>>ul,
  13259. ol {
  13260. margin: 10px 0 10px 20px;
  13261. }
  13262. .scoreBox,
  13263. .scoreDetailBox {
  13264. display: flex;
  13265. align-items: center;
  13266. justify-content: flex-start;
  13267. margin-top: 20px;
  13268. font-size: 18px;
  13269. width: 100%;
  13270. }
  13271. .scoreBox .t,
  13272. .scoreDetailBox .t {
  13273. margin-right: 10px;
  13274. width: 100px;
  13275. text-align: right;
  13276. }
  13277. .scoreDetailBox {
  13278. align-items: flex-start;
  13279. }
  13280. .scoreDetailBox>>>.el-textarea {
  13281. width: calc(100% - 200px);
  13282. }
  13283. .scoreBox>>>.el-input {
  13284. width: 130px;
  13285. font-size: 38px;
  13286. }
  13287. .scoreBox>>>.el-input__inner {
  13288. height: 60px;
  13289. }
  13290. .answerScore {
  13291. position: absolute;
  13292. top: 10px;
  13293. right: 10px;
  13294. background: #0000008f;
  13295. border-radius: 5px;
  13296. padding: 3px 5px;
  13297. font-size: 14px;
  13298. color: #fff;
  13299. cursor: pointer;
  13300. }
  13301. .open_box .switch_box {
  13302. width: 100%;
  13303. margin: 0 auto;
  13304. display: flex;
  13305. justify-content: space-between;
  13306. }
  13307. .open_box .switch_box+.switch_box {
  13308. margin-top: 10px;
  13309. }
  13310. .deleteImg {
  13311. width: 25px !important;
  13312. height: 25px !important;
  13313. cursor: pointer;
  13314. position: absolute;
  13315. top: 10px;
  13316. right: 10px;
  13317. }
  13318. .deleteImg2 {
  13319. width: 15px !important;
  13320. height: 15px !important;
  13321. top: 5px;
  13322. right: 5px;
  13323. }
  13324. .rightW {
  13325. right: 40px;
  13326. }
  13327. .drawPBox {
  13328. display: flex;
  13329. flex-direction: column;
  13330. position: relative;
  13331. }
  13332. .drawPBox span {
  13333. font-size: 18px;
  13334. color: #606266;
  13335. padding-bottom: 10px;
  13336. margin: 10px 0;
  13337. border-bottom: 1px solid #eaeaea;
  13338. }
  13339. .drawPBox img {
  13340. width: 500px;
  13341. height: 300px;
  13342. object-fit: contain;
  13343. cursor: pointer;
  13344. margin: 0 auto;
  13345. }
  13346. .sentenBox {
  13347. background: #fff;
  13348. height: 450px;
  13349. overflow: auto;
  13350. background-image: url("../../assets/icon/conSentences/stuBg.png");
  13351. background-position: 102%;
  13352. background-repeat: no-repeat;
  13353. background-size: 60%;
  13354. }
  13355. .addSen {
  13356. background: #409efe;
  13357. width: 90px;
  13358. color: #fff;
  13359. height: 35px;
  13360. text-align: center;
  13361. line-height: 35px;
  13362. border-radius: 5px;
  13363. float: right;
  13364. margin: 10px 20px 0 0;
  13365. cursor: pointer;
  13366. }
  13367. .sentenTop {
  13368. display: flex;
  13369. flex-direction: row;
  13370. flex-wrap: nowrap;
  13371. align-items: center;
  13372. padding: 55px 0 0 20px;
  13373. box-sizing: border-box;
  13374. }
  13375. .sentenTop>div:nth-child(2) {
  13376. width: 300px;
  13377. margin: 0 15px;
  13378. }
  13379. .sentenTop>div:nth-child(3) {
  13380. background: #409efe;
  13381. color: #fff;
  13382. width: 65px;
  13383. height: 35px;
  13384. text-align: center;
  13385. line-height: 35px;
  13386. border-radius: 5px;
  13387. cursor: pointer;
  13388. }
  13389. .cardList,
  13390. .cardList1 {
  13391. padding: 10px 0 10px 0;
  13392. display: flex;
  13393. flex-direction: row;
  13394. flex-wrap: wrap;
  13395. align-items: center;
  13396. box-sizing: border-box;
  13397. border-bottom: 1px solid #f4f4f4;
  13398. width: 98%;
  13399. margin: 0 auto;
  13400. min-width: 60%;
  13401. max-width: 85%;
  13402. }
  13403. .cardList1 {
  13404. padding: 10px 0 10px 10px !important;
  13405. margin: 0 !important;
  13406. }
  13407. .cardBox {
  13408. display: flex;
  13409. flex-direction: row;
  13410. flex-wrap: wrap;
  13411. align-items: center;
  13412. align-content: center;
  13413. }
  13414. .cardBox>div {
  13415. margin-bottom: 10px;
  13416. }
  13417. .isCard,
  13418. .isChooseCard,
  13419. .noCard,
  13420. .isCard1 {
  13421. width: 130px;
  13422. height: 60px;
  13423. text-align: center;
  13424. line-height: 60px;
  13425. font-size: 20px;
  13426. cursor: pointer;
  13427. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  13428. background-size: cover;
  13429. transition: all 2s;
  13430. margin-right: 20px;
  13431. }
  13432. .isCard>div,
  13433. .noCard>div,
  13434. .isCard1>div {
  13435. white-space: nowrap;
  13436. overflow: hidden;
  13437. text-overflow: ellipsis;
  13438. width: 75%;
  13439. margin: 0 auto;
  13440. }
  13441. .noCard {
  13442. background-image: none;
  13443. }
  13444. .isCard1 {
  13445. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  13446. }
  13447. .isChooseCard {
  13448. background-image: none;
  13449. border: 1px dashed #b9b9b9;
  13450. border-radius: 10px;
  13451. }
  13452. .card {
  13453. width: 130px;
  13454. height: 60px;
  13455. }
  13456. .card>img {
  13457. width: 100%;
  13458. height: 100%;
  13459. }
  13460. .rightCardBox {
  13461. margin: 10px 0 0 10px;
  13462. }
  13463. .rightCardBox>div:nth-child(1) {
  13464. margin-bottom: 10px;
  13465. }
  13466. .cardCss {
  13467. display: flex;
  13468. flex-direction: column;
  13469. flex-wrap: nowrap;
  13470. align-items: center;
  13471. border-bottom: 3px solid #b4c3d3;
  13472. padding: 0 0 5px 0;
  13473. margin-right: 10px;
  13474. }
  13475. .cardCss>div:nth-child(2) {
  13476. background: #5b7b9d;
  13477. color: #fff;
  13478. width: 20px;
  13479. height: 20px;
  13480. border-radius: 50%;
  13481. text-align: center;
  13482. line-height: 20px;
  13483. }
  13484. .isWrong {
  13485. display: flex;
  13486. flex-direction: row;
  13487. flex-wrap: nowrap;
  13488. align-content: center;
  13489. align-items: center;
  13490. }
  13491. .answerRight {
  13492. width: 25%;
  13493. }
  13494. .isTj {
  13495. display: flex;
  13496. flex-direction: row;
  13497. flex-wrap: nowrap;
  13498. align-items: center;
  13499. }
  13500. .isTj>div:nth-child(2) {
  13501. color: #727070;
  13502. margin-left: 10px;
  13503. }
  13504. .isTjImg {
  13505. width: 30px;
  13506. height: 30px;
  13507. }
  13508. .isTjImg>img {
  13509. width: 100%;
  13510. height: 100%;
  13511. }
  13512. .cardAnswerBox {
  13513. font-size: 18px;
  13514. width: 97%;
  13515. border: 5px;
  13516. padding: 0;
  13517. border-radius: 5px;
  13518. margin: 10px auto;
  13519. word-break: break-word;
  13520. }
  13521. .w_name {
  13522. margin-bottom: 10px;
  13523. }
  13524. .w_name span {
  13525. font-size: 16px;
  13526. }
  13527. .w_teachert {
  13528. width: 50px !important;
  13529. position: absolute;
  13530. height: auto !important;
  13531. z-index: 10;
  13532. right: 25px;
  13533. top: -25px;
  13534. }
  13535. .group_workBox {}
  13536. .group_workBox+.group_workBox {
  13537. margin-top: 20px;
  13538. }
  13539. .group_box {
  13540. padding-bottom: 20px;
  13541. border-bottom: 2px solid #f0f0f0;
  13542. }
  13543. .group_title {
  13544. display: flex;
  13545. align-items: center;
  13546. justify-content: space-between;
  13547. }
  13548. .group_name {
  13549. background-image: url(../../assets/icon/groupN.png);
  13550. width: 220px;
  13551. background-size: 100% 100%;
  13552. height: 67px;
  13553. padding: 0 20px 0 43px;
  13554. box-sizing: border-box;
  13555. line-height: 63px;
  13556. color: #fff;
  13557. overflow: hidden;
  13558. white-space: nowrap;
  13559. text-overflow: ellipsis;
  13560. }
  13561. .group_work {
  13562. width: 100%;
  13563. padding: 0 10px;
  13564. box-sizing: border-box;
  13565. display: flex;
  13566. flex-wrap: wrap;
  13567. }
  13568. .g_d_box {
  13569. display: flex;
  13570. flex-flow: wrap;
  13571. justify-content: space-around;
  13572. }
  13573. .g_d_box .isChair {
  13574. background-image: url(../../assets/avatar.png) !important;
  13575. }
  13576. .g_d_group {
  13577. width: 500px;
  13578. margin-bottom: 80px;
  13579. }
  13580. .g_d_group_chair {
  13581. display: flex;
  13582. align-items: center;
  13583. justify-content: center;
  13584. }
  13585. .g_d_group_chair>div+div {
  13586. margin-left: 30px;
  13587. }
  13588. .g_d_group_chair>div,
  13589. .g_d_group_chair2>div {
  13590. display: flex;
  13591. flex-direction: column;
  13592. align-items: center;
  13593. }
  13594. .g_d_group_chair>div>span:nth-child(1),
  13595. .g_d_group_chair2>div>span:nth-child(1) {
  13596. background-image: url(../../assets/icon/chair.png);
  13597. width: 50px;
  13598. height: 50px;
  13599. display: block;
  13600. background-size: 100% 100%;
  13601. }
  13602. .g_d_group_tableBox {
  13603. display: flex;
  13604. align-items: center;
  13605. justify-content: center;
  13606. }
  13607. .g_d_group_chair2 {
  13608. display: flex;
  13609. flex-direction: column;
  13610. align-items: center;
  13611. justify-content: center;
  13612. }
  13613. .g_d_group_chair2>div+div {
  13614. margin-top: 10px;
  13615. }
  13616. .g_d_group_table {
  13617. background-image: url(../../assets/icon/groupBg.png);
  13618. width: 354px;
  13619. height: 196px;
  13620. background-size: 100% 100%;
  13621. display: flex;
  13622. align-items: center;
  13623. justify-content: center;
  13624. flex-direction: column;
  13625. color: #fff;
  13626. }
  13627. .g_d_group_table>div:nth-child(1) {
  13628. font-size: 24px;
  13629. margin-bottom: 5px;
  13630. }
  13631. .g_d_group_table>div:nth-child(2) div {
  13632. cursor: pointer;
  13633. background: #2e77bf;
  13634. padding: 4px 10px;
  13635. border-radius: 5px;
  13636. }
  13637. .groupBox {}
  13638. .groupContent+.groupContent {
  13639. margin-top: 30px;
  13640. }
  13641. .groupTitle {
  13642. font-size: 24px;
  13643. color: rgb(80, 80, 80);
  13644. margin-bottom: 20px;
  13645. }
  13646. .groupName {
  13647. display: flex;
  13648. align-items: center;
  13649. }
  13650. .groupn {
  13651. font-size: 15px;
  13652. margin-right: 10px;
  13653. }
  13654. .groupName+.groupName {
  13655. margin-top: 15px;
  13656. }
  13657. .groupBtn {
  13658. margin-left: 10px;
  13659. }
  13660. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13661. text-align: left;
  13662. }
  13663. .g_d_btnBox {
  13664. display: flex;
  13665. justify-content: flex-end;
  13666. align-items: flex-end;
  13667. margin-bottom: 20px;
  13668. }
  13669. .updateChair {
  13670. position: relative;
  13671. }
  13672. .updateChairBtn {
  13673. position: absolute;
  13674. width: 50px;
  13675. height: 50px;
  13676. overflow: hidden;
  13677. /* display: flex; */
  13678. align-items: center;
  13679. justify-content: center;
  13680. background: #00000087;
  13681. color: #fff;
  13682. border-radius: 50px;
  13683. display: none;
  13684. cursor: pointer;
  13685. }
  13686. .updateChair:hover .updateChairBtn {
  13687. display: flex;
  13688. }
  13689. .group_staic_box {
  13690. display: flex;
  13691. padding: 30px 40px 10px;
  13692. flex-wrap: wrap;
  13693. }
  13694. .group_staic {
  13695. /* width: 50%; */
  13696. margin-bottom: 20px;
  13697. display: flex;
  13698. align-items: center;
  13699. }
  13700. .group_staic span:nth-child(1) {
  13701. width: 150px;
  13702. text-align: right;
  13703. margin-right: 15px;
  13704. }
  13705. .group_staic span:nth-child(2) {
  13706. background: rgb(0 123 255);
  13707. color: #fff;
  13708. border-radius: 5px;
  13709. padding: 5px;
  13710. }
  13711. .codeFileBox {
  13712. height: 300px;
  13713. background: #fff;
  13714. display: flex;
  13715. align-items: center;
  13716. justify-content: center;
  13717. }
  13718. .codeFileBox img {
  13719. width: 200px;
  13720. margin: 0;
  13721. height: auto;
  13722. }
  13723. .codeFileBox div {
  13724. background: rgb(80, 142, 226);
  13725. color: #fff;
  13726. padding: 10px 20px;
  13727. border-radius: 25px;
  13728. cursor: pointer;
  13729. margin-left: 15px;
  13730. }
  13731. .radioBox {
  13732. display: flex;
  13733. flex-direction: column;
  13734. flex-wrap: nowrap;
  13735. align-items: flex-start;
  13736. }
  13737. .radioBox>div {
  13738. margin: 10px 0 0 10px;
  13739. }
  13740. /* .radioBox >>> .el-radio__input,
  13741. .radioBox >>> .el-checkbox__inner {
  13742. margin-left: 10px;
  13743. } */
  13744. .radioBox>>>.el-radio__label,
  13745. .radioBox>>>.el-checkbox__label {
  13746. display: flex;
  13747. align-items: center;
  13748. }
  13749. .radioBox >>> .el-radio__label > span {
  13750. width: 100%;
  13751. display: -webkit-box;
  13752. overflow: hidden;
  13753. white-space: normal !important;
  13754. text-overflow: ellipsis;
  13755. word-wrap: break-word;
  13756. }
  13757. .inImg {
  13758. width: 100px;
  13759. cursor: pointer;
  13760. }
  13761. .inImg>img {
  13762. width: 100%;
  13763. height: 100%;
  13764. object-fit: cover;
  13765. }
  13766. .timuImgBox {
  13767. margin: 10px 0;
  13768. display: flex;
  13769. flex-direction: column;
  13770. flex-wrap: wrap;
  13771. align-items: flex-start;
  13772. }
  13773. .timuImg {
  13774. width: 150px;
  13775. margin: 5px 0;
  13776. cursor: pointer;
  13777. }
  13778. .timuImg>img {
  13779. width: 100%;
  13780. height: 100%;
  13781. object-fit: cover;
  13782. }
  13783. .worksTop {
  13784. display: flex;
  13785. flex-direction: row;
  13786. align-items: flex-end;
  13787. }
  13788. .corOpen {
  13789. margin: 0 0 0 10px;
  13790. font-size: 14px;
  13791. cursor: pointer;
  13792. color: #505050;
  13793. }
  13794. .corOpen:hover {
  13795. color: #499eef;
  13796. }
  13797. .navCorOpenBox {
  13798. display: flex;
  13799. flex-direction: row;
  13800. align-items: center;
  13801. background: #1e5cc9;
  13802. justify-content: space-between;
  13803. }
  13804. .navCorOpen {
  13805. padding-right: 15px;
  13806. cursor: pointer;
  13807. width: 20px;
  13808. display: flex;
  13809. }
  13810. .navCorOpen>img {
  13811. width: 100%;
  13812. height: 100%;
  13813. }
  13814. .mlImg {
  13815. width: 25px !important;
  13816. cursor: pointer;
  13817. margin-top: 5px;
  13818. }
  13819. .mlImg>img {
  13820. width: 100%;
  13821. height: 100%;
  13822. }
  13823. .navLeftCss {
  13824. width: 100% !important;
  13825. left: 0 !important;
  13826. }
  13827. .isContentCss {
  13828. width: 100% !important;
  13829. }
  13830. .isAllWidth {
  13831. width: 100% !important;
  13832. }
  13833. .toolBoxSteps {
  13834. position: absolute;
  13835. top: 50%;
  13836. transform: translateY(-50%);
  13837. cursor: pointer;
  13838. width: 60px;
  13839. display: flex;
  13840. align-items: center;
  13841. justify-content: center;
  13842. }
  13843. .toolBoxSteps:nth-child(1)>img,
  13844. .toolBoxSteps:nth-child(2)>img {
  13845. width: 24px;
  13846. }
  13847. .toolBoxSteps:nth-child(1) {
  13848. left: 0;
  13849. }
  13850. .toolBoxSteps:nth-child(2) {
  13851. right: 0;
  13852. }</style>