studyStudent.vue 500 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419
  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">编程平台</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">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平台</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: #eee 0px 0px 5px 5px;
  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: #eee 0px 0px 5px 5px;
  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">
  3613. (单选题)
  3614. </div>
  3615. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  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">
  3682. (单选题)
  3683. </div>
  3684. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  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>上传文件</div>
  5002. <div class="plworkBox">
  5003. <div class="chapter_add" style="
  5004. display: flex;
  5005. width: 150px;
  5006. flex-direction: row;
  5007. flex-wrap: wrap;
  5008. justify-content: flex-start;
  5009. margin: 0 10px 10px 0;
  5010. " v-for="(item, index) in plworkFile" :key="index">
  5011. <div class="upCover2">
  5012. <img :src="item.url" alt v-if="item.fileType == 1" />
  5013. <img :src="word" alt v-else-if="item.fileType == 4" />
  5014. <img :src="video" alt v-else />
  5015. <!-- <span class="picName">{{ item.name }}</span> -->
  5016. <!-- <el-input
  5017. v-model="item.username"
  5018. placeholder="请输入学生名字"
  5019. style="margin-top: 10px"
  5020. ></el-input> -->
  5021. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  5022. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  5023. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  5024. </el-option>
  5025. </el-select>
  5026. <div class="deleteWord" @click="clean2(index)">
  5027. <img src="../../assets/icon/deleteWorks.png" alt />
  5028. </div>
  5029. </div>
  5030. </div>
  5031. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  5032. <div class="up_photo2">
  5033. <img src="../../assets/icon/plwork.png" alt />
  5034. <span>点击批量上传文件</span>
  5035. </div>
  5036. <input type="file"
  5037. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5038. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  5039. </div>
  5040. </div>
  5041. </div>
  5042. <!-- capture="camera" -->
  5043. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  5044. 提交
  5045. </div>
  5046. </el-dialog>
  5047. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  5048. class="dialog_diy" center>
  5049. <div style="text-align: center">
  5050. <span class="tian1">名称</span>
  5051. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  5052. placeholder="请选择学生">
  5053. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  5054. :value="item.userid">
  5055. </el-option>
  5056. </el-select>
  5057. <!-- <el-input
  5058. v-model="worksSName"
  5059. style="width: 250px; margin: 15px 0px"
  5060. ></el-input> -->
  5061. </div>
  5062. <span slot="footer" class="dialog-footer">
  5063. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  5064. <el-button type="primary" @click="updateName">确 定</el-button>
  5065. </span>
  5066. </el-dialog>
  5067. <interVideo
  5068. :dialogVisibleVideo.sync="dialogVisibleVideo"
  5069. :videoJson="videoJson"
  5070. :userid="userid"
  5071. :id="id"
  5072. :courseType="courseType"
  5073. :taskCount="taskCount"
  5074. :toolindex="toolindex"
  5075. ></interVideo>
  5076. </div>
  5077. </template>
  5078. <script>
  5079. import "../../common/aws-sdk-2.235.1.min.js";
  5080. // import pdf from "../components/pdf3";
  5081. import pdf from "../components/vpdf";
  5082. import AskStatic from "../components/askStatic";
  5083. import AskStatic2 from "../components/askStatic2";
  5084. import AnswerData2 from "../components/answerData2";
  5085. import AnswerData from "../components/answerData";
  5086. import EditorBar from "../tools/wangEnduit.vue";
  5087. import Table from "../tools/table.vue";
  5088. import Time from "../tools/time.vue";
  5089. import Mind from "../tools/jsmind.vue";
  5090. import Sunburst from "../tools/sunburst";
  5091. import SeeBoard from "../tools/seeBoard";
  5092. import * as imageConversion from "image-conversion";
  5093. import Audio from "../components/audio.vue";
  5094. import ImgDraw from "../tools/imgDraw/imgDraw";
  5095. import { Empty } from "element-ui";
  5096. import RecordRTC from "recordrtc";
  5097. import interVideo from "../interVideo/index.vue"
  5098. export default {
  5099. components: {
  5100. EditorBar,
  5101. Time,
  5102. pdf,
  5103. AskStatic,
  5104. AskStatic2,
  5105. Mind,
  5106. Sunburst,
  5107. SeeBoard,
  5108. AnswerData2,
  5109. AnswerData,
  5110. Audio,
  5111. ImgDraw,
  5112. Table,
  5113. interVideo
  5114. },
  5115. data() {
  5116. return {
  5117. bg: null,
  5118. drawShow: false,
  5119. dialogVisible: false,
  5120. dialogVisiblePl: false,
  5121. commentDialogVisible: false,
  5122. videoVisible: false,
  5123. isStar: false,
  5124. studentEvalDialogVisible: false,
  5125. studentEvalDialogVisibleTeacher: false,
  5126. dialogVisibleSelect: false,
  5127. dialogVisibleSelectTeacher: false,
  5128. dialogVisibleScore: false,
  5129. dialogVisibleSentence: false,
  5130. dialogVisibleSentenceTeacher: false,
  5131. dialogVisibleSentence1: false,
  5132. dialogVisibleWorks: false,
  5133. answerDialogVisibleTeacher: false,
  5134. dialogVisibleTable: false,
  5135. dialogVisibleTableTeacher: false,
  5136. dialogVisibleWord: false,
  5137. dialogVisibleWordTeacher: false,
  5138. dialogVisibleTable2: false,
  5139. dialogVisibleTable3: false,
  5140. dialogVisibleGroupWork: false,
  5141. dialogVisibleUpdateGroup: false,
  5142. dialogVisibleDeleteGroup: false,
  5143. dialogVisibleSname: false,
  5144. dialogVisibleVideo:false,
  5145. worksSName: "",
  5146. classJuri: [],
  5147. uploadStudentJuri: [],
  5148. uploadCid: "",
  5149. snameWid: "",
  5150. sStudent: {},
  5151. sTool: "",
  5152. bzText: "",
  5153. commentDetail: [],
  5154. selectAnswer: [],
  5155. videoDetail: {},
  5156. selectJson: {},
  5157. eScore: { eBzText: "", eStar: [] },
  5158. id: this.$route.query.courseId,
  5159. userid: this.$route.query.userid,
  5160. classId: this.$route.query.cid,
  5161. // courseTypeLine: this.$route.query.type,
  5162. oid: this.$route.query.oid,
  5163. org: this.$route.query.org,
  5164. tType: this.$route.query.tType,
  5165. courseType: this.$route.query.type,
  5166. screenType: this.$route.query.screenType,
  5167. tcid2: this.$route.query.tcid,
  5168. tcid: "",
  5169. pptImgUrl: "",
  5170. pptImgUrl1: "",
  5171. commentText: "",
  5172. full: false,
  5173. sIsOpen: false,
  5174. IsLookOpen: false,
  5175. IsFollow: false,
  5176. pzDialog: false,
  5177. contentDialog: false,
  5178. mlDialog: false,
  5179. type: 1,
  5180. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5181. sentenceList1: [],
  5182. tableJson: [],
  5183. wordJson: [],
  5184. vedio: [],
  5185. text: [],
  5186. textList: [],
  5187. line: [],
  5188. lineList: [],
  5189. chapTools: [],
  5190. chapToolList: [],
  5191. file: [],
  5192. fileC: [],
  5193. vedioTime: [],
  5194. upToolImg: "",
  5195. preTime: 0,
  5196. rateList: {
  5197. ca: 0,
  5198. },
  5199. rateParams: [],
  5200. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  5201. studyJuri: [
  5202. {
  5203. content: "",
  5204. cover: [],
  5205. upVedio: [],
  5206. upFile: [],
  5207. },
  5208. ],
  5209. plworkFile: [],
  5210. mr: require("../../assets/vedioPic.png"),
  5211. word: require("../../assets/icon/isWord.png"),
  5212. word2: require("../../assets/icon/word2.png"),
  5213. video: require("../../assets/icon/isVideo.png"),
  5214. noLikes: require("../../assets/icon/comment/noLikes.png"),
  5215. likes: require("../../assets/icon/comment/likes.png"),
  5216. scoreImg: require("../../assets/score.png"),
  5217. courseDetail: {},
  5218. isSelect: false,
  5219. chapInfo: [],
  5220. chapInfoList: [],
  5221. taskCount: 0,
  5222. imgList: [],
  5223. noImgList: [],
  5224. pzList: [],
  5225. PlTextList: [
  5226. "Excellent!",
  5227. "nice!",
  5228. "很有创意!",
  5229. "还不错哦~",
  5230. "继续努力哦~",
  5231. ],
  5232. isClickNav: "",
  5233. navId: "",
  5234. playerOptions: {
  5235. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5236. autoplay: false, //如果true,浏览器准备好时开始回放。
  5237. muted: false, // 默认情况下将会消除任何音频。
  5238. loop: false, // 导致视频一结束就重新开始。
  5239. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5240. language: "zh-CN",
  5241. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5242. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5243. sources: [
  5244. {
  5245. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5246. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5247. },
  5248. ],
  5249. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5250. // poster: dataRes.imgUrl, //你的封面地址
  5251. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5252. controlBar: {
  5253. timeDivider: true, //当前时间和持续时间的分隔符
  5254. durationDisplay: true, //显示持续时间
  5255. remainingTimeDisplay: false, //是否显示剩余时间功能
  5256. fullscreenToggle: true, //全屏按钮
  5257. },
  5258. },
  5259. playerOptions1: {
  5260. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5261. autoplay: false, //如果true,浏览器准备好时开始回放。
  5262. muted: false, // 默认情况下将会消除任何音频。
  5263. loop: false, // 导致视频一结束就重新开始。
  5264. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5265. language: "zh-CN",
  5266. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5267. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5268. sources: [
  5269. {
  5270. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5271. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5272. },
  5273. ],
  5274. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5275. // poster: dataRes.imgUrl, //你的封面地址
  5276. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5277. controlBar: {
  5278. timeDivider: true, //当前时间和持续时间的分隔符
  5279. durationDisplay: true, //显示持续时间
  5280. remainingTimeDisplay: false, //是否显示剩余时间功能
  5281. fullscreenToggle: true, //全屏按钮
  5282. },
  5283. },
  5284. playerO: {},
  5285. noneBtnImg: false,
  5286. proVisible: false,
  5287. proVisible2: false,
  5288. progress: 0,
  5289. isFinishSize: 0,
  5290. isAllSize: 0,
  5291. questionAnswer: "",
  5292. answerQ: "", //问答标题
  5293. rateJson: [],
  5294. wbCount: 0,
  5295. wordCount: 0,
  5296. mindCount: 0,
  5297. askCount: 0,
  5298. noteCount: 0,
  5299. mindNetWorkCount: 0,
  5300. libraryCount: 0,
  5301. workCount: 0,
  5302. timeCount: 0,
  5303. answerCount: 0,
  5304. trainCount: 0,
  5305. evalCount: 0,
  5306. dialogImageUrl: "",
  5307. pictureDialog: false,
  5308. toolTypeList: [],
  5309. dialogVisible1: false,
  5310. dialogVisible2: false,
  5311. dialogVisible3: false,
  5312. dialogVisible6: false,
  5313. dialogVisible4: false,
  5314. isNoHomeWork: false,
  5315. dialogVisible5: false,
  5316. dialogVisible5Teacher: false,
  5317. dialogVisibleChoice: false,
  5318. dialogVisibleChoiceTeacher: false,
  5319. answerDialogVisible: false,
  5320. juriVisible: false,
  5321. timeDialogVisible: false,
  5322. radio: [],
  5323. isAsk: false,
  5324. askJson: {
  5325. askCount: 1,
  5326. askTitle: "",
  5327. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5328. },
  5329. testJson: {},
  5330. checkJson: [],
  5331. askList: [],
  5332. answerList: [],
  5333. navList: [],
  5334. addPzDialog: false,
  5335. pzConText: "",
  5336. worksStudent: [],
  5337. worksStudent2: [],
  5338. worksTeacher: [],
  5339. isCloseList: [],
  5340. workStudent: [],
  5341. groupStudent: [],
  5342. groupStudentUid: [],
  5343. noWorksS: [],
  5344. isWorksS: [],
  5345. noWorksStudent: [],
  5346. toolindex: 0,
  5347. groupIndex: 0,
  5348. workTypeB: false,
  5349. workTypeC: false,
  5350. isAnswer: false,
  5351. timer: null,
  5352. opertimer: null,
  5353. showType: 0,
  5354. fileType: 0,
  5355. showPDF: false,
  5356. noteName: "",
  5357. evaJuri: [],
  5358. evalua: "",
  5359. eTitle: "",
  5360. eName: "",
  5361. eJson: {},
  5362. fid: "", //一级
  5363. sid: "", //二级
  5364. tid: "", //二级
  5365. typeMode: 1,
  5366. eJSONNum: 0,
  5367. Etype: 1,
  5368. data: {
  5369. meta: {
  5370. name: "example",
  5371. author: "dd@163.com",
  5372. version: "0.2",
  5373. },
  5374. format: "node_array",
  5375. data: [{ id: "root", isroot: true, topic: "" }],
  5376. },
  5377. fullDialogVisible: false,
  5378. fulltype: "",
  5379. fullUrl: "",
  5380. commentIndexJson: {},
  5381. Stbodywidth: 0,
  5382. pzType: 1,
  5383. wScore: 0,
  5384. scoreDetail: "",
  5385. videoStart: false,
  5386. recorder: null,
  5387. groupJson: {},
  5388. groupJson2: {},
  5389. dialogVisibleGroup: false,
  5390. dialogVisibleGroup2: false,
  5391. updateGroupArray: [],
  5392. updateGroupUser: {},
  5393. deleteGroupUser: [],
  5394. deleteGroupArray: {},
  5395. checkChair: "",
  5396. checkDeleteGroup: [],
  5397. inviteCode: "",
  5398. courseGroupStudent: [],
  5399. courseGroupStudentUid: [],
  5400. courseGroup: {},
  5401. isGroup: false,
  5402. toolIndex: null,
  5403. tool: {},
  5404. isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40],//, 40
  5405. videoJson:{},
  5406. };
  5407. },
  5408. methods: {
  5409. jump() {
  5410. window.parent.postMessage({ tools: "43" }, "*");
  5411. },
  5412. previewImg(url) {
  5413. this.$hevueImgPreview(url);
  5414. },
  5415. change(val) {
  5416. console.log(val);
  5417. },
  5418. goTo(path) {
  5419. this.$router.push(path);
  5420. },
  5421. handlePictureCardPreview(url) {
  5422. this.dialogImageUrl = url;
  5423. this.pictureDialog = true;
  5424. },
  5425. clean(type) {
  5426. if (type == 1) {
  5427. this.studyJuri[0].cover.splice(0, 1);
  5428. } else if (type == 2) {
  5429. this.studyJuri[0].upVedio.splice(0, 1);
  5430. } else {
  5431. this.studyJuri[0].upFile.splice(0, 1);
  5432. }
  5433. },
  5434. clean2(index) {
  5435. this.plworkFile.splice(index, 1);
  5436. },
  5437. handleClose(done) {
  5438. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  5439. this.videoDetail.sources[0].src = "";
  5440. }
  5441. this.commentIndexJson = {};
  5442. done();
  5443. },
  5444. fullTools() {
  5445. this.full = !this.full;
  5446. },
  5447. imgChange(file, fileList, type) {
  5448. if (type == 1) {
  5449. var _tmp = this.studyJuri[0].cover;
  5450. } else if (type == 2) {
  5451. var _tmp = this.studyJuri[0].upVedio;
  5452. } else {
  5453. var _tmp = this.studyJuri[0].upFile;
  5454. }
  5455. this.noneBtnImg = _tmp.length >= 1;
  5456. },
  5457. setContent(bool) {
  5458. this.contentDialog = bool
  5459. if (bool && this.mlDialog) {
  5460. document.querySelector('.workd_media').style.height = "650px"
  5461. } else {
  5462. document.querySelector('.workd_media').style.height = "auto"
  5463. }
  5464. },
  5465. setContent2(bool) {
  5466. this.mlDialog = bool
  5467. if (bool && this.contentDialog) {
  5468. document.querySelector('.workd_media').style.height = "650px"
  5469. } else {
  5470. document.querySelector('.workd_media').style.height = "auto"
  5471. }
  5472. },
  5473. addImg(e) {
  5474. var el = e.currentTarget;
  5475. // this.$message.success('触发上传')
  5476. el.getElementsByTagName("input")[0].click();
  5477. e.target.value = "";
  5478. },
  5479. addSelectAnswer() {
  5480. let params = [
  5481. {
  5482. uid: this.userid,
  5483. cid: this.id,
  5484. stage: this.courseType,
  5485. task: this.taskCount,
  5486. tool: this.toolindex,
  5487. content: this.selectAnswer.answer,
  5488. type: 7,
  5489. },
  5490. ];
  5491. this.ajax
  5492. .post(this.$store.state.api + "addCourseWorks", params)
  5493. .then((res) => {
  5494. this.$message({
  5495. message: "提交成功",
  5496. type: "success",
  5497. });
  5498. this.dialogVisibleSelect = false;
  5499. // this.selectAnswer = {};
  5500. this.selectSWorks();
  5501. this.selectStudent();
  5502. })
  5503. .catch((err) => {
  5504. this.$message.error("提交失败");
  5505. console.error(err);
  5506. });
  5507. },
  5508. addSelectAnswerTeacher() {
  5509. let params = [
  5510. {
  5511. uid: this.sStudent.userid,
  5512. cid: this.id,
  5513. stage: this.courseType,
  5514. task: this.taskCount,
  5515. tool: this.toolindex,
  5516. content: this.selectAnswer.answer,
  5517. type: 7,
  5518. },
  5519. ];
  5520. this.ajax
  5521. .post(this.$store.state.api + "addCourseWorks", params)
  5522. .then((res) => {
  5523. this.$message({
  5524. message: "提交成功",
  5525. type: "success",
  5526. });
  5527. this.dialogVisibleSelectTeacher = false;
  5528. // this.selectAnswer = {};
  5529. this.selectSWorks();
  5530. this.selectStudent();
  5531. })
  5532. .catch((err) => {
  5533. this.$message.error("提交失败");
  5534. console.error(err);
  5535. });
  5536. },
  5537. addSenWorks() {
  5538. for (var i = 0; i < this.sentenceList.length; i++) {
  5539. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5540. if (
  5541. this.sentenceList[i].chooseSenList[j] == undefined ||
  5542. this.sentenceList[i].chooseSenList[j] == ""
  5543. ) {
  5544. this.$message.error("请将答案填写完整!");
  5545. return;
  5546. }
  5547. }
  5548. }
  5549. let params = [
  5550. {
  5551. uid: this.userid,
  5552. cid: this.id,
  5553. stage: this.courseType,
  5554. task: this.taskCount,
  5555. tool: this.toolindex,
  5556. content: JSON.stringify(this.sentenceList),
  5557. type: 9,
  5558. },
  5559. ];
  5560. this.ajax
  5561. .post(this.$store.state.api + "addCourseWorks", params)
  5562. .then((res) => {
  5563. this.$message({
  5564. message: "提交成功",
  5565. type: "success",
  5566. });
  5567. this.dialogVisibleSentence = false;
  5568. // this.selectAnswer = {};
  5569. this.selectSWorks();
  5570. this.selectStudent();
  5571. })
  5572. .catch((err) => {
  5573. this.$message.error("提交失败");
  5574. console.error(err);
  5575. });
  5576. },
  5577. addSenWorksTeacher() {
  5578. for (var i = 0; i < this.sentenceList.length; i++) {
  5579. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5580. if (
  5581. this.sentenceList[i].chooseSenList[j] == undefined ||
  5582. this.sentenceList[i].chooseSenList[j] == ""
  5583. ) {
  5584. this.$message.error("请将答案填写完整!");
  5585. return;
  5586. }
  5587. }
  5588. }
  5589. let params = [
  5590. {
  5591. uid: this.sStudent.userid,
  5592. cid: this.id,
  5593. stage: this.courseType,
  5594. task: this.taskCount,
  5595. tool: this.toolindex,
  5596. content: JSON.stringify(this.sentenceList),
  5597. type: 9,
  5598. },
  5599. ];
  5600. this.ajax
  5601. .post(this.$store.state.api + "addCourseWorks", params)
  5602. .then((res) => {
  5603. this.$message({
  5604. message: "提交成功",
  5605. type: "success",
  5606. });
  5607. this.dialogVisibleSentenceTeacher = false;
  5608. // this.selectAnswer = {};
  5609. this.selectSWorks();
  5610. this.selectStudent();
  5611. })
  5612. .catch((err) => {
  5613. this.$message.error("提交失败");
  5614. console.error(err);
  5615. });
  5616. },
  5617. addTableWorks() {
  5618. let params = [
  5619. {
  5620. uid: this.userid,
  5621. cid: this.id,
  5622. stage: this.courseType,
  5623. task: this.taskCount,
  5624. tool: this.toolindex,
  5625. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  5626. type: 10,
  5627. },
  5628. ];
  5629. this.ajax
  5630. .post(this.$store.state.api + "addCourseWorks", params)
  5631. .then((res) => {
  5632. this.$message({
  5633. message: "提交成功",
  5634. type: "success",
  5635. });
  5636. this.dialogVisibleTable = false;
  5637. // this.selectAnswer = {};
  5638. this.selectSWorks();
  5639. this.selectStudent();
  5640. })
  5641. .catch((err) => {
  5642. this.$message.error("提交失败");
  5643. console.error(err);
  5644. });
  5645. },
  5646. addTableWorksTeacher() {
  5647. let params = [
  5648. {
  5649. uid: this.sStudent.userid,
  5650. cid: this.id,
  5651. stage: this.courseType,
  5652. task: this.taskCount,
  5653. tool: this.toolindex,
  5654. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  5655. type: 10,
  5656. },
  5657. ];
  5658. this.ajax
  5659. .post(this.$store.state.api + "addCourseWorks", params)
  5660. .then((res) => {
  5661. this.$message({
  5662. message: "提交成功",
  5663. type: "success",
  5664. });
  5665. this.dialogVisibleTableTeacher = false;
  5666. // this.selectAnswer = {};
  5667. this.selectSWorks();
  5668. this.selectStudent();
  5669. })
  5670. .catch((err) => {
  5671. this.$message.error("提交失败");
  5672. console.error(err);
  5673. });
  5674. },
  5675. addWordWorks() {
  5676. let params = [{
  5677. uid: this.userid,
  5678. cid: this.id,
  5679. stage: this.courseType,
  5680. task: this.taskCount,
  5681. tool: this.toolindex,
  5682. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  5683. type: 13,
  5684. atool: 52,
  5685. }];
  5686. console.log(params);
  5687. this.ajax
  5688. .post(this.$store.state.api + "addCourseWorks3-2", params)
  5689. .then((res) => {
  5690. this.$message({
  5691. message: "提交成功",
  5692. type: "success",
  5693. });
  5694. this.dialogVisibleWord = false;
  5695. // this.selectAnswer = {};
  5696. this.selectSWorks();
  5697. this.selectStudent();
  5698. })
  5699. .catch((err) => {
  5700. this.$message.error("提交失败");
  5701. console.error(err);
  5702. });
  5703. },
  5704. addWordWorksTeacher() {
  5705. let params = [{
  5706. uid: this.sStudent.userid,
  5707. cid: this.id,
  5708. stage: this.courseType,
  5709. task: this.taskCount,
  5710. tool: this.toolindex,
  5711. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  5712. type: 13,
  5713. atool: 52,
  5714. }];
  5715. console.log(params);
  5716. this.ajax
  5717. .post(this.$store.state.api + "addCourseWorks3-2", params)
  5718. .then((res) => {
  5719. this.$message({
  5720. message: "提交成功",
  5721. type: "success",
  5722. });
  5723. this.dialogVisibleWordTeacher = false;
  5724. // this.selectAnswer = {};
  5725. this.selectSWorks();
  5726. this.selectStudent();
  5727. })
  5728. .catch((err) => {
  5729. this.$message.error("提交失败");
  5730. console.error(err);
  5731. });
  5732. },
  5733. addCourseWorks(i) {
  5734. var typesql;
  5735. if (this.fileType === 0) {
  5736. typesql = 1;
  5737. } else if (this.fileType === 1) {
  5738. typesql = 4;
  5739. } else if (this.fileType === 2) {
  5740. typesql = 5;
  5741. } else if (this.fileType === 3) {
  5742. typesql = 12;
  5743. }
  5744. if (!this.studyJuri[0].cover[0].url) {
  5745. this.$message.error("请上传文件");
  5746. return;
  5747. }
  5748. let params = [
  5749. {
  5750. uid: this.userid,
  5751. cid: this.id,
  5752. stage: this.courseType,
  5753. task: i,
  5754. tool: this.toolindex,
  5755. content: this.studyJuri[0].cover[0].url,
  5756. type: typesql,
  5757. },
  5758. ];
  5759. this.ajax
  5760. .post(this.$store.state.api + "addCourseWorksR", params)
  5761. .then((res) => {
  5762. this.$message({
  5763. message: "提交成功",
  5764. type: "success",
  5765. });
  5766. this.studyJuri[0].cover = [];
  5767. this.dialogVisible = false;
  5768. this.getCourseDetail();
  5769. })
  5770. .catch((err) => {
  5771. this.$message.error("提交失败");
  5772. console.error(err);
  5773. });
  5774. },
  5775. addCourseWorksPl(i) {
  5776. let _files = this.plworkFile;
  5777. var c = 1;
  5778. for (var k = 0; k < _files.length; k++) {
  5779. if (!_files[k].username) {
  5780. c = 2;
  5781. }
  5782. }
  5783. if (c == 2) {
  5784. this.$message.error("请填写学生姓名");
  5785. return;
  5786. }
  5787. let params = [
  5788. {
  5789. ateacher: this.userid,
  5790. cid: this.id,
  5791. stage: this.courseType,
  5792. task: i,
  5793. tool: this.toolindex,
  5794. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  5795. },
  5796. ];
  5797. this.ajax
  5798. .post(this.$store.state.api + "addCourseWorksPl", params)
  5799. .then((res) => {
  5800. this.$message({
  5801. message: "提交成功",
  5802. type: "success",
  5803. });
  5804. this.plworkFile = [];
  5805. this.dialogVisiblePl = false;
  5806. this.getCourseDetail();
  5807. })
  5808. .catch((err) => {
  5809. this.$message.error("提交失败");
  5810. console.error(err);
  5811. });
  5812. },
  5813. addCourseWorks2(i) {
  5814. var typesql;
  5815. if (this.fileType === 0) {
  5816. typesql = 0;
  5817. } else if (this.fileType === 1) {
  5818. typesql = 1;
  5819. } else if (this.fileType === 2) {
  5820. typesql = 3;
  5821. } else if (this.fileType === 3) {
  5822. typesql = 12;
  5823. }
  5824. if (!this.studyJuri[0].cover[0].url) {
  5825. this.$message.error("请上传文件");
  5826. return;
  5827. }
  5828. let params = [
  5829. {
  5830. uid: this.userid,
  5831. cid: this.id,
  5832. stage: this.courseType,
  5833. task: i,
  5834. tool: this.toolindex,
  5835. content: JSON.stringify({
  5836. type: typesql,
  5837. groupIndex: this.groupIndex,
  5838. url: this.studyJuri[0].cover[0].url,
  5839. }).replaceAll(/%/g, "%25"),
  5840. type: 11,
  5841. atool: 49,
  5842. text: "",
  5843. },
  5844. ];
  5845. this.ajax
  5846. .post(this.$store.state.api + "addCourseWorks5", params)
  5847. .then((res) => {
  5848. this.$message({
  5849. message: "提交成功",
  5850. type: "success",
  5851. });
  5852. this.studyJuri[0].cover = [];
  5853. this.dialogVisibleGroupWork = false;
  5854. this.getCourseDetail();
  5855. })
  5856. .catch((err) => {
  5857. this.$message.error("提交失败");
  5858. console.error(err);
  5859. });
  5860. },
  5861. addCourseWorksGong(i, data, tool) {
  5862. let params = [
  5863. {
  5864. uid: this.userid,
  5865. cid: this.id,
  5866. stage: this.courseType,
  5867. task: this.taskCount,
  5868. tool: i,
  5869. content: data,
  5870. type: 12,
  5871. atool: tool,
  5872. text: "",
  5873. },
  5874. ];
  5875. this.ajax
  5876. .post(this.$store.state.api + "addCourseWorks5", params)
  5877. .then((res) => {
  5878. this.$message({
  5879. message: "提交成功",
  5880. type: "success",
  5881. });
  5882. this.studyJuri[0].cover = [];
  5883. this.selectSWorks();
  5884. this.selectStudent();
  5885. })
  5886. .catch((err) => {
  5887. this.$message.error("提交失败");
  5888. console.error(err);
  5889. });
  5890. },
  5891. addCourseWorksGongTeacher(i, data, tool) {
  5892. let params = [
  5893. {
  5894. uid: this.sStudent.userid,
  5895. cid: this.id,
  5896. stage: this.courseType,
  5897. task: this.taskCount,
  5898. tool: i,
  5899. content: data,
  5900. type: 12,
  5901. atool: tool,
  5902. text: "",
  5903. },
  5904. ];
  5905. this.ajax
  5906. .post(this.$store.state.api + "addCourseWorks5", params)
  5907. .then((res) => {
  5908. this.$message({
  5909. message: "提交成功",
  5910. type: "success",
  5911. });
  5912. this.studyJuri[0].cover = [];
  5913. this.dialogVisibleWorks = false;
  5914. this.selectSWorks();
  5915. this.selectStudent();
  5916. })
  5917. .catch((err) => {
  5918. this.$message.error("提交失败");
  5919. console.error(err);
  5920. });
  5921. },
  5922. addCourseWorksGongPl(i, data, tool, type) {
  5923. let params = [
  5924. {
  5925. uid: this.sStudent.userid,
  5926. cid: this.id,
  5927. stage: this.courseType,
  5928. task: this.taskCount,
  5929. tool: i,
  5930. content: data,
  5931. type: type,
  5932. atool: tool,
  5933. text: "",
  5934. },
  5935. ];
  5936. this.ajax
  5937. .post(this.$store.state.api + "addCourseWorks5", params)
  5938. .then((res) => {
  5939. this.$message({
  5940. message: "提交成功",
  5941. type: "success",
  5942. });
  5943. this.studyJuri[0].cover = [];
  5944. this.dialogVisibleWorks = false;
  5945. this.selectSWorks();
  5946. this.selectStudent();
  5947. })
  5948. .catch((err) => {
  5949. this.$message.error("提交失败");
  5950. console.error(err);
  5951. });
  5952. },
  5953. addCourseWorksTeacher(i) {
  5954. var typesql;
  5955. if (this.sTool == 32 || this.sTool == 57) {
  5956. this.addCourseWorksGongTeacher(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool);
  5957. return;
  5958. }
  5959. if (this.fileType === 0) {
  5960. typesql = 1;
  5961. } else if (this.fileType === 1) {
  5962. typesql = 4;
  5963. } else if (this.fileType === 2) {
  5964. typesql = 5;
  5965. } else if (this.fileType === 3) {
  5966. typesql = 12;
  5967. }
  5968. if (this.sTool == 50) {
  5969. this.addCourseWorksGongPl(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool, typesql);
  5970. return;
  5971. }
  5972. if (!this.studyJuri[0].cover[0].url) {
  5973. this.$message.error("请上传文件");
  5974. return;
  5975. }
  5976. let params = [
  5977. {
  5978. uid: this.sStudent.userid,
  5979. cid: this.id,
  5980. stage: this.courseType,
  5981. task: i,
  5982. tool: this.toolindex,
  5983. content: this.studyJuri[0].cover[0].url,
  5984. type: typesql,
  5985. ateacher: this.userid,
  5986. },
  5987. ];
  5988. this.ajax
  5989. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  5990. .then((res) => {
  5991. this.$message({
  5992. message: "提交成功",
  5993. type: "success",
  5994. });
  5995. this.studyJuri[0].cover = [];
  5996. this.dialogVisibleWorks = false;
  5997. this.getCourseDetail();
  5998. })
  5999. .catch((err) => {
  6000. this.$message.error("提交失败");
  6001. console.error(err);
  6002. });
  6003. },
  6004. selectUploadStudent() {
  6005. let params = {
  6006. cid: this.tcid ? this.tcid : this.courseDetail.juri,
  6007. oid: this.oid,
  6008. cn: '',
  6009. };
  6010. this.ajax
  6011. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  6012. .then((res) => {
  6013. var studentK = [];
  6014. if (this.isWorksS[this.toolindex].length > 0) {
  6015. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  6016. studentK.push(this.isWorksS[this.toolindex][z].uid);
  6017. }
  6018. studentK = studentK.join(",");
  6019. }
  6020. this.uploadStudentJuri = res.data[0].filter((el)=>{
  6021. return studentK.indexOf(el.userid) == -1
  6022. });
  6023. })
  6024. .catch((err) => {
  6025. console.error(err);
  6026. });
  6027. },
  6028. arrayToArray(arrayo, arrayt) {
  6029. let array1 = arrayo;
  6030. let array2 = arrayt;
  6031. let commonElements = [];
  6032. for (let i = 0; i < array1.length; i++) {
  6033. for (let j = 0; j < array2.length; j++) {
  6034. if (array1[i] === array2[j]) {
  6035. commonElements.push(array1[i]);
  6036. }
  6037. }
  6038. }
  6039. return commonElements
  6040. },
  6041. selectWorksStudent() {
  6042. let params = {
  6043. oid: this.oid,
  6044. cid: this.courseDetail.juri,
  6045. };
  6046. this.ajax
  6047. .get(this.$store.state.api + "selectWorksStudent", params)
  6048. .then((res) => {
  6049. var a = res.data[0];
  6050. for (var i = 0; i < this.isWorksS.length; i++) {
  6051. this.noWorksS[i] = [];
  6052. var studentK = [];
  6053. if (this.isWorksS[i].length > 0) {
  6054. for (var z = 0; z < this.isWorksS[i].length; z++) {
  6055. studentK.push(this.isWorksS[i][z].uid);
  6056. }
  6057. studentK = studentK.join(",");
  6058. for (var j = 0; j < a.length; j++) {
  6059. // if (studentK.indexOf(a[j].userid) == -1) {
  6060. if (this.tcid) {
  6061. // a[j].classid.indexOf(this.tcid) != -1
  6062. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  6063. this.noWorksS[i].push({
  6064. student: a[j].name,
  6065. userid: a[j].userid,
  6066. type:studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  6067. });
  6068. }
  6069. } else {
  6070. this.noWorksS[i].push({
  6071. student: a[j].name,
  6072. userid: a[j].userid,
  6073. type:studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  6074. });
  6075. }
  6076. // }
  6077. }
  6078. } else {
  6079. for (var k = 0; k < a.length; k++) {
  6080. if (this.tcid) {
  6081. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  6082. this.noWorksS[i].push({
  6083. student: a[k].name,
  6084. userid: a[k].userid,
  6085. type:'1'
  6086. });
  6087. }
  6088. } else {
  6089. this.noWorksS[i].push({
  6090. student: a[k].name,
  6091. userid: a[k].userid,
  6092. type:'1'
  6093. });
  6094. }
  6095. }
  6096. }
  6097. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  6098. // let jscoreA = parseInt(a.type);
  6099. // let jscoreB = parseInt(b.type);
  6100. // return jscoreB - jscoreA;
  6101. // });
  6102. }
  6103. this.$forceUpdate();
  6104. if (
  6105. Object.keys(this.commentDetail).length &&
  6106. Object.keys(this.commentIndexJson).length &&
  6107. !this.dialogVisibleScore
  6108. ) {
  6109. let a = 1;
  6110. let c = this.commentIndexJson;
  6111. console.log(c);
  6112. if (
  6113. this.commentIndexJson.gindex ||
  6114. this.commentIndexJson.gindex === 0
  6115. ) {
  6116. for (
  6117. var i = 0;
  6118. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6119. i++
  6120. ) {
  6121. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6122. groupA: for (var k = 0; k < _el.length; k++) {
  6123. let el = _el[k];
  6124. if (el.wid == this.commentDetail.wid) {
  6125. a = 2;
  6126. this.commentOther(
  6127. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  6128. this.commentIndexJson.toolIndex,
  6129. k,
  6130. this.commentIndexJson.gindex
  6131. );
  6132. break groupA;
  6133. }
  6134. }
  6135. }
  6136. if (a === 1) {
  6137. this.commentDetail = [];
  6138. this.commentIndexJson = {};
  6139. this.commentDialogVisible = false;
  6140. this.$message("此作业已被删除");
  6141. }
  6142. } else {
  6143. if (this.isGroup && this.commentIndexJson.gid) {
  6144. groupA: for (
  6145. var i = 0;
  6146. i < this.courseGroup.group.length;
  6147. i++
  6148. ) {
  6149. let _group = this.courseGroup.group[i]
  6150. if (_group.id == this.commentIndexJson.gid) {
  6151. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  6152. for (var k = 0; k < _el2.length; k++) {
  6153. let el2 = _el2[k];
  6154. if (el2.wid == this.commentDetail.wid) {
  6155. a = 2;
  6156. this.commentOther(
  6157. _el2[k],
  6158. this.commentIndexJson.toolIndex,
  6159. k,
  6160. null,
  6161. this.commentIndexJson.gid
  6162. );
  6163. break groupA;
  6164. }
  6165. }
  6166. }
  6167. }
  6168. }
  6169. if (a == 1) {
  6170. for (
  6171. var i = 0;
  6172. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6173. i++
  6174. ) {
  6175. let el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6176. if (el.wid == this.commentDetail.wid) {
  6177. a = 2;
  6178. this.commentOther(
  6179. this.worksStudent[this.commentIndexJson.toolIndex][i],
  6180. this.commentIndexJson.toolIndex,
  6181. i
  6182. );
  6183. break;
  6184. }
  6185. }
  6186. }
  6187. if (a === 1) {
  6188. this.commentDetail = [];
  6189. this.commentIndexJson = {};
  6190. this.commentDialogVisible = false;
  6191. this.$message("此作业已被删除");
  6192. }
  6193. }
  6194. }
  6195. })
  6196. .catch((err) => {
  6197. console.error(err);
  6198. });
  6199. },
  6200. selectStudent() {
  6201. },
  6202. openVideo(w) {
  6203. this.videoDetail = {};
  6204. this.playerOptions1.sources[0].src = w.works;
  6205. this.videoDetail = this.playerOptions1;
  6206. this.videoVisible = true;
  6207. },
  6208. isLikes(wid, uid, t, c, isLikes) {
  6209. if (isLikes == false) {
  6210. let params = [
  6211. {
  6212. wid: wid,
  6213. lid: uid,
  6214. t: t,
  6215. c: c,
  6216. },
  6217. ];
  6218. this.ajax
  6219. .post(this.$store.state.api + "insertComment", params)
  6220. .then((res) => {
  6221. this.$message({
  6222. message: "点赞成功",
  6223. type: "success",
  6224. });
  6225. this.selectSWorks();
  6226. this.selectStudent();
  6227. })
  6228. .catch((err) => {
  6229. this.$message.error("点赞失败");
  6230. console.error(err);
  6231. });
  6232. } else {
  6233. let params = {
  6234. wid: wid,
  6235. lid: uid,
  6236. type: t,
  6237. };
  6238. this.ajax
  6239. .get(this.$store.state.api + "deleteComment", params)
  6240. .then((res) => {
  6241. this.$message({
  6242. message: "取消点赞成功",
  6243. type: "success",
  6244. });
  6245. this.selectSWorks();
  6246. this.selectStudent();
  6247. })
  6248. .catch((err) => {
  6249. console.error(err);
  6250. });
  6251. }
  6252. },
  6253. deleteComment(wid) {
  6254. this.$confirm("确定删除此评论吗?", "提示", {
  6255. confirmButtonText: "确定",
  6256. cancelButtonText: "取消",
  6257. type: "warning",
  6258. })
  6259. .then(() => {
  6260. let params = {
  6261. id: wid,
  6262. };
  6263. this.ajax
  6264. .get(this.$store.state.api + "deleteComment2", params)
  6265. .then((res) => {
  6266. this.$message({
  6267. message: "删除评论成功",
  6268. type: "success",
  6269. });
  6270. this.selectSWorks();
  6271. this.selectStudent();
  6272. })
  6273. .catch((err) => {
  6274. console.error(err);
  6275. });
  6276. })
  6277. .catch(() => { });
  6278. },
  6279. commentOther(w, toolIndex, wIndex, gindex, gid) {
  6280. this.commentIndexJson = {
  6281. toolIndex: toolIndex,
  6282. wIndex: wIndex,
  6283. gindex: gindex,
  6284. gid: gid
  6285. };
  6286. this.commentDetail = [];
  6287. this.commentDialogVisible = true;
  6288. this.commentDetail = w;
  6289. if (w.works && w.type == 1) {
  6290. this.pptImgUrl = "";
  6291. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6292. if (
  6293. a.indexOf(
  6294. w.works
  6295. .split(".")
  6296. [w.works.split(".").length - 1].toLocaleUpperCase()
  6297. ) != -1
  6298. ) {
  6299. this.pptImgUrl =
  6300. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6301. this.showPDF = false;
  6302. } else if (
  6303. w.works
  6304. .split(".")
  6305. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6306. ) {
  6307. this.pptImgUrl = w.works;
  6308. this.showPDF = true;
  6309. }
  6310. } else if (w.works && w.type == 3) {
  6311. this.videoDetail = {};
  6312. this.playerOptions1.sources[0].src = w.works;
  6313. this.videoDetail = this.playerOptions1;
  6314. // this.videoVisible = true;
  6315. } else if (w.works && w.type == 4) {
  6316. this.eScore = JSON.parse(w.works);
  6317. this.rateJson =
  6318. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6319. this.taskCount
  6320. ].toolChoose[toolIndex].rateJson;
  6321. } else if (w.works && w.type == 10) {
  6322. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  6323. } else if (w.works && w.type == 13) {
  6324. this.wordJson =
  6325. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6326. this.taskCount
  6327. ].toolChoose[toolIndex].wordJson;
  6328. }
  6329. },
  6330. openScore(w) {
  6331. this.wScore = 0;
  6332. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  6333. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  6334. this.commentDetail = [];
  6335. this.dialogVisibleScore = true;
  6336. this.commentDetail = w;
  6337. if (w.works && w.type == 1) {
  6338. this.pptImgUrl = "";
  6339. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6340. if (
  6341. a.indexOf(
  6342. w.works
  6343. .split(".")
  6344. [w.works.split(".").length - 1].toLocaleUpperCase()
  6345. ) != -1
  6346. ) {
  6347. this.pptImgUrl =
  6348. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6349. this.showPDF = false;
  6350. } else if (
  6351. w.works
  6352. .split(".")
  6353. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6354. ) {
  6355. this.pptImgUrl = w.works;
  6356. this.showPDF = true;
  6357. }
  6358. } else if (w.works && w.type == 3) {
  6359. this.videoDetail = {};
  6360. this.playerOptions1.sources[0].src = w.works;
  6361. this.videoDetail = this.playerOptions1;
  6362. }
  6363. },
  6364. addComment(wid, uid, t) {
  6365. if (this.commentText == "") {
  6366. this.$message.error("请输入对该学生的评价");
  6367. return;
  6368. }
  6369. let params2 = [
  6370. {
  6371. wid: wid,
  6372. lid: uid,
  6373. t: t,
  6374. },
  6375. ];
  6376. this.ajax
  6377. .post(this.$store.state.api + "getComment", params2)
  6378. .then((res) => {
  6379. if (res.data[0].length > 0) {
  6380. this.$message.error("一个作业只能评论一条");
  6381. } else {
  6382. let params = [
  6383. {
  6384. wid: wid,
  6385. lid: uid,
  6386. t: t,
  6387. c: this.commentText,
  6388. },
  6389. ];
  6390. this.ajax
  6391. .post(this.$store.state.api + "insertComment", params)
  6392. .then((res) => {
  6393. this.$message({
  6394. message: "评论成功",
  6395. type: "success",
  6396. });
  6397. this.commentText = "";
  6398. this.selectSWorks();
  6399. this.selectStudent();
  6400. })
  6401. .catch((err) => {
  6402. this.$message.error("评论失败");
  6403. console.error(err);
  6404. });
  6405. }
  6406. })
  6407. .catch((err) => {
  6408. // this.$message.error("评论失败");
  6409. console.error(err);
  6410. });
  6411. },
  6412. scoreWork(wid) {
  6413. if (this.wScore == 0) {
  6414. this.$message.error("请评分");
  6415. return;
  6416. }
  6417. let params = [
  6418. {
  6419. wid: wid,
  6420. score: JSON.stringify({
  6421. wScore: this.wScore,
  6422. detail: this.scoreDetail,
  6423. }),
  6424. },
  6425. ];
  6426. this.ajax
  6427. .post(this.$store.state.api + "scoreWork", params)
  6428. .then((res) => {
  6429. this.$message({
  6430. message: "评分成功",
  6431. type: "success",
  6432. });
  6433. this.wScore = 0;
  6434. this.scoreDetail = "";
  6435. this.dialogVisibleScore = false;
  6436. this.selectSWorks();
  6437. this.selectStudent();
  6438. })
  6439. .catch((err) => {
  6440. this.$message.error("评分失败");
  6441. console.error(err);
  6442. });
  6443. },
  6444. openXz(w, i) {
  6445. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6446. .taskJson[this.taskCount].toolChoose[i].selectJson
  6447. ? JSON.parse(
  6448. JSON.stringify(
  6449. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6450. this.taskCount
  6451. ].toolChoose[i].selectJson
  6452. )
  6453. )
  6454. : { url: "", select: [], answer: [] };
  6455. var a = w.works.split(",");
  6456. for (var k = 0; k < a.length; k++) {
  6457. a[k] = parseInt(a[k]);
  6458. }
  6459. this.selectAnswer = { answer: a, stu: w.sName };
  6460. this.isSelect = true;
  6461. this.dialogVisibleSelect = true;
  6462. },
  6463. openSen(w, i) {
  6464. this.sentenceList1 = JSON.parse(w.works);
  6465. this.sentenceList1.stuName = w.sName;
  6466. this.dialogVisibleSentence1 = true;
  6467. },
  6468. openPj(w, toolindex) {
  6469. this.isStar = true;
  6470. this.eScore = JSON.parse(w);
  6471. this.rateJson =
  6472. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6473. this.taskCount
  6474. ].toolChoose[toolindex].rateJson;
  6475. this.studentEvalDialogVisible = true;
  6476. },
  6477. deleteWorks(id) {
  6478. this.$confirm("确定删除此作业吗?", "提示", {
  6479. confirmButtonText: "确定",
  6480. cancelButtonText: "取消",
  6481. type: "warning",
  6482. })
  6483. .then(() => {
  6484. let params = [
  6485. {
  6486. id: id,
  6487. },
  6488. ];
  6489. this.ajax
  6490. .post(this.$store.state.api + "deleteCourseWork", params)
  6491. .then((res) => {
  6492. this.$message({
  6493. message: "删除成功",
  6494. type: "success",
  6495. });
  6496. this.selectStudent();
  6497. this.selectSWorks();
  6498. this.selectSLook();
  6499. })
  6500. .catch((err) => {
  6501. this.$message.error("网络异常");
  6502. console.error(err);
  6503. });
  6504. })
  6505. .catch(() => { });
  6506. },
  6507. selectSWorks(gindex) {
  6508. //教师查看全部作业
  6509. let params = {
  6510. cid: this.id,
  6511. s: this.courseType,
  6512. t: this.taskCount,
  6513. };
  6514. this.ajax
  6515. .get(this.$store.state.api + "selectSWorks", params)
  6516. .then((res) => {
  6517. var a =
  6518. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6519. this.taskCount
  6520. ].toolChoose;
  6521. var b = res.data[0];
  6522. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6523. var y = [
  6524. "AVI",
  6525. "NAVI",
  6526. "MPEG",
  6527. "ASF",
  6528. "MOV",
  6529. "WMV",
  6530. "3GP",
  6531. "RM",
  6532. "RMVB",
  6533. "FLV",
  6534. "F4V",
  6535. "H.264",
  6536. "H.265",
  6537. "REAL VIDEO",
  6538. "MKV",
  6539. "WebM",
  6540. "HDDVD",
  6541. "MP4",
  6542. "MPG",
  6543. "M4V",
  6544. "MGV",
  6545. "OGV",
  6546. "QTM",
  6547. "STR",
  6548. "AMC",
  6549. "DVX",
  6550. "EVO",
  6551. "DAT",
  6552. "OGG",
  6553. "OGM",
  6554. ];
  6555. var d = res.data[1];
  6556. var e = res.data[2];
  6557. var f = res.data[3];
  6558. for (var i = 0; i < a.length; i++) {
  6559. this.worksStudent[i] = [];
  6560. this.worksTeacher[i] = [];
  6561. this.worksStudent2[i] = [];
  6562. if (
  6563. !this.isCloseList[i] ||
  6564. this.isCloseList[i].isClose == undefined
  6565. ) {
  6566. this.isCloseList[i] = { isClose: 0 };
  6567. }
  6568. this.groupStudent[i] = [];
  6569. this.groupStudentUid[i] = [];
  6570. this.isWorksS[i] = [];
  6571. this.checkJson[i] = [];
  6572. if (a[i].tool[0] == 49) {
  6573. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  6574. this.groupStudent[i][gA] = [];
  6575. this.groupStudentUid[i][gA] = [];
  6576. this.worksStudent[i][gA] = [];
  6577. this.isCloseList[i][gA] = [];
  6578. for (var g = 0; g < f.length; g++) {
  6579. if (
  6580. f[g].ttype == 2 &&
  6581. this.tcid &&
  6582. this.arrayToArray(f[g].classid.split(","), this.tcid.split(",")).length == 0
  6583. ) {
  6584. continue;
  6585. }
  6586. if (gA == f[g].group && f[g].tool == i) {
  6587. this.groupStudent[i][gA].push(f[g]);
  6588. this.groupStudentUid[i][gA].push(f[g].userid);
  6589. }
  6590. }
  6591. }
  6592. this.$forceUpdate();
  6593. }
  6594. for (var j = 0; j < b.length; j++) {
  6595. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  6596. continue;
  6597. }
  6598. var likesCount = 0;
  6599. var commentCount = 0;
  6600. var isLikes = false;
  6601. var commentJson = [];
  6602. var data = b[j];
  6603. if (i == b[j].tool) {
  6604. if (data.type == 2 && a[i].tool[0] == 4) {
  6605. // if(JSON.parse(data.content)[0].anwer){
  6606. var checkL = JSON.parse(data.content)[0].anwer instanceof Array ? JSON.parse(data.content)[0].anwer : JSON.parse(data.content)[0].anwer.split(",");
  6607. for (var z = 0; z < checkL.length; z++) {
  6608. if (!this.checkJson[i][z]) {
  6609. this.checkJson[i].push({
  6610. checkCount: [],
  6611. checkPerson: [],
  6612. rightPerson: [],
  6613. });
  6614. }
  6615. if (!this.checkJson[i][z].checkCount.length) {
  6616. this.checkJson[i][z].checkCount = [];
  6617. let _askItemCount = JSON.parse(data.content)[0].askJson
  6618. .askJson[z].askItem;
  6619. for (var aic = 0; aic < _askItemCount; aic++) {
  6620. this.checkJson[i][z].checkCount.push(0);
  6621. }
  6622. }
  6623. if (checkL[z] instanceof Array) {
  6624. if (
  6625. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  6626. checkL[z].sort().join(",")
  6627. ) {
  6628. this.checkJson[i][z].rightPerson.push(data.name);
  6629. }
  6630. for (var q = 0; q < checkL[z].length; q++) {
  6631. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  6632. ? this.checkJson[i][z].checkPerson[
  6633. parseInt(checkL[z][q])
  6634. ].push(data.name)
  6635. : (this.checkJson[i][z].checkPerson[
  6636. parseInt(checkL[z][q])
  6637. ] = [data.name]);
  6638. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  6639. ? this.checkJson[i][z].checkCount[
  6640. parseInt(checkL[z][q])
  6641. ]++
  6642. : (this.checkJson[i][z].checkCount[
  6643. parseInt(checkL[z][q])
  6644. ] = 1);
  6645. }
  6646. } else {
  6647. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  6648. this.checkJson[i][z].rightPerson.push(data.name);
  6649. }
  6650. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  6651. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6652. ? this.checkJson[i][z].checkPerson[
  6653. parseInt(checkL[z])
  6654. ].push(data.name)
  6655. : (this.checkJson[i][z].checkPerson[
  6656. parseInt(checkL[z])
  6657. ] = [data.name]);
  6658. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6659. ? this.checkJson[i][z].checkCount[
  6660. parseInt(checkL[z])
  6661. ]++
  6662. : (this.checkJson[i][z].checkCount[
  6663. parseInt(checkL[z])
  6664. ] = 1);
  6665. }
  6666. }
  6667. }
  6668. } else if (data.type == 8 && a[i].tool[0] == 45) {
  6669. var checkL = JSON.parse(data.content)[0].anwer;
  6670. for (var z = 0; z < checkL.length; z++) {
  6671. if (!this.checkJson[i][z]) {
  6672. this.checkJson[i].push({
  6673. checkCount: [],
  6674. checkPerson: [],
  6675. rightPerson: [],
  6676. });
  6677. }
  6678. if (!this.checkJson[i][z].checkCount.length) {
  6679. this.checkJson[i][z].checkCount = [];
  6680. let _askItemCount = JSON.parse(data.content)[0].testJson
  6681. .testJson[z].testItem;
  6682. console.log(_askItemCount);
  6683. for (var aic = 0; aic < _askItemCount; aic++) {
  6684. this.checkJson[i][z].checkCount.push(0);
  6685. }
  6686. }
  6687. if (checkL[z] instanceof Array) {
  6688. if (
  6689. JSON.parse(data.content)[0]
  6690. .testJson.testJson[z].answer.sort()
  6691. .join(",") == checkL[z].sort().join(",")
  6692. ) {
  6693. this.checkJson[i][z].rightPerson.push(data.name);
  6694. }
  6695. for (var q = 0; q < checkL[z].length; q++) {
  6696. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  6697. ? this.checkJson[i][z].checkPerson[
  6698. parseInt(checkL[z][q])
  6699. ].push(data.name)
  6700. : (this.checkJson[i][z].checkPerson[
  6701. parseInt(checkL[z][q])
  6702. ] = [data.name]);
  6703. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  6704. ? this.checkJson[i][z].checkCount[
  6705. parseInt(checkL[z][q])
  6706. ]++
  6707. : (this.checkJson[i][z].checkCount[
  6708. parseInt(checkL[z][q])
  6709. ] = 1);
  6710. }
  6711. } else {
  6712. if (
  6713. JSON.parse(data.content)[0].testJson.testJson[z]
  6714. .answer == checkL[z]
  6715. ) {
  6716. this.checkJson[i][z].rightPerson.push(data.name);
  6717. }
  6718. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  6719. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6720. ? this.checkJson[i][z].checkPerson[
  6721. parseInt(checkL[z])
  6722. ].push(data.name)
  6723. : (this.checkJson[i][z].checkPerson[
  6724. parseInt(checkL[z])
  6725. ] = [data.name]);
  6726. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6727. ? this.checkJson[i][z].checkCount[
  6728. parseInt(checkL[z])
  6729. ]++
  6730. : (this.checkJson[i][z].checkCount[
  6731. parseInt(checkL[z])
  6732. ] = 1);
  6733. }
  6734. }
  6735. }
  6736. } else if (data.type == 9 && a[i].tool[0] == 47) {
  6737. var checkL = JSON.parse(data.content);
  6738. for (var z = 0; z < checkL.length; z++) {
  6739. if (!this.checkJson[i][z]) {
  6740. this.checkJson[i].push({
  6741. checkCount: [],
  6742. checkPerson: [],
  6743. rightPerson: [],
  6744. });
  6745. }
  6746. this.checkJson[i][z].checkPerson.push(data.name);
  6747. if (
  6748. checkL[z].chooseSenList.toString() ==
  6749. checkL[z].rightAnswer.toString()
  6750. ) {
  6751. this.checkJson[i][z].rightPerson.push(data.name);
  6752. }
  6753. }
  6754. }
  6755. for (var k = 0; k < d.length; k++) {
  6756. //点赞
  6757. if (d[k].workId == b[j].id) {
  6758. likesCount++;
  6759. if (d[k].likesId == this.userid) {
  6760. isLikes = true;
  6761. }
  6762. }
  6763. }
  6764. for (var l = 0; l < e.length; l++) {
  6765. //评论
  6766. if (e[l].workId == b[j].id) {
  6767. if (e[l].comment != "") {
  6768. commentCount++;
  6769. commentJson.push({
  6770. commentText: e[l].comment,
  6771. commentTime: e[l].commentTime,
  6772. commentPeople: e[l].commentPeople,
  6773. userid: e[l].userid,
  6774. wid: e[l].id,
  6775. });
  6776. }
  6777. }
  6778. }
  6779. if (
  6780. (b[j].type == 1 ||
  6781. b[j].type == 4 ||
  6782. b[j].type == 5 ||
  6783. b[j].type == 6 ||
  6784. b[j].type == 12 ||
  6785. b[j].type == 7) &&
  6786. a[i].tool[0] != 15 &&
  6787. a[i].tool[0] != 4 &&
  6788. a[i].tool[0] != 45 &&
  6789. a[i].tool[0] != 50 &&
  6790. a[i].tool[0] != 32 &&
  6791. a[i].tool[0] != 57 &&
  6792. a[i].tool[0] != 52
  6793. ) {
  6794. if (
  6795. c.indexOf(
  6796. b[j].content
  6797. .split(".")
  6798. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6799. ) != -1 &&
  6800. a[i].tool[0] == 16 &&
  6801. b[j].atool != 50
  6802. ) {
  6803. let _works = {
  6804. userid: b[j].userid,
  6805. ateacher: b[j].ateacher,
  6806. wid: b[j].id,
  6807. works: b[j].content,
  6808. sName: b[j].name,
  6809. type: 1,
  6810. time: b[j].time,
  6811. score: b[j].score,
  6812. img: b[j].img,
  6813. likesCount: likesCount,
  6814. commentCount: commentCount,
  6815. isLikes: isLikes,
  6816. commentJson: commentJson,
  6817. }
  6818. if (b[j].ttype == 1) {
  6819. this.worksTeacher[i].push(_works);
  6820. } else {
  6821. this.worksStudent2[i].push(_works);
  6822. }
  6823. this.worksStudent[i].push(_works);
  6824. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6825. } else if (
  6826. y.indexOf(
  6827. b[j].content
  6828. .split(".")
  6829. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6830. ) != -1 &&
  6831. a[i].tool[0] == 16 &&
  6832. b[j].atool != 50
  6833. ) {
  6834. let _works = {
  6835. userid: b[j].userid,
  6836. ateacher: b[j].ateacher,
  6837. wid: b[j].id,
  6838. works: b[j].content,
  6839. sName: b[j].name,
  6840. type: 3,
  6841. time: b[j].time,
  6842. score: b[j].score,
  6843. img: b[j].img,
  6844. likesCount: likesCount,
  6845. commentCount: commentCount,
  6846. isLikes: isLikes,
  6847. commentJson: commentJson,
  6848. }
  6849. if (b[j].ttype == 1) {
  6850. this.worksTeacher[i].push(_works);
  6851. } else {
  6852. this.worksStudent2[i].push(_works);
  6853. }
  6854. this.worksStudent[i].push(_works);
  6855. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6856. } else if (b[j].type == 6 && b[j].atool != 50) {
  6857. let _works = {
  6858. userid: b[j].userid,
  6859. ateacher: b[j].ateacher,
  6860. wid: b[j].id,
  6861. works: b[j].content,
  6862. sName: b[j].name,
  6863. type: 4,
  6864. time: b[j].time,
  6865. score: b[j].score,
  6866. img: b[j].img,
  6867. likesCount: likesCount,
  6868. commentCount: commentCount,
  6869. isLikes: isLikes,
  6870. commentJson: commentJson,
  6871. }
  6872. if (b[j].ttype == 1) {
  6873. this.worksTeacher[i].push(_works);
  6874. } else {
  6875. this.worksStudent2[i].push(_works);
  6876. }
  6877. this.worksStudent[i].push(_works);
  6878. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6879. } else if (b[j].type == 7 && b[j].atool != 50) {
  6880. let _works = {
  6881. userid: b[j].userid,
  6882. ateacher: b[j].ateacher,
  6883. wid: b[j].id,
  6884. works: b[j].content,
  6885. sName: b[j].name,
  6886. type: 5,
  6887. time: b[j].time,
  6888. score: b[j].score,
  6889. img: b[j].img,
  6890. likesCount: likesCount,
  6891. commentCount: commentCount,
  6892. isLikes: isLikes,
  6893. commentJson: commentJson,
  6894. }
  6895. if (b[j].ttype == 1) {
  6896. this.worksTeacher[i].push(_works);
  6897. } else {
  6898. this.worksStudent2[i].push(_works);
  6899. }
  6900. this.worksStudent[i].push(_works);
  6901. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6902. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  6903. let _works = {
  6904. userid: b[j].userid,
  6905. ateacher: b[j].ateacher,
  6906. wid: b[j].id,
  6907. works: b[j].content,
  6908. sName: b[j].name,
  6909. type: 12,
  6910. time: b[j].time,
  6911. score: b[j].score,
  6912. img: b[j].img,
  6913. likesCount: likesCount,
  6914. commentCount: commentCount,
  6915. isLikes: isLikes,
  6916. commentJson: commentJson,
  6917. }
  6918. if (b[j].ttype == 1) {
  6919. this.worksTeacher[i].push(_works);
  6920. } else {
  6921. this.worksStudent2[i].push(_works);
  6922. }
  6923. this.worksStudent[i].push(_works);
  6924. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6925. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  6926. let _works = {
  6927. userid: b[j].userid,
  6928. ateacher: b[j].ateacher,
  6929. wid: b[j].id,
  6930. works: b[j].content,
  6931. sName: b[j].name,
  6932. type: 0,
  6933. time: b[j].time,
  6934. score: b[j].score,
  6935. img: b[j].img,
  6936. likesCount: likesCount,
  6937. commentCount: commentCount,
  6938. isLikes: isLikes,
  6939. commentJson: commentJson,
  6940. }
  6941. if (b[j].ttype == 1) {
  6942. this.worksTeacher[i].push(_works);
  6943. } else {
  6944. this.worksStudent2[i].push(_works);
  6945. }
  6946. this.worksStudent[i].push(_works);
  6947. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6948. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  6949. let _works = {
  6950. userid: b[j].userid,
  6951. ateacher: b[j].ateacher,
  6952. wid: b[j].id,
  6953. works: b[j].content,
  6954. sName: b[j].name,
  6955. type: 0,
  6956. time: b[j].time,
  6957. score: b[j].score,
  6958. img: b[j].img,
  6959. likesCount: likesCount,
  6960. commentCount: commentCount,
  6961. isLikes: isLikes,
  6962. commentJson: commentJson,
  6963. }
  6964. if (b[j].ttype == 1) {
  6965. this.worksTeacher[i].push(_works);
  6966. } else {
  6967. this.worksStudent2[i].push(_works);
  6968. }
  6969. this.worksStudent[i].push(_works);
  6970. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6971. }
  6972. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  6973. let _works = {
  6974. userid: b[j].userid,
  6975. ateacher: b[j].ateacher,
  6976. wid: b[j].id,
  6977. works: b[j].content,
  6978. sName: b[j].name,
  6979. type: 2,
  6980. time: b[j].time,
  6981. score: b[j].score,
  6982. img: b[j].img,
  6983. likesCount: likesCount,
  6984. commentCount: commentCount,
  6985. isLikes: isLikes,
  6986. commentJson: commentJson,
  6987. }
  6988. if (b[j].ttype == 1) {
  6989. this.worksTeacher[i].push(_works);
  6990. } else {
  6991. this.worksStudent2[i].push(_works);
  6992. }
  6993. this.worksStudent[i].push(_works);
  6994. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6995. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  6996. //问卷
  6997. let _works = {
  6998. userid: b[j].userid,
  6999. ateacher: b[j].ateacher,
  7000. wid: b[j].id,
  7001. works: b[j].content,
  7002. sName: b[j].name,
  7003. type: 2,
  7004. time: b[j].time,
  7005. score: b[j].score,
  7006. img: b[j].img,
  7007. likesCount: likesCount,
  7008. commentCount: commentCount,
  7009. isLikes: isLikes,
  7010. commentJson: commentJson,
  7011. }
  7012. if (b[j].ttype == 1) {
  7013. this.worksTeacher[i].push(_works);
  7014. } else {
  7015. this.worksStudent2[i].push(_works);
  7016. }
  7017. this.worksStudent[i].push(_works);
  7018. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7019. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  7020. //选择题
  7021. let _works = {
  7022. userid: b[j].userid,
  7023. ateacher: b[j].ateacher,
  7024. wid: b[j].id,
  7025. works: b[j].content,
  7026. sName: b[j].name,
  7027. type: 8,
  7028. time: b[j].time,
  7029. score: b[j].score,
  7030. img: b[j].img,
  7031. likesCount: likesCount,
  7032. commentCount: commentCount,
  7033. isLikes: isLikes,
  7034. commentJson: commentJson,
  7035. }
  7036. if (b[j].ttype == 1) {
  7037. this.worksTeacher[i].push(_works);
  7038. } else {
  7039. this.worksStudent2[i].push(_works);
  7040. }
  7041. this.worksStudent[i].push(_works);
  7042. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7043. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  7044. //选择题
  7045. let _works = {
  7046. userid: b[j].userid,
  7047. ateacher: b[j].ateacher,
  7048. wid: b[j].id,
  7049. works: b[j].content,
  7050. sName: b[j].name,
  7051. type: 9,
  7052. time: b[j].time,
  7053. score: b[j].score,
  7054. img: b[j].img,
  7055. likesCount: likesCount,
  7056. commentCount: commentCount,
  7057. isLikes: isLikes,
  7058. commentJson: commentJson,
  7059. }
  7060. if (b[j].ttype == 1) {
  7061. this.worksTeacher[i].push(_works);
  7062. } else {
  7063. this.worksStudent2[i].push(_works);
  7064. }
  7065. this.worksStudent[i].push(_works);
  7066. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7067. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  7068. //选择题
  7069. let _works = {
  7070. userid: b[j].userid,
  7071. ateacher: b[j].ateacher,
  7072. wid: b[j].id,
  7073. works: b[j].content,
  7074. sName: b[j].name,
  7075. type: 10,
  7076. time: b[j].time,
  7077. score: b[j].score,
  7078. img: b[j].img,
  7079. likesCount: likesCount,
  7080. commentCount: commentCount,
  7081. isLikes: isLikes,
  7082. commentJson: commentJson,
  7083. }
  7084. if (b[j].ttype == 1) {
  7085. this.worksTeacher[i].push(_works);
  7086. } else {
  7087. this.worksStudent2[i].push(_works);
  7088. }
  7089. this.worksStudent[i].push(_works);
  7090. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7091. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  7092. //选择题
  7093. let _works = {
  7094. userid: b[j].userid,
  7095. ateacher: b[j].ateacher,
  7096. wid: b[j].id,
  7097. works: b[j].content,
  7098. sName: b[j].name,
  7099. type: 13,
  7100. time: b[j].time,
  7101. score: b[j].score,
  7102. img: b[j].img,
  7103. likesCount: likesCount,
  7104. commentCount: commentCount,
  7105. isLikes: isLikes,
  7106. commentJson: commentJson,
  7107. }
  7108. if (b[j].ttype == 1) {
  7109. this.worksTeacher[i].push(_works);
  7110. } else {
  7111. this.worksStudent2[i].push(_works);
  7112. }
  7113. this.worksStudent[i].push(_works);
  7114. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7115. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  7116. let _gindex = JSON.parse(b[j].content);
  7117. if (
  7118. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  7119. b[j].userid
  7120. ) != -1
  7121. ) {
  7122. this.worksStudent[i][_gindex.groupIndex].push({
  7123. userid: b[j].userid,
  7124. ateacher: b[j].ateacher,
  7125. wid: b[j].id,
  7126. works: _gindex.url,
  7127. sName: b[j].name,
  7128. type: _gindex.type,
  7129. time: b[j].time,
  7130. score: b[j].score,
  7131. img: b[j].img,
  7132. likesCount: likesCount,
  7133. commentCount: commentCount,
  7134. isLikes: isLikes,
  7135. commentJson: commentJson,
  7136. });
  7137. }
  7138. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7139. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  7140. let _works = {
  7141. userid: b[j].userid,
  7142. ateacher: b[j].ateacher,
  7143. wid: b[j].id,
  7144. works: b[j].content,
  7145. sName: b[j].name ? b[j].name : b[j].userid,
  7146. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  7147. time: b[j].time,
  7148. score: b[j].score,
  7149. img: b[j].img,
  7150. likesCount: likesCount,
  7151. commentCount: commentCount,
  7152. isLikes: isLikes,
  7153. commentJson: commentJson,
  7154. }
  7155. if (b[j].ttype == 1) {
  7156. this.worksTeacher[i].push(_works);
  7157. } else {
  7158. this.worksStudent2[i].push(_works);
  7159. }
  7160. this.worksStudent[i].push(_works);
  7161. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7162. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  7163. let _works = {
  7164. userid: b[j].userid,
  7165. ateacher: b[j].ateacher,
  7166. wid: b[j].id,
  7167. works: b[j].content,
  7168. sName: b[j].name ? b[j].name : b[j].userid,
  7169. type: 12,
  7170. time: b[j].time,
  7171. score: b[j].score,
  7172. img: b[j].img,
  7173. likesCount: likesCount,
  7174. commentCount: commentCount,
  7175. isLikes: isLikes,
  7176. commentJson: commentJson,
  7177. }
  7178. if (b[j].ttype == 1) {
  7179. this.worksTeacher[i].push(_works);
  7180. } else {
  7181. this.worksStudent2[i].push(_works);
  7182. }
  7183. this.worksStudent[i].push(_works);
  7184. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7185. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  7186. let _works = {
  7187. userid: b[j].userid,
  7188. ateacher: b[j].ateacher,
  7189. wid: b[j].id,
  7190. works: b[j].content,
  7191. sName: b[j].name ? b[j].name : b[j].userid,
  7192. type: 12,
  7193. time: b[j].time,
  7194. score: b[j].score,
  7195. img: b[j].img,
  7196. likesCount: likesCount,
  7197. commentCount: commentCount,
  7198. isLikes: isLikes,
  7199. commentJson: commentJson,
  7200. }
  7201. if (b[j].ttype == 1) {
  7202. this.worksTeacher[i].push(_works);
  7203. } else {
  7204. this.worksStudent2[i].push(_works);
  7205. }
  7206. this.worksStudent[i].push(_works);
  7207. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7208. }
  7209. }
  7210. }
  7211. if (this.worksStudent[i] && this.worksStudent[i].length) {
  7212. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  7213. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7214. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7215. var scoreA = parseFloat(jscoreA);
  7216. var scoreB = parseFloat(jscoreB);
  7217. if (scoreA == scoreB) {
  7218. return b.likesCount - a.likesCount;
  7219. }
  7220. return scoreB - scoreA;
  7221. });
  7222. }
  7223. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  7224. this.worksStudent2[i] = this.worksStudent2[i].sort(function (a, b) {
  7225. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7226. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7227. var scoreA = parseFloat(jscoreA);
  7228. var scoreB = parseFloat(jscoreB);
  7229. if (scoreA == scoreB) {
  7230. return b.likesCount - a.likesCount;
  7231. }
  7232. return scoreB - scoreA;
  7233. });
  7234. }
  7235. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  7236. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  7237. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7238. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7239. var scoreA = parseFloat(jscoreA);
  7240. var scoreB = parseFloat(jscoreB);
  7241. if (scoreA == scoreB) {
  7242. return b.likesCount - a.likesCount;
  7243. }
  7244. return scoreB - scoreA;
  7245. });
  7246. }
  7247. }
  7248. for (var i = 0; i < a.length; i++) {
  7249. for (var j = 0; j < b.length; j++) {
  7250. var data = b[j];
  7251. if (i == b[j].tool) {
  7252. if (data.type == 2 || data.type == 8) {
  7253. for (var z = 0; z < this.checkJson[i].length; z++) {
  7254. this.checkJson[i][z].checkPerent = [];
  7255. this.checkJson[i][z].right = Math.round(
  7256. (this.checkJson[i][z].rightPerson.length /
  7257. parseInt(this.worksStudent[i].length)) *
  7258. 100
  7259. );
  7260. let aaaa = this.checkJson[i][z];
  7261. console.log(aaaa);
  7262. for (
  7263. var k = 0;
  7264. k < this.checkJson[i][z].checkCount.length;
  7265. k++
  7266. ) {
  7267. this.checkJson[i][z].checkPerent.push(
  7268. Math.round(
  7269. (this.checkJson[i][z].checkCount[k] /
  7270. parseInt(this.worksStudent[i].length)) *
  7271. 100
  7272. )
  7273. );
  7274. }
  7275. }
  7276. } else if (data.type == 9) {
  7277. for (var z = 0; z < this.checkJson[i].length; z++) {
  7278. this.checkJson[i][z].checkPerent = [];
  7279. this.checkJson[i][z].right = Math.round(
  7280. (this.checkJson[i][z].rightPerson.length /
  7281. this.checkJson[i][z].checkPerson.length) *
  7282. 100
  7283. );
  7284. }
  7285. }
  7286. }
  7287. }
  7288. }
  7289. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  7290. this.joinGroup(gindex);
  7291. }
  7292. this.selectWorksStudent();
  7293. })
  7294. .catch((err) => {
  7295. console.error(err);
  7296. });
  7297. },
  7298. pngToWhiteBg(file) {
  7299. const _file = file;
  7300. let read = new FileReader();
  7301. read.readAsDataURL(file); // 文件转base64
  7302. return new Promise((resolve, reject) => {
  7303. read.onload = (e) => {
  7304. let img = new Image();
  7305. img.src = e.target.result;
  7306. img.onload = async () => {
  7307. // 生成canvas
  7308. let canvas = document.createElement("canvas");
  7309. let context = canvas.getContext("2d");
  7310. // 绘制图片到canvas上
  7311. canvas.width = img.width;
  7312. canvas.height = img.height;
  7313. // 在canvas绘制前填充白色背景
  7314. context.fillStyle = "#fff";
  7315. context.fillRect(0, 0, canvas.width, canvas.height);
  7316. context.drawImage(img, 0, 0);
  7317. let base64 = canvas.toDataURL(file["type"], 1);
  7318. let newFile = this.dataUrlToFile(base64, _file);
  7319. resolve(newFile);
  7320. };
  7321. };
  7322. });
  7323. },
  7324. dataUrlToFile(dataurl, file) {
  7325. let arr = dataurl.split(","),
  7326. mime = arr[0].match(/:(.*?);/)[1],
  7327. bstr = atob(arr[1]),
  7328. n = bstr.length,
  7329. u8arr = new Uint8Array(n);
  7330. while (n--) {
  7331. u8arr[n] = bstr.charCodeAt(n);
  7332. }
  7333. // return new Blob([u8arr], { type: mime });
  7334. return new File([new Blob([u8arr], { type: mime })], file.name, {
  7335. type: mime,
  7336. });
  7337. },
  7338. async beforeUpload1(event, type, i) {
  7339. // this.$message.success('进入上传')
  7340. var file = "";
  7341. if (type == 5) {
  7342. file = event;
  7343. } else {
  7344. file = event.target.files[0];
  7345. }
  7346. var credentials = {
  7347. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7348. secretAccessKey: "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",
  7349. }; //秘钥形式的登录上传
  7350. window.AWS.config.update(credentials);
  7351. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7352. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7353. var _this = this;
  7354. _this.progress = 0;
  7355. _this.proVisible = true;
  7356. _this.isFinishSize = 0;
  7357. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7358. var b = [
  7359. "DOC",
  7360. "DOCX",
  7361. "DOCM",
  7362. "DOTM",
  7363. "DOTX",
  7364. "PPTX",
  7365. "PPSX",
  7366. "PPT",
  7367. "PPS",
  7368. "PPTM",
  7369. "POTM",
  7370. "PPAM",
  7371. "POTX",
  7372. "PPSM",
  7373. ];
  7374. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7375. var photoA = [
  7376. "BMP",
  7377. "GIF",
  7378. "PNG",
  7379. "JPGE",
  7380. "JPG",
  7381. "TIF",
  7382. "PCX",
  7383. "TGA",
  7384. "EXIF",
  7385. "FPX",
  7386. "SVG",
  7387. "APNG",
  7388. ];
  7389. // if (
  7390. // b.indexOf(
  7391. // file.name
  7392. // .split(".")
  7393. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7394. // ) != -1
  7395. // ) {
  7396. // if (file.size / 1024 / 1024 > 10) {
  7397. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  7398. // return;
  7399. // }
  7400. // } else if (
  7401. // excelA.indexOf(
  7402. // file.name
  7403. // .split(".")
  7404. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7405. // ) != "-1"
  7406. // ) {
  7407. // if (file.size / 1024 / 1024 > 5) {
  7408. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  7409. // return;
  7410. // }
  7411. // }
  7412. if (
  7413. photoA.indexOf(
  7414. file.name
  7415. .split(".")
  7416. [file.name.split(".").length - 1].toLocaleUpperCase()
  7417. ) != -1 &&
  7418. type != 4
  7419. ) {
  7420. // const blob = await imageConversion.compress(file, 0.8)
  7421. file = await this.pngToWhiteBg(file);
  7422. const blob = await imageConversion.compressAccurately(file, 256);
  7423. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7424. file = new File([blob], file.name, { type: file.type });
  7425. }
  7426. if (file) {
  7427. var params = {
  7428. Key:
  7429. file.name.split(".")[0] +
  7430. new Date().getTime() +
  7431. "." +
  7432. file.name.split(".")[file.name.split(".").length - 1],
  7433. ContentType: file.type,
  7434. Body: file,
  7435. "Access-Control-Allow-Credentials": "*",
  7436. ACL: "public-read",
  7437. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7438. var options = {
  7439. // partSize: 2048 * 1024 * 1024,
  7440. partSize: 1024 * 1024 * 1024,
  7441. queueSize: 2,
  7442. leavePartsOnError: true,
  7443. };
  7444. bucket
  7445. .upload(params, options)
  7446. .on("httpUploadProgress", function (evt) {
  7447. //这里可以写进度条
  7448. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7449. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  7450. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7451. })
  7452. .send(function (err, data) {
  7453. _this.progress = 100;
  7454. _this.isFinishSize = _this.isAllSize;
  7455. setTimeout(() => {
  7456. _this.proVisible = false;
  7457. }, 1000);
  7458. if (err) {
  7459. var a = _this.$refs.upload1.uploadFiles;
  7460. a.splice(a.length - 1, a.length);
  7461. _this.$message.error("上传失败");
  7462. } else {
  7463. // _this.$message.success('上传成功')
  7464. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7465. var c = [
  7466. "AVI",
  7467. "NAVI",
  7468. "MPEG",
  7469. "ASF",
  7470. "MOV",
  7471. "WMV",
  7472. "3GP",
  7473. "RM",
  7474. "RMVB",
  7475. "FLV",
  7476. "F4V",
  7477. "H.264",
  7478. "H.265",
  7479. "REAL VIDEO",
  7480. "MKV",
  7481. "WebM",
  7482. "HDDVD",
  7483. "MP4",
  7484. "MPG",
  7485. "M4V",
  7486. "MGV",
  7487. "OGV",
  7488. "QTM",
  7489. "STR",
  7490. "AMC",
  7491. "DVX",
  7492. "EVO",
  7493. "DAT",
  7494. "OGG",
  7495. "OGM",
  7496. ];
  7497. if (type == 1) {
  7498. _this.studyJuri[0].cover.push({
  7499. name: file.name,
  7500. url: data.Location,
  7501. uid: file.uid,
  7502. });
  7503. if (
  7504. c.indexOf(
  7505. _this.studyJuri[0].cover[0].url
  7506. .split(".")
  7507. [
  7508. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7509. ].toLocaleUpperCase()
  7510. ) != -1
  7511. ) {
  7512. _this.fileType = 2;
  7513. } else if (
  7514. b.indexOf(
  7515. _this.studyJuri[0].cover[0].url
  7516. .split(".")
  7517. [
  7518. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7519. ].toLocaleUpperCase()
  7520. ) != -1
  7521. ) {
  7522. _this.fileType = 1;
  7523. } else if (photoA.indexOf(
  7524. _this.studyJuri[0].cover[0].url
  7525. .split(".")
  7526. [
  7527. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7528. ].toLocaleUpperCase()
  7529. ) != -1) {
  7530. _this.fileType = 0;
  7531. } else {
  7532. _this.fileType = 3;
  7533. }
  7534. _this.imgChange(null, null, type);
  7535. } else if (type == 2) {
  7536. _this.upToolImg = data.Location;
  7537. _this.imgChange(null, null, type);
  7538. _this.addCourseWorks(i);
  7539. } else if (type == 4) {
  7540. _this.addPz("3", data.Location);
  7541. } else if (type == 5) {
  7542. _this.addImgDrawImG(data.Location);
  7543. } else if (type == 6) {
  7544. var _ftype = 1;
  7545. if (
  7546. c.indexOf(
  7547. data.Location.split(".")[
  7548. data.Location.split(".").length - 1
  7549. ].toLocaleUpperCase()
  7550. ) != -1
  7551. ) {
  7552. _ftype = 5;
  7553. } else if (
  7554. b.indexOf(
  7555. data.Location.split(".")[
  7556. data.Location.split(".").length - 1
  7557. ].toLocaleUpperCase()
  7558. ) != -1
  7559. ) {
  7560. _ftype = 4;
  7561. } else {
  7562. _ftype = 1;
  7563. }
  7564. _this.plworkFile.push({
  7565. name: file.name,
  7566. url: data.Location,
  7567. uid: file.uid,
  7568. fileType: _ftype,
  7569. username:
  7570. _this.plworkFile.length + 1 > 10
  7571. ? _this.plworkFile.length + 1
  7572. : "0" + (_this.plworkFile.length + 1),
  7573. });
  7574. } else if (type == 7) {
  7575. _this.addCourseWorksGong(i, data.Location, 32);
  7576. } else if (type == 8) {
  7577. _this.addCourseWorksGong(i, data.Location, 57);
  7578. }
  7579. _this.imgChange(null, null, type);
  7580. console.log(data.Location);
  7581. // _this.$message.success('上传成功'+data.Location)
  7582. }
  7583. });
  7584. }
  7585. },
  7586. async beforeUpload3(event, type, i) {
  7587. // this.$message.success('进入上传')
  7588. let file = "";
  7589. let cfindex2 = 0;
  7590. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  7591. file = event.target.files[cfindex];
  7592. var credentials = {
  7593. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7594. secretAccessKey: "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",
  7595. }; //秘钥形式的登录上传
  7596. window.AWS.config.update(credentials);
  7597. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7598. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7599. var _this = this;
  7600. // _this.progress = 0;
  7601. _this.proVisible2 = true;
  7602. var b = [
  7603. "DOC",
  7604. "DOCX",
  7605. "DOCM",
  7606. "DOTM",
  7607. "DOTX",
  7608. "PPTX",
  7609. "PPSX",
  7610. "PPT",
  7611. "PPS",
  7612. "PPTM",
  7613. "POTM",
  7614. "PPAM",
  7615. "POTX",
  7616. "PPSM",
  7617. ];
  7618. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7619. var photoA = [
  7620. "BMP",
  7621. "GIF",
  7622. "PNG",
  7623. "JPGE",
  7624. "JPG",
  7625. "TIF",
  7626. "PCX",
  7627. "TGA",
  7628. "EXIF",
  7629. "FPX",
  7630. "SVG",
  7631. "APNG",
  7632. ];
  7633. if (
  7634. photoA.indexOf(
  7635. file.name
  7636. .split(".")
  7637. [file.name.split(".").length - 1].toLocaleUpperCase()
  7638. ) != -1 &&
  7639. type != 4
  7640. ) {
  7641. // const blob = await imageConversion.compress(file, 0.8)
  7642. file = await this.pngToWhiteBg(file);
  7643. const blob = await imageConversion.compressAccurately(file, 256);
  7644. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7645. file = new File([blob], file.name, { type: file.type });
  7646. }
  7647. if (file) {
  7648. var params = {
  7649. Key:
  7650. file.name.split(".")[0] +
  7651. new Date().getTime() +
  7652. "." +
  7653. file.name.split(".")[file.name.split(".").length - 1],
  7654. ContentType: file.type,
  7655. Body: file,
  7656. "Access-Control-Allow-Credentials": "*",
  7657. ACL: "public-read",
  7658. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7659. var options = {
  7660. // partSize: 2048 * 1024 * 1024,
  7661. partSize: 1024 * 1024 * 1024,
  7662. queueSize: 2,
  7663. leavePartsOnError: true,
  7664. };
  7665. bucket
  7666. .upload(params, options)
  7667. .on("httpUploadProgress", function (evt) {
  7668. //这里可以写进度条
  7669. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7670. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7671. })
  7672. .send(function (err, data) {
  7673. // _this.progress = 100;
  7674. cfindex2++;
  7675. setTimeout(() => {
  7676. if (
  7677. cfindex2 == event.target.files.length - 1 ||
  7678. cfindex2 > event.target.files.length - 1
  7679. ) {
  7680. _this.proVisible2 = false;
  7681. }
  7682. }, 1000);
  7683. if (err) {
  7684. var a = _this.$refs.upload1.uploadFiles;
  7685. a.splice(a.length - 1, a.length);
  7686. _this.$message.error("上传失败");
  7687. } else {
  7688. // _this.$message.success('上传成功')
  7689. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7690. var c = [
  7691. "AVI",
  7692. "NAVI",
  7693. "MPEG",
  7694. "ASF",
  7695. "MOV",
  7696. "WMV",
  7697. "3GP",
  7698. "RM",
  7699. "RMVB",
  7700. "FLV",
  7701. "F4V",
  7702. "H.264",
  7703. "H.265",
  7704. "REAL VIDEO",
  7705. "MKV",
  7706. "WebM",
  7707. "HDDVD",
  7708. "MP4",
  7709. "MPG",
  7710. "M4V",
  7711. "MGV",
  7712. "OGV",
  7713. "QTM",
  7714. "STR",
  7715. "AMC",
  7716. "DVX",
  7717. "EVO",
  7718. "DAT",
  7719. "OGG",
  7720. "OGM",
  7721. ];
  7722. if (type == 1) {
  7723. _this.studyJuri[0].cover.push({
  7724. name: file.name,
  7725. url: data.Location,
  7726. uid: file.uid,
  7727. });
  7728. if (
  7729. c.indexOf(
  7730. _this.studyJuri[0].cover[0].url
  7731. .split(".")
  7732. [
  7733. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7734. ].toLocaleUpperCase()
  7735. ) != -1
  7736. ) {
  7737. _this.fileType = 2;
  7738. } else if (
  7739. b.indexOf(
  7740. _this.studyJuri[0].cover[0].url
  7741. .split(".")
  7742. [
  7743. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7744. ].toLocaleUpperCase()
  7745. ) != -1
  7746. ) {
  7747. _this.fileType = 1;
  7748. } else {
  7749. _this.fileType = 0;
  7750. }
  7751. _this.imgChange(null, null, type);
  7752. } else if (type == 2) {
  7753. _this.upToolImg = data.Location;
  7754. _this.imgChange(null, null, type);
  7755. _this.addCourseWorks(i);
  7756. } else if (type == 4) {
  7757. _this.addPz("3", data.Location);
  7758. } else if (type == 5) {
  7759. _this.addImgDrawImG(data.Location);
  7760. } else if (type == 6) {
  7761. var _ftype = 1;
  7762. if (
  7763. c.indexOf(
  7764. data.Location.split(".")[
  7765. data.Location.split(".").length - 1
  7766. ].toLocaleUpperCase()
  7767. ) != -1
  7768. ) {
  7769. _ftype = 5;
  7770. } else if (
  7771. b.indexOf(
  7772. data.Location.split(".")[
  7773. data.Location.split(".").length - 1
  7774. ].toLocaleUpperCase()
  7775. ) != -1
  7776. ) {
  7777. _ftype = 4;
  7778. } else {
  7779. _ftype = 1;
  7780. }
  7781. _this.plworkFile.push({
  7782. name: file.name,
  7783. url: data.Location,
  7784. uid: file.uid,
  7785. fileType: _ftype,
  7786. username:
  7787. _this.plworkFile.length+1 > 9
  7788. ? _this.plworkFile.length+1
  7789. : "0" + (_this.plworkFile.length+1),
  7790. });
  7791. }
  7792. _this.imgChange(null, null, type);
  7793. console.log(data.Location);
  7794. // _this.$message.success('上传成功'+data.Location)
  7795. }
  7796. });
  7797. }
  7798. }
  7799. },
  7800. beforeUpload2(event, type) {
  7801. var file = event.target.files[0];
  7802. var credentials = {
  7803. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7804. secretAccessKey: "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",
  7805. }; //秘钥形式的登录上传
  7806. window.AWS.config.update(credentials);
  7807. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7808. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7809. var _this = this;
  7810. _this.progress = 0;
  7811. _this.proVisible = true;
  7812. if (file) {
  7813. var params = {
  7814. Key:
  7815. file.name.split(".")[0] +
  7816. new Date().getTime() +
  7817. "." +
  7818. file.name.split(".")[file.name.split(".").length - 1],
  7819. ContentType: file.type,
  7820. Body: file,
  7821. "Access-Control-Allow-Credentials": "*",
  7822. ACL: "public-read",
  7823. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7824. var options = {
  7825. partSize: 2048 * 1024 * 1024,
  7826. queueSize: 2,
  7827. leavePartsOnError: true,
  7828. };
  7829. bucket
  7830. .upload(params, options)
  7831. .on("httpUploadProgress", function (evt) {
  7832. //这里可以写进度条
  7833. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7834. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7835. })
  7836. .send(function (err, data) {
  7837. _this.progress = 100;
  7838. setTimeout(() => {
  7839. _this.proVisible = false;
  7840. }, 1000);
  7841. if (err) {
  7842. var a = _this.$refs.upload1.uploadFiles;
  7843. a.splice(a.length - 1, a.length);
  7844. _this.$message.error("上传失败");
  7845. } else {
  7846. if (type == 2) {
  7847. _this.studyJuri[0].upVedio.push({
  7848. name: file.name,
  7849. url: data.Location,
  7850. uid: file.uid,
  7851. });
  7852. _this.imgChange(null, null, type);
  7853. } else if (type == 3) {
  7854. _this.studyJuri[0].upFile.push({
  7855. name: file.name,
  7856. url: data.Location,
  7857. uid: file.uid,
  7858. });
  7859. _this.imgChange(null, null, type);
  7860. }
  7861. console.log(data.Location);
  7862. }
  7863. });
  7864. }
  7865. },
  7866. allScrell() {
  7867. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  7868. },
  7869. nextToolindex(type) {
  7870. if (type == 'last') {
  7871. if (this.toolIndex == 0) {
  7872. this.$message.error("已经是第一个步骤")
  7873. return;
  7874. }
  7875. this.toolIndex = this.toolIndex - 1
  7876. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7877. } else if (type == 'next') {
  7878. if (this.toolIndex == this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length - 1) {
  7879. this.$message.error("已经是最后一个步骤")
  7880. return;
  7881. }
  7882. this.toolIndex = this.toolIndex + 1
  7883. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7884. }
  7885. this.$forceUpdate();
  7886. },
  7887. checkBz(index){
  7888. this.toolIndex = index
  7889. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7890. this.$forceUpdate();
  7891. },
  7892. nextOrpreSteps(t) {
  7893. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  7894. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  7895. return;
  7896. }
  7897. var b = this.chapInfoList.length - 1;
  7898. if (t == 0) {
  7899. if (this.courseType == 0) {
  7900. if (this.taskCount == 0) {
  7901. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  7902. if (this.IsLookOpen) {
  7903. if (
  7904. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  7905. ) {
  7906. if (
  7907. this.courseDetail.userid != this.userid &&
  7908. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  7909. ) {
  7910. this.$message.error("任务未解锁");
  7911. } else {
  7912. this.$message.error("上一任务未解锁");
  7913. }
  7914. return;
  7915. }
  7916. }
  7917. this.navList[this.courseType].isOpen = false;
  7918. this.courseType = b;
  7919. this.taskCount =
  7920. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7921. .length - 1;
  7922. this.navList[this.courseType].isOpen = true;
  7923. } else {
  7924. this.taskCount--;
  7925. }
  7926. } else {
  7927. if (this.taskCount == 0) {
  7928. this.navList[this.courseType].isOpen = false;
  7929. this.courseType--;
  7930. this.taskCount =
  7931. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7932. .length - 1;
  7933. this.navList[this.courseType].isOpen = true;
  7934. } else {
  7935. this.taskCount--;
  7936. }
  7937. }
  7938. } else {
  7939. if (this.courseType == b) {
  7940. if (
  7941. this.taskCount ==
  7942. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  7943. 1
  7944. ) {
  7945. this.navList[this.courseType].isOpen = false;
  7946. this.courseType = 0;
  7947. this.taskCount = 0;
  7948. this.navList[this.courseType].isOpen = true;
  7949. } else {
  7950. var bbb = parseInt(this.taskCount) + 1;
  7951. if (
  7952. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  7953. .isLook &&
  7954. this.courseDetail.userid != this.userid &&
  7955. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7956. this.IsLookOpen
  7957. ) {
  7958. this.$message.error("任务未解锁");
  7959. return;
  7960. }
  7961. this.taskCount++;
  7962. if (this.IsLookOpen) {
  7963. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7964. this.taskCount
  7965. ].isLook = true;
  7966. this.addCourseState(3);
  7967. }
  7968. }
  7969. } else {
  7970. if (
  7971. this.taskCount ==
  7972. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  7973. 1
  7974. ) {
  7975. var bbb = parseInt(this.courseType) + 1;
  7976. if (
  7977. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  7978. this.courseDetail.userid != this.userid &&
  7979. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7980. this.IsLookOpen
  7981. ) {
  7982. this.$message.error("任务未解锁");
  7983. return;
  7984. }
  7985. this.navList[this.courseType].isOpen = false;
  7986. this.courseType++;
  7987. this.taskCount = 0;
  7988. this.navList[this.courseType].isOpen = true;
  7989. } else {
  7990. var bbb = parseInt(this.taskCount) + 1;
  7991. if (
  7992. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  7993. .isLook &&
  7994. this.courseDetail.userid != this.userid &&
  7995. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7996. this.IsLookOpen
  7997. ) {
  7998. this.$message.error("任务未解锁");
  7999. return;
  8000. }
  8001. this.taskCount++;
  8002. }
  8003. if (this.IsLookOpen) {
  8004. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8005. this.taskCount
  8006. ].isLook = true;
  8007. this.addCourseState(3);
  8008. }
  8009. }
  8010. }
  8011. document.scrollingElement.scrollTop = 0;
  8012. this.showType = 0;
  8013. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8014. this.toolIndex = null
  8015. this.isNoHomeWork = false;
  8016. (this.studyJuri = [
  8017. {
  8018. content: "",
  8019. cover: [],
  8020. upVedio: [],
  8021. upFile: [],
  8022. },
  8023. ]),
  8024. (this.radio = []);
  8025. this.isClickNav = "";
  8026. this.selectPz();
  8027. this.getHomeWork();
  8028. this.getCourseDetail();
  8029. this.$forceUpdate();
  8030. },
  8031. openTask(s, n, i) {
  8032. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8033. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8034. return;
  8035. }
  8036. if (this.IsLookOpen) {
  8037. if (
  8038. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  8039. this.courseDetail.userid != this.userid &&
  8040. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  8041. ) {
  8042. this.$message.error("任务未解锁");
  8043. return;
  8044. }
  8045. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  8046. if (
  8047. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  8048. .isLook
  8049. ) {
  8050. this.$message.error("上一任务未解锁");
  8051. return;
  8052. }
  8053. } else if (s > this.courseType) {
  8054. if (n > 0) {
  8055. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  8056. this.$message.error("上一任务未解锁");
  8057. return;
  8058. }
  8059. } else {
  8060. if (
  8061. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  8062. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  8063. ].isLook
  8064. ) {
  8065. this.$message.error("上一任务未解锁");
  8066. return;
  8067. }
  8068. }
  8069. }
  8070. }
  8071. this.courseType = s;
  8072. this.navId = i;
  8073. this.taskCount = n;
  8074. if (this.IsLookOpen) {
  8075. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8076. this.taskCount
  8077. ].isLook = true;
  8078. this.addCourseState(3);
  8079. }
  8080. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  8081. this.isCloseList[ci].isClose = 0;
  8082. }
  8083. this.showType = 0;
  8084. this.isNoHomeWork = false;
  8085. (this.studyJuri = [
  8086. {
  8087. content: "",
  8088. cover: [],
  8089. upVedio: [],
  8090. upFile: [],
  8091. },
  8092. ]),
  8093. (this.radio = []);
  8094. document.scrollingElement.scrollTop = 0;
  8095. this.toolIndex = null
  8096. // setTimeout(() => {
  8097. // let a = document.getElementById(i);
  8098. // if (a.offsetTop - 110 == 0) {
  8099. // window.scrollTo(0, 0);
  8100. // } else {
  8101. // window.scrollTo(0, a.offsetTop);
  8102. // }
  8103. // }, 0);
  8104. this.selectPz();
  8105. this.getHomeWork();
  8106. this.getCourseDetail();
  8107. },
  8108. get(i) {
  8109. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8110. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8111. return;
  8112. }
  8113. this.navList[i].isOpen = !this.navList[i].isOpen;
  8114. },
  8115. addQuestion() {
  8116. this.answerList.push({
  8117. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8118. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8119. });
  8120. let params = [
  8121. {
  8122. uid: this.userid,
  8123. cid: this.id,
  8124. stage: this.courseType,
  8125. task: this.taskCount,
  8126. tool: this.toolindex,
  8127. content: JSON.stringify(this.answerList),
  8128. type: 3,
  8129. },
  8130. ];
  8131. this.ajax
  8132. .post(this.$store.state.api + "addCourseWorks", params)
  8133. .then((res) => {
  8134. this.$message({
  8135. message: "提交成功",
  8136. type: "success",
  8137. });
  8138. this.answerList = [];
  8139. this.questionAnswer = ""
  8140. this.answerDialogVisible = false;
  8141. this.selectStudent();
  8142. this.selectSWorks();
  8143. this.selectSLook();
  8144. })
  8145. .catch((err) => {
  8146. this.$message.error("提交失败");
  8147. console.error(err);
  8148. });
  8149. },
  8150. addQuestionTeacher() {
  8151. this.answerList.push({
  8152. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8153. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8154. });
  8155. let params = [
  8156. {
  8157. uid: this.sStudent.userid,
  8158. cid: this.id,
  8159. stage: this.courseType,
  8160. task: this.taskCount,
  8161. tool: this.toolindex,
  8162. content: JSON.stringify(this.answerList),
  8163. type: 3,
  8164. ateacher: this.userid,
  8165. },
  8166. ];
  8167. this.ajax
  8168. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  8169. .then((res) => {
  8170. this.$message({
  8171. message: "提交成功",
  8172. type: "success",
  8173. });
  8174. this.answerList = [];
  8175. this.questionAnswer = ""
  8176. this.answerDialogVisibleTeacher = false;
  8177. this.selectStudent();
  8178. this.selectSWorks();
  8179. this.selectSLook();
  8180. })
  8181. .catch((err) => {
  8182. this.$message.error("提交失败");
  8183. console.error(err);
  8184. });
  8185. },
  8186. getCourseDetail(type, gindex) {
  8187. let loading;
  8188. if (type != 2) {
  8189. loading = this.$loading.service({
  8190. background: "rgba(255, 255, 255, 0.7)",
  8191. target: document.querySelector(".student_table"),
  8192. });
  8193. }
  8194. let params = {
  8195. courseId: this.id,
  8196. };
  8197. this.ajax
  8198. .get(this.$store.state.api + "selectCourseDetail3", params)
  8199. .then((res) => {
  8200. if (type != 2) {
  8201. loading.close();
  8202. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  8203. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  8204. }
  8205. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8206. .chapterInfo[0].taskJson;
  8207. var b = [
  8208. "AVI",
  8209. "NAVI",
  8210. "MPEG",
  8211. "ASF",
  8212. "MOV",
  8213. "WMV",
  8214. "3GP",
  8215. "RM",
  8216. "RMVB",
  8217. "FLV",
  8218. "F4V",
  8219. "H.264",
  8220. "H.265",
  8221. "REAL VIDEO",
  8222. "MKV",
  8223. "WebM",
  8224. "HDDVD",
  8225. "MP4",
  8226. "MPG",
  8227. "M4V",
  8228. "MGV",
  8229. "OGV",
  8230. "QTM",
  8231. "STR",
  8232. "AMC",
  8233. "DVX",
  8234. "EVO",
  8235. "DAT",
  8236. "OGG",
  8237. "OGM",
  8238. "MP3",
  8239. ];
  8240. for (var i = 0; i < a.length; i++) {
  8241. var c = a[i].chapterData;
  8242. this.vedio[i] = [];
  8243. this.textList[i] = [];
  8244. this.lineList[i] = [];
  8245. this.chapToolList[i] = [];
  8246. this.file[i] = [];
  8247. this.fileC[i] = [];
  8248. for (var j = 0; j < c.length; j++) {
  8249. if (c[j].type == 7) {
  8250. this.chapToolList[i].push(c[j]);
  8251. } else if (c[j].type == 8) {
  8252. this.lineList[i].push(c[j]);
  8253. } else if (c[j].type == 6) {
  8254. this.textList[i].push(c[j]);
  8255. } else if (c[j].type == 12) {
  8256. this.fileC[i].push(c[j]);
  8257. } else {
  8258. if (
  8259. b.indexOf(
  8260. c[j].url
  8261. .split(".")
  8262. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8263. ) != -1
  8264. ) {
  8265. this.vedio[i].push(c[j]);
  8266. } else {
  8267. this.file[i].push(c[j]);
  8268. }
  8269. }
  8270. }
  8271. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8272. d.sources[0].src =
  8273. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8274. this.playerO[i] = d;
  8275. }
  8276. this.courseDetail = res.data[0][0];
  8277. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  8278. console.log(this.tcid);
  8279. this.evalua = res.data[0][0].evaId;
  8280. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  8281. this.courseType
  8282. ];
  8283. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  8284. if (this.tcid && res.data[1].length) {
  8285. let _inviteA = []
  8286. for (var ik = 0; ik < res.data[1].length; ik++) {
  8287. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  8288. }
  8289. for (var ik = 0; ik < _inviteA.length; ik++) {
  8290. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  8291. this.inviteCode = _inviteA[ik].ic
  8292. break;
  8293. }
  8294. }
  8295. }
  8296. for (var l = 0; l < this.chapInfoList.length; l++) {
  8297. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8298. for (var m = 0; m < w.length; m++) {
  8299. w[m].id = l + "-" + m;
  8300. }
  8301. }
  8302. if (
  8303. !this.vedio[this.taskCount][0] ||
  8304. this.vedio[this.taskCount][0].url == ""
  8305. ) {
  8306. if (
  8307. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8308. this.taskCount
  8309. ].chapterData.length > 0
  8310. ) {
  8311. // if (
  8312. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8313. // this.taskCount
  8314. // ].chapterData[0].type != 8
  8315. // ) {
  8316. let _url =
  8317. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8318. this.taskCount
  8319. ].chapterData[0].url;
  8320. if (
  8321. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8322. this.taskCount
  8323. ].chapterData[0].type == 8
  8324. ) {
  8325. this.showType = 2;
  8326. if (
  8327. _url.indexOf("https://") == -1 &&
  8328. _url.indexOf("http://") == -1
  8329. ) {
  8330. _url = "https://" + _url;
  8331. }
  8332. this.pptImgUrl1 = _url;
  8333. this.isClickNav = "line0";
  8334. } else if (
  8335. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8336. this.taskCount
  8337. ].chapterData[0].type == 3
  8338. ) {
  8339. if (
  8340. _url
  8341. .split(".")
  8342. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8343. ) {
  8344. this.showType = 3;
  8345. this.pptImgUrl1 = _url;
  8346. this.isClickNav = "word0";
  8347. } else if (
  8348. this.isAssetTypeAnImage(
  8349. _url
  8350. .split(".")
  8351. [_url.split(".").length - 1].toLocaleLowerCase()
  8352. )
  8353. ) {
  8354. this.showType = 4;
  8355. this.pptImgUrl1 = _url;
  8356. this.isClickNav = "word0";
  8357. } else {
  8358. this.showType = 2;
  8359. this.pptImgUrl1 =
  8360. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8361. _url;
  8362. this.isClickNav = "word0";
  8363. }
  8364. } else if (
  8365. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8366. this.taskCount
  8367. ].chapterData[0].type == 6
  8368. ) {
  8369. this.showType = 1;
  8370. this.text = this.textList[this.taskCount][0];
  8371. this.isClickNav = "text0";
  8372. }
  8373. }
  8374. } else {
  8375. this.isClickNav = "video0";
  8376. }
  8377. if (this.toolIndex == null && this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length) {
  8378. this.toolIndex = 0
  8379. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  8380. }
  8381. } else {
  8382. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8383. .chapterInfo[0].taskJson;
  8384. var b = [
  8385. "AVI",
  8386. "NAVI",
  8387. "MPEG",
  8388. "ASF",
  8389. "MOV",
  8390. "WMV",
  8391. "3GP",
  8392. "RM",
  8393. "RMVB",
  8394. "FLV",
  8395. "F4V",
  8396. "H.264",
  8397. "H.265",
  8398. "REAL VIDEO",
  8399. "MKV",
  8400. "WebM",
  8401. "HDDVD",
  8402. "MP4",
  8403. "MPG",
  8404. "M4V",
  8405. "MGV",
  8406. "OGV",
  8407. "QTM",
  8408. "STR",
  8409. "AMC",
  8410. "DVX",
  8411. "EVO",
  8412. "DAT",
  8413. "OGG",
  8414. "OGM",
  8415. "MP3",
  8416. ];
  8417. for (var i = 0; i < a.length; i++) {
  8418. var c = a[i].chapterData;
  8419. this.vedio[i] = [];
  8420. this.textList[i] = [];
  8421. this.lineList[i] = [];
  8422. this.chapToolList[i] = [];
  8423. this.file[i] = [];
  8424. this.fileC[i] = [];
  8425. for (var j = 0; j < c.length; j++) {
  8426. if (c[j].type == 7) {
  8427. this.chapToolList[i].push(c[j]);
  8428. } else if (c[j].type == 8) {
  8429. this.lineList[i].push(c[j]);
  8430. } else if (c[j].type == 6) {
  8431. this.textList[i].push(c[j]);
  8432. } else if (c[j].type == 12) {
  8433. this.fileC[i].push(c[j]);
  8434. } else {
  8435. if (
  8436. b.indexOf(
  8437. c[j].url
  8438. .split(".")
  8439. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8440. ) != -1
  8441. ) {
  8442. this.vedio[i].push(c[j]);
  8443. } else {
  8444. this.file[i].push(c[j]);
  8445. }
  8446. }
  8447. }
  8448. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8449. d.sources[0].src =
  8450. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8451. this.playerO[i] = d;
  8452. }
  8453. if (
  8454. !this.vedio[this.taskCount][0] ||
  8455. this.vedio[this.taskCount][0].url == ""
  8456. ) {
  8457. if (
  8458. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8459. this.taskCount
  8460. ].chapterData.length > 0
  8461. ) {
  8462. // if (
  8463. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8464. // this.taskCount
  8465. // ].chapterData[0].type != 8
  8466. // ) {
  8467. let _url =
  8468. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8469. this.taskCount
  8470. ].chapterData[0].url;
  8471. if (
  8472. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8473. this.taskCount
  8474. ].chapterData[0].type == 8
  8475. ) {
  8476. this.showType = 2;
  8477. if (
  8478. _url.indexOf("https://") == -1 &&
  8479. _url.indexOf("http://") == -1
  8480. ) {
  8481. _url = "https://" + _url;
  8482. }
  8483. this.pptImgUrl1 = _url;
  8484. this.isClickNav = "line0";
  8485. } else if (
  8486. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8487. this.taskCount
  8488. ].chapterData[0].type == 3
  8489. ) {
  8490. if (
  8491. _url
  8492. .split(".")
  8493. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8494. ) {
  8495. this.showType = 3;
  8496. this.pptImgUrl1 = _url;
  8497. this.isClickNav = "word0";
  8498. } else if (
  8499. this.isAssetTypeAnImage(
  8500. _url
  8501. .split(".")
  8502. [_url.split(".").length - 1].toLocaleLowerCase()
  8503. )
  8504. ) {
  8505. this.showType = 4;
  8506. this.pptImgUrl1 = _url;
  8507. this.isClickNav = "word0";
  8508. } else {
  8509. this.showType = 2;
  8510. this.pptImgUrl1 =
  8511. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8512. _url;
  8513. this.isClickNav = "word0";
  8514. }
  8515. } else if (
  8516. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8517. this.taskCount
  8518. ].chapterData[0].type == 6
  8519. ) {
  8520. this.showType = 1;
  8521. this.text = this.textList[this.taskCount][0];
  8522. this.isClickNav = "text0";
  8523. }
  8524. }
  8525. } else {
  8526. this.isClickNav = "video0";
  8527. }
  8528. this.$forceUpdate();
  8529. }
  8530. this.$nextTick(() => {
  8531. setTimeout(() => {
  8532. this.checkEva();
  8533. }, 1000);
  8534. });
  8535. let _this = this;
  8536. if (_this.timer) {
  8537. clearInterval(_this.timer);
  8538. _this.timer = null;
  8539. }
  8540. _this.selectSWorks(gindex);
  8541. _this.selectStudent();
  8542. _this.selectSLook();
  8543. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  8544. _this.setCTask();
  8545. }
  8546. if (_this.dialogVisibleGroup) {
  8547. _this.groupJson =
  8548. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  8549. _this.taskCount
  8550. ].toolChoose[_this.toolindex].groupJson;
  8551. }
  8552. _this.timer = setInterval(function () {
  8553. _this.selectSWorks(gindex);
  8554. }, 5000);
  8555. })
  8556. .catch((err) => {
  8557. loading.close();
  8558. console.error(err);
  8559. });
  8560. },
  8561. getCourseGroup(gindex) {
  8562. let params = {
  8563. cid: this.id,
  8564. classid: this.tcid ? this.tcid : '1',
  8565. };
  8566. this.ajax
  8567. .get(this.$store.state.api + "getCourseGroup", params)
  8568. .then((res) => {
  8569. if (res.data && res.data[0].length) {
  8570. if (!this.isGroup) {
  8571. let courseGroup = JSON.parse(res.data[0][0].group)
  8572. courseGroup.group = courseGroup.group.filter(el => {
  8573. el.works = []
  8574. return el
  8575. });
  8576. this.courseGroup = courseGroup
  8577. let groupPerson = res.data[1]
  8578. let group = JSON.parse(res.data[0][0].group).group
  8579. let courseGroupStudent = {}
  8580. let courseGroupStudentUid = {}
  8581. for (var i = 0; i < group.length; i++) {
  8582. courseGroupStudent[group[i].id] = []
  8583. courseGroupStudentUid[group[i].id] = []
  8584. for (var j = 0; j < groupPerson.length; j++) {
  8585. if (groupPerson[j].groupCid == group[i].id) {
  8586. courseGroupStudent[group[i].id].push(groupPerson[j])
  8587. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  8588. }
  8589. }
  8590. }
  8591. this.courseGroupStudent = courseGroupStudent
  8592. this.courseGroupStudentUid = courseGroupStudentUid
  8593. }
  8594. this.isGroup = true
  8595. this.selectSWorks(gindex);
  8596. } else {
  8597. this.selectSWorks(gindex);
  8598. this.isGroup = false
  8599. }
  8600. })
  8601. .catch((err) => {
  8602. // this.$message.error("网络不佳");
  8603. console.error(err);
  8604. });
  8605. },
  8606. setOperationTime() {
  8607. let _this = this
  8608. if (_this.opertimer) {
  8609. clearInterval(_this.opertimer);
  8610. _this.opertimer = null;
  8611. }
  8612. _this.opertimer = setInterval(() => {
  8613. _this.setoTime('600')
  8614. }, 600000);
  8615. },
  8616. setoTime(time) {
  8617. let params = [
  8618. {
  8619. uid: this.userid,
  8620. cid: this.id,
  8621. type: '2',
  8622. time: time,
  8623. },
  8624. ];
  8625. this.ajax
  8626. .post(this.$store.state.api + "addOperationTimeT2", params)
  8627. .then((res) => {
  8628. })
  8629. .catch((err) => {
  8630. console.error(err);
  8631. });
  8632. },
  8633. addPz(type, content) {
  8634. if (type == "1" && this.pzConText == "") {
  8635. this.$message.error("批注不能为空!");
  8636. return;
  8637. }
  8638. let params = [
  8639. {
  8640. cid: this.id,
  8641. uid: this.userid,
  8642. s: this.courseType,
  8643. t: this.taskCount,
  8644. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  8645. type: type,
  8646. },
  8647. ];
  8648. this.ajax
  8649. .post(this.$store.state.api + "addPz2", params)
  8650. .then((res) => {
  8651. this.$message({
  8652. message: "添加成功",
  8653. type: "success",
  8654. });
  8655. this.pzConText = "";
  8656. this.addPzDialog = false;
  8657. this.selectPz();
  8658. })
  8659. .catch((err) => {
  8660. this.$message.error("添加失败");
  8661. console.error(err);
  8662. });
  8663. },
  8664. deletePz(id) {
  8665. this.$confirm("确定删除此批注吗?", "提示", {
  8666. confirmButtonText: "确定",
  8667. cancelButtonText: "取消",
  8668. type: "warning",
  8669. })
  8670. .then(() => {
  8671. let params = [
  8672. {
  8673. id: id,
  8674. },
  8675. ];
  8676. this.ajax
  8677. .post(this.$store.state.api + "deletePz", params)
  8678. .then((res) => {
  8679. this.$message({
  8680. message: "删除成功",
  8681. type: "success",
  8682. });
  8683. this.selectPz();
  8684. })
  8685. .catch((err) => {
  8686. this.$message.error("网络异常");
  8687. console.error(err);
  8688. });
  8689. })
  8690. .catch(() => { });
  8691. },
  8692. selectPz() {
  8693. let params = {
  8694. cid: this.id,
  8695. s: this.courseType,
  8696. t: this.taskCount,
  8697. };
  8698. this.ajax
  8699. .get(this.$store.state.api + "selectPzList", params)
  8700. .then((res) => {
  8701. this.pzList = res.data[0];
  8702. })
  8703. .catch((err) => {
  8704. console.error(err);
  8705. });
  8706. },
  8707. updateSLook() {
  8708. let params = {
  8709. sopen: this.sIsOpen == false ? 1 : 2,
  8710. cid: this.id,
  8711. };
  8712. this.ajax
  8713. .get(this.$store.state.api + "updateCourseSLook", params)
  8714. .then((res) => {
  8715. if (this.sIsOpen == true) {
  8716. this.$message({
  8717. message: "权限设置成功",
  8718. type: "success",
  8719. });
  8720. } else {
  8721. this.$message({
  8722. message: "权限关闭成功",
  8723. type: "success",
  8724. });
  8725. }
  8726. })
  8727. .catch((err) => {
  8728. console.error(err);
  8729. });
  8730. },
  8731. updateFollow() {
  8732. let params = [
  8733. {
  8734. sopen: this.IsFollow == false ? 1 : 2,
  8735. cid: this.id,
  8736. },
  8737. ];
  8738. this.ajax
  8739. .post(this.$store.state.api + "updateCourseFollow", params)
  8740. .then((res) => {
  8741. if (this.IsFollow == true) {
  8742. this.$message({
  8743. message: "开启成功",
  8744. type: "success",
  8745. });
  8746. } else {
  8747. this.$message({
  8748. message: "关闭成功",
  8749. type: "success",
  8750. });
  8751. }
  8752. this.setCTask();
  8753. })
  8754. .catch((err) => {
  8755. console.error(err);
  8756. });
  8757. },
  8758. setCTask() {
  8759. let params = [
  8760. {
  8761. sopen: this.courseType + '-' + this.taskCount,
  8762. cid: this.id,
  8763. },
  8764. ];
  8765. this.ajax
  8766. .post(this.$store.state.api + "updateCourseFollowC", params)
  8767. .then((res) => {
  8768. })
  8769. .catch((err) => {
  8770. console.error(err);
  8771. });
  8772. },
  8773. updateLookOpen() {
  8774. let params = [
  8775. {
  8776. sopen: this.IsLookOpen == false ? 1 : 2,
  8777. cid: this.id,
  8778. },
  8779. ];
  8780. this.ajax
  8781. .post(this.$store.state.api + "updateCourseLookOpen", params)
  8782. .then((res) => {
  8783. if (this.IsLookOpen == true) {
  8784. // if (this.courseType != 0 && this.taskCount != 0) {
  8785. // this.openTask(0, 0, "0-0");
  8786. // }
  8787. this.$message({
  8788. message: "权限设置成功",
  8789. type: "success",
  8790. });
  8791. } else {
  8792. this.$message({
  8793. message: "权限关闭成功",
  8794. type: "success",
  8795. });
  8796. }
  8797. this.getCourseState(2);
  8798. })
  8799. .catch((err) => {
  8800. console.error(err);
  8801. });
  8802. },
  8803. selectSLook() {
  8804. let params = {
  8805. cid: this.id,
  8806. };
  8807. this.ajax
  8808. .get(this.$store.state.api + "selectCourseSLook", params)
  8809. .then((res) => {
  8810. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  8811. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  8812. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  8813. if (!this.IsLookOpen) {
  8814. this.setNavList();
  8815. } else {
  8816. this.getCourseState(1);
  8817. }
  8818. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8819. let _followC = res.data[0][0].followC.split('-')
  8820. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  8821. this.navList[this.courseType].isOpen = false;
  8822. this.courseType = _followC[0]
  8823. this.navList[this.courseType].isOpen = true;
  8824. this.taskCount = parseInt(_followC[1])
  8825. this.navId = res.data[0][0].followC;
  8826. this.getCourseDetail()
  8827. }
  8828. }
  8829. })
  8830. .catch((err) => {
  8831. console.error(err);
  8832. });
  8833. },
  8834. setNavList() {
  8835. if (this.navList.length == 0) {
  8836. this.navList = [];
  8837. for (var l = 0; l < this.chapInfoList.length; l++) {
  8838. var q = this.chapInfoList[l].dyName;
  8839. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8840. var e;
  8841. this.navList.push({
  8842. dyName: q,
  8843. isOpen: l === 0 ? true : false,
  8844. task: [],
  8845. });
  8846. for (var r = 0; r < w.length; r++) {
  8847. e = w[r].task;
  8848. if (this.chapInfoList[l].easy == 1) {
  8849. this.navList[l].task.push({
  8850. taskName: q,
  8851. id: l + "-" + r,
  8852. isLook: w[r].isLook,
  8853. });
  8854. } else {
  8855. this.navList[l].task.push({
  8856. taskName: e,
  8857. id: l + "-" + r,
  8858. isLook: w[r].isLook,
  8859. });
  8860. }
  8861. // this.navId = this.navId ? this.navId : l + "-" + r;
  8862. // this.navId = l + "-" + r;
  8863. }
  8864. }
  8865. this.navList[0].isOpen = false;
  8866. this.navList[this.courseType].isOpen = true;
  8867. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8868. } else {
  8869. this.setNavList2();
  8870. }
  8871. },
  8872. setNavList2() {
  8873. for (var l = 0; l < this.chapInfoList.length; l++) {
  8874. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8875. for (var r = 0; r < w.length; r++) {
  8876. this.navList[l].task[r].isLook = w[r].isLook;
  8877. }
  8878. }
  8879. if (
  8880. this.IsLookOpen &&
  8881. !this.navList[this.courseType].task[this.taskCount].isLook
  8882. ) {
  8883. this.openTask(0, 0, "0-0");
  8884. }
  8885. this.$forceUpdate();
  8886. },
  8887. getCourseState(type) {
  8888. let params = {
  8889. cid: this.id,
  8890. };
  8891. this.ajax
  8892. .get(this.$store.state.api + "getCourseState", params)
  8893. .then((res) => {
  8894. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  8895. this.chapInfoList = JSON.parse(res.data[0][0].state);
  8896. this.setNavList();
  8897. this.$forceUpdate();
  8898. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  8899. this.addCourseState(2);
  8900. } else {
  8901. this.addCourseState(1);
  8902. }
  8903. })
  8904. .catch((err) => {
  8905. console.error(err);
  8906. });
  8907. },
  8908. addCourseState(type) {
  8909. let _state = this.chapInfoList;
  8910. // this.courseType this.taskCount
  8911. if (type == 1 || type == 2) {
  8912. for (var i = 0; i < _state.length; i++) {
  8913. let el = _state[i].chapterInfo[0].taskJson;
  8914. for (var j = 0; j < el.length; j++) {
  8915. // if (i == 0 && j == 0) {
  8916. // el[j].isLook = true;
  8917. // } else {
  8918. // el[j].isLook = false;
  8919. // }
  8920. if (
  8921. this.courseType > i ||
  8922. (this.courseType == i && this.taskCount + 1 > j)
  8923. ) {
  8924. el[j].isLook = true;
  8925. } else {
  8926. el[j].isLook = false;
  8927. }
  8928. }
  8929. }
  8930. }
  8931. let params = [
  8932. {
  8933. cid: this.id,
  8934. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  8935. },
  8936. ];
  8937. this.ajax
  8938. .post(
  8939. this.$store.state.api +
  8940. (type == 1 ? "addCourseState" : "updateCourseSate"),
  8941. params
  8942. )
  8943. .then((res) => {
  8944. if (this.IsLookOpen) {
  8945. this.setNavList();
  8946. }
  8947. if (type == 3 && type == 2) {
  8948. this.getCourseState(1);
  8949. }
  8950. })
  8951. .catch((err) => {
  8952. console.error(err);
  8953. });
  8954. },
  8955. getHomeWork() {
  8956. let params = {
  8957. cid: this.id,
  8958. stage: this.courseType,
  8959. task: this.taskCount,
  8960. uid: this.userid,
  8961. };
  8962. this.ajax
  8963. .get(this.$store.state.api + "selectWork", params)
  8964. .then((res) => {
  8965. if (res.data[0].length > 0) {
  8966. this.studyJuri = JSON.parse(res.data[0][0].content);
  8967. this.isNoHomeWork = true;
  8968. }
  8969. })
  8970. .catch((err) => {
  8971. console.error(err);
  8972. });
  8973. },
  8974. isAssetTypeAnImage(ext) {
  8975. return (
  8976. [
  8977. "png",
  8978. "jpg",
  8979. "jpeg",
  8980. "bmp",
  8981. "gif",
  8982. "webp",
  8983. "psd",
  8984. "svg",
  8985. "tiff",
  8986. ].indexOf(ext) !== -1
  8987. );
  8988. },
  8989. switchVideo(media) {
  8990. this.playerO = {};
  8991. this.playerOptions.poster = "";
  8992. this.playerOptions.sources[0].src = media;
  8993. this.playerO = this.playerOptions;
  8994. },
  8995. onPlayerPlay() { },
  8996. lookVedio(u, i) {
  8997. this.isClickNav = "";
  8998. // this.playerOptions.sources[0].src = u;
  8999. var d = JSON.parse(JSON.stringify(this.playerOptions));
  9000. d.sources[0].src = u;
  9001. this.playerO[this.taskCount] = d;
  9002. this.showType = 0;
  9003. this.isClickNav = "video" + i;
  9004. this.$forceUpdate();
  9005. },
  9006. lookText(i, t) {
  9007. this.isClickNav = "";
  9008. this.text = this.textList[i][t];
  9009. // this.dialogVisible1 = true;
  9010. this.showType = 1;
  9011. this.isClickNav = "text" + t;
  9012. },
  9013. lookTools(i, t) {
  9014. this.chapTools = this.chapToolList[i][t];
  9015. this.dialogVisible2 = true;
  9016. },
  9017. openFile(f) {
  9018. this.pptImgUrl = "";
  9019. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  9020. if (
  9021. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  9022. -1
  9023. ) {
  9024. this.pptImgUrl =
  9025. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  9026. this.showPDF = false;
  9027. this.dialogVisible3 = true;
  9028. } else if (
  9029. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9030. ) {
  9031. this.pptImgUrl = f;
  9032. this.showPDF = true;
  9033. this.dialogVisible3 = true;
  9034. }
  9035. },
  9036. openTable(f) {
  9037. this.tableJson = JSON.parse(f.works);
  9038. this.$forceUpdate();
  9039. this.dialogVisibleTable2 = true;
  9040. },
  9041. openWord(f) {
  9042. this.tableJson = JSON.parse(f.works);
  9043. this.$forceUpdate();
  9044. this.dialogVisibleTable3 = true;
  9045. },
  9046. doUrl(url, i) {
  9047. this.isClickNav = "";
  9048. this.pptImgUrl1 = "";
  9049. this.showType = 2;
  9050. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  9051. url = "https://" + url;
  9052. }
  9053. this.pptImgUrl1 = url;
  9054. this.isClickNav = "line" + i;
  9055. },
  9056. downFile(f, i) {
  9057. this.isClickNav = "";
  9058. this.pptImgUrl1 = "";
  9059. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  9060. if (
  9061. a.indexOf(
  9062. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  9063. ) != -1
  9064. ) {
  9065. this.pptImgUrl1 =
  9066. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  9067. // this.dialogVisible3 = true;
  9068. this.showType = 2;
  9069. } else if (
  9070. this.isAssetTypeAnImage(
  9071. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  9072. )
  9073. ) {
  9074. this.showType = 4;
  9075. this.pptImgUrl1 = f.url;
  9076. } else if (
  9077. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  9078. "PDF"
  9079. ) {
  9080. this.pptImgUrl1 = f.url;
  9081. // this.dialogVisible3 = true;
  9082. this.showType = 3;
  9083. } else {
  9084. window.open(this.file[i].url);
  9085. }
  9086. this.isClickNav = "word" + i;
  9087. },
  9088. downFileList(i) {
  9089. window.open(this.noImgList[i].url);
  9090. },
  9091. openAddWork() {
  9092. this.dialogVisible = true;
  9093. },
  9094. addBzWorks() {
  9095. let params = [
  9096. {
  9097. uid: this.userid,
  9098. cid: this.id,
  9099. stage: this.courseType,
  9100. task: this.taskCount,
  9101. tool: this.toolindex,
  9102. content: JSON.stringify(this.eScore),
  9103. type: 6,
  9104. },
  9105. ];
  9106. this.ajax
  9107. .post(this.$store.state.api + "addCourseWorks", params)
  9108. .then((res) => {
  9109. this.$message({
  9110. message: "提交成功",
  9111. type: "success",
  9112. });
  9113. this.eScore = { eBzText: "", eStar: [] };
  9114. this.studentEvalDialogVisible = false;
  9115. this.selectSWorks();
  9116. })
  9117. .catch((err) => {
  9118. this.$message.error("提交失败");
  9119. console.error(err);
  9120. });
  9121. },
  9122. addBzWorksTeacher() {
  9123. let params = [
  9124. {
  9125. uid: this.sStudent.userid,
  9126. cid: this.id,
  9127. stage: this.courseType,
  9128. task: this.taskCount,
  9129. tool: this.toolindex,
  9130. content: JSON.stringify(this.eScore),
  9131. type: 6,
  9132. },
  9133. ];
  9134. this.ajax
  9135. .post(this.$store.state.api + "addCourseWorks", params)
  9136. .then((res) => {
  9137. this.$message({
  9138. message: "提交成功",
  9139. type: "success",
  9140. });
  9141. this.eScore = { eBzText: "", eStar: [] };
  9142. this.studentEvalDialogVisibleTeacher = false;
  9143. this.selectSWorks();
  9144. })
  9145. .catch((err) => {
  9146. this.$message.error("提交失败");
  9147. console.error(err);
  9148. });
  9149. },
  9150. addStudentAsk() {
  9151. if (!this.radio.length) {
  9152. this.$message.error("请选择选项");
  9153. return;
  9154. }
  9155. for (var i = 0; i < this.askJson.askCount; i++) {
  9156. if (
  9157. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9158. (this.radio[i] !== 0 && !this.radio[i])
  9159. ) {
  9160. this.$message.error("请选择选项");
  9161. return;
  9162. }
  9163. }
  9164. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  9165. let params = [
  9166. {
  9167. uid: this.userid,
  9168. cid: this.id,
  9169. stage: this.courseType,
  9170. task: this.taskCount,
  9171. tool: this.toolindex,
  9172. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9173. type: 2,
  9174. },
  9175. ];
  9176. this.ajax
  9177. .post(this.$store.state.api + "addCourseWorks", params)
  9178. .then((res) => {
  9179. this.$message({
  9180. message: "提交成功",
  9181. type: "success",
  9182. });
  9183. this.askList = [];
  9184. this.dialogVisible5 = false;
  9185. this.selectStudent();
  9186. this.selectSWorks();
  9187. this.selectSLook();
  9188. })
  9189. .catch((err) => {
  9190. this.$message.error("提交失败");
  9191. console.error(err);
  9192. });
  9193. },
  9194. addStudentAskTeacher() {
  9195. if (!this.radio.length) {
  9196. this.$message.error("请选择选项");
  9197. return;
  9198. }
  9199. for (var i = 0; i < this.askJson.askCount; i++) {
  9200. if (
  9201. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9202. (this.radio[i] !== 0 && !this.radio[i])
  9203. ) {
  9204. this.$message.error("请选择选项");
  9205. return;
  9206. }
  9207. }
  9208. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  9209. let params = [
  9210. {
  9211. uid: this.sStudent.userid,
  9212. cid: this.id,
  9213. stage: this.courseType,
  9214. task: this.taskCount,
  9215. tool: this.toolindex,
  9216. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9217. type: 2,
  9218. },
  9219. ];
  9220. this.ajax
  9221. .post(this.$store.state.api + "addCourseWorks", params)
  9222. .then((res) => {
  9223. this.$message({
  9224. message: "提交成功",
  9225. type: "success",
  9226. });
  9227. this.askList = [];
  9228. this.dialogVisible5Teacher = false;
  9229. this.selectStudent();
  9230. this.selectSWorks();
  9231. this.selectSLook();
  9232. })
  9233. .catch((err) => {
  9234. this.$message.error("提交失败");
  9235. console.error(err);
  9236. });
  9237. },
  9238. addStudentTest() {
  9239. if (!this.radio.length) {
  9240. this.$message.error("请选择选项");
  9241. return;
  9242. }
  9243. for (var i = 0; i < this.testJson.testCount; i++) {
  9244. if (
  9245. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9246. (this.radio[i] !== 0 && !this.radio[i])
  9247. ) {
  9248. this.$message.error("请选择选项");
  9249. return;
  9250. }
  9251. }
  9252. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9253. let params = [
  9254. {
  9255. uid: this.userid,
  9256. cid: this.id,
  9257. stage: this.courseType,
  9258. task: this.taskCount,
  9259. tool: this.toolindex,
  9260. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9261. type: 8,
  9262. },
  9263. ];
  9264. this.ajax
  9265. .post(this.$store.state.api + "addCourseWorks", params)
  9266. .then((res) => {
  9267. this.$message({
  9268. message: "提交成功",
  9269. type: "success",
  9270. });
  9271. this.askList = [];
  9272. this.dialogVisibleChoice = false;
  9273. this.selectStudent();
  9274. this.selectSWorks();
  9275. this.selectSLook();
  9276. })
  9277. .catch((err) => {
  9278. this.$message.error("提交失败");
  9279. console.error(err);
  9280. });
  9281. },
  9282. addStudentTestTeacher() {
  9283. if (!this.radio.length) {
  9284. this.$message.error("请选择选项");
  9285. return;
  9286. }
  9287. for (var i = 0; i < this.testJson.testCount; i++) {
  9288. if (
  9289. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9290. (this.radio[i] !== 0 && !this.radio[i])
  9291. ) {
  9292. this.$message.error("请选择选项");
  9293. return;
  9294. }
  9295. }
  9296. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9297. let params = [
  9298. {
  9299. uid: this.sStudent.userid,
  9300. cid: this.id,
  9301. stage: this.courseType,
  9302. task: this.taskCount,
  9303. tool: this.toolindex,
  9304. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9305. type: 8,
  9306. },
  9307. ];
  9308. this.ajax
  9309. .post(this.$store.state.api + "addCourseWorks", params)
  9310. .then((res) => {
  9311. this.$message({
  9312. message: "提交成功",
  9313. type: "success",
  9314. });
  9315. this.askList = [];
  9316. this.dialogVisibleChoiceTeacher = false;
  9317. this.selectStudent();
  9318. this.selectSWorks();
  9319. this.selectSLook();
  9320. })
  9321. .catch((err) => {
  9322. this.$message.error("提交失败");
  9323. console.error(err);
  9324. });
  9325. },
  9326. addWork() {
  9327. if (this.studyJuri[0].content == "") {
  9328. this.$message.error("请将信息填写完整");
  9329. return;
  9330. } else if (this.studyJuri[0].cover.length == 0) {
  9331. this.$message.error("请将信息填写完整");
  9332. return;
  9333. } else if (this.studyJuri[0].upVedio.length == 0) {
  9334. this.$message.error("请将信息填写完整");
  9335. return;
  9336. }
  9337. if (this.isNoHomeWork) {
  9338. this.$confirm(
  9339. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  9340. "提示",
  9341. {
  9342. confirmButtonText: "确定",
  9343. cancelButtonText: "取消",
  9344. type: "warning",
  9345. }
  9346. )
  9347. .then(() => {
  9348. let params = [
  9349. {
  9350. uid: this.userid,
  9351. cid: this.id,
  9352. stage: this.courseType,
  9353. task: this.taskCount,
  9354. content: JSON.stringify(this.studyJuri),
  9355. },
  9356. ];
  9357. this.ajax
  9358. .post(this.$store.state.api + "addWorks", params)
  9359. .then((res) => {
  9360. this.$message({
  9361. message: "提交成功",
  9362. type: "success",
  9363. });
  9364. this.isNoHomeWork = true;
  9365. this.dialogVisible = false;
  9366. })
  9367. .catch((err) => {
  9368. this.$message.error("提交失败");
  9369. console.error(err);
  9370. });
  9371. })
  9372. .catch(() => { });
  9373. } else {
  9374. let params = [
  9375. {
  9376. uid: this.userid,
  9377. cid: this.id,
  9378. stage: this.courseType,
  9379. task: this.taskCount,
  9380. content: JSON.stringify(this.studyJuri),
  9381. },
  9382. ];
  9383. this.ajax
  9384. .post(this.$store.state.api + "addWorks", params)
  9385. .then((res) => {
  9386. this.$message({
  9387. message: "提交成功",
  9388. type: "success",
  9389. });
  9390. this.isNoHomeWork = true;
  9391. this.dialogVisible = false;
  9392. })
  9393. .catch((err) => {
  9394. this.$message.error("提交失败");
  9395. console.error(err);
  9396. });
  9397. }
  9398. },
  9399. selectCount() {
  9400. let params = {
  9401. cid: this.id,
  9402. chid: this.courseType,
  9403. uid: this.userid,
  9404. };
  9405. this.ajax
  9406. .get(this.$store.state.api + "selectToolsCount", params)
  9407. .then((res) => {
  9408. for (var i = 0; i < res.data[0].length; i++) {
  9409. if (res.data[0][i].tools == 1) {
  9410. this.wbCount = res.data[0][i].count;
  9411. } else if (res.data[0][i].tools == 2) {
  9412. this.wordCount = res.data[0][i].count;
  9413. } else if (res.data[0][i].tools == 3) {
  9414. this.mindCount = res.data[0][i].count;
  9415. } else if (res.data[0][i].tools == 4) {
  9416. this.askCount = res.data[0][i].count;
  9417. } else if (res.data[0][i].tools == 6) {
  9418. this.noteCount = res.data[0][i].count;
  9419. } else if (res.data[0][i].tools == 7) {
  9420. this.mindNetWorkCount = res.data[0][i].count;
  9421. } else if (res.data[0][i].tools == 8) {
  9422. this.libraryCount = res.data[0][i].count;
  9423. } else if (res.data[0][i].tools == 16) {
  9424. this.workCount = res.data[0][i].count;
  9425. } else if (res.data[0][i].tools == 10) {
  9426. this.timeCount = res.data[0][i].count;
  9427. } else if (res.data[0][i].tools == 15) {
  9428. this.answerCount = res.data[0][i].count;
  9429. } else if (res.data[0][i].tools == 18) {
  9430. this.trainCount = res.data[0][i].count;
  9431. }
  9432. }
  9433. })
  9434. .catch((err) => {
  9435. console.error(err);
  9436. });
  9437. },
  9438. openTools(t, i, index, c, sName) {
  9439. var z = JSON.parse(c);
  9440. this.noteName = sName;
  9441. if (t == 4) {
  9442. this.radio = [];
  9443. this.isAnswer = false;
  9444. let b = z[0].anwer;
  9445. this.radio = b;
  9446. this.askJson = z[0].askJson;
  9447. this.isAnswer = true;
  9448. this.dialogVisible5 = true;
  9449. } else if (t == 45) {
  9450. this.radio = [];
  9451. this.isAnswer = false;
  9452. let b = z[0].anwer;
  9453. this.radio = b;
  9454. this.testJson = z[0].testJson;
  9455. this.isAnswer = true;
  9456. this.dialogVisibleChoice = true;
  9457. }
  9458. // else if (t == 15) {
  9459. // this.answerQ = "";
  9460. // this.questionAnswer = "";
  9461. // this.answerQ = z[0].answerTitle;
  9462. // this.questionAnswer = z[0].answer;
  9463. // this.answerDialogVisible = true;
  9464. // }
  9465. },
  9466. fastText(p, t) {
  9467. if (t == 1) {
  9468. this.commentText += p;
  9469. } else {
  9470. this.eScore.eBzText += p;
  9471. }
  9472. },
  9473. addTools(t, i, index) {
  9474. var a = 0;
  9475. // this.taskCount = index;
  9476. this.toolindex = i;
  9477. if (t == 1) {
  9478. if (this.wbCount > 0) {
  9479. this.updateCount(this.wbCount, t);
  9480. } else {
  9481. this.wbCount++;
  9482. a = this.wbCount;
  9483. this.toolsCount(a, t);
  9484. }
  9485. window.parent.postMessage(
  9486. {
  9487. tools: "1",
  9488. cid: this.id,
  9489. stage: this.courseType,
  9490. task: this.taskCount,
  9491. tool: i,
  9492. },
  9493. "*"
  9494. );
  9495. } else if (t == 2) {
  9496. if (this.wordCount > 0) {
  9497. this.updateCount(this.wordCount, t);
  9498. } else {
  9499. this.wordCount++;
  9500. a = this.wordCount;
  9501. this.toolsCount(a, t);
  9502. }
  9503. window.parent.postMessage({ tools: "2" }, "*");
  9504. } else if (t == 3) {
  9505. if (this.mindCount > 0) {
  9506. this.updateCount(this.mindCount, t);
  9507. } else {
  9508. this.mindCount++;
  9509. a = this.mindCount;
  9510. this.toolsCount(a, t);
  9511. }
  9512. window.parent.postMessage(
  9513. {
  9514. tools: "3",
  9515. cid: this.id,
  9516. stage: this.courseType,
  9517. task: this.taskCount,
  9518. tool: i,
  9519. },
  9520. "*"
  9521. );
  9522. } else if (t == 4) {
  9523. this.radio = [];
  9524. this.noteName = "";
  9525. this.isAnswer = false;
  9526. if (this.askCount > 0) {
  9527. this.updateCount(this.askCount, t);
  9528. } else {
  9529. this.askCount++;
  9530. a = this.askCount;
  9531. this.toolsCount(a, t);
  9532. }
  9533. this.askJson.askJson =
  9534. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9535. index
  9536. ].toolChoose[i].askJson;
  9537. this.askJson.askTitle =
  9538. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9539. index
  9540. ].toolChoose[i].askTitle;
  9541. this.askJson.askCount =
  9542. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9543. index
  9544. ].toolChoose[i].askCount;
  9545. for (var k = 0; k < this.askJson.askJson.length; k++) {
  9546. if (this.askJson.askJson[k].type == "2") {
  9547. this.radio.push([]);
  9548. } else {
  9549. this.radio.push("");
  9550. }
  9551. }
  9552. this.dialogVisible5 = true;
  9553. // window.parent.postMessage({ tools: "4" }, "*");
  9554. } else if (t == 45) {
  9555. this.noteName = "";
  9556. this.radio = [];
  9557. this.isAnswer = false;
  9558. if (this.askCount > 0) {
  9559. this.updateCount(this.askCount, t);
  9560. } else {
  9561. this.askCount++;
  9562. a = this.askCount;
  9563. this.toolsCount(a, t);
  9564. }
  9565. this.testJson =
  9566. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9567. index
  9568. ].toolChoose[i].testJson;
  9569. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9570. if (this.testJson.testJson[k].type == "2") {
  9571. this.radio.push([]);
  9572. } else {
  9573. this.radio.push("");
  9574. }
  9575. }
  9576. this.dialogVisibleChoice = true;
  9577. // window.parent.postMessage({ tools: "4" }, "*");
  9578. } else if (t == 5) {
  9579. if (this.scoreCount > 0) {
  9580. this.updateCount(this.scoreCount, t);
  9581. } else {
  9582. this.scoreCount++;
  9583. a = this.scoreCount;
  9584. this.toolsCount(a, t);
  9585. }
  9586. this.dialogVisible4 = true;
  9587. // window.parent.postMessage({ tools: "5" }, "*");
  9588. } else if (t == 6) {
  9589. if (this.noteCount > 0) {
  9590. this.updateCount(this.noteCount, t);
  9591. } else {
  9592. this.noteCount++;
  9593. a = this.noteCount;
  9594. this.toolsCount(a, t);
  9595. }
  9596. window.parent.postMessage(
  9597. {
  9598. tools: "6",
  9599. cid: this.id,
  9600. stage: this.courseType,
  9601. task: this.taskCount,
  9602. tool: i,
  9603. },
  9604. "*"
  9605. );
  9606. } else if (t == 7) {
  9607. if (this.mindNetWorkCount > 0) {
  9608. this.updateCount(this.mindNetWorkCount, t);
  9609. } else {
  9610. this.mindNetWorkCount++;
  9611. a = this.mindNetWorkCount;
  9612. this.toolsCount(a, t);
  9613. }
  9614. window.parent.postMessage(
  9615. {
  9616. tools: "7",
  9617. cid: this.id,
  9618. stage: this.courseType,
  9619. task: this.taskCount,
  9620. tool: i,
  9621. },
  9622. "*"
  9623. );
  9624. } else if (t == 16) {
  9625. if (this.workCount > 0) {
  9626. this.updateCount(this.workCount, t);
  9627. } else {
  9628. this.workCount++;
  9629. a = this.workCount;
  9630. this.toolsCount(a, t);
  9631. }
  9632. this.dialogVisible = true;
  9633. } else if (t == 50) {
  9634. if (this.tType == 2) {
  9635. this.$message.error("不支持学生使用");
  9636. return;
  9637. }
  9638. this.plworkFile = [];
  9639. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  9640. this.selectUploadStudent();
  9641. this.dialogVisiblePl = true;
  9642. } else if (t == 8) {
  9643. if (this.libraryCount > 0) {
  9644. this.updateCount(this.libraryCount, t);
  9645. } else {
  9646. this.libraryCount++;
  9647. a = this.libraryCount;
  9648. this.toolsCount(a, t);
  9649. }
  9650. window.parent.postMessage({ tools: "8" }, "*");
  9651. } else if (t == 17) {
  9652. if (this.libraryCount > 0) {
  9653. this.updateCount(this.libraryCount, t);
  9654. } else {
  9655. this.libraryCount++;
  9656. a = this.libraryCount;
  9657. this.toolsCount(a, t);
  9658. }
  9659. window.parent.postMessage({ tools: "17" }, "*");
  9660. } else if (t == 18) {
  9661. if (this.trainCount > 0) {
  9662. this.updateCount(this.trainCount, t);
  9663. } else {
  9664. this.trainCount++;
  9665. a = this.trainCount;
  9666. this.toolsCount(a, t);
  9667. }
  9668. window.parent.postMessage({ tools: "18" }, "*");
  9669. } else if (t == 10) {
  9670. if (this.timeCount > 0) {
  9671. this.updateCount(this.timeCount, t);
  9672. } else {
  9673. this.timeCount++;
  9674. a = this.timeCount;
  9675. this.toolsCount(a, t);
  9676. }
  9677. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  9678. .taskJson[index].toolChoose[i].preTime
  9679. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9680. .toolChoose[i].preTime
  9681. : "";
  9682. this.timeDialogVisible = true;
  9683. } else if (t == 15) {
  9684. this.answerQ = "";
  9685. this.questionAnswer = "";
  9686. if (this.answerCount > 0) {
  9687. this.updateCount(this.answerCount, t);
  9688. } else {
  9689. this.answerCount++;
  9690. a = this.answerCount;
  9691. this.toolsCount(a, t);
  9692. }
  9693. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  9694. .taskJson[index].toolChoose[i].answerQ
  9695. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9696. .toolChoose[i].answerQ
  9697. : "";
  9698. this.answerDialogVisible = true;
  9699. } else if (t == 21) {
  9700. window.parent.postMessage({ tools: "21" }, "*");
  9701. } else if (t == 22) {
  9702. window.parent.postMessage({ tools: "22" }, "*");
  9703. } else if (t == 23) {
  9704. window.parent.postMessage({ tools: "23" }, "*");
  9705. } else if (t == 24) {
  9706. window.parent.postMessage({ tools: "24" }, "*");
  9707. } else if (t == 25) {
  9708. window.parent.postMessage({ tools: "25" }, "*");
  9709. } else if (t == 31) {
  9710. window.parent.postMessage({ tools: "31" }, "*");
  9711. } else if (t == 28) {
  9712. window.parent.postMessage({ tools: "28" }, "*");
  9713. } else if (t == 37) {
  9714. window.parent.postMessage({ tools: "37" }, "*");
  9715. } else if (t == 38) {
  9716. window.parent.postMessage({ tools: "38" }, "*");
  9717. } else if (t == 39) {
  9718. window.parent.postMessage({ tools: "39" }, "*");
  9719. } else if (t == 32) {
  9720. window.parent.postMessage({ tools: "32" }, "*");
  9721. } else if (t == 57) {
  9722. window.parent.postMessage({ tools: "57" }, "*");
  9723. } else if (t == 58) {
  9724. window.parent.postMessage({ tools: "58" }, "*");
  9725. } else if (t == 59) {
  9726. window.parent.postMessage({ tools: "59" }, "*");
  9727. } else if (t == 60) {
  9728. window.parent.postMessage({ tools: "60" }, "*");
  9729. } else if (t == 61) {
  9730. window.parent.postMessage({ tools: "61" }, "*");
  9731. } else if (t == 63) {
  9732. window.parent.postMessage({ tools: "63" }, "*");
  9733. } else if (t == 26) {
  9734. window.parent.postMessage(
  9735. {
  9736. tools: "26",
  9737. cid: this.id,
  9738. stage: this.courseType,
  9739. task: this.taskCount,
  9740. tool: i,
  9741. },
  9742. "*"
  9743. );
  9744. } else if (t == 40) {
  9745. if (this.evalCount > 0) {
  9746. this.updateCount(this.evalCount, t);
  9747. } else {
  9748. this.evalCount++;
  9749. a = this.evalCount;
  9750. this.toolsCount(a, t);
  9751. }
  9752. this.eScore = { eBzText: "", eStar: [] };
  9753. if (this.worksStudent[i].length) {
  9754. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9755. if (this.userid == this.worksStudent[i][k].userid) {
  9756. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  9757. this.rateJson =
  9758. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9759. index
  9760. ].toolChoose[i].rateJson;
  9761. break;
  9762. } else {
  9763. this.rateJson =
  9764. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9765. index
  9766. ].toolChoose[i].rateJson;
  9767. }
  9768. }
  9769. } else {
  9770. this.rateJson =
  9771. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9772. index
  9773. ].toolChoose[i].rateJson;
  9774. }
  9775. this.isStar = false;
  9776. this.studentEvalDialogVisible = true;
  9777. } else if (t == 41) {
  9778. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9779. .taskJson[index].toolChoose[i].selectJson
  9780. ? JSON.parse(
  9781. JSON.stringify(
  9782. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9783. index
  9784. ].toolChoose[i].selectJson
  9785. )
  9786. )
  9787. : { url: "", select: [], answer: [] };
  9788. if (this.worksStudent[i].length) {
  9789. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9790. if (this.userid == this.worksStudent[i][k].userid) {
  9791. var a = this.worksStudent[i][k].works.split(",");
  9792. for (var ki = 0; ki < a.length; ki++) {
  9793. a[ki] = parseInt(a[ki]);
  9794. }
  9795. this.selectAnswer = {
  9796. answer: a,
  9797. stu: this.worksStudent[i][k].sName,
  9798. };
  9799. break;
  9800. } else {
  9801. this.selectAnswer = { answer: [], stu: "" };
  9802. }
  9803. }
  9804. } else {
  9805. this.selectAnswer = { answer: [], stu: "" };
  9806. }
  9807. this.isSelect = false;
  9808. this.dialogVisibleSelect = true;
  9809. } else if (t == 44) {
  9810. window.parent.postMessage({ tools: "44" }, "*");
  9811. } else if (t == 47) {
  9812. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  9813. .taskJson[index].toolChoose[i].sentenceList
  9814. ? JSON.parse(
  9815. JSON.stringify(
  9816. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9817. index
  9818. ].toolChoose[i].sentenceList
  9819. )
  9820. )
  9821. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  9822. for (var q = 0; q < this.sentenceList.length; q++) {
  9823. this.sentenceList[q].chooseSenList = [];
  9824. this.sentenceList[q].addChangeSen = [];
  9825. this.sentenceList[q].addChangeSen = JSON.parse(
  9826. JSON.stringify(this.sentenceList[q].addSentence)
  9827. );
  9828. this.sentenceList[q].chooseSenList.length =
  9829. this.sentenceList[q].rightAnswer.length;
  9830. }
  9831. this.dialogVisibleSentence = true;
  9832. } else if (t == 48) {
  9833. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9834. .taskJson[index].toolChoose[i].tableJson
  9835. ? JSON.parse(
  9836. JSON.stringify(
  9837. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9838. index
  9839. ].toolChoose[i].tableJson
  9840. )
  9841. )
  9842. : { text: "" };
  9843. if (this.worksStudent[i].length) {
  9844. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9845. if (this.userid == this.worksStudent[i][k].userid) {
  9846. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  9847. break;
  9848. }
  9849. }
  9850. }
  9851. this.dialogVisibleTable = true;
  9852. } else if (t == 52) {
  9853. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9854. .taskJson[index].toolChoose[i].wordJson
  9855. ? JSON.parse(
  9856. JSON.stringify(
  9857. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9858. index
  9859. ].toolChoose[i].wordJson
  9860. )
  9861. )
  9862. : { text: "" };
  9863. this.dialogVisibleWord = true;
  9864. } else if (t == 49) {
  9865. this.groupJson =
  9866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9867. index
  9868. ].toolChoose[i].groupJson;
  9869. this.dialogVisibleGroup = true;
  9870. } else if (t == 62) {
  9871. this.videoJson =
  9872. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9873. index
  9874. ].toolChoose[i].videoJson;
  9875. this.dialogVisibleVideo = true;
  9876. }
  9877. },
  9878. teacherWorkSubmit(t, i, index, s) {
  9879. this.sStudent = s;
  9880. this.sTool = t;
  9881. this.toolindex = i;
  9882. if (this.tType !== "1" && this.tType !== "4") {
  9883. return;
  9884. }
  9885. if (t == 16 || t == 32 || t == 57 || t == 50) {
  9886. this.dialogVisibleWorks = true; //作业提交
  9887. } else if (t == 15) {
  9888. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  9889. .taskJson[index].toolChoose[i].answerQ
  9890. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9891. .toolChoose[i].answerQ
  9892. : "";
  9893. this.questionAnswer = ''
  9894. this.answerDialogVisibleTeacher = true;//问答
  9895. } else if (t == 52) {
  9896. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9897. .taskJson[index].toolChoose[i].wordJson
  9898. ? JSON.parse(
  9899. JSON.stringify(
  9900. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9901. index
  9902. ].toolChoose[i].wordJson
  9903. )
  9904. )
  9905. : { text: "" };
  9906. this.dialogVisibleWordTeacher = true;//文档
  9907. } else if (t == 4) {
  9908. this.radio = [];
  9909. this.noteName = "";
  9910. this.isAnswer = false;
  9911. if (this.askCount > 0) {
  9912. this.updateCount(this.askCount, t);
  9913. } else {
  9914. this.askCount++;
  9915. a = this.askCount;
  9916. this.toolsCount(a, t);
  9917. }
  9918. if (!this.dialogVisible2) {
  9919. this.askJson.askJson =
  9920. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9921. index
  9922. ].toolChoose[i].askJson;
  9923. this.askJson.askTitle =
  9924. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9925. index
  9926. ].toolChoose[i].askTitle;
  9927. this.askJson.askCount =
  9928. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9929. index
  9930. ].toolChoose[i].askCount;
  9931. } else {
  9932. this.askJson.askJson = this.chapTools.askJson.askJson;
  9933. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  9934. this.askJson.askCount = this.chapTools.askJson.askCount;
  9935. }
  9936. this.dialogVisible5Teacher = true;
  9937. } else if (t == 45) {
  9938. this.noteName = "";
  9939. this.radio = [];
  9940. this.isAnswer = false;
  9941. if (this.askCount > 0) {
  9942. this.updateCount(this.askCount, t);
  9943. } else {
  9944. this.askCount++;
  9945. a = this.askCount;
  9946. this.toolsCount(a, t);
  9947. }
  9948. this.testJson =
  9949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9950. index
  9951. ].toolChoose[i].testJson;
  9952. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9953. if (this.testJson.testJson[k].type == "2") {
  9954. this.radio.push([]);
  9955. } else {
  9956. this.radio.push("");
  9957. }
  9958. }
  9959. this.dialogVisibleChoiceTeacher = true;
  9960. } else if (t == 41) {
  9961. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9962. .taskJson[index].toolChoose[i].selectJson
  9963. ? JSON.parse(
  9964. JSON.stringify(
  9965. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9966. index
  9967. ].toolChoose[i].selectJson
  9968. )
  9969. )
  9970. : { url: "", select: [], answer: [] };
  9971. if (this.worksStudent[i].length) {
  9972. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9973. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  9974. var a = this.worksStudent[i][k].works.split(",");
  9975. for (var ki = 0; ki < a.length; ki++) {
  9976. a[ki] = parseInt(a[ki]);
  9977. }
  9978. this.selectAnswer = {
  9979. answer: a,
  9980. stu: this.worksStudent[i][k].sName,
  9981. };
  9982. break;
  9983. } else {
  9984. this.selectAnswer = { answer: [], stu: "" };
  9985. }
  9986. }
  9987. } else {
  9988. this.selectAnswer = { answer: [], stu: "" };
  9989. }
  9990. this.isSelect = false;
  9991. this.dialogVisibleSelectTeacher = true;
  9992. } else if (t == 47) {
  9993. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  9994. .taskJson[index].toolChoose[i].sentenceList
  9995. ? JSON.parse(
  9996. JSON.stringify(
  9997. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9998. index
  9999. ].toolChoose[i].sentenceList
  10000. )
  10001. )
  10002. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  10003. for (var q = 0; q < this.sentenceList.length; q++) {
  10004. this.sentenceList[q].chooseSenList = [];
  10005. this.sentenceList[q].addChangeSen = [];
  10006. this.sentenceList[q].addChangeSen = JSON.parse(
  10007. JSON.stringify(this.sentenceList[q].addSentence)
  10008. );
  10009. this.sentenceList[q].chooseSenList.length =
  10010. this.sentenceList[q].rightAnswer.length;
  10011. }
  10012. this.dialogVisibleSentenceTeacher = true;
  10013. } else if (t == 48) {
  10014. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10015. .taskJson[index].toolChoose[i].tableJson
  10016. ? JSON.parse(
  10017. JSON.stringify(
  10018. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10019. index
  10020. ].toolChoose[i].tableJson
  10021. )
  10022. )
  10023. : { text: "" };
  10024. if (this.worksStudent[i].length) {
  10025. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10026. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10027. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  10028. break;
  10029. }
  10030. }
  10031. }
  10032. this.dialogVisibleTableTeacher = true;
  10033. } else if (t == 40) {
  10034. if (this.evalCount > 0) {
  10035. this.updateCount(this.evalCount, t);
  10036. } else {
  10037. this.evalCount++;
  10038. a = this.evalCount;
  10039. this.toolsCount(a, t);
  10040. }
  10041. this.eScore = { eBzText: "", eStar: [] };
  10042. if (this.worksStudent[i].length) {
  10043. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10044. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10045. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  10046. this.rateJson =
  10047. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10048. index
  10049. ].toolChoose[i].rateJson;
  10050. break;
  10051. } else {
  10052. this.rateJson =
  10053. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10054. index
  10055. ].toolChoose[i].rateJson;
  10056. }
  10057. }
  10058. } else {
  10059. this.rateJson =
  10060. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10061. index
  10062. ].toolChoose[i].rateJson;
  10063. }
  10064. this.isStar = false;
  10065. this.studentEvalDialogVisibleTeacher = true;
  10066. } else if (t == 3 || t == 1 || t == 7) {
  10067. window.parent.postMessage(
  10068. {
  10069. tools: t + 'teacher',
  10070. cid: this.id,
  10071. stage: this.courseType,
  10072. task: this.taskCount,
  10073. tool: i,
  10074. student: this.sStudent,
  10075. },
  10076. "*"
  10077. );
  10078. }
  10079. },
  10080. setRightAnswer(s, i, j) {
  10081. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  10082. if (
  10083. this.sentenceList[i].chooseSenList[q] == undefined ||
  10084. this.sentenceList[i].chooseSenList[q] == ""
  10085. ) {
  10086. this.sentenceList[i].chooseSenList[q] = s;
  10087. this.sentenceList[i].addChangeSen[j] = "";
  10088. break;
  10089. }
  10090. }
  10091. this.$forceUpdate();
  10092. },
  10093. returnCard(r, i, j) {
  10094. var a = this.sentenceList[i].addSentence.indexOf(r);
  10095. this.sentenceList[i].chooseSenList[j] = "";
  10096. this.sentenceList[i].addChangeSen[a] = r;
  10097. this.$forceUpdate();
  10098. },
  10099. // addSentenceTool() {
  10100. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10101. // this.taskCount
  10102. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  10103. // this.sentenceList = [
  10104. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10105. // ];
  10106. // this.dialogVisibleSentence = false;
  10107. // },
  10108. toolsCount(a, t) {
  10109. let params = {
  10110. cid: this.id,
  10111. chid: this.courseType,
  10112. uid: this.userid,
  10113. tid: t,
  10114. count: a,
  10115. };
  10116. this.ajax
  10117. .get(this.$store.state.api + "insertToolsCount", params)
  10118. .then((res) => {
  10119. this.selectCount();
  10120. })
  10121. .catch((err) => {
  10122. console.error(err);
  10123. });
  10124. },
  10125. updateCount(c, t) {
  10126. c++;
  10127. let params = {
  10128. cid: this.id,
  10129. chid: this.courseType,
  10130. uid: this.userid,
  10131. tid: t,
  10132. count: c,
  10133. };
  10134. this.ajax
  10135. .get(this.$store.state.api + "updateToolsCount", params)
  10136. .then((res) => {
  10137. this.selectCount();
  10138. })
  10139. .catch((err) => {
  10140. console.error(err);
  10141. });
  10142. },
  10143. checkEva() {
  10144. if (this.evalua != "") {
  10145. for (var i = 0; i < this.evaJuri.length; i++) {
  10146. if (this.evalua == this.evaJuri[i].id) {
  10147. this.eTitle = this.evaJuri[i].title;
  10148. this.eJson = JSON.parse(this.evaJuri[i].content);
  10149. }
  10150. }
  10151. this.$forceUpdate();
  10152. setTimeout(() => {
  10153. this.setMindData();
  10154. }, 0);
  10155. }
  10156. },
  10157. selectEva() {
  10158. let params = {
  10159. oid: this.oid,
  10160. };
  10161. this.ajax
  10162. .get(this.$store.state.api + "selectAllEvaluation", params)
  10163. .then((res) => {
  10164. this.evaJuri = res.data[0];
  10165. })
  10166. .catch((err) => {
  10167. console.error(err);
  10168. });
  10169. },
  10170. setMindData() {
  10171. this.data.data = [];
  10172. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10173. let _eJson = Object.keys(this.eJson);
  10174. let _e = this.eJson;
  10175. for (let i = 0; i < _eJson.length; i++) {
  10176. let element = _e[_eJson[i]];
  10177. this.data.data.push({
  10178. id: element.id,
  10179. parentid: "root",
  10180. topic: element.name,
  10181. });
  10182. let _eJsonc = Object.keys(element.child);
  10183. let _e2 = element.child;
  10184. for (let j = 0; j < _eJsonc.length; j++) {
  10185. let _ec = _e2[_eJsonc[j]];
  10186. this.data.data.push({
  10187. id: _ec.id,
  10188. parentid: element.id,
  10189. topic: _ec.name,
  10190. });
  10191. let _eJsonz = Object.keys(_ec.child);
  10192. let _e3 = _ec.child;
  10193. for (let z = 0; z < _eJsonz.length; z++) {
  10194. let _ez = _e3[_eJsonz[z]];
  10195. this.data.data.push({
  10196. id: _ez.id,
  10197. parentid: _ec.id,
  10198. topic: _ez.name,
  10199. });
  10200. }
  10201. }
  10202. }
  10203. this.$forceUpdate();
  10204. },
  10205. checkFileFull(type, url) {
  10206. this.fullDialogVisible = true;
  10207. this.fulltype = type;
  10208. this.fullUrl = url;
  10209. },
  10210. openSname(n, id, i) {
  10211. this.snameWid = id;
  10212. this.worksSName = n;
  10213. this.toolindex = i
  10214. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  10215. this.selectUploadStudent()
  10216. this.dialogVisibleSname = true;
  10217. },
  10218. updateName() {
  10219. let params = {
  10220. n: this.worksSName,
  10221. cid: this.snameWid,
  10222. };
  10223. this.ajax
  10224. .get(this.$store.state.api + "updateCourseWorksName", params)
  10225. .then((res) => {
  10226. this.$message({
  10227. message: "修改成功",
  10228. type: "success",
  10229. });
  10230. this.dialogVisibleSname = false;
  10231. this.getCourseDetail();
  10232. this.snameWid = "";
  10233. this.worksSName = "";
  10234. })
  10235. .catch((err) => {
  10236. console.error(err);
  10237. });
  10238. },
  10239. downloadFile2(f) {
  10240. let url = f.url
  10241. let _this = this;
  10242. let _url = "";
  10243. if (
  10244. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10245. ) {
  10246. _url = url.split(
  10247. "https://view.officeapps.live.com/op/view.aspx?src="
  10248. )[1];
  10249. } else {
  10250. _url = url;
  10251. }
  10252. const x = new XMLHttpRequest();
  10253. x.open("GET", _url, true);
  10254. x.responseType = "blob";
  10255. const loading = _this.$loading.service({
  10256. background: "rgba(255, 255, 255, 0.7)",
  10257. target: document.body,
  10258. text: "文件加载中...",
  10259. });
  10260. // _this.$message.success("文件下载中...");
  10261. x.onload = function (e) {
  10262. loading.close();
  10263. let content = x.response;
  10264. let elink = document.createElement("a");
  10265. elink.download = f.name;
  10266. elink.style.display = "none";
  10267. let blob = new Blob([content]);
  10268. elink.href = URL.createObjectURL(blob);
  10269. document.body.appendChild(elink);
  10270. elink.click();
  10271. document.body.removeChild(elink);
  10272. };
  10273. x.send();
  10274. },
  10275. downloadFile(url) {
  10276. let _this = this;
  10277. let _url = "";
  10278. if (
  10279. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10280. ) {
  10281. _url = url.split(
  10282. "https://view.officeapps.live.com/op/view.aspx?src="
  10283. )[1];
  10284. } else {
  10285. _url = url;
  10286. }
  10287. const x = new XMLHttpRequest();
  10288. x.open("GET", _url, true);
  10289. x.responseType = "blob";
  10290. const loading = _this.$loading.service({
  10291. background: "rgba(255, 255, 255, 0.7)",
  10292. target: document.body,
  10293. text: "文件加载中...",
  10294. });
  10295. // _this.$message.success("文件下载中...");
  10296. x.onload = function (e) {
  10297. loading.close();
  10298. // const url = window.URL.createObjectURL(x.response);
  10299. // const a = document.createElement("a");
  10300. // a.href = url;
  10301. // a.target = "_blank";
  10302. // a.download = url;
  10303. // a.click();
  10304. // a.remove();
  10305. let content = x.response;
  10306. let elink = document.createElement("a");
  10307. elink.download = decodeURI(
  10308. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  10309. );
  10310. elink.style.display = "none";
  10311. let blob = new Blob([content]);
  10312. elink.href = URL.createObjectURL(blob);
  10313. document.body.appendChild(elink);
  10314. elink.click();
  10315. document.body.removeChild(elink);
  10316. };
  10317. x.send();
  10318. },
  10319. openLine(url) {
  10320. window.open(url);
  10321. },
  10322. resize() {
  10323. if (document.getElementsByClassName("box_course").length) {
  10324. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10325. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10326. document.getElementsByClassName("navBox")[0].style.height =
  10327. a - 40 + "px";
  10328. }
  10329. this.Stbodywidth =
  10330. document.getElementsByClassName("student_body").length &&
  10331. document.getElementsByClassName("student_body")[0].offsetWidth;
  10332. },
  10333. closeDraw() {
  10334. this.bg = null;
  10335. this.drawShow = false;
  10336. },
  10337. showPicturePaint(url) {
  10338. let params = {
  10339. img: url,
  10340. };
  10341. this.ajax
  10342. .get(this.$store.state.api + "imgToBase64", params)
  10343. .then((res) => {
  10344. console.log(res);
  10345. this.drawShow = true;
  10346. this.bg = res.data[0].img;
  10347. })
  10348. .catch((err) => {
  10349. console.error(err);
  10350. });
  10351. },
  10352. addImgDraw(base64) {
  10353. let file = { name: "批注图.png" };
  10354. let img = this.dataUrlToFile(base64, file);
  10355. this.beforeUpload1(img, 5);
  10356. },
  10357. addImgDrawImG(url) {
  10358. // console.log(url);
  10359. let params = [
  10360. {
  10361. wid: this.commentDetail.wid,
  10362. img: url,
  10363. },
  10364. ];
  10365. this.ajax
  10366. .post(this.$store.state.api + "updateCourseWorks", params)
  10367. .then((res) => {
  10368. this.$message({
  10369. message: "提交成功",
  10370. type: "success",
  10371. });
  10372. this.drawShow = false;
  10373. this.bg = "";
  10374. this.selectSWorks();
  10375. this.selectStudent();
  10376. })
  10377. .catch((err) => {
  10378. this.$message.error("提交失败");
  10379. console.error(err);
  10380. });
  10381. },
  10382. deletePicturePaint() {
  10383. this.$confirm("确定删除此批注吗?", "提示", {
  10384. confirmButtonText: "确定",
  10385. cancelButtonText: "取消",
  10386. type: "warning",
  10387. })
  10388. .then(() => {
  10389. let params = [
  10390. {
  10391. wid: this.commentDetail.wid,
  10392. img: "",
  10393. },
  10394. ];
  10395. this.ajax
  10396. .post(this.$store.state.api + "updateCourseWorks", params)
  10397. .then((res) => {
  10398. this.$message({
  10399. message: "删除成功",
  10400. type: "success",
  10401. });
  10402. this.selectSWorks();
  10403. this.selectStudent();
  10404. })
  10405. .catch((err) => {
  10406. this.$message.error("删除失败");
  10407. console.error(err);
  10408. });
  10409. })
  10410. .catch(() => { });
  10411. },
  10412. getAudioVideo(constraintsData) {
  10413. if (navigator.mediaDevices === undefined) {
  10414. navigator.mediaDevices = {};
  10415. }
  10416. if (navigator.mediaDevices.getUserMedia === undefined) {
  10417. navigator.mediaDevices.getUserMedia = function (constraints) {
  10418. // 首先,如果有getUserMedia的话,就获得它
  10419. var getUserMedia =
  10420. navigator.getUserMedia ||
  10421. navigator.webkitGetUserMedia ||
  10422. navigator.mozGetUserMedia ||
  10423. navigator.msGetUserMedia;
  10424. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  10425. if (!getUserMedia) {
  10426. return Promise.reject({ code: 404 });
  10427. }
  10428. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  10429. return new Promise(function (resolve, reject) {
  10430. getUserMedia.call(navigator, constraints, resolve, reject);
  10431. });
  10432. };
  10433. }
  10434. return navigator.mediaDevices.getUserMedia(constraintsData);
  10435. },
  10436. /**
  10437. * 开始录制
  10438. */
  10439. startRecording(callback) {
  10440. let _function = (screenStream) => {
  10441. this.addStreamStopListener(screenStream, () => {
  10442. console.log("流停止监听");
  10443. this.stopRecording();
  10444. this.$emit("streamStop", {});
  10445. // this.stopRecording();
  10446. });
  10447. var options = {
  10448. type: "video",
  10449. mimeType: "video/webm",
  10450. disableLogs: false,
  10451. getNativeBlob: false, // enable it for longer recordings
  10452. ignoreMutedMedia: false,
  10453. };
  10454. // this.video.srcObject = screenStream;
  10455. this.recorder = RecordRTC(screenStream, options);
  10456. this.recorder.startRecording();
  10457. this.recorder.screen = screenStream;
  10458. this.videoStart = true;
  10459. // callback(true);
  10460. };
  10461. this.getAudioVideo({ audio: true })
  10462. .then((res) => {
  10463. this.captureScreen(_function, true);
  10464. console.log("已点击允许,开启成功");
  10465. })
  10466. .catch((err) => {
  10467. // console.log('浏览器不支持,请更换浏览器')
  10468. // } else {
  10469. this.captureScreen(_function, false);
  10470. console.log("请检查是否存在麦克风");
  10471. });
  10472. },
  10473. /**
  10474. * 停止录制
  10475. */
  10476. stopRecording(callback) {
  10477. this.recorder.stopRecording(() => {
  10478. // this.video.src = this.video.srcObject = null;
  10479. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  10480. const url = URL.createObjectURL(this.recorder.getBlob());
  10481. const a = document.createElement("a"); //this.fileName+
  10482. let videoFile = new File(
  10483. [this.recorder.getBlob()],
  10484. this.courseDetail.title + "录屏.mp4",
  10485. {
  10486. type: "video/mp4",
  10487. }
  10488. );
  10489. let downloadUrl = URL.createObjectURL(videoFile);
  10490. document.body.appendChild(a);
  10491. a.style.display = "none";
  10492. a.href = url;
  10493. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  10494. a.click();
  10495. this.recorder.screen.stop();
  10496. this.recorder.destroy();
  10497. this.recorder = null;
  10498. this.videoStart = false;
  10499. // callback(false);
  10500. });
  10501. },
  10502. //初始化
  10503. captureScreen(callback, type) {
  10504. if (navigator.getDisplayMedia) {
  10505. //录制结束,文件下载
  10506. navigator
  10507. .getDisplayMedia({
  10508. video: true,
  10509. })
  10510. .then((screenStream) => {
  10511. if (type) {
  10512. navigator.mediaDevices
  10513. .getUserMedia({ audio: true })
  10514. .then((mic) => {
  10515. screenStream.addTrack(mic.getTracks()[0]);
  10516. callback(screenStream);
  10517. });
  10518. } else {
  10519. callback(screenStream);
  10520. }
  10521. })
  10522. .catch(function (error) {
  10523. console.log("error", error);
  10524. });
  10525. } else if (navigator.mediaDevices.getDisplayMedia) {
  10526. navigator.mediaDevices
  10527. .getDisplayMedia({
  10528. video: true,
  10529. })
  10530. .then((screenStream) => {
  10531. if (type) {
  10532. navigator.mediaDevices
  10533. .getUserMedia({ audio: true })
  10534. .then((mic) => {
  10535. screenStream.addTrack(mic.getTracks()[0]);
  10536. callback(screenStream);
  10537. });
  10538. } else {
  10539. callback(screenStream);
  10540. }
  10541. })
  10542. .catch(function (error) {
  10543. console.log("error", error);
  10544. });
  10545. } else {
  10546. var error = "getDisplayMedia API are not supported in this browser.";
  10547. console.log("error", error);
  10548. alert(error);
  10549. }
  10550. },
  10551. //流监听
  10552. addStreamStopListener(stream, callback) {
  10553. stream.addEventListener(
  10554. "ended",
  10555. function () {
  10556. callback();
  10557. callback = function () { };
  10558. },
  10559. false
  10560. );
  10561. stream.addEventListener(
  10562. "inactive",
  10563. function () {
  10564. callback();
  10565. callback = function () { };
  10566. },
  10567. false
  10568. );
  10569. stream.getTracks().forEach(function (track) {
  10570. track.addEventListener(
  10571. "ended",
  10572. function () {
  10573. callback();
  10574. callback = function () { };
  10575. },
  10576. false
  10577. );
  10578. track.addEventListener(
  10579. "inactive",
  10580. function () {
  10581. callback();
  10582. callback = function () { };
  10583. },
  10584. false
  10585. );
  10586. });
  10587. },
  10588. updateGroup() {
  10589. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10590. this.dialogVisibleGroup2 = true;
  10591. },
  10592. updateGroupJson() {
  10593. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  10594. if (
  10595. this.groupStudentUid[this.toolindex][i].length >
  10596. this.groupJson2.number
  10597. ) {
  10598. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  10599. return;
  10600. }
  10601. }
  10602. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  10603. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10604. this.taskCount
  10605. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  10606. let params = [
  10607. {
  10608. cid: this.id,
  10609. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  10610. uid: this.userid,
  10611. unitIndex: this.courseType,
  10612. },
  10613. ];
  10614. this.ajax
  10615. .post(this.$store.state.api + "updateWorkNew4", params)
  10616. .then((res) => {
  10617. this.$message.success("设置成功");
  10618. this.getCourseDetail(2);
  10619. this.dialogVisibleGroup2 = false;
  10620. this.groupJson2 = {};
  10621. this.$forceUpdate();
  10622. })
  10623. .catch((err) => {
  10624. this.$message.error("网络不佳");
  10625. console.error(err);
  10626. });
  10627. },
  10628. lockChair() {
  10629. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10630. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  10631. this.updateGroupJson();
  10632. },
  10633. selectGroup(index) {
  10634. this.getCourseDetail(2, index);
  10635. },
  10636. joinGroup(index) {
  10637. if (this.groupJson.islock == 2) {
  10638. this.$message.error("位置已被锁定,无法加入");
  10639. return;
  10640. }
  10641. if (
  10642. this.groupStudent[this.toolindex][index].length >
  10643. this.groupJson.number ||
  10644. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  10645. ) {
  10646. this.$message.error("位置已满,无法加入");
  10647. return;
  10648. }
  10649. let params = [
  10650. {
  10651. cid: this.id,
  10652. stage: this.courseType,
  10653. task: this.taskCount,
  10654. tool: this.toolindex,
  10655. g: index,
  10656. uid: this.userid,
  10657. },
  10658. ];
  10659. this.ajax
  10660. .post(this.$store.state.api + "joinGroup", params)
  10661. .then((res) => {
  10662. this.$message.success("加入成功");
  10663. this.getCourseDetail();
  10664. })
  10665. .catch((err) => {
  10666. this.$message.error("网络不佳");
  10667. console.error(err);
  10668. });
  10669. },
  10670. exitGroup(id) {
  10671. if (this.groupJson.islock == 2) {
  10672. this.$message.error("位置已被锁定,无法退出");
  10673. return;
  10674. }
  10675. let params = [
  10676. {
  10677. gid: id,
  10678. },
  10679. ];
  10680. this.ajax
  10681. .post(this.$store.state.api + "exitGroup", params)
  10682. .then((res) => {
  10683. this.$message.success("退出成功");
  10684. this.getCourseDetail();
  10685. })
  10686. .catch((err) => {
  10687. this.$message.error("网络不佳");
  10688. console.error(err);
  10689. });
  10690. },
  10691. groupUpload(index, task, gindex) {
  10692. this.taskCount = task;
  10693. this.toolindex = index;
  10694. this.groupIndex = gindex;
  10695. this.dialogVisibleGroupWork = true;
  10696. },
  10697. updateGroupChair(user) {
  10698. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  10699. el.label = index;
  10700. return index != user.group;
  10701. });
  10702. this.updateGroupUser = user;
  10703. this.dialogVisibleUpdateGroup = true;
  10704. },
  10705. updateChair() {
  10706. if (
  10707. this.groupStudent[this.toolindex][this.checkChair].length >
  10708. this.groupJson.number ||
  10709. this.groupStudent[this.toolindex][this.checkChair].length ==
  10710. this.groupJson.number
  10711. ) {
  10712. this.$message.error("位置已满,无法加入");
  10713. return;
  10714. }
  10715. let params = [
  10716. {
  10717. cid: this.id,
  10718. stage: this.courseType,
  10719. task: this.taskCount,
  10720. tool: this.toolindex,
  10721. g: this.checkChair,
  10722. uid: this.updateGroupUser.userid,
  10723. },
  10724. ];
  10725. this.ajax
  10726. .post(this.$store.state.api + "joinGroup", params)
  10727. .then((res) => {
  10728. this.$message.success("修改成功");
  10729. this.updateGroupUser = {};
  10730. this.checkChair = "";
  10731. this.updateGroupArray = {};
  10732. this.dialogVisibleUpdateGroup = false;
  10733. this.getCourseDetail();
  10734. })
  10735. .catch((err) => {
  10736. this.$message.error("网络不佳");
  10737. console.error(err);
  10738. });
  10739. },
  10740. deleteGroupChair(gindex) {
  10741. this.checkDeleteGroup = [];
  10742. this.deleteGroupUser = JSON.parse(
  10743. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  10744. );
  10745. this.deleteGroupArray = this.groupJson.group[gindex];
  10746. this.groupIndex = gindex;
  10747. this.dialogVisibleDeleteGroup = true;
  10748. },
  10749. async deleteChair() {
  10750. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  10751. const gid =
  10752. this.groupStudent[this.toolindex][this.groupIndex][
  10753. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  10754. this.checkDeleteGroup[i]
  10755. )
  10756. ];
  10757. let params = [
  10758. {
  10759. gid: gid.id,
  10760. },
  10761. ];
  10762. var a = await this.deleteChairA(params);
  10763. if (i == this.checkDeleteGroup.length - 1) {
  10764. this.$message.success("退出成功");
  10765. this.dialogVisibleDeleteGroup = false;
  10766. this.deleteGroupUser = [];
  10767. this.deleteGroupArray = {};
  10768. this.groupIndex = "";
  10769. this.checkDeleteGroup = [];
  10770. this.getCourseDetail();
  10771. }
  10772. }
  10773. },
  10774. deleteChairA(params) {
  10775. return new Promise((resolve, reject) => {
  10776. this.ajax
  10777. .post(this.$store.state.api + "exitGroup", params)
  10778. .then((res) => {
  10779. resolve(1);
  10780. })
  10781. .catch((err) => {
  10782. this.$message.error("网络不佳");
  10783. console.error(err);
  10784. });
  10785. });
  10786. },
  10787. contract(i) {
  10788. if (this.isCloseList[i].isClose == 0) {
  10789. this.isCloseList[i].isClose = 1;
  10790. } else {
  10791. this.isCloseList[i].isClose = 0;
  10792. }
  10793. this.$forceUpdate();
  10794. },
  10795. },
  10796. directives: {
  10797. // 使用局部注册指令的方式
  10798. resize: {
  10799. // 指令的名称
  10800. bind(el, binding) {
  10801. // el为绑定的元素,binding为绑定给指令的对象
  10802. let width = "",
  10803. height = "";
  10804. function isReize() {
  10805. const style = document.defaultView.getComputedStyle(el);
  10806. if (width !== style.width || height !== style.height) {
  10807. binding.value(); // 关键
  10808. }
  10809. width = style.width;
  10810. height = style.height;
  10811. }
  10812. el.__vueSetInterval__ = setInterval(isReize, 300);
  10813. },
  10814. unbind(el) {
  10815. clearInterval(el.__vueSetInterval__);
  10816. },
  10817. },
  10818. },
  10819. beforeDestroy() {
  10820. window.onresize = null;
  10821. clearInterval(this.timer);
  10822. this.timer = null;
  10823. clearInterval(this.opertimer);
  10824. this.opertimer = null;
  10825. },
  10826. computed: {
  10827. contentConvent() {
  10828. return function (c) {
  10829. return c
  10830. ? c
  10831. .replaceAll(/\r\n/g, "<br/>")
  10832. .replaceAll(/\n/g, "<br/>")
  10833. .replaceAll(/\s/g, " &nbsp")
  10834. : "";
  10835. };
  10836. },
  10837. checkUpload(){
  10838. return function(){
  10839. var studentK = [];
  10840. if (this.plworkFile.length > 0) {
  10841. for (var z = 0; z < this.plworkFile.length; z++) {
  10842. studentK.push(this.plworkFile[z].username);
  10843. }
  10844. studentK = studentK.join(",");
  10845. }
  10846. var a = this.uploadStudentJuri.filter((el)=>{
  10847. return studentK.indexOf(el.userid) == -1
  10848. });
  10849. return a
  10850. }
  10851. }
  10852. },
  10853. mounted() {
  10854. if (this.screenType == 2) {
  10855. window.parent.postMessage({ allScreen: 4 }, "*");
  10856. } else if (this.screenType == 3) {
  10857. window.parent.postMessage({ allScreen: 5 }, "*");
  10858. } else if (this.screenType == 1) {
  10859. window.parent.postMessage({ allScreen: 6 }, "*");
  10860. }
  10861. this.setOperationTime();
  10862. this.selectEva();
  10863. this.getCourseDetail();
  10864. this.selectCount();
  10865. this.getHomeWork();
  10866. this.toolIndex = null
  10867. this.contentDialog = true;
  10868. this.setContent2(true)
  10869. if (this.tType == 4) {
  10870. this.pzDialog = true;
  10871. this.selectPz();
  10872. }
  10873. document.scrollingElement.scrollTop = 0;
  10874. window.addEventListener("resize", () => {
  10875. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10876. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10877. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  10878. });
  10879. let _this = this;
  10880. setTimeout(() => {
  10881. // _this.vedioTime = [];
  10882. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  10883. // _this.vedioTime[i] = document.getElementsByClassName(
  10884. // "vjs-duration-display"
  10885. // )[i].textContent;
  10886. // }
  10887. }, 1000);
  10888. },
  10889. };
  10890. </script>
  10891. <style scoped>
  10892. @media screen and (max-width: 1280px) {
  10893. /* .courseIndex > div:first-child(2) {
  10894. width: 15% !important;
  10895. } */
  10896. /* .navText {
  10897. width: 120px !important;
  10898. } */
  10899. .evaCss {
  10900. flex-direction: column !important;
  10901. align-items: center !important;
  10902. }
  10903. .dialog_diy1>>>.el-dialog {
  10904. width: 100% !important;
  10905. }
  10906. .rightWidthCss {
  10907. width: 100% !important;
  10908. }
  10909. .dialog_diy3>>>.el-dialog {
  10910. width: 100% !important;
  10911. }
  10912. /* .textTitle >>> .el-form-item__label {
  10913. width: 150px !important;
  10914. } */
  10915. }
  10916. .evaCssMax {
  10917. flex-direction: column !important;
  10918. align-items: center !important;
  10919. }
  10920. .dialog_diy>>>.el-dialog {
  10921. margin-top: 10vh !important;
  10922. }
  10923. .body_student {
  10924. width: 77%;
  10925. height: 100%;
  10926. position: absolute;
  10927. left: 22%;
  10928. top: 0;
  10929. }
  10930. .student_head {
  10931. width: 100%;
  10932. margin: 0 auto;
  10933. padding-bottom: 20px;
  10934. display: flex;
  10935. flex-direction: column;
  10936. flex-wrap: nowrap;
  10937. align-items: flex-start;
  10938. justify-content: flex-start;
  10939. }
  10940. .pb_left {
  10941. width: 20%;
  10942. margin-right: 10px;
  10943. background: rgb(255, 255, 255);
  10944. padding-right: 10px;
  10945. position: fixed;
  10946. height: 100%;
  10947. }
  10948. .wheel>img,
  10949. .project>img,
  10950. .star>img,
  10951. .evaluate>img,
  10952. .up_photo>img,
  10953. .chapter_add>img,
  10954. .deleteWord>img,
  10955. .question>img,
  10956. .homework>img {
  10957. width: 100%;
  10958. height: 100%;
  10959. }
  10960. .upCover>img {
  10961. width: 131px;
  10962. height: 69px;
  10963. object-fit: cover;
  10964. }
  10965. .upCover {
  10966. width: calc(100% / 3.5);
  10967. position: relative;
  10968. margin: 0 15px 10px 0;
  10969. display: flex;
  10970. flex-direction: column;
  10971. flex-wrap: nowrap;
  10972. justify-content: center;
  10973. align-content: center;
  10974. align-items: center;
  10975. height: fit-content;
  10976. }
  10977. .upCover2 {
  10978. width: 100%;
  10979. position: relative;
  10980. margin: 0 15px 10px 0;
  10981. display: flex;
  10982. flex-direction: column;
  10983. flex-wrap: nowrap;
  10984. justify-content: center;
  10985. align-content: center;
  10986. align-items: center;
  10987. }
  10988. .upCover2>img {
  10989. width: 100%;
  10990. height: 90px;
  10991. object-fit: contain;
  10992. }
  10993. .chapter_add {
  10994. width: 120px;
  10995. position: relative;
  10996. text-align: center;
  10997. }
  10998. .isAddThings {
  10999. margin-top: 20px;
  11000. position: relative;
  11001. text-align: center;
  11002. background: #f7f8fa;
  11003. height: 90px;
  11004. width: 90px;
  11005. display: flex;
  11006. flex-direction: column;
  11007. justify-content: center;
  11008. }
  11009. .deleteWord {
  11010. width: 22px;
  11011. height: 22px;
  11012. position: absolute;
  11013. right: -5px;
  11014. top: -5px;
  11015. cursor: pointer;
  11016. }
  11017. .box_course {
  11018. /* width: 60%; */
  11019. width: 81%;
  11020. }
  11021. .wheel {
  11022. width: 100%;
  11023. /* height: 100%; */
  11024. height: 650px;
  11025. }
  11026. .right_box {
  11027. display: flex;
  11028. flex-direction: column;
  11029. margin-left: 30px;
  11030. justify-content: space-around;
  11031. }
  11032. .right_box_title {
  11033. font-size: 23px;
  11034. }
  11035. .people {
  11036. display: flex;
  11037. }
  11038. .student_body {
  11039. width: 100%;
  11040. margin: 0 auto;
  11041. margin-top: 10px;
  11042. padding: 0 0 20px;
  11043. }
  11044. .study_top {
  11045. margin-top: 70px;
  11046. width: 100%;
  11047. /* overflow: auto; */
  11048. height: auto;
  11049. }
  11050. .study_top .checkbox {
  11051. display: flex;
  11052. align-items: center;
  11053. padding: 15px 0 15px 30px;
  11054. flex: 0 0 auto;
  11055. font-weight: bold;
  11056. border-bottom: 1px solid #eee;
  11057. }
  11058. .study_top .check {
  11059. padding-bottom: 5px;
  11060. text-align: center;
  11061. cursor: pointer;
  11062. height: 30px;
  11063. box-sizing: border-box;
  11064. display: flex;
  11065. }
  11066. .study_top .checked {
  11067. border-bottom: 4px solid #3fc6a0;
  11068. padding-bottom: 5px;
  11069. color: #3fc6a0;
  11070. display: flex;
  11071. height: 35px;
  11072. }
  11073. .study_top .checked>div,
  11074. .study_top .check>div {
  11075. margin-right: 5px;
  11076. }
  11077. .videoTop {
  11078. display: flex;
  11079. flex-direction: row;
  11080. justify-content: space-between;
  11081. background: #fff;
  11082. align-items: center;
  11083. width: 95%;
  11084. padding: 20px;
  11085. }
  11086. .upbtn {
  11087. margin: 25px;
  11088. background: #70afdb;
  11089. color: #fff;
  11090. width: 120px;
  11091. text-align: center;
  11092. height: 30px;
  11093. line-height: 30px;
  11094. font-size: 13px;
  11095. border-radius: 5px;
  11096. cursor: pointer;
  11097. }
  11098. .filebox {
  11099. display: flex;
  11100. flex-wrap: wrap;
  11101. flex-direction: column;
  11102. padding: 15px 0 5px;
  11103. }
  11104. .filebox .tooldetail {
  11105. width: 100%;
  11106. margin: 0px 12px;
  11107. background: rgb(247, 247, 247);
  11108. padding: 20px;
  11109. line-height: 30px;
  11110. word-break: break-word;
  11111. }
  11112. .file {
  11113. display: flex;
  11114. flex-direction: column;
  11115. align-items: center;
  11116. justify-content: center;
  11117. cursor: pointer;
  11118. width: 200px;
  11119. }
  11120. .file div {
  11121. margin-top: 10px;
  11122. width: 150px;
  11123. text-align: center;
  11124. overflow: hidden;
  11125. white-space: nowrap;
  11126. text-overflow: ellipsis;
  11127. }
  11128. .media {
  11129. display: flex;
  11130. flex-direction: column;
  11131. align-items: center;
  11132. justify-content: center;
  11133. margin: 0 20px 20px 0;
  11134. cursor: pointer;
  11135. margin: 12px 0 5px 15px;
  11136. overflow: hidden;
  11137. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  11138. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  11139. box-sizing: border-box;
  11140. }
  11141. .media img {
  11142. height: 90px;
  11143. width: 160px;
  11144. object-fit: cover;
  11145. }
  11146. .media .title {
  11147. padding: 5px;
  11148. text-align: left;
  11149. width: 100%;
  11150. box-sizing: border-box;
  11151. }
  11152. .media .btn {
  11153. width: 100%;
  11154. height: 35px;
  11155. line-height: 35px;
  11156. color: #fff;
  11157. background: #606060;
  11158. text-align: center;
  11159. overflow: hidden;
  11160. white-space: nowrap;
  11161. text-overflow: ellipsis;
  11162. }
  11163. .detail_content_top {
  11164. width: 100%;
  11165. padding: 25px 0 25px 0;
  11166. }
  11167. .detail_title {
  11168. text-align: center;
  11169. font-size: 24px;
  11170. }
  11171. .detail_time {
  11172. font-size: 13px;
  11173. padding: 15px 0 0 40px;
  11174. }
  11175. .detail_content {
  11176. line-height: 2pc;
  11177. width: 90%;
  11178. margin: 0 auto;
  11179. padding-top: 30px;
  11180. text-indent: 30px;
  11181. overflow: auto;
  11182. height: 200px;
  11183. }
  11184. .score_box>>>.el-rate {
  11185. margin-left: 10px;
  11186. }
  11187. .dialog_change>>>.el-dialog {
  11188. border-radius: 5px;
  11189. }
  11190. .dialog_change>>>.el-dialog__header {
  11191. background: #f2f2f2;
  11192. text-align: center;
  11193. }
  11194. .dialog_change>>>.el-dialog__title {
  11195. line-height: 5px;
  11196. }
  11197. .dialog_change>>>.el-dialog__body {
  11198. background: #fff;
  11199. padding: 10px 20px;
  11200. }
  11201. .score_box {
  11202. display: flex;
  11203. align-items: center;
  11204. margin-bottom: 18px;
  11205. margin-top: 20px;
  11206. }
  11207. .up_photo {
  11208. width: 120px;
  11209. cursor: pointer;
  11210. margin-top: 10px;
  11211. }
  11212. .up_photo2 {
  11213. width: 180px;
  11214. box-sizing: border-box;
  11215. min-width: 180px;
  11216. height: 180px;
  11217. max-height: 180px;
  11218. min-height: 180px;
  11219. cursor: pointer;
  11220. display: flex;
  11221. flex-direction: column;
  11222. align-items: center;
  11223. justify-content: center;
  11224. background: rgb(242, 246, 255);
  11225. /* padding: 25px; */
  11226. margin-bottom: 10px;
  11227. }
  11228. .up_photo2 img {
  11229. width: 50%;
  11230. height: auto;
  11231. }
  11232. .up_photo2 span {
  11233. color: #898989;
  11234. }
  11235. .plworkBox {
  11236. display: flex;
  11237. align-items: center;
  11238. margin-top: 10px;
  11239. flex-wrap: wrap;
  11240. }
  11241. .upload_send {
  11242. margin: 30px auto 30px;
  11243. width: 60%;
  11244. background: #169bd6;
  11245. text-align: center;
  11246. height: 35px;
  11247. line-height: 35px;
  11248. color: #fff;
  11249. border-radius: 5px;
  11250. cursor: pointer;
  11251. }
  11252. .marginT {
  11253. margin-top: 20px;
  11254. }
  11255. .cd_content_steps {
  11256. display: flex;
  11257. width: 90%;
  11258. justify-content: space-around;
  11259. border-top: 1px solid #eeeeee;
  11260. }
  11261. .cd_steps_box {
  11262. display: flex;
  11263. justify-content: center;
  11264. align-items: center;
  11265. flex-direction: column;
  11266. cursor: pointer;
  11267. }
  11268. .first {
  11269. display: flex;
  11270. align-items: center;
  11271. margin: 15px 0 20px 0;
  11272. font-size: 20px;
  11273. }
  11274. .first>div:nth-child(2) {
  11275. font-size: 16px !important;
  11276. padding-left: 10px;
  11277. line-height: 26px;
  11278. box-sizing: border-box;
  11279. }
  11280. .blue_box_one {
  11281. text-align: center;
  11282. color: #fff;
  11283. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  11284. border-radius: 7px;
  11285. margin: 10px;
  11286. cursor: pointer;
  11287. width: 95%;
  11288. height: 45px;
  11289. display: flex;
  11290. flex-direction: row;
  11291. justify-content: flex-start;
  11292. align-items: center;
  11293. }
  11294. .blue_box_one>div:nth-child(1) {
  11295. line-height: 30px;
  11296. margin: 0 5px 0 10px;
  11297. width: 30%;
  11298. min-width: 70px;
  11299. border-radius: 4px;
  11300. }
  11301. .blue_box_one>div:nth-child(2) {
  11302. white-space: nowrap;
  11303. text-overflow: ellipsis;
  11304. overflow: hidden;
  11305. word-break: break-all;
  11306. width: 70%;
  11307. text-align: left;
  11308. margin-right: 10px;
  11309. max-width: calc(100% - 85px);
  11310. }
  11311. .blue_box_one>div:nth-child(2):hover {
  11312. overflow: hidden;
  11313. text-overflow: ellipsis;
  11314. white-space: nowrap;
  11315. cursor: pointer;
  11316. }
  11317. .upFile {
  11318. margin: 0 auto;
  11319. width: 120px;
  11320. background: #70afdb;
  11321. color: #fff;
  11322. height: 30px;
  11323. text-align: center;
  11324. line-height: 30px;
  11325. border-radius: 5px;
  11326. font-size: 14px;
  11327. cursor: pointer;
  11328. }
  11329. .courseTitle {
  11330. background: #205cc6;
  11331. width: 85%;
  11332. margin: 10px auto;
  11333. color: #fff;
  11334. border-radius: 5px;
  11335. padding: 10px 10px;
  11336. display: flex;
  11337. flex-direction: row;
  11338. align-items: center;
  11339. justify-content: space-between;
  11340. text-align: center;
  11341. }
  11342. .courseTitle .ctitle {
  11343. font-weight: bold;
  11344. font-size: 20px;
  11345. white-space: nowrap;
  11346. overflow: hidden;
  11347. text-overflow: ellipsis;
  11348. }
  11349. .courseTitle .inviteBox {
  11350. font-size: 14px;
  11351. margin-top: 5px;
  11352. color: #a6cbff;
  11353. }
  11354. .courseTitle>>>.el-tooltip {
  11355. width: 100%;
  11356. white-space: nowrap;
  11357. overflow: hidden;
  11358. text-overflow: ellipsis;
  11359. word-break: break-word;
  11360. }
  11361. .ml {
  11362. margin-left: 20px;
  11363. color: #5b7dba;
  11364. border-left: 3px solid #5b7dba;
  11365. padding-left: 5px;
  11366. font-weight: bold;
  11367. }
  11368. .return {
  11369. width: 2rem;
  11370. height: 2rem;
  11371. cursor: pointer;
  11372. }
  11373. .return>img {
  11374. width: 100%;
  11375. height: 100%;
  11376. }
  11377. .returnBtn {
  11378. background: #499eef;
  11379. width: 65px;
  11380. height: 30px;
  11381. color: #fff;
  11382. text-align: center;
  11383. line-height: 32px;
  11384. margin-right: 20px;
  11385. cursor: pointer;
  11386. border-radius: 5px;
  11387. font-size: 14px;
  11388. }
  11389. .tool {
  11390. display: flex;
  11391. flex-direction: column;
  11392. flex-wrap: nowrap;
  11393. width: 13%;
  11394. margin: 0 30px;
  11395. align-items: center;
  11396. }
  11397. .whiteBIcon {
  11398. width: 150px;
  11399. cursor: pointer;
  11400. }
  11401. .whiteBIcon>img {
  11402. width: 100%;
  11403. height: 100%;
  11404. }
  11405. .mask {
  11406. background-color: rgba(0, 0, 0, 0);
  11407. position: fixed;
  11408. top: 0;
  11409. left: 0;
  11410. width: 100%;
  11411. height: 100%;
  11412. z-index: 20000;
  11413. display: flex;
  11414. align-items: center;
  11415. justify-content: center;
  11416. }
  11417. .progressBox {
  11418. width: 500px;
  11419. height: 180px;
  11420. background: #fff;
  11421. border-radius: 10px;
  11422. box-shadow: 0 0 6px 1px #bfbfbf;
  11423. display: flex;
  11424. align-items: center;
  11425. justify-content: center;
  11426. flex-direction: column;
  11427. position: relative;
  11428. color: #6c6c6c;
  11429. }
  11430. .progressBox>>>.el-progress-bar__outer {
  11431. background-color: #d1dfff !important;
  11432. }
  11433. .progressBox .lbox {
  11434. height: 50px;
  11435. font-size: 19px;
  11436. display: flex;
  11437. align-items: center;
  11438. color: #747474;
  11439. }
  11440. .progressBox .lbox img {
  11441. width: 40px;
  11442. margin-right: 20px;
  11443. }
  11444. .closeCss {
  11445. position: absolute;
  11446. top: 8px;
  11447. right: 8px;
  11448. cursor: pointer;
  11449. width: 20px;
  11450. height: 20px;
  11451. }
  11452. .closeCss>img {
  11453. width: 100%;
  11454. height: 100%;
  11455. }
  11456. .uploadVedio {
  11457. display: flex;
  11458. flex-direction: column;
  11459. flex-wrap: nowrap;
  11460. justify-content: center;
  11461. align-items: center;
  11462. margin: 0 15px 10px 0;
  11463. }
  11464. .uploadVedio>img {
  11465. width: 30px;
  11466. height: 30px;
  11467. }
  11468. .uploadVedio>span {
  11469. white-space: nowrap;
  11470. overflow: hidden;
  11471. text-overflow: ellipsis;
  11472. width: 75px;
  11473. margin-top: 7px;
  11474. }
  11475. .picName {
  11476. white-space: nowrap;
  11477. overflow: hidden;
  11478. text-overflow: ellipsis;
  11479. width: 75px;
  11480. margin-top: 7px;
  11481. }
  11482. .new_top {
  11483. display: flex;
  11484. background: #fff;
  11485. flex-direction: row;
  11486. justify-content: flex-start;
  11487. align-items: center;
  11488. height: 60px;
  11489. position: relative;
  11490. }
  11491. .before {
  11492. position: absolute;
  11493. background: #c3dad4;
  11494. width: 6px;
  11495. height: 100%;
  11496. }
  11497. .courseIndex {
  11498. display: flex;
  11499. flex-direction: row;
  11500. align-items: center;
  11501. width: calc(100% - 520px);
  11502. }
  11503. .courseIndex>div:nth-child(1) {
  11504. margin: 0 20px;
  11505. padding-left: 5px;
  11506. font-size: 24px;
  11507. min-width: 100px;
  11508. font-weight: bold;
  11509. border-left: 4px solid #3363b9;
  11510. height: 35px;
  11511. text-align: center;
  11512. line-height: 35px;
  11513. }
  11514. .courseIndex>div:nth-child(2) {
  11515. font-size: 23px;
  11516. /* width: 300px; */
  11517. max-width: calc(100% - 180px);
  11518. white-space: nowrap;
  11519. overflow: hidden;
  11520. text-overflow: ellipsis;
  11521. }
  11522. .courseIndex>div:nth-child(3) {
  11523. border-bottom: 1px solid #d7d7d7;
  11524. padding-bottom: 5px;
  11525. background: #49a0f0;
  11526. width: 55px;
  11527. min-width: 55px;
  11528. border-radius: 5px;
  11529. color: #fff;
  11530. text-align: center;
  11531. height: 20px;
  11532. line-height: 26px;
  11533. font-size: 14px;
  11534. margin: 0 0 0 10px;
  11535. }
  11536. .course_text {
  11537. padding: 20px 0 0 15px;
  11538. text-indent: 30px;
  11539. width: 80%;
  11540. min-height: 20px;
  11541. }
  11542. .vedioList {
  11543. background: #f2f2f2;
  11544. border: 1px solid #ececec;
  11545. /* width: 38.8%; */
  11546. width: 100%;
  11547. height: 445px;
  11548. border-radius: 10px;
  11549. overflow: hidden;
  11550. }
  11551. .vedioNav {
  11552. margin: 10px 0 0 15px;
  11553. border-bottom: 1px solid #d7d7d7;
  11554. padding-bottom: 5px;
  11555. background: #96d1ff;
  11556. width: 55px;
  11557. min-width: 55px;
  11558. border-radius: 5px;
  11559. color: #fff;
  11560. text-align: center;
  11561. height: 20px;
  11562. line-height: 26px;
  11563. font-size: 14px;
  11564. }
  11565. .queTop {
  11566. display: flex;
  11567. padding: 20px 0 20px 30px;
  11568. width: 100%;
  11569. flex-direction: row;
  11570. justify-content: flex-start;
  11571. align-items: center;
  11572. border-bottom: 1px solid #eeeeee;
  11573. box-sizing: border-box;
  11574. }
  11575. .question {
  11576. width: 40px;
  11577. margin-right: 10px;
  11578. margin-top: 7px;
  11579. }
  11580. .queTitle {
  11581. margin-left: 5px;
  11582. font-size: 25px;
  11583. display: flex;
  11584. align-items: center;
  11585. }
  11586. .addEditor {
  11587. width: 100px;
  11588. height: 30px;
  11589. background: #42cda6;
  11590. color: #fff;
  11591. border-radius: 5px;
  11592. text-align: center;
  11593. line-height: 30px;
  11594. box-shadow: 1px 3px 6px 1px #bfbfbf;
  11595. cursor: pointer;
  11596. }
  11597. .vedioName {
  11598. /* text-overflow: ellipsis;
  11599. top: 8px;
  11600. font-size: 14px;
  11601. overflow: hidden;
  11602. width: 100%;
  11603. word-break: break-all;
  11604. white-space: nowrap; */
  11605. cursor: pointer;
  11606. margin: 0px 0px 10px 5px;
  11607. white-space: nowrap;
  11608. overflow: hidden;
  11609. text-overflow: ellipsis;
  11610. width: 100%;
  11611. }
  11612. .vedioTime {
  11613. width: 35px;
  11614. position: absolute;
  11615. color: #fff;
  11616. bottom: 0px;
  11617. right: 0px;
  11618. text-align: center;
  11619. background: #46411f;
  11620. height: 20px;
  11621. font-size: 14px;
  11622. line-height: 20px;
  11623. }
  11624. .homework {
  11625. width: 200px;
  11626. display: flex;
  11627. flex-direction: column;
  11628. flex-wrap: nowrap;
  11629. align-items: center;
  11630. cursor: pointer;
  11631. }
  11632. .homebox {
  11633. display: flex;
  11634. flex-wrap: wrap;
  11635. flex-direction: row;
  11636. justify-content: flex-start;
  11637. align-items: center;
  11638. padding: 15px 0;
  11639. }
  11640. .isChooseActive {
  11641. color: #3e88f4;
  11642. border-bottom: 2px solid #2f80f3;
  11643. }
  11644. .chooseWho {
  11645. display: flex;
  11646. width: 100%;
  11647. flex-direction: row;
  11648. flex-wrap: nowrap;
  11649. justify-content: flex-start;
  11650. padding-bottom: 10px;
  11651. }
  11652. .chooseWho>div {
  11653. cursor: pointer;
  11654. padding-bottom: 10px;
  11655. margin: 0 30px;
  11656. }
  11657. .addPoint>div>img {
  11658. cursor: pointer;
  11659. margin: 0 10px;
  11660. width: 85px;
  11661. border-radius: 15px;
  11662. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  11663. }
  11664. .addPoint>div {
  11665. display: flex;
  11666. flex-direction: column;
  11667. flex-wrap: nowrap;
  11668. align-items: center;
  11669. }
  11670. .isBorder>div {
  11671. margin: 0 0 10px 0;
  11672. align-items: flex-start !important;
  11673. }
  11674. .noiframeBox {
  11675. display: flex;
  11676. flex-wrap: wrap;
  11677. }
  11678. .iframeBox iframe {
  11679. width: 100%;
  11680. height: 800px;
  11681. border: none;
  11682. margin-bottom: 20px;
  11683. border: 1px solid #ccc;
  11684. }
  11685. .upload_toolBtn {
  11686. background: #6b92c9;
  11687. color: #fff;
  11688. width: 110px;
  11689. text-align: center;
  11690. height: 35px;
  11691. line-height: 35px;
  11692. font-size: 14px;
  11693. border-radius: 5px;
  11694. cursor: pointer;
  11695. position: absolute;
  11696. right: 10px;
  11697. bottom: 0;
  11698. }
  11699. .binfo_input,
  11700. .pj {
  11701. font: inherit;
  11702. color: currentColor;
  11703. width: 100%;
  11704. margin: 0;
  11705. padding: 15px 14px;
  11706. display: block;
  11707. min-width: 0;
  11708. outline: none;
  11709. box-sizing: content-box;
  11710. background: none;
  11711. -webkit-tap-highlight-color: transparent;
  11712. border: 1px solid rgba(0, 0, 0, 0.23);
  11713. border-radius: 4px;
  11714. box-sizing: border-box;
  11715. resize: none;
  11716. }
  11717. .binfo_input:focus-visible {
  11718. border: 1px solid rgba(61, 103, 188);
  11719. }
  11720. .dialog_diy>>>.el-dialog__header,
  11721. .dialog_diy1>>>.el-dialog__header {
  11722. background: #454545 !important;
  11723. padding: 15px 20px;
  11724. }
  11725. .dialog_diy>>>.el-dialog__title,
  11726. .dialog_diy1>>>.el-dialog__title {
  11727. color: #fff;
  11728. }
  11729. .dialog_diy>>>.el-dialog__headerbtn,
  11730. .dialog_diy1>>>.el-dialog__headerbtn {
  11731. top: 19px;
  11732. }
  11733. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  11734. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  11735. color: #fff;
  11736. }
  11737. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  11738. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  11739. color: #fff;
  11740. }
  11741. .dialog_diy1>>>.el-dialog__body {
  11742. padding: 0;
  11743. }
  11744. .dialog_diy>>>.el-dialog__body,
  11745. .dialog_diy>>>.el-dialog__footer,
  11746. .dialog_diy1>>>.el-dialog__footer {
  11747. background: #fafafa;
  11748. }
  11749. .a_addBox {
  11750. margin: 10px 0;
  11751. background: #fff;
  11752. padding: 15px;
  11753. max-height: 400px;
  11754. overflow: auto;
  11755. }
  11756. .a_add_box {
  11757. border-bottom: 2px solid #eee;
  11758. padding-bottom: 10px;
  11759. }
  11760. .a_add_head {
  11761. display: flex;
  11762. align-items: flex-start;
  11763. /* justify-content: space-between; */
  11764. flex-direction: column;
  11765. /* flex-direction: row; */
  11766. margin: 10px 0 20px 0;
  11767. font-size: 18px;
  11768. width: 100%;
  11769. }
  11770. .a_add_head .a_add_head_input {
  11771. width: 300px;
  11772. }
  11773. .a_add_head .a_add_head_div {
  11774. display: flex;
  11775. align-items: center;
  11776. justify-content: space-between;
  11777. }
  11778. .a_add_body {
  11779. display: flex;
  11780. align-items: center;
  11781. }
  11782. .a_add_input {
  11783. display: flex;
  11784. align-items: center;
  11785. flex-wrap: wrap;
  11786. }
  11787. .a_add_input>>>el-radio-group {
  11788. margin: 10px 0;
  11789. }
  11790. .a_add_input>>>.el-radio,
  11791. .a_add_input>>>.el-checkbox {
  11792. margin-bottom: 10px;
  11793. display: flex;
  11794. flex-direction: row;
  11795. flex-wrap: nowrap;
  11796. align-items: center;
  11797. }
  11798. .redioStyle>>>.el-radio__label {
  11799. font-size: 18px;
  11800. }
  11801. .redioStyle>>>.el-checkbox__label {
  11802. font-size: 18px;
  11803. }
  11804. .toolHeng2 {
  11805. width: 100%;
  11806. }
  11807. .toolHeng {
  11808. display: flex;
  11809. flex-direction: row;
  11810. flex-wrap: wrap;
  11811. justify-content: flex-start;
  11812. align-items: center;
  11813. width: 100%;
  11814. }
  11815. .toolHeng>div {
  11816. padding-left: 20px;
  11817. }
  11818. .isWidth {
  11819. width: 20%;
  11820. }
  11821. .textTitle {
  11822. display: flex;
  11823. flex-direction: row;
  11824. flex-wrap: nowrap;
  11825. align-items: center;
  11826. width: 95%;
  11827. }
  11828. .textTitle>>>.el-form-item__label {
  11829. font-size: 22px;
  11830. color: #918f8f;
  11831. width: 100px;
  11832. }
  11833. .textTitle>>>.el-form-item__content {
  11834. width: calc(100% - 100px);
  11835. }
  11836. .textCss>>>.el-dialog {
  11837. width: 800px !important;
  11838. height: 400px;
  11839. background: #fafafa;
  11840. }
  11841. .textCss>>>.el-dialog__body {
  11842. margin: 55px 8% 0 8%;
  11843. padding: 0 !important;
  11844. }
  11845. .textCss>>>.el-dialog__footer {
  11846. padding-top: 38px;
  11847. }
  11848. .toolsCss>>>.el-dialog__body {
  11849. padding: 20px;
  11850. }
  11851. .lineCss>>>.el-dialog__body {
  11852. display: flex;
  11853. flex-direction: row;
  11854. align-items: center;
  11855. justify-content: center;
  11856. }
  11857. .newNav {
  11858. display: flex;
  11859. flex-direction: row;
  11860. align-items: baseline;
  11861. justify-content: flex-start;
  11862. }
  11863. .navText {
  11864. cursor: pointer;
  11865. margin: 0px 0px 10px 5px;
  11866. white-space: nowrap;
  11867. overflow: hidden;
  11868. text-overflow: ellipsis;
  11869. /* width: 300px; */
  11870. width: 100%;
  11871. }
  11872. .noVedio {
  11873. display: flex;
  11874. flex-direction: row;
  11875. justify-content: center;
  11876. align-content: center;
  11877. }
  11878. .noNavText {
  11879. cursor: pointer;
  11880. margin: 0px 0px 10px 5px;
  11881. width: 112px;
  11882. }
  11883. .listNoVedio {
  11884. margin: 0 0 0 30px;
  11885. width: 97%;
  11886. }
  11887. .video-player>>>.video-js {
  11888. height: 100%;
  11889. }
  11890. .hangVedioList {
  11891. width: 90% !important;
  11892. height: 150px !important;
  11893. margin: 20px 0 0 30px;
  11894. }
  11895. .hangVedio {
  11896. width: 100%;
  11897. height: 170px !important;
  11898. align-items: flex-start !important;
  11899. }
  11900. .hangHand {
  11901. height: 150px !important;
  11902. }
  11903. .twoChild {
  11904. width: 95%;
  11905. margin: 10px;
  11906. border-radius: 5px;
  11907. background: #f2f2f2;
  11908. display: flex;
  11909. flex-direction: column;
  11910. flex-wrap: nowrap;
  11911. justify-content: flex-start;
  11912. align-items: flex-start;
  11913. transition: all 0.5s;
  11914. overflow: hidden;
  11915. height: 0;
  11916. background: #e7f3ff;
  11917. }
  11918. .twoChild>div:nth-child(1) {
  11919. margin-top: 5px;
  11920. }
  11921. .navChild {
  11922. width: 100%;
  11923. cursor: pointer;
  11924. margin-bottom: 10px;
  11925. position: relative;
  11926. }
  11927. .navChild img {
  11928. position: absolute;
  11929. right: 11px;
  11930. width: 15px;
  11931. top: 50%;
  11932. transform: translateY(-50%);
  11933. }
  11934. .navActive {
  11935. height: auto;
  11936. }
  11937. .navTask {
  11938. display: flex;
  11939. flex-direction: row;
  11940. flex-wrap: nowrap;
  11941. align-items: center;
  11942. align-content: flex-start;
  11943. height: 40px;
  11944. justify-content: flex-start;
  11945. padding: 0 10px;
  11946. width: 100%;
  11947. box-sizing: border-box;
  11948. }
  11949. .navTaskname {
  11950. white-space: nowrap;
  11951. text-overflow: ellipsis;
  11952. overflow: hidden;
  11953. word-break: break-all;
  11954. padding-left: 5px;
  11955. }
  11956. .openTaskActive {
  11957. color: #4386e6;
  11958. }
  11959. .iframeName {
  11960. margin: 5px 0;
  11961. border-left: 4px solid #41c4a4;
  11962. padding-left: 4px;
  11963. }
  11964. .toolTitle {
  11965. margin: 0px 0px 20px;
  11966. font-size: 20px;
  11967. font-weight: 500;
  11968. border-left: 4px solid #41c4a4;
  11969. padding-left: 4px;
  11970. }
  11971. .cru_selectBox {
  11972. overflow: auto;
  11973. width: 96%;
  11974. margin: 0 auto;
  11975. height: calc(100% - 40px - 21px - 20px);
  11976. }
  11977. .cru_selectBox::-webkit-scrollbar,
  11978. .study_top::-webkit-scrollbar,
  11979. .textContent::-webkit-scrollbar {
  11980. /*滚动条整体样式*/
  11981. width: 6px;
  11982. /*高宽分别对应横竖滚动条的尺寸*/
  11983. height: 6px;
  11984. }
  11985. /*定义滚动条轨道 内阴影+圆角*/
  11986. .cru_selectBox::-webkit-scrollbar-track,
  11987. .study_top::-webkit-scrollbar-track,
  11988. .textContent::-webkit-scrollbar {
  11989. border-radius: 10px;
  11990. background-color: #b8bdc9;
  11991. }
  11992. /*定义滑块 内阴影+圆角*/
  11993. .cru_selectBox::-webkit-scrollbar-thumb,
  11994. .study_top::-webkit-scrollbar-thumb,
  11995. .textContent::-webkit-scrollbar-thumb {
  11996. border-radius: 10px;
  11997. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  11998. background-color: #2c5ab3;
  11999. }
  12000. .vedioBox {
  12001. border-radius: 20px;
  12002. background: #fff;
  12003. margin-bottom: 10px;
  12004. overflow: auto;
  12005. }
  12006. .taskBox {
  12007. margin: 15px auto 20px;
  12008. background: #f7f7f7;
  12009. width: 97%;
  12010. border-radius: 10px;
  12011. }
  12012. .vedioTaskBox {
  12013. width: 100%;
  12014. display: flex;
  12015. flex-direction: row;
  12016. flex-wrap: nowrap;
  12017. align-items: flex-start;
  12018. position: relative;
  12019. }
  12020. .toolBox {
  12021. padding: 20px 60px 15px;
  12022. display: flex;
  12023. position: relative;
  12024. }
  12025. .btnAll {
  12026. position: absolute;
  12027. right: 0;
  12028. display: flex;
  12029. flex-direction: row;
  12030. flex-wrap: nowrap;
  12031. align-items: center;
  12032. }
  12033. .btnAllNT {
  12034. position: fixed;
  12035. bottom: 50px;
  12036. right: 40px;
  12037. z-index: 999;
  12038. display: flex;
  12039. flex-direction: row;
  12040. }
  12041. .btnAllNT>img {
  12042. cursor: pointer;
  12043. width: 80px;
  12044. }
  12045. .vedioTimeBox {
  12046. display: flex;
  12047. flex-direction: row;
  12048. align-items: center;
  12049. flex-wrap: nowrap;
  12050. position: relative;
  12051. }
  12052. .navBox {
  12053. background: #fff;
  12054. height: calc(100% - 40px);
  12055. padding: 5px 1px 0;
  12056. overflow-y: auto;
  12057. overflow-x: hidden;
  12058. }
  12059. .tool_work_box {
  12060. width: 100%;
  12061. padding: 0 30px 10px;
  12062. box-sizing: border-box;
  12063. }
  12064. .worksBox {
  12065. padding: 5px 0;
  12066. border-bottom: 1px solid #eeeeee;
  12067. }
  12068. .worksBTitle {
  12069. font-size: 20px;
  12070. padding-bottom: 15px;
  12071. border-bottom: 1px solid #eeeeee;
  12072. display: flex;
  12073. align-items: center;
  12074. }
  12075. .greenBox {
  12076. width: 5px;
  12077. height: 30px;
  12078. background: #63b6fa;
  12079. margin-right: 5px;
  12080. }
  12081. .worksDetailBox {
  12082. display: flex;
  12083. width: 100%;
  12084. flex-direction: row;
  12085. flex-wrap: wrap;
  12086. align-items: flex-end;
  12087. justify-content: flex-start;
  12088. padding: 15px 0;
  12089. }
  12090. .works {
  12091. display: flex;
  12092. flex-direction: column;
  12093. flex-wrap: nowrap;
  12094. align-items: flex-start;
  12095. justify-content: flex-start;
  12096. align-content: center;
  12097. max-width: 240px;
  12098. width: calc(100% / 3 - 10px);
  12099. height: auto;
  12100. margin-right: 10px;
  12101. margin-bottom: 10px;
  12102. overflow: hidden;
  12103. height: 140px;
  12104. box-shadow: 0 0 6px 1px #dfdada;
  12105. border-radius: 15px;
  12106. }
  12107. .workImg {
  12108. width: 100%;
  12109. /* height: calc(100% - 40px); */
  12110. height: 105px;
  12111. position: relative;
  12112. }
  12113. .workImg>img {
  12114. width: 100%;
  12115. height: 100%;
  12116. object-fit: contain;
  12117. cursor: pointer;
  12118. }
  12119. .worksName {
  12120. height: 40px;
  12121. line-height: 40px;
  12122. display: flex;
  12123. width: 100%;
  12124. flex-direction: row;
  12125. flex-wrap: nowrap;
  12126. justify-content: space-between;
  12127. align-items: center;
  12128. margin: 0 0 0 10px;
  12129. }
  12130. .worksName>div:nth-child(1) {
  12131. width: 110px;
  12132. white-space: nowrap;
  12133. overflow: hidden;
  12134. text-overflow: ellipsis;
  12135. }
  12136. .worksName>div:nth-child(2) {
  12137. color: #b7b4b5;
  12138. }
  12139. .noWorksS {
  12140. padding: 15px 0 0;
  12141. display: flex;
  12142. flex-direction: row;
  12143. flex-wrap: wrap;
  12144. align-items: center;
  12145. justify-content: flex-start;
  12146. }
  12147. .noWorksS>div {
  12148. cursor: pointer;
  12149. }
  12150. .noWorksName,
  12151. .isWorksName {
  12152. background: #7cbcf1;
  12153. color: #fff;
  12154. width: 90px;
  12155. height: 25px;
  12156. text-align: center;
  12157. line-height: 25px;
  12158. border-radius: 5px;
  12159. margin: 10px 15px 10px 0;
  12160. white-space: nowrap;
  12161. overflow: hidden;
  12162. padding: 5px;
  12163. text-overflow: ellipsis;
  12164. }
  12165. .noWorksName.isWork{
  12166. background: #165d96 !important;
  12167. }
  12168. .isWorksName {
  12169. cursor: pointer;
  12170. background: #46a1eb !important;
  12171. width: 100px;
  12172. height: 40px;
  12173. line-height: 40px;
  12174. position: relative;
  12175. }
  12176. .noWorksName:hover {
  12177. background: #46a1eb !important;
  12178. }
  12179. .title {
  12180. background: #1e5cc9;
  12181. /* width: 98%; */
  12182. height: 45px;
  12183. color: #fff;
  12184. line-height: 45px;
  12185. padding-left: 20px;
  12186. box-sizing: border-box;
  12187. }
  12188. .textBox {
  12189. font-size: 20px;
  12190. width: 90%;
  12191. display: flex;
  12192. flex-direction: column;
  12193. align-items: center;
  12194. margin: 20px auto 0;
  12195. max-height: 500px;
  12196. overflow: auto;
  12197. }
  12198. .textContent {
  12199. font-size: 18px;
  12200. width: 95%;
  12201. max-width: 95%;
  12202. }
  12203. .answerBg {
  12204. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  12205. background-size: 100% 100%;
  12206. width: 100%;
  12207. height: 100%;
  12208. color: #fff;
  12209. text-align: center;
  12210. display: flex;
  12211. flex-direction: column;
  12212. flex-wrap: nowrap;
  12213. align-items: center;
  12214. position: relative;
  12215. justify-content: center;
  12216. }
  12217. .answerBg>div:nth-child(1) {
  12218. /* font-size: 22px;
  12219. padding: 25px 0 10px; */
  12220. }
  12221. .answerContent {
  12222. width: 215px;
  12223. max-height: 60px;
  12224. word-break: break-all;
  12225. text-align: center;
  12226. /* white-space: nowrap; */
  12227. overflow: hidden;
  12228. text-overflow: ellipsis;
  12229. /* padding: 23px 0 0; */
  12230. -webkit-line-clamp: 3;
  12231. -webkit-box-orient: vertical;
  12232. display: -webkit-box;
  12233. font-size: 15px;
  12234. cursor: pointer;
  12235. }
  12236. .elist_input_box {
  12237. display: flex;
  12238. align-items: flex-start;
  12239. flex-wrap: nowrap;
  12240. padding: 10px 0 15px 30px;
  12241. flex-direction: column;
  12242. }
  12243. .elist_input {
  12244. /* width: 40%; */
  12245. width: 100%;
  12246. }
  12247. .elist_input .elist_input_box input {
  12248. font: inherit;
  12249. color: currentColor;
  12250. width: 200px;
  12251. padding: 8px 14px;
  12252. display: block;
  12253. min-width: 0;
  12254. outline: none;
  12255. border: 1px solid rgba(0, 0, 0, 0.23);
  12256. border-radius: 4px;
  12257. box-sizing: border-box;
  12258. background: #fff;
  12259. margin: 0 20px 0 0;
  12260. }
  12261. .elist_input .elist_input_box span {
  12262. height: 36px;
  12263. line-height: 36px;
  12264. color: rgb(82, 82, 82);
  12265. }
  12266. .elist_input .elist_input_box .remove {
  12267. height: 20px;
  12268. width: 20px;
  12269. background-size: 100% 100%;
  12270. background-position: unset;
  12271. margin-left: 5px;
  12272. }
  12273. .elist_input_box>>>.el-rate {
  12274. display: flex;
  12275. height: 36px;
  12276. align-items: center;
  12277. }
  12278. .elist_input_box .elist_inptu_text {
  12279. min-height: 50px;
  12280. /* width: 500px;
  12281. max-height: 150px; */
  12282. width: 100%;
  12283. line-height: 50px;
  12284. color: rgb(82, 82, 82);
  12285. overflow: auto;
  12286. text-indent: 5px;
  12287. background: #f7f6f9;
  12288. border-radius: 10px;
  12289. }
  12290. .elist_input_box .elist_inptu_text input {
  12291. width: 500px;
  12292. }
  12293. .elist_input_box>>>.el-rate__icon {
  12294. font-size: 24px;
  12295. }
  12296. .isClick {
  12297. background: #4d9def;
  12298. }
  12299. /*定义滚动条轨道 内阴影+圆角*/
  12300. .bzTypeBox::-webkit-scrollbar {
  12301. /*滚动条整体样式*/
  12302. width: 6px;
  12303. /*高宽分别对应横竖滚动条的尺寸*/
  12304. height: 6px;
  12305. }
  12306. /*定义滚动条轨道 内阴影+圆角*/
  12307. .bzTypeBox::-webkit-scrollbar-track {
  12308. border-radius: 10px;
  12309. background-color: rgba(0, 0, 0, 0.1);
  12310. }
  12311. /*定义滑块 内阴影+圆角*/
  12312. .bzTypeBox::-webkit-scrollbar-thumb {
  12313. border-radius: 10px;
  12314. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  12315. background-color: rgba(0, 0, 0, 0.1);
  12316. }
  12317. .choiceBox{
  12318. display:flex;
  12319. margin: 20px 0;
  12320. width: 100%;
  12321. }
  12322. .bzTypeBox {
  12323. display: flex;
  12324. width: 100%;
  12325. overflow: auto;
  12326. white-space: nowrap;
  12327. }
  12328. .bzChild {
  12329. cursor: pointer;
  12330. box-sizing: border-box;
  12331. padding-bottom: 10px;
  12332. font-weight: bold;
  12333. min-width: fit-content;
  12334. }
  12335. .bzChild.active{
  12336. color: #3e88f4;
  12337. border-bottom: 2px solid #2f80f3;
  12338. }
  12339. .bzChild +.bzChild{
  12340. margin-left: 25px;
  12341. }
  12342. .bzBox {
  12343. display: flex;
  12344. flex-direction: row;
  12345. align-items: center;
  12346. }
  12347. .bzBox>div:nth-child(1) {
  12348. width: 4px;
  12349. height: 40px;
  12350. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  12351. }
  12352. .bzBox>div:nth-child(2) {
  12353. font-size: 23px;
  12354. font-weight: bold;
  12355. padding: 0px 0px 0 10px;
  12356. }
  12357. .navTitile {
  12358. padding: 0 0px 0 15px;
  12359. color: #fff;
  12360. height: 40px;
  12361. line-height: 40px;
  12362. }
  12363. .isTypeOne {
  12364. width: 240px;
  12365. height: 170px;
  12366. /* border: 1px solid #f8f8f8; */
  12367. border-radius: 10px;
  12368. box-shadow: 0 0 6px 1px #dfdada;
  12369. }
  12370. .e_add_top {
  12371. display: flex;
  12372. justify-content: space-between;
  12373. padding: 20px 20px 0 20px;
  12374. border-radius: 3px;
  12375. background: #fff;
  12376. }
  12377. .e_add_title2 {
  12378. display: flex;
  12379. align-items: center;
  12380. }
  12381. .e_add_title2 span {
  12382. width: 40px;
  12383. }
  12384. .e_add_title {
  12385. display: flex;
  12386. align-items: center;
  12387. color: #b8b8b8;
  12388. font-size: 18px;
  12389. position: relative;
  12390. height: 40px;
  12391. }
  12392. .e_add_title span {
  12393. margin-right: 10px;
  12394. }
  12395. .e_add_title .el_input {
  12396. width: 300px;
  12397. }
  12398. .e_add_title>>>.el-input__inner {
  12399. width: 400px;
  12400. }
  12401. .e_add_btn {}
  12402. .e_add_content {
  12403. display: flex;
  12404. width: 100%;
  12405. max-width: 650px;
  12406. height: 550px;
  12407. }
  12408. .e_add_list {
  12409. background: #fff;
  12410. height: 500px;
  12411. width: 210px;
  12412. position: relative;
  12413. margin: 15px 5px 0 0;
  12414. flex-shrink: 0;
  12415. display: flex;
  12416. flex-direction: column;
  12417. }
  12418. .e_add_list_title {
  12419. font-size: 20px;
  12420. width: 100%;
  12421. box-sizing: border-box;
  12422. padding: 15px 40px;
  12423. text-align: center;
  12424. border-bottom: 1px solid #eaeaea;
  12425. position: relative;
  12426. display: flex;
  12427. align-items: center;
  12428. justify-content: center;
  12429. height: 57px;
  12430. background: #f6f6f6;
  12431. }
  12432. .e_add_list_title span {
  12433. overflow: hidden;
  12434. white-space: nowrap;
  12435. text-overflow: ellipsis;
  12436. }
  12437. .e_add_list_title img {
  12438. position: absolute;
  12439. right: 15px;
  12440. width: 25px;
  12441. cursor: pointer;
  12442. top: 50%;
  12443. transform: translateY(-50%);
  12444. }
  12445. .e_add_list_body {
  12446. height: calc(100% - 187px);
  12447. overflow: auto;
  12448. }
  12449. .e_add_list_child {
  12450. width: 100%;
  12451. display: flex;
  12452. align-items: center;
  12453. justify-content: center;
  12454. position: relative;
  12455. box-sizing: border-box;
  12456. padding: 15px 40px;
  12457. text-align: center;
  12458. }
  12459. .e_add_list_child span {
  12460. overflow: hidden;
  12461. white-space: nowrap;
  12462. text-overflow: ellipsis;
  12463. cursor: pointer;
  12464. }
  12465. .e_add_list_child img {
  12466. position: absolute;
  12467. right: 10px;
  12468. width: 21px;
  12469. cursor: pointer;
  12470. top: 50%;
  12471. transform: translateY(-50%);
  12472. }
  12473. .e_add_list_child+.e_add_list_child {
  12474. border-top: 1px solid #eaeaea;
  12475. }
  12476. .e_add_list_child .active {
  12477. color: #409eff;
  12478. }
  12479. .e_add_list_btn {
  12480. position: absolute;
  12481. bottom: 0;
  12482. height: 50px;
  12483. background: rgb(120, 120, 254);
  12484. width: 100%;
  12485. color: #fff;
  12486. font-size: 16px;
  12487. text-align: center;
  12488. line-height: 50px;
  12489. cursor: pointer;
  12490. }
  12491. .e_add_list_detail {
  12492. position: absolute;
  12493. bottom: 0;
  12494. height: 130px;
  12495. background: rgb(120, 120, 254);
  12496. width: 100%;
  12497. color: #fff;
  12498. font-size: 16px;
  12499. display: flex;
  12500. align-items: center;
  12501. justify-content: center;
  12502. }
  12503. .e_add_list_detail textarea {
  12504. height: 90%;
  12505. width: 95%;
  12506. border: none;
  12507. resize: none;
  12508. outline: none;
  12509. padding: 5px;
  12510. box-sizing: border-box;
  12511. }
  12512. .e_add_list_pbox {
  12513. width: 100%;
  12514. max-width: 650px;
  12515. /* height: 600px; */
  12516. }
  12517. .e_add_list_pbox_title {
  12518. height: 50px;
  12519. background: #fff;
  12520. display: flex;
  12521. align-items: center;
  12522. width: 100%;
  12523. box-sizing: border-box;
  12524. padding: 0 20px;
  12525. }
  12526. .type_title {
  12527. font-size: 18px;
  12528. font-weight: 700;
  12529. }
  12530. .type_content {
  12531. font-size: 16px;
  12532. margin-left: 30px;
  12533. }
  12534. .type_content span+span {
  12535. margin-left: 20px;
  12536. }
  12537. .type_content span {
  12538. cursor: pointer;
  12539. padding-bottom: 5px;
  12540. box-sizing: border-box;
  12541. }
  12542. .type_content .active {
  12543. color: #409eff;
  12544. border-bottom: 2px solid #409eff;
  12545. }
  12546. .e_add_list_pbox_content {
  12547. height: calc(100% - 50px);
  12548. display: flex;
  12549. align-items: center;
  12550. width: 100%;
  12551. background: #fff;
  12552. }
  12553. .evaCss {
  12554. display: flex;
  12555. flex-direction: row;
  12556. flex-wrap: nowrap;
  12557. align-items: flex-start;
  12558. }
  12559. .cru_line {
  12560. position: absolute;
  12561. bottom: 0px;
  12562. transition: all 0.5s;
  12563. left: 0px;
  12564. width: 125px;
  12565. margin-left: -25px;
  12566. }
  12567. .isNoMessage {
  12568. width: 20%;
  12569. margin: 25% auto 0;
  12570. }
  12571. .isNoMessage>img {
  12572. width: 100%;
  12573. height: 100%;
  12574. }
  12575. .fullStyle>>>.el-dialog__body {
  12576. height: 100% !important;
  12577. }
  12578. .fullStyle>>>.el-dialog,
  12579. .fullStyle {
  12580. width: 100% !important;
  12581. max-width: 100% !important;
  12582. height: 100% !important;
  12583. margin: 0 !important;
  12584. }
  12585. .full_diy>>>.el-dialog {
  12586. margin: 0 !important;
  12587. height: 100%;
  12588. padding: 4px;
  12589. }
  12590. .full_diy>>>.el-dialog__body {
  12591. height: calc(100% - 100px);
  12592. }
  12593. .full_diy2>>>.el-dialog__body {
  12594. height: calc(100% - 50px);
  12595. padding: 0;
  12596. }
  12597. .switchCss {
  12598. /* width: 100%; */
  12599. display: flex;
  12600. flex-direction: row;
  12601. flex-wrap: nowrap;
  12602. align-items: center;
  12603. /* justify-content: center; */
  12604. }
  12605. .isClickNav {
  12606. color: #499eef;
  12607. }
  12608. .commentImg {
  12609. width: 25px;
  12610. height: 25px;
  12611. cursor: pointer;
  12612. }
  12613. .commentImg>img {
  12614. width: 100%;
  12615. height: 100%;
  12616. }
  12617. .comment {
  12618. background: #f9f9f9;
  12619. border-radius: 0 0 15px 15px;
  12620. display: flex;
  12621. flex-direction: row;
  12622. flex-wrap: nowrap;
  12623. align-items: center;
  12624. justify-content: flex-end;
  12625. height: 35px;
  12626. }
  12627. .commentList {
  12628. display: flex;
  12629. flex-direction: row;
  12630. flex-wrap: nowrap;
  12631. align-items: center;
  12632. justify-content: center;
  12633. align-content: center;
  12634. /* margin-left: 15px; */
  12635. /* margin-left: 8px; */
  12636. }
  12637. .scoreImg {
  12638. width: 17px;
  12639. height: 17px;
  12640. }
  12641. .studentDetail {
  12642. display: flex;
  12643. flex-direction: row;
  12644. flex-wrap: nowrap;
  12645. /* align-items: center; */
  12646. align-items: flex-start;
  12647. }
  12648. .tx {
  12649. width: 50px;
  12650. }
  12651. .tx>img {
  12652. width: 100%;
  12653. height: 100%;
  12654. }
  12655. .nameAndTime {
  12656. display: flex;
  12657. flex-direction: column;
  12658. flex-wrap: nowrap;
  12659. align-items: flex-start;
  12660. margin-left: 10px;
  12661. }
  12662. .worksAnswer {
  12663. color: #4078dd;
  12664. margin: 10px 0;
  12665. font-size: 16px;
  12666. position: relative;
  12667. }
  12668. .worksAnswer>img {
  12669. width: 500px;
  12670. height: 300px;
  12671. object-fit: contain;
  12672. margin: 0 auto;
  12673. display: block;
  12674. }
  12675. .commentTop {
  12676. border-bottom: 1px solid #eaeaea;
  12677. padding-bottom: 10px;
  12678. }
  12679. .commentBox {
  12680. padding-top: 15px;
  12681. }
  12682. .pl {
  12683. font-size: 18px;
  12684. }
  12685. .plPerson {
  12686. width: 100%;
  12687. }
  12688. .plName {
  12689. display: flex;
  12690. flex-direction: row;
  12691. flex-wrap: nowrap;
  12692. align-items: baseline;
  12693. color: #78787a;
  12694. width: 100%;
  12695. }
  12696. .deleteComment {
  12697. cursor: pointer;
  12698. margin-left: auto;
  12699. color: #237ade;
  12700. }
  12701. .plContent {
  12702. margin-top: 5px;
  12703. }
  12704. .evalCss {
  12705. background: #fff;
  12706. font-size: 18px;
  12707. }
  12708. .nav {
  12709. color: #9d9d9d;
  12710. padding: 5px 0 15px 20px;
  12711. }
  12712. .middleBox {
  12713. padding: 5px 0 15px 20px;
  12714. }
  12715. .pfBox {
  12716. padding-bottom: 30px;
  12717. }
  12718. .nameAndrate {
  12719. display: flex;
  12720. flex-direction: row;
  12721. flex-wrap: nowrap;
  12722. align-items: center;
  12723. padding-bottom: 10px;
  12724. height: 30px;
  12725. line-height: 30px;
  12726. }
  12727. .nameAndrate>div {
  12728. margin-left: 10px;
  12729. color: #000;
  12730. height: 30px;
  12731. }
  12732. .nameAndrate>>>.el-rate__icon {
  12733. font-size: 28px !important;
  12734. }
  12735. .pfBox>div:nth-child(2) {
  12736. background: #f7f6f9;
  12737. width: 400px;
  12738. min-height: 45px;
  12739. border-radius: 10px;
  12740. font-size: 16px;
  12741. display: flex;
  12742. flex-wrap: wrap;
  12743. align-items: center;
  12744. padding: 10px 20px;
  12745. box-sizing: border-box;
  12746. color: #000;
  12747. }
  12748. .bz {
  12749. display: flex;
  12750. flex-direction: row;
  12751. flex-wrap: nowrap;
  12752. align-items: flex-start;
  12753. }
  12754. .bz>div {
  12755. padding: 0 10px;
  12756. }
  12757. .select_box2_title {
  12758. background: #fff;
  12759. border-radius: 5px;
  12760. padding: 15px 10px;
  12761. box-sizing: border-box;
  12762. margin-bottom: 10px;
  12763. display: flex;
  12764. flex-direction: row;
  12765. flex-wrap: nowrap;
  12766. align-items: center;
  12767. }
  12768. .select_box2_title>div:nth-child(2) {
  12769. margin-left: 10px;
  12770. color: #c4c4c4;
  12771. }
  12772. .select_box2_box {
  12773. display: flex;
  12774. height: 500px;
  12775. }
  12776. .select_box2_img {
  12777. width: calc(100% - 310px);
  12778. height: 100%;
  12779. overflow: auto;
  12780. background: #fff;
  12781. border-radius: 5px;
  12782. }
  12783. .select_box2_img img {
  12784. width: 100%;
  12785. }
  12786. .select_box2_answer {
  12787. background: #fff;
  12788. margin-left: 10px;
  12789. border-radius: 5px;
  12790. width: 300px;
  12791. overflow: auto;
  12792. height: 90%;
  12793. display: flex;
  12794. flex-direction: column;
  12795. align-items: flex-start;
  12796. padding-top: 10px;
  12797. box-sizing: border-box;
  12798. position: relative;
  12799. }
  12800. .select_answer_title {
  12801. padding: 0 0 15px 20px;
  12802. color: #c4c4c4;
  12803. }
  12804. .select_box2_answer_box {
  12805. margin: 0 0 10px 20px;
  12806. width: 85%;
  12807. display: flex;
  12808. flex-direction: row;
  12809. flex-wrap: nowrap;
  12810. align-items: center;
  12811. }
  12812. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  12813. color: #000;
  12814. }
  12815. .upAnswerCss {
  12816. position: absolute;
  12817. bottom: 15px;
  12818. right: 15px;
  12819. }
  12820. .upAnswerCss>>>.el-button {
  12821. width: 95px;
  12822. height: 35px;
  12823. line-height: 35px;
  12824. padding: 0;
  12825. }
  12826. .rightWidthCss {
  12827. width: 60%;
  12828. display: flex;
  12829. flex-direction: row;
  12830. align-items: flex-start;
  12831. }
  12832. .rightAnswer {
  12833. display: flex;
  12834. flex-direction: row;
  12835. flex-wrap: nowrap;
  12836. align-items: center;
  12837. color: red;
  12838. margin-bottom: 31px;
  12839. }
  12840. .rightAnswerCss {
  12841. display: flex;
  12842. flex-direction: column;
  12843. flex-wrap: nowrap;
  12844. padding-top: 60px;
  12845. }
  12846. .blueCss {
  12847. color: #767de1;
  12848. margin-left: 10px;
  12849. }
  12850. .redCss {
  12851. color: red;
  12852. }
  12853. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  12854. color: rgb(0 123 255) !important;
  12855. }
  12856. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  12857. color: rgb(0 123 255) !important;
  12858. }
  12859. .zuoyeYulan {
  12860. padding-top: 15px;
  12861. font-size: 18px;
  12862. display: flex;
  12863. align-items: flex-end;
  12864. }
  12865. .buttonA {
  12866. margin-left: 10px;
  12867. padding: 0;
  12868. }
  12869. .displayBox {
  12870. margin-bottom: 10px;
  12871. display: block;
  12872. border-bottom: 3px solid #eee;
  12873. display: flex;
  12874. align-items: center;
  12875. }
  12876. .easy_comment {
  12877. width: calc(100% - 90px);
  12878. margin-left: 10px;
  12879. display: flex;
  12880. flex-wrap: wrap;
  12881. }
  12882. .easy_comment>div {
  12883. border: 1px solid #4a4a4a;
  12884. color: #666;
  12885. border-radius: 15px;
  12886. padding: 5px 10px;
  12887. font-size: 16px;
  12888. margin-bottom: 10px;
  12889. margin-right: 5px;
  12890. cursor: pointer;
  12891. }
  12892. .easy_comment div:hover {
  12893. border: 1px solid #f7ba2a;
  12894. color: #c69217;
  12895. }
  12896. .xuan_right_box {
  12897. padding: 10px;
  12898. background: rgb(247, 247, 247);
  12899. margin: 10px 12px;
  12900. border-radius: 5px;
  12901. }
  12902. .tool_right_box {
  12903. display: flex;
  12904. align-items: center;
  12905. }
  12906. .tool_right_box+.tool_right_box {
  12907. margin-top: 10px;
  12908. }
  12909. .right_box_xuan {
  12910. background: rgb(0 123 255);
  12911. color: #fff;
  12912. border-radius: 5px;
  12913. padding: 5px;
  12914. margin-left: 10px;
  12915. }
  12916. .pButton:hover {
  12917. opacity: 1 !important;
  12918. }
  12919. .pButton {
  12920. position: fixed;
  12921. /* right: 5%; */
  12922. /* bottom: 5%; */
  12923. color: #fff;
  12924. /* width: 50px;
  12925. height: 50px; */
  12926. /* border-radius: 50%; */
  12927. text-align: center;
  12928. /* line-height: 50px; */
  12929. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  12930. cursor: pointer;
  12931. z-index: 999;
  12932. right: 0;
  12933. top: 83px;
  12934. width: 50px;
  12935. height: 50px;
  12936. background: #fff;
  12937. display: flex;
  12938. align-items: center;
  12939. justify-content: center;
  12940. box-shadow: 0px 0 8px 2px #c5c5c5;
  12941. border-radius: 5px;
  12942. }
  12943. .pzClass {
  12944. width: calc(100% - 340px);
  12945. }
  12946. .newDialogCss {
  12947. /* position: fixed;
  12948. right: 5%;
  12949. top: 50%;
  12950. width: 340px;
  12951. transform: translateY(-50%);
  12952. height: 60%;
  12953. box-shadow: 0px 0 8px 0px #555555;
  12954. border-radius: 15px;
  12955. z-index: 999; */
  12956. position: fixed;
  12957. right: 0;
  12958. top: 70px;
  12959. width: 340px;
  12960. height: calc(100% - 80px);
  12961. z-index: 999;
  12962. background: #fff;
  12963. border-radius: 15px;
  12964. border-top-right-radius: 0px;
  12965. border-bottom-right-radius: 0px;
  12966. overflow: hidden;
  12967. }
  12968. .pzTop {
  12969. color: #fff;
  12970. background: #000;
  12971. display: flex;
  12972. flex-direction: row;
  12973. flex-wrap: nowrap;
  12974. align-items: center;
  12975. justify-content: space-between;
  12976. height: 40px;
  12977. border-radius: 15px 15px 0 0;
  12978. }
  12979. .pzTop2 .checkbox {
  12980. display: flex;
  12981. align-items: center;
  12982. padding: 15px 30px;
  12983. flex: 0 0 auto;
  12984. font-weight: bold;
  12985. border-bottom: 1px solid #eee;
  12986. justify-content: space-between;
  12987. }
  12988. .pzTop2 .check {
  12989. text-align: center;
  12990. cursor: pointer;
  12991. box-sizing: border-box;
  12992. display: flex;
  12993. }
  12994. .pzTop2 img {
  12995. width: 25px;
  12996. cursor: pointer;
  12997. }
  12998. .pzTop>div:nth-child(1) {
  12999. padding-left: 10px;
  13000. }
  13001. .pzTop>div:nth-child(2) {
  13002. width: 15px;
  13003. height: 15px;
  13004. padding-right: 10px;
  13005. cursor: pointer;
  13006. }
  13007. .pzTop>div:nth-child(2)>img {
  13008. width: 100%;
  13009. height: 100%;
  13010. }
  13011. .pzBox,
  13012. .noPzBox {
  13013. height: calc(100% - 60px);
  13014. /* background: #ededed; */
  13015. background: #fff;
  13016. /* border-radius: 0 0 15px 15px; */
  13017. }
  13018. .noPzBox {
  13019. display: flex;
  13020. flex-direction: column;
  13021. flex-wrap: nowrap;
  13022. justify-content: center;
  13023. align-items: center;
  13024. }
  13025. .pzList {
  13026. background: #f7f7f7;
  13027. width: 90%;
  13028. margin: 0 auto 15px;
  13029. border-radius: 5px;
  13030. }
  13031. .pzNavTop {
  13032. display: flex;
  13033. flex-direction: row;
  13034. flex-wrap: nowrap;
  13035. padding: 10px 10px 0 10px;
  13036. align-items: center;
  13037. }
  13038. .pzDelete {
  13039. cursor: pointer;
  13040. margin-left: auto;
  13041. font-size: 14px;
  13042. color: #afafaf;
  13043. }
  13044. .pzNavTop>div:nth-child(1) {
  13045. background: #3760af;
  13046. width: 35px;
  13047. height: 35px;
  13048. color: #fff;
  13049. text-align: center;
  13050. line-height: 35px;
  13051. border-radius: 50%;
  13052. font-size: 14px;
  13053. }
  13054. .pzNavTop>div:nth-child(2) {
  13055. font-size: 18px;
  13056. color: #959595;
  13057. margin-left: 5px;
  13058. }
  13059. .pzContent {
  13060. padding: 10px;
  13061. word-break: break-word;
  13062. }
  13063. .pzContent audio {
  13064. width: 100%;
  13065. }
  13066. .pzContent audio::-webkit-media-controls-panel {
  13067. background: #fff;
  13068. }
  13069. .pzListBox {
  13070. padding-top: 15px;
  13071. height: calc(100% - 60px);
  13072. overflow: auto;
  13073. }
  13074. .addPzButton {
  13075. position: relative;
  13076. margin-top: 3px;
  13077. width: 100%;
  13078. }
  13079. .addPzButton .img1 {
  13080. position: absolute;
  13081. top: 50%;
  13082. right: 25px;
  13083. transform: translateY(-50%);
  13084. height: 100%;
  13085. display: flex;
  13086. align-items: center;
  13087. }
  13088. .addPzButton .img1 div {
  13089. display: flex;
  13090. }
  13091. .addPzButton .img1 div img {
  13092. width: 28px;
  13093. margin-left: 10px;
  13094. cursor: pointer;
  13095. }
  13096. .addPzButton .img1 div span {
  13097. font-size: 14px;
  13098. margin: 4px 0 0 3px;
  13099. color: #afafaf;
  13100. }
  13101. .addPz {
  13102. background: #4b79ce;
  13103. width: 100px;
  13104. color: #fff;
  13105. font-size: 12px;
  13106. height: 30px;
  13107. margin: 0 auto;
  13108. text-align: center;
  13109. line-height: 30px;
  13110. border-radius: 10px;
  13111. cursor: pointer;
  13112. }
  13113. .addDialogCss {
  13114. position: fixed;
  13115. right: 37%;
  13116. top: 50%;
  13117. width: 600px;
  13118. transform: translateY(-50%);
  13119. height: 70%;
  13120. min-height: 450px;
  13121. box-shadow: 0px 0 8px 0px #555555;
  13122. border-radius: 15px;
  13123. z-index: 999;
  13124. }
  13125. .teacherPz {
  13126. display: flex;
  13127. flex-direction: row;
  13128. align-items: center;
  13129. flex-wrap: nowrap;
  13130. }
  13131. .teacherPzImg {
  13132. width: 30px;
  13133. height: 30px;
  13134. }
  13135. .teacherPzImg>img {
  13136. width: 100%;
  13137. height: 100%;
  13138. }
  13139. .addPzBox {
  13140. height: calc(100% - 40px);
  13141. background: #ededed;
  13142. }
  13143. .pzAudioClass {
  13144. margin: 15px 14px;
  13145. background: #fff;
  13146. height: 100%;
  13147. display: flex;
  13148. justify-content: center;
  13149. align-items: center;
  13150. }
  13151. .pzConText {
  13152. width: 95%;
  13153. height: 100%;
  13154. margin: 10px auto 0;
  13155. border: none;
  13156. background: #fff;
  13157. border-radius: 0px;
  13158. }
  13159. .pzConText>>>.text {
  13160. height: calc(100% - 82px);
  13161. }
  13162. .addTextCss {
  13163. background: #4b79ce;
  13164. width: 80px;
  13165. height: 30px;
  13166. text-align: center;
  13167. color: #fff;
  13168. line-height: 30px;
  13169. border-radius: 10px;
  13170. margin: 10px auto 0;
  13171. cursor: pointer;
  13172. }
  13173. .pzConText:focus-visible {
  13174. border: none !important;
  13175. }
  13176. .maxWidth {
  13177. width: 1000px;
  13178. }
  13179. .noPz {
  13180. width: 150px;
  13181. margin: 0 auto 20%;
  13182. }
  13183. .noPz>img {
  13184. width: 100%;
  13185. height: 100%;
  13186. }
  13187. .pzList .time {
  13188. text-align: right;
  13189. box-sizing: border-box;
  13190. padding: 0 10px 10px 0px;
  13191. color: #949494;
  13192. font-size: 14px;
  13193. }
  13194. /* table 样式 */
  13195. .cont>>>table {
  13196. border-top: 1px solid #ccc;
  13197. border-left: 1px solid #ccc;
  13198. }
  13199. .cont>>>table td,
  13200. .cont>>>table th {
  13201. border-bottom: 1px solid #ccc;
  13202. border-right: 1px solid #ccc;
  13203. padding: 15px 5px;
  13204. max-width: 0px;
  13205. }
  13206. .cont>>>table th {
  13207. border-bottom: 2px solid #ccc;
  13208. text-align: center;
  13209. }
  13210. /* blockquote 样式 */
  13211. .cont>>>blockquote {
  13212. display: block;
  13213. border-left: 8px solid #d0e5f2;
  13214. padding: 5px 10px;
  13215. margin: 10px 0;
  13216. line-height: 1.4;
  13217. font-size: 100%;
  13218. background-color: #f1f1f1;
  13219. }
  13220. .addPzCheck {
  13221. display: flex;
  13222. flex-direction: row;
  13223. flex-wrap: nowrap;
  13224. padding: 10px 15px 0;
  13225. }
  13226. .addPzCheck span {
  13227. cursor: pointer;
  13228. padding-bottom: 5px;
  13229. font-weight: bold;
  13230. }
  13231. .addPzCheck span+span {
  13232. margin-left: 10px;
  13233. }
  13234. .addPzCheck .isChooseActive {
  13235. color: #3e88f4;
  13236. border-bottom: 2px solid #2f80f3;
  13237. }
  13238. /* code 样式 */
  13239. .cont>>>code {
  13240. display: inline-block;
  13241. *display: inline;
  13242. *zoom: 1;
  13243. background-color: #f1f1f1;
  13244. border-radius: 3px;
  13245. padding: 3px 5px;
  13246. margin: 0 3px;
  13247. }
  13248. .cont>>>pre code {
  13249. display: block;
  13250. }
  13251. /* ul ol 样式 */
  13252. .cont>>>ul,
  13253. ol {
  13254. margin: 10px 0 10px 20px;
  13255. }
  13256. .scoreBox,
  13257. .scoreDetailBox {
  13258. display: flex;
  13259. align-items: center;
  13260. justify-content: flex-start;
  13261. margin-top: 20px;
  13262. font-size: 18px;
  13263. width: 100%;
  13264. }
  13265. .scoreBox .t,
  13266. .scoreDetailBox .t {
  13267. margin-right: 10px;
  13268. width: 100px;
  13269. text-align: right;
  13270. }
  13271. .scoreDetailBox {
  13272. align-items: flex-start;
  13273. }
  13274. .scoreDetailBox>>>.el-textarea {
  13275. width: calc(100% - 200px);
  13276. }
  13277. .scoreBox>>>.el-input {
  13278. width: 130px;
  13279. font-size: 38px;
  13280. }
  13281. .scoreBox>>>.el-input__inner {
  13282. height: 60px;
  13283. }
  13284. .answerScore {
  13285. position: absolute;
  13286. top: 10px;
  13287. right: 10px;
  13288. background: #0000008f;
  13289. border-radius: 5px;
  13290. padding: 3px 5px;
  13291. font-size: 14px;
  13292. color: #fff;
  13293. cursor: pointer;
  13294. }
  13295. .open_box .switch_box {
  13296. width: 100%;
  13297. margin: 0 auto;
  13298. display: flex;
  13299. justify-content: space-between;
  13300. }
  13301. .open_box .switch_box+.switch_box {
  13302. margin-top: 10px;
  13303. }
  13304. .deleteImg {
  13305. width: 25px !important;
  13306. height: 25px !important;
  13307. cursor: pointer;
  13308. position: absolute;
  13309. top: 10px;
  13310. right: 10px;
  13311. }
  13312. .deleteImg2 {
  13313. width: 15px !important;
  13314. height: 15px !important;
  13315. top: 5px;
  13316. right: 5px;
  13317. }
  13318. .rightW {
  13319. right: 40px;
  13320. }
  13321. .drawPBox {
  13322. display: flex;
  13323. flex-direction: column;
  13324. position: relative;
  13325. }
  13326. .drawPBox span {
  13327. font-size: 18px;
  13328. color: #606266;
  13329. padding-bottom: 10px;
  13330. margin: 10px 0;
  13331. border-bottom: 1px solid #eaeaea;
  13332. }
  13333. .drawPBox img {
  13334. width: 500px;
  13335. height: 300px;
  13336. object-fit: contain;
  13337. cursor: pointer;
  13338. margin: 0 auto;
  13339. }
  13340. .sentenBox {
  13341. background: #fff;
  13342. height: 450px;
  13343. overflow: auto;
  13344. background-image: url("../../assets/icon/conSentences/stuBg.png");
  13345. background-position: 102%;
  13346. background-repeat: no-repeat;
  13347. background-size: 60%;
  13348. }
  13349. .addSen {
  13350. background: #409efe;
  13351. width: 90px;
  13352. color: #fff;
  13353. height: 35px;
  13354. text-align: center;
  13355. line-height: 35px;
  13356. border-radius: 5px;
  13357. float: right;
  13358. margin: 10px 20px 0 0;
  13359. cursor: pointer;
  13360. }
  13361. .sentenTop {
  13362. display: flex;
  13363. flex-direction: row;
  13364. flex-wrap: nowrap;
  13365. align-items: center;
  13366. padding: 55px 0 0 20px;
  13367. box-sizing: border-box;
  13368. }
  13369. .sentenTop>div:nth-child(2) {
  13370. width: 300px;
  13371. margin: 0 15px;
  13372. }
  13373. .sentenTop>div:nth-child(3) {
  13374. background: #409efe;
  13375. color: #fff;
  13376. width: 65px;
  13377. height: 35px;
  13378. text-align: center;
  13379. line-height: 35px;
  13380. border-radius: 5px;
  13381. cursor: pointer;
  13382. }
  13383. .cardList,
  13384. .cardList1 {
  13385. padding: 10px 0 10px 0;
  13386. display: flex;
  13387. flex-direction: row;
  13388. flex-wrap: wrap;
  13389. align-items: center;
  13390. box-sizing: border-box;
  13391. border-bottom: 1px solid #f4f4f4;
  13392. width: 98%;
  13393. margin: 0 auto;
  13394. min-width: 60%;
  13395. max-width: 85%;
  13396. }
  13397. .cardList1 {
  13398. padding: 10px 0 10px 10px !important;
  13399. margin: 0 !important;
  13400. }
  13401. .cardBox {
  13402. display: flex;
  13403. flex-direction: row;
  13404. flex-wrap: wrap;
  13405. align-items: center;
  13406. align-content: center;
  13407. }
  13408. .cardBox>div {
  13409. margin-bottom: 10px;
  13410. }
  13411. .isCard,
  13412. .isChooseCard,
  13413. .noCard,
  13414. .isCard1 {
  13415. width: 130px;
  13416. height: 60px;
  13417. text-align: center;
  13418. line-height: 60px;
  13419. font-size: 20px;
  13420. cursor: pointer;
  13421. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  13422. background-size: cover;
  13423. transition: all 2s;
  13424. margin-right: 20px;
  13425. }
  13426. .isCard>div,
  13427. .noCard>div,
  13428. .isCard1>div {
  13429. white-space: nowrap;
  13430. overflow: hidden;
  13431. text-overflow: ellipsis;
  13432. width: 75%;
  13433. margin: 0 auto;
  13434. }
  13435. .noCard {
  13436. background-image: none;
  13437. }
  13438. .isCard1 {
  13439. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  13440. }
  13441. .isChooseCard {
  13442. background-image: none;
  13443. border: 1px dashed #b9b9b9;
  13444. border-radius: 10px;
  13445. }
  13446. .card {
  13447. width: 130px;
  13448. height: 60px;
  13449. }
  13450. .card>img {
  13451. width: 100%;
  13452. height: 100%;
  13453. }
  13454. .rightCardBox {
  13455. margin: 10px 0 0 10px;
  13456. }
  13457. .rightCardBox>div:nth-child(1) {
  13458. margin-bottom: 10px;
  13459. }
  13460. .cardCss {
  13461. display: flex;
  13462. flex-direction: column;
  13463. flex-wrap: nowrap;
  13464. align-items: center;
  13465. border-bottom: 3px solid #b4c3d3;
  13466. padding: 0 0 5px 0;
  13467. margin-right: 10px;
  13468. }
  13469. .cardCss>div:nth-child(2) {
  13470. background: #5b7b9d;
  13471. color: #fff;
  13472. width: 20px;
  13473. height: 20px;
  13474. border-radius: 50%;
  13475. text-align: center;
  13476. line-height: 20px;
  13477. }
  13478. .isWrong {
  13479. display: flex;
  13480. flex-direction: row;
  13481. flex-wrap: nowrap;
  13482. align-content: center;
  13483. align-items: center;
  13484. }
  13485. .answerRight {
  13486. width: 25%;
  13487. }
  13488. .isTj {
  13489. display: flex;
  13490. flex-direction: row;
  13491. flex-wrap: nowrap;
  13492. align-items: center;
  13493. }
  13494. .isTj>div:nth-child(2) {
  13495. color: #727070;
  13496. margin-left: 10px;
  13497. }
  13498. .isTjImg {
  13499. width: 30px;
  13500. height: 30px;
  13501. }
  13502. .isTjImg>img {
  13503. width: 100%;
  13504. height: 100%;
  13505. }
  13506. .cardAnswerBox {
  13507. font-size: 18px;
  13508. width: 97%;
  13509. border: 5px;
  13510. padding: 0;
  13511. border-radius: 5px;
  13512. margin: 10px auto;
  13513. word-break: break-word;
  13514. }
  13515. .w_name {
  13516. margin-bottom: 10px;
  13517. }
  13518. .w_name span {
  13519. font-size: 16px;
  13520. }
  13521. .w_teachert {
  13522. width: 50px !important;
  13523. position: absolute;
  13524. height: auto !important;
  13525. z-index: 10;
  13526. right: 25px;
  13527. top: -25px;
  13528. }
  13529. .group_workBox {}
  13530. .group_workBox+.group_workBox {
  13531. margin-top: 20px;
  13532. }
  13533. .group_box {
  13534. padding-bottom: 20px;
  13535. border-bottom: 2px solid #f0f0f0;
  13536. }
  13537. .group_title {
  13538. display: flex;
  13539. align-items: center;
  13540. justify-content: space-between;
  13541. }
  13542. .group_name {
  13543. background-image: url(../../assets/icon/groupN.png);
  13544. width: 220px;
  13545. background-size: 100% 100%;
  13546. height: 67px;
  13547. padding: 0 20px 0 43px;
  13548. box-sizing: border-box;
  13549. line-height: 63px;
  13550. color: #fff;
  13551. overflow: hidden;
  13552. white-space: nowrap;
  13553. text-overflow: ellipsis;
  13554. }
  13555. .group_work {
  13556. width: 100%;
  13557. padding: 0 10px;
  13558. box-sizing: border-box;
  13559. display: flex;
  13560. flex-wrap: wrap;
  13561. }
  13562. .g_d_box {
  13563. display: flex;
  13564. flex-flow: wrap;
  13565. justify-content: space-around;
  13566. }
  13567. .g_d_box .isChair {
  13568. background-image: url(../../assets/avatar.png) !important;
  13569. }
  13570. .g_d_group {
  13571. width: 500px;
  13572. margin-bottom: 80px;
  13573. }
  13574. .g_d_group_chair {
  13575. display: flex;
  13576. align-items: center;
  13577. justify-content: center;
  13578. }
  13579. .g_d_group_chair>div+div {
  13580. margin-left: 30px;
  13581. }
  13582. .g_d_group_chair>div,
  13583. .g_d_group_chair2>div {
  13584. display: flex;
  13585. flex-direction: column;
  13586. align-items: center;
  13587. }
  13588. .g_d_group_chair>div>span:nth-child(1),
  13589. .g_d_group_chair2>div>span:nth-child(1) {
  13590. background-image: url(../../assets/icon/chair.png);
  13591. width: 50px;
  13592. height: 50px;
  13593. display: block;
  13594. background-size: 100% 100%;
  13595. }
  13596. .g_d_group_tableBox {
  13597. display: flex;
  13598. align-items: center;
  13599. justify-content: center;
  13600. }
  13601. .g_d_group_chair2 {
  13602. display: flex;
  13603. flex-direction: column;
  13604. align-items: center;
  13605. justify-content: center;
  13606. }
  13607. .g_d_group_chair2>div+div {
  13608. margin-top: 10px;
  13609. }
  13610. .g_d_group_table {
  13611. background-image: url(../../assets/icon/groupBg.png);
  13612. width: 354px;
  13613. height: 196px;
  13614. background-size: 100% 100%;
  13615. display: flex;
  13616. align-items: center;
  13617. justify-content: center;
  13618. flex-direction: column;
  13619. color: #fff;
  13620. }
  13621. .g_d_group_table>div:nth-child(1) {
  13622. font-size: 24px;
  13623. margin-bottom: 5px;
  13624. }
  13625. .g_d_group_table>div:nth-child(2) div {
  13626. cursor: pointer;
  13627. background: #2e77bf;
  13628. padding: 4px 10px;
  13629. border-radius: 5px;
  13630. }
  13631. .groupBox {}
  13632. .groupContent+.groupContent {
  13633. margin-top: 30px;
  13634. }
  13635. .groupTitle {
  13636. font-size: 24px;
  13637. color: rgb(80, 80, 80);
  13638. margin-bottom: 20px;
  13639. }
  13640. .groupName {
  13641. display: flex;
  13642. align-items: center;
  13643. }
  13644. .groupn {
  13645. font-size: 15px;
  13646. margin-right: 10px;
  13647. }
  13648. .groupName+.groupName {
  13649. margin-top: 15px;
  13650. }
  13651. .groupBtn {
  13652. margin-left: 10px;
  13653. }
  13654. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13655. text-align: left;
  13656. }
  13657. .g_d_btnBox {
  13658. display: flex;
  13659. justify-content: flex-end;
  13660. align-items: flex-end;
  13661. margin-bottom: 20px;
  13662. }
  13663. .updateChair {
  13664. position: relative;
  13665. }
  13666. .updateChairBtn {
  13667. position: absolute;
  13668. width: 50px;
  13669. height: 50px;
  13670. overflow: hidden;
  13671. /* display: flex; */
  13672. align-items: center;
  13673. justify-content: center;
  13674. background: #00000087;
  13675. color: #fff;
  13676. border-radius: 50px;
  13677. display: none;
  13678. cursor: pointer;
  13679. }
  13680. .updateChair:hover .updateChairBtn {
  13681. display: flex;
  13682. }
  13683. .group_staic_box {
  13684. display: flex;
  13685. padding: 30px 40px 10px;
  13686. flex-wrap: wrap;
  13687. }
  13688. .group_staic {
  13689. /* width: 50%; */
  13690. margin-bottom: 20px;
  13691. display: flex;
  13692. align-items: center;
  13693. }
  13694. .group_staic span:nth-child(1) {
  13695. width: 150px;
  13696. text-align: right;
  13697. margin-right: 15px;
  13698. }
  13699. .group_staic span:nth-child(2) {
  13700. background: rgb(0 123 255);
  13701. color: #fff;
  13702. border-radius: 5px;
  13703. padding: 5px;
  13704. }
  13705. .codeFileBox {
  13706. height: 300px;
  13707. background: #fff;
  13708. display: flex;
  13709. align-items: center;
  13710. justify-content: center;
  13711. }
  13712. .codeFileBox img {
  13713. width: 200px;
  13714. margin: 0;
  13715. height: auto;
  13716. }
  13717. .codeFileBox div {
  13718. background: rgb(80, 142, 226);
  13719. color: #fff;
  13720. padding: 10px 20px;
  13721. border-radius: 25px;
  13722. cursor: pointer;
  13723. margin-left: 15px;
  13724. }
  13725. .radioBox {
  13726. display: flex;
  13727. flex-direction: row;
  13728. flex-wrap: nowrap;
  13729. align-items: center;
  13730. }
  13731. .radioBox>div {
  13732. margin: 10px 0 0 10px;
  13733. }
  13734. /* .radioBox >>> .el-radio__input,
  13735. .radioBox >>> .el-checkbox__inner {
  13736. margin-left: 10px;
  13737. } */
  13738. .radioBox>>>.el-radio__label,
  13739. .radioBox>>>.el-checkbox__label {
  13740. display: flex;
  13741. align-items: center;
  13742. }
  13743. .inImg {
  13744. width: 100px;
  13745. cursor: pointer;
  13746. }
  13747. .inImg>img {
  13748. width: 100%;
  13749. height: 100%;
  13750. object-fit: cover;
  13751. }
  13752. .timuImgBox {
  13753. margin: 10px 0;
  13754. display: flex;
  13755. flex-direction: column;
  13756. flex-wrap: wrap;
  13757. align-items: flex-start;
  13758. }
  13759. .timuImg {
  13760. width: 100px;
  13761. margin: 5px 0;
  13762. cursor: pointer;
  13763. }
  13764. .timuImg>img {
  13765. width: 100%;
  13766. height: 100%;
  13767. object-fit: cover;
  13768. }
  13769. .worksTop {
  13770. display: flex;
  13771. flex-direction: row;
  13772. align-items: flex-end;
  13773. }
  13774. .corOpen {
  13775. margin: 0 0 0 10px;
  13776. font-size: 14px;
  13777. cursor: pointer;
  13778. color: #505050;
  13779. }
  13780. .corOpen:hover {
  13781. color: #499eef;
  13782. }
  13783. .navCorOpenBox {
  13784. display: flex;
  13785. flex-direction: row;
  13786. align-items: center;
  13787. background: #1e5cc9;
  13788. justify-content: space-between;
  13789. }
  13790. .navCorOpen {
  13791. padding-right: 15px;
  13792. cursor: pointer;
  13793. width: 20px;
  13794. display: flex;
  13795. }
  13796. .navCorOpen>img {
  13797. width: 100%;
  13798. height: 100%;
  13799. }
  13800. .mlImg {
  13801. width: 25px !important;
  13802. cursor: pointer;
  13803. margin-top: 5px;
  13804. }
  13805. .mlImg>img {
  13806. width: 100%;
  13807. height: 100%;
  13808. }
  13809. .navLeftCss {
  13810. width: 100% !important;
  13811. left: 0 !important;
  13812. }
  13813. .isContentCss {
  13814. width: 100% !important;
  13815. }
  13816. .isAllWidth {
  13817. width: 100% !important;
  13818. }
  13819. .toolBoxSteps {
  13820. position: absolute;
  13821. top: 50%;
  13822. transform: translateY(-50%);
  13823. cursor: pointer;
  13824. width: 60px;
  13825. display: flex;
  13826. align-items: center;
  13827. justify-content: center;
  13828. }
  13829. .toolBoxSteps:nth-child(1)>img,
  13830. .toolBoxSteps:nth-child(2)>img {
  13831. width: 24px;
  13832. }
  13833. .toolBoxSteps:nth-child(1) {
  13834. left: 0;
  13835. }
  13836. .toolBoxSteps:nth-child(2) {
  13837. right: 0;
  13838. }</style>