studyStudent jiu.vue 747 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 900px;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. "
  13. >
  14. <div class="btnAllNT">
  15. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  16. <img
  17. src="../../assets/icon/learn/addTool.png"
  18. @click="openToolAll"
  19. style="position: relative"
  20. />
  21. <img
  22. src="../../assets/icon/learn/last.png"
  23. @click="nextOrpreSteps(0)"
  24. />
  25. <img
  26. src="../../assets/icon/learn/next.png"
  27. @click="nextOrpreSteps(1)"
  28. />
  29. <img
  30. src="../../assets/icon/learn/return.png"
  31. @click.stop="
  32. goTo(
  33. '/courseDetail?userid=' +
  34. userid +
  35. '&oid=' +
  36. oid +
  37. '&org=' +
  38. org +
  39. '&cid=' +
  40. classId +
  41. '&courseId=' +
  42. id +
  43. '&tType=' +
  44. tType +
  45. '&screenType=' +
  46. screenType
  47. )
  48. "
  49. />
  50. </div>
  51. <div
  52. class="pButton"
  53. style="left: 0; top: 140px"
  54. v-if="mlDialog == false"
  55. @click="setContent2(true)"
  56. >
  57. <!-- 批 , getCourseDetail()-->
  58. <img
  59. src="../../assets/icon/newIcons/isRight.png"
  60. style="width: 45px"
  61. alt=""
  62. />
  63. </div>
  64. <div class="pb_left" v-else>
  65. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  66. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  67. <div class="courseTitle">
  68. <div
  69. style="
  70. max-width: calc(100% - 40px);
  71. width: auto;
  72. white-space: nowrap;
  73. overflow: hidden;
  74. text-overflow: ellipsis;
  75. word-break: break-word;
  76. display: block;
  77. "
  78. >
  79. <el-tooltip
  80. effect="light"
  81. :content="courseDetail.title"
  82. placement="top"
  83. >
  84. <div class="ctitle">
  85. {{ courseDetail.title }}
  86. </div>
  87. </el-tooltip>
  88. </div>
  89. <el-tooltip effect="light" content="收缩" placement="top">
  90. <div class="mlImg" @click="setContent2(false)">
  91. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  92. </div>
  93. </el-tooltip>
  94. </div>
  95. </div>
  96. <div class="cru_selectBox">
  97. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  98. <div class="stageChild" :class="{ navActive: item.isOpen }">
  99. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  100. <div
  101. class="navItem"
  102. :class="{
  103. openTaskActive:
  104. navIndex == taskCount &&
  105. nav.id == navId &&
  106. stageIndex == courseType,
  107. }"
  108. >
  109. <div v-if="nav.tool[0].tool != undefined">
  110. <div
  111. class="closeTri1"
  112. v-if="nav.isOpen"
  113. @click="openTask(stageIndex, navIndex, nav.id)"
  114. >
  115. <img src="../../assets/icon/newIcons/bDown.png" alt />
  116. </div>
  117. <div
  118. class="closeTri1"
  119. v-else
  120. @click="openTask(stageIndex, navIndex, nav.id)"
  121. >
  122. <img src="../../assets/icon/newIcons/right.png" alt />
  123. </div>
  124. </div>
  125. <div v-else class="noToolBlue"></div>
  126. <div
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. class="navItemList"
  129. :class="{
  130. isItemList:
  131. navIndex == taskCount &&
  132. nav.id == navId &&
  133. stageIndex == courseType,
  134. }"
  135. >
  136. <div>任务{{ navIndex + 1 }}:</div>
  137. <el-tooltip
  138. effect="light"
  139. :content="nav.taskName"
  140. placement="top"
  141. >
  142. <div
  143. :style="{
  144. width:
  145. IsLookOpen && !nav.isLook
  146. ? 'calc(100% - 75px)'
  147. : 'auto',
  148. }"
  149. >
  150. {{ nav.taskName }}
  151. </div>
  152. </el-tooltip>
  153. </div>
  154. </div>
  155. <div
  156. v-if="nav.tool[0].tool != undefined"
  157. class="toolChild"
  158. :class="{ toolActive: nav.isOpen }"
  159. >
  160. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  161. <div
  162. class="gjCss"
  163. :class="{
  164. isGjCss:
  165. navIndex == taskCount &&
  166. nav.id == navId &&
  167. stageIndex == courseType &&
  168. toolIndex == toolIndex2,
  169. }"
  170. @click="
  171. checkBz1(stageIndex, navIndex, toolIndex2, nav.id)
  172. "
  173. >
  174. <div>工具{{ toolIndex2 + 1 }}:</div>
  175. <div v-if="t.tool == 58">模拟驾驶</div>
  176. <div v-if="t.tool == 59">路径搜索</div>
  177. <div v-if="t.tool == 60">深度学习</div>
  178. <div v-if="t.tool == 10">倒计时</div>
  179. <div v-if="t.tool == 65">挑人</div>
  180. <div v-if="t.tool == 7">思维网格</div>
  181. <div v-if="t.tool == 1">电子白板</div>
  182. <div v-if="t.tool == 52">文档</div>
  183. <div v-if="t.tool == 3">思维导图</div>
  184. <div v-if="t.tool == 48">表格</div>
  185. <div v-if="t.tool == 49">学生分组</div>
  186. <div v-if="t.tool == 4">问卷调查</div>
  187. <div v-if="t.tool == 45">选择题</div>
  188. <div v-if="t.tool == 15">问答</div>
  189. <div v-if="t.tool == 16">作业提交</div>
  190. <div v-if="t.tool == 50">批量上传</div>
  191. <div v-if="t.tool == 41">选择匹配</div>
  192. <div v-if="t.tool == 47">排序</div>
  193. <div v-if="t.tool == 40">个人评价</div>
  194. <div v-if="t.tool == 18">训练平台</div>
  195. <div v-if="t.tool == 21">AIoT Blockly</div>
  196. <div v-if="t.tool == 23">AI Python</div>
  197. <div v-if="t.tool == 24">AI Blockly</div>
  198. <div v-if="t.tool == 32">源码编辑</div>
  199. <div v-if="t.tool == 57">CocoPi</div>
  200. <div v-if="t.tool == 63">海龟编程</div>
  201. <div v-if="t.tool == 28">翻译</div>
  202. <div v-if="t.tool == 31">数字画板</div>
  203. <div v-if="t.tool == 39">GeoGebra</div>
  204. <div v-if="t.tool == 66">公式编辑</div>
  205. <div v-if="t.tool == 67">分子结构</div>
  206. <div v-if="t.tool == 68">时间轴</div>
  207. <div v-if="t.tool == 25">目标管理</div>
  208. <div v-if="t.tool == 26">课程设计</div>
  209. <div v-if="t.tool == 62">交互视频</div>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  219. <div class="new_topFixed"></div>
  220. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  221. <div class="courseIndex">
  222. <div>任务{{ taskCount + 1 }}</div>
  223. <el-tooltip
  224. effect="light"
  225. :content="
  226. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  227. "
  228. placement="top"
  229. >
  230. <div>
  231. {{
  232. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  233. .task
  234. }}
  235. </div>
  236. </el-tooltip>
  237. </div>
  238. <div class="btnAll">
  239. <div class="btnLeft">
  240. <el-tooltip effect="light" content="刷新" placement="top">
  241. <div class="reBtnIcon" @click="refreshCourse"><span>刷新</span></div>
  242. </el-tooltip>
  243. <el-tooltip effect="light" content="评论" placement="top">
  244. <div class="commentIcon" @click="setPz" v-if="tType == 1"><span>评论</span></div>
  245. </el-tooltip>
  246. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  247. <el-tooltip effect="light" content="录制" placement="top">
  248. <div class="vedioIcon" @click="startRecording"><span>录制</span></div>
  249. </el-tooltip>
  250. </div>
  251. <div v-else-if="tType == 1 || tType == 4">
  252. <el-tooltip effect="light" content="下载" placement="top">
  253. <div class="vedioIcon1" @click="stopRecording"><span>下载</span></div>
  254. </el-tooltip>
  255. </div>
  256. </div>
  257. <div class="btnRight">
  258. <div
  259. class="last"
  260. @click="nextOrpreSteps(0)"
  261. @mouseover="isHovered = true"
  262. @mouseout="isHovered = false"
  263. >
  264. <div class="lastImg">
  265. <img
  266. :src="
  267. isHovered
  268. ? require('../../assets/icon/newIcons/whiteLast.png')
  269. : require('../../assets/icon/newIcons/last.png')
  270. "
  271. alt=""
  272. />
  273. </div>
  274. <div class="lastText">上一步</div>
  275. </div>
  276. <div
  277. class="last"
  278. @click="nextOrpreSteps(1)"
  279. @mouseover="isHovered1 = true"
  280. @mouseout="isHovered1 = false"
  281. >
  282. <div class="lastText">下一步</div>
  283. <div class="lastImg">
  284. <img
  285. :src="
  286. isHovered1
  287. ? require('../../assets/icon/newIcons/whiteNext.png')
  288. : require('../../assets/icon/newIcons/next.png')
  289. "
  290. alt=""
  291. />
  292. </div>
  293. </div>
  294. <!-- <div class="last" @click="juriVisible = true" v-if="tType == 1">
  295. <div class="lastImg">
  296. <img src="../../assets/icon/newIcons/lock.png" alt="" />
  297. </div>
  298. <div class="lastText">权限</div>
  299. </div> -->
  300. <div
  301. class="returnBtn1 returnIcon"
  302. @click.stop="
  303. goTo(
  304. '/courseDetail?userid=' +
  305. userid +
  306. '&oid=' +
  307. oid +
  308. '&org=' +
  309. org +
  310. '&cid=' +
  311. classId +
  312. '&courseId=' +
  313. id +
  314. '&tType=' +
  315. tType +
  316. '&screenType=' +
  317. screenType
  318. )
  319. "
  320. >
  321. <div class="lastImg">
  322. <img src="../../assets/icon/newIcon/return.png" alt="" />
  323. </div>
  324. <div class="lastText" style="color: #000">返回</div>
  325. </div>
  326. </div>
  327. <!-- <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  328. 评论
  329. </div>
  330. <div
  331. class="returnBtn vedioIcon"
  332. @click="startRecording"
  333. v-if="!videoStart && (tType == 1 || tType == 4)"
  334. >
  335. 录制
  336. </div>
  337. <div class="returnBtn" @click="refreshCourse">刷新</div>
  338. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  339. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  340. <div
  341. class="returnBtn returnIcon"
  342. @click.stop="
  343. goTo(
  344. '/courseDetail?userid=' +
  345. userid +
  346. '&oid=' +
  347. oid +
  348. '&org=' +
  349. org +
  350. '&cid=' +
  351. classId +
  352. '&courseId=' +
  353. id +
  354. '&tType=' +
  355. tType +
  356. '&screenType=' +
  357. screenType
  358. )
  359. "
  360. >
  361. 返回
  362. </div> -->
  363. </div>
  364. </div>
  365. <div
  366. class="isNoMessage"
  367. v-if="
  368. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  369. .chapterData.length == 0 &&
  370. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  371. .toolChoose[0].tool.length == 0 &&
  372. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  373. .taskDetail == '' &&
  374. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  375. .eList &&
  376. !(
  377. courseDetail.userid == userid ||
  378. (courseDetail.course_teacher &&
  379. courseDetail.course_teacher.indexOf(userid) != -1)
  380. )
  381. "
  382. >
  383. <img src="../../assets/icon/isNoMessage.png" alt />
  384. </div>
  385. <div class="study_top" :class="{ pzClass: pzDialog }">
  386. <div
  387. class="vedioBox"
  388. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  389. >
  390. <div
  391. class="student_head"
  392. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  393. >
  394. <div class="vedioTaskBox">
  395. <div
  396. :class="
  397. contentDialog == false
  398. ? 'box_course isContentCss'
  399. : 'box_course'
  400. "
  401. v-if="
  402. vChapterData.length > 0 &&
  403. vChapterData[0] &&
  404. showType !== ''
  405. "
  406. >
  407. <div class="wheel" style="height: auto" v-if="showType === 0">
  408. <div
  409. class="workd_media"
  410. style="height: 650px; width: calc(100% - 50px)"
  411. >
  412. <video-player
  413. class="video-player vjs-custom-skin"
  414. :class="contentDialog == false ? 'isAllWidth' : ''"
  415. :playsinline="true"
  416. :options="playerO[0]"
  417. @play="onPlayerPlay($event)"
  418. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  419. ></video-player>
  420. </div>
  421. </div>
  422. <div
  423. class="wheel"
  424. v-if="showType == 1"
  425. style="
  426. box-shadow: 0 0 6px 1px #f2f2f2;
  427. width: 95%;
  428. margin: 0 auto;
  429. background: #f1f1f1;
  430. "
  431. >
  432. <div class="title">查看文档</div>
  433. <el-form class="textBox">
  434. <el-form-item class="textTitle">
  435. <div style="font-size: 22px">
  436. {{ text.name }}
  437. </div>
  438. </el-form-item>
  439. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  440. <div v-html="text.url" class="textContent cont"></div>
  441. </el-form>
  442. </div>
  443. <div
  444. class="wheel"
  445. v-if="
  446. pptImgUrl1.indexOf(
  447. 'https://view.officeapps.live.com/op/view.aspx?src='
  448. ) != -1 && showType == 2
  449. "
  450. style="width: 95%; margin: 0 auto"
  451. >
  452. <iframe
  453. style="width: 100%; height: 100%; border: none"
  454. :src="pptImgUrl1"
  455. ></iframe>
  456. </div>
  457. <div
  458. class="wheel"
  459. v-else-if="showType == 2"
  460. style="width: 95%; margin: 0 auto"
  461. >
  462. <iframe
  463. style="width: 100%; height: 100%; border: none"
  464. security="restricted"
  465. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  466. :src="pptImgUrl1"
  467. ></iframe>
  468. </div>
  469. <div
  470. class="wheel"
  471. v-if="showType == 3"
  472. style="width: 95%; margin: 0 auto"
  473. >
  474. <pdf
  475. :pdfUrl="pptImgUrl1"
  476. style="width: 100%; height: 100%; overflow: auto"
  477. ></pdf>
  478. </div>
  479. <div
  480. class="wheel"
  481. v-if="showType == 4"
  482. style="width: 95%; margin: 0 auto"
  483. >
  484. <el-image
  485. :src="pptImgUrl1"
  486. fit="contain"
  487. style="width: 100%; height: 100%; cursor: pointer"
  488. @click="previewImg(pptImgUrl1)"
  489. ></el-image>
  490. </div>
  491. </div>
  492. <div
  493. class="pButton"
  494. style="position: absolute; right: 20px; top: 0; z-index: 998"
  495. v-if="!contentDialog"
  496. @click="setContent(true)"
  497. >
  498. <!-- 批 -->
  499. <img
  500. src="../../assets/icon/newIcons/isLeft.png"
  501. style="width: 45px"
  502. alt=""
  503. />
  504. </div>
  505. <div
  506. v-if="contentDialog == true"
  507. :style="{
  508. width:
  509. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  510. showType === ''
  511. ? 'calc(100%)'
  512. : '300px',
  513. margin:
  514. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  515. showType === ''
  516. ? '0 15px'
  517. : '0 15px 0 0',
  518. }"
  519. >
  520. <div
  521. class="vedioList"
  522. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  523. style="height: 650px"
  524. >
  525. <div class="navCorOpenBox">
  526. <div class="navTitile">内容列表:</div>
  527. <div class="navCorOpen" @click="setContent(false)">
  528. <img
  529. src="../../assets/icon/newIcons/isRight.png"
  530. alt=""
  531. />
  532. </div>
  533. </div>
  534. <div class="navBox">
  535. <div
  536. v-show="
  537. vChapterData[0].length > 0 || fileC[0].length > 0
  538. "
  539. style="padding: 10px 0 25px 0"
  540. >
  541. <div
  542. class="vedioTimeBox"
  543. v-for="(vitem, vindex) in vChapterData[0]"
  544. :key="vindex + '1'"
  545. >
  546. <div class="navListItem" v-if="vitem.type == 2">
  547. <div
  548. @click="lookVedio(vitem.url, vindex)"
  549. class="navText"
  550. :class="isClickNav == vindex ? 'isClickNav' : ''"
  551. >
  552. <span v-if="vitem.text">{{ vitem.text }}-</span
  553. >{{ vitem.name }}
  554. </div>
  555. <div class="downIcon" @click="downloadFile2(vitem)">
  556. <img
  557. src="../../assets/icon/newIcon/down.png"
  558. alt
  559. />
  560. </div>
  561. </div>
  562. <div class="navListItem" v-if="vitem.type == 6">
  563. <div
  564. @click="lookText(taskCount, vindex)"
  565. class="navText"
  566. :class="isClickNav == vindex ? 'isClickNav' : ''"
  567. >
  568. {{ vitem.name }}.doc
  569. </div>
  570. <div
  571. class="downIcon"
  572. @click="checkFileFull1(vitem.type, vitem)"
  573. >
  574. <img
  575. src="../../assets/icon/newIcon/allScreen.png"
  576. alt
  577. />
  578. </div>
  579. </div>
  580. <div
  581. class="navListItem"
  582. v-if="vitem.type == 8 || vitem.type == 14"
  583. >
  584. <div
  585. @click="doUrl(vitem.url, vindex)"
  586. class="navText"
  587. :class="isClickNav == vindex ? 'isClickNav' : ''"
  588. >
  589. {{ vitem.title ? vitem.title : vitem.url }}
  590. </div>
  591. <div
  592. class="downIcon"
  593. @click="checkFileFull1(vitem.type, vitem)"
  594. >
  595. <img
  596. src="../../assets/icon/newIcon/allScreen.png"
  597. alt
  598. />
  599. </div>
  600. </div>
  601. <div class="navListItem" v-if="vitem.type == 3">
  602. <div
  603. @click="downFile(vitem, vindex)"
  604. class="navText"
  605. :class="isClickNav == vindex ? 'isClickNav' : ''"
  606. >
  607. <span v-if="vitem.text">{{ vitem.text }}-</span
  608. >{{ vitem.name }}
  609. </div>
  610. <div class="downIcon" @click="downloadFile2(vitem)">
  611. <img
  612. src="../../assets/icon/newIcon/down.png"
  613. alt
  614. />
  615. </div>
  616. <div
  617. class="downIcon"
  618. @click="checkFileFull1(vitem.type, vitem)"
  619. >
  620. <img
  621. src="../../assets/icon/newIcon/allScreen.png"
  622. alt
  623. />
  624. </div>
  625. </div>
  626. <div class="navListItem" v-if="vitem.type == 12">
  627. <div class="navText" @click="downloadFile2(vitem)">
  628. <span v-if="vitem.text">{{ vitem.text }}-</span
  629. >{{ vitem.name }}
  630. </div>
  631. <div class="downIcon" @click="downloadFile2(vitem)">
  632. <img
  633. src="../../assets/icon/newIcon/down.png"
  634. alt
  635. />
  636. </div>
  637. <div
  638. class="downIcon"
  639. @click="checkFileFull1(vitem.type, vitem)"
  640. >
  641. <img
  642. src="../../assets/icon/newIcon/allScreen.png"
  643. alt
  644. />
  645. </div>
  646. </div>
  647. <div class="navListItem" v-if="vitem.type == 13">
  648. <div
  649. class="navText"
  650. @click="checkPhoto(vitem, vindex)"
  651. :class="isClickNav == vindex ? 'isClickNav' : ''"
  652. >
  653. {{ vitem.name }}
  654. </div>
  655. <div class="downIcon" @click="downloadFile2(vitem)">
  656. <img
  657. src="../../assets/icon/newIcon/down.png"
  658. alt
  659. />
  660. </div>
  661. </div>
  662. </div>
  663. <div class="fileC_box" v-if="fileC[0].length > 0">
  664. <div class="fileC_title">以下文件不支持预览</div>
  665. <div
  666. class="vedioTimeBox"
  667. v-for="(vitem, vindex) in fileC[0]"
  668. :key="vindex + '1'"
  669. >
  670. <div class="navListItem" v-if="vitem.type == 12">
  671. <div class="navText" style="color: #acb4bf">
  672. <span v-if="vitem.text">{{ vitem.text }}-</span
  673. >{{ vitem.name }}
  674. </div>
  675. <div
  676. class="downIcon"
  677. @click="downloadFile2(vitem)"
  678. >
  679. <img
  680. src="../../assets/icon/newIcon/down.png"
  681. alt
  682. />
  683. </div>
  684. </div>
  685. </div>
  686. </div>
  687. </div>
  688. </div>
  689. </div>
  690. </div>
  691. </div>
  692. <div style="width: calc(100% - 315px)">
  693. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  694. <!-- <el-button
  695. type="primary"
  696. class="newButton"
  697. @click="checkFileFull(showType, pptImgUrl1)"
  698. >全屏查看</el-button
  699. >
  700. <el-button
  701. type="primary"
  702. class="newButton"
  703. @click="downloadFile(pptImgUrl1)"
  704. v-if="showType != 2"
  705. >文件下载</el-button
  706. > -->
  707. <el-button
  708. v-if="
  709. showType == 2 &&
  710. pptImgUrl1.indexOf(
  711. 'https://view.officeapps.live.com/op/view.aspx?src='
  712. ) == -1
  713. "
  714. type="primary"
  715. class="newButton"
  716. @click="openLine(pptImgUrl1)"
  717. >打开链接
  718. </el-button>
  719. </div>
  720. <!-- <div
  721. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  722. v-if="showType == 1"
  723. >
  724. <el-button
  725. type="primary"
  726. class="newButton"
  727. @click="checkFileFull(showType, text)"
  728. >全屏查看</el-button
  729. >
  730. </div> -->
  731. </div>
  732. </div>
  733. </div>
  734. <div
  735. class="student_body"
  736. v-resize="resize"
  737. :style="{
  738. borderRadius:
  739. vChapterData[0].length == 0 && fileC[0].length == 0
  740. ? '0 0 20px 20px'
  741. : '20px',
  742. }"
  743. v-if="
  744. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  745. .toolChoose[0].tool &&
  746. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  747. .toolChoose[0].tool.length > 0) ||
  748. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  749. .taskDetail != ''
  750. "
  751. >
  752. <div
  753. class="taskBox"
  754. v-if="
  755. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  756. .taskDetail != ''
  757. "
  758. :style="
  759. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  760. .toolChoose[0].tool &&
  761. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  762. .toolChoose[0].tool.length &&
  763. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  764. .toolChoose[0].tool.length > 0
  765. ? 'border-bottom: 1px solid #cad1dc'
  766. : ''
  767. "
  768. >
  769. <div
  770. style="
  771. display: flex;
  772. flex-wrap: nowrap;
  773. flex-direction: column;
  774. position: relative;
  775. "
  776. >
  777. <div
  778. style="
  779. padding: 15px 0;
  780. line-height: 29px;
  781. font-size: 18px;
  782. color: #0e1e33;
  783. "
  784. class="cont"
  785. v-if="
  786. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  787. .taskDetail != ''
  788. "
  789. v-html="
  790. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  791. .taskDetail
  792. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  793. taskCount
  794. ].taskDetail
  795. : '暂无描述'
  796. "
  797. ></div>
  798. </div>
  799. </div>
  800. <div
  801. class="vedioBox"
  802. v-if="
  803. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  804. .toolChoose[0].tool &&
  805. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  806. .toolChoose[0].tool.length &&
  807. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  808. .toolChoose[0].tool.length > 0
  809. "
  810. :style="{
  811. borderRadius:
  812. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  813. .taskDetail == '' &&
  814. vChapterData[0].length == 0 &&
  815. fileC[0].length == 0
  816. ? '0 0 20px 20px'
  817. : '20px',
  818. }"
  819. >
  820. <div
  821. class="queTop"
  822. style="
  823. font-size: 20px;
  824. padding: 15px 0 15px 37px;
  825. font-weight: bold;
  826. "
  827. >
  828. 工作区
  829. </div>
  830. <div class="toolHeng2" style="position: relative">
  831. <div
  832. class="filebox"
  833. style="flex-wrap: nowrap; margin: 0 37px"
  834. v-if="
  835. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  836. .toolChoose.length
  837. "
  838. >
  839. <div class="choiceBox">
  840. <div class="bzChild" style="margin-right: 20px">
  841. <span>步骤选择:</span>
  842. </div>
  843. <div class="bzTypeBox">
  844. <div
  845. class="bzChild"
  846. v-for="(bz, bzIndex) in chapInfoList[courseType]
  847. .chapterInfo[0].taskJson[taskCount].toolChoose"
  848. :key="bzIndex"
  849. :class="{ active: toolIndex == bzIndex }"
  850. @click="checkBz(bzIndex)"
  851. >
  852. <span>步骤{{ bzIndex + 1 }}</span>
  853. </div>
  854. </div>
  855. </div>
  856. <div class="bzBox">
  857. <!-- <div class="yCss"></div>
  858. <div>步骤{{ toolIndex + 1 }}</div> -->
  859. <div
  860. style="margin: 0 72px 20px auto"
  861. v-if="tool.tool[0] == 15 || tool.tool[0] == 16"
  862. >
  863. <el-button
  864. type="primary"
  865. size="mini"
  866. v-if="tool.tool[0] == 15"
  867. @click="openWordCloud(toolIndex)"
  868. >生成词云</el-button
  869. >
  870. <el-button
  871. type="primary"
  872. size="mini"
  873. v-if="tool.tool[0] == 16 && worksStudent[toolIndex].length > 0"
  874. @click="uploadWorks(toolIndex)"
  875. >导出作业</el-button
  876. >
  877. <!-- courseDetail.userid == userid || -->
  878. <!-- <el-button
  879. v-if="courseDetail.userid == userid"
  880. type="primary"
  881. size="mini"
  882. @click="updateToolDetail"
  883. >{{
  884. !isUpdateToolDetail ? "编辑" : "确认修改"
  885. }}</el-button
  886. > -->
  887. </div>
  888. </div>
  889. <div class="toolBox">
  890. <div class="toolBoxSteps" @click="nextToolindex('last')">
  891. <img src="../../assets/icon/leftIcon.png" />
  892. </div>
  893. <div class="toolBoxSteps" @click="nextToolindex('next')">
  894. <img src="../../assets/icon/rightIcon.png" />
  895. </div>
  896. <div>
  897. <div class="noiframeBox">
  898. <div
  899. class="addPoint"
  900. v-for="(tooC, toolCIndex) in tool.tool"
  901. :key="toolCIndex"
  902. >
  903. <div v-show="tooC == 1">
  904. <img
  905. src="../../assets/icon/secondToolList/whiteBoard.png"
  906. alt
  907. @click="addTools(tooC, toolIndex, taskCount)"
  908. />
  909. <div style="margin: 5px 0">电子白板</div>
  910. </div>
  911. <div v-show="tooC == 3">
  912. <img
  913. src="../../assets/icon/secondToolList/mindMapping.png"
  914. alt
  915. @click="addTools(tooC, toolIndex, taskCount)"
  916. />
  917. <div style="margin: 5px 0">思维导图</div>
  918. </div>
  919. <div v-show="tooC == 6">
  920. <img
  921. src="../../assets/icon/secondToolList/doc.png"
  922. alt
  923. @click="addTools(tooC, toolIndex, taskCount)"
  924. />
  925. <div style="margin: 5px 0">协同文档</div>
  926. </div>
  927. <div v-show="tooC == 7">
  928. <img
  929. src="../../assets/icon/secondToolList/mindNetwork.png"
  930. alt
  931. @click="addTools(tooC, toolIndex, taskCount)"
  932. />
  933. <div style="margin: 5px 0">思维网格</div>
  934. </div>
  935. <div v-show="tooC == 8">
  936. <img
  937. src="../../assets/icon/secondToolList/library.png"
  938. alt
  939. @click="addTools(tooC, toolIndex, taskCount)"
  940. />
  941. <div style="margin: 5px 0">素材库</div>
  942. </div>
  943. <div v-show="tooC == 17">
  944. <img
  945. src="../../assets/icon/secondToolList/library.png"
  946. alt
  947. @click="addTools(tooC, toolIndex, taskCount)"
  948. />
  949. <div style="margin: 5px 0">学习资料</div>
  950. </div>
  951. <div v-show="tooC == 2">
  952. <img
  953. @click="addTools(tooC, toolIndex, taskCount)"
  954. src="../../assets/icon/secondToolList/note.png"
  955. alt
  956. />
  957. <div style="margin: 5px 0">便签</div>
  958. </div>
  959. <div v-show="tooC == 4">
  960. <img
  961. @click="addTools(tooC, toolIndex, taskCount)"
  962. src="../../assets/icon/thirdToolList/ask.png"
  963. alt
  964. />
  965. <div style="margin: 5px 0">问卷调查</div>
  966. </div>
  967. <div v-show="tooC == 45">
  968. <img
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. src="../../assets/icon/thirdToolList/choose.png"
  971. alt
  972. />
  973. <div style="margin: 5px 0">选择题</div>
  974. </div>
  975. <!-- <div v-show="tooC == 5">
  976. <img
  977. @click="addTools(tooC, toolIndex, taskCount)"
  978. src="../../assets/icon/thirdToolList/score.png"
  979. alt
  980. />
  981. <div style="margin: 5px 0">量规评分</div>
  982. </div> -->
  983. <div v-show="tooC == 10">
  984. <img
  985. @click="addTools(tooC, toolIndex, taskCount)"
  986. src="../../assets/icon/thirdToolList/time.png"
  987. alt
  988. />
  989. <div style="margin: 5px 0">倒计时</div>
  990. </div>
  991. <div v-show="tooC == 15">
  992. <img
  993. @click="addTools(tooC, toolIndex, taskCount)"
  994. src="../../assets/icon/thirdToolList/answer.png"
  995. alt
  996. />
  997. <div style="margin: 5px 0">问答</div>
  998. </div>
  999. <div v-show="tooC == 26">
  1000. <img
  1001. @click="addTools(tooC, toolIndex, taskCount)"
  1002. src="../../assets/icon/thirdToolList/courseDesign.png"
  1003. alt
  1004. />
  1005. <div style="margin: 5px 0">课程设计</div>
  1006. </div>
  1007. <div v-show="tooC == 18">
  1008. <img
  1009. @click="addTools(tooC, toolIndex, taskCount)"
  1010. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1011. alt
  1012. />
  1013. <div style="margin: 5px 0">训练服务器</div>
  1014. </div>
  1015. <div v-show="tooC == 16">
  1016. <img
  1017. @click="addTools(tooC, toolIndex, taskCount)"
  1018. src="../../assets/icon/thirdToolList/work.png"
  1019. alt
  1020. />
  1021. <div style="margin: 5px 0">作业提交</div>
  1022. </div>
  1023. <div v-show="tooC == 50">
  1024. <img
  1025. @click="addTools(tooC, toolIndex, taskCount)"
  1026. src="../../assets/icon/thirdToolList/plwork.png"
  1027. alt
  1028. />
  1029. <div style="margin: 5px 0">批量上传</div>
  1030. </div>
  1031. <div v-show="tooC == 21">
  1032. <img
  1033. @click="addTools(tooC, toolIndex, taskCount)"
  1034. src="../../assets/icon/fourthToolList/program.png"
  1035. alt
  1036. />
  1037. <div style="margin: 5px 0">AIoT Blockly</div>
  1038. </div>
  1039. <!-- <div v-show="tooC == 22">
  1040. <img
  1041. @click="addTools(tooC, toolIndex, taskCount)"
  1042. src="../../assets/icon/fourthToolList/program.png"
  1043. alt
  1044. />
  1045. <div style="margin: 5px 0">AI体验</div>
  1046. </div> -->
  1047. <div v-show="tooC == 23">
  1048. <img
  1049. @click="addTools(tooC, toolIndex, taskCount)"
  1050. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1051. alt
  1052. />
  1053. <div style="margin: 5px 0">AI Python</div>
  1054. </div>
  1055. <div v-show="tooC == 24">
  1056. <img
  1057. @click="addTools(tooC, toolIndex, taskCount)"
  1058. src="../../assets/icon/fourthToolList/AIprogram.png"
  1059. alt
  1060. />
  1061. <div style="margin: 5px 0">AI Blockly</div>
  1062. </div>
  1063. <div v-show="tooC == 25">
  1064. <img
  1065. @click="addTools(tooC, toolIndex, taskCount)"
  1066. src="../../assets/icon/thirdToolList/evalua.png"
  1067. alt
  1068. />
  1069. <div style="margin: 5px 0">目标管理</div>
  1070. </div>
  1071. <div v-show="tooC == 31">
  1072. <img
  1073. @click="addTools(tooC, toolIndex, taskCount)"
  1074. src="../../assets/icon/secondToolList/networkPanel.png"
  1075. alt
  1076. />
  1077. <div style="margin: 5px 0">数学画板</div>
  1078. </div>
  1079. <div v-show="tooC == 28">
  1080. <img
  1081. @click="addTools(tooC, toolIndex, taskCount)"
  1082. src="../../assets/icon/secondToolList/translation.png"
  1083. alt
  1084. />
  1085. <div style="margin: 5px 0">翻译</div>
  1086. </div>
  1087. <div v-show="tooC == 37">
  1088. <img
  1089. @click="addTools(tooC, toolIndex, taskCount)"
  1090. src="../../assets/icon/secondToolList/mohe.png"
  1091. alt
  1092. />
  1093. <div style="margin: 5px 0">魔盒识字</div>
  1094. </div>
  1095. <div v-show="tooC == 38">
  1096. <img
  1097. @click="addTools(tooC, toolIndex, taskCount)"
  1098. src="../../assets/icon/secondToolList/24game.png"
  1099. alt
  1100. />
  1101. <div style="margin: 5px 0">24点</div>
  1102. </div>
  1103. <div v-show="tooC == 39">
  1104. <img
  1105. @click="addTools(tooC, toolIndex, taskCount)"
  1106. src="../../assets/icon/secondToolList/GeoGebra.png"
  1107. alt
  1108. />
  1109. <div style="margin: 5px 0">GeoGebra</div>
  1110. </div>
  1111. <div v-show="tooC == 32">
  1112. <img
  1113. @click="addTools(tooC, toolIndex, taskCount)"
  1114. src="../../assets/icon/thirdToolList/code.png"
  1115. alt
  1116. />
  1117. <div style="margin: 5px 0">源码编辑</div>
  1118. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1119. style="position: absolute;left: 110px;bottom: 30px;">
  1120. 上传文件
  1121. <input type="file" accept="*" style="display: none"
  1122. @change="beforeUpload1($event, 7, toolIndex)" />
  1123. </div> -->
  1124. </div>
  1125. <!-- <div v-show="tooC == 40">
  1126. <img @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/secondToolList/eval.png" alt />
  1128. <div style="margin: 5px 0">个人评价</div>
  1129. </div> -->
  1130. <div v-show="tooC == 41">
  1131. <img
  1132. @click="addTools(tooC, toolIndex, taskCount)"
  1133. src="../../assets/icon/thirdToolList/select.png"
  1134. alt
  1135. />
  1136. <div style="margin: 5px 0">选择匹配</div>
  1137. </div>
  1138. <div v-show="tooC == 44">
  1139. <img
  1140. @click="addTools(tooC, toolIndex, taskCount)"
  1141. src="../../assets/icon/thirdToolList/hanClass.png"
  1142. alt
  1143. />
  1144. <div style="margin: 5px 0">汉字宫</div>
  1145. </div>
  1146. <div v-show="tooC == 47">
  1147. <img
  1148. @click="addTools(tooC, toolIndex, taskCount)"
  1149. src="../../assets/icon/fourthToolList/conSentences.png"
  1150. alt
  1151. />
  1152. <div style="margin: 5px 0">排序</div>
  1153. </div>
  1154. <div v-show="tooC == 48">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../../assets/icon/fourthToolList/table.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">表格</div>
  1161. </div>
  1162. <div v-show="tooC == 52">
  1163. <img
  1164. @click="addTools(tooC, toolIndex, taskCount)"
  1165. src="../../assets/icon/fourthToolList/text.png"
  1166. alt
  1167. />
  1168. <div style="margin: 5px 0">文档</div>
  1169. </div>
  1170. <!-- <div v-show="tooC == 49">
  1171. <img @click="addTools(tooC, toolIndex, taskCount)"
  1172. src="../../assets/icon/fourthToolList/group.png" alt />
  1173. <div style="margin: 5px 0">学生分组</div>
  1174. </div> -->
  1175. <div v-show="tooC == 57">
  1176. <img
  1177. @click="addTools(tooC, toolIndex, taskCount)"
  1178. src="../../assets/icon/fourthToolList/cocopi.png"
  1179. alt
  1180. />
  1181. <div style="margin: 5px 0">CocoPi</div>
  1182. </div>
  1183. <div v-show="tooC == 58">
  1184. <img
  1185. @click="addTools(tooC, toolIndex, taskCount)"
  1186. src="../../assets/icon/fourthToolList/car.png"
  1187. alt
  1188. />
  1189. <div style="margin: 5px 0">模拟驾驶</div>
  1190. </div>
  1191. <div v-show="tooC == 59">
  1192. <img
  1193. @click="addTools(tooC, toolIndex, taskCount)"
  1194. src="../../assets/icon/fourthToolList/lineSearch.png"
  1195. alt
  1196. />
  1197. <div style="margin: 5px 0">路径搜索</div>
  1198. </div>
  1199. <div v-show="tooC == 60">
  1200. <img
  1201. @click="addTools(tooC, toolIndex, taskCount)"
  1202. src="../../assets/icon/fourthToolList/deepLearning.png"
  1203. alt
  1204. />
  1205. <div style="margin: 5px 0">深度学习</div>
  1206. </div>
  1207. <div v-show="tooC == 61">
  1208. <img
  1209. @click="addTools(tooC, toolIndex, taskCount)"
  1210. src="../../assets/icon/fourthToolList/allHistory.png"
  1211. alt
  1212. />
  1213. <div style="margin: 5px 0">全历史</div>
  1214. </div>
  1215. <div v-show="tooC == 62">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../../assets/icon/fourthToolList/interVideo.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">交互视频</div>
  1222. </div>
  1223. <div v-show="tooC == 63">
  1224. <img
  1225. @click="addTools(tooC, toolIndex, taskCount)"
  1226. src="../../assets/icon/fourthToolList/Wood.png"
  1227. alt
  1228. />
  1229. <div style="margin: 5px 0">海龟编程</div>
  1230. </div>
  1231. <div v-if="tooC == 65">
  1232. <img
  1233. @click="addTools(tooC, toolIndex, taskCount)"
  1234. src="../../assets/icon/firstToolList/pickPeople.png"
  1235. alt
  1236. />
  1237. <div style="margin: 5px 0">挑人</div>
  1238. </div>
  1239. <div v-if="tooC == 66">
  1240. <img
  1241. @click="addTools(tooC, toolIndex, taskCount)"
  1242. src="../../assets/icon/secondToolList/formulaEdi.png"
  1243. alt
  1244. />
  1245. <div style="margin: 5px 0">公式编辑</div>
  1246. </div>
  1247. <div v-if="tooC == 67">
  1248. <img
  1249. @click="addTools(tooC, toolIndex, taskCount)"
  1250. src="../../assets/icon/secondToolList/molStr.png"
  1251. alt
  1252. />
  1253. <div style="margin: 5px 0">分子结构</div>
  1254. </div>
  1255. <div v-if="tooC == 68">
  1256. <img
  1257. @click="addTools(tooC, toolIndex, taskCount)"
  1258. src="../../assets/icon/secondToolList/timeAxis.png"
  1259. alt
  1260. />
  1261. <div style="margin: 5px 0">时间轴</div>
  1262. </div>
  1263. </div>
  1264. </div>
  1265. </div>
  1266. <div class="tooldetail">
  1267. <!-- <div class="toolTitle">工具描述</div> -->
  1268. <div
  1269. style="height: 100%"
  1270. v-html="
  1271. contentConvent(
  1272. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1273. )
  1274. "
  1275. v-if="!isUpdateToolDetail"
  1276. @click.stop="updateToolDetail"
  1277. ></div>
  1278. <div v-else @click.stop="">
  1279. <el-input
  1280. type="textarea"
  1281. :rows="3"
  1282. resize="none"
  1283. v-model="updateToolDetailInner"
  1284. placeholder="请输入任务描述"
  1285. ></el-input>
  1286. </div>
  1287. </div>
  1288. <el-button
  1289. type="primary"
  1290. v-if="tool.tool[0] == 32"
  1291. style="
  1292. position: absolute;
  1293. right: 30px;
  1294. transform: translateY(-130%);
  1295. "
  1296. @click="addImg($event)"
  1297. >上传作业<input
  1298. type="file"
  1299. accept="*"
  1300. style="display: none"
  1301. @change="beforeUpload1($event, 7, toolIndex)"
  1302. /></el-button>
  1303. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1304. position: absolute;
  1305. right: 30px;
  1306. transform: translateY(-130%);
  1307. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1308. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1309. </div>
  1310. </div>
  1311. </div>
  1312. </div>
  1313. <div
  1314. class="vedioBox"
  1315. v-if="
  1316. arrayToArray(tool.tool, isWorkTool).length &&
  1317. worksTeacher.length &&
  1318. worksTeacher[toolIndex].length &&
  1319. false
  1320. "
  1321. >
  1322. <div
  1323. class="queTop"
  1324. style="
  1325. font-size: 20px;
  1326. padding: 15px 0 15px 37px;
  1327. font-weight: bold;
  1328. "
  1329. >
  1330. 教师工作区
  1331. </div>
  1332. <div class="tool_work_box">
  1333. <div
  1334. v-if="
  1335. tType &&
  1336. ((tType == 2 && sIsOpen == true) ||
  1337. tType == 1 ||
  1338. tType == 4) &&
  1339. tool.tool.indexOf(16) != -1
  1340. "
  1341. class="worksBox"
  1342. >
  1343. <div
  1344. class="zuoyeYulan"
  1345. v-if="
  1346. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1347. "
  1348. >
  1349. <div class="worksTop">
  1350. <div>作业预览</div>
  1351. </div>
  1352. </div>
  1353. <div
  1354. class="worksDetailBox"
  1355. v-if="
  1356. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1357. "
  1358. >
  1359. <div
  1360. class="works"
  1361. style="
  1362. width: 200px;
  1363. height: 140px;
  1364. margin: 10px 10px 10px 0;
  1365. border-radius: 15px;
  1366. box-shadow: 0 0 6px 1px #dfdada;
  1367. "
  1368. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1369. :key="wIndex"
  1370. :class="w.type == 1 ? 'isTypeOne' : ''"
  1371. >
  1372. <div class="workImg" v-if="w.type == 0">
  1373. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1374. <img :src="w.works" @click="previewImg(w.works)" alt />
  1375. <div
  1376. class="answerScore"
  1377. v-if="w.score"
  1378. @click.stop="openScore(w)"
  1379. :class="{
  1380. rightW:
  1381. w.userid == userid ||
  1382. tType == 1 ||
  1383. tType == 4 ||
  1384. w.ateacher == userid,
  1385. }"
  1386. >
  1387. {{ JSON.parse(w.score).wScore }}分
  1388. </div>
  1389. <div
  1390. class="answerScore"
  1391. @click.stop="openScore(w)"
  1392. v-else-if="courseDetail.userid == userid"
  1393. :class="{
  1394. rightW:
  1395. w.userid == userid ||
  1396. tType == 1 ||
  1397. tType == 4 ||
  1398. w.ateacher == userid,
  1399. }"
  1400. >
  1401. 评分
  1402. </div>
  1403. <img
  1404. class="deleteImg"
  1405. src="../../assets/deleteworks.png"
  1406. v-if="w.userid == userid || tType == 1 || tType == 4"
  1407. @click.stop="deleteWorks(w.wid)"
  1408. alt
  1409. />
  1410. </div>
  1411. <div class="workImg" v-if="w.type == 1">
  1412. <img :src="word" @click="openFile(w.works)" alt />
  1413. <!-- @click="openFile(w.works)" -->
  1414. <div
  1415. class="answerScore"
  1416. v-if="w.score"
  1417. @click.stop="openScore(w)"
  1418. :class="{
  1419. rightW:
  1420. w.userid == userid ||
  1421. tType == 1 ||
  1422. tType == 4 ||
  1423. w.ateacher == userid,
  1424. }"
  1425. >
  1426. {{ JSON.parse(w.score).wScore }}分
  1427. </div>
  1428. <div
  1429. class="answerScore"
  1430. @click.stop="openScore(w)"
  1431. v-else-if="courseDetail.userid == userid"
  1432. :class="{
  1433. rightW:
  1434. w.userid == userid ||
  1435. tType == 1 ||
  1436. tType == 4 ||
  1437. w.ateacher == userid,
  1438. }"
  1439. >
  1440. 评分
  1441. </div>
  1442. <img
  1443. class="deleteImg"
  1444. src="../../assets/deleteworks.png"
  1445. v-if="w.userid == userid || tType == 1 || tType == 4"
  1446. @click.stop="deleteWorks(w.wid)"
  1447. alt
  1448. />
  1449. </div>
  1450. <div class="workImg" v-if="w.type == 3">
  1451. <img
  1452. style="cursor: pointer"
  1453. :src="video"
  1454. @click="openVideo(w)"
  1455. alt
  1456. />
  1457. <!-- @click="openVideo(w.works)" -->
  1458. <div
  1459. class="answerScore"
  1460. v-if="w.score"
  1461. @click.stop="openScore(w)"
  1462. :class="{
  1463. rightW:
  1464. w.userid == userid ||
  1465. tType == 1 ||
  1466. tType == 4 ||
  1467. w.ateacher == userid,
  1468. }"
  1469. >
  1470. {{ JSON.parse(w.score).wScore }}分
  1471. </div>
  1472. <div
  1473. class="answerScore"
  1474. @click.stop="openScore(w)"
  1475. v-else-if="courseDetail.userid == userid"
  1476. :class="{
  1477. rightW:
  1478. w.userid == userid ||
  1479. tType == 1 ||
  1480. tType == 4 ||
  1481. w.ateacher == userid,
  1482. }"
  1483. >
  1484. 评分
  1485. </div>
  1486. <img
  1487. class="deleteImg"
  1488. src="../../assets/deleteworks.png"
  1489. v-if="w.userid == userid || tType == 1 || tType == 4"
  1490. @click.stop="deleteWorks(w.wid)"
  1491. alt
  1492. />
  1493. </div>
  1494. <div class="workImg" v-if="w.type == 12">
  1495. <img
  1496. style="cursor: pointer"
  1497. :src="word2"
  1498. @click="downloadFile(w.works)"
  1499. alt
  1500. />
  1501. <!-- @click="openVideo(w.works)" -->
  1502. <div
  1503. class="answerScore"
  1504. v-if="w.score"
  1505. @click.stop="openScore(w)"
  1506. :class="{
  1507. rightW:
  1508. w.userid == userid ||
  1509. tType == 1 ||
  1510. tType == 4 ||
  1511. w.ateacher == userid,
  1512. }"
  1513. >
  1514. {{ JSON.parse(w.score).wScore }}分
  1515. </div>
  1516. <div
  1517. class="answerScore"
  1518. @click.stop="openScore(w)"
  1519. v-else-if="courseDetail.userid == userid"
  1520. :class="{
  1521. rightW:
  1522. w.userid == userid ||
  1523. tType == 1 ||
  1524. tType == 4 ||
  1525. w.ateacher == userid,
  1526. }"
  1527. >
  1528. 评分
  1529. </div>
  1530. <img
  1531. class="deleteImg"
  1532. src="../../assets/deleteworks.png"
  1533. v-if="w.userid == userid || tType == 1 || tType == 4"
  1534. @click.stop="deleteWorks(w.wid)"
  1535. alt
  1536. />
  1537. </div>
  1538. <div class="comment" style="min-width: 200px">
  1539. <div class="worksName">
  1540. <div>{{ w.sName }}</div>
  1541. </div>
  1542. <div class="commentList">
  1543. <div class="commentList">
  1544. <div
  1545. class="commentImg"
  1546. @click="
  1547. isLikes(w.wid, userid, 1, null, w.isLikes)
  1548. "
  1549. >
  1550. <img
  1551. :src="w.isLikes == true ? likes : noLikes"
  1552. alt=""
  1553. />
  1554. </div>
  1555. <div>{{ w.likesCount }}</div>
  1556. </div>
  1557. <div class="commentList" style="margin-right: 15px">
  1558. <div
  1559. class="commentImg"
  1560. @click="commentOther(w, toolIndex, wIndex)"
  1561. >
  1562. <img
  1563. src="../../assets/icon/comment/comment.png"
  1564. alt=""
  1565. />
  1566. </div>
  1567. <div>{{ w.commentCount }}</div>
  1568. </div>
  1569. </div>
  1570. </div>
  1571. </div>
  1572. </div>
  1573. </div>
  1574. <div
  1575. v-if="
  1576. tType &&
  1577. ((tType == 2 && sIsOpen == true) ||
  1578. tType == 1 ||
  1579. tType == 4) &&
  1580. tool.tool.indexOf(32) != -1
  1581. "
  1582. class="worksBox"
  1583. >
  1584. <div
  1585. class="zuoyeYulan"
  1586. v-if="
  1587. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1588. "
  1589. >
  1590. <div class="worksTop">
  1591. <div>作业预览</div>
  1592. </div>
  1593. </div>
  1594. <div
  1595. class="worksDetailBox"
  1596. v-if="
  1597. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1598. "
  1599. >
  1600. <div
  1601. class="works"
  1602. style="
  1603. width: 200px;
  1604. height: 140px;
  1605. margin: 10px 10px 10px 0;
  1606. border-radius: 15px;
  1607. box-shadow: 0 0 6px 1px #dfdada;
  1608. "
  1609. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1610. :key="wIndex"
  1611. :class="w.type == 1 ? 'isTypeOne' : ''"
  1612. >
  1613. <div class="workImg">
  1614. <img :src="word2" @click="downloadFile(w.works)" alt />
  1615. <div
  1616. class="answerScore"
  1617. v-if="w.score"
  1618. @click.stop="openScore(w)"
  1619. :class="{
  1620. rightW:
  1621. w.userid == userid ||
  1622. tType == 1 ||
  1623. tType == 4 ||
  1624. w.ateacher == userid,
  1625. }"
  1626. >
  1627. {{ JSON.parse(w.score).wScore }}分
  1628. </div>
  1629. <div
  1630. class="answerScore"
  1631. @click.stop="openScore(w)"
  1632. v-else-if="courseDetail.userid == userid"
  1633. :class="{
  1634. rightW:
  1635. w.userid == userid ||
  1636. tType == 1 ||
  1637. tType == 4 ||
  1638. w.ateacher == userid,
  1639. }"
  1640. >
  1641. 评分
  1642. </div>
  1643. <img
  1644. class="deleteImg"
  1645. src="../../assets/deleteworks.png"
  1646. v-if="w.userid == userid || tType == 1 || tType == 4"
  1647. @click.stop="deleteWorks(w.wid)"
  1648. alt
  1649. />
  1650. </div>
  1651. <div class="comment" style="min-width: 200px">
  1652. <div class="worksName">
  1653. <div>{{ w.sName }}</div>
  1654. </div>
  1655. <div class="commentList">
  1656. <div class="commentList">
  1657. <div
  1658. class="commentImg"
  1659. @click="
  1660. isLikes(w.wid, userid, 1, null, w.isLikes)
  1661. "
  1662. >
  1663. <img
  1664. :src="w.isLikes == true ? likes : noLikes"
  1665. alt=""
  1666. />
  1667. </div>
  1668. <div>{{ w.likesCount }}</div>
  1669. </div>
  1670. <div class="commentList" style="margin-right: 15px">
  1671. <div
  1672. class="commentImg"
  1673. @click="commentOther(w, toolIndex, wIndex)"
  1674. >
  1675. <img
  1676. src="../../assets/icon/comment/comment.png"
  1677. alt=""
  1678. />
  1679. </div>
  1680. <div>{{ w.commentCount }}</div>
  1681. </div>
  1682. </div>
  1683. </div>
  1684. </div>
  1685. </div>
  1686. </div>
  1687. <div
  1688. v-if="
  1689. tType &&
  1690. ((tType == 2 && sIsOpen == true) ||
  1691. tType == 1 ||
  1692. tType == 4) &&
  1693. tool.tool.indexOf(57) != -1
  1694. "
  1695. class="worksBox"
  1696. >
  1697. <div
  1698. class="zuoyeYulan"
  1699. v-if="
  1700. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1701. "
  1702. >
  1703. <div class="worksTop">
  1704. <div>作业预览</div>
  1705. </div>
  1706. </div>
  1707. <div
  1708. class="worksDetailBox"
  1709. v-if="
  1710. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1711. "
  1712. >
  1713. <div
  1714. class="works"
  1715. style="
  1716. width: 200px;
  1717. height: 140px;
  1718. margin: 10px 10px 10px 0;
  1719. border-radius: 15px;
  1720. box-shadow: 0 0 6px 1px #dfdada;
  1721. "
  1722. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1723. :key="wIndex"
  1724. :class="w.type == 1 ? 'isTypeOne' : ''"
  1725. >
  1726. <div class="workImg">
  1727. <img
  1728. :src="word2"
  1729. @click="downloadFile(w.works)"
  1730. v-if="w.type == 12"
  1731. alt
  1732. />
  1733. <img
  1734. :src="word2"
  1735. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  1736. v-else-if="w.type == 15"
  1737. alt
  1738. />
  1739. <div
  1740. class="answerScore"
  1741. v-if="w.score"
  1742. @click.stop="openScore(w)"
  1743. :class="{
  1744. rightW:
  1745. w.userid == userid ||
  1746. tType == 1 ||
  1747. tType == 4 ||
  1748. w.ateacher == userid,
  1749. }"
  1750. >
  1751. {{ JSON.parse(w.score).wScore }}分
  1752. </div>
  1753. <div
  1754. class="answerScore"
  1755. @click.stop="openScore(w)"
  1756. v-else-if="courseDetail.userid == userid"
  1757. :class="{
  1758. rightW:
  1759. w.userid == userid ||
  1760. tType == 1 ||
  1761. tType == 4 ||
  1762. w.ateacher == userid,
  1763. }"
  1764. >
  1765. 评分
  1766. </div>
  1767. <img
  1768. class="deleteImg"
  1769. src="../../assets/deleteworks.png"
  1770. v-if="w.userid == userid || tType == 1 || tType == 4"
  1771. @click.stop="deleteWorks(w.wid)"
  1772. alt
  1773. />
  1774. </div>
  1775. <div class="comment" style="min-width: 200px">
  1776. <div class="worksName">
  1777. <div>{{ w.sName }}</div>
  1778. </div>
  1779. <div class="commentList">
  1780. <div class="commentList">
  1781. <div
  1782. class="commentImg"
  1783. @click="
  1784. isLikes(w.wid, userid, 1, null, w.isLikes)
  1785. "
  1786. >
  1787. <img
  1788. :src="w.isLikes == true ? likes : noLikes"
  1789. alt=""
  1790. />
  1791. </div>
  1792. <div>{{ w.likesCount }}</div>
  1793. </div>
  1794. <div class="commentList" style="margin-right: 15px">
  1795. <div
  1796. class="commentImg"
  1797. @click="commentOther(w, toolIndex, wIndex)"
  1798. >
  1799. <img
  1800. src="../../assets/icon/comment/comment.png"
  1801. alt=""
  1802. />
  1803. </div>
  1804. <div>{{ w.commentCount }}</div>
  1805. </div>
  1806. </div>
  1807. </div>
  1808. </div>
  1809. </div>
  1810. </div>
  1811. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1812. <div
  1813. class="zuoyeYulan"
  1814. v-if="
  1815. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1816. "
  1817. >
  1818. <span>作业预览</span>
  1819. </div>
  1820. <div
  1821. class="worksDetailBox"
  1822. v-if="
  1823. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1824. "
  1825. >
  1826. <div
  1827. class="works"
  1828. style="
  1829. width: 200px;
  1830. height: 140px;
  1831. margin: 10px 10px 10px 0;
  1832. border-radius: 15px;
  1833. box-shadow: 0 0 6px 1px #dfdada;
  1834. "
  1835. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1836. :key="wIndex"
  1837. :class="w.type == 1 ? 'isTypeOne' : ''"
  1838. >
  1839. <div class="workImg" v-if="w.type == 0">
  1840. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1841. <img :src="w.works" @click="previewImg(w.works)" alt />
  1842. <div
  1843. class="answerScore"
  1844. v-if="w.score"
  1845. @click.stop="openScore(w)"
  1846. :class="{
  1847. rightW:
  1848. w.userid == userid ||
  1849. tType == 1 ||
  1850. tType == 4 ||
  1851. w.ateacher == userid,
  1852. }"
  1853. >
  1854. {{ JSON.parse(w.score).wScore }}分
  1855. </div>
  1856. <div
  1857. class="answerScore"
  1858. @click.stop="openScore(w)"
  1859. v-else-if="courseDetail.userid == userid"
  1860. :class="{
  1861. rightW:
  1862. w.userid == userid ||
  1863. tType == 1 ||
  1864. tType == 4 ||
  1865. w.ateacher == userid,
  1866. }"
  1867. >
  1868. 评分
  1869. </div>
  1870. <img
  1871. class="deleteImg"
  1872. src="../../assets/deleteworks.png"
  1873. v-if="w.userid == userid || tType == 1 || tType == 4"
  1874. @click.stop="deleteWorks(w.wid)"
  1875. alt
  1876. />
  1877. </div>
  1878. <div
  1879. class="workImg"
  1880. style="cursor: pointer"
  1881. v-if="w.type == 1"
  1882. >
  1883. <img :src="word" @click="openFile(w.works)" alt />
  1884. <!-- @click="openFile(w.works)" -->
  1885. <div
  1886. class="answerScore"
  1887. v-if="w.score"
  1888. @click.stop="openScore(w)"
  1889. :class="{
  1890. rightW:
  1891. w.userid == userid ||
  1892. tType == 1 ||
  1893. tType == 4 ||
  1894. w.ateacher == userid,
  1895. }"
  1896. >
  1897. {{ JSON.parse(w.score).wScore }}分
  1898. </div>
  1899. <div
  1900. class="answerScore"
  1901. @click.stop="openScore(w)"
  1902. v-else-if="courseDetail.userid == userid"
  1903. :class="{
  1904. rightW:
  1905. w.userid == userid ||
  1906. tType == 1 ||
  1907. tType == 4 ||
  1908. w.ateacher == userid,
  1909. }"
  1910. >
  1911. 评分
  1912. </div>
  1913. <img
  1914. class="deleteImg"
  1915. src="../../assets/deleteworks.png"
  1916. v-if="w.userid == userid || tType == 1 || tType == 4"
  1917. @click.stop="deleteWorks(w.wid)"
  1918. alt
  1919. />
  1920. </div>
  1921. <div class="workImg" v-if="w.type == 3">
  1922. <img
  1923. style="cursor: pointer"
  1924. :src="video"
  1925. @click="openVideo(w)"
  1926. alt
  1927. />
  1928. <!-- @click="openVideo(w.works)" -->
  1929. <div
  1930. class="answerScore"
  1931. v-if="w.score"
  1932. @click.stop="openScore(w)"
  1933. :class="{
  1934. rightW:
  1935. w.userid == userid ||
  1936. tType == 1 ||
  1937. tType == 4 ||
  1938. w.ateacher == userid,
  1939. }"
  1940. >
  1941. {{ JSON.parse(w.score).wScore }}分
  1942. </div>
  1943. <div
  1944. class="answerScore"
  1945. @click.stop="openScore(w)"
  1946. v-else-if="courseDetail.userid == userid"
  1947. :class="{
  1948. rightW:
  1949. w.userid == userid ||
  1950. tType == 1 ||
  1951. tType == 4 ||
  1952. w.ateacher == userid,
  1953. }"
  1954. >
  1955. 评分
  1956. </div>
  1957. <img
  1958. class="deleteImg"
  1959. src="../../assets/deleteworks.png"
  1960. v-if="w.userid == userid || tType == 1 || tType == 4"
  1961. @click.stop="deleteWorks(w.wid)"
  1962. alt
  1963. />
  1964. </div>
  1965. <div class="comment" style="min-width: 200px">
  1966. <div class="worksName">
  1967. <div
  1968. style="cursor: pointer"
  1969. @click="
  1970. openSname(w.sName, w.wid, toolIndex, w.userid)
  1971. "
  1972. >
  1973. {{ w.sName }}
  1974. </div>
  1975. </div>
  1976. <div class="commentList">
  1977. <div class="commentList">
  1978. <div
  1979. class="commentImg"
  1980. @click="
  1981. isLikes(w.wid, userid, 1, null, w.isLikes)
  1982. "
  1983. >
  1984. <img
  1985. :src="w.isLikes == true ? likes : noLikes"
  1986. alt=""
  1987. />
  1988. </div>
  1989. <div>{{ w.likesCount }}</div>
  1990. </div>
  1991. <div class="commentList" style="margin-right: 15px">
  1992. <div
  1993. class="commentImg"
  1994. @click="commentOther(w, toolIndex, wIndex)"
  1995. >
  1996. <img
  1997. src="../../assets/icon/comment/comment.png"
  1998. alt=""
  1999. />
  2000. </div>
  2001. <div>{{ w.commentCount }}</div>
  2002. </div>
  2003. </div>
  2004. </div>
  2005. </div>
  2006. </div>
  2007. </div>
  2008. <div
  2009. v-if="
  2010. tType &&
  2011. ((tType == 2 && sIsOpen == true) ||
  2012. tType == 1 ||
  2013. tType == 4) &&
  2014. tool.tool.indexOf(4) != -1
  2015. "
  2016. class="worksBox"
  2017. >
  2018. <div
  2019. class="zuoyeYulan"
  2020. v-if="
  2021. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2022. "
  2023. >
  2024. <div class="worksTop">
  2025. <div>作业预览</div>
  2026. </div>
  2027. </div>
  2028. <div>
  2029. <div
  2030. class="worksDetailBox"
  2031. v-if="
  2032. worksTeacher.length &&
  2033. worksTeacher[toolIndex].length > 0
  2034. "
  2035. >
  2036. <div
  2037. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2038. :key="wIndex"
  2039. class="isWorksName2"
  2040. @click="
  2041. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2042. "
  2043. >
  2044. {{ w.sName }}
  2045. <img
  2046. class="deleteImg deleteImg2"
  2047. src="../../assets/deleteworks.png"
  2048. v-if="w.userid == userid || tType == 1 || tType == 4"
  2049. @click.stop="deleteWorks(w.wid)"
  2050. alt
  2051. />
  2052. </div>
  2053. </div>
  2054. </div>
  2055. </div>
  2056. <div
  2057. v-if="
  2058. tType &&
  2059. ((tType == 2 && sIsOpen == true) ||
  2060. tType == 1 ||
  2061. tType == 4) &&
  2062. tool.tool.indexOf(45) != -1
  2063. "
  2064. class="worksBox"
  2065. >
  2066. <div
  2067. class="zuoyeYulan"
  2068. v-if="
  2069. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2070. "
  2071. >
  2072. <div class="worksTop">
  2073. <div>作业预览</div>
  2074. </div>
  2075. </div>
  2076. <div>
  2077. <div
  2078. class="worksDetailBox"
  2079. v-if="
  2080. worksTeacher.length &&
  2081. worksTeacher[toolIndex].length > 0
  2082. "
  2083. >
  2084. <div
  2085. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2086. :key="wIndex"
  2087. class="isWorksName2"
  2088. @click="
  2089. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2090. "
  2091. >
  2092. {{ w.sName }}
  2093. <img
  2094. class="deleteImg deleteImg2"
  2095. src="../../assets/deleteworks.png"
  2096. v-if="w.userid == userid || tType == 1 || tType == 4"
  2097. @click.stop="deleteWorks(w.wid)"
  2098. alt
  2099. />
  2100. </div>
  2101. </div>
  2102. </div>
  2103. </div>
  2104. <div
  2105. v-if="
  2106. tType &&
  2107. ((tType == 2 && sIsOpen == true) ||
  2108. tType == 1 ||
  2109. tType == 4) &&
  2110. tool.tool.indexOf(15) != -1
  2111. "
  2112. class="worksBox"
  2113. >
  2114. <div
  2115. class="zuoyeYulan"
  2116. v-if="
  2117. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2118. "
  2119. >
  2120. <div class="worksTop">
  2121. <div>作业预览</div>
  2122. </div>
  2123. </div>
  2124. <div
  2125. class="worksDetailBox"
  2126. v-if="
  2127. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2128. "
  2129. >
  2130. <div
  2131. class="works"
  2132. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2133. :key="wIndex"
  2134. >
  2135. <div
  2136. class="workImg"
  2137. style="
  2138. border-radius: 15px;
  2139. box-shadow: 0px 0px 5px 5px #eee;
  2140. "
  2141. >
  2142. <!-- <img
  2143. src="../../assets/icon/works/noImg.png"
  2144. @click="openTools(15, toolIndex, taskCount, w.works)"
  2145. alt=""
  2146. />-->
  2147. <div
  2148. class="answerBg"
  2149. style="border-radius: 15px 15px 0 0"
  2150. @click="commentOther(w, toolIndex, wIndex)"
  2151. >
  2152. <!-- <div>{{ w.sName }}</div> -->
  2153. <div class="answerContent">
  2154. {{ JSON.parse(w.works)[0].answer }}
  2155. </div>
  2156. <div
  2157. class="answerScore"
  2158. v-if="w.score"
  2159. @click.stop="openScore(w)"
  2160. :class="{
  2161. rightW:
  2162. w.userid == userid || tType == 1 || tType == 4,
  2163. }"
  2164. >
  2165. {{ JSON.parse(w.score).wScore }}分
  2166. </div>
  2167. <div
  2168. class="answerScore"
  2169. @click.stop="openScore(w)"
  2170. v-else-if="courseDetail.userid == userid"
  2171. :class="{
  2172. rightW:
  2173. w.userid == userid || tType == 1 || tType == 4,
  2174. }"
  2175. >
  2176. 评分
  2177. </div>
  2178. <img
  2179. class="deleteImg"
  2180. src="../../assets/deleteworks.png"
  2181. v-if="
  2182. w.userid == userid || tType == 1 || tType == 4
  2183. "
  2184. @click.stop="deleteWorks(w.wid)"
  2185. alt
  2186. />
  2187. </div>
  2188. <div class="comment">
  2189. <div class="worksName">
  2190. <div>{{ w.sName }}</div>
  2191. </div>
  2192. <div class="commentList">
  2193. <div
  2194. class="commentImg"
  2195. @click="
  2196. isLikes(w.wid, userid, 1, null, w.isLikes)
  2197. "
  2198. >
  2199. <img
  2200. :src="w.isLikes == true ? likes : noLikes"
  2201. alt=""
  2202. />
  2203. </div>
  2204. <div>{{ w.likesCount }}</div>
  2205. </div>
  2206. <div class="commentList" style="margin-right: 15px">
  2207. <div
  2208. class="commentImg"
  2209. @click="commentOther(w, toolIndex, wIndex)"
  2210. >
  2211. <img
  2212. src="../../assets/icon/comment/comment.png"
  2213. alt=""
  2214. />
  2215. </div>
  2216. <div>{{ w.commentCount }}</div>
  2217. </div>
  2218. </div>
  2219. </div>
  2220. </div>
  2221. </div>
  2222. </div>
  2223. <div
  2224. v-if="
  2225. tType &&
  2226. ((tType == 2 && sIsOpen == true) ||
  2227. tType == 1 ||
  2228. tType == 4) &&
  2229. tool.tool.indexOf(1) != -1
  2230. "
  2231. class="worksBox"
  2232. >
  2233. <div
  2234. class="zuoyeYulan"
  2235. v-if="
  2236. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2237. "
  2238. >
  2239. <div class="worksTop">
  2240. <div>作业预览</div>
  2241. </div>
  2242. </div>
  2243. <div
  2244. class="worksDetailBox"
  2245. v-if="
  2246. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2247. "
  2248. >
  2249. <div
  2250. class="works"
  2251. style="
  2252. width: 200px;
  2253. height: 140px;
  2254. margin: 10px 10px 10px 0;
  2255. border-radius: 15px;
  2256. box-shadow: 0 0 6px 1px #dfdada;
  2257. "
  2258. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2259. :key="wIndex"
  2260. >
  2261. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2262. <div class="workImg">
  2263. <img :src="w.works" @click="previewImg(w.works)" alt />
  2264. <div
  2265. class="answerScore"
  2266. v-if="w.score"
  2267. @click.stop="openScore(w)"
  2268. :class="{
  2269. rightW:
  2270. w.userid == userid || tType == 1 || tType == 4,
  2271. }"
  2272. >
  2273. {{ JSON.parse(w.score).wScore }}分
  2274. </div>
  2275. <div
  2276. class="answerScore"
  2277. @click.stop="openScore(w)"
  2278. v-else-if="courseDetail.userid == userid"
  2279. :class="{
  2280. rightW:
  2281. w.userid == userid || tType == 1 || tType == 4,
  2282. }"
  2283. >
  2284. 评分
  2285. </div>
  2286. <img
  2287. class="deleteImg"
  2288. src="../../assets/deleteworks.png"
  2289. v-if="w.userid == userid || tType == 1 || tType == 4"
  2290. @click.stop="deleteWorks(w.wid)"
  2291. alt
  2292. />
  2293. </div>
  2294. <div class="comment" style="min-width: 200px">
  2295. <div class="worksName">
  2296. <div>{{ w.sName }}</div>
  2297. </div>
  2298. <div class="commentList">
  2299. <div class="commentList">
  2300. <div
  2301. class="commentImg"
  2302. @click="
  2303. isLikes(w.wid, userid, 1, null, w.isLikes)
  2304. "
  2305. >
  2306. <img
  2307. :src="w.isLikes == true ? likes : noLikes"
  2308. alt=""
  2309. />
  2310. </div>
  2311. <div>{{ w.likesCount }}</div>
  2312. </div>
  2313. <div class="commentList" style="margin-right: 15px">
  2314. <div
  2315. class="commentImg"
  2316. @click="commentOther(w, toolIndex, wIndex)"
  2317. >
  2318. <img
  2319. src="../../assets/icon/comment/comment.png"
  2320. alt=""
  2321. />
  2322. </div>
  2323. <div>{{ w.commentCount }}</div>
  2324. </div>
  2325. </div>
  2326. </div>
  2327. </div>
  2328. </div>
  2329. </div>
  2330. <div
  2331. v-if="
  2332. tType &&
  2333. ((tType == 2 && sIsOpen == true) ||
  2334. tType == 1 ||
  2335. tType == 4) &&
  2336. tool.tool.indexOf(3) != -1
  2337. "
  2338. class="worksBox"
  2339. >
  2340. <div
  2341. class="zuoyeYulan"
  2342. v-if="
  2343. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2344. "
  2345. >
  2346. <div class="worksTop">
  2347. <div>作业预览</div>
  2348. </div>
  2349. </div>
  2350. <div
  2351. class="worksDetailBox"
  2352. v-if="
  2353. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2354. "
  2355. >
  2356. <div
  2357. class="works"
  2358. style="
  2359. width: 200px;
  2360. height: 140px;
  2361. margin: 10px 10px 10px 0;
  2362. border-radius: 15px;
  2363. box-shadow: 0 0 6px 1px #dfdada;
  2364. "
  2365. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2366. :key="wIndex"
  2367. >
  2368. <!-- @click="previewImg(w.works)" -->
  2369. <div class="workImg">
  2370. <img :src="w.works" @click="previewImg(w.works)" alt />
  2371. <div
  2372. class="answerScore"
  2373. v-if="w.score"
  2374. @click.stop="openScore(w)"
  2375. :class="{
  2376. rightW:
  2377. w.userid == userid || tType == 1 || tType == 4,
  2378. }"
  2379. >
  2380. {{ JSON.parse(w.score).wScore }}分
  2381. </div>
  2382. <div
  2383. class="answerScore"
  2384. @click.stop="openScore(w)"
  2385. v-else-if="courseDetail.userid == userid"
  2386. :class="{
  2387. rightW:
  2388. w.userid == userid || tType == 1 || tType == 4,
  2389. }"
  2390. >
  2391. 评分
  2392. </div>
  2393. <img
  2394. class="deleteImg"
  2395. src="../../assets/deleteworks.png"
  2396. v-if="w.userid == userid || tType == 1 || tType == 4"
  2397. @click.stop="deleteWorks(w.wid)"
  2398. alt
  2399. />
  2400. </div>
  2401. <div class="comment" style="min-width: 200px">
  2402. <div class="worksName">
  2403. <div>{{ w.sName }}</div>
  2404. </div>
  2405. <div class="commentList">
  2406. <div class="commentList">
  2407. <div
  2408. class="commentImg"
  2409. @click="
  2410. isLikes(w.wid, userid, 1, null, w.isLikes)
  2411. "
  2412. >
  2413. <img
  2414. :src="w.isLikes == true ? likes : noLikes"
  2415. alt=""
  2416. />
  2417. </div>
  2418. <div>{{ w.likesCount }}</div>
  2419. </div>
  2420. <div class="commentList" style="margin-right: 15px">
  2421. <div
  2422. class="commentImg"
  2423. @click="commentOther(w, toolIndex, wIndex)"
  2424. >
  2425. <img
  2426. src="../../assets/icon/comment/comment.png"
  2427. alt=""
  2428. />
  2429. </div>
  2430. <div>{{ w.commentCount }}</div>
  2431. </div>
  2432. </div>
  2433. </div>
  2434. </div>
  2435. </div>
  2436. </div>
  2437. <div
  2438. v-if="
  2439. tType &&
  2440. ((tType == 2 && sIsOpen == true) ||
  2441. tType == 1 ||
  2442. tType == 4) &&
  2443. tool.tool.indexOf(6) != -1
  2444. "
  2445. class="worksBox"
  2446. >
  2447. <div
  2448. class="zuoyeYulan"
  2449. v-if="
  2450. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2451. "
  2452. >
  2453. <div class="worksTop">
  2454. <div>作业预览</div>
  2455. </div>
  2456. </div>
  2457. <div
  2458. class="worksDetailBox"
  2459. v-if="
  2460. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2461. "
  2462. >
  2463. <div
  2464. class="works"
  2465. style="
  2466. width: 200px;
  2467. height: 140px;
  2468. margin: 10px 10px 10px 0;
  2469. border-radius: 15px;
  2470. box-shadow: 0 0 6px 1px #dfdada;
  2471. "
  2472. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2473. :key="wIndex"
  2474. >
  2475. <!-- @click="previewImg(w.works)" -->
  2476. <div class="workImg">
  2477. <img :src="w.works" @click="previewImg(w.works)" alt />
  2478. <div
  2479. class="answerScore"
  2480. v-if="w.score"
  2481. @click.stop="openScore(w)"
  2482. :class="{
  2483. rightW:
  2484. w.userid == userid || tType == 1 || tType == 4,
  2485. }"
  2486. >
  2487. {{ JSON.parse(w.score).wScore }}分
  2488. </div>
  2489. <div
  2490. class="answerScore"
  2491. @click.stop="openScore(w)"
  2492. v-else-if="courseDetail.userid == userid"
  2493. :class="{
  2494. rightW:
  2495. w.userid == userid || tType == 1 || tType == 4,
  2496. }"
  2497. >
  2498. 评分
  2499. </div>
  2500. <img
  2501. class="deleteImg"
  2502. src="../../assets/deleteworks.png"
  2503. v-if="w.userid == userid || tType == 1 || tType == 4"
  2504. @click.stop="deleteWorks(w.wid)"
  2505. alt
  2506. />
  2507. </div>
  2508. <div class="comment" style="min-width: 200px">
  2509. <div class="worksName">
  2510. <div>{{ w.sName }}</div>
  2511. </div>
  2512. <div class="commentList">
  2513. <div class="commentList">
  2514. <div
  2515. class="commentImg"
  2516. @click="
  2517. isLikes(w.wid, userid, 1, null, w.isLikes)
  2518. "
  2519. >
  2520. <img
  2521. :src="w.isLikes == true ? likes : noLikes"
  2522. alt=""
  2523. />
  2524. </div>
  2525. <div>{{ w.likesCount }}</div>
  2526. </div>
  2527. <div class="commentList" style="margin-right: 15px">
  2528. <div
  2529. class="commentImg"
  2530. @click="commentOther(w, toolIndex, wIndex)"
  2531. >
  2532. <img
  2533. src="../../assets/icon/comment/comment.png"
  2534. alt=""
  2535. />
  2536. </div>
  2537. <div>{{ w.commentCount }}</div>
  2538. </div>
  2539. </div>
  2540. </div>
  2541. </div>
  2542. </div>
  2543. </div>
  2544. <div
  2545. v-if="
  2546. tType &&
  2547. ((tType == 2 && sIsOpen == true) ||
  2548. tType == 1 ||
  2549. tType == 4) &&
  2550. tool.tool.indexOf(7) != -1
  2551. "
  2552. class="worksBox"
  2553. >
  2554. <div
  2555. class="zuoyeYulan"
  2556. v-if="
  2557. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2558. "
  2559. >
  2560. <div class="worksTop">
  2561. <div>作业预览</div>
  2562. </div>
  2563. </div>
  2564. <div
  2565. class="worksDetailBox"
  2566. v-if="
  2567. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2568. "
  2569. >
  2570. <div
  2571. class="works"
  2572. style="
  2573. width: 200px;
  2574. height: 140px;
  2575. margin: 10px 10px 10px 0;
  2576. border-radius: 15px;
  2577. box-shadow: 0 0 6px 1px #dfdada;
  2578. "
  2579. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2580. :key="wIndex"
  2581. >
  2582. <!-- @click="previewImg(w.works)" -->
  2583. <div class="workImg">
  2584. <img :src="w.works" @click="previewImg(w.works)" alt />
  2585. <div
  2586. class="answerScore"
  2587. v-if="w.score"
  2588. @click.stop="openScore(w)"
  2589. :class="{
  2590. rightW:
  2591. w.userid == userid || tType == 1 || tType == 4,
  2592. }"
  2593. >
  2594. {{ JSON.parse(w.score).wScore }}分
  2595. </div>
  2596. <div
  2597. class="answerScore"
  2598. @click.stop="openScore(w)"
  2599. v-else-if="courseDetail.userid == userid"
  2600. :class="{
  2601. rightW:
  2602. w.userid == userid || tType == 1 || tType == 4,
  2603. }"
  2604. >
  2605. 评分
  2606. </div>
  2607. <img
  2608. class="deleteImg"
  2609. src="../../assets/deleteworks.png"
  2610. v-if="w.userid == userid || tType == 1 || tType == 4"
  2611. @click.stop="deleteWorks(w.wid)"
  2612. alt
  2613. />
  2614. </div>
  2615. <div class="comment" style="min-width: 200px">
  2616. <div class="worksName">
  2617. <div>{{ w.sName }}</div>
  2618. </div>
  2619. <div class="commentList">
  2620. <div class="commentList">
  2621. <div
  2622. class="commentImg"
  2623. @click="
  2624. isLikes(w.wid, userid, 1, null, w.isLikes)
  2625. "
  2626. >
  2627. <img
  2628. :src="w.isLikes == true ? likes : noLikes"
  2629. alt=""
  2630. />
  2631. </div>
  2632. <div>{{ w.likesCount }}</div>
  2633. </div>
  2634. <div class="commentList" style="margin-right: 15px">
  2635. <div
  2636. class="commentImg"
  2637. @click="commentOther(w, toolIndex, wIndex)"
  2638. >
  2639. <img
  2640. src="../../assets/icon/comment/comment.png"
  2641. alt=""
  2642. />
  2643. </div>
  2644. <div>{{ w.commentCount }}</div>
  2645. </div>
  2646. </div>
  2647. </div>
  2648. </div>
  2649. </div>
  2650. </div>
  2651. <div
  2652. v-if="
  2653. tType &&
  2654. ((tType == 2 && sIsOpen == true) ||
  2655. tType == 1 ||
  2656. tType == 4) &&
  2657. tool.tool.indexOf(26) != -1
  2658. "
  2659. class="worksBox"
  2660. >
  2661. <div
  2662. class="zuoyeYulan"
  2663. v-if="
  2664. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2665. "
  2666. >
  2667. <div class="worksTop">
  2668. <div>作业预览</div>
  2669. </div>
  2670. </div>
  2671. <div
  2672. class="worksDetailBox"
  2673. v-if="
  2674. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2675. "
  2676. >
  2677. <div
  2678. class="works"
  2679. style="width: 240px; height: 140px; overflow: hidden"
  2680. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2681. :key="wIndex"
  2682. :class="w.type == 1 ? 'isTypeOne' : ''"
  2683. >
  2684. <div class="workImg" v-if="w.type == 0">
  2685. <img :src="w.works" @click="previewImg(w.works)" alt />
  2686. <img
  2687. class="deleteImg"
  2688. src="../../assets/deleteworks.png"
  2689. v-if="w.userid == userid || tType == 1 || tType == 4"
  2690. @click.stop="deleteWorks(w.wid)"
  2691. alt
  2692. />
  2693. </div>
  2694. <div class="workImg" v-if="w.type == 1">
  2695. <img :src="word" @click="openFile(w.works)" alt />
  2696. <img
  2697. class="deleteImg"
  2698. src="../../assets/deleteworks.png"
  2699. v-if="w.userid == userid || tType == 1 || tType == 4"
  2700. @click.stop="deleteWorks(w.wid)"
  2701. alt
  2702. />
  2703. </div>
  2704. <div class="worksName">
  2705. <div>{{ w.sName }}</div>
  2706. </div>
  2707. </div>
  2708. </div>
  2709. </div>
  2710. <div
  2711. v-if="
  2712. tType &&
  2713. ((tType == 2 && sIsOpen == true) ||
  2714. tType == 1 ||
  2715. tType == 4) &&
  2716. tool.tool.indexOf(40) != -1
  2717. "
  2718. class="worksBox"
  2719. >
  2720. <div
  2721. class="zuoyeYulan"
  2722. v-if="
  2723. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2724. "
  2725. >
  2726. <div class="worksTop">
  2727. <div>作业预览</div>
  2728. </div>
  2729. </div>
  2730. <div
  2731. class="worksDetailBox"
  2732. v-if="
  2733. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2734. "
  2735. >
  2736. <div
  2737. class="works"
  2738. style="
  2739. width: 200px;
  2740. height: 140px;
  2741. margin: 10px 10px 10px 0;
  2742. border-radius: 15px;
  2743. box-shadow: 0 0 6px 1px #dfdada;
  2744. "
  2745. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2746. :key="wIndex"
  2747. :class="w.type == 1 ? 'isTypeOne' : ''"
  2748. >
  2749. <div class="workImg">
  2750. <img
  2751. src="../../assets/icon/works/noImg.png"
  2752. @click="openPj(w.works, toolIndex)"
  2753. alt
  2754. />
  2755. <img
  2756. class="deleteImg"
  2757. src="../../assets/deleteworks.png"
  2758. v-if="w.userid == userid || tType == 1 || tType == 4"
  2759. @click.stop="deleteWorks(w.wid)"
  2760. alt
  2761. />
  2762. </div>
  2763. <div class="comment" style="min-width: 200px">
  2764. <div class="worksName">
  2765. <div>{{ w.sName }}</div>
  2766. </div>
  2767. <div class="commentList">
  2768. <div class="commentList">
  2769. <div
  2770. class="commentImg"
  2771. @click="
  2772. isLikes(w.wid, userid, 1, null, w.isLikes)
  2773. "
  2774. >
  2775. <img
  2776. :src="w.isLikes == true ? likes : noLikes"
  2777. alt=""
  2778. />
  2779. </div>
  2780. <div>{{ w.likesCount }}</div>
  2781. </div>
  2782. <div class="commentList" style="margin-right: 15px">
  2783. <div
  2784. class="commentImg"
  2785. @click="commentOther(w, toolIndex, wIndex)"
  2786. >
  2787. <img
  2788. src="../../assets/icon/comment/comment.png"
  2789. alt=""
  2790. />
  2791. </div>
  2792. <div>{{ w.commentCount }}</div>
  2793. </div>
  2794. </div>
  2795. </div>
  2796. </div>
  2797. </div>
  2798. </div>
  2799. <div
  2800. v-if="
  2801. tType &&
  2802. ((tType == 2 && sIsOpen == true) ||
  2803. tType == 1 ||
  2804. tType == 4) &&
  2805. tool.tool.indexOf(41) != -1
  2806. "
  2807. class="worksBox"
  2808. >
  2809. <div
  2810. class="zuoyeYulan"
  2811. v-if="
  2812. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2813. "
  2814. >
  2815. <div class="worksTop">
  2816. <div>作业预览</div>
  2817. </div>
  2818. </div>
  2819. <div
  2820. class="worksDetailBox"
  2821. v-if="
  2822. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2823. "
  2824. >
  2825. <div
  2826. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2827. :key="wIndex"
  2828. class="isWorksName2"
  2829. @click="openXz(w, toolIndex)"
  2830. >
  2831. {{ w.sName }}
  2832. <img
  2833. class="deleteImg deleteImg2"
  2834. src="../../assets/deleteworks.png"
  2835. v-if="w.userid == userid || tType == 1 || tType == 4"
  2836. @click.stop="deleteWorks(w.wid)"
  2837. alt
  2838. />
  2839. </div>
  2840. </div>
  2841. </div>
  2842. <div
  2843. v-if="
  2844. tType &&
  2845. ((tType == 2 && sIsOpen == true) ||
  2846. tType == 1 ||
  2847. tType == 4) &&
  2848. tool.tool.indexOf(47) != -1
  2849. "
  2850. class="worksBox"
  2851. >
  2852. <div
  2853. class="zuoyeYulan"
  2854. v-if="
  2855. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2856. "
  2857. >
  2858. <div class="worksTop">
  2859. <div>作业预览</div>
  2860. </div>
  2861. </div>
  2862. <div
  2863. class="worksDetailBox"
  2864. v-if="
  2865. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2866. "
  2867. >
  2868. <!-- @click="openXz(w, toolIndex)" -->
  2869. <div
  2870. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2871. :key="wIndex"
  2872. class="isWorksName2"
  2873. @click="openSen(w, toolIndex)"
  2874. >
  2875. {{ w.sName }}
  2876. <img
  2877. class="deleteImg deleteImg2"
  2878. src="../../assets/deleteworks.png"
  2879. v-if="w.userid == userid || tType == 1 || tType == 4"
  2880. @click.stop="deleteWorks(w.wid)"
  2881. alt
  2882. />
  2883. </div>
  2884. </div>
  2885. </div>
  2886. <div
  2887. v-if="
  2888. tType &&
  2889. ((tType == 2 && sIsOpen == true) ||
  2890. tType == 1 ||
  2891. tType == 4) &&
  2892. tool.tool.indexOf(48) != -1
  2893. "
  2894. class="worksBox"
  2895. >
  2896. <div
  2897. class="zuoyeYulan"
  2898. v-if="
  2899. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2900. "
  2901. >
  2902. <div class="worksTop">
  2903. <div>作业预览</div>
  2904. </div>
  2905. </div>
  2906. <div
  2907. class="worksDetailBox"
  2908. v-if="
  2909. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2910. "
  2911. >
  2912. <div
  2913. class="works"
  2914. style="
  2915. width: 200px;
  2916. height: 140px;
  2917. margin: 10px 10px 10px 0;
  2918. border-radius: 15px;
  2919. box-shadow: 0 0 6px 1px #dfdada;
  2920. "
  2921. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2922. :key="wIndex"
  2923. :class="w.type == 1 ? 'isTypeOne' : ''"
  2924. >
  2925. <div class="workImg">
  2926. <img :src="word" @click="openTable(w)" alt />
  2927. <!-- @click="openFile(w.works)" -->
  2928. <div
  2929. class="answerScore"
  2930. v-if="w.score"
  2931. @click.stop="openScore(w)"
  2932. :class="{
  2933. rightW:
  2934. w.userid == userid ||
  2935. tType == 1 ||
  2936. tType == 4 ||
  2937. w.ateacher == userid,
  2938. }"
  2939. >
  2940. {{ JSON.parse(w.score).wScore }}分
  2941. </div>
  2942. <div
  2943. class="answerScore"
  2944. @click.stop="openScore(w)"
  2945. v-else-if="courseDetail.userid == userid"
  2946. :class="{
  2947. rightW:
  2948. w.userid == userid ||
  2949. tType == 1 ||
  2950. tType == 4 ||
  2951. w.ateacher == userid,
  2952. }"
  2953. >
  2954. 评分
  2955. </div>
  2956. <img
  2957. class="deleteImg"
  2958. src="../../assets/deleteworks.png"
  2959. v-if="w.userid == userid || tType == 1 || tType == 4"
  2960. @click.stop="deleteWorks(w.wid)"
  2961. alt
  2962. />
  2963. </div>
  2964. <div class="comment" style="min-width: 200px">
  2965. <div class="worksName">
  2966. <div>{{ w.sName }}</div>
  2967. </div>
  2968. <div class="commentList">
  2969. <div class="commentList">
  2970. <div
  2971. class="commentImg"
  2972. @click="
  2973. isLikes(w.wid, userid, 1, null, w.isLikes)
  2974. "
  2975. >
  2976. <img
  2977. :src="w.isLikes == true ? likes : noLikes"
  2978. alt=""
  2979. />
  2980. </div>
  2981. <div>{{ w.likesCount }}</div>
  2982. </div>
  2983. <div class="commentList" style="margin-right: 15px">
  2984. <div
  2985. class="commentImg"
  2986. @click="commentOther(w, toolIndex, wIndex)"
  2987. >
  2988. <img
  2989. src="../../assets/icon/comment/comment.png"
  2990. alt=""
  2991. />
  2992. </div>
  2993. <div>{{ w.commentCount }}</div>
  2994. </div>
  2995. </div>
  2996. </div>
  2997. </div>
  2998. </div>
  2999. </div>
  3000. <div
  3001. v-if="
  3002. tType &&
  3003. ((tType == 2 && sIsOpen == true) ||
  3004. tType == 1 ||
  3005. tType == 4) &&
  3006. tool.tool.indexOf(52) != -1
  3007. "
  3008. class="worksBox"
  3009. >
  3010. <div
  3011. class="zuoyeYulan"
  3012. v-if="
  3013. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3014. "
  3015. >
  3016. <div class="worksTop">
  3017. <div>作业预览</div>
  3018. </div>
  3019. </div>
  3020. <div
  3021. class="worksDetailBox"
  3022. v-if="
  3023. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3024. "
  3025. >
  3026. <div
  3027. class="works"
  3028. style="
  3029. width: 200px;
  3030. height: 140px;
  3031. margin: 10px 10px 10px 0;
  3032. border-radius: 15px;
  3033. box-shadow: 0 0 6px 1px #dfdada;
  3034. "
  3035. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3036. :key="wIndex"
  3037. :class="w.type == 1 ? 'isTypeOne' : ''"
  3038. >
  3039. <div class="workImg">
  3040. <img :src="word" @click="openWord(w)" alt />
  3041. <!-- @click="openFile(w.works)" -->
  3042. <div
  3043. class="answerScore"
  3044. v-if="w.score"
  3045. @click.stop="openScore(w)"
  3046. :class="{
  3047. rightW:
  3048. w.userid == userid ||
  3049. tType == 1 ||
  3050. tType == 4 ||
  3051. w.ateacher == userid,
  3052. }"
  3053. >
  3054. {{ JSON.parse(w.score).wScore }}分
  3055. </div>
  3056. <div
  3057. class="answerScore"
  3058. @click.stop="openScore(w)"
  3059. v-else-if="courseDetail.userid == userid"
  3060. :class="{
  3061. rightW:
  3062. w.userid == userid ||
  3063. tType == 1 ||
  3064. tType == 4 ||
  3065. w.ateacher == userid,
  3066. }"
  3067. >
  3068. 评分
  3069. </div>
  3070. <img
  3071. class="deleteImg"
  3072. src="../../assets/deleteworks.png"
  3073. v-if="w.userid == userid || tType == 1 || tType == 4"
  3074. @click.stop="deleteWorks(w.wid)"
  3075. alt
  3076. />
  3077. </div>
  3078. <div class="comment" style="min-width: 200px">
  3079. <div class="worksName">
  3080. <div>{{ w.sName }}</div>
  3081. </div>
  3082. <div class="commentList">
  3083. <div class="commentList">
  3084. <div
  3085. class="commentImg"
  3086. @click="
  3087. isLikes(w.wid, userid, 1, null, w.isLikes)
  3088. "
  3089. >
  3090. <img
  3091. :src="w.isLikes == true ? likes : noLikes"
  3092. alt=""
  3093. />
  3094. </div>
  3095. <div>{{ w.likesCount }}</div>
  3096. </div>
  3097. <div class="commentList" style="margin-right: 15px">
  3098. <div
  3099. class="commentImg"
  3100. @click="commentOther(w, toolIndex, wIndex)"
  3101. >
  3102. <img
  3103. src="../../assets/icon/comment/comment.png"
  3104. alt=""
  3105. />
  3106. </div>
  3107. <div>{{ w.commentCount }}</div>
  3108. </div>
  3109. </div>
  3110. </div>
  3111. </div>
  3112. </div>
  3113. </div>
  3114. </div>
  3115. </div>
  3116. <div class="vedioBox">
  3117. <div
  3118. v-if="
  3119. tType &&
  3120. ((tType == 2 && sIsOpen == true) ||
  3121. tType == 1 ||
  3122. tType == 4) &&
  3123. tool.tool.indexOf(4) != -1 &&
  3124. worksStudent.length &&
  3125. worksStudent[toolIndex].length &&
  3126. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3127. checkJson[toolIndex].length
  3128. "
  3129. class="xuan_right_box"
  3130. >
  3131. <div
  3132. class="tool_right_box"
  3133. v-for="(item, index) in tool.askJson"
  3134. :key="index"
  3135. >
  3136. <div>
  3137. <span style="word-break: break-all; white-space: normal">{{
  3138. index + 1 + "、" + item.askstitle
  3139. }}</span>
  3140. </div>
  3141. <div class="right_box_xuan">
  3142. <span>正确率</span>
  3143. <span>{{
  3144. (checkJson[toolIndex][index].right
  3145. ? checkJson[toolIndex][index].right
  3146. : 0) + "%"
  3147. }}</span>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div
  3152. class="xuan_right_box"
  3153. style="background: unset; padding: 0 10px"
  3154. v-if="
  3155. tType &&
  3156. ((tType == 2 && sIsOpen == true) ||
  3157. tType == 1 ||
  3158. tType == 4) &&
  3159. tool.tool.indexOf(4) != -1 &&
  3160. worksStudent.length &&
  3161. worksStudent[toolIndex].length
  3162. "
  3163. >
  3164. <AskStatic
  3165. v-if="
  3166. worksStudent.length && worksStudent[toolIndex].length > 0
  3167. "
  3168. :askJSON="tool"
  3169. :checkJson="checkJson[toolIndex]"
  3170. ></AskStatic>
  3171. </div>
  3172. <div
  3173. v-if="
  3174. tType &&
  3175. ((tType == 2 && sIsOpen == true) ||
  3176. tType == 1 ||
  3177. tType == 4) &&
  3178. tool.tool.indexOf(45) != -1 &&
  3179. worksStudent.length &&
  3180. worksStudent[toolIndex].length &&
  3181. (tool.testJson.testJson[0].answer ||
  3182. tool.testJson.testJson[0].answer === 0) &&
  3183. checkJson[toolIndex].length
  3184. "
  3185. class="xuan_right_box"
  3186. >
  3187. <div
  3188. class="tool_right_box"
  3189. v-for="(item, index) in tool.testJson.testJson"
  3190. :key="index"
  3191. >
  3192. <div class="right_box_xuan" style="margin-right: 10px">
  3193. <span>正确率</span>
  3194. <span>{{
  3195. (checkJson[toolIndex][index].right
  3196. ? checkJson[toolIndex][index].right
  3197. : 0) + "%"
  3198. }}</span>
  3199. </div>
  3200. <div>
  3201. <span style="word-break: break-all; white-space: normal">{{
  3202. index + 1 + "、" + item.teststitle
  3203. }}</span>
  3204. </div>
  3205. </div>
  3206. </div>
  3207. <div
  3208. class="xuan_right_box"
  3209. style="background: unset; padding: 0 10px"
  3210. v-if="
  3211. tType &&
  3212. ((tType == 2 && sIsOpen == true) ||
  3213. tType == 1 ||
  3214. tType == 4) &&
  3215. tool.tool.indexOf(45) != -1 &&
  3216. worksStudent.length &&
  3217. worksStudent[toolIndex].length
  3218. "
  3219. >
  3220. <AskStatic2
  3221. v-if="
  3222. worksStudent.length && worksStudent[toolIndex].length > 0
  3223. "
  3224. :askJSON="tool"
  3225. :checkJson="checkJson[toolIndex]"
  3226. ></AskStatic2>
  3227. </div>
  3228. <div
  3229. v-if="
  3230. tType &&
  3231. ((tType == 2 && sIsOpen == true) ||
  3232. tType == 1 ||
  3233. tType == 4) &&
  3234. tool.tool.indexOf(41) != -1
  3235. "
  3236. >
  3237. <AnswerData2
  3238. v-if="
  3239. worksStudent.length && worksStudent[toolIndex].length > 0
  3240. "
  3241. :problemJson="tool.selectJson.answer"
  3242. :people="worksStudent[toolIndex]"
  3243. ></AnswerData2>
  3244. </div>
  3245. <div
  3246. v-if="
  3247. tType &&
  3248. ((tType == 2 && sIsOpen == true) ||
  3249. tType == 1 ||
  3250. tType == 4) &&
  3251. tool.tool.indexOf(47) != -1
  3252. "
  3253. >
  3254. <AnswerData
  3255. v-if="
  3256. checkJson[toolIndex].length &&
  3257. (tool.sentenceList || tool.sentenceList.length > 0)
  3258. "
  3259. :people="checkJson[toolIndex]"
  3260. ></AnswerData>
  3261. </div>
  3262. </div>
  3263. <div
  3264. class="vedioBox"
  3265. v-if="
  3266. noWorksS[toolIndex].length &&
  3267. arrayToArray(tool.tool, isWorkTool).length &&
  3268. false
  3269. "
  3270. >
  3271. <div
  3272. class="queTop"
  3273. style="
  3274. font-size: 20px;
  3275. padding: 15px 0 15px 37px;
  3276. font-weight: bold;
  3277. "
  3278. >
  3279. 学生工作区
  3280. </div>
  3281. <div class="tool_work_box">
  3282. <div
  3283. v-if="
  3284. tType &&
  3285. ((tType == 2 && sIsOpen == true) ||
  3286. tType == 1 ||
  3287. tType == 4) &&
  3288. tool.tool.indexOf(16) != -1
  3289. "
  3290. class="worksBox"
  3291. >
  3292. <div
  3293. class="zuoyeYulan"
  3294. v-if="
  3295. worksStudent2.length &&
  3296. worksStudent2[toolIndex].length > 0
  3297. "
  3298. >
  3299. <div class="worksTop">
  3300. <div>作业预览</div>
  3301. <div
  3302. class="corOpen"
  3303. @click="contract(toolIndex)"
  3304. v-if="
  3305. worksStudent2[toolIndex].length > 6 &&
  3306. isCloseList[toolIndex].isClose == 0
  3307. "
  3308. >
  3309. 收缩
  3310. </div>
  3311. <div
  3312. class="corOpen"
  3313. @click="contract(toolIndex)"
  3314. v-if="isCloseList[toolIndex].isClose == 1"
  3315. >
  3316. 展开
  3317. </div>
  3318. </div>
  3319. </div>
  3320. <div
  3321. class="worksDetailBox"
  3322. v-if="
  3323. worksStudent2.length &&
  3324. worksStudent2[toolIndex].length > 0
  3325. "
  3326. >
  3327. <div
  3328. class="works"
  3329. style="
  3330. width: 200px;
  3331. height: 140px;
  3332. margin: 10px 10px 10px 0;
  3333. border-radius: 15px;
  3334. box-shadow: 0 0 6px 1px #dfdada;
  3335. "
  3336. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3337. ? worksStudent2[toolIndex]
  3338. : worksStudent2[toolIndex].slice(0, 6)"
  3339. :key="wIndex"
  3340. :class="w.type == 1 ? 'isTypeOne' : ''"
  3341. >
  3342. <div class="workImg" v-if="w.type == 0">
  3343. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3344. <img :src="w.works" @click="previewImg(w.works)" alt />
  3345. <div
  3346. class="answerScore"
  3347. v-if="w.score"
  3348. @click.stop="openScore(w)"
  3349. :class="{
  3350. rightW:
  3351. w.userid == userid ||
  3352. tType == 1 ||
  3353. tType == 4 ||
  3354. w.ateacher == userid,
  3355. }"
  3356. >
  3357. {{ JSON.parse(w.score).wScore }}分
  3358. </div>
  3359. <div
  3360. class="answerScore"
  3361. @click.stop="openScore(w)"
  3362. v-else-if="courseDetail.userid == userid"
  3363. :class="{
  3364. rightW:
  3365. w.userid == userid ||
  3366. tType == 1 ||
  3367. tType == 4 ||
  3368. w.ateacher == userid,
  3369. }"
  3370. >
  3371. 评分
  3372. </div>
  3373. <img
  3374. class="deleteImg"
  3375. src="../../assets/deleteworks.png"
  3376. v-if="w.userid == userid || tType == 1 || tType == 4"
  3377. @click.stop="deleteWorks(w.wid)"
  3378. alt
  3379. />
  3380. </div>
  3381. <div class="workImg" v-if="w.type == 1">
  3382. <img :src="word" @click="openFile(w.works)" alt />
  3383. <!-- @click="openFile(w.works)" -->
  3384. <div
  3385. class="answerScore"
  3386. v-if="w.score"
  3387. @click.stop="openScore(w)"
  3388. :class="{
  3389. rightW:
  3390. w.userid == userid ||
  3391. tType == 1 ||
  3392. tType == 4 ||
  3393. w.ateacher == userid,
  3394. }"
  3395. >
  3396. {{ JSON.parse(w.score).wScore }}分
  3397. </div>
  3398. <div
  3399. class="answerScore"
  3400. @click.stop="openScore(w)"
  3401. v-else-if="courseDetail.userid == userid"
  3402. :class="{
  3403. rightW:
  3404. w.userid == userid ||
  3405. tType == 1 ||
  3406. tType == 4 ||
  3407. w.ateacher == userid,
  3408. }"
  3409. >
  3410. 评分
  3411. </div>
  3412. <img
  3413. class="deleteImg"
  3414. src="../../assets/deleteworks.png"
  3415. v-if="w.userid == userid || tType == 1 || tType == 4"
  3416. @click.stop="deleteWorks(w.wid)"
  3417. alt
  3418. />
  3419. </div>
  3420. <div class="workImg" v-if="w.type == 3">
  3421. <img
  3422. style="cursor: pointer"
  3423. :src="video"
  3424. @click="openVideo(w)"
  3425. alt
  3426. />
  3427. <!-- @click="openVideo(w.works)" -->
  3428. <div
  3429. class="answerScore"
  3430. v-if="w.score"
  3431. @click.stop="openScore(w)"
  3432. :class="{
  3433. rightW:
  3434. w.userid == userid ||
  3435. tType == 1 ||
  3436. tType == 4 ||
  3437. w.ateacher == userid,
  3438. }"
  3439. >
  3440. {{ JSON.parse(w.score).wScore }}分
  3441. </div>
  3442. <div
  3443. class="answerScore"
  3444. @click.stop="openScore(w)"
  3445. v-else-if="courseDetail.userid == userid"
  3446. :class="{
  3447. rightW:
  3448. w.userid == userid ||
  3449. tType == 1 ||
  3450. tType == 4 ||
  3451. w.ateacher == userid,
  3452. }"
  3453. >
  3454. 评分
  3455. </div>
  3456. <img
  3457. class="deleteImg"
  3458. src="../../assets/deleteworks.png"
  3459. v-if="w.userid == userid || tType == 1 || tType == 4"
  3460. @click.stop="deleteWorks(w.wid)"
  3461. alt
  3462. />
  3463. </div>
  3464. <div class="workImg" v-if="w.type == 12">
  3465. <img
  3466. style="cursor: pointer"
  3467. :src="word2"
  3468. @click="downloadFile(w.works)"
  3469. alt
  3470. />
  3471. <!-- @click="openVideo(w.works)" -->
  3472. <div
  3473. class="answerScore"
  3474. v-if="w.score"
  3475. @click.stop="openScore(w)"
  3476. :class="{
  3477. rightW:
  3478. w.userid == userid ||
  3479. tType == 1 ||
  3480. tType == 4 ||
  3481. w.ateacher == userid,
  3482. }"
  3483. >
  3484. {{ JSON.parse(w.score).wScore }}分
  3485. </div>
  3486. <div
  3487. class="answerScore"
  3488. @click.stop="openScore(w)"
  3489. v-else-if="courseDetail.userid == userid"
  3490. :class="{
  3491. rightW:
  3492. w.userid == userid ||
  3493. tType == 1 ||
  3494. tType == 4 ||
  3495. w.ateacher == userid,
  3496. }"
  3497. >
  3498. 评分
  3499. </div>
  3500. <img
  3501. class="deleteImg"
  3502. src="../../assets/deleteworks.png"
  3503. v-if="w.userid == userid || tType == 1 || tType == 4"
  3504. @click.stop="deleteWorks(w.wid)"
  3505. alt
  3506. />
  3507. </div>
  3508. <div class="comment" style="min-width: 200px">
  3509. <div class="worksName">
  3510. <div>{{ w.sName }}</div>
  3511. </div>
  3512. <div class="commentList">
  3513. <div class="commentList">
  3514. <div
  3515. class="commentImg"
  3516. @click="
  3517. isLikes(w.wid, userid, 1, null, w.isLikes)
  3518. "
  3519. >
  3520. <img
  3521. :src="w.isLikes == true ? likes : noLikes"
  3522. alt=""
  3523. />
  3524. </div>
  3525. <div>{{ w.likesCount }}</div>
  3526. </div>
  3527. <div class="commentList" style="margin-right: 15px">
  3528. <div
  3529. class="commentImg"
  3530. @click="commentOther(w, toolIndex, wIndex)"
  3531. >
  3532. <img
  3533. src="../../assets/icon/comment/comment.png"
  3534. alt=""
  3535. />
  3536. </div>
  3537. <div>{{ w.commentCount }}</div>
  3538. </div>
  3539. </div>
  3540. </div>
  3541. </div>
  3542. </div>
  3543. <div class="noWorksS">
  3544. <div
  3545. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3546. :key="sIndex"
  3547. class="noWorksName"
  3548. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3549. :class="{ isWork: s.type == '2' }"
  3550. >
  3551. {{ s.student }}
  3552. </div>
  3553. </div>
  3554. </div>
  3555. <div
  3556. v-if="
  3557. tType &&
  3558. ((tType == 2 && sIsOpen == true) ||
  3559. tType == 1 ||
  3560. tType == 4) &&
  3561. tool.tool.indexOf(32) != -1
  3562. "
  3563. class="worksBox"
  3564. >
  3565. <div
  3566. class="zuoyeYulan"
  3567. v-if="
  3568. worksStudent2.length &&
  3569. worksStudent2[toolIndex].length > 0
  3570. "
  3571. >
  3572. <div class="worksTop">
  3573. <div>作业预览</div>
  3574. <div
  3575. class="corOpen"
  3576. @click="contract(toolIndex)"
  3577. v-if="
  3578. worksStudent2[toolIndex].length > 6 &&
  3579. isCloseList[toolIndex].isClose == 0
  3580. "
  3581. >
  3582. 收缩
  3583. </div>
  3584. <div
  3585. class="corOpen"
  3586. @click="contract(toolIndex)"
  3587. v-if="isCloseList[toolIndex].isClose == 1"
  3588. >
  3589. 展开
  3590. </div>
  3591. </div>
  3592. </div>
  3593. <div
  3594. class="worksDetailBox"
  3595. v-if="
  3596. worksStudent2.length &&
  3597. worksStudent2[toolIndex].length > 0
  3598. "
  3599. >
  3600. <div
  3601. class="works"
  3602. style="
  3603. width: 200px;
  3604. height: 140px;
  3605. margin: 10px 10px 10px 0;
  3606. border-radius: 15px;
  3607. box-shadow: 0 0 6px 1px #dfdada;
  3608. "
  3609. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3610. ? worksStudent2[toolIndex]
  3611. : worksStudent2[toolIndex].slice(0, 6)"
  3612. :key="wIndex"
  3613. :class="w.type == 1 ? 'isTypeOne' : ''"
  3614. >
  3615. <div class="workImg">
  3616. <img :src="word2" @click="downloadFile(w.works)" alt />
  3617. <div
  3618. class="answerScore"
  3619. v-if="w.score"
  3620. @click.stop="openScore(w)"
  3621. :class="{
  3622. rightW:
  3623. w.userid == userid ||
  3624. tType == 1 ||
  3625. tType == 4 ||
  3626. w.ateacher == userid,
  3627. }"
  3628. >
  3629. {{ JSON.parse(w.score).wScore }}分
  3630. </div>
  3631. <div
  3632. class="answerScore"
  3633. @click.stop="openScore(w)"
  3634. v-else-if="courseDetail.userid == userid"
  3635. :class="{
  3636. rightW:
  3637. w.userid == userid ||
  3638. tType == 1 ||
  3639. tType == 4 ||
  3640. w.ateacher == userid,
  3641. }"
  3642. >
  3643. 评分
  3644. </div>
  3645. <img
  3646. class="deleteImg"
  3647. src="../../assets/deleteworks.png"
  3648. v-if="w.userid == userid || tType == 1 || tType == 4"
  3649. @click.stop="deleteWorks(w.wid)"
  3650. alt
  3651. />
  3652. </div>
  3653. <div class="comment" style="min-width: 200px">
  3654. <div class="worksName">
  3655. <div>{{ w.sName }}</div>
  3656. </div>
  3657. <div class="commentList">
  3658. <div class="commentList">
  3659. <div
  3660. class="commentImg"
  3661. @click="
  3662. isLikes(w.wid, userid, 1, null, w.isLikes)
  3663. "
  3664. >
  3665. <img
  3666. :src="w.isLikes == true ? likes : noLikes"
  3667. alt=""
  3668. />
  3669. </div>
  3670. <div>{{ w.likesCount }}</div>
  3671. </div>
  3672. <div class="commentList" style="margin-right: 15px">
  3673. <div
  3674. class="commentImg"
  3675. @click="commentOther(w, toolIndex, wIndex)"
  3676. >
  3677. <img
  3678. src="../../assets/icon/comment/comment.png"
  3679. alt=""
  3680. />
  3681. </div>
  3682. <div>{{ w.commentCount }}</div>
  3683. </div>
  3684. </div>
  3685. </div>
  3686. </div>
  3687. </div>
  3688. <div class="noWorksS">
  3689. <div
  3690. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3691. :key="sIndex"
  3692. class="noWorksName"
  3693. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3694. :class="{ isWork: s.type == '2' }"
  3695. >
  3696. {{ s.student }}
  3697. </div>
  3698. </div>
  3699. </div>
  3700. <div
  3701. v-if="
  3702. tType &&
  3703. ((tType == 2 && sIsOpen == true) ||
  3704. tType == 1 ||
  3705. tType == 4) &&
  3706. tool.tool.indexOf(57) != -1
  3707. "
  3708. class="worksBox"
  3709. >
  3710. <div
  3711. class="zuoyeYulan"
  3712. v-if="
  3713. worksStudent2.length &&
  3714. worksStudent2[toolIndex].length > 0
  3715. "
  3716. >
  3717. <div class="worksTop">
  3718. <div>作业预览</div>
  3719. <div
  3720. class="corOpen"
  3721. @click="contract(toolIndex)"
  3722. v-if="
  3723. worksStudent2[toolIndex].length > 6 &&
  3724. isCloseList[toolIndex].isClose == 0
  3725. "
  3726. >
  3727. 收缩
  3728. </div>
  3729. <div
  3730. class="corOpen"
  3731. @click="contract(toolIndex)"
  3732. v-if="isCloseList[toolIndex].isClose == 1"
  3733. >
  3734. 展开
  3735. </div>
  3736. </div>
  3737. </div>
  3738. <div
  3739. class="worksDetailBox"
  3740. v-if="
  3741. worksStudent2.length &&
  3742. worksStudent2[toolIndex].length > 0
  3743. "
  3744. >
  3745. <div
  3746. class="works"
  3747. style="
  3748. width: 200px;
  3749. height: 140px;
  3750. margin: 10px 10px 10px 0;
  3751. border-radius: 15px;
  3752. box-shadow: 0 0 6px 1px #dfdada;
  3753. "
  3754. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3755. ? worksStudent2[toolIndex]
  3756. : worksStudent2[toolIndex].slice(0, 6)"
  3757. :key="wIndex"
  3758. :class="w.type == 1 ? 'isTypeOne' : ''"
  3759. >
  3760. <div class="workImg">
  3761. <img
  3762. :src="word2"
  3763. @click="downloadFile(w.works)"
  3764. v-if="w.type == 12"
  3765. alt
  3766. />
  3767. <img
  3768. :src="word2"
  3769. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  3770. v-else-if="w.type == 15"
  3771. alt
  3772. />
  3773. <div
  3774. class="answerScore"
  3775. v-if="w.score"
  3776. @click.stop="openScore(w)"
  3777. :class="{
  3778. rightW:
  3779. w.userid == userid ||
  3780. tType == 1 ||
  3781. tType == 4 ||
  3782. w.ateacher == userid,
  3783. }"
  3784. >
  3785. {{ JSON.parse(w.score).wScore }}分
  3786. </div>
  3787. <div
  3788. class="answerScore"
  3789. @click.stop="openScore(w)"
  3790. v-else-if="courseDetail.userid == userid"
  3791. :class="{
  3792. rightW:
  3793. w.userid == userid ||
  3794. tType == 1 ||
  3795. tType == 4 ||
  3796. w.ateacher == userid,
  3797. }"
  3798. >
  3799. 评分
  3800. </div>
  3801. <img
  3802. class="deleteImg"
  3803. src="../../assets/deleteworks.png"
  3804. v-if="w.userid == userid || tType == 1 || tType == 4"
  3805. @click.stop="deleteWorks(w.wid)"
  3806. alt
  3807. />
  3808. </div>
  3809. <div class="comment" style="min-width: 200px">
  3810. <div class="worksName">
  3811. <div>{{ w.sName }}</div>
  3812. </div>
  3813. <div class="commentList">
  3814. <div class="commentList">
  3815. <div
  3816. class="commentImg"
  3817. @click="
  3818. isLikes(w.wid, userid, 1, null, w.isLikes)
  3819. "
  3820. >
  3821. <img
  3822. :src="w.isLikes == true ? likes : noLikes"
  3823. alt=""
  3824. />
  3825. </div>
  3826. <div>{{ w.likesCount }}</div>
  3827. </div>
  3828. <div class="commentList" style="margin-right: 15px">
  3829. <div
  3830. class="commentImg"
  3831. @click="commentOther(w, toolIndex, wIndex)"
  3832. >
  3833. <img
  3834. src="../../assets/icon/comment/comment.png"
  3835. alt=""
  3836. />
  3837. </div>
  3838. <div>{{ w.commentCount }}</div>
  3839. </div>
  3840. </div>
  3841. </div>
  3842. </div>
  3843. </div>
  3844. <div class="noWorksS">
  3845. <div
  3846. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3847. :key="sIndex"
  3848. class="noWorksName"
  3849. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3850. :class="{ isWork: s.type == '2' }"
  3851. >
  3852. {{ s.student }}
  3853. </div>
  3854. </div>
  3855. </div>
  3856. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3857. <div
  3858. class="zuoyeYulan"
  3859. v-if="
  3860. worksStudent2.length &&
  3861. worksStudent2[toolIndex].length > 0
  3862. "
  3863. >
  3864. <span>作业预览</span>
  3865. <div
  3866. class="corOpen"
  3867. @click="contract(toolIndex)"
  3868. v-if="
  3869. worksStudent2[toolIndex].length > 6 &&
  3870. isCloseList[toolIndex].isClose == 0
  3871. "
  3872. >
  3873. 收缩
  3874. </div>
  3875. <div
  3876. class="corOpen"
  3877. @click="contract(toolIndex)"
  3878. v-if="isCloseList[toolIndex].isClose == 1"
  3879. >
  3880. 展开
  3881. </div>
  3882. </div>
  3883. <div
  3884. class="worksDetailBox"
  3885. v-if="
  3886. worksStudent2.length &&
  3887. worksStudent2[toolIndex].length > 0
  3888. "
  3889. >
  3890. <div
  3891. class="works"
  3892. style="
  3893. width: 200px;
  3894. height: 140px;
  3895. margin: 10px 10px 10px 0;
  3896. border-radius: 15px;
  3897. box-shadow: 0 0 6px 1px #dfdada;
  3898. "
  3899. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3900. ? worksStudent2[toolIndex]
  3901. : worksStudent2[toolIndex].slice(0, 6)"
  3902. :key="wIndex"
  3903. :class="w.type == 1 ? 'isTypeOne' : ''"
  3904. >
  3905. <div class="workImg" v-if="w.type == 0">
  3906. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3907. <img :src="w.works" @click="previewImg(w.works)" alt />
  3908. <div
  3909. class="answerScore"
  3910. v-if="w.score"
  3911. @click.stop="openScore(w)"
  3912. :class="{
  3913. rightW:
  3914. w.userid == userid ||
  3915. tType == 1 ||
  3916. tType == 4 ||
  3917. w.ateacher == userid,
  3918. }"
  3919. >
  3920. {{ JSON.parse(w.score).wScore }}分
  3921. </div>
  3922. <div
  3923. class="answerScore"
  3924. @click.stop="openScore(w)"
  3925. v-else-if="courseDetail.userid == userid"
  3926. :class="{
  3927. rightW:
  3928. w.userid == userid ||
  3929. tType == 1 ||
  3930. tType == 4 ||
  3931. w.ateacher == userid,
  3932. }"
  3933. >
  3934. 评分
  3935. </div>
  3936. <img
  3937. class="deleteImg"
  3938. src="../../assets/deleteworks.png"
  3939. v-if="w.userid == userid || tType == 1 || tType == 4"
  3940. @click.stop="deleteWorks(w.wid)"
  3941. alt
  3942. />
  3943. </div>
  3944. <div
  3945. class="workImg"
  3946. style="cursor: pointer"
  3947. v-if="w.type == 1"
  3948. >
  3949. <img :src="word" @click="openFile(w.works)" alt />
  3950. <!-- @click="openFile(w.works)" -->
  3951. <div
  3952. class="answerScore"
  3953. v-if="w.score"
  3954. @click.stop="openScore(w)"
  3955. :class="{
  3956. rightW:
  3957. w.userid == userid ||
  3958. tType == 1 ||
  3959. tType == 4 ||
  3960. w.ateacher == userid,
  3961. }"
  3962. >
  3963. {{ JSON.parse(w.score).wScore }}分
  3964. </div>
  3965. <div
  3966. class="answerScore"
  3967. @click.stop="openScore(w)"
  3968. v-else-if="courseDetail.userid == userid"
  3969. :class="{
  3970. rightW:
  3971. w.userid == userid ||
  3972. tType == 1 ||
  3973. tType == 4 ||
  3974. w.ateacher == userid,
  3975. }"
  3976. >
  3977. 评分
  3978. </div>
  3979. <img
  3980. class="deleteImg"
  3981. src="../../assets/deleteworks.png"
  3982. v-if="w.userid == userid || tType == 1 || tType == 4"
  3983. @click.stop="deleteWorks(w.wid)"
  3984. alt
  3985. />
  3986. </div>
  3987. <div class="workImg" v-if="w.type == 3">
  3988. <img
  3989. style="cursor: pointer"
  3990. :src="video"
  3991. @click="openVideo(w)"
  3992. alt
  3993. />
  3994. <!-- @click="openVideo(w.works)" -->
  3995. <div
  3996. class="answerScore"
  3997. v-if="w.score"
  3998. @click.stop="openScore(w)"
  3999. :class="{
  4000. rightW:
  4001. w.userid == userid ||
  4002. tType == 1 ||
  4003. tType == 4 ||
  4004. w.ateacher == userid,
  4005. }"
  4006. >
  4007. {{ JSON.parse(w.score).wScore }}分
  4008. </div>
  4009. <div
  4010. class="answerScore"
  4011. @click.stop="openScore(w)"
  4012. v-else-if="courseDetail.userid == userid"
  4013. :class="{
  4014. rightW:
  4015. w.userid == userid ||
  4016. tType == 1 ||
  4017. tType == 4 ||
  4018. w.ateacher == userid,
  4019. }"
  4020. >
  4021. 评分
  4022. </div>
  4023. <img
  4024. class="deleteImg"
  4025. src="../../assets/deleteworks.png"
  4026. v-if="w.userid == userid || tType == 1 || tType == 4"
  4027. @click.stop="deleteWorks(w.wid)"
  4028. alt
  4029. />
  4030. </div>
  4031. <div class="comment" style="min-width: 200px">
  4032. <div class="worksName">
  4033. <div
  4034. style="cursor: pointer"
  4035. @click="
  4036. openSname(w.sName, w.wid, toolIndex, w.userid)
  4037. "
  4038. >
  4039. {{ w.sName }}
  4040. </div>
  4041. </div>
  4042. <div class="commentList">
  4043. <div class="commentList">
  4044. <div
  4045. class="commentImg"
  4046. @click="
  4047. isLikes(w.wid, userid, 1, null, w.isLikes)
  4048. "
  4049. >
  4050. <img
  4051. :src="w.isLikes == true ? likes : noLikes"
  4052. alt=""
  4053. />
  4054. </div>
  4055. <div>{{ w.likesCount }}</div>
  4056. </div>
  4057. <div class="commentList" style="margin-right: 15px">
  4058. <div
  4059. class="commentImg"
  4060. @click="commentOther(w, toolIndex, wIndex)"
  4061. >
  4062. <img
  4063. src="../../assets/icon/comment/comment.png"
  4064. alt=""
  4065. />
  4066. </div>
  4067. <div>{{ w.commentCount }}</div>
  4068. </div>
  4069. </div>
  4070. </div>
  4071. </div>
  4072. </div>
  4073. <div class="noWorksS">
  4074. <div
  4075. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4076. :key="sIndex"
  4077. class="noWorksName"
  4078. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4079. :class="{ isWork: s.type == '2' }"
  4080. >
  4081. {{ s.student }}
  4082. </div>
  4083. </div>
  4084. </div>
  4085. <div
  4086. v-if="
  4087. tType &&
  4088. ((tType == 2 && sIsOpen == true) ||
  4089. tType == 1 ||
  4090. tType == 4) &&
  4091. tool.tool.indexOf(4) != -1
  4092. "
  4093. class="worksBox"
  4094. >
  4095. <div
  4096. class="zuoyeYulan"
  4097. v-if="
  4098. worksStudent2.length &&
  4099. worksStudent2[toolIndex].length > 0
  4100. "
  4101. >
  4102. <div class="worksTop">
  4103. <div>作业预览</div>
  4104. <div
  4105. class="corOpen"
  4106. @click="contract(toolIndex)"
  4107. v-if="
  4108. worksStudent2[toolIndex].length > 6 &&
  4109. isCloseList[toolIndex].isClose == 0
  4110. "
  4111. >
  4112. 收缩
  4113. </div>
  4114. <div
  4115. class="corOpen"
  4116. @click="contract(toolIndex)"
  4117. v-if="isCloseList[toolIndex].isClose == 1"
  4118. >
  4119. 展开
  4120. </div>
  4121. </div>
  4122. </div>
  4123. <div>
  4124. <div
  4125. class="worksDetailBox"
  4126. v-if="
  4127. worksStudent2.length &&
  4128. worksStudent2[toolIndex].length > 0
  4129. "
  4130. >
  4131. <div
  4132. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4133. 0
  4134. ? worksStudent2[toolIndex]
  4135. : worksStudent2[toolIndex].slice(0, 6)"
  4136. :key="wIndex"
  4137. class="isWorksName2"
  4138. @click="
  4139. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4140. "
  4141. >
  4142. {{ w.sName }}
  4143. <img
  4144. class="deleteImg deleteImg2"
  4145. src="../../assets/deleteworks.png"
  4146. v-if="w.userid == userid || tType == 1 || tType == 4"
  4147. @click.stop="deleteWorks(w.wid)"
  4148. alt
  4149. />
  4150. </div>
  4151. </div>
  4152. </div>
  4153. <div class="noWorksS">
  4154. <div
  4155. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4156. :key="sIndex"
  4157. class="noWorksName"
  4158. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4159. :class="{ isWork: s.type == '2' }"
  4160. >
  4161. {{ s.student }}
  4162. </div>
  4163. </div>
  4164. </div>
  4165. <div
  4166. v-if="
  4167. tType &&
  4168. ((tType == 2 && sIsOpen == true) ||
  4169. tType == 1 ||
  4170. tType == 4) &&
  4171. tool.tool.indexOf(45) != -1
  4172. "
  4173. class="worksBox"
  4174. >
  4175. <div
  4176. class="zuoyeYulan"
  4177. v-if="
  4178. worksStudent2.length &&
  4179. worksStudent2[toolIndex].length > 0
  4180. "
  4181. >
  4182. <div class="worksTop">
  4183. <div>作业预览</div>
  4184. <div
  4185. class="corOpen"
  4186. @click="contract(toolIndex)"
  4187. v-if="
  4188. worksStudent2[toolIndex].length > 6 &&
  4189. isCloseList[toolIndex].isClose == 0
  4190. "
  4191. >
  4192. 收缩
  4193. </div>
  4194. <div
  4195. class="corOpen"
  4196. @click="contract(toolIndex)"
  4197. v-if="isCloseList[toolIndex].isClose == 1"
  4198. >
  4199. 展开
  4200. </div>
  4201. </div>
  4202. </div>
  4203. <div>
  4204. <div
  4205. class="worksDetailBox"
  4206. v-if="
  4207. worksStudent2.length &&
  4208. worksStudent2[toolIndex].length > 0
  4209. "
  4210. >
  4211. <div
  4212. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4213. 0
  4214. ? worksStudent2[toolIndex]
  4215. : worksStudent2[toolIndex].slice(0, 6)"
  4216. :key="wIndex"
  4217. class="isWorksName2"
  4218. @click="
  4219. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4220. "
  4221. >
  4222. {{ w.sName }}
  4223. <img
  4224. class="deleteImg deleteImg2"
  4225. src="../../assets/deleteworks.png"
  4226. v-if="w.userid == userid || tType == 1 || tType == 4"
  4227. @click.stop="deleteWorks(w.wid)"
  4228. alt
  4229. />
  4230. </div>
  4231. </div>
  4232. </div>
  4233. <div class="noWorksS">
  4234. <div
  4235. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4236. :key="sIndex"
  4237. class="noWorksName"
  4238. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4239. :class="{ isWork: s.type == '2' }"
  4240. >
  4241. {{ s.student }}
  4242. </div>
  4243. </div>
  4244. </div>
  4245. <div
  4246. v-if="
  4247. tType &&
  4248. ((tType == 2 && sIsOpen == true) ||
  4249. tType == 1 ||
  4250. tType == 4) &&
  4251. tool.tool.indexOf(15) != -1
  4252. "
  4253. class="worksBox"
  4254. >
  4255. <div
  4256. class="zuoyeYulan"
  4257. v-if="
  4258. worksStudent2.length &&
  4259. worksStudent2[toolIndex].length > 0
  4260. "
  4261. >
  4262. <div class="worksTop">
  4263. <div>作业预览</div>
  4264. <div
  4265. class="corOpen"
  4266. @click="contract(toolIndex)"
  4267. v-if="
  4268. worksStudent2[toolIndex].length > 6 &&
  4269. isCloseList[toolIndex].isClose == 0
  4270. "
  4271. >
  4272. 收缩
  4273. </div>
  4274. <div
  4275. class="corOpen"
  4276. @click="contract(toolIndex)"
  4277. v-if="isCloseList[toolIndex].isClose == 1"
  4278. >
  4279. 展开
  4280. </div>
  4281. </div>
  4282. </div>
  4283. <div
  4284. class="worksDetailBox"
  4285. v-if="
  4286. worksStudent2.length &&
  4287. worksStudent2[toolIndex].length > 0
  4288. "
  4289. >
  4290. <div
  4291. class="works"
  4292. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4293. ? worksStudent2[toolIndex]
  4294. : worksStudent2[toolIndex].slice(0, 6)"
  4295. :key="wIndex"
  4296. >
  4297. <div
  4298. class="workImg"
  4299. style="
  4300. border-radius: 15px;
  4301. box-shadow: 0px 0px 5px 5px #eee;
  4302. "
  4303. >
  4304. <!-- <img
  4305. src="../../assets/icon/works/noImg.png"
  4306. @click="openTools(15, toolIndex, taskCount, w.works)"
  4307. alt=""
  4308. />-->
  4309. <div
  4310. class="answerBg"
  4311. style="border-radius: 15px 15px 0 0"
  4312. @click="commentOther(w, toolIndex, wIndex)"
  4313. >
  4314. <!-- <div>{{ w.sName }}</div> -->
  4315. <div class="answerContent">
  4316. {{ JSON.parse(w.works)[0].answer }}
  4317. </div>
  4318. <div
  4319. class="answerScore"
  4320. v-if="w.score"
  4321. @click.stop="openScore(w)"
  4322. :class="{
  4323. rightW:
  4324. w.userid == userid || tType == 1 || tType == 4,
  4325. }"
  4326. >
  4327. {{ JSON.parse(w.score).wScore }}分
  4328. </div>
  4329. <div
  4330. class="answerScore"
  4331. @click.stop="openScore(w)"
  4332. v-else-if="courseDetail.userid == userid"
  4333. :class="{
  4334. rightW:
  4335. w.userid == userid || tType == 1 || tType == 4,
  4336. }"
  4337. >
  4338. 评分
  4339. </div>
  4340. <img
  4341. class="deleteImg"
  4342. src="../../assets/deleteworks.png"
  4343. v-if="
  4344. w.userid == userid || tType == 1 || tType == 4
  4345. "
  4346. @click.stop="deleteWorks(w.wid)"
  4347. alt
  4348. />
  4349. </div>
  4350. <div class="comment">
  4351. <div class="worksName">
  4352. <div>{{ w.sName }}</div>
  4353. </div>
  4354. <div class="commentList">
  4355. <div
  4356. class="commentImg"
  4357. @click="
  4358. isLikes(w.wid, userid, 1, null, w.isLikes)
  4359. "
  4360. >
  4361. <img
  4362. :src="w.isLikes == true ? likes : noLikes"
  4363. alt=""
  4364. />
  4365. </div>
  4366. <div>{{ w.likesCount }}</div>
  4367. </div>
  4368. <div class="commentList" style="margin-right: 15px">
  4369. <div
  4370. class="commentImg"
  4371. @click="commentOther(w, toolIndex, wIndex)"
  4372. >
  4373. <img
  4374. src="../../assets/icon/comment/comment.png"
  4375. alt=""
  4376. />
  4377. </div>
  4378. <div>{{ w.commentCount }}</div>
  4379. </div>
  4380. </div>
  4381. </div>
  4382. </div>
  4383. </div>
  4384. <div class="noWorksS">
  4385. <div
  4386. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4387. :key="sIndex"
  4388. class="noWorksName"
  4389. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4390. :class="{ isWork: s.type == '2' }"
  4391. >
  4392. {{ s.student }}
  4393. </div>
  4394. </div>
  4395. </div>
  4396. <div
  4397. v-if="
  4398. tType &&
  4399. ((tType == 2 && sIsOpen == true) ||
  4400. tType == 1 ||
  4401. tType == 4) &&
  4402. tool.tool.indexOf(1) != -1
  4403. "
  4404. class="worksBox"
  4405. >
  4406. <div
  4407. class="zuoyeYulan"
  4408. v-if="
  4409. worksStudent2.length &&
  4410. worksStudent2[toolIndex].length > 0
  4411. "
  4412. >
  4413. <div class="worksTop">
  4414. <div>作业预览</div>
  4415. <div
  4416. class="corOpen"
  4417. @click="contract(toolIndex)"
  4418. v-if="
  4419. worksStudent2[toolIndex].length > 6 &&
  4420. isCloseList[toolIndex].isClose == 0
  4421. "
  4422. >
  4423. 收缩
  4424. </div>
  4425. <div
  4426. class="corOpen"
  4427. @click="contract(toolIndex)"
  4428. v-if="isCloseList[toolIndex].isClose == 1"
  4429. >
  4430. 展开
  4431. </div>
  4432. </div>
  4433. </div>
  4434. <div
  4435. class="worksDetailBox"
  4436. v-if="
  4437. worksStudent2.length &&
  4438. worksStudent2[toolIndex].length > 0
  4439. "
  4440. >
  4441. <div
  4442. class="works"
  4443. style="
  4444. width: 200px;
  4445. height: 140px;
  4446. margin: 10px 10px 10px 0;
  4447. border-radius: 15px;
  4448. box-shadow: 0 0 6px 1px #dfdada;
  4449. "
  4450. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4451. ? worksStudent2[toolIndex]
  4452. : worksStudent2[toolIndex].slice(0, 6)"
  4453. :key="wIndex"
  4454. >
  4455. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4456. <div class="workImg">
  4457. <img :src="w.works" @click="previewImg(w.works)" alt />
  4458. <div
  4459. class="answerScore"
  4460. v-if="w.score"
  4461. @click.stop="openScore(w)"
  4462. :class="{
  4463. rightW:
  4464. w.userid == userid || tType == 1 || tType == 4,
  4465. }"
  4466. >
  4467. {{ JSON.parse(w.score).wScore }}分
  4468. </div>
  4469. <div
  4470. class="answerScore"
  4471. @click.stop="openScore(w)"
  4472. v-else-if="courseDetail.userid == userid"
  4473. :class="{
  4474. rightW:
  4475. w.userid == userid || tType == 1 || tType == 4,
  4476. }"
  4477. >
  4478. 评分
  4479. </div>
  4480. <img
  4481. class="deleteImg"
  4482. src="../../assets/deleteworks.png"
  4483. v-if="w.userid == userid || tType == 1 || tType == 4"
  4484. @click.stop="deleteWorks(w.wid)"
  4485. alt
  4486. />
  4487. </div>
  4488. <div class="comment" style="min-width: 200px">
  4489. <div class="worksName">
  4490. <div>{{ w.sName }}</div>
  4491. </div>
  4492. <div class="commentList">
  4493. <div class="commentList">
  4494. <div
  4495. class="commentImg"
  4496. @click="
  4497. isLikes(w.wid, userid, 1, null, w.isLikes)
  4498. "
  4499. >
  4500. <img
  4501. :src="w.isLikes == true ? likes : noLikes"
  4502. alt=""
  4503. />
  4504. </div>
  4505. <div>{{ w.likesCount }}</div>
  4506. </div>
  4507. <div class="commentList" style="margin-right: 15px">
  4508. <div
  4509. class="commentImg"
  4510. @click="commentOther(w, toolIndex, wIndex)"
  4511. >
  4512. <img
  4513. src="../../assets/icon/comment/comment.png"
  4514. alt=""
  4515. />
  4516. </div>
  4517. <div>{{ w.commentCount }}</div>
  4518. </div>
  4519. </div>
  4520. </div>
  4521. </div>
  4522. </div>
  4523. <div class="noWorksS">
  4524. <div
  4525. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4526. :key="sIndex"
  4527. class="noWorksName"
  4528. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4529. :class="{ isWork: s.type == '2' }"
  4530. >
  4531. {{ s.student }}
  4532. </div>
  4533. </div>
  4534. </div>
  4535. <div
  4536. v-if="
  4537. tType &&
  4538. ((tType == 2 && sIsOpen == true) ||
  4539. tType == 1 ||
  4540. tType == 4) &&
  4541. tool.tool.indexOf(3) != -1
  4542. "
  4543. class="worksBox"
  4544. >
  4545. <div
  4546. class="zuoyeYulan"
  4547. v-if="
  4548. worksStudent2.length &&
  4549. worksStudent2[toolIndex].length > 0
  4550. "
  4551. >
  4552. <div class="worksTop">
  4553. <div>作业预览</div>
  4554. <div
  4555. class="corOpen"
  4556. @click="contract(toolIndex)"
  4557. v-if="
  4558. worksStudent2[toolIndex].length > 6 &&
  4559. isCloseList[toolIndex].isClose == 0
  4560. "
  4561. >
  4562. 收缩
  4563. </div>
  4564. <div
  4565. class="corOpen"
  4566. @click="contract(toolIndex)"
  4567. v-if="isCloseList[toolIndex].isClose == 1"
  4568. >
  4569. 展开
  4570. </div>
  4571. </div>
  4572. </div>
  4573. <div
  4574. class="worksDetailBox"
  4575. v-if="
  4576. worksStudent2.length &&
  4577. worksStudent2[toolIndex].length > 0
  4578. "
  4579. >
  4580. <div
  4581. class="works"
  4582. style="
  4583. width: 200px;
  4584. height: 140px;
  4585. margin: 10px 10px 10px 0;
  4586. border-radius: 15px;
  4587. box-shadow: 0 0 6px 1px #dfdada;
  4588. "
  4589. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4590. ? worksStudent2[toolIndex]
  4591. : worksStudent2[toolIndex].slice(0, 6)"
  4592. :key="wIndex"
  4593. >
  4594. <!-- @click="previewImg(w.works)" -->
  4595. <div class="workImg">
  4596. <img :src="w.works" @click="previewImg(w.works)" alt />
  4597. <div
  4598. class="answerScore"
  4599. v-if="w.score"
  4600. @click.stop="openScore(w)"
  4601. :class="{
  4602. rightW:
  4603. w.userid == userid || tType == 1 || tType == 4,
  4604. }"
  4605. >
  4606. {{ JSON.parse(w.score).wScore }}分
  4607. </div>
  4608. <div
  4609. class="answerScore"
  4610. @click.stop="openScore(w)"
  4611. v-else-if="courseDetail.userid == userid"
  4612. :class="{
  4613. rightW:
  4614. w.userid == userid || tType == 1 || tType == 4,
  4615. }"
  4616. >
  4617. 评分
  4618. </div>
  4619. <img
  4620. class="deleteImg"
  4621. src="../../assets/deleteworks.png"
  4622. v-if="w.userid == userid || tType == 1 || tType == 4"
  4623. @click.stop="deleteWorks(w.wid)"
  4624. alt
  4625. />
  4626. </div>
  4627. <div class="comment" style="min-width: 200px">
  4628. <div class="worksName">
  4629. <div>{{ w.sName }}</div>
  4630. </div>
  4631. <div class="commentList">
  4632. <div class="commentList">
  4633. <div
  4634. class="commentImg"
  4635. @click="
  4636. isLikes(w.wid, userid, 1, null, w.isLikes)
  4637. "
  4638. >
  4639. <img
  4640. :src="w.isLikes == true ? likes : noLikes"
  4641. alt=""
  4642. />
  4643. </div>
  4644. <div>{{ w.likesCount }}</div>
  4645. </div>
  4646. <div class="commentList" style="margin-right: 15px">
  4647. <div
  4648. class="commentImg"
  4649. @click="commentOther(w, toolIndex, wIndex)"
  4650. >
  4651. <img
  4652. src="../../assets/icon/comment/comment.png"
  4653. alt=""
  4654. />
  4655. </div>
  4656. <div>{{ w.commentCount }}</div>
  4657. </div>
  4658. </div>
  4659. </div>
  4660. </div>
  4661. </div>
  4662. <div class="noWorksS">
  4663. <div
  4664. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4665. :key="sIndex"
  4666. class="noWorksName"
  4667. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4668. :class="{ isWork: s.type == '2' }"
  4669. >
  4670. {{ s.student }}
  4671. </div>
  4672. </div>
  4673. </div>
  4674. <div
  4675. v-if="
  4676. tType &&
  4677. ((tType == 2 && sIsOpen == true) ||
  4678. tType == 1 ||
  4679. tType == 4) &&
  4680. tool.tool.indexOf(6) != -1
  4681. "
  4682. class="worksBox"
  4683. >
  4684. <div
  4685. class="zuoyeYulan"
  4686. v-if="
  4687. worksStudent2.length &&
  4688. worksStudent2[toolIndex].length > 0
  4689. "
  4690. >
  4691. <div class="worksTop">
  4692. <div>作业预览</div>
  4693. <div
  4694. class="corOpen"
  4695. @click="contract(toolIndex)"
  4696. v-if="
  4697. worksStudent[toolIndex].length > 6 &&
  4698. isCloseList[toolIndex].isClose == 0
  4699. "
  4700. >
  4701. 收缩
  4702. </div>
  4703. <div
  4704. class="corOpen"
  4705. @click="contract(toolIndex)"
  4706. v-if="isCloseList[toolIndex].isClose == 1"
  4707. >
  4708. 展开
  4709. </div>
  4710. </div>
  4711. </div>
  4712. <div
  4713. class="worksDetailBox"
  4714. v-if="
  4715. worksStudent2.length &&
  4716. worksStudent2[toolIndex].length > 0
  4717. "
  4718. >
  4719. <div
  4720. class="works"
  4721. style="
  4722. width: 200px;
  4723. height: 140px;
  4724. margin: 10px 10px 10px 0;
  4725. border-radius: 15px;
  4726. box-shadow: 0 0 6px 1px #dfdada;
  4727. "
  4728. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4729. ? worksStudent2[toolIndex]
  4730. : worksStudent2[toolIndex].slice(0, 6)"
  4731. :key="wIndex"
  4732. >
  4733. <!-- @click="previewImg(w.works)" -->
  4734. <div class="workImg">
  4735. <img :src="w.works" @click="previewImg(w.works)" alt />
  4736. <div
  4737. class="answerScore"
  4738. v-if="w.score"
  4739. @click.stop="openScore(w)"
  4740. :class="{
  4741. rightW:
  4742. w.userid == userid || tType == 1 || tType == 4,
  4743. }"
  4744. >
  4745. {{ JSON.parse(w.score).wScore }}分
  4746. </div>
  4747. <div
  4748. class="answerScore"
  4749. @click.stop="openScore(w)"
  4750. v-else-if="courseDetail.userid == userid"
  4751. :class="{
  4752. rightW:
  4753. w.userid == userid || tType == 1 || tType == 4,
  4754. }"
  4755. >
  4756. 评分
  4757. </div>
  4758. <img
  4759. class="deleteImg"
  4760. src="../../assets/deleteworks.png"
  4761. v-if="w.userid == userid || tType == 1 || tType == 4"
  4762. @click.stop="deleteWorks(w.wid)"
  4763. alt
  4764. />
  4765. </div>
  4766. <div class="comment" style="min-width: 200px">
  4767. <div class="worksName">
  4768. <div>{{ w.sName }}</div>
  4769. </div>
  4770. <div class="commentList">
  4771. <div class="commentList">
  4772. <div
  4773. class="commentImg"
  4774. @click="
  4775. isLikes(w.wid, userid, 1, null, w.isLikes)
  4776. "
  4777. >
  4778. <img
  4779. :src="w.isLikes == true ? likes : noLikes"
  4780. alt=""
  4781. />
  4782. </div>
  4783. <div>{{ w.likesCount }}</div>
  4784. </div>
  4785. <div class="commentList" style="margin-right: 15px">
  4786. <div
  4787. class="commentImg"
  4788. @click="commentOther(w, toolIndex, wIndex)"
  4789. >
  4790. <img
  4791. src="../../assets/icon/comment/comment.png"
  4792. alt=""
  4793. />
  4794. </div>
  4795. <div>{{ w.commentCount }}</div>
  4796. </div>
  4797. </div>
  4798. </div>
  4799. </div>
  4800. </div>
  4801. <div class="noWorksS">
  4802. <div
  4803. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4804. :key="sIndex"
  4805. class="noWorksName"
  4806. :class="{ isWork: s.type == '2' }"
  4807. >
  4808. {{ s.student }}
  4809. </div>
  4810. </div>
  4811. </div>
  4812. <div
  4813. v-if="
  4814. tType &&
  4815. ((tType == 2 && sIsOpen == true) ||
  4816. tType == 1 ||
  4817. tType == 4) &&
  4818. tool.tool.indexOf(7) != -1
  4819. "
  4820. class="worksBox"
  4821. >
  4822. <div
  4823. class="zuoyeYulan"
  4824. v-if="
  4825. worksStudent2.length &&
  4826. worksStudent2[toolIndex].length > 0
  4827. "
  4828. >
  4829. <div class="worksTop">
  4830. <div>作业预览</div>
  4831. <div
  4832. class="corOpen"
  4833. @click="contract(toolIndex)"
  4834. v-if="
  4835. worksStudent2[toolIndex].length > 6 &&
  4836. isCloseList[toolIndex].isClose == 0
  4837. "
  4838. >
  4839. 收缩
  4840. </div>
  4841. <div
  4842. class="corOpen"
  4843. @click="contract(toolIndex)"
  4844. v-if="isCloseList[toolIndex].isClose == 1"
  4845. >
  4846. 展开
  4847. </div>
  4848. </div>
  4849. </div>
  4850. <div
  4851. class="worksDetailBox"
  4852. v-if="
  4853. worksStudent2.length &&
  4854. worksStudent2[toolIndex].length > 0
  4855. "
  4856. >
  4857. <div
  4858. class="works"
  4859. style="
  4860. width: 200px;
  4861. height: 140px;
  4862. margin: 10px 10px 10px 0;
  4863. border-radius: 15px;
  4864. box-shadow: 0 0 6px 1px #dfdada;
  4865. "
  4866. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4867. ? worksStudent2[toolIndex]
  4868. : worksStudent2[toolIndex].slice(0, 6)"
  4869. :key="wIndex"
  4870. >
  4871. <!-- @click="previewImg(w.works)" -->
  4872. <div class="workImg">
  4873. <img :src="w.works" @click="previewImg(w.works)" alt />
  4874. <div
  4875. class="answerScore"
  4876. v-if="w.score"
  4877. @click.stop="openScore(w)"
  4878. :class="{
  4879. rightW:
  4880. w.userid == userid || tType == 1 || tType == 4,
  4881. }"
  4882. >
  4883. {{ JSON.parse(w.score).wScore }}分
  4884. </div>
  4885. <div
  4886. class="answerScore"
  4887. @click.stop="openScore(w)"
  4888. v-else-if="courseDetail.userid == userid"
  4889. :class="{
  4890. rightW:
  4891. w.userid == userid || tType == 1 || tType == 4,
  4892. }"
  4893. >
  4894. 评分
  4895. </div>
  4896. <img
  4897. class="deleteImg"
  4898. src="../../assets/deleteworks.png"
  4899. v-if="w.userid == userid || tType == 1 || tType == 4"
  4900. @click.stop="deleteWorks(w.wid)"
  4901. alt
  4902. />
  4903. </div>
  4904. <div class="comment" style="min-width: 200px">
  4905. <div class="worksName">
  4906. <div>{{ w.sName }}</div>
  4907. </div>
  4908. <div class="commentList">
  4909. <div class="commentList">
  4910. <div
  4911. class="commentImg"
  4912. @click="
  4913. isLikes(w.wid, userid, 1, null, w.isLikes)
  4914. "
  4915. >
  4916. <img
  4917. :src="w.isLikes == true ? likes : noLikes"
  4918. alt=""
  4919. />
  4920. </div>
  4921. <div>{{ w.likesCount }}</div>
  4922. </div>
  4923. <div class="commentList" style="margin-right: 15px">
  4924. <div
  4925. class="commentImg"
  4926. @click="commentOther(w, toolIndex, wIndex)"
  4927. >
  4928. <img
  4929. src="../../assets/icon/comment/comment.png"
  4930. alt=""
  4931. />
  4932. </div>
  4933. <div>{{ w.commentCount }}</div>
  4934. </div>
  4935. </div>
  4936. </div>
  4937. </div>
  4938. </div>
  4939. <div class="noWorksS">
  4940. <div
  4941. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4942. :key="sIndex"
  4943. class="noWorksName"
  4944. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  4945. :class="{ isWork: s.type == '2' }"
  4946. >
  4947. {{ s.student }}
  4948. </div>
  4949. </div>
  4950. </div>
  4951. <div
  4952. v-if="
  4953. tType &&
  4954. ((tType == 2 && sIsOpen == true) ||
  4955. tType == 1 ||
  4956. tType == 4) &&
  4957. tool.tool.indexOf(26) != -1
  4958. "
  4959. class="worksBox"
  4960. >
  4961. <div
  4962. class="zuoyeYulan"
  4963. v-if="
  4964. worksStudent2.length &&
  4965. worksStudent2[toolIndex].length > 0
  4966. "
  4967. >
  4968. <div class="worksTop">
  4969. <div>作业预览</div>
  4970. <div
  4971. class="corOpen"
  4972. @click="contract(toolIndex)"
  4973. v-if="
  4974. worksStudent2[toolIndex].length > 6 &&
  4975. isCloseList[toolIndex].isClose == 0
  4976. "
  4977. >
  4978. 收缩
  4979. </div>
  4980. <div
  4981. class="corOpen"
  4982. @click="contract(toolIndex)"
  4983. v-if="isCloseList[toolIndex].isClose == 1"
  4984. >
  4985. 展开
  4986. </div>
  4987. </div>
  4988. </div>
  4989. <div
  4990. class="worksDetailBox"
  4991. v-if="
  4992. worksStudent2.length &&
  4993. worksStudent2[toolIndex].length > 0
  4994. "
  4995. >
  4996. <div
  4997. class="works"
  4998. style="width: 240px; height: 140px; overflow: hidden"
  4999. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5000. ? worksStudent2[toolIndex]
  5001. : worksStudent2[toolIndex].slice(0, 6)"
  5002. :key="wIndex"
  5003. :class="w.type == 1 ? 'isTypeOne' : ''"
  5004. >
  5005. <div class="workImg" v-if="w.type == 0">
  5006. <img :src="w.works" @click="previewImg(w.works)" alt />
  5007. <img
  5008. class="deleteImg"
  5009. src="../../assets/deleteworks.png"
  5010. v-if="w.userid == userid || tType == 1 || tType == 4"
  5011. @click.stop="deleteWorks(w.wid)"
  5012. alt
  5013. />
  5014. </div>
  5015. <div class="workImg" v-if="w.type == 1">
  5016. <img :src="word" @click="openFile(w.works)" alt />
  5017. <img
  5018. class="deleteImg"
  5019. src="../../assets/deleteworks.png"
  5020. v-if="w.userid == userid || tType == 1 || tType == 4"
  5021. @click.stop="deleteWorks(w.wid)"
  5022. alt
  5023. />
  5024. </div>
  5025. <div class="worksName">
  5026. <div>{{ w.sName }}</div>
  5027. </div>
  5028. </div>
  5029. </div>
  5030. <div class="noWorksS">
  5031. <div
  5032. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5033. :key="sIndex"
  5034. class="noWorksName"
  5035. :class="{ isWork: s.type == '2' }"
  5036. >
  5037. {{ s.student }}
  5038. </div>
  5039. </div>
  5040. </div>
  5041. <div
  5042. v-if="
  5043. tType &&
  5044. ((tType == 2 && sIsOpen == true) ||
  5045. tType == 1 ||
  5046. tType == 4) &&
  5047. tool.tool.indexOf(40) != -1
  5048. "
  5049. class="worksBox"
  5050. >
  5051. <div
  5052. class="zuoyeYulan"
  5053. v-if="
  5054. worksStudent2.length &&
  5055. worksStudent2[toolIndex].length > 0
  5056. "
  5057. >
  5058. <div class="worksTop">
  5059. <div>作业预览</div>
  5060. <div
  5061. class="corOpen"
  5062. @click="contract(toolIndex)"
  5063. v-if="
  5064. worksStudent2[toolIndex].length > 6 &&
  5065. isCloseList[toolIndex].isClose == 0
  5066. "
  5067. >
  5068. 收缩
  5069. </div>
  5070. <div
  5071. class="corOpen"
  5072. @click="contract(toolIndex)"
  5073. v-if="isCloseList[toolIndex].isClose == 1"
  5074. >
  5075. 展开
  5076. </div>
  5077. </div>
  5078. </div>
  5079. <div
  5080. class="worksDetailBox"
  5081. v-if="
  5082. worksStudent2.length &&
  5083. worksStudent2[toolIndex].length > 0
  5084. "
  5085. >
  5086. <div
  5087. class="works"
  5088. style="
  5089. width: 200px;
  5090. height: 140px;
  5091. margin: 10px 10px 10px 0;
  5092. border-radius: 15px;
  5093. box-shadow: 0 0 6px 1px #dfdada;
  5094. "
  5095. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5096. ? worksStudent2[toolIndex]
  5097. : worksStudent2[toolIndex].slice(0, 6)"
  5098. :key="wIndex"
  5099. :class="w.type == 1 ? 'isTypeOne' : ''"
  5100. >
  5101. <div class="workImg">
  5102. <img
  5103. src="../../assets/icon/works/noImg.png"
  5104. @click="openPj(w.works, toolIndex)"
  5105. alt
  5106. />
  5107. <img
  5108. class="deleteImg"
  5109. src="../../assets/deleteworks.png"
  5110. v-if="w.userid == userid || tType == 1 || tType == 4"
  5111. @click.stop="deleteWorks(w.wid)"
  5112. alt
  5113. />
  5114. </div>
  5115. <div class="comment" style="min-width: 200px">
  5116. <div class="worksName">
  5117. <div>{{ w.sName }}</div>
  5118. </div>
  5119. <div class="commentList">
  5120. <div class="commentList">
  5121. <div
  5122. class="commentImg"
  5123. @click="
  5124. isLikes(w.wid, userid, 1, null, w.isLikes)
  5125. "
  5126. >
  5127. <img
  5128. :src="w.isLikes == true ? likes : noLikes"
  5129. alt=""
  5130. />
  5131. </div>
  5132. <div>{{ w.likesCount }}</div>
  5133. </div>
  5134. <div class="commentList" style="margin-right: 15px">
  5135. <div
  5136. class="commentImg"
  5137. @click="commentOther(w, toolIndex, wIndex)"
  5138. >
  5139. <img
  5140. src="../../assets/icon/comment/comment.png"
  5141. alt=""
  5142. />
  5143. </div>
  5144. <div>{{ w.commentCount }}</div>
  5145. </div>
  5146. </div>
  5147. </div>
  5148. </div>
  5149. </div>
  5150. <div class="noWorksS">
  5151. <div
  5152. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5153. :key="sIndex"
  5154. class="noWorksName"
  5155. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5156. :class="{ isWork: s.type == '2' }"
  5157. >
  5158. {{ s.student }}
  5159. </div>
  5160. </div>
  5161. </div>
  5162. <div
  5163. v-if="
  5164. tType &&
  5165. ((tType == 2 && sIsOpen == true) ||
  5166. tType == 1 ||
  5167. tType == 4) &&
  5168. tool.tool.indexOf(41) != -1
  5169. "
  5170. class="worksBox"
  5171. >
  5172. <div class="noWorksS">
  5173. <div
  5174. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5175. :key="sIndex"
  5176. class="noWorksName"
  5177. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5178. :class="{ isWork: s.type == '2' }"
  5179. >
  5180. {{ s.student }}
  5181. </div>
  5182. </div>
  5183. <div
  5184. class="zuoyeYulan"
  5185. v-if="
  5186. worksStudent2.length &&
  5187. worksStudent2[toolIndex].length > 0
  5188. "
  5189. >
  5190. <div class="worksTop">
  5191. <div>作业预览</div>
  5192. <div
  5193. class="corOpen"
  5194. @click="contract(toolIndex)"
  5195. v-if="
  5196. worksStudent2[toolIndex].length > 6 &&
  5197. isCloseList[toolIndex].isClose == 0
  5198. "
  5199. >
  5200. 收缩
  5201. </div>
  5202. <div
  5203. class="corOpen"
  5204. @click="contract(toolIndex)"
  5205. v-if="isCloseList[toolIndex].isClose == 1"
  5206. >
  5207. 展开
  5208. </div>
  5209. </div>
  5210. </div>
  5211. <div
  5212. class="worksDetailBox"
  5213. v-if="
  5214. worksStudent2.length &&
  5215. worksStudent2[toolIndex].length > 0
  5216. "
  5217. >
  5218. <div
  5219. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5220. ? worksStudent2[toolIndex]
  5221. : worksStudent2[toolIndex].slice(0, 6)"
  5222. :key="wIndex"
  5223. class="isWorksName2"
  5224. @click="openXz(w, toolIndex)"
  5225. >
  5226. {{ w.sName }}
  5227. <img
  5228. class="deleteImg deleteImg2"
  5229. src="../../assets/deleteworks.png"
  5230. v-if="w.userid == userid || tType == 1 || tType == 4"
  5231. @click.stop="deleteWorks(w.wid)"
  5232. alt
  5233. />
  5234. </div>
  5235. </div>
  5236. </div>
  5237. <div
  5238. v-if="
  5239. tType &&
  5240. ((tType == 2 && sIsOpen == true) ||
  5241. tType == 1 ||
  5242. tType == 4) &&
  5243. tool.tool.indexOf(47) != -1
  5244. "
  5245. class="worksBox"
  5246. >
  5247. <div class="noWorksS">
  5248. <div
  5249. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5250. :key="sIndex"
  5251. class="noWorksName"
  5252. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5253. :class="{ isWork: s.type == '2' }"
  5254. >
  5255. {{ s.student }}
  5256. </div>
  5257. </div>
  5258. <div
  5259. class="zuoyeYulan"
  5260. v-if="
  5261. worksStudent2.length &&
  5262. worksStudent2[toolIndex].length > 0
  5263. "
  5264. >
  5265. <div class="worksTop">
  5266. <div>作业预览</div>
  5267. <div
  5268. class="corOpen"
  5269. @click="contract(toolIndex)"
  5270. v-if="
  5271. worksStudent2[toolIndex].length > 6 &&
  5272. isCloseList[toolIndex].isClose == 0
  5273. "
  5274. >
  5275. 收缩
  5276. </div>
  5277. <div
  5278. class="corOpen"
  5279. @click="contract(toolIndex)"
  5280. v-if="isCloseList[toolIndex].isClose == 1"
  5281. >
  5282. 展开
  5283. </div>
  5284. </div>
  5285. </div>
  5286. <div
  5287. class="worksDetailBox"
  5288. v-if="
  5289. worksStudent2.length &&
  5290. worksStudent2[toolIndex].length > 0
  5291. "
  5292. >
  5293. <!-- @click="openXz(w, toolIndex)" -->
  5294. <div
  5295. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5296. ? worksStudent2[toolIndex]
  5297. : worksStudent2[toolIndex].slice(0, 6)"
  5298. :key="wIndex"
  5299. class="isWorksName2"
  5300. @click="openSen(w, toolIndex)"
  5301. >
  5302. {{ w.sName }}
  5303. <img
  5304. class="deleteImg deleteImg2"
  5305. src="../../assets/deleteworks.png"
  5306. v-if="w.userid == userid || tType == 1 || tType == 4"
  5307. @click.stop="deleteWorks(w.wid)"
  5308. alt
  5309. />
  5310. </div>
  5311. </div>
  5312. </div>
  5313. <div
  5314. v-if="
  5315. tType &&
  5316. ((tType == 2 && sIsOpen == true) ||
  5317. tType == 1 ||
  5318. tType == 4) &&
  5319. tool.tool.indexOf(48) != -1
  5320. "
  5321. class="worksBox"
  5322. >
  5323. <div
  5324. class="zuoyeYulan"
  5325. v-if="
  5326. worksStudent2.length &&
  5327. worksStudent2[toolIndex].length > 0
  5328. "
  5329. >
  5330. <div class="worksTop">
  5331. <div>作业预览</div>
  5332. <div
  5333. class="corOpen"
  5334. @click="contract(toolIndex)"
  5335. v-if="
  5336. worksStudent2[toolIndex].length > 6 &&
  5337. isCloseList[toolIndex].isClose == 0
  5338. "
  5339. >
  5340. 收缩
  5341. </div>
  5342. <div
  5343. class="corOpen"
  5344. @click="contract(toolIndex)"
  5345. v-if="isCloseList[toolIndex].isClose == 1"
  5346. >
  5347. 展开
  5348. </div>
  5349. </div>
  5350. </div>
  5351. <div
  5352. class="worksDetailBox"
  5353. v-if="
  5354. worksStudent2.length &&
  5355. worksStudent2[toolIndex].length > 0
  5356. "
  5357. >
  5358. <div
  5359. class="works"
  5360. style="
  5361. width: 200px;
  5362. height: 140px;
  5363. margin: 10px 10px 10px 0;
  5364. border-radius: 15px;
  5365. box-shadow: 0 0 6px 1px #dfdada;
  5366. "
  5367. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5368. ? worksStudent2[toolIndex]
  5369. : worksStudent2[toolIndex].slice(0, 6)"
  5370. :key="wIndex"
  5371. :class="w.type == 1 ? 'isTypeOne' : ''"
  5372. >
  5373. <div class="workImg">
  5374. <img :src="word" @click="openTable(w)" alt />
  5375. <!-- @click="openFile(w.works)" -->
  5376. <div
  5377. class="answerScore"
  5378. v-if="w.score"
  5379. @click.stop="openScore(w)"
  5380. :class="{
  5381. rightW:
  5382. w.userid == userid ||
  5383. tType == 1 ||
  5384. tType == 4 ||
  5385. w.ateacher == userid,
  5386. }"
  5387. >
  5388. {{ JSON.parse(w.score).wScore }}分
  5389. </div>
  5390. <div
  5391. class="answerScore"
  5392. @click.stop="openScore(w)"
  5393. v-else-if="courseDetail.userid == userid"
  5394. :class="{
  5395. rightW:
  5396. w.userid == userid ||
  5397. tType == 1 ||
  5398. tType == 4 ||
  5399. w.ateacher == userid,
  5400. }"
  5401. >
  5402. 评分
  5403. </div>
  5404. <img
  5405. class="deleteImg"
  5406. src="../../assets/deleteworks.png"
  5407. v-if="w.userid == userid || tType == 1 || tType == 4"
  5408. @click.stop="deleteWorks(w.wid)"
  5409. alt
  5410. />
  5411. </div>
  5412. <div class="comment" style="min-width: 200px">
  5413. <div class="worksName">
  5414. <div>{{ w.sName }}</div>
  5415. </div>
  5416. <div class="commentList">
  5417. <div class="commentList">
  5418. <div
  5419. class="commentImg"
  5420. @click="
  5421. isLikes(w.wid, userid, 1, null, w.isLikes)
  5422. "
  5423. >
  5424. <img
  5425. :src="w.isLikes == true ? likes : noLikes"
  5426. alt=""
  5427. />
  5428. </div>
  5429. <div>{{ w.likesCount }}</div>
  5430. </div>
  5431. <div class="commentList" style="margin-right: 15px">
  5432. <div
  5433. class="commentImg"
  5434. @click="commentOther(w, toolIndex, wIndex)"
  5435. >
  5436. <img
  5437. src="../../assets/icon/comment/comment.png"
  5438. alt=""
  5439. />
  5440. </div>
  5441. <div>{{ w.commentCount }}</div>
  5442. </div>
  5443. </div>
  5444. </div>
  5445. </div>
  5446. </div>
  5447. <div class="noWorksS">
  5448. <div
  5449. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5450. :key="sIndex"
  5451. class="noWorksName"
  5452. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5453. :class="{ isWork: s.type == '2' }"
  5454. >
  5455. {{ s.student }}
  5456. </div>
  5457. </div>
  5458. </div>
  5459. <div
  5460. v-if="
  5461. tType &&
  5462. ((tType == 2 && sIsOpen == true) ||
  5463. tType == 1 ||
  5464. tType == 4) &&
  5465. tool.tool.indexOf(52) != -1
  5466. "
  5467. class="worksBox"
  5468. >
  5469. <div
  5470. class="zuoyeYulan"
  5471. v-if="
  5472. worksStudent2.length &&
  5473. worksStudent2[toolIndex].length > 0
  5474. "
  5475. >
  5476. <div class="worksTop">
  5477. <div>作业预览</div>
  5478. <div
  5479. class="corOpen"
  5480. @click="contract(toolIndex)"
  5481. v-if="
  5482. worksStudent2[toolIndex].length > 6 &&
  5483. isCloseList[toolIndex].isClose == 0
  5484. "
  5485. >
  5486. 收缩
  5487. </div>
  5488. <div
  5489. class="corOpen"
  5490. @click="contract(toolIndex)"
  5491. v-if="isCloseList[toolIndex].isClose == 1"
  5492. >
  5493. 展开
  5494. </div>
  5495. </div>
  5496. </div>
  5497. <div
  5498. class="worksDetailBox"
  5499. v-if="
  5500. worksStudent2.length &&
  5501. worksStudent2[toolIndex].length > 0
  5502. "
  5503. >
  5504. <div
  5505. class="works"
  5506. style="
  5507. width: 200px;
  5508. height: 140px;
  5509. margin: 10px 10px 10px 0;
  5510. border-radius: 15px;
  5511. box-shadow: 0 0 6px 1px #dfdada;
  5512. "
  5513. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5514. ? worksStudent2[toolIndex]
  5515. : worksStudent2[toolIndex].slice(0, 6)"
  5516. :key="wIndex"
  5517. :class="w.type == 1 ? 'isTypeOne' : ''"
  5518. >
  5519. <div class="workImg">
  5520. <img :src="word" @click="openWord(w)" alt />
  5521. <!-- @click="openFile(w.works)" -->
  5522. <div
  5523. class="answerScore"
  5524. v-if="w.score"
  5525. @click.stop="openScore(w)"
  5526. :class="{
  5527. rightW:
  5528. w.userid == userid ||
  5529. tType == 1 ||
  5530. tType == 4 ||
  5531. w.ateacher == userid,
  5532. }"
  5533. >
  5534. {{ JSON.parse(w.score).wScore }}分
  5535. </div>
  5536. <div
  5537. class="answerScore"
  5538. @click.stop="openScore(w)"
  5539. v-else-if="courseDetail.userid == userid"
  5540. :class="{
  5541. rightW:
  5542. w.userid == userid ||
  5543. tType == 1 ||
  5544. tType == 4 ||
  5545. w.ateacher == userid,
  5546. }"
  5547. >
  5548. 评分
  5549. </div>
  5550. <img
  5551. class="deleteImg"
  5552. src="../../assets/deleteworks.png"
  5553. v-if="w.userid == userid || tType == 1 || tType == 4"
  5554. @click.stop="deleteWorks(w.wid)"
  5555. alt
  5556. />
  5557. </div>
  5558. <div class="comment" style="min-width: 200px">
  5559. <div class="worksName">
  5560. <div>{{ w.sName }}</div>
  5561. </div>
  5562. <div class="commentList">
  5563. <div class="commentList">
  5564. <div
  5565. class="commentImg"
  5566. @click="
  5567. isLikes(w.wid, userid, 1, null, w.isLikes)
  5568. "
  5569. >
  5570. <img
  5571. :src="w.isLikes == true ? likes : noLikes"
  5572. alt=""
  5573. />
  5574. </div>
  5575. <div>{{ w.likesCount }}</div>
  5576. </div>
  5577. <div class="commentList" style="margin-right: 15px">
  5578. <div
  5579. class="commentImg"
  5580. @click="commentOther(w, toolIndex, wIndex)"
  5581. >
  5582. <img
  5583. src="../../assets/icon/comment/comment.png"
  5584. alt=""
  5585. />
  5586. </div>
  5587. <div>{{ w.commentCount }}</div>
  5588. </div>
  5589. </div>
  5590. </div>
  5591. </div>
  5592. </div>
  5593. <div class="noWorksS">
  5594. <div
  5595. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5596. :key="sIndex"
  5597. class="noWorksName"
  5598. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5599. :class="{ isWork: s.type == '2' }"
  5600. >
  5601. {{ s.student }}
  5602. </div>
  5603. </div>
  5604. </div>
  5605. </div>
  5606. </div>
  5607. <div
  5608. class="vedioBox"
  5609. v-if="
  5610. arrayToArray(tool.tool, isWorkTool).length &&
  5611. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  5612. "
  5613. >
  5614. <!-- <div
  5615. class="queTop"
  5616. style="
  5617. font-size: 25px;
  5618. padding: 15px 0 15px 37px;
  5619. font-weight: bold;
  5620. "
  5621. >
  5622. 工作区
  5623. </div> -->
  5624. <div class="tool_work_box">
  5625. <div
  5626. v-if="
  5627. tType &&
  5628. ((tType == 2 && sIsOpen == true) ||
  5629. tType == 1 ||
  5630. tType == 4) &&
  5631. tool.tool.indexOf(16) != -1
  5632. "
  5633. class="worksBox"
  5634. >
  5635. <div
  5636. class="zuoyeYulan"
  5637. v-if="
  5638. worksStudent.length && worksStudent[toolIndex].length > 0
  5639. "
  5640. >
  5641. <div class="worksTop">
  5642. <div>作业预览</div>
  5643. <div
  5644. class="corOpen"
  5645. @click="contract(toolIndex)"
  5646. v-if="
  5647. worksStudent[toolIndex].length > 6 &&
  5648. isCloseList[toolIndex].isClose == 0
  5649. "
  5650. >
  5651. 收缩
  5652. </div>
  5653. <div
  5654. class="corOpen"
  5655. @click="contract(toolIndex)"
  5656. v-if="isCloseList[toolIndex].isClose == 1"
  5657. >
  5658. 展开
  5659. </div>
  5660. </div>
  5661. </div>
  5662. <div
  5663. class="worksDetailBox"
  5664. v-if="
  5665. worksStudent.length && worksStudent[toolIndex].length > 0
  5666. "
  5667. >
  5668. <div
  5669. class="works"
  5670. style="
  5671. width: 200px;
  5672. height: 140px;
  5673. margin: 10px 10px 10px 0;
  5674. border-radius: 15px;
  5675. box-shadow: 0 0 6px 1px #dfdada;
  5676. "
  5677. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5678. ? worksStudent[toolIndex]
  5679. : worksStudent[toolIndex].slice(0, 6)"
  5680. :key="wIndex"
  5681. :class="w.type == 1 ? 'isTypeOne' : ''"
  5682. >
  5683. <div class="workImg" v-if="w.type == 0">
  5684. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5685. <img :src="w.works" @click="previewImg(w.works)" alt />
  5686. <div
  5687. class="answerScore"
  5688. v-if="w.score"
  5689. @click.stop="openScore(w)"
  5690. :class="{
  5691. rightW:
  5692. w.userid == userid ||
  5693. tType == 1 ||
  5694. tType == 4 ||
  5695. w.ateacher == userid,
  5696. }"
  5697. >
  5698. {{ JSON.parse(w.score).wScore }}分
  5699. </div>
  5700. <div
  5701. class="answerScore"
  5702. @click.stop="openScore(w)"
  5703. v-else-if="courseDetail.userid == userid"
  5704. :class="{
  5705. rightW:
  5706. w.userid == userid ||
  5707. tType == 1 ||
  5708. tType == 4 ||
  5709. w.ateacher == userid,
  5710. }"
  5711. >
  5712. 评分
  5713. </div>
  5714. <img
  5715. class="deleteImg"
  5716. src="../../assets/deleteworks.png"
  5717. v-if="w.userid == userid || tType == 1 || tType == 4"
  5718. @click.stop="deleteWorks(w.wid)"
  5719. alt
  5720. />
  5721. </div>
  5722. <div class="workImg" v-if="w.type == 1">
  5723. <img :src="word" @click="openFile(w.works)" alt />
  5724. <!-- @click="openFile(w.works)" -->
  5725. <div
  5726. class="answerScore"
  5727. v-if="w.score"
  5728. @click.stop="openScore(w)"
  5729. :class="{
  5730. rightW:
  5731. w.userid == userid ||
  5732. tType == 1 ||
  5733. tType == 4 ||
  5734. w.ateacher == userid,
  5735. }"
  5736. >
  5737. {{ JSON.parse(w.score).wScore }}分
  5738. </div>
  5739. <div
  5740. class="answerScore"
  5741. @click.stop="openScore(w)"
  5742. v-else-if="courseDetail.userid == userid"
  5743. :class="{
  5744. rightW:
  5745. w.userid == userid ||
  5746. tType == 1 ||
  5747. tType == 4 ||
  5748. w.ateacher == userid,
  5749. }"
  5750. >
  5751. 评分
  5752. </div>
  5753. <img
  5754. class="deleteImg"
  5755. src="../../assets/deleteworks.png"
  5756. v-if="w.userid == userid || tType == 1 || tType == 4"
  5757. @click.stop="deleteWorks(w.wid)"
  5758. alt
  5759. />
  5760. </div>
  5761. <div class="workImg" v-if="w.type == 3">
  5762. <img
  5763. style="cursor: pointer"
  5764. :src="video"
  5765. @click="openVideo(w)"
  5766. alt
  5767. />
  5768. <!-- @click="openVideo(w.works)" -->
  5769. <div
  5770. class="answerScore"
  5771. v-if="w.score"
  5772. @click.stop="openScore(w)"
  5773. :class="{
  5774. rightW:
  5775. w.userid == userid ||
  5776. tType == 1 ||
  5777. tType == 4 ||
  5778. w.ateacher == userid,
  5779. }"
  5780. >
  5781. {{ JSON.parse(w.score).wScore }}分
  5782. </div>
  5783. <div
  5784. class="answerScore"
  5785. @click.stop="openScore(w)"
  5786. v-else-if="courseDetail.userid == userid"
  5787. :class="{
  5788. rightW:
  5789. w.userid == userid ||
  5790. tType == 1 ||
  5791. tType == 4 ||
  5792. w.ateacher == userid,
  5793. }"
  5794. >
  5795. 评分
  5796. </div>
  5797. <img
  5798. class="deleteImg"
  5799. src="../../assets/deleteworks.png"
  5800. v-if="w.userid == userid || tType == 1 || tType == 4"
  5801. @click.stop="deleteWorks(w.wid)"
  5802. alt
  5803. />
  5804. </div>
  5805. <div class="workImg" v-if="w.type == 12">
  5806. <img
  5807. style="cursor: pointer"
  5808. :src="word2"
  5809. @click="downloadFile(w.works)"
  5810. alt
  5811. />
  5812. <!-- @click="openVideo(w.works)" -->
  5813. <div
  5814. class="answerScore"
  5815. v-if="w.score"
  5816. @click.stop="openScore(w)"
  5817. :class="{
  5818. rightW:
  5819. w.userid == userid ||
  5820. tType == 1 ||
  5821. tType == 4 ||
  5822. w.ateacher == userid,
  5823. }"
  5824. >
  5825. {{ JSON.parse(w.score).wScore }}分
  5826. </div>
  5827. <div
  5828. class="answerScore"
  5829. @click.stop="openScore(w)"
  5830. v-else-if="courseDetail.userid == userid"
  5831. :class="{
  5832. rightW:
  5833. w.userid == userid ||
  5834. tType == 1 ||
  5835. tType == 4 ||
  5836. w.ateacher == userid,
  5837. }"
  5838. >
  5839. 评分
  5840. </div>
  5841. <img
  5842. class="deleteImg"
  5843. src="../../assets/deleteworks.png"
  5844. v-if="w.userid == userid || tType == 1 || tType == 4"
  5845. @click.stop="deleteWorks(w.wid)"
  5846. alt
  5847. />
  5848. </div>
  5849. <div class="comment" style="min-width: 200px">
  5850. <div class="worksName">
  5851. <div>{{ w.sName }}</div>
  5852. </div>
  5853. <div class="commentList">
  5854. <div class="commentList">
  5855. <div
  5856. class="commentImg"
  5857. @click="
  5858. isLikes(w.wid, userid, 1, null, w.isLikes)
  5859. "
  5860. >
  5861. <img
  5862. :src="w.isLikes == true ? likes : noLikes"
  5863. alt=""
  5864. />
  5865. </div>
  5866. <div>{{ w.likesCount }}</div>
  5867. </div>
  5868. <div class="commentList" style="margin-right: 15px">
  5869. <div
  5870. class="commentImg"
  5871. @click="commentOther(w, toolIndex, wIndex)"
  5872. >
  5873. <img
  5874. src="../../assets/icon/comment/comment.png"
  5875. alt=""
  5876. />
  5877. </div>
  5878. <div>{{ w.commentCount }}</div>
  5879. </div>
  5880. </div>
  5881. </div>
  5882. </div>
  5883. </div>
  5884. <div class="noWorksS">
  5885. <div
  5886. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5887. :key="sIndex"
  5888. class="noWorksName"
  5889. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  5890. :class="{ isWork: s.type == '2' }"
  5891. >
  5892. {{ s.student }}
  5893. </div>
  5894. </div>
  5895. </div>
  5896. <div
  5897. v-if="
  5898. tType &&
  5899. ((tType == 2 && sIsOpen == true) ||
  5900. tType == 1 ||
  5901. tType == 4) &&
  5902. tool.tool.indexOf(32) != -1
  5903. "
  5904. class="worksBox"
  5905. >
  5906. <div
  5907. class="zuoyeYulan"
  5908. v-if="
  5909. worksStudent.length && worksStudent[toolIndex].length > 0
  5910. "
  5911. >
  5912. <div class="worksTop">
  5913. <div>作业预览</div>
  5914. <div
  5915. class="corOpen"
  5916. @click="contract(toolIndex)"
  5917. v-if="
  5918. worksStudent[toolIndex].length > 6 &&
  5919. isCloseList[toolIndex].isClose == 0
  5920. "
  5921. >
  5922. 收缩
  5923. </div>
  5924. <div
  5925. class="corOpen"
  5926. @click="contract(toolIndex)"
  5927. v-if="isCloseList[toolIndex].isClose == 1"
  5928. >
  5929. 展开
  5930. </div>
  5931. </div>
  5932. </div>
  5933. <div
  5934. class="worksDetailBox"
  5935. v-if="
  5936. worksStudent.length && worksStudent[toolIndex].length > 0
  5937. "
  5938. >
  5939. <div
  5940. class="works"
  5941. style="
  5942. width: 200px;
  5943. height: 140px;
  5944. margin: 10px 10px 10px 0;
  5945. border-radius: 15px;
  5946. box-shadow: 0 0 6px 1px #dfdada;
  5947. "
  5948. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5949. ? worksStudent[toolIndex]
  5950. : worksStudent[toolIndex].slice(0, 6)"
  5951. :key="wIndex"
  5952. :class="w.type == 1 ? 'isTypeOne' : ''"
  5953. >
  5954. <div class="workImg">
  5955. <img :src="word2" @click="downloadFile(w.works)" alt />
  5956. <div
  5957. class="answerScore"
  5958. v-if="w.score"
  5959. @click.stop="openScore(w)"
  5960. :class="{
  5961. rightW:
  5962. w.userid == userid ||
  5963. tType == 1 ||
  5964. tType == 4 ||
  5965. w.ateacher == userid,
  5966. }"
  5967. >
  5968. {{ JSON.parse(w.score).wScore }}分
  5969. </div>
  5970. <div
  5971. class="answerScore"
  5972. @click.stop="openScore(w)"
  5973. v-else-if="courseDetail.userid == userid"
  5974. :class="{
  5975. rightW:
  5976. w.userid == userid ||
  5977. tType == 1 ||
  5978. tType == 4 ||
  5979. w.ateacher == userid,
  5980. }"
  5981. >
  5982. 评分
  5983. </div>
  5984. <img
  5985. class="deleteImg"
  5986. src="../../assets/deleteworks.png"
  5987. v-if="w.userid == userid || tType == 1 || tType == 4"
  5988. @click.stop="deleteWorks(w.wid)"
  5989. alt
  5990. />
  5991. </div>
  5992. <div class="comment" style="min-width: 200px">
  5993. <div class="worksName">
  5994. <div>{{ w.sName }}</div>
  5995. </div>
  5996. <div class="commentList">
  5997. <div class="commentList">
  5998. <div
  5999. class="commentImg"
  6000. @click="
  6001. isLikes(w.wid, userid, 1, null, w.isLikes)
  6002. "
  6003. >
  6004. <img
  6005. :src="w.isLikes == true ? likes : noLikes"
  6006. alt=""
  6007. />
  6008. </div>
  6009. <div>{{ w.likesCount }}</div>
  6010. </div>
  6011. <div class="commentList" style="margin-right: 15px">
  6012. <div
  6013. class="commentImg"
  6014. @click="commentOther(w, toolIndex, wIndex)"
  6015. >
  6016. <img
  6017. src="../../assets/icon/comment/comment.png"
  6018. alt=""
  6019. />
  6020. </div>
  6021. <div>{{ w.commentCount }}</div>
  6022. </div>
  6023. </div>
  6024. </div>
  6025. </div>
  6026. </div>
  6027. <div class="noWorksS">
  6028. <div
  6029. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6030. :key="sIndex"
  6031. class="noWorksName"
  6032. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6033. :class="{ isWork: s.type == '2' }"
  6034. >
  6035. {{ s.student }}
  6036. </div>
  6037. </div>
  6038. </div>
  6039. <div
  6040. v-if="
  6041. tType &&
  6042. ((tType == 2 && sIsOpen == true) ||
  6043. tType == 1 ||
  6044. tType == 4) &&
  6045. tool.tool.indexOf(57) != -1
  6046. "
  6047. class="worksBox"
  6048. >
  6049. <div
  6050. class="zuoyeYulan"
  6051. v-if="
  6052. worksStudent.length && worksStudent[toolIndex].length > 0
  6053. "
  6054. >
  6055. <div class="worksTop">
  6056. <div>作业预览</div>
  6057. <div
  6058. class="corOpen"
  6059. @click="contract(toolIndex)"
  6060. v-if="
  6061. worksStudent[toolIndex].length > 6 &&
  6062. isCloseList[toolIndex].isClose == 0
  6063. "
  6064. >
  6065. 收缩
  6066. </div>
  6067. <div
  6068. class="corOpen"
  6069. @click="contract(toolIndex)"
  6070. v-if="isCloseList[toolIndex].isClose == 1"
  6071. >
  6072. 展开
  6073. </div>
  6074. </div>
  6075. </div>
  6076. <div
  6077. class="worksDetailBox"
  6078. v-if="
  6079. worksStudent.length && worksStudent[toolIndex].length > 0
  6080. "
  6081. >
  6082. <div
  6083. class="works"
  6084. style="
  6085. width: 200px;
  6086. height: 140px;
  6087. margin: 10px 10px 10px 0;
  6088. border-radius: 15px;
  6089. box-shadow: 0 0 6px 1px #dfdada;
  6090. "
  6091. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6092. ? worksStudent[toolIndex]
  6093. : worksStudent[toolIndex].slice(0, 6)"
  6094. :key="wIndex"
  6095. :class="w.type == 1 ? 'isTypeOne' : ''"
  6096. >
  6097. <div class="workImg">
  6098. <img
  6099. :src="word2"
  6100. @click="downloadFile(w.works)"
  6101. v-if="w.type == 12"
  6102. alt
  6103. />
  6104. <img
  6105. :src="word2"
  6106. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6107. v-else-if="w.type == 15"
  6108. alt
  6109. />
  6110. <div
  6111. class="answerScore"
  6112. v-if="w.score"
  6113. @click.stop="openScore(w)"
  6114. :class="{
  6115. rightW:
  6116. w.userid == userid ||
  6117. tType == 1 ||
  6118. tType == 4 ||
  6119. w.ateacher == userid,
  6120. }"
  6121. >
  6122. {{ JSON.parse(w.score).wScore }}分
  6123. </div>
  6124. <div
  6125. class="answerScore"
  6126. @click.stop="openScore(w)"
  6127. v-else-if="courseDetail.userid == userid"
  6128. :class="{
  6129. rightW:
  6130. w.userid == userid ||
  6131. tType == 1 ||
  6132. tType == 4 ||
  6133. w.ateacher == userid,
  6134. }"
  6135. >
  6136. 评分
  6137. </div>
  6138. <img
  6139. class="deleteImg"
  6140. src="../../assets/deleteworks.png"
  6141. v-if="w.userid == userid || tType == 1 || tType == 4"
  6142. @click.stop="deleteWorks(w.wid)"
  6143. alt
  6144. />
  6145. </div>
  6146. <div class="comment" style="min-width: 200px">
  6147. <div class="worksName">
  6148. <div>{{ w.sName }}</div>
  6149. </div>
  6150. <div class="commentList">
  6151. <div class="commentList">
  6152. <div
  6153. class="commentImg"
  6154. @click="
  6155. isLikes(w.wid, userid, 1, null, w.isLikes)
  6156. "
  6157. >
  6158. <img
  6159. :src="w.isLikes == true ? likes : noLikes"
  6160. alt=""
  6161. />
  6162. </div>
  6163. <div>{{ w.likesCount }}</div>
  6164. </div>
  6165. <div class="commentList" style="margin-right: 15px">
  6166. <div
  6167. class="commentImg"
  6168. @click="commentOther(w, toolIndex, wIndex)"
  6169. >
  6170. <img
  6171. src="../../assets/icon/comment/comment.png"
  6172. alt=""
  6173. />
  6174. </div>
  6175. <div>{{ w.commentCount }}</div>
  6176. </div>
  6177. </div>
  6178. </div>
  6179. </div>
  6180. </div>
  6181. <div class="noWorksS">
  6182. <div
  6183. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6184. :key="sIndex"
  6185. class="noWorksName"
  6186. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6187. :class="{ isWork: s.type == '2' }"
  6188. >
  6189. {{ s.student }}
  6190. </div>
  6191. </div>
  6192. </div>
  6193. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6194. <div
  6195. class="zuoyeYulan"
  6196. v-if="
  6197. worksStudent.length && worksStudent[toolIndex].length > 0
  6198. "
  6199. >
  6200. <span>作业预览</span>
  6201. <div
  6202. class="corOpen"
  6203. @click="contract(toolIndex)"
  6204. v-if="
  6205. worksStudent[toolIndex].length > 6 &&
  6206. isCloseList[toolIndex].isClose == 0
  6207. "
  6208. >
  6209. 收缩
  6210. </div>
  6211. <div
  6212. class="corOpen"
  6213. @click="contract(toolIndex)"
  6214. v-if="isCloseList[toolIndex].isClose == 1"
  6215. >
  6216. 展开
  6217. </div>
  6218. </div>
  6219. <div
  6220. class="worksDetailBox"
  6221. v-if="
  6222. worksStudent.length && worksStudent[toolIndex].length > 0
  6223. "
  6224. >
  6225. <div
  6226. class="works"
  6227. style="
  6228. width: 200px;
  6229. height: 140px;
  6230. margin: 10px 10px 10px 0;
  6231. border-radius: 15px;
  6232. box-shadow: 0 0 6px 1px #dfdada;
  6233. "
  6234. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6235. ? worksStudent[toolIndex]
  6236. : worksStudent[toolIndex].slice(0, 6)"
  6237. :key="wIndex"
  6238. :class="w.type == 1 ? 'isTypeOne' : ''"
  6239. >
  6240. <div class="workImg" v-if="w.type == 0">
  6241. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6242. <img :src="w.works" @click="previewImg(w.works)" alt />
  6243. <div
  6244. class="answerScore"
  6245. v-if="w.score"
  6246. @click.stop="openScore(w)"
  6247. :class="{
  6248. rightW:
  6249. w.userid == userid ||
  6250. tType == 1 ||
  6251. tType == 4 ||
  6252. w.ateacher == userid,
  6253. }"
  6254. >
  6255. {{ JSON.parse(w.score).wScore }}分
  6256. </div>
  6257. <div
  6258. class="answerScore"
  6259. @click.stop="openScore(w)"
  6260. v-else-if="courseDetail.userid == userid"
  6261. :class="{
  6262. rightW:
  6263. w.userid == userid ||
  6264. tType == 1 ||
  6265. tType == 4 ||
  6266. w.ateacher == userid,
  6267. }"
  6268. >
  6269. 评分
  6270. </div>
  6271. <img
  6272. class="deleteImg"
  6273. src="../../assets/deleteworks.png"
  6274. v-if="w.userid == userid || tType == 1 || tType == 4"
  6275. @click.stop="deleteWorks(w.wid)"
  6276. alt
  6277. />
  6278. </div>
  6279. <div
  6280. class="workImg"
  6281. style="cursor: pointer"
  6282. v-if="w.type == 1"
  6283. >
  6284. <img :src="word" @click="openFile(w.works)" alt />
  6285. <!-- @click="openFile(w.works)" -->
  6286. <div
  6287. class="answerScore"
  6288. v-if="w.score"
  6289. @click.stop="openScore(w)"
  6290. :class="{
  6291. rightW:
  6292. w.userid == userid ||
  6293. tType == 1 ||
  6294. tType == 4 ||
  6295. w.ateacher == userid,
  6296. }"
  6297. >
  6298. {{ JSON.parse(w.score).wScore }}分
  6299. </div>
  6300. <div
  6301. class="answerScore"
  6302. @click.stop="openScore(w)"
  6303. v-else-if="courseDetail.userid == userid"
  6304. :class="{
  6305. rightW:
  6306. w.userid == userid ||
  6307. tType == 1 ||
  6308. tType == 4 ||
  6309. w.ateacher == userid,
  6310. }"
  6311. >
  6312. 评分
  6313. </div>
  6314. <img
  6315. class="deleteImg"
  6316. src="../../assets/deleteworks.png"
  6317. v-if="w.userid == userid || tType == 1 || tType == 4"
  6318. @click.stop="deleteWorks(w.wid)"
  6319. alt
  6320. />
  6321. </div>
  6322. <div class="workImg" v-if="w.type == 3">
  6323. <img
  6324. style="cursor: pointer"
  6325. :src="video"
  6326. @click="openVideo(w)"
  6327. alt
  6328. />
  6329. <!-- @click="openVideo(w.works)" -->
  6330. <div
  6331. class="answerScore"
  6332. v-if="w.score"
  6333. @click.stop="openScore(w)"
  6334. :class="{
  6335. rightW:
  6336. w.userid == userid ||
  6337. tType == 1 ||
  6338. tType == 4 ||
  6339. w.ateacher == userid,
  6340. }"
  6341. >
  6342. {{ JSON.parse(w.score).wScore }}分
  6343. </div>
  6344. <div
  6345. class="answerScore"
  6346. @click.stop="openScore(w)"
  6347. v-else-if="courseDetail.userid == userid"
  6348. :class="{
  6349. rightW:
  6350. w.userid == userid ||
  6351. tType == 1 ||
  6352. tType == 4 ||
  6353. w.ateacher == userid,
  6354. }"
  6355. >
  6356. 评分
  6357. </div>
  6358. <img
  6359. class="deleteImg"
  6360. src="../../assets/deleteworks.png"
  6361. v-if="w.userid == userid || tType == 1 || tType == 4"
  6362. @click.stop="deleteWorks(w.wid)"
  6363. alt
  6364. />
  6365. </div>
  6366. <div class="comment" style="min-width: 200px">
  6367. <div class="worksName">
  6368. <div
  6369. style="cursor: pointer"
  6370. @click="
  6371. openSname(w.sName, w.wid, toolIndex, w.userid)
  6372. "
  6373. >
  6374. {{ w.sName }}
  6375. </div>
  6376. </div>
  6377. <div class="commentList">
  6378. <div class="commentList">
  6379. <div
  6380. class="commentImg"
  6381. @click="
  6382. isLikes(w.wid, userid, 1, null, w.isLikes)
  6383. "
  6384. >
  6385. <img
  6386. :src="w.isLikes == true ? likes : noLikes"
  6387. alt=""
  6388. />
  6389. </div>
  6390. <div>{{ w.likesCount }}</div>
  6391. </div>
  6392. <div class="commentList" style="margin-right: 15px">
  6393. <div
  6394. class="commentImg"
  6395. @click="commentOther(w, toolIndex, wIndex)"
  6396. >
  6397. <img
  6398. src="../../assets/icon/comment/comment.png"
  6399. alt=""
  6400. />
  6401. </div>
  6402. <div>{{ w.commentCount }}</div>
  6403. </div>
  6404. </div>
  6405. </div>
  6406. </div>
  6407. </div>
  6408. <div class="noWorksS">
  6409. <div
  6410. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6411. :key="sIndex"
  6412. class="noWorksName"
  6413. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6414. :class="{ isWork: s.type == '2' }"
  6415. >
  6416. {{ s.student }}
  6417. </div>
  6418. </div>
  6419. </div>
  6420. <div
  6421. v-if="
  6422. tType &&
  6423. ((tType == 2 && sIsOpen == true) ||
  6424. tType == 1 ||
  6425. tType == 4) &&
  6426. tool.tool.indexOf(4) != -1
  6427. "
  6428. class="worksBox"
  6429. >
  6430. <div
  6431. class="zuoyeYulan"
  6432. v-if="
  6433. worksStudent.length && worksStudent[toolIndex].length > 0
  6434. "
  6435. >
  6436. <div class="worksTop">
  6437. <div>作业预览</div>
  6438. <div
  6439. class="corOpen"
  6440. @click="contract(toolIndex)"
  6441. v-if="
  6442. worksStudent[toolIndex].length > 6 &&
  6443. isCloseList[toolIndex].isClose == 0
  6444. "
  6445. >
  6446. 收缩
  6447. </div>
  6448. <div
  6449. class="corOpen"
  6450. @click="contract(toolIndex)"
  6451. v-if="isCloseList[toolIndex].isClose == 1"
  6452. >
  6453. 展开
  6454. </div>
  6455. </div>
  6456. </div>
  6457. <div>
  6458. <div
  6459. class="worksDetailBox"
  6460. v-if="
  6461. worksStudent.length &&
  6462. worksStudent[toolIndex].length > 0
  6463. "
  6464. >
  6465. <div
  6466. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6467. 0
  6468. ? worksStudent[toolIndex]
  6469. : worksStudent[toolIndex].slice(0, 6)"
  6470. :key="wIndex"
  6471. class="isWorksName2"
  6472. @click="
  6473. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6474. "
  6475. >
  6476. {{ w.sName }}
  6477. <img
  6478. class="deleteImg deleteImg2"
  6479. src="../../assets/deleteworks.png"
  6480. v-if="w.userid == userid || tType == 1 || tType == 4"
  6481. @click.stop="deleteWorks(w.wid)"
  6482. alt
  6483. />
  6484. </div>
  6485. </div>
  6486. </div>
  6487. <div class="noWorksS">
  6488. <div
  6489. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6490. :key="sIndex"
  6491. class="noWorksName"
  6492. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6493. :class="{ isWork: s.type == '2' }"
  6494. >
  6495. {{ s.student }}
  6496. </div>
  6497. </div>
  6498. </div>
  6499. <div
  6500. v-if="
  6501. tType &&
  6502. ((tType == 2 && sIsOpen == true) ||
  6503. tType == 1 ||
  6504. tType == 4) &&
  6505. tool.tool.indexOf(45) != -1
  6506. "
  6507. class="worksBox"
  6508. >
  6509. <div
  6510. class="zuoyeYulan"
  6511. v-if="
  6512. worksStudent.length && worksStudent[toolIndex].length > 0
  6513. "
  6514. >
  6515. <div class="worksTop">
  6516. <div>作业预览</div>
  6517. <div
  6518. class="corOpen"
  6519. @click="contract(toolIndex)"
  6520. v-if="
  6521. worksStudent[toolIndex].length > 6 &&
  6522. isCloseList[toolIndex].isClose == 0
  6523. "
  6524. >
  6525. 收缩
  6526. </div>
  6527. <div
  6528. class="corOpen"
  6529. @click="contract(toolIndex)"
  6530. v-if="isCloseList[toolIndex].isClose == 1"
  6531. >
  6532. 展开
  6533. </div>
  6534. </div>
  6535. </div>
  6536. <div>
  6537. <div
  6538. class="worksDetailBox"
  6539. v-if="
  6540. worksStudent.length &&
  6541. worksStudent[toolIndex].length > 0
  6542. "
  6543. >
  6544. <div
  6545. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6546. 0
  6547. ? worksStudent[toolIndex]
  6548. : worksStudent[toolIndex].slice(0, 6)"
  6549. :key="wIndex"
  6550. class="isWorksName2"
  6551. @click="
  6552. openTools(45, toolIndex, taskCount, w.works, w.sName)
  6553. "
  6554. >
  6555. {{ w.sName }}
  6556. <img
  6557. class="deleteImg deleteImg2"
  6558. src="../../assets/deleteworks.png"
  6559. v-if="w.userid == userid || tType == 1 || tType == 4"
  6560. @click.stop="deleteWorks(w.wid)"
  6561. alt
  6562. />
  6563. </div>
  6564. </div>
  6565. </div>
  6566. <div class="noWorksS">
  6567. <div
  6568. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6569. :key="sIndex"
  6570. class="noWorksName"
  6571. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6572. :class="{ isWork: s.type == '2' }"
  6573. >
  6574. {{ s.student }}
  6575. </div>
  6576. </div>
  6577. </div>
  6578. <div
  6579. v-if="
  6580. tType &&
  6581. ((tType == 2 && sIsOpen == true) ||
  6582. tType == 1 ||
  6583. tType == 4) &&
  6584. tool.tool.indexOf(15) != -1
  6585. "
  6586. class="worksBox"
  6587. >
  6588. <div
  6589. class="zuoyeYulan"
  6590. v-if="
  6591. worksStudent.length && worksStudent[toolIndex].length > 0
  6592. "
  6593. >
  6594. <div class="worksTop">
  6595. <div>作业预览</div>
  6596. <div
  6597. class="corOpen"
  6598. @click="contract(toolIndex)"
  6599. v-if="
  6600. worksStudent[toolIndex].length > 6 &&
  6601. isCloseList[toolIndex].isClose == 0
  6602. "
  6603. >
  6604. 收缩
  6605. </div>
  6606. <div
  6607. class="corOpen"
  6608. @click="contract(toolIndex)"
  6609. v-if="isCloseList[toolIndex].isClose == 1"
  6610. >
  6611. 展开
  6612. </div>
  6613. </div>
  6614. </div>
  6615. <div
  6616. class="worksDetailBox"
  6617. v-if="
  6618. worksStudent.length && worksStudent[toolIndex].length > 0
  6619. "
  6620. >
  6621. <div
  6622. class="works"
  6623. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6624. ? worksStudent[toolIndex]
  6625. : worksStudent[toolIndex].slice(0, 6)"
  6626. :key="wIndex"
  6627. >
  6628. <div
  6629. class="workImg"
  6630. style="
  6631. border-radius: 15px;
  6632. box-shadow: 0px 0px 5px 5px #eee;
  6633. "
  6634. >
  6635. <!-- <img
  6636. src="../../assets/icon/works/noImg.png"
  6637. @click="openTools(15, toolIndex, taskCount, w.works)"
  6638. alt=""
  6639. />-->
  6640. <div
  6641. class="answerBg"
  6642. style="border-radius: 15px 15px 0 0"
  6643. @click="commentOther(w, toolIndex, wIndex)"
  6644. >
  6645. <!-- <div>{{ w.sName }}</div> -->
  6646. <div class="answerContent">
  6647. {{ JSON.parse(w.works)[0].answer }}
  6648. </div>
  6649. <div
  6650. class="answerScore"
  6651. v-if="w.score"
  6652. @click.stop="openScore(w)"
  6653. :class="{
  6654. rightW:
  6655. w.userid == userid || tType == 1 || tType == 4,
  6656. }"
  6657. >
  6658. {{ JSON.parse(w.score).wScore }}分
  6659. </div>
  6660. <div
  6661. class="answerScore"
  6662. @click.stop="openScore(w)"
  6663. v-else-if="courseDetail.userid == userid"
  6664. :class="{
  6665. rightW:
  6666. w.userid == userid || tType == 1 || tType == 4,
  6667. }"
  6668. >
  6669. 评分
  6670. </div>
  6671. <img
  6672. class="deleteImg"
  6673. src="../../assets/deleteworks.png"
  6674. v-if="
  6675. w.userid == userid || tType == 1 || tType == 4
  6676. "
  6677. @click.stop="deleteWorks(w.wid)"
  6678. alt
  6679. />
  6680. </div>
  6681. <div class="comment">
  6682. <div class="worksName">
  6683. <div>{{ w.sName }}</div>
  6684. </div>
  6685. <div class="commentList">
  6686. <div
  6687. class="commentImg"
  6688. @click="
  6689. isLikes(w.wid, userid, 1, null, w.isLikes)
  6690. "
  6691. >
  6692. <img
  6693. :src="w.isLikes == true ? likes : noLikes"
  6694. alt=""
  6695. />
  6696. </div>
  6697. <div>{{ w.likesCount }}</div>
  6698. </div>
  6699. <div class="commentList" style="margin-right: 15px">
  6700. <div
  6701. class="commentImg"
  6702. @click="commentOther(w, toolIndex, wIndex)"
  6703. >
  6704. <img
  6705. src="../../assets/icon/comment/comment.png"
  6706. alt=""
  6707. />
  6708. </div>
  6709. <div>{{ w.commentCount }}</div>
  6710. </div>
  6711. </div>
  6712. </div>
  6713. </div>
  6714. </div>
  6715. <div class="noWorksS">
  6716. <div
  6717. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6718. :key="sIndex"
  6719. class="noWorksName"
  6720. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6721. :class="{ isWork: s.type == '2' }"
  6722. >
  6723. {{ s.student }}
  6724. </div>
  6725. </div>
  6726. </div>
  6727. <div
  6728. v-if="
  6729. tType &&
  6730. ((tType == 2 && sIsOpen == true) ||
  6731. tType == 1 ||
  6732. tType == 4) &&
  6733. tool.tool.indexOf(1) != -1
  6734. "
  6735. class="worksBox"
  6736. >
  6737. <div
  6738. class="zuoyeYulan"
  6739. v-if="
  6740. worksStudent.length && worksStudent[toolIndex].length > 0
  6741. "
  6742. >
  6743. <div class="worksTop">
  6744. <div>作业预览</div>
  6745. <div
  6746. class="corOpen"
  6747. @click="contract(toolIndex)"
  6748. v-if="
  6749. worksStudent[toolIndex].length > 6 &&
  6750. isCloseList[toolIndex].isClose == 0
  6751. "
  6752. >
  6753. 收缩
  6754. </div>
  6755. <div
  6756. class="corOpen"
  6757. @click="contract(toolIndex)"
  6758. v-if="isCloseList[toolIndex].isClose == 1"
  6759. >
  6760. 展开
  6761. </div>
  6762. </div>
  6763. </div>
  6764. <div
  6765. class="worksDetailBox"
  6766. v-if="
  6767. worksStudent.length && worksStudent[toolIndex].length > 0
  6768. "
  6769. >
  6770. <div
  6771. class="works"
  6772. style="
  6773. width: 200px;
  6774. height: 140px;
  6775. margin: 10px 10px 10px 0;
  6776. border-radius: 15px;
  6777. box-shadow: 0 0 6px 1px #dfdada;
  6778. "
  6779. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6780. ? worksStudent[toolIndex]
  6781. : worksStudent[toolIndex].slice(0, 6)"
  6782. :key="wIndex"
  6783. >
  6784. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6785. <div class="workImg">
  6786. <img :src="w.works" @click="previewImg(w.works)" alt />
  6787. <div
  6788. class="answerScore"
  6789. v-if="w.score"
  6790. @click.stop="openScore(w)"
  6791. :class="{
  6792. rightW:
  6793. w.userid == userid || tType == 1 || tType == 4,
  6794. }"
  6795. >
  6796. {{ JSON.parse(w.score).wScore }}分
  6797. </div>
  6798. <div
  6799. class="answerScore"
  6800. @click.stop="openScore(w)"
  6801. v-else-if="courseDetail.userid == userid"
  6802. :class="{
  6803. rightW:
  6804. w.userid == userid || tType == 1 || tType == 4,
  6805. }"
  6806. >
  6807. 评分
  6808. </div>
  6809. <img
  6810. class="deleteImg"
  6811. src="../../assets/deleteworks.png"
  6812. v-if="w.userid == userid || tType == 1 || tType == 4"
  6813. @click.stop="deleteWorks(w.wid)"
  6814. alt
  6815. />
  6816. </div>
  6817. <div class="comment" style="min-width: 200px">
  6818. <div class="worksName">
  6819. <div>{{ w.sName }}</div>
  6820. </div>
  6821. <div class="commentList">
  6822. <div class="commentList">
  6823. <div
  6824. class="commentImg"
  6825. @click="
  6826. isLikes(w.wid, userid, 1, null, w.isLikes)
  6827. "
  6828. >
  6829. <img
  6830. :src="w.isLikes == true ? likes : noLikes"
  6831. alt=""
  6832. />
  6833. </div>
  6834. <div>{{ w.likesCount }}</div>
  6835. </div>
  6836. <div class="commentList" style="margin-right: 15px">
  6837. <div
  6838. class="commentImg"
  6839. @click="commentOther(w, toolIndex, wIndex)"
  6840. >
  6841. <img
  6842. src="../../assets/icon/comment/comment.png"
  6843. alt=""
  6844. />
  6845. </div>
  6846. <div>{{ w.commentCount }}</div>
  6847. </div>
  6848. </div>
  6849. </div>
  6850. </div>
  6851. </div>
  6852. <div class="noWorksS">
  6853. <div
  6854. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6855. :key="sIndex"
  6856. class="noWorksName"
  6857. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6858. :class="{ isWork: s.type == '2' }"
  6859. >
  6860. {{ s.student }}
  6861. </div>
  6862. </div>
  6863. </div>
  6864. <div
  6865. v-if="
  6866. tType &&
  6867. ((tType == 2 && sIsOpen == true) ||
  6868. tType == 1 ||
  6869. tType == 4) &&
  6870. tool.tool.indexOf(3) != -1
  6871. "
  6872. class="worksBox"
  6873. >
  6874. <div
  6875. class="zuoyeYulan"
  6876. v-if="
  6877. worksStudent.length && worksStudent[toolIndex].length > 0
  6878. "
  6879. >
  6880. <div class="worksTop">
  6881. <div>作业预览</div>
  6882. <div
  6883. class="corOpen"
  6884. @click="contract(toolIndex)"
  6885. v-if="
  6886. worksStudent[toolIndex].length > 6 &&
  6887. isCloseList[toolIndex].isClose == 0
  6888. "
  6889. >
  6890. 收缩
  6891. </div>
  6892. <div
  6893. class="corOpen"
  6894. @click="contract(toolIndex)"
  6895. v-if="isCloseList[toolIndex].isClose == 1"
  6896. >
  6897. 展开
  6898. </div>
  6899. </div>
  6900. </div>
  6901. <div
  6902. class="worksDetailBox"
  6903. v-if="
  6904. worksStudent.length && worksStudent[toolIndex].length > 0
  6905. "
  6906. >
  6907. <div
  6908. class="works"
  6909. style="
  6910. width: 200px;
  6911. height: 140px;
  6912. margin: 10px 10px 10px 0;
  6913. border-radius: 15px;
  6914. box-shadow: 0 0 6px 1px #dfdada;
  6915. "
  6916. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6917. ? worksStudent[toolIndex]
  6918. : worksStudent[toolIndex].slice(0, 6)"
  6919. :key="wIndex"
  6920. >
  6921. <!-- @click="previewImg(w.works)" -->
  6922. <div class="workImg">
  6923. <img :src="w.works" @click="previewImg(w.works)" alt />
  6924. <div
  6925. class="answerScore"
  6926. v-if="w.score"
  6927. @click.stop="openScore(w)"
  6928. :class="{
  6929. rightW:
  6930. w.userid == userid || tType == 1 || tType == 4,
  6931. }"
  6932. >
  6933. {{ JSON.parse(w.score).wScore }}分
  6934. </div>
  6935. <div
  6936. class="answerScore"
  6937. @click.stop="openScore(w)"
  6938. v-else-if="courseDetail.userid == userid"
  6939. :class="{
  6940. rightW:
  6941. w.userid == userid || tType == 1 || tType == 4,
  6942. }"
  6943. >
  6944. 评分
  6945. </div>
  6946. <img
  6947. class="deleteImg"
  6948. src="../../assets/deleteworks.png"
  6949. v-if="w.userid == userid || tType == 1 || tType == 4"
  6950. @click.stop="deleteWorks(w.wid)"
  6951. alt
  6952. />
  6953. </div>
  6954. <div class="comment" style="min-width: 200px">
  6955. <div class="worksName">
  6956. <div>{{ w.sName }}</div>
  6957. </div>
  6958. <div class="commentList">
  6959. <div class="commentList">
  6960. <div
  6961. class="commentImg"
  6962. @click="
  6963. isLikes(w.wid, userid, 1, null, w.isLikes)
  6964. "
  6965. >
  6966. <img
  6967. :src="w.isLikes == true ? likes : noLikes"
  6968. alt=""
  6969. />
  6970. </div>
  6971. <div>{{ w.likesCount }}</div>
  6972. </div>
  6973. <div class="commentList" style="margin-right: 15px">
  6974. <div
  6975. class="commentImg"
  6976. @click="commentOther(w, toolIndex, wIndex)"
  6977. >
  6978. <img
  6979. src="../../assets/icon/comment/comment.png"
  6980. alt=""
  6981. />
  6982. </div>
  6983. <div>{{ w.commentCount }}</div>
  6984. </div>
  6985. </div>
  6986. </div>
  6987. </div>
  6988. </div>
  6989. <div class="noWorksS">
  6990. <div
  6991. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6992. :key="sIndex"
  6993. class="noWorksName"
  6994. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  6995. :class="{ isWork: s.type == '2' }"
  6996. >
  6997. {{ s.student }}
  6998. </div>
  6999. </div>
  7000. </div>
  7001. <div
  7002. v-if="
  7003. tType &&
  7004. ((tType == 2 && sIsOpen == true) ||
  7005. tType == 1 ||
  7006. tType == 4) &&
  7007. tool.tool.indexOf(6) != -1
  7008. "
  7009. class="worksBox"
  7010. >
  7011. <div
  7012. class="zuoyeYulan"
  7013. v-if="
  7014. worksStudent.length && worksStudent[toolIndex].length > 0
  7015. "
  7016. >
  7017. <div class="worksTop">
  7018. <div>作业预览</div>
  7019. <div
  7020. class="corOpen"
  7021. @click="contract(toolIndex)"
  7022. v-if="
  7023. worksStudent[toolIndex].length > 6 &&
  7024. isCloseList[toolIndex].isClose == 0
  7025. "
  7026. >
  7027. 收缩
  7028. </div>
  7029. <div
  7030. class="corOpen"
  7031. @click="contract(toolIndex)"
  7032. v-if="isCloseList[toolIndex].isClose == 1"
  7033. >
  7034. 展开
  7035. </div>
  7036. </div>
  7037. </div>
  7038. <div
  7039. class="worksDetailBox"
  7040. v-if="
  7041. worksStudent.length && worksStudent[toolIndex].length > 0
  7042. "
  7043. >
  7044. <div
  7045. class="works"
  7046. style="
  7047. width: 200px;
  7048. height: 140px;
  7049. margin: 10px 10px 10px 0;
  7050. border-radius: 15px;
  7051. box-shadow: 0 0 6px 1px #dfdada;
  7052. "
  7053. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7054. ? worksStudent[toolIndex]
  7055. : worksStudent[toolIndex].slice(0, 6)"
  7056. :key="wIndex"
  7057. >
  7058. <!-- @click="previewImg(w.works)" -->
  7059. <div class="workImg">
  7060. <img :src="w.works" @click="previewImg(w.works)" alt />
  7061. <div
  7062. class="answerScore"
  7063. v-if="w.score"
  7064. @click.stop="openScore(w)"
  7065. :class="{
  7066. rightW:
  7067. w.userid == userid || tType == 1 || tType == 4,
  7068. }"
  7069. >
  7070. {{ JSON.parse(w.score).wScore }}分
  7071. </div>
  7072. <div
  7073. class="answerScore"
  7074. @click.stop="openScore(w)"
  7075. v-else-if="courseDetail.userid == userid"
  7076. :class="{
  7077. rightW:
  7078. w.userid == userid || tType == 1 || tType == 4,
  7079. }"
  7080. >
  7081. 评分
  7082. </div>
  7083. <img
  7084. class="deleteImg"
  7085. src="../../assets/deleteworks.png"
  7086. v-if="w.userid == userid || tType == 1 || tType == 4"
  7087. @click.stop="deleteWorks(w.wid)"
  7088. alt
  7089. />
  7090. </div>
  7091. <div class="comment" style="min-width: 200px">
  7092. <div class="worksName">
  7093. <div>{{ w.sName }}</div>
  7094. </div>
  7095. <div class="commentList">
  7096. <div class="commentList">
  7097. <div
  7098. class="commentImg"
  7099. @click="
  7100. isLikes(w.wid, userid, 1, null, w.isLikes)
  7101. "
  7102. >
  7103. <img
  7104. :src="w.isLikes == true ? likes : noLikes"
  7105. alt=""
  7106. />
  7107. </div>
  7108. <div>{{ w.likesCount }}</div>
  7109. </div>
  7110. <div class="commentList" style="margin-right: 15px">
  7111. <div
  7112. class="commentImg"
  7113. @click="commentOther(w, toolIndex, wIndex)"
  7114. >
  7115. <img
  7116. src="../../assets/icon/comment/comment.png"
  7117. alt=""
  7118. />
  7119. </div>
  7120. <div>{{ w.commentCount }}</div>
  7121. </div>
  7122. </div>
  7123. </div>
  7124. </div>
  7125. </div>
  7126. <div class="noWorksS">
  7127. <div
  7128. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7129. :key="sIndex"
  7130. class="noWorksName"
  7131. :class="{ isWork: s.type == '2' }"
  7132. >
  7133. {{ s.student }}
  7134. </div>
  7135. </div>
  7136. </div>
  7137. <div
  7138. v-if="
  7139. tType &&
  7140. ((tType == 2 && sIsOpen == true) ||
  7141. tType == 1 ||
  7142. tType == 4) &&
  7143. tool.tool.indexOf(7) != -1
  7144. "
  7145. class="worksBox"
  7146. >
  7147. <div
  7148. class="zuoyeYulan"
  7149. v-if="
  7150. worksStudent.length && worksStudent[toolIndex].length > 0
  7151. "
  7152. >
  7153. <div class="worksTop">
  7154. <div>作业预览</div>
  7155. <div
  7156. class="corOpen"
  7157. @click="contract(toolIndex)"
  7158. v-if="
  7159. worksStudent[toolIndex].length > 6 &&
  7160. isCloseList[toolIndex].isClose == 0
  7161. "
  7162. >
  7163. 收缩
  7164. </div>
  7165. <div
  7166. class="corOpen"
  7167. @click="contract(toolIndex)"
  7168. v-if="isCloseList[toolIndex].isClose == 1"
  7169. >
  7170. 展开
  7171. </div>
  7172. </div>
  7173. </div>
  7174. <div
  7175. class="worksDetailBox"
  7176. v-if="
  7177. worksStudent.length && worksStudent[toolIndex].length > 0
  7178. "
  7179. >
  7180. <div
  7181. class="works"
  7182. style="
  7183. width: 200px;
  7184. height: 140px;
  7185. margin: 10px 10px 10px 0;
  7186. border-radius: 15px;
  7187. box-shadow: 0 0 6px 1px #dfdada;
  7188. "
  7189. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7190. ? worksStudent[toolIndex]
  7191. : worksStudent[toolIndex].slice(0, 6)"
  7192. :key="wIndex"
  7193. >
  7194. <!-- @click="previewImg(w.works)" -->
  7195. <div class="workImg">
  7196. <img :src="w.works" @click="previewImg(w.works)" alt />
  7197. <div
  7198. class="answerScore"
  7199. v-if="w.score"
  7200. @click.stop="openScore(w)"
  7201. :class="{
  7202. rightW:
  7203. w.userid == userid || tType == 1 || tType == 4,
  7204. }"
  7205. >
  7206. {{ JSON.parse(w.score).wScore }}分
  7207. </div>
  7208. <div
  7209. class="answerScore"
  7210. @click.stop="openScore(w)"
  7211. v-else-if="courseDetail.userid == userid"
  7212. :class="{
  7213. rightW:
  7214. w.userid == userid || tType == 1 || tType == 4,
  7215. }"
  7216. >
  7217. 评分
  7218. </div>
  7219. <img
  7220. class="deleteImg"
  7221. src="../../assets/deleteworks.png"
  7222. v-if="w.userid == userid || tType == 1 || tType == 4"
  7223. @click.stop="deleteWorks(w.wid)"
  7224. alt
  7225. />
  7226. </div>
  7227. <div class="comment" style="min-width: 200px">
  7228. <div class="worksName">
  7229. <div>{{ w.sName }}</div>
  7230. </div>
  7231. <div class="commentList">
  7232. <div class="commentList">
  7233. <div
  7234. class="commentImg"
  7235. @click="
  7236. isLikes(w.wid, userid, 1, null, w.isLikes)
  7237. "
  7238. >
  7239. <img
  7240. :src="w.isLikes == true ? likes : noLikes"
  7241. alt=""
  7242. />
  7243. </div>
  7244. <div>{{ w.likesCount }}</div>
  7245. </div>
  7246. <div class="commentList" style="margin-right: 15px">
  7247. <div
  7248. class="commentImg"
  7249. @click="commentOther(w, toolIndex, wIndex)"
  7250. >
  7251. <img
  7252. src="../../assets/icon/comment/comment.png"
  7253. alt=""
  7254. />
  7255. </div>
  7256. <div>{{ w.commentCount }}</div>
  7257. </div>
  7258. </div>
  7259. </div>
  7260. </div>
  7261. </div>
  7262. <div class="noWorksS">
  7263. <div
  7264. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7265. :key="sIndex"
  7266. class="noWorksName"
  7267. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7268. :class="{ isWork: s.type == '2' }"
  7269. >
  7270. {{ s.student }}
  7271. </div>
  7272. </div>
  7273. </div>
  7274. <div
  7275. v-if="
  7276. tType &&
  7277. ((tType == 2 && sIsOpen == true) ||
  7278. tType == 1 ||
  7279. tType == 4) &&
  7280. tool.tool.indexOf(26) != -1
  7281. "
  7282. class="worksBox"
  7283. >
  7284. <div
  7285. class="zuoyeYulan"
  7286. v-if="
  7287. worksStudent.length && worksStudent[toolIndex].length > 0
  7288. "
  7289. >
  7290. <div class="worksTop">
  7291. <div>作业预览</div>
  7292. <div
  7293. class="corOpen"
  7294. @click="contract(toolIndex)"
  7295. v-if="
  7296. worksStudent[toolIndex].length > 6 &&
  7297. isCloseList[toolIndex].isClose == 0
  7298. "
  7299. >
  7300. 收缩
  7301. </div>
  7302. <div
  7303. class="corOpen"
  7304. @click="contract(toolIndex)"
  7305. v-if="isCloseList[toolIndex].isClose == 1"
  7306. >
  7307. 展开
  7308. </div>
  7309. </div>
  7310. </div>
  7311. <div
  7312. class="worksDetailBox"
  7313. v-if="
  7314. worksStudent.length && worksStudent[toolIndex].length > 0
  7315. "
  7316. >
  7317. <div
  7318. class="works"
  7319. style="width: 240px; height: 140px; overflow: hidden"
  7320. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7321. ? worksStudent[toolIndex]
  7322. : worksStudent[toolIndex].slice(0, 6)"
  7323. :key="wIndex"
  7324. :class="w.type == 1 ? 'isTypeOne' : ''"
  7325. >
  7326. <div class="workImg" v-if="w.type == 0">
  7327. <img :src="w.works" @click="previewImg(w.works)" alt />
  7328. <img
  7329. class="deleteImg"
  7330. src="../../assets/deleteworks.png"
  7331. v-if="w.userid == userid || tType == 1 || tType == 4"
  7332. @click.stop="deleteWorks(w.wid)"
  7333. alt
  7334. />
  7335. </div>
  7336. <div class="workImg" v-if="w.type == 1">
  7337. <img :src="word" @click="openFile(w.works)" alt />
  7338. <img
  7339. class="deleteImg"
  7340. src="../../assets/deleteworks.png"
  7341. v-if="w.userid == userid || tType == 1 || tType == 4"
  7342. @click.stop="deleteWorks(w.wid)"
  7343. alt
  7344. />
  7345. </div>
  7346. <div class="worksName">
  7347. <div>{{ w.sName }}</div>
  7348. </div>
  7349. </div>
  7350. </div>
  7351. <div class="noWorksS">
  7352. <div
  7353. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7354. :key="sIndex"
  7355. class="noWorksName"
  7356. :class="{ isWork: s.type == '2' }"
  7357. >
  7358. {{ s.student }}
  7359. </div>
  7360. </div>
  7361. </div>
  7362. <div
  7363. v-if="
  7364. tType &&
  7365. ((tType == 2 && sIsOpen == true) ||
  7366. tType == 1 ||
  7367. tType == 4) &&
  7368. tool.tool.indexOf(40) != -1
  7369. "
  7370. class="worksBox"
  7371. >
  7372. <div
  7373. class="zuoyeYulan"
  7374. v-if="
  7375. worksStudent.length && worksStudent[toolIndex].length > 0
  7376. "
  7377. >
  7378. <div class="worksTop">
  7379. <div>作业预览</div>
  7380. <div
  7381. class="corOpen"
  7382. @click="contract(toolIndex)"
  7383. v-if="
  7384. worksStudent[toolIndex].length > 6 &&
  7385. isCloseList[toolIndex].isClose == 0
  7386. "
  7387. >
  7388. 收缩
  7389. </div>
  7390. <div
  7391. class="corOpen"
  7392. @click="contract(toolIndex)"
  7393. v-if="isCloseList[toolIndex].isClose == 1"
  7394. >
  7395. 展开
  7396. </div>
  7397. </div>
  7398. </div>
  7399. <div
  7400. class="worksDetailBox"
  7401. v-if="
  7402. worksStudent.length && worksStudent[toolIndex].length > 0
  7403. "
  7404. >
  7405. <div
  7406. class="works"
  7407. style="
  7408. width: 200px;
  7409. height: 140px;
  7410. margin: 10px 10px 10px 0;
  7411. border-radius: 15px;
  7412. box-shadow: 0 0 6px 1px #dfdada;
  7413. "
  7414. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7415. ? worksStudent[toolIndex]
  7416. : worksStudent[toolIndex].slice(0, 6)"
  7417. :key="wIndex"
  7418. :class="w.type == 1 ? 'isTypeOne' : ''"
  7419. >
  7420. <div class="workImg">
  7421. <img
  7422. src="../../assets/icon/works/noImg.png"
  7423. @click="openPj(w.works, toolIndex)"
  7424. alt
  7425. />
  7426. <img
  7427. class="deleteImg"
  7428. src="../../assets/deleteworks.png"
  7429. v-if="w.userid == userid || tType == 1 || tType == 4"
  7430. @click.stop="deleteWorks(w.wid)"
  7431. alt
  7432. />
  7433. </div>
  7434. <div class="comment" style="min-width: 200px">
  7435. <div class="worksName">
  7436. <div>{{ w.sName }}</div>
  7437. </div>
  7438. <div class="commentList">
  7439. <div class="commentList">
  7440. <div
  7441. class="commentImg"
  7442. @click="
  7443. isLikes(w.wid, userid, 1, null, w.isLikes)
  7444. "
  7445. >
  7446. <img
  7447. :src="w.isLikes == true ? likes : noLikes"
  7448. alt=""
  7449. />
  7450. </div>
  7451. <div>{{ w.likesCount }}</div>
  7452. </div>
  7453. <div class="commentList" style="margin-right: 15px">
  7454. <div
  7455. class="commentImg"
  7456. @click="commentOther(w, toolIndex, wIndex)"
  7457. >
  7458. <img
  7459. src="../../assets/icon/comment/comment.png"
  7460. alt=""
  7461. />
  7462. </div>
  7463. <div>{{ w.commentCount }}</div>
  7464. </div>
  7465. </div>
  7466. </div>
  7467. </div>
  7468. </div>
  7469. <div class="noWorksS">
  7470. <div
  7471. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7472. :key="sIndex"
  7473. class="noWorksName"
  7474. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  7475. :class="{ isWork: s.type == '2' }"
  7476. >
  7477. {{ s.student }}
  7478. </div>
  7479. </div>
  7480. </div>
  7481. <div
  7482. v-if="
  7483. tType &&
  7484. ((tType == 2 && sIsOpen == true) ||
  7485. tType == 1 ||
  7486. tType == 4) &&
  7487. tool.tool.indexOf(41) != -1
  7488. "
  7489. class="worksBox"
  7490. >
  7491. <div class="noWorksS">
  7492. <div
  7493. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7494. :key="sIndex"
  7495. class="noWorksName"
  7496. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  7497. :class="{ isWork: s.type == '2' }"
  7498. >
  7499. {{ s.student }}
  7500. </div>
  7501. </div>
  7502. <div
  7503. class="zuoyeYulan"
  7504. v-if="
  7505. worksStudent.length && worksStudent[toolIndex].length > 0
  7506. "
  7507. >
  7508. <div class="worksTop">
  7509. <div>作业预览</div>
  7510. <div
  7511. class="corOpen"
  7512. @click="contract(toolIndex)"
  7513. v-if="
  7514. worksStudent[toolIndex].length > 6 &&
  7515. isCloseList[toolIndex].isClose == 0
  7516. "
  7517. >
  7518. 收缩
  7519. </div>
  7520. <div
  7521. class="corOpen"
  7522. @click="contract(toolIndex)"
  7523. v-if="isCloseList[toolIndex].isClose == 1"
  7524. >
  7525. 展开
  7526. </div>
  7527. </div>
  7528. </div>
  7529. <div
  7530. class="worksDetailBox"
  7531. v-if="
  7532. worksStudent.length && worksStudent[toolIndex].length > 0
  7533. "
  7534. >
  7535. <div
  7536. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7537. ? worksStudent[toolIndex]
  7538. : worksStudent[toolIndex].slice(0, 6)"
  7539. :key="wIndex"
  7540. class="isWorksName2"
  7541. @click="openXz(w, toolIndex)"
  7542. >
  7543. {{ w.sName }}
  7544. <img
  7545. class="deleteImg deleteImg2"
  7546. src="../../assets/deleteworks.png"
  7547. v-if="w.userid == userid || tType == 1 || tType == 4"
  7548. @click.stop="deleteWorks(w.wid)"
  7549. alt
  7550. />
  7551. </div>
  7552. </div>
  7553. </div>
  7554. <div
  7555. v-if="
  7556. tType &&
  7557. ((tType == 2 && sIsOpen == true) ||
  7558. tType == 1 ||
  7559. tType == 4) &&
  7560. tool.tool.indexOf(47) != -1
  7561. "
  7562. class="worksBox"
  7563. >
  7564. <div class="noWorksS">
  7565. <div
  7566. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7567. :key="sIndex"
  7568. class="noWorksName"
  7569. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  7570. :class="{ isWork: s.type == '2' }"
  7571. >
  7572. {{ s.student }}
  7573. </div>
  7574. </div>
  7575. <div
  7576. class="zuoyeYulan"
  7577. v-if="
  7578. worksStudent.length && worksStudent[toolIndex].length > 0
  7579. "
  7580. >
  7581. <div class="worksTop">
  7582. <div>作业预览</div>
  7583. <div
  7584. class="corOpen"
  7585. @click="contract(toolIndex)"
  7586. v-if="
  7587. worksStudent[toolIndex].length > 6 &&
  7588. isCloseList[toolIndex].isClose == 0
  7589. "
  7590. >
  7591. 收缩
  7592. </div>
  7593. <div
  7594. class="corOpen"
  7595. @click="contract(toolIndex)"
  7596. v-if="isCloseList[toolIndex].isClose == 1"
  7597. >
  7598. 展开
  7599. </div>
  7600. </div>
  7601. </div>
  7602. <div
  7603. class="worksDetailBox"
  7604. v-if="
  7605. worksStudent.length && worksStudent[toolIndex].length > 0
  7606. "
  7607. >
  7608. <!-- @click="openXz(w, toolIndex)" -->
  7609. <div
  7610. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7611. ? worksStudent[toolIndex]
  7612. : worksStudent[toolIndex].slice(0, 6)"
  7613. :key="wIndex"
  7614. class="isWorksName2"
  7615. @click="openSen(w, toolIndex)"
  7616. >
  7617. {{ w.sName }}
  7618. <img
  7619. class="deleteImg deleteImg2"
  7620. src="../../assets/deleteworks.png"
  7621. v-if="w.userid == userid || tType == 1 || tType == 4"
  7622. @click.stop="deleteWorks(w.wid)"
  7623. alt
  7624. />
  7625. </div>
  7626. </div>
  7627. </div>
  7628. <div
  7629. v-if="
  7630. tType &&
  7631. ((tType == 2 && sIsOpen == true) ||
  7632. tType == 1 ||
  7633. tType == 4) &&
  7634. tool.tool.indexOf(48) != -1
  7635. "
  7636. class="worksBox"
  7637. >
  7638. <div
  7639. class="zuoyeYulan"
  7640. v-if="
  7641. worksStudent.length && worksStudent[toolIndex].length > 0
  7642. "
  7643. >
  7644. <div class="worksTop">
  7645. <div>作业预览</div>
  7646. <div
  7647. class="corOpen"
  7648. @click="contract(toolIndex)"
  7649. v-if="
  7650. worksStudent[toolIndex].length > 6 &&
  7651. isCloseList[toolIndex].isClose == 0
  7652. "
  7653. >
  7654. 收缩
  7655. </div>
  7656. <div
  7657. class="corOpen"
  7658. @click="contract(toolIndex)"
  7659. v-if="isCloseList[toolIndex].isClose == 1"
  7660. >
  7661. 展开
  7662. </div>
  7663. </div>
  7664. </div>
  7665. <div
  7666. class="worksDetailBox"
  7667. v-if="
  7668. worksStudent.length && worksStudent[toolIndex].length > 0
  7669. "
  7670. >
  7671. <div
  7672. class="works"
  7673. style="
  7674. width: 200px;
  7675. height: 140px;
  7676. margin: 10px 10px 10px 0;
  7677. border-radius: 15px;
  7678. box-shadow: 0 0 6px 1px #dfdada;
  7679. "
  7680. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7681. ? worksStudent[toolIndex]
  7682. : worksStudent[toolIndex].slice(0, 6)"
  7683. :key="wIndex"
  7684. :class="w.type == 1 ? 'isTypeOne' : ''"
  7685. >
  7686. <div class="workImg">
  7687. <img :src="word" @click="openTable(w)" alt />
  7688. <!-- @click="openFile(w.works)" -->
  7689. <div
  7690. class="answerScore"
  7691. v-if="w.score"
  7692. @click.stop="openScore(w)"
  7693. :class="{
  7694. rightW:
  7695. w.userid == userid ||
  7696. tType == 1 ||
  7697. tType == 4 ||
  7698. w.ateacher == userid,
  7699. }"
  7700. >
  7701. {{ JSON.parse(w.score).wScore }}分
  7702. </div>
  7703. <div
  7704. class="answerScore"
  7705. @click.stop="openScore(w)"
  7706. v-else-if="courseDetail.userid == userid"
  7707. :class="{
  7708. rightW:
  7709. w.userid == userid ||
  7710. tType == 1 ||
  7711. tType == 4 ||
  7712. w.ateacher == userid,
  7713. }"
  7714. >
  7715. 评分
  7716. </div>
  7717. <img
  7718. class="deleteImg"
  7719. src="../../assets/deleteworks.png"
  7720. v-if="w.userid == userid || tType == 1 || tType == 4"
  7721. @click.stop="deleteWorks(w.wid)"
  7722. alt
  7723. />
  7724. </div>
  7725. <div class="comment" style="min-width: 200px">
  7726. <div class="worksName">
  7727. <div>{{ w.sName }}</div>
  7728. </div>
  7729. <div class="commentList">
  7730. <div class="commentList">
  7731. <div
  7732. class="commentImg"
  7733. @click="
  7734. isLikes(w.wid, userid, 1, null, w.isLikes)
  7735. "
  7736. >
  7737. <img
  7738. :src="w.isLikes == true ? likes : noLikes"
  7739. alt=""
  7740. />
  7741. </div>
  7742. <div>{{ w.likesCount }}</div>
  7743. </div>
  7744. <div class="commentList" style="margin-right: 15px">
  7745. <div
  7746. class="commentImg"
  7747. @click="commentOther(w, toolIndex, wIndex)"
  7748. >
  7749. <img
  7750. src="../../assets/icon/comment/comment.png"
  7751. alt=""
  7752. />
  7753. </div>
  7754. <div>{{ w.commentCount }}</div>
  7755. </div>
  7756. </div>
  7757. </div>
  7758. </div>
  7759. </div>
  7760. <div class="noWorksS">
  7761. <div
  7762. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7763. :key="sIndex"
  7764. class="noWorksName"
  7765. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  7766. :class="{ isWork: s.type == '2' }"
  7767. >
  7768. {{ s.student }}
  7769. </div>
  7770. </div>
  7771. </div>
  7772. <div
  7773. v-if="
  7774. tType &&
  7775. ((tType == 2 && sIsOpen == true) ||
  7776. tType == 1 ||
  7777. tType == 4) &&
  7778. tool.tool.indexOf(52) != -1
  7779. "
  7780. class="worksBox"
  7781. >
  7782. <div
  7783. class="zuoyeYulan"
  7784. v-if="
  7785. worksStudent.length && worksStudent[toolIndex].length > 0
  7786. "
  7787. >
  7788. <div class="worksTop">
  7789. <div>作业预览</div>
  7790. <div
  7791. class="corOpen"
  7792. @click="contract(toolIndex)"
  7793. v-if="
  7794. worksStudent[toolIndex].length > 6 &&
  7795. isCloseList[toolIndex].isClose == 0
  7796. "
  7797. >
  7798. 收缩
  7799. </div>
  7800. <div
  7801. class="corOpen"
  7802. @click="contract(toolIndex)"
  7803. v-if="isCloseList[toolIndex].isClose == 1"
  7804. >
  7805. 展开
  7806. </div>
  7807. </div>
  7808. </div>
  7809. <div
  7810. class="worksDetailBox"
  7811. v-if="
  7812. worksStudent.length && worksStudent[toolIndex].length > 0
  7813. "
  7814. >
  7815. <div
  7816. class="works"
  7817. style="
  7818. width: 200px;
  7819. height: 140px;
  7820. margin: 10px 10px 10px 0;
  7821. border-radius: 15px;
  7822. box-shadow: 0 0 6px 1px #dfdada;
  7823. "
  7824. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7825. ? worksStudent[toolIndex]
  7826. : worksStudent[toolIndex].slice(0, 6)"
  7827. :key="wIndex"
  7828. :class="w.type == 1 ? 'isTypeOne' : ''"
  7829. >
  7830. <div class="workImg">
  7831. <img :src="word" @click="openWord(w)" alt />
  7832. <!-- @click="openFile(w.works)" -->
  7833. <div
  7834. class="answerScore"
  7835. v-if="w.score"
  7836. @click.stop="openScore(w)"
  7837. :class="{
  7838. rightW:
  7839. w.userid == userid ||
  7840. tType == 1 ||
  7841. tType == 4 ||
  7842. w.ateacher == userid,
  7843. }"
  7844. >
  7845. {{ JSON.parse(w.score).wScore }}分
  7846. </div>
  7847. <div
  7848. class="answerScore"
  7849. @click.stop="openScore(w)"
  7850. v-else-if="courseDetail.userid == userid"
  7851. :class="{
  7852. rightW:
  7853. w.userid == userid ||
  7854. tType == 1 ||
  7855. tType == 4 ||
  7856. w.ateacher == userid,
  7857. }"
  7858. >
  7859. 评分
  7860. </div>
  7861. <img
  7862. class="deleteImg"
  7863. src="../../assets/deleteworks.png"
  7864. v-if="w.userid == userid || tType == 1 || tType == 4"
  7865. @click.stop="deleteWorks(w.wid)"
  7866. alt
  7867. />
  7868. </div>
  7869. <div class="comment" style="min-width: 200px">
  7870. <div class="worksName">
  7871. <div>{{ w.sName }}</div>
  7872. </div>
  7873. <div class="commentList">
  7874. <div class="commentList">
  7875. <div
  7876. class="commentImg"
  7877. @click="
  7878. isLikes(w.wid, userid, 1, null, w.isLikes)
  7879. "
  7880. >
  7881. <img
  7882. :src="w.isLikes == true ? likes : noLikes"
  7883. alt=""
  7884. />
  7885. </div>
  7886. <div>{{ w.likesCount }}</div>
  7887. </div>
  7888. <div class="commentList" style="margin-right: 15px">
  7889. <div
  7890. class="commentImg"
  7891. @click="commentOther(w, toolIndex, wIndex)"
  7892. >
  7893. <img
  7894. src="../../assets/icon/comment/comment.png"
  7895. alt=""
  7896. />
  7897. </div>
  7898. <div>{{ w.commentCount }}</div>
  7899. </div>
  7900. </div>
  7901. </div>
  7902. </div>
  7903. </div>
  7904. <div class="noWorksS">
  7905. <div
  7906. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7907. :key="sIndex"
  7908. class="noWorksName"
  7909. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7910. :class="{ isWork: s.type == '2' }"
  7911. >
  7912. {{ s.student }}
  7913. </div>
  7914. </div>
  7915. </div>
  7916. </div>
  7917. </div>
  7918. <div class="vedioBox" style="margin-top: 10px" v-if="false">
  7919. <div
  7920. class="queTop"
  7921. style="
  7922. font-size: 20px;
  7923. padding: 15px 0 15px 30px;
  7924. font-weight: bold;
  7925. "
  7926. >
  7927. 评一评
  7928. </div>
  7929. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7930. <div class="elist_input">
  7931. <div
  7932. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7933. .chapterInfo[0].taskJson[taskCount].eList"
  7934. :key="eIndex"
  7935. class="elist_input_box"
  7936. >
  7937. <div style="width: 95%">
  7938. <div
  7939. style="
  7940. display: flex;
  7941. flex-direction: row;
  7942. flex-wrap: nowrap;
  7943. align-items: center;
  7944. "
  7945. >
  7946. <div style="max-width: calc(100% - 285px)">
  7947. <span>{{ eItem.value }}</span>
  7948. </div>
  7949. <div
  7950. style="
  7951. padding-left: 25px;
  7952. display: flex;
  7953. flex-direction: row;
  7954. align-items: center;
  7955. "
  7956. >
  7957. <el-rate
  7958. v-model="eItem.score"
  7959. :colors="colors"
  7960. disabled
  7961. ></el-rate>
  7962. </div>
  7963. </div>
  7964. <div class="elist_inptu_text" style="padding-left: 10px">
  7965. <span v-if="eItem.detail != ''">{{
  7966. eItem.detail
  7967. }}</span>
  7968. <span v-else style="color: #b2b1b3; font-size: 14px"
  7969. >暂无描述...</span
  7970. >
  7971. </div>
  7972. </div>
  7973. </div>
  7974. </div>
  7975. <div
  7976. v-if="evalua"
  7977. style="
  7978. border: 1px solid #e5e5e5;
  7979. max-width: 650px;
  7980. width: 100%;
  7981. margin-top: 20px;
  7982. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7983. "
  7984. >
  7985. <div class="e_add_top">
  7986. <div class="e_add_title">
  7987. <span>目标管理名称</span>
  7988. <span>{{ eTitle }}</span>
  7989. <img
  7990. src="../../assets/line.png"
  7991. class="cru_line"
  7992. style="
  7993. width: 125px;
  7994. height: 20px;
  7995. bottom: -10px;
  7996. left: 120px;
  7997. "
  7998. />
  7999. <!-- <el-input
  8000. v-model="eTitle"
  8001. placeholder="请输入名称"
  8002. @change="setMindData"
  8003. ></el-input>-->
  8004. </div>
  8005. </div>
  8006. <div class="e_add_content">
  8007. <div class="e_add_list_pbox">
  8008. <div class="e_add_list_pbox_title">
  8009. <span class="type_title">切换模式</span>
  8010. <div class="type_content">
  8011. <span
  8012. :class="{ active: typeMode == 1 }"
  8013. @click="typeMode = 1"
  8014. >目标树</span
  8015. >
  8016. <span
  8017. :class="{ active: typeMode == 2 }"
  8018. @click="typeMode = 2"
  8019. >目标罗盘</span
  8020. >
  8021. <span
  8022. :class="{ active: typeMode == 3 }"
  8023. @click="typeMode = 3"
  8024. >目标看板</span
  8025. >
  8026. </div>
  8027. </div>
  8028. <div class="e_add_list_pbox_content">
  8029. <Mind
  8030. :showBar="false"
  8031. :mindData="data"
  8032. style="width: 100%"
  8033. v-show="typeMode == 1"
  8034. ></Mind>
  8035. <Sunburst
  8036. :Josn="eJson"
  8037. :num="eJSONNum"
  8038. style="width: 100%"
  8039. v-if="typeMode == 2"
  8040. ></Sunburst>
  8041. <SeeBoard
  8042. :Josn="eJson"
  8043. :num="eJSONNum"
  8044. :ename="eTitle"
  8045. style="width: 100%"
  8046. v-if="typeMode == 3"
  8047. >
  8048. </SeeBoard>
  8049. </div>
  8050. </div>
  8051. </div>
  8052. </div>
  8053. </div>
  8054. </div>
  8055. </div>
  8056. <!-- <div
  8057. class="vedioBox"
  8058. style="margin-top: 10px"
  8059. v-if="
  8060. courseDetail.userid == userid ||
  8061. (courseDetail.course_teacher &&
  8062. courseDetail.course_teacher.indexOf(userid) != -1)
  8063. "
  8064. :style="{
  8065. borderRadius:
  8066. !(
  8067. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8068. .toolChoose[0].tool &&
  8069. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8070. .toolChoose[0].tool.length > 0
  8071. ) &&
  8072. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8073. .taskDetail == '' &&
  8074. vChapterData[0].length == 0 &&
  8075. fileC[0].length == 0
  8076. ? '0 0 20px 20px'
  8077. : '20px',
  8078. }"
  8079. >
  8080. <div
  8081. class="queTop"
  8082. @click="isClose = !isClose"
  8083. style="padding: 15px 0 15px 37px; justify-content: space-between"
  8084. >
  8085. <div class="queTopTitle">新增工具</div>
  8086. <div class="queTopRight">
  8087. <div class="queTopClose" v-if="isClose == 0">
  8088. 展开
  8089. <div class="closeImg">
  8090. <img src="../../assets/icon/newIcon/close.png" alt="" />
  8091. </div>
  8092. </div>
  8093. <div class="queTopClose" v-if="isClose == 1">
  8094. 收缩
  8095. <div class="openImg">
  8096. <img src="../../assets/icon/newIcon/open.png" alt="" />
  8097. </div>
  8098. </div>
  8099. <el-button
  8100. style="margin: 0 30px 0 auto"
  8101. type="primary"
  8102. size="small"
  8103. v-if="isClose == 1 && checktoolArray.length > 0"
  8104. @click.stop="addToolChoose"
  8105. >确定</el-button
  8106. >
  8107. </div>
  8108. </div>
  8109. <div
  8110. class="tool_work_box"
  8111. :style="isClose == 0 ? 'display:none' : 'display:block'"
  8112. >
  8113. <div class="tool_box">
  8114. <div class="tool_type_box">
  8115. <div class="chooseWho">
  8116. <div
  8117. :class="toolType == 0 ? 'isChooseActive' : ''"
  8118. @click="(toolType = 0), $forceUpdate()"
  8119. >
  8120. 互动类
  8121. </div>
  8122. <div
  8123. :class="toolType == 1 ? 'isChooseActive' : ''"
  8124. @click="(toolType = 1), $forceUpdate()"
  8125. >
  8126. 思维类
  8127. </div>
  8128. <div
  8129. :class="toolType == 2 ? 'isChooseActive' : ''"
  8130. @click="(toolType = 2), $forceUpdate()"
  8131. >
  8132. 测评类
  8133. </div>
  8134. <div
  8135. :class="toolType == 3 ? 'isChooseActive' : ''"
  8136. @click="(toolType = 3), $forceUpdate()"
  8137. >
  8138. 编程类
  8139. </div>
  8140. <div
  8141. :class="toolType == 5 ? 'isChooseActive' : ''"
  8142. @click="(toolType = 5), $forceUpdate()"
  8143. >
  8144. 学科类
  8145. </div>
  8146. </div>
  8147. </div>
  8148. <div>
  8149. <div class="toolSort" v-if="toolType == 0">
  8150. <div class="tool">
  8151. <div class="whiteBIcon" @click="addTools2(10)">
  8152. <img
  8153. src="../../assets/icon/thirdToolList/time.png"
  8154. alt
  8155. />
  8156. <div style="margin: 5px 0">倒计时</div>
  8157. </div>
  8158. <div class="check" @click="addTools2(10)">
  8159. <img
  8160. src="../../assets/icon/checkNo.png"
  8161. alt
  8162. v-if="checktoolArray.indexOf(10) == -1"
  8163. />
  8164. <div class="checkDiv" v-else>
  8165. <img src="../../assets/icon/checkedIs.png" alt /><span
  8166. >已选择</span
  8167. >
  8168. </div>
  8169. </div>
  8170. </div>
  8171. <div class="tool">
  8172. <div class="whiteBIcon" @click="addTools2(65)">
  8173. <img
  8174. src="../../assets/icon/firstToolList/pickPeople.png"
  8175. alt
  8176. />
  8177. <div style="margin: 5px 0">挑人</div>
  8178. </div>
  8179. <div class="check" @click="addTools2(65)">
  8180. <img
  8181. src="../../assets/icon/checkNo.png"
  8182. alt
  8183. v-if="checktoolArray.indexOf(65) == -1"
  8184. />
  8185. <div class="checkDiv" v-else>
  8186. <img src="../../assets/icon/checkedIs.png" alt /><span
  8187. >已选择</span
  8188. >
  8189. </div>
  8190. </div>
  8191. </div>
  8192. </div>
  8193. <div class="toolSort" v-if="toolType == 1">
  8194. <div class="tool">
  8195. <div class="whiteBIcon" @click="addTools2(7)">
  8196. <img
  8197. src="../../assets/icon/secondToolList/mindNetwork.png"
  8198. alt
  8199. />
  8200. <div style="margin: 5px 0">思维网格</div>
  8201. </div>
  8202. <div class="check" @click="addTools2(7)">
  8203. <img
  8204. src="../../assets/icon/checkNo.png"
  8205. alt
  8206. v-if="checktoolArray.indexOf(7) == -1"
  8207. />
  8208. <div class="checkDiv" v-else>
  8209. <img src="../../assets/icon/checkedIs.png" alt /><span
  8210. >已选择</span
  8211. >
  8212. </div>
  8213. </div>
  8214. </div>
  8215. <div class="tool">
  8216. <div class="whiteBIcon" @click="addTools2(1)">
  8217. <img
  8218. src="../../assets/icon/secondToolList/whiteBoard.png"
  8219. alt
  8220. />
  8221. <div style="margin: 5px 0">电子白板</div>
  8222. </div>
  8223. <div class="check" @click="addTools2(1)">
  8224. <img
  8225. src="../../assets/icon/checkNo.png"
  8226. alt
  8227. v-if="checktoolArray.indexOf(1) == -1"
  8228. />
  8229. <div class="checkDiv" v-else>
  8230. <img src="../../assets/icon/checkedIs.png" alt /><span
  8231. >已选择</span
  8232. >
  8233. </div>
  8234. </div>
  8235. </div>
  8236. <div class="tool">
  8237. <div class="whiteBIcon" @click="addTools2(52)">
  8238. <img
  8239. src="../../assets/icon/fourthToolList/text.png"
  8240. alt
  8241. />
  8242. <div style="margin: 5px 0">文档</div>
  8243. </div>
  8244. <div class="check" @click="addTools2(52)">
  8245. <img
  8246. src="../../assets/icon/checkNo.png"
  8247. alt
  8248. v-if="checktoolArray.indexOf(52) == -1"
  8249. />
  8250. <div class="checkDiv" v-else>
  8251. <img src="../../assets/icon/checkedIs.png" alt /><span
  8252. >已选择</span
  8253. >
  8254. </div>
  8255. </div>
  8256. </div>
  8257. <div class="tool">
  8258. <div class="whiteBIcon" @click="addTools2(3)">
  8259. <img
  8260. src="../../assets/icon/secondToolList/mindMapping.png"
  8261. alt
  8262. />
  8263. <div style="margin: 5px 0">思维导图</div>
  8264. </div>
  8265. <div class="check" @click="addTools2(3)">
  8266. <img
  8267. src="../../assets/icon/checkNo.png"
  8268. alt
  8269. v-if="checktoolArray.indexOf(3) == -1"
  8270. />
  8271. <div class="checkDiv" v-else>
  8272. <img src="../../assets/icon/checkedIs.png" alt /><span
  8273. >已选择</span
  8274. >
  8275. </div>
  8276. </div>
  8277. </div>
  8278. <div class="tool">
  8279. <div class="whiteBIcon" @click="addTools2(48)">
  8280. <img
  8281. src="../../assets/icon/fourthToolList/table.png"
  8282. alt
  8283. />
  8284. <div style="margin: 5px 0">表格</div>
  8285. </div>
  8286. <div class="check" @click="addTools2(48)">
  8287. <img
  8288. src="../../assets/icon/checkNo.png"
  8289. alt
  8290. v-if="checktoolArray.indexOf(48) == -1"
  8291. />
  8292. <div class="checkDiv" v-else>
  8293. <img src="../../assets/icon/checkedIs.png" alt /><span
  8294. >已选择</span
  8295. >
  8296. </div>
  8297. </div>
  8298. </div>
  8299. </div>
  8300. <div class="toolSort" v-if="toolType == 6">
  8301. <div v-show="tooC == 49">
  8302. <img
  8303. @click="addTools(tooC, toolIndex, taskCount)"
  8304. src="../../assets/icon/fourthToolList/group.png"
  8305. alt
  8306. />
  8307. <div style="margin: 5px 0">学生分组</div>
  8308. </div>
  8309. </div>
  8310. <div class="toolSort" v-if="toolType == 2">
  8311. <div class="tool">
  8312. <div class="whiteBIcon" @click="addTools2(16)">
  8313. <img
  8314. src="../../assets/icon/thirdToolList/work.png"
  8315. alt
  8316. />
  8317. <div style="margin: 5px 0">作业提交</div>
  8318. </div>
  8319. <div class="check" @click="addTools2(16)">
  8320. <img
  8321. src="../../assets/icon/checkNo.png"
  8322. alt
  8323. v-if="checktoolArray.indexOf(16) == -1"
  8324. />
  8325. <div class="checkDiv" v-else>
  8326. <img src="../../assets/icon/checkedIs.png" alt /><span
  8327. >已选择</span
  8328. >
  8329. </div>
  8330. </div>
  8331. </div>
  8332. <div class="tool">
  8333. <div class="whiteBIcon" @click="addTools2(50)">
  8334. <img
  8335. src="../../assets/icon/thirdToolList/plwork.png"
  8336. alt
  8337. />
  8338. <div style="margin: 5px 0">批量上传</div>
  8339. </div>
  8340. <div class="check" @click="addTools2(50)">
  8341. <img
  8342. src="../../assets/icon/checkNo.png"
  8343. alt
  8344. v-if="checktoolArray.indexOf(50) == -1"
  8345. />
  8346. <div class="checkDiv" v-else>
  8347. <img src="../../assets/icon/checkedIs.png" alt /><span
  8348. >已选择</span
  8349. >
  8350. </div>
  8351. </div>
  8352. </div>
  8353. </div>
  8354. <div class="toolSort" v-if="toolType == 3">
  8355. <div class="tool">
  8356. <div class="whiteBIcon" @click="addTools2(18)">
  8357. <img
  8358. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8359. alt
  8360. />
  8361. <div style="margin: 5px 0">训练平台</div>
  8362. </div>
  8363. <div class="check" @click="addTools2(18)">
  8364. <img
  8365. src="../../assets/icon/checkNo.png"
  8366. alt
  8367. v-if="checktoolArray.indexOf(18) == -1"
  8368. />
  8369. <div class="checkDiv" v-else>
  8370. <img src="../../assets/icon/checkedIs.png" alt /><span
  8371. >已选择</span
  8372. >
  8373. </div>
  8374. </div>
  8375. </div>
  8376. <div class="tool">
  8377. <div class="whiteBIcon" @click="addTools2(21)">
  8378. <img
  8379. src="../../assets/icon/fourthToolList/program.png"
  8380. alt
  8381. />
  8382. <div style="margin: 5px 0">AIoT Blockly</div>
  8383. </div>
  8384. <div class="check" @click="addTools2(21)">
  8385. <img
  8386. src="../../assets/icon/checkNo.png"
  8387. alt
  8388. v-if="checktoolArray.indexOf(21) == -1"
  8389. />
  8390. <div class="checkDiv" v-else>
  8391. <img src="../../assets/icon/checkedIs.png" alt /><span
  8392. >已选择</span
  8393. >
  8394. </div>
  8395. </div>
  8396. </div>
  8397. <div class="tool">
  8398. <div class="whiteBIcon" @click="addTools2(23)">
  8399. <img
  8400. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8401. alt
  8402. />
  8403. <div style="margin: 5px 0">AI Python</div>
  8404. </div>
  8405. <div class="check" @click="addTools2(23)">
  8406. <img
  8407. src="../../assets/icon/checkNo.png"
  8408. alt
  8409. v-if="checktoolArray.indexOf(23) == -1"
  8410. />
  8411. <div class="checkDiv" v-else>
  8412. <img src="../../assets/icon/checkedIs.png" alt /><span
  8413. >已选择</span
  8414. >
  8415. </div>
  8416. </div>
  8417. </div>
  8418. <div class="tool">
  8419. <div class="whiteBIcon" @click="addTools2(24)">
  8420. <img
  8421. src="../../assets/icon/fourthToolList/AIprogram.png"
  8422. alt
  8423. />
  8424. <div style="margin: 5px 0">AI Blockly</div>
  8425. </div>
  8426. <div class="check" @click="addTools2(24)">
  8427. <img
  8428. src="../../assets/icon/checkNo.png"
  8429. alt
  8430. v-if="checktoolArray.indexOf(24) == -1"
  8431. />
  8432. <div class="checkDiv" v-else>
  8433. <img src="../../assets/icon/checkedIs.png" alt /><span
  8434. >已选择</span
  8435. >
  8436. </div>
  8437. </div>
  8438. </div>
  8439. <div class="tool">
  8440. <div class="whiteBIcon" @click="addTools2(32)">
  8441. <img
  8442. src="../../assets/icon/thirdToolList/code.png"
  8443. alt
  8444. />
  8445. <div style="margin: 5px 0">源码编辑</div>
  8446. </div>
  8447. <div class="check" @click="addTools2(32)">
  8448. <img
  8449. src="../../assets/icon/checkNo.png"
  8450. alt
  8451. v-if="checktoolArray.indexOf(32) == -1"
  8452. />
  8453. <div class="checkDiv" v-else>
  8454. <img src="../../assets/icon/checkedIs.png" alt /><span
  8455. >已选择</span
  8456. >
  8457. </div>
  8458. </div>
  8459. </div>
  8460. <div class="tool">
  8461. <div class="whiteBIcon" @click="addTools2(57)">
  8462. <img
  8463. src="../../assets/icon/fourthToolList/cocopi.png"
  8464. alt
  8465. />
  8466. <div style="margin: 5px 0">CocoPi</div>
  8467. </div>
  8468. <div class="check" @click="addTools2(57)">
  8469. <img
  8470. src="../../assets/icon/checkNo.png"
  8471. alt
  8472. v-if="checktoolArray.indexOf(57) == -1"
  8473. />
  8474. <div class="checkDiv" v-else>
  8475. <img src="../../assets/icon/checkedIs.png" alt /><span
  8476. >已选择</span
  8477. >
  8478. </div>
  8479. </div>
  8480. </div>
  8481. <div class="tool">
  8482. <div class="whiteBIcon" @click="addTools2(63)">
  8483. <img
  8484. src="../../assets/icon/fourthToolList/Wood.png"
  8485. alt
  8486. />
  8487. <div style="margin: 5px 0">海龟编程</div>
  8488. </div>
  8489. <div class="check" @click="addTools2(63)">
  8490. <img
  8491. src="../../assets/icon/checkNo.png"
  8492. alt
  8493. v-if="checktoolArray.indexOf(63) == -1"
  8494. />
  8495. <div class="checkDiv" v-else>
  8496. <img src="../../assets/icon/checkedIs.png" alt /><span
  8497. >已选择</span
  8498. >
  8499. </div>
  8500. </div>
  8501. </div>
  8502. </div>
  8503. <div class="toolSort" v-if="toolType == 7">
  8504. <div class="tool">
  8505. <div class="whiteBIcon" @click="addTools2(40)">
  8506. <img
  8507. src="../../assets/icon/secondToolList/eval.png"
  8508. alt
  8509. />
  8510. <div style="margin: 5px 0">个人评价</div>
  8511. </div>
  8512. <div class="check" @click="addTools2(40)">
  8513. <img
  8514. src="../../assets/icon/checkNo.png"
  8515. alt
  8516. v-if="checktoolArray.indexOf(40) == -1"
  8517. />
  8518. <div class="checkDiv" v-else>
  8519. <img src="../../assets/icon/checkedIs.png" alt /><span
  8520. >已选择</span
  8521. >
  8522. </div>
  8523. </div>
  8524. </div>
  8525. </div>
  8526. <div class="toolSort" v-if="toolType == 5">
  8527. <div class="tool">
  8528. <div class="whiteBIcon" @click="addTools2(28)">
  8529. <img
  8530. src="../../assets/icon/secondToolList/translation.png"
  8531. alt
  8532. />
  8533. <div style="margin: 5px 0">翻译</div>
  8534. </div>
  8535. <div class="check" @click="addTools2(28)">
  8536. <img
  8537. src="../../assets/icon/checkNo.png"
  8538. alt
  8539. v-if="checktoolArray.indexOf(28) == -1"
  8540. />
  8541. <div class="checkDiv" v-else>
  8542. <img src="../../assets/icon/checkedIs.png" alt /><span
  8543. >已选择</span
  8544. >
  8545. </div>
  8546. </div>
  8547. </div>
  8548. <div class="tool">
  8549. <div class="whiteBIcon" @click="addTools2(31)">
  8550. <img
  8551. src="../../assets/icon/secondToolList/networkPanel.png"
  8552. alt
  8553. />
  8554. <div style="margin: 5px 0">数字画板</div>
  8555. </div>
  8556. <div class="check" @click="addTools2(31)">
  8557. <img
  8558. src="../../assets/icon/checkNo.png"
  8559. alt
  8560. v-if="checktoolArray.indexOf(31) == -1"
  8561. />
  8562. <div class="checkDiv" v-else>
  8563. <img src="../../assets/icon/checkedIs.png" alt /><span
  8564. >已选择</span
  8565. >
  8566. </div>
  8567. </div>
  8568. </div>
  8569. <div class="tool">
  8570. <div class="whiteBIcon" @click="addTools2(39)">
  8571. <img
  8572. src="../../assets/icon/secondToolList/GeoGebra.png"
  8573. alt
  8574. />
  8575. <div style="margin: 5px 0">GeoGebra</div>
  8576. </div>
  8577. <div class="check" @click="addTools2(39)">
  8578. <img
  8579. src="../../assets/icon/checkNo.png"
  8580. alt
  8581. v-if="checktoolArray.indexOf(39) == -1"
  8582. />
  8583. <div class="checkDiv" v-else>
  8584. <img src="../../assets/icon/checkedIs.png" alt /><span
  8585. >已选择</span
  8586. >
  8587. </div>
  8588. </div>
  8589. </div>
  8590. <div class="tool">
  8591. <div class="whiteBIcon" @click="addTools2(66)">
  8592. <img
  8593. src="../../assets/icon/secondToolList/formulaEdi.png"
  8594. alt
  8595. />
  8596. <div style="margin: 5px 0">公式编辑</div>
  8597. </div>
  8598. <div class="check" @click="addTools2(66)">
  8599. <img
  8600. src="../../assets/icon/checkNo.png"
  8601. alt
  8602. v-if="checktoolArray.indexOf(66) == -1"
  8603. />
  8604. <div class="checkDiv" v-else>
  8605. <img src="../../assets/icon/checkedIs.png" alt /><span
  8606. >已选择</span
  8607. >
  8608. </div>
  8609. </div>
  8610. </div>
  8611. <div class="tool">
  8612. <div class="whiteBIcon" @click="addTools2(67)">
  8613. <img
  8614. src="../../assets/icon/secondToolList/molStr.png"
  8615. alt
  8616. />
  8617. <div style="margin: 5px 0">分子结构</div>
  8618. </div>
  8619. <div class="check" @click="addTools2(67)">
  8620. <img
  8621. src="../../assets/icon/checkNo.png"
  8622. alt
  8623. v-if="checktoolArray.indexOf(67) == -1"
  8624. />
  8625. <div class="checkDiv" v-else>
  8626. <img src="../../assets/icon/checkedIs.png" alt /><span
  8627. >已选择</span
  8628. >
  8629. </div>
  8630. </div>
  8631. </div>
  8632. <div class="tool">
  8633. <div class="whiteBIcon" @click="addTools2(68)">
  8634. <img
  8635. src="../../assets/icon/secondToolList/timeAxis.png"
  8636. alt
  8637. />
  8638. <div style="margin: 5px 0">时间轴</div>
  8639. </div>
  8640. <div class="check" @click="addTools2(68)">
  8641. <img
  8642. src="../../assets/icon/checkNo.png"
  8643. alt
  8644. v-if="checktoolArray.indexOf(68) == -1"
  8645. />
  8646. <div class="checkDiv" v-else>
  8647. <img src="../../assets/icon/checkedIs.png" alt /><span
  8648. >已选择</span
  8649. >
  8650. </div>
  8651. </div>
  8652. </div>
  8653. </div>
  8654. <div class="toolSort" v-if="toolType == 4">
  8655. <div class="tool">
  8656. <div class="whiteBIcon" @click="addTools2(26)">
  8657. <img
  8658. src="../../assets/icon/thirdToolList/courseDesign.png"
  8659. alt
  8660. />
  8661. <div style="margin: 5px 0">课程设计</div>
  8662. </div>
  8663. <div class="check" @click="addTools2(26)">
  8664. <img
  8665. src="../../assets/icon/checkNo.png"
  8666. alt
  8667. v-if="checktoolArray.indexOf(26) == -1"
  8668. />
  8669. <div class="checkDiv" v-else>
  8670. <img src="../../assets/icon/checkedIs.png" alt /><span
  8671. >已选择</span
  8672. >
  8673. </div>
  8674. </div>
  8675. </div>
  8676. <div class="tool">
  8677. <div class="whiteBIcon" @click="addTools2(25)">
  8678. <img
  8679. src="../../assets/icon/thirdToolList/evalua.png"
  8680. alt
  8681. />
  8682. <div style="margin: 5px 0">目标管理</div>
  8683. </div>
  8684. <div class="check" @click="addTools2(25)">
  8685. <img
  8686. src="../../assets/icon/checkNo.png"
  8687. alt
  8688. v-if="checktoolArray.indexOf(25) == -1"
  8689. />
  8690. <div class="checkDiv" v-else>
  8691. <img src="../../assets/icon/checkedIs.png" alt /><span
  8692. >已选择</span
  8693. >
  8694. </div>
  8695. </div>
  8696. </div>
  8697. </div>
  8698. </div>
  8699. </div>
  8700. </div>
  8701. </div> -->
  8702. </div>
  8703. <el-dialog
  8704. title="作业提交"
  8705. :visible.sync="dialogVisible"
  8706. :append-to-body="true"
  8707. width="500px"
  8708. :before-close="handleClose"
  8709. class="dialog_change"
  8710. >
  8711. <div class="marginT">
  8712. <div>上传文件</div>
  8713. <div
  8714. class="chapter_add"
  8715. @click="addImg($event)"
  8716. v-if="studyJuri[0].cover.length == 0"
  8717. >
  8718. <div class="up_photo">
  8719. <img src="../../assets/icon/uploadImg.png" alt />
  8720. </div>
  8721. <!-- <input
  8722. type="file"
  8723. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8724. style="display: none"
  8725. @change="beforeUpload1($event, 1)"
  8726. /> -->
  8727. <input
  8728. type="file"
  8729. accept="*"
  8730. style="display: none"
  8731. @change="beforeUpload1($event, 1)"
  8732. />
  8733. <!-- <input
  8734. type="file"
  8735. accept="image/*"
  8736. capture="camera"
  8737. style="display: none"
  8738. @change="beforeUpload1($event, 1)"
  8739. /> -->
  8740. </div>
  8741. <div
  8742. class="chapter_add"
  8743. style="
  8744. display: flex;
  8745. width: 100%;
  8746. flex-direction: row;
  8747. flex-wrap: wrap;
  8748. justify-content: flex-start;
  8749. padding: 15px 0;
  8750. "
  8751. v-if="studyJuri[0].cover.length > 0"
  8752. >
  8753. <div class="upCover">
  8754. <img
  8755. :src="studyJuri[0].cover[0].url"
  8756. alt
  8757. v-if="fileType == 0"
  8758. />
  8759. <img :src="word" alt v-else-if="fileType == 1" />
  8760. <img :src="video" alt v-else-if="fileType == 2" />
  8761. <img :src="word2" alt v-else-if="fileType == 3" />
  8762. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8763. <div class="deleteWord" @click="clean(1)">
  8764. <img src="../../assets/icon/deleteWorks.png" alt />
  8765. </div>
  8766. </div>
  8767. </div>
  8768. </div>
  8769. <div
  8770. class="upload_send"
  8771. @click="addCourseWorks(taskCount)"
  8772. v-if="!proVisible"
  8773. >
  8774. 提交
  8775. </div>
  8776. </el-dialog>
  8777. </div>
  8778. </div>
  8779. <div
  8780. class="pButton"
  8781. @click="(pzDialog = true), selectPz()"
  8782. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8783. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8784. >
  8785. <!-- 批 -->
  8786. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8787. </div>
  8788. <div v-if="pzDialog == true" class="newDialogCss">
  8789. <div class="pzTop2">
  8790. <!-- <div>批注</div>
  8791. <div @click="pzDialog = false">
  8792. <img src="../../assets/close1.png" alt="" />
  8793. </div> -->
  8794. <div class="checkbox">
  8795. <div class="check" style="font-size: 25px;position:unset;">评课笔记</div>
  8796. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  8797. <el-option label="时间降序" :value="1"></el-option>
  8798. <el-option label="时间升序" :value="2"></el-option>
  8799. <el-option label="我的评课" :value="3"></el-option>
  8800. </el-select>
  8801. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8802. </div>
  8803. </div>
  8804. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8805. <div class="pzListBox" v-if="pzList && pzList.length">
  8806. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8807. <div class="pzNavTop">
  8808. <div>批</div>
  8809. <div>
  8810. {{
  8811. pz.username && pz.username.length > 5
  8812. ? pz.username.substring(0, 5) + "..."
  8813. : pz.username
  8814. }}的批注
  8815. </div>
  8816. <div
  8817. class="pzDelete"
  8818. v-if="pz.userid == userid"
  8819. @click="deletePz(pz.id)"
  8820. >
  8821. 删除
  8822. </div>
  8823. </div>
  8824. <div
  8825. @click="checkImg(getImgList(pz.content))"
  8826. class="pzContent cont"
  8827. v-html="pz.content"
  8828. v-if="pz.type == '1'"
  8829. ></div>
  8830. <div class="pzContent" v-if="pz.type == '2'">
  8831. <audio :src="pz.content" controls="controls" ref="audio">
  8832. Your browser does not support the audio element.
  8833. </audio>
  8834. </div>
  8835. <div class="pzContent" v-if="pz.type == '3'">
  8836. <img
  8837. :src="pz.content"
  8838. style="width: 90%; margin: 0 auto; display: block"
  8839. @click="previewImg(pz.content)"
  8840. />
  8841. </div>
  8842. <div class="timeAndReply">
  8843. <div class="time">
  8844. {{ pz.time }}
  8845. </div>
  8846. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8847. </div>
  8848. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8849. <div
  8850. v-for="(h, hIndex) in pz.hfList"
  8851. :key="hIndex"
  8852. class="hfItem"
  8853. >
  8854. <div class="whoReplyWho">
  8855. <div class="hfName">{{ h.username }}</div>
  8856. <div class="hfImg">
  8857. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8858. </div>
  8859. <div class="hfName">{{ pz.username }}</div>
  8860. </div>
  8861. <div class="hfContent" v-html="h.content"></div>
  8862. <div class="hfBottom">
  8863. <div class="hfTime">{{ h.time }}</div>
  8864. <div
  8865. class="deleteHfItem"
  8866. @click="deleteReply(h.id)"
  8867. v-if="userid == h.userid"
  8868. >
  8869. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8870. </div>
  8871. </div>
  8872. </div>
  8873. </div>
  8874. </div>
  8875. </div>
  8876. <div class="noPz" v-else>
  8877. <img src="../../assets/icon/noPz.png" alt="" />
  8878. </div>
  8879. <div class="addPzButton">
  8880. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8881. 添加批注
  8882. </div>
  8883. <!-- <div class="img1">
  8884. <div @click="(addPzDialog = true), (pzType = 2)">
  8885. <img src="../../assets/audio.png" /><span>音频</span>
  8886. </div>
  8887. </div> -->
  8888. </div>
  8889. </div>
  8890. </div>
  8891. <div v-if="toolDialogVisible == true" class="toolMask" @click="toolDialogVisible = false"></div>
  8892. <div v-if="toolDialogVisible == true" class="addToolCss">
  8893. <div class="toolTop">
  8894. <div style="font-weight: bold">新增工具</div>
  8895. <div @click="toolDialogVisible = false">
  8896. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8897. </div>
  8898. </div>
  8899. <div class="tool_box">
  8900. <div class="tool_type_box">
  8901. <div class="chooseWho">
  8902. <div
  8903. :class="toolType == 0 ? 'isChooseActive' : ''"
  8904. @click="(toolType = 0), $forceUpdate()"
  8905. >
  8906. 互动类
  8907. </div>
  8908. <div
  8909. :class="toolType == 1 ? 'isChooseActive' : ''"
  8910. @click="(toolType = 1), $forceUpdate()"
  8911. >
  8912. 思维类
  8913. </div>
  8914. <div
  8915. :class="toolType == 2 ? 'isChooseActive' : ''"
  8916. @click="(toolType = 2), $forceUpdate()"
  8917. >
  8918. 测评类
  8919. </div>
  8920. <div
  8921. :class="toolType == 3 ? 'isChooseActive' : ''"
  8922. @click="(toolType = 3), $forceUpdate()"
  8923. >
  8924. 编程类
  8925. </div>
  8926. <div
  8927. :class="toolType == 5 ? 'isChooseActive' : ''"
  8928. @click="(toolType = 5), $forceUpdate()"
  8929. >
  8930. 学科类
  8931. </div>
  8932. </div>
  8933. </div>
  8934. <div>
  8935. <div class="toolSort" v-if="toolType == 0">
  8936. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(10) != -1 }" @click="addTools2(10)">
  8937. <div class="whiteBIcon">
  8938. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8939. <div style="margin: 5px 0">倒计时</div>
  8940. </div>
  8941. <div class="check">
  8942. <div v-if="checktoolArray.indexOf(10) == -1" class="noChoose"></div>
  8943. <div v-else class="isChoose"></div>
  8944. </div>
  8945. </div>
  8946. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(65) != -1 }" @click="addTools2(65)">
  8947. <div class="whiteBIcon">
  8948. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8949. <div style="margin: 5px 0">挑人</div>
  8950. </div>
  8951. <div class="check">
  8952. <div v-if="checktoolArray.indexOf(65) == -1" class="noChoose"></div>
  8953. <div v-else class="isChoose"></div>
  8954. </div>
  8955. </div>
  8956. </div>
  8957. <div class="toolSort" v-if="toolType == 1">
  8958. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(7) != -1 }" @click="addTools2(7)">
  8959. <div class="whiteBIcon">
  8960. <img
  8961. src="../../assets/icon/secondToolList/mindNetwork.png"
  8962. alt
  8963. />
  8964. <div style="margin: 5px 0">思维网格</div>
  8965. </div>
  8966. <div class="check">
  8967. <div v-if="checktoolArray.indexOf(7) == -1" class="noChoose"></div>
  8968. <div v-else class="isChoose"></div>
  8969. </div>
  8970. </div>
  8971. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(1) != -1 }" @click="addTools2(1)">
  8972. <div class="whiteBIcon">
  8973. <img
  8974. src="../../assets/icon/secondToolList/whiteBoard.png"
  8975. alt
  8976. />
  8977. <div style="margin: 5px 0">电子白板</div>
  8978. </div>
  8979. <div class="check">
  8980. <div v-if="checktoolArray.indexOf(1) == -1" class="noChoose"></div>
  8981. <div v-else class="isChoose"></div>
  8982. </div>
  8983. </div>
  8984. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(52) != -1 }" @click="addTools2(52)">
  8985. <div class="whiteBIcon">
  8986. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8987. <div style="margin: 5px 0">文档</div>
  8988. </div>
  8989. <div class="check">
  8990. <div v-if="checktoolArray.indexOf(52) == -1" class="noChoose"></div>
  8991. <div v-else class="isChoose"></div>
  8992. </div>
  8993. </div>
  8994. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(3) != -1 }" @click="addTools2(3)">
  8995. <div class="whiteBIcon">
  8996. <img
  8997. src="../../assets/icon/secondToolList/mindMapping.png"
  8998. alt
  8999. />
  9000. <div style="margin: 5px 0">思维导图</div>
  9001. </div>
  9002. <div class="check">
  9003. <div v-if="checktoolArray.indexOf(3) == -1" class="noChoose"></div>
  9004. <div v-else class="isChoose"></div>
  9005. </div>
  9006. </div>
  9007. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(48) != -1 }" @click="addTools2(48)">
  9008. <div class="whiteBIcon">
  9009. <img src="../../assets/icon/fourthToolList/table.png" alt />
  9010. <div style="margin: 5px 0">表格</div>
  9011. </div>
  9012. <div class="check">
  9013. <div v-if="checktoolArray.indexOf(48) == -1" class="noChoose"></div>
  9014. <div v-else class="isChoose"></div>
  9015. </div>
  9016. </div>
  9017. </div>
  9018. <div class="toolSort" v-if="toolType == 6">
  9019. <div v-show="tooC == 49">
  9020. <img
  9021. @click="addTools(tooC, toolIndex, taskCount)"
  9022. src="../../assets/icon/fourthToolList/group.png"
  9023. alt
  9024. />
  9025. <div style="margin: 5px 0">学生分组</div>
  9026. </div>
  9027. </div>
  9028. <div class="toolSort" v-if="toolType == 2">
  9029. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(16) != -1 }" @click="addTools2(16)">
  9030. <div class="whiteBIcon">
  9031. <img src="../../assets/icon/thirdToolList/work.png" alt />
  9032. <div style="margin: 5px 0">作业提交</div>
  9033. </div>
  9034. <div class="check">
  9035. <div v-if="checktoolArray.indexOf(16) == -1" class="noChoose"></div>
  9036. <div v-else class="isChoose"></div>
  9037. </div>
  9038. </div>
  9039. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(50) != -1 }" @click="addTools2(50)">
  9040. <div class="whiteBIcon">
  9041. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  9042. <div style="margin: 5px 0">批量上传</div>
  9043. </div>
  9044. <div class="check">
  9045. <div v-if="checktoolArray.indexOf(50) == -1" class="noChoose"></div>
  9046. <div v-else class="isChoose"></div>
  9047. </div>
  9048. </div>
  9049. </div>
  9050. <div class="toolSort" v-if="toolType == 3">
  9051. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(18) != -1 }" @click="addTools2(18)">
  9052. <div class="whiteBIcon">
  9053. <img
  9054. src="../../assets/icon/thirdToolList/trainPlatform.png"
  9055. alt
  9056. />
  9057. <div style="margin: 5px 0">训练平台</div>
  9058. </div>
  9059. <div class="check">
  9060. <div v-if="checktoolArray.indexOf(18) == -1" class="noChoose"></div>
  9061. <div v-else class="isChoose"></div>
  9062. </div>
  9063. </div>
  9064. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(21) != -1 }" @click="addTools2(21)">
  9065. <div class="whiteBIcon">
  9066. <img src="../../assets/icon/fourthToolList/program.png" alt />
  9067. <div style="margin: 5px 0">AIoT Blockly</div>
  9068. </div>
  9069. <div class="check">
  9070. <div v-if="checktoolArray.indexOf(21) == -1" class="noChoose"></div>
  9071. <div v-else class="isChoose"></div>
  9072. </div>
  9073. </div>
  9074. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(23) != -1 }" @click="addTools2(23)">
  9075. <div class="whiteBIcon">
  9076. <img
  9077. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9078. alt
  9079. />
  9080. <div style="margin: 5px 0">AI Python</div>
  9081. </div>
  9082. <div class="check">
  9083. <div v-if="checktoolArray.indexOf(23) == -1" class="noChoose"></div>
  9084. <div v-else class="isChoose"></div>
  9085. </div>
  9086. </div>
  9087. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(24) != -1 }" @click="addTools2(24)">
  9088. <div class="whiteBIcon">
  9089. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9090. <div style="margin: 5px 0">AI Blockly</div>
  9091. </div>
  9092. <div class="check">
  9093. <div v-if="checktoolArray.indexOf(24) == -1" class="noChoose"></div>
  9094. <div v-else class="isChoose"></div>
  9095. </div>
  9096. </div>
  9097. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(32) != -1 }" @click="addTools2(32)">
  9098. <div class="whiteBIcon">
  9099. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9100. <div style="margin: 5px 0">源码编辑</div>
  9101. </div>
  9102. <div class="check">
  9103. <div v-if="checktoolArray.indexOf(32) == -1" class="noChoose"></div>
  9104. <div v-else class="isChoose"></div>
  9105. </div>
  9106. </div>
  9107. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(57) != -1 }" @click="addTools2(57)">
  9108. <div class="whiteBIcon">
  9109. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9110. <div style="margin: 5px 0">CocoPi</div>
  9111. </div>
  9112. <div class="check">
  9113. <div v-if="checktoolArray.indexOf(57) == -1" class="noChoose"></div>
  9114. <div v-else class="isChoose"></div>
  9115. </div>
  9116. </div>
  9117. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(63) != -1 }" @click="addTools2(63)">
  9118. <div class="whiteBIcon">
  9119. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9120. <div style="margin: 5px 0">海龟编程</div>
  9121. </div>
  9122. <div class="check">
  9123. <div v-if="checktoolArray.indexOf(63) == -1" class="noChoose"></div>
  9124. <div v-else class="isChoose"></div>
  9125. </div>
  9126. </div>
  9127. </div>
  9128. <div class="toolSort" v-if="toolType == 7">
  9129. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(40) != -1 }" @click="addTools2(40)">
  9130. <div class="whiteBIcon">
  9131. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9132. <div style="margin: 5px 0">个人评价</div>
  9133. </div>
  9134. <div class="check">
  9135. <div v-if="checktoolArray.indexOf(40) == -1" class="noChoose"></div>
  9136. <div v-else class="isChoose"></div>
  9137. </div>
  9138. </div>
  9139. </div>
  9140. <div class="toolSort" v-if="toolType == 5">
  9141. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(28) != -1 }" @click="addTools2(28)">
  9142. <div class="whiteBIcon">
  9143. <img
  9144. src="../../assets/icon/secondToolList/translation.png"
  9145. alt
  9146. />
  9147. <div style="margin: 5px 0">翻译</div>
  9148. </div>
  9149. <div class="check">
  9150. <div v-if="checktoolArray.indexOf(28) == -1" class="noChoose"></div>
  9151. <div v-else class="isChoose"></div>
  9152. </div>
  9153. </div>
  9154. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(31) != -1 }" @click="addTools2(31)">
  9155. <div class="whiteBIcon">
  9156. <img
  9157. src="../../assets/icon/secondToolList/networkPanel.png"
  9158. alt
  9159. />
  9160. <div style="margin: 5px 0">数字画板</div>
  9161. </div>
  9162. <div class="check">
  9163. <div v-if="checktoolArray.indexOf(31) == -1" class="noChoose"></div>
  9164. <div v-else class="isChoose"></div>
  9165. </div>
  9166. </div>
  9167. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(39) != -1 }" @click="addTools2(39)">
  9168. <div class="whiteBIcon">
  9169. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9170. <div style="margin: 5px 0">GeoGebra</div>
  9171. </div>
  9172. <div class="check">
  9173. <div v-if="checktoolArray.indexOf(39) == -1" class="noChoose"></div>
  9174. <div v-else class="isChoose"></div>
  9175. </div>
  9176. </div>
  9177. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(66) != -1 }" @click="addTools2(66)">
  9178. <div class="whiteBIcon">
  9179. <img
  9180. src="../../assets/icon/secondToolList/formulaEdi.png"
  9181. alt
  9182. />
  9183. <div style="margin: 5px 0">公式编辑</div>
  9184. </div>
  9185. <div class="check">
  9186. <div v-if="checktoolArray.indexOf(66) == -1" class="noChoose"></div>
  9187. <div v-else class="isChoose"></div>
  9188. </div>
  9189. </div>
  9190. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9191. <div class="whiteBIcon" @click="addTools2(67)">
  9192. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  9193. <div style="margin: 5px 0">分子结构</div>
  9194. </div>
  9195. <div class="check" @click="addTools2(67)">
  9196. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9197. <div v-else class="isChoose"></div>
  9198. </div>
  9199. </div> -->
  9200. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(68) != -1 }" @click="addTools2(68)">
  9201. <div class="whiteBIcon">
  9202. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9203. <div style="margin: 5px 0">时间轴</div>
  9204. </div>
  9205. <div class="check">
  9206. <div v-if="checktoolArray.indexOf(68) == -1" class="noChoose"></div>
  9207. <div v-else class="isChoose"></div>
  9208. </div>
  9209. </div>
  9210. </div>
  9211. <div class="toolSort" v-if="toolType == 4">
  9212. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(26) != -1 }" @click="addTools2(26)">
  9213. <div class="whiteBIcon">
  9214. <img
  9215. src="../../assets/icon/thirdToolList/courseDesign.png"
  9216. alt
  9217. />
  9218. <div style="margin: 5px 0">课程设计</div>
  9219. </div>
  9220. <div class="check">
  9221. <div v-if="checktoolArray.indexOf(26) == -1" class="noChoose"></div>
  9222. <div v-else class="isChoose"></div>
  9223. </div>
  9224. </div>
  9225. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(25) != -1 }" @click="addTools2(25)">
  9226. <div class="whiteBIcon">
  9227. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9228. <div style="margin: 5px 0">目标管理</div>
  9229. </div>
  9230. <div class="check">
  9231. <div v-if="checktoolArray.indexOf(25) == -1" class="noChoose"></div>
  9232. <div v-else class="isChoose"></div>
  9233. </div>
  9234. </div>
  9235. </div>
  9236. </div>
  9237. </div>
  9238. <span slot="footer" class="dialog-footer" style="display: block;text-align: center;padding:0 0 10px 0;">
  9239. <el-button @click="toolDialogVisible = false"
  9240. >取 消</el-button
  9241. >
  9242. <el-button type="primary" @click.stop="addToolChoose"
  9243. >确 定</el-button
  9244. >
  9245. </span>
  9246. </div>
  9247. <div
  9248. v-if="replyDialogVisible == true"
  9249. class="addDialogCss"
  9250. v-el-drag-dialog
  9251. >
  9252. <div class="pzTop">
  9253. <div class="teacherPz">
  9254. <div class="teacherPzImg">
  9255. <img src="../../assets/icon/teacherPz.png" alt="" />
  9256. </div>
  9257. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9258. </div>
  9259. <div @click="replyDialogVisible = false">
  9260. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9261. </div>
  9262. </div>
  9263. <div class="addPzBox">
  9264. <!-- <div class="addPzCheck">
  9265. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9266. >文本</span
  9267. >
  9268. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9269. >音频</span
  9270. >
  9271. </div> -->
  9272. <div style="height: calc(100% - 50px)">
  9273. <editor-bar
  9274. class="binfo_input pzConText"
  9275. style="width: 100% !important; margin: 0 auto"
  9276. placeholder="请输入回复描述"
  9277. v-model="reply"
  9278. @change="change"
  9279. ></editor-bar>
  9280. </div>
  9281. <div class="addTextCss" @click="addHf">确定</div>
  9282. </div>
  9283. </div>
  9284. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9285. <div class="pzTop">
  9286. <div class="teacherPz">
  9287. <div class="teacherPzImg">
  9288. <img src="../../assets/icon/teacherPz.png" alt="" />
  9289. </div>
  9290. <div style="margin-left: 10px; height: 25px">教师批注</div>
  9291. </div>
  9292. <div @click="addPzDialog = false">
  9293. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9294. </div>
  9295. </div>
  9296. <div class="addPzBox">
  9297. <div class="addPzCheck">
  9298. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9299. >文本</span
  9300. >
  9301. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9302. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9303. >音频</span
  9304. >
  9305. </div>
  9306. <div style="height: calc(100% - 95px)">
  9307. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9308. v-if="pzType == 1"></textarea> -->
  9309. <editor-bar
  9310. class="binfo_input pzConText"
  9311. style="width: 100% !important"
  9312. placeholder="请输入任务描述"
  9313. v-model="pzConText"
  9314. @change="change"
  9315. v-if="pzType == 1"
  9316. ></editor-bar>
  9317. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9318. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9319. <div @click="addImg($event)">
  9320. <el-button type="primary">上传图片</el-button>
  9321. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9322. @change="beforeUpload1($event, 4)" />
  9323. </div>
  9324. </div> -->
  9325. </div>
  9326. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9327. 确定
  9328. </div>
  9329. </div>
  9330. </div>
  9331. <div v-if="proVisible" class="mask">
  9332. <div class="progressBox">
  9333. <!-- <div id="closePro" class="closeCss">
  9334. <img src="../../assets/icon/close.png" alt />
  9335. </div> -->
  9336. <div class="lbox">
  9337. <img src="../../assets/loading.gif" />上传中,请稍后
  9338. </div>
  9339. <div style="margin-bottom: 10px">
  9340. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9341. </div>
  9342. <el-progress
  9343. :text-inside="true"
  9344. :stroke-width="20"
  9345. :percentage="progress"
  9346. style="width: 80%"
  9347. ></el-progress>
  9348. </div>
  9349. </div>
  9350. <div v-if="proVisible2" class="mask">
  9351. <div class="progressBox">
  9352. <div class="lbox">
  9353. <img src="../../assets/loading.gif" />上传中,请稍后
  9354. </div>
  9355. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9356. </div>
  9357. </div>
  9358. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9359. <img width="100%" :src="dialogImageUrl" alt />
  9360. </el-dialog>
  9361. <el-dialog
  9362. :title="noteName != '' ? noteName : '查看问卷'"
  9363. :visible.sync="dialogVisible5"
  9364. :append-to-body="true"
  9365. width="1000px"
  9366. :before-close="handleClose"
  9367. class="dialog_diy dialog_diy3"
  9368. >
  9369. <div>
  9370. <div
  9371. class="a_add_title"
  9372. style="
  9373. display: flex;
  9374. flex-direction: row;
  9375. align-items: center;
  9376. justify-content: center;
  9377. "
  9378. >
  9379. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9380. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9381. </div>
  9382. <div class="a_addBox">
  9383. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9384. 题目内容
  9385. </div>
  9386. <div
  9387. class="a_add_box"
  9388. v-for="(item1, index1) in askJson.askCount"
  9389. :key="index1"
  9390. >
  9391. <div class="a_add_head">
  9392. <div style="display: flex">
  9393. <span class="askIndex"> {{ index1 + 1 }}</span>
  9394. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9395. </div>
  9396. <img
  9397. v-if="askJson.askJson[index1].img"
  9398. :src="askJson.askJson[index1].img"
  9399. style="height: 300px; margin-top: 10px; max-width: 100%"
  9400. />
  9401. </div>
  9402. <div class="a_add_body">
  9403. <div class="a_add_input">
  9404. <el-radio-group
  9405. v-model="radio[index1]"
  9406. v-if="
  9407. askJson.askJson[index1].type == '1' ||
  9408. !askJson.askJson[index1].type
  9409. "
  9410. >
  9411. <el-radio
  9412. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9413. .checkList"
  9414. :key="checkIndex"
  9415. :label="checkIndex"
  9416. :disabled="isAnswer"
  9417. class="redioStyle"
  9418. ><span v-html="item2"></span
  9419. ></el-radio>
  9420. </el-radio-group>
  9421. <el-checkbox-group
  9422. v-model="radio[index1]"
  9423. v-if="askJson.askJson[index1].type == '2'"
  9424. >
  9425. <el-checkbox
  9426. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9427. .checkList"
  9428. :key="checkIndex1"
  9429. :label="checkIndex1"
  9430. :disabled="isAnswer"
  9431. class="redioStyle"
  9432. ><span v-html="item2"></span>
  9433. </el-checkbox>
  9434. </el-checkbox-group>
  9435. </div>
  9436. </div>
  9437. </div>
  9438. </div>
  9439. </div>
  9440. <span slot="footer" class="dialog-footer">
  9441. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9442. >取 消</el-button
  9443. >
  9444. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9445. >确 定</el-button
  9446. >
  9447. </span>
  9448. </el-dialog>
  9449. <el-dialog
  9450. :title="noteName != '' ? noteName : '查看问卷'"
  9451. :visible.sync="dialogVisible5Teacher"
  9452. :append-to-body="true"
  9453. width="1000px"
  9454. :before-close="handleClose"
  9455. class="dialog_diy dialog_diy3"
  9456. >
  9457. <div>
  9458. <div class="w_name">
  9459. 学生姓名:<span>{{ sStudent.student }}</span>
  9460. </div>
  9461. <div
  9462. class="a_add_title"
  9463. style="
  9464. display: flex;
  9465. flex-direction: row;
  9466. align-items: center;
  9467. justify-content: center;
  9468. "
  9469. >
  9470. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9471. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9472. </div>
  9473. <div class="a_addBox">
  9474. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9475. 题目内容
  9476. </div>
  9477. <div
  9478. class="a_add_box"
  9479. v-for="(item1, index1) in askJson.askCount"
  9480. :key="index1"
  9481. >
  9482. <div class="a_add_head">
  9483. <div style="display: flex">
  9484. <span class="askIndex"> {{ index1 + 1 }}</span>
  9485. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9486. </div>
  9487. <img
  9488. v-if="askJson.askJson[index1].img"
  9489. :src="askJson.askJson[index1].img"
  9490. style="height: 300px; margin-top: 10px; max-width: 100%"
  9491. />
  9492. </div>
  9493. <div class="a_add_body">
  9494. <div class="a_add_input">
  9495. <el-radio-group
  9496. v-model="radio[index1]"
  9497. v-if="
  9498. askJson.askJson[index1].type == '1' ||
  9499. !askJson.askJson[index1].type
  9500. "
  9501. >
  9502. <el-radio
  9503. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9504. .checkList"
  9505. :key="checkIndex"
  9506. :label="checkIndex"
  9507. :disabled="isAnswer"
  9508. class="redioStyle"
  9509. ><span v-html="item2"></span
  9510. ></el-radio>
  9511. </el-radio-group>
  9512. <el-checkbox-group
  9513. v-model="radio[index1]"
  9514. v-if="askJson.askJson[index1].type == '2'"
  9515. >
  9516. <el-checkbox
  9517. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9518. .checkList"
  9519. :key="checkIndex1"
  9520. :label="checkIndex1"
  9521. :disabled="isAnswer"
  9522. class="redioStyle"
  9523. ><span v-html="item2"></span>
  9524. </el-checkbox>
  9525. </el-checkbox-group>
  9526. </div>
  9527. </div>
  9528. </div>
  9529. </div>
  9530. </div>
  9531. <span slot="footer" class="dialog-footer">
  9532. <el-button
  9533. @click="dialogVisible5Teacher = false"
  9534. v-show="noteName == ''"
  9535. >取 消</el-button
  9536. >
  9537. <el-button
  9538. type="primary"
  9539. @click="addStudentAskTeacher"
  9540. v-show="noteName == ''"
  9541. >确 定</el-button
  9542. >
  9543. </span>
  9544. </el-dialog>
  9545. <el-dialog
  9546. :title="noteName != '' ? noteName : '查看选择题'"
  9547. :visible.sync="dialogVisibleChoice"
  9548. :append-to-body="true"
  9549. width="1000px"
  9550. :before-close="handleClose"
  9551. class="dialog_diy dialog_diy3"
  9552. >
  9553. <div>
  9554. <div class="a_addBox">
  9555. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9556. 题目内容
  9557. </div>
  9558. <div
  9559. class="a_add_box"
  9560. v-for="(item1, index1) in testJson.testCount"
  9561. :key="index1"
  9562. >
  9563. <div class="a_add_head">
  9564. <div style="display: flex">
  9565. <span class="askIndex"> {{ index1 + 1 }}</span>
  9566. <div
  9567. v-if="testJson.testJson[index1].type == '1'"
  9568. style="margin-right: 5px; min-width: 70px"
  9569. >
  9570. (单选题)
  9571. </div>
  9572. <div
  9573. v-if="testJson.testJson[index1].type == '2'"
  9574. style="margin-right: 5px; min-width: 70px"
  9575. >
  9576. (多选题)
  9577. </div>
  9578. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9579. </div>
  9580. <img
  9581. v-if="testJson.testJson[index1].img"
  9582. :src="testJson.testJson[index1].img"
  9583. style="height: 300px; margin-top: 10px; max-width: 100%"
  9584. />
  9585. </div>
  9586. <div
  9587. class="timuImgBox"
  9588. v-if="
  9589. testJson.testJson[index1].timuList &&
  9590. testJson.testJson[index1].timuList.length
  9591. "
  9592. >
  9593. <div
  9594. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9595. :key="tIndex"
  9596. class="timuImg"
  9597. @click.stop="previewImg(timg.src)"
  9598. >
  9599. <img :src="timg.src" alt="" />
  9600. </div>
  9601. </div>
  9602. <div class="a_add_body">
  9603. <div class="a_add_input">
  9604. <el-radio-group
  9605. v-model="radio[index1]"
  9606. v-if="testJson.testJson[index1].type == '1'"
  9607. >
  9608. <div class="radioBox">
  9609. <el-radio
  9610. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9611. .checkList"
  9612. :key="checkIndex"
  9613. :label="checkIndex"
  9614. :disabled="isAnswer"
  9615. class="redioStyle"
  9616. >
  9617. <div
  9618. style="margin-right: 10px"
  9619. v-if="item2 && item2.imgType && item2.imgType == 1"
  9620. >
  9621. <div class="inImg" @click.stop="previewImg(item2.src)">
  9622. <img :src="item2.src" alt="" />
  9623. </div>
  9624. </div>
  9625. <span v-else v-html="item2"></span>
  9626. </el-radio>
  9627. </div>
  9628. </el-radio-group>
  9629. <el-checkbox-group
  9630. v-model="radio[index1]"
  9631. v-if="testJson.testJson[index1].type == '2'"
  9632. >
  9633. <div class="radioBox">
  9634. <el-checkbox
  9635. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9636. .checkList"
  9637. :key="checkIndex"
  9638. :label="checkIndex"
  9639. :disabled="isAnswer"
  9640. class="redioStyle"
  9641. >
  9642. <div
  9643. style="margin-right: 10px"
  9644. v-if="item2 && item2.imgType && item2.imgType == 1"
  9645. >
  9646. <div class="inImg" @click.stop="previewImg(item2.src)">
  9647. <img :src="item2.src" alt="" />
  9648. </div>
  9649. </div>
  9650. <span v-else v-html="item2"></span>
  9651. </el-checkbox>
  9652. </div>
  9653. </el-checkbox-group>
  9654. </div>
  9655. </div>
  9656. </div>
  9657. </div>
  9658. </div>
  9659. <span slot="footer" class="dialog-footer">
  9660. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9661. >取 消</el-button
  9662. >
  9663. <el-button
  9664. type="primary"
  9665. @click="addStudentTest"
  9666. v-show="noteName == ''"
  9667. >确 定</el-button
  9668. >
  9669. </span>
  9670. </el-dialog>
  9671. <el-dialog
  9672. :title="noteName != '' ? noteName : '查看选择题'"
  9673. :visible.sync="dialogVisibleChoiceTeacher"
  9674. :append-to-body="true"
  9675. width="1000px"
  9676. :before-close="handleClose"
  9677. class="dialog_diy dialog_diy3"
  9678. >
  9679. <div>
  9680. <div class="w_name">
  9681. 学生姓名:<span>{{ sStudent.student }}</span>
  9682. </div>
  9683. <div class="a_addBox">
  9684. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9685. 题目内容
  9686. </div>
  9687. <div
  9688. class="a_add_box"
  9689. v-for="(item1, index1) in testJson.testCount"
  9690. :key="index1"
  9691. >
  9692. <div class="a_add_head">
  9693. <div style="display: flex">
  9694. <span class="askIndex"> {{ index1 + 1 }}</span>
  9695. <div
  9696. v-if="testJson.testJson[index1].type == '1'"
  9697. style="margin-right: 5px; min-width: 70px"
  9698. >
  9699. (单选题)
  9700. </div>
  9701. <div
  9702. v-if="testJson.testJson[index1].type == '2'"
  9703. style="margin-right: 5px; min-width: 70px"
  9704. >
  9705. (多选题)
  9706. </div>
  9707. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9708. </div>
  9709. <img
  9710. v-if="testJson.testJson[index1].img"
  9711. :src="testJson.testJson[index1].img"
  9712. style="height: 300px; margin-top: 10px; max-width: 100%"
  9713. />
  9714. </div>
  9715. <div
  9716. class="timuImgBox"
  9717. v-if="
  9718. testJson.testJson[index1].timuList &&
  9719. testJson.testJson[index1].timuList.length
  9720. "
  9721. >
  9722. <div
  9723. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9724. :key="tIndex"
  9725. class="timuImg"
  9726. @click.stop="previewImg(timg.src)"
  9727. >
  9728. <img :src="timg.src" alt="" />
  9729. </div>
  9730. </div>
  9731. <div class="a_add_body">
  9732. <div class="a_add_input">
  9733. <el-radio-group
  9734. v-model="radio[index1]"
  9735. v-if="testJson.testJson[index1].type == '1'"
  9736. >
  9737. <div class="radioBox">
  9738. <el-radio
  9739. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9740. .checkList"
  9741. :key="checkIndex"
  9742. :label="checkIndex"
  9743. :disabled="isAnswer"
  9744. class="redioStyle"
  9745. >
  9746. <div
  9747. style="margin-right: 10px"
  9748. v-if="item2 && item2.imgType && item2.imgType == 1"
  9749. >
  9750. <div class="inImg" @click.stop="previewImg(item2.src)">
  9751. <img :src="item2.src" alt="" />
  9752. </div>
  9753. </div>
  9754. <span v-else v-html="item2"></span>
  9755. </el-radio>
  9756. </div>
  9757. </el-radio-group>
  9758. <el-checkbox-group
  9759. v-model="radio[index1]"
  9760. v-if="testJson.testJson[index1].type == '2'"
  9761. >
  9762. <div class="radioBox">
  9763. <el-checkbox
  9764. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9765. .checkList"
  9766. :key="checkIndex"
  9767. :label="checkIndex"
  9768. :disabled="isAnswer"
  9769. class="redioStyle"
  9770. >
  9771. <div
  9772. style="margin-right: 10px"
  9773. v-if="item2 && item2.imgType && item2.imgType == 1"
  9774. >
  9775. <div class="inImg" @click.stop="previewImg(item2.src)">
  9776. <img :src="item2.src" alt="" />
  9777. </div>
  9778. </div>
  9779. <span v-else v-html="item2"></span>
  9780. </el-checkbox>
  9781. </div>
  9782. </el-checkbox-group>
  9783. </div>
  9784. </div>
  9785. </div>
  9786. </div>
  9787. </div>
  9788. <span slot="footer" class="dialog-footer">
  9789. <el-button
  9790. @click="dialogVisibleChoiceTeacher = false"
  9791. v-show="noteName == ''"
  9792. >取 消</el-button
  9793. >
  9794. <el-button
  9795. type="primary"
  9796. @click="addStudentTestTeacher"
  9797. v-show="noteName == ''"
  9798. >确 定</el-button
  9799. >
  9800. </span>
  9801. </el-dialog>
  9802. <el-dialog
  9803. title="查看富文本"
  9804. :visible.sync="dialogVisible1"
  9805. :append-to-body="true"
  9806. width="500px"
  9807. :before-close="handleClose"
  9808. class="dialog_diy textCss"
  9809. >
  9810. <el-form style="font-size: 20px">
  9811. <el-form-item label="文本标题" class="textTitle">
  9812. <div style="font-size: 20px">{{ text.name }}</div>
  9813. </el-form-item>
  9814. <div>富文本内容</div>
  9815. <div
  9816. v-html="text.url"
  9817. style="font-size: 18px; padding: 40px 0 0 0"
  9818. ></div>
  9819. </el-form>
  9820. <span slot="footer" class="dialog-footer">
  9821. <el-button type="primary" @click="dialogVisible1 = false"
  9822. >确定</el-button
  9823. >
  9824. </span>
  9825. </el-dialog>
  9826. <el-dialog
  9827. title="文件预览"
  9828. :visible.sync="dialogVisible3"
  9829. width="50%"
  9830. :before-close="handleClose"
  9831. class="dialog_diy"
  9832. :class="{ fullStyle: full }"
  9833. >
  9834. <div slot="title" class="header-title">
  9835. <div style="color: #fff">文件预览</div>
  9836. <div style="position: absolute; top: 19px; right: 50px">
  9837. <img
  9838. src="../../assets/full.png"
  9839. style="height: 16px; cursor: pointer"
  9840. alt=""
  9841. @click="fullTools"
  9842. />
  9843. </div>
  9844. </div>
  9845. <pdf
  9846. v-if="showPDF"
  9847. :pdfUrl="pptImgUrl"
  9848. style="width: 100%; height: 520px; overflow: auto"
  9849. :class="{ fullStyle: full }"
  9850. ></pdf>
  9851. <iframe
  9852. v-else
  9853. :src="pptImgUrl"
  9854. frameborder="0"
  9855. width="100%"
  9856. height="600"
  9857. :class="{ fullStyle: full }"
  9858. ></iframe>
  9859. </el-dialog>
  9860. <el-dialog
  9861. title="文件预览"
  9862. :visible.sync="dialogVisible6"
  9863. width="50%"
  9864. :before-close="handleClose"
  9865. class="dialog_diy"
  9866. >
  9867. <iframe
  9868. :src="pptImgUrl1"
  9869. frameborder="0"
  9870. width="100%"
  9871. height="600"
  9872. ></iframe>
  9873. </el-dialog>
  9874. <el-dialog
  9875. title="提示"
  9876. :visible.sync="dialogVisible4"
  9877. :append-to-body="true"
  9878. width="800px"
  9879. :before-close="handleClose"
  9880. class="dialog_diy notice"
  9881. >
  9882. <div>此功能暂未开放!</div>
  9883. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9884. </el-dialog>
  9885. <el-dialog
  9886. title="问答"
  9887. :visible.sync="answerDialogVisible"
  9888. :append-to-body="true"
  9889. width="800px"
  9890. :before-close="handleClose"
  9891. class="dialog_diy"
  9892. >
  9893. <div>
  9894. <div
  9895. style="
  9896. display: flex;
  9897. flex-wrap: nowrap;
  9898. flex-direction: column;
  9899. position: relative;
  9900. "
  9901. >
  9902. <div class="queTop" style="padding: 20px 0 20px 0">
  9903. <div class="question">
  9904. <img src="../../assets/icon/question.png" alt />
  9905. </div>
  9906. <div class="queTitle">
  9907. <div style="width: 90px; min-width: 90px">提问:</div>
  9908. <div>{{ answerQ }}</div>
  9909. </div>
  9910. </div>
  9911. <div class="ediBottom">
  9912. <textarea
  9913. rows="6"
  9914. class="binfo_input"
  9915. cols
  9916. style="width: 95%; height: 120px"
  9917. v-model="questionAnswer"
  9918. ></textarea>
  9919. </div>
  9920. </div>
  9921. </div>
  9922. <div slot="footer">
  9923. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9924. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9925. </div>
  9926. </el-dialog>
  9927. <el-dialog
  9928. title="倒计时"
  9929. :visible.sync="timeDialogVisible"
  9930. :append-to-body="true"
  9931. width="800px"
  9932. :before-close="handleClose"
  9933. class="dialog_diy"
  9934. >
  9935. <div>
  9936. <div style="margin-bottom: 20px; color: #999">
  9937. 提示:点击“+”或“-”修改倒计时时长。
  9938. </div>
  9939. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9940. </div>
  9941. <div slot="footer">
  9942. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9943. </div>
  9944. </el-dialog>
  9945. <el-dialog
  9946. title="权限设置"
  9947. :visible.sync="juriVisible"
  9948. :append-to-body="true"
  9949. width="400px"
  9950. :before-close="handleClose"
  9951. class="dialog_diy"
  9952. >
  9953. <div>
  9954. <div class="open_box">
  9955. <div class="switch_box">
  9956. <span>允许学生查看所有作业</span>
  9957. <el-switch
  9958. v-model="sIsOpen"
  9959. active-text=""
  9960. class="switchCss"
  9961. @change="updateSLook"
  9962. ></el-switch>
  9963. </div>
  9964. <div
  9965. class="switch_box"
  9966. v-if="
  9967. courseDetail.userid == userid ||
  9968. (courseDetail.course_teacher &&
  9969. courseDetail.course_teacher.indexOf(userid) != -1)
  9970. "
  9971. >
  9972. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9973. <span>禁止学生查看所有阶段</span>
  9974. <el-switch
  9975. v-model="IsLookOpen"
  9976. active-text=""
  9977. class="switchCss"
  9978. @change="updateLookOpen"
  9979. ></el-switch>
  9980. </div>
  9981. <div class="switch_box" v-if="courseDetail.userid == userid">
  9982. <span>开启跟随模式</span>
  9983. <el-switch
  9984. v-model="IsFollow"
  9985. active-text=""
  9986. class="switchCss"
  9987. @change="updateFollow"
  9988. ></el-switch>
  9989. </div>
  9990. </div>
  9991. </div>
  9992. <div slot="footer">
  9993. <el-button
  9994. style="background: #409efe; color: #fff"
  9995. @click="juriVisible = false"
  9996. >关 闭</el-button
  9997. >
  9998. </div>
  9999. </el-dialog>
  10000. <el-dialog
  10001. title="查看视频"
  10002. :visible.sync="videoVisible"
  10003. :append-to-body="true"
  10004. width="1000px"
  10005. :before-close="handleClose"
  10006. class="dialog_diy1"
  10007. >
  10008. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10009. <video-player
  10010. class="video-player vjs-custom-skin"
  10011. :playsinline="true"
  10012. :options="videoDetail"
  10013. @play="onPlayerPlay($event)"
  10014. style="width: 100%; height: 100%"
  10015. ></video-player>
  10016. </div>
  10017. <div slot="footer">
  10018. <el-button
  10019. style="background: #409efe; color: #fff"
  10020. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10021. >
  10022. 关 闭</el-button
  10023. >
  10024. </div>
  10025. </el-dialog>
  10026. <el-dialog
  10027. title="查看详情"
  10028. :visible.sync="commentDialogVisible"
  10029. :append-to-body="true"
  10030. width="800px"
  10031. :before-close="handleClose"
  10032. class="dialog_diy"
  10033. >
  10034. <div class="commentTop">
  10035. <div class="studentDetail">
  10036. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10037. <div class="nameAndTime">
  10038. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10039. <div>{{ commentDetail.time }}</div>
  10040. </div>
  10041. <div
  10042. class="returnBtn"
  10043. style="margin-left: auto; width: 80px"
  10044. v-if="
  10045. commentDetail.works &&
  10046. commentDetail.type == 0 &&
  10047. (tType == 1 || tType == 4)
  10048. "
  10049. @click="
  10050. showPicturePaint(
  10051. commentDetail.img ? commentDetail.img : commentDetail.works
  10052. )
  10053. "
  10054. >
  10055. 教师批注
  10056. </div>
  10057. </div>
  10058. <div
  10059. class="worksAnswer"
  10060. v-if="commentDetail.works && commentDetail.type == 2"
  10061. >
  10062. {{ JSON.parse(commentDetail.works)[0].answer }}
  10063. </div>
  10064. <div
  10065. class="worksAnswer"
  10066. v-if="commentDetail.works && commentDetail.type == 1"
  10067. >
  10068. <img
  10069. src="../../assets/teacherWork.png"
  10070. v-if="commentDetail.ateacher"
  10071. class="w_teachert"
  10072. />
  10073. <pdf
  10074. v-if="showPDF"
  10075. :pdfUrl="pptImgUrl"
  10076. style="width: 100%; height: 520px; overflow: auto"
  10077. :class="{ fullStyle: full }"
  10078. ></pdf>
  10079. <iframe
  10080. v-else
  10081. :src="pptImgUrl"
  10082. frameborder="0"
  10083. width="100%"
  10084. height="600"
  10085. :class="{ fullStyle: full }"
  10086. ></iframe>
  10087. </div>
  10088. <div
  10089. class="worksAnswer"
  10090. v-if="commentDetail.works && commentDetail.type == 0"
  10091. >
  10092. <img
  10093. src="../../assets/teacherWork.png"
  10094. v-if="commentDetail.ateacher"
  10095. class="w_teachert"
  10096. style="right: 105px"
  10097. />
  10098. <img
  10099. :src="commentDetail.works"
  10100. alt=""
  10101. @click="previewImg(commentDetail.works)"
  10102. />
  10103. </div>
  10104. <div
  10105. class="worksAnswer"
  10106. v-if="commentDetail.works && commentDetail.type == 3"
  10107. >
  10108. <img
  10109. src="../../assets/teacherWork.png"
  10110. v-if="commentDetail.ateacher"
  10111. class="w_teachert"
  10112. />
  10113. <video-player
  10114. class="video-player vjs-custom-skin"
  10115. :playsinline="true"
  10116. :options="videoDetail"
  10117. @play="onPlayerPlay($event)"
  10118. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10119. ></video-player>
  10120. </div>
  10121. <div
  10122. class="worksAnswer"
  10123. v-if="commentDetail.works && commentDetail.type == 10"
  10124. >
  10125. <div class="cont" v-html="commentDetail.works.text"></div>
  10126. </div>
  10127. <div
  10128. class="worksAnswer codeFileBox"
  10129. v-if="commentDetail.works && commentDetail.type == 12"
  10130. @click="downloadFile(commentDetail.works)"
  10131. >
  10132. <img src="../../assets/icon/codeFile.png" />
  10133. <div>点击下载文件</div>
  10134. </div>
  10135. <div
  10136. class="worksAnswer codeFileBox"
  10137. v-if="commentDetail.works && commentDetail.type == 15"
  10138. @click="
  10139. openCocoPi(
  10140. 57,
  10141. commentIndexJson.toolIndex,
  10142. commentDetail.userid,
  10143. commentDetail.sName
  10144. )
  10145. "
  10146. >
  10147. <img src="../../assets/icon/codeFile.png" />
  10148. <div>点击打开CocoPi</div>
  10149. </div>
  10150. <div
  10151. class="worksAnswer"
  10152. v-if="commentDetail.works && commentDetail.type == 13"
  10153. >
  10154. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10155. </div>
  10156. <div
  10157. class="worksAnswer"
  10158. v-if="commentDetail.works && commentDetail.type == 4"
  10159. >
  10160. <div class="evalCss">
  10161. <div class="nav">请选择星星进行评分</div>
  10162. <div class="middleBox" v-if="eScore.eStar">
  10163. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10164. <div class="nameAndrate">
  10165. <div>{{ e.value }}</div>
  10166. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10167. </div>
  10168. <div v-if="e.detail">{{ e.detail }}</div>
  10169. </div>
  10170. <div class="bz">
  10171. <textarea
  10172. disabled
  10173. rows="4"
  10174. class="pj"
  10175. style="
  10176. padding: 10px 5px;
  10177. width: 70%;
  10178. background: #f7f6f9;
  10179. font-size: 14px;
  10180. text-indent: 10px;
  10181. color: #000;
  10182. "
  10183. cols
  10184. v-model="eScore.eBzText"
  10185. placeholder="请输入评价内容..."
  10186. ></textarea>
  10187. </div>
  10188. </div>
  10189. </div>
  10190. </div>
  10191. <div class="comment">
  10192. <div class="commentList">
  10193. <div class="commentImg">
  10194. <img
  10195. @click="
  10196. isLikes(
  10197. commentDetail.wid,
  10198. userid,
  10199. 1,
  10200. null,
  10201. commentDetail.isLikes
  10202. )
  10203. "
  10204. :src="commentDetail.isLikes == true ? likes : noLikes"
  10205. alt=""
  10206. />
  10207. </div>
  10208. <div>{{ commentDetail.likesCount }}</div>
  10209. </div>
  10210. <div class="commentList">
  10211. <div class="commentImg">
  10212. <img src="../../assets/icon/comment/comment.png" alt="" />
  10213. </div>
  10214. <div>{{ commentDetail.commentCount }}</div>
  10215. </div>
  10216. </div>
  10217. <div class="drawPBox" v-if="commentDetail.img">
  10218. <span>教师批注</span>
  10219. <img
  10220. :src="commentDetail.img"
  10221. alt=""
  10222. @click="previewImg(commentDetail.img)"
  10223. />
  10224. <span
  10225. class="deleteImg"
  10226. v-if="tType == 1 || tType == 4"
  10227. @click.stop="deletePicturePaint(commentDetail.wid)"
  10228. style="
  10229. font-size: 14px;
  10230. width: auto !important;
  10231. color: #b4b4b4;
  10232. top: unset;
  10233. bottom: 0;
  10234. border: none;
  10235. padding: 0;
  10236. height: auto !important;
  10237. margin: 0;
  10238. "
  10239. >删除</span
  10240. >
  10241. </div>
  10242. </div>
  10243. <div class="commentBox">
  10244. <div class="pl">评论:</div>
  10245. <div style="max-height: 200px; overflow: auto">
  10246. <div
  10247. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10248. style="padding: 10px 0 0 0"
  10249. >
  10250. <div
  10251. class="studentDetail"
  10252. style="padding-top: 10px"
  10253. v-for="(co, coIndex) in commentDetail.commentJson"
  10254. :key="coIndex"
  10255. >
  10256. <div class="tx" style="min-width: 50px">
  10257. <img src="../../assets/avatar.png" alt="" />
  10258. </div>
  10259. <div class="plPerson">
  10260. <div class="plName">
  10261. <div>{{ co.commentPeople }}</div>
  10262. <div style="margin-left: 5px">
  10263. {{ co.commentTime }}
  10264. </div>
  10265. <div
  10266. class="deleteComment"
  10267. v-if="userid == co.userid"
  10268. @click="deleteComment(co.wid)"
  10269. >
  10270. 删除
  10271. </div>
  10272. </div>
  10273. <div class="plContent">{{ co.commentText }}</div>
  10274. </div>
  10275. </div>
  10276. </div>
  10277. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10278. </div>
  10279. </div>
  10280. <div style="margin-top: 10px">
  10281. <div class="displayBox">
  10282. <div
  10283. style="
  10284. color: #556db4;
  10285. font-size: 14px;
  10286. font-weight: bold;
  10287. padding-bottom: 10px;
  10288. "
  10289. >
  10290. 评价
  10291. </div>
  10292. <div class="easy_comment" v-if="false">
  10293. <div
  10294. v-for="(p, pIndex) in PlTextList"
  10295. :key="pIndex"
  10296. @click="fastText(p, 1)"
  10297. >
  10298. {{ p }}
  10299. </div>
  10300. </div>
  10301. </div>
  10302. <div>
  10303. <textarea
  10304. rows="3"
  10305. class="pj"
  10306. style="padding: 10px 5px"
  10307. cols
  10308. v-model="commentText"
  10309. placeholder="请输入评论"
  10310. ></textarea>
  10311. </div>
  10312. </div>
  10313. <div slot="footer">
  10314. <el-button
  10315. @click="
  10316. (commentDialogVisible = false),
  10317. (commentIndexJson = {}),
  10318. videoDetail.sources && videoDetail.sources[0]
  10319. ? (videoDetail.sources[0].src = '')
  10320. : ''
  10321. "
  10322. >取 消</el-button
  10323. >
  10324. <el-button
  10325. type="primary"
  10326. @click="addComment(commentDetail.wid, userid, 2)"
  10327. >确 定</el-button
  10328. >
  10329. </div>
  10330. </el-dialog>
  10331. <el-dialog
  10332. title="查看文档"
  10333. :visible.sync="fullDialogVisible"
  10334. :append-to-body="true"
  10335. width="100%"
  10336. :before-close="handleClose"
  10337. :show-close="false"
  10338. class="dialog_diy full_diy"
  10339. :class="{ full_diy2: fulltype == 3 }"
  10340. >
  10341. <div slot="title" class="header-title">
  10342. <div style="color: #fff">查看文档</div>
  10343. <div
  10344. @click="fullDialogVisible = false"
  10345. style="
  10346. cursor: pointer;
  10347. position: absolute;
  10348. top: 20px;
  10349. right: 20px;
  10350. color: #fff;
  10351. "
  10352. >
  10353. 退出全屏
  10354. </div>
  10355. </div>
  10356. <div style="height: 100%">
  10357. <div
  10358. class="wheel"
  10359. v-if="
  10360. fulltype == 2 &&
  10361. fullUrl.indexOf(
  10362. 'https://view.officeapps.live.com/op/view.aspx?src='
  10363. ) != -1
  10364. "
  10365. style="width: 95%; margin: 0 auto"
  10366. >
  10367. <iframe
  10368. style="width: 100%; height: 100%; border: none"
  10369. :src="fullUrl"
  10370. ></iframe>
  10371. </div>
  10372. <iframe
  10373. v-else-if="fulltype == 2"
  10374. style="width: 100%; height: 100%; border: none"
  10375. :src="fullUrl"
  10376. security="restricted"
  10377. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10378. ></iframe>
  10379. <pdf
  10380. v-else-if="fulltype == 3"
  10381. :pdfUrl="fullUrl"
  10382. style="width: 100%; height: 100%; overflow: auto"
  10383. ></pdf>
  10384. <div
  10385. class="wheel"
  10386. v-if="fulltype == 1"
  10387. style="
  10388. box-shadow: 0 0 6px 1px #f2f2f2;
  10389. width: 100%;
  10390. background: #f1f1f1;
  10391. "
  10392. >
  10393. <div class="title" style="width: 100%; box-sizing: border-box">
  10394. 查看文档
  10395. </div>
  10396. <el-form class="textBox" style="height: 90%">
  10397. <el-form-item class="textTitle">
  10398. <div style="font-size: 22px">
  10399. {{ fullUrl.name }}
  10400. </div>
  10401. </el-form-item>
  10402. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10403. <div
  10404. v-html="fullUrl.url"
  10405. class="textContent"
  10406. style="height: auto"
  10407. ></div>
  10408. </el-form>
  10409. </div>
  10410. </div>
  10411. <!-- <div slot="footer">
  10412. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10413. </div> -->
  10414. </el-dialog>
  10415. <el-dialog
  10416. title="个人评价"
  10417. :visible.sync="studentEvalDialogVisible"
  10418. :append-to-body="true"
  10419. width="800px"
  10420. :before-close="handleClose"
  10421. class="dialog_diy"
  10422. >
  10423. <div class="evalCss">
  10424. <div class="nav">请选择星星进行评分</div>
  10425. <div class="middleBox" v-if="eScore.eStar">
  10426. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10427. <div class="nameAndrate">
  10428. <div>{{ e.value }}</div>
  10429. <el-rate
  10430. v-model="eScore.eStar[eIndex]"
  10431. :disabled="isStar"
  10432. ></el-rate>
  10433. </div>
  10434. <div v-if="e.detail">{{ e.detail }}</div>
  10435. </div>
  10436. <div class="easy_comment" v-if="false">
  10437. <div
  10438. v-for="(p, pIndex) in PlTextList"
  10439. :key="pIndex"
  10440. @click="fastText(p, 2)"
  10441. >
  10442. {{ p }}
  10443. </div>
  10444. </div>
  10445. <div class="bz">
  10446. <textarea
  10447. :disabled="isStar"
  10448. rows="4"
  10449. class="pj"
  10450. style="
  10451. padding: 10px 5px;
  10452. width: 70%;
  10453. background: #f7f6f9;
  10454. font-size: 14px;
  10455. text-indent: 10px;
  10456. "
  10457. cols
  10458. v-model="eScore.eBzText"
  10459. placeholder="请输入评价内容..."
  10460. ></textarea>
  10461. </div>
  10462. </div>
  10463. </div>
  10464. <div slot="footer">
  10465. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10466. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10467. >确 定</el-button
  10468. >
  10469. </div>
  10470. </el-dialog>
  10471. <el-dialog
  10472. title="个人评价"
  10473. :visible.sync="studentEvalDialogVisibleTeacher"
  10474. :append-to-body="true"
  10475. width="800px"
  10476. :before-close="handleClose"
  10477. class="dialog_diy"
  10478. >
  10479. <div class="w_name">
  10480. 学生姓名:<span>{{ sStudent.student }}</span>
  10481. </div>
  10482. <div class="evalCss">
  10483. <div class="nav">请选择星星进行评分</div>
  10484. <div class="middleBox" v-if="eScore.eStar">
  10485. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10486. <div class="nameAndrate">
  10487. <div>{{ e.value }}</div>
  10488. <el-rate
  10489. v-model="eScore.eStar[eIndex]"
  10490. :disabled="isStar"
  10491. ></el-rate>
  10492. </div>
  10493. <div v-if="e.detail">{{ e.detail }}</div>
  10494. </div>
  10495. <div class="easy_comment" v-if="false">
  10496. <div
  10497. v-for="(p, pIndex) in PlTextList"
  10498. :key="pIndex"
  10499. @click="fastText(p, 2)"
  10500. >
  10501. {{ p }}
  10502. </div>
  10503. </div>
  10504. <div class="bz">
  10505. <textarea
  10506. :disabled="isStar"
  10507. rows="4"
  10508. class="pj"
  10509. style="
  10510. padding: 10px 5px;
  10511. width: 70%;
  10512. background: #f7f6f9;
  10513. font-size: 14px;
  10514. text-indent: 10px;
  10515. "
  10516. cols
  10517. v-model="eScore.eBzText"
  10518. placeholder="请输入评价内容..."
  10519. ></textarea>
  10520. </div>
  10521. </div>
  10522. </div>
  10523. <div slot="footer">
  10524. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10525. >取 消</el-button
  10526. >
  10527. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10528. >确 定</el-button
  10529. >
  10530. </div>
  10531. </el-dialog>
  10532. <el-dialog
  10533. title="选择匹配"
  10534. :visible.sync="dialogVisibleSelect"
  10535. :append-to-body="true"
  10536. width="90%"
  10537. :before-close="handleClose"
  10538. class="dialog_diy dialog_diy3"
  10539. >
  10540. <div v-if="selectJson">
  10541. <div class="select_box2">
  10542. <div class="select_box2_title">
  10543. <div>选择匹配</div>
  10544. <div>请选择对应的答案进行答题!</div>
  10545. </div>
  10546. <div class="select_box2_box">
  10547. <div class="select_box2_img">
  10548. <img
  10549. :src="selectJson.url"
  10550. @click="previewImg(selectJson.url)"
  10551. alt=""
  10552. />
  10553. </div>
  10554. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10555. <div style="padding-top: 15px">
  10556. <div class="select_answer_title" v-if="isSelect">
  10557. {{ selectAnswer.stu }}
  10558. </div>
  10559. <div class="select_answer_title" v-else>
  10560. 根据题目选择对应答案
  10561. </div>
  10562. <div
  10563. class="select_box2_answer_box"
  10564. v-for="(item2, checkIndex) in selectJson.select"
  10565. :key="checkIndex"
  10566. >
  10567. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10568. <el-select
  10569. :disabled="isSelect"
  10570. v-model="selectAnswer.answer[checkIndex]"
  10571. placeholder="请选择正确答案"
  10572. >
  10573. <el-option
  10574. v-for="(e, eIndex) in selectJson.select"
  10575. :key="eIndex"
  10576. :label="e"
  10577. :value="eIndex"
  10578. >
  10579. </el-option>
  10580. </el-select>
  10581. </div>
  10582. </div>
  10583. <div
  10584. class="rightAnswerCss"
  10585. v-if="isSelect && (tType == 1 || tType == 4)"
  10586. >
  10587. <div
  10588. v-for="(a, aIndex) in selectJson.answer"
  10589. :key="aIndex"
  10590. class="rightAnswer"
  10591. >
  10592. <div
  10593. v-if="selectAnswer.answer[aIndex] === a"
  10594. style="color: #767de1"
  10595. >
  10596. 回答正确
  10597. </div>
  10598. <div v-else>回答错误</div>
  10599. <div
  10600. style="margin-left: 10px"
  10601. v-if="selectAnswer.answer[aIndex] !== a"
  10602. >
  10603. 正确答案:
  10604. </div>
  10605. <div
  10606. :class="
  10607. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10608. "
  10609. >
  10610. {{ selectJson.select[a] }}
  10611. </div>
  10612. </div>
  10613. </div>
  10614. </div>
  10615. <div class="upAnswerCss">
  10616. <el-button
  10617. type="primary"
  10618. @click="addSelectAnswer"
  10619. v-if="!isSelect"
  10620. >提交答案</el-button
  10621. >
  10622. </div>
  10623. </div>
  10624. </div>
  10625. </div>
  10626. </el-dialog>
  10627. <el-dialog
  10628. title="选择匹配"
  10629. :visible.sync="dialogVisibleSelectTeacher"
  10630. :append-to-body="true"
  10631. width="90%"
  10632. :before-close="handleClose"
  10633. class="dialog_diy dialog_diy3"
  10634. >
  10635. <div v-if="selectJson">
  10636. <div class="w_name">
  10637. 学生姓名:<span>{{ sStudent.student }}</span>
  10638. </div>
  10639. <div class="select_box2">
  10640. <div class="select_box2_title">
  10641. <div>选择匹配</div>
  10642. <div>请选择对应的答案进行答题!</div>
  10643. </div>
  10644. <div class="select_box2_box">
  10645. <div class="select_box2_img">
  10646. <img
  10647. :src="selectJson.url"
  10648. @click="previewImg(selectJson.url)"
  10649. alt=""
  10650. />
  10651. </div>
  10652. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10653. <div style="padding-top: 15px">
  10654. <div class="select_answer_title" v-if="isSelect">
  10655. {{ selectAnswer.stu }}
  10656. </div>
  10657. <div class="select_answer_title" v-else>
  10658. 根据题目选择对应答案
  10659. </div>
  10660. <div
  10661. class="select_box2_answer_box"
  10662. v-for="(item2, checkIndex) in selectJson.select"
  10663. :key="checkIndex"
  10664. >
  10665. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10666. <el-select
  10667. :disabled="isSelect"
  10668. v-model="selectAnswer.answer[checkIndex]"
  10669. placeholder="请选择正确答案"
  10670. >
  10671. <el-option
  10672. v-for="(e, eIndex) in selectJson.select"
  10673. :key="eIndex"
  10674. :label="e"
  10675. :value="eIndex"
  10676. >
  10677. </el-option>
  10678. </el-select>
  10679. </div>
  10680. </div>
  10681. <div
  10682. class="rightAnswerCss"
  10683. v-if="isSelect && (tType == 1 || tType == 4)"
  10684. >
  10685. <div
  10686. v-for="(a, aIndex) in selectJson.answer"
  10687. :key="aIndex"
  10688. class="rightAnswer"
  10689. >
  10690. <div
  10691. v-if="selectAnswer.answer[aIndex] === a"
  10692. style="color: #767de1"
  10693. >
  10694. 回答正确
  10695. </div>
  10696. <div v-else>回答错误</div>
  10697. <div
  10698. style="margin-left: 10px"
  10699. v-if="selectAnswer.answer[aIndex] !== a"
  10700. >
  10701. 正确答案:
  10702. </div>
  10703. <div
  10704. :class="
  10705. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10706. "
  10707. >
  10708. {{ selectJson.select[a] }}
  10709. </div>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. <div class="upAnswerCss">
  10714. <el-button
  10715. type="primary"
  10716. @click="addSelectAnswerTeacher"
  10717. v-if="!isSelect"
  10718. >提交答案</el-button
  10719. >
  10720. </div>
  10721. </div>
  10722. </div>
  10723. </div>
  10724. </el-dialog>
  10725. <el-dialog
  10726. title="教师评分"
  10727. :visible.sync="dialogVisibleScore"
  10728. :append-to-body="true"
  10729. width="800px"
  10730. :before-close="handleClose"
  10731. class="dialog_diy"
  10732. >
  10733. <div>
  10734. <div class="studentDetail">
  10735. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10736. <div class="nameAndTime">
  10737. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10738. <div>{{ commentDetail.time }}</div>
  10739. </div>
  10740. </div>
  10741. <div
  10742. class="worksAnswer"
  10743. v-if="commentDetail.works && commentDetail.type == 2"
  10744. >
  10745. {{ JSON.parse(commentDetail.works)[0].answer }}
  10746. </div>
  10747. <div
  10748. class="worksAnswer"
  10749. v-if="commentDetail.works && commentDetail.type == 1"
  10750. >
  10751. <pdf
  10752. v-if="showPDF"
  10753. :pdfUrl="pptImgUrl"
  10754. style="width: 100%; height: 520px; overflow: auto"
  10755. :class="{ fullStyle: full }"
  10756. ></pdf>
  10757. <iframe
  10758. v-else
  10759. :src="pptImgUrl"
  10760. frameborder="0"
  10761. width="100%"
  10762. height="600"
  10763. :class="{ fullStyle: full }"
  10764. ></iframe>
  10765. </div>
  10766. <div
  10767. class="worksAnswer"
  10768. v-if="commentDetail.works && commentDetail.type == 0"
  10769. >
  10770. <img
  10771. :src="commentDetail.works"
  10772. alt=""
  10773. @click="previewImg(commentDetail.works)"
  10774. />
  10775. </div>
  10776. <div
  10777. class="worksAnswer"
  10778. v-if="commentDetail.works && commentDetail.type == 3"
  10779. >
  10780. <video-player
  10781. class="video-player vjs-custom-skin"
  10782. :playsinline="true"
  10783. :options="videoDetail"
  10784. @play="onPlayerPlay($event)"
  10785. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10786. ></video-player>
  10787. </div>
  10788. <div
  10789. class="worksAnswer codeFileBox"
  10790. v-if="commentDetail.works && commentDetail.type == 12"
  10791. @click="downloadFile(commentDetail.works)"
  10792. >
  10793. <img src="../../assets/icon/codeFile.png" />
  10794. <div>点击下载文件</div>
  10795. </div>
  10796. <div
  10797. class="worksAnswer codeFileBox"
  10798. v-if="commentDetail.works && commentDetail.type == 15"
  10799. @click="
  10800. openCocoPi(
  10801. 57,
  10802. commentIndexJson.toolIndex,
  10803. commentDetail.userid,
  10804. commentDetail.sName
  10805. )
  10806. "
  10807. >
  10808. <img src="../../assets/icon/codeFile.png" />
  10809. <div>点击打开CocoPi</div>
  10810. </div>
  10811. <div
  10812. class="worksAnswer"
  10813. v-if="commentDetail.works && commentDetail.type == 13"
  10814. >
  10815. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10816. </div>
  10817. <div class="scoreBox">
  10818. <span class="t">请输入分数</span>
  10819. <el-input-number
  10820. :disabled="courseDetail.userid != userid"
  10821. v-model="wScore"
  10822. :controls="false"
  10823. :min="0"
  10824. :max="100"
  10825. ></el-input-number>
  10826. </div>
  10827. <div class="scoreDetailBox">
  10828. <span class="t">评分评论</span>
  10829. <el-input
  10830. type="textarea"
  10831. :rows="5"
  10832. :disabled="courseDetail.userid != userid"
  10833. resize="none"
  10834. v-model="scoreDetail"
  10835. placeholder="请输入对学生的评价"
  10836. >
  10837. </el-input>
  10838. </div>
  10839. </div>
  10840. <span slot="footer" class="dialog-footer">
  10841. <el-button
  10842. @click="
  10843. (dialogVisibleScore = false),
  10844. (commentIndexJson = {}),
  10845. videoDetail.sources && videoDetail.sources[0]
  10846. ? (videoDetail.sources[0].src = '')
  10847. : ''
  10848. "
  10849. >取 消</el-button
  10850. >
  10851. <el-button
  10852. type="primary"
  10853. v-if="courseDetail.userid == userid"
  10854. @click="scoreWork(commentDetail.wid)"
  10855. >确 定
  10856. </el-button>
  10857. </span>
  10858. </el-dialog>
  10859. <el-dialog
  10860. title="排序"
  10861. :visible.sync="dialogVisibleSentence"
  10862. :append-to-body="true"
  10863. width="1000px"
  10864. :before-close="handleClose"
  10865. class="dialog_diy dialog_diy3"
  10866. >
  10867. <div>
  10868. <div class="sentenBox">
  10869. <div
  10870. v-for="(st, stIndex) in sentenceList"
  10871. :key="stIndex"
  10872. style="padding-bottom: 20px"
  10873. >
  10874. <div
  10875. style="padding: 15px 0 10px 20px"
  10876. class="sentenceTitle"
  10877. :index="stIndex + 1"
  10878. >
  10879. 题目{{ stIndex + 1 }}:请选择正确顺序
  10880. </div>
  10881. <div class="cardList" v-if="st.chooseSenList">
  10882. <div class="cardBox">
  10883. <div
  10884. v-for="(r, rIndex) in st.chooseSenList"
  10885. :key="rIndex"
  10886. @click="returnCard(r, stIndex, rIndex)"
  10887. >
  10888. <el-tooltip
  10889. class="item"
  10890. effect="light"
  10891. :content="r"
  10892. placement="top"
  10893. v-if="r != '' && r != undefined"
  10894. >
  10895. <div
  10896. :class="{
  10897. isCard: r,
  10898. isChooseCard: r == '' || r == undefined,
  10899. }"
  10900. >
  10901. <div>{{ r }}</div>
  10902. </div>
  10903. </el-tooltip>
  10904. <div
  10905. :class="{
  10906. isCard: r,
  10907. isChooseCard: r == '' || r == undefined,
  10908. }"
  10909. v-else
  10910. >
  10911. <div>{{ r }}</div>
  10912. </div>
  10913. </div>
  10914. </div>
  10915. </div>
  10916. <div class="cardList" v-if="st.addChangeSen">
  10917. <div class="cardBox">
  10918. <div
  10919. v-for="(s, sIndex) in st.addChangeSen"
  10920. :key="sIndex"
  10921. @click="setRightAnswer(s, stIndex, sIndex)"
  10922. >
  10923. <el-tooltip
  10924. class="item"
  10925. effect="light"
  10926. :content="s"
  10927. placement="top"
  10928. v-if="s != '' && s != undefined"
  10929. >
  10930. <div
  10931. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10932. >
  10933. <div>{{ s }}</div>
  10934. </div>
  10935. </el-tooltip>
  10936. <div
  10937. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10938. v-else
  10939. >
  10940. <div>{{ s }}</div>
  10941. </div>
  10942. </div>
  10943. </div>
  10944. </div>
  10945. </div>
  10946. </div>
  10947. </div>
  10948. <span slot="footer" class="dialog-footer">
  10949. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10950. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10951. </span>
  10952. </el-dialog>
  10953. <el-dialog
  10954. title="排序"
  10955. :visible.sync="dialogVisibleSentenceTeacher"
  10956. :append-to-body="true"
  10957. width="1000px"
  10958. :before-close="handleClose"
  10959. class="dialog_diy dialog_diy3"
  10960. >
  10961. <div>
  10962. <div class="w_name">
  10963. 学生姓名:<span>{{ sStudent.student }}</span>
  10964. </div>
  10965. <div class="sentenBox">
  10966. <div
  10967. v-for="(st, stIndex) in sentenceList"
  10968. :key="stIndex"
  10969. style="padding-bottom: 20px"
  10970. >
  10971. <div
  10972. style="padding: 15px 0 10px 20px"
  10973. class="sentenceTitle"
  10974. :index="stIndex + 1"
  10975. >
  10976. 题目{{ stIndex + 1 }}:请选择正确顺序
  10977. </div>
  10978. <div class="cardList" v-if="st.chooseSenList">
  10979. <div class="cardBox">
  10980. <div
  10981. v-for="(r, rIndex) in st.chooseSenList"
  10982. :key="rIndex"
  10983. @click="returnCard(r, stIndex, rIndex)"
  10984. >
  10985. <el-tooltip
  10986. class="item"
  10987. effect="light"
  10988. :content="r"
  10989. placement="top"
  10990. v-if="r != '' && r != undefined"
  10991. >
  10992. <div
  10993. :class="{
  10994. isCard: r,
  10995. isChooseCard: r == '' || r == undefined,
  10996. }"
  10997. >
  10998. <div>{{ r }}</div>
  10999. </div>
  11000. </el-tooltip>
  11001. <div
  11002. :class="{
  11003. isCard: r,
  11004. isChooseCard: r == '' || r == undefined,
  11005. }"
  11006. v-else
  11007. >
  11008. <div>{{ r }}</div>
  11009. </div>
  11010. </div>
  11011. </div>
  11012. </div>
  11013. <div class="cardList" v-if="st.addChangeSen">
  11014. <div class="cardBox">
  11015. <div
  11016. v-for="(s, sIndex) in st.addChangeSen"
  11017. :key="sIndex"
  11018. @click="setRightAnswer(s, stIndex, sIndex)"
  11019. >
  11020. <el-tooltip
  11021. class="item"
  11022. effect="light"
  11023. :content="s"
  11024. placement="top"
  11025. v-if="s != '' && s != undefined"
  11026. >
  11027. <div
  11028. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11029. >
  11030. <div>{{ s }}</div>
  11031. </div>
  11032. </el-tooltip>
  11033. <div
  11034. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11035. v-else
  11036. >
  11037. <div>{{ s }}</div>
  11038. </div>
  11039. </div>
  11040. </div>
  11041. </div>
  11042. </div>
  11043. </div>
  11044. </div>
  11045. <span slot="footer" class="dialog-footer">
  11046. <el-button @click="dialogVisibleSentenceTeacher = false"
  11047. >取 消</el-button
  11048. >
  11049. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11050. </span>
  11051. </el-dialog>
  11052. <el-dialog
  11053. title="排序"
  11054. :visible.sync="dialogVisibleSentence1"
  11055. :append-to-body="true"
  11056. width="1000px"
  11057. :before-close="handleClose"
  11058. class="dialog_diy dialog_diy3"
  11059. >
  11060. <div>
  11061. <div class="sentenBox">
  11062. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11063. {{ sentenceList1.stuName }}的作业
  11064. </div>
  11065. <div
  11066. v-for="(st, stIndex) in sentenceList1"
  11067. :key="stIndex"
  11068. style="padding-bottom: 20px"
  11069. >
  11070. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11071. 第{{ stIndex + 1 }}题
  11072. </div>
  11073. <div class="isWrong">
  11074. <div class="cardList1" v-if="st.chooseSenList">
  11075. <div class="cardBox">
  11076. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11077. <el-tooltip
  11078. class="item"
  11079. effect="light"
  11080. :content="s"
  11081. placement="top"
  11082. >
  11083. <div class="isCard">
  11084. <div>{{ s }}</div>
  11085. </div>
  11086. </el-tooltip>
  11087. </div>
  11088. </div>
  11089. <div class="cardAnswerBox">
  11090. 组成句子:{{ st.chooseSenList.join(" ") }}
  11091. </div>
  11092. </div>
  11093. <div
  11094. class="answerRight isTj"
  11095. v-if="
  11096. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11097. (tType == 1 || tType == 4)
  11098. "
  11099. >
  11100. <div class="isTjImg">
  11101. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11102. </div>
  11103. <div>回答正确</div>
  11104. </div>
  11105. <div
  11106. class="answerRight isTj"
  11107. v-if="
  11108. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11109. (tType == 1 || tType == 4)
  11110. "
  11111. >
  11112. <div class="isTjImg">
  11113. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11114. </div>
  11115. <div>回答错误</div>
  11116. </div>
  11117. </div>
  11118. <div
  11119. v-if="
  11120. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11121. (tType == 1 || tType == 4)
  11122. "
  11123. >
  11124. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11125. <div
  11126. class="cardList"
  11127. v-if="st.rightAnswer"
  11128. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11129. >
  11130. <div class="cardBox">
  11131. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11132. <el-tooltip
  11133. class="item"
  11134. effect="light"
  11135. :content="r"
  11136. placement="top"
  11137. >
  11138. <div class="isCard1">
  11139. <div>{{ r }}</div>
  11140. </div>
  11141. </el-tooltip>
  11142. </div>
  11143. </div>
  11144. <div class="cardAnswerBox">
  11145. 组成句子:{{ st.rightAnswer.join(" ") }}
  11146. </div>
  11147. </div>
  11148. </div>
  11149. </div>
  11150. </div>
  11151. </div>
  11152. <span slot="footer" class="dialog-footer">
  11153. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11154. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11155. >确 定</el-button
  11156. >
  11157. </span>
  11158. </el-dialog>
  11159. <el-dialog
  11160. title="提交作业"
  11161. :visible.sync="dialogVisibleWorks"
  11162. :append-to-body="true"
  11163. width="500px"
  11164. :before-close="handleClose"
  11165. class="dialog_change"
  11166. >
  11167. <div class="marginT">
  11168. <div class="w_name">
  11169. 学生姓名:<span>{{ sStudent.student }}</span>
  11170. </div>
  11171. <div>上传文件</div>
  11172. <div
  11173. class="chapter_add"
  11174. @click="addImg($event)"
  11175. v-if="studyJuri[0].cover.length == 0"
  11176. >
  11177. <div class="up_photo">
  11178. <img src="../../assets/uploadImg2.png" alt />
  11179. </div>
  11180. <!-- <input
  11181. type="file"
  11182. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11183. style="display: none"
  11184. @change="beforeUpload1($event, 1)"
  11185. /> -->
  11186. <input
  11187. type="file"
  11188. accept="*"
  11189. style="display: none"
  11190. @change="beforeUpload1($event, 1)"
  11191. />
  11192. </div>
  11193. <!-- capture="camera" -->
  11194. <div
  11195. class="chapter_add"
  11196. style="
  11197. display: flex;
  11198. width: 100%;
  11199. flex-direction: row;
  11200. flex-wrap: wrap;
  11201. justify-content: flex-start;
  11202. padding: 15px 0;
  11203. "
  11204. v-if="studyJuri[0].cover.length > 0"
  11205. >
  11206. <div class="upCover">
  11207. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11208. <img :src="word" alt v-else-if="fileType == 1" />
  11209. <img :src="video" alt v-else-if="fileType == 2" />
  11210. <img :src="word2" alt v-else-if="fileType == 3" />
  11211. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11212. <div class="deleteWord" @click="clean(1)">
  11213. <img src="../../assets/icon/deleteWorks.png" alt />
  11214. </div>
  11215. </div>
  11216. </div>
  11217. </div>
  11218. <div
  11219. class="upload_send"
  11220. @click="addCourseWorksTeacher(taskCount)"
  11221. v-if="!proVisible"
  11222. >
  11223. 提交
  11224. </div>
  11225. </el-dialog>
  11226. <el-dialog
  11227. title="问答"
  11228. :visible.sync="answerDialogVisibleTeacher"
  11229. :append-to-body="true"
  11230. width="800px"
  11231. :before-close="handleClose"
  11232. class="dialog_diy"
  11233. >
  11234. <div>
  11235. <div class="w_name">
  11236. 学生姓名:<span>{{ sStudent.student }}</span>
  11237. </div>
  11238. <div
  11239. style="
  11240. display: flex;
  11241. flex-wrap: nowrap;
  11242. flex-direction: column;
  11243. position: relative;
  11244. "
  11245. >
  11246. <div class="queTop" style="padding: 20px 0 20px 0">
  11247. <div class="question">
  11248. <img src="../../assets/icon/question.png" alt />
  11249. </div>
  11250. <div class="queTitle">
  11251. <div style="width: 90px; min-width: 90px">提问:</div>
  11252. <div>{{ answerQ }}</div>
  11253. </div>
  11254. </div>
  11255. <div class="ediBottom">
  11256. <textarea
  11257. rows="6"
  11258. class="binfo_input"
  11259. cols
  11260. style="width: 95%; height: 120px"
  11261. v-model="questionAnswer"
  11262. ></textarea>
  11263. </div>
  11264. </div>
  11265. </div>
  11266. <div slot="footer">
  11267. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  11268. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  11269. </div>
  11270. </el-dialog>
  11271. <ImgDraw
  11272. :drawShow="drawShow"
  11273. @closeDraw="closeDraw"
  11274. @addImgDraw="addImgDraw"
  11275. :bg="bg"
  11276. ></ImgDraw>
  11277. <el-dialog
  11278. title="表格"
  11279. :visible.sync="dialogVisibleTable"
  11280. :append-to-body="true"
  11281. width="95%"
  11282. :before-close="handleClose"
  11283. class="dialog_diy"
  11284. >
  11285. <el-form>
  11286. <div>表格内容</div>
  11287. <Table
  11288. v-model="tableJson.text"
  11289. @change="change"
  11290. v-if="dialogVisibleTable"
  11291. ></Table>
  11292. </el-form>
  11293. <span slot="footer" class="dialog-footer">
  11294. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11295. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11296. </span>
  11297. </el-dialog>
  11298. <el-dialog
  11299. title="表格"
  11300. :visible.sync="dialogVisibleTableTeacher"
  11301. :append-to-body="true"
  11302. width="95%"
  11303. :before-close="handleClose"
  11304. class="dialog_diy"
  11305. >
  11306. <el-form>
  11307. <div class="w_name">
  11308. 学生姓名:<span>{{ sStudent.student }}</span>
  11309. </div>
  11310. <div>表格内容</div>
  11311. <Table
  11312. v-model="tableJson.text"
  11313. @change="change"
  11314. v-if="dialogVisibleTableTeacher"
  11315. ></Table>
  11316. </el-form>
  11317. <span slot="footer" class="dialog-footer">
  11318. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11319. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11320. </span>
  11321. </el-dialog>
  11322. <el-dialog
  11323. title="文档"
  11324. :visible.sync="dialogVisibleWord"
  11325. :append-to-body="true"
  11326. width="95%"
  11327. :before-close="handleClose"
  11328. class="dialog_diy"
  11329. >
  11330. <el-form>
  11331. <div>文档内容</div>
  11332. <editor-bar
  11333. v-model="wordJson.text"
  11334. v-if="dialogVisibleWord"
  11335. ></editor-bar>
  11336. </el-form>
  11337. <span slot="footer" class="dialog-footer">
  11338. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11339. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11340. </span>
  11341. </el-dialog>
  11342. <el-dialog
  11343. title="文档"
  11344. :visible.sync="dialogVisibleWordTeacher"
  11345. :append-to-body="true"
  11346. width="95%"
  11347. :before-close="handleClose"
  11348. class="dialog_diy"
  11349. >
  11350. <el-form>
  11351. <div class="w_name">
  11352. 学生姓名:<span>{{ sStudent.student }}</span>
  11353. </div>
  11354. <div>文档内容</div>
  11355. <editor-bar
  11356. v-model="wordJson.text"
  11357. v-if="dialogVisibleWordTeacher"
  11358. ></editor-bar>
  11359. </el-form>
  11360. <span slot="footer" class="dialog-footer">
  11361. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11362. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11363. </span>
  11364. </el-dialog>
  11365. <el-dialog
  11366. title="表格"
  11367. :visible.sync="dialogVisibleTable2"
  11368. :append-to-body="true"
  11369. width="95%"
  11370. :before-close="handleClose"
  11371. class="dialog_diy"
  11372. >
  11373. <el-form>
  11374. <div class="cont" v-html="tableJson.text"></div>
  11375. </el-form>
  11376. <span slot="footer" class="dialog-footer">
  11377. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11378. </span>
  11379. </el-dialog>
  11380. <el-dialog
  11381. title="文档"
  11382. :visible.sync="dialogVisibleTable3"
  11383. :append-to-body="true"
  11384. width="95%"
  11385. :before-close="handleClose"
  11386. class="dialog_diy"
  11387. >
  11388. <el-form>
  11389. <div class="cont" v-html="tableJson.text"></div>
  11390. </el-form>
  11391. <span slot="footer" class="dialog-footer">
  11392. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11393. </span>
  11394. </el-dialog>
  11395. <el-dialog
  11396. title="分组设置"
  11397. :visible.sync="dialogVisibleGroup"
  11398. :append-to-body="true"
  11399. width="95%"
  11400. :before-close="handleClose"
  11401. class="dialog_diy"
  11402. >
  11403. <div v-if="dialogVisibleGroup">
  11404. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11405. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11406. 提示:需要锁定位置,才能点击头像修改座位。
  11407. </div>
  11408. <div
  11409. type="primary"
  11410. v-if="groupJson.islock == 1"
  11411. class="returnBtn"
  11412. style="background-color: #225bc7"
  11413. @click="lockChair"
  11414. >
  11415. 锁定位置
  11416. </div>
  11417. <div
  11418. type="primary"
  11419. v-else
  11420. class="returnBtn"
  11421. style="background-color: #225bc7"
  11422. @click="lockChair"
  11423. >
  11424. 解锁位置
  11425. </div>
  11426. <div
  11427. type="primary"
  11428. @click="updateGroup"
  11429. class="returnBtn"
  11430. style="background-color: #225bc7"
  11431. >
  11432. 分组设置
  11433. </div>
  11434. </div>
  11435. <div>
  11436. <div
  11437. class="g_d_box"
  11438. v-if="groupJson.group && groupStudent[toolindex]"
  11439. >
  11440. <div
  11441. class="g_d_group"
  11442. v-for="(g, gindex) in groupJson.group"
  11443. :key="gindex"
  11444. >
  11445. <div class="g_d_group_chair">
  11446. <div v-if="groupJson.number > 1">
  11447. <span
  11448. :class="{
  11449. isChair:
  11450. groupStudent[toolindex][gindex] &&
  11451. groupStudent[toolindex][gindex][0],
  11452. updateChair:
  11453. courseDetail.userid == userid &&
  11454. groupStudent[toolindex][gindex] &&
  11455. groupStudent[toolindex][gindex][0] &&
  11456. groupJson.islock == 2,
  11457. }"
  11458. ><span
  11459. class="updateChairBtn"
  11460. @click="
  11461. updateGroupChair(
  11462. groupStudent[toolindex][gindex] &&
  11463. groupStudent[toolindex][gindex][0]
  11464. )
  11465. "
  11466. >修改</span
  11467. ></span
  11468. ><span>{{
  11469. groupStudent[toolindex][gindex] &&
  11470. groupStudent[toolindex][gindex][0]
  11471. ? groupStudent[toolindex][gindex] &&
  11472. groupStudent[toolindex][gindex][0].name
  11473. : "空位置"
  11474. }}</span>
  11475. </div>
  11476. <div v-if="groupJson.number > 4">
  11477. <span
  11478. :class="{
  11479. isChair:
  11480. groupStudent[toolindex][gindex] &&
  11481. groupStudent[toolindex][gindex][4],
  11482. updateChair:
  11483. courseDetail.userid == userid &&
  11484. groupStudent[toolindex][gindex] &&
  11485. groupStudent[toolindex][gindex][4] &&
  11486. groupJson.islock == 2,
  11487. }"
  11488. ><span
  11489. class="updateChairBtn"
  11490. @click="
  11491. updateGroupChair(
  11492. groupStudent[toolindex][gindex] &&
  11493. groupStudent[toolindex][gindex][4]
  11494. )
  11495. "
  11496. >修改</span
  11497. ></span
  11498. ><span>{{
  11499. groupStudent[toolindex][gindex] &&
  11500. groupStudent[toolindex][gindex][4]
  11501. ? groupStudent[toolindex][gindex] &&
  11502. groupStudent[toolindex][gindex][4].name
  11503. : "空位置"
  11504. }}</span>
  11505. </div>
  11506. <div v-if="groupJson.number > 8">
  11507. <span
  11508. :class="{
  11509. isChair:
  11510. groupStudent[toolindex][gindex] &&
  11511. groupStudent[toolindex][gindex][8],
  11512. updateChair:
  11513. courseDetail.userid == userid &&
  11514. groupStudent[toolindex][gindex] &&
  11515. groupStudent[toolindex][gindex][8] &&
  11516. groupJson.islock == 2,
  11517. }"
  11518. ><span
  11519. class="updateChairBtn"
  11520. @click="
  11521. updateGroupChair(
  11522. groupStudent[toolindex][gindex] &&
  11523. groupStudent[toolindex][gindex][8]
  11524. )
  11525. "
  11526. >修改</span
  11527. ></span
  11528. ><span>{{
  11529. groupStudent[toolindex][gindex] &&
  11530. groupStudent[toolindex][gindex][8]
  11531. ? groupStudent[toolindex][gindex] &&
  11532. groupStudent[toolindex][gindex][8].name
  11533. : "空位置"
  11534. }}</span>
  11535. </div>
  11536. </div>
  11537. <div class="g_d_group_tableBox">
  11538. <div class="g_d_group_chair2">
  11539. <div v-if="groupJson.number > 2">
  11540. <span
  11541. :class="{
  11542. isChair:
  11543. groupStudent[toolindex][gindex] &&
  11544. groupStudent[toolindex][gindex][2],
  11545. updateChair:
  11546. courseDetail.userid == userid &&
  11547. groupStudent[toolindex][gindex] &&
  11548. groupStudent[toolindex][gindex][2] &&
  11549. groupJson.islock == 2,
  11550. }"
  11551. ><span
  11552. class="updateChairBtn"
  11553. @click="
  11554. updateGroupChair(
  11555. groupStudent[toolindex][gindex] &&
  11556. groupStudent[toolindex][gindex][2]
  11557. )
  11558. "
  11559. >修改</span
  11560. ></span
  11561. ><span>{{
  11562. groupStudent[toolindex][gindex] &&
  11563. groupStudent[toolindex][gindex][2]
  11564. ? groupStudent[toolindex][gindex] &&
  11565. groupStudent[toolindex][gindex][2].name
  11566. : "空位置"
  11567. }}</span>
  11568. </div>
  11569. <div v-if="groupJson.number > 6">
  11570. <span
  11571. :class="{
  11572. isChair:
  11573. groupStudent[toolindex][gindex] &&
  11574. groupStudent[toolindex][gindex][6],
  11575. updateChair:
  11576. courseDetail.userid == userid &&
  11577. groupStudent[toolindex][gindex] &&
  11578. groupStudent[toolindex][gindex][6] &&
  11579. groupJson.islock == 2,
  11580. }"
  11581. ><span
  11582. class="updateChairBtn"
  11583. @click="
  11584. updateGroupChair(
  11585. groupStudent[toolindex][gindex] &&
  11586. groupStudent[toolindex][gindex][6]
  11587. )
  11588. "
  11589. >修改</span
  11590. ></span
  11591. ><span>{{
  11592. groupStudent[toolindex][gindex] &&
  11593. groupStudent[toolindex][gindex][6]
  11594. ? groupStudent[toolindex][gindex] &&
  11595. groupStudent[toolindex][gindex][6].name
  11596. : "空位置"
  11597. }}</span>
  11598. </div>
  11599. </div>
  11600. <div class="g_d_group_table">
  11601. <div>
  11602. {{ g.name }}
  11603. </div>
  11604. <div>
  11605. <div
  11606. v-if="
  11607. courseDetail.userid == userid && groupJson.islock == 2
  11608. "
  11609. @click="deleteGroupChair(gindex)"
  11610. >
  11611. 移除组员
  11612. </div>
  11613. <div
  11614. @click="selectGroup(gindex)"
  11615. v-else-if="
  11616. groupStudentUid[toolindex] &&
  11617. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11618. "
  11619. >
  11620. 加入分组
  11621. </div>
  11622. <div
  11623. @click="
  11624. exitGroup(
  11625. groupStudent[toolindex][gindex] &&
  11626. groupStudent[toolindex][gindex][
  11627. groupStudentUid[toolindex][gindex].indexOf(userid)
  11628. ].id
  11629. )
  11630. "
  11631. v-else-if="
  11632. groupStudentUid[toolindex] &&
  11633. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11634. "
  11635. >
  11636. 退出分组
  11637. </div>
  11638. </div>
  11639. </div>
  11640. <div class="g_d_group_chair2">
  11641. <div v-if="groupJson.number > 3">
  11642. <span
  11643. :class="{
  11644. isChair:
  11645. groupStudent[toolindex][gindex] &&
  11646. groupStudent[toolindex][gindex][3],
  11647. updateChair:
  11648. courseDetail.userid == userid &&
  11649. groupStudent[toolindex][gindex] &&
  11650. groupStudent[toolindex][gindex][3] &&
  11651. groupJson.islock == 2,
  11652. }"
  11653. ><span
  11654. class="updateChairBtn"
  11655. @click="
  11656. updateGroupChair(
  11657. groupStudent[toolindex][gindex] &&
  11658. groupStudent[toolindex][gindex][3]
  11659. )
  11660. "
  11661. >修改</span
  11662. ></span
  11663. ><span>{{
  11664. groupStudent[toolindex][gindex] &&
  11665. groupStudent[toolindex][gindex][3]
  11666. ? groupStudent[toolindex][gindex] &&
  11667. groupStudent[toolindex][gindex][3].name
  11668. : "空位置"
  11669. }}</span>
  11670. </div>
  11671. <div v-if="groupJson.number > 7">
  11672. <span
  11673. :class="{
  11674. isChair:
  11675. groupStudent[toolindex][gindex] &&
  11676. groupStudent[toolindex][gindex][7],
  11677. updateChair:
  11678. courseDetail.userid == userid &&
  11679. groupStudent[toolindex][gindex] &&
  11680. groupStudent[toolindex][gindex][7] &&
  11681. groupJson.islock == 2,
  11682. }"
  11683. ><span
  11684. class="updateChairBtn"
  11685. @click="
  11686. updateGroupChair(
  11687. groupStudent[toolindex][gindex] &&
  11688. groupStudent[toolindex][gindex][7]
  11689. )
  11690. "
  11691. >修改</span
  11692. ></span
  11693. ><span>{{
  11694. groupStudent[toolindex][gindex] &&
  11695. groupStudent[toolindex][gindex][7]
  11696. ? groupStudent[toolindex][gindex] &&
  11697. groupStudent[toolindex][gindex][7].name
  11698. : "空位置"
  11699. }}</span>
  11700. </div>
  11701. </div>
  11702. </div>
  11703. <div class="g_d_group_chair">
  11704. <div v-if="groupJson.number > 1">
  11705. <span
  11706. :class="{
  11707. isChair:
  11708. groupStudent[toolindex][gindex] &&
  11709. groupStudent[toolindex][gindex][1],
  11710. updateChair:
  11711. courseDetail.userid == userid &&
  11712. groupStudent[toolindex][gindex] &&
  11713. groupStudent[toolindex][gindex][1] &&
  11714. groupJson.islock == 2,
  11715. }"
  11716. ><span
  11717. class="updateChairBtn"
  11718. @click="
  11719. updateGroupChair(
  11720. groupStudent[toolindex][gindex] &&
  11721. groupStudent[toolindex][gindex][1]
  11722. )
  11723. "
  11724. >修改</span
  11725. ></span
  11726. ><span>{{
  11727. groupStudent[toolindex][gindex] &&
  11728. groupStudent[toolindex][gindex][1]
  11729. ? groupStudent[toolindex][gindex] &&
  11730. groupStudent[toolindex][gindex][1].name
  11731. : "空位置"
  11732. }}</span>
  11733. </div>
  11734. <div v-if="groupJson.number > 5">
  11735. <span
  11736. :class="{
  11737. isChair:
  11738. groupStudent[toolindex][gindex] &&
  11739. groupStudent[toolindex][gindex][5],
  11740. updateChair:
  11741. courseDetail.userid == userid &&
  11742. groupStudent[toolindex][gindex] &&
  11743. groupStudent[toolindex][gindex][5] &&
  11744. groupJson.islock == 2,
  11745. }"
  11746. ><span
  11747. class="updateChairBtn"
  11748. @click="
  11749. updateGroupChair(
  11750. groupStudent[toolindex][gindex] &&
  11751. groupStudent[toolindex][gindex][5]
  11752. )
  11753. "
  11754. >修改</span
  11755. ></span
  11756. ><span>{{
  11757. groupStudent[toolindex][gindex] &&
  11758. groupStudent[toolindex][gindex][5]
  11759. ? groupStudent[toolindex][gindex] &&
  11760. groupStudent[toolindex][gindex][5].name
  11761. : "空位置"
  11762. }}</span>
  11763. </div>
  11764. <div v-if="groupJson.number > 9">
  11765. <span
  11766. :class="{
  11767. isChair:
  11768. groupStudent[toolindex][gindex] &&
  11769. groupStudent[toolindex][gindex][9],
  11770. updateChair:
  11771. courseDetail.userid == userid &&
  11772. groupStudent[toolindex][gindex] &&
  11773. groupStudent[toolindex][gindex][9] &&
  11774. groupJson.islock == 2,
  11775. }"
  11776. ><span
  11777. class="updateChairBtn"
  11778. @click="
  11779. updateGroupChair(
  11780. groupStudent[toolindex][gindex] &&
  11781. groupStudent[toolindex][gindex][9]
  11782. )
  11783. "
  11784. >修改</span
  11785. ></span
  11786. ><span>{{
  11787. groupStudent[toolindex][gindex] &&
  11788. groupStudent[toolindex][gindex][9]
  11789. ? groupStudent[toolindex][gindex] &&
  11790. groupStudent[toolindex][gindex][9].name
  11791. : "空位置"
  11792. }}</span>
  11793. </div>
  11794. </div>
  11795. </div>
  11796. </div>
  11797. </div>
  11798. </div>
  11799. <span slot="footer" class="dialog-footer">
  11800. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11801. </span>
  11802. </el-dialog>
  11803. <el-dialog
  11804. title="分组设置"
  11805. :visible.sync="dialogVisibleGroup2"
  11806. :append-to-body="true"
  11807. width="650px"
  11808. :before-close="handleClose"
  11809. class="dialog_diy"
  11810. >
  11811. <div class="groupBox">
  11812. <div v-if="groupJson2.group" class="groupContent">
  11813. <div class="groupTitle">请设置小组数量及名称</div>
  11814. <div
  11815. v-for="(item, index) in groupJson2.group"
  11816. :key="index"
  11817. class="groupName"
  11818. >
  11819. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11820. <el-input
  11821. v-model="item.name"
  11822. placeholder="请输入名称..."
  11823. style="width: 250px"
  11824. ></el-input>
  11825. <!-- <div class="groupBtn">
  11826. <el-button type="primary" size="small" @click="addGroup(index)">
  11827. 添加</el-button>
  11828. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11829. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11830. </div> -->
  11831. </div>
  11832. </div>
  11833. <div class="groupContent">
  11834. <div class="groupTitle">请设置每组人数</div>
  11835. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11836. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11837. <el-input
  11838. v-model="groupJson.number"
  11839. style="width: 150px"
  11840. placeholder="请输入2-10的数字"
  11841. @change="numberPan"
  11842. ></el-input>
  11843. </div>
  11844. </div>
  11845. <span slot="footer" class="dialog-footer">
  11846. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11847. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11848. </span>
  11849. </el-dialog>
  11850. <el-dialog
  11851. title="作业提交"
  11852. :visible.sync="dialogVisibleGroupWork"
  11853. :append-to-body="true"
  11854. width="500px"
  11855. :before-close="handleClose"
  11856. class="dialog_change"
  11857. >
  11858. <div class="marginT">
  11859. <div>上传文件</div>
  11860. <div
  11861. class="chapter_add"
  11862. @click="addImg($event)"
  11863. v-if="studyJuri[0].cover.length == 0"
  11864. >
  11865. <div class="up_photo">
  11866. <img src="../../assets/icon/uploadImg.png" alt />
  11867. </div>
  11868. <!-- <input
  11869. type="file"
  11870. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11871. style="display: none"
  11872. @change="beforeUpload1($event, 1)"
  11873. /> -->
  11874. <input
  11875. type="file"
  11876. accept="*"
  11877. style="display: none"
  11878. @change="beforeUpload1($event, 1)"
  11879. />
  11880. </div>
  11881. <!-- capture="camera" -->
  11882. <div
  11883. class="chapter_add"
  11884. style="
  11885. display: flex;
  11886. width: 100%;
  11887. flex-direction: row;
  11888. flex-wrap: wrap;
  11889. justify-content: flex-start;
  11890. padding: 15px 0;
  11891. "
  11892. v-if="studyJuri[0].cover.length > 0"
  11893. >
  11894. <div class="upCover">
  11895. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11896. <img :src="word" alt v-else-if="fileType == 1" />
  11897. <img :src="video" alt v-else-if="fileType == 2" />
  11898. <img :src="word2" alt v-else-if="fileType == 3" />
  11899. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11900. <div class="deleteWord" @click="clean(1)">
  11901. <img src="../../assets/icon/deleteWorks.png" alt />
  11902. </div>
  11903. </div>
  11904. </div>
  11905. </div>
  11906. <div
  11907. class="upload_send"
  11908. @click="addCourseWorks2(taskCount)"
  11909. v-if="!proVisible"
  11910. >
  11911. 提交
  11912. </div>
  11913. </el-dialog>
  11914. <el-dialog
  11915. title="修改分组"
  11916. :visible.sync="dialogVisibleUpdateGroup"
  11917. :append-to-body="true"
  11918. width="350px"
  11919. :before-close="handleClose"
  11920. class="dialog_diy"
  11921. >
  11922. <div>
  11923. <h2>
  11924. {{ this.updateGroupUser.name }}
  11925. </h2>
  11926. <div style="color: rgb(171 171 171); margin-top: 10px">
  11927. 请选择要进入的分组
  11928. </div>
  11929. <el-radio-group v-model="checkChair">
  11930. <el-radio
  11931. style="display: block; margin-top: 20px"
  11932. v-for="(item, index) in updateGroupArray"
  11933. :label="item.label"
  11934. :key="index"
  11935. >{{ item.name }}</el-radio
  11936. >
  11937. </el-radio-group>
  11938. </div>
  11939. <span slot="footer" class="dialog-footer">
  11940. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11941. <el-button type="primary" @click="updateChair">确定</el-button>
  11942. </span>
  11943. </el-dialog>
  11944. <el-dialog
  11945. title="移除组员"
  11946. :visible.sync="dialogVisibleDeleteGroup"
  11947. :append-to-body="true"
  11948. width="350px"
  11949. :before-close="handleClose"
  11950. class="dialog_diy"
  11951. >
  11952. <div>
  11953. <h2>
  11954. {{ this.deleteGroupArray.name }}
  11955. </h2>
  11956. <div style="color: rgb(171 171 171); margin-top: 10px">
  11957. 请选择要删除的组员
  11958. </div>
  11959. <el-checkbox-group v-model="checkDeleteGroup">
  11960. <el-checkbox
  11961. style="display: flex; margin-top: 20px"
  11962. v-for="(item, index) in deleteGroupUser"
  11963. :label="item.userid"
  11964. :key="index"
  11965. >{{ item.name }}</el-checkbox
  11966. >
  11967. </el-checkbox-group>
  11968. </div>
  11969. <span slot="footer" class="dialog-footer">
  11970. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11971. <el-button type="primary" @click="deleteChair">确定</el-button>
  11972. </span>
  11973. </el-dialog>
  11974. <el-dialog
  11975. title="批量上传"
  11976. :visible.sync="dialogVisiblePl"
  11977. :append-to-body="true"
  11978. width="700px"
  11979. :before-close="handleClose"
  11980. class="dialog_change"
  11981. >
  11982. <div class="marginT">
  11983. <div class="plworkBox">
  11984. <div
  11985. class="chapter_add"
  11986. style="
  11987. display: flex;
  11988. width: 150px;
  11989. flex-direction: row;
  11990. flex-wrap: wrap;
  11991. justify-content: flex-start;
  11992. margin: 0 10px 10px 0;
  11993. "
  11994. v-for="(item, index) in plworkFile"
  11995. :key="index"
  11996. >
  11997. <div class="upCover2">
  11998. <img
  11999. :src="item.url"
  12000. alt
  12001. v-if="item.fileType == 1"
  12002. @click="previewImg(item.url)"
  12003. />
  12004. <img :src="word" alt v-else-if="item.fileType == 4" />
  12005. <img :src="video" alt v-else />
  12006. <!-- <span class="picName">{{ item.name }}</span> -->
  12007. <!-- <el-input
  12008. v-model="item.username"
  12009. placeholder="请输入学生名字"
  12010. style="margin-top: 10px"
  12011. ></el-input> -->
  12012. <div
  12013. class="pl_select_box"
  12014. @click="
  12015. getUpdateMore(true, checkUpload(), item.username, index)
  12016. "
  12017. >
  12018. {{ getSName(item.username) }}
  12019. </div>
  12020. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  12021. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  12022. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  12023. </el-option>
  12024. </el-select> -->
  12025. <div class="deleteWord" @click="clean2(index)">
  12026. <img src="../../assets/icon/deleteWorks.png" alt />
  12027. </div>
  12028. </div>
  12029. </div>
  12030. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12031. <div class="up_photo2">
  12032. <img src="../../assets/icon/plwork.png" alt />
  12033. <span>点击上传文件</span>
  12034. </div>
  12035. <input
  12036. type="file"
  12037. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12038. multiple="multiple"
  12039. style="display: none"
  12040. @change="beforeUpload3($event, 6)"
  12041. />
  12042. </div>
  12043. </div>
  12044. </div>
  12045. <!-- capture="camera" -->
  12046. <div
  12047. class="upload_send"
  12048. @click="addCourseWorksPl(taskCount)"
  12049. v-if="!proVisible2"
  12050. >
  12051. 提交
  12052. </div>
  12053. </el-dialog>
  12054. <el-dialog
  12055. title="修改名称"
  12056. :visible.sync="dialogVisibleSname"
  12057. width="500px"
  12058. :before-close="handleClose"
  12059. class="dialog_diy"
  12060. center
  12061. >
  12062. <div
  12063. style="
  12064. text-align: center;
  12065. display: flex;
  12066. align-items: center;
  12067. justify-content: center;
  12068. "
  12069. >
  12070. <span class="tian1">名称</span>
  12071. <div
  12072. class="pl_select_box"
  12073. style="margin-left: 10px; width: 200px"
  12074. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12075. >
  12076. {{ getSName(worksSName) }}
  12077. </div>
  12078. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12079. placeholder="请选择学生">
  12080. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12081. :value="item.userid">
  12082. </el-option>
  12083. </el-select> -->
  12084. <!-- <el-input
  12085. v-model="worksSName"
  12086. style="width: 250px; margin: 15px 0px"
  12087. ></el-input> -->
  12088. </div>
  12089. <span slot="footer" class="dialog-footer">
  12090. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12091. <el-button type="primary" @click="updateName">确 定</el-button>
  12092. </span>
  12093. </el-dialog>
  12094. <interVideo
  12095. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12096. :videoJson="videoJson"
  12097. :userid="userid"
  12098. :id="id"
  12099. :courseType="courseType"
  12100. :taskCount="taskCount"
  12101. :toolindex="toolindex"
  12102. ></interVideo>
  12103. <UpdateMore
  12104. :dialogVisibleMember.sync="dialogVisibleMember"
  12105. :cList="uploadStudentJuri"
  12106. :userid="userid"
  12107. :searchTN="worksSName2"
  12108. @setPlname="setPlname"
  12109. ></UpdateMore>
  12110. <wordCloud
  12111. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12112. :data="wordCloudData"
  12113. ></wordCloud>
  12114. <el-dialog
  12115. title="挑人"
  12116. :visible.sync="dialogVisiblePickPeople"
  12117. width="650px"
  12118. :before-close="handleClose"
  12119. class="dialog_diy"
  12120. center
  12121. >
  12122. <div class="pick_box">
  12123. <div
  12124. class="noWorksName"
  12125. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12126. v-for="(item, index) in uploadStudentJuri"
  12127. :key="index"
  12128. @click="pickStudent(item)"
  12129. >
  12130. {{ item.name }}
  12131. </div>
  12132. </div>
  12133. </el-dialog>
  12134. </div>
  12135. </template>
  12136. <script>
  12137. import "../../common/aws-sdk-2.235.1.min.js";
  12138. // import pdf from "../components/pdf3";
  12139. import pdf from "../components/vpdf";
  12140. import AskStatic from "../components/askStatic";
  12141. import AskStatic2 from "../components/askStatic2";
  12142. import AnswerData2 from "../components/answerData2";
  12143. import AnswerData from "../components/answerData";
  12144. import EditorBar from "../tools/wangEnduit.vue";
  12145. import Table from "../tools/table.vue";
  12146. import Time from "../tools/time.vue";
  12147. import Mind from "../tools/jsmind.vue";
  12148. import Sunburst from "../tools/sunburst";
  12149. import SeeBoard from "../tools/seeBoard";
  12150. import * as imageConversion from "image-conversion";
  12151. import Audio from "../components/audio.vue";
  12152. import ImgDraw from "../tools/imgDraw/imgDraw";
  12153. import { Empty } from "element-ui";
  12154. import RecordRTC from "recordrtc";
  12155. import interVideo from "../interVideo/index.vue";
  12156. import UpdateMore from "../updateMore/updateMore.vue";
  12157. import wordCloud from "../wordCloud/index.vue";
  12158. import axios from "axios";
  12159. import JSZip from "jszip";
  12160. import FileSaver from "file-saver";
  12161. const getFile = (url) => {
  12162. return new Promise((resolve, reject) => {
  12163. axios({
  12164. method: "get",
  12165. url,
  12166. responseType: "blob",
  12167. })
  12168. .then((data) => {
  12169. resolve({ data: data.data });
  12170. })
  12171. .catch((error) => {
  12172. resolve({ data: 1 });
  12173. // reject(error.toString());
  12174. });
  12175. });
  12176. };
  12177. export default {
  12178. components: {
  12179. EditorBar,
  12180. Time,
  12181. pdf,
  12182. AskStatic,
  12183. AskStatic2,
  12184. Mind,
  12185. Sunburst,
  12186. SeeBoard,
  12187. AnswerData2,
  12188. AnswerData,
  12189. Audio,
  12190. ImgDraw,
  12191. Table,
  12192. interVideo,
  12193. UpdateMore,
  12194. wordCloud,
  12195. },
  12196. data() {
  12197. return {
  12198. bg: null,
  12199. drawShow: false,
  12200. dialogVisible: false,
  12201. dialogVisiblePl: false,
  12202. commentDialogVisible: false,
  12203. videoVisible: false,
  12204. isStar: false,
  12205. studentEvalDialogVisible: false,
  12206. studentEvalDialogVisibleTeacher: false,
  12207. dialogVisibleSelect: false,
  12208. dialogVisibleSelectTeacher: false,
  12209. dialogVisibleScore: false,
  12210. dialogVisibleSentence: false,
  12211. dialogVisibleSentenceTeacher: false,
  12212. dialogVisibleSentence1: false,
  12213. dialogVisibleWorks: false,
  12214. answerDialogVisibleTeacher: false,
  12215. dialogVisibleTable: false,
  12216. dialogVisibleTableTeacher: false,
  12217. dialogVisibleWord: false,
  12218. dialogVisibleWordTeacher: false,
  12219. dialogVisibleTable2: false,
  12220. dialogVisibleTable3: false,
  12221. dialogVisibleGroupWork: false,
  12222. dialogVisibleUpdateGroup: false,
  12223. dialogVisibleDeleteGroup: false,
  12224. dialogVisibleSname: false,
  12225. dialogVisibleVideo: false,
  12226. dialogVisiblePickPeople: false,
  12227. isClose: 0,
  12228. worksSName: "",
  12229. classJuri: [],
  12230. uploadStudentJuri: [],
  12231. uploadCid: "",
  12232. snameWid: "",
  12233. sStudent: {},
  12234. sTool: "",
  12235. bzText: "",
  12236. commentDetail: [],
  12237. selectAnswer: [],
  12238. videoDetail: {},
  12239. selectJson: {},
  12240. eScore: { eBzText: "", eStar: [] },
  12241. id: this.$route.query.courseId,
  12242. userid: this.$route.query.userid,
  12243. classId: this.$route.query.cid,
  12244. // courseTypeLine: this.$route.query.type,
  12245. oid: this.$route.query.oid,
  12246. org: this.$route.query.org,
  12247. tType: this.$route.query.tType,
  12248. courseType: this.$route.query.type,
  12249. screenType: this.$route.query.screenType,
  12250. tcid2: this.$route.query.tcid,
  12251. tcid: "",
  12252. pptImgUrl: "",
  12253. pptImgUrl1: "",
  12254. commentText: "",
  12255. full: false,
  12256. sIsOpen: false,
  12257. IsLookOpen: false,
  12258. IsFollow: false,
  12259. pzDialog: false,
  12260. contentDialog: false,
  12261. mlDialog: false,
  12262. type: 1,
  12263. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12264. sentenceList1: [],
  12265. tableJson: [],
  12266. wordJson: [],
  12267. vedio: [],
  12268. text: [],
  12269. textList: [],
  12270. line: [],
  12271. lineList: [],
  12272. chapTools: [],
  12273. chapToolList: [],
  12274. file: [],
  12275. fileC: [],
  12276. vedioTime: [],
  12277. upToolImg: "",
  12278. preTime: 0,
  12279. rateList: {
  12280. ca: 0,
  12281. },
  12282. rateParams: [],
  12283. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12284. studyJuri: [
  12285. {
  12286. content: "",
  12287. cover: [],
  12288. upVedio: [],
  12289. upFile: [],
  12290. },
  12291. ],
  12292. plworkFile: [],
  12293. mr: require("../../assets/vedioPic.png"),
  12294. word: require("../../assets/icon/isWord.png"),
  12295. word2: require("../../assets/icon/word2.png"),
  12296. video: require("../../assets/icon/isVideo.png"),
  12297. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12298. likes: require("../../assets/icon/comment/likes.png"),
  12299. scoreImg: require("../../assets/score.png"),
  12300. courseDetail: {},
  12301. isSelect: false,
  12302. chapInfo: [],
  12303. chapInfoList: [],
  12304. taskCount: 0,
  12305. imgList: [],
  12306. noImgList: [],
  12307. pzList: [],
  12308. PlTextList: [
  12309. "Excellent!",
  12310. "nice!",
  12311. "很有创意!",
  12312. "还不错哦~",
  12313. "继续努力哦~",
  12314. ],
  12315. isClickNav: "",
  12316. navId: "",
  12317. playerOptions: {
  12318. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12319. autoplay: false, //如果true,浏览器准备好时开始回放。
  12320. muted: false, // 默认情况下将会消除任何音频。
  12321. loop: false, // 导致视频一结束就重新开始。
  12322. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12323. language: "zh-CN",
  12324. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12325. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12326. sources: [
  12327. {
  12328. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12329. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  12330. },
  12331. ],
  12332. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  12333. // poster: dataRes.imgUrl, //你的封面地址
  12334. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12335. controlBar: {
  12336. timeDivider: true, //当前时间和持续时间的分隔符
  12337. durationDisplay: true, //显示持续时间
  12338. remainingTimeDisplay: false, //是否显示剩余时间功能
  12339. fullscreenToggle: true, //全屏按钮
  12340. },
  12341. },
  12342. playerOptions1: {
  12343. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12344. autoplay: false, //如果true,浏览器准备好时开始回放。
  12345. muted: false, // 默认情况下将会消除任何音频。
  12346. loop: false, // 导致视频一结束就重新开始。
  12347. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12348. language: "zh-CN",
  12349. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12350. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12351. sources: [
  12352. {
  12353. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12354. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  12355. },
  12356. ],
  12357. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  12358. // poster: dataRes.imgUrl, //你的封面地址
  12359. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12360. controlBar: {
  12361. timeDivider: true, //当前时间和持续时间的分隔符
  12362. durationDisplay: true, //显示持续时间
  12363. remainingTimeDisplay: false, //是否显示剩余时间功能
  12364. fullscreenToggle: true, //全屏按钮
  12365. },
  12366. },
  12367. playerO: {},
  12368. noneBtnImg: false,
  12369. proVisible: false,
  12370. proVisible2: false,
  12371. progress: 0,
  12372. isFinishSize: 0,
  12373. isAllSize: 0,
  12374. questionAnswer: "",
  12375. answerQ: "", //问答标题
  12376. rateJson: [],
  12377. wbCount: 0,
  12378. wordCount: 0,
  12379. mindCount: 0,
  12380. askCount: 0,
  12381. noteCount: 0,
  12382. mindNetWorkCount: 0,
  12383. libraryCount: 0,
  12384. workCount: 0,
  12385. timeCount: 0,
  12386. answerCount: 0,
  12387. trainCount: 0,
  12388. evalCount: 0,
  12389. dialogImageUrl: "",
  12390. pictureDialog: false,
  12391. toolTypeList: [],
  12392. dialogVisible1: false,
  12393. dialogVisible2: false,
  12394. dialogVisible3: false,
  12395. dialogVisible6: false,
  12396. dialogVisible4: false,
  12397. isNoHomeWork: false,
  12398. dialogVisible5: false,
  12399. dialogVisible5Teacher: false,
  12400. dialogVisibleChoice: false,
  12401. dialogVisibleChoiceTeacher: false,
  12402. answerDialogVisible: false,
  12403. juriVisible: false,
  12404. timeDialogVisible: false,
  12405. replyDialogVisible: false,
  12406. toolDialogVisible: false,
  12407. replyIndex: 0,
  12408. replyPid: "",
  12409. radio: [],
  12410. isAsk: false,
  12411. askJson: {
  12412. askCount: 1,
  12413. askTitle: "",
  12414. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12415. },
  12416. testJson: {},
  12417. checkJson: [],
  12418. askList: [],
  12419. answerList: [],
  12420. navList: [],
  12421. addPzDialog: false,
  12422. ispzType: 1,
  12423. pzConText: "",
  12424. worksStudent: [],
  12425. worksStudent2: [],
  12426. worksTeacher: [],
  12427. isCloseList: [],
  12428. workStudent: [],
  12429. groupStudent: [],
  12430. groupStudentUid: [],
  12431. noWorksS: [],
  12432. isWorksS: [],
  12433. noWorksStudent: [],
  12434. toolindex: 0,
  12435. groupIndex: 0,
  12436. workTypeB: false,
  12437. workTypeC: false,
  12438. isAnswer: false,
  12439. isHovered: false,
  12440. isHovered1: false,
  12441. timer: null,
  12442. opertimer: null,
  12443. showType: 0,
  12444. fileType: 0,
  12445. showPDF: false,
  12446. noteName: "",
  12447. evaJuri: [],
  12448. evalua: "",
  12449. eTitle: "",
  12450. eName: "",
  12451. eJson: {},
  12452. fid: "", //一级
  12453. sid: "", //二级
  12454. tid: "", //二级
  12455. typeMode: 1,
  12456. eJSONNum: 0,
  12457. Etype: 1,
  12458. data: {
  12459. meta: {
  12460. name: "example",
  12461. author: "dd@163.com",
  12462. version: "0.2",
  12463. },
  12464. format: "node_array",
  12465. data: [{ id: "root", isroot: true, topic: "" }],
  12466. },
  12467. fullDialogVisible: false,
  12468. fulltype: "",
  12469. fullUrl: "",
  12470. commentIndexJson: {},
  12471. Stbodywidth: 0,
  12472. pzType: 1,
  12473. wScore: 0,
  12474. scoreDetail: "",
  12475. videoStart: false,
  12476. recorder: null,
  12477. groupJson: {},
  12478. groupJson2: {},
  12479. dialogVisibleGroup: false,
  12480. dialogVisibleGroup2: false,
  12481. updateGroupArray: [],
  12482. updateGroupUser: {},
  12483. deleteGroupUser: [],
  12484. deleteGroupArray: {},
  12485. checkChair: "",
  12486. checkDeleteGroup: [],
  12487. inviteCode: "",
  12488. courseGroupStudent: [],
  12489. courseGroupStudentUid: [],
  12490. courseGroup: {},
  12491. isGroup: false,
  12492. toolIndex: null,
  12493. tool: {},
  12494. isWorkTool: [
  12495. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12496. ], //, 40
  12497. videoJson: {},
  12498. toolType: 0,
  12499. checktoolArray: [],
  12500. vChapterData: [],
  12501. isUpdateToolDetail: false,
  12502. updateToolDetailInner: "",
  12503. plIndex: "",
  12504. worksSName2: "",
  12505. worksSid: "",
  12506. dialogVisibleWordCloud: false,
  12507. wordCloudData: [],
  12508. isPickStudent: [],
  12509. pzStype: 1,
  12510. };
  12511. },
  12512. methods: {
  12513. jump() {
  12514. window.parent.postMessage({ tools: "43" }, "*");
  12515. },
  12516. getUpdateMore(f, checkboxList, searchTN, index) {
  12517. this.dialogVisibleMember = f;
  12518. this.checkboxList = checkboxList;
  12519. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12520. this.plIndex = index;
  12521. },
  12522. setPlname(a) {
  12523. if (this.plworkFile.length) {
  12524. this.plworkFile[this.plIndex].username = a;
  12525. } else {
  12526. this.worksSName = a;
  12527. }
  12528. this.dialogVisibleMember = false;
  12529. },
  12530. previewImg(url) {
  12531. this.$hevueImgPreview(url);
  12532. },
  12533. checkImg(list) {
  12534. if (!list.length) {
  12535. return;
  12536. }
  12537. this.$hevueImgPreview({
  12538. multiple: true, // 开启多图预览模式
  12539. imgList: list, // 需要预览的多图数组
  12540. });
  12541. },
  12542. change(val) {
  12543. console.log(val);
  12544. },
  12545. goTo(path) {
  12546. this.$router.push(path);
  12547. },
  12548. handlePictureCardPreview(url) {
  12549. this.dialogImageUrl = url;
  12550. this.pictureDialog = true;
  12551. },
  12552. clean(type) {
  12553. if (type == 1) {
  12554. this.studyJuri[0].cover.splice(0, 1);
  12555. } else if (type == 2) {
  12556. this.studyJuri[0].upVedio.splice(0, 1);
  12557. } else {
  12558. this.studyJuri[0].upFile.splice(0, 1);
  12559. }
  12560. },
  12561. clean2(index) {
  12562. this.plworkFile.splice(index, 1);
  12563. },
  12564. handleClose(done) {
  12565. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12566. this.videoDetail.sources[0].src = "";
  12567. }
  12568. this.commentIndexJson = {};
  12569. done();
  12570. },
  12571. fullTools() {
  12572. this.full = !this.full;
  12573. },
  12574. imgChange(file, fileList, type) {
  12575. if (type == 1) {
  12576. var _tmp = this.studyJuri[0].cover;
  12577. } else if (type == 2) {
  12578. var _tmp = this.studyJuri[0].upVedio;
  12579. } else {
  12580. var _tmp = this.studyJuri[0].upFile;
  12581. }
  12582. this.noneBtnImg = _tmp.length >= 1;
  12583. },
  12584. setContent(bool) {
  12585. this.contentDialog = bool;
  12586. if (bool && this.mlDialog) {
  12587. document.querySelector(".workd_media").style.height = "650px";
  12588. } else {
  12589. document.querySelector(".workd_media").style.height = "auto";
  12590. }
  12591. },
  12592. setContent2(bool) {
  12593. this.mlDialog = bool;
  12594. if (bool && this.contentDialog) {
  12595. document.querySelector(".workd_media").style.height = "650px";
  12596. } else {
  12597. document.querySelector(".workd_media").style.height = "auto";
  12598. }
  12599. },
  12600. addImg(e) {
  12601. var el = e.currentTarget;
  12602. // this.$message.success('触发上传')
  12603. el.getElementsByTagName("input")[0].click();
  12604. e.target.value = "";
  12605. },
  12606. addSelectAnswer() {
  12607. let params = [
  12608. {
  12609. uid: this.userid,
  12610. cid: this.id,
  12611. stage: this.courseType,
  12612. task: this.taskCount,
  12613. tool: this.toolindex,
  12614. content: this.selectAnswer.answer,
  12615. type: 7,
  12616. },
  12617. ];
  12618. this.ajax
  12619. .post(this.$store.state.api + "addCourseWorks", params)
  12620. .then((res) => {
  12621. this.$message({
  12622. message: "提交成功",
  12623. type: "success",
  12624. });
  12625. this.dialogVisibleSelect = false;
  12626. // this.selectAnswer = {};
  12627. this.selectSWorks();
  12628. this.selectStudent();
  12629. })
  12630. .catch((err) => {
  12631. this.$message.error("提交失败");
  12632. console.error(err);
  12633. });
  12634. },
  12635. addSelectAnswerTeacher() {
  12636. let params = [
  12637. {
  12638. uid: this.sStudent.userid,
  12639. cid: this.id,
  12640. stage: this.courseType,
  12641. task: this.taskCount,
  12642. tool: this.toolindex,
  12643. content: this.selectAnswer.answer,
  12644. type: 7,
  12645. },
  12646. ];
  12647. this.ajax
  12648. .post(this.$store.state.api + "addCourseWorks", params)
  12649. .then((res) => {
  12650. this.$message({
  12651. message: "提交成功",
  12652. type: "success",
  12653. });
  12654. this.dialogVisibleSelectTeacher = false;
  12655. // this.selectAnswer = {};
  12656. this.selectSWorks();
  12657. this.selectStudent();
  12658. })
  12659. .catch((err) => {
  12660. this.$message.error("提交失败");
  12661. console.error(err);
  12662. });
  12663. },
  12664. addSenWorks() {
  12665. for (var i = 0; i < this.sentenceList.length; i++) {
  12666. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12667. if (
  12668. this.sentenceList[i].chooseSenList[j] == undefined ||
  12669. this.sentenceList[i].chooseSenList[j] == ""
  12670. ) {
  12671. this.$message.error("请将答案填写完整!");
  12672. return;
  12673. }
  12674. }
  12675. }
  12676. let params = [
  12677. {
  12678. uid: this.userid,
  12679. cid: this.id,
  12680. stage: this.courseType,
  12681. task: this.taskCount,
  12682. tool: this.toolindex,
  12683. content: JSON.stringify(this.sentenceList),
  12684. type: 9,
  12685. },
  12686. ];
  12687. this.ajax
  12688. .post(this.$store.state.api + "addCourseWorks", params)
  12689. .then((res) => {
  12690. this.$message({
  12691. message: "提交成功",
  12692. type: "success",
  12693. });
  12694. this.dialogVisibleSentence = false;
  12695. // this.selectAnswer = {};
  12696. this.selectSWorks();
  12697. this.selectStudent();
  12698. })
  12699. .catch((err) => {
  12700. this.$message.error("提交失败");
  12701. console.error(err);
  12702. });
  12703. },
  12704. addSenWorksTeacher() {
  12705. for (var i = 0; i < this.sentenceList.length; i++) {
  12706. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12707. if (
  12708. this.sentenceList[i].chooseSenList[j] == undefined ||
  12709. this.sentenceList[i].chooseSenList[j] == ""
  12710. ) {
  12711. this.$message.error("请将答案填写完整!");
  12712. return;
  12713. }
  12714. }
  12715. }
  12716. let params = [
  12717. {
  12718. uid: this.sStudent.userid,
  12719. cid: this.id,
  12720. stage: this.courseType,
  12721. task: this.taskCount,
  12722. tool: this.toolindex,
  12723. content: JSON.stringify(this.sentenceList),
  12724. type: 9,
  12725. },
  12726. ];
  12727. this.ajax
  12728. .post(this.$store.state.api + "addCourseWorks", params)
  12729. .then((res) => {
  12730. this.$message({
  12731. message: "提交成功",
  12732. type: "success",
  12733. });
  12734. this.dialogVisibleSentenceTeacher = false;
  12735. // this.selectAnswer = {};
  12736. this.selectSWorks();
  12737. this.selectStudent();
  12738. })
  12739. .catch((err) => {
  12740. this.$message.error("提交失败");
  12741. console.error(err);
  12742. });
  12743. },
  12744. addTableWorks() {
  12745. let params = [
  12746. {
  12747. uid: this.userid,
  12748. cid: this.id,
  12749. stage: this.courseType,
  12750. task: this.taskCount,
  12751. tool: this.toolindex,
  12752. content: JSON.stringify(this.tableJson),
  12753. type: 10,
  12754. },
  12755. ];
  12756. this.ajax
  12757. .post(this.$store.state.api + "addCourseWorks", params)
  12758. .then((res) => {
  12759. this.$message({
  12760. message: "提交成功",
  12761. type: "success",
  12762. });
  12763. this.dialogVisibleTable = false;
  12764. // this.selectAnswer = {};
  12765. this.selectSWorks();
  12766. this.selectStudent();
  12767. })
  12768. .catch((err) => {
  12769. this.$message.error("提交失败");
  12770. console.error(err);
  12771. });
  12772. },
  12773. addTableWorksTeacher() {
  12774. let params = [
  12775. {
  12776. uid: this.sStudent.userid,
  12777. cid: this.id,
  12778. stage: this.courseType,
  12779. task: this.taskCount,
  12780. tool: this.toolindex,
  12781. content: JSON.stringify(this.tableJson),
  12782. type: 10,
  12783. },
  12784. ];
  12785. this.ajax
  12786. .post(this.$store.state.api + "addCourseWorks", params)
  12787. .then((res) => {
  12788. this.$message({
  12789. message: "提交成功",
  12790. type: "success",
  12791. });
  12792. this.dialogVisibleTableTeacher = false;
  12793. // this.selectAnswer = {};
  12794. this.selectSWorks();
  12795. this.selectStudent();
  12796. })
  12797. .catch((err) => {
  12798. this.$message.error("提交失败");
  12799. console.error(err);
  12800. });
  12801. },
  12802. addWordWorks() {
  12803. let params = [
  12804. {
  12805. uid: this.userid,
  12806. cid: this.id,
  12807. stage: this.courseType,
  12808. task: this.taskCount,
  12809. tool: this.toolindex,
  12810. content: JSON.stringify(this.wordJson),
  12811. type: 13,
  12812. atool: 52,
  12813. },
  12814. ];
  12815. console.log(params);
  12816. this.ajax
  12817. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12818. .then((res) => {
  12819. this.$message({
  12820. message: "提交成功",
  12821. type: "success",
  12822. });
  12823. this.dialogVisibleWord = false;
  12824. // this.selectAnswer = {};
  12825. this.selectSWorks();
  12826. this.selectStudent();
  12827. })
  12828. .catch((err) => {
  12829. this.$message.error("提交失败");
  12830. console.error(err);
  12831. });
  12832. },
  12833. addWordWorksTeacher() {
  12834. let params = [
  12835. {
  12836. uid: this.sStudent.userid,
  12837. cid: this.id,
  12838. stage: this.courseType,
  12839. task: this.taskCount,
  12840. tool: this.toolindex,
  12841. content: JSON.stringify(this.wordJson),
  12842. type: 13,
  12843. atool: 52,
  12844. },
  12845. ];
  12846. console.log(params);
  12847. this.ajax
  12848. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12849. .then((res) => {
  12850. this.$message({
  12851. message: "提交成功",
  12852. type: "success",
  12853. });
  12854. this.dialogVisibleWordTeacher = false;
  12855. // this.selectAnswer = {};
  12856. this.selectSWorks();
  12857. this.selectStudent();
  12858. })
  12859. .catch((err) => {
  12860. this.$message.error("提交失败");
  12861. console.error(err);
  12862. });
  12863. },
  12864. addCourseWorks(i) {
  12865. var typesql;
  12866. if (this.fileType === 0) {
  12867. typesql = 1;
  12868. } else if (this.fileType === 1) {
  12869. typesql = 4;
  12870. } else if (this.fileType === 2) {
  12871. typesql = 5;
  12872. } else if (this.fileType === 3) {
  12873. typesql = 12;
  12874. }
  12875. if (!this.studyJuri[0].cover[0].url) {
  12876. this.$message.error("请上传文件");
  12877. return;
  12878. }
  12879. let params = [
  12880. {
  12881. uid: this.userid,
  12882. cid: this.id,
  12883. stage: this.courseType,
  12884. task: i,
  12885. tool: this.toolindex,
  12886. content: this.studyJuri[0].cover[0].url,
  12887. type: typesql,
  12888. },
  12889. ];
  12890. this.ajax
  12891. .post(this.$store.state.api + "addCourseWorksR", params)
  12892. .then((res) => {
  12893. this.$message({
  12894. message: "提交成功",
  12895. type: "success",
  12896. });
  12897. this.studyJuri[0].cover = [];
  12898. this.dialogVisible = false;
  12899. this.getCourseDetail();
  12900. })
  12901. .catch((err) => {
  12902. this.$message.error("提交失败");
  12903. console.error(err);
  12904. });
  12905. },
  12906. addCourseWorksPl(i) {
  12907. let _files = this.plworkFile;
  12908. var c = 1;
  12909. for (var k = 0; k < _files.length; k++) {
  12910. if (!_files[k].username) {
  12911. c = 2;
  12912. }
  12913. }
  12914. if (c == 2) {
  12915. this.$message.error("请填写学生姓名");
  12916. return;
  12917. }
  12918. let params = [
  12919. {
  12920. ateacher: this.userid,
  12921. cid: this.id,
  12922. stage: this.courseType,
  12923. task: i,
  12924. tool: this.toolindex,
  12925. content: JSON.stringify(_files),
  12926. },
  12927. ];
  12928. this.ajax
  12929. .post(this.$store.state.api + "addCourseWorksPl", params)
  12930. .then((res) => {
  12931. this.$message({
  12932. message: "提交成功",
  12933. type: "success",
  12934. });
  12935. this.plworkFile = [];
  12936. this.dialogVisiblePl = false;
  12937. this.getCourseDetail();
  12938. })
  12939. .catch((err) => {
  12940. this.$message.error("提交失败");
  12941. console.error(err);
  12942. });
  12943. },
  12944. addCourseWorks2(i) {
  12945. var typesql;
  12946. if (this.fileType === 0) {
  12947. typesql = 0;
  12948. } else if (this.fileType === 1) {
  12949. typesql = 1;
  12950. } else if (this.fileType === 2) {
  12951. typesql = 3;
  12952. } else if (this.fileType === 3) {
  12953. typesql = 12;
  12954. }
  12955. if (!this.studyJuri[0].cover[0].url) {
  12956. this.$message.error("请上传文件");
  12957. return;
  12958. }
  12959. let params = [
  12960. {
  12961. uid: this.userid,
  12962. cid: this.id,
  12963. stage: this.courseType,
  12964. task: i,
  12965. tool: this.toolindex,
  12966. content: JSON.stringify({
  12967. type: typesql,
  12968. groupIndex: this.groupIndex,
  12969. url: this.studyJuri[0].cover[0].url,
  12970. }),
  12971. type: 11,
  12972. atool: 49,
  12973. text: "",
  12974. },
  12975. ];
  12976. this.ajax
  12977. .post(this.$store.state.api + "addCourseWorks5", params)
  12978. .then((res) => {
  12979. this.$message({
  12980. message: "提交成功",
  12981. type: "success",
  12982. });
  12983. this.studyJuri[0].cover = [];
  12984. this.dialogVisibleGroupWork = false;
  12985. this.getCourseDetail();
  12986. })
  12987. .catch((err) => {
  12988. this.$message.error("提交失败");
  12989. console.error(err);
  12990. });
  12991. },
  12992. addCourseWorksGong(i, data, tool) {
  12993. let params = [
  12994. {
  12995. uid: this.userid,
  12996. cid: this.id,
  12997. stage: this.courseType,
  12998. task: this.taskCount,
  12999. tool: i,
  13000. content: data,
  13001. type: 12,
  13002. atool: tool,
  13003. text: "",
  13004. },
  13005. ];
  13006. this.ajax
  13007. .post(this.$store.state.api + "addCourseWorks5", params)
  13008. .then((res) => {
  13009. this.$message({
  13010. message: "提交成功",
  13011. type: "success",
  13012. });
  13013. this.studyJuri[0].cover = [];
  13014. this.selectSWorks();
  13015. this.selectStudent();
  13016. })
  13017. .catch((err) => {
  13018. this.$message.error("提交失败");
  13019. console.error(err);
  13020. });
  13021. },
  13022. addCourseWorksGongTeacher(i, data, tool) {
  13023. let params = [
  13024. {
  13025. uid: this.sStudent.userid,
  13026. cid: this.id,
  13027. stage: this.courseType,
  13028. task: this.taskCount,
  13029. tool: i,
  13030. content: data,
  13031. type: 12,
  13032. atool: tool,
  13033. text: "",
  13034. },
  13035. ];
  13036. this.ajax
  13037. .post(this.$store.state.api + "addCourseWorks5", params)
  13038. .then((res) => {
  13039. this.$message({
  13040. message: "提交成功",
  13041. type: "success",
  13042. });
  13043. this.studyJuri[0].cover = [];
  13044. this.dialogVisibleWorks = false;
  13045. this.selectSWorks();
  13046. this.selectStudent();
  13047. })
  13048. .catch((err) => {
  13049. this.$message.error("提交失败");
  13050. console.error(err);
  13051. });
  13052. },
  13053. addCourseWorksGongPl(i, data, tool, type) {
  13054. let params = [
  13055. {
  13056. uid: this.sStudent.userid,
  13057. cid: this.id,
  13058. stage: this.courseType,
  13059. task: this.taskCount,
  13060. tool: i,
  13061. content: data,
  13062. type: type,
  13063. atool: tool,
  13064. text: "",
  13065. },
  13066. ];
  13067. this.ajax
  13068. .post(this.$store.state.api + "addCourseWorks5", params)
  13069. .then((res) => {
  13070. this.$message({
  13071. message: "提交成功",
  13072. type: "success",
  13073. });
  13074. this.studyJuri[0].cover = [];
  13075. this.dialogVisibleWorks = false;
  13076. this.selectSWorks();
  13077. this.selectStudent();
  13078. })
  13079. .catch((err) => {
  13080. this.$message.error("提交失败");
  13081. console.error(err);
  13082. });
  13083. },
  13084. addCourseWorksTeacher(i) {
  13085. var typesql;
  13086. if (this.sTool == 32) {
  13087. this.addCourseWorksGongTeacher(
  13088. this.toolindex,
  13089. this.studyJuri[0].cover[0].url,
  13090. this.sTool
  13091. );
  13092. return;
  13093. }
  13094. if (this.fileType === 0) {
  13095. typesql = 1;
  13096. } else if (this.fileType === 1) {
  13097. typesql = 4;
  13098. } else if (this.fileType === 2) {
  13099. typesql = 5;
  13100. } else if (this.fileType === 3) {
  13101. typesql = 12;
  13102. }
  13103. if (this.sTool == 50) {
  13104. this.addCourseWorksGongPl(
  13105. this.toolindex,
  13106. this.studyJuri[0].cover[0].url,
  13107. this.sTool,
  13108. typesql
  13109. );
  13110. return;
  13111. }
  13112. if (!this.studyJuri[0].cover[0].url) {
  13113. this.$message.error("请上传文件");
  13114. return;
  13115. }
  13116. let params = [
  13117. {
  13118. uid: this.sStudent.userid,
  13119. cid: this.id,
  13120. stage: this.courseType,
  13121. task: i,
  13122. tool: this.toolindex,
  13123. content: this.studyJuri[0].cover[0].url,
  13124. type: typesql,
  13125. ateacher: this.userid,
  13126. },
  13127. ];
  13128. this.ajax
  13129. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13130. .then((res) => {
  13131. this.$message({
  13132. message: "提交成功",
  13133. type: "success",
  13134. });
  13135. this.studyJuri[0].cover = [];
  13136. this.dialogVisibleWorks = false;
  13137. this.getCourseDetail();
  13138. })
  13139. .catch((err) => {
  13140. this.$message.error("提交失败");
  13141. console.error(err);
  13142. });
  13143. },
  13144. selectUploadStudent(type) {
  13145. const loading = this.$loading.service({
  13146. background: "rgba(255, 255, 255, 0.7)",
  13147. target: document.body,
  13148. });
  13149. let params = {
  13150. cid: this.uploadCid,
  13151. oid: this.oid,
  13152. cn: "",
  13153. };
  13154. this.ajax
  13155. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13156. .then((res) => {
  13157. loading.close();
  13158. var studentK = [];
  13159. if (this.isWorksS[this.toolindex].length > 0) {
  13160. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13161. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13162. }
  13163. studentK = studentK.join(",");
  13164. }
  13165. this.uploadStudentJuri = res.data[0].filter((el) => {
  13166. return studentK.indexOf(el.userid) == -1;
  13167. });
  13168. if (this.worksSName && this.worksSid) {
  13169. this.uploadStudentJuri.push({
  13170. userid: this.worksSid,
  13171. name: this.worksSName,
  13172. });
  13173. }
  13174. if (type == 1) {
  13175. this.plworkFile = [];
  13176. this.dialogVisibleSname = true;
  13177. } else if (type == 2) {
  13178. this.dialogVisiblePl = true;
  13179. }
  13180. })
  13181. .catch((err) => {
  13182. loading.close();
  13183. console.error(err);
  13184. });
  13185. },
  13186. selectPickStudent() {
  13187. const loading = this.$loading.service({
  13188. background: "rgba(255, 255, 255, 0.7)",
  13189. target: document.body,
  13190. });
  13191. let params = {
  13192. cid: this.uploadCid,
  13193. oid: this.oid,
  13194. cn: "",
  13195. };
  13196. this.ajax
  13197. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13198. .then((res) => {
  13199. loading.close();
  13200. this.uploadStudentJuri = res.data[0];
  13201. this.dialogVisiblePickPeople = true;
  13202. })
  13203. .catch((err) => {
  13204. loading.close();
  13205. console.error(err);
  13206. });
  13207. },
  13208. arrayToArray(arrayo, arrayt) {
  13209. let array1 = arrayo;
  13210. let array2 = arrayt;
  13211. let commonElements = [];
  13212. for (let i = 0; i < array1.length; i++) {
  13213. for (let j = 0; j < array2.length; j++) {
  13214. if (array1[i] === array2[j]) {
  13215. commonElements.push(array1[i]);
  13216. }
  13217. }
  13218. }
  13219. return commonElements;
  13220. },
  13221. selectWorksStudent() {
  13222. let params = {
  13223. oid: this.oid,
  13224. cid: this.courseDetail.juri,
  13225. };
  13226. this.ajax
  13227. .get(this.$store.state.api + "selectWorksStudent", params)
  13228. .then((res) => {
  13229. var a = res.data[0];
  13230. for (var i = 0; i < this.isWorksS.length; i++) {
  13231. this.noWorksS[i] = [];
  13232. var studentK = [];
  13233. if (this.isWorksS[i].length > 0) {
  13234. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13235. studentK.push(this.isWorksS[i][z].uid);
  13236. }
  13237. studentK = studentK.join(",");
  13238. for (var j = 0; j < a.length; j++) {
  13239. // if (studentK.indexOf(a[j].userid) == -1) {
  13240. if (this.tcid) {
  13241. // a[j].classid.indexOf(this.tcid) != -1
  13242. if (
  13243. this.arrayToArray(
  13244. a[j].classid.split(","),
  13245. this.tcid.split(",")
  13246. ).length
  13247. ) {
  13248. this.noWorksS[i].push({
  13249. student: a[j].name,
  13250. userid: a[j].userid,
  13251. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  13252. });
  13253. }
  13254. } else {
  13255. this.noWorksS[i].push({
  13256. student: a[j].name,
  13257. userid: a[j].userid,
  13258. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  13259. });
  13260. }
  13261. // }
  13262. }
  13263. } else {
  13264. for (var k = 0; k < a.length; k++) {
  13265. if (this.tcid) {
  13266. if (
  13267. this.arrayToArray(
  13268. a[k].classid.split(","),
  13269. this.tcid.split(",")
  13270. ).length
  13271. ) {
  13272. this.noWorksS[i].push({
  13273. student: a[k].name,
  13274. userid: a[k].userid,
  13275. type: "1",
  13276. });
  13277. }
  13278. } else {
  13279. this.noWorksS[i].push({
  13280. student: a[k].name,
  13281. userid: a[k].userid,
  13282. type: "1",
  13283. });
  13284. }
  13285. }
  13286. }
  13287. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  13288. // let jscoreA = parseInt(a.type);
  13289. // let jscoreB = parseInt(b.type);
  13290. // return jscoreB - jscoreA;
  13291. // });
  13292. }
  13293. this.$forceUpdate();
  13294. if (
  13295. Object.keys(this.commentDetail).length &&
  13296. Object.keys(this.commentIndexJson).length &&
  13297. !this.dialogVisibleScore
  13298. ) {
  13299. let a = 1;
  13300. let c = this.commentIndexJson;
  13301. console.log(c);
  13302. if (
  13303. this.commentIndexJson.gindex ||
  13304. this.commentIndexJson.gindex === 0
  13305. ) {
  13306. for (
  13307. var i = 0;
  13308. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13309. i++
  13310. ) {
  13311. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13312. groupA: for (var k = 0; k < _el.length; k++) {
  13313. let el = _el[k];
  13314. if (el.wid == this.commentDetail.wid) {
  13315. a = 2;
  13316. this.commentOther(
  13317. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13318. this.commentIndexJson.toolIndex,
  13319. k,
  13320. this.commentIndexJson.gindex
  13321. );
  13322. break groupA;
  13323. }
  13324. }
  13325. }
  13326. if (a === 1) {
  13327. this.commentDetail = [];
  13328. this.commentIndexJson = {};
  13329. this.commentDialogVisible = false;
  13330. this.$message("此作业已被删除");
  13331. }
  13332. } else {
  13333. if (this.isGroup && this.commentIndexJson.gid) {
  13334. groupA: for (
  13335. var i = 0;
  13336. i < this.courseGroup.group.length;
  13337. i++
  13338. ) {
  13339. let _group = this.courseGroup.group[i];
  13340. if (_group.id == this.commentIndexJson.gid) {
  13341. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13342. for (var k = 0; k < _el2.length; k++) {
  13343. let el2 = _el2[k];
  13344. if (el2.wid == this.commentDetail.wid) {
  13345. a = 2;
  13346. this.commentOther(
  13347. _el2[k],
  13348. this.commentIndexJson.toolIndex,
  13349. k,
  13350. null,
  13351. this.commentIndexJson.gid
  13352. );
  13353. break groupA;
  13354. }
  13355. }
  13356. }
  13357. }
  13358. }
  13359. if (a == 1) {
  13360. for (
  13361. var i = 0;
  13362. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13363. i++
  13364. ) {
  13365. let el =
  13366. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13367. if (el.wid == this.commentDetail.wid) {
  13368. a = 2;
  13369. this.commentOther(
  13370. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13371. this.commentIndexJson.toolIndex,
  13372. i
  13373. );
  13374. break;
  13375. }
  13376. }
  13377. }
  13378. if (a === 1) {
  13379. this.commentDetail = [];
  13380. this.commentIndexJson = {};
  13381. this.commentDialogVisible = false;
  13382. this.$message("此作业已被删除");
  13383. }
  13384. }
  13385. }
  13386. })
  13387. .catch((err) => {
  13388. console.error(err);
  13389. });
  13390. },
  13391. selectStudent() {},
  13392. openVideo(w) {
  13393. this.videoDetail = {};
  13394. this.playerOptions1.sources[0].src = w.works;
  13395. this.videoDetail = this.playerOptions1;
  13396. this.videoVisible = true;
  13397. },
  13398. isLikes(wid, uid, t, c, isLikes) {
  13399. if (isLikes == false) {
  13400. let params = [
  13401. {
  13402. wid: wid,
  13403. lid: uid,
  13404. t: t,
  13405. c: c,
  13406. },
  13407. ];
  13408. this.ajax
  13409. .post(this.$store.state.api + "insertComment", params)
  13410. .then((res) => {
  13411. this.$message({
  13412. message: "点赞成功",
  13413. type: "success",
  13414. });
  13415. this.selectSWorks();
  13416. this.selectStudent();
  13417. })
  13418. .catch((err) => {
  13419. this.$message.error("点赞失败");
  13420. console.error(err);
  13421. });
  13422. } else {
  13423. let params = {
  13424. wid: wid,
  13425. lid: uid,
  13426. type: t,
  13427. };
  13428. this.ajax
  13429. .get(this.$store.state.api + "deleteComment", params)
  13430. .then((res) => {
  13431. this.$message({
  13432. message: "取消点赞成功",
  13433. type: "success",
  13434. });
  13435. this.selectSWorks();
  13436. this.selectStudent();
  13437. })
  13438. .catch((err) => {
  13439. console.error(err);
  13440. });
  13441. }
  13442. },
  13443. deleteComment(wid) {
  13444. this.$confirm("确定删除此评论吗?", "提示", {
  13445. confirmButtonText: "确定",
  13446. cancelButtonText: "取消",
  13447. type: "warning",
  13448. })
  13449. .then(() => {
  13450. let params = {
  13451. id: wid,
  13452. };
  13453. this.ajax
  13454. .get(this.$store.state.api + "deleteComment2", params)
  13455. .then((res) => {
  13456. this.$message({
  13457. message: "删除评论成功",
  13458. type: "success",
  13459. });
  13460. this.selectSWorks();
  13461. this.selectStudent();
  13462. })
  13463. .catch((err) => {
  13464. console.error(err);
  13465. });
  13466. })
  13467. .catch(() => {});
  13468. },
  13469. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13470. this.commentIndexJson = {
  13471. toolIndex: toolIndex,
  13472. wIndex: wIndex,
  13473. gindex: gindex,
  13474. gid: gid,
  13475. };
  13476. this.commentDetail = [];
  13477. this.commentDialogVisible = true;
  13478. this.commentDetail = w;
  13479. if (w.works && w.type == 1) {
  13480. this.pptImgUrl = "";
  13481. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13482. if (
  13483. a.indexOf(
  13484. w.works
  13485. .split(".")
  13486. [w.works.split(".").length - 1].toLocaleUpperCase()
  13487. ) != -1
  13488. ) {
  13489. this.pptImgUrl =
  13490. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13491. this.showPDF = false;
  13492. } else if (
  13493. w.works
  13494. .split(".")
  13495. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13496. ) {
  13497. this.pptImgUrl = w.works;
  13498. this.showPDF = true;
  13499. }
  13500. } else if (w.works && w.type == 3) {
  13501. this.videoDetail = {};
  13502. this.playerOptions1.sources[0].src = w.works;
  13503. this.videoDetail = this.playerOptions1;
  13504. // this.videoVisible = true;
  13505. } else if (w.works && w.type == 4) {
  13506. this.eScore = JSON.parse(w.works);
  13507. this.rateJson =
  13508. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13509. this.taskCount
  13510. ].toolChoose[toolIndex].rateJson;
  13511. } else if (w.works && w.type == 10) {
  13512. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13513. } else if (w.works && w.type == 13) {
  13514. this.wordJson =
  13515. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13516. this.taskCount
  13517. ].toolChoose[toolIndex].wordJson;
  13518. }
  13519. },
  13520. openScore(w) {
  13521. this.wScore = 0;
  13522. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13523. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13524. this.commentDetail = [];
  13525. this.dialogVisibleScore = true;
  13526. this.commentDetail = w;
  13527. if (w.works && w.type == 1) {
  13528. this.pptImgUrl = "";
  13529. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13530. if (
  13531. a.indexOf(
  13532. w.works
  13533. .split(".")
  13534. [w.works.split(".").length - 1].toLocaleUpperCase()
  13535. ) != -1
  13536. ) {
  13537. this.pptImgUrl =
  13538. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13539. this.showPDF = false;
  13540. } else if (
  13541. w.works
  13542. .split(".")
  13543. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13544. ) {
  13545. this.pptImgUrl = w.works;
  13546. this.showPDF = true;
  13547. }
  13548. } else if (w.works && w.type == 3) {
  13549. this.videoDetail = {};
  13550. this.playerOptions1.sources[0].src = w.works;
  13551. this.videoDetail = this.playerOptions1;
  13552. }
  13553. },
  13554. addComment(wid, uid, t) {
  13555. if (this.commentText == "") {
  13556. this.$message.error("请输入评论");
  13557. return;
  13558. }
  13559. let params2 = [
  13560. {
  13561. wid: wid,
  13562. lid: uid,
  13563. t: t,
  13564. },
  13565. ];
  13566. this.ajax
  13567. .post(this.$store.state.api + "getComment", params2)
  13568. .then((res) => {
  13569. if (res.data[0].length > 0) {
  13570. this.$message.error("一个作业只能评论一条");
  13571. } else {
  13572. let params = [
  13573. {
  13574. wid: wid,
  13575. lid: uid,
  13576. t: t,
  13577. c: this.commentText,
  13578. },
  13579. ];
  13580. this.ajax
  13581. .post(this.$store.state.api + "insertComment", params)
  13582. .then((res) => {
  13583. this.$message({
  13584. message: "评论成功",
  13585. type: "success",
  13586. });
  13587. this.commentText = "";
  13588. this.selectSWorks();
  13589. this.selectStudent();
  13590. })
  13591. .catch((err) => {
  13592. this.$message.error("评论失败");
  13593. console.error(err);
  13594. });
  13595. }
  13596. })
  13597. .catch((err) => {
  13598. // this.$message.error("评论失败");
  13599. console.error(err);
  13600. });
  13601. },
  13602. scoreWork(wid) {
  13603. if (this.wScore == 0) {
  13604. this.$message.error("请评分");
  13605. return;
  13606. }
  13607. let params = [
  13608. {
  13609. wid: wid,
  13610. score: JSON.stringify({
  13611. wScore: this.wScore,
  13612. detail: this.scoreDetail,
  13613. }),
  13614. },
  13615. ];
  13616. this.ajax
  13617. .post(this.$store.state.api + "scoreWork", params)
  13618. .then((res) => {
  13619. this.$message({
  13620. message: "评分成功",
  13621. type: "success",
  13622. });
  13623. this.wScore = 0;
  13624. this.scoreDetail = "";
  13625. this.dialogVisibleScore = false;
  13626. this.selectSWorks();
  13627. this.selectStudent();
  13628. })
  13629. .catch((err) => {
  13630. this.$message.error("评分失败");
  13631. console.error(err);
  13632. });
  13633. },
  13634. openXz(w, i) {
  13635. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13636. .taskJson[this.taskCount].toolChoose[i].selectJson
  13637. ? JSON.parse(
  13638. JSON.stringify(
  13639. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13640. this.taskCount
  13641. ].toolChoose[i].selectJson
  13642. )
  13643. )
  13644. : { url: "", select: [], answer: [] };
  13645. var a = w.works.split(",");
  13646. for (var k = 0; k < a.length; k++) {
  13647. a[k] = parseInt(a[k]);
  13648. }
  13649. this.selectAnswer = { answer: a, stu: w.sName };
  13650. this.isSelect = true;
  13651. this.dialogVisibleSelect = true;
  13652. },
  13653. openSen(w, i) {
  13654. this.sentenceList1 = JSON.parse(w.works);
  13655. this.sentenceList1.stuName = w.sName;
  13656. this.dialogVisibleSentence1 = true;
  13657. },
  13658. openPj(w, toolindex) {
  13659. this.isStar = true;
  13660. this.eScore = JSON.parse(w);
  13661. this.rateJson =
  13662. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13663. this.taskCount
  13664. ].toolChoose[toolindex].rateJson;
  13665. this.studentEvalDialogVisible = true;
  13666. },
  13667. deleteWorks(id) {
  13668. this.$confirm("确定删除此作业吗?", "提示", {
  13669. confirmButtonText: "确定",
  13670. cancelButtonText: "取消",
  13671. type: "warning",
  13672. })
  13673. .then(() => {
  13674. let params = [
  13675. {
  13676. id: id,
  13677. },
  13678. ];
  13679. this.ajax
  13680. .post(this.$store.state.api + "deleteCourseWork", params)
  13681. .then((res) => {
  13682. this.$message({
  13683. message: "删除成功",
  13684. type: "success",
  13685. });
  13686. this.selectStudent();
  13687. this.selectSWorks();
  13688. this.selectSLook();
  13689. })
  13690. .catch((err) => {
  13691. this.$message.error("网络异常");
  13692. console.error(err);
  13693. });
  13694. })
  13695. .catch(() => {});
  13696. },
  13697. selectSWorks(gindex) {
  13698. //教师查看全部作业
  13699. let params = {
  13700. cid: this.id,
  13701. s: this.courseType,
  13702. t: this.taskCount,
  13703. };
  13704. this.ajax
  13705. .get(this.$store.state.api + "selectSWorks", params)
  13706. .then((res) => {
  13707. var a =
  13708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13709. this.taskCount
  13710. ].toolChoose;
  13711. var b = res.data[0];
  13712. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13713. var y = [
  13714. "AVI",
  13715. "NAVI",
  13716. "MPEG",
  13717. "ASF",
  13718. "MOV",
  13719. "WMV",
  13720. "3GP",
  13721. "RM",
  13722. "RMVB",
  13723. "FLV",
  13724. "F4V",
  13725. "H.264",
  13726. "H.265",
  13727. "REAL VIDEO",
  13728. "MKV",
  13729. "WebM",
  13730. "HDDVD",
  13731. "MP4",
  13732. "MPG",
  13733. "M4V",
  13734. "MGV",
  13735. "OGV",
  13736. "QTM",
  13737. "STR",
  13738. "AMC",
  13739. "DVX",
  13740. "EVO",
  13741. "DAT",
  13742. "OGG",
  13743. "OGM",
  13744. ];
  13745. var d = res.data[1];
  13746. var e = res.data[2];
  13747. var f = res.data[3];
  13748. for (var i = 0; i < a.length; i++) {
  13749. this.worksStudent[i] = [];
  13750. this.worksTeacher[i] = [];
  13751. this.worksStudent2[i] = [];
  13752. if (
  13753. !this.isCloseList[i] ||
  13754. this.isCloseList[i].isClose == undefined
  13755. ) {
  13756. this.isCloseList[i] = { isClose: 0 };
  13757. }
  13758. this.groupStudent[i] = [];
  13759. this.groupStudentUid[i] = [];
  13760. this.isWorksS[i] = [];
  13761. this.checkJson[i] = [];
  13762. if (a[i].tool[0] == 49) {
  13763. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13764. this.groupStudent[i][gA] = [];
  13765. this.groupStudentUid[i][gA] = [];
  13766. this.worksStudent[i][gA] = [];
  13767. this.isCloseList[i][gA] = [];
  13768. for (var g = 0; g < f.length; g++) {
  13769. if (
  13770. f[g].ttype == 2 &&
  13771. this.tcid &&
  13772. this.arrayToArray(
  13773. (f[g].classid ? f[g].classid.split(",") : []),
  13774. this.tcid.split(",")
  13775. ).length == 0
  13776. ) {
  13777. continue;
  13778. }
  13779. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  13780. (f[g].classid ? f[g].classid.split(",") : []),
  13781. this.tcid.split(",")
  13782. ).length !== 0 || this.arrayToArray(
  13783. (f[g].classid ? f[g].classid.split(",") : []),
  13784. this.classId ? this.classId.split(",") : []
  13785. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  13786. this.groupStudent[i][gA].push(f[g]);
  13787. this.groupStudentUid[i][gA].push(f[g].userid);
  13788. }
  13789. }
  13790. }
  13791. this.$forceUpdate();
  13792. }
  13793. for (var j = 0; j < b.length; j++) {
  13794. if (
  13795. b[j].ttype == 2 &&
  13796. this.tcid &&
  13797. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13798. .length == 0
  13799. ) {
  13800. continue;
  13801. }
  13802. var likesCount = 0;
  13803. var commentCount = 0;
  13804. var isLikes = false;
  13805. var commentJson = [];
  13806. var data = b[j];
  13807. if (i == b[j].tool) {
  13808. if (data.type == 2 && a[i].tool[0] == 4) {
  13809. // if(JSON.parse(data.content)[0].anwer){
  13810. var checkL =
  13811. JSON.parse(data.content)[0].anwer instanceof Array
  13812. ? JSON.parse(data.content)[0].anwer
  13813. : JSON.parse(data.content)[0].anwer.split(",");
  13814. for (var z = 0; z < checkL.length; z++) {
  13815. if (!this.checkJson[i][z]) {
  13816. this.checkJson[i].push({
  13817. checkCount: [],
  13818. checkPerson: [],
  13819. rightPerson: [],
  13820. });
  13821. }
  13822. if (!this.checkJson[i][z].checkCount.length) {
  13823. this.checkJson[i][z].checkCount = [];
  13824. let _askItemCount = JSON.parse(data.content)[0].askJson
  13825. .askJson[z].askItem;
  13826. for (var aic = 0; aic < _askItemCount; aic++) {
  13827. this.checkJson[i][z].checkCount.push(0);
  13828. }
  13829. }
  13830. if (checkL[z] instanceof Array) {
  13831. if (
  13832. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13833. checkL[z].sort().join(",")
  13834. ) {
  13835. this.checkJson[i][z].rightPerson.push(data.name);
  13836. }
  13837. for (var q = 0; q < checkL[z].length; q++) {
  13838. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13839. ? this.checkJson[i][z].checkPerson[
  13840. parseInt(checkL[z][q])
  13841. ].push(data.name)
  13842. : (this.checkJson[i][z].checkPerson[
  13843. parseInt(checkL[z][q])
  13844. ] = [data.name]);
  13845. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13846. ? this.checkJson[i][z].checkCount[
  13847. parseInt(checkL[z][q])
  13848. ]++
  13849. : (this.checkJson[i][z].checkCount[
  13850. parseInt(checkL[z][q])
  13851. ] = 1);
  13852. }
  13853. } else {
  13854. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13855. this.checkJson[i][z].rightPerson.push(data.name);
  13856. }
  13857. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13858. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13859. ? this.checkJson[i][z].checkPerson[
  13860. parseInt(checkL[z])
  13861. ].push(data.name)
  13862. : (this.checkJson[i][z].checkPerson[
  13863. parseInt(checkL[z])
  13864. ] = [data.name]);
  13865. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13866. ? this.checkJson[i][z].checkCount[
  13867. parseInt(checkL[z])
  13868. ]++
  13869. : (this.checkJson[i][z].checkCount[
  13870. parseInt(checkL[z])
  13871. ] = 1);
  13872. }
  13873. }
  13874. }
  13875. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13876. var checkL = JSON.parse(data.content)[0].anwer;
  13877. for (var z = 0; z < checkL.length; z++) {
  13878. if (!this.checkJson[i][z]) {
  13879. this.checkJson[i].push({
  13880. checkCount: [],
  13881. checkPerson: [],
  13882. rightPerson: [],
  13883. });
  13884. }
  13885. if (!this.checkJson[i][z].checkCount.length) {
  13886. this.checkJson[i][z].checkCount = [];
  13887. let _askItemCount = JSON.parse(data.content)[0].testJson
  13888. .testJson[z].testItem;
  13889. console.log(_askItemCount);
  13890. for (var aic = 0; aic < _askItemCount; aic++) {
  13891. this.checkJson[i][z].checkCount.push(0);
  13892. }
  13893. }
  13894. if (checkL[z] instanceof Array) {
  13895. if (
  13896. JSON.parse(data.content)[0]
  13897. .testJson.testJson[z].answer.sort()
  13898. .join(",") == checkL[z].sort().join(",")
  13899. ) {
  13900. this.checkJson[i][z].rightPerson.push(data.name);
  13901. }
  13902. for (var q = 0; q < checkL[z].length; q++) {
  13903. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13904. ? this.checkJson[i][z].checkPerson[
  13905. parseInt(checkL[z][q])
  13906. ].push(data.name)
  13907. : (this.checkJson[i][z].checkPerson[
  13908. parseInt(checkL[z][q])
  13909. ] = [data.name]);
  13910. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13911. ? this.checkJson[i][z].checkCount[
  13912. parseInt(checkL[z][q])
  13913. ]++
  13914. : (this.checkJson[i][z].checkCount[
  13915. parseInt(checkL[z][q])
  13916. ] = 1);
  13917. }
  13918. } else {
  13919. if (
  13920. JSON.parse(data.content)[0].testJson.testJson[z]
  13921. .answer == checkL[z]
  13922. ) {
  13923. this.checkJson[i][z].rightPerson.push(data.name);
  13924. }
  13925. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13926. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13927. ? this.checkJson[i][z].checkPerson[
  13928. parseInt(checkL[z])
  13929. ].push(data.name)
  13930. : (this.checkJson[i][z].checkPerson[
  13931. parseInt(checkL[z])
  13932. ] = [data.name]);
  13933. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13934. ? this.checkJson[i][z].checkCount[
  13935. parseInt(checkL[z])
  13936. ]++
  13937. : (this.checkJson[i][z].checkCount[
  13938. parseInt(checkL[z])
  13939. ] = 1);
  13940. }
  13941. }
  13942. }
  13943. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13944. var checkL = JSON.parse(data.content);
  13945. for (var z = 0; z < checkL.length; z++) {
  13946. if (!this.checkJson[i][z]) {
  13947. this.checkJson[i].push({
  13948. checkCount: [],
  13949. checkPerson: [],
  13950. rightPerson: [],
  13951. });
  13952. }
  13953. this.checkJson[i][z].checkPerson.push(data.name);
  13954. if (
  13955. checkL[z].chooseSenList.toString() ==
  13956. checkL[z].rightAnswer.toString()
  13957. ) {
  13958. this.checkJson[i][z].rightPerson.push(data.name);
  13959. }
  13960. }
  13961. }
  13962. for (var k = 0; k < d.length; k++) {
  13963. //点赞
  13964. if (d[k].workId == b[j].id) {
  13965. likesCount++;
  13966. if (d[k].likesId == this.userid) {
  13967. isLikes = true;
  13968. }
  13969. }
  13970. }
  13971. for (var l = 0; l < e.length; l++) {
  13972. //评论
  13973. if (e[l].workId == b[j].id) {
  13974. if (e[l].comment != "") {
  13975. commentCount++;
  13976. commentJson.push({
  13977. commentText: e[l].comment,
  13978. commentTime: e[l].commentTime,
  13979. commentPeople: e[l].commentPeople,
  13980. userid: e[l].userid,
  13981. wid: e[l].id,
  13982. });
  13983. }
  13984. }
  13985. }
  13986. if (
  13987. (b[j].type == 1 ||
  13988. b[j].type == 4 ||
  13989. b[j].type == 5 ||
  13990. b[j].type == 6 ||
  13991. b[j].type == 12 ||
  13992. b[j].type == 7) &&
  13993. a[i].tool[0] != 15 &&
  13994. a[i].tool[0] != 4 &&
  13995. a[i].tool[0] != 45 &&
  13996. a[i].tool[0] != 50 &&
  13997. a[i].tool[0] != 32 &&
  13998. a[i].tool[0] != 57 &&
  13999. a[i].tool[0] != 52
  14000. ) {
  14001. if (
  14002. c.indexOf(
  14003. b[j].content
  14004. .split(".")
  14005. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14006. ) != -1 &&
  14007. a[i].tool[0] == 16 &&
  14008. b[j].atool != 50
  14009. ) {
  14010. let _works = {
  14011. userid: b[j].userid,
  14012. ateacher: b[j].ateacher,
  14013. wid: b[j].id,
  14014. works: b[j].content,
  14015. sName: b[j].name,
  14016. type: 1,
  14017. time: b[j].time,
  14018. score: b[j].score,
  14019. img: b[j].img,
  14020. likesCount: likesCount,
  14021. commentCount: commentCount,
  14022. isLikes: isLikes,
  14023. commentJson: commentJson,
  14024. };
  14025. if (b[j].ttype == 1) {
  14026. this.worksTeacher[i].push(_works);
  14027. } else {
  14028. this.worksStudent2[i].push(_works);
  14029. }
  14030. this.worksStudent[i].push(_works);
  14031. this.isWorksS[i].push({
  14032. uid: b[j].userid,
  14033. sName: b[j].name,
  14034. });
  14035. } else if (
  14036. y.indexOf(
  14037. b[j].content
  14038. .split(".")
  14039. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14040. ) != -1 &&
  14041. a[i].tool[0] == 16 &&
  14042. b[j].atool != 50
  14043. ) {
  14044. let _works = {
  14045. userid: b[j].userid,
  14046. ateacher: b[j].ateacher,
  14047. wid: b[j].id,
  14048. works: b[j].content,
  14049. sName: b[j].name,
  14050. type: 3,
  14051. time: b[j].time,
  14052. score: b[j].score,
  14053. img: b[j].img,
  14054. likesCount: likesCount,
  14055. commentCount: commentCount,
  14056. isLikes: isLikes,
  14057. commentJson: commentJson,
  14058. };
  14059. if (b[j].ttype == 1) {
  14060. this.worksTeacher[i].push(_works);
  14061. } else {
  14062. this.worksStudent2[i].push(_works);
  14063. }
  14064. this.worksStudent[i].push(_works);
  14065. this.isWorksS[i].push({
  14066. uid: b[j].userid,
  14067. sName: b[j].name,
  14068. });
  14069. } else if (b[j].type == 6 && b[j].atool != 50) {
  14070. let _works = {
  14071. userid: b[j].userid,
  14072. ateacher: b[j].ateacher,
  14073. wid: b[j].id,
  14074. works: b[j].content,
  14075. sName: b[j].name,
  14076. type: 4,
  14077. time: b[j].time,
  14078. score: b[j].score,
  14079. img: b[j].img,
  14080. likesCount: likesCount,
  14081. commentCount: commentCount,
  14082. isLikes: isLikes,
  14083. commentJson: commentJson,
  14084. };
  14085. if (b[j].ttype == 1) {
  14086. this.worksTeacher[i].push(_works);
  14087. } else {
  14088. this.worksStudent2[i].push(_works);
  14089. }
  14090. this.worksStudent[i].push(_works);
  14091. this.isWorksS[i].push({
  14092. uid: b[j].userid,
  14093. sName: b[j].name,
  14094. });
  14095. } else if (b[j].type == 7 && b[j].atool != 50) {
  14096. let _works = {
  14097. userid: b[j].userid,
  14098. ateacher: b[j].ateacher,
  14099. wid: b[j].id,
  14100. works: b[j].content,
  14101. sName: b[j].name,
  14102. type: 5,
  14103. time: b[j].time,
  14104. score: b[j].score,
  14105. img: b[j].img,
  14106. likesCount: likesCount,
  14107. commentCount: commentCount,
  14108. isLikes: isLikes,
  14109. commentJson: commentJson,
  14110. };
  14111. if (b[j].ttype == 1) {
  14112. this.worksTeacher[i].push(_works);
  14113. } else {
  14114. this.worksStudent2[i].push(_works);
  14115. }
  14116. this.worksStudent[i].push(_works);
  14117. this.isWorksS[i].push({
  14118. uid: b[j].userid,
  14119. sName: b[j].name,
  14120. });
  14121. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14122. let _works = {
  14123. userid: b[j].userid,
  14124. ateacher: b[j].ateacher,
  14125. wid: b[j].id,
  14126. works: b[j].content,
  14127. sName: b[j].name,
  14128. type: 12,
  14129. time: b[j].time,
  14130. score: b[j].score,
  14131. img: b[j].img,
  14132. likesCount: likesCount,
  14133. commentCount: commentCount,
  14134. isLikes: isLikes,
  14135. commentJson: commentJson,
  14136. };
  14137. if (b[j].ttype == 1) {
  14138. this.worksTeacher[i].push(_works);
  14139. } else {
  14140. this.worksStudent2[i].push(_works);
  14141. }
  14142. this.worksStudent[i].push(_works);
  14143. this.isWorksS[i].push({
  14144. uid: b[j].userid,
  14145. sName: b[j].name,
  14146. });
  14147. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14148. let _works = {
  14149. userid: b[j].userid,
  14150. ateacher: b[j].ateacher,
  14151. wid: b[j].id,
  14152. works: b[j].content,
  14153. sName: b[j].name,
  14154. type: 0,
  14155. time: b[j].time,
  14156. score: b[j].score,
  14157. img: b[j].img,
  14158. likesCount: likesCount,
  14159. commentCount: commentCount,
  14160. isLikes: isLikes,
  14161. commentJson: commentJson,
  14162. };
  14163. if (b[j].ttype == 1) {
  14164. this.worksTeacher[i].push(_works);
  14165. } else {
  14166. this.worksStudent2[i].push(_works);
  14167. }
  14168. this.worksStudent[i].push(_works);
  14169. this.isWorksS[i].push({
  14170. uid: b[j].userid,
  14171. sName: b[j].name,
  14172. });
  14173. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14174. let _works = {
  14175. userid: b[j].userid,
  14176. ateacher: b[j].ateacher,
  14177. wid: b[j].id,
  14178. works: b[j].content,
  14179. sName: b[j].name,
  14180. type: 0,
  14181. time: b[j].time,
  14182. score: b[j].score,
  14183. img: b[j].img,
  14184. likesCount: likesCount,
  14185. commentCount: commentCount,
  14186. isLikes: isLikes,
  14187. commentJson: commentJson,
  14188. };
  14189. if (b[j].ttype == 1) {
  14190. this.worksTeacher[i].push(_works);
  14191. } else {
  14192. this.worksStudent2[i].push(_works);
  14193. }
  14194. this.worksStudent[i].push(_works);
  14195. this.isWorksS[i].push({
  14196. uid: b[j].userid,
  14197. sName: b[j].name,
  14198. });
  14199. }
  14200. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14201. let _works = {
  14202. userid: b[j].userid,
  14203. ateacher: b[j].ateacher,
  14204. wid: b[j].id,
  14205. works: b[j].content,
  14206. sName: b[j].name,
  14207. type: 2,
  14208. time: b[j].time,
  14209. score: b[j].score,
  14210. img: b[j].img,
  14211. likesCount: likesCount,
  14212. commentCount: commentCount,
  14213. isLikes: isLikes,
  14214. commentJson: commentJson,
  14215. };
  14216. if (b[j].ttype == 1) {
  14217. this.worksTeacher[i].push(_works);
  14218. } else {
  14219. this.worksStudent2[i].push(_works);
  14220. }
  14221. this.worksStudent[i].push(_works);
  14222. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14223. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14224. //问卷
  14225. let _works = {
  14226. userid: b[j].userid,
  14227. ateacher: b[j].ateacher,
  14228. wid: b[j].id,
  14229. works: b[j].content,
  14230. sName: b[j].name,
  14231. type: 2,
  14232. time: b[j].time,
  14233. score: b[j].score,
  14234. img: b[j].img,
  14235. likesCount: likesCount,
  14236. commentCount: commentCount,
  14237. isLikes: isLikes,
  14238. commentJson: commentJson,
  14239. };
  14240. if (b[j].ttype == 1) {
  14241. this.worksTeacher[i].push(_works);
  14242. } else {
  14243. this.worksStudent2[i].push(_works);
  14244. }
  14245. this.worksStudent[i].push(_works);
  14246. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14247. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14248. //选择题
  14249. let _works = {
  14250. userid: b[j].userid,
  14251. ateacher: b[j].ateacher,
  14252. wid: b[j].id,
  14253. works: b[j].content,
  14254. sName: b[j].name,
  14255. type: 8,
  14256. time: b[j].time,
  14257. score: b[j].score,
  14258. img: b[j].img,
  14259. likesCount: likesCount,
  14260. commentCount: commentCount,
  14261. isLikes: isLikes,
  14262. commentJson: commentJson,
  14263. };
  14264. if (b[j].ttype == 1) {
  14265. this.worksTeacher[i].push(_works);
  14266. } else {
  14267. this.worksStudent2[i].push(_works);
  14268. }
  14269. this.worksStudent[i].push(_works);
  14270. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14271. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14272. //选择题
  14273. let _works = {
  14274. userid: b[j].userid,
  14275. ateacher: b[j].ateacher,
  14276. wid: b[j].id,
  14277. works: b[j].content,
  14278. sName: b[j].name,
  14279. type: 9,
  14280. time: b[j].time,
  14281. score: b[j].score,
  14282. img: b[j].img,
  14283. likesCount: likesCount,
  14284. commentCount: commentCount,
  14285. isLikes: isLikes,
  14286. commentJson: commentJson,
  14287. };
  14288. if (b[j].ttype == 1) {
  14289. this.worksTeacher[i].push(_works);
  14290. } else {
  14291. this.worksStudent2[i].push(_works);
  14292. }
  14293. this.worksStudent[i].push(_works);
  14294. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14295. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14296. //选择题
  14297. let _works = {
  14298. userid: b[j].userid,
  14299. ateacher: b[j].ateacher,
  14300. wid: b[j].id,
  14301. works: b[j].content,
  14302. sName: b[j].name,
  14303. type: 10,
  14304. time: b[j].time,
  14305. score: b[j].score,
  14306. img: b[j].img,
  14307. likesCount: likesCount,
  14308. commentCount: commentCount,
  14309. isLikes: isLikes,
  14310. commentJson: commentJson,
  14311. };
  14312. if (b[j].ttype == 1) {
  14313. this.worksTeacher[i].push(_works);
  14314. } else {
  14315. this.worksStudent2[i].push(_works);
  14316. }
  14317. this.worksStudent[i].push(_works);
  14318. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14319. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14320. //选择题
  14321. let _works = {
  14322. userid: b[j].userid,
  14323. ateacher: b[j].ateacher,
  14324. wid: b[j].id,
  14325. works: b[j].content,
  14326. sName: b[j].name,
  14327. type: 13,
  14328. time: b[j].time,
  14329. score: b[j].score,
  14330. img: b[j].img,
  14331. likesCount: likesCount,
  14332. commentCount: commentCount,
  14333. isLikes: isLikes,
  14334. commentJson: commentJson,
  14335. };
  14336. if (b[j].ttype == 1) {
  14337. this.worksTeacher[i].push(_works);
  14338. } else {
  14339. this.worksStudent2[i].push(_works);
  14340. }
  14341. this.worksStudent[i].push(_works);
  14342. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14343. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14344. let _gindex = JSON.parse(b[j].content);
  14345. if (
  14346. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14347. b[j].userid
  14348. ) != -1
  14349. ) {
  14350. this.worksStudent[i][_gindex.groupIndex].push({
  14351. userid: b[j].userid,
  14352. ateacher: b[j].ateacher,
  14353. wid: b[j].id,
  14354. works: _gindex.url,
  14355. sName: b[j].name,
  14356. type: _gindex.type,
  14357. time: b[j].time,
  14358. score: b[j].score,
  14359. img: b[j].img,
  14360. likesCount: likesCount,
  14361. commentCount: commentCount,
  14362. isLikes: isLikes,
  14363. commentJson: commentJson,
  14364. });
  14365. }
  14366. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14367. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14368. let _works = {
  14369. userid: b[j].userid,
  14370. ateacher: b[j].ateacher,
  14371. wid: b[j].id,
  14372. works: b[j].content,
  14373. sName: b[j].name ? b[j].name : b[j].userid,
  14374. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14375. time: b[j].time,
  14376. score: b[j].score,
  14377. img: b[j].img,
  14378. likesCount: likesCount,
  14379. commentCount: commentCount,
  14380. isLikes: isLikes,
  14381. commentJson: commentJson,
  14382. };
  14383. if (b[j].ttype == 1) {
  14384. this.worksTeacher[i].push(_works);
  14385. } else {
  14386. this.worksStudent2[i].push(_works);
  14387. }
  14388. this.worksStudent[i].push(_works);
  14389. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14390. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14391. let _works = {
  14392. userid: b[j].userid,
  14393. ateacher: b[j].ateacher,
  14394. wid: b[j].id,
  14395. works: b[j].content,
  14396. sName: b[j].name ? b[j].name : b[j].userid,
  14397. type: 12,
  14398. time: b[j].time,
  14399. score: b[j].score,
  14400. img: b[j].img,
  14401. likesCount: likesCount,
  14402. commentCount: commentCount,
  14403. isLikes: isLikes,
  14404. commentJson: commentJson,
  14405. };
  14406. if (b[j].ttype == 1) {
  14407. this.worksTeacher[i].push(_works);
  14408. } else {
  14409. this.worksStudent2[i].push(_works);
  14410. }
  14411. this.worksStudent[i].push(_works);
  14412. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14413. } else if (
  14414. a[i].tool[0] == 57 &&
  14415. b[j].atool == 57 &&
  14416. b[j].type == 12
  14417. ) {
  14418. let _works = {
  14419. userid: b[j].userid,
  14420. ateacher: b[j].ateacher,
  14421. wid: b[j].id,
  14422. works: b[j].content,
  14423. sName: b[j].name ? b[j].name : b[j].userid,
  14424. type: 12,
  14425. time: b[j].time,
  14426. score: b[j].score,
  14427. img: b[j].img,
  14428. likesCount: likesCount,
  14429. commentCount: commentCount,
  14430. isLikes: isLikes,
  14431. commentJson: commentJson,
  14432. };
  14433. if (b[j].ttype == 1) {
  14434. this.worksTeacher[i].push(_works);
  14435. } else {
  14436. this.worksStudent2[i].push(_works);
  14437. }
  14438. this.worksStudent[i].push(_works);
  14439. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14440. } else if (
  14441. a[i].tool[0] == 57 &&
  14442. b[j].atool == 57 &&
  14443. b[j].type == 15
  14444. ) {
  14445. let _works = {
  14446. userid: b[j].userid,
  14447. ateacher: b[j].ateacher,
  14448. wid: b[j].id,
  14449. works: b[j].content,
  14450. sName: b[j].name ? b[j].name : b[j].userid,
  14451. type: 15,
  14452. time: b[j].time,
  14453. score: b[j].score,
  14454. img: b[j].img,
  14455. likesCount: likesCount,
  14456. commentCount: commentCount,
  14457. isLikes: isLikes,
  14458. commentJson: commentJson,
  14459. };
  14460. if (b[j].ttype == 1) {
  14461. this.worksTeacher[i].push(_works);
  14462. } else {
  14463. this.worksStudent2[i].push(_works);
  14464. }
  14465. this.worksStudent[i].push(_works);
  14466. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14467. }
  14468. }
  14469. }
  14470. if (this.worksStudent[i] && this.worksStudent[i].length) {
  14471. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  14472. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14473. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14474. var scoreA = parseFloat(jscoreA);
  14475. var scoreB = parseFloat(jscoreB);
  14476. if (scoreA == scoreB) {
  14477. return b.likesCount - a.likesCount;
  14478. }
  14479. return scoreB - scoreA;
  14480. });
  14481. }
  14482. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  14483. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  14484. a,
  14485. b
  14486. ) {
  14487. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14488. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14489. var scoreA = parseFloat(jscoreA);
  14490. var scoreB = parseFloat(jscoreB);
  14491. if (scoreA == scoreB) {
  14492. return b.likesCount - a.likesCount;
  14493. }
  14494. return scoreB - scoreA;
  14495. });
  14496. }
  14497. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  14498. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  14499. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14500. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14501. var scoreA = parseFloat(jscoreA);
  14502. var scoreB = parseFloat(jscoreB);
  14503. if (scoreA == scoreB) {
  14504. return b.likesCount - a.likesCount;
  14505. }
  14506. return scoreB - scoreA;
  14507. });
  14508. }
  14509. }
  14510. for (var i = 0; i < a.length; i++) {
  14511. for (var j = 0; j < b.length; j++) {
  14512. var data = b[j];
  14513. if (i == b[j].tool) {
  14514. if (data.type == 2 || data.type == 8) {
  14515. for (var z = 0; z < this.checkJson[i].length; z++) {
  14516. this.checkJson[i][z].checkPerent = [];
  14517. this.checkJson[i][z].right = Math.round(
  14518. (this.checkJson[i][z].rightPerson.length /
  14519. parseInt(this.worksStudent[i].length)) *
  14520. 100
  14521. );
  14522. let aaaa = this.checkJson[i][z];
  14523. console.log(aaaa);
  14524. for (
  14525. var k = 0;
  14526. k < this.checkJson[i][z].checkCount.length;
  14527. k++
  14528. ) {
  14529. this.checkJson[i][z].checkPerent.push(
  14530. Math.round(
  14531. (this.checkJson[i][z].checkCount[k] /
  14532. parseInt(this.worksStudent[i].length)) *
  14533. 100
  14534. )
  14535. );
  14536. }
  14537. }
  14538. } else if (data.type == 9) {
  14539. for (var z = 0; z < this.checkJson[i].length; z++) {
  14540. this.checkJson[i][z].checkPerent = [];
  14541. this.checkJson[i][z].right = Math.round(
  14542. (this.checkJson[i][z].rightPerson.length /
  14543. this.checkJson[i][z].checkPerson.length) *
  14544. 100
  14545. );
  14546. }
  14547. }
  14548. }
  14549. }
  14550. }
  14551. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14552. this.joinGroup(gindex);
  14553. }
  14554. this.selectWorksStudent();
  14555. })
  14556. .catch((err) => {
  14557. console.error(err);
  14558. });
  14559. },
  14560. pngToWhiteBg(file) {
  14561. const _file = file;
  14562. let read = new FileReader();
  14563. read.readAsDataURL(file); // 文件转base64
  14564. return new Promise((resolve, reject) => {
  14565. read.onload = (e) => {
  14566. let img = new Image();
  14567. img.src = e.target.result;
  14568. img.onload = async () => {
  14569. // 生成canvas
  14570. let canvas = document.createElement("canvas");
  14571. let context = canvas.getContext("2d");
  14572. // 绘制图片到canvas上
  14573. canvas.width = img.width;
  14574. canvas.height = img.height;
  14575. // 在canvas绘制前填充白色背景
  14576. context.fillStyle = "#fff";
  14577. context.fillRect(0, 0, canvas.width, canvas.height);
  14578. context.drawImage(img, 0, 0);
  14579. let base64 = canvas.toDataURL(file["type"], 1);
  14580. let newFile = this.dataUrlToFile(base64, _file);
  14581. resolve(newFile);
  14582. };
  14583. };
  14584. });
  14585. },
  14586. dataUrlToFile(dataurl, file) {
  14587. let arr = dataurl.split(","),
  14588. mime = arr[0].match(/:(.*?);/)[1],
  14589. bstr = atob(arr[1]),
  14590. n = bstr.length,
  14591. u8arr = new Uint8Array(n);
  14592. while (n--) {
  14593. u8arr[n] = bstr.charCodeAt(n);
  14594. }
  14595. // return new Blob([u8arr], { type: mime });
  14596. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14597. type: mime,
  14598. });
  14599. },
  14600. async beforeUpload1(event, type, i) {
  14601. // this.$message.success('进入上传')
  14602. var file = "";
  14603. if (type == 5) {
  14604. file = event;
  14605. } else {
  14606. file = event.target.files[0];
  14607. }
  14608. var credentials = {
  14609. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14610. secretAccessKey: "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",
  14611. }; //秘钥形式的登录上传
  14612. window.AWS.config.update(credentials);
  14613. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14614. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14615. var _this = this;
  14616. _this.progress = 0;
  14617. _this.proVisible = true;
  14618. _this.isFinishSize = 0;
  14619. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14620. var b = [
  14621. "DOC",
  14622. "DOCX",
  14623. "DOCM",
  14624. "DOTM",
  14625. "DOTX",
  14626. "PPTX",
  14627. "PPSX",
  14628. "PPT",
  14629. "PPS",
  14630. "PPTM",
  14631. "POTM",
  14632. "PPAM",
  14633. "POTX",
  14634. "PPSM",
  14635. ];
  14636. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14637. var photoA = [
  14638. "BMP",
  14639. "GIF",
  14640. "PNG",
  14641. "JPEG",
  14642. "JPG",
  14643. "TIF",
  14644. "PCX",
  14645. "TGA",
  14646. "EXIF",
  14647. "FPX",
  14648. "SVG",
  14649. "APNG",
  14650. ];
  14651. // if (
  14652. // b.indexOf(
  14653. // file.name
  14654. // .split(".")
  14655. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14656. // ) != -1
  14657. // ) {
  14658. // if (file.size / 1024 / 1024 > 10) {
  14659. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14660. // return;
  14661. // }
  14662. // } else if (
  14663. // excelA.indexOf(
  14664. // file.name
  14665. // .split(".")
  14666. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14667. // ) != "-1"
  14668. // ) {
  14669. // if (file.size / 1024 / 1024 > 5) {
  14670. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14671. // return;
  14672. // }
  14673. // }
  14674. if (
  14675. photoA.indexOf(
  14676. file.name
  14677. .split(".")
  14678. [file.name.split(".").length - 1].toLocaleUpperCase()
  14679. ) != -1 &&
  14680. type != 4
  14681. ) {
  14682. // const blob = await imageConversion.compress(file, 0.8)
  14683. file = await this.pngToWhiteBg(file);
  14684. const blob = await imageConversion.compressAccurately(file, 256);
  14685. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14686. file = new File([blob], file.name, { type: file.type });
  14687. }
  14688. if (file) {
  14689. var params = {
  14690. Key:
  14691. file.name.split(".")[0] +
  14692. new Date().getTime() +
  14693. "." +
  14694. file.name.split(".")[file.name.split(".").length - 1],
  14695. ContentType: file.type,
  14696. Body: file,
  14697. "Access-Control-Allow-Credentials": "*",
  14698. ACL: "public-read",
  14699. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14700. var options = {
  14701. // partSize: 2048 * 1024 * 1024,
  14702. partSize: 1024 * 1024 * 1024,
  14703. queueSize: 2,
  14704. leavePartsOnError: true,
  14705. };
  14706. bucket
  14707. .upload(params, options)
  14708. .on("httpUploadProgress", function (evt) {
  14709. //这里可以写进度条
  14710. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14711. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14712. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14713. })
  14714. .send(function (err, data) {
  14715. _this.progress = 100;
  14716. _this.isFinishSize = _this.isAllSize;
  14717. setTimeout(() => {
  14718. _this.proVisible = false;
  14719. }, 1000);
  14720. if (err) {
  14721. var a = _this.$refs.upload1.uploadFiles;
  14722. a.splice(a.length - 1, a.length);
  14723. _this.$message.error("上传失败");
  14724. } else {
  14725. // _this.$message.success('上传成功')
  14726. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14727. var c = [
  14728. "AVI",
  14729. "NAVI",
  14730. "MPEG",
  14731. "ASF",
  14732. "MOV",
  14733. "WMV",
  14734. "3GP",
  14735. "RM",
  14736. "RMVB",
  14737. "FLV",
  14738. "F4V",
  14739. "H.264",
  14740. "H.265",
  14741. "REAL VIDEO",
  14742. "MKV",
  14743. "WebM",
  14744. "HDDVD",
  14745. "MP4",
  14746. "MPG",
  14747. "M4V",
  14748. "MGV",
  14749. "OGV",
  14750. "QTM",
  14751. "STR",
  14752. "AMC",
  14753. "DVX",
  14754. "EVO",
  14755. "DAT",
  14756. "OGG",
  14757. "OGM",
  14758. ];
  14759. if (type == 1) {
  14760. _this.studyJuri[0].cover.push({
  14761. name: file.name,
  14762. url: data.Location,
  14763. uid: file.uid,
  14764. });
  14765. if (
  14766. c.indexOf(
  14767. _this.studyJuri[0].cover[0].url
  14768. .split(".")
  14769. [
  14770. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14771. ].toLocaleUpperCase()
  14772. ) != -1
  14773. ) {
  14774. _this.fileType = 2;
  14775. } else if (
  14776. b.indexOf(
  14777. _this.studyJuri[0].cover[0].url
  14778. .split(".")
  14779. [
  14780. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14781. ].toLocaleUpperCase()
  14782. ) != -1
  14783. ) {
  14784. _this.fileType = 1;
  14785. } else if (
  14786. photoA.indexOf(
  14787. _this.studyJuri[0].cover[0].url
  14788. .split(".")
  14789. [
  14790. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14791. ].toLocaleUpperCase()
  14792. ) != -1
  14793. ) {
  14794. _this.fileType = 0;
  14795. } else {
  14796. _this.fileType = 3;
  14797. }
  14798. _this.imgChange(null, null, type);
  14799. } else if (type == 2) {
  14800. _this.upToolImg = data.Location;
  14801. _this.imgChange(null, null, type);
  14802. _this.addCourseWorks(i);
  14803. } else if (type == 4) {
  14804. _this.addPz("3", data.Location);
  14805. } else if (type == 5) {
  14806. _this.addImgDrawImG(data.Location);
  14807. } else if (type == 6) {
  14808. var _ftype = 1;
  14809. if (
  14810. c.indexOf(
  14811. data.Location.split(".")[
  14812. data.Location.split(".").length - 1
  14813. ].toLocaleUpperCase()
  14814. ) != -1
  14815. ) {
  14816. _ftype = 5;
  14817. } else if (
  14818. b.indexOf(
  14819. data.Location.split(".")[
  14820. data.Location.split(".").length - 1
  14821. ].toLocaleUpperCase()
  14822. ) != -1
  14823. ) {
  14824. _ftype = 4;
  14825. } else {
  14826. _ftype = 1;
  14827. }
  14828. _this.plworkFile.push({
  14829. name: file.name,
  14830. url: data.Location,
  14831. uid: file.uid,
  14832. fileType: _ftype,
  14833. username:
  14834. _this.plworkFile.length + 1 > 10
  14835. ? _this.plworkFile.length + 1
  14836. : "0" + (_this.plworkFile.length + 1),
  14837. });
  14838. } else if (type == 7) {
  14839. _this.addCourseWorksGong(i, data.Location, 32);
  14840. } else if (type == 8) {
  14841. _this.addCourseWorksGong(i, data.Location, 57);
  14842. }
  14843. _this.imgChange(null, null, type);
  14844. console.log(data.Location);
  14845. // _this.$message.success('上传成功'+data.Location)
  14846. }
  14847. });
  14848. }
  14849. },
  14850. async beforeUpload3(event, type, i) {
  14851. // this.$message.success('进入上传')
  14852. let file = "";
  14853. let cfindex2 = 0;
  14854. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14855. file = event.target.files[cfindex];
  14856. var credentials = {
  14857. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14858. secretAccessKey: "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",
  14859. }; //秘钥形式的登录上传
  14860. window.AWS.config.update(credentials);
  14861. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14862. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14863. var _this = this;
  14864. // _this.progress = 0;
  14865. _this.proVisible2 = true;
  14866. var b = [
  14867. "DOC",
  14868. "DOCX",
  14869. "DOCM",
  14870. "DOTM",
  14871. "DOTX",
  14872. "PPTX",
  14873. "PPSX",
  14874. "PPT",
  14875. "PPS",
  14876. "PPTM",
  14877. "POTM",
  14878. "PPAM",
  14879. "POTX",
  14880. "PPSM",
  14881. ];
  14882. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14883. var photoA = [
  14884. "BMP",
  14885. "GIF",
  14886. "PNG",
  14887. "JPEG",
  14888. "JPG",
  14889. "TIF",
  14890. "PCX",
  14891. "TGA",
  14892. "EXIF",
  14893. "FPX",
  14894. "SVG",
  14895. "APNG",
  14896. ];
  14897. if (
  14898. photoA.indexOf(
  14899. file.name
  14900. .split(".")
  14901. [file.name.split(".").length - 1].toLocaleUpperCase()
  14902. ) != -1 &&
  14903. type != 4
  14904. ) {
  14905. // const blob = await imageConversion.compress(file, 0.8)
  14906. file = await this.pngToWhiteBg(file);
  14907. const blob = await imageConversion.compressAccurately(file, 256);
  14908. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14909. file = new File([blob], file.name, { type: file.type });
  14910. }
  14911. if (file) {
  14912. var params = {
  14913. Key:
  14914. file.name.split(".")[0] +
  14915. new Date().getTime() +
  14916. "." +
  14917. file.name.split(".")[file.name.split(".").length - 1],
  14918. ContentType: file.type,
  14919. Body: file,
  14920. "Access-Control-Allow-Credentials": "*",
  14921. ACL: "public-read",
  14922. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14923. var options = {
  14924. // partSize: 2048 * 1024 * 1024,
  14925. partSize: 1024 * 1024 * 1024,
  14926. queueSize: 2,
  14927. leavePartsOnError: true,
  14928. };
  14929. bucket
  14930. .upload(params, options)
  14931. .on("httpUploadProgress", function (evt) {
  14932. //这里可以写进度条
  14933. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14934. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14935. })
  14936. .send(function (err, data) {
  14937. // _this.progress = 100;
  14938. cfindex2++;
  14939. setTimeout(() => {
  14940. if (
  14941. cfindex2 == event.target.files.length - 1 ||
  14942. cfindex2 > event.target.files.length - 1
  14943. ) {
  14944. _this.proVisible2 = false;
  14945. }
  14946. }, 1000);
  14947. if (err) {
  14948. var a = _this.$refs.upload1.uploadFiles;
  14949. a.splice(a.length - 1, a.length);
  14950. _this.$message.error("上传失败");
  14951. } else {
  14952. // _this.$message.success('上传成功')
  14953. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14954. var c = [
  14955. "AVI",
  14956. "NAVI",
  14957. "MPEG",
  14958. "ASF",
  14959. "MOV",
  14960. "WMV",
  14961. "3GP",
  14962. "RM",
  14963. "RMVB",
  14964. "FLV",
  14965. "F4V",
  14966. "H.264",
  14967. "H.265",
  14968. "REAL VIDEO",
  14969. "MKV",
  14970. "WebM",
  14971. "HDDVD",
  14972. "MP4",
  14973. "MPG",
  14974. "M4V",
  14975. "MGV",
  14976. "OGV",
  14977. "QTM",
  14978. "STR",
  14979. "AMC",
  14980. "DVX",
  14981. "EVO",
  14982. "DAT",
  14983. "OGG",
  14984. "OGM",
  14985. ];
  14986. if (type == 1) {
  14987. _this.studyJuri[0].cover.push({
  14988. name: file.name,
  14989. url: data.Location,
  14990. uid: file.uid,
  14991. });
  14992. if (
  14993. c.indexOf(
  14994. _this.studyJuri[0].cover[0].url
  14995. .split(".")
  14996. [
  14997. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14998. ].toLocaleUpperCase()
  14999. ) != -1
  15000. ) {
  15001. _this.fileType = 2;
  15002. } else if (
  15003. b.indexOf(
  15004. _this.studyJuri[0].cover[0].url
  15005. .split(".")
  15006. [
  15007. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15008. ].toLocaleUpperCase()
  15009. ) != -1
  15010. ) {
  15011. _this.fileType = 1;
  15012. } else {
  15013. _this.fileType = 0;
  15014. }
  15015. _this.imgChange(null, null, type);
  15016. } else if (type == 2) {
  15017. _this.upToolImg = data.Location;
  15018. _this.imgChange(null, null, type);
  15019. _this.addCourseWorks(i);
  15020. } else if (type == 4) {
  15021. _this.addPz("3", data.Location);
  15022. } else if (type == 5) {
  15023. _this.addImgDrawImG(data.Location);
  15024. } else if (type == 6) {
  15025. var _ftype = 1;
  15026. if (
  15027. c.indexOf(
  15028. data.Location.split(".")[
  15029. data.Location.split(".").length - 1
  15030. ].toLocaleUpperCase()
  15031. ) != -1
  15032. ) {
  15033. _ftype = 5;
  15034. } else if (
  15035. b.indexOf(
  15036. data.Location.split(".")[
  15037. data.Location.split(".").length - 1
  15038. ].toLocaleUpperCase()
  15039. ) != -1
  15040. ) {
  15041. _ftype = 4;
  15042. } else {
  15043. _ftype = 1;
  15044. }
  15045. _this.plworkFile.push({
  15046. name: file.name,
  15047. url: data.Location,
  15048. uid: file.uid,
  15049. fileType: _ftype,
  15050. username:
  15051. _this.plworkFile.length + 1 > 9
  15052. ? _this.plworkFile.length + 1
  15053. : "0" + (_this.plworkFile.length + 1),
  15054. });
  15055. }
  15056. _this.imgChange(null, null, type);
  15057. console.log(data.Location);
  15058. // _this.$message.success('上传成功'+data.Location)
  15059. }
  15060. });
  15061. }
  15062. }
  15063. },
  15064. beforeUpload2(event, type) {
  15065. var file = event.target.files[0];
  15066. var credentials = {
  15067. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15068. secretAccessKey: "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",
  15069. }; //秘钥形式的登录上传
  15070. window.AWS.config.update(credentials);
  15071. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15072. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15073. var _this = this;
  15074. _this.progress = 0;
  15075. _this.proVisible = true;
  15076. if (file) {
  15077. var params = {
  15078. Key:
  15079. file.name.split(".")[0] +
  15080. new Date().getTime() +
  15081. "." +
  15082. file.name.split(".")[file.name.split(".").length - 1],
  15083. ContentType: file.type,
  15084. Body: file,
  15085. "Access-Control-Allow-Credentials": "*",
  15086. ACL: "public-read",
  15087. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15088. var options = {
  15089. partSize: 2048 * 1024 * 1024,
  15090. queueSize: 2,
  15091. leavePartsOnError: true,
  15092. };
  15093. bucket
  15094. .upload(params, options)
  15095. .on("httpUploadProgress", function (evt) {
  15096. //这里可以写进度条
  15097. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15098. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15099. })
  15100. .send(function (err, data) {
  15101. _this.progress = 100;
  15102. setTimeout(() => {
  15103. _this.proVisible = false;
  15104. }, 1000);
  15105. if (err) {
  15106. var a = _this.$refs.upload1.uploadFiles;
  15107. a.splice(a.length - 1, a.length);
  15108. _this.$message.error("上传失败");
  15109. } else {
  15110. if (type == 2) {
  15111. _this.studyJuri[0].upVedio.push({
  15112. name: file.name,
  15113. url: data.Location,
  15114. uid: file.uid,
  15115. });
  15116. _this.imgChange(null, null, type);
  15117. } else if (type == 3) {
  15118. _this.studyJuri[0].upFile.push({
  15119. name: file.name,
  15120. url: data.Location,
  15121. uid: file.uid,
  15122. });
  15123. _this.imgChange(null, null, type);
  15124. }
  15125. console.log(data.Location);
  15126. }
  15127. });
  15128. }
  15129. },
  15130. allScrell() {
  15131. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  15132. },
  15133. nextToolindex(type) {
  15134. if (type == "last") {
  15135. if (this.toolIndex == 0) {
  15136. this.$message.error("已经是第一个步骤");
  15137. return;
  15138. }
  15139. this.toolIndex = this.toolIndex - 1;
  15140. this.tool =
  15141. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15142. this.taskCount
  15143. ].toolChoose[this.toolIndex];
  15144. } else if (type == "next") {
  15145. if (
  15146. this.toolIndex ==
  15147. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15148. this.taskCount
  15149. ].toolChoose.length -
  15150. 1
  15151. ) {
  15152. this.$message.error("已经是最后一个步骤");
  15153. return;
  15154. }
  15155. this.toolIndex = this.toolIndex + 1;
  15156. this.tool =
  15157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15158. this.taskCount
  15159. ].toolChoose[this.toolIndex];
  15160. }
  15161. this.$forceUpdate();
  15162. },
  15163. checkBz(index) {
  15164. this.toolIndex = index;
  15165. this.tool =
  15166. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15167. this.taskCount
  15168. ].toolChoose[this.toolIndex];
  15169. this.isUpdateToolDetail = false;
  15170. this.$forceUpdate();
  15171. },
  15172. checkBz1(i, j, k, l) {
  15173. this.courseType = i;
  15174. this.navId = l;
  15175. this.taskCount = j;
  15176. this.toolIndex = k;
  15177. this.tool = this.chapInfoList[i].chapterInfo[0].taskJson[j].toolChoose[k];
  15178. this.isUpdateToolDetail = false;
  15179. this.selectPz();
  15180. this.getHomeWork();
  15181. this.getCourseDetail(2);
  15182. this.$forceUpdate();
  15183. },
  15184. openToolAll() {
  15185. this.toolDialogVisible = true;
  15186. },
  15187. nextOrpreSteps(t) {
  15188. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15189. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15190. return;
  15191. }
  15192. var b = this.chapInfoList.length - 1;
  15193. if (t == 0) {
  15194. if (this.courseType == 0) {
  15195. if (this.taskCount == 0) {
  15196. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15197. if (this.IsLookOpen) {
  15198. if (
  15199. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15200. ) {
  15201. if (
  15202. this.courseDetail.userid != this.userid &&
  15203. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15204. ) {
  15205. this.$message.error("任务未解锁");
  15206. } else {
  15207. this.$message.error("上一任务未解锁");
  15208. }
  15209. return;
  15210. }
  15211. }
  15212. this.navList[this.courseType].isOpen = false;
  15213. this.courseType = b;
  15214. this.taskCount =
  15215. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15216. .length - 1;
  15217. this.navList[this.courseType].isOpen = true;
  15218. } else {
  15219. this.taskCount--;
  15220. }
  15221. } else {
  15222. if (this.taskCount == 0) {
  15223. this.navList[this.courseType].isOpen = false;
  15224. this.courseType--;
  15225. this.taskCount =
  15226. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15227. .length - 1;
  15228. this.navList[this.courseType].isOpen = true;
  15229. } else {
  15230. this.taskCount--;
  15231. }
  15232. }
  15233. } else {
  15234. if (this.courseType == b) {
  15235. if (
  15236. this.taskCount ==
  15237. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15238. 1
  15239. ) {
  15240. this.navList[this.courseType].isOpen = false;
  15241. this.courseType = 0;
  15242. this.taskCount = 0;
  15243. this.navList[this.courseType].isOpen = true;
  15244. } else {
  15245. var bbb = parseInt(this.taskCount) + 1;
  15246. if (
  15247. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15248. .isLook &&
  15249. this.courseDetail.userid != this.userid &&
  15250. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15251. this.IsLookOpen
  15252. ) {
  15253. this.$message.error("任务未解锁");
  15254. return;
  15255. }
  15256. this.taskCount++;
  15257. if (this.IsLookOpen) {
  15258. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15259. this.taskCount
  15260. ].isLook = true;
  15261. this.addCourseState(3);
  15262. }
  15263. }
  15264. } else {
  15265. if (
  15266. this.taskCount ==
  15267. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15268. 1
  15269. ) {
  15270. var bbb = parseInt(this.courseType) + 1;
  15271. if (
  15272. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15273. this.courseDetail.userid != this.userid &&
  15274. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15275. this.IsLookOpen
  15276. ) {
  15277. this.$message.error("任务未解锁");
  15278. return;
  15279. }
  15280. this.navList[this.courseType].isOpen = false;
  15281. this.courseType++;
  15282. this.taskCount = 0;
  15283. this.navList[this.courseType].isOpen = true;
  15284. } else {
  15285. var bbb = parseInt(this.taskCount) + 1;
  15286. if (
  15287. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15288. .isLook &&
  15289. this.courseDetail.userid != this.userid &&
  15290. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15291. this.IsLookOpen
  15292. ) {
  15293. this.$message.error("任务未解锁");
  15294. return;
  15295. }
  15296. this.taskCount++;
  15297. }
  15298. if (this.IsLookOpen) {
  15299. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15300. this.taskCount
  15301. ].isLook = true;
  15302. this.addCourseState(3);
  15303. }
  15304. }
  15305. }
  15306. document.scrollingElement.scrollTop = 0;
  15307. // this.showType = 0;
  15308. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15309. this.toolIndex = null;
  15310. this.isNoHomeWork = false;
  15311. (this.studyJuri = [
  15312. {
  15313. content: "",
  15314. cover: [],
  15315. upVedio: [],
  15316. upFile: [],
  15317. },
  15318. ]),
  15319. (this.radio = []);
  15320. // this.isClickNav = "";
  15321. this.selectPz();
  15322. this.getHomeWork();
  15323. this.getCourseDetail(2);
  15324. this.$forceUpdate();
  15325. },
  15326. openTask(s, n, i) {
  15327. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15328. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15329. return;
  15330. }
  15331. if (this.IsLookOpen) {
  15332. if (
  15333. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15334. this.courseDetail.userid != this.userid &&
  15335. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15336. ) {
  15337. this.$message.error("任务未解锁");
  15338. return;
  15339. }
  15340. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15341. if (
  15342. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15343. .isLook
  15344. ) {
  15345. this.$message.error("上一任务未解锁");
  15346. return;
  15347. }
  15348. } else if (s > this.courseType) {
  15349. if (n > 0) {
  15350. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15351. this.$message.error("上一任务未解锁");
  15352. return;
  15353. }
  15354. } else {
  15355. if (
  15356. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15357. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15358. ].isLook
  15359. ) {
  15360. this.$message.error("上一任务未解锁");
  15361. return;
  15362. }
  15363. }
  15364. }
  15365. }
  15366. if (this.navList[s].task[n].isOpen == true) {
  15367. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15368. return;
  15369. }
  15370. this.courseType = s;
  15371. this.navId = i;
  15372. this.taskCount = n;
  15373. this.navList[this.courseType].task[this.taskCount].isOpen =
  15374. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15375. if (this.IsLookOpen) {
  15376. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15377. this.taskCount
  15378. ].isLook = true;
  15379. this.addCourseState(3);
  15380. }
  15381. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15382. this.isCloseList[ci].isClose = 0;
  15383. }
  15384. // this.showType = 0;
  15385. this.isNoHomeWork = false;
  15386. (this.studyJuri = [
  15387. {
  15388. content: "",
  15389. cover: [],
  15390. upVedio: [],
  15391. upFile: [],
  15392. },
  15393. ]),
  15394. (this.radio = []);
  15395. document.scrollingElement.scrollTop = 0;
  15396. this.toolIndex = null;
  15397. // setTimeout(() => {
  15398. // let a = document.getElementById(i);
  15399. // if (a.offsetTop - 110 == 0) {
  15400. // window.scrollTo(0, 0);
  15401. // } else {
  15402. // window.scrollTo(0, a.offsetTop);
  15403. // }
  15404. // }, 0);
  15405. this.selectPz();
  15406. this.getHomeWork();
  15407. this.getCourseDetail(2);
  15408. },
  15409. get(i) {
  15410. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15411. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15412. return;
  15413. }
  15414. this.navList[i].isOpen = !this.navList[i].isOpen;
  15415. },
  15416. addQuestion() {
  15417. this.answerList.push({
  15418. answerTitle: this.answerQ,
  15419. answer: this.questionAnswer,
  15420. });
  15421. let params = [
  15422. {
  15423. uid: this.userid,
  15424. cid: this.id,
  15425. stage: this.courseType,
  15426. task: this.taskCount,
  15427. tool: this.toolindex,
  15428. content: JSON.stringify(this.answerList),
  15429. type: 3,
  15430. },
  15431. ];
  15432. this.ajax
  15433. .post(this.$store.state.api + "addCourseWorks", params)
  15434. .then((res) => {
  15435. this.$message({
  15436. message: "提交成功",
  15437. type: "success",
  15438. });
  15439. this.answerList = [];
  15440. this.questionAnswer = "";
  15441. this.answerDialogVisible = false;
  15442. this.selectStudent();
  15443. this.selectSWorks();
  15444. this.selectSLook();
  15445. })
  15446. .catch((err) => {
  15447. this.$message.error("提交失败");
  15448. console.error(err);
  15449. });
  15450. },
  15451. addQuestionTeacher() {
  15452. this.answerList.push({
  15453. answerTitle: this.answerQ,
  15454. answer: this.questionAnswer,
  15455. });
  15456. let params = [
  15457. {
  15458. uid: this.sStudent.userid,
  15459. cid: this.id,
  15460. stage: this.courseType,
  15461. task: this.taskCount,
  15462. tool: this.toolindex,
  15463. content: JSON.stringify(this.answerList),
  15464. type: 3,
  15465. ateacher: this.userid,
  15466. },
  15467. ];
  15468. this.ajax
  15469. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15470. .then((res) => {
  15471. this.$message({
  15472. message: "提交成功",
  15473. type: "success",
  15474. });
  15475. this.answerList = [];
  15476. this.questionAnswer = "";
  15477. this.answerDialogVisibleTeacher = false;
  15478. this.selectStudent();
  15479. this.selectSWorks();
  15480. this.selectSLook();
  15481. })
  15482. .catch((err) => {
  15483. this.$message.error("提交失败");
  15484. console.error(err);
  15485. });
  15486. },
  15487. refreshCourse() {
  15488. this.navList = [];
  15489. this.getCourseDetail(1);
  15490. },
  15491. setPz() {
  15492. if (this.ispzType == 4) {
  15493. this.ispzType = 0;
  15494. this.pzDialog = false;
  15495. return;
  15496. }
  15497. this.ispzType = 4;
  15498. this.pzDialog = true;
  15499. this.selectPz();
  15500. },
  15501. getCourseDetail(type, gindex) {
  15502. let loading;
  15503. if (type != 2) {
  15504. loading = this.$loading.service({
  15505. background: "rgba(255, 255, 255, 0.7)",
  15506. target: document.querySelector(".student_table"),
  15507. });
  15508. }
  15509. let params = {
  15510. courseId: this.id,
  15511. };
  15512. this.ajax
  15513. .get(this.$store.state.api + "selectCourseDetail3", params)
  15514. .then((res) => {
  15515. if (type != 2) {
  15516. loading.close();
  15517. if (
  15518. this.courseType >
  15519. JSON.parse(res.data[0][0].chapters).length - 1
  15520. ) {
  15521. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15522. }
  15523. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15524. .chapterInfo[0].taskJson;
  15525. var b = [
  15526. "AVI",
  15527. "NAVI",
  15528. "MPEG",
  15529. "ASF",
  15530. "MOV",
  15531. "WMV",
  15532. "3GP",
  15533. "RM",
  15534. "RMVB",
  15535. "FLV",
  15536. "F4V",
  15537. "H.264",
  15538. "H.265",
  15539. "REAL VIDEO",
  15540. "MKV",
  15541. "WebM",
  15542. "HDDVD",
  15543. "MP4",
  15544. "MPG",
  15545. "M4V",
  15546. "MGV",
  15547. "OGV",
  15548. "QTM",
  15549. "STR",
  15550. "AMC",
  15551. "DVX",
  15552. "EVO",
  15553. "DAT",
  15554. "OGG",
  15555. "OGM",
  15556. "MP3",
  15557. ];
  15558. let _chapterData = [];
  15559. for (var i = 0; i < a.length; i++) {
  15560. var c = a[i].chapterData;
  15561. this.vedio[i] = [];
  15562. this.textList[i] = [];
  15563. this.lineList[i] = [];
  15564. this.chapToolList[i] = [];
  15565. this.file[i] = [];
  15566. this.fileC[i] = [];
  15567. _chapterData[i] = c.filter((el) => {
  15568. return el.type != 12;
  15569. });
  15570. this.fileC[i] = c.filter((el) => {
  15571. return el.type == 12;
  15572. });
  15573. for (var j = 0; j < c.length; j++) {
  15574. if (c[j].type == 7) {
  15575. this.chapToolList[i].push(c[j]);
  15576. } else if (c[j].type == 8 || c[j].type == 14) {
  15577. this.lineList[i].push(c[j]);
  15578. } else if (c[j].type == 6) {
  15579. this.textList[i].push(c[j]);
  15580. } else {
  15581. if (
  15582. b.indexOf(
  15583. c[j].url
  15584. .split(".")
  15585. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15586. ) != -1
  15587. ) {
  15588. this.vedio[i].push(c[j]);
  15589. } else {
  15590. this.file[i].push(c[j]);
  15591. }
  15592. }
  15593. }
  15594. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15595. d.sources[0].src =
  15596. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15597. this.playerO[i] = d;
  15598. }
  15599. this.courseDetail = res.data[0][0];
  15600. this.tcid = this.arrayToArray(
  15601. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15602. this.tcid2 ? this.tcid2.split(",") : []
  15603. ).join(",");
  15604. console.log(this.tcid);
  15605. this.evalua = res.data[0][0].evaId;
  15606. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15607. this.courseType
  15608. ];
  15609. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15610. if (this.tcid && res.data[1].length) {
  15611. let _inviteA = [];
  15612. for (var ik = 0; ik < res.data[1].length; ik++) {
  15613. _inviteA.push({
  15614. cid: res.data[1][ik].classid,
  15615. ic: res.data[1][ik].code,
  15616. });
  15617. }
  15618. for (var ik = 0; ik < _inviteA.length; ik++) {
  15619. if (
  15620. this.arrayToArray(
  15621. _inviteA[ik].cid.split(","),
  15622. this.tcid.split(",")
  15623. ).length
  15624. ) {
  15625. this.inviteCode = _inviteA[ik].ic;
  15626. break;
  15627. }
  15628. }
  15629. }
  15630. for (var l = 0; l < this.chapInfoList.length; l++) {
  15631. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15632. for (var m = 0; m < w.length; m++) {
  15633. w[m].id = l + "-" + m;
  15634. }
  15635. }
  15636. let taskCount = 0;
  15637. if (
  15638. _chapterData[taskCount].length &&
  15639. _chapterData[taskCount][0].type == 2
  15640. ) {
  15641. this.showType = 0;
  15642. } else {
  15643. if (_chapterData[taskCount].length > 0) {
  15644. let _url = _chapterData[taskCount][0].url;
  15645. if (
  15646. _chapterData[taskCount][0].type == 8 ||
  15647. _chapterData[taskCount][0].type == 14
  15648. ) {
  15649. this.showType = 2;
  15650. if (
  15651. _url.indexOf("https://") == -1 &&
  15652. _url.indexOf("http://") == -1
  15653. ) {
  15654. _url = "https://" + _url;
  15655. }
  15656. this.pptImgUrl1 = _url;
  15657. } else if (_chapterData[taskCount][0].type == 3) {
  15658. if (
  15659. _url
  15660. .split(".")
  15661. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15662. ) {
  15663. this.showType = 3;
  15664. this.pptImgUrl1 = _url;
  15665. } else if (
  15666. this.isAssetTypeAnImage(
  15667. _url
  15668. .split(".")
  15669. [_url.split(".").length - 1].toLocaleLowerCase()
  15670. )
  15671. ) {
  15672. this.showType = 4;
  15673. this.pptImgUrl1 = _url;
  15674. } else {
  15675. this.showType = 2;
  15676. this.pptImgUrl1 =
  15677. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15678. _url;
  15679. }
  15680. } else if (_chapterData[this.taskCount][0].type == 13) {
  15681. this.showType = 4;
  15682. this.pptImgUrl1 = _url;
  15683. } else if (_chapterData[taskCount][0].type == 6) {
  15684. this.showType = 1;
  15685. this.text = this.textList[taskCount][0];
  15686. }
  15687. }
  15688. }
  15689. this.isClickNav = 0;
  15690. if (
  15691. !_chapterData[taskCount].length ||
  15692. _chapterData[taskCount][0].type == 12
  15693. ) {
  15694. this.isClickNav = "";
  15695. this.showType = "";
  15696. }
  15697. this.vChapterData = _chapterData;
  15698. if (
  15699. this.toolIndex == null &&
  15700. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15701. this.taskCount
  15702. ].toolChoose.length
  15703. ) {
  15704. this.toolIndex = 0;
  15705. this.tool =
  15706. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15707. this.taskCount
  15708. ].toolChoose[this.toolIndex];
  15709. }
  15710. } else {
  15711. if (
  15712. this.toolIndex == null &&
  15713. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15714. this.taskCount
  15715. ].toolChoose.length
  15716. ) {
  15717. this.toolIndex = 0;
  15718. this.tool =
  15719. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15720. this.taskCount
  15721. ].toolChoose[this.toolIndex];
  15722. }
  15723. }
  15724. this.isUpdateToolDetail = false;
  15725. this.$nextTick(() => {
  15726. setTimeout(() => {
  15727. this.checkEva();
  15728. }, 1000);
  15729. });
  15730. let _this = this;
  15731. if (_this.timer) {
  15732. clearInterval(_this.timer);
  15733. _this.timer = null;
  15734. }
  15735. _this.selectSWorks(gindex);
  15736. _this.selectStudent();
  15737. _this.selectSLook();
  15738. _this.getPick();
  15739. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15740. _this.setCTask();
  15741. }
  15742. if (_this.dialogVisibleGroup) {
  15743. _this.groupJson =
  15744. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15745. _this.taskCount
  15746. ].toolChoose[_this.toolindex].groupJson;
  15747. }
  15748. _this.timer = setInterval(function () {
  15749. if (_this.tcid) {
  15750. _this.getCourseGroup(gindex);
  15751. } else {
  15752. _this.selectSWorks(gindex);
  15753. }
  15754. _this.selectStudent();
  15755. _this.selectSLook();
  15756. _this.getPick();
  15757. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15758. _this.setCTask();
  15759. }
  15760. if (_this.dialogVisibleGroup) {
  15761. _this.groupJson =
  15762. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15763. _this.taskCount
  15764. ].toolChoose[_this.toolindex].groupJson;
  15765. }
  15766. if (_this.tType == 4 || _this.ispzType == 4) {
  15767. _this.selectPz();
  15768. }
  15769. }, 5000);
  15770. })
  15771. .catch((err) => {
  15772. loading.close();
  15773. console.error(err);
  15774. });
  15775. },
  15776. getCourseGroup(gindex) {
  15777. let params = {
  15778. cid: this.id,
  15779. classid: this.tcid ? this.tcid : "1",
  15780. };
  15781. this.ajax
  15782. .get(this.$store.state.api + "getCourseGroup", params)
  15783. .then((res) => {
  15784. if (res.data && res.data[0].length) {
  15785. if (!this.isGroup) {
  15786. let courseGroup = JSON.parse(res.data[0][0].group);
  15787. courseGroup.group = courseGroup.group.filter((el) => {
  15788. el.works = [];
  15789. return el;
  15790. });
  15791. this.courseGroup = courseGroup;
  15792. let groupPerson = res.data[1];
  15793. let group = JSON.parse(res.data[0][0].group).group;
  15794. let courseGroupStudent = {};
  15795. let courseGroupStudentUid = {};
  15796. for (var i = 0; i < group.length; i++) {
  15797. courseGroupStudent[group[i].id] = [];
  15798. courseGroupStudentUid[group[i].id] = [];
  15799. for (var j = 0; j < groupPerson.length; j++) {
  15800. if (groupPerson[j].groupCid == group[i].id) {
  15801. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15802. courseGroupStudentUid[group[i].id].push(
  15803. groupPerson[j].userid
  15804. );
  15805. }
  15806. }
  15807. }
  15808. this.courseGroupStudent = courseGroupStudent;
  15809. this.courseGroupStudentUid = courseGroupStudentUid;
  15810. }
  15811. this.isGroup = true;
  15812. this.selectSWorks(gindex);
  15813. } else {
  15814. this.selectSWorks(gindex);
  15815. this.isGroup = false;
  15816. }
  15817. })
  15818. .catch((err) => {
  15819. // this.$message.error("网络不佳");
  15820. console.error(err);
  15821. });
  15822. },
  15823. setOperationTime() {
  15824. let _this = this;
  15825. if (_this.opertimer) {
  15826. clearInterval(_this.opertimer);
  15827. _this.opertimer = null;
  15828. }
  15829. _this.opertimer = setInterval(() => {
  15830. _this.setoTime("600");
  15831. }, 600000);
  15832. },
  15833. setoTime(time) {
  15834. let params = [
  15835. {
  15836. uid: this.userid,
  15837. cid: this.id,
  15838. type: "2",
  15839. time: time,
  15840. },
  15841. ];
  15842. this.ajax
  15843. .post(this.$store.state.api + "addOperationTimeT2", params)
  15844. .then((res) => {})
  15845. .catch((err) => {
  15846. console.error(err);
  15847. });
  15848. },
  15849. addPz(type, content) {
  15850. if (type == "1" && this.pzConText == "") {
  15851. this.$message.error("批注不能为空!");
  15852. return;
  15853. }
  15854. let params = [
  15855. {
  15856. cid: this.id,
  15857. uid: this.userid,
  15858. s: this.courseType,
  15859. t: this.taskCount,
  15860. c: type == "1" ? this.pzConText : content,
  15861. type: type,
  15862. },
  15863. ];
  15864. this.ajax
  15865. .post(this.$store.state.api + "addPz2", params)
  15866. .then((res) => {
  15867. this.$message({
  15868. message: "添加成功",
  15869. type: "success",
  15870. });
  15871. this.pzConText = "";
  15872. this.addPzDialog = false;
  15873. this.selectPz();
  15874. })
  15875. .catch((err) => {
  15876. this.$message.error("添加失败");
  15877. console.error(err);
  15878. });
  15879. },
  15880. setReplyIndex(id, i) {
  15881. this.replyIndex = i;
  15882. this.replyPid = id;
  15883. this.replyDialogVisible = true;
  15884. },
  15885. addHf() {
  15886. if (this.reply == "") {
  15887. this.$message.error("回复不能为空!");
  15888. return;
  15889. }
  15890. let params = [
  15891. {
  15892. cid: this.id,
  15893. uid: this.userid,
  15894. s: this.courseType,
  15895. t: this.taskCount,
  15896. type: "1",
  15897. ct: 2,
  15898. pid: this.replyPid,
  15899. c: this.reply,
  15900. },
  15901. ];
  15902. this.ajax
  15903. .post(this.$store.state.api + "addHf", params)
  15904. .then((res) => {
  15905. this.reply = "";
  15906. this.$message({
  15907. message: "回复成功",
  15908. type: "success",
  15909. });
  15910. this.replyDialogVisible = false;
  15911. this.selectPz();
  15912. })
  15913. .catch((err) => {
  15914. this.$message.error("回复失败");
  15915. console.error(err);
  15916. });
  15917. },
  15918. deletePz(id) {
  15919. this.$confirm("确定删除此批注吗?", "提示", {
  15920. confirmButtonText: "确定",
  15921. cancelButtonText: "取消",
  15922. type: "warning",
  15923. })
  15924. .then(() => {
  15925. let params = [
  15926. {
  15927. id: id,
  15928. },
  15929. ];
  15930. this.ajax
  15931. .post(this.$store.state.api + "deletePz", params)
  15932. .then((res) => {
  15933. this.$message({
  15934. message: "删除成功",
  15935. type: "success",
  15936. });
  15937. this.selectPz();
  15938. })
  15939. .catch((err) => {
  15940. this.$message.error("网络异常");
  15941. console.error(err);
  15942. });
  15943. })
  15944. .catch(() => {});
  15945. },
  15946. deleteReply(id) {
  15947. this.$confirm("确定删除此回复吗?", "提示", {
  15948. confirmButtonText: "确定",
  15949. cancelButtonText: "取消",
  15950. type: "warning",
  15951. })
  15952. .then(() => {
  15953. let params = [
  15954. {
  15955. id: id,
  15956. },
  15957. ];
  15958. this.ajax
  15959. .post(this.$store.state.api + "deleteReply", params)
  15960. .then((res) => {
  15961. this.$message({
  15962. message: "删除成功",
  15963. type: "success",
  15964. });
  15965. this.selectPz();
  15966. })
  15967. .catch((err) => {
  15968. this.$message.error("网络异常");
  15969. console.error(err);
  15970. });
  15971. })
  15972. .catch(() => {});
  15973. },
  15974. selectPz() {
  15975. let params = {
  15976. cid: this.id,
  15977. s: this.courseType,
  15978. t: this.taskCount,
  15979. type: this.pzStype,
  15980. uid: this.userid,
  15981. };
  15982. this.ajax
  15983. .get(this.$store.state.api + "selectPzListType", params)
  15984. .then((res) => {
  15985. this.pzList = res.data[0];
  15986. var a = res.data[1];
  15987. for (var i = 0; i < a.length; i++) {
  15988. for (var j = 0; j < this.pzList.length; j++) {
  15989. if (!this.pzList[j].hfList) {
  15990. this.pzList[j].hfList = [];
  15991. }
  15992. if (a[i].pid == this.pzList[j].id) {
  15993. this.pzList[j].hfList.push(a[i]);
  15994. }
  15995. }
  15996. }
  15997. })
  15998. .catch((err) => {
  15999. console.error(err);
  16000. });
  16001. },
  16002. updateSLook() {
  16003. let params = {
  16004. sopen: this.sIsOpen == false ? 1 : 2,
  16005. cid: this.id,
  16006. };
  16007. this.ajax
  16008. .get(this.$store.state.api + "updateCourseSLook", params)
  16009. .then((res) => {
  16010. if (this.sIsOpen == true) {
  16011. this.$message({
  16012. message: "权限设置成功",
  16013. type: "success",
  16014. });
  16015. } else {
  16016. this.$message({
  16017. message: "权限关闭成功",
  16018. type: "success",
  16019. });
  16020. }
  16021. })
  16022. .catch((err) => {
  16023. console.error(err);
  16024. });
  16025. },
  16026. updateFollow() {
  16027. let params = [
  16028. {
  16029. sopen: this.IsFollow == false ? 1 : 2,
  16030. cid: this.id,
  16031. },
  16032. ];
  16033. this.ajax
  16034. .post(this.$store.state.api + "updateCourseFollow", params)
  16035. .then((res) => {
  16036. if (this.IsFollow == true) {
  16037. this.$message({
  16038. message: "开启成功",
  16039. type: "success",
  16040. });
  16041. } else {
  16042. this.$message({
  16043. message: "关闭成功",
  16044. type: "success",
  16045. });
  16046. }
  16047. this.setCTask();
  16048. })
  16049. .catch((err) => {
  16050. console.error(err);
  16051. });
  16052. },
  16053. setCTask() {
  16054. let params = [
  16055. {
  16056. sopen: this.courseType + "-" + this.taskCount,
  16057. cid: this.id,
  16058. },
  16059. ];
  16060. this.ajax
  16061. .post(this.$store.state.api + "updateCourseFollowC", params)
  16062. .then((res) => {})
  16063. .catch((err) => {
  16064. console.error(err);
  16065. });
  16066. },
  16067. updateLookOpen() {
  16068. let params = [
  16069. {
  16070. sopen: this.IsLookOpen == false ? 1 : 2,
  16071. cid: this.id,
  16072. },
  16073. ];
  16074. this.ajax
  16075. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16076. .then((res) => {
  16077. if (this.IsLookOpen == true) {
  16078. // if (this.courseType != 0 && this.taskCount != 0) {
  16079. // this.openTask(0, 0, "0-0");
  16080. // }
  16081. this.$message({
  16082. message: "权限设置成功",
  16083. type: "success",
  16084. });
  16085. } else {
  16086. this.$message({
  16087. message: "权限关闭成功",
  16088. type: "success",
  16089. });
  16090. }
  16091. this.getCourseState(2);
  16092. })
  16093. .catch((err) => {
  16094. console.error(err);
  16095. });
  16096. },
  16097. selectSLook() {
  16098. let params = {
  16099. cid: this.id,
  16100. };
  16101. this.ajax
  16102. .get(this.$store.state.api + "selectCourseSLook", params)
  16103. .then((res) => {
  16104. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16105. this.sIsOpen = true;
  16106. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16107. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16108. if (!this.IsLookOpen) {
  16109. this.setNavList();
  16110. } else {
  16111. this.getCourseState(1);
  16112. }
  16113. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  16114. let _followC = res.data[0][0].followC.split("-");
  16115. if (
  16116. this.courseType != _followC[0] ||
  16117. this.taskCount != _followC[1]
  16118. ) {
  16119. this.navList[this.courseType].isOpen = false;
  16120. this.courseType = _followC[0];
  16121. this.navList[this.courseType].isOpen = true;
  16122. this.taskCount = parseInt(_followC[1]);
  16123. this.navId = res.data[0][0].followC;
  16124. this.getCourseDetail();
  16125. }
  16126. }
  16127. })
  16128. .catch((err) => {
  16129. console.error(err);
  16130. });
  16131. },
  16132. setNavList() {
  16133. if (this.navList.length == 0) {
  16134. this.navList = [];
  16135. var copyList = [];
  16136. for (var l = 0; l < this.chapInfoList.length; l++) {
  16137. var q = this.chapInfoList[l].dyName;
  16138. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16139. var e;
  16140. copyList.push({
  16141. dyName: q,
  16142. isOpen: l === 0 ? true : false,
  16143. task: [],
  16144. });
  16145. for (var r = 0; r < w.length; r++) {
  16146. e = w[r].task;
  16147. if (this.chapInfoList[l].easy == 1) {
  16148. copyList[l].task.push({
  16149. taskName: q,
  16150. id: l + "-" + r,
  16151. isLook: r === 0 ? true : false,
  16152. isOpen: r === 0 ? true : false,
  16153. tool: [],
  16154. });
  16155. } else {
  16156. copyList[l].task.push({
  16157. taskName: e,
  16158. id: l + "-" + r,
  16159. isLook: r === 0 ? true : false,
  16160. isOpen: r === 0 ? true : false,
  16161. tool: [],
  16162. });
  16163. }
  16164. var t = w[r].toolChoose;
  16165. for (var k = 0; k < t.length; k++) {
  16166. var tool = t[k].tool[0];
  16167. copyList[l].task[r].tool.push({
  16168. tool: tool,
  16169. isTool: false,
  16170. });
  16171. }
  16172. // this.navId = this.navId ? this.navId : l + "-" + r;
  16173. // this.navId = l + "-" + r;
  16174. }
  16175. }
  16176. this.navList = copyList;
  16177. this.navList[0].isOpen = false;
  16178. this.navList[this.courseType].isOpen = true;
  16179. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16180. } else {
  16181. this.setNavList2();
  16182. }
  16183. },
  16184. setNavList2() {
  16185. for (var l = 0; l < this.chapInfoList.length; l++) {
  16186. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16187. for (var r = 0; r < w.length; r++) {
  16188. this.navList[l].task[r].isLook = w[r].isLook;
  16189. }
  16190. }
  16191. if (
  16192. this.IsLookOpen &&
  16193. !this.navList[this.courseType].task[this.taskCount].isLook
  16194. ) {
  16195. this.openTask(0, 0, "0-0");
  16196. }
  16197. this.$forceUpdate();
  16198. },
  16199. getCourseState(type) {
  16200. let params = {
  16201. cid: this.id,
  16202. };
  16203. this.ajax
  16204. .get(this.$store.state.api + "getCourseState", params)
  16205. .then((res) => {
  16206. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16207. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16208. this.setNavList();
  16209. this.$forceUpdate();
  16210. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16211. this.addCourseState(2);
  16212. } else {
  16213. this.addCourseState(1);
  16214. }
  16215. })
  16216. .catch((err) => {
  16217. console.error(err);
  16218. });
  16219. },
  16220. addCourseState(type) {
  16221. let _state = this.chapInfoList;
  16222. // this.courseType this.taskCount
  16223. if (type == 1 || type == 2) {
  16224. for (var i = 0; i < _state.length; i++) {
  16225. let el = _state[i].chapterInfo[0].taskJson;
  16226. for (var j = 0; j < el.length; j++) {
  16227. // if (i == 0 && j == 0) {
  16228. // el[j].isLook = true;
  16229. // } else {
  16230. // el[j].isLook = false;
  16231. // }
  16232. if (
  16233. this.courseType > i ||
  16234. (this.courseType == i && this.taskCount + 1 > j)
  16235. ) {
  16236. el[j].isLook = true;
  16237. } else {
  16238. el[j].isLook = false;
  16239. }
  16240. }
  16241. }
  16242. }
  16243. let params = [
  16244. {
  16245. cid: this.id,
  16246. state: JSON.stringify(_state),
  16247. },
  16248. ];
  16249. this.ajax
  16250. .post(
  16251. this.$store.state.api +
  16252. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16253. params
  16254. )
  16255. .then((res) => {
  16256. if (this.IsLookOpen) {
  16257. this.setNavList();
  16258. }
  16259. if (type == 3 && type == 2) {
  16260. this.getCourseState(1);
  16261. }
  16262. })
  16263. .catch((err) => {
  16264. console.error(err);
  16265. });
  16266. },
  16267. getHomeWork() {
  16268. let params = {
  16269. cid: this.id,
  16270. stage: this.courseType,
  16271. task: this.taskCount,
  16272. uid: this.userid,
  16273. };
  16274. this.ajax
  16275. .get(this.$store.state.api + "selectWork", params)
  16276. .then((res) => {
  16277. if (res.data[0].length > 0) {
  16278. this.studyJuri = JSON.parse(res.data[0][0].content);
  16279. this.isNoHomeWork = true;
  16280. }
  16281. })
  16282. .catch((err) => {
  16283. console.error(err);
  16284. });
  16285. },
  16286. isAssetTypeAnImage(ext) {
  16287. return (
  16288. [
  16289. "png",
  16290. "jpg",
  16291. "jpeg",
  16292. "bmp",
  16293. "gif",
  16294. "webp",
  16295. "psd",
  16296. "svg",
  16297. "tiff",
  16298. ].indexOf(ext) !== -1
  16299. );
  16300. },
  16301. switchVideo(media) {
  16302. this.playerO = {};
  16303. this.playerOptions.poster = "";
  16304. this.playerOptions.sources[0].src = media;
  16305. this.playerO = this.playerOptions;
  16306. },
  16307. onPlayerPlay() {},
  16308. lookVedio(u, i) {
  16309. this.isClickNav = "";
  16310. // this.playerOptions.sources[0].src = u;
  16311. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16312. d.sources[0].src = u;
  16313. this.playerO[0] = d;
  16314. this.showType = 0;
  16315. // this.isClickNav = "video" + i;
  16316. this.isClickNav = i;
  16317. this.$forceUpdate();
  16318. },
  16319. lookText(i, t) {
  16320. this.isClickNav = "";
  16321. // this.text = this.textList[i][t];
  16322. this.text = this.vChapterData[i][t];
  16323. // this.dialogVisible1 = true;
  16324. this.showType = 1;
  16325. // this.isClickNav = "text" + t;
  16326. this.isClickNav = t;
  16327. },
  16328. lookTools(i, t) {
  16329. this.chapTools = this.chapToolList[i][t];
  16330. this.dialogVisible2 = true;
  16331. },
  16332. openFile(f) {
  16333. this.pptImgUrl = "";
  16334. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16335. if (
  16336. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16337. -1
  16338. ) {
  16339. this.pptImgUrl =
  16340. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16341. this.showPDF = false;
  16342. this.dialogVisible3 = true;
  16343. } else if (
  16344. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16345. ) {
  16346. this.pptImgUrl = f;
  16347. this.showPDF = true;
  16348. this.dialogVisible3 = true;
  16349. }
  16350. },
  16351. openTable(f) {
  16352. this.tableJson = JSON.parse(f.works);
  16353. this.$forceUpdate();
  16354. this.dialogVisibleTable2 = true;
  16355. },
  16356. openWord(f) {
  16357. this.tableJson = JSON.parse(f.works);
  16358. this.$forceUpdate();
  16359. this.dialogVisibleTable3 = true;
  16360. },
  16361. doUrl(url, i) {
  16362. this.isClickNav = "";
  16363. this.pptImgUrl1 = "";
  16364. this.showType = 2;
  16365. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16366. url = "https://" + url;
  16367. }
  16368. this.pptImgUrl1 = url;
  16369. // this.isClickNav = "line" + i;
  16370. this.isClickNav = i;
  16371. },
  16372. checkPhoto(f, i) {
  16373. this.showType = 4;
  16374. this.pptImgUrl1 = f.url;
  16375. this.isClickNav = i;
  16376. this.$forceUpdate();
  16377. },
  16378. downFile(f, i) {
  16379. this.isClickNav = "";
  16380. this.pptImgUrl1 = "";
  16381. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16382. if (
  16383. a.indexOf(
  16384. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16385. ) != -1
  16386. ) {
  16387. this.pptImgUrl1 =
  16388. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16389. // this.dialogVisible3 = true;
  16390. this.showType = 2;
  16391. } else if (
  16392. this.isAssetTypeAnImage(
  16393. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16394. )
  16395. ) {
  16396. this.showType = 4;
  16397. this.pptImgUrl1 = f.url;
  16398. } else if (
  16399. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16400. "PDF"
  16401. ) {
  16402. this.pptImgUrl1 = f.url;
  16403. // this.dialogVisible3 = true;
  16404. this.showType = 3;
  16405. } else {
  16406. window.open(this.file[i].url);
  16407. }
  16408. this.isClickNav = i;
  16409. // this.isClickNav = "word" + i;
  16410. },
  16411. downFileList(i) {
  16412. window.open(this.noImgList[i].url);
  16413. },
  16414. openAddWork() {
  16415. this.dialogVisible = true;
  16416. },
  16417. addBzWorks() {
  16418. let params = [
  16419. {
  16420. uid: this.userid,
  16421. cid: this.id,
  16422. stage: this.courseType,
  16423. task: this.taskCount,
  16424. tool: this.toolindex,
  16425. content: JSON.stringify(this.eScore),
  16426. type: 6,
  16427. },
  16428. ];
  16429. this.ajax
  16430. .post(this.$store.state.api + "addCourseWorks", params)
  16431. .then((res) => {
  16432. this.$message({
  16433. message: "提交成功",
  16434. type: "success",
  16435. });
  16436. this.eScore = { eBzText: "", eStar: [] };
  16437. this.studentEvalDialogVisible = false;
  16438. this.selectSWorks();
  16439. })
  16440. .catch((err) => {
  16441. this.$message.error("提交失败");
  16442. console.error(err);
  16443. });
  16444. },
  16445. addBzWorksTeacher() {
  16446. let params = [
  16447. {
  16448. uid: this.sStudent.userid,
  16449. cid: this.id,
  16450. stage: this.courseType,
  16451. task: this.taskCount,
  16452. tool: this.toolindex,
  16453. content: JSON.stringify(this.eScore),
  16454. type: 6,
  16455. },
  16456. ];
  16457. this.ajax
  16458. .post(this.$store.state.api + "addCourseWorks", params)
  16459. .then((res) => {
  16460. this.$message({
  16461. message: "提交成功",
  16462. type: "success",
  16463. });
  16464. this.eScore = { eBzText: "", eStar: [] };
  16465. this.studentEvalDialogVisibleTeacher = false;
  16466. this.selectSWorks();
  16467. })
  16468. .catch((err) => {
  16469. this.$message.error("提交失败");
  16470. console.error(err);
  16471. });
  16472. },
  16473. addStudentAsk() {
  16474. if (!this.radio.length) {
  16475. this.$message.error("请选择选项");
  16476. return;
  16477. }
  16478. for (var i = 0; i < this.askJson.askCount; i++) {
  16479. if (
  16480. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16481. (this.radio[i] !== 0 && !this.radio[i])
  16482. ) {
  16483. this.$message.error("请选择选项");
  16484. return;
  16485. }
  16486. }
  16487. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16488. let params = [
  16489. {
  16490. uid: this.userid,
  16491. cid: this.id,
  16492. stage: this.courseType,
  16493. task: this.taskCount,
  16494. tool: this.toolindex,
  16495. content: JSON.stringify(this.askList),
  16496. type: 2,
  16497. },
  16498. ];
  16499. this.ajax
  16500. .post(this.$store.state.api + "addCourseWorks", params)
  16501. .then((res) => {
  16502. this.$message({
  16503. message: "提交成功",
  16504. type: "success",
  16505. });
  16506. this.askList = [];
  16507. this.dialogVisible5 = false;
  16508. this.selectStudent();
  16509. this.selectSWorks();
  16510. this.selectSLook();
  16511. })
  16512. .catch((err) => {
  16513. this.$message.error("提交失败");
  16514. console.error(err);
  16515. });
  16516. },
  16517. addStudentAskTeacher() {
  16518. if (!this.radio.length) {
  16519. this.$message.error("请选择选项");
  16520. return;
  16521. }
  16522. for (var i = 0; i < this.askJson.askCount; i++) {
  16523. if (
  16524. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16525. (this.radio[i] !== 0 && !this.radio[i])
  16526. ) {
  16527. this.$message.error("请选择选项");
  16528. return;
  16529. }
  16530. }
  16531. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16532. let params = [
  16533. {
  16534. uid: this.sStudent.userid,
  16535. cid: this.id,
  16536. stage: this.courseType,
  16537. task: this.taskCount,
  16538. tool: this.toolindex,
  16539. content: JSON.stringify(this.askList),
  16540. type: 2,
  16541. },
  16542. ];
  16543. this.ajax
  16544. .post(this.$store.state.api + "addCourseWorks", params)
  16545. .then((res) => {
  16546. this.$message({
  16547. message: "提交成功",
  16548. type: "success",
  16549. });
  16550. this.askList = [];
  16551. this.dialogVisible5Teacher = false;
  16552. this.selectStudent();
  16553. this.selectSWorks();
  16554. this.selectSLook();
  16555. })
  16556. .catch((err) => {
  16557. this.$message.error("提交失败");
  16558. console.error(err);
  16559. });
  16560. },
  16561. addStudentTest() {
  16562. if (!this.radio.length) {
  16563. this.$message.error("请选择选项");
  16564. return;
  16565. }
  16566. for (var i = 0; i < this.testJson.testCount; i++) {
  16567. if (
  16568. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16569. (this.radio[i] !== 0 && !this.radio[i])
  16570. ) {
  16571. this.$message.error("请选择选项");
  16572. return;
  16573. }
  16574. }
  16575. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16576. let params = [
  16577. {
  16578. uid: this.userid,
  16579. cid: this.id,
  16580. stage: this.courseType,
  16581. task: this.taskCount,
  16582. tool: this.toolindex,
  16583. content: JSON.stringify(this.askList),
  16584. type: 8,
  16585. },
  16586. ];
  16587. this.ajax
  16588. .post(this.$store.state.api + "addCourseWorks", params)
  16589. .then((res) => {
  16590. this.$message({
  16591. message: "提交成功",
  16592. type: "success",
  16593. });
  16594. this.askList = [];
  16595. this.dialogVisibleChoice = false;
  16596. this.selectStudent();
  16597. this.selectSWorks();
  16598. this.selectSLook();
  16599. })
  16600. .catch((err) => {
  16601. this.$message.error("提交失败");
  16602. console.error(err);
  16603. });
  16604. },
  16605. addStudentTestTeacher() {
  16606. if (!this.radio.length) {
  16607. this.$message.error("请选择选项");
  16608. return;
  16609. }
  16610. for (var i = 0; i < this.testJson.testCount; i++) {
  16611. if (
  16612. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16613. (this.radio[i] !== 0 && !this.radio[i])
  16614. ) {
  16615. this.$message.error("请选择选项");
  16616. return;
  16617. }
  16618. }
  16619. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16620. let params = [
  16621. {
  16622. uid: this.sStudent.userid,
  16623. cid: this.id,
  16624. stage: this.courseType,
  16625. task: this.taskCount,
  16626. tool: this.toolindex,
  16627. content: JSON.stringify(this.askList),
  16628. type: 8,
  16629. },
  16630. ];
  16631. this.ajax
  16632. .post(this.$store.state.api + "addCourseWorks", params)
  16633. .then((res) => {
  16634. this.$message({
  16635. message: "提交成功",
  16636. type: "success",
  16637. });
  16638. this.askList = [];
  16639. this.dialogVisibleChoiceTeacher = false;
  16640. this.selectStudent();
  16641. this.selectSWorks();
  16642. this.selectSLook();
  16643. })
  16644. .catch((err) => {
  16645. this.$message.error("提交失败");
  16646. console.error(err);
  16647. });
  16648. },
  16649. addWork() {
  16650. if (this.studyJuri[0].content == "") {
  16651. this.$message.error("请将信息填写完整");
  16652. return;
  16653. } else if (this.studyJuri[0].cover.length == 0) {
  16654. this.$message.error("请将信息填写完整");
  16655. return;
  16656. } else if (this.studyJuri[0].upVedio.length == 0) {
  16657. this.$message.error("请将信息填写完整");
  16658. return;
  16659. }
  16660. if (this.isNoHomeWork) {
  16661. this.$confirm(
  16662. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16663. "提示",
  16664. {
  16665. confirmButtonText: "确定",
  16666. cancelButtonText: "取消",
  16667. type: "warning",
  16668. }
  16669. )
  16670. .then(() => {
  16671. let params = [
  16672. {
  16673. uid: this.userid,
  16674. cid: this.id,
  16675. stage: this.courseType,
  16676. task: this.taskCount,
  16677. content: JSON.stringify(this.studyJuri),
  16678. },
  16679. ];
  16680. this.ajax
  16681. .post(this.$store.state.api + "addWorks", params)
  16682. .then((res) => {
  16683. this.$message({
  16684. message: "提交成功",
  16685. type: "success",
  16686. });
  16687. this.isNoHomeWork = true;
  16688. this.dialogVisible = false;
  16689. })
  16690. .catch((err) => {
  16691. this.$message.error("提交失败");
  16692. console.error(err);
  16693. });
  16694. })
  16695. .catch(() => {});
  16696. } else {
  16697. let params = [
  16698. {
  16699. uid: this.userid,
  16700. cid: this.id,
  16701. stage: this.courseType,
  16702. task: this.taskCount,
  16703. content: JSON.stringify(this.studyJuri),
  16704. },
  16705. ];
  16706. this.ajax
  16707. .post(this.$store.state.api + "addWorks", params)
  16708. .then((res) => {
  16709. this.$message({
  16710. message: "提交成功",
  16711. type: "success",
  16712. });
  16713. this.isNoHomeWork = true;
  16714. this.dialogVisible = false;
  16715. })
  16716. .catch((err) => {
  16717. this.$message.error("提交失败");
  16718. console.error(err);
  16719. });
  16720. }
  16721. },
  16722. selectCount() {
  16723. let params = {
  16724. cid: this.id,
  16725. chid: this.courseType,
  16726. uid: this.userid,
  16727. };
  16728. this.ajax
  16729. .get(this.$store.state.api + "selectToolsCount", params)
  16730. .then((res) => {
  16731. for (var i = 0; i < res.data[0].length; i++) {
  16732. if (res.data[0][i].tools == 1) {
  16733. this.wbCount = res.data[0][i].count;
  16734. } else if (res.data[0][i].tools == 2) {
  16735. this.wordCount = res.data[0][i].count;
  16736. } else if (res.data[0][i].tools == 3) {
  16737. this.mindCount = res.data[0][i].count;
  16738. } else if (res.data[0][i].tools == 4) {
  16739. this.askCount = res.data[0][i].count;
  16740. } else if (res.data[0][i].tools == 6) {
  16741. this.noteCount = res.data[0][i].count;
  16742. } else if (res.data[0][i].tools == 7) {
  16743. this.mindNetWorkCount = res.data[0][i].count;
  16744. } else if (res.data[0][i].tools == 8) {
  16745. this.libraryCount = res.data[0][i].count;
  16746. } else if (res.data[0][i].tools == 16) {
  16747. this.workCount = res.data[0][i].count;
  16748. } else if (res.data[0][i].tools == 10) {
  16749. this.timeCount = res.data[0][i].count;
  16750. } else if (res.data[0][i].tools == 15) {
  16751. this.answerCount = res.data[0][i].count;
  16752. } else if (res.data[0][i].tools == 18) {
  16753. this.trainCount = res.data[0][i].count;
  16754. }
  16755. }
  16756. })
  16757. .catch((err) => {
  16758. console.error(err);
  16759. });
  16760. },
  16761. openTools(t, i, index, c, sName) {
  16762. var z = JSON.parse(c);
  16763. this.noteName = sName;
  16764. if (t == 4) {
  16765. this.radio = [];
  16766. this.isAnswer = false;
  16767. let b = z[0].anwer;
  16768. this.radio = b;
  16769. this.askJson = z[0].askJson;
  16770. this.isAnswer = true;
  16771. this.dialogVisible5 = true;
  16772. } else if (t == 45) {
  16773. this.radio = [];
  16774. this.isAnswer = false;
  16775. let b = z[0].anwer;
  16776. this.radio = b;
  16777. this.testJson = z[0].testJson;
  16778. this.isAnswer = true;
  16779. this.dialogVisibleChoice = true;
  16780. }
  16781. // else if (t == 15) {
  16782. // this.answerQ = "";
  16783. // this.questionAnswer = "";
  16784. // this.answerQ = z[0].answerTitle;
  16785. // this.questionAnswer = z[0].answer;
  16786. // this.answerDialogVisible = true;
  16787. // }
  16788. },
  16789. fastText(p, t) {
  16790. if (t == 1) {
  16791. this.commentText += p;
  16792. } else {
  16793. this.eScore.eBzText += p;
  16794. }
  16795. },
  16796. addTools(t, i, index) {
  16797. var a = 0;
  16798. // this.taskCount = index;
  16799. this.toolindex = i;
  16800. if (t == 1) {
  16801. if (this.wbCount > 0) {
  16802. this.updateCount(this.wbCount, t);
  16803. } else {
  16804. this.wbCount++;
  16805. a = this.wbCount;
  16806. this.toolsCount(a, t);
  16807. }
  16808. window.parent.postMessage(
  16809. {
  16810. tools: "1",
  16811. cid: this.id,
  16812. stage: this.courseType,
  16813. task: this.taskCount,
  16814. tool: i,
  16815. },
  16816. "*"
  16817. );
  16818. } else if (t == 2) {
  16819. if (this.wordCount > 0) {
  16820. this.updateCount(this.wordCount, t);
  16821. } else {
  16822. this.wordCount++;
  16823. a = this.wordCount;
  16824. this.toolsCount(a, t);
  16825. }
  16826. window.parent.postMessage({ tools: "2" }, "*");
  16827. } else if (t == 3) {
  16828. if (this.mindCount > 0) {
  16829. this.updateCount(this.mindCount, t);
  16830. } else {
  16831. this.mindCount++;
  16832. a = this.mindCount;
  16833. this.toolsCount(a, t);
  16834. }
  16835. window.parent.postMessage(
  16836. {
  16837. tools: "3",
  16838. cid: this.id,
  16839. stage: this.courseType,
  16840. task: this.taskCount,
  16841. tool: i,
  16842. },
  16843. "*"
  16844. );
  16845. } else if (t == 4) {
  16846. this.radio = [];
  16847. this.noteName = "";
  16848. this.isAnswer = false;
  16849. if (this.askCount > 0) {
  16850. this.updateCount(this.askCount, t);
  16851. } else {
  16852. this.askCount++;
  16853. a = this.askCount;
  16854. this.toolsCount(a, t);
  16855. }
  16856. this.askJson.askJson =
  16857. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16858. index
  16859. ].toolChoose[i].askJson;
  16860. this.askJson.askTitle =
  16861. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16862. index
  16863. ].toolChoose[i].askTitle;
  16864. this.askJson.askCount =
  16865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16866. index
  16867. ].toolChoose[i].askCount;
  16868. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16869. if (this.askJson.askJson[k].type == "2") {
  16870. this.radio.push([]);
  16871. } else {
  16872. this.radio.push("");
  16873. }
  16874. }
  16875. this.dialogVisible5 = true;
  16876. // window.parent.postMessage({ tools: "4" }, "*");
  16877. } else if (t == 45) {
  16878. this.noteName = "";
  16879. this.radio = [];
  16880. this.isAnswer = false;
  16881. if (this.askCount > 0) {
  16882. this.updateCount(this.askCount, t);
  16883. } else {
  16884. this.askCount++;
  16885. a = this.askCount;
  16886. this.toolsCount(a, t);
  16887. }
  16888. this.testJson =
  16889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16890. index
  16891. ].toolChoose[i].testJson;
  16892. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16893. if (this.testJson.testJson[k].type == "2") {
  16894. this.radio.push([]);
  16895. } else {
  16896. this.radio.push("");
  16897. }
  16898. }
  16899. this.dialogVisibleChoice = true;
  16900. // window.parent.postMessage({ tools: "4" }, "*");
  16901. } else if (t == 5) {
  16902. if (this.scoreCount > 0) {
  16903. this.updateCount(this.scoreCount, t);
  16904. } else {
  16905. this.scoreCount++;
  16906. a = this.scoreCount;
  16907. this.toolsCount(a, t);
  16908. }
  16909. this.dialogVisible4 = true;
  16910. // window.parent.postMessage({ tools: "5" }, "*");
  16911. } else if (t == 6) {
  16912. if (this.noteCount > 0) {
  16913. this.updateCount(this.noteCount, t);
  16914. } else {
  16915. this.noteCount++;
  16916. a = this.noteCount;
  16917. this.toolsCount(a, t);
  16918. }
  16919. window.parent.postMessage(
  16920. {
  16921. tools: "6",
  16922. cid: this.id,
  16923. stage: this.courseType,
  16924. task: this.taskCount,
  16925. tool: i,
  16926. },
  16927. "*"
  16928. );
  16929. } else if (t == 7) {
  16930. if (this.mindNetWorkCount > 0) {
  16931. this.updateCount(this.mindNetWorkCount, t);
  16932. } else {
  16933. this.mindNetWorkCount++;
  16934. a = this.mindNetWorkCount;
  16935. this.toolsCount(a, t);
  16936. }
  16937. window.parent.postMessage(
  16938. {
  16939. tools: "7",
  16940. cid: this.id,
  16941. stage: this.courseType,
  16942. task: this.taskCount,
  16943. tool: i,
  16944. },
  16945. "*"
  16946. );
  16947. } else if (t == 16) {
  16948. if (this.workCount > 0) {
  16949. this.updateCount(this.workCount, t);
  16950. } else {
  16951. this.workCount++;
  16952. a = this.workCount;
  16953. this.toolsCount(a, t);
  16954. }
  16955. this.dialogVisible = true;
  16956. } else if (t == 50) {
  16957. if (this.tType == 2) {
  16958. this.$message.error("不支持学生使用");
  16959. return;
  16960. }
  16961. this.plworkFile = [];
  16962. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16963. if (!this.uploadCid) {
  16964. this.$message.error(
  16965. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16966. );
  16967. return;
  16968. }
  16969. this.selectUploadStudent(2);
  16970. } else if (t == 8) {
  16971. if (this.libraryCount > 0) {
  16972. this.updateCount(this.libraryCount, t);
  16973. } else {
  16974. this.libraryCount++;
  16975. a = this.libraryCount;
  16976. this.toolsCount(a, t);
  16977. }
  16978. window.parent.postMessage({ tools: "8" }, "*");
  16979. } else if (t == 17) {
  16980. if (this.libraryCount > 0) {
  16981. this.updateCount(this.libraryCount, t);
  16982. } else {
  16983. this.libraryCount++;
  16984. a = this.libraryCount;
  16985. this.toolsCount(a, t);
  16986. }
  16987. window.parent.postMessage({ tools: "17" }, "*");
  16988. } else if (t == 18) {
  16989. if (this.trainCount > 0) {
  16990. this.updateCount(this.trainCount, t);
  16991. } else {
  16992. this.trainCount++;
  16993. a = this.trainCount;
  16994. this.toolsCount(a, t);
  16995. }
  16996. window.parent.postMessage({ tools: "18" }, "*");
  16997. } else if (t == 10) {
  16998. if (this.timeCount > 0) {
  16999. this.updateCount(this.timeCount, t);
  17000. } else {
  17001. this.timeCount++;
  17002. a = this.timeCount;
  17003. this.toolsCount(a, t);
  17004. }
  17005. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17006. .taskJson[index].toolChoose[i].preTime
  17007. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17008. .toolChoose[i].preTime
  17009. : "";
  17010. this.timeDialogVisible = true;
  17011. } else if (t == 15) {
  17012. this.answerQ = "";
  17013. this.questionAnswer = "";
  17014. if (this.answerCount > 0) {
  17015. this.updateCount(this.answerCount, t);
  17016. } else {
  17017. this.answerCount++;
  17018. a = this.answerCount;
  17019. this.toolsCount(a, t);
  17020. }
  17021. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17022. .taskJson[index].toolChoose[i].answerQ
  17023. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17024. .toolChoose[i].answerQ
  17025. : "";
  17026. this.answerDialogVisible = true;
  17027. } else if (t == 21) {
  17028. window.parent.postMessage({ tools: "21" }, "*");
  17029. } else if (t == 22) {
  17030. window.parent.postMessage({ tools: "22" }, "*");
  17031. } else if (t == 23) {
  17032. window.parent.postMessage({ tools: "23" }, "*");
  17033. } else if (t == 24) {
  17034. window.parent.postMessage({ tools: "24" }, "*");
  17035. } else if (t == 25) {
  17036. window.parent.postMessage({ tools: "25" }, "*");
  17037. } else if (t == 31) {
  17038. window.parent.postMessage({ tools: "31" }, "*");
  17039. } else if (t == 28) {
  17040. window.parent.postMessage({ tools: "28" }, "*");
  17041. } else if (t == 37) {
  17042. window.parent.postMessage({ tools: "37" }, "*");
  17043. } else if (t == 38) {
  17044. window.parent.postMessage({ tools: "38" }, "*");
  17045. } else if (t == 39) {
  17046. window.parent.postMessage({ tools: "39" }, "*");
  17047. } else if (t == 32) {
  17048. window.parent.postMessage({ tools: "32" }, "*");
  17049. } else if (t == 66) {
  17050. window.parent.postMessage({ tools: "66" }, "*");
  17051. } else if (t == 67) {
  17052. window.parent.postMessage({ tools: "67" }, "*");
  17053. } else if (t == 68) {
  17054. window.parent.postMessage({ tools: "68" }, "*");
  17055. } else if (t == 57) {
  17056. // window.parent.postMessage({ tools: "57" }, "*");
  17057. window.parent.postMessage(
  17058. {
  17059. tools: "57u",
  17060. cid: this.id,
  17061. stage: this.courseType,
  17062. task: this.taskCount,
  17063. tool: i,
  17064. },
  17065. "*"
  17066. );
  17067. } else if (t == 58) {
  17068. window.parent.postMessage({ tools: "58" }, "*");
  17069. } else if (t == 59) {
  17070. window.parent.postMessage({ tools: "59" }, "*");
  17071. } else if (t == 60) {
  17072. window.parent.postMessage({ tools: "60" }, "*");
  17073. } else if (t == 61) {
  17074. window.parent.postMessage({ tools: "61" }, "*");
  17075. } else if (t == 63) {
  17076. window.parent.postMessage({ tools: "63" }, "*");
  17077. } else if (t == 65) {
  17078. if (this.tType == 2) {
  17079. this.$message.error("不支持学生使用");
  17080. return;
  17081. }
  17082. this.uploadCid = this.tcid;
  17083. if (!this.uploadCid) {
  17084. this.$message.error(
  17085. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17086. );
  17087. return;
  17088. }
  17089. this.selectPickStudent();
  17090. } else if (t == 26) {
  17091. window.parent.postMessage(
  17092. {
  17093. tools: "26",
  17094. cid: this.id,
  17095. stage: this.courseType,
  17096. task: this.taskCount,
  17097. tool: i,
  17098. },
  17099. "*"
  17100. );
  17101. } else if (t == 40) {
  17102. if (this.evalCount > 0) {
  17103. this.updateCount(this.evalCount, t);
  17104. } else {
  17105. this.evalCount++;
  17106. a = this.evalCount;
  17107. this.toolsCount(a, t);
  17108. }
  17109. this.eScore = { eBzText: "", eStar: [] };
  17110. if (this.worksStudent[i].length) {
  17111. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17112. if (this.userid == this.worksStudent[i][k].userid) {
  17113. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17114. this.rateJson =
  17115. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17116. index
  17117. ].toolChoose[i].rateJson;
  17118. break;
  17119. } else {
  17120. this.rateJson =
  17121. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17122. index
  17123. ].toolChoose[i].rateJson;
  17124. }
  17125. }
  17126. } else {
  17127. this.rateJson =
  17128. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17129. index
  17130. ].toolChoose[i].rateJson;
  17131. }
  17132. this.isStar = false;
  17133. this.studentEvalDialogVisible = true;
  17134. } else if (t == 41) {
  17135. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17136. .taskJson[index].toolChoose[i].selectJson
  17137. ? JSON.parse(
  17138. JSON.stringify(
  17139. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17140. index
  17141. ].toolChoose[i].selectJson
  17142. )
  17143. )
  17144. : { url: "", select: [], answer: [] };
  17145. if (this.worksStudent[i].length) {
  17146. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17147. if (this.userid == this.worksStudent[i][k].userid) {
  17148. var a = this.worksStudent[i][k].works.split(",");
  17149. for (var ki = 0; ki < a.length; ki++) {
  17150. a[ki] = parseInt(a[ki]);
  17151. }
  17152. this.selectAnswer = {
  17153. answer: a,
  17154. stu: this.worksStudent[i][k].sName,
  17155. };
  17156. break;
  17157. } else {
  17158. this.selectAnswer = { answer: [], stu: "" };
  17159. }
  17160. }
  17161. } else {
  17162. this.selectAnswer = { answer: [], stu: "" };
  17163. }
  17164. this.isSelect = false;
  17165. this.dialogVisibleSelect = true;
  17166. } else if (t == 44) {
  17167. window.parent.postMessage({ tools: "44" }, "*");
  17168. } else if (t == 47) {
  17169. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17170. .taskJson[index].toolChoose[i].sentenceList
  17171. ? JSON.parse(
  17172. JSON.stringify(
  17173. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17174. index
  17175. ].toolChoose[i].sentenceList
  17176. )
  17177. )
  17178. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17179. for (var q = 0; q < this.sentenceList.length; q++) {
  17180. this.sentenceList[q].chooseSenList = [];
  17181. this.sentenceList[q].addChangeSen = [];
  17182. this.sentenceList[q].addChangeSen = JSON.parse(
  17183. JSON.stringify(this.sentenceList[q].addSentence)
  17184. );
  17185. this.sentenceList[q].chooseSenList.length =
  17186. this.sentenceList[q].rightAnswer.length;
  17187. }
  17188. this.dialogVisibleSentence = true;
  17189. } else if (t == 48) {
  17190. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17191. .taskJson[index].toolChoose[i].tableJson
  17192. ? JSON.parse(
  17193. JSON.stringify(
  17194. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17195. index
  17196. ].toolChoose[i].tableJson
  17197. )
  17198. )
  17199. : { text: "" };
  17200. if (this.worksStudent[i].length) {
  17201. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17202. if (this.userid == this.worksStudent[i][k].userid) {
  17203. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17204. break;
  17205. }
  17206. }
  17207. }
  17208. this.dialogVisibleTable = true;
  17209. } else if (t == 52) {
  17210. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17211. .taskJson[index].toolChoose[i].wordJson
  17212. ? JSON.parse(
  17213. JSON.stringify(
  17214. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17215. index
  17216. ].toolChoose[i].wordJson
  17217. )
  17218. )
  17219. : { text: "" };
  17220. if (this.worksStudent[i].length) {
  17221. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17222. if (this.userid == this.worksStudent[i][k].userid) {
  17223. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17224. break;
  17225. }
  17226. }
  17227. }
  17228. this.dialogVisibleWord = true;
  17229. } else if (t == 49) {
  17230. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  17231. return
  17232. }
  17233. this.groupJson =
  17234. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17235. index
  17236. ].toolChoose[i].groupJson;
  17237. this.dialogVisibleGroup = true;
  17238. } else if (t == 62) {
  17239. this.videoJson =
  17240. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17241. index
  17242. ].toolChoose[i].videoJson;
  17243. this.dialogVisibleVideo = true;
  17244. }
  17245. },
  17246. teacherWorkSubmit(t, i, index, s) {
  17247. this.sStudent = s;
  17248. this.sTool = t;
  17249. this.toolindex = i;
  17250. if (this.tType !== "1" && this.tType !== "4") {
  17251. return;
  17252. }
  17253. if (t == 16 || t == 32 || t == 50) {
  17254. this.dialogVisibleWorks = true; //作业提交
  17255. } else if (t == 15) {
  17256. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17257. .taskJson[index].toolChoose[i].answerQ
  17258. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17259. .toolChoose[i].answerQ
  17260. : "";
  17261. this.questionAnswer = "";
  17262. this.answerDialogVisibleTeacher = true; //问答
  17263. } else if (t == 52) {
  17264. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17265. .taskJson[index].toolChoose[i].wordJson
  17266. ? JSON.parse(
  17267. JSON.stringify(
  17268. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17269. index
  17270. ].toolChoose[i].wordJson
  17271. )
  17272. )
  17273. : { text: "" };
  17274. if (this.worksStudent[i].length) {
  17275. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17276. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17277. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17278. break;
  17279. }
  17280. }
  17281. }
  17282. this.dialogVisibleWordTeacher = true; //文档
  17283. } else if (t == 4) {
  17284. this.radio = [];
  17285. this.noteName = "";
  17286. this.isAnswer = false;
  17287. if (this.askCount > 0) {
  17288. this.updateCount(this.askCount, t);
  17289. } else {
  17290. this.askCount++;
  17291. a = this.askCount;
  17292. this.toolsCount(a, t);
  17293. }
  17294. if (!this.dialogVisible2) {
  17295. this.askJson.askJson =
  17296. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17297. index
  17298. ].toolChoose[i].askJson;
  17299. this.askJson.askTitle =
  17300. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17301. index
  17302. ].toolChoose[i].askTitle;
  17303. this.askJson.askCount =
  17304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17305. index
  17306. ].toolChoose[i].askCount;
  17307. } else {
  17308. this.askJson.askJson = this.chapTools.askJson.askJson;
  17309. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17310. this.askJson.askCount = this.chapTools.askJson.askCount;
  17311. }
  17312. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17313. if (this.askJson.askJson[k].type == "2") {
  17314. this.radio.push([]);
  17315. } else {
  17316. this.radio.push("");
  17317. }
  17318. }
  17319. this.dialogVisible5Teacher = true;
  17320. } else if (t == 45) {
  17321. this.noteName = "";
  17322. this.radio = [];
  17323. this.isAnswer = false;
  17324. if (this.askCount > 0) {
  17325. this.updateCount(this.askCount, t);
  17326. } else {
  17327. this.askCount++;
  17328. a = this.askCount;
  17329. this.toolsCount(a, t);
  17330. }
  17331. this.testJson =
  17332. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17333. index
  17334. ].toolChoose[i].testJson;
  17335. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17336. if (this.testJson.testJson[k].type == "2") {
  17337. this.radio.push([]);
  17338. } else {
  17339. this.radio.push("");
  17340. }
  17341. }
  17342. this.dialogVisibleChoiceTeacher = true;
  17343. } else if (t == 41) {
  17344. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17345. .taskJson[index].toolChoose[i].selectJson
  17346. ? JSON.parse(
  17347. JSON.stringify(
  17348. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17349. index
  17350. ].toolChoose[i].selectJson
  17351. )
  17352. )
  17353. : { url: "", select: [], answer: [] };
  17354. if (this.worksStudent[i].length) {
  17355. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17356. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17357. var a = this.worksStudent[i][k].works.split(",");
  17358. for (var ki = 0; ki < a.length; ki++) {
  17359. a[ki] = parseInt(a[ki]);
  17360. }
  17361. this.selectAnswer = {
  17362. answer: a,
  17363. stu: this.worksStudent[i][k].sName,
  17364. };
  17365. break;
  17366. } else {
  17367. this.selectAnswer = { answer: [], stu: "" };
  17368. }
  17369. }
  17370. } else {
  17371. this.selectAnswer = { answer: [], stu: "" };
  17372. }
  17373. this.isSelect = false;
  17374. this.dialogVisibleSelectTeacher = true;
  17375. } else if (t == 47) {
  17376. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17377. .taskJson[index].toolChoose[i].sentenceList
  17378. ? JSON.parse(
  17379. JSON.stringify(
  17380. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17381. index
  17382. ].toolChoose[i].sentenceList
  17383. )
  17384. )
  17385. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17386. for (var q = 0; q < this.sentenceList.length; q++) {
  17387. this.sentenceList[q].chooseSenList = [];
  17388. this.sentenceList[q].addChangeSen = [];
  17389. this.sentenceList[q].addChangeSen = JSON.parse(
  17390. JSON.stringify(this.sentenceList[q].addSentence)
  17391. );
  17392. this.sentenceList[q].chooseSenList.length =
  17393. this.sentenceList[q].rightAnswer.length;
  17394. }
  17395. this.dialogVisibleSentenceTeacher = true;
  17396. } else if (t == 48) {
  17397. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17398. .taskJson[index].toolChoose[i].tableJson
  17399. ? JSON.parse(
  17400. JSON.stringify(
  17401. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17402. index
  17403. ].toolChoose[i].tableJson
  17404. )
  17405. )
  17406. : { text: "" };
  17407. if (this.worksStudent[i].length) {
  17408. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17409. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17410. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17411. break;
  17412. }
  17413. }
  17414. }
  17415. this.dialogVisibleTableTeacher = true;
  17416. } else if (t == 40) {
  17417. if (this.evalCount > 0) {
  17418. this.updateCount(this.evalCount, t);
  17419. } else {
  17420. this.evalCount++;
  17421. a = this.evalCount;
  17422. this.toolsCount(a, t);
  17423. }
  17424. this.eScore = { eBzText: "", eStar: [] };
  17425. if (this.worksStudent[i].length) {
  17426. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17427. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17428. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17429. this.rateJson =
  17430. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17431. index
  17432. ].toolChoose[i].rateJson;
  17433. break;
  17434. } else {
  17435. this.rateJson =
  17436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17437. index
  17438. ].toolChoose[i].rateJson;
  17439. }
  17440. }
  17441. } else {
  17442. this.rateJson =
  17443. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17444. index
  17445. ].toolChoose[i].rateJson;
  17446. }
  17447. this.isStar = false;
  17448. this.studentEvalDialogVisibleTeacher = true;
  17449. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17450. window.parent.postMessage(
  17451. {
  17452. tools: t + "teacher",
  17453. cid: this.id,
  17454. stage: this.courseType,
  17455. task: this.taskCount,
  17456. tool: i,
  17457. student: this.sStudent,
  17458. },
  17459. "*"
  17460. );
  17461. }
  17462. },
  17463. openCocoPi(tool, i, uid, uname) {
  17464. let student = {
  17465. userid: uid,
  17466. student: uname,
  17467. };
  17468. if (tool == 57) {
  17469. window.parent.postMessage(
  17470. {
  17471. tools: tool + "teacher",
  17472. cid: this.id,
  17473. stage: this.courseType,
  17474. task: this.taskCount,
  17475. tool: i,
  17476. student: student,
  17477. },
  17478. "*"
  17479. );
  17480. }
  17481. },
  17482. setRightAnswer(s, i, j) {
  17483. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17484. if (
  17485. this.sentenceList[i].chooseSenList[q] == undefined ||
  17486. this.sentenceList[i].chooseSenList[q] == ""
  17487. ) {
  17488. this.sentenceList[i].chooseSenList[q] = s;
  17489. this.sentenceList[i].addChangeSen[j] = "";
  17490. break;
  17491. }
  17492. }
  17493. this.$forceUpdate();
  17494. },
  17495. returnCard(r, i, j) {
  17496. var a = this.sentenceList[i].addSentence.indexOf(r);
  17497. this.sentenceList[i].chooseSenList[j] = "";
  17498. this.sentenceList[i].addChangeSen[a] = r;
  17499. this.$forceUpdate();
  17500. },
  17501. // addSentenceTool() {
  17502. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17503. // this.taskCount
  17504. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17505. // this.sentenceList = [
  17506. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17507. // ];
  17508. // this.dialogVisibleSentence = false;
  17509. // },
  17510. toolsCount(a, t) {
  17511. let params = {
  17512. cid: this.id,
  17513. chid: this.courseType,
  17514. uid: this.userid,
  17515. tid: t,
  17516. count: a,
  17517. };
  17518. this.ajax
  17519. .get(this.$store.state.api + "insertToolsCount", params)
  17520. .then((res) => {
  17521. this.selectCount();
  17522. })
  17523. .catch((err) => {
  17524. console.error(err);
  17525. });
  17526. },
  17527. updateCount(c, t) {
  17528. c++;
  17529. let params = {
  17530. cid: this.id,
  17531. chid: this.courseType,
  17532. uid: this.userid,
  17533. tid: t,
  17534. count: c,
  17535. };
  17536. this.ajax
  17537. .get(this.$store.state.api + "updateToolsCount", params)
  17538. .then((res) => {
  17539. this.selectCount();
  17540. })
  17541. .catch((err) => {
  17542. console.error(err);
  17543. });
  17544. },
  17545. checkEva() {
  17546. if (this.evalua != "") {
  17547. for (var i = 0; i < this.evaJuri.length; i++) {
  17548. if (this.evalua == this.evaJuri[i].id) {
  17549. this.eTitle = this.evaJuri[i].title;
  17550. this.eJson = JSON.parse(this.evaJuri[i].content);
  17551. }
  17552. }
  17553. this.$forceUpdate();
  17554. setTimeout(() => {
  17555. this.setMindData();
  17556. }, 0);
  17557. }
  17558. },
  17559. selectEva() {
  17560. let params = {
  17561. oid: this.oid,
  17562. };
  17563. this.ajax
  17564. .get(this.$store.state.api + "selectAllEvaluation", params)
  17565. .then((res) => {
  17566. this.evaJuri = res.data[0];
  17567. })
  17568. .catch((err) => {
  17569. console.error(err);
  17570. });
  17571. },
  17572. setMindData() {
  17573. this.data.data = [];
  17574. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17575. let _eJson = Object.keys(this.eJson);
  17576. let _e = this.eJson;
  17577. for (let i = 0; i < _eJson.length; i++) {
  17578. let element = _e[_eJson[i]];
  17579. this.data.data.push({
  17580. id: element.id,
  17581. parentid: "root",
  17582. topic: element.name,
  17583. });
  17584. let _eJsonc = Object.keys(element.child);
  17585. let _e2 = element.child;
  17586. for (let j = 0; j < _eJsonc.length; j++) {
  17587. let _ec = _e2[_eJsonc[j]];
  17588. this.data.data.push({
  17589. id: _ec.id,
  17590. parentid: element.id,
  17591. topic: _ec.name,
  17592. });
  17593. let _eJsonz = Object.keys(_ec.child);
  17594. let _e3 = _ec.child;
  17595. for (let z = 0; z < _eJsonz.length; z++) {
  17596. let _ez = _e3[_eJsonz[z]];
  17597. this.data.data.push({
  17598. id: _ez.id,
  17599. parentid: _ec.id,
  17600. topic: _ez.name,
  17601. });
  17602. }
  17603. }
  17604. }
  17605. this.$forceUpdate();
  17606. },
  17607. checkFileFull(type, url) {
  17608. this.fullDialogVisible = true;
  17609. this.fulltype = type;
  17610. this.fullUrl = url;
  17611. },
  17612. checkFileFull1(t, f) {
  17613. this.fullDialogVisible = true;
  17614. if (t == 6) {
  17615. this.fulltype = 1;
  17616. this.fullUrl = JSON.parse(JSON.stringify(f));
  17617. } else if (t == 8) {
  17618. this.fulltype = 2;
  17619. this.fullUrl = f.url;
  17620. } else if (
  17621. t == 3 &&
  17622. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17623. "PDF"
  17624. ) {
  17625. this.fulltype = 3;
  17626. this.fullUrl = f.url;
  17627. } else if (t == 3) {
  17628. this.fulltype = 2;
  17629. this.fullUrl =
  17630. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17631. }
  17632. },
  17633. openSname(n, id, i, uid) {
  17634. this.snameWid = id;
  17635. this.worksSName = n;
  17636. this.worksSid = uid == n ? "" : uid;
  17637. this.toolindex = i;
  17638. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17639. if (!this.uploadCid) {
  17640. this.$message.error(
  17641. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17642. );
  17643. return;
  17644. }
  17645. this.selectUploadStudent(1);
  17646. },
  17647. updateName() {
  17648. let params = {
  17649. n: this.worksSName,
  17650. cid: this.snameWid,
  17651. };
  17652. this.ajax
  17653. .get(this.$store.state.api + "updateCourseWorksName", params)
  17654. .then((res) => {
  17655. this.$message({
  17656. message: "修改成功",
  17657. type: "success",
  17658. });
  17659. this.dialogVisibleSname = false;
  17660. this.getCourseDetail();
  17661. this.snameWid = "";
  17662. this.worksSName = "";
  17663. })
  17664. .catch((err) => {
  17665. console.error(err);
  17666. });
  17667. },
  17668. downloadFile2(f) {
  17669. // const loading = this.$loading.service({
  17670. // background: "rgba(255, 255, 255, 0.7)",
  17671. // target: document.body,
  17672. // text: "文件加载中...",
  17673. // });
  17674. // let url2 = f.url;
  17675. // let _url2 = "";
  17676. // if (
  17677. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17678. // ) {
  17679. // _url2 = url2.split(
  17680. // "https://view.officeapps.live.com/op/view.aspx?src="
  17681. // )[1];
  17682. // } else {
  17683. // _url2 = url2;
  17684. // }
  17685. // let params = {
  17686. // url: _url2,
  17687. // name: f.name,
  17688. // };
  17689. // this.ajax
  17690. // .get(this.$store.state.api + "download", params)
  17691. // .then((res) => {
  17692. // console.log(res);
  17693. // loading.close();
  17694. // let content = res.data.data.data;
  17695. // let ab = new ArrayBuffer(content.length);
  17696. // let view = new Uint8Array(ab);
  17697. // for (var i = 0; i < content.length; ++i) {
  17698. // view[i] = content[i];
  17699. // }
  17700. // let elink = document.createElement("a");
  17701. // elink.download = f.name;
  17702. // elink.style.display = "none";
  17703. // let blob = new Blob([ab], {
  17704. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17705. // });
  17706. // elink.href = URL.createObjectURL(blob);
  17707. // document.body.appendChild(elink);
  17708. // elink.click();
  17709. // document.body.removeChild(elink);
  17710. // })
  17711. // .catch((err) => {
  17712. // loading.close();
  17713. // console.error(err);
  17714. // });
  17715. let url = f.url;
  17716. let _this = this;
  17717. let _url = "";
  17718. if (
  17719. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17720. ) {
  17721. _url = url.split(
  17722. "https://view.officeapps.live.com/op/view.aspx?src="
  17723. )[1];
  17724. } else {
  17725. _url = url;
  17726. }
  17727. const loading = _this.$loading.service({
  17728. background: "rgba(255, 255, 255, 0.7)",
  17729. target: document.body,
  17730. text: "文件加载中...",
  17731. });
  17732. let x = new XMLHttpRequest();
  17733. x.open("GET", _url, true);
  17734. x.responseType = "blob";
  17735. x.onload = function () {
  17736. loading.close();
  17737. let url = window.URL.createObjectURL(new Blob([x.response]));
  17738. let a = document.createElement("a");
  17739. a.name = f.name;
  17740. a.href = url;
  17741. a.download = f.name;
  17742. a.click();
  17743. };
  17744. x.send();
  17745. },
  17746. downloadFile(url) {
  17747. let _this = this;
  17748. let _url = "";
  17749. if (
  17750. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17751. ) {
  17752. _url = url.split(
  17753. "https://view.officeapps.live.com/op/view.aspx?src="
  17754. )[1];
  17755. } else {
  17756. _url = url;
  17757. }
  17758. const x = new XMLHttpRequest();
  17759. x.open("GET", _url, true);
  17760. x.responseType = "blob";
  17761. const loading = _this.$loading.service({
  17762. background: "rgba(255, 255, 255, 0.7)",
  17763. target: document.body,
  17764. text: "文件加载中...",
  17765. });
  17766. // _this.$message.success("文件下载中...");
  17767. x.onload = function (e) {
  17768. loading.close();
  17769. // const url = window.URL.createObjectURL(x.response);
  17770. // const a = document.createElement("a");
  17771. // a.href = url;
  17772. // a.target = "_blank";
  17773. // a.download = url;
  17774. // a.click();
  17775. // a.remove();
  17776. let content = x.response;
  17777. let elink = document.createElement("a");
  17778. elink.download = decodeURI(
  17779. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17780. );
  17781. elink.style.display = "none";
  17782. let blob = new Blob([content]);
  17783. elink.href = URL.createObjectURL(blob);
  17784. document.body.appendChild(elink);
  17785. elink.click();
  17786. document.body.removeChild(elink);
  17787. };
  17788. x.send();
  17789. },
  17790. openLine(url) {
  17791. window.open(url);
  17792. },
  17793. resize() {
  17794. if (document.getElementsByClassName("box_course").length) {
  17795. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17796. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17797. if (this.showType == 2 || this.showType == 3) {
  17798. document.getElementsByClassName("navBox")[0].style.height =
  17799. a - 40 + 0+ "px";
  17800. } else {
  17801. document.getElementsByClassName("navBox")[0].style.height =
  17802. a - 40 + "px";
  17803. }
  17804. }
  17805. this.Stbodywidth =
  17806. document.getElementsByClassName("student_body").length &&
  17807. document.getElementsByClassName("student_body")[0].offsetWidth;
  17808. },
  17809. closeDraw() {
  17810. this.bg = null;
  17811. this.drawShow = false;
  17812. },
  17813. showPicturePaint(url) {
  17814. let params = {
  17815. img: url,
  17816. };
  17817. this.ajax
  17818. .get(this.$store.state.api + "imgToBase64", params)
  17819. .then((res) => {
  17820. console.log(res);
  17821. this.drawShow = true;
  17822. this.bg = res.data[0].img;
  17823. })
  17824. .catch((err) => {
  17825. console.error(err);
  17826. });
  17827. },
  17828. addImgDraw(base64) {
  17829. let file = { name: "批注图.png" };
  17830. let img = this.dataUrlToFile(base64, file);
  17831. this.beforeUpload1(img, 5);
  17832. },
  17833. addImgDrawImG(url) {
  17834. // console.log(url);
  17835. let params = [
  17836. {
  17837. wid: this.commentDetail.wid,
  17838. img: url,
  17839. },
  17840. ];
  17841. this.ajax
  17842. .post(this.$store.state.api + "updateCourseWorks", params)
  17843. .then((res) => {
  17844. this.$message({
  17845. message: "提交成功",
  17846. type: "success",
  17847. });
  17848. this.drawShow = false;
  17849. this.bg = "";
  17850. this.selectSWorks();
  17851. this.selectStudent();
  17852. })
  17853. .catch((err) => {
  17854. this.$message.error("提交失败");
  17855. console.error(err);
  17856. });
  17857. },
  17858. deletePicturePaint() {
  17859. this.$confirm("确定删除此批注吗?", "提示", {
  17860. confirmButtonText: "确定",
  17861. cancelButtonText: "取消",
  17862. type: "warning",
  17863. })
  17864. .then(() => {
  17865. let params = [
  17866. {
  17867. wid: this.commentDetail.wid,
  17868. img: "",
  17869. },
  17870. ];
  17871. this.ajax
  17872. .post(this.$store.state.api + "updateCourseWorks", params)
  17873. .then((res) => {
  17874. this.$message({
  17875. message: "删除成功",
  17876. type: "success",
  17877. });
  17878. this.selectSWorks();
  17879. this.selectStudent();
  17880. })
  17881. .catch((err) => {
  17882. this.$message.error("删除失败");
  17883. console.error(err);
  17884. });
  17885. })
  17886. .catch(() => {});
  17887. },
  17888. getAudioVideo(constraintsData) {
  17889. if (navigator.mediaDevices === undefined) {
  17890. navigator.mediaDevices = {};
  17891. }
  17892. if (navigator.mediaDevices.getUserMedia === undefined) {
  17893. navigator.mediaDevices.getUserMedia = function (constraints) {
  17894. // 首先,如果有getUserMedia的话,就获得它
  17895. var getUserMedia =
  17896. navigator.getUserMedia ||
  17897. navigator.webkitGetUserMedia ||
  17898. navigator.mozGetUserMedia ||
  17899. navigator.msGetUserMedia;
  17900. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17901. if (!getUserMedia) {
  17902. return Promise.reject({ code: 404 });
  17903. }
  17904. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17905. return new Promise(function (resolve, reject) {
  17906. getUserMedia.call(navigator, constraints, resolve, reject);
  17907. });
  17908. };
  17909. }
  17910. return navigator.mediaDevices.getUserMedia(constraintsData);
  17911. },
  17912. /**
  17913. * 开始录制
  17914. */
  17915. startRecording(callback) {
  17916. let _function = (screenStream) => {
  17917. this.addStreamStopListener(screenStream, () => {
  17918. console.log("流停止监听");
  17919. this.stopRecording();
  17920. this.$emit("streamStop", {});
  17921. // this.stopRecording();
  17922. });
  17923. var options = {
  17924. type: "video",
  17925. mimeType: "video/webm",
  17926. disableLogs: false,
  17927. getNativeBlob: false, // enable it for longer recordings
  17928. ignoreMutedMedia: false,
  17929. };
  17930. // this.video.srcObject = screenStream;
  17931. this.recorder = RecordRTC(screenStream, options);
  17932. this.recorder.startRecording();
  17933. this.recorder.screen = screenStream;
  17934. this.videoStart = true;
  17935. // callback(true);
  17936. };
  17937. this.getAudioVideo({ audio: true })
  17938. .then((res) => {
  17939. this.captureScreen(_function, true);
  17940. console.log("已点击允许,开启成功");
  17941. })
  17942. .catch((err) => {
  17943. // console.log('浏览器不支持,请更换浏览器')
  17944. // } else {
  17945. this.captureScreen(_function, false);
  17946. console.log("请检查是否存在麦克风");
  17947. });
  17948. },
  17949. /**
  17950. * 停止录制
  17951. */
  17952. stopRecording(callback) {
  17953. this.recorder.stopRecording(() => {
  17954. // this.video.src = this.video.srcObject = null;
  17955. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17956. const url = URL.createObjectURL(this.recorder.getBlob());
  17957. const a = document.createElement("a"); //this.fileName+
  17958. let videoFile = new File(
  17959. [this.recorder.getBlob()],
  17960. this.courseDetail.title + "录屏.mp4",
  17961. {
  17962. type: "video/mp4",
  17963. }
  17964. );
  17965. let downloadUrl = URL.createObjectURL(videoFile);
  17966. document.body.appendChild(a);
  17967. a.style.display = "none";
  17968. a.href = url;
  17969. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17970. a.click();
  17971. this.recorder.screen.stop();
  17972. this.recorder.destroy();
  17973. this.recorder = null;
  17974. this.videoStart = false;
  17975. // callback(false);
  17976. });
  17977. },
  17978. //初始化
  17979. captureScreen(callback, type) {
  17980. if (navigator.getDisplayMedia) {
  17981. //录制结束,文件下载
  17982. navigator
  17983. .getDisplayMedia({
  17984. video: true,
  17985. })
  17986. .then((screenStream) => {
  17987. if (type) {
  17988. navigator.mediaDevices
  17989. .getUserMedia({ audio: true })
  17990. .then((mic) => {
  17991. screenStream.addTrack(mic.getTracks()[0]);
  17992. callback(screenStream);
  17993. });
  17994. } else {
  17995. callback(screenStream);
  17996. }
  17997. })
  17998. .catch(function (error) {
  17999. console.log("error", error);
  18000. });
  18001. } else if (navigator.mediaDevices.getDisplayMedia) {
  18002. navigator.mediaDevices
  18003. .getDisplayMedia({
  18004. video: true,
  18005. })
  18006. .then((screenStream) => {
  18007. if (type) {
  18008. navigator.mediaDevices
  18009. .getUserMedia({ audio: true })
  18010. .then((mic) => {
  18011. screenStream.addTrack(mic.getTracks()[0]);
  18012. callback(screenStream);
  18013. });
  18014. } else {
  18015. callback(screenStream);
  18016. }
  18017. })
  18018. .catch(function (error) {
  18019. console.log("error", error);
  18020. });
  18021. } else {
  18022. var error = "getDisplayMedia API are not supported in this browser.";
  18023. console.log("error", error);
  18024. alert(error);
  18025. }
  18026. },
  18027. //流监听
  18028. addStreamStopListener(stream, callback) {
  18029. stream.addEventListener(
  18030. "ended",
  18031. function () {
  18032. callback();
  18033. callback = function () {};
  18034. },
  18035. false
  18036. );
  18037. stream.addEventListener(
  18038. "inactive",
  18039. function () {
  18040. callback();
  18041. callback = function () {};
  18042. },
  18043. false
  18044. );
  18045. stream.getTracks().forEach(function (track) {
  18046. track.addEventListener(
  18047. "ended",
  18048. function () {
  18049. callback();
  18050. callback = function () {};
  18051. },
  18052. false
  18053. );
  18054. track.addEventListener(
  18055. "inactive",
  18056. function () {
  18057. callback();
  18058. callback = function () {};
  18059. },
  18060. false
  18061. );
  18062. });
  18063. },
  18064. updateGroup() {
  18065. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18066. this.dialogVisibleGroup2 = true;
  18067. },
  18068. numberPan() {
  18069. if (
  18070. /[^\d]/.test(this.groupJson.number) ||
  18071. this.groupJson.number < 2 ||
  18072. this.groupJson.number > 10
  18073. ) {
  18074. this.$message.error("请输入2-10的数字");
  18075. this.groupJson.number = "";
  18076. }
  18077. },
  18078. updateGroupJson() {
  18079. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18080. if (
  18081. this.groupStudentUid[this.toolindex][i].length >
  18082. this.groupJson2.number
  18083. ) {
  18084. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18085. return;
  18086. }
  18087. }
  18088. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18089. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18090. this.taskCount
  18091. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18092. let params = [
  18093. {
  18094. cid: this.id,
  18095. chapters: JSON.stringify(this.chapInfoList),
  18096. uid: this.userid,
  18097. unitIndex: this.courseType,
  18098. },
  18099. ];
  18100. this.ajax
  18101. .post(this.$store.state.api + "updateWorkNew4", params)
  18102. .then((res) => {
  18103. this.$message.success("设置成功");
  18104. this.getCourseDetail(2);
  18105. this.dialogVisibleGroup2 = false;
  18106. this.groupJson2 = {};
  18107. this.$forceUpdate();
  18108. })
  18109. .catch((err) => {
  18110. this.$message.error("网络不佳");
  18111. console.error(err);
  18112. });
  18113. },
  18114. lockChair() {
  18115. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18116. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18117. this.updateGroupJson();
  18118. },
  18119. selectGroup(index) {
  18120. this.getCourseDetail(2, index);
  18121. },
  18122. joinGroup(index) {
  18123. if (this.groupJson.islock == 2) {
  18124. this.$message.error("位置已被锁定,无法加入");
  18125. return;
  18126. }
  18127. if (
  18128. this.groupStudent[this.toolindex][index].length >
  18129. this.groupJson.number ||
  18130. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18131. ) {
  18132. this.$message.error("位置已满,无法加入");
  18133. return;
  18134. }
  18135. let params = [
  18136. {
  18137. cid: this.id,
  18138. stage: this.courseType,
  18139. task: this.taskCount,
  18140. tool: this.toolindex,
  18141. g: index,
  18142. uid: this.userid,
  18143. },
  18144. ];
  18145. this.ajax
  18146. .post(this.$store.state.api + "joinGroup", params)
  18147. .then((res) => {
  18148. this.$message.success("加入成功");
  18149. this.getCourseDetail();
  18150. })
  18151. .catch((err) => {
  18152. this.$message.error("网络不佳");
  18153. console.error(err);
  18154. });
  18155. },
  18156. exitGroup(id) {
  18157. if (this.groupJson.islock == 2) {
  18158. this.$message.error("位置已被锁定,无法退出");
  18159. return;
  18160. }
  18161. let params = [
  18162. {
  18163. gid: id,
  18164. },
  18165. ];
  18166. this.ajax
  18167. .post(this.$store.state.api + "exitGroup", params)
  18168. .then((res) => {
  18169. this.$message.success("退出成功");
  18170. this.getCourseDetail();
  18171. })
  18172. .catch((err) => {
  18173. this.$message.error("网络不佳");
  18174. console.error(err);
  18175. });
  18176. },
  18177. groupUpload(index, task, gindex) {
  18178. this.taskCount = task;
  18179. this.toolindex = index;
  18180. this.groupIndex = gindex;
  18181. this.dialogVisibleGroupWork = true;
  18182. },
  18183. updateGroupChair(user) {
  18184. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18185. el.label = index;
  18186. return index != user.group;
  18187. });
  18188. this.updateGroupUser = user;
  18189. this.dialogVisibleUpdateGroup = true;
  18190. },
  18191. updateChair() {
  18192. if (
  18193. this.groupStudent[this.toolindex][this.checkChair].length >
  18194. this.groupJson.number ||
  18195. this.groupStudent[this.toolindex][this.checkChair].length ==
  18196. this.groupJson.number
  18197. ) {
  18198. this.$message.error("位置已满,无法加入");
  18199. return;
  18200. }
  18201. let params = [
  18202. {
  18203. cid: this.id,
  18204. stage: this.courseType,
  18205. task: this.taskCount,
  18206. tool: this.toolindex,
  18207. g: this.checkChair,
  18208. uid: this.updateGroupUser.userid,
  18209. },
  18210. ];
  18211. this.ajax
  18212. .post(this.$store.state.api + "joinGroup", params)
  18213. .then((res) => {
  18214. this.$message.success("修改成功");
  18215. this.updateGroupUser = {};
  18216. this.checkChair = "";
  18217. this.updateGroupArray = {};
  18218. this.dialogVisibleUpdateGroup = false;
  18219. this.getCourseDetail();
  18220. })
  18221. .catch((err) => {
  18222. this.$message.error("网络不佳");
  18223. console.error(err);
  18224. });
  18225. },
  18226. deleteGroupChair(gindex) {
  18227. this.checkDeleteGroup = [];
  18228. this.deleteGroupUser = JSON.parse(
  18229. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18230. );
  18231. this.deleteGroupArray = this.groupJson.group[gindex];
  18232. this.groupIndex = gindex;
  18233. this.dialogVisibleDeleteGroup = true;
  18234. },
  18235. async deleteChair() {
  18236. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18237. const gid =
  18238. this.groupStudent[this.toolindex][this.groupIndex][
  18239. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18240. this.checkDeleteGroup[i]
  18241. )
  18242. ];
  18243. let params = [
  18244. {
  18245. gid: gid.id,
  18246. },
  18247. ];
  18248. var a = await this.deleteChairA(params);
  18249. if (i == this.checkDeleteGroup.length - 1) {
  18250. this.$message.success("退出成功");
  18251. this.dialogVisibleDeleteGroup = false;
  18252. this.deleteGroupUser = [];
  18253. this.deleteGroupArray = {};
  18254. this.groupIndex = "";
  18255. this.checkDeleteGroup = [];
  18256. this.getCourseDetail();
  18257. }
  18258. }
  18259. },
  18260. deleteChairA(params) {
  18261. return new Promise((resolve, reject) => {
  18262. this.ajax
  18263. .post(this.$store.state.api + "exitGroup", params)
  18264. .then((res) => {
  18265. resolve(1);
  18266. })
  18267. .catch((err) => {
  18268. this.$message.error("网络不佳");
  18269. console.error(err);
  18270. });
  18271. });
  18272. },
  18273. contract(i) {
  18274. if (this.isCloseList[i].isClose == 0) {
  18275. this.isCloseList[i].isClose = 1;
  18276. } else {
  18277. this.isCloseList[i].isClose = 0;
  18278. }
  18279. this.$forceUpdate();
  18280. },
  18281. openTools2(i) {
  18282. this.$message.error("暂未开放");
  18283. return;
  18284. },
  18285. addTools2(i) {
  18286. if (i == 4) {
  18287. // this.openTools2(4);
  18288. this.$message.error("暂未开放");
  18289. return;
  18290. }
  18291. if (i == 45) {
  18292. // this.openTools2(45);
  18293. this.$message.error("暂未开放");
  18294. return;
  18295. }
  18296. if (i == 47) {
  18297. // this.openTools2(47);
  18298. this.$message.error("暂未开放");
  18299. return;
  18300. }
  18301. if (i == 49) {
  18302. // this.openTools2(49);
  18303. this.$message.error("暂未开放");
  18304. return;
  18305. }
  18306. if (i == 62) {
  18307. // this.openTools(itemTaskIndex, 62, toolIndex);
  18308. this.$message.error("暂未开放");
  18309. return;
  18310. }
  18311. if (i == 15) {
  18312. // this.openTools(itemTaskIndex, 15, toolIndex);
  18313. this.$message.error("暂未开放");
  18314. return;
  18315. }
  18316. if (i == 40) {
  18317. // this.openTools(itemTaskIndex, 40, toolIndex);
  18318. this.$message.error("暂未开放");
  18319. return;
  18320. }
  18321. if (i == 41) {
  18322. // this.openTools(itemTaskIndex, 41, toolIndex);
  18323. this.$message.error("暂未开放");
  18324. return;
  18325. }
  18326. if (i == 42) {
  18327. // this.openTools(itemTaskIndex, 42, toolIndex);
  18328. this.$message.error("暂未开放");
  18329. return;
  18330. }
  18331. if (this.checktoolArray.length > 0) {
  18332. if (this.checktoolArray.indexOf(i) != -1) {
  18333. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  18334. } else {
  18335. this.checktoolArray = [];
  18336. this.checktoolArray.push(i);
  18337. }
  18338. } else {
  18339. this.checktoolArray.push(i);
  18340. }
  18341. this.$forceUpdate();
  18342. },
  18343. addToolChoose() {
  18344. if (!this.checktoolArray.length) {
  18345. this.$message.error("请选择要添加的任务");
  18346. return;
  18347. }
  18348. if (
  18349. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18350. this.taskCount
  18351. ].toolChoose[0].tool.length
  18352. ) {
  18353. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18354. this.taskCount
  18355. ].toolChoose[0].tool = this.checktoolArray;
  18356. } else {
  18357. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18358. this.taskCount
  18359. ].toolChoose.push({
  18360. tool: this.checktoolArray,
  18361. toolDetail: "",
  18362. toolType: 0,
  18363. askCount: 1,
  18364. askTitle: "",
  18365. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  18366. });
  18367. }
  18368. let params = [
  18369. {
  18370. cid: this.id,
  18371. chapters: JSON.stringify(this.chapInfoList),
  18372. uid: this.userid,
  18373. unitIndex: this.courseType,
  18374. },
  18375. ];
  18376. this.ajax
  18377. .post(this.$store.state.api + "updateWorkNew4", params)
  18378. .then((res) => {
  18379. this.$message({
  18380. message: "添加成功",
  18381. type: "success",
  18382. });
  18383. this.checktoolArray = [];
  18384. this.getCourseDetail(2);
  18385. this.checkBz(
  18386. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18387. this.taskCount
  18388. ].toolChoose.length - 1
  18389. );
  18390. this.toolDialogVisible = false;
  18391. this.refreshCourse();
  18392. this.$forceUpdate();
  18393. })
  18394. .catch((err) => {
  18395. console.error(err);
  18396. });
  18397. },
  18398. updateToolDetail() {
  18399. if (!this.isUpdateToolDetail) {
  18400. this.isUpdateToolDetail = true;
  18401. this.updateToolDetailInner = JSON.parse(
  18402. JSON.stringify(this.tool.toolDetail)
  18403. );
  18404. } else {
  18405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18406. this.taskCount
  18407. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  18408. JSON.stringify(this.updateToolDetailInner)
  18409. );
  18410. let params = [
  18411. {
  18412. cid: this.id,
  18413. chapters: JSON.stringify(this.chapInfoList),
  18414. uid: this.userid,
  18415. unitIndex: this.courseType,
  18416. },
  18417. ];
  18418. this.ajax
  18419. .post(this.$store.state.api + "updateWorkNew4", params)
  18420. .then((res) => {
  18421. this.isUpdateToolDetail = false;
  18422. this.$message({
  18423. message: "修改成功",
  18424. type: "success",
  18425. });
  18426. this.updateToolDetailInner = "";
  18427. this.getCourseDetail(2);
  18428. this.$forceUpdate();
  18429. this.checkBz(this.toolIndex);
  18430. })
  18431. .catch((err) => {
  18432. console.error(err);
  18433. });
  18434. }
  18435. },
  18436. openWordCloud(toolindex) {
  18437. let array = [];
  18438. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18439. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18440. array.push({ name: works });
  18441. }
  18442. if (this.isGroup) {
  18443. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18444. let works = this.courseGroup.group[i].works[toolindex];
  18445. for (var j = 0; j < works.length; j++) {
  18446. let answer = JSON.parse(works[j].works)[0].answer;
  18447. array.push({ name: answer });
  18448. }
  18449. }
  18450. }
  18451. this.wordCloudData = array;
  18452. this.dialogVisibleWordCloud = true;
  18453. },
  18454. uploadWorks(i) {
  18455. const loading = this.$loading.service({
  18456. background: "rgba(255, 255, 255, 0.7)",
  18457. target: document.body,
  18458. text: "文件加载中...",
  18459. });
  18460. const _worksStudent = this.worksStudent;
  18461. let url = [];
  18462. var counts = {};
  18463. for (var l = 0; l < _worksStudent[i].length; l++) {
  18464. var item = _worksStudent[i][l];
  18465. var name = item.sName;
  18466. if (!counts.hasOwnProperty(name)) {
  18467. counts[name] = 0;
  18468. } else {
  18469. counts[name]++;
  18470. }
  18471. if (counts[name] > 0) {
  18472. item.sName += " (" + counts[name] + ")";
  18473. }
  18474. }
  18475. for (var l = 0; l < _worksStudent[i].length; l++) {
  18476. var item = _worksStudent[i][l];
  18477. if (
  18478. item.works.indexOf(
  18479. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18480. ) !== -1 &&
  18481. item.works.indexOf("img") === -1
  18482. ) {
  18483. url.push({ name: item.sName, url: item.works });
  18484. }
  18485. }
  18486. // var toolList = [
  18487. // { name: "电子白板", tool: 1 },
  18488. // { name: "思维导图", tool: 3 },
  18489. // { name: "协同文档", tool: 6 },
  18490. // { name: "思维网格", tool: 7 },
  18491. // { name: "素材库", tool: 8 },
  18492. // { name: "学习资料", tool: 17 },
  18493. // { name: "便签", tool: 2 },
  18494. // { name: "问卷调查", tool: 4 },
  18495. // { name: "选择题", tool: 45 },
  18496. // { name: "倒计时", tool: 10 },
  18497. // { name: "问答", tool: 15 },
  18498. // { name: "课程设计", tool: 26 },
  18499. // { name: "训练服务器", tool: 18 },
  18500. // { name: "作业提交", tool: 16 },
  18501. // { name: "批量上传", tool: 50 },
  18502. // { name: "AIoT Blockly", tool: 21 },
  18503. // { name: "AI Python", tool: 23 },
  18504. // { name: "AI Blockly", tool: 24 },
  18505. // { name: "目标管理", tool: 25 },
  18506. // { name: "数学画板", tool: 31 },
  18507. // { name: "翻译", tool: 28 },
  18508. // { name: "魔盒识字", tool: 37 },
  18509. // { name: "数学画板", tool: 31 },
  18510. // { name: "24点", tool: 38 },
  18511. // { name: "GeoGebra", tool: 39 },
  18512. // { name: "源码编辑", tool: 32 },
  18513. // { name: "个人评价", tool: 40 },
  18514. // { name: "选择匹配", tool: 41 },
  18515. // { name: "汉字宫", tool: 44 },
  18516. // { name: "排序", tool: 47 },
  18517. // { name: "表格", tool: 48 },
  18518. // { name: "文档", tool: 52 },
  18519. // { name: "学生分组", tool: 49 },
  18520. // { name: "CocoPi", tool: 57 },
  18521. // { name: "模拟驾驶", tool: 58 },
  18522. // { name: "路径搜索", tool: 59 },
  18523. // { name: "深度学习", tool: 60 },
  18524. // { name: "全历史", tool: 61 },
  18525. // { name: "交互视频", tool: 62 },
  18526. // { name: "海龟编程", tool: 63 },
  18527. // { name: "挑人", tool: 65 },
  18528. // { name: "公式编辑", tool: 66 },
  18529. // { name: "分子结构", tool: 67 },
  18530. // { name: "时间轴", tool: 68 },
  18531. // ];
  18532. // var toolName = "";
  18533. // for(var w = 0;w<toolList.length;w++){
  18534. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18535. // toolName = toolList[w].name;
  18536. // }
  18537. // }
  18538. console.log(url);
  18539. this.downLoadAll(url, loading);
  18540. },
  18541. downLoadAll(url, loading) {
  18542. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18543. const zip = new JSZip();
  18544. const cache = {};
  18545. const promises = [];
  18546. data.forEach((item) => {
  18547. const promise = getFile(item.url).then((data) => {
  18548. if (data.data != 1) {
  18549. // 下载文件, 并存成ArrayBuffer对象
  18550. const file_name = item.name + "." + item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18551. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18552. cache[file_name] = data.data;
  18553. }
  18554. });
  18555. promises.push(promise);
  18556. });
  18557. Promise.all(promises).then(() => {
  18558. zip.generateAsync({ type: "blob" }).then((content) => {
  18559. // 生成二进制流
  18560. FileSaver.saveAs(content, this.courseDetail.title + "-" + "作业提交工具.zip"); // 利用file-saver保存文件 自定义文件名
  18561. setTimeout(() => {
  18562. loading.close();
  18563. }, 2000);
  18564. });
  18565. });
  18566. },
  18567. pickStudent(stu) {
  18568. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18569. return;
  18570. }
  18571. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18572. confirmButtonText: "确定",
  18573. cancelButtonText: "取消",
  18574. type: "warning",
  18575. })
  18576. .then(() => {
  18577. let params = [
  18578. {
  18579. uid: stu.userid,
  18580. cid: this.id,
  18581. stage: this.courseType,
  18582. task: this.taskCount,
  18583. tool: this.toolindex,
  18584. },
  18585. ];
  18586. this.ajax
  18587. .post(this.$store.state.api + "updateCoursePick", params)
  18588. .then((res) => {
  18589. this.$message.success("操作成功");
  18590. this.getPick();
  18591. })
  18592. .catch((err) => {
  18593. this.$message.error("网络不佳");
  18594. console.error(err);
  18595. });
  18596. })
  18597. .catch(() => {});
  18598. },
  18599. getPick() {
  18600. let params = {
  18601. cid: this.id,
  18602. };
  18603. this.ajax
  18604. .get(this.$store.state.api + "getPick", params)
  18605. .then((res) => {
  18606. let array = [];
  18607. for (var i = 0; i < res.data[0].length; i++) {
  18608. array.push(res.data[0][i].userid);
  18609. }
  18610. this.isPickStudent = array;
  18611. if (array.indexOf(this.userid) !== -1) {
  18612. this.$confirm("你被老师选到啦!", "提示", {
  18613. confirmButtonText: "确定",
  18614. showCancelButton: false,
  18615. closeOnClickModal: false,
  18616. type: "warning",
  18617. })
  18618. .then(() => {
  18619. let pa = [
  18620. {
  18621. uid: this.userid,
  18622. cid: this.id,
  18623. },
  18624. ];
  18625. this.ajax
  18626. .post(this.$store.state.api + "deletePick", pa)
  18627. .then((res) => {
  18628. this.getPick();
  18629. })
  18630. .catch((err) => {
  18631. this.$message.error("网络不佳");
  18632. console.error(err);
  18633. });
  18634. })
  18635. .catch(() => {});
  18636. }
  18637. })
  18638. .catch((err) => {
  18639. this.$message.error("网络不佳");
  18640. console.error(err);
  18641. });
  18642. },
  18643. },
  18644. directives: {
  18645. // 使用局部注册指令的方式
  18646. resize: {
  18647. // 指令的名称
  18648. bind(el, binding) {
  18649. // el为绑定的元素,binding为绑定给指令的对象
  18650. let width = "",
  18651. height = "";
  18652. function isReize() {
  18653. const style = document.defaultView.getComputedStyle(el);
  18654. if (width !== style.width || height !== style.height) {
  18655. binding.value(); // 关键
  18656. }
  18657. width = style.width;
  18658. height = style.height;
  18659. }
  18660. el.__vueSetInterval__ = setInterval(isReize, 300);
  18661. },
  18662. unbind(el) {
  18663. clearInterval(el.__vueSetInterval__);
  18664. },
  18665. },
  18666. },
  18667. beforeDestroy() {
  18668. window.onresize = null;
  18669. clearInterval(this.timer);
  18670. this.timer = null;
  18671. clearInterval(this.opertimer);
  18672. this.opertimer = null;
  18673. },
  18674. computed: {
  18675. contentConvent() {
  18676. return function (c) {
  18677. return c
  18678. ? c
  18679. .replaceAll(/\r\n/g, "<br/>")
  18680. .replaceAll(/\n/g, "<br/>")
  18681. .replaceAll(/\s/g, " &nbsp")
  18682. : "";
  18683. };
  18684. },
  18685. checkUpload() {
  18686. return function () {
  18687. var studentK = [];
  18688. if (this.plworkFile.length > 0) {
  18689. for (var z = 0; z < this.plworkFile.length; z++) {
  18690. studentK.push(this.plworkFile[z].username);
  18691. }
  18692. studentK = studentK.join(",");
  18693. }
  18694. var a = this.uploadStudentJuri.filter((el) => {
  18695. return studentK.indexOf(el.userid) == -1;
  18696. });
  18697. return a;
  18698. };
  18699. },
  18700. getSName() {
  18701. return function (name) {
  18702. var check = name;
  18703. this.uploadStudentJuri.forEach((el) => {
  18704. if (el.userid == check) {
  18705. check = el.name ? el.name : el.username;
  18706. }
  18707. });
  18708. return check;
  18709. };
  18710. },
  18711. getImgList() {
  18712. return function (val) {
  18713. let srcList = []; // 定义一个数组用来接收后面的img地址
  18714. val.replace(
  18715. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18716. function (match, capture) {
  18717. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18718. srcList.push(capture);
  18719. }
  18720. );
  18721. return srcList;
  18722. };
  18723. },
  18724. },
  18725. mounted() {
  18726. document.body.addEventListener("click", (e) => {
  18727. if (this.isUpdateToolDetail) {
  18728. this.updateToolDetail();
  18729. }
  18730. });
  18731. if (this.screenType == 2) {
  18732. window.parent.postMessage({ allScreen: 4 }, "*");
  18733. } else if (this.screenType == 3) {
  18734. window.parent.postMessage({ allScreen: 5 }, "*");
  18735. } else if (this.screenType == 1) {
  18736. window.parent.postMessage({ allScreen: 6 }, "*");
  18737. }
  18738. this.setOperationTime();
  18739. this.selectEva();
  18740. this.getCourseDetail();
  18741. this.selectCount();
  18742. this.getHomeWork();
  18743. this.toolIndex = null;
  18744. this.contentDialog = true;
  18745. this.setContent2(true);
  18746. if (this.tType == 4) {
  18747. this.pzDialog = true;
  18748. this.selectPz();
  18749. }
  18750. document.scrollingElement.scrollTop = 0;
  18751. window.addEventListener("resize", () => {
  18752. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18753. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18754. if (this.showType == 2 || this.showType == 3) {
  18755. document.getElementsByClassName("navBox")[0].style.height =
  18756. a - 40 + 0+ "px";
  18757. } else {
  18758. document.getElementsByClassName("navBox")[0].style.height =
  18759. a - 40 + "px";
  18760. }
  18761. });
  18762. let _this = this;
  18763. setTimeout(() => {
  18764. // _this.vedioTime = [];
  18765. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18766. // _this.vedioTime[i] = document.getElementsByClassName(
  18767. // "vjs-duration-display"
  18768. // )[i].textContent;
  18769. // }
  18770. }, 1000);
  18771. },
  18772. };
  18773. </script>
  18774. <style scoped>
  18775. @media screen and (max-width: 1280px) {
  18776. /* .courseIndex > div:first-child(2) {
  18777. width: 15% !important;
  18778. } */
  18779. /* .navText {
  18780. width: 120px !important;
  18781. } */
  18782. .evaCss {
  18783. flex-direction: column !important;
  18784. align-items: center !important;
  18785. }
  18786. .dialog_diy1 >>> .el-dialog {
  18787. width: 100% !important;
  18788. }
  18789. .rightWidthCss {
  18790. width: 100% !important;
  18791. }
  18792. .dialog_diy3 >>> .el-dialog {
  18793. width: 100% !important;
  18794. }
  18795. .addToolCss{
  18796. right: 0 !important;
  18797. width: 100% !important;
  18798. }
  18799. /* .textTitle >>> .el-form-item__label {
  18800. width: 150px !important;
  18801. } */
  18802. }
  18803. .evaCssMax {
  18804. flex-direction: column !important;
  18805. align-items: center !important;
  18806. }
  18807. .dialog_diy >>> .el-dialog {
  18808. margin-top: 10vh !important;
  18809. }
  18810. .body_student {
  18811. width: 77%;
  18812. height: 100%;
  18813. position: absolute;
  18814. left: 22%;
  18815. top: 0;
  18816. }
  18817. .student_head {
  18818. width: 100%;
  18819. margin: 20px auto 0;
  18820. padding-bottom: 20px;
  18821. display: flex;
  18822. flex-direction: column;
  18823. flex-wrap: nowrap;
  18824. align-items: flex-start;
  18825. justify-content: flex-start;
  18826. }
  18827. .pb_left {
  18828. width: 20%;
  18829. margin-right: 10px;
  18830. background: rgb(255, 255, 255);
  18831. position: fixed;
  18832. height: calc(100% - 40px);
  18833. border-radius: 20px;
  18834. padding-bottom: 15px;
  18835. box-sizing: border-box;
  18836. }
  18837. .wheel > img,
  18838. .project > img,
  18839. .star > img,
  18840. .evaluate > img,
  18841. .up_photo > img,
  18842. .chapter_add > img,
  18843. .deleteWord > img,
  18844. .question > img,
  18845. .homework > img {
  18846. width: 100%;
  18847. height: 100%;
  18848. }
  18849. .upCover > img {
  18850. width: 131px;
  18851. height: 69px;
  18852. object-fit: cover;
  18853. }
  18854. .upCover {
  18855. width: calc(100% / 3.5);
  18856. position: relative;
  18857. margin: 0 15px 10px 0;
  18858. display: flex;
  18859. flex-direction: column;
  18860. flex-wrap: nowrap;
  18861. justify-content: center;
  18862. align-content: center;
  18863. align-items: center;
  18864. height: fit-content;
  18865. }
  18866. .upCover2 {
  18867. width: 100%;
  18868. position: relative;
  18869. margin: 0 15px 10px 0;
  18870. display: flex;
  18871. flex-direction: column;
  18872. flex-wrap: nowrap;
  18873. justify-content: center;
  18874. align-content: center;
  18875. align-items: center;
  18876. }
  18877. .upCover2 > img {
  18878. width: 100%;
  18879. height: 90px;
  18880. object-fit: contain;
  18881. }
  18882. .chapter_add {
  18883. width: 120px;
  18884. position: relative;
  18885. text-align: center;
  18886. }
  18887. .isAddThings {
  18888. margin-top: 20px;
  18889. position: relative;
  18890. text-align: center;
  18891. background: #f7f8fa;
  18892. height: 90px;
  18893. width: 90px;
  18894. display: flex;
  18895. flex-direction: column;
  18896. justify-content: center;
  18897. }
  18898. .deleteWord {
  18899. width: 22px;
  18900. height: 22px;
  18901. position: absolute;
  18902. right: -5px;
  18903. top: -5px;
  18904. cursor: pointer;
  18905. }
  18906. .box_course {
  18907. /* width: 60%; */
  18908. width: calc(100% - 300px);
  18909. }
  18910. .wheel {
  18911. width: 100%;
  18912. /* height: 100%; */
  18913. height: 650px;
  18914. }
  18915. .right_box {
  18916. display: flex;
  18917. flex-direction: column;
  18918. margin-left: 30px;
  18919. justify-content: space-around;
  18920. }
  18921. .right_box_title {
  18922. font-size: 23px;
  18923. }
  18924. .people {
  18925. display: flex;
  18926. }
  18927. .student_body {
  18928. width: 100%;
  18929. margin: 0 auto;
  18930. margin-top: 10px;
  18931. padding: 0 0 20px;
  18932. background: #fff;
  18933. border-radius: 20px;
  18934. }
  18935. .study_top {
  18936. margin-top: 100px;
  18937. width: 100%;
  18938. /* overflow: auto; */
  18939. height: auto;
  18940. padding-bottom: 20px;
  18941. }
  18942. .study_top .checkbox {
  18943. display: flex;
  18944. align-items: center;
  18945. padding: 15px 0 15px 30px;
  18946. flex: 0 0 auto;
  18947. font-weight: bold;
  18948. border-bottom: 1px solid #eee;
  18949. }
  18950. .study_top .check {
  18951. padding-bottom: 5px;
  18952. text-align: center;
  18953. cursor: pointer;
  18954. height: 30px;
  18955. box-sizing: border-box;
  18956. display: flex;
  18957. }
  18958. .study_top .checked {
  18959. border-bottom: 4px solid #3fc6a0;
  18960. padding-bottom: 5px;
  18961. color: #3fc6a0;
  18962. display: flex;
  18963. height: 35px;
  18964. }
  18965. .study_top .checked > div,
  18966. .study_top .check > div {
  18967. margin-right: 5px;
  18968. }
  18969. .videoTop {
  18970. display: flex;
  18971. flex-direction: row;
  18972. justify-content: space-between;
  18973. background: #fff;
  18974. align-items: center;
  18975. width: 95%;
  18976. padding: 20px;
  18977. }
  18978. .upbtn {
  18979. margin: 25px;
  18980. background: #70afdb;
  18981. color: #fff;
  18982. width: 120px;
  18983. text-align: center;
  18984. height: 30px;
  18985. line-height: 30px;
  18986. font-size: 13px;
  18987. border-radius: 5px;
  18988. cursor: pointer;
  18989. }
  18990. .filebox {
  18991. display: flex;
  18992. flex-wrap: wrap;
  18993. flex-direction: column;
  18994. padding: 0 0 5px;
  18995. }
  18996. .filebox .tooldetail {
  18997. width: 100%;
  18998. margin: 0px 12px;
  18999. background: rgb(247, 247, 247);
  19000. padding: 20px;
  19001. line-height: 30px;
  19002. word-break: break-word;
  19003. }
  19004. .file {
  19005. display: flex;
  19006. flex-direction: column;
  19007. align-items: center;
  19008. justify-content: center;
  19009. cursor: pointer;
  19010. width: 200px;
  19011. }
  19012. .file div {
  19013. margin-top: 10px;
  19014. width: 150px;
  19015. text-align: center;
  19016. overflow: hidden;
  19017. white-space: nowrap;
  19018. text-overflow: ellipsis;
  19019. }
  19020. .media {
  19021. display: flex;
  19022. flex-direction: column;
  19023. align-items: center;
  19024. justify-content: center;
  19025. margin: 0 20px 20px 0;
  19026. cursor: pointer;
  19027. margin: 12px 0 5px 15px;
  19028. overflow: hidden;
  19029. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19030. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19031. box-sizing: border-box;
  19032. }
  19033. .media img {
  19034. height: 90px;
  19035. width: 160px;
  19036. object-fit: cover;
  19037. }
  19038. .media .title {
  19039. padding: 5px;
  19040. text-align: left;
  19041. width: 100%;
  19042. box-sizing: border-box;
  19043. }
  19044. .media .btn {
  19045. width: 100%;
  19046. height: 35px;
  19047. line-height: 35px;
  19048. color: #fff;
  19049. background: #606060;
  19050. text-align: center;
  19051. overflow: hidden;
  19052. white-space: nowrap;
  19053. text-overflow: ellipsis;
  19054. }
  19055. .detail_content_top {
  19056. width: 100%;
  19057. padding: 25px 0 25px 0;
  19058. }
  19059. .detail_title {
  19060. text-align: center;
  19061. font-size: 24px;
  19062. }
  19063. .detail_time {
  19064. font-size: 13px;
  19065. padding: 15px 0 0 40px;
  19066. }
  19067. .detail_content {
  19068. line-height: 2pc;
  19069. width: 90%;
  19070. margin: 0 auto;
  19071. padding-top: 30px;
  19072. text-indent: 30px;
  19073. overflow: auto;
  19074. height: 200px;
  19075. }
  19076. .score_box >>> .el-rate {
  19077. margin-left: 10px;
  19078. }
  19079. .dialog_change >>> .el-dialog {
  19080. border-radius: 5px;
  19081. }
  19082. .dialog_change >>> .el-dialog__header {
  19083. background: #f2f2f2;
  19084. text-align: center;
  19085. }
  19086. .dialog_change >>> .el-dialog__title {
  19087. line-height: 5px;
  19088. }
  19089. .dialog_change >>> .el-dialog__body {
  19090. background: #fff;
  19091. padding: 10px 20px;
  19092. }
  19093. .score_box {
  19094. display: flex;
  19095. align-items: center;
  19096. margin-bottom: 18px;
  19097. margin-top: 20px;
  19098. }
  19099. .up_photo {
  19100. width: 120px;
  19101. cursor: pointer;
  19102. margin-top: 10px;
  19103. }
  19104. .up_photo2 {
  19105. width: 180px;
  19106. box-sizing: border-box;
  19107. min-width: 180px;
  19108. height: 180px;
  19109. max-height: 180px;
  19110. min-height: 180px;
  19111. cursor: pointer;
  19112. display: flex;
  19113. flex-direction: column;
  19114. align-items: center;
  19115. justify-content: center;
  19116. background: rgb(242, 246, 255);
  19117. /* padding: 25px; */
  19118. margin-bottom: 10px;
  19119. }
  19120. .up_photo2 img {
  19121. width: 50%;
  19122. height: auto;
  19123. }
  19124. .up_photo2 span {
  19125. color: #898989;
  19126. }
  19127. .plworkBox {
  19128. display: flex;
  19129. align-items: center;
  19130. margin-top: 10px;
  19131. flex-wrap: wrap;
  19132. }
  19133. .upload_send {
  19134. margin: 30px auto 30px;
  19135. width: 60%;
  19136. background: #169bd6;
  19137. text-align: center;
  19138. height: 35px;
  19139. line-height: 35px;
  19140. color: #fff;
  19141. border-radius: 5px;
  19142. cursor: pointer;
  19143. }
  19144. .marginT {
  19145. margin-top: 20px;
  19146. }
  19147. .cd_content_steps {
  19148. display: flex;
  19149. width: 90%;
  19150. justify-content: space-around;
  19151. border-top: 1px solid #eeeeee;
  19152. }
  19153. .cd_steps_box {
  19154. display: flex;
  19155. justify-content: center;
  19156. align-items: center;
  19157. flex-direction: column;
  19158. cursor: pointer;
  19159. }
  19160. .first {
  19161. display: flex;
  19162. align-items: center;
  19163. margin: 15px 0 20px 0;
  19164. font-size: 20px;
  19165. }
  19166. .first > div:nth-child(2) {
  19167. font-size: 16px !important;
  19168. padding-left: 10px;
  19169. line-height: 26px;
  19170. box-sizing: border-box;
  19171. }
  19172. .blue_box_one {
  19173. text-align: center;
  19174. color: #fff;
  19175. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19176. border-radius: 7px;
  19177. margin: 10px;
  19178. cursor: pointer;
  19179. width: 95%;
  19180. height: 45px;
  19181. display: flex;
  19182. flex-direction: row;
  19183. justify-content: flex-start;
  19184. align-items: center;
  19185. }
  19186. .blue_box_one > div:nth-child(1) {
  19187. line-height: 30px;
  19188. margin: 0 5px 0 10px;
  19189. width: 30%;
  19190. min-width: 70px;
  19191. border-radius: 4px;
  19192. }
  19193. .blue_box_one > div:nth-child(2) {
  19194. white-space: nowrap;
  19195. text-overflow: ellipsis;
  19196. overflow: hidden;
  19197. word-break: break-all;
  19198. width: 70%;
  19199. text-align: left;
  19200. margin-right: 10px;
  19201. max-width: calc(100% - 85px);
  19202. }
  19203. .blue_box_one > div:nth-child(2):hover {
  19204. overflow: hidden;
  19205. text-overflow: ellipsis;
  19206. white-space: nowrap;
  19207. cursor: pointer;
  19208. }
  19209. .upFile {
  19210. margin: 0 auto;
  19211. width: 120px;
  19212. background: #70afdb;
  19213. color: #fff;
  19214. height: 30px;
  19215. text-align: center;
  19216. line-height: 30px;
  19217. border-radius: 5px;
  19218. font-size: 14px;
  19219. cursor: pointer;
  19220. }
  19221. .courseTitle {
  19222. width: 85%;
  19223. margin: 10px auto;
  19224. display: flex;
  19225. flex-direction: row;
  19226. align-items: center;
  19227. justify-content: space-between;
  19228. text-align: center;
  19229. }
  19230. .courseTitle .ctitle {
  19231. font-size: 20px;
  19232. font-weight: bold;
  19233. color: #0e1e33;
  19234. white-space: nowrap;
  19235. overflow: hidden;
  19236. text-overflow: ellipsis;
  19237. }
  19238. .courseTitle .inviteBox {
  19239. font-size: 14px;
  19240. margin-top: 5px;
  19241. color: #a6cbff;
  19242. }
  19243. .courseTitle >>> .el-tooltip {
  19244. width: 100%;
  19245. white-space: nowrap;
  19246. overflow: hidden;
  19247. text-overflow: ellipsis;
  19248. word-break: break-word;
  19249. }
  19250. .ml {
  19251. margin-left: 20px;
  19252. color: #5b7dba;
  19253. border-left: 3px solid #5b7dba;
  19254. padding-left: 5px;
  19255. font-weight: bold;
  19256. }
  19257. .return {
  19258. width: 2rem;
  19259. height: 2rem;
  19260. cursor: pointer;
  19261. }
  19262. .return > img {
  19263. width: 100%;
  19264. height: 100%;
  19265. }
  19266. .returnBtn {
  19267. width: 86px;
  19268. height: 36px;
  19269. background: #3681fc;
  19270. border-radius: 4px;
  19271. color: #fff;
  19272. text-align: center;
  19273. line-height: 36px;
  19274. margin-right: 20px;
  19275. cursor: pointer;
  19276. font-size: 14px;
  19277. font-weight: 400;
  19278. display: flex;
  19279. flex-direction: row;
  19280. flex-wrap: nowrap;
  19281. align-items: center;
  19282. justify-content: center;
  19283. }
  19284. .tool {
  19285. display: flex;
  19286. flex-direction: column;
  19287. flex-wrap: nowrap;
  19288. width: 13%;
  19289. margin: 0 30px;
  19290. align-items: center;
  19291. position: relative;
  19292. padding: 10px 25px;
  19293. cursor: pointer;
  19294. }
  19295. .whiteBIcon {
  19296. width: 150px;
  19297. }
  19298. .whiteBIcon > img {
  19299. width: 100%;
  19300. height: 100%;
  19301. }
  19302. .mask {
  19303. background-color: rgba(0, 0, 0, 0);
  19304. position: fixed;
  19305. top: 0;
  19306. left: 0;
  19307. width: 100%;
  19308. height: 100%;
  19309. z-index: 20000;
  19310. display: flex;
  19311. align-items: center;
  19312. justify-content: center;
  19313. }
  19314. .progressBox {
  19315. width: 500px;
  19316. height: 180px;
  19317. background: #fff;
  19318. border-radius: 10px;
  19319. box-shadow: 0 0 6px 1px #bfbfbf;
  19320. display: flex;
  19321. align-items: center;
  19322. justify-content: center;
  19323. flex-direction: column;
  19324. position: relative;
  19325. color: #6c6c6c;
  19326. }
  19327. .progressBox >>> .el-progress-bar__outer {
  19328. background-color: #d1dfff !important;
  19329. }
  19330. .progressBox .lbox {
  19331. height: 50px;
  19332. font-size: 19px;
  19333. display: flex;
  19334. align-items: center;
  19335. color: #747474;
  19336. }
  19337. .progressBox .lbox img {
  19338. width: 40px;
  19339. margin-right: 20px;
  19340. }
  19341. .closeCss {
  19342. position: absolute;
  19343. top: 8px;
  19344. right: 8px;
  19345. cursor: pointer;
  19346. width: 20px;
  19347. height: 20px;
  19348. }
  19349. .closeCss > img {
  19350. width: 100%;
  19351. height: 100%;
  19352. }
  19353. .uploadVedio {
  19354. display: flex;
  19355. flex-direction: column;
  19356. flex-wrap: nowrap;
  19357. justify-content: center;
  19358. align-items: center;
  19359. margin: 0 15px 10px 0;
  19360. }
  19361. .uploadVedio > img {
  19362. width: 30px;
  19363. height: 30px;
  19364. }
  19365. .uploadVedio > span {
  19366. white-space: nowrap;
  19367. overflow: hidden;
  19368. text-overflow: ellipsis;
  19369. width: 75px;
  19370. margin-top: 7px;
  19371. }
  19372. .picName {
  19373. white-space: nowrap;
  19374. overflow: hidden;
  19375. text-overflow: ellipsis;
  19376. width: 75px;
  19377. margin-top: 7px;
  19378. }
  19379. .new_top {
  19380. display: flex;
  19381. background: #fff;
  19382. flex-direction: row;
  19383. justify-content: flex-start;
  19384. align-items: center;
  19385. height: 60px;
  19386. position: fixed;
  19387. top: 20px;
  19388. left: 22%;
  19389. width: 77%;
  19390. z-index: 999;
  19391. border-radius: 12px 12px 0 0;
  19392. border-bottom: 1px solid #cad1dc;
  19393. padding: 10px 0;
  19394. }
  19395. .new_topFixed {
  19396. width: 100%;
  19397. height: 40px;
  19398. position: fixed;
  19399. top: 0px;
  19400. display: block;
  19401. background: #f2f2f2;
  19402. z-index: 998;
  19403. }
  19404. .before {
  19405. position: absolute;
  19406. background: #c3dad4;
  19407. width: 6px;
  19408. height: 100%;
  19409. }
  19410. .courseIndex {
  19411. display: flex;
  19412. flex-direction: row;
  19413. align-items: center;
  19414. width: calc(100% - 745px);
  19415. }
  19416. .courseIndex > div:nth-child(1) {
  19417. margin: 0 0 0 10px;
  19418. font-size: 20px;
  19419. min-width: 100px;
  19420. font-weight: bold;
  19421. border-left: 4px solid #3363b9;
  19422. height: 32px;
  19423. text-align: center;
  19424. line-height: 35px;
  19425. }
  19426. .courseIndex > div:nth-child(2) {
  19427. font-size: 20px;
  19428. /* width: 300px; */
  19429. max-width: calc(100% - 105px);
  19430. white-space: nowrap;
  19431. overflow: hidden;
  19432. text-overflow: ellipsis;
  19433. }
  19434. .courseIndex > div:nth-child(3) {
  19435. border-bottom: 1px solid #d7d7d7;
  19436. padding-bottom: 5px;
  19437. background: #49a0f0;
  19438. width: 55px;
  19439. min-width: 55px;
  19440. border-radius: 5px;
  19441. color: #fff;
  19442. text-align: center;
  19443. height: 20px;
  19444. line-height: 26px;
  19445. font-size: 14px;
  19446. margin: 0 0 0 10px;
  19447. }
  19448. .course_text {
  19449. padding: 20px 0 0 15px;
  19450. text-indent: 30px;
  19451. width: 80%;
  19452. min-height: 20px;
  19453. }
  19454. .vedioList {
  19455. background: #f2f2f2;
  19456. border: 1px solid #ececec;
  19457. /* width: 38.8%; */
  19458. width: 300px;
  19459. height: 445px;
  19460. border-radius: 10px;
  19461. overflow: hidden;
  19462. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19463. }
  19464. .vedioNav {
  19465. margin: 10px 0 0 15px;
  19466. border-bottom: 1px solid #d7d7d7;
  19467. padding-bottom: 5px;
  19468. background: #96d1ff;
  19469. width: 55px;
  19470. min-width: 55px;
  19471. border-radius: 5px;
  19472. color: #fff;
  19473. text-align: center;
  19474. height: 20px;
  19475. line-height: 26px;
  19476. font-size: 14px;
  19477. }
  19478. .queTop {
  19479. display: flex;
  19480. padding: 20px 0 20px 30px;
  19481. width: 100%;
  19482. flex-direction: row;
  19483. justify-content: flex-start;
  19484. align-items: center;
  19485. box-sizing: border-box;
  19486. }
  19487. .queTopTitle {
  19488. display: flex;
  19489. flex-direction: row;
  19490. flex-wrap: nowrap;
  19491. align-items: center;
  19492. font-weight: bold;
  19493. font-size: 20px;
  19494. color: rgb(14, 30, 51);
  19495. }
  19496. .queTopTitle::before {
  19497. content: "";
  19498. width: 2px;
  19499. height: 22px;
  19500. background: #3681fc;
  19501. border-radius: 3px;
  19502. display: block;
  19503. margin: 2px 6px 0 0;
  19504. }
  19505. .queTopRight {
  19506. display: flex;
  19507. flex-direction: row;
  19508. flex-wrap: nowrap;
  19509. align-items: center;
  19510. }
  19511. .queTopClose {
  19512. margin-right: 20px;
  19513. cursor: pointer;
  19514. position: relative;
  19515. display: flex;
  19516. }
  19517. .closeImg,
  19518. .openImg {
  19519. width: 25px;
  19520. height: 25px;
  19521. position: absolute;
  19522. left: -20px;
  19523. top: -1px;
  19524. }
  19525. .closeImg > img,
  19526. .openImg > img {
  19527. width: 100%;
  19528. height: 100%;
  19529. }
  19530. .question {
  19531. width: 40px;
  19532. margin-right: 10px;
  19533. margin-top: 7px;
  19534. }
  19535. .queTitle {
  19536. margin-left: 5px;
  19537. font-size: 25px;
  19538. display: flex;
  19539. align-items: center;
  19540. }
  19541. .addEditor {
  19542. width: 100px;
  19543. height: 30px;
  19544. background: #42cda6;
  19545. color: #fff;
  19546. border-radius: 5px;
  19547. text-align: center;
  19548. line-height: 30px;
  19549. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19550. cursor: pointer;
  19551. }
  19552. .vedioName {
  19553. /* text-overflow: ellipsis;
  19554. top: 8px;
  19555. font-size: 14px;
  19556. overflow: hidden;
  19557. width: 100%;
  19558. word-break: break-all;
  19559. white-space: nowrap; */
  19560. cursor: pointer;
  19561. margin: 0px 0px 10px 5px;
  19562. white-space: nowrap;
  19563. overflow: hidden;
  19564. text-overflow: ellipsis;
  19565. width: 100%;
  19566. }
  19567. .vedioTime {
  19568. width: 35px;
  19569. position: absolute;
  19570. color: #fff;
  19571. bottom: 0px;
  19572. right: 0px;
  19573. text-align: center;
  19574. background: #46411f;
  19575. height: 20px;
  19576. font-size: 14px;
  19577. line-height: 20px;
  19578. }
  19579. .homework {
  19580. width: 200px;
  19581. display: flex;
  19582. flex-direction: column;
  19583. flex-wrap: nowrap;
  19584. align-items: center;
  19585. cursor: pointer;
  19586. }
  19587. .homebox {
  19588. display: flex;
  19589. flex-wrap: wrap;
  19590. flex-direction: row;
  19591. justify-content: flex-start;
  19592. align-items: center;
  19593. padding: 15px 0;
  19594. }
  19595. .chooseWho {
  19596. display: flex;
  19597. width: 100%;
  19598. flex-direction: row;
  19599. flex-wrap: nowrap;
  19600. justify-content: flex-start;
  19601. padding: 0 0 10px 0;
  19602. }
  19603. .chooseWho > div {
  19604. cursor: pointer;
  19605. padding-bottom: 10px;
  19606. margin: 0 30px 0 0;
  19607. font-weight: 400;
  19608. color: #0e1e33;
  19609. }
  19610. .addPoint > div > img {
  19611. cursor: pointer;
  19612. margin: 0 10px;
  19613. width: 85px;
  19614. border-radius: 15px;
  19615. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19616. }
  19617. .addPoint > div {
  19618. display: flex;
  19619. flex-direction: column;
  19620. flex-wrap: nowrap;
  19621. align-items: center;
  19622. }
  19623. .isBorder > div {
  19624. margin: 0 0 10px 0;
  19625. align-items: flex-start !important;
  19626. }
  19627. .noiframeBox {
  19628. display: flex;
  19629. flex-wrap: wrap;
  19630. }
  19631. .iframeBox iframe {
  19632. width: 100%;
  19633. height: 800px;
  19634. border: none;
  19635. margin-bottom: 20px;
  19636. border: 1px solid #ccc;
  19637. }
  19638. .upload_toolBtn {
  19639. background: #6b92c9;
  19640. color: #fff;
  19641. width: 110px;
  19642. text-align: center;
  19643. height: 35px;
  19644. line-height: 35px;
  19645. font-size: 14px;
  19646. border-radius: 5px;
  19647. cursor: pointer;
  19648. position: absolute;
  19649. right: 10px;
  19650. bottom: 0;
  19651. }
  19652. .binfo_input,
  19653. .pj {
  19654. font: inherit;
  19655. color: currentColor;
  19656. width: 100%;
  19657. margin: 0;
  19658. padding: 15px 14px;
  19659. display: block;
  19660. min-width: 0;
  19661. outline: none;
  19662. box-sizing: content-box;
  19663. background: none;
  19664. -webkit-tap-highlight-color: transparent;
  19665. border: 1px solid rgba(0, 0, 0, 0.23);
  19666. border-radius: 4px;
  19667. box-sizing: border-box;
  19668. resize: none;
  19669. }
  19670. .binfo_input:focus-visible {
  19671. border: 1px solid rgba(61, 103, 188);
  19672. }
  19673. .dialog_diy >>> .el-dialog__header,
  19674. .dialog_diy1 >>> .el-dialog__header {
  19675. background: #454545 !important;
  19676. padding: 15px 20px;
  19677. }
  19678. .dialog_diy >>> .el-dialog__title,
  19679. .dialog_diy1 >>> .el-dialog__title {
  19680. color: #fff;
  19681. }
  19682. .dialog_diy >>> .el-dialog__headerbtn,
  19683. .dialog_diy1 >>> .el-dialog__headerbtn {
  19684. top: 19px;
  19685. }
  19686. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19687. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19688. color: #fff;
  19689. }
  19690. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19691. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19692. color: #fff;
  19693. }
  19694. .dialog_diy1 >>> .el-dialog__body {
  19695. padding: 0;
  19696. }
  19697. .dialog_diy >>> .el-dialog__body,
  19698. .dialog_diy >>> .el-dialog__footer,
  19699. .dialog_diy1 >>> .el-dialog__footer {
  19700. background: #fafafa;
  19701. }
  19702. .a_addBox {
  19703. padding: 0 0 0 15px;
  19704. }
  19705. .a_add_box {
  19706. padding: 10px;
  19707. background: #fff;
  19708. margin-bottom: 10px;
  19709. border-radius: 5px;
  19710. box-shadow: 0 0 5px 0 #d5d5d5;
  19711. }
  19712. .askIndex {
  19713. background: #3681fc;
  19714. border-radius: 50%;
  19715. color: #fff;
  19716. width: 25px;
  19717. height: 25px;
  19718. min-width: 25px;
  19719. min-height: 25px;
  19720. text-align: center;
  19721. line-height: 25px;
  19722. margin-right: 5px;
  19723. }
  19724. .a_add_head {
  19725. display: flex;
  19726. align-items: flex-start;
  19727. /* justify-content: space-between; */
  19728. flex-direction: column;
  19729. /* flex-direction: row; */
  19730. margin: 10px 0 20px 0;
  19731. font-size: 18px;
  19732. width: 100%;
  19733. }
  19734. .a_add_head .a_add_head_input {
  19735. width: 300px;
  19736. }
  19737. .a_add_head .a_add_head_div {
  19738. display: flex;
  19739. align-items: center;
  19740. justify-content: space-between;
  19741. }
  19742. .a_add_body {
  19743. display: flex;
  19744. align-items: center;
  19745. }
  19746. .a_add_input {
  19747. display: flex;
  19748. align-items: center;
  19749. flex-wrap: wrap;
  19750. width: 100%;
  19751. }
  19752. .a_add_input >>> .el-radio-group,
  19753. .a_add_input >>> .el-checkbox-group {
  19754. width: 100%;
  19755. }
  19756. .a_add_input >>> .el-radio,
  19757. .a_add_input >>> .el-checkbox {
  19758. display: flex;
  19759. flex-direction: row;
  19760. flex-wrap: nowrap;
  19761. align-items: center;
  19762. padding: 15px 0;
  19763. }
  19764. .a_add_input >>> .el-radio:not(:last-child),
  19765. .a_add_input >>> .el-checkbox:not(:last-child) {
  19766. width: 100%;
  19767. border-bottom: 1px solid #efefef;
  19768. }
  19769. .redioStyle >>> .el-radio__label {
  19770. font-size: 18px;
  19771. }
  19772. .redioStyle >>> .el-radio__label > span,
  19773. .redioStyle >>> .el-checkbox__label > span {
  19774. word-break: break-all;
  19775. white-space: normal;
  19776. }
  19777. .redioStyle >>> .el-checkbox__label {
  19778. font-size: 18px;
  19779. }
  19780. .toolHeng2 {
  19781. width: 100%;
  19782. box-sizing: border-box;
  19783. }
  19784. .toolHeng {
  19785. display: flex;
  19786. flex-direction: row;
  19787. flex-wrap: wrap;
  19788. justify-content: flex-start;
  19789. align-items: center;
  19790. width: 100%;
  19791. }
  19792. .toolHeng > div {
  19793. padding-left: 20px;
  19794. }
  19795. .isWidth {
  19796. width: 20%;
  19797. }
  19798. .textTitle {
  19799. display: flex;
  19800. flex-direction: row;
  19801. flex-wrap: nowrap;
  19802. align-items: center;
  19803. width: 95%;
  19804. }
  19805. .textTitle >>> .el-form-item__label {
  19806. font-size: 22px;
  19807. color: #918f8f;
  19808. width: 100px;
  19809. }
  19810. .textTitle >>> .el-form-item__content {
  19811. width: calc(100% - 100px);
  19812. }
  19813. .textCss >>> .el-dialog {
  19814. width: 800px !important;
  19815. height: 400px;
  19816. background: #fafafa;
  19817. }
  19818. .textCss >>> .el-dialog__body {
  19819. margin: 55px 8% 0 8%;
  19820. padding: 0 !important;
  19821. }
  19822. .textCss >>> .el-dialog__footer {
  19823. padding-top: 38px;
  19824. }
  19825. .toolsCss >>> .el-dialog__body {
  19826. padding: 20px;
  19827. }
  19828. .lineCss >>> .el-dialog__body {
  19829. display: flex;
  19830. flex-direction: row;
  19831. align-items: center;
  19832. justify-content: center;
  19833. }
  19834. .newNav {
  19835. display: flex;
  19836. flex-direction: row;
  19837. align-items: baseline;
  19838. justify-content: flex-start;
  19839. }
  19840. .navText {
  19841. cursor: pointer;
  19842. white-space: nowrap;
  19843. overflow: hidden;
  19844. text-overflow: ellipsis;
  19845. width: 220px;
  19846. padding: 0 10px;
  19847. font-weight: 400;
  19848. color: #0e1e33;
  19849. }
  19850. .noVedio {
  19851. display: flex;
  19852. flex-direction: row;
  19853. justify-content: center;
  19854. align-content: center;
  19855. }
  19856. .noNavText {
  19857. cursor: pointer;
  19858. margin: 0px 0px 10px 5px;
  19859. width: 112px;
  19860. }
  19861. .listNoVedio {
  19862. margin: 0 0 0 30px;
  19863. width: 97%;
  19864. }
  19865. .video-player >>> .video-js {
  19866. height: 100%;
  19867. }
  19868. .hangVedioList {
  19869. width: 90% !important;
  19870. height: 150px !important;
  19871. margin: 20px 0 0 30px;
  19872. }
  19873. .hangVedio {
  19874. width: 100%;
  19875. height: 170px !important;
  19876. align-items: flex-start !important;
  19877. }
  19878. .hangHand {
  19879. height: 150px !important;
  19880. }
  19881. .twoChild {
  19882. width: 95%;
  19883. margin: 10px;
  19884. border-radius: 5px;
  19885. background: #f2f2f2;
  19886. display: flex;
  19887. flex-direction: column;
  19888. flex-wrap: nowrap;
  19889. justify-content: flex-start;
  19890. align-items: flex-start;
  19891. transition: all 0.5s;
  19892. overflow: hidden;
  19893. height: 0;
  19894. background: #e7f3ff;
  19895. }
  19896. .twoChild > div:nth-child(1) {
  19897. margin-top: 5px;
  19898. }
  19899. .navChild {
  19900. width: 100%;
  19901. cursor: pointer;
  19902. margin-bottom: 10px;
  19903. position: relative;
  19904. }
  19905. .navChild img {
  19906. position: absolute;
  19907. right: 11px;
  19908. width: 15px;
  19909. top: 50%;
  19910. transform: translateY(-50%);
  19911. }
  19912. .navActive,
  19913. .toolActive {
  19914. height: auto !important;
  19915. overflow: auto !important;
  19916. padding-bottom: 16px;
  19917. }
  19918. .toolActive {
  19919. padding: 0;
  19920. }
  19921. .navTask {
  19922. display: flex;
  19923. flex-direction: row;
  19924. flex-wrap: nowrap;
  19925. align-items: center;
  19926. align-content: flex-start;
  19927. height: 40px;
  19928. justify-content: flex-start;
  19929. padding: 0 10px;
  19930. width: 100%;
  19931. box-sizing: border-box;
  19932. }
  19933. .navTaskname {
  19934. white-space: nowrap;
  19935. text-overflow: ellipsis;
  19936. overflow: hidden;
  19937. word-break: break-all;
  19938. padding-left: 5px;
  19939. }
  19940. .openTaskActive {
  19941. background-color: #e0eafb !important;
  19942. color: #0061ff;
  19943. }
  19944. .iframeName {
  19945. margin: 5px 0;
  19946. border-left: 4px solid #41c4a4;
  19947. padding-left: 4px;
  19948. }
  19949. .toolTitle {
  19950. margin: 0px 0px 20px;
  19951. font-size: 20px;
  19952. font-weight: 500;
  19953. border-left: 4px solid #41c4a4;
  19954. padding-left: 4px;
  19955. }
  19956. .cru_selectBox {
  19957. overflow: auto;
  19958. width: 95%;
  19959. margin: 17px auto 0;
  19960. height: calc(100% - 40px - 21px - 20px - 17px);
  19961. }
  19962. .cru_selectBox::-webkit-scrollbar,
  19963. .study_top::-webkit-scrollbar,
  19964. .textContent::-webkit-scrollbar {
  19965. /*滚动条整体样式*/
  19966. width: 6px;
  19967. /*高宽分别对应横竖滚动条的尺寸*/
  19968. height: 6px;
  19969. }
  19970. /*定义滚动条轨道 内阴影+圆角*/
  19971. .cru_selectBox::-webkit-scrollbar-track,
  19972. .study_top::-webkit-scrollbar-track,
  19973. .textContent::-webkit-scrollbar {
  19974. border-radius: 10px;
  19975. background-color: #b8bdc9;
  19976. }
  19977. /*定义滑块 内阴影+圆角*/
  19978. .cru_selectBox::-webkit-scrollbar-thumb,
  19979. .study_top::-webkit-scrollbar-thumb,
  19980. .textContent::-webkit-scrollbar-thumb {
  19981. border-radius: 10px;
  19982. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19983. background-color: #2c5ab3;
  19984. }
  19985. .vedioBox {
  19986. border-radius: 0 0 20px 20px;
  19987. background: #fff;
  19988. overflow: auto;
  19989. }
  19990. .taskBox {
  19991. width: 98%;
  19992. /* background: #F0F4FA; */
  19993. margin: 10px auto;
  19994. padding: 0 10px;
  19995. border-radius: 4px;
  19996. box-sizing: border-box;
  19997. }
  19998. .vedioTaskBox {
  19999. width: 100%;
  20000. display: flex;
  20001. flex-direction: row;
  20002. flex-wrap: nowrap;
  20003. align-items: flex-start;
  20004. position: relative;
  20005. }
  20006. .toolBox {
  20007. padding: 0 60px 0;
  20008. display: flex;
  20009. position: relative;
  20010. }
  20011. .btnAll {
  20012. position: absolute;
  20013. right: 0;
  20014. display: flex;
  20015. flex-direction: row;
  20016. flex-wrap: nowrap;
  20017. align-items: center;
  20018. }
  20019. .btnLeft,
  20020. .btnRight {
  20021. display: flex;
  20022. flex-direction: row;
  20023. flex-wrap: nowrap;
  20024. align-items: center;
  20025. padding: 5px 0;
  20026. }
  20027. .btnLeft {
  20028. border-right: 1px solid #cad1dc;
  20029. }
  20030. .btnLeft > .custom-tooltip {
  20031. background: #3681fc;
  20032. color: #fff;
  20033. }
  20034. .last:hover {
  20035. background: #3383fa !important;
  20036. color: #fff;
  20037. border: 1px solid #3383fa !important;
  20038. }
  20039. .last,
  20040. .returnBtn1 {
  20041. width: 90px;
  20042. height: 36px;
  20043. background: #ffffff;
  20044. border-radius: 4px;
  20045. border: 1px solid #0061ff;
  20046. color: #0061ff;
  20047. cursor: pointer;
  20048. display: flex;
  20049. flex-direction: row;
  20050. flex-wrap: nowrap;
  20051. align-items: center;
  20052. justify-content: center;
  20053. margin-left: 12px;
  20054. }
  20055. .returnBtn1 {
  20056. background: #f0f4fa;
  20057. border-radius: 4px;
  20058. border: 1px solid #cad1dc;
  20059. margin: 0 12px;
  20060. }
  20061. .lastImg {
  20062. min-width: 15px;
  20063. width: 15px;
  20064. height: 15px;
  20065. }
  20066. .lastText {
  20067. padding: 0 5px 2px 5px;
  20068. box-sizing: border-box;
  20069. font-size: 14px;
  20070. }
  20071. .lastImg > img {
  20072. width: 100%;
  20073. height: 100%;
  20074. }
  20075. .reBtnIcon,
  20076. .commentIcon,
  20077. .vedioIcon,
  20078. .vedioIcon1 {
  20079. /* width: 36px; */
  20080. height: 36px;
  20081. border-radius: 4px;
  20082. position: relative;
  20083. /* background: #e0eafb; */
  20084. background: #005ad4;
  20085. cursor: pointer;
  20086. margin-right: 12px;
  20087. display: flex;
  20088. align-items: center;
  20089. padding: 0 10px;
  20090. box-sizing: border-box;
  20091. font-size: 14px;
  20092. color: #fff;
  20093. }
  20094. .reBtnIcon::before,
  20095. .commentIcon::before,
  20096. .vedioIcon::before,
  20097. .vedioIcon1::before {
  20098. content: "";
  20099. display: block;
  20100. background-size: 100% 100%;
  20101. background-repeat: no-repeat;
  20102. width: 20px;
  20103. height: 20px;
  20104. margin-right: 5px;
  20105. /* position: absolute; */
  20106. /* top: 8px;
  20107. left: 8px; */
  20108. }
  20109. .vedioIcon1 {
  20110. background: #f63564;
  20111. }
  20112. .reBtnIcon::before {
  20113. background-image: url("../../assets/icon/newIcons/refresh.png");
  20114. }
  20115. .commentIcon::before {
  20116. background-image: url("../../assets/icon/newIcons/comment.png");
  20117. }
  20118. .vedioIcon::before {
  20119. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20120. }
  20121. .vedioIcon1::before {
  20122. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  20123. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20124. }
  20125. .btnAllNT {
  20126. position: fixed;
  20127. bottom: 100px;
  20128. right: 40px;
  20129. z-index: 999;
  20130. display: flex;
  20131. flex-direction: row;
  20132. }
  20133. .btnAllNT > img {
  20134. cursor: pointer;
  20135. width: 80px;
  20136. }
  20137. /* .vedioTimeBox {
  20138. display: flex;
  20139. flex-direction: row;
  20140. align-items: center;
  20141. flex-wrap: nowrap;
  20142. position: relative;
  20143. } */
  20144. .navBox {
  20145. background: #fff;
  20146. height: calc(100% - 40px);
  20147. overflow-y: auto;
  20148. overflow-x: hidden;
  20149. }
  20150. .tool_work_box {
  20151. width: 100%;
  20152. padding: 0 37px 0;
  20153. box-sizing: border-box;
  20154. }
  20155. .worksBox {
  20156. padding: 5px 0;
  20157. border-bottom: 1px solid #eeeeee;
  20158. }
  20159. .worksBTitle {
  20160. font-size: 20px;
  20161. padding-bottom: 15px;
  20162. border-bottom: 1px solid #eeeeee;
  20163. display: flex;
  20164. align-items: center;
  20165. }
  20166. .greenBox {
  20167. width: 5px;
  20168. height: 30px;
  20169. background: #63b6fa;
  20170. margin-right: 5px;
  20171. }
  20172. .worksDetailBox {
  20173. display: flex;
  20174. width: 100%;
  20175. flex-direction: row;
  20176. flex-wrap: wrap;
  20177. align-items: flex-end;
  20178. justify-content: flex-start;
  20179. padding: 15px 0;
  20180. }
  20181. .works {
  20182. display: flex;
  20183. flex-direction: column;
  20184. flex-wrap: nowrap;
  20185. align-items: flex-start;
  20186. justify-content: flex-start;
  20187. align-content: center;
  20188. max-width: 240px;
  20189. width: calc(100% / 3 - 10px);
  20190. height: auto;
  20191. margin-right: 10px;
  20192. margin-bottom: 10px;
  20193. overflow: hidden;
  20194. height: 140px;
  20195. box-shadow: 0 0 6px 1px #dfdada;
  20196. border-radius: 15px;
  20197. }
  20198. .workImg {
  20199. width: 100%;
  20200. /* height: calc(100% - 40px); */
  20201. height: 105px;
  20202. position: relative;
  20203. }
  20204. .workImg > img {
  20205. width: 100%;
  20206. height: 100%;
  20207. object-fit: contain;
  20208. cursor: pointer;
  20209. }
  20210. .worksName {
  20211. height: 40px;
  20212. line-height: 40px;
  20213. display: flex;
  20214. width: 100%;
  20215. flex-direction: row;
  20216. flex-wrap: nowrap;
  20217. justify-content: space-between;
  20218. align-items: center;
  20219. margin: 0 0 0 10px;
  20220. }
  20221. .worksName > div:nth-child(1) {
  20222. width: 110px;
  20223. white-space: nowrap;
  20224. overflow: hidden;
  20225. text-overflow: ellipsis;
  20226. }
  20227. .worksName > div:nth-child(2) {
  20228. color: #b7b4b5;
  20229. }
  20230. .noWorksS {
  20231. padding: 15px 0 0;
  20232. display: flex;
  20233. flex-direction: row;
  20234. flex-wrap: wrap;
  20235. align-items: center;
  20236. justify-content: flex-start;
  20237. }
  20238. .noWorksS > div {
  20239. cursor: pointer;
  20240. }
  20241. .noWorksName,
  20242. .isWorksName,
  20243. .isWorksName2 {
  20244. background: #ddebf8;
  20245. color: #000;
  20246. width: 90px;
  20247. height: 25px;
  20248. text-align: center;
  20249. line-height: 25px;
  20250. border-radius: 4px;
  20251. margin: 10px 15px 10px 0;
  20252. white-space: nowrap;
  20253. overflow: hidden;
  20254. padding: 5px;
  20255. text-overflow: ellipsis;
  20256. cursor: pointer;
  20257. border: 1px solid #ddebf8;
  20258. }
  20259. .noWorksName {
  20260. background: #fff;
  20261. color: #0061ff;
  20262. border: 1px solid #0061ff;
  20263. }
  20264. .isWorksName2 {
  20265. width: 100px;
  20266. height: 40px;
  20267. line-height: 40px;
  20268. position: relative;
  20269. background: #dae6f9;
  20270. }
  20271. .noWorksName.isWork {
  20272. background: #e7ebf1 !important;
  20273. border: 1px solid #cad1dc !important;
  20274. color: #acb4bf !important;
  20275. }
  20276. .isWorksName {
  20277. cursor: pointer;
  20278. background: #46a1eb !important;
  20279. width: 100px;
  20280. height: 40px;
  20281. line-height: 40px;
  20282. position: relative;
  20283. }
  20284. .isSelectName,
  20285. .noWorksName:hover {
  20286. background: #3383fa;
  20287. color: #fff;
  20288. border: 1px solid #3383fa;
  20289. }
  20290. .title {
  20291. background: #1e5cc9;
  20292. /* width: 98%; */
  20293. height: 45px;
  20294. color: #fff;
  20295. line-height: 45px;
  20296. padding-left: 20px;
  20297. box-sizing: border-box;
  20298. }
  20299. .textBox {
  20300. font-size: 20px;
  20301. width: 90%;
  20302. display: flex;
  20303. flex-direction: column;
  20304. align-items: center;
  20305. margin: 20px auto 0;
  20306. max-height: calc(100% - 75px);
  20307. overflow: auto;
  20308. }
  20309. .textContent {
  20310. font-size: 18px;
  20311. width: 95%;
  20312. max-width: 95%;
  20313. }
  20314. .answerBg {
  20315. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20316. background-size: 100% 100%;
  20317. width: 100%;
  20318. height: 100%;
  20319. color: #fff;
  20320. text-align: center;
  20321. display: flex;
  20322. flex-direction: column;
  20323. flex-wrap: nowrap;
  20324. align-items: center;
  20325. position: relative;
  20326. justify-content: center;
  20327. }
  20328. .answerBg > div:nth-child(1) {
  20329. /* font-size: 22px;
  20330. padding: 25px 0 10px; */
  20331. }
  20332. .answerContent {
  20333. width: 215px;
  20334. max-height: 60px;
  20335. word-break: break-all;
  20336. text-align: center;
  20337. /* white-space: nowrap; */
  20338. overflow: hidden;
  20339. text-overflow: ellipsis;
  20340. /* padding: 23px 0 0; */
  20341. -webkit-line-clamp: 3;
  20342. -webkit-box-orient: vertical;
  20343. display: -webkit-box;
  20344. font-size: 15px;
  20345. cursor: pointer;
  20346. }
  20347. .elist_input_box {
  20348. display: flex;
  20349. align-items: flex-start;
  20350. flex-wrap: nowrap;
  20351. padding: 10px 0 15px 30px;
  20352. flex-direction: column;
  20353. }
  20354. .elist_input {
  20355. /* width: 40%; */
  20356. width: 100%;
  20357. margin: 20px;
  20358. }
  20359. .elist_input .elist_input_box input {
  20360. font: inherit;
  20361. color: currentColor;
  20362. width: 200px;
  20363. padding: 8px 14px;
  20364. display: block;
  20365. min-width: 0;
  20366. outline: none;
  20367. border: 1px solid rgba(0, 0, 0, 0.23);
  20368. border-radius: 4px;
  20369. box-sizing: border-box;
  20370. background: #fff;
  20371. margin: 0 20px 0 0;
  20372. }
  20373. .elist_input .elist_input_box span {
  20374. height: 36px;
  20375. line-height: 36px;
  20376. color: rgb(82, 82, 82);
  20377. }
  20378. .elist_input .elist_input_box .remove {
  20379. height: 20px;
  20380. width: 20px;
  20381. background-size: 100% 100%;
  20382. background-position: unset;
  20383. margin-left: 5px;
  20384. }
  20385. .elist_input_box >>> .el-rate {
  20386. display: flex;
  20387. height: 36px;
  20388. align-items: center;
  20389. }
  20390. .elist_input_box .elist_inptu_text {
  20391. min-height: 50px;
  20392. /* width: 500px;
  20393. max-height: 150px; */
  20394. width: 100%;
  20395. line-height: 50px;
  20396. color: rgb(82, 82, 82);
  20397. overflow: auto;
  20398. text-indent: 5px;
  20399. background: #f7f6f9;
  20400. border-radius: 10px;
  20401. }
  20402. .elist_input_box .elist_inptu_text input {
  20403. width: 500px;
  20404. }
  20405. .elist_input_box >>> .el-rate__icon {
  20406. font-size: 24px;
  20407. }
  20408. .isClick {
  20409. background: #4d9def;
  20410. }
  20411. /*定义滚动条轨道 内阴影+圆角*/
  20412. .bzTypeBox::-webkit-scrollbar {
  20413. /*滚动条整体样式*/
  20414. width: 6px;
  20415. /*高宽分别对应横竖滚动条的尺寸*/
  20416. height: 6px;
  20417. }
  20418. /*定义滚动条轨道 内阴影+圆角*/
  20419. .bzTypeBox::-webkit-scrollbar-track {
  20420. border-radius: 10px;
  20421. background-color: rgba(0, 0, 0, 0.1);
  20422. }
  20423. /*定义滑块 内阴影+圆角*/
  20424. .bzTypeBox::-webkit-scrollbar-thumb {
  20425. border-radius: 10px;
  20426. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  20427. background-color: rgba(0, 0, 0, 0.1);
  20428. }
  20429. .choiceBox {
  20430. display: flex;
  20431. margin: 20px 0;
  20432. width: 100%;
  20433. }
  20434. .bzTypeBox {
  20435. display: flex;
  20436. width: 100%;
  20437. overflow: auto;
  20438. white-space: nowrap;
  20439. }
  20440. .bzChild {
  20441. cursor: pointer;
  20442. box-sizing: border-box;
  20443. padding-bottom: 10px;
  20444. font-weight: bold;
  20445. min-width: fit-content;
  20446. }
  20447. .bzChild.active {
  20448. color: #3e88f4;
  20449. border-bottom: 2px solid #2f80f3;
  20450. }
  20451. .bzChild + .bzChild {
  20452. margin-left: 25px;
  20453. }
  20454. .bzBox {
  20455. display: flex;
  20456. flex-direction: row;
  20457. align-items: center;
  20458. }
  20459. .bzBox .yCss {
  20460. width: 14px;
  20461. height: 14px;
  20462. background: #3681fc;
  20463. margin: 0 16px 0 7px;
  20464. border-radius: 50%;
  20465. }
  20466. .bzBox > div:nth-child(2) {
  20467. font-size: 18px;
  20468. font-weight: bold;
  20469. color: #0e1e33;
  20470. }
  20471. .navTitile {
  20472. padding: 0 0px 0 15px;
  20473. font-size: 16px;
  20474. font-weight: bold;
  20475. color: #0e1e33;
  20476. height: 40px;
  20477. line-height: 40px;
  20478. }
  20479. .isTypeOne {
  20480. width: 240px;
  20481. height: 170px;
  20482. /* border: 1px solid #f8f8f8; */
  20483. border-radius: 10px;
  20484. box-shadow: 0 0 6px 1px #dfdada;
  20485. }
  20486. .e_add_top {
  20487. display: flex;
  20488. justify-content: space-between;
  20489. padding: 20px 20px 0 20px;
  20490. border-radius: 3px;
  20491. background: #fff;
  20492. }
  20493. .e_add_title2 {
  20494. display: flex;
  20495. align-items: center;
  20496. }
  20497. .e_add_title2 span {
  20498. width: 40px;
  20499. }
  20500. .e_add_title {
  20501. display: flex;
  20502. align-items: center;
  20503. color: #b8b8b8;
  20504. font-size: 18px;
  20505. position: relative;
  20506. height: 40px;
  20507. }
  20508. .e_add_title span {
  20509. margin-right: 10px;
  20510. }
  20511. .e_add_title .el_input {
  20512. width: 300px;
  20513. }
  20514. .e_add_title >>> .el-input__inner {
  20515. width: 400px;
  20516. }
  20517. .e_add_btn {
  20518. }
  20519. .e_add_content {
  20520. display: flex;
  20521. width: 100%;
  20522. max-width: 650px;
  20523. height: 550px;
  20524. }
  20525. .e_add_list {
  20526. background: #fff;
  20527. height: 500px;
  20528. width: 210px;
  20529. position: relative;
  20530. margin: 15px 5px 0 0;
  20531. flex-shrink: 0;
  20532. display: flex;
  20533. flex-direction: column;
  20534. }
  20535. .e_add_list_title {
  20536. font-size: 20px;
  20537. width: 100%;
  20538. box-sizing: border-box;
  20539. padding: 15px 40px;
  20540. text-align: center;
  20541. border-bottom: 1px solid #eaeaea;
  20542. position: relative;
  20543. display: flex;
  20544. align-items: center;
  20545. justify-content: center;
  20546. height: 57px;
  20547. background: #f6f6f6;
  20548. }
  20549. .e_add_list_title span {
  20550. overflow: hidden;
  20551. white-space: nowrap;
  20552. text-overflow: ellipsis;
  20553. }
  20554. .e_add_list_title img {
  20555. position: absolute;
  20556. right: 15px;
  20557. width: 25px;
  20558. cursor: pointer;
  20559. top: 50%;
  20560. transform: translateY(-50%);
  20561. }
  20562. .e_add_list_body {
  20563. height: calc(100% - 187px);
  20564. overflow: auto;
  20565. }
  20566. .e_add_list_child {
  20567. width: 100%;
  20568. display: flex;
  20569. align-items: center;
  20570. justify-content: center;
  20571. position: relative;
  20572. box-sizing: border-box;
  20573. padding: 15px 40px;
  20574. text-align: center;
  20575. }
  20576. .e_add_list_child span {
  20577. overflow: hidden;
  20578. white-space: nowrap;
  20579. text-overflow: ellipsis;
  20580. cursor: pointer;
  20581. }
  20582. .e_add_list_child img {
  20583. position: absolute;
  20584. right: 10px;
  20585. width: 21px;
  20586. cursor: pointer;
  20587. top: 50%;
  20588. transform: translateY(-50%);
  20589. }
  20590. .e_add_list_child + .e_add_list_child {
  20591. border-top: 1px solid #eaeaea;
  20592. }
  20593. .e_add_list_child .active {
  20594. color: #409eff;
  20595. }
  20596. .e_add_list_btn {
  20597. position: absolute;
  20598. bottom: 0;
  20599. height: 50px;
  20600. background: rgb(120, 120, 254);
  20601. width: 100%;
  20602. color: #fff;
  20603. font-size: 16px;
  20604. text-align: center;
  20605. line-height: 50px;
  20606. cursor: pointer;
  20607. }
  20608. .e_add_list_detail {
  20609. position: absolute;
  20610. bottom: 0;
  20611. height: 130px;
  20612. background: rgb(120, 120, 254);
  20613. width: 100%;
  20614. color: #fff;
  20615. font-size: 16px;
  20616. display: flex;
  20617. align-items: center;
  20618. justify-content: center;
  20619. }
  20620. .e_add_list_detail textarea {
  20621. height: 90%;
  20622. width: 95%;
  20623. border: none;
  20624. resize: none;
  20625. outline: none;
  20626. padding: 5px;
  20627. box-sizing: border-box;
  20628. }
  20629. .e_add_list_pbox {
  20630. width: 100%;
  20631. max-width: 650px;
  20632. /* height: 600px; */
  20633. }
  20634. .e_add_list_pbox_title {
  20635. height: 50px;
  20636. background: #fff;
  20637. display: flex;
  20638. align-items: center;
  20639. width: 100%;
  20640. box-sizing: border-box;
  20641. padding: 0 20px;
  20642. }
  20643. .type_title {
  20644. font-size: 18px;
  20645. font-weight: 700;
  20646. }
  20647. .type_content {
  20648. font-size: 16px;
  20649. margin-left: 30px;
  20650. }
  20651. .type_content span + span {
  20652. margin-left: 20px;
  20653. }
  20654. .type_content span {
  20655. cursor: pointer;
  20656. padding-bottom: 5px;
  20657. box-sizing: border-box;
  20658. }
  20659. .type_content .active {
  20660. color: #409eff;
  20661. border-bottom: 2px solid #409eff;
  20662. }
  20663. .e_add_list_pbox_content {
  20664. height: calc(100% - 50px);
  20665. display: flex;
  20666. align-items: center;
  20667. width: 100%;
  20668. background: #fff;
  20669. }
  20670. .evaCss {
  20671. display: flex;
  20672. flex-direction: row;
  20673. flex-wrap: nowrap;
  20674. align-items: flex-start;
  20675. }
  20676. .cru_line {
  20677. position: absolute;
  20678. bottom: 0px;
  20679. transition: all 0.5s;
  20680. left: 0px;
  20681. width: 125px;
  20682. margin-left: -25px;
  20683. }
  20684. .isNoMessage {
  20685. width: 20%;
  20686. margin: 25% auto 0;
  20687. }
  20688. .isNoMessage > img {
  20689. width: 100%;
  20690. height: 100%;
  20691. }
  20692. .fullStyle >>> .el-dialog__body {
  20693. height: 100% !important;
  20694. }
  20695. .fullStyle >>> .el-dialog,
  20696. .fullStyle {
  20697. width: 100% !important;
  20698. max-width: 100% !important;
  20699. height: 100% !important;
  20700. margin: 0 !important;
  20701. }
  20702. .full_diy >>> .el-dialog {
  20703. margin: 0 !important;
  20704. height: 100%;
  20705. padding: 4px;
  20706. }
  20707. .full_diy >>> .el-dialog__body {
  20708. height: calc(100% - 100px);
  20709. }
  20710. .full_diy2 >>> .el-dialog__body {
  20711. height: calc(100% - 50px);
  20712. padding: 0;
  20713. }
  20714. .switchCss {
  20715. /* width: 100%; */
  20716. display: flex;
  20717. flex-direction: row;
  20718. flex-wrap: nowrap;
  20719. align-items: center;
  20720. /* justify-content: center; */
  20721. }
  20722. .isClickNav {
  20723. /* color: #499eef; */
  20724. color: #000;
  20725. }
  20726. .commentImg {
  20727. width: 25px;
  20728. height: 25px;
  20729. cursor: pointer;
  20730. }
  20731. .commentImg > img {
  20732. width: 100%;
  20733. height: 100%;
  20734. }
  20735. .comment {
  20736. background: #f9f9f9;
  20737. border-radius: 0 0 15px 15px;
  20738. display: flex;
  20739. flex-direction: row;
  20740. flex-wrap: nowrap;
  20741. align-items: center;
  20742. justify-content: flex-end;
  20743. height: 35px;
  20744. }
  20745. .commentList {
  20746. display: flex;
  20747. flex-direction: row;
  20748. flex-wrap: nowrap;
  20749. align-items: center;
  20750. justify-content: center;
  20751. align-content: center;
  20752. /* margin-left: 15px; */
  20753. /* margin-left: 8px; */
  20754. }
  20755. .scoreImg {
  20756. width: 17px;
  20757. height: 17px;
  20758. }
  20759. .studentDetail {
  20760. display: flex;
  20761. flex-direction: row;
  20762. flex-wrap: nowrap;
  20763. /* align-items: center; */
  20764. align-items: flex-start;
  20765. }
  20766. .tx {
  20767. width: 50px;
  20768. }
  20769. .tx > img {
  20770. width: 100%;
  20771. height: 100%;
  20772. }
  20773. .nameAndTime {
  20774. display: flex;
  20775. flex-direction: column;
  20776. flex-wrap: nowrap;
  20777. align-items: flex-start;
  20778. margin-left: 10px;
  20779. }
  20780. .worksAnswer {
  20781. color: #4078dd;
  20782. margin: 10px 0;
  20783. font-size: 16px;
  20784. position: relative;
  20785. }
  20786. .worksAnswer > img {
  20787. width: 500px;
  20788. height: 300px;
  20789. object-fit: contain;
  20790. margin: 0 auto;
  20791. display: block;
  20792. }
  20793. .commentTop {
  20794. border-bottom: 1px solid #eaeaea;
  20795. padding-bottom: 10px;
  20796. }
  20797. .commentBox {
  20798. padding-top: 15px;
  20799. }
  20800. .pl {
  20801. font-size: 18px;
  20802. }
  20803. .plPerson {
  20804. width: 100%;
  20805. }
  20806. .plName {
  20807. display: flex;
  20808. flex-direction: row;
  20809. flex-wrap: nowrap;
  20810. align-items: baseline;
  20811. color: #78787a;
  20812. width: 100%;
  20813. }
  20814. .deleteComment {
  20815. cursor: pointer;
  20816. margin-left: auto;
  20817. color: #237ade;
  20818. }
  20819. .plContent {
  20820. margin-top: 5px;
  20821. }
  20822. .evalCss {
  20823. background: #fff;
  20824. font-size: 18px;
  20825. }
  20826. .nav {
  20827. color: #9d9d9d;
  20828. padding: 5px 0 15px 20px;
  20829. }
  20830. .middleBox {
  20831. padding: 5px 0 15px 20px;
  20832. }
  20833. .pfBox {
  20834. padding-bottom: 30px;
  20835. }
  20836. .nameAndrate {
  20837. display: flex;
  20838. flex-direction: row;
  20839. flex-wrap: nowrap;
  20840. align-items: center;
  20841. padding-bottom: 10px;
  20842. height: 30px;
  20843. line-height: 30px;
  20844. }
  20845. .nameAndrate > div {
  20846. margin-left: 10px;
  20847. color: #000;
  20848. height: 30px;
  20849. }
  20850. .nameAndrate >>> .el-rate__icon {
  20851. font-size: 28px !important;
  20852. }
  20853. .pfBox > div:nth-child(2) {
  20854. background: #f7f6f9;
  20855. width: 400px;
  20856. min-height: 45px;
  20857. border-radius: 10px;
  20858. font-size: 16px;
  20859. display: flex;
  20860. flex-wrap: wrap;
  20861. align-items: center;
  20862. padding: 10px 20px;
  20863. box-sizing: border-box;
  20864. color: #000;
  20865. }
  20866. .bz {
  20867. display: flex;
  20868. flex-direction: row;
  20869. flex-wrap: nowrap;
  20870. align-items: flex-start;
  20871. }
  20872. .bz > div {
  20873. padding: 0 10px;
  20874. }
  20875. .select_box2_title {
  20876. background: #fff;
  20877. border-radius: 5px;
  20878. padding: 15px 10px;
  20879. box-sizing: border-box;
  20880. margin-bottom: 10px;
  20881. display: flex;
  20882. flex-direction: row;
  20883. flex-wrap: nowrap;
  20884. align-items: center;
  20885. }
  20886. .select_box2_title > div:nth-child(2) {
  20887. margin-left: 10px;
  20888. color: #c4c4c4;
  20889. }
  20890. .select_box2_box {
  20891. display: flex;
  20892. height: 500px;
  20893. }
  20894. .select_box2_img {
  20895. width: calc(100% - 310px);
  20896. height: 100%;
  20897. overflow: auto;
  20898. background: #fff;
  20899. border-radius: 5px;
  20900. }
  20901. .select_box2_img img {
  20902. width: 100%;
  20903. }
  20904. .select_box2_answer {
  20905. background: #fff;
  20906. margin-left: 10px;
  20907. border-radius: 5px;
  20908. width: 300px;
  20909. overflow: auto;
  20910. height: 90%;
  20911. display: flex;
  20912. flex-direction: column;
  20913. align-items: flex-start;
  20914. padding-top: 10px;
  20915. box-sizing: border-box;
  20916. position: relative;
  20917. }
  20918. .select_answer_title {
  20919. padding: 0 0 15px 20px;
  20920. color: #c4c4c4;
  20921. }
  20922. .select_box2_answer_box {
  20923. margin: 0 0 10px 20px;
  20924. width: 85%;
  20925. display: flex;
  20926. flex-direction: row;
  20927. flex-wrap: nowrap;
  20928. align-items: center;
  20929. }
  20930. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20931. color: #000;
  20932. }
  20933. .upAnswerCss {
  20934. position: absolute;
  20935. bottom: 15px;
  20936. right: 15px;
  20937. }
  20938. .upAnswerCss >>> .el-button {
  20939. width: 95px;
  20940. height: 35px;
  20941. line-height: 35px;
  20942. padding: 0;
  20943. }
  20944. .rightWidthCss {
  20945. width: 60%;
  20946. display: flex;
  20947. flex-direction: row;
  20948. align-items: flex-start;
  20949. }
  20950. .rightAnswer {
  20951. display: flex;
  20952. flex-direction: row;
  20953. flex-wrap: nowrap;
  20954. align-items: center;
  20955. color: red;
  20956. margin-bottom: 31px;
  20957. }
  20958. .rightAnswerCss {
  20959. display: flex;
  20960. flex-direction: column;
  20961. flex-wrap: nowrap;
  20962. padding-top: 60px;
  20963. }
  20964. .blueCss {
  20965. color: #767de1;
  20966. margin-left: 10px;
  20967. }
  20968. .redCss {
  20969. color: red;
  20970. }
  20971. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  20972. color: rgb(0 123 255) !important;
  20973. }
  20974. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  20975. color: rgb(0 123 255) !important;
  20976. }
  20977. .zuoyeYulan {
  20978. padding-top: 0;
  20979. font-size: 18px;
  20980. display: flex;
  20981. align-items: flex-end;
  20982. }
  20983. .buttonA {
  20984. margin-left: 10px;
  20985. padding: 0;
  20986. }
  20987. .displayBox {
  20988. margin-bottom: 10px;
  20989. display: block;
  20990. border-bottom: 3px solid #eee;
  20991. display: flex;
  20992. align-items: center;
  20993. }
  20994. .easy_comment {
  20995. width: calc(100% - 90px);
  20996. margin-left: 10px;
  20997. display: flex;
  20998. flex-wrap: wrap;
  20999. }
  21000. .easy_comment > div {
  21001. border: 1px solid #4a4a4a;
  21002. color: #666;
  21003. border-radius: 15px;
  21004. padding: 5px 10px;
  21005. font-size: 16px;
  21006. margin-bottom: 10px;
  21007. margin-right: 5px;
  21008. cursor: pointer;
  21009. }
  21010. .easy_comment div:hover {
  21011. border: 1px solid #f7ba2a;
  21012. color: #c69217;
  21013. }
  21014. .xuan_right_box {
  21015. padding: 10px 0;
  21016. background: #f0f4fa;
  21017. margin: 0 15px 0 25px;
  21018. border-bottom-left-radius: 5px;
  21019. border-bottom-right-radius: 5px;
  21020. width: 91.5%;
  21021. }
  21022. .tool_right_box {
  21023. display: flex;
  21024. align-items: center;
  21025. }
  21026. .tool_right_box + .tool_right_box {
  21027. margin-top: 10px;
  21028. }
  21029. .right_box_xuan {
  21030. background: rgb(0 123 255);
  21031. color: #fff;
  21032. border-radius: 5px;
  21033. padding: 5px;
  21034. margin-left: 10px;
  21035. min-width: 95px;
  21036. }
  21037. .pButton:hover {
  21038. opacity: 1 !important;
  21039. }
  21040. .pButton {
  21041. position: fixed;
  21042. text-align: center;
  21043. cursor: pointer;
  21044. z-index: 999;
  21045. right: 20px;
  21046. top: 110px;
  21047. width: 50px;
  21048. height: 50px;
  21049. display: flex;
  21050. align-items: center;
  21051. justify-content: center;
  21052. border-radius: 5px;
  21053. }
  21054. .pzClass {
  21055. width: calc(100% - 340px);
  21056. }
  21057. .newDialogCss {
  21058. /* position: fixed;
  21059. right: 5%;
  21060. top: 50%;
  21061. width: 340px;
  21062. transform: translateY(-50%);
  21063. height: 60%;
  21064. box-shadow: 0px 0 8px 0px #555555;
  21065. border-radius: 15px;
  21066. z-index: 999; */
  21067. position: fixed;
  21068. right: 20px;
  21069. top: 101px;
  21070. width: 330px;
  21071. height: calc(100% - 80px);
  21072. z-index: 999;
  21073. background: #fff;
  21074. border-top-right-radius: 0px;
  21075. border-bottom-right-radius: 0px;
  21076. overflow: hidden;
  21077. }
  21078. .pzTop {
  21079. color: #fff;
  21080. background: #000;
  21081. display: flex;
  21082. flex-direction: row;
  21083. flex-wrap: nowrap;
  21084. align-items: center;
  21085. justify-content: space-between;
  21086. height: 40px;
  21087. border-radius: 15px 15px 0 0;
  21088. user-select: none;
  21089. }
  21090. .pzTop2 .checkbox {
  21091. display: flex;
  21092. align-items: center;
  21093. padding: 5px 30px;
  21094. flex: 0 0 auto;
  21095. font-weight: bold;
  21096. border-bottom: 1px solid #eee;
  21097. justify-content: space-between;
  21098. }
  21099. .pzTop2 .check {
  21100. text-align: center;
  21101. cursor: pointer;
  21102. box-sizing: border-box;
  21103. display: flex;
  21104. }
  21105. .pzTop2 img {
  21106. width: 25px;
  21107. cursor: pointer;
  21108. }
  21109. .pzTop > div:nth-child(1) {
  21110. padding-left: 10px;
  21111. }
  21112. .pzTop > div:nth-child(2) {
  21113. width: 15px;
  21114. height: 15px;
  21115. padding-right: 10px;
  21116. cursor: pointer;
  21117. }
  21118. .pzTop > div:nth-child(2) > img {
  21119. width: 100%;
  21120. height: 100%;
  21121. }
  21122. .pzBox,
  21123. .noPzBox {
  21124. height: calc(100% - 60px);
  21125. /* background: #ededed; */
  21126. background: #fff;
  21127. /* border-radius: 0 0 15px 15px; */
  21128. }
  21129. .noPzBox {
  21130. display: flex;
  21131. flex-direction: column;
  21132. flex-wrap: nowrap;
  21133. justify-content: center;
  21134. align-items: center;
  21135. }
  21136. .pzList {
  21137. background: #f7f7f7;
  21138. width: 90%;
  21139. margin: 0 auto 15px;
  21140. border-radius: 5px;
  21141. }
  21142. .pzNavTop {
  21143. display: flex;
  21144. flex-direction: row;
  21145. flex-wrap: nowrap;
  21146. padding: 10px 10px 0 10px;
  21147. align-items: center;
  21148. }
  21149. .pzDelete {
  21150. cursor: pointer;
  21151. margin-left: auto;
  21152. font-size: 14px;
  21153. color: #afafaf;
  21154. }
  21155. .pzNavTop > div:nth-child(1) {
  21156. background: #3760af;
  21157. width: 35px;
  21158. height: 35px;
  21159. color: #fff;
  21160. text-align: center;
  21161. line-height: 35px;
  21162. border-radius: 50%;
  21163. font-size: 14px;
  21164. }
  21165. .pzNavTop > div:nth-child(2) {
  21166. font-size: 18px;
  21167. color: #959595;
  21168. margin-left: 5px;
  21169. }
  21170. .pzContent {
  21171. padding: 10px;
  21172. word-break: break-word;
  21173. }
  21174. .pzContent audio {
  21175. width: 100%;
  21176. }
  21177. .pzContent audio::-webkit-media-controls-panel {
  21178. background: #fff;
  21179. }
  21180. .pzContent >>> img {
  21181. max-width: 100%;
  21182. }
  21183. .pzListBox {
  21184. padding-top: 15px;
  21185. height: calc(100% - 100px);
  21186. overflow: auto;
  21187. }
  21188. .addPzButton {
  21189. position: relative;
  21190. margin-top: 3px;
  21191. width: 100%;
  21192. }
  21193. .addPzButton .img1 {
  21194. position: absolute;
  21195. top: 50%;
  21196. right: 25px;
  21197. transform: translateY(-50%);
  21198. height: 100%;
  21199. display: flex;
  21200. align-items: center;
  21201. }
  21202. .addPzButton .img1 div {
  21203. display: flex;
  21204. }
  21205. .addPzButton .img1 div img {
  21206. width: 28px;
  21207. margin-left: 10px;
  21208. cursor: pointer;
  21209. }
  21210. .addPzButton .img1 div span {
  21211. font-size: 14px;
  21212. margin: 4px 0 0 3px;
  21213. color: #afafaf;
  21214. }
  21215. .addPz {
  21216. background: #4b79ce;
  21217. width: 100px;
  21218. color: #fff;
  21219. font-size: 12px;
  21220. height: 30px;
  21221. margin: 0 auto;
  21222. text-align: center;
  21223. line-height: 30px;
  21224. border-radius: 10px;
  21225. cursor: pointer;
  21226. }
  21227. .addDialogCss {
  21228. position: fixed;
  21229. width: 600px;
  21230. height: 70%;
  21231. min-height: 450px;
  21232. box-shadow: 0px 0 8px 0px #555555;
  21233. border-radius: 15px;
  21234. z-index: 999;
  21235. left: 50%;
  21236. top: 50%;
  21237. margin: -18% 0 0 -300px;
  21238. }
  21239. .teacherPz {
  21240. display: flex;
  21241. flex-direction: row;
  21242. align-items: center;
  21243. flex-wrap: nowrap;
  21244. }
  21245. .teacherPzImg {
  21246. width: 30px;
  21247. height: 30px;
  21248. }
  21249. .teacherPzImg > img {
  21250. width: 100%;
  21251. height: 100%;
  21252. }
  21253. .addPzBox {
  21254. height: calc(100% - 40px);
  21255. background: #ededed;
  21256. border-bottom-left-radius: 15px;
  21257. border-bottom-right-radius: 15px;
  21258. }
  21259. .pzAudioClass {
  21260. margin: 15px 14px;
  21261. background: #fff;
  21262. height: 100%;
  21263. display: flex;
  21264. justify-content: center;
  21265. align-items: center;
  21266. }
  21267. .pzConText {
  21268. width: 95%;
  21269. height: 100%;
  21270. margin: 10px auto 0;
  21271. border: none;
  21272. background: #fff;
  21273. border-radius: 0px;
  21274. }
  21275. .pzConText >>> .text {
  21276. height: calc(100% - 82px);
  21277. }
  21278. .addTextCss {
  21279. background: #4b79ce;
  21280. width: 80px;
  21281. height: 30px;
  21282. text-align: center;
  21283. color: #fff;
  21284. line-height: 30px;
  21285. border-radius: 10px;
  21286. margin: 10px auto 0;
  21287. cursor: pointer;
  21288. }
  21289. .pzConText:focus-visible {
  21290. border: none !important;
  21291. }
  21292. .maxWidth {
  21293. width: 1000px;
  21294. }
  21295. .noPz {
  21296. width: 150px;
  21297. margin: 0 auto 20%;
  21298. }
  21299. .noPz > img {
  21300. width: 100%;
  21301. height: 100%;
  21302. }
  21303. .pzList .time {
  21304. text-align: right;
  21305. box-sizing: border-box;
  21306. padding: 0 10px 10px 0px;
  21307. color: #949494;
  21308. font-size: 14px;
  21309. }
  21310. /* table 样式 */
  21311. .addPzCheck {
  21312. display: flex;
  21313. flex-direction: row;
  21314. flex-wrap: nowrap;
  21315. padding: 10px 15px 0;
  21316. }
  21317. .addPzCheck span {
  21318. cursor: pointer;
  21319. padding-bottom: 5px;
  21320. font-weight: bold;
  21321. }
  21322. .addPzCheck span + span {
  21323. margin-left: 10px;
  21324. }
  21325. .addPzCheck .isChooseActive {
  21326. color: #3e88f4;
  21327. border-bottom: 2px solid #2f80f3;
  21328. border-bottom: 2px solid #3e87ff;
  21329. }
  21330. /* code 样式 */
  21331. .scoreBox,
  21332. .scoreDetailBox {
  21333. display: flex;
  21334. align-items: center;
  21335. justify-content: flex-start;
  21336. margin-top: 20px;
  21337. font-size: 18px;
  21338. width: 100%;
  21339. }
  21340. .scoreBox .t,
  21341. .scoreDetailBox .t {
  21342. margin-right: 10px;
  21343. width: 100px;
  21344. text-align: right;
  21345. }
  21346. .scoreDetailBox {
  21347. align-items: flex-start;
  21348. }
  21349. .scoreDetailBox >>> .el-textarea {
  21350. width: calc(100% - 200px);
  21351. }
  21352. .scoreBox >>> .el-input {
  21353. width: 130px;
  21354. font-size: 38px;
  21355. }
  21356. .scoreBox >>> .el-input__inner {
  21357. height: 60px;
  21358. }
  21359. .answerScore {
  21360. position: absolute;
  21361. top: 10px;
  21362. right: 10px;
  21363. background: #0000008f;
  21364. border-radius: 5px;
  21365. padding: 3px 5px;
  21366. font-size: 14px;
  21367. color: #fff;
  21368. cursor: pointer;
  21369. }
  21370. .open_box .switch_box {
  21371. width: 100%;
  21372. margin: 0 auto;
  21373. display: flex;
  21374. justify-content: space-between;
  21375. }
  21376. .open_box .switch_box + .switch_box {
  21377. margin-top: 10px;
  21378. }
  21379. .deleteImg {
  21380. width: 25px !important;
  21381. height: 25px !important;
  21382. cursor: pointer;
  21383. position: absolute;
  21384. top: 10px;
  21385. right: 10px;
  21386. }
  21387. .deleteImg2 {
  21388. width: 15px !important;
  21389. height: 15px !important;
  21390. top: 5px;
  21391. right: 5px;
  21392. }
  21393. .rightW {
  21394. right: 40px;
  21395. }
  21396. .drawPBox {
  21397. display: flex;
  21398. flex-direction: column;
  21399. position: relative;
  21400. }
  21401. .drawPBox span {
  21402. font-size: 18px;
  21403. color: #606266;
  21404. padding-bottom: 10px;
  21405. margin: 10px 0;
  21406. border-bottom: 1px solid #eaeaea;
  21407. }
  21408. .drawPBox img {
  21409. width: 500px;
  21410. height: 300px;
  21411. object-fit: contain;
  21412. cursor: pointer;
  21413. margin: 0 auto;
  21414. }
  21415. .sentenBox {
  21416. background: #fff;
  21417. height: 450px;
  21418. overflow: auto;
  21419. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21420. background-position: 102%;
  21421. background-repeat: no-repeat;
  21422. background-size: 60%;
  21423. }
  21424. .addSen {
  21425. background: #409efe;
  21426. width: 90px;
  21427. color: #fff;
  21428. height: 35px;
  21429. text-align: center;
  21430. line-height: 35px;
  21431. border-radius: 5px;
  21432. float: right;
  21433. margin: 10px 20px 0 0;
  21434. cursor: pointer;
  21435. }
  21436. .sentenTop {
  21437. display: flex;
  21438. flex-direction: row;
  21439. flex-wrap: nowrap;
  21440. align-items: center;
  21441. padding: 55px 0 0 20px;
  21442. box-sizing: border-box;
  21443. }
  21444. .sentenTop > div:nth-child(2) {
  21445. width: 300px;
  21446. margin: 0 15px;
  21447. }
  21448. .sentenTop > div:nth-child(3) {
  21449. background: #409efe;
  21450. color: #fff;
  21451. width: 65px;
  21452. height: 35px;
  21453. text-align: center;
  21454. line-height: 35px;
  21455. border-radius: 5px;
  21456. cursor: pointer;
  21457. }
  21458. .cardList,
  21459. .cardList1 {
  21460. padding: 10px 0 10px 0;
  21461. display: flex;
  21462. flex-direction: row;
  21463. flex-wrap: wrap;
  21464. align-items: center;
  21465. box-sizing: border-box;
  21466. border-bottom: 1px solid #f4f4f4;
  21467. width: 98%;
  21468. margin: 0 auto;
  21469. min-width: 60%;
  21470. max-width: 85%;
  21471. }
  21472. .cardList1 {
  21473. padding: 10px 0 10px 10px !important;
  21474. margin: 0 !important;
  21475. }
  21476. .cardBox {
  21477. display: flex;
  21478. flex-direction: row;
  21479. flex-wrap: wrap;
  21480. align-items: center;
  21481. align-content: center;
  21482. }
  21483. .cardBox > div {
  21484. margin-bottom: 10px;
  21485. }
  21486. .isCard,
  21487. .isChooseCard,
  21488. .noCard,
  21489. .isCard1 {
  21490. width: 130px;
  21491. height: 60px;
  21492. text-align: center;
  21493. line-height: 60px;
  21494. font-size: 20px;
  21495. cursor: pointer;
  21496. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  21497. background-size: cover;
  21498. transition: all 2s;
  21499. margin-right: 20px;
  21500. }
  21501. .isCard > div,
  21502. .noCard > div,
  21503. .isCard1 > div {
  21504. white-space: nowrap;
  21505. overflow: hidden;
  21506. text-overflow: ellipsis;
  21507. width: 75%;
  21508. margin: 0 auto;
  21509. }
  21510. .noCard {
  21511. background-image: none;
  21512. }
  21513. .isCard1 {
  21514. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  21515. }
  21516. .isChooseCard {
  21517. background-image: none;
  21518. border: 1px dashed #b9b9b9;
  21519. border-radius: 10px;
  21520. }
  21521. .card {
  21522. width: 130px;
  21523. height: 60px;
  21524. }
  21525. .card > img {
  21526. width: 100%;
  21527. height: 100%;
  21528. }
  21529. .rightCardBox {
  21530. margin: 10px 0 0 10px;
  21531. }
  21532. .rightCardBox > div:nth-child(1) {
  21533. margin-bottom: 10px;
  21534. }
  21535. .cardCss {
  21536. display: flex;
  21537. flex-direction: column;
  21538. flex-wrap: nowrap;
  21539. align-items: center;
  21540. border-bottom: 3px solid #b4c3d3;
  21541. padding: 0 0 5px 0;
  21542. margin-right: 10px;
  21543. }
  21544. .cardCss > div:nth-child(2) {
  21545. background: #5b7b9d;
  21546. color: #fff;
  21547. width: 20px;
  21548. height: 20px;
  21549. border-radius: 50%;
  21550. text-align: center;
  21551. line-height: 20px;
  21552. }
  21553. .isWrong {
  21554. display: flex;
  21555. flex-direction: row;
  21556. flex-wrap: nowrap;
  21557. align-content: center;
  21558. align-items: center;
  21559. }
  21560. .answerRight {
  21561. width: 25%;
  21562. }
  21563. .isTj {
  21564. display: flex;
  21565. flex-direction: row;
  21566. flex-wrap: nowrap;
  21567. align-items: center;
  21568. }
  21569. .isTj > div:nth-child(2) {
  21570. color: #727070;
  21571. margin-left: 10px;
  21572. }
  21573. .isTjImg {
  21574. width: 30px;
  21575. height: 30px;
  21576. }
  21577. .isTjImg > img {
  21578. width: 100%;
  21579. height: 100%;
  21580. }
  21581. .cardAnswerBox {
  21582. font-size: 18px;
  21583. width: 97%;
  21584. border: 5px;
  21585. padding: 0;
  21586. border-radius: 5px;
  21587. margin: 10px auto;
  21588. word-break: break-word;
  21589. }
  21590. .w_name {
  21591. margin-bottom: 10px;
  21592. }
  21593. .w_name span {
  21594. font-size: 16px;
  21595. }
  21596. .w_teachert {
  21597. width: 50px !important;
  21598. position: absolute;
  21599. height: auto !important;
  21600. z-index: 10;
  21601. right: 25px;
  21602. top: -25px;
  21603. }
  21604. .group_workBox {
  21605. }
  21606. .group_workBox + .group_workBox {
  21607. margin-top: 20px;
  21608. }
  21609. .group_box {
  21610. padding-bottom: 20px;
  21611. border-bottom: 2px solid #f0f0f0;
  21612. }
  21613. .group_title {
  21614. display: flex;
  21615. align-items: center;
  21616. justify-content: space-between;
  21617. }
  21618. .group_name {
  21619. background-image: url(../../assets/icon/groupN.png);
  21620. width: 220px;
  21621. background-size: 100% 100%;
  21622. height: 67px;
  21623. padding: 0 20px 0 43px;
  21624. box-sizing: border-box;
  21625. line-height: 63px;
  21626. color: #fff;
  21627. overflow: hidden;
  21628. white-space: nowrap;
  21629. text-overflow: ellipsis;
  21630. }
  21631. .group_work {
  21632. width: 100%;
  21633. padding: 0 10px;
  21634. box-sizing: border-box;
  21635. display: flex;
  21636. flex-wrap: wrap;
  21637. }
  21638. .g_d_box {
  21639. display: flex;
  21640. flex-flow: wrap;
  21641. justify-content: space-around;
  21642. }
  21643. .g_d_box .isChair {
  21644. background-image: url(../../assets/avatar.png) !important;
  21645. }
  21646. .g_d_group {
  21647. width: 500px;
  21648. margin-bottom: 80px;
  21649. }
  21650. .g_d_group_chair {
  21651. display: flex;
  21652. align-items: center;
  21653. justify-content: center;
  21654. }
  21655. .g_d_group_chair > div + div {
  21656. margin-left: 30px;
  21657. }
  21658. .g_d_group_chair > div,
  21659. .g_d_group_chair2 > div {
  21660. display: flex;
  21661. flex-direction: column;
  21662. align-items: center;
  21663. }
  21664. .g_d_group_chair > div > span:nth-child(1),
  21665. .g_d_group_chair2 > div > span:nth-child(1) {
  21666. background-image: url(../../assets/icon/chair.png);
  21667. width: 50px;
  21668. height: 50px;
  21669. display: block;
  21670. background-size: 100% 100%;
  21671. }
  21672. .g_d_group_tableBox {
  21673. display: flex;
  21674. align-items: center;
  21675. justify-content: center;
  21676. }
  21677. .g_d_group_chair2 {
  21678. display: flex;
  21679. flex-direction: column;
  21680. align-items: center;
  21681. justify-content: center;
  21682. }
  21683. .g_d_group_chair2 > div + div {
  21684. margin-top: 10px;
  21685. }
  21686. .g_d_group_table {
  21687. background-image: url(../../assets/icon/groupBg.png);
  21688. width: 354px;
  21689. height: 196px;
  21690. background-size: 100% 100%;
  21691. display: flex;
  21692. align-items: center;
  21693. justify-content: center;
  21694. flex-direction: column;
  21695. color: #fff;
  21696. }
  21697. .g_d_group_table > div:nth-child(1) {
  21698. font-size: 24px;
  21699. margin-bottom: 5px;
  21700. }
  21701. .g_d_group_table > div:nth-child(2) div {
  21702. cursor: pointer;
  21703. background: #2e77bf;
  21704. padding: 4px 10px;
  21705. border-radius: 5px;
  21706. }
  21707. .groupBox {
  21708. }
  21709. .groupContent + .groupContent {
  21710. margin-top: 30px;
  21711. }
  21712. .groupTitle {
  21713. font-size: 24px;
  21714. color: rgb(80, 80, 80);
  21715. margin-bottom: 20px;
  21716. }
  21717. .groupName {
  21718. display: flex;
  21719. align-items: center;
  21720. }
  21721. .groupn {
  21722. font-size: 15px;
  21723. margin-right: 10px;
  21724. }
  21725. .groupName + .groupName {
  21726. margin-top: 15px;
  21727. }
  21728. .groupBtn {
  21729. margin-left: 10px;
  21730. }
  21731. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21732. text-align: left;
  21733. }
  21734. .g_d_btnBox {
  21735. display: flex;
  21736. justify-content: flex-end;
  21737. align-items: flex-end;
  21738. margin-bottom: 20px;
  21739. }
  21740. .updateChair {
  21741. position: relative;
  21742. }
  21743. .updateChairBtn {
  21744. position: absolute;
  21745. width: 50px;
  21746. height: 50px;
  21747. overflow: hidden;
  21748. /* display: flex; */
  21749. align-items: center;
  21750. justify-content: center;
  21751. background: #00000087;
  21752. color: #fff;
  21753. border-radius: 50px;
  21754. display: none;
  21755. cursor: pointer;
  21756. }
  21757. .updateChair:hover .updateChairBtn {
  21758. display: flex;
  21759. }
  21760. .group_staic_box {
  21761. display: flex;
  21762. padding: 30px 40px 10px;
  21763. flex-wrap: wrap;
  21764. }
  21765. .group_staic {
  21766. /* width: 50%; */
  21767. margin-bottom: 20px;
  21768. display: flex;
  21769. align-items: center;
  21770. }
  21771. .group_staic span:nth-child(1) {
  21772. width: 150px;
  21773. text-align: right;
  21774. margin-right: 15px;
  21775. }
  21776. .group_staic span:nth-child(2) {
  21777. background: rgb(0 123 255);
  21778. color: #fff;
  21779. border-radius: 5px;
  21780. padding: 5px;
  21781. }
  21782. .codeFileBox {
  21783. height: 300px;
  21784. background: #fff;
  21785. display: flex;
  21786. align-items: center;
  21787. justify-content: center;
  21788. }
  21789. .codeFileBox img {
  21790. width: 200px;
  21791. margin: 0;
  21792. height: auto;
  21793. }
  21794. .codeFileBox div {
  21795. background: rgb(80, 142, 226);
  21796. color: #fff;
  21797. padding: 10px 20px;
  21798. border-radius: 25px;
  21799. cursor: pointer;
  21800. margin-left: 15px;
  21801. }
  21802. .radioBox {
  21803. display: flex;
  21804. flex-direction: column;
  21805. flex-wrap: nowrap;
  21806. align-items: flex-start;
  21807. }
  21808. .radioBox > div {
  21809. margin: 10px 0 0 10px;
  21810. }
  21811. /* .radioBox >>> .el-radio__input,
  21812. .radioBox >>> .el-checkbox__inner {
  21813. margin-left: 10px;
  21814. } */
  21815. .radioBox >>> .el-radio__label,
  21816. .radioBox >>> .el-checkbox__label {
  21817. display: flex;
  21818. align-items: center;
  21819. }
  21820. .radioBox >>> .el-radio__label > span {
  21821. width: 100%;
  21822. display: -webkit-box;
  21823. overflow: hidden;
  21824. white-space: normal !important;
  21825. text-overflow: ellipsis;
  21826. word-wrap: break-word;
  21827. }
  21828. .inImg {
  21829. width: 100px;
  21830. cursor: pointer;
  21831. }
  21832. .inImg > img {
  21833. width: 100%;
  21834. height: 100%;
  21835. object-fit: cover;
  21836. }
  21837. .timuImgBox {
  21838. margin: 10px 0;
  21839. display: flex;
  21840. flex-direction: column;
  21841. flex-wrap: wrap;
  21842. align-items: flex-start;
  21843. }
  21844. .timuImg {
  21845. width: 150px;
  21846. margin: 5px 0;
  21847. cursor: pointer;
  21848. }
  21849. .timuImg > img {
  21850. width: 100%;
  21851. height: 100%;
  21852. object-fit: cover;
  21853. }
  21854. .worksTop {
  21855. display: flex;
  21856. flex-direction: row;
  21857. align-items: flex-end;
  21858. }
  21859. .corOpen {
  21860. margin: 0 0 0 10px;
  21861. font-size: 14px;
  21862. cursor: pointer;
  21863. color: #505050;
  21864. }
  21865. .corOpen:hover {
  21866. color: #499eef;
  21867. }
  21868. .navCorOpenBox {
  21869. display: flex;
  21870. flex-direction: row;
  21871. align-items: center;
  21872. justify-content: space-between;
  21873. height: 55px;
  21874. background: #ffffff;
  21875. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  21876. border-radius: 8px 8px 0px 0px;
  21877. z-index: 9;
  21878. position: relative;
  21879. }
  21880. .navCorOpen {
  21881. padding-right: 15px;
  21882. cursor: pointer;
  21883. width: 45px;
  21884. display: flex;
  21885. }
  21886. .navCorOpen > img {
  21887. width: 100%;
  21888. height: 100%;
  21889. }
  21890. .mlImg {
  21891. width: 45px !important;
  21892. min-width: 45px;
  21893. cursor: pointer;
  21894. margin-top: 5px;
  21895. transform: rotate(180deg);
  21896. }
  21897. .mlImg > img {
  21898. width: 100%;
  21899. height: 100%;
  21900. }
  21901. .navLeftCss {
  21902. width: 100% !important;
  21903. left: 0 !important;
  21904. }
  21905. .isContentCss {
  21906. width: 100% !important;
  21907. }
  21908. .isAllWidth {
  21909. width: 100% !important;
  21910. }
  21911. .toolBoxSteps {
  21912. position: absolute;
  21913. top: 50%;
  21914. transform: translateY(-50%);
  21915. cursor: pointer;
  21916. width: 60px;
  21917. display: flex;
  21918. align-items: center;
  21919. justify-content: center;
  21920. }
  21921. .toolBoxSteps:nth-child(1) > img,
  21922. .toolBoxSteps:nth-child(2) > img {
  21923. width: 24px;
  21924. }
  21925. .toolBoxSteps:nth-child(1) {
  21926. left: 0;
  21927. }
  21928. .toolBoxSteps:nth-child(2) {
  21929. right: 0;
  21930. }
  21931. .isChooseActive {
  21932. color: #3681fc !important;
  21933. font-weight: bold !important;
  21934. }
  21935. .tool_box {
  21936. width: 100%;
  21937. padding: 0 0 0 20px;
  21938. }
  21939. .tool_type_box {
  21940. display: flex;
  21941. flex-direction: row;
  21942. align-items: baseline;
  21943. flex-wrap: nowrap;
  21944. justify-content: flex-start;
  21945. position: relative;
  21946. }
  21947. .toolSort {
  21948. display: flex;
  21949. flex-direction: row;
  21950. flex-wrap: wrap;
  21951. justify-content: flex-start;
  21952. align-items: flex-start;
  21953. padding: 0 0 15px 0;
  21954. }
  21955. .toolSort > div {
  21956. margin: 0 10px 0 0;
  21957. width: 135px;
  21958. box-sizing: border-box;
  21959. border: 2px solid transparent;
  21960. }
  21961. .tools {
  21962. width: 100%;
  21963. display: flex;
  21964. flex-direction: column;
  21965. flex-wrap: nowrap;
  21966. align-items: flex-start;
  21967. }
  21968. .whiteBIcon {
  21969. width: fit-content;
  21970. cursor: pointer;
  21971. display: flex;
  21972. flex-direction: column;
  21973. flex-wrap: nowrap;
  21974. align-items: center;
  21975. font-size: 14px;
  21976. }
  21977. .tool:hover{
  21978. border: 2px solid #a5c7ff;
  21979. border-radius: 5px;
  21980. }
  21981. .whiteBIcon > img {
  21982. width: 65px;
  21983. height: 100%;
  21984. }
  21985. .whiteBIcon > img {
  21986. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  21987. border-radius: 15px;
  21988. }
  21989. .dia_tool_box {
  21990. display: flex;
  21991. flex-wrap: wrap;
  21992. width: 100%;
  21993. }
  21994. .dia_tool_box > div {
  21995. margin-right: 40px;
  21996. }
  21997. .check {
  21998. /* width: 20px;
  21999. height: 20px; */
  22000. cursor: pointer;
  22001. margin: 10px 0;
  22002. position: absolute;
  22003. right: 2px;
  22004. top: -5px;
  22005. }
  22006. .noChoose,.isChoose{
  22007. width: 15px;
  22008. height: 15px;
  22009. border-radius: 50%;
  22010. border: 1px solid #dfe2e7;
  22011. }
  22012. .isChoose{
  22013. border: 4px solid #0363ff !important;
  22014. width: 10px;
  22015. height: 10px
  22016. }
  22017. .isToolChoose{
  22018. border: 2px solid #5394ff !important;
  22019. border-radius: 5px;
  22020. box-shadow: 0 0 6px 0px #5394ff;
  22021. }
  22022. .checkDiv {
  22023. display: flex;
  22024. align-items: center;
  22025. }
  22026. .checkDiv span {
  22027. margin-left: 5px;
  22028. color: #858585;
  22029. }
  22030. .check img {
  22031. width: 20px;
  22032. height: 20px;
  22033. }
  22034. /* code 样式 */
  22035. .cont {
  22036. /* -webkit-user-modify: read-write; */
  22037. overflow-wrap: break-word;
  22038. -webkit-line-break: after-white-space;
  22039. }
  22040. /* table 样式 */
  22041. .cont >>> table {
  22042. border-top: 1px solid #ccc;
  22043. border-left: 1px solid #ccc;
  22044. }
  22045. .cont >>> table td,
  22046. .cont >>> table th {
  22047. border-bottom: 1px solid #ccc;
  22048. border-right: 1px solid #ccc;
  22049. /* padding: 20px 5px; */
  22050. padding: 5px 10px;
  22051. max-width: 0px;
  22052. height: 30px;
  22053. vertical-align: baseline;
  22054. box-sizing: border-box;
  22055. }
  22056. .cont >>> table th {
  22057. border-bottom: 2px solid #ccc;
  22058. text-align: center;
  22059. }
  22060. /* blockquote 样式 */
  22061. .cont >>> blockquote {
  22062. display: block;
  22063. border-left: 8px solid #d0e5f2;
  22064. padding: 5px 10px;
  22065. margin: 10px 0;
  22066. line-height: 1.4;
  22067. font-size: 100%;
  22068. background-color: #f1f1f1;
  22069. }
  22070. /* code 样式 */
  22071. .cont >>> code {
  22072. display: inline-block;
  22073. /* *display: inline; */
  22074. zoom: 1;
  22075. background-color: #f1f1f1;
  22076. border-radius: 3px;
  22077. padding: 3px 5px;
  22078. margin: 0 3px;
  22079. }
  22080. .cont >>> pre code {
  22081. display: block;
  22082. }
  22083. /* ul ol 样式 */
  22084. .cont >>> ul,
  22085. ol {
  22086. margin: 10px 0 10px 20px;
  22087. }
  22088. .fileC_box > .fileC_title {
  22089. padding: 10px 5px;
  22090. border-top: 1px solid #cdcdcd;
  22091. font-size: 14px;
  22092. color: #868686;
  22093. width: 88%;
  22094. margin: 0 auto;
  22095. }
  22096. .pl_select_box {
  22097. height: 40px;
  22098. line-height: 40px;
  22099. width: 100%;
  22100. cursor: pointer;
  22101. padding: 0 20px;
  22102. box-sizing: border-box;
  22103. border-radius: 5px;
  22104. border: 1px solid #d6d6d6;
  22105. white-space: nowrap;
  22106. overflow: hidden;
  22107. text-overflow: ellipsis;
  22108. background: #fff;
  22109. text-align: left;
  22110. }
  22111. .stageBoxCss {
  22112. display: flex;
  22113. flex-direction: row;
  22114. flex-wrap: nowrap;
  22115. align-items: center;
  22116. height: 50px;
  22117. border-bottom: 1px solid #e2f5fc;
  22118. cursor: pointer;
  22119. }
  22120. .stageChild,
  22121. .toolChild {
  22122. height: 0;
  22123. overflow: hidden;
  22124. transition: all 0.5s;
  22125. }
  22126. .toolChild {
  22127. margin: 0 0 0 17px;
  22128. padding: 0 0 0 20px;
  22129. border-left: 1px solid #d7d7d7;
  22130. }
  22131. .gjCss {
  22132. display: flex;
  22133. flex-direction: row;
  22134. flex-wrap: nowrap;
  22135. align-items: center;
  22136. padding: 15px 0;
  22137. box-sizing: border-box;
  22138. font-size: 14px;
  22139. cursor: pointer;
  22140. }
  22141. .toolChild > div {
  22142. position: relative;
  22143. }
  22144. .toolChild > div::before {
  22145. content: "";
  22146. width: 15px;
  22147. height: 1px;
  22148. background: #cad1dc;
  22149. position: absolute;
  22150. top: 24px;
  22151. left: -20px;
  22152. display: block;
  22153. }
  22154. .isGjCss {
  22155. color: #0061ff;
  22156. }
  22157. .navItem {
  22158. background: #ffffff;
  22159. border-radius: 4px;
  22160. width: 100%;
  22161. margin: 10px auto 0;
  22162. position: relative;
  22163. height: 48px;
  22164. display: flex;
  22165. flex-direction: row;
  22166. flex-wrap: nowrap;
  22167. align-items: center;
  22168. }
  22169. .navItemList {
  22170. display: flex;
  22171. flex-direction: row;
  22172. flex-wrap: nowrap;
  22173. align-items: center;
  22174. padding: 18px 13px;
  22175. cursor: pointer;
  22176. font-size: 16px;
  22177. font-weight: 400;
  22178. color: #0e1e33;
  22179. justify-content: flex-start;
  22180. width: 100%;
  22181. border-radius: 8px;
  22182. }
  22183. .navItemList > div {
  22184. font-size: 16px;
  22185. font-weight: 400;
  22186. }
  22187. .navItemList > div:first-child {
  22188. min-width: 60px;
  22189. }
  22190. .navItemList > div:last-child {
  22191. display: -webkit-box;
  22192. overflow: hidden;
  22193. white-space: normal !important;
  22194. text-overflow: ellipsis;
  22195. word-wrap: break-word;
  22196. -webkit-line-clamp: 2;
  22197. -webkit-box-orient: vertical;
  22198. }
  22199. /* .isItemList {
  22200. background: #3681fc;
  22201. }
  22202. .isItemList > div {
  22203. color: #fff;
  22204. } */
  22205. .isItemList {
  22206. color: #0061ff !important;
  22207. }
  22208. .navListItem {
  22209. width: 280px;
  22210. height: 50px;
  22211. margin: 0px auto 10px;
  22212. display: flex;
  22213. flex-direction: row;
  22214. flex-wrap: nowrap;
  22215. align-items: center;
  22216. justify-content: space-between;
  22217. background: #f0f4fa;
  22218. border-radius: 6px 6px 6px 6px;
  22219. }
  22220. .downIcon {
  22221. width: 20px;
  22222. min-width: 20px;
  22223. height: 20px;
  22224. margin-right: 15px;
  22225. cursor: pointer;
  22226. }
  22227. .downIcon > img {
  22228. width: 100%;
  22229. height: 100%;
  22230. }
  22231. .newButton {
  22232. width: 102px;
  22233. height: 36px;
  22234. background: #e7ebf1;
  22235. border-radius: 4px;
  22236. color: #0e1e33;
  22237. font-weight: 400;
  22238. font-size: 14px;
  22239. border: none;
  22240. float: right;
  22241. margin-left: 10px;
  22242. }
  22243. .pick_box {
  22244. display: flex;
  22245. align-items: flex-start;
  22246. flex-wrap: wrap;
  22247. }
  22248. .selectBox {
  22249. width: 110px;
  22250. margin-left: 10px;
  22251. margin: 0 10px 0 auto;
  22252. }
  22253. .selectBox >>> .el-input__inner {
  22254. height: 30px;
  22255. line-height: 30px;
  22256. }
  22257. .selectBox >>> .el-input__icon {
  22258. line-height: 30px;
  22259. }
  22260. .sentenceTitle {
  22261. display: flex;
  22262. flex-direction: row;
  22263. flex-wrap: nowrap;
  22264. align-items: center;
  22265. }
  22266. .sentenceTitle::before {
  22267. content: attr(index);
  22268. background: #3681fc;
  22269. border-radius: 50%;
  22270. color: #fff;
  22271. width: 25px;
  22272. height: 25px;
  22273. min-width: 25px;
  22274. min-height: 25px;
  22275. text-align: center;
  22276. line-height: 25px;
  22277. margin-right: 5px;
  22278. }
  22279. .closeTri1 {
  22280. min-width: 15px;
  22281. width: 15px;
  22282. height: 15px;
  22283. }
  22284. .closeTri1 {
  22285. padding-left: 10px;
  22286. cursor: pointer;
  22287. }
  22288. .closeTri1 > img {
  22289. width: 100%;
  22290. height: 100%;
  22291. }
  22292. .noToolBlue {
  22293. min-width: 10px;
  22294. width: 10px;
  22295. height: 10px;
  22296. background: #0061ff;
  22297. border-radius: 50%;
  22298. margin-left: 13px;
  22299. }
  22300. .timeAndReply {
  22301. display: flex;
  22302. flex-direction: row;
  22303. flex-wrap: nowrap;
  22304. justify-content: space-between;
  22305. align-items: center;
  22306. font-size: 14px;
  22307. box-sizing: border-box;
  22308. padding: 0 10px 10px 0px;
  22309. }
  22310. .timeAndReply .time {
  22311. color: #bfbfbf;
  22312. padding: 0 0 0 10px;
  22313. box-sizing: border-box;
  22314. }
  22315. .timeAndReply > div:last-child {
  22316. cursor: pointer;
  22317. color: #777;
  22318. }
  22319. .hfBox {
  22320. padding: 10px;
  22321. box-sizing: border-box;
  22322. }
  22323. .whoReplyWho {
  22324. display: flex;
  22325. flex-direction: row;
  22326. flex-wrap: nowrap;
  22327. align-items: baseline;
  22328. justify-content: flex-start;
  22329. }
  22330. .hfBottom {
  22331. display: flex;
  22332. flex-direction: row;
  22333. flex-wrap: nowrap;
  22334. align-items: center;
  22335. justify-content: space-between;
  22336. font-size: 14px;
  22337. }
  22338. .deleteHfItem {
  22339. cursor: pointer;
  22340. width: 20px;
  22341. height: 20px;
  22342. }
  22343. .deleteHfItem > img {
  22344. width: 100%;
  22345. height: 100%;
  22346. }
  22347. .whoReplyWho > .hfImg {
  22348. width: 12px;
  22349. height: 12px;
  22350. margin: 0 5px;
  22351. }
  22352. .whoReplyWho > .hfImg > img {
  22353. width: 100%;
  22354. height: 100%;
  22355. }
  22356. .hfContent {
  22357. padding-top: 10px;
  22358. box-sizing: border-box;
  22359. display: -webkit-box;
  22360. overflow: hidden;
  22361. white-space: normal !important;
  22362. text-overflow: ellipsis;
  22363. word-wrap: break-word;
  22364. -webkit-box-orient: vertical;
  22365. }
  22366. .hfTime {
  22367. text-align: left;
  22368. box-sizing: border-box;
  22369. padding: 10px 0 10px 0px;
  22370. color: #bfbfbf;
  22371. font-size: 14px;
  22372. }
  22373. .toolMask{
  22374. position: fixed;
  22375. width: 100%;
  22376. height: 100%;
  22377. background: #3f3c3c;
  22378. opacity: 0.5;
  22379. top: 0;
  22380. left: 0;
  22381. z-index: 999;
  22382. }
  22383. .addToolCss {
  22384. position: fixed;
  22385. z-index: 999;
  22386. background: #fff;
  22387. right: 15%;
  22388. bottom: 20%;
  22389. min-width: 600px;
  22390. min-height: 300px;
  22391. border-radius: 10px;
  22392. box-shadow: 0 0 8px 1px #b2b2b2;
  22393. }
  22394. .toolTop {
  22395. display: flex;
  22396. flex-direction: row;
  22397. flex-wrap: nowrap;
  22398. justify-content: space-between;
  22399. align-items: center;
  22400. padding: 20px;
  22401. }
  22402. .toolTop > div:nth-child(2) {
  22403. width: 15px;
  22404. height: 15px;
  22405. padding-right: 10px;
  22406. cursor: pointer;
  22407. }
  22408. .toolTop > div:nth-child(2) > img {
  22409. width: 100%;
  22410. height: 100%;
  22411. }
  22412. </style>