studyStudent.vue 1008 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <!-- <div class="btnAllNT">
  14. <img
  15. v-if="
  16. courseDetail.userid == userid ||
  17. (courseDetail.course_teacher &&
  18. courseDetail.course_teacher.indexOf(userid) != -1)
  19. "
  20. src="../../assets/icon/learn/addTool.png"
  21. @click="openToolAll"
  22. style="position: relative"
  23. />
  24. <img
  25. src="../../assets/icon/learn/last.png"
  26. @click="nextOrpreSteps(0)"
  27. />
  28. <img
  29. src="../../assets/icon/learn/next.png"
  30. @click="nextOrpreSteps(1)"
  31. />
  32. <img
  33. src="../../assets/icon/learn/return.png"
  34. @click.stop="
  35. goTo(
  36. '/courseDetail?userid=' +
  37. userid +
  38. '&oid=' +
  39. oid +
  40. '&org=' +
  41. org +
  42. '&cid=' +
  43. classId +
  44. '&courseId=' +
  45. id +
  46. '&tType=' +
  47. tType +
  48. '&screenType=' +
  49. screenType
  50. )
  51. "
  52. />
  53. </div> -->
  54. <div
  55. class="pButton"
  56. style="left: 0; top: 140px"
  57. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  58. @click="setContent2(true)"
  59. >
  60. <!-- 批 , getCourseDetail()-->
  61. <img
  62. src="../../assets/icon/newIcons/isRight.png"
  63. style="width: 45px"
  64. alt=""
  65. />
  66. </div>
  67. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  68. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  69. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  70. <div
  71. class="courseTitle"
  72. :style="{ margin: tcid && inviteCode && '10px auto 0px' }"
  73. >
  74. <div
  75. style="
  76. max-width: calc(100% - 40px);
  77. width: auto;
  78. white-space: nowrap;
  79. overflow: hidden;
  80. text-overflow: ellipsis;
  81. word-break: break-word;
  82. display: block;
  83. "
  84. >
  85. <el-tooltip
  86. effect="light"
  87. :content="courseDetail.title"
  88. placement="top"
  89. >
  90. <div class="ctitle">
  91. {{ courseDetail.title }}
  92. </div>
  93. </el-tooltip>
  94. </div>
  95. <el-tooltip effect="light" content="收缩" placement="top">
  96. <div class="mlImg" @click="setContent2(false)">
  97. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  98. </div>
  99. </el-tooltip>
  100. </div>
  101. <div
  102. class="inviteBox"
  103. v-if="tcid && inviteCode"
  104. style="padding: 0 0 8px 0"
  105. >
  106. <div>
  107. <span>随机码:{{ inviteCode }}</span>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="cru_selectBox">
  112. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  113. <div class="stageChild" :class="{ navActive: item.isOpen }">
  114. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  115. <div
  116. class="navItem"
  117. :class="{
  118. openTaskActive:
  119. navIndex == taskCount &&
  120. nav.id == navId &&
  121. stageIndex == courseType
  122. }"
  123. >
  124. <div v-if="nav.tool[0].tool != undefined">
  125. <div
  126. class="closeTri1"
  127. v-if="
  128. navIndex == taskCount &&
  129. nav.id == navId &&
  130. stageIndex == courseType
  131. "
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img
  135. :style="{
  136. transform: nav.isOpen
  137. ? 'rotate(0deg)'
  138. : 'rotate(270deg)'
  139. }"
  140. src="../../assets/icon/newIcons/bDown2.png"
  141. alt
  142. />
  143. </div>
  144. <div
  145. class="closeTri1"
  146. v-else
  147. @click="openTask(stageIndex, navIndex, nav.id)"
  148. >
  149. <img
  150. :style="{
  151. transform: nav.isOpen
  152. ? 'rotate(90deg)'
  153. : 'rotate(0deg)'
  154. }"
  155. src="../../assets/icon/newIcons/right.png"
  156. alt
  157. />
  158. </div>
  159. </div>
  160. <div v-else class="noToolBlue"></div>
  161. <div
  162. @click="openTask(stageIndex, navIndex, nav.id)"
  163. class="navItemList"
  164. :class="{
  165. isItemList:
  166. navIndex == taskCount &&
  167. nav.id == navId &&
  168. stageIndex == courseType
  169. }"
  170. >
  171. <div>任务{{ navIndex + 1 }}:</div>
  172. <el-tooltip
  173. effect="light"
  174. :content="nav.taskName"
  175. placement="top"
  176. >
  177. <div
  178. :style="{
  179. width:
  180. IsLookOpen && !nav.isLook
  181. ? 'calc(100% - 75px)'
  182. : 'auto'
  183. }"
  184. >
  185. {{ nav.taskName }}
  186. </div>
  187. </el-tooltip>
  188. </div>
  189. </div>
  190. <div
  191. v-if="nav.tool[0].tool != undefined"
  192. class="toolChild"
  193. :class="{ toolActive: nav.isOpen }"
  194. >
  195. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  196. <div
  197. class="gjCss"
  198. :class="{
  199. isGjCss: t.isTool
  200. }"
  201. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  202. >
  203. <div>工具{{ toolIndex2 + 1 }}:</div>
  204. <div v-if="t.tool == 58">模拟驾驶</div>
  205. <div v-if="t.tool == 59">路径搜索</div>
  206. <div v-if="t.tool == 60">深度学习</div>
  207. <div v-if="t.tool == 10">倒计时</div>
  208. <div v-if="t.tool == 65">挑人</div>
  209. <div v-if="t.tool == 7">思维网格</div>
  210. <div v-if="t.tool == 1">电子白板</div>
  211. <div v-if="t.tool == 52">文档</div>
  212. <div v-if="t.tool == 3">思维导图</div>
  213. <div v-if="t.tool == 48">表格</div>
  214. <div v-if="t.tool == 49">学生分组</div>
  215. <div v-if="t.tool == 4">问卷调查</div>
  216. <div v-if="t.tool == 45">选择题</div>
  217. <div v-if="t.tool == 15">问答</div>
  218. <div v-if="t.tool == 16">作业提交</div>
  219. <div v-if="t.tool == 50">批量上传</div>
  220. <div v-if="t.tool == 41">选择匹配</div>
  221. <div v-if="t.tool == 47">排序</div>
  222. <div v-if="t.tool == 40">个人评价</div>
  223. <div v-if="t.tool == 18">训练平台</div>
  224. <div v-if="t.tool == 21">AIoT Blockly</div>
  225. <div v-if="t.tool == 23">AI Python</div>
  226. <div v-if="t.tool == 24">AI Blockly</div>
  227. <div v-if="t.tool == 32">源码编辑</div>
  228. <div v-if="t.tool == 57">CocoPi</div>
  229. <div v-if="t.tool == 63">海龟编程</div>
  230. <div v-if="t.tool == 28">翻译</div>
  231. <div v-if="t.tool == 31">数字画板</div>
  232. <div v-if="t.tool == 39">GeoGebra</div>
  233. <div v-if="t.tool == 66">公式编辑</div>
  234. <div v-if="t.tool == 67">分子结构</div>
  235. <div v-if="t.tool == 68">时间轴</div>
  236. <div v-if="t.tool == 69">英语写作</div>
  237. <div v-if="t.tool == 70">英语口语</div>
  238. <div v-if="t.tool == 25">目标管理</div>
  239. <div v-if="t.tool == 26">课程设计</div>
  240. <div v-if="t.tool == 62">交互视频</div>
  241. <div v-if="t.tool == 71">AI智能体</div>
  242. </div>
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. <div
  251. class="body_student"
  252. :style="{
  253. width: mlDialog
  254. ? 'calc(100% - ' +
  255. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  256. ' - 20% - 40px)'
  257. : 'calc(100% - ' +
  258. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  259. ' - 10px)',
  260. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  261. }"
  262. >
  263. <div
  264. class="new_topFixed"
  265. :style="{
  266. width: mlDialog
  267. ? 'calc(100% - ' +
  268. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  269. ' - 20% - 40px)'
  270. : 'calc(100% - ' +
  271. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  272. ' - 10px)',
  273. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  274. }"
  275. ></div>
  276. <div
  277. class="new_top"
  278. :style="{
  279. width: mlDialog
  280. ? 'calc(100% - ' +
  281. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  282. ' - 20% - 40px)'
  283. : 'calc(100% - ' +
  284. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  285. ' - 10px)',
  286. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  287. }"
  288. >
  289. <div
  290. class="courseIndex"
  291. :style="{
  292. width:
  293. (orgArray.includes(org) || oidArray.includes(oid)) &&
  294. !['2'].includes(tType)
  295. ? '100%'
  296. : 'calc(100% - 745px)'
  297. }"
  298. >
  299. <div>任务{{ taskCount + 1 }}</div>
  300. <el-tooltip
  301. effect="light"
  302. :content="
  303. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  304. "
  305. placement="top"
  306. >
  307. <div>
  308. {{
  309. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  310. .task
  311. }}
  312. </div>
  313. </el-tooltip>
  314. </div>
  315. <div
  316. class="btnAll"
  317. v-show="
  318. (!orgArray.includes(org) && !oidArray.includes(oid)) ||
  319. ['2'].includes(tType)
  320. "
  321. >
  322. <div class="btnLeft">
  323. <el-tooltip effect="light" content="刷新" placement="top">
  324. <div class="reBtnIcon" @click="refreshCourse">
  325. <span>刷新</span>
  326. </div>
  327. </el-tooltip>
  328. <el-tooltip effect="light" content="评论" placement="top">
  329. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  330. <span>评论</span>
  331. </div>
  332. </el-tooltip>
  333. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  334. <el-tooltip effect="light" content="录制" placement="top">
  335. <div class="vedioIcon" @click="startRecording">
  336. <span>录制</span>
  337. </div>
  338. </el-tooltip>
  339. </div>
  340. <div v-else-if="tType == 1 || tType == 4">
  341. <el-tooltip effect="light" content="下载" placement="top">
  342. <div class="vedioIcon1" @click="stopRecording">
  343. <span>下载</span>
  344. </div>
  345. </el-tooltip>
  346. </div>
  347. </div>
  348. <div class="btnRight">
  349. <div
  350. class="last"
  351. @click="nextOrpreSteps(0)"
  352. v-if="!(IsFollow && tType == 2)"
  353. @mouseover="isHovered = true"
  354. @mouseout="isHovered = false"
  355. >
  356. <div class="lastImg">
  357. <img
  358. :src="
  359. isHovered
  360. ? require('../../assets/icon/newIcons/whiteLast.png')
  361. : require('../../assets/icon/newIcons/last.png')
  362. "
  363. alt=""
  364. />
  365. </div>
  366. <div class="lastText">上一步</div>
  367. </div>
  368. <div
  369. class="last"
  370. @click="nextOrpreSteps(1)"
  371. v-if="!(IsFollow && tType == 2)"
  372. @mouseover="isHovered1 = true"
  373. @mouseout="isHovered1 = false"
  374. >
  375. <div class="lastText">下一步</div>
  376. <div class="lastImg">
  377. <img
  378. :src="
  379. isHovered1
  380. ? require('../../assets/icon/newIcons/whiteNext.png')
  381. : require('../../assets/icon/newIcons/next.png')
  382. "
  383. alt=""
  384. />
  385. </div>
  386. </div>
  387. <div
  388. class="last"
  389. @click="juriVisible = true"
  390. v-if="tType == 1"
  391. @mouseover="isHovered2 = true"
  392. @mouseout="isHovered2 = false"
  393. >
  394. <div class="lastImg">
  395. <img
  396. :src="
  397. isHovered2
  398. ? require('../../assets/icon/newIcons/whiteLock.png')
  399. : require('../../assets/icon/newIcons/lock.png')
  400. "
  401. alt=""
  402. />
  403. </div>
  404. <div class="lastText">权限</div>
  405. </div>
  406. <div
  407. class="returnBtn1 returnIcon"
  408. @click.stop="
  409. goTo(
  410. '/courseDetail?userid=' +
  411. userid +
  412. '&oid=' +
  413. oid +
  414. '&org=' +
  415. org +
  416. '&cid=' +
  417. classId +
  418. '&courseId=' +
  419. id +
  420. '&tType=' +
  421. tType +
  422. '&screenType=' +
  423. screenType
  424. )
  425. "
  426. >
  427. <div class="lastImg">
  428. <img src="../../assets/icon/newIcon/return.png" alt="" />
  429. </div>
  430. <div class="lastText" style="color: #000">返回</div>
  431. </div>
  432. </div>
  433. <!-- <div
  434. class="returnBtn lockIcon"
  435. @click="juriVisible = true"
  436. v-if="tType == 1"
  437. >
  438. 权限
  439. </div>
  440. <div
  441. class="returnBtn vedioIcon"
  442. @click="startRecording"
  443. v-if="!videoStart && (tType == 1 || tType == 4)"
  444. >
  445. 录制
  446. </div>
  447. <div
  448. class="returnBtn"
  449. @click="stopRecording"
  450. v-else-if="tType == 1 || tType == 4"
  451. style="background: #ee5255"
  452. >
  453. 下载
  454. </div>
  455. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  456. 评论
  457. </div>
  458. <div
  459. class="returnBtn"
  460. @click="nextOrpreSteps(0)"
  461. v-if="!(IsFollow && tType == 2)"
  462. >
  463. 上一步
  464. </div>
  465. <div
  466. class="returnBtn"
  467. @click="nextOrpreSteps(1)"
  468. v-if="!(IsFollow && tType == 2)"
  469. >
  470. 下一步
  471. </div>
  472. <div class="returnBtn" @click="refreshCourse">刷新</div>
  473. <div
  474. class="returnBtn returnIcon"
  475. @click.stop="
  476. goTo(
  477. '/courseDetail?userid=' +
  478. userid +
  479. '&oid=' +
  480. oid +
  481. '&org=' +
  482. org +
  483. '&cid=' +
  484. classId +
  485. '&courseId=' +
  486. id +
  487. '&tType=' +
  488. tType +
  489. '&screenType=' +
  490. screenType
  491. )
  492. "
  493. >
  494. 返回
  495. </div> -->
  496. </div>
  497. </div>
  498. <div
  499. class="isNoMessage"
  500. v-if="
  501. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  502. .chapterData.length == 0 &&
  503. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  504. .toolChoose[0].tool.length == 0 &&
  505. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  506. .taskDetail == '' &&
  507. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  508. .eList &&
  509. !(
  510. courseDetail.userid == userid ||
  511. (courseDetail.course_teacher &&
  512. courseDetail.course_teacher.indexOf(userid) != -1)
  513. )
  514. "
  515. >
  516. <img src="../../assets/icon/isNoMessage.png" alt />
  517. </div>
  518. <div class="study_top" :class="{ pzClass: pzDialog }">
  519. <div
  520. class="vedioBox"
  521. v-if="
  522. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  523. .taskDetail != '' ||
  524. vChapterData[taskCount].length > 0 ||
  525. fileC[taskCount].length > 0
  526. "
  527. style="border-radius: 0 0 20px 20px"
  528. >
  529. <div
  530. class="taskBox"
  531. v-if="
  532. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  533. .taskDetail != ''
  534. "
  535. >
  536. <div
  537. style="
  538. display: flex;
  539. flex-wrap: nowrap;
  540. flex-direction: column;
  541. position: relative;
  542. "
  543. >
  544. <div
  545. style="
  546. padding: 15px 0;
  547. line-height: 29px;
  548. font-size: 18px;
  549. color: #0e1e33;
  550. "
  551. class="cont"
  552. v-if="
  553. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  554. .taskDetail != ''
  555. "
  556. v-html="
  557. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  558. .taskDetail
  559. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  560. taskCount
  561. ].taskDetail
  562. : '暂无描述'
  563. "
  564. ></div>
  565. </div>
  566. </div>
  567. <div
  568. class="student_head"
  569. v-if="
  570. vChapterData[taskCount].length > 0 ||
  571. fileC[taskCount].length > 0
  572. "
  573. >
  574. <div
  575. class="vedioTaskBox"
  576. v-loading="downLoading || showType == 7"
  577. >
  578. <div
  579. :class="
  580. contentDialog == false
  581. ? 'box_course isContentCss'
  582. : 'box_course'
  583. "
  584. v-if="
  585. vChapterData.length > 0 &&
  586. vChapterData[taskCount] &&
  587. showType !== ''
  588. "
  589. >
  590. <div class="wheel" style="height: auto" v-if="showType === 0">
  591. <div
  592. class="workd_media"
  593. style="height: 650px; width: calc(100% - 50px)"
  594. >
  595. <video-player
  596. class="video-player vjs-custom-skin"
  597. :class="contentDialog == false ? 'isAllWidth' : ''"
  598. :playsinline="true"
  599. :options="playerO[taskCount]"
  600. @play="onPlayerPlay($event)"
  601. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  602. ></video-player>
  603. </div>
  604. </div>
  605. <div
  606. class="wheel"
  607. v-if="showType == 1"
  608. style="
  609. box-shadow: 0 0 6px 1px #f2f2f2;
  610. width: 95%;
  611. margin: 0 auto;
  612. background: #f1f1f1;
  613. "
  614. >
  615. <div class="title">查看文档</div>
  616. <el-form class="textBox">
  617. <el-form-item class="textTitle">
  618. <div style="font-size: 22px">
  619. {{ text.name }}
  620. </div>
  621. </el-form-item>
  622. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  623. <div v-html="text.url" class="textContent cont"></div>
  624. </el-form>
  625. </div>
  626. <div
  627. class="wheel"
  628. v-if="
  629. pptImgUrl1.indexOf(
  630. 'https://view.officeapps.live.com/op/view.aspx?src='
  631. ) != -1 && showType == 2
  632. "
  633. style="width: 95%; margin: 0 auto"
  634. >
  635. <iframe
  636. style="width: 100%; height: 100%; border: none"
  637. :src="pptImgUrl1"
  638. ></iframe>
  639. </div>
  640. <div
  641. class="wheel"
  642. v-else-if="showType == 2"
  643. style="width: 95%; margin: 0 auto"
  644. >
  645. <iframe
  646. style="width: 100%; height: 100%; border: none"
  647. security="restricted"
  648. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  649. :src="pptImgUrl1"
  650. ></iframe>
  651. </div>
  652. <div
  653. class="wheel"
  654. v-if="showType == 3"
  655. style="width: 95%; margin: 0 auto"
  656. >
  657. <pdf
  658. :pdfUrl="pptImgUrl1"
  659. style="width: 100%; height: 100%; overflow: auto"
  660. ></pdf>
  661. </div>
  662. <div
  663. class="wheel"
  664. v-if="showType == 4"
  665. style="width: 95%; margin: 0 auto"
  666. >
  667. <el-image
  668. :src="pptImgUrl1"
  669. fit="contain"
  670. style="width: 100%; height: 100%; cursor: pointer"
  671. @click="previewImg(pptImgUrl1)"
  672. ></el-image>
  673. </div>
  674. </div>
  675. <div
  676. class="pButton"
  677. style="position: absolute; right: 20px; top: 0; z-index: 998"
  678. v-if="!contentDialog"
  679. @click="setContent(true)"
  680. >
  681. <!-- 批 -->
  682. <img
  683. src="../../assets/icon/newIcons/isLeft.png"
  684. style="width: 45px"
  685. alt=""
  686. />
  687. </div>
  688. <div
  689. v-if="contentDialog == true"
  690. :style="{
  691. width:
  692. (vChapterData[taskCount].length > 0 ||
  693. fileC[taskCount].length > 0) &&
  694. showType === ''
  695. ? 'calc(100%)'
  696. : '300px',
  697. margin:
  698. (vChapterData[taskCount].length > 0 ||
  699. fileC[taskCount].length > 0) &&
  700. showType === ''
  701. ? '0 15px'
  702. : '0 15px 0 0'
  703. }"
  704. >
  705. <div
  706. class="vedioList"
  707. v-if="
  708. vChapterData[taskCount].length > 0 ||
  709. fileC[taskCount].length > 0
  710. "
  711. style="height: 650px"
  712. >
  713. <div class="navCorOpenBox">
  714. <div class="navTitile">内容列表:</div>
  715. <div class="navCorOpen" @click="setContent(false)">
  716. <img
  717. src="../../assets/icon/newIcons/isRight.png"
  718. alt=""
  719. />
  720. </div>
  721. </div>
  722. <div class="navBox">
  723. <div
  724. v-show="
  725. vChapterData[taskCount].length > 0 ||
  726. fileC[taskCount].length > 0
  727. "
  728. style="padding: 10px 0 25px 0"
  729. >
  730. <div
  731. class="vedioTimeBox"
  732. v-for="(vitem, vindex) in vChapterData[taskCount]"
  733. :key="vindex + '1'"
  734. >
  735. <div class="navListItem" v-if="vitem.type == 2">
  736. <div
  737. @click="lookVedio(vitem.url, vindex)"
  738. class="navText"
  739. :class="isClickNav == vindex ? 'isClickNav' : ''"
  740. >
  741. <span v-if="vitem.text">{{ vitem.text }}-</span
  742. >{{ vitem.name }}
  743. </div>
  744. <div class="downIcon" @click="downloadFile2(vitem)">
  745. <img
  746. src="../../assets/icon/newIcon/down.png"
  747. alt
  748. />
  749. </div>
  750. </div>
  751. <div class="navListItem" v-if="vitem.type == 6">
  752. <div
  753. @click="lookText(taskCount, vindex)"
  754. class="navText"
  755. :class="isClickNav == vindex ? 'isClickNav' : ''"
  756. >
  757. {{ vitem.name }}.doc
  758. </div>
  759. <div
  760. class="downIcon"
  761. @click="checkFileFull1(vitem.type, vitem)"
  762. >
  763. <img
  764. src="../../assets/icon/newIcon/allScreen.png"
  765. alt
  766. />
  767. </div>
  768. </div>
  769. <div
  770. class="navListItem"
  771. v-if="vitem.type == 8 || vitem.type == 14"
  772. >
  773. <div
  774. @click="doUrl(vitem.url, vindex)"
  775. class="navText"
  776. :class="isClickNav == vindex ? 'isClickNav' : ''"
  777. >
  778. {{ vitem.title ? vitem.title : vitem.url }}
  779. </div>
  780. <div
  781. class="downIcon"
  782. @click="checkFileFull1(vitem.type, vitem)"
  783. >
  784. <img
  785. src="../../assets/icon/newIcon/allScreen.png"
  786. alt
  787. />
  788. </div>
  789. </div>
  790. <div class="navListItem" v-if="vitem.type == 3">
  791. <div
  792. @click="downFile(vitem, vindex)"
  793. class="navText"
  794. :class="isClickNav == vindex ? 'isClickNav' : ''"
  795. >
  796. <span v-if="vitem.text">{{ vitem.text }}-</span
  797. >{{ vitem.name }}
  798. </div>
  799. <div
  800. class="downIcon"
  801. @click="checkFileFull1(vitem.type, vitem)"
  802. >
  803. <img
  804. src="../../assets/icon/newIcon/allScreen.png"
  805. alt
  806. />
  807. </div>
  808. <div class="downIcon" @click="downloadFile2(vitem)">
  809. <img
  810. src="../../assets/icon/newIcon/down.png"
  811. alt
  812. />
  813. </div>
  814. </div>
  815. <div class="navListItem" v-if="vitem.type == 12">
  816. <div class="navText" @click="downloadFile2(vitem)">
  817. <span v-if="vitem.text">{{ vitem.text }}-</span
  818. >{{ vitem.name }}
  819. </div>
  820. <div
  821. class="downIcon"
  822. @click="checkFileFull1(vitem.type, vitem)"
  823. >
  824. <img
  825. src="../../assets/icon/newIcon/allScreen.png"
  826. alt
  827. />
  828. </div>
  829. <div class="downIcon" @click="downloadFile2(vitem)">
  830. <img
  831. src="../../assets/icon/newIcon/down.png"
  832. alt
  833. />
  834. </div>
  835. </div>
  836. <div class="navListItem" v-if="vitem.type == 13">
  837. <div
  838. class="navText"
  839. @click="checkPhoto(vitem, vindex)"
  840. :class="isClickNav == vindex ? 'isClickNav' : ''"
  841. >
  842. {{ vitem.name }}
  843. </div>
  844. <div class="downIcon" @click="downloadFile2(vitem)">
  845. <img
  846. src="../../assets/icon/newIcon/down.png"
  847. alt
  848. />
  849. </div>
  850. </div>
  851. </div>
  852. <div
  853. class="fileC_box"
  854. v-if="fileC[taskCount].length > 0"
  855. >
  856. <div class="fileC_title">以下文件不支持预览</div>
  857. <div
  858. class="vedioTimeBox"
  859. v-for="(vitem, vindex) in fileC[taskCount]"
  860. :key="vindex + '1'"
  861. >
  862. <div class="navListItem" v-if="vitem.type == 12">
  863. <div class="navText" style="color: #acb4bf">
  864. <span v-if="vitem.text">{{ vitem.text }}-</span
  865. >{{ vitem.name }}
  866. </div>
  867. <div
  868. class="downIcon"
  869. @click="downloadFile2(vitem)"
  870. >
  871. <img
  872. src="../../assets/icon/newIcon/down.png"
  873. alt
  874. />
  875. </div>
  876. </div>
  877. </div>
  878. </div>
  879. </div>
  880. </div>
  881. </div>
  882. </div>
  883. </div>
  884. <div style="width: calc(100% - 315px)">
  885. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  886. <!-- <el-button
  887. type="primary"
  888. class="newButton"
  889. @click="checkFileFull(showType, pptImgUrl1)"
  890. >全屏查看</el-button
  891. >
  892. <el-button
  893. type="primary"
  894. class="newButton"
  895. @click="downloadFile(pptImgUrl1)"
  896. v-if="showType != 2"
  897. >文件下载</el-button
  898. > -->
  899. <el-button
  900. class="newButton"
  901. v-if="
  902. showType == 2 &&
  903. pptImgUrl1.indexOf(
  904. 'https://view.officeapps.live.com/op/view.aspx?src='
  905. ) == -1
  906. "
  907. type="primary"
  908. @click="openLine(pptImgUrl1)"
  909. >打开链接
  910. </el-button>
  911. </div>
  912. <!-- <div
  913. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  914. v-if="showType == 1"
  915. >
  916. <el-button
  917. type="primary"
  918. class="newButton"
  919. @click="checkFileFull(showType, text)"
  920. >全屏查看</el-button
  921. >
  922. </div> -->
  923. </div>
  924. </div>
  925. </div>
  926. <div class="student_body" v-resize="resize">
  927. <div
  928. class="vedioBox"
  929. :style="{
  930. borderRadius:
  931. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  932. .taskDetail == '' &&
  933. vChapterData[taskCount].length == 0 &&
  934. fileC[taskCount].length == 0
  935. ? '0 0 20px 20px'
  936. : '20px'
  937. }"
  938. v-if="
  939. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  940. .toolChoose[0].tool &&
  941. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  942. .toolChoose[0].tool.length > 0
  943. "
  944. >
  945. <div
  946. class="toolHeng2"
  947. style="position: relative"
  948. v-if="
  949. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  950. .toolChoose[0].tool &&
  951. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  952. .toolChoose[0].tool.length &&
  953. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  954. .toolChoose[0].tool.length > 0
  955. "
  956. >
  957. <div class="workNav">工作区</div>
  958. <div
  959. class="filebox"
  960. style="flex-wrap: nowrap"
  961. v-for="(tool, toolIndex) in chapInfoList[courseType]
  962. .chapterInfo[0].taskJson[taskCount].toolChoose"
  963. :key="toolIndex"
  964. >
  965. <div class="bzBox">
  966. <div class="yCss"></div>
  967. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  968. 工具{{ toolIndex + 1 }}
  969. </div>
  970. <div
  971. v-if="timeWorkList[toolIndex].length > 0"
  972. style="margin: 0 0 0 10px"
  973. >
  974. {{
  975. timeWorkList[toolIndex][0].time
  976. ? "时间:" + timeWorkList[toolIndex][0].time
  977. : ""
  978. }}
  979. </div>
  980. </div>
  981. <div class="toolBox">
  982. <div>
  983. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  984. :key="indexTool"-->
  985. <!-- <div class="iframeBox">
  986. <div
  987. class="addPoint isBorder"
  988. v-for="(tooC, toolCIndex) in tool.tool"
  989. :key="toolCIndex"
  990. >
  991. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  992. <div
  993. class="iframeName"
  994. >
  995. 电子白板
  996. </div>
  997. <iframe
  998. src="https://iwb.cocorobo.cn/"
  999. ref="whiteBoard"
  1000. ></iframe>
  1001. </div>
  1002. </div>
  1003. </div>-->
  1004. <div class="noiframeBox">
  1005. <div
  1006. class="addPoint"
  1007. v-for="(tooC, toolCIndex) in tool.tool"
  1008. :key="toolCIndex"
  1009. >
  1010. <div v-if="tooC == 1">
  1011. <img
  1012. src="../../assets/icon/secondToolList/whiteBoard.png"
  1013. alt
  1014. @click="addTools(tooC, toolIndex, taskCount)"
  1015. />
  1016. <div style="margin: 5px 0">电子白板</div>
  1017. </div>
  1018. <div v-if="tooC == 3">
  1019. <img
  1020. src="../../assets/icon/secondToolList/mindMapping.png"
  1021. alt
  1022. @click="addTools(tooC, toolIndex, taskCount)"
  1023. />
  1024. <div style="margin: 5px 0">思维导图</div>
  1025. </div>
  1026. <div v-if="tooC == 6">
  1027. <img
  1028. src="../../assets/icon/secondToolList/doc.png"
  1029. alt
  1030. @click="addTools(tooC, toolIndex, taskCount)"
  1031. />
  1032. <div style="margin: 5px 0">协同文档</div>
  1033. </div>
  1034. <div v-if="tooC == 7">
  1035. <img
  1036. src="../../assets/icon/secondToolList/mindNetwork.png"
  1037. alt
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. />
  1040. <div style="margin: 5px 0">思维网格</div>
  1041. </div>
  1042. <div v-if="tooC == 8">
  1043. <img
  1044. src="../../assets/icon/secondToolList/library.png"
  1045. alt
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. />
  1048. <div style="margin: 5px 0">素材库</div>
  1049. </div>
  1050. <div v-if="tooC == 17">
  1051. <img
  1052. src="../../assets/icon/secondToolList/library.png"
  1053. alt
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. />
  1056. <div style="margin: 5px 0">学习资料</div>
  1057. </div>
  1058. <div v-if="tooC == 2">
  1059. <img
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. src="../../assets/icon/secondToolList/note.png"
  1062. alt
  1063. />
  1064. <div style="margin: 5px 0">便签</div>
  1065. </div>
  1066. <div v-if="tooC == 4">
  1067. <img
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. src="../../assets/icon/thirdToolList/ask.png"
  1070. alt
  1071. />
  1072. <div style="margin: 5px 0">问卷调查</div>
  1073. <div
  1074. class="upload_toolBtn"
  1075. v-if="tType === '1'"
  1076. @click="
  1077. openStatisticalAnalysis(
  1078. tooC,
  1079. toolIndex,
  1080. taskCount,
  1081. 45
  1082. )
  1083. "
  1084. style="position: absolute;right: 33px;top: -30px;"
  1085. >
  1086. 统计分析
  1087. </div>
  1088. </div>
  1089. <div v-if="tooC == 45">
  1090. <img
  1091. @click="addTools(tooC, toolIndex, taskCount)"
  1092. src="../../assets/icon/thirdToolList/choose.png"
  1093. alt
  1094. />
  1095. <div style="margin: 5px 0">选择题</div>
  1096. <div
  1097. class="upload_toolBtn"
  1098. v-if="
  1099. tType === '1' &&
  1100. worksStudent[toolIndex].length > 0
  1101. "
  1102. @click="
  1103. openChoseWorksDetailDialog(
  1104. tooC,
  1105. toolIndex,
  1106. taskCount
  1107. )
  1108. "
  1109. style="position: absolute;right: 33px;top: -30px;"
  1110. >
  1111. 作业详细
  1112. </div>
  1113. </div>
  1114. <!-- <div v-if="tooC == 5">
  1115. <img
  1116. @click="addTools(tooC, toolIndex, taskCount)"
  1117. src="../../assets/icon/thirdToolList/score.png"
  1118. alt
  1119. />
  1120. <div style="margin: 5px 0">量规评分</div>
  1121. </div> -->
  1122. <div v-if="tooC == 10">
  1123. <img
  1124. @click="addTools(tooC, toolIndex, taskCount)"
  1125. src="../../assets/icon/thirdToolList/time.png"
  1126. alt
  1127. />
  1128. <div style="margin: 5px 0">倒计时</div>
  1129. </div>
  1130. <div v-if="tooC == 15">
  1131. <img
  1132. @click="addTools(tooC, toolIndex, taskCount)"
  1133. src="../../assets/icon/thirdToolList/answer.png"
  1134. alt
  1135. />
  1136. <div style="margin: 5px 0">问答</div>
  1137. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1138. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1139. 作业详细
  1140. </div>
  1141. </div>
  1142. <div v-if="tooC == 26">
  1143. <img
  1144. @click="addTools(tooC, toolIndex, taskCount)"
  1145. src="../../assets/icon/thirdToolList/courseDesign.png"
  1146. alt
  1147. />
  1148. <div style="margin: 5px 0">课程设计</div>
  1149. </div>
  1150. <div v-if="tooC == 18">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">训练服务器</div>
  1157. </div>
  1158. <div v-if="tooC == 16">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../../assets/icon/thirdToolList/work.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">作业提交</div>
  1165. </div>
  1166. <div v-if="tooC == 50">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../../assets/icon/thirdToolList/plwork.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">批量上传</div>
  1173. </div>
  1174. <div v-if="tooC == 21">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../../assets/icon/fourthToolList/program.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">AIoT Blockly</div>
  1181. </div>
  1182. <!-- <div v-if="tooC == 22">
  1183. <img
  1184. @click="addTools(tooC, toolIndex, taskCount)"
  1185. src="../../assets/icon/fourthToolList/program.png"
  1186. alt
  1187. />
  1188. <div style="margin: 5px 0">AI体验</div>
  1189. </div> -->
  1190. <div v-if="tooC == 23">
  1191. <img
  1192. @click="addTools(tooC, toolIndex, taskCount)"
  1193. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1194. alt
  1195. />
  1196. <div style="margin: 5px 0">AI Python</div>
  1197. </div>
  1198. <div v-if="tooC == 24">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../../assets/icon/fourthToolList/AIprogram.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">AI Blockly</div>
  1205. </div>
  1206. <div v-if="tooC == 25">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/thirdToolList/evalua.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">目标管理</div>
  1213. </div>
  1214. <div v-if="tooC == 31">
  1215. <img
  1216. @click="addTools(tooC, toolIndex, taskCount)"
  1217. src="../../assets/icon/secondToolList/networkPanel.png"
  1218. alt
  1219. />
  1220. <div style="margin: 5px 0">数学画板</div>
  1221. </div>
  1222. <div v-if="tooC == 28">
  1223. <img
  1224. @click="addTools(tooC, toolIndex, taskCount)"
  1225. src="../../assets/icon/secondToolList/translation.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">翻译</div>
  1229. </div>
  1230. <div v-if="tooC == 37">
  1231. <img
  1232. @click="addTools(tooC, toolIndex, taskCount)"
  1233. src="../../assets/icon/secondToolList/mohe.png"
  1234. alt
  1235. />
  1236. <div style="margin: 5px 0">魔盒识字</div>
  1237. </div>
  1238. <div v-if="tooC == 38">
  1239. <img
  1240. @click="addTools(tooC, toolIndex, taskCount)"
  1241. src="../../assets/icon/secondToolList/24game.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">24点</div>
  1245. </div>
  1246. <div v-if="tooC == 39">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../../assets/icon/secondToolList/GeoGebra.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">GeoGebra</div>
  1253. </div>
  1254. <div v-if="tooC == 32">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../../assets/icon/thirdToolList/code.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">源码编辑</div>
  1261. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1262. style="position: absolute;left: 110px;bottom: 30px;">
  1263. 上传文件
  1264. <input type="file" accept="*" style="display: none"
  1265. @change="beforeUpload1($event, 7, toolIndex)" />
  1266. </div> -->
  1267. </div>
  1268. <div v-if="tooC == 40">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../../assets/icon/secondToolList/eval.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">个人评价</div>
  1275. </div>
  1276. <div v-if="tooC == 41">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/thirdToolList/select.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">选择匹配</div>
  1283. </div>
  1284. <div v-if="tooC == 44">
  1285. <img
  1286. @click="addTools(tooC, toolIndex, taskCount)"
  1287. src="../../assets/icon/thirdToolList/hanClass.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">汉字宫</div>
  1291. </div>
  1292. <div v-if="tooC == 47">
  1293. <img
  1294. @click="addTools(tooC, toolIndex, taskCount)"
  1295. src="../../assets/icon/fourthToolList/conSentences.png"
  1296. alt
  1297. />
  1298. <div style="margin: 5px 0">排序</div>
  1299. </div>
  1300. <div v-if="tooC == 48">
  1301. <img
  1302. @click="addTools(tooC, toolIndex, taskCount)"
  1303. src="../../assets/icon/fourthToolList/table.png"
  1304. alt
  1305. />
  1306. <div style="margin: 5px 0">表格</div>
  1307. </div>
  1308. <div v-if="tooC == 52">
  1309. <img
  1310. @click="addTools(tooC, toolIndex, taskCount)"
  1311. src="../../assets/icon/fourthToolList/text.png"
  1312. alt
  1313. />
  1314. <div style="margin: 5px 0">文档</div>
  1315. </div>
  1316. <div v-if="tooC == 49">
  1317. <img
  1318. @click="addTools(tooC, toolIndex, taskCount)"
  1319. src="../../assets/icon/fourthToolList/group.png"
  1320. alt
  1321. />
  1322. <div style="margin: 5px 0">学生分组</div>
  1323. </div>
  1324. <div v-if="tooC == 57">
  1325. <img
  1326. @click="addTools(tooC, toolIndex, taskCount)"
  1327. src="../../assets/icon/fourthToolList/cocopi.png"
  1328. alt
  1329. />
  1330. <div style="margin: 5px 0">CocoPi</div>
  1331. </div>
  1332. <div v-if="tooC == 58">
  1333. <img
  1334. @click="addTools(tooC, toolIndex, taskCount)"
  1335. src="../../assets/icon/fourthToolList/car.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">模拟驾驶</div>
  1339. </div>
  1340. <div v-if="tooC == 59">
  1341. <img
  1342. @click="addTools(tooC, toolIndex, taskCount)"
  1343. src="../../assets/icon/fourthToolList/lineSearch.png"
  1344. alt
  1345. />
  1346. <div style="margin: 5px 0">路径搜索</div>
  1347. </div>
  1348. <div v-if="tooC == 60">
  1349. <img
  1350. @click="addTools(tooC, toolIndex, taskCount)"
  1351. src="../../assets/icon/fourthToolList/deepLearning.png"
  1352. alt
  1353. />
  1354. <div style="margin: 5px 0">深度学习</div>
  1355. </div>
  1356. <div v-if="tooC == 61">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../../assets/icon/fourthToolList/allHistory.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">全历史</div>
  1363. </div>
  1364. <div v-if="tooC == 62">
  1365. <img
  1366. @click="addTools(tooC, toolIndex, taskCount)"
  1367. src="../../assets/icon/fourthToolList/interVideo.png"
  1368. alt
  1369. />
  1370. <div style="margin: 5px 0">交互视频</div>
  1371. </div>
  1372. <div v-if="tooC == 63">
  1373. <img
  1374. @click="addTools(tooC, toolIndex, taskCount)"
  1375. src="../../assets/icon/fourthToolList/Wood.png"
  1376. alt
  1377. />
  1378. <div style="margin: 5px 0">海龟编程</div>
  1379. </div>
  1380. <div v-if="tooC == 71">
  1381. <img
  1382. @click="addTools(tooC, toolIndex, taskCount)"
  1383. src="../../assets/icon/fourthToolList/chatgpt.png"
  1384. alt
  1385. />
  1386. <div style="margin: 5px 0">AI智能体</div>
  1387. </div>
  1388. <div v-if="tooC == 65">
  1389. <img
  1390. @click="addTools(tooC, toolIndex, taskCount)"
  1391. src="../../assets/icon/firstToolList/pickPeople.png"
  1392. alt
  1393. />
  1394. <div style="margin: 5px 0">挑人</div>
  1395. </div>
  1396. <div v-if="tooC == 66">
  1397. <img
  1398. @click="addTools(tooC, toolIndex, taskCount)"
  1399. src="../../assets/icon/secondToolList/formulaEdi.png"
  1400. alt
  1401. />
  1402. <div style="margin: 5px 0">公式编辑</div>
  1403. </div>
  1404. <div v-if="tooC == 67">
  1405. <img
  1406. @click="addTools(tooC, toolIndex, taskCount)"
  1407. src="../../assets/icon/secondToolList/molStr.png"
  1408. alt
  1409. />
  1410. <div style="margin: 5px 0">分子结构</div>
  1411. </div>
  1412. <div v-if="tooC == 68">
  1413. <img
  1414. @click="addTools(tooC, toolIndex, taskCount)"
  1415. src="../../assets/icon/secondToolList/timeAxis.png"
  1416. alt
  1417. />
  1418. <div style="margin: 5px 0">时间轴</div>
  1419. </div>
  1420. <div v-if="tooC == 69">
  1421. <img
  1422. @click="addTools(tooC, toolIndex, taskCount)"
  1423. src="../../assets/icon/secondToolList/english.png"
  1424. alt
  1425. />
  1426. <div style="margin: 5px 0">英语写作</div>
  1427. </div>
  1428. <div v-if="tooC == 70">
  1429. <img
  1430. @click="addTools(tooC, toolIndex, taskCount)"
  1431. src="../../assets/icon/thirdToolList/englishVoice.png"
  1432. alt
  1433. />
  1434. <div style="margin: 5px 0">英语口语</div>
  1435. </div>
  1436. </div>
  1437. </div>
  1438. </div>
  1439. <div
  1440. class="tooldetail"
  1441. v-if="tool.toolDetail != ''"
  1442. :class="{
  1443. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1444. }"
  1445. >
  1446. <!-- <div class="toolTitle">工具描述</div> -->
  1447. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1448. <div
  1449. style="height:100%;"
  1450. v-html="contentConvent(tool.toolDetail)"
  1451. v-if="toolDetailIndex != toolIndex"
  1452. ></div>
  1453. <div v-else @click.stop="" style="height:100%;">
  1454. <textarea
  1455. @change="
  1456. () => {
  1457. $forceUpdate();
  1458. }
  1459. "
  1460. class="checkTextArea"
  1461. rows="3"
  1462. v-autoHeight="70"
  1463. type="text"
  1464. placeholder="请输入任务描述"
  1465. v-model="updateToolDetailInner"
  1466. ></textarea>
  1467. </div>
  1468. </div>
  1469. <el-button
  1470. type="primary"
  1471. v-if="tool.tool[0] == 32"
  1472. style="position: absolute; right: 30px; top: -45px"
  1473. @click="addImg($event)"
  1474. >上传作业<input
  1475. type="file"
  1476. accept="*"
  1477. style="display: none"
  1478. @change="beforeUpload1($event, 7, toolIndex)"
  1479. /></el-button>
  1480. <el-button
  1481. type="primary"
  1482. v-if="tool.tool[0] == 15"
  1483. style="position: absolute; right: 30px; top: -45px"
  1484. @click="openWordCloud(toolIndex)"
  1485. >生成词云</el-button
  1486. >
  1487. <el-button
  1488. type="primary"
  1489. v-if="
  1490. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1491. "
  1492. style="position: absolute; right: 30px; top: -45px"
  1493. @click="uploadWorks(toolIndex)"
  1494. >导出作业</el-button
  1495. >
  1496. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1497. position: absolute;
  1498. right: 30px;
  1499. transform: translateY(-130%);
  1500. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1501. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1502. </div>
  1503. <div
  1504. v-if="
  1505. tType &&
  1506. tType == 2 &&
  1507. !sIsOpen &&
  1508. tool.tool.indexOf(16) != -1
  1509. "
  1510. class="worksBox"
  1511. >
  1512. <div
  1513. class="zuoyeYulan"
  1514. v-if="workStudent[toolIndex].length > 0"
  1515. >
  1516. <span class="worksTitle">作业预览</span>
  1517. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1518. </div>
  1519. <div
  1520. class="worksDetailBox"
  1521. v-if="workStudent[toolIndex].length > 0"
  1522. >
  1523. <div
  1524. class="works"
  1525. style="
  1526. width: 200px;
  1527. height: 140px;
  1528. margin: 10px 10px 10px 0;
  1529. box-shadow: 0 0 6px 1px #dfdada;
  1530. "
  1531. v-for="(w, wIndex) in workStudent[toolIndex]"
  1532. :key="wIndex"
  1533. >
  1534. <div class="workImg" v-if="w.type == 0">
  1535. <img
  1536. :src="w.works"
  1537. @click="previewImg(w.works, w)"
  1538. alt
  1539. />
  1540. <div
  1541. class="answerScore"
  1542. v-if="w.score"
  1543. @click.stop="openScore(w)"
  1544. :class="{
  1545. rightW:
  1546. w.userid == userid || tType == 1 || tType == 4
  1547. }"
  1548. >
  1549. {{ JSON.parse(w.score).wScore }}分
  1550. </div>
  1551. <div
  1552. class="answerScore"
  1553. @click.stop="openScore(w)"
  1554. v-else-if="courseDetail.userid == userid"
  1555. :class="{
  1556. rightW:
  1557. w.userid == userid || tType == 1 || tType == 4
  1558. }"
  1559. >
  1560. 评分
  1561. </div>
  1562. <div
  1563. class="stuLookScore"
  1564. v-if="
  1565. w.userid == userid ||
  1566. (tType == 1 &&
  1567. courseDetail.state == 5 &&
  1568. ((chapInfoList[courseType].chapterInfo[0]
  1569. .taskJson[taskCount].eList &&
  1570. chapInfoList[courseType].chapterInfo[0]
  1571. .taskJson[taskCount].eList.length) ||
  1572. (tool.eList && tool.eList.length)))
  1573. "
  1574. >
  1575. <el-popover
  1576. placement="top"
  1577. width="318"
  1578. trigger="hover"
  1579. >
  1580. <markScore
  1581. :loading="AIloading[toolIndex][wIndex].loading"
  1582. :markScoreVisible="markScoreVisible"
  1583. :ref="`markSco${toolIndex}${wIndex}`"
  1584. @updateLoading="updateLoading"
  1585. @updateDocSco="updateDocSco"
  1586. @refreshOther="refreshOther"
  1587. @markScoreDig="markScoreDig"
  1588. :tool="tool"
  1589. :wIndex="wIndex"
  1590. :scoCon="w"
  1591. :toolIndex="toolIndex"
  1592. :key="refreshKey"
  1593. :stage="courseType"
  1594. :task="taskCount"
  1595. :scoTit="
  1596. chapInfoList[courseType].chapterInfo[0]
  1597. .taskJson[taskCount].eList
  1598. "
  1599. >
  1600. </markScore>
  1601. <div
  1602. @click="
  1603. markScoreDig2(
  1604. w.sName,
  1605. worksStudent,
  1606. w.userid,
  1607. toolIndex,
  1608. chapInfoList[courseType].chapterInfo[0]
  1609. .taskJson[taskCount].eList,
  1610. AIloading[toolIndex][wIndex].loading,
  1611. tool
  1612. )
  1613. "
  1614. slot="reference"
  1615. >
  1616. <span v-if="AIloading[toolIndex][wIndex].sco">
  1617. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1618. </span>
  1619. <span v-else>
  1620. 评分
  1621. </span>
  1622. </div>
  1623. </el-popover>
  1624. </div>
  1625. <img
  1626. class="deleteImg"
  1627. src="../../assets/deleteworks.png"
  1628. v-if="
  1629. w.userid == userid || tType == 1 || tType == 4
  1630. "
  1631. @click.stop="deleteWorks(w.wid)"
  1632. alt
  1633. />
  1634. </div>
  1635. <div class="workImg" v-if="w.type == 1">
  1636. <img :src="word" @click="openFile(w.works)" alt />
  1637. <div
  1638. class="answerScore"
  1639. v-if="w.score"
  1640. @click.stop="openScore(w)"
  1641. :class="{
  1642. rightW:
  1643. w.userid == userid || tType == 1 || tType == 4
  1644. }"
  1645. >
  1646. {{ JSON.parse(w.score).wScore }}分
  1647. </div>
  1648. <div
  1649. class="answerScore"
  1650. @click.stop="openScore(w)"
  1651. v-else-if="courseDetail.userid == userid"
  1652. :class="{
  1653. rightW:
  1654. w.userid == userid || tType == 1 || tType == 4
  1655. }"
  1656. >
  1657. 评分
  1658. </div>
  1659. <div
  1660. class="stuLookScore"
  1661. v-if="
  1662. w.userid == userid ||
  1663. (tType == 1 &&
  1664. courseDetail.state == 5 &&
  1665. ((chapInfoList[courseType].chapterInfo[0]
  1666. .taskJson[taskCount].eList &&
  1667. chapInfoList[courseType].chapterInfo[0]
  1668. .taskJson[taskCount].eList.length) ||
  1669. (tool.eList && tool.eList.length)))
  1670. "
  1671. >
  1672. <el-popover
  1673. placement="top"
  1674. width="318"
  1675. trigger="hover"
  1676. >
  1677. <markScore
  1678. :loading="AIloading[toolIndex][wIndex].loading"
  1679. :markScoreVisible="markScoreVisible"
  1680. :ref="`markSco${toolIndex}${wIndex}`"
  1681. @updateLoading="updateLoading"
  1682. @updateDocSco="updateDocSco"
  1683. @refreshOther="refreshOther"
  1684. @markScoreDig="markScoreDig"
  1685. :tool="tool"
  1686. :wIndex="wIndex"
  1687. :scoCon="w"
  1688. :toolIndex="toolIndex"
  1689. :key="refreshKey"
  1690. :stage="courseType"
  1691. :task="taskCount"
  1692. :scoTit="
  1693. chapInfoList[courseType].chapterInfo[0]
  1694. .taskJson[taskCount].eList
  1695. "
  1696. >
  1697. </markScore>
  1698. <div
  1699. @click="
  1700. markScoreDig2(
  1701. w.sName,
  1702. worksStudent,
  1703. w.userid,
  1704. toolIndex,
  1705. chapInfoList[courseType].chapterInfo[0]
  1706. .taskJson[taskCount].eList,
  1707. AIloading[toolIndex][wIndex].loading,
  1708. tool
  1709. )
  1710. "
  1711. slot="reference"
  1712. >
  1713. <span v-if="AIloading[toolIndex][wIndex].sco">
  1714. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1715. </span>
  1716. <span v-else>
  1717. 评分
  1718. </span>
  1719. </div>
  1720. </el-popover>
  1721. </div>
  1722. <img
  1723. class="deleteImg"
  1724. src="../../assets/deleteworks.png"
  1725. v-if="
  1726. w.userid == userid || tType == 1 || tType == 4
  1727. "
  1728. @click.stop="deleteWorks(w.wid)"
  1729. alt
  1730. />
  1731. </div>
  1732. <div class="workImg" v-if="w.type == 3">
  1733. <img
  1734. style="cursor: pointer"
  1735. :src="video"
  1736. @click="openVideo(w)"
  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 || tType == 1 || tType == 4
  1746. }"
  1747. >
  1748. {{ JSON.parse(w.score).wScore }}分
  1749. </div>
  1750. <div
  1751. class="answerScore"
  1752. @click.stop="openScore(w)"
  1753. v-else-if="courseDetail.userid == userid"
  1754. :class="{
  1755. rightW:
  1756. w.userid == userid || tType == 1 || tType == 4
  1757. }"
  1758. >
  1759. 评分
  1760. </div>
  1761. <div
  1762. class="stuLookScore"
  1763. v-if="
  1764. w.userid == userid ||
  1765. (tType == 1 &&
  1766. courseDetail.state == 5 &&
  1767. ((chapInfoList[courseType].chapterInfo[0]
  1768. .taskJson[taskCount].eList &&
  1769. chapInfoList[courseType].chapterInfo[0]
  1770. .taskJson[taskCount].eList.length) ||
  1771. (tool.eList && tool.eList.length)))
  1772. "
  1773. >
  1774. <el-popover
  1775. placement="top"
  1776. width="318"
  1777. trigger="hover"
  1778. >
  1779. <markScore
  1780. :loading="AIloading[toolIndex][wIndex].loading"
  1781. :markScoreVisible="markScoreVisible"
  1782. :ref="`markSco${toolIndex}${wIndex}`"
  1783. @updateLoading="updateLoading"
  1784. @updateDocSco="updateDocSco"
  1785. @refreshOther="refreshOther"
  1786. @markScoreDig="markScoreDig"
  1787. :tool="tool"
  1788. :wIndex="wIndex"
  1789. :scoCon="w"
  1790. :toolIndex="toolIndex"
  1791. :key="refreshKey"
  1792. :stage="courseType"
  1793. :task="taskCount"
  1794. :scoTit="
  1795. chapInfoList[courseType].chapterInfo[0]
  1796. .taskJson[taskCount].eList
  1797. "
  1798. >
  1799. </markScore>
  1800. <div
  1801. @click="
  1802. markScoreDig2(
  1803. w.sName,
  1804. worksStudent,
  1805. w.userid,
  1806. toolIndex,
  1807. chapInfoList[courseType].chapterInfo[0]
  1808. .taskJson[taskCount].eList,
  1809. AIloading[toolIndex][wIndex].loading,
  1810. tool
  1811. )
  1812. "
  1813. slot="reference"
  1814. >
  1815. <span v-if="AIloading[toolIndex][wIndex].sco">
  1816. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1817. </span>
  1818. <span v-else>
  1819. 评分
  1820. </span>
  1821. </div>
  1822. </el-popover>
  1823. </div>
  1824. <img
  1825. class="deleteImg"
  1826. src="../../assets/deleteworks.png"
  1827. v-if="
  1828. w.userid == userid || tType == 1 || tType == 4
  1829. "
  1830. @click.stop="deleteWorks(w.wid)"
  1831. alt
  1832. />
  1833. </div>
  1834. <div class="workImg" v-if="w.type == 12">
  1835. <img
  1836. style="cursor: pointer"
  1837. :src="word2"
  1838. @click="downloadFile(w.works)"
  1839. alt
  1840. />
  1841. <div
  1842. class="answerScore"
  1843. v-if="w.score"
  1844. @click.stop="openScore(w)"
  1845. :class="{
  1846. rightW:
  1847. w.userid == userid || tType == 1 || tType == 4
  1848. }"
  1849. >
  1850. {{ JSON.parse(w.score).wScore }}分
  1851. </div>
  1852. <div
  1853. class="answerScore"
  1854. @click.stop="openScore(w)"
  1855. v-else-if="courseDetail.userid == userid"
  1856. :class="{
  1857. rightW:
  1858. w.userid == userid || tType == 1 || tType == 4
  1859. }"
  1860. >
  1861. 评分
  1862. </div>
  1863. <div
  1864. class="stuLookScore"
  1865. v-if="
  1866. w.userid == userid ||
  1867. (tType == 1 &&
  1868. courseDetail.state == 5 &&
  1869. ((chapInfoList[courseType].chapterInfo[0]
  1870. .taskJson[taskCount].eList &&
  1871. chapInfoList[courseType].chapterInfo[0]
  1872. .taskJson[taskCount].eList.length) ||
  1873. (tool.eList && tool.eList.length)))
  1874. "
  1875. >
  1876. <el-popover
  1877. placement="top"
  1878. width="318"
  1879. trigger="hover"
  1880. >
  1881. <markScore
  1882. :loading="AIloading[toolIndex][wIndex].loading"
  1883. :markScoreVisible="markScoreVisible"
  1884. :ref="`markSco${toolIndex}${wIndex}`"
  1885. @updateLoading="updateLoading"
  1886. @updateDocSco="updateDocSco"
  1887. @refreshOther="refreshOther"
  1888. @markScoreDig="markScoreDig"
  1889. :tool="tool"
  1890. :wIndex="wIndex"
  1891. :scoCon="w"
  1892. :toolIndex="toolIndex"
  1893. :key="refreshKey"
  1894. :stage="courseType"
  1895. :task="taskCount"
  1896. :scoTit="
  1897. chapInfoList[courseType].chapterInfo[0]
  1898. .taskJson[taskCount].eList
  1899. "
  1900. >
  1901. </markScore>
  1902. <div
  1903. @click="
  1904. markScoreDig2(
  1905. w.sName,
  1906. worksStudent,
  1907. w.userid,
  1908. toolIndex,
  1909. chapInfoList[courseType].chapterInfo[0]
  1910. .taskJson[taskCount].eList,
  1911. AIloading[toolIndex][wIndex].loading,
  1912. tool
  1913. )
  1914. "
  1915. slot="reference"
  1916. >
  1917. <span v-if="AIloading[toolIndex][wIndex].sco">
  1918. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1919. </span>
  1920. <span v-else>
  1921. 评分
  1922. </span>
  1923. </div>
  1924. </el-popover>
  1925. </div>
  1926. <img
  1927. class="deleteImg"
  1928. src="../../assets/deleteworks.png"
  1929. v-if="
  1930. w.userid == userid || tType == 1 || tType == 4
  1931. "
  1932. @click.stop="deleteWorks(w.wid)"
  1933. alt
  1934. />
  1935. </div>
  1936. <div class="worksName">
  1937. <div>{{ w.sName }}</div>
  1938. </div>
  1939. </div>
  1940. </div>
  1941. </div>
  1942. <div
  1943. v-if="
  1944. tType &&
  1945. tType == 2 &&
  1946. !sIsOpen &&
  1947. tool.tool.indexOf(32) != -1
  1948. "
  1949. class="worksBox"
  1950. >
  1951. <div
  1952. class="zuoyeYulan"
  1953. v-if="workStudent[toolIndex].length > 0"
  1954. >
  1955. <span class="worksTitle">作业预览</span>
  1956. </div>
  1957. <div
  1958. class="worksDetailBox"
  1959. v-if="workStudent[toolIndex].length > 0"
  1960. >
  1961. <div
  1962. class="works"
  1963. style="
  1964. width: 200px;
  1965. height: 140px;
  1966. margin: 10px 10px 10px 0;
  1967. box-shadow: 0 0 6px 1px #dfdada;
  1968. "
  1969. v-for="(w, wIndex) in workStudent[toolIndex]"
  1970. :key="wIndex"
  1971. >
  1972. <div class="workImg">
  1973. <img
  1974. :src="word2"
  1975. @click="downloadFile(w.works)"
  1976. alt
  1977. />
  1978. <div
  1979. class="answerScore"
  1980. v-if="w.score"
  1981. @click.stop="openScore(w)"
  1982. :class="{
  1983. rightW:
  1984. w.userid == userid || tType == 1 || tType == 4
  1985. }"
  1986. >
  1987. {{ JSON.parse(w.score).wScore }}分
  1988. </div>
  1989. <div
  1990. class="answerScore"
  1991. @click.stop="openScore(w)"
  1992. v-else-if="courseDetail.userid == userid"
  1993. :class="{
  1994. rightW:
  1995. w.userid == userid || tType == 1 || tType == 4
  1996. }"
  1997. >
  1998. 评分
  1999. </div>
  2000. <img
  2001. class="deleteImg"
  2002. src="../../assets/deleteworks.png"
  2003. v-if="
  2004. w.userid == userid || tType == 1 || tType == 4
  2005. "
  2006. @click.stop="deleteWorks(w.wid)"
  2007. alt
  2008. />
  2009. </div>
  2010. <div class="worksName">
  2011. <div>{{ w.sName }}</div>
  2012. </div>
  2013. </div>
  2014. </div>
  2015. </div>
  2016. <div
  2017. v-if="
  2018. tType &&
  2019. tType == 2 &&
  2020. !sIsOpen &&
  2021. tool.tool.indexOf(57) != -1
  2022. "
  2023. class="worksBox"
  2024. >
  2025. <div
  2026. class="zuoyeYulan"
  2027. v-if="workStudent[toolIndex].length > 0"
  2028. >
  2029. <span class="worksTitle">作业预览</span>
  2030. </div>
  2031. <div
  2032. class="worksDetailBox"
  2033. v-if="workStudent[toolIndex].length > 0"
  2034. >
  2035. <div
  2036. class="works"
  2037. style="
  2038. width: 200px;
  2039. height: 140px;
  2040. margin: 10px 10px 10px 0;
  2041. box-shadow: 0 0 6px 1px #dfdada;
  2042. "
  2043. v-for="(w, wIndex) in workStudent[toolIndex]"
  2044. :key="wIndex"
  2045. >
  2046. <div class="workImg">
  2047. <img
  2048. :src="word2"
  2049. @click="downloadFile(w.works)"
  2050. v-if="w.type == 12"
  2051. alt
  2052. />
  2053. <img
  2054. :src="word2"
  2055. @click="
  2056. openCocoPi(57, toolIndex, w.userid, w.sName)
  2057. "
  2058. v-else-if="w.type == 15"
  2059. alt
  2060. />
  2061. <div
  2062. class="answerScore"
  2063. v-if="w.score"
  2064. @click.stop="openScore(w)"
  2065. :class="{
  2066. rightW:
  2067. w.userid == userid || tType == 1 || tType == 4
  2068. }"
  2069. >
  2070. {{ JSON.parse(w.score).wScore }}分
  2071. </div>
  2072. <div
  2073. class="answerScore"
  2074. @click.stop="openScore(w)"
  2075. v-else-if="courseDetail.userid == userid"
  2076. :class="{
  2077. rightW:
  2078. w.userid == userid || tType == 1 || tType == 4
  2079. }"
  2080. >
  2081. 评分
  2082. </div>
  2083. <img
  2084. class="deleteImg"
  2085. src="../../assets/deleteworks.png"
  2086. v-if="
  2087. w.userid == userid || tType == 1 || tType == 4
  2088. "
  2089. @click.stop="deleteWorks(w.wid)"
  2090. alt
  2091. />
  2092. </div>
  2093. <div class="worksName">
  2094. <div>{{ w.sName }}</div>
  2095. </div>
  2096. </div>
  2097. </div>
  2098. </div>
  2099. <div
  2100. v-if="
  2101. tType &&
  2102. tType == 2 &&
  2103. !sIsOpen &&
  2104. tool.tool.indexOf(4) != -1
  2105. "
  2106. class="worksBox"
  2107. >
  2108. <div
  2109. class="zuoyeYulan"
  2110. v-if="workStudent[toolIndex].length > 0"
  2111. >
  2112. <span class="worksTitle">作业预览</span>
  2113. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2114. </div>
  2115. <div
  2116. class="worksDetailBox"
  2117. v-if="workStudent[toolIndex].length > 0"
  2118. >
  2119. <div
  2120. class="isWorksName2"
  2121. v-for="(w, wIndex) in workStudent[toolIndex]"
  2122. :key="wIndex"
  2123. @click="
  2124. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2125. "
  2126. >
  2127. {{ w.sName }}
  2128. <img
  2129. class="deleteImg deleteImg2"
  2130. src="../../assets/deleteworks.png"
  2131. v-if="w.userid == userid || tType == 1 || tType == 4"
  2132. @click.stop="deleteWorks(w.wid)"
  2133. alt
  2134. />
  2135. </div>
  2136. <!-- <div
  2137. class="works"
  2138. style="
  2139. width: 200px;
  2140. height: 140px;
  2141. border-radius: 10px;
  2142. box-shadow: 0 0 6px 1px #dfdada;
  2143. overflow: hidden;
  2144. "
  2145. v-for="(w, wIndex) in workStudent[toolIndex]"
  2146. :key="wIndex"
  2147. >
  2148. <div class="workImg">
  2149. <img
  2150. src="../../assets/icon/works/noImg.png"
  2151. @click="
  2152. openTools(
  2153. 4,
  2154. toolIndex,
  2155. taskCount,
  2156. w.works,
  2157. w.sName
  2158. )
  2159. "
  2160. alt
  2161. />
  2162. </div>
  2163. <div class="worksName">
  2164. <div>{{ w.sName }}</div>
  2165. <div>{{ w.time }}</div>
  2166. </div>
  2167. </div> -->
  2168. </div>
  2169. </div>
  2170. <div
  2171. v-if="
  2172. tType &&
  2173. ((tType == 2 && sIsOpen == true) ||
  2174. tType == 1 ||
  2175. tType == 4) &&
  2176. tool.tool.indexOf(62) != -1
  2177. "
  2178. class="worksBox"
  2179. >
  2180. <div
  2181. class="zuoyeYulan"
  2182. v-if="
  2183. worksStudent.length &&
  2184. worksStudent[toolIndex].length > 0
  2185. "
  2186. >
  2187. <div class="worksTop">
  2188. <div>作业预览</div>
  2189. <div
  2190. class="corOpen"
  2191. @click="contract(toolIndex)"
  2192. v-if="
  2193. isCloseList[toolIndex].isCloseBoolean &&
  2194. isCloseList[toolIndex].isClose == 0
  2195. "
  2196. >
  2197. 折叠
  2198. </div>
  2199. <div
  2200. class="corOpen"
  2201. @click="contract(toolIndex)"
  2202. v-if="isCloseList[toolIndex].isClose == 1"
  2203. >
  2204. 展开
  2205. </div>
  2206. </div>
  2207. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2208. </div>
  2209. <div>
  2210. <div
  2211. :id="'tool-' + toolIndex"
  2212. :style="{
  2213. height:
  2214. isCloseList[toolIndex].isClose == 1
  2215. ? retrnToolHeight('tool-' + toolIndex)
  2216. : 'auto',
  2217. overflow:
  2218. isCloseList[toolIndex].isClose == 1
  2219. ? 'hidden'
  2220. : 'unset'
  2221. }"
  2222. class="worksDetailBox"
  2223. v-if="
  2224. worksStudent.length &&
  2225. worksStudent[toolIndex].length > 0
  2226. "
  2227. >
  2228. <div
  2229. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2230. :key="wIndex"
  2231. class="isWorksName2"
  2232. @click="
  2233. openTools(
  2234. 62,
  2235. toolIndex,
  2236. taskCount,
  2237. w.works,
  2238. w.sName
  2239. )
  2240. "
  2241. >
  2242. {{ w.sName }}
  2243. <img
  2244. class="deleteImg deleteImg2"
  2245. src="../../assets/deleteworks.png"
  2246. v-if="
  2247. w.userid == userid || tType == 1 || tType == 4
  2248. "
  2249. @click.stop="deleteWorks(w.wid)"
  2250. alt
  2251. />
  2252. </div>
  2253. </div>
  2254. </div>
  2255. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2256. 未提交
  2257. </div>
  2258. <div
  2259. class="noWorksS"
  2260. v-if="noWorksS && noWorksS[toolIndex].length"
  2261. >
  2262. <div
  2263. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2264. :key="sIndex"
  2265. class="noWorksName"
  2266. >
  2267. <el-tooltip
  2268. effect="dark"
  2269. :content="s.student"
  2270. placement="top"
  2271. >
  2272. <span>{{ s.student }}</span>
  2273. </el-tooltip>
  2274. </div>
  2275. </div>
  2276. </div>
  2277. <div
  2278. v-if="
  2279. tType &&
  2280. tType == 2 &&
  2281. !sIsOpen &&
  2282. tool.tool.indexOf(62) != -1
  2283. "
  2284. class="worksBox"
  2285. >
  2286. <div
  2287. class="zuoyeYulan"
  2288. v-if="workStudent[toolIndex].length > 0"
  2289. >
  2290. <span class="worksTitle">作业预览</span>
  2291. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2292. </div>
  2293. <div
  2294. class="worksDetailBox"
  2295. v-if="workStudent[toolIndex].length > 0"
  2296. >
  2297. <div
  2298. class="isWorksName2"
  2299. v-for="(w, wIndex) in workStudent[toolIndex]"
  2300. :key="wIndex"
  2301. @click="
  2302. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2303. "
  2304. >
  2305. {{ w.sName }}
  2306. <img
  2307. class="deleteImg deleteImg2"
  2308. src="../../assets/deleteworks.png"
  2309. v-if="w.userid == userid || tType == 1 || tType == 4"
  2310. @click.stop="deleteWorks(w.wid)"
  2311. alt
  2312. />
  2313. </div>
  2314. </div>
  2315. </div>
  2316. <div
  2317. v-if="
  2318. tType &&
  2319. tType == 2 &&
  2320. !sIsOpen &&
  2321. tool.tool.indexOf(45) != -1
  2322. "
  2323. class="worksBox"
  2324. >
  2325. <div
  2326. class="zuoyeYulan"
  2327. v-if="workStudent[toolIndex].length > 0"
  2328. >
  2329. <span class="worksTitle">作业预览</span>
  2330. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2331. </div>
  2332. <div
  2333. class="worksDetailBox"
  2334. v-if="workStudent[toolIndex].length > 0"
  2335. >
  2336. <div
  2337. class="isWorksName2"
  2338. v-for="(w, wIndex) in workStudent[toolIndex]"
  2339. :key="wIndex"
  2340. @click="
  2341. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2342. "
  2343. >
  2344. {{ w.sName }}
  2345. <img
  2346. class="deleteImg deleteImg2"
  2347. src="../../assets/deleteworks.png"
  2348. v-if="w.userid == userid || tType == 1 || tType == 4"
  2349. @click.stop="deleteWorks(w.wid)"
  2350. alt
  2351. />
  2352. </div>
  2353. </div>
  2354. </div>
  2355. <div
  2356. v-if="
  2357. tType &&
  2358. tType == 2 &&
  2359. !sIsOpen &&
  2360. tool.tool.indexOf(69) != -1
  2361. "
  2362. class="worksBox"
  2363. >
  2364. <div
  2365. class="zuoyeYulan"
  2366. v-if="workStudent[toolIndex].length > 0"
  2367. >
  2368. <span class="worksTitle">作业预览</span>
  2369. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2370. </div>
  2371. <div
  2372. class="worksDetailBox"
  2373. v-if="workStudent[toolIndex].length > 0"
  2374. >
  2375. <div
  2376. class="isWorksName2"
  2377. v-for="(w, wIndex) in workStudent[toolIndex]"
  2378. :key="wIndex"
  2379. @click="
  2380. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2381. "
  2382. >
  2383. {{ w.sName }}
  2384. <img
  2385. class="deleteImg deleteImg2"
  2386. src="../../assets/deleteworks.png"
  2387. v-if="w.userid == userid || tType == 1 || tType == 4"
  2388. @click.stop="deleteWorks(w.wid)"
  2389. alt
  2390. />
  2391. </div>
  2392. </div>
  2393. </div>
  2394. <div
  2395. v-if="
  2396. tType &&
  2397. tType == 2 &&
  2398. !sIsOpen &&
  2399. tool.tool.indexOf(15) != -1
  2400. "
  2401. class="worksBox"
  2402. >
  2403. <div
  2404. class="zuoyeYulan"
  2405. v-if="workStudent[toolIndex].length > 0"
  2406. >
  2407. <span class="worksTitle">作业预览</span>
  2408. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2409. </div>
  2410. <div
  2411. class="worksDetailBox"
  2412. v-if="workStudent[toolIndex].length > 0"
  2413. >
  2414. <div
  2415. class="works"
  2416. v-for="(w, wIndex) in workStudent[toolIndex]"
  2417. :key="wIndex"
  2418. >
  2419. <div class="workImg">
  2420. <!-- <img
  2421. src="../../assets/icon/works/noImg.png"
  2422. @click="openTools(15, toolIndex, taskCount, w.works)"
  2423. alt=""
  2424. />-->
  2425. <div class="answerBg">
  2426. <!-- <div>{{ w.sName }}</div> -->
  2427. <el-tooltip
  2428. class="item"
  2429. effect="light"
  2430. :content="JSON.parse(w.works)[0].answer"
  2431. placement="top"
  2432. >
  2433. <div class="answerContent">
  2434. {{ JSON.parse(w.works)[0].answer }}
  2435. </div>
  2436. </el-tooltip>
  2437. <div
  2438. class="answerScore"
  2439. v-if="w.score"
  2440. @click.stop="openScore(w)"
  2441. :class="{
  2442. rightW:
  2443. w.userid == userid || tType == 1 || tType == 4
  2444. }"
  2445. >
  2446. {{ JSON.parse(w.score).wScore }}分
  2447. </div>
  2448. <div
  2449. class="answerScore"
  2450. @click.stop="openScore(w)"
  2451. v-else-if="courseDetail.userid == userid"
  2452. :class="{
  2453. rightW:
  2454. w.userid == userid || tType == 1 || tType == 4
  2455. }"
  2456. >
  2457. 评分
  2458. </div>
  2459. <img
  2460. class="deleteImg"
  2461. src="../../assets/deleteworks.png"
  2462. v-if="
  2463. w.userid == userid || tType == 1 || tType == 4
  2464. "
  2465. @click.stop="deleteWorks(w.wid)"
  2466. alt
  2467. />
  2468. </div>
  2469. <div class="comment">
  2470. <div class="worksName">
  2471. <div>{{ w.sName }}</div>
  2472. </div>
  2473. </div>
  2474. </div>
  2475. </div>
  2476. </div>
  2477. </div>
  2478. <div
  2479. v-if="
  2480. tType &&
  2481. tType == 2 &&
  2482. !sIsOpen &&
  2483. tool.tool.indexOf(1) != -1
  2484. "
  2485. class="worksBox"
  2486. >
  2487. <div
  2488. class="zuoyeYulan"
  2489. v-if="workStudent[toolIndex].length > 0"
  2490. >
  2491. <span class="worksTitle">作业预览</span>
  2492. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2493. </div>
  2494. <div
  2495. class="worksDetailBox"
  2496. v-if="workStudent[toolIndex].length > 0"
  2497. >
  2498. <div
  2499. class="works"
  2500. style="
  2501. width: 200px;
  2502. height: 140px;
  2503. margin: 10px 10px 10px 0;
  2504. box-shadow: 0 0 6px 1px #dfdada;
  2505. "
  2506. v-for="(w, wIndex) in workStudent[toolIndex]"
  2507. :key="wIndex"
  2508. >
  2509. <div class="workImg">
  2510. <img
  2511. :src="w.works"
  2512. @click="previewImg(w.works, w)"
  2513. alt
  2514. />
  2515. <div
  2516. class="answerScore"
  2517. v-if="w.score"
  2518. @click.stop="openScore(w)"
  2519. :class="{
  2520. rightW:
  2521. w.userid == userid || tType == 1 || tType == 4
  2522. }"
  2523. >
  2524. {{ JSON.parse(w.score).wScore }}分
  2525. </div>
  2526. <div
  2527. class="answerScore"
  2528. @click.stop="openScore(w)"
  2529. v-else-if="courseDetail.userid == userid"
  2530. :class="{
  2531. rightW:
  2532. w.userid == userid || tType == 1 || tType == 4
  2533. }"
  2534. >
  2535. 评分
  2536. </div>
  2537. <div
  2538. class="stuLookScore"
  2539. v-if="
  2540. w.userid == userid ||
  2541. (tType == 1 &&
  2542. courseDetail.state == 5 &&
  2543. ((chapInfoList[courseType].chapterInfo[0]
  2544. .taskJson[taskCount].eList &&
  2545. chapInfoList[courseType].chapterInfo[0]
  2546. .taskJson[taskCount].eList.length) ||
  2547. (tool.eList && tool.eList.length)))
  2548. "
  2549. >
  2550. <el-popover
  2551. placement="top"
  2552. width="318"
  2553. trigger="hover"
  2554. >
  2555. <markScore
  2556. :loading="AIloading[toolIndex][wIndex].loading"
  2557. :markScoreVisible="markScoreVisible"
  2558. :ref="`markSco${toolIndex}${wIndex}`"
  2559. @updateLoading="updateLoading"
  2560. @updateDocSco="updateDocSco"
  2561. @refreshOther="refreshOther"
  2562. @markScoreDig="markScoreDig"
  2563. :tool="tool"
  2564. :wIndex="wIndex"
  2565. :scoCon="w"
  2566. :toolIndex="toolIndex"
  2567. :key="refreshKey"
  2568. :stage="courseType"
  2569. :task="taskCount"
  2570. :scoTit="
  2571. chapInfoList[courseType].chapterInfo[0]
  2572. .taskJson[taskCount].eList
  2573. "
  2574. >
  2575. </markScore>
  2576. <div
  2577. @click="
  2578. markScoreDig2(
  2579. w.sName,
  2580. worksStudent,
  2581. w.userid,
  2582. toolIndex,
  2583. chapInfoList[courseType].chapterInfo[0]
  2584. .taskJson[taskCount].eList,
  2585. AIloading[toolIndex][wIndex].loading,
  2586. tool
  2587. )
  2588. "
  2589. slot="reference"
  2590. >
  2591. <span v-if="AIloading[toolIndex][wIndex].sco">
  2592. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2593. </span>
  2594. <span v-else>
  2595. 评分
  2596. </span>
  2597. </div>
  2598. </el-popover>
  2599. </div>
  2600. <img
  2601. class="deleteImg"
  2602. src="../../assets/deleteworks.png"
  2603. v-if="
  2604. w.userid == userid || tType == 1 || tType == 4
  2605. "
  2606. @click.stop="deleteWorks(w.wid)"
  2607. alt
  2608. />
  2609. </div>
  2610. <div class="worksName">
  2611. <div>{{ w.sName }}</div>
  2612. </div>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. <div
  2617. v-if="
  2618. tType &&
  2619. tType == 2 &&
  2620. !sIsOpen &&
  2621. tool.tool.indexOf(3) != -1
  2622. "
  2623. class="worksBox"
  2624. >
  2625. <div
  2626. class="zuoyeYulan"
  2627. v-if="workStudent[toolIndex].length > 0"
  2628. >
  2629. <span class="worksTitle">作业预览</span>
  2630. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2631. </div>
  2632. <div
  2633. class="worksDetailBox"
  2634. v-if="workStudent[toolIndex].length > 0"
  2635. >
  2636. <div
  2637. class="works"
  2638. style="
  2639. width: 200px;
  2640. height: 140px;
  2641. margin: 10px 10px 10px 0;
  2642. box-shadow: 0 0 6px 1px #dfdada;
  2643. "
  2644. v-for="(w, wIndex) in workStudent[toolIndex]"
  2645. :key="wIndex"
  2646. >
  2647. <div class="workImg">
  2648. <img
  2649. :src="w.works"
  2650. @click="previewImg(w.works, w)"
  2651. alt
  2652. />
  2653. <div
  2654. class="answerScore"
  2655. v-if="w.score"
  2656. @click.stop="openScore(w)"
  2657. :class="{
  2658. rightW:
  2659. w.userid == userid || tType == 1 || tType == 4
  2660. }"
  2661. >
  2662. {{ JSON.parse(w.score).wScore }}分
  2663. </div>
  2664. <div
  2665. class="answerScore"
  2666. @click.stop="openScore(w)"
  2667. v-else-if="courseDetail.userid == userid"
  2668. :class="{
  2669. rightW:
  2670. w.userid == userid || tType == 1 || tType == 4
  2671. }"
  2672. >
  2673. 评分
  2674. </div>
  2675. <div
  2676. class="stuLookScore"
  2677. v-if="
  2678. w.userid == userid ||
  2679. (tType == 1 &&
  2680. courseDetail.state == 5 &&
  2681. ((chapInfoList[courseType].chapterInfo[0]
  2682. .taskJson[taskCount].eList &&
  2683. chapInfoList[courseType].chapterInfo[0]
  2684. .taskJson[taskCount].eList.length) ||
  2685. (tool.eList && tool.eList.length)))
  2686. "
  2687. >
  2688. <el-popover
  2689. placement="top"
  2690. width="318"
  2691. trigger="hover"
  2692. >
  2693. <markScore
  2694. :loading="AIloading[toolIndex][wIndex].loading"
  2695. :markScoreVisible="markScoreVisible"
  2696. :ref="`markSco${toolIndex}${wIndex}`"
  2697. @updateLoading="updateLoading"
  2698. @updateDocSco="updateDocSco"
  2699. @refreshOther="refreshOther"
  2700. @markScoreDig="markScoreDig"
  2701. :tool="tool"
  2702. :wIndex="wIndex"
  2703. :scoCon="w"
  2704. :toolIndex="toolIndex"
  2705. :key="refreshKey"
  2706. :stage="courseType"
  2707. :task="taskCount"
  2708. :scoTit="
  2709. chapInfoList[courseType].chapterInfo[0]
  2710. .taskJson[taskCount].eList
  2711. "
  2712. >
  2713. </markScore>
  2714. <div
  2715. @click="
  2716. markScoreDig2(
  2717. w.sName,
  2718. worksStudent,
  2719. w.userid,
  2720. toolIndex,
  2721. chapInfoList[courseType].chapterInfo[0]
  2722. .taskJson[taskCount].eList,
  2723. AIloading[toolIndex][wIndex].loading,
  2724. tool
  2725. )
  2726. "
  2727. slot="reference"
  2728. >
  2729. <span v-if="AIloading[toolIndex][wIndex].sco">
  2730. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2731. </span>
  2732. <span v-else>
  2733. 评分
  2734. </span>
  2735. </div>
  2736. </el-popover>
  2737. </div>
  2738. <img
  2739. class="deleteImg"
  2740. src="../../assets/deleteworks.png"
  2741. v-if="
  2742. w.userid == userid || tType == 1 || tType == 4
  2743. "
  2744. @click.stop="deleteWorks(w.wid)"
  2745. alt
  2746. />
  2747. </div>
  2748. <div class="worksName">
  2749. <div>{{ w.sName }}</div>
  2750. </div>
  2751. </div>
  2752. </div>
  2753. </div>
  2754. <div
  2755. v-if="
  2756. tType &&
  2757. tType == 2 &&
  2758. !sIsOpen &&
  2759. tool.tool.indexOf(6) != -1
  2760. "
  2761. class="worksBox"
  2762. >
  2763. <div
  2764. class="zuoyeYulan"
  2765. v-if="workStudent[toolIndex].length > 0"
  2766. >
  2767. <span class="worksTitle">作业预览</span>
  2768. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2769. </div>
  2770. <div
  2771. class="worksDetailBox"
  2772. v-if="workStudent[toolIndex].length > 0"
  2773. >
  2774. <div
  2775. class="works"
  2776. style="
  2777. width: 200px;
  2778. height: 140px;
  2779. margin: 10px 10px 10px 0;
  2780. box-shadow: 0 0 6px 1px #dfdada;
  2781. "
  2782. v-for="(w, wIndex) in workStudent[toolIndex]"
  2783. :key="wIndex"
  2784. >
  2785. <div class="workImg">
  2786. <img
  2787. :src="w.works"
  2788. @click="previewImg(w.works, w)"
  2789. alt
  2790. />
  2791. <div
  2792. class="answerScore"
  2793. v-if="w.score"
  2794. @click.stop="openScore(w)"
  2795. :class="{
  2796. rightW:
  2797. w.userid == userid || tType == 1 || tType == 4
  2798. }"
  2799. >
  2800. {{ JSON.parse(w.score).wScore }}分
  2801. </div>
  2802. <div
  2803. class="answerScore"
  2804. @click.stop="openScore(w)"
  2805. v-else-if="courseDetail.userid == userid"
  2806. :class="{
  2807. rightW:
  2808. w.userid == userid || tType == 1 || tType == 4
  2809. }"
  2810. >
  2811. 评分
  2812. </div>
  2813. <img
  2814. class="deleteImg"
  2815. src="../../assets/deleteworks.png"
  2816. v-if="
  2817. w.userid == userid || tType == 1 || tType == 4
  2818. "
  2819. @click.stop="deleteWorks(w.wid)"
  2820. alt
  2821. />
  2822. </div>
  2823. <div class="worksName">
  2824. <div>{{ w.sName }}</div>
  2825. </div>
  2826. </div>
  2827. </div>
  2828. </div>
  2829. <div
  2830. v-if="
  2831. tType &&
  2832. tType == 2 &&
  2833. !sIsOpen &&
  2834. tool.tool.indexOf(7) != -1
  2835. "
  2836. class="worksBox"
  2837. >
  2838. <div
  2839. class="zuoyeYulan"
  2840. v-if="workStudent[toolIndex].length > 0"
  2841. >
  2842. <span class="worksTitle">作业预览</span>
  2843. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2844. </div>
  2845. <div
  2846. class="worksDetailBox"
  2847. v-if="workStudent[toolIndex].length > 0"
  2848. >
  2849. <div
  2850. class="works"
  2851. style="
  2852. width: 200px;
  2853. height: 140px;
  2854. margin: 10px 10px 10px 0;
  2855. box-shadow: 0 0 6px 1px #dfdada;
  2856. "
  2857. v-for="(w, wIndex) in workStudent[toolIndex]"
  2858. :key="wIndex"
  2859. >
  2860. <div class="workImg">
  2861. <img
  2862. :src="w.works"
  2863. @click="previewImg(w.works, w)"
  2864. alt
  2865. />
  2866. <div
  2867. class="answerScore"
  2868. v-if="w.score"
  2869. @click.stop="openScore(w)"
  2870. :class="{
  2871. rightW:
  2872. w.userid == userid || tType == 1 || tType == 4
  2873. }"
  2874. >
  2875. {{ JSON.parse(w.score).wScore }}分
  2876. </div>
  2877. <div
  2878. class="answerScore"
  2879. @click.stop="openScore(w)"
  2880. v-else-if="courseDetail.userid == userid"
  2881. :class="{
  2882. rightW:
  2883. w.userid == userid || tType == 1 || tType == 4
  2884. }"
  2885. >
  2886. 评分
  2887. </div>
  2888. <div
  2889. class="stuLookScore"
  2890. v-if="
  2891. w.userid == userid ||
  2892. (tType == 1 &&
  2893. courseDetail.state == 5 &&
  2894. ((chapInfoList[courseType].chapterInfo[0]
  2895. .taskJson[taskCount].eList &&
  2896. chapInfoList[courseType].chapterInfo[0]
  2897. .taskJson[taskCount].eList.length) ||
  2898. (tool.eList && tool.eList.length)))
  2899. "
  2900. >
  2901. <el-popover
  2902. placement="top"
  2903. width="318"
  2904. trigger="hover"
  2905. >
  2906. <markScore
  2907. :loading="AIloading[toolIndex][wIndex].loading"
  2908. :markScoreVisible="markScoreVisible"
  2909. :ref="`markSco${toolIndex}${wIndex}`"
  2910. @updateLoading="updateLoading"
  2911. @updateDocSco="updateDocSco"
  2912. @refreshOther="refreshOther"
  2913. @markScoreDig="markScoreDig"
  2914. :tool="tool"
  2915. :wIndex="wIndex"
  2916. :scoCon="w"
  2917. :toolIndex="toolIndex"
  2918. :key="refreshKey"
  2919. :stage="courseType"
  2920. :task="taskCount"
  2921. :scoTit="
  2922. chapInfoList[courseType].chapterInfo[0]
  2923. .taskJson[taskCount].eList
  2924. "
  2925. >
  2926. </markScore>
  2927. <div
  2928. @click="
  2929. markScoreDig2(
  2930. w.sName,
  2931. worksStudent,
  2932. w.userid,
  2933. toolIndex,
  2934. chapInfoList[courseType].chapterInfo[0]
  2935. .taskJson[taskCount].eList,
  2936. AIloading[toolIndex][wIndex].loading,
  2937. tool
  2938. )
  2939. "
  2940. slot="reference"
  2941. >
  2942. <span v-if="AIloading[toolIndex][wIndex].sco">
  2943. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2944. </span>
  2945. <span v-else>
  2946. 评分
  2947. </span>
  2948. </div>
  2949. </el-popover>
  2950. </div>
  2951. <img
  2952. class="deleteImg"
  2953. src="../../assets/deleteworks.png"
  2954. v-if="
  2955. w.userid == userid || tType == 1 || tType == 4
  2956. "
  2957. @click.stop="deleteWorks(w.wid)"
  2958. alt
  2959. />
  2960. </div>
  2961. <div class="worksName">
  2962. <div>{{ w.sName }}</div>
  2963. </div>
  2964. </div>
  2965. </div>
  2966. </div>
  2967. <div
  2968. v-if="
  2969. tType &&
  2970. tType == 2 &&
  2971. !sIsOpen &&
  2972. tool.tool.indexOf(26) != -1
  2973. "
  2974. class="worksBox"
  2975. >
  2976. <div
  2977. class="zuoyeYulan"
  2978. v-if="workStudent[toolIndex].length > 0"
  2979. >
  2980. <span class="worksTitle">作业预览</span>
  2981. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2982. </div>
  2983. <div
  2984. class="worksDetailBox"
  2985. v-if="workStudent[toolIndex].length > 0"
  2986. >
  2987. <div
  2988. class="works"
  2989. style="
  2990. width: 200px;
  2991. height: 140px;
  2992. margin: 10px 10px 10px 0;
  2993. box-shadow: 0 0 6px 1px #dfdada;
  2994. "
  2995. v-for="(w, wIndex) in workStudent[toolIndex]"
  2996. :key="wIndex"
  2997. >
  2998. <div class="workImg">
  2999. <img
  3000. :src="w.works"
  3001. @click="previewImg(w.works, w)"
  3002. alt
  3003. />
  3004. <img
  3005. class="deleteImg"
  3006. src="../../assets/deleteworks.png"
  3007. v-if="
  3008. w.userid == userid || tType == 1 || tType == 4
  3009. "
  3010. @click.stop="deleteWorks(w.wid)"
  3011. alt
  3012. />
  3013. </div>
  3014. <div class="worksName">
  3015. <div>{{ w.sName }}</div>
  3016. </div>
  3017. </div>
  3018. </div>
  3019. </div>
  3020. <div
  3021. v-if="
  3022. tType &&
  3023. ((tType == 2 && sIsOpen == true) ||
  3024. tType == 1 ||
  3025. tType == 4) &&
  3026. tool.tool.indexOf(16) != -1
  3027. "
  3028. class="worksBox"
  3029. >
  3030. <div
  3031. class="zuoyeYulan"
  3032. style="display: flex;justify-content: space-between;align-items: center;"
  3033. v-if="
  3034. (worksStudent.length &&
  3035. worksStudent[toolIndex].length > 0) ||
  3036. (courseGroup.group && courseGroup.group.length)
  3037. "
  3038. >
  3039. <div class="worksTop">
  3040. <div>作业预览</div>
  3041. <div
  3042. class="corOpen"
  3043. @click="contract(toolIndex)"
  3044. v-if="
  3045. isCloseList[toolIndex].isCloseBoolean &&
  3046. isCloseList[toolIndex].isClose == 0
  3047. "
  3048. >
  3049. 折叠
  3050. </div>
  3051. <div
  3052. class="corOpen"
  3053. @click="contract(toolIndex)"
  3054. v-if="isCloseList[toolIndex].isClose == 1"
  3055. >
  3056. 展开
  3057. </div>
  3058. </div>
  3059. <div
  3060. style="display: flex;"
  3061. v-if="
  3062. (courseDetail.userid == userid ||
  3063. (courseDetail.course_teacher &&
  3064. courseDetail.course_teacher.indexOf(userid) !=
  3065. -1)) &&
  3066. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3067. taskCount
  3068. ].eList &&
  3069. chapInfoList[courseType].chapterInfo[0].taskJson[
  3070. taskCount
  3071. ].eList.length) ||
  3072. (tool.eList && tool.eList.length)) &&
  3073. courseDetail.state == 5
  3074. "
  3075. >
  3076. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 5"> -->
  3077. <div
  3078. style="margin-right:10px"
  3079. class="ScoreBtn"
  3080. @click="
  3081. resetLoopEva(
  3082. worksStudent[toolIndex],
  3083. chapInfoList[courseType].chapterInfo[0].taskJson[
  3084. taskCount
  3085. ].eList,
  3086. courseType,
  3087. taskCount,
  3088. toolIndex,
  3089. tool.toolDetail,
  3090. worksStudent
  3091. )
  3092. "
  3093. >
  3094. 一键重置
  3095. </div>
  3096. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3097. <img
  3098. src="../../assets/icon/newIcons/rootImg.png"
  3099. alt=""
  3100. />
  3101. AI评分
  3102. </div>
  3103. <div
  3104. class="ScoreBtn"
  3105. v-else-if="!loopLoading[toolIndex].loading"
  3106. @click="
  3107. loopEva(
  3108. worksStudent[toolIndex],
  3109. chapInfoList[courseType].chapterInfo[0].taskJson[
  3110. taskCount
  3111. ].eList,
  3112. courseType,
  3113. taskCount,
  3114. toolIndex,
  3115. tool.toolDetail,
  3116. chapInfoList[courseType].chapterInfo[0].taskJson[
  3117. taskCount
  3118. ].taskDetail,
  3119. tool
  3120. )
  3121. "
  3122. >
  3123. <img
  3124. src="../../assets/icon/newIcons/rootImg.png"
  3125. alt=""
  3126. />
  3127. AI评分
  3128. </div>
  3129. <div class="ScoreBtn" v-else>
  3130. <img
  3131. src="../../assets/icon/newIcons/rootImg.png"
  3132. alt=""
  3133. />
  3134. 正在评分
  3135. </div>
  3136. </div>
  3137. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3138. </div>
  3139. <div
  3140. class="group_workBox"
  3141. v-for="(g, gindex) in courseGroup.group"
  3142. :key="gindex"
  3143. >
  3144. <div class="group_box">
  3145. <div class="group_title">
  3146. <el-tooltip
  3147. class="item"
  3148. effect="light"
  3149. :content="g.name"
  3150. placement="top"
  3151. >
  3152. <div class="group_name">{{ g.name }}</div>
  3153. </el-tooltip>
  3154. </div>
  3155. <div
  3156. class="group_work"
  3157. v-if="
  3158. g.works &&
  3159. g.works.length &&
  3160. g.works[toolIndex].length
  3161. "
  3162. >
  3163. <div
  3164. class="works"
  3165. style="
  3166. width: 200px;
  3167. height: 140px;
  3168. margin: 10px 10px 10px 0;
  3169. border-radius: 15px;
  3170. box-shadow: 0 0 6px 1px #dfdada;
  3171. "
  3172. v-for="(w, wIndex) in g.works[toolIndex]"
  3173. :key="wIndex"
  3174. :class="w.type == 1 ? 'isTypeOne' : ''"
  3175. >
  3176. <div class="workImg" v-if="w.type == 0">
  3177. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3178. <img
  3179. :src="w.works"
  3180. @click="previewImg(w.works, w)"
  3181. alt
  3182. />
  3183. <div
  3184. class="answerScore"
  3185. v-if="w.score"
  3186. @click.stop="openScore(w)"
  3187. :class="{
  3188. rightW:
  3189. w.userid == userid ||
  3190. tType == 1 ||
  3191. tType == 4 ||
  3192. w.ateacher == userid
  3193. }"
  3194. >
  3195. {{ JSON.parse(w.score).wScore }}分
  3196. </div>
  3197. <div
  3198. class="answerScore"
  3199. @click.stop="openScore(w)"
  3200. v-else-if="courseDetail.userid == userid"
  3201. :class="{
  3202. rightW:
  3203. w.userid == userid ||
  3204. tType == 1 ||
  3205. tType == 4 ||
  3206. w.ateacher == userid
  3207. }"
  3208. >
  3209. 评分
  3210. </div>
  3211. <img
  3212. class="deleteImg"
  3213. src="../../assets/deleteworks.png"
  3214. v-if="
  3215. w.userid == userid || tType == 1 || tType == 4
  3216. "
  3217. @click.stop="deleteWorks(w.wid)"
  3218. alt
  3219. />
  3220. </div>
  3221. <div class="workImg" v-if="w.type == 1">
  3222. <img :src="word" @click="openFile(w.works)" alt />
  3223. <!-- @click="openFile(w.works)" -->
  3224. <div
  3225. class="answerScore"
  3226. v-if="w.score"
  3227. @click.stop="openScore(w)"
  3228. :class="{
  3229. rightW:
  3230. w.userid == userid ||
  3231. tType == 1 ||
  3232. tType == 4 ||
  3233. w.ateacher == userid
  3234. }"
  3235. >
  3236. {{ JSON.parse(w.score).wScore }}分
  3237. </div>
  3238. <div
  3239. class="answerScore"
  3240. @click.stop="openScore(w)"
  3241. v-else-if="courseDetail.userid == userid"
  3242. :class="{
  3243. rightW:
  3244. w.userid == userid ||
  3245. tType == 1 ||
  3246. tType == 4 ||
  3247. w.ateacher == userid
  3248. }"
  3249. >
  3250. 评分
  3251. </div>
  3252. <img
  3253. class="deleteImg"
  3254. src="../../assets/deleteworks.png"
  3255. v-if="
  3256. w.userid == userid || tType == 1 || tType == 4
  3257. "
  3258. @click.stop="deleteWorks(w.wid)"
  3259. alt
  3260. />
  3261. </div>
  3262. <div class="workImg" v-if="w.type == 3">
  3263. <img
  3264. style="cursor: pointer"
  3265. :src="video"
  3266. @click="openVideo(w)"
  3267. alt
  3268. />
  3269. <!-- @click="openVideo(w.works)" -->
  3270. <div
  3271. class="answerScore"
  3272. v-if="w.score"
  3273. @click.stop="openScore(w)"
  3274. :class="{
  3275. rightW:
  3276. w.userid == userid ||
  3277. tType == 1 ||
  3278. tType == 4 ||
  3279. w.ateacher == userid
  3280. }"
  3281. >
  3282. {{ JSON.parse(w.score).wScore }}分
  3283. </div>
  3284. <div
  3285. class="answerScore"
  3286. @click.stop="openScore(w)"
  3287. v-else-if="courseDetail.userid == userid"
  3288. :class="{
  3289. rightW:
  3290. w.userid == userid ||
  3291. tType == 1 ||
  3292. tType == 4 ||
  3293. w.ateacher == userid
  3294. }"
  3295. >
  3296. 评分
  3297. </div>
  3298. <img
  3299. class="deleteImg"
  3300. src="../../assets/deleteworks.png"
  3301. v-if="
  3302. w.userid == userid || tType == 1 || tType == 4
  3303. "
  3304. @click.stop="deleteWorks(w.wid)"
  3305. alt
  3306. />
  3307. </div>
  3308. <div class="workImg" v-if="w.type == 12">
  3309. <img
  3310. style="cursor: pointer"
  3311. :src="word2"
  3312. @click="downloadFile(w.works)"
  3313. alt
  3314. />
  3315. <!-- @click="openVideo(w.works)" -->
  3316. <div
  3317. class="answerScore"
  3318. v-if="w.score"
  3319. @click.stop="openScore(w)"
  3320. :class="{
  3321. rightW:
  3322. w.userid == userid ||
  3323. tType == 1 ||
  3324. tType == 4 ||
  3325. w.ateacher == userid
  3326. }"
  3327. >
  3328. {{ JSON.parse(w.score).wScore }}分
  3329. </div>
  3330. <div
  3331. class="answerScore"
  3332. @click.stop="openScore(w)"
  3333. v-else-if="courseDetail.userid == userid"
  3334. :class="{
  3335. rightW:
  3336. w.userid == userid ||
  3337. tType == 1 ||
  3338. tType == 4 ||
  3339. w.ateacher == userid
  3340. }"
  3341. >
  3342. 评分
  3343. </div>
  3344. <img
  3345. class="deleteImg"
  3346. src="../../assets/deleteworks.png"
  3347. v-if="
  3348. w.userid == userid || tType == 1 || tType == 4
  3349. "
  3350. @click.stop="deleteWorks(w.wid)"
  3351. alt
  3352. />
  3353. </div>
  3354. <div class="comment" style="min-width: 200px">
  3355. <div class="worksName">
  3356. <div>{{ w.sName }}</div>
  3357. </div>
  3358. <div class="commentList">
  3359. <div class="commentList">
  3360. <div
  3361. class="commentImg"
  3362. @click="
  3363. isLikes(
  3364. w.wid,
  3365. userid,
  3366. 1,
  3367. null,
  3368. w.isLikes,
  3369. w.sName
  3370. )
  3371. "
  3372. >
  3373. <img
  3374. :src="w.isLikes == true ? likes : noLikes"
  3375. alt=""
  3376. />
  3377. </div>
  3378. <div>{{ w.likesCount }}</div>
  3379. </div>
  3380. <div
  3381. class="commentList"
  3382. style="margin-right: 15px"
  3383. >
  3384. <div
  3385. class="commentImg"
  3386. @click="
  3387. commentOther(
  3388. w,
  3389. toolIndex,
  3390. wIndex,
  3391. null,
  3392. g.id
  3393. )
  3394. "
  3395. >
  3396. <img
  3397. src="../../assets/icon/comment/comment.png"
  3398. alt=""
  3399. />
  3400. </div>
  3401. <div>{{ w.commentCount }}</div>
  3402. </div>
  3403. </div>
  3404. </div>
  3405. </div>
  3406. </div>
  3407. <div class="group_work" v-else>暂无提交作业</div>
  3408. </div>
  3409. </div>
  3410. <div
  3411. :id="'tool-' + toolIndex"
  3412. :style="{
  3413. height:
  3414. isCloseList[toolIndex].isClose == 1
  3415. ? retrnToolHeight('tool-' + toolIndex)
  3416. : 'auto',
  3417. overflow:
  3418. isCloseList[toolIndex].isClose == 1
  3419. ? 'hidden'
  3420. : 'unset'
  3421. }"
  3422. class="worksDetailBox"
  3423. v-if="
  3424. worksStudent.length &&
  3425. worksStudent[toolIndex].length > 0
  3426. "
  3427. >
  3428. <div
  3429. class="works"
  3430. style="
  3431. width: 200px;
  3432. height: 140px;
  3433. margin: 10px 10px 10px 0;
  3434. border-radius: 15px;
  3435. box-shadow: 0 0 6px 1px #dfdada;
  3436. "
  3437. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3438. :key="wIndex"
  3439. :class="w.type == 1 ? 'isTypeOne' : ''"
  3440. >
  3441. <div class="workImg" v-if="w.type == 0">
  3442. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3443. <img
  3444. :src="w.works"
  3445. @click="previewImg(w.works, w)"
  3446. alt
  3447. />
  3448. <div
  3449. class="answerScore"
  3450. v-if="w.score"
  3451. @click.stop="openScore(w)"
  3452. :class="{
  3453. rightW:
  3454. w.userid == userid ||
  3455. tType == 1 ||
  3456. tType == 4 ||
  3457. w.ateacher == userid
  3458. }"
  3459. >
  3460. {{ JSON.parse(w.score).wScore }}分
  3461. </div>
  3462. <div
  3463. class="answerScore"
  3464. @click.stop="openScore(w)"
  3465. v-else-if="
  3466. courseDetail.userid == userid &&
  3467. courseDetail.state != 5 &&
  3468. chapInfoList[courseType].chapterInfo[0]
  3469. .taskJson[taskCount].eList &&
  3470. chapInfoList[courseType].chapterInfo[0]
  3471. .taskJson[taskCount].eList.length
  3472. "
  3473. :class="{
  3474. rightW:
  3475. w.userid == userid ||
  3476. tType == 1 ||
  3477. tType == 4 ||
  3478. w.ateacher == userid
  3479. }"
  3480. >
  3481. 评分
  3482. </div>
  3483. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3484. <div
  3485. v-else-if="
  3486. (courseDetail.userid == userid ||
  3487. (courseDetail.course_teacher &&
  3488. courseDetail.course_teacher.indexOf(userid) !=
  3489. -1) ||
  3490. (w.userid == userid && sIsOpen)) &&
  3491. courseDetail.state == 5 &&
  3492. ((chapInfoList[courseType].chapterInfo[0]
  3493. .taskJson[taskCount].eList &&
  3494. chapInfoList[courseType].chapterInfo[0]
  3495. .taskJson[taskCount].eList.length) ||
  3496. (tool.eList && tool.eList.length))
  3497. "
  3498. >
  3499. <el-popover
  3500. placement="top"
  3501. width="318"
  3502. :disabled="AIloading[toolIndex][wIndex].loading"
  3503. trigger="hover"
  3504. >
  3505. <markScore
  3506. :loading="AIloading[toolIndex][wIndex].loading"
  3507. :markScoreVisible="markScoreVisible"
  3508. :ref="`markSco${toolIndex}${wIndex}`"
  3509. @updateLoading="updateLoading"
  3510. @updateDocSco="updateDocSco"
  3511. @refreshOther="refreshOther"
  3512. @markScoreDig="markScoreDig"
  3513. :tool="tool"
  3514. :wIndex="wIndex"
  3515. :scoCon="w"
  3516. :toolIndex="toolIndex"
  3517. :key="refreshKey"
  3518. :stage="courseType"
  3519. :task="taskCount"
  3520. :scoTit="
  3521. chapInfoList[courseType].chapterInfo[0]
  3522. .taskJson[taskCount].eList
  3523. "
  3524. >
  3525. </markScore>
  3526. <div
  3527. class="answerScore"
  3528. @click="
  3529. markScoreDig2(
  3530. w.sName,
  3531. worksStudent,
  3532. w.userid,
  3533. toolIndex,
  3534. chapInfoList[courseType].chapterInfo[0]
  3535. .taskJson[taskCount].eList,
  3536. AIloading[toolIndex][wIndex].loading,
  3537. tool
  3538. )
  3539. "
  3540. slot="reference"
  3541. :class="{
  3542. rightW:
  3543. w.userid == userid ||
  3544. tType == 1 ||
  3545. tType == 4 ||
  3546. w.ateacher == userid
  3547. }"
  3548. >
  3549. <span v-if="AIloading[toolIndex][wIndex].sco">
  3550. {{
  3551. AIloading[toolIndex][wIndex].loading
  3552. ? "评分中"
  3553. : AIloading[toolIndex][wIndex].sco + "分"
  3554. }}
  3555. </span>
  3556. <span v-else>
  3557. {{
  3558. AIloading[toolIndex][wIndex].loading
  3559. ? "评分中"
  3560. : "评分"
  3561. }}
  3562. </span>
  3563. </div>
  3564. </el-popover>
  3565. </div>
  3566. <img
  3567. class="deleteImg"
  3568. src="../../assets/deleteworks.png"
  3569. v-if="
  3570. w.userid == userid || tType == 1 || tType == 4
  3571. "
  3572. @click.stop="deleteWorks(w.wid)"
  3573. alt
  3574. />
  3575. </div>
  3576. <div class="workImg" v-if="w.type == 1">
  3577. <img :src="word" @click="openFile(w.works)" alt />
  3578. <!-- @click="openFile(w.works)" -->
  3579. <div
  3580. class="answerScore"
  3581. v-if="w.score"
  3582. @click.stop="openScore(w)"
  3583. :class="{
  3584. rightW:
  3585. w.userid == userid ||
  3586. tType == 1 ||
  3587. tType == 4 ||
  3588. w.ateacher == userid
  3589. }"
  3590. >
  3591. {{ JSON.parse(w.score).wScore }}分
  3592. </div>
  3593. <div
  3594. class="answerScore"
  3595. @click.stop="openScore(w)"
  3596. v-else-if="
  3597. courseDetail.userid == userid &&
  3598. courseDetail.state != 5 &&
  3599. chapInfoList[courseType].chapterInfo[0]
  3600. .taskJson[taskCount].eList &&
  3601. chapInfoList[courseType].chapterInfo[0]
  3602. .taskJson[taskCount].eList.length
  3603. "
  3604. :class="{
  3605. rightW:
  3606. w.userid == userid ||
  3607. tType == 1 ||
  3608. tType == 4 ||
  3609. w.ateacher == userid
  3610. }"
  3611. >
  3612. 评分
  3613. </div>
  3614. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3615. <div
  3616. v-else-if="
  3617. (courseDetail.userid == userid ||
  3618. (courseDetail.course_teacher &&
  3619. courseDetail.course_teacher.indexOf(userid) !=
  3620. -1) ||
  3621. (w.userid == userid && sIsOpen)) &&
  3622. courseDetail.state == 5 &&
  3623. ((chapInfoList[courseType].chapterInfo[0]
  3624. .taskJson[taskCount].eList &&
  3625. chapInfoList[courseType].chapterInfo[0]
  3626. .taskJson[taskCount].eList.length) ||
  3627. (tool.eList && tool.eList.length))
  3628. "
  3629. >
  3630. <el-popover
  3631. placement="top"
  3632. width="318"
  3633. :disabled="AIloading[toolIndex][wIndex].loading"
  3634. trigger="hover"
  3635. >
  3636. <markScore
  3637. :loading="AIloading[toolIndex][wIndex].loading"
  3638. :markScoreVisible="markScoreVisible"
  3639. :ref="`markSco${toolIndex}${wIndex}`"
  3640. @updateLoading="updateLoading"
  3641. @updateDocSco="updateDocSco"
  3642. @refreshOther="refreshOther"
  3643. @markScoreDig="markScoreDig"
  3644. :tool="tool"
  3645. :wIndex="wIndex"
  3646. :scoCon="w"
  3647. :toolIndex="toolIndex"
  3648. :key="refreshKey"
  3649. :stage="courseType"
  3650. :task="taskCount"
  3651. :scoTit="
  3652. chapInfoList[courseType].chapterInfo[0]
  3653. .taskJson[taskCount].eList
  3654. "
  3655. >
  3656. </markScore>
  3657. <div
  3658. class="answerScore"
  3659. @click="
  3660. markScoreDig2(
  3661. w.sName,
  3662. worksStudent,
  3663. w.userid,
  3664. toolIndex,
  3665. chapInfoList[courseType].chapterInfo[0]
  3666. .taskJson[taskCount].eList,
  3667. AIloading[toolIndex][wIndex].loading,
  3668. tool
  3669. )
  3670. "
  3671. slot="reference"
  3672. :class="{
  3673. rightW:
  3674. w.userid == userid ||
  3675. tType == 1 ||
  3676. tType == 4 ||
  3677. w.ateacher == userid
  3678. }"
  3679. >
  3680. <span v-if="AIloading[toolIndex][wIndex].sco">
  3681. {{
  3682. AIloading[toolIndex][wIndex].loading
  3683. ? "评分中"
  3684. : AIloading[toolIndex][wIndex].sco + "分"
  3685. }}
  3686. </span>
  3687. <span v-else>
  3688. {{
  3689. AIloading[toolIndex][wIndex].loading
  3690. ? "评分中"
  3691. : "评分"
  3692. }}
  3693. </span>
  3694. </div>
  3695. </el-popover>
  3696. </div>
  3697. <img
  3698. class="deleteImg"
  3699. src="../../assets/deleteworks.png"
  3700. v-if="
  3701. w.userid == userid || tType == 1 || tType == 4
  3702. "
  3703. @click.stop="deleteWorks(w.wid)"
  3704. alt
  3705. />
  3706. </div>
  3707. <div class="workImg" v-if="w.type == 3">
  3708. <img
  3709. style="cursor: pointer"
  3710. :src="video"
  3711. @click="openVideo(w)"
  3712. alt
  3713. />
  3714. <!-- @click="openVideo(w.works)" -->
  3715. <div
  3716. class="answerScore"
  3717. v-if="w.score"
  3718. @click.stop="openScore(w)"
  3719. :class="{
  3720. rightW:
  3721. w.userid == userid ||
  3722. tType == 1 ||
  3723. tType == 4 ||
  3724. w.ateacher == userid
  3725. }"
  3726. >
  3727. {{ JSON.parse(w.score).wScore }}分
  3728. </div>
  3729. <div
  3730. class="answerScore"
  3731. @click.stop="openScore(w)"
  3732. v-else-if="
  3733. courseDetail.userid == userid &&
  3734. courseDetail.state != 5 &&
  3735. chapInfoList[courseType].chapterInfo[0]
  3736. .taskJson[taskCount].eList &&
  3737. chapInfoList[courseType].chapterInfo[0]
  3738. .taskJson[taskCount].eList.length
  3739. "
  3740. :class="{
  3741. rightW:
  3742. w.userid == userid ||
  3743. tType == 1 ||
  3744. tType == 4 ||
  3745. w.ateacher == userid
  3746. }"
  3747. >
  3748. 评分
  3749. </div>
  3750. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3751. <div
  3752. v-else-if="
  3753. (courseDetail.userid == userid ||
  3754. (courseDetail.course_teacher &&
  3755. courseDetail.course_teacher.indexOf(userid) !=
  3756. -1) ||
  3757. (w.userid == userid && sIsOpen)) &&
  3758. courseDetail.state == 5 &&
  3759. ((chapInfoList[courseType].chapterInfo[0]
  3760. .taskJson[taskCount].eList &&
  3761. chapInfoList[courseType].chapterInfo[0]
  3762. .taskJson[taskCount].eList.length) ||
  3763. (tool.eList && tool.eList.length))
  3764. "
  3765. >
  3766. <el-popover
  3767. placement="top"
  3768. width="318"
  3769. :disabled="AIloading[toolIndex][wIndex].loading"
  3770. trigger="hover"
  3771. >
  3772. <markScore
  3773. :loading="AIloading[toolIndex][wIndex].loading"
  3774. :markScoreVisible="markScoreVisible"
  3775. :ref="`markSco${toolIndex}${wIndex}`"
  3776. @updateLoading="updateLoading"
  3777. @updateDocSco="updateDocSco"
  3778. @refreshOther="refreshOther"
  3779. @markScoreDig="markScoreDig"
  3780. :tool="tool"
  3781. :wIndex="wIndex"
  3782. :scoCon="w"
  3783. :toolIndex="toolIndex"
  3784. :key="refreshKey"
  3785. :stage="courseType"
  3786. :task="taskCount"
  3787. :scoTit="
  3788. chapInfoList[courseType].chapterInfo[0]
  3789. .taskJson[taskCount].eList
  3790. "
  3791. >
  3792. </markScore>
  3793. <div
  3794. class="answerScore"
  3795. @click="
  3796. markScoreDig2(
  3797. w.sName,
  3798. worksStudent,
  3799. w.userid,
  3800. toolIndex,
  3801. chapInfoList[courseType].chapterInfo[0]
  3802. .taskJson[taskCount].eList,
  3803. AIloading[toolIndex][wIndex].loading,
  3804. tool
  3805. )
  3806. "
  3807. slot="reference"
  3808. :class="{
  3809. rightW:
  3810. w.userid == userid ||
  3811. tType == 1 ||
  3812. tType == 4 ||
  3813. w.ateacher == userid
  3814. }"
  3815. >
  3816. <span v-if="AIloading[toolIndex][wIndex].sco">
  3817. {{
  3818. AIloading[toolIndex][wIndex].loading
  3819. ? "评分中"
  3820. : AIloading[toolIndex][wIndex].sco + "分"
  3821. }}
  3822. </span>
  3823. <span v-else>
  3824. {{
  3825. AIloading[toolIndex][wIndex].loading
  3826. ? "评分中"
  3827. : "评分"
  3828. }}
  3829. </span>
  3830. </div>
  3831. </el-popover>
  3832. </div>
  3833. <img
  3834. class="deleteImg"
  3835. src="../../assets/deleteworks.png"
  3836. v-if="
  3837. w.userid == userid || tType == 1 || tType == 4
  3838. "
  3839. @click.stop="deleteWorks(w.wid)"
  3840. alt
  3841. />
  3842. </div>
  3843. <div class="workImg" v-if="w.type == 12">
  3844. <img
  3845. style="cursor: pointer"
  3846. :src="word2"
  3847. @click="downloadFile(w.works)"
  3848. alt
  3849. />
  3850. <!-- @click="openVideo(w.works)" -->
  3851. <div
  3852. class="answerScore"
  3853. v-if="w.score"
  3854. @click.stop="openScore(w)"
  3855. :class="{
  3856. rightW:
  3857. w.userid == userid ||
  3858. tType == 1 ||
  3859. tType == 4 ||
  3860. w.ateacher == userid
  3861. }"
  3862. >
  3863. {{ JSON.parse(w.score).wScore }}分
  3864. </div>
  3865. <div
  3866. class="answerScore"
  3867. @click.stop="openScore(w)"
  3868. v-else-if="
  3869. courseDetail.userid == userid &&
  3870. courseDetail.state != 5 &&
  3871. chapInfoList[courseType].chapterInfo[0]
  3872. .taskJson[taskCount].eList &&
  3873. chapInfoList[courseType].chapterInfo[0]
  3874. .taskJson[taskCount].eList.length
  3875. "
  3876. :class="{
  3877. rightW:
  3878. w.userid == userid ||
  3879. tType == 1 ||
  3880. tType == 4 ||
  3881. w.ateacher == userid
  3882. }"
  3883. >
  3884. 评分
  3885. </div>
  3886. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3887. <div
  3888. v-else-if="
  3889. (courseDetail.userid == userid ||
  3890. (courseDetail.course_teacher &&
  3891. courseDetail.course_teacher.indexOf(userid) !=
  3892. -1) ||
  3893. (w.userid == userid && sIsOpen)) &&
  3894. courseDetail.state == 5 &&
  3895. ((chapInfoList[courseType].chapterInfo[0]
  3896. .taskJson[taskCount].eList &&
  3897. chapInfoList[courseType].chapterInfo[0]
  3898. .taskJson[taskCount].eList.length) ||
  3899. (tool.eList && tool.eList.length))
  3900. "
  3901. >
  3902. <el-popover
  3903. placement="top"
  3904. width="318"
  3905. :disabled="AIloading[toolIndex][wIndex].loading"
  3906. trigger="hover"
  3907. >
  3908. <markScore
  3909. :loading="AIloading[toolIndex][wIndex].loading"
  3910. :markScoreVisible="markScoreVisible"
  3911. :ref="`markSco${toolIndex}${wIndex}`"
  3912. @updateLoading="updateLoading"
  3913. @updateDocSco="updateDocSco"
  3914. @refreshOther="refreshOther"
  3915. @markScoreDig="markScoreDig"
  3916. :tool="tool"
  3917. :wIndex="wIndex"
  3918. :scoCon="w"
  3919. :toolIndex="toolIndex"
  3920. :key="refreshKey"
  3921. :stage="courseType"
  3922. :task="taskCount"
  3923. :scoTit="
  3924. chapInfoList[courseType].chapterInfo[0]
  3925. .taskJson[taskCount].eList
  3926. "
  3927. >
  3928. </markScore>
  3929. <div
  3930. class="answerScore"
  3931. @click="
  3932. markScoreDig2(
  3933. w.sName,
  3934. worksStudent,
  3935. w.userid,
  3936. toolIndex,
  3937. chapInfoList[courseType].chapterInfo[0]
  3938. .taskJson[taskCount].eList,
  3939. AIloading[toolIndex][wIndex].loading,
  3940. tool
  3941. )
  3942. "
  3943. slot="reference"
  3944. :class="{
  3945. rightW:
  3946. w.userid == userid ||
  3947. tType == 1 ||
  3948. tType == 4 ||
  3949. w.ateacher == userid
  3950. }"
  3951. >
  3952. <span v-if="AIloading[toolIndex][wIndex].sco">
  3953. {{
  3954. AIloading[toolIndex][wIndex].loading
  3955. ? "评分中"
  3956. : AIloading[toolIndex][wIndex].sco + "分"
  3957. }}
  3958. </span>
  3959. <span v-else>
  3960. {{
  3961. AIloading[toolIndex][wIndex].loading
  3962. ? "评分中"
  3963. : "评分"
  3964. }}
  3965. </span>
  3966. </div>
  3967. </el-popover>
  3968. </div>
  3969. <img
  3970. class="deleteImg"
  3971. src="../../assets/deleteworks.png"
  3972. v-if="
  3973. w.userid == userid || tType == 1 || tType == 4
  3974. "
  3975. @click.stop="deleteWorks(w.wid)"
  3976. alt
  3977. />
  3978. </div>
  3979. <div class="comment" style="min-width: 200px">
  3980. <div class="worksName">
  3981. <div>{{ w.sName }}</div>
  3982. </div>
  3983. <div class="commentList">
  3984. <div class="commentList">
  3985. <div
  3986. class="commentImg"
  3987. @click="
  3988. isLikes(
  3989. w.wid,
  3990. userid,
  3991. 1,
  3992. null,
  3993. w.isLikes,
  3994. w.sName
  3995. )
  3996. "
  3997. >
  3998. <img
  3999. :src="w.isLikes == true ? likes : noLikes"
  4000. alt=""
  4001. />
  4002. </div>
  4003. <div>{{ w.likesCount }}</div>
  4004. </div>
  4005. <div class="commentList" style="margin-right: 15px">
  4006. <div
  4007. class="commentImg"
  4008. @click="commentOther(w, toolIndex, wIndex)"
  4009. >
  4010. <img
  4011. src="../../assets/icon/comment/comment.png"
  4012. alt=""
  4013. />
  4014. </div>
  4015. <div>{{ w.commentCount }}</div>
  4016. </div>
  4017. </div>
  4018. </div>
  4019. </div>
  4020. </div>
  4021. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4022. 未提交
  4023. </div>
  4024. <div
  4025. class="noWorksS"
  4026. v-if="noWorksS && noWorksS[toolIndex].length"
  4027. >
  4028. <div
  4029. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4030. :key="sIndex"
  4031. class="noWorksName"
  4032. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4033. >
  4034. <el-tooltip
  4035. effect="dark"
  4036. :content="s.student"
  4037. placement="top"
  4038. >
  4039. <span>{{ s.student }}</span>
  4040. </el-tooltip>
  4041. </div>
  4042. </div>
  4043. </div>
  4044. <div
  4045. v-if="
  4046. tType &&
  4047. ((tType == 2 && sIsOpen == true) ||
  4048. tType == 1 ||
  4049. tType == 4) &&
  4050. tool.tool.indexOf(70) != -1
  4051. "
  4052. class="worksBox"
  4053. >
  4054. <div
  4055. class="zuoyeYulan"
  4056. v-if="
  4057. worksStudent.length &&
  4058. worksStudent[toolIndex].length > 0
  4059. "
  4060. >
  4061. <div class="worksTop">
  4062. <div>作业预览</div>
  4063. <div
  4064. class="corOpen"
  4065. @click="contract(toolIndex)"
  4066. v-if="
  4067. isCloseList[toolIndex].isCloseBoolean &&
  4068. isCloseList[toolIndex].isClose == 0
  4069. "
  4070. >
  4071. 折叠
  4072. </div>
  4073. <div
  4074. class="corOpen"
  4075. @click="contract(toolIndex)"
  4076. v-if="isCloseList[toolIndex].isClose == 1"
  4077. >
  4078. 展开
  4079. </div>
  4080. </div>
  4081. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4082. </div>
  4083. <div
  4084. :id="'tool-' + toolIndex"
  4085. :style="{
  4086. height:
  4087. isCloseList[toolIndex].isClose == 1
  4088. ? retrnToolHeight('tool-' + toolIndex)
  4089. : 'auto',
  4090. overflow:
  4091. isCloseList[toolIndex].isClose == 1
  4092. ? 'hidden'
  4093. : 'unset'
  4094. }"
  4095. class="worksDetailBox"
  4096. v-if="
  4097. worksStudent.length &&
  4098. worksStudent[toolIndex].length > 0
  4099. "
  4100. >
  4101. <div
  4102. class="works"
  4103. style="
  4104. width: 200px;
  4105. height: 140px;
  4106. margin: 10px 10px 10px 0;
  4107. border-radius: 15px;
  4108. box-shadow: 0 0 6px 1px #dfdada;
  4109. "
  4110. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4111. :key="wIndex"
  4112. :class="w.type == 1 ? 'isTypeOne' : ''"
  4113. >
  4114. <div
  4115. class="workImg"
  4116. @click.stop="openScore(w, toolIndex)"
  4117. >
  4118. <img :src="word" alt />
  4119. <img
  4120. class="deleteImg"
  4121. src="../../assets/deleteworks.png"
  4122. v-if="
  4123. w.userid == userid || tType == 1 || tType == 4
  4124. "
  4125. @click.stop="deleteWorks(w.wid)"
  4126. alt
  4127. />
  4128. </div>
  4129. <div class="comment" style="min-width: 200px">
  4130. <div class="worksName">
  4131. <div>{{ w.sName }}</div>
  4132. </div>
  4133. </div>
  4134. </div>
  4135. </div>
  4136. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4137. 未提交
  4138. </div>
  4139. <div
  4140. class="noWorksS"
  4141. v-if="noWorksS && noWorksS[toolIndex].length"
  4142. >
  4143. <div
  4144. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4145. :key="sIndex"
  4146. class="noWorksName"
  4147. >
  4148. <el-tooltip
  4149. effect="dark"
  4150. :content="s.student"
  4151. placement="top"
  4152. >
  4153. <span>{{ s.student }}</span>
  4154. </el-tooltip>
  4155. </div>
  4156. </div>
  4157. </div>
  4158. <div
  4159. v-if="
  4160. tType &&
  4161. tType == 2 &&
  4162. !sIsOpen &&
  4163. tool.tool.indexOf(70) != -1
  4164. "
  4165. class="worksBox"
  4166. >
  4167. <div
  4168. class="zuoyeYulan"
  4169. v-if="workStudent[toolIndex].length > 0"
  4170. >
  4171. <span class="worksTitle">作业预览</span>
  4172. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4173. </div>
  4174. <div
  4175. class="worksDetailBox"
  4176. v-if="workStudent[toolIndex].length > 0"
  4177. >
  4178. <div
  4179. class="works"
  4180. style="
  4181. width: 200px;
  4182. height: 140px;
  4183. margin: 10px 10px 10px 0;
  4184. box-shadow: 0 0 6px 1px #dfdada;
  4185. "
  4186. v-for="(w, wIndex) in workStudent[toolIndex]"
  4187. :key="wIndex"
  4188. >
  4189. <div
  4190. class="workImg"
  4191. @click.stop="openScore(w, toolIndex)"
  4192. >
  4193. <img :src="word" alt />
  4194. <img
  4195. class="deleteImg"
  4196. src="../../assets/deleteworks.png"
  4197. v-if="
  4198. w.userid == userid || tType == 1 || tType == 4
  4199. "
  4200. @click.stop="deleteWorks(w.wid)"
  4201. alt
  4202. />
  4203. </div>
  4204. <div class="worksName">
  4205. <div>{{ w.sName }}</div>
  4206. </div>
  4207. </div>
  4208. </div>
  4209. </div>
  4210. <div
  4211. v-if="
  4212. tType &&
  4213. ((tType == 2 && sIsOpen == true) ||
  4214. tType == 1 ||
  4215. tType == 4) &&
  4216. tool.tool.indexOf(32) != -1
  4217. "
  4218. class="worksBox"
  4219. >
  4220. <div
  4221. class="zuoyeYulan"
  4222. v-if="
  4223. worksStudent.length &&
  4224. worksStudent[toolIndex].length > 0
  4225. "
  4226. >
  4227. <div class="worksTop">
  4228. <div>作业预览</div>
  4229. <div
  4230. class="corOpen"
  4231. @click="contract(toolIndex)"
  4232. v-if="
  4233. isCloseList[toolIndex].isCloseBoolean &&
  4234. isCloseList[toolIndex].isClose == 0
  4235. "
  4236. >
  4237. 折叠
  4238. </div>
  4239. <div
  4240. class="corOpen"
  4241. @click="contract(toolIndex)"
  4242. v-if="isCloseList[toolIndex].isClose == 1"
  4243. >
  4244. 展开
  4245. </div>
  4246. </div>
  4247. </div>
  4248. <div
  4249. :id="'tool-' + toolIndex"
  4250. :style="{
  4251. height:
  4252. isCloseList[toolIndex].isClose == 1
  4253. ? retrnToolHeight('tool-' + toolIndex)
  4254. : 'auto',
  4255. overflow:
  4256. isCloseList[toolIndex].isClose == 1
  4257. ? 'hidden'
  4258. : 'unset'
  4259. }"
  4260. class="worksDetailBox"
  4261. v-if="
  4262. worksStudent.length &&
  4263. worksStudent[toolIndex].length > 0
  4264. "
  4265. >
  4266. <div
  4267. class="works"
  4268. style="
  4269. width: 200px;
  4270. height: 140px;
  4271. margin: 10px 10px 10px 0;
  4272. border-radius: 15px;
  4273. box-shadow: 0 0 6px 1px #dfdada;
  4274. "
  4275. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4276. :key="wIndex"
  4277. :class="w.type == 1 ? 'isTypeOne' : ''"
  4278. >
  4279. <div class="workImg">
  4280. <img
  4281. :src="word2"
  4282. @click="downloadFile(w.works)"
  4283. alt
  4284. />
  4285. <div
  4286. class="answerScore"
  4287. v-if="w.score"
  4288. @click.stop="openScore(w)"
  4289. :class="{
  4290. rightW:
  4291. w.userid == userid ||
  4292. tType == 1 ||
  4293. tType == 4 ||
  4294. w.ateacher == userid
  4295. }"
  4296. >
  4297. {{ JSON.parse(w.score).wScore }}分
  4298. </div>
  4299. <div
  4300. class="answerScore"
  4301. @click.stop="openScore(w)"
  4302. v-else-if="courseDetail.userid == userid"
  4303. :class="{
  4304. rightW:
  4305. w.userid == userid ||
  4306. tType == 1 ||
  4307. tType == 4 ||
  4308. w.ateacher == userid
  4309. }"
  4310. >
  4311. 评分
  4312. </div>
  4313. <img
  4314. class="deleteImg"
  4315. src="../../assets/deleteworks.png"
  4316. v-if="
  4317. w.userid == userid || tType == 1 || tType == 4
  4318. "
  4319. @click.stop="deleteWorks(w.wid)"
  4320. alt
  4321. />
  4322. </div>
  4323. <div class="comment" style="min-width: 200px">
  4324. <div class="worksName">
  4325. <div>{{ w.sName }}</div>
  4326. </div>
  4327. <div class="commentList">
  4328. <div class="commentList">
  4329. <div
  4330. class="commentImg"
  4331. @click="
  4332. isLikes(
  4333. w.wid,
  4334. userid,
  4335. 1,
  4336. null,
  4337. w.isLikes,
  4338. w.sName
  4339. )
  4340. "
  4341. >
  4342. <img
  4343. :src="w.isLikes == true ? likes : noLikes"
  4344. alt=""
  4345. />
  4346. </div>
  4347. <div>{{ w.likesCount }}</div>
  4348. </div>
  4349. <div class="commentList" style="margin-right: 15px">
  4350. <div
  4351. class="commentImg"
  4352. @click="commentOther(w, toolIndex, wIndex)"
  4353. >
  4354. <img
  4355. src="../../assets/icon/comment/comment.png"
  4356. alt=""
  4357. />
  4358. </div>
  4359. <div>{{ w.commentCount }}</div>
  4360. </div>
  4361. </div>
  4362. </div>
  4363. </div>
  4364. </div>
  4365. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4366. 未提交
  4367. </div>
  4368. <div
  4369. class="noWorksS"
  4370. v-if="noWorksS && noWorksS[toolIndex].length"
  4371. >
  4372. <div
  4373. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4374. :key="sIndex"
  4375. class="noWorksName"
  4376. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4377. >
  4378. <el-tooltip
  4379. effect="dark"
  4380. :content="s.student"
  4381. placement="top"
  4382. >
  4383. <span>{{ s.student }}</span>
  4384. </el-tooltip>
  4385. </div>
  4386. </div>
  4387. </div>
  4388. <div
  4389. v-if="
  4390. tType &&
  4391. ((tType == 2 && sIsOpen == true) ||
  4392. tType == 1 ||
  4393. tType == 4) &&
  4394. tool.tool.indexOf(57) != -1
  4395. "
  4396. class="worksBox"
  4397. >
  4398. <div
  4399. class="zuoyeYulan"
  4400. v-if="
  4401. worksStudent.length &&
  4402. worksStudent[toolIndex].length > 0
  4403. "
  4404. >
  4405. <div class="worksTop">
  4406. <div>作业预览</div>
  4407. <div
  4408. class="corOpen"
  4409. @click="contract(toolIndex)"
  4410. v-if="
  4411. isCloseList[toolIndex].isCloseBoolean &&
  4412. isCloseList[toolIndex].isClose == 0
  4413. "
  4414. >
  4415. 折叠
  4416. </div>
  4417. <div
  4418. class="corOpen"
  4419. @click="contract(toolIndex)"
  4420. v-if="isCloseList[toolIndex].isClose == 1"
  4421. >
  4422. 展开
  4423. </div>
  4424. </div>
  4425. </div>
  4426. <div
  4427. :id="'tool-' + toolIndex"
  4428. :style="{
  4429. height:
  4430. isCloseList[toolIndex].isClose == 1
  4431. ? retrnToolHeight('tool-' + toolIndex)
  4432. : 'auto',
  4433. overflow:
  4434. isCloseList[toolIndex].isClose == 1
  4435. ? 'hidden'
  4436. : 'unset'
  4437. }"
  4438. class="worksDetailBox"
  4439. v-if="
  4440. worksStudent.length &&
  4441. worksStudent[toolIndex].length > 0
  4442. "
  4443. >
  4444. <div
  4445. class="works"
  4446. style="
  4447. width: 200px;
  4448. height: 140px;
  4449. margin: 10px 10px 10px 0;
  4450. border-radius: 15px;
  4451. box-shadow: 0 0 6px 1px #dfdada;
  4452. "
  4453. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4454. :key="wIndex"
  4455. :class="w.type == 1 ? 'isTypeOne' : ''"
  4456. >
  4457. <div class="workImg">
  4458. <img
  4459. :src="word2"
  4460. @click="downloadFile(w.works)"
  4461. v-if="w.type == 12"
  4462. alt
  4463. />
  4464. <img
  4465. :src="word2"
  4466. @click="
  4467. openCocoPi(57, toolIndex, w.userid, w.sName)
  4468. "
  4469. v-else-if="w.type == 15"
  4470. alt
  4471. />
  4472. <div
  4473. class="answerScore"
  4474. v-if="w.score"
  4475. @click.stop="openScore(w)"
  4476. :class="{
  4477. rightW:
  4478. w.userid == userid ||
  4479. tType == 1 ||
  4480. tType == 4 ||
  4481. w.ateacher == userid
  4482. }"
  4483. >
  4484. {{ JSON.parse(w.score).wScore }}分
  4485. </div>
  4486. <div
  4487. class="answerScore"
  4488. @click.stop="openScore(w)"
  4489. v-else-if="
  4490. courseDetail.userid == userid &&
  4491. courseDetail.state != 5 &&
  4492. chapInfoList[courseType].chapterInfo[0]
  4493. .taskJson[taskCount].eList &&
  4494. chapInfoList[courseType].chapterInfo[0]
  4495. .taskJson[taskCount].eList.length
  4496. "
  4497. :class="{
  4498. rightW:
  4499. w.userid == userid ||
  4500. tType == 1 ||
  4501. tType == 4 ||
  4502. w.ateacher == userid
  4503. }"
  4504. >
  4505. 评分
  4506. </div>
  4507. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4508. <div
  4509. v-else-if="
  4510. (courseDetail.userid == userid ||
  4511. (courseDetail.course_teacher &&
  4512. courseDetail.course_teacher.indexOf(userid) !=
  4513. -1) ||
  4514. (w.userid == userid && sIsOpen)) &&
  4515. courseDetail.state == 5 &&
  4516. ((chapInfoList[courseType].chapterInfo[0]
  4517. .taskJson[taskCount].eList &&
  4518. chapInfoList[courseType].chapterInfo[0]
  4519. .taskJson[taskCount].eList.length) ||
  4520. (tool.eList && tool.eList.length))
  4521. "
  4522. >
  4523. <el-popover
  4524. placement="top"
  4525. width="318"
  4526. :disabled="AIloading[toolIndex][wIndex].loading"
  4527. trigger="hover"
  4528. >
  4529. <markScore
  4530. :loading="AIloading[toolIndex][wIndex].loading"
  4531. :markScoreVisible="markScoreVisible"
  4532. :ref="`markSco${toolIndex}${wIndex}`"
  4533. @updateLoading="updateLoading"
  4534. @updateDocSco="updateDocSco"
  4535. @refreshOther="refreshOther"
  4536. @markScoreDig="markScoreDig"
  4537. :tool="tool"
  4538. :wIndex="wIndex"
  4539. :scoCon="w"
  4540. :toolIndex="toolIndex"
  4541. :key="refreshKey"
  4542. :stage="courseType"
  4543. :task="taskCount"
  4544. :scoTit="
  4545. chapInfoList[courseType].chapterInfo[0]
  4546. .taskJson[taskCount].eList
  4547. "
  4548. >
  4549. </markScore>
  4550. <div
  4551. class="answerScore"
  4552. @click="
  4553. markScoreDig2(
  4554. w.sName,
  4555. worksStudent,
  4556. w.userid,
  4557. toolIndex,
  4558. chapInfoList[courseType].chapterInfo[0]
  4559. .taskJson[taskCount].eList,
  4560. AIloading[toolIndex][wIndex].loading,
  4561. tool
  4562. )
  4563. "
  4564. slot="reference"
  4565. :class="{
  4566. rightW:
  4567. w.userid == userid ||
  4568. tType == 1 ||
  4569. tType == 4 ||
  4570. w.ateacher == userid
  4571. }"
  4572. >
  4573. <span v-if="AIloading[toolIndex][wIndex].sco">
  4574. {{
  4575. AIloading[toolIndex][wIndex].loading
  4576. ? "评分中"
  4577. : AIloading[toolIndex][wIndex].sco + "分"
  4578. }}
  4579. </span>
  4580. <span v-else>
  4581. {{
  4582. AIloading[toolIndex][wIndex].loading
  4583. ? "评分中"
  4584. : "评分"
  4585. }}
  4586. </span>
  4587. </div>
  4588. </el-popover>
  4589. </div>
  4590. <img
  4591. class="deleteImg"
  4592. src="../../assets/deleteworks.png"
  4593. v-if="
  4594. w.userid == userid || tType == 1 || tType == 4
  4595. "
  4596. @click.stop="deleteWorks(w.wid)"
  4597. alt
  4598. />
  4599. </div>
  4600. <div class="comment" style="min-width: 200px">
  4601. <div class="worksName">
  4602. <div>{{ w.sName }}</div>
  4603. </div>
  4604. <div class="commentList">
  4605. <div class="commentList">
  4606. <div
  4607. class="commentImg"
  4608. @click="
  4609. isLikes(
  4610. w.wid,
  4611. userid,
  4612. 1,
  4613. null,
  4614. w.isLikes,
  4615. w.sName
  4616. )
  4617. "
  4618. >
  4619. <img
  4620. :src="w.isLikes == true ? likes : noLikes"
  4621. alt=""
  4622. />
  4623. </div>
  4624. <div>{{ w.likesCount }}</div>
  4625. </div>
  4626. <div class="commentList" style="margin-right: 15px">
  4627. <div
  4628. class="commentImg"
  4629. @click="commentOther(w, toolIndex, wIndex)"
  4630. >
  4631. <img
  4632. src="../../assets/icon/comment/comment.png"
  4633. alt=""
  4634. />
  4635. </div>
  4636. <div>{{ w.commentCount }}</div>
  4637. </div>
  4638. </div>
  4639. </div>
  4640. </div>
  4641. </div>
  4642. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4643. 未提交
  4644. </div>
  4645. <div
  4646. class="noWorksS"
  4647. v-if="noWorksS && noWorksS[toolIndex].length"
  4648. >
  4649. <div
  4650. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4651. :key="sIndex"
  4652. class="noWorksName"
  4653. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4654. >
  4655. <el-tooltip
  4656. effect="dark"
  4657. :content="s.student"
  4658. placement="top"
  4659. >
  4660. <span>{{ s.student }}</span>
  4661. </el-tooltip>
  4662. </div>
  4663. </div>
  4664. </div>
  4665. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4666. <div
  4667. style="display: flex;justify-content: space-between;align-items: center;"
  4668. >
  4669. <div
  4670. class="zuoyeYulan"
  4671. v-if="
  4672. worksStudent.length &&
  4673. worksStudent[toolIndex].length > 0
  4674. "
  4675. >
  4676. <span class="worksTitle">作业预览</span>
  4677. <div
  4678. class="corOpen"
  4679. @click="contract(toolIndex)"
  4680. v-if="
  4681. isCloseList[toolIndex].isCloseBoolean &&
  4682. isCloseList[toolIndex].isClose == 0
  4683. "
  4684. >
  4685. 折叠
  4686. </div>
  4687. <div
  4688. class="corOpen"
  4689. @click="contract(toolIndex)"
  4690. v-if="isCloseList[toolIndex].isClose == 1"
  4691. >
  4692. 展开
  4693. </div>
  4694. </div>
  4695. <div
  4696. style="display: flex;"
  4697. v-if="
  4698. (courseDetail.userid == userid ||
  4699. (courseDetail.course_teacher &&
  4700. courseDetail.course_teacher.indexOf(userid) !=
  4701. -1)) &&
  4702. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4703. taskCount
  4704. ].eList &&
  4705. chapInfoList[courseType].chapterInfo[0].taskJson[
  4706. taskCount
  4707. ].eList.length) ||
  4708. (tool.eList && tool.eList.length)) &&
  4709. courseDetail.state == 5
  4710. "
  4711. >
  4712. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 5 "> -->
  4713. <div
  4714. style="margin-right:10px"
  4715. class="ScoreBtn"
  4716. @click="
  4717. resetLoopEva(
  4718. worksStudent[toolIndex],
  4719. chapInfoList[courseType].chapterInfo[0].taskJson[
  4720. taskCount
  4721. ].eList,
  4722. courseType,
  4723. taskCount,
  4724. toolIndex,
  4725. tool.toolDetail,
  4726. worksStudent
  4727. )
  4728. "
  4729. >
  4730. 一键重置
  4731. </div>
  4732. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4733. <img
  4734. src="../../assets/icon/newIcons/rootImg.png"
  4735. alt=""
  4736. />
  4737. AI评分
  4738. </div>
  4739. <div
  4740. class="ScoreBtn"
  4741. v-else-if="!loopLoading[toolIndex].loading"
  4742. @click="
  4743. loopEva(
  4744. worksStudent[toolIndex],
  4745. chapInfoList[courseType].chapterInfo[0].taskJson[
  4746. taskCount
  4747. ].eList,
  4748. courseType,
  4749. taskCount,
  4750. toolIndex,
  4751. tool.toolDetail,
  4752. chapInfoList[courseType].chapterInfo[0].taskJson[
  4753. taskCount
  4754. ].taskDetail,
  4755. tool
  4756. )
  4757. "
  4758. >
  4759. <img
  4760. src="../../assets/icon/newIcons/rootImg.png"
  4761. alt=""
  4762. />
  4763. AI评分
  4764. </div>
  4765. <div class="ScoreBtn" v-else>
  4766. <img
  4767. src="../../assets/icon/newIcons/rootImg.png"
  4768. alt=""
  4769. />
  4770. 正在评分
  4771. </div>
  4772. </div>
  4773. </div>
  4774. <div
  4775. :id="'tool-' + toolIndex"
  4776. :style="{
  4777. height:
  4778. isCloseList[toolIndex].isClose == 1
  4779. ? retrnToolHeight('tool-' + toolIndex)
  4780. : 'auto',
  4781. overflow:
  4782. isCloseList[toolIndex].isClose == 1
  4783. ? 'hidden'
  4784. : 'unset'
  4785. }"
  4786. class="worksDetailBox"
  4787. v-if="
  4788. worksStudent.length &&
  4789. worksStudent[toolIndex].length > 0
  4790. "
  4791. >
  4792. <div
  4793. class="works"
  4794. style="
  4795. width: 200px;
  4796. height: 140px;
  4797. margin: 10px 10px 10px 0;
  4798. border-radius: 15px;
  4799. box-shadow: 0 0 6px 1px #dfdada;
  4800. "
  4801. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4802. :key="wIndex"
  4803. :class="w.type == 1 ? 'isTypeOne' : ''"
  4804. >
  4805. <div class="workImg" v-if="w.type == 0">
  4806. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4807. <img
  4808. :src="w.works"
  4809. @click="previewImg(w.works, w)"
  4810. alt
  4811. />
  4812. <div
  4813. class="answerScore"
  4814. v-if="w.score"
  4815. @click.stop="openScore(w)"
  4816. :class="{
  4817. rightW:
  4818. w.userid == userid ||
  4819. tType == 1 ||
  4820. tType == 4 ||
  4821. w.ateacher == userid
  4822. }"
  4823. >
  4824. {{ JSON.parse(w.score).wScore }}分
  4825. </div>
  4826. <div
  4827. class="answerScore"
  4828. @click.stop="openScore(w)"
  4829. v-else-if="
  4830. courseDetail.userid == userid &&
  4831. courseDetail.state != 5 &&
  4832. chapInfoList[courseType].chapterInfo[0]
  4833. .taskJson[taskCount].eList &&
  4834. chapInfoList[courseType].chapterInfo[0]
  4835. .taskJson[taskCount].eList.length
  4836. "
  4837. :class="{
  4838. rightW:
  4839. w.userid == userid ||
  4840. tType == 1 ||
  4841. tType == 4 ||
  4842. w.ateacher == userid
  4843. }"
  4844. >
  4845. 评分
  4846. </div>
  4847. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4848. <div
  4849. v-else-if="
  4850. (courseDetail.userid == userid ||
  4851. (courseDetail.course_teacher &&
  4852. courseDetail.course_teacher.indexOf(userid) !=
  4853. -1) ||
  4854. (w.userid == userid && sIsOpen)) &&
  4855. courseDetail.state == 5 &&
  4856. ((chapInfoList[courseType].chapterInfo[0]
  4857. .taskJson[taskCount].eList &&
  4858. chapInfoList[courseType].chapterInfo[0]
  4859. .taskJson[taskCount].eList.length) ||
  4860. (tool.eList && tool.eList.length))
  4861. "
  4862. >
  4863. <el-popover
  4864. placement="top"
  4865. width="318"
  4866. :disabled="AIloading[toolIndex][wIndex].loading"
  4867. trigger="hover"
  4868. >
  4869. <markScore
  4870. :loading="AIloading[toolIndex][wIndex].loading"
  4871. :markScoreVisible="markScoreVisible"
  4872. :ref="`markSco${toolIndex}${wIndex}`"
  4873. @updateLoading="updateLoading"
  4874. @updateDocSco="updateDocSco"
  4875. @refreshOther="refreshOther"
  4876. @markScoreDig="markScoreDig"
  4877. :tool="tool"
  4878. :wIndex="wIndex"
  4879. :scoCon="w"
  4880. :toolIndex="toolIndex"
  4881. :key="refreshKey"
  4882. :stage="courseType"
  4883. :task="taskCount"
  4884. :scoTit="
  4885. chapInfoList[courseType].chapterInfo[0]
  4886. .taskJson[taskCount].eList
  4887. "
  4888. >
  4889. </markScore>
  4890. <div
  4891. class="answerScore"
  4892. @click="
  4893. markScoreDig2(
  4894. w.sName,
  4895. worksStudent,
  4896. w.userid,
  4897. toolIndex,
  4898. chapInfoList[courseType].chapterInfo[0]
  4899. .taskJson[taskCount].eList,
  4900. AIloading[toolIndex][wIndex].loading,
  4901. tool
  4902. )
  4903. "
  4904. slot="reference"
  4905. :class="{
  4906. rightW:
  4907. w.userid == userid ||
  4908. tType == 1 ||
  4909. tType == 4 ||
  4910. w.ateacher == userid
  4911. }"
  4912. >
  4913. <span v-if="AIloading[toolIndex][wIndex].sco">
  4914. {{
  4915. AIloading[toolIndex][wIndex].loading
  4916. ? "评分中"
  4917. : AIloading[toolIndex][wIndex].sco + "分"
  4918. }}
  4919. </span>
  4920. <span v-else>
  4921. {{
  4922. AIloading[toolIndex][wIndex].loading
  4923. ? "评分中"
  4924. : "评分"
  4925. }}
  4926. </span>
  4927. </div>
  4928. </el-popover>
  4929. </div>
  4930. <img
  4931. class="deleteImg"
  4932. src="../../assets/deleteworks.png"
  4933. v-if="
  4934. w.userid == userid || tType == 1 || tType == 4
  4935. "
  4936. @click.stop="deleteWorks(w.wid)"
  4937. alt
  4938. />
  4939. </div>
  4940. <div
  4941. class="workImg"
  4942. style="cursor: pointer"
  4943. v-if="w.type == 1"
  4944. >
  4945. <img :src="word" @click="openFile(w.works)" alt />
  4946. <!-- @click="openFile(w.works)" -->
  4947. <div
  4948. class="answerScore"
  4949. v-if="w.score"
  4950. @click.stop="openScore(w)"
  4951. :class="{
  4952. rightW:
  4953. w.userid == userid ||
  4954. tType == 1 ||
  4955. tType == 4 ||
  4956. w.ateacher == userid
  4957. }"
  4958. >
  4959. {{ JSON.parse(w.score).wScore }}分
  4960. </div>
  4961. <div
  4962. class="answerScore"
  4963. @click.stop="openScore(w)"
  4964. v-else-if="
  4965. courseDetail.userid == userid &&
  4966. courseDetail.state != 5 &&
  4967. chapInfoList[courseType].chapterInfo[0]
  4968. .taskJson[taskCount].eList &&
  4969. chapInfoList[courseType].chapterInfo[0]
  4970. .taskJson[taskCount].eList.length
  4971. "
  4972. :class="{
  4973. rightW:
  4974. w.userid == userid ||
  4975. tType == 1 ||
  4976. tType == 4 ||
  4977. w.ateacher == userid
  4978. }"
  4979. >
  4980. 评分
  4981. </div>
  4982. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4983. <div
  4984. v-else-if="
  4985. (courseDetail.userid == userid ||
  4986. (courseDetail.course_teacher &&
  4987. courseDetail.course_teacher.indexOf(userid) !=
  4988. -1) ||
  4989. (w.userid == userid && sIsOpen)) &&
  4990. courseDetail.state == 5 &&
  4991. ((chapInfoList[courseType].chapterInfo[0]
  4992. .taskJson[taskCount].eList &&
  4993. chapInfoList[courseType].chapterInfo[0]
  4994. .taskJson[taskCount].eList.length) ||
  4995. (tool.eList && tool.eList.length))
  4996. "
  4997. >
  4998. <el-popover
  4999. placement="top"
  5000. width="318"
  5001. :disabled="AIloading[toolIndex][wIndex].loading"
  5002. trigger="hover"
  5003. >
  5004. <markScore
  5005. :loading="AIloading[toolIndex][wIndex].loading"
  5006. :markScoreVisible="markScoreVisible"
  5007. :ref="`markSco${toolIndex}${wIndex}`"
  5008. @updateLoading="updateLoading"
  5009. @updateDocSco="updateDocSco"
  5010. @refreshOther="refreshOther"
  5011. @markScoreDig="markScoreDig"
  5012. :tool="tool"
  5013. :wIndex="wIndex"
  5014. :scoCon="w"
  5015. :toolIndex="toolIndex"
  5016. :key="refreshKey"
  5017. :stage="courseType"
  5018. :task="taskCount"
  5019. :scoTit="
  5020. chapInfoList[courseType].chapterInfo[0]
  5021. .taskJson[taskCount].eList
  5022. "
  5023. >
  5024. </markScore>
  5025. <div
  5026. class="answerScore"
  5027. @click="
  5028. markScoreDig2(
  5029. w.sName,
  5030. worksStudent,
  5031. w.userid,
  5032. toolIndex,
  5033. chapInfoList[courseType].chapterInfo[0]
  5034. .taskJson[taskCount].eList,
  5035. AIloading[toolIndex][wIndex].loading,
  5036. tool
  5037. )
  5038. "
  5039. slot="reference"
  5040. :class="{
  5041. rightW:
  5042. w.userid == userid ||
  5043. tType == 1 ||
  5044. tType == 4 ||
  5045. w.ateacher == userid
  5046. }"
  5047. >
  5048. <span v-if="AIloading[toolIndex][wIndex].sco">
  5049. {{
  5050. AIloading[toolIndex][wIndex].loading
  5051. ? "评分中"
  5052. : AIloading[toolIndex][wIndex].sco + "分"
  5053. }}
  5054. </span>
  5055. <span v-else>
  5056. {{
  5057. AIloading[toolIndex][wIndex].loading
  5058. ? "评分中"
  5059. : "评分"
  5060. }}
  5061. </span>
  5062. </div>
  5063. </el-popover>
  5064. </div>
  5065. <img
  5066. class="deleteImg"
  5067. src="../../assets/deleteworks.png"
  5068. v-if="
  5069. w.userid == userid || tType == 1 || tType == 4
  5070. "
  5071. @click.stop="deleteWorks(w.wid)"
  5072. alt
  5073. />
  5074. </div>
  5075. <div class="workImg" v-if="w.type == 3">
  5076. <img
  5077. style="cursor: pointer"
  5078. :src="video"
  5079. @click="openVideo(w)"
  5080. alt
  5081. />
  5082. <!-- @click="openVideo(w.works)" -->
  5083. <div
  5084. class="answerScore"
  5085. v-if="w.score"
  5086. @click.stop="openScore(w)"
  5087. :class="{
  5088. rightW:
  5089. w.userid == userid ||
  5090. tType == 1 ||
  5091. tType == 4 ||
  5092. w.ateacher == userid
  5093. }"
  5094. >
  5095. {{ JSON.parse(w.score).wScore }}分
  5096. </div>
  5097. <div
  5098. class="answerScore"
  5099. @click.stop="openScore(w)"
  5100. v-else-if="
  5101. courseDetail.userid == userid &&
  5102. courseDetail.state != 5 &&
  5103. chapInfoList[courseType].chapterInfo[0]
  5104. .taskJson[taskCount].eList &&
  5105. chapInfoList[courseType].chapterInfo[0]
  5106. .taskJson[taskCount].eList.length
  5107. "
  5108. :class="{
  5109. rightW:
  5110. w.userid == userid ||
  5111. tType == 1 ||
  5112. tType == 4 ||
  5113. w.ateacher == userid
  5114. }"
  5115. >
  5116. 评分
  5117. </div>
  5118. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5119. <div
  5120. v-else-if="
  5121. (courseDetail.userid == userid ||
  5122. (courseDetail.course_teacher &&
  5123. courseDetail.course_teacher.indexOf(userid) !=
  5124. -1) ||
  5125. (w.userid == userid && sIsOpen)) &&
  5126. courseDetail.state == 5 &&
  5127. ((chapInfoList[courseType].chapterInfo[0]
  5128. .taskJson[taskCount].eList &&
  5129. chapInfoList[courseType].chapterInfo[0]
  5130. .taskJson[taskCount].eList.length) ||
  5131. (tool.eList && tool.eList.length))
  5132. "
  5133. >
  5134. <el-popover
  5135. placement="top"
  5136. width="318"
  5137. :disabled="AIloading[toolIndex][wIndex].loading"
  5138. trigger="hover"
  5139. >
  5140. <markScore
  5141. :loading="AIloading[toolIndex][wIndex].loading"
  5142. :markScoreVisible="markScoreVisible"
  5143. :ref="`markSco${toolIndex}${wIndex}`"
  5144. @updateLoading="updateLoading"
  5145. @updateDocSco="updateDocSco"
  5146. @refreshOther="refreshOther"
  5147. @markScoreDig="markScoreDig"
  5148. :tool="tool"
  5149. :wIndex="wIndex"
  5150. :scoCon="w"
  5151. :toolIndex="toolIndex"
  5152. :key="refreshKey"
  5153. :stage="courseType"
  5154. :task="taskCount"
  5155. :scoTit="
  5156. chapInfoList[courseType].chapterInfo[0]
  5157. .taskJson[taskCount].eList
  5158. "
  5159. >
  5160. </markScore>
  5161. <div
  5162. class="answerScore"
  5163. @click="
  5164. markScoreDig2(
  5165. w.sName,
  5166. worksStudent,
  5167. w.userid,
  5168. toolIndex,
  5169. chapInfoList[courseType].chapterInfo[0]
  5170. .taskJson[taskCount].eList,
  5171. AIloading[toolIndex][wIndex].loading,
  5172. tool
  5173. )
  5174. "
  5175. slot="reference"
  5176. :class="{
  5177. rightW:
  5178. w.userid == userid ||
  5179. tType == 1 ||
  5180. tType == 4 ||
  5181. w.ateacher == userid
  5182. }"
  5183. >
  5184. <span v-if="AIloading[toolIndex][wIndex].sco">
  5185. {{
  5186. AIloading[toolIndex][wIndex].loading
  5187. ? "评分中"
  5188. : AIloading[toolIndex][wIndex].sco + "分"
  5189. }}
  5190. </span>
  5191. <span v-else>
  5192. {{
  5193. AIloading[toolIndex][wIndex].loading
  5194. ? "评分中"
  5195. : "评分"
  5196. }}
  5197. </span>
  5198. </div>
  5199. </el-popover>
  5200. </div>
  5201. <img
  5202. class="deleteImg"
  5203. src="../../assets/deleteworks.png"
  5204. v-if="
  5205. w.userid == userid || tType == 1 || tType == 4
  5206. "
  5207. @click.stop="deleteWorks(w.wid)"
  5208. alt
  5209. />
  5210. </div>
  5211. <div class="comment" style="min-width: 200px">
  5212. <div class="worksName">
  5213. <div
  5214. style="cursor: pointer"
  5215. @click="
  5216. openSname(w.sName, w.wid, toolIndex, w.userid)
  5217. "
  5218. >
  5219. {{ w.sName }}
  5220. </div>
  5221. </div>
  5222. <div class="commentList">
  5223. <div class="commentList">
  5224. <div
  5225. class="commentImg"
  5226. @click="
  5227. isLikes(
  5228. w.wid,
  5229. userid,
  5230. 1,
  5231. null,
  5232. w.isLikes,
  5233. w.sName
  5234. )
  5235. "
  5236. >
  5237. <img
  5238. :src="w.isLikes == true ? likes : noLikes"
  5239. alt=""
  5240. />
  5241. </div>
  5242. <div>{{ w.likesCount }}</div>
  5243. </div>
  5244. <div class="commentList" style="margin-right: 15px">
  5245. <div
  5246. class="commentImg"
  5247. @click="commentOther(w, toolIndex, wIndex)"
  5248. >
  5249. <img
  5250. src="../../assets/icon/comment/comment.png"
  5251. alt=""
  5252. />
  5253. </div>
  5254. <div>{{ w.commentCount }}</div>
  5255. </div>
  5256. </div>
  5257. </div>
  5258. </div>
  5259. </div>
  5260. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5261. 未提交
  5262. </div>
  5263. <div
  5264. class="noWorksS"
  5265. v-if="noWorksS && noWorksS[toolIndex].length"
  5266. >
  5267. <div
  5268. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5269. :key="sIndex"
  5270. class="noWorksName"
  5271. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5272. >
  5273. <el-tooltip
  5274. effect="dark"
  5275. :content="s.student"
  5276. placement="top"
  5277. >
  5278. <span>{{ s.student }}</span>
  5279. </el-tooltip>
  5280. </div>
  5281. </div>
  5282. </div>
  5283. <div
  5284. v-if="
  5285. tType &&
  5286. ((tType == 2 && sIsOpen == true) ||
  5287. tType == 1 ||
  5288. tType == 4) &&
  5289. tool.tool.indexOf(4) != -1 &&
  5290. (tool.askJson[0].answer ||
  5291. tool.askJson[0].answer === 0) &&
  5292. checkJson[toolIndex].length
  5293. "
  5294. class="xuan_right_box"
  5295. >
  5296. <div
  5297. class="tool_right_box"
  5298. v-for="(item, index) in tool.askJson"
  5299. :key="index"
  5300. >
  5301. <div style="width: calc(100% - 30px);">
  5302. <el-tooltip
  5303. effect="light"
  5304. :content="index + 1 + '、' + item.askstitle"
  5305. placement="top"
  5306. popper-class="text_tooltip"
  5307. >
  5308. <div
  5309. style="
  5310. width: calc(100% - 130px);
  5311. display: block;
  5312. white-space: nowrap;
  5313. overflow: hidden;
  5314. text-overflow: ellipsis;
  5315. word-break: break-word;
  5316. cursor: pointer;
  5317. "
  5318. >
  5319. {{ index + 1 + "、" + item.askstitle }}
  5320. </div>
  5321. </el-tooltip>
  5322. </div>
  5323. <div class="right_box_xuan">
  5324. <span>正确率</span>
  5325. <span>{{
  5326. (checkJson[toolIndex][index].right
  5327. ? checkJson[toolIndex][index].right
  5328. : 0) + "%"
  5329. }}</span>
  5330. </div>
  5331. </div>
  5332. </div>
  5333. <div
  5334. class="xuan_right_box"
  5335. style="background: unset; padding: 0 10px"
  5336. v-if="
  5337. tType &&
  5338. ((tType == 2 && sIsOpen == true) ||
  5339. tType == 1 ||
  5340. tType == 4) &&
  5341. tool.tool.indexOf(4) != -1
  5342. "
  5343. >
  5344. <AskStatic
  5345. v-if="
  5346. worksStudent.length &&
  5347. worksStudent[toolIndex].length > 0
  5348. "
  5349. :askJSON="tool"
  5350. :checkJson="checkJson[toolIndex]"
  5351. ></AskStatic>
  5352. </div>
  5353. <div
  5354. v-if="
  5355. tType &&
  5356. ((tType == 2 && sIsOpen == true) ||
  5357. tType == 1 ||
  5358. tType == 4) &&
  5359. tool.tool.indexOf(4) != -1
  5360. "
  5361. class="worksBox"
  5362. >
  5363. <div
  5364. class="zuoyeYulan"
  5365. v-if="
  5366. worksStudent.length &&
  5367. worksStudent[toolIndex].length > 0
  5368. "
  5369. >
  5370. <div class="worksTop">
  5371. <div>作业预览</div>
  5372. <div
  5373. class="corOpen"
  5374. @click="contract(toolIndex)"
  5375. v-if="
  5376. isCloseList[toolIndex].isCloseBoolean &&
  5377. isCloseList[toolIndex].isClose == 0
  5378. "
  5379. >
  5380. 折叠
  5381. </div>
  5382. <div
  5383. class="corOpen"
  5384. @click="contract(toolIndex)"
  5385. v-if="isCloseList[toolIndex].isClose == 1"
  5386. >
  5387. 展开
  5388. </div>
  5389. </div>
  5390. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5391. </div>
  5392. <div>
  5393. <div
  5394. :id="'tool-' + toolIndex"
  5395. :style="{
  5396. height:
  5397. isCloseList[toolIndex].isClose == 1
  5398. ? retrnToolHeight('tool-' + toolIndex)
  5399. : 'auto',
  5400. overflow:
  5401. isCloseList[toolIndex].isClose == 1
  5402. ? 'hidden'
  5403. : 'unset'
  5404. }"
  5405. class="worksDetailBox"
  5406. v-if="
  5407. worksStudent.length &&
  5408. worksStudent[toolIndex].length > 0
  5409. "
  5410. >
  5411. <div
  5412. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5413. :key="wIndex"
  5414. class="isWorksName2"
  5415. @click="
  5416. openTools(4, toolIndex, taskCount, w.works, w.sName)
  5417. "
  5418. >
  5419. {{ w.sName }}
  5420. <img
  5421. class="deleteImg deleteImg2"
  5422. src="../../assets/deleteworks.png"
  5423. v-if="
  5424. w.userid == userid || tType == 1 || tType == 4
  5425. "
  5426. @click.stop="deleteWorks(w.wid)"
  5427. alt
  5428. />
  5429. </div>
  5430. <!-- <div class="works" style="
  5431. width: 200px;
  5432. height: 140px;
  5433. border-radius: 10px;
  5434. box-shadow: 0 0 6px 1px #dfdada;
  5435. overflow: hidden;
  5436. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  5437. <div class="workImg">
  5438. <img src="../../assets/icon/works/noImg.png" @click="
  5439. openTools(
  5440. 4,
  5441. toolIndex,
  5442. taskCount,
  5443. w.works,
  5444. w.sName
  5445. )
  5446. " alt />
  5447. </div>
  5448. <div class="worksName">
  5449. <div>{{ w.sName }}</div>
  5450. <div>{{ w.time }}</div>
  5451. </div>
  5452. </div> -->
  5453. </div>
  5454. </div>
  5455. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5456. 未提交
  5457. </div>
  5458. <div
  5459. class="noWorksS"
  5460. v-if="noWorksS && noWorksS[toolIndex].length"
  5461. >
  5462. <div
  5463. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5464. :key="sIndex"
  5465. class="noWorksName"
  5466. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  5467. >
  5468. <el-tooltip
  5469. effect="dark"
  5470. :content="s.student"
  5471. placement="top"
  5472. >
  5473. <span>{{ s.student }}</span>
  5474. </el-tooltip>
  5475. </div>
  5476. </div>
  5477. </div>
  5478. <div
  5479. v-if="
  5480. tType &&
  5481. ((tType == 2 && sIsOpen == true) ||
  5482. tType == 1 ||
  5483. tType == 4) &&
  5484. tool.tool.indexOf(45) != -1 &&
  5485. (tool.testJson.testJson[0].answer ||
  5486. tool.testJson.testJson[0].answer === 0) &&
  5487. checkJson[toolIndex].length
  5488. "
  5489. class="xuan_right_box"
  5490. >
  5491. <div
  5492. class="tool_right_box"
  5493. v-for="(item, index) in tool.testJson.testJson"
  5494. :key="index"
  5495. >
  5496. <div class="right_box_xuan" style="margin-right: 10px">
  5497. <span>正确率</span>
  5498. <span>{{
  5499. (checkJson[toolIndex][index].right
  5500. ? checkJson[toolIndex][index].right
  5501. : 0) + "%"
  5502. }}</span>
  5503. </div>
  5504. <div style="width: calc(100% - 30px);">
  5505. <el-tooltip
  5506. effect="light"
  5507. :content="index + 1 + '、' + item.teststitle"
  5508. placement="top"
  5509. popper-class="text_tooltip"
  5510. >
  5511. <div
  5512. style="
  5513. width: calc(100% - 130px);
  5514. display: block;
  5515. white-space: nowrap;
  5516. overflow: hidden;
  5517. text-overflow: ellipsis;
  5518. word-break: break-word;
  5519. cursor: pointer;
  5520. "
  5521. >
  5522. {{ index + 1 + "、" + item.teststitle }}
  5523. </div>
  5524. </el-tooltip>
  5525. </div>
  5526. </div>
  5527. </div>
  5528. <div
  5529. class="xuan_right_box"
  5530. style="background: unset; padding: 0 10px; width: 91.5%"
  5531. v-if="
  5532. tType &&
  5533. ((tType == 2 && sIsOpen == true) ||
  5534. tType == 1 ||
  5535. tType == 4) &&
  5536. tool.tool.indexOf(45) != -1
  5537. "
  5538. >
  5539. <AskStatic2
  5540. v-if="
  5541. worksStudent.length &&
  5542. worksStudent[toolIndex].length > 0
  5543. "
  5544. :askJSON="tool"
  5545. :checkJson="checkJson[toolIndex]"
  5546. ></AskStatic2>
  5547. </div>
  5548. <div
  5549. v-if="
  5550. tType &&
  5551. ((tType == 2 && sIsOpen == true) ||
  5552. tType == 1 ||
  5553. tType == 4) &&
  5554. tool.tool.indexOf(45) != -1
  5555. "
  5556. class="worksBox"
  5557. >
  5558. <div
  5559. class="zuoyeYulan"
  5560. v-if="
  5561. worksStudent.length &&
  5562. worksStudent[toolIndex].length > 0
  5563. "
  5564. >
  5565. <div class="worksTop">
  5566. <div>作业预览</div>
  5567. <div
  5568. class="corOpen"
  5569. @click="contract(toolIndex)"
  5570. v-if="
  5571. isCloseList[toolIndex].isCloseBoolean &&
  5572. isCloseList[toolIndex].isClose == 0
  5573. "
  5574. >
  5575. 折叠
  5576. </div>
  5577. <div
  5578. class="corOpen"
  5579. @click="contract(toolIndex)"
  5580. v-if="isCloseList[toolIndex].isClose == 1"
  5581. >
  5582. 展开
  5583. </div>
  5584. </div>
  5585. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5586. </div>
  5587. <div>
  5588. <div
  5589. :id="'tool-' + toolIndex"
  5590. :style="{
  5591. height:
  5592. isCloseList[toolIndex].isClose == 1
  5593. ? retrnToolHeight('tool-' + toolIndex)
  5594. : 'auto',
  5595. overflow:
  5596. isCloseList[toolIndex].isClose == 1
  5597. ? 'hidden'
  5598. : 'unset'
  5599. }"
  5600. class="worksDetailBox"
  5601. v-if="
  5602. worksStudent.length &&
  5603. worksStudent[toolIndex].length > 0
  5604. "
  5605. >
  5606. <div
  5607. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5608. :key="wIndex"
  5609. class="isWorksName2"
  5610. @click="
  5611. openTools(
  5612. 45,
  5613. toolIndex,
  5614. taskCount,
  5615. w.works,
  5616. w.sName
  5617. )
  5618. "
  5619. >
  5620. {{ w.sName }}
  5621. <img
  5622. class="deleteImg deleteImg2"
  5623. src="../../assets/deleteworks.png"
  5624. v-if="
  5625. w.userid == userid || tType == 1 || tType == 4
  5626. "
  5627. @click.stop="deleteWorks(w.wid)"
  5628. alt
  5629. />
  5630. </div>
  5631. </div>
  5632. </div>
  5633. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5634. 未提交
  5635. </div>
  5636. <div
  5637. class="noWorksS"
  5638. v-if="noWorksS && noWorksS[toolIndex].length"
  5639. >
  5640. <div
  5641. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5642. :key="sIndex"
  5643. class="noWorksName"
  5644. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  5645. >
  5646. <el-tooltip
  5647. effect="dark"
  5648. :content="s.student"
  5649. placement="top"
  5650. >
  5651. <span>{{ s.student }}</span>
  5652. </el-tooltip>
  5653. </div>
  5654. </div>
  5655. </div>
  5656. <div
  5657. v-if="
  5658. tType &&
  5659. ((tType == 2 && sIsOpen == true) ||
  5660. tType == 1 ||
  5661. tType == 4) &&
  5662. tool.tool.indexOf(69) != -1
  5663. "
  5664. class="worksBox"
  5665. >
  5666. <div
  5667. class="zuoyeYulan"
  5668. v-if="
  5669. worksStudent.length &&
  5670. worksStudent[toolIndex].length > 0
  5671. "
  5672. >
  5673. <div class="worksTop">
  5674. <div>作业预览</div>
  5675. <div
  5676. class="corOpen"
  5677. @click="contract(toolIndex)"
  5678. v-if="
  5679. isCloseList[toolIndex].isCloseBoolean &&
  5680. isCloseList[toolIndex].isClose == 0
  5681. "
  5682. >
  5683. 折叠
  5684. </div>
  5685. <div
  5686. class="corOpen"
  5687. @click="contract(toolIndex)"
  5688. v-if="isCloseList[toolIndex].isClose == 1"
  5689. >
  5690. 展开
  5691. </div>
  5692. </div>
  5693. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5694. </div>
  5695. <div>
  5696. <div
  5697. :id="'tool-' + toolIndex"
  5698. :style="{
  5699. height:
  5700. isCloseList[toolIndex].isClose == 1
  5701. ? retrnToolHeight('tool-' + toolIndex)
  5702. : 'auto',
  5703. overflow:
  5704. isCloseList[toolIndex].isClose == 1
  5705. ? 'hidden'
  5706. : 'unset'
  5707. }"
  5708. class="worksDetailBox"
  5709. v-if="
  5710. worksStudent.length &&
  5711. worksStudent[toolIndex].length > 0
  5712. "
  5713. >
  5714. <div
  5715. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5716. :key="wIndex"
  5717. class="isWorksName2"
  5718. style="width: 160px;height: 65px;line-height: 65px;"
  5719. @click="
  5720. openTools(
  5721. 69,
  5722. toolIndex,
  5723. taskCount,
  5724. w.works,
  5725. w.sName,
  5726. w.wid
  5727. )
  5728. "
  5729. >
  5730. {{ w.sName }}
  5731. <img
  5732. class="deleteImg1"
  5733. src="../../assets/evaEnglish.png"
  5734. @click.stop="openEnglishEva(w.wid, toolIndex)"
  5735. alt
  5736. v-if="
  5737. (courseDetail &&
  5738. (courseDetail.userid == userid ||
  5739. (courseDetail.course_teacher &&
  5740. courseDetail.course_teacher.indexOf(
  5741. userid
  5742. ) != -1))) ||
  5743. w.aiCode || w.teacherCode
  5744. "
  5745. />
  5746. <img
  5747. class="deleteImg deleteImg2"
  5748. src="../../assets/deleteworks.png"
  5749. v-if="
  5750. w.userid == userid || tType == 1 || tType == 4
  5751. "
  5752. @click.stop="deleteWorks(w.wid)"
  5753. alt
  5754. />
  5755. </div>
  5756. </div>
  5757. </div>
  5758. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5759. 未提交
  5760. </div>
  5761. <div
  5762. class="noWorksS"
  5763. v-if="noWorksS && noWorksS[toolIndex].length"
  5764. >
  5765. <div
  5766. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5767. :key="sIndex"
  5768. class="noWorksName"
  5769. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  5770. >
  5771. <el-tooltip
  5772. effect="dark"
  5773. :content="s.student"
  5774. placement="top"
  5775. >
  5776. <span>{{ s.student }}</span>
  5777. </el-tooltip>
  5778. </div>
  5779. </div>
  5780. </div>
  5781. <div
  5782. v-if="
  5783. tType &&
  5784. ((tType == 2 && sIsOpen == true) ||
  5785. tType == 1 ||
  5786. tType == 4) &&
  5787. tool.tool.indexOf(15) != -1
  5788. "
  5789. class="worksBox"
  5790. >
  5791. <div
  5792. class="zuoyeYulan"
  5793. v-if="
  5794. (worksStudent.length &&
  5795. worksStudent[toolIndex].length > 0) ||
  5796. (courseGroup.group && courseGroup.group.length)
  5797. "
  5798. >
  5799. <div class="worksTop">
  5800. <div>作业预览</div>
  5801. <div
  5802. class="corOpen"
  5803. @click="contract(toolIndex)"
  5804. v-if="
  5805. isCloseList[toolIndex].isCloseBoolean &&
  5806. isCloseList[toolIndex].isClose == 0
  5807. "
  5808. >
  5809. 折叠
  5810. </div>
  5811. <div
  5812. class="corOpen"
  5813. @click="contract(toolIndex)"
  5814. v-if="isCloseList[toolIndex].isClose == 1"
  5815. >
  5816. 展开
  5817. </div>
  5818. </div>
  5819. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5820. </div>
  5821. <div
  5822. class="group_workBox"
  5823. v-for="(g, gindex) in courseGroup.group"
  5824. :key="gindex"
  5825. >
  5826. <div class="group_box">
  5827. <div class="group_title">
  5828. <el-tooltip
  5829. class="item"
  5830. effect="light"
  5831. :content="g.name"
  5832. placement="top"
  5833. >
  5834. <div class="group_name">{{ g.name }}</div>
  5835. </el-tooltip>
  5836. </div>
  5837. <div
  5838. class="group_work"
  5839. v-if="
  5840. g.works &&
  5841. g.works.length &&
  5842. g.works[toolIndex].length
  5843. "
  5844. >
  5845. <div
  5846. class="works"
  5847. v-for="(w, wIndex) in g.works[toolIndex]"
  5848. :key="wIndex"
  5849. >
  5850. <div
  5851. class="workImg"
  5852. style="
  5853. border-radius: 15px;
  5854. box-shadow: 0px 0px 5px 5px #eee;
  5855. "
  5856. >
  5857. <div
  5858. class="answerBg"
  5859. style="border-radius: 15px 15px 0 0"
  5860. @click="
  5861. commentOther(w, toolIndex, wIndex, null, g.id)
  5862. "
  5863. >
  5864. <div class="answerContent">
  5865. {{ JSON.parse(w.works)[0].answer }}
  5866. </div>
  5867. <div
  5868. class="answerScore"
  5869. v-if="w.score"
  5870. @click.stop="openScore(w)"
  5871. :class="{
  5872. rightW:
  5873. w.userid == userid ||
  5874. tType == 1 ||
  5875. tType == 4
  5876. }"
  5877. >
  5878. {{ JSON.parse(w.score).wScore }}分
  5879. </div>
  5880. <div
  5881. class="answerScore"
  5882. @click.stop="openScore(w)"
  5883. v-else-if="
  5884. courseDetail.userid == userid &&
  5885. courseDetail.state != 5 &&
  5886. chapInfoList[courseType].chapterInfo[0]
  5887. .taskJson[taskCount].eList &&
  5888. chapInfoList[courseType].chapterInfo[0]
  5889. .taskJson[taskCount].eList.length
  5890. "
  5891. :class="{
  5892. rightW:
  5893. w.userid == userid ||
  5894. tType == 1 ||
  5895. tType == 4
  5896. }"
  5897. >
  5898. 评分
  5899. </div>
  5900. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5901. <div
  5902. v-else-if="
  5903. (courseDetail.userid == userid ||
  5904. (courseDetail.course_teacher &&
  5905. courseDetail.course_teacher.indexOf(
  5906. userid
  5907. ) != -1) ||
  5908. (w.userid == userid && sIsOpen)) &&
  5909. courseDetail.state == 5 &&
  5910. ((chapInfoList[courseType].chapterInfo[0]
  5911. .taskJson[taskCount].eList &&
  5912. chapInfoList[courseType].chapterInfo[0]
  5913. .taskJson[taskCount].eList.length) ||
  5914. (tool.eList && tool.eList.length))
  5915. "
  5916. >
  5917. <el-popover
  5918. placement="top"
  5919. width="318"
  5920. :disabled="
  5921. AIloading[toolIndex][wIndex].loading
  5922. "
  5923. trigger="hover"
  5924. >
  5925. <markScore
  5926. :loading="
  5927. AIloading[toolIndex][wIndex].loading
  5928. "
  5929. :markScoreVisible="markScoreVisible"
  5930. :ref="`markSco${toolIndex}${wIndex}`"
  5931. @updateLoading="updateLoading"
  5932. @updateDocSco="updateDocSco"
  5933. @refreshOther="refreshOther"
  5934. @markScoreDig="markScoreDig"
  5935. :tool="tool"
  5936. :wIndex="wIndex"
  5937. :scoCon="w"
  5938. :toolIndex="toolIndex"
  5939. :key="refreshKey"
  5940. :stage="courseType"
  5941. :task="taskCount"
  5942. :scoTit="
  5943. chapInfoList[courseType].chapterInfo[0]
  5944. .taskJson[taskCount].eList
  5945. "
  5946. >
  5947. </markScore>
  5948. <div
  5949. class="answerScore"
  5950. @click.stop="
  5951. markScoreDig2(
  5952. w.sName,
  5953. worksStudent,
  5954. w.userid,
  5955. toolIndex,
  5956. chapInfoList[courseType]
  5957. .chapterInfo[0].taskJson[taskCount]
  5958. .eList,
  5959. AIloading[toolIndex][wIndex].loading,
  5960. tool
  5961. )
  5962. "
  5963. slot="reference"
  5964. :class="{
  5965. rightW:
  5966. w.userid == userid ||
  5967. tType == 1 ||
  5968. tType == 4 ||
  5969. w.ateacher == userid
  5970. }"
  5971. >
  5972. <span
  5973. v-if="AIloading[toolIndex][wIndex].sco"
  5974. >
  5975. {{
  5976. AIloading[toolIndex][wIndex].loading
  5977. ? "评分中"
  5978. : AIloading[toolIndex][wIndex].sco +
  5979. "分"
  5980. }}
  5981. </span>
  5982. <span v-else>
  5983. {{
  5984. AIloading[toolIndex][wIndex].loading
  5985. ? "评分中"
  5986. : "评分"
  5987. }}
  5988. </span>
  5989. </div>
  5990. </el-popover>
  5991. </div>
  5992. <img
  5993. class="deleteImg"
  5994. src="../../assets/deleteworks.png"
  5995. v-if="
  5996. w.userid == userid ||
  5997. tType == 1 ||
  5998. tType == 4
  5999. "
  6000. @click.stop="deleteWorks(w.wid)"
  6001. alt
  6002. />
  6003. </div>
  6004. <div class="comment">
  6005. <div class="worksName">
  6006. <div>{{ w.sName }}</div>
  6007. </div>
  6008. <div class="commentList">
  6009. <div
  6010. class="commentImg"
  6011. @click="
  6012. isLikes(
  6013. w.wid,
  6014. userid,
  6015. 1,
  6016. null,
  6017. w.isLikes,
  6018. w.sName
  6019. )
  6020. "
  6021. >
  6022. <img
  6023. :src="w.isLikes == true ? likes : noLikes"
  6024. alt=""
  6025. />
  6026. </div>
  6027. <div>{{ w.likesCount }}</div>
  6028. </div>
  6029. <div
  6030. class="commentList"
  6031. style="margin-right: 15px"
  6032. >
  6033. <div
  6034. class="commentImg"
  6035. @click="
  6036. commentOther(
  6037. w,
  6038. toolIndex,
  6039. wIndex,
  6040. null,
  6041. g.id
  6042. )
  6043. "
  6044. >
  6045. <img
  6046. src="../../assets/icon/comment/comment.png"
  6047. alt=""
  6048. />
  6049. </div>
  6050. <div>{{ w.commentCount }}</div>
  6051. </div>
  6052. </div>
  6053. </div>
  6054. </div>
  6055. </div>
  6056. <div class="group_work" v-else>暂无提交作业</div>
  6057. </div>
  6058. </div>
  6059. <div
  6060. :id="'tool-' + toolIndex"
  6061. :style="{
  6062. height:
  6063. isCloseList[toolIndex].isClose == 1
  6064. ? retrnToolHeight('tool-' + toolIndex)
  6065. : 'auto',
  6066. overflow:
  6067. isCloseList[toolIndex].isClose == 1
  6068. ? 'hidden'
  6069. : 'unset'
  6070. }"
  6071. class="worksDetailBox"
  6072. v-if="
  6073. worksStudent.length &&
  6074. worksStudent[toolIndex].length > 0
  6075. "
  6076. >
  6077. <div
  6078. class="works"
  6079. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6080. :key="wIndex"
  6081. >
  6082. <div
  6083. class="workImg"
  6084. style="
  6085. border-radius: 15px;
  6086. box-shadow: 0px 0px 5px 5px #eee;
  6087. "
  6088. >
  6089. <!-- <img
  6090. src="../../assets/icon/works/noImg.png"
  6091. @click="openTools(15, toolIndex, taskCount, w.works)"
  6092. alt=""
  6093. />-->
  6094. <div
  6095. class="answerBg"
  6096. style="border-radius: 15px 15px 0 0"
  6097. @click="commentOther(w, toolIndex, wIndex)"
  6098. >
  6099. <!-- <div>{{ w.sName }}</div> -->
  6100. <div class="answerContent">
  6101. {{ JSON.parse(w.works)[0].answer }}
  6102. </div>
  6103. <div
  6104. class="answerScore"
  6105. v-if="w.score"
  6106. @click.stop="openScore(w)"
  6107. :class="{
  6108. rightW:
  6109. w.userid == userid || tType == 1 || tType == 4
  6110. }"
  6111. >
  6112. {{ JSON.parse(w.score).wScore }}分
  6113. </div>
  6114. <div
  6115. class="answerScore"
  6116. @click.stop="openScore(w)"
  6117. v-else-if="
  6118. courseDetail.userid == userid &&
  6119. courseDetail.state != 5 &&
  6120. chapInfoList[courseType].chapterInfo[0]
  6121. .taskJson[taskCount].eList &&
  6122. chapInfoList[courseType].chapterInfo[0]
  6123. .taskJson[taskCount].eList.length
  6124. "
  6125. :class="{
  6126. rightW:
  6127. w.userid == userid || tType == 1 || tType == 4
  6128. }"
  6129. >
  6130. 评分
  6131. </div>
  6132. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6133. <div
  6134. v-else-if="
  6135. (courseDetail.userid == userid ||
  6136. (courseDetail.course_teacher &&
  6137. courseDetail.course_teacher.indexOf(
  6138. userid
  6139. ) != -1) ||
  6140. (w.userid == userid && sIsOpen)) &&
  6141. courseDetail.state == 5 &&
  6142. ((chapInfoList[courseType].chapterInfo[0]
  6143. .taskJson[taskCount].eList &&
  6144. chapInfoList[courseType].chapterInfo[0]
  6145. .taskJson[taskCount].eList.length) ||
  6146. (tool.eList && tool.eList.length))
  6147. "
  6148. >
  6149. <el-popover
  6150. placement="top"
  6151. width="318"
  6152. :disabled="AIloading[toolIndex][wIndex].loading"
  6153. trigger="hover"
  6154. >
  6155. <markScore
  6156. :loading="
  6157. AIloading[toolIndex][wIndex].loading
  6158. "
  6159. :markScoreVisible="markScoreVisible"
  6160. :ref="`markSco${toolIndex}${wIndex}`"
  6161. @updateLoading="updateLoading"
  6162. @updateDocSco="updateDocSco"
  6163. @refreshOther="refreshOther"
  6164. @markScoreDig="markScoreDig"
  6165. :tool="tool"
  6166. :wIndex="wIndex"
  6167. :scoCon="w"
  6168. :toolIndex="toolIndex"
  6169. :key="refreshKey"
  6170. :stage="courseType"
  6171. :task="taskCount"
  6172. :scoTit="
  6173. chapInfoList[courseType].chapterInfo[0]
  6174. .taskJson[taskCount].eList
  6175. "
  6176. >
  6177. </markScore>
  6178. <div
  6179. class="answerScore"
  6180. @click.stop="
  6181. markScoreDig2(
  6182. w.sName,
  6183. worksStudent,
  6184. w.userid,
  6185. toolIndex,
  6186. chapInfoList[courseType].chapterInfo[0]
  6187. .taskJson[taskCount].eList,
  6188. AIloading[toolIndex][wIndex].loading,
  6189. tool
  6190. )
  6191. "
  6192. slot="reference"
  6193. :class="{
  6194. rightW:
  6195. w.userid == userid ||
  6196. tType == 1 ||
  6197. tType == 4 ||
  6198. w.ateacher == userid
  6199. }"
  6200. >
  6201. <span v-if="AIloading[toolIndex][wIndex].sco">
  6202. {{
  6203. AIloading[toolIndex][wIndex].loading
  6204. ? "评分中"
  6205. : AIloading[toolIndex][wIndex].sco +
  6206. "分"
  6207. }}
  6208. </span>
  6209. <span v-else>
  6210. {{
  6211. AIloading[toolIndex][wIndex].loading
  6212. ? "评分中"
  6213. : "评分"
  6214. }}
  6215. </span>
  6216. </div>
  6217. </el-popover>
  6218. </div>
  6219. <img
  6220. class="deleteImg"
  6221. src="../../assets/deleteworks.png"
  6222. v-if="
  6223. w.userid == userid || tType == 1 || tType == 4
  6224. "
  6225. @click.stop="deleteWorks(w.wid)"
  6226. alt
  6227. />
  6228. </div>
  6229. <div class="comment">
  6230. <div class="worksName">
  6231. <div>{{ w.sName }}</div>
  6232. </div>
  6233. <div class="commentList">
  6234. <div
  6235. class="commentImg"
  6236. @click="
  6237. isLikes(
  6238. w.wid,
  6239. userid,
  6240. 1,
  6241. null,
  6242. w.isLikes,
  6243. w.sName
  6244. )
  6245. "
  6246. >
  6247. <img
  6248. :src="w.isLikes == true ? likes : noLikes"
  6249. alt=""
  6250. />
  6251. </div>
  6252. <div>{{ w.likesCount }}</div>
  6253. </div>
  6254. <div class="commentList" style="margin-right: 15px">
  6255. <div
  6256. class="commentImg"
  6257. @click="commentOther(w, toolIndex, wIndex)"
  6258. >
  6259. <img
  6260. src="../../assets/icon/comment/comment.png"
  6261. alt=""
  6262. />
  6263. </div>
  6264. <div>{{ w.commentCount }}</div>
  6265. </div>
  6266. </div>
  6267. </div>
  6268. </div>
  6269. </div>
  6270. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6271. 未提交
  6272. </div>
  6273. <div
  6274. class="noWorksS"
  6275. v-if="noWorksS && noWorksS[toolIndex].length"
  6276. >
  6277. <div
  6278. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6279. :key="sIndex"
  6280. class="noWorksName"
  6281. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6282. >
  6283. <el-tooltip
  6284. effect="dark"
  6285. :content="s.student"
  6286. placement="top"
  6287. >
  6288. <span>{{ s.student }}</span>
  6289. </el-tooltip>
  6290. </div>
  6291. </div>
  6292. </div>
  6293. <div
  6294. v-if="
  6295. tType &&
  6296. ((tType == 2 && sIsOpen == true) ||
  6297. tType == 1 ||
  6298. tType == 4) &&
  6299. tool.tool.indexOf(1) != -1
  6300. "
  6301. class="worksBox"
  6302. >
  6303. <div
  6304. class="zuoyeYulan"
  6305. style="display: flex;justify-content: space-between;align-items: center;"
  6306. v-if="
  6307. (worksStudent.length &&
  6308. worksStudent[toolIndex].length > 0) ||
  6309. (courseGroup.group && courseGroup.group.length)
  6310. "
  6311. >
  6312. <div class="worksTop">
  6313. <div>作业预览</div>
  6314. <div
  6315. class="corOpen"
  6316. @click="contract(toolIndex)"
  6317. v-if="
  6318. isCloseList[toolIndex].isCloseBoolean &&
  6319. isCloseList[toolIndex].isClose == 0
  6320. "
  6321. >
  6322. 折叠
  6323. </div>
  6324. <div
  6325. class="corOpen"
  6326. @click="contract(toolIndex)"
  6327. v-if="isCloseList[toolIndex].isClose == 1"
  6328. >
  6329. 展开
  6330. </div>
  6331. </div>
  6332. <div
  6333. style="display: flex;"
  6334. v-if="
  6335. (courseDetail.userid == userid ||
  6336. (courseDetail.course_teacher &&
  6337. courseDetail.course_teacher.indexOf(userid) !=
  6338. -1)) &&
  6339. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6340. taskCount
  6341. ].eList &&
  6342. chapInfoList[courseType].chapterInfo[0].taskJson[
  6343. taskCount
  6344. ].eList.length) ||
  6345. (tool.eList && tool.eList.length)) &&
  6346. courseDetail.state == 5
  6347. "
  6348. >
  6349. <div
  6350. style="margin-right:10px"
  6351. class="ScoreBtn"
  6352. @click="
  6353. resetLoopEva(
  6354. worksStudent[toolIndex],
  6355. chapInfoList[courseType].chapterInfo[0].taskJson[
  6356. taskCount
  6357. ].eList,
  6358. courseType,
  6359. taskCount,
  6360. toolIndex,
  6361. tool.toolDetail,
  6362. worksStudent
  6363. )
  6364. "
  6365. >
  6366. 一键重置
  6367. </div>
  6368. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6369. <img
  6370. src="../../assets/icon/newIcons/rootImg.png"
  6371. alt=""
  6372. />
  6373. AI评分
  6374. </div>
  6375. <div
  6376. class="ScoreBtn"
  6377. v-else-if="!loopLoading[toolIndex].loading"
  6378. @click="
  6379. loopEva(
  6380. worksStudent[toolIndex],
  6381. chapInfoList[courseType].chapterInfo[0].taskJson[
  6382. taskCount
  6383. ].eList,
  6384. courseType,
  6385. taskCount,
  6386. toolIndex,
  6387. tool.toolDetail,
  6388. chapInfoList[courseType].chapterInfo[0].taskJson[
  6389. taskCount
  6390. ].taskDetail,
  6391. tool
  6392. )
  6393. "
  6394. >
  6395. <img
  6396. src="../../assets/icon/newIcons/rootImg.png"
  6397. alt=""
  6398. />
  6399. AI评分
  6400. </div>
  6401. <div class="ScoreBtn" v-else>
  6402. <img
  6403. src="../../assets/icon/newIcons/rootImg.png"
  6404. alt=""
  6405. />
  6406. 正在评分
  6407. </div>
  6408. </div>
  6409. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6410. </div>
  6411. <div
  6412. class="group_workBox"
  6413. v-for="(g, gindex) in courseGroup.group"
  6414. :key="gindex"
  6415. >
  6416. <div class="group_box">
  6417. <div class="group_title">
  6418. <el-tooltip
  6419. class="item"
  6420. effect="light"
  6421. :content="g.name"
  6422. placement="top"
  6423. >
  6424. <div class="group_name">{{ g.name }}</div>
  6425. </el-tooltip>
  6426. </div>
  6427. <div
  6428. class="group_work"
  6429. v-if="
  6430. g.works &&
  6431. g.works.length &&
  6432. g.works[toolIndex].length
  6433. "
  6434. >
  6435. <div
  6436. class="works"
  6437. style="
  6438. width: 200px;
  6439. height: 140px;
  6440. margin: 10px 10px 10px 0;
  6441. border-radius: 15px;
  6442. box-shadow: 0 0 6px 1px #dfdada;
  6443. "
  6444. v-for="(w, wIndex) in g.works[toolIndex]"
  6445. :key="wIndex"
  6446. :class="w.type == 1 ? 'isTypeOne' : ''"
  6447. >
  6448. <div class="workImg">
  6449. <img
  6450. :src="w.works"
  6451. @click="previewImg(w.works, w)"
  6452. alt
  6453. />
  6454. <div
  6455. class="answerScore"
  6456. v-if="w.score"
  6457. @click.stop="openScore(w)"
  6458. :class="{
  6459. rightW:
  6460. w.userid == userid ||
  6461. tType == 1 ||
  6462. tType == 4
  6463. }"
  6464. >
  6465. {{ JSON.parse(w.score).wScore }}分
  6466. </div>
  6467. <div
  6468. class="answerScore"
  6469. @click.stop="openScore(w)"
  6470. v-else-if="courseDetail.userid == userid"
  6471. :class="{
  6472. rightW:
  6473. w.userid == userid ||
  6474. tType == 1 ||
  6475. tType == 4
  6476. }"
  6477. >
  6478. 评分
  6479. </div>
  6480. <img
  6481. class="deleteImg"
  6482. src="../../assets/deleteworks.png"
  6483. v-if="
  6484. w.userid == userid || tType == 1 || tType == 4
  6485. "
  6486. @click.stop="deleteWorks(w.wid)"
  6487. alt
  6488. />
  6489. </div>
  6490. <div class="comment" style="min-width: 200px">
  6491. <div class="worksName">
  6492. <div>{{ w.sName }}</div>
  6493. </div>
  6494. <div class="commentList">
  6495. <div class="commentList">
  6496. <div
  6497. class="commentImg"
  6498. @click="
  6499. isLikes(
  6500. w.wid,
  6501. userid,
  6502. 1,
  6503. null,
  6504. w.isLikes,
  6505. w.sName
  6506. )
  6507. "
  6508. >
  6509. <img
  6510. :src="w.isLikes == true ? likes : noLikes"
  6511. alt=""
  6512. />
  6513. </div>
  6514. <div>{{ w.likesCount }}</div>
  6515. </div>
  6516. <div
  6517. class="commentList"
  6518. style="margin-right: 15px"
  6519. >
  6520. <div
  6521. class="commentImg"
  6522. @click="
  6523. commentOther(
  6524. w,
  6525. toolIndex,
  6526. wIndex,
  6527. null,
  6528. g.id
  6529. )
  6530. "
  6531. >
  6532. <img
  6533. src="../../assets/icon/comment/comment.png"
  6534. alt=""
  6535. />
  6536. </div>
  6537. <div>{{ w.commentCount }}</div>
  6538. </div>
  6539. </div>
  6540. </div>
  6541. </div>
  6542. </div>
  6543. <div class="group_work" v-else>暂无提交作业</div>
  6544. </div>
  6545. </div>
  6546. <div
  6547. :id="'tool-' + toolIndex"
  6548. :style="{
  6549. height:
  6550. isCloseList[toolIndex].isClose == 1
  6551. ? retrnToolHeight('tool-' + toolIndex)
  6552. : 'auto',
  6553. overflow:
  6554. isCloseList[toolIndex].isClose == 1
  6555. ? 'hidden'
  6556. : 'unset'
  6557. }"
  6558. class="worksDetailBox"
  6559. v-if="
  6560. worksStudent.length &&
  6561. worksStudent[toolIndex].length > 0
  6562. "
  6563. >
  6564. <div
  6565. class="works"
  6566. style="
  6567. width: 200px;
  6568. height: 140px;
  6569. margin: 10px 10px 10px 0;
  6570. border-radius: 15px;
  6571. box-shadow: 0 0 6px 1px #dfdada;
  6572. "
  6573. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6574. :key="wIndex"
  6575. >
  6576. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6577. <div class="workImg">
  6578. <img
  6579. :src="w.works"
  6580. @click="previewImg(w.works, w)"
  6581. alt
  6582. />
  6583. <div
  6584. class="answerScore"
  6585. v-if="w.score"
  6586. @click.stop="openScore(w)"
  6587. :class="{
  6588. rightW:
  6589. w.userid == userid || tType == 1 || tType == 4
  6590. }"
  6591. >
  6592. {{ JSON.parse(w.score).wScore }}分
  6593. </div>
  6594. <div
  6595. class="answerScore"
  6596. @click.stop="openScore(w)"
  6597. v-else-if="
  6598. courseDetail.userid == userid &&
  6599. courseDetail.state != 5 &&
  6600. chapInfoList[courseType].chapterInfo[0]
  6601. .taskJson[taskCount].eList &&
  6602. chapInfoList[courseType].chapterInfo[0]
  6603. .taskJson[taskCount].eList.length
  6604. "
  6605. :class="{
  6606. rightW:
  6607. w.userid == userid || tType == 1 || tType == 4
  6608. }"
  6609. >
  6610. 评分
  6611. </div>
  6612. <div
  6613. v-else-if="
  6614. (courseDetail.userid == userid ||
  6615. (courseDetail.course_teacher &&
  6616. courseDetail.course_teacher.indexOf(userid) !=
  6617. -1) ||
  6618. (courseDetail.course_teacher &&
  6619. courseDetail.course_teacher.indexOf(userid) !=
  6620. -1) ||
  6621. (courseDetail.course_teacher &&
  6622. courseDetail.course_teacher.indexOf(userid) !=
  6623. -1) ||
  6624. (w.userid == userid && sIsOpen)) &&
  6625. courseDetail.state == 5 &&
  6626. ((chapInfoList[courseType].chapterInfo[0]
  6627. .taskJson[taskCount].eList &&
  6628. chapInfoList[courseType].chapterInfo[0]
  6629. .taskJson[taskCount].eList.length) ||
  6630. (tool.eList && tool.eList.length))
  6631. "
  6632. >
  6633. <el-popover
  6634. placement="top"
  6635. width="318"
  6636. :disabled="AIloading[toolIndex][wIndex].loading"
  6637. trigger="hover"
  6638. >
  6639. <markScore
  6640. :loading="AIloading[toolIndex][wIndex].loading"
  6641. :markScoreVisible="markScoreVisible"
  6642. :ref="`markSco${toolIndex}${wIndex}`"
  6643. @updateLoading="updateLoading"
  6644. @updateDocSco="updateDocSco"
  6645. @refreshOther="refreshOther"
  6646. @markScoreDig="markScoreDig"
  6647. :tool="tool"
  6648. :wIndex="wIndex"
  6649. :scoCon="w"
  6650. :toolIndex="toolIndex"
  6651. :key="refreshKey"
  6652. :stage="courseType"
  6653. :task="taskCount"
  6654. :scoTit="
  6655. chapInfoList[courseType].chapterInfo[0]
  6656. .taskJson[taskCount].eList
  6657. "
  6658. >
  6659. </markScore>
  6660. <div
  6661. class="answerScore"
  6662. @click="
  6663. markScoreDig2(
  6664. w.sName,
  6665. worksStudent,
  6666. w.userid,
  6667. toolIndex,
  6668. chapInfoList[courseType].chapterInfo[0]
  6669. .taskJson[taskCount].eList,
  6670. AIloading[toolIndex][wIndex].loading,
  6671. tool
  6672. )
  6673. "
  6674. slot="reference"
  6675. :class="{
  6676. rightW:
  6677. w.userid == userid ||
  6678. tType == 1 ||
  6679. tType == 4 ||
  6680. w.ateacher == userid
  6681. }"
  6682. >
  6683. <span v-if="AIloading[toolIndex][wIndex].sco">
  6684. {{
  6685. AIloading[toolIndex][wIndex].loading
  6686. ? "评分中"
  6687. : AIloading[toolIndex][wIndex].sco + "分"
  6688. }}
  6689. </span>
  6690. <span v-else>
  6691. {{
  6692. AIloading[toolIndex][wIndex].loading
  6693. ? "评分中"
  6694. : "评分"
  6695. }}
  6696. </span>
  6697. </div>
  6698. </el-popover>
  6699. </div>
  6700. <img
  6701. class="deleteImg"
  6702. src="../../assets/deleteworks.png"
  6703. v-if="
  6704. w.userid == userid || tType == 1 || tType == 4
  6705. "
  6706. @click.stop="deleteWorks(w.wid)"
  6707. alt
  6708. />
  6709. </div>
  6710. <div class="comment" style="min-width: 200px">
  6711. <div class="worksName">
  6712. <div>{{ w.sName }}</div>
  6713. </div>
  6714. <div class="commentList">
  6715. <div class="commentList">
  6716. <div
  6717. class="commentImg"
  6718. @click="
  6719. isLikes(
  6720. w.wid,
  6721. userid,
  6722. 1,
  6723. null,
  6724. w.isLikes,
  6725. w.sName
  6726. )
  6727. "
  6728. >
  6729. <img
  6730. :src="w.isLikes == true ? likes : noLikes"
  6731. alt=""
  6732. />
  6733. </div>
  6734. <div>{{ w.likesCount }}</div>
  6735. </div>
  6736. <div class="commentList" style="margin-right: 15px">
  6737. <div
  6738. class="commentImg"
  6739. @click="commentOther(w, toolIndex, wIndex)"
  6740. >
  6741. <img
  6742. src="../../assets/icon/comment/comment.png"
  6743. alt=""
  6744. />
  6745. </div>
  6746. <div>{{ w.commentCount }}</div>
  6747. </div>
  6748. </div>
  6749. </div>
  6750. </div>
  6751. </div>
  6752. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6753. 未提交
  6754. </div>
  6755. <div
  6756. class="noWorksS"
  6757. v-if="noWorksS && noWorksS[toolIndex].length"
  6758. >
  6759. <div
  6760. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6761. :key="sIndex"
  6762. class="noWorksName"
  6763. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6764. >
  6765. <el-tooltip
  6766. effect="dark"
  6767. :content="s.student"
  6768. placement="top"
  6769. >
  6770. <span>{{ s.student }}</span>
  6771. </el-tooltip>
  6772. </div>
  6773. </div>
  6774. </div>
  6775. <div
  6776. v-if="
  6777. tType &&
  6778. ((tType == 2 && sIsOpen == true) ||
  6779. tType == 1 ||
  6780. tType == 4) &&
  6781. tool.tool.indexOf(3) != -1
  6782. "
  6783. class="worksBox"
  6784. >
  6785. <div
  6786. class="zuoyeYulan"
  6787. style="display: flex;justify-content: space-between;align-items: center;"
  6788. v-if="
  6789. (worksStudent.length &&
  6790. worksStudent[toolIndex].length > 0) ||
  6791. (courseGroup.group && courseGroup.group.length)
  6792. "
  6793. >
  6794. <div class="worksTop">
  6795. <div>作业预览</div>
  6796. <div
  6797. class="corOpen"
  6798. @click="contract(toolIndex)"
  6799. v-if="
  6800. isCloseList[toolIndex].isCloseBoolean &&
  6801. isCloseList[toolIndex].isClose == 0
  6802. "
  6803. >
  6804. 折叠
  6805. </div>
  6806. <div
  6807. class="corOpen"
  6808. @click="contract(toolIndex)"
  6809. v-if="isCloseList[toolIndex].isClose == 1"
  6810. >
  6811. 展开
  6812. </div>
  6813. </div>
  6814. <div
  6815. style="display: flex;"
  6816. v-if="
  6817. (courseDetail.userid == userid ||
  6818. (courseDetail.course_teacher &&
  6819. courseDetail.course_teacher.indexOf(userid) !=
  6820. -1)) &&
  6821. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6822. taskCount
  6823. ].eList &&
  6824. chapInfoList[courseType].chapterInfo[0].taskJson[
  6825. taskCount
  6826. ].eList.length) ||
  6827. (tool.eList && tool.eList.length)) &&
  6828. courseDetail.state == 5
  6829. "
  6830. >
  6831. <div
  6832. style="margin-right:10px"
  6833. class="ScoreBtn"
  6834. @click="
  6835. resetLoopEva(
  6836. worksStudent[toolIndex],
  6837. chapInfoList[courseType].chapterInfo[0].taskJson[
  6838. taskCount
  6839. ].eList,
  6840. courseType,
  6841. taskCount,
  6842. toolIndex,
  6843. tool.toolDetail,
  6844. worksStudent
  6845. )
  6846. "
  6847. >
  6848. 一键重置
  6849. </div>
  6850. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6851. <img
  6852. src="../../assets/icon/newIcons/rootImg.png"
  6853. alt=""
  6854. />
  6855. AI评分
  6856. </div>
  6857. <div
  6858. class="ScoreBtn"
  6859. v-else-if="!loopLoading[toolIndex].loading"
  6860. @click="
  6861. loopEva(
  6862. worksStudent[toolIndex],
  6863. chapInfoList[courseType].chapterInfo[0].taskJson[
  6864. taskCount
  6865. ].eList,
  6866. courseType,
  6867. taskCount,
  6868. toolIndex,
  6869. tool.toolDetail,
  6870. chapInfoList[courseType].chapterInfo[0].taskJson[
  6871. taskCount
  6872. ].taskDetail,
  6873. tool
  6874. )
  6875. "
  6876. >
  6877. <img
  6878. src="../../assets/icon/newIcons/rootImg.png"
  6879. alt=""
  6880. />
  6881. AI评分
  6882. </div>
  6883. <div class="ScoreBtn" v-else>
  6884. <img
  6885. src="../../assets/icon/newIcons/rootImg.png"
  6886. alt=""
  6887. />
  6888. 正在评分
  6889. </div>
  6890. </div>
  6891. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6892. </div>
  6893. <div
  6894. class="group_workBox"
  6895. v-for="(g, gindex) in courseGroup.group"
  6896. :key="gindex"
  6897. >
  6898. <div class="group_box">
  6899. <div class="group_title">
  6900. <el-tooltip
  6901. class="item"
  6902. effect="light"
  6903. :content="g.name"
  6904. placement="top"
  6905. >
  6906. <div class="group_name">{{ g.name }}</div>
  6907. </el-tooltip>
  6908. </div>
  6909. <div
  6910. class="group_work"
  6911. v-if="
  6912. g.works &&
  6913. g.works.length &&
  6914. g.works[toolIndex].length
  6915. "
  6916. >
  6917. <div
  6918. class="works"
  6919. style="
  6920. width: 200px;
  6921. height: 140px;
  6922. margin: 10px 10px 10px 0;
  6923. border-radius: 15px;
  6924. box-shadow: 0 0 6px 1px #dfdada;
  6925. "
  6926. v-for="(w, wIndex) in g.works[toolIndex]"
  6927. :key="wIndex"
  6928. :class="w.type == 1 ? 'isTypeOne' : ''"
  6929. >
  6930. <div class="workImg">
  6931. <img
  6932. :src="w.works"
  6933. @click="previewImg(w.works, w)"
  6934. alt
  6935. />
  6936. <div
  6937. class="answerScore"
  6938. v-if="w.score"
  6939. @click.stop="openScore(w)"
  6940. :class="{
  6941. rightW:
  6942. w.userid == userid ||
  6943. tType == 1 ||
  6944. tType == 4
  6945. }"
  6946. >
  6947. {{ JSON.parse(w.score).wScore }}分
  6948. </div>
  6949. <div
  6950. class="answerScore"
  6951. @click.stop="openScore(w)"
  6952. v-else-if="courseDetail.userid == userid"
  6953. :class="{
  6954. rightW:
  6955. w.userid == userid ||
  6956. tType == 1 ||
  6957. tType == 4
  6958. }"
  6959. >
  6960. 评分
  6961. </div>
  6962. <img
  6963. class="deleteImg"
  6964. src="../../assets/deleteworks.png"
  6965. v-if="
  6966. w.userid == userid || tType == 1 || tType == 4
  6967. "
  6968. @click.stop="deleteWorks(w.wid)"
  6969. alt
  6970. />
  6971. </div>
  6972. <div class="comment" style="min-width: 200px">
  6973. <div class="worksName">
  6974. <div>{{ w.sName }}</div>
  6975. </div>
  6976. <div class="commentList">
  6977. <div class="commentList">
  6978. <div
  6979. class="commentImg"
  6980. @click="
  6981. isLikes(
  6982. w.wid,
  6983. userid,
  6984. 1,
  6985. null,
  6986. w.isLikes,
  6987. w.sName
  6988. )
  6989. "
  6990. >
  6991. <img
  6992. :src="w.isLikes == true ? likes : noLikes"
  6993. alt=""
  6994. />
  6995. </div>
  6996. <div>{{ w.likesCount }}</div>
  6997. </div>
  6998. <div
  6999. class="commentList"
  7000. style="margin-right: 15px"
  7001. >
  7002. <div
  7003. class="commentImg"
  7004. @click="
  7005. commentOther(
  7006. w,
  7007. toolIndex,
  7008. wIndex,
  7009. null,
  7010. g.id
  7011. )
  7012. "
  7013. >
  7014. <img
  7015. src="../../assets/icon/comment/comment.png"
  7016. alt=""
  7017. />
  7018. </div>
  7019. <div>{{ w.commentCount }}</div>
  7020. </div>
  7021. </div>
  7022. </div>
  7023. </div>
  7024. </div>
  7025. <div class="group_work" v-else>暂无提交作业</div>
  7026. </div>
  7027. </div>
  7028. <div
  7029. :id="'tool-' + toolIndex"
  7030. :style="{
  7031. height:
  7032. isCloseList[toolIndex].isClose == 1
  7033. ? retrnToolHeight('tool-' + toolIndex)
  7034. : 'auto',
  7035. overflow:
  7036. isCloseList[toolIndex].isClose == 1
  7037. ? 'hidden'
  7038. : 'unset'
  7039. }"
  7040. class="worksDetailBox"
  7041. v-if="
  7042. worksStudent.length &&
  7043. worksStudent[toolIndex].length > 0
  7044. "
  7045. >
  7046. <div
  7047. class="works"
  7048. style="
  7049. width: 200px;
  7050. height: 140px;
  7051. margin: 10px 10px 10px 0;
  7052. border-radius: 15px;
  7053. box-shadow: 0 0 6px 1px #dfdada;
  7054. "
  7055. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7056. :key="wIndex"
  7057. >
  7058. <!-- @click="previewImg(w.works)" -->
  7059. <div class="workImg">
  7060. <img
  7061. :src="w.works"
  7062. @click="previewImg(w.works, w)"
  7063. alt
  7064. />
  7065. <div
  7066. class="answerScore"
  7067. v-if="w.score"
  7068. @click.stop="openScore(w)"
  7069. :class="{
  7070. rightW:
  7071. w.userid == userid || tType == 1 || tType == 4
  7072. }"
  7073. >
  7074. {{ JSON.parse(w.score).wScore }}分
  7075. </div>
  7076. <div
  7077. class="answerScore"
  7078. @click.stop="openScore(w)"
  7079. v-else-if="
  7080. courseDetail.userid == userid &&
  7081. courseDetail.state != 5 &&
  7082. chapInfoList[courseType].chapterInfo[0]
  7083. .taskJson[taskCount].eList &&
  7084. chapInfoList[courseType].chapterInfo[0]
  7085. .taskJson[taskCount].eList.length
  7086. "
  7087. :class="{
  7088. rightW:
  7089. w.userid == userid || tType == 1 || tType == 4
  7090. }"
  7091. >
  7092. 评分
  7093. </div>
  7094. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  7095. <div
  7096. v-else-if="
  7097. (courseDetail.userid == userid ||
  7098. (courseDetail.course_teacher &&
  7099. courseDetail.course_teacher.indexOf(userid) !=
  7100. -1) ||
  7101. (w.userid == userid && sIsOpen)) &&
  7102. courseDetail.state == 5 &&
  7103. ((chapInfoList[courseType].chapterInfo[0]
  7104. .taskJson[taskCount].eList &&
  7105. chapInfoList[courseType].chapterInfo[0]
  7106. .taskJson[taskCount].eList.length) ||
  7107. (tool.eList && tool.eList.length))
  7108. "
  7109. >
  7110. <el-popover
  7111. placement="top"
  7112. width="318"
  7113. :disabled="AIloading[toolIndex][wIndex].loading"
  7114. trigger="hover"
  7115. >
  7116. <markScore
  7117. :loading="AIloading[toolIndex][wIndex].loading"
  7118. :markScoreVisible="markScoreVisible"
  7119. :ref="`markSco${toolIndex}${wIndex}`"
  7120. @updateLoading="updateLoading"
  7121. @updateDocSco="updateDocSco"
  7122. @refreshOther="refreshOther"
  7123. @markScoreDig="markScoreDig"
  7124. :tool="tool"
  7125. :wIndex="wIndex"
  7126. :scoCon="w"
  7127. :toolIndex="toolIndex"
  7128. :key="refreshKey"
  7129. :stage="courseType"
  7130. :task="taskCount"
  7131. :scoTit="
  7132. chapInfoList[courseType].chapterInfo[0]
  7133. .taskJson[taskCount].eList
  7134. "
  7135. >
  7136. </markScore>
  7137. <div
  7138. class="answerScore"
  7139. @click="
  7140. markScoreDig2(
  7141. w.sName,
  7142. worksStudent,
  7143. w.userid,
  7144. toolIndex,
  7145. chapInfoList[courseType].chapterInfo[0]
  7146. .taskJson[taskCount].eList,
  7147. AIloading[toolIndex][wIndex].loading,
  7148. tool
  7149. )
  7150. "
  7151. slot="reference"
  7152. :class="{
  7153. rightW:
  7154. w.userid == userid ||
  7155. tType == 1 ||
  7156. tType == 4 ||
  7157. w.ateacher == userid
  7158. }"
  7159. >
  7160. <span v-if="AIloading[toolIndex][wIndex].sco">
  7161. {{
  7162. AIloading[toolIndex][wIndex].loading
  7163. ? "评分中"
  7164. : AIloading[toolIndex][wIndex].sco + "分"
  7165. }}
  7166. </span>
  7167. <span v-else>
  7168. {{
  7169. AIloading[toolIndex][wIndex].loading
  7170. ? "评分中"
  7171. : "评分"
  7172. }}
  7173. </span>
  7174. </div>
  7175. </el-popover>
  7176. </div>
  7177. <img
  7178. class="deleteImg"
  7179. src="../../assets/deleteworks.png"
  7180. v-if="
  7181. w.userid == userid || tType == 1 || tType == 4
  7182. "
  7183. @click.stop="deleteWorks(w.wid)"
  7184. alt
  7185. />
  7186. </div>
  7187. <div class="comment" style="min-width: 200px">
  7188. <div class="worksName">
  7189. <div>{{ w.sName }}</div>
  7190. </div>
  7191. <div class="commentList">
  7192. <div class="commentList">
  7193. <div
  7194. class="commentImg"
  7195. @click="
  7196. isLikes(
  7197. w.wid,
  7198. userid,
  7199. 1,
  7200. null,
  7201. w.isLikes,
  7202. w.sName
  7203. )
  7204. "
  7205. >
  7206. <img
  7207. :src="w.isLikes == true ? likes : noLikes"
  7208. alt=""
  7209. />
  7210. </div>
  7211. <div>{{ w.likesCount }}</div>
  7212. </div>
  7213. <div class="commentList" style="margin-right: 15px">
  7214. <div
  7215. class="commentImg"
  7216. @click="commentOther(w, toolIndex, wIndex)"
  7217. >
  7218. <img
  7219. src="../../assets/icon/comment/comment.png"
  7220. alt=""
  7221. />
  7222. </div>
  7223. <div>{{ w.commentCount }}</div>
  7224. </div>
  7225. </div>
  7226. </div>
  7227. </div>
  7228. </div>
  7229. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7230. 未提交
  7231. </div>
  7232. <div
  7233. class="noWorksS"
  7234. v-if="noWorksS && noWorksS[toolIndex].length"
  7235. >
  7236. <div
  7237. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7238. :key="sIndex"
  7239. class="noWorksName"
  7240. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7241. >
  7242. <el-tooltip
  7243. effect="dark"
  7244. :content="s.student"
  7245. placement="top"
  7246. >
  7247. <span>{{ s.student }}</span>
  7248. </el-tooltip>
  7249. </div>
  7250. </div>
  7251. </div>
  7252. <div
  7253. v-if="
  7254. tType &&
  7255. ((tType == 2 && sIsOpen == true) ||
  7256. tType == 1 ||
  7257. tType == 4) &&
  7258. tool.tool.indexOf(6) != -1
  7259. "
  7260. class="worksBox"
  7261. >
  7262. <div
  7263. class="zuoyeYulan"
  7264. v-if="
  7265. (worksStudent.length &&
  7266. worksStudent[toolIndex].length > 0) ||
  7267. (courseGroup.group && courseGroup.group.length)
  7268. "
  7269. >
  7270. <div class="worksTop">
  7271. <div>作业预览</div>
  7272. <div
  7273. class="corOpen"
  7274. @click="contract(toolIndex)"
  7275. v-if="
  7276. isCloseList[toolIndex].isCloseBoolean &&
  7277. isCloseList[toolIndex].isClose == 0
  7278. "
  7279. >
  7280. 折叠
  7281. </div>
  7282. <div
  7283. class="corOpen"
  7284. @click="contract(toolIndex)"
  7285. v-if="isCloseList[toolIndex].isClose == 1"
  7286. >
  7287. 展开
  7288. </div>
  7289. </div>
  7290. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7291. </div>
  7292. <div
  7293. class="group_workBox"
  7294. v-for="(g, gindex) in courseGroup.group"
  7295. :key="gindex"
  7296. >
  7297. <div class="group_box">
  7298. <div class="group_title">
  7299. <el-tooltip
  7300. class="item"
  7301. effect="light"
  7302. :content="g.name"
  7303. placement="top"
  7304. >
  7305. <div class="group_name">{{ g.name }}</div>
  7306. </el-tooltip>
  7307. </div>
  7308. <div
  7309. class="group_work"
  7310. v-if="
  7311. g.works &&
  7312. g.works.length &&
  7313. g.works[toolIndex].length
  7314. "
  7315. >
  7316. <div
  7317. class="works"
  7318. style="
  7319. width: 200px;
  7320. height: 140px;
  7321. margin: 10px 10px 10px 0;
  7322. border-radius: 15px;
  7323. box-shadow: 0 0 6px 1px #dfdada;
  7324. "
  7325. v-for="(w, wIndex) in g.works[toolIndex]"
  7326. :key="wIndex"
  7327. :class="w.type == 1 ? 'isTypeOne' : ''"
  7328. >
  7329. <div class="workImg">
  7330. <img
  7331. :src="w.works"
  7332. @click="previewImg(w.works, w)"
  7333. alt
  7334. />
  7335. <div
  7336. class="answerScore"
  7337. v-if="w.score"
  7338. @click.stop="openScore(w)"
  7339. :class="{
  7340. rightW:
  7341. w.userid == userid ||
  7342. tType == 1 ||
  7343. tType == 4
  7344. }"
  7345. >
  7346. {{ JSON.parse(w.score).wScore }}分
  7347. </div>
  7348. <div
  7349. class="answerScore"
  7350. @click.stop="openScore(w)"
  7351. v-else-if="courseDetail.userid == userid"
  7352. :class="{
  7353. rightW:
  7354. w.userid == userid ||
  7355. tType == 1 ||
  7356. tType == 4
  7357. }"
  7358. >
  7359. 评分
  7360. </div>
  7361. <img
  7362. class="deleteImg"
  7363. src="../../assets/deleteworks.png"
  7364. v-if="
  7365. w.userid == userid || tType == 1 || tType == 4
  7366. "
  7367. @click.stop="deleteWorks(w.wid)"
  7368. alt
  7369. />
  7370. </div>
  7371. <div class="comment" style="min-width: 200px">
  7372. <div class="worksName">
  7373. <div>{{ w.sName }}</div>
  7374. </div>
  7375. <div class="commentList">
  7376. <div class="commentList">
  7377. <div
  7378. class="commentImg"
  7379. @click="
  7380. isLikes(
  7381. w.wid,
  7382. userid,
  7383. 1,
  7384. null,
  7385. w.isLikes,
  7386. w.sName
  7387. )
  7388. "
  7389. >
  7390. <img
  7391. :src="w.isLikes == true ? likes : noLikes"
  7392. alt=""
  7393. />
  7394. </div>
  7395. <div>{{ w.likesCount }}</div>
  7396. </div>
  7397. <div
  7398. class="commentList"
  7399. style="margin-right: 15px"
  7400. >
  7401. <div
  7402. class="commentImg"
  7403. @click="
  7404. commentOther(
  7405. w,
  7406. toolIndex,
  7407. wIndex,
  7408. null,
  7409. g.id
  7410. )
  7411. "
  7412. >
  7413. <img
  7414. src="../../assets/icon/comment/comment.png"
  7415. alt=""
  7416. />
  7417. </div>
  7418. <div>{{ w.commentCount }}</div>
  7419. </div>
  7420. </div>
  7421. </div>
  7422. </div>
  7423. </div>
  7424. <div class="group_work" v-else>暂无提交作业</div>
  7425. </div>
  7426. </div>
  7427. <div
  7428. :id="'tool-' + toolIndex"
  7429. :style="{
  7430. height:
  7431. isCloseList[toolIndex].isClose == 1
  7432. ? retrnToolHeight('tool-' + toolIndex)
  7433. : 'auto',
  7434. overflow:
  7435. isCloseList[toolIndex].isClose == 1
  7436. ? 'hidden'
  7437. : 'unset'
  7438. }"
  7439. class="worksDetailBox"
  7440. v-if="
  7441. worksStudent.length &&
  7442. worksStudent[toolIndex].length > 0
  7443. "
  7444. >
  7445. <div
  7446. class="works"
  7447. style="
  7448. width: 200px;
  7449. height: 140px;
  7450. margin: 10px 10px 10px 0;
  7451. border-radius: 15px;
  7452. box-shadow: 0 0 6px 1px #dfdada;
  7453. "
  7454. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7455. :key="wIndex"
  7456. >
  7457. <!-- @click="previewImg(w.works)" -->
  7458. <div class="workImg">
  7459. <img
  7460. :src="w.works"
  7461. @click="previewImg(w.works, w)"
  7462. alt
  7463. />
  7464. <div
  7465. class="answerScore"
  7466. v-if="w.score"
  7467. @click.stop="openScore(w)"
  7468. :class="{
  7469. rightW:
  7470. w.userid == userid || tType == 1 || tType == 4
  7471. }"
  7472. >
  7473. {{ JSON.parse(w.score).wScore }}分
  7474. </div>
  7475. <div
  7476. class="answerScore"
  7477. @click.stop="openScore(w)"
  7478. v-else-if="courseDetail.userid == userid"
  7479. :class="{
  7480. rightW:
  7481. w.userid == userid || tType == 1 || tType == 4
  7482. }"
  7483. >
  7484. 评分
  7485. </div>
  7486. <img
  7487. class="deleteImg"
  7488. src="../../assets/deleteworks.png"
  7489. v-if="
  7490. w.userid == userid || tType == 1 || tType == 4
  7491. "
  7492. @click.stop="deleteWorks(w.wid)"
  7493. alt
  7494. />
  7495. </div>
  7496. <div class="comment" style="min-width: 200px">
  7497. <div class="worksName">
  7498. <div>{{ w.sName }}</div>
  7499. </div>
  7500. <div class="commentList">
  7501. <div class="commentList">
  7502. <div
  7503. class="commentImg"
  7504. @click="
  7505. isLikes(
  7506. w.wid,
  7507. userid,
  7508. 1,
  7509. null,
  7510. w.isLikes,
  7511. w.sName
  7512. )
  7513. "
  7514. >
  7515. <img
  7516. :src="w.isLikes == true ? likes : noLikes"
  7517. alt=""
  7518. />
  7519. </div>
  7520. <div>{{ w.likesCount }}</div>
  7521. </div>
  7522. <div class="commentList" style="margin-right: 15px">
  7523. <div
  7524. class="commentImg"
  7525. @click="commentOther(w, toolIndex, wIndex)"
  7526. >
  7527. <img
  7528. src="../../assets/icon/comment/comment.png"
  7529. alt=""
  7530. />
  7531. </div>
  7532. <div>{{ w.commentCount }}</div>
  7533. </div>
  7534. </div>
  7535. </div>
  7536. </div>
  7537. </div>
  7538. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7539. 未提交
  7540. </div>
  7541. <div
  7542. class="noWorksS"
  7543. v-if="noWorksS && noWorksS[toolIndex].length"
  7544. >
  7545. <div
  7546. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7547. :key="sIndex"
  7548. class="noWorksName"
  7549. >
  7550. <el-tooltip
  7551. effect="dark"
  7552. :content="s.student"
  7553. placement="top"
  7554. >
  7555. <span>{{ s.student }}</span>
  7556. </el-tooltip>
  7557. </div>
  7558. </div>
  7559. </div>
  7560. <div
  7561. v-if="
  7562. tType &&
  7563. ((tType == 2 && sIsOpen == true) ||
  7564. tType == 1 ||
  7565. tType == 4) &&
  7566. tool.tool.indexOf(7) != -1
  7567. "
  7568. class="worksBox"
  7569. >
  7570. <div
  7571. class="zuoyeYulan"
  7572. style="display: flex;justify-content: space-between;align-items: center;"
  7573. v-if="
  7574. (worksStudent.length &&
  7575. worksStudent[toolIndex].length > 0) ||
  7576. (courseGroup.group && courseGroup.group.length)
  7577. "
  7578. >
  7579. <div class="worksTop">
  7580. <div>作业预览</div>
  7581. <div
  7582. class="corOpen"
  7583. @click="contract(toolIndex)"
  7584. v-if="
  7585. isCloseList[toolIndex].isCloseBoolean &&
  7586. isCloseList[toolIndex].isClose == 0
  7587. "
  7588. >
  7589. 折叠
  7590. </div>
  7591. <div
  7592. class="corOpen"
  7593. @click="contract(toolIndex)"
  7594. v-if="isCloseList[toolIndex].isClose == 1"
  7595. >
  7596. 展开
  7597. </div>
  7598. </div>
  7599. <div
  7600. style="display: flex;"
  7601. v-if="
  7602. (courseDetail.userid == userid ||
  7603. (courseDetail.course_teacher &&
  7604. courseDetail.course_teacher.indexOf(userid) !=
  7605. -1)) &&
  7606. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7607. taskCount
  7608. ].eList &&
  7609. chapInfoList[courseType].chapterInfo[0].taskJson[
  7610. taskCount
  7611. ].eList.length) ||
  7612. (tool.eList && tool.eList.length)) &&
  7613. courseDetail.state == 5
  7614. "
  7615. >
  7616. <div
  7617. style="margin-right:10px"
  7618. class="ScoreBtn"
  7619. @click="
  7620. resetLoopEva(
  7621. worksStudent[toolIndex],
  7622. chapInfoList[courseType].chapterInfo[0].taskJson[
  7623. taskCount
  7624. ].eList,
  7625. courseType,
  7626. taskCount,
  7627. toolIndex,
  7628. tool.toolDetail,
  7629. worksStudent
  7630. )
  7631. "
  7632. >
  7633. 一键重置
  7634. </div>
  7635. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7636. <img
  7637. src="../../assets/icon/newIcons/rootImg.png"
  7638. alt=""
  7639. />
  7640. AI评分
  7641. </div>
  7642. <div
  7643. class="ScoreBtn"
  7644. v-else-if="!loopLoading[toolIndex].loading"
  7645. @click="
  7646. loopEva(
  7647. worksStudent[toolIndex],
  7648. chapInfoList[courseType].chapterInfo[0].taskJson[
  7649. taskCount
  7650. ].eList,
  7651. courseType,
  7652. taskCount,
  7653. toolIndex,
  7654. tool.toolDetail,
  7655. chapInfoList[courseType].chapterInfo[0].taskJson[
  7656. taskCount
  7657. ].taskDetail,
  7658. tool
  7659. )
  7660. "
  7661. >
  7662. <img
  7663. src="../../assets/icon/newIcons/rootImg.png"
  7664. alt=""
  7665. />
  7666. AI评分
  7667. </div>
  7668. <div class="ScoreBtn" v-else>
  7669. <img
  7670. src="../../assets/icon/newIcons/rootImg.png"
  7671. alt=""
  7672. />
  7673. 正在评分
  7674. </div>
  7675. </div>
  7676. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7677. </div>
  7678. <div
  7679. class="group_workBox"
  7680. v-for="(g, gindex) in courseGroup.group"
  7681. :key="gindex"
  7682. >
  7683. <div class="group_box">
  7684. <div class="group_title">
  7685. <el-tooltip
  7686. class="item"
  7687. effect="light"
  7688. :content="g.name"
  7689. placement="top"
  7690. >
  7691. <div class="group_name">{{ g.name }}</div>
  7692. </el-tooltip>
  7693. </div>
  7694. <div
  7695. class="group_work"
  7696. v-if="
  7697. g.works &&
  7698. g.works.length &&
  7699. g.works[toolIndex].length
  7700. "
  7701. >
  7702. <div
  7703. class="works"
  7704. style="
  7705. width: 200px;
  7706. height: 140px;
  7707. margin: 10px 10px 10px 0;
  7708. border-radius: 15px;
  7709. box-shadow: 0 0 6px 1px #dfdada;
  7710. "
  7711. v-for="(w, wIndex) in g.works[toolIndex]"
  7712. :key="wIndex"
  7713. :class="w.type == 1 ? 'isTypeOne' : ''"
  7714. >
  7715. <div class="workImg">
  7716. <img
  7717. :src="w.works"
  7718. @click="previewImg(w.works, w)"
  7719. alt
  7720. />
  7721. <div
  7722. class="answerScore"
  7723. v-if="w.score"
  7724. @click.stop="openScore(w)"
  7725. :class="{
  7726. rightW:
  7727. w.userid == userid ||
  7728. tType == 1 ||
  7729. tType == 4
  7730. }"
  7731. >
  7732. {{ JSON.parse(w.score).wScore }}分
  7733. </div>
  7734. <div
  7735. class="answerScore"
  7736. @click.stop="openScore(w)"
  7737. v-else-if="courseDetail.userid == userid"
  7738. :class="{
  7739. rightW:
  7740. w.userid == userid ||
  7741. tType == 1 ||
  7742. tType == 4
  7743. }"
  7744. >
  7745. 评分
  7746. </div>
  7747. <img
  7748. class="deleteImg"
  7749. src="../../assets/deleteworks.png"
  7750. v-if="
  7751. w.userid == userid || tType == 1 || tType == 4
  7752. "
  7753. @click.stop="deleteWorks(w.wid)"
  7754. alt
  7755. />
  7756. </div>
  7757. <div class="comment" style="min-width: 200px">
  7758. <div class="worksName">
  7759. <div>{{ w.sName }}</div>
  7760. </div>
  7761. <div class="commentList">
  7762. <div class="commentList">
  7763. <div
  7764. class="commentImg"
  7765. @click="
  7766. isLikes(
  7767. w.wid,
  7768. userid,
  7769. 1,
  7770. null,
  7771. w.isLikes,
  7772. w.sName
  7773. )
  7774. "
  7775. >
  7776. <img
  7777. :src="w.isLikes == true ? likes : noLikes"
  7778. alt=""
  7779. />
  7780. </div>
  7781. <div>{{ w.likesCount }}</div>
  7782. </div>
  7783. <div
  7784. class="commentList"
  7785. style="margin-right: 15px"
  7786. >
  7787. <div
  7788. class="commentImg"
  7789. @click="
  7790. commentOther(
  7791. w,
  7792. toolIndex,
  7793. wIndex,
  7794. null,
  7795. g.id
  7796. )
  7797. "
  7798. >
  7799. <img
  7800. src="../../assets/icon/comment/comment.png"
  7801. alt=""
  7802. />
  7803. </div>
  7804. <div>{{ w.commentCount }}</div>
  7805. </div>
  7806. </div>
  7807. </div>
  7808. </div>
  7809. </div>
  7810. <div class="group_work" v-else>暂无提交作业</div>
  7811. </div>
  7812. </div>
  7813. <div
  7814. :id="'tool-' + toolIndex"
  7815. :style="{
  7816. height:
  7817. isCloseList[toolIndex].isClose == 1
  7818. ? retrnToolHeight('tool-' + toolIndex)
  7819. : 'auto',
  7820. overflow:
  7821. isCloseList[toolIndex].isClose == 1
  7822. ? 'hidden'
  7823. : 'unset'
  7824. }"
  7825. class="worksDetailBox"
  7826. v-if="
  7827. worksStudent.length &&
  7828. worksStudent[toolIndex].length > 0
  7829. "
  7830. >
  7831. <div
  7832. class="works"
  7833. style="
  7834. width: 200px;
  7835. height: 140px;
  7836. margin: 10px 10px 10px 0;
  7837. border-radius: 15px;
  7838. box-shadow: 0 0 6px 1px #dfdada;
  7839. "
  7840. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7841. :key="wIndex"
  7842. >
  7843. <!-- @click="previewImg(w.works)" -->
  7844. <div class="workImg">
  7845. <img
  7846. :src="w.works"
  7847. @click="previewImg(w.works, w)"
  7848. alt
  7849. />
  7850. <div
  7851. class="answerScore"
  7852. v-if="w.score"
  7853. @click.stop="openScore(w)"
  7854. :class="{
  7855. rightW:
  7856. w.userid == userid || tType == 1 || tType == 4
  7857. }"
  7858. >
  7859. {{ JSON.parse(w.score).wScore }}分
  7860. </div>
  7861. <div
  7862. class="answerScore"
  7863. @click.stop="openScore(w)"
  7864. v-else-if="
  7865. courseDetail.userid == userid &&
  7866. courseDetail.state != 5 &&
  7867. chapInfoList[courseType].chapterInfo[0]
  7868. .taskJson[taskCount].eList &&
  7869. chapInfoList[courseType].chapterInfo[0]
  7870. .taskJson[taskCount].eList.length
  7871. "
  7872. :class="{
  7873. rightW:
  7874. w.userid == userid || tType == 1 || tType == 4
  7875. }"
  7876. >
  7877. 评分
  7878. </div>
  7879. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  7880. <div
  7881. v-else-if="
  7882. (courseDetail.userid == userid ||
  7883. (courseDetail.course_teacher &&
  7884. courseDetail.course_teacher.indexOf(userid) !=
  7885. -1) ||
  7886. (w.userid == userid && sIsOpen)) &&
  7887. courseDetail.state == 5 &&
  7888. ((chapInfoList[courseType].chapterInfo[0]
  7889. .taskJson[taskCount].eList &&
  7890. chapInfoList[courseType].chapterInfo[0]
  7891. .taskJson[taskCount].eList.length) ||
  7892. (tool.eList && tool.eList.length))
  7893. "
  7894. >
  7895. <el-popover
  7896. placement="top"
  7897. width="318"
  7898. :disabled="AIloading[toolIndex][wIndex].loading"
  7899. trigger="hover"
  7900. >
  7901. <markScore
  7902. :loading="AIloading[toolIndex][wIndex].loading"
  7903. :markScoreVisible="markScoreVisible"
  7904. :ref="`markSco${toolIndex}${wIndex}`"
  7905. @updateLoading="updateLoading"
  7906. @updateDocSco="updateDocSco"
  7907. @refreshOther="refreshOther"
  7908. @markScoreDig="markScoreDig"
  7909. :tool="tool"
  7910. :wIndex="wIndex"
  7911. :scoCon="w"
  7912. :toolIndex="toolIndex"
  7913. :key="refreshKey"
  7914. :stage="courseType"
  7915. :task="taskCount"
  7916. :scoTit="
  7917. chapInfoList[courseType].chapterInfo[0]
  7918. .taskJson[taskCount].eList
  7919. "
  7920. >
  7921. </markScore>
  7922. <div
  7923. class="answerScore"
  7924. @click="
  7925. markScoreDig2(
  7926. w.sName,
  7927. worksStudent,
  7928. w.userid,
  7929. toolIndex,
  7930. chapInfoList[courseType].chapterInfo[0]
  7931. .taskJson[taskCount].eList,
  7932. AIloading[toolIndex][wIndex].loading,
  7933. tool
  7934. )
  7935. "
  7936. slot="reference"
  7937. :class="{
  7938. rightW:
  7939. w.userid == userid ||
  7940. tType == 1 ||
  7941. tType == 4 ||
  7942. w.ateacher == userid
  7943. }"
  7944. >
  7945. <span v-if="AIloading[toolIndex][wIndex].sco">
  7946. {{
  7947. AIloading[toolIndex][wIndex].loading
  7948. ? "评分中"
  7949. : AIloading[toolIndex][wIndex].sco + "分"
  7950. }}
  7951. </span>
  7952. <span v-else>
  7953. {{
  7954. AIloading[toolIndex][wIndex].loading
  7955. ? "评分中"
  7956. : "评分"
  7957. }}
  7958. </span>
  7959. </div>
  7960. </el-popover>
  7961. </div>
  7962. <img
  7963. class="deleteImg"
  7964. src="../../assets/deleteworks.png"
  7965. v-if="
  7966. w.userid == userid || tType == 1 || tType == 4
  7967. "
  7968. @click.stop="deleteWorks(w.wid)"
  7969. alt
  7970. />
  7971. </div>
  7972. <div class="comment" style="min-width: 200px">
  7973. <div class="worksName">
  7974. <div>{{ w.sName }}</div>
  7975. </div>
  7976. <div class="commentList">
  7977. <div class="commentList">
  7978. <div
  7979. class="commentImg"
  7980. @click="
  7981. isLikes(
  7982. w.wid,
  7983. userid,
  7984. 1,
  7985. null,
  7986. w.isLikes,
  7987. w.sName
  7988. )
  7989. "
  7990. >
  7991. <img
  7992. :src="w.isLikes == true ? likes : noLikes"
  7993. alt=""
  7994. />
  7995. </div>
  7996. <div>{{ w.likesCount }}</div>
  7997. </div>
  7998. <div class="commentList" style="margin-right: 15px">
  7999. <div
  8000. class="commentImg"
  8001. @click="commentOther(w, toolIndex, wIndex)"
  8002. >
  8003. <img
  8004. src="../../assets/icon/comment/comment.png"
  8005. alt=""
  8006. />
  8007. </div>
  8008. <div>{{ w.commentCount }}</div>
  8009. </div>
  8010. </div>
  8011. </div>
  8012. </div>
  8013. </div>
  8014. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8015. 未提交
  8016. </div>
  8017. <div
  8018. class="noWorksS"
  8019. v-if="noWorksS && noWorksS[toolIndex].length"
  8020. >
  8021. <div
  8022. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8023. :key="sIndex"
  8024. class="noWorksName"
  8025. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8026. >
  8027. <el-tooltip
  8028. effect="dark"
  8029. :content="s.student"
  8030. placement="top"
  8031. >
  8032. <span>{{ s.student }}</span>
  8033. </el-tooltip>
  8034. </div>
  8035. </div>
  8036. </div>
  8037. <div
  8038. v-if="
  8039. tType &&
  8040. ((tType == 2 && sIsOpen == true) ||
  8041. tType == 1 ||
  8042. tType == 4) &&
  8043. tool.tool.indexOf(26) != -1
  8044. "
  8045. class="worksBox"
  8046. >
  8047. <div
  8048. class="zuoyeYulan"
  8049. v-if="
  8050. worksStudent.length &&
  8051. worksStudent[toolIndex].length > 0
  8052. "
  8053. >
  8054. <div class="worksTop">
  8055. <div>作业预览</div>
  8056. <div
  8057. class="corOpen"
  8058. @click="contract(toolIndex)"
  8059. v-if="
  8060. isCloseList[toolIndex].isCloseBoolean &&
  8061. isCloseList[toolIndex].isClose == 0
  8062. "
  8063. >
  8064. 折叠
  8065. </div>
  8066. <div
  8067. class="corOpen"
  8068. @click="contract(toolIndex)"
  8069. v-if="isCloseList[toolIndex].isClose == 1"
  8070. >
  8071. 展开
  8072. </div>
  8073. </div>
  8074. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8075. </div>
  8076. <div
  8077. :id="'tool-' + toolIndex"
  8078. :style="{
  8079. height:
  8080. isCloseList[toolIndex].isClose == 1
  8081. ? retrnToolHeight('tool-' + toolIndex)
  8082. : 'auto',
  8083. overflow:
  8084. isCloseList[toolIndex].isClose == 1
  8085. ? 'hidden'
  8086. : 'unset'
  8087. }"
  8088. class="worksDetailBox"
  8089. v-if="
  8090. worksStudent.length &&
  8091. worksStudent[toolIndex].length > 0
  8092. "
  8093. >
  8094. <div
  8095. class="works"
  8096. style="width: 240px; height: 140px; overflow: hidden"
  8097. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8098. :key="wIndex"
  8099. :class="w.type == 1 ? 'isTypeOne' : ''"
  8100. >
  8101. <div class="workImg" v-if="w.type == 0">
  8102. <img
  8103. :src="w.works"
  8104. @click="previewImg(w.works, w)"
  8105. alt
  8106. />
  8107. <img
  8108. class="deleteImg"
  8109. src="../../assets/deleteworks.png"
  8110. v-if="
  8111. w.userid == userid || tType == 1 || tType == 4
  8112. "
  8113. @click.stop="deleteWorks(w.wid)"
  8114. alt
  8115. />
  8116. </div>
  8117. <div class="workImg" v-if="w.type == 1">
  8118. <img :src="word" @click="openFile(w.works)" alt />
  8119. <img
  8120. class="deleteImg"
  8121. src="../../assets/deleteworks.png"
  8122. v-if="
  8123. w.userid == userid || tType == 1 || tType == 4
  8124. "
  8125. @click.stop="deleteWorks(w.wid)"
  8126. alt
  8127. />
  8128. </div>
  8129. <div class="worksName">
  8130. <div>{{ w.sName }}</div>
  8131. </div>
  8132. </div>
  8133. </div>
  8134. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8135. 未提交
  8136. </div>
  8137. <div
  8138. class="noWorksS"
  8139. v-if="noWorksS && noWorksS[toolIndex].length"
  8140. >
  8141. <div
  8142. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8143. :key="sIndex"
  8144. class="noWorksName"
  8145. >
  8146. <el-tooltip
  8147. effect="dark"
  8148. :content="s.student"
  8149. placement="top"
  8150. >
  8151. <span>{{ s.student }}</span>
  8152. </el-tooltip>
  8153. </div>
  8154. </div>
  8155. </div>
  8156. <div
  8157. v-if="
  8158. tType &&
  8159. ((tType == 2 && sIsOpen == true) ||
  8160. tType == 1 ||
  8161. tType == 4) &&
  8162. tool.tool.indexOf(40) != -1
  8163. "
  8164. class="worksBox"
  8165. >
  8166. <div
  8167. class="zuoyeYulan"
  8168. v-if="
  8169. worksStudent.length &&
  8170. worksStudent[toolIndex].length > 0
  8171. "
  8172. >
  8173. <div class="worksTop">
  8174. <div>作业预览</div>
  8175. <div
  8176. class="corOpen"
  8177. @click="contract(toolIndex)"
  8178. v-if="
  8179. isCloseList[toolIndex].isCloseBoolean &&
  8180. isCloseList[toolIndex].isClose == 0
  8181. "
  8182. >
  8183. 折叠
  8184. </div>
  8185. <div
  8186. class="corOpen"
  8187. @click="contract(toolIndex)"
  8188. v-if="isCloseList[toolIndex].isClose == 1"
  8189. >
  8190. 展开
  8191. </div>
  8192. </div>
  8193. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8194. </div>
  8195. <div
  8196. :id="'tool-' + toolIndex"
  8197. :style="{
  8198. height:
  8199. isCloseList[toolIndex].isClose == 1
  8200. ? retrnToolHeight('tool-' + toolIndex)
  8201. : 'auto',
  8202. overflow:
  8203. isCloseList[toolIndex].isClose == 1
  8204. ? 'hidden'
  8205. : 'unset'
  8206. }"
  8207. class="worksDetailBox"
  8208. v-if="
  8209. worksStudent.length &&
  8210. worksStudent[toolIndex].length > 0
  8211. "
  8212. >
  8213. <div
  8214. class="works"
  8215. style="
  8216. width: 200px;
  8217. height: 140px;
  8218. margin: 10px 10px 10px 0;
  8219. border-radius: 15px;
  8220. box-shadow: 0 0 6px 1px #dfdada;
  8221. "
  8222. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8223. :key="wIndex"
  8224. :class="w.type == 1 ? 'isTypeOne' : ''"
  8225. >
  8226. <div class="workImg">
  8227. <img
  8228. src="../../assets/icon/works/noImg.png"
  8229. @click="openPj(w.works, toolIndex)"
  8230. alt
  8231. />
  8232. <img
  8233. class="deleteImg"
  8234. src="../../assets/deleteworks.png"
  8235. v-if="
  8236. w.userid == userid || tType == 1 || tType == 4
  8237. "
  8238. @click.stop="deleteWorks(w.wid)"
  8239. alt
  8240. />
  8241. </div>
  8242. <div class="comment" style="min-width: 200px">
  8243. <div class="worksName">
  8244. <div>{{ w.sName }}</div>
  8245. </div>
  8246. <div class="commentList">
  8247. <div class="commentList">
  8248. <div
  8249. class="commentImg"
  8250. @click="
  8251. isLikes(
  8252. w.wid,
  8253. userid,
  8254. 1,
  8255. null,
  8256. w.isLikes,
  8257. w.sName
  8258. )
  8259. "
  8260. >
  8261. <img
  8262. :src="w.isLikes == true ? likes : noLikes"
  8263. alt=""
  8264. />
  8265. </div>
  8266. <div>{{ w.likesCount }}</div>
  8267. </div>
  8268. <div class="commentList" style="margin-right: 15px">
  8269. <div
  8270. class="commentImg"
  8271. @click="commentOther(w, toolIndex, wIndex)"
  8272. >
  8273. <img
  8274. src="../../assets/icon/comment/comment.png"
  8275. alt=""
  8276. />
  8277. </div>
  8278. <div>{{ w.commentCount }}</div>
  8279. </div>
  8280. </div>
  8281. </div>
  8282. </div>
  8283. </div>
  8284. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8285. 未提交
  8286. </div>
  8287. <div
  8288. class="noWorksS"
  8289. v-if="noWorksS && noWorksS[toolIndex].length"
  8290. >
  8291. <div
  8292. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8293. :key="sIndex"
  8294. class="noWorksName"
  8295. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8296. >
  8297. <el-tooltip
  8298. effect="dark"
  8299. :content="s.student"
  8300. placement="top"
  8301. >
  8302. <span>{{ s.student }}</span>
  8303. </el-tooltip>
  8304. </div>
  8305. </div>
  8306. </div>
  8307. <div
  8308. v-if="
  8309. tType &&
  8310. tType == 2 &&
  8311. !sIsOpen &&
  8312. tool.tool.indexOf(40) != -1
  8313. "
  8314. class="worksBox"
  8315. >
  8316. <div
  8317. class="zuoyeYulan"
  8318. v-if="workStudent[toolIndex].length > 0"
  8319. >
  8320. <span class="worksTitle">作业预览</span>
  8321. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8322. </div>
  8323. <div
  8324. class="worksDetailBox"
  8325. v-if="workStudent[toolIndex].length > 0"
  8326. >
  8327. <div
  8328. class="works"
  8329. style="
  8330. width: 200px;
  8331. height: 140px;
  8332. margin: 10px 10px 10px 0;
  8333. "
  8334. v-for="(w, wIndex) in workStudent[toolIndex]"
  8335. :key="wIndex"
  8336. >
  8337. <div class="workImg">
  8338. <img
  8339. src="../../assets/icon/works/noImg.png"
  8340. @click="openPj(w.works, toolIndex)"
  8341. alt
  8342. />
  8343. <img
  8344. class="deleteImg"
  8345. src="../../assets/deleteworks.png"
  8346. v-if="
  8347. w.userid == userid || tType == 1 || tType == 4
  8348. "
  8349. @click.stop="deleteWorks(w.wid)"
  8350. alt
  8351. />
  8352. </div>
  8353. <div class="worksName">
  8354. <div>{{ w.sName }}</div>
  8355. </div>
  8356. </div>
  8357. </div>
  8358. </div>
  8359. <div
  8360. v-if="
  8361. tType &&
  8362. ((tType == 2 && sIsOpen == true) ||
  8363. tType == 1 ||
  8364. tType == 4) &&
  8365. tool.tool.indexOf(41) != -1
  8366. "
  8367. >
  8368. <AnswerData2
  8369. v-if="
  8370. worksStudent.length &&
  8371. worksStudent[toolIndex].length > 0
  8372. "
  8373. :problemJson="tool.selectJson.answer"
  8374. :people="worksStudent[toolIndex]"
  8375. ></AnswerData2>
  8376. </div>
  8377. <div
  8378. v-if="
  8379. tType &&
  8380. ((tType == 2 && sIsOpen == true) ||
  8381. tType == 1 ||
  8382. tType == 4) &&
  8383. tool.tool.indexOf(41) != -1
  8384. "
  8385. class="worksBox"
  8386. >
  8387. <div
  8388. class="zuoyeYulan"
  8389. v-if="
  8390. worksStudent.length &&
  8391. worksStudent[toolIndex].length > 0
  8392. "
  8393. >
  8394. <div class="worksTop">
  8395. <div>作业预览</div>
  8396. <div
  8397. class="corOpen"
  8398. @click="contract(toolIndex)"
  8399. v-if="
  8400. isCloseList[toolIndex].isCloseBoolean &&
  8401. isCloseList[toolIndex].isClose == 0
  8402. "
  8403. >
  8404. 折叠
  8405. </div>
  8406. <div
  8407. class="corOpen"
  8408. @click="contract(toolIndex)"
  8409. v-if="isCloseList[toolIndex].isClose == 1"
  8410. >
  8411. 展开
  8412. </div>
  8413. </div>
  8414. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8415. </div>
  8416. <div
  8417. :id="'tool-' + toolIndex"
  8418. :style="{
  8419. height:
  8420. isCloseList[toolIndex].isClose == 1
  8421. ? retrnToolHeight('tool-' + toolIndex)
  8422. : 'auto',
  8423. overflow:
  8424. isCloseList[toolIndex].isClose == 1
  8425. ? 'hidden'
  8426. : 'unset'
  8427. }"
  8428. class="worksDetailBox"
  8429. v-if="
  8430. worksStudent.length &&
  8431. worksStudent[toolIndex].length > 0
  8432. "
  8433. >
  8434. <div
  8435. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8436. :key="wIndex"
  8437. class="isWorksName2"
  8438. @click="openXz(w, toolIndex)"
  8439. >
  8440. {{ w.sName }}
  8441. <img
  8442. class="deleteImg deleteImg2"
  8443. src="../../assets/deleteworks.png"
  8444. v-if="w.userid == userid || tType == 1 || tType == 4"
  8445. @click.stop="deleteWorks(w.wid)"
  8446. alt
  8447. />
  8448. </div>
  8449. <!-- <div
  8450. class="works"
  8451. style="
  8452. width: 200px;
  8453. height: 140px;
  8454. margin: 10px 10px 10px 0;
  8455. border-radius: 15px;
  8456. box-shadow: 0 0 6px 1px #dfdada;
  8457. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  8458. :class="w.type == 5 ? 'isTypeOne' : ''">
  8459. <div class="workImg">
  8460. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  8461. </div>
  8462. <div class="worksName">
  8463. <div>{{ w.sName }}</div>
  8464. </div>
  8465. </div> -->
  8466. </div>
  8467. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8468. 未提交
  8469. </div>
  8470. <div
  8471. class="noWorksS"
  8472. v-if="noWorksS && noWorksS[toolIndex].length"
  8473. >
  8474. <div
  8475. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8476. :key="sIndex"
  8477. class="noWorksName"
  8478. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8479. >
  8480. <el-tooltip
  8481. effect="dark"
  8482. :content="s.student"
  8483. placement="top"
  8484. >
  8485. <span>{{ s.student }}</span>
  8486. </el-tooltip>
  8487. </div>
  8488. </div>
  8489. </div>
  8490. <div
  8491. v-if="
  8492. tType &&
  8493. tType == 2 &&
  8494. !sIsOpen &&
  8495. tool.tool.indexOf(41) != -1
  8496. "
  8497. class="worksBox"
  8498. >
  8499. <div
  8500. class="zuoyeYulan"
  8501. v-if="workStudent[toolIndex].length > 0"
  8502. >
  8503. <span class="worksTitle">作业预览</span>
  8504. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8505. </div>
  8506. <div
  8507. class="worksDetailBox"
  8508. v-if="workStudent[toolIndex].length > 0"
  8509. >
  8510. <div
  8511. class="works"
  8512. style="
  8513. width: 200px;
  8514. height: 140px;
  8515. margin: 10px 10px 10px 0;
  8516. "
  8517. v-for="(w, wIndex) in workStudent[toolIndex]"
  8518. :key="wIndex"
  8519. >
  8520. <div class="workImg">
  8521. <img
  8522. src="../../assets/icon/works/noImg.png"
  8523. @click="openXz(w, toolIndex)"
  8524. alt
  8525. />
  8526. <img
  8527. class="deleteImg"
  8528. src="../../assets/deleteworks.png"
  8529. v-if="
  8530. w.userid == userid || tType == 1 || tType == 4
  8531. "
  8532. @click.stop="deleteWorks(w.wid)"
  8533. alt
  8534. />
  8535. </div>
  8536. <div class="worksName">
  8537. <div>{{ w.sName }}</div>
  8538. </div>
  8539. </div>
  8540. </div>
  8541. </div>
  8542. <div v-if="false" class="xuan_right_box">
  8543. <div
  8544. class="tool_right_box"
  8545. v-for="(item, index) in tool.sentenceList"
  8546. :key="index"
  8547. >
  8548. <div>
  8549. <span
  8550. style="word-break: break-all; white-space: normal"
  8551. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  8552. >
  8553. </div>
  8554. <div class="right_box_xuan">
  8555. <span>正确率</span>
  8556. <span>{{
  8557. (checkJson[toolIndex][index].right
  8558. ? checkJson[toolIndex][index].right
  8559. : 0) + "%"
  8560. }}</span>
  8561. </div>
  8562. <div class="right_box_xuan">
  8563. <span>答对人数</span>
  8564. <span>{{
  8565. checkJson[toolIndex][index].rightPerson.length
  8566. }}</span>
  8567. </div>
  8568. </div>
  8569. </div>
  8570. <div
  8571. v-if="
  8572. tType &&
  8573. ((tType == 2 && sIsOpen == true) ||
  8574. tType == 1 ||
  8575. tType == 4) &&
  8576. tool.tool.indexOf(47) != -1
  8577. "
  8578. >
  8579. <AnswerData
  8580. v-if="
  8581. checkJson[toolIndex].length &&
  8582. (tool.sentenceList || tool.sentenceList.length > 0)
  8583. "
  8584. :people="checkJson[toolIndex]"
  8585. ></AnswerData>
  8586. </div>
  8587. <div
  8588. v-if="
  8589. tType &&
  8590. tType == 2 &&
  8591. !sIsOpen &&
  8592. tool.tool.indexOf(47) != -1
  8593. "
  8594. class="worksBox"
  8595. >
  8596. <div
  8597. class="zuoyeYulan"
  8598. v-if="workStudent[toolIndex].length > 0"
  8599. >
  8600. <span class="worksTitle">作业预览</span>
  8601. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8602. </div>
  8603. <div
  8604. class="worksDetailBox"
  8605. v-if="workStudent[toolIndex].length > 0"
  8606. >
  8607. <div
  8608. class="works"
  8609. style="
  8610. width: 200px;
  8611. height: 140px;
  8612. margin: 10px 10px 10px 0;
  8613. "
  8614. v-for="(w, wIndex) in workStudent[toolIndex]"
  8615. :key="wIndex"
  8616. >
  8617. <!-- @click="openXz(w, toolIndex)" -->
  8618. <div class="workImg" @click="openSen(w, toolIndex)">
  8619. <img src="../../assets/icon/works/noImg.png" alt />
  8620. <img
  8621. class="deleteImg"
  8622. src="../../assets/deleteworks.png"
  8623. v-if="
  8624. w.userid == userid || tType == 1 || tType == 4
  8625. "
  8626. @click.stop="deleteWorks(w.wid)"
  8627. alt
  8628. />
  8629. </div>
  8630. <div class="worksName">
  8631. <div>
  8632. {{ w.sName }}
  8633. </div>
  8634. </div>
  8635. </div>
  8636. </div>
  8637. </div>
  8638. <div
  8639. v-if="
  8640. tType &&
  8641. ((tType == 2 && sIsOpen == true) ||
  8642. tType == 1 ||
  8643. tType == 4) &&
  8644. tool.tool.indexOf(47) != -1
  8645. "
  8646. class="worksBox"
  8647. >
  8648. <div
  8649. class="zuoyeYulan"
  8650. v-if="
  8651. worksStudent.length &&
  8652. worksStudent[toolIndex].length > 0
  8653. "
  8654. >
  8655. <div class="worksTop">
  8656. <div>作业预览</div>
  8657. <div
  8658. class="corOpen"
  8659. @click="contract(toolIndex)"
  8660. v-if="
  8661. isCloseList[toolIndex].isCloseBoolean &&
  8662. isCloseList[toolIndex].isClose == 0
  8663. "
  8664. >
  8665. 折叠
  8666. </div>
  8667. <div
  8668. class="corOpen"
  8669. @click="contract(toolIndex)"
  8670. v-if="isCloseList[toolIndex].isClose == 1"
  8671. >
  8672. 展开
  8673. </div>
  8674. </div>
  8675. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8676. </div>
  8677. <div
  8678. :id="'tool-' + toolIndex"
  8679. :style="{
  8680. height:
  8681. isCloseList[toolIndex].isClose == 1
  8682. ? retrnToolHeight('tool-' + toolIndex)
  8683. : 'auto',
  8684. overflow:
  8685. isCloseList[toolIndex].isClose == 1
  8686. ? 'hidden'
  8687. : 'unset'
  8688. }"
  8689. class="worksDetailBox"
  8690. v-if="
  8691. worksStudent.length &&
  8692. worksStudent[toolIndex].length > 0
  8693. "
  8694. >
  8695. <!-- @click="openXz(w, toolIndex)" -->
  8696. <div
  8697. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8698. :key="wIndex"
  8699. class="isWorksName2"
  8700. @click="openSen(w, toolIndex)"
  8701. >
  8702. {{ w.sName }}
  8703. <img
  8704. class="deleteImg deleteImg2"
  8705. src="../../assets/deleteworks.png"
  8706. v-if="w.userid == userid || tType == 1 || tType == 4"
  8707. @click.stop="deleteWorks(w.wid)"
  8708. alt
  8709. />
  8710. </div>
  8711. </div>
  8712. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8713. 未提交
  8714. </div>
  8715. <div
  8716. class="noWorksS"
  8717. v-if="noWorksS && noWorksS[toolIndex].length"
  8718. >
  8719. <div
  8720. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8721. :key="sIndex"
  8722. class="noWorksName"
  8723. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8724. >
  8725. <el-tooltip
  8726. effect="dark"
  8727. :content="s.student"
  8728. placement="top"
  8729. >
  8730. <span>{{ s.student }}</span>
  8731. </el-tooltip>
  8732. </div>
  8733. </div>
  8734. </div>
  8735. <div
  8736. v-if="
  8737. tType &&
  8738. ((tType == 2 && sIsOpen == true) ||
  8739. tType == 1 ||
  8740. tType == 4) &&
  8741. tool.tool.indexOf(48) != -1
  8742. "
  8743. class="worksBox"
  8744. >
  8745. <div
  8746. class="zuoyeYulan"
  8747. style="display: flex;justify-content: space-between;align-items: center;"
  8748. v-if="
  8749. worksStudent.length &&
  8750. worksStudent[toolIndex].length > 0
  8751. "
  8752. >
  8753. <div class="worksTop">
  8754. <div>作业预览</div>
  8755. <div
  8756. class="corOpen"
  8757. @click="contract(toolIndex)"
  8758. v-if="
  8759. isCloseList[toolIndex].isCloseBoolean &&
  8760. isCloseList[toolIndex].isClose == 0
  8761. "
  8762. >
  8763. 折叠
  8764. </div>
  8765. <div
  8766. class="corOpen"
  8767. @click="contract(toolIndex)"
  8768. v-if="isCloseList[toolIndex].isClose == 1"
  8769. >
  8770. 展开
  8771. </div>
  8772. </div>
  8773. <div
  8774. style="display: flex;"
  8775. v-if="
  8776. (courseDetail.userid == userid ||
  8777. (courseDetail.course_teacher &&
  8778. courseDetail.course_teacher.indexOf(userid) !=
  8779. -1)) &&
  8780. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8781. taskCount
  8782. ].eList &&
  8783. chapInfoList[courseType].chapterInfo[0].taskJson[
  8784. taskCount
  8785. ].eList.length) ||
  8786. (tool.eList && tool.eList.length)) &&
  8787. courseDetail.state == 5
  8788. "
  8789. >
  8790. <div
  8791. style="margin-right:10px"
  8792. class="ScoreBtn"
  8793. @click="
  8794. resetLoopEva(
  8795. worksStudent[toolIndex],
  8796. chapInfoList[courseType].chapterInfo[0].taskJson[
  8797. taskCount
  8798. ].eList,
  8799. courseType,
  8800. taskCount,
  8801. toolIndex,
  8802. tool.toolDetail,
  8803. worksStudent
  8804. )
  8805. "
  8806. >
  8807. 一键重置
  8808. </div>
  8809. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8810. <img
  8811. src="../../assets/icon/newIcons/rootImg.png"
  8812. alt=""
  8813. />
  8814. AI评分
  8815. </div>
  8816. <div
  8817. class="ScoreBtn"
  8818. v-else-if="!loopLoading[toolIndex].loading"
  8819. @click="
  8820. loopEva(
  8821. worksStudent[toolIndex],
  8822. chapInfoList[courseType].chapterInfo[0].taskJson[
  8823. taskCount
  8824. ].eList,
  8825. courseType,
  8826. taskCount,
  8827. toolIndex,
  8828. tool.toolDetail,
  8829. chapInfoList[courseType].chapterInfo[0].taskJson[
  8830. taskCount
  8831. ].taskDetail,
  8832. tool
  8833. )
  8834. "
  8835. >
  8836. <img
  8837. src="../../assets/icon/newIcons/rootImg.png"
  8838. alt=""
  8839. />
  8840. AI评分
  8841. </div>
  8842. <div class="ScoreBtn" v-else>
  8843. <img
  8844. src="../../assets/icon/newIcons/rootImg.png"
  8845. alt=""
  8846. />
  8847. 正在评分
  8848. </div>
  8849. </div>
  8850. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8851. </div>
  8852. <div
  8853. :id="'tool-' + toolIndex"
  8854. :style="{
  8855. height:
  8856. isCloseList[toolIndex].isClose == 1
  8857. ? retrnToolHeight('tool-' + toolIndex)
  8858. : 'auto',
  8859. overflow:
  8860. isCloseList[toolIndex].isClose == 1
  8861. ? 'hidden'
  8862. : 'unset'
  8863. }"
  8864. class="worksDetailBox"
  8865. v-if="
  8866. worksStudent.length &&
  8867. worksStudent[toolIndex].length > 0
  8868. "
  8869. >
  8870. <div
  8871. class="works"
  8872. style="
  8873. width: 200px;
  8874. height: 140px;
  8875. margin: 10px 10px 10px 0;
  8876. border-radius: 15px;
  8877. box-shadow: 0 0 6px 1px #dfdada;
  8878. "
  8879. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8880. :key="wIndex"
  8881. :class="w.type == 1 ? 'isTypeOne' : ''"
  8882. >
  8883. <div class="workImg">
  8884. <img :src="word" @click="openTable(w)" alt />
  8885. <!-- @click="openFile(w.works)" -->
  8886. <div
  8887. class="answerScore"
  8888. v-if="w.score"
  8889. @click.stop="openScore(w)"
  8890. :class="{
  8891. rightW:
  8892. w.userid == userid ||
  8893. tType == 1 ||
  8894. tType == 4 ||
  8895. w.ateacher == userid
  8896. }"
  8897. >
  8898. {{ JSON.parse(w.score).wScore }}分
  8899. </div>
  8900. <div
  8901. class="answerScore"
  8902. @click.stop="openScore(w)"
  8903. v-else-if="
  8904. courseDetail.userid == userid &&
  8905. courseDetail.state != 5 &&
  8906. chapInfoList[courseType].chapterInfo[0]
  8907. .taskJson[taskCount].eList &&
  8908. chapInfoList[courseType].chapterInfo[0]
  8909. .taskJson[taskCount].eList.length
  8910. "
  8911. :class="{
  8912. rightW:
  8913. w.userid == userid ||
  8914. tType == 1 ||
  8915. tType == 4 ||
  8916. w.ateacher == userid
  8917. }"
  8918. >
  8919. 评分
  8920. </div>
  8921. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  8922. <div
  8923. v-else-if="
  8924. (courseDetail.userid == userid ||
  8925. (courseDetail.course_teacher &&
  8926. courseDetail.course_teacher.indexOf(userid) !=
  8927. -1) ||
  8928. (w.userid == userid && sIsOpen)) &&
  8929. courseDetail.state == 5 &&
  8930. ((chapInfoList[courseType].chapterInfo[0]
  8931. .taskJson[taskCount].eList &&
  8932. chapInfoList[courseType].chapterInfo[0]
  8933. .taskJson[taskCount].eList.length) ||
  8934. (tool.eList && tool.eList.length))
  8935. "
  8936. >
  8937. <el-popover
  8938. placement="top"
  8939. width="318"
  8940. :disabled="AIloading[toolIndex][wIndex].loading"
  8941. trigger="hover"
  8942. >
  8943. <markScore
  8944. :loading="AIloading[toolIndex][wIndex].loading"
  8945. :markScoreVisible="markScoreVisible"
  8946. :ref="`markSco${toolIndex}${wIndex}`"
  8947. @updateLoading="updateLoading"
  8948. @updateDocSco="updateDocSco"
  8949. @refreshOther="refreshOther"
  8950. @markScoreDig="markScoreDig"
  8951. :tool="tool"
  8952. :wIndex="wIndex"
  8953. :scoCon="w"
  8954. :toolIndex="toolIndex"
  8955. :key="refreshKey"
  8956. :stage="courseType"
  8957. :task="taskCount"
  8958. :scoTit="
  8959. chapInfoList[courseType].chapterInfo[0]
  8960. .taskJson[taskCount].eList
  8961. "
  8962. >
  8963. </markScore>
  8964. <div
  8965. class="answerScore"
  8966. @click="
  8967. markScoreDig2(
  8968. w.sName,
  8969. worksStudent,
  8970. w.userid,
  8971. toolIndex,
  8972. chapInfoList[courseType].chapterInfo[0]
  8973. .taskJson[taskCount].eList,
  8974. AIloading[toolIndex][wIndex].loading,
  8975. tool
  8976. )
  8977. "
  8978. slot="reference"
  8979. :class="{
  8980. rightW:
  8981. w.userid == userid ||
  8982. tType == 1 ||
  8983. tType == 4 ||
  8984. w.ateacher == userid
  8985. }"
  8986. >
  8987. <span v-if="AIloading[toolIndex][wIndex].sco">
  8988. {{
  8989. AIloading[toolIndex][wIndex].loading
  8990. ? "评分中"
  8991. : AIloading[toolIndex][wIndex].sco + "分"
  8992. }}
  8993. </span>
  8994. <span v-else>
  8995. {{
  8996. AIloading[toolIndex][wIndex].loading
  8997. ? "评分中"
  8998. : "评分"
  8999. }}
  9000. </span>
  9001. </div>
  9002. </el-popover>
  9003. </div>
  9004. <img
  9005. class="deleteImg"
  9006. src="../../assets/deleteworks.png"
  9007. v-if="
  9008. w.userid == userid || tType == 1 || tType == 4
  9009. "
  9010. @click.stop="deleteWorks(w.wid)"
  9011. alt
  9012. />
  9013. </div>
  9014. <div class="comment" style="min-width: 200px">
  9015. <div class="worksName">
  9016. <div>{{ w.sName }}</div>
  9017. </div>
  9018. <div class="commentList">
  9019. <div class="commentList">
  9020. <div
  9021. class="commentImg"
  9022. @click="
  9023. isLikes(
  9024. w.wid,
  9025. userid,
  9026. 1,
  9027. null,
  9028. w.isLikes,
  9029. w.sName
  9030. )
  9031. "
  9032. >
  9033. <img
  9034. :src="w.isLikes == true ? likes : noLikes"
  9035. alt=""
  9036. />
  9037. </div>
  9038. <div>{{ w.likesCount }}</div>
  9039. </div>
  9040. <div class="commentList" style="margin-right: 15px">
  9041. <div
  9042. class="commentImg"
  9043. @click="commentOther(w, toolIndex, wIndex)"
  9044. >
  9045. <img
  9046. src="../../assets/icon/comment/comment.png"
  9047. alt=""
  9048. />
  9049. </div>
  9050. <div>{{ w.commentCount }}</div>
  9051. </div>
  9052. </div>
  9053. </div>
  9054. </div>
  9055. </div>
  9056. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9057. 未提交
  9058. </div>
  9059. <div
  9060. class="noWorksS"
  9061. v-if="noWorksS && noWorksS[toolIndex].length"
  9062. >
  9063. <div
  9064. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9065. :key="sIndex"
  9066. class="noWorksName"
  9067. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9068. >
  9069. <el-tooltip
  9070. effect="dark"
  9071. :content="s.student"
  9072. placement="top"
  9073. >
  9074. <span>{{ s.student }}</span>
  9075. </el-tooltip>
  9076. </div>
  9077. </div>
  9078. </div>
  9079. <div
  9080. v-if="
  9081. tType &&
  9082. tType == 2 &&
  9083. !sIsOpen &&
  9084. tool.tool.indexOf(48) != -1
  9085. "
  9086. class="worksBox"
  9087. >
  9088. <div
  9089. class="zuoyeYulan"
  9090. v-if="workStudent[toolIndex].length > 0"
  9091. >
  9092. <span class="worksTitle">作业预览</span>
  9093. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9094. </div>
  9095. <div
  9096. class="worksDetailBox"
  9097. v-if="workStudent[toolIndex].length > 0"
  9098. >
  9099. <div
  9100. class="works"
  9101. style="
  9102. width: 200px;
  9103. height: 140px;
  9104. margin: 10px 10px 10px 0;
  9105. box-shadow: 0 0 6px 1px #dfdada;
  9106. "
  9107. v-for="(w, wIndex) in workStudent[toolIndex]"
  9108. :key="wIndex"
  9109. >
  9110. <div class="workImg">
  9111. <img :src="word" @click="openTable(w)" alt />
  9112. <div
  9113. class="answerScore"
  9114. v-if="w.score"
  9115. @click.stop="openScore(w)"
  9116. :class="{
  9117. rightW:
  9118. w.userid == userid || tType == 1 || tType == 4
  9119. }"
  9120. >
  9121. {{ JSON.parse(w.score).wScore }}分
  9122. </div>
  9123. <div
  9124. class="answerScore"
  9125. @click.stop="openScore(w)"
  9126. v-else-if="courseDetail.userid == userid"
  9127. :class="{
  9128. rightW:
  9129. w.userid == userid || tType == 1 || tType == 4
  9130. }"
  9131. >
  9132. 评分
  9133. </div>
  9134. <div
  9135. class="stuLookScore"
  9136. v-if="
  9137. w.userid == userid ||
  9138. (tType == 1 &&
  9139. courseDetail.state == 5 &&
  9140. ((chapInfoList[courseType].chapterInfo[0]
  9141. .taskJson[taskCount].eList &&
  9142. chapInfoList[courseType].chapterInfo[0]
  9143. .taskJson[taskCount].eList.length) ||
  9144. (tool.eList && tool.eList.length)))
  9145. "
  9146. >
  9147. <el-popover
  9148. placement="top"
  9149. width="318"
  9150. trigger="hover"
  9151. >
  9152. <markScore
  9153. :loading="AIloading[toolIndex][wIndex].loading"
  9154. :markScoreVisible="markScoreVisible"
  9155. :ref="`markSco${toolIndex}${wIndex}`"
  9156. @updateLoading="updateLoading"
  9157. @updateDocSco="updateDocSco"
  9158. @refreshOther="refreshOther"
  9159. @markScoreDig="markScoreDig"
  9160. :tool="tool"
  9161. :wIndex="wIndex"
  9162. :scoCon="w"
  9163. :toolIndex="toolIndex"
  9164. :key="refreshKey"
  9165. :stage="courseType"
  9166. :task="taskCount"
  9167. :scoTit="
  9168. chapInfoList[courseType].chapterInfo[0]
  9169. .taskJson[taskCount].eList
  9170. "
  9171. >
  9172. </markScore>
  9173. <div
  9174. @click="
  9175. markScoreDig2(
  9176. w.sName,
  9177. worksStudent,
  9178. w.userid,
  9179. toolIndex,
  9180. chapInfoList[courseType].chapterInfo[0]
  9181. .taskJson[taskCount].eList,
  9182. AIloading[toolIndex][wIndex].loading,
  9183. tool
  9184. )
  9185. "
  9186. slot="reference"
  9187. >
  9188. <span v-if="AIloading[toolIndex][wIndex].sco">
  9189. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9190. </span>
  9191. <span v-else>
  9192. 评分
  9193. </span>
  9194. </div>
  9195. </el-popover>
  9196. </div>
  9197. <img
  9198. class="deleteImg"
  9199. src="../../assets/deleteworks.png"
  9200. v-if="
  9201. w.userid == userid || tType == 1 || tType == 4
  9202. "
  9203. @click.stop="deleteWorks(w.wid)"
  9204. alt
  9205. />
  9206. </div>
  9207. <div class="worksName">
  9208. <div>{{ w.sName }}</div>
  9209. </div>
  9210. </div>
  9211. </div>
  9212. </div>
  9213. <div
  9214. v-if="
  9215. tType &&
  9216. ((tType == 2 && sIsOpen == true) ||
  9217. tType == 1 ||
  9218. tType == 4) &&
  9219. tool.tool.indexOf(52) != -1
  9220. "
  9221. class="worksBox"
  9222. >
  9223. <div
  9224. class="zuoyeYulan"
  9225. style="display: flex;justify-content: space-between;align-items: center;"
  9226. v-if="
  9227. worksStudent.length &&
  9228. worksStudent[toolIndex].length > 0
  9229. "
  9230. >
  9231. <div class="worksTop">
  9232. <div>作业预览</div>
  9233. <div
  9234. class="corOpen"
  9235. @click="contract(toolIndex)"
  9236. v-if="
  9237. isCloseList[toolIndex].isCloseBoolean &&
  9238. isCloseList[toolIndex].isClose == 0
  9239. "
  9240. >
  9241. 折叠
  9242. </div>
  9243. <div
  9244. class="corOpen"
  9245. @click="contract(toolIndex)"
  9246. v-if="isCloseList[toolIndex].isClose == 1"
  9247. >
  9248. 展开
  9249. </div>
  9250. </div>
  9251. <div
  9252. style="display: flex;"
  9253. v-if="
  9254. (courseDetail.userid == userid ||
  9255. (courseDetail.course_teacher &&
  9256. courseDetail.course_teacher.indexOf(userid) !=
  9257. -1)) &&
  9258. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9259. taskCount
  9260. ].eList &&
  9261. chapInfoList[courseType].chapterInfo[0].taskJson[
  9262. taskCount
  9263. ].eList.length) ||
  9264. (tool.eList && tool.eList.length)) &&
  9265. courseDetail.state == 5
  9266. "
  9267. >
  9268. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5"> -->
  9269. <div
  9270. @click="
  9271. resetLoopEva(
  9272. worksStudent[toolIndex],
  9273. chapInfoList[courseType].chapterInfo[0].taskJson[
  9274. taskCount
  9275. ].eList,
  9276. courseType,
  9277. taskCount,
  9278. toolIndex,
  9279. tool.toolDetail,
  9280. tool
  9281. )
  9282. "
  9283. style="margin-right:10px"
  9284. class="ScoreBtn"
  9285. >
  9286. 一键重置
  9287. </div>
  9288. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9289. <img
  9290. src="../../assets/icon/newIcons/rootImg.png"
  9291. alt=""
  9292. />
  9293. AI评分
  9294. </div>
  9295. <div
  9296. class="ScoreBtn"
  9297. v-else-if="!loopLoading[toolIndex].loading"
  9298. @click="
  9299. loopEva(
  9300. worksStudent[toolIndex],
  9301. chapInfoList[courseType].chapterInfo[0].taskJson[
  9302. taskCount
  9303. ].eList,
  9304. courseType,
  9305. taskCount,
  9306. toolIndex,
  9307. tool.toolDetail,
  9308. chapInfoList[courseType].chapterInfo[0].taskJson[
  9309. taskCount
  9310. ].taskDetail,
  9311. tool
  9312. )
  9313. "
  9314. >
  9315. <img
  9316. src="../../assets/icon/newIcons/rootImg.png"
  9317. alt=""
  9318. />
  9319. AI评分
  9320. </div>
  9321. <div class="ScoreBtn" v-else>
  9322. <img
  9323. src="../../assets/icon/newIcons/rootImg.png"
  9324. alt=""
  9325. />
  9326. 正在评分
  9327. </div>
  9328. </div>
  9329. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9330. </div>
  9331. <div
  9332. :id="'tool-' + toolIndex"
  9333. :style="{
  9334. height:
  9335. isCloseList[toolIndex].isClose == 1
  9336. ? retrnToolHeight('tool-' + toolIndex)
  9337. : 'auto',
  9338. overflow:
  9339. isCloseList[toolIndex].isClose == 1
  9340. ? 'hidden'
  9341. : 'unset'
  9342. }"
  9343. class="worksDetailBox"
  9344. v-if="
  9345. worksStudent.length &&
  9346. worksStudent[toolIndex].length > 0
  9347. "
  9348. >
  9349. <div
  9350. class="works"
  9351. style="
  9352. width: 200px;
  9353. height: 140px;
  9354. margin: 10px 10px 10px 0;
  9355. border-radius: 15px;
  9356. box-shadow: 0 0 6px 1px #dfdada;
  9357. "
  9358. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9359. :key="wIndex"
  9360. :class="w.type == 1 ? 'isTypeOne' : ''"
  9361. >
  9362. <div class="workImg">
  9363. <img :src="word" @click="openWord(w)" alt />
  9364. <!-- @click="openFile(w.works)" -->
  9365. <div
  9366. class="answerScore"
  9367. v-if="w.score"
  9368. @click.stop="openScore(w)"
  9369. :class="{
  9370. rightW:
  9371. w.userid == userid ||
  9372. tType == 1 ||
  9373. tType == 4 ||
  9374. w.ateacher == userid
  9375. }"
  9376. >
  9377. {{ JSON.parse(w.score).wScore }}分
  9378. </div>
  9379. <div
  9380. class="answerScore"
  9381. @click.stop="openScore(w)"
  9382. v-else-if="
  9383. courseDetail.userid == userid &&
  9384. courseDetail.state != 5 &&
  9385. chapInfoList[courseType].chapterInfo[0]
  9386. .taskJson[taskCount].eList &&
  9387. chapInfoList[courseType].chapterInfo[0]
  9388. .taskJson[taskCount].eList.length
  9389. "
  9390. :class="{
  9391. rightW:
  9392. w.userid == userid ||
  9393. tType == 1 ||
  9394. tType == 4 ||
  9395. w.ateacher == userid
  9396. }"
  9397. >
  9398. 评分
  9399. </div>
  9400. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  9401. <div
  9402. v-else-if="
  9403. (courseDetail.userid == userid ||
  9404. (courseDetail.course_teacher &&
  9405. courseDetail.course_teacher.indexOf(userid) !=
  9406. -1) ||
  9407. (w.userid == userid && sIsOpen)) &&
  9408. courseDetail.state == 5 &&
  9409. ((chapInfoList[courseType].chapterInfo[0]
  9410. .taskJson[taskCount].eList &&
  9411. chapInfoList[courseType].chapterInfo[0]
  9412. .taskJson[taskCount].eList.length) ||
  9413. (tool.eList && tool.eList.length))
  9414. "
  9415. >
  9416. <!-- <div
  9417. class="answerScore"
  9418. @click="markScoreDig(w.userid,toolIndex)"
  9419. :class="{
  9420. rightW:
  9421. w.userid == userid ||
  9422. tType == 1 ||
  9423. tType == 4 ||
  9424. w.ateacher == userid,
  9425. }"
  9426. >
  9427. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  9428. </div> -->
  9429. <!-- @show="handleShow(toolIndex,wIndex)"
  9430. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  9431. <el-popover
  9432. placement="top"
  9433. width="318"
  9434. :disabled="AIloading[toolIndex][wIndex].loading"
  9435. trigger="hover"
  9436. >
  9437. <markScore
  9438. :loading="AIloading[toolIndex][wIndex].loading"
  9439. :markScoreVisible="markScoreVisible"
  9440. :ref="`markSco${toolIndex}${wIndex}`"
  9441. @updateLoading="updateLoading"
  9442. @updateDocSco="updateDocSco"
  9443. @refreshOther="refreshOther"
  9444. @markScoreDig="markScoreDig"
  9445. :tool="tool"
  9446. :wIndex="wIndex"
  9447. :scoCon="w"
  9448. :toolIndex="toolIndex"
  9449. :key="refreshKey"
  9450. :stage="courseType"
  9451. :task="taskCount"
  9452. :scoTit="
  9453. chapInfoList[courseType].chapterInfo[0]
  9454. .taskJson[taskCount].eList
  9455. "
  9456. >
  9457. </markScore>
  9458. <div
  9459. class="answerScore"
  9460. @click="
  9461. markScoreDig2(
  9462. w.sName,
  9463. worksStudent,
  9464. w.userid,
  9465. toolIndex,
  9466. chapInfoList[courseType].chapterInfo[0]
  9467. .taskJson[taskCount].eList,
  9468. AIloading[toolIndex][wIndex].loading,
  9469. tool
  9470. )
  9471. "
  9472. slot="reference"
  9473. :class="{
  9474. rightW:
  9475. w.userid == userid ||
  9476. tType == 1 ||
  9477. tType == 4 ||
  9478. w.ateacher == userid
  9479. }"
  9480. >
  9481. <span v-if="AIloading[toolIndex][wIndex].sco">
  9482. {{
  9483. AIloading[toolIndex][wIndex].loading
  9484. ? "评分中"
  9485. : AIloading[toolIndex][wIndex].sco + "分"
  9486. }}
  9487. </span>
  9488. <span v-else>
  9489. {{
  9490. AIloading[toolIndex][wIndex].loading
  9491. ? "评分中"
  9492. : "评分"
  9493. }}
  9494. </span>
  9495. </div>
  9496. </el-popover>
  9497. </div>
  9498. <img
  9499. class="deleteImg"
  9500. src="../../assets/deleteworks.png"
  9501. v-if="
  9502. w.userid == userid || tType == 1 || tType == 4
  9503. "
  9504. @click.stop="deleteWorks(w.wid)"
  9505. alt
  9506. />
  9507. </div>
  9508. <div class="comment" style="min-width: 200px">
  9509. <div class="worksName">
  9510. <div>{{ w.sName }}</div>
  9511. </div>
  9512. <div class="commentList">
  9513. <div class="commentList">
  9514. <div
  9515. class="commentImg"
  9516. @click="
  9517. isLikes(
  9518. w.wid,
  9519. userid,
  9520. 1,
  9521. null,
  9522. w.isLikes,
  9523. w.sName
  9524. )
  9525. "
  9526. >
  9527. <img
  9528. :src="w.isLikes == true ? likes : noLikes"
  9529. alt=""
  9530. />
  9531. </div>
  9532. <div>{{ w.likesCount }}</div>
  9533. </div>
  9534. <div class="commentList" style="margin-right: 15px">
  9535. <div
  9536. class="commentImg"
  9537. @click="commentOther(w, toolIndex, wIndex)"
  9538. >
  9539. <img
  9540. src="../../assets/icon/comment/comment.png"
  9541. alt=""
  9542. />
  9543. </div>
  9544. <div>{{ w.commentCount }}</div>
  9545. </div>
  9546. </div>
  9547. </div>
  9548. </div>
  9549. </div>
  9550. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9551. 未提交
  9552. </div>
  9553. <div
  9554. class="noWorksS"
  9555. v-if="noWorksS && noWorksS[toolIndex].length"
  9556. >
  9557. <div
  9558. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9559. :key="sIndex"
  9560. class="noWorksName"
  9561. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  9562. >
  9563. <el-tooltip
  9564. effect="dark"
  9565. :content="s.student"
  9566. placement="top"
  9567. >
  9568. <span>{{ s.student }}</span>
  9569. </el-tooltip>
  9570. </div>
  9571. </div>
  9572. </div>
  9573. <div
  9574. v-if="
  9575. tType &&
  9576. tType == 2 &&
  9577. !sIsOpen &&
  9578. tool.tool.indexOf(52) != -1
  9579. "
  9580. class="worksBox"
  9581. >
  9582. <div
  9583. class="zuoyeYulan"
  9584. v-if="workStudent[toolIndex].length > 0"
  9585. >
  9586. <span class="worksTitle">作业预览</span>
  9587. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9588. </div>
  9589. <div
  9590. class="worksDetailBox"
  9591. v-if="workStudent[toolIndex].length > 0"
  9592. >
  9593. <div
  9594. class="works"
  9595. style="
  9596. width: 200px;
  9597. height: 140px;
  9598. margin: 10px 10px 10px 0;
  9599. box-shadow: 0 0 6px 1px #dfdada;
  9600. "
  9601. v-for="(w, wIndex) in workStudent[toolIndex]"
  9602. :key="wIndex"
  9603. >
  9604. <div class="workImg">
  9605. <img :src="word" @click="openWord(w)" alt />
  9606. <div
  9607. class="answerScore"
  9608. v-if="w.score"
  9609. @click.stop="openScore(w)"
  9610. :class="{
  9611. rightW:
  9612. w.userid == userid || tType == 1 || tType == 4
  9613. }"
  9614. >
  9615. {{ JSON.parse(w.score).wScore }}分
  9616. </div>
  9617. <div
  9618. class="answerScore"
  9619. @click.stop="openScore(w)"
  9620. v-else-if="courseDetail.userid == userid"
  9621. :class="{
  9622. rightW:
  9623. w.userid == userid || tType == 1 || tType == 4
  9624. }"
  9625. >
  9626. 评分
  9627. </div>
  9628. <div
  9629. class="stuLookScore"
  9630. v-if="
  9631. w.userid == userid ||
  9632. (tType == 1 &&
  9633. courseDetail.state == 5 &&
  9634. ((chapInfoList[courseType].chapterInfo[0]
  9635. .taskJson[taskCount].eList &&
  9636. chapInfoList[courseType].chapterInfo[0]
  9637. .taskJson[taskCount].eList.length) ||
  9638. (tool.eList && tool.eList.length)))
  9639. "
  9640. >
  9641. <el-popover
  9642. placement="top"
  9643. width="318"
  9644. trigger="hover"
  9645. >
  9646. <markScore
  9647. :loading="AIloading[toolIndex][wIndex].loading"
  9648. :markScoreVisible="markScoreVisible"
  9649. :ref="`markSco${toolIndex}${wIndex}`"
  9650. @updateLoading="updateLoading"
  9651. @updateDocSco="updateDocSco"
  9652. @refreshOther="refreshOther"
  9653. @markScoreDig="markScoreDig"
  9654. :tool="tool"
  9655. :wIndex="wIndex"
  9656. :scoCon="w"
  9657. :toolIndex="toolIndex"
  9658. :key="refreshKey"
  9659. :stage="courseType"
  9660. :task="taskCount"
  9661. :scoTit="
  9662. chapInfoList[courseType].chapterInfo[0]
  9663. .taskJson[taskCount].eList
  9664. "
  9665. >
  9666. </markScore>
  9667. <div
  9668. @click="
  9669. markScoreDig2(
  9670. w.sName,
  9671. worksStudent,
  9672. w.userid,
  9673. toolIndex,
  9674. chapInfoList[courseType].chapterInfo[0]
  9675. .taskJson[taskCount].eList,
  9676. AIloading[toolIndex][wIndex].loading,
  9677. tool
  9678. )
  9679. "
  9680. slot="reference"
  9681. >
  9682. <span v-if="AIloading[toolIndex][wIndex].sco">
  9683. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9684. </span>
  9685. <span v-else>
  9686. 评分
  9687. </span>
  9688. </div>
  9689. </el-popover>
  9690. </div>
  9691. <img
  9692. class="deleteImg"
  9693. src="../../assets/deleteworks.png"
  9694. v-if="
  9695. w.userid == userid || tType == 1 || tType == 4
  9696. "
  9697. @click.stop="deleteWorks(w.wid)"
  9698. alt
  9699. />
  9700. </div>
  9701. <div class="worksName">
  9702. <div>{{ w.sName }}</div>
  9703. </div>
  9704. </div>
  9705. </div>
  9706. </div>
  9707. <div
  9708. v-if="tool.tool.indexOf(49) != -1"
  9709. class="xuan_right_box"
  9710. style="margin: 0 15px 0 25px; width: 93%"
  9711. >
  9712. <div
  9713. v-if="courseDetail.userid == userid"
  9714. style="
  9715. display: flex;
  9716. justify-content: flex-end;
  9717. margin-right: 10px;
  9718. "
  9719. >
  9720. <el-button
  9721. type="primary"
  9722. size="small"
  9723. @click="addTools(49, toolIndex, taskCount)"
  9724. >分组设置</el-button
  9725. >
  9726. </div>
  9727. <div
  9728. v-if="groupStudentUid[toolIndex]"
  9729. class="group_staic_box"
  9730. >
  9731. <div
  9732. v-for="(gp, gd) in tool.groupJson.group"
  9733. :key="gd"
  9734. class="group_staic"
  9735. >
  9736. <span> {{ gp.name }}</span>
  9737. <span>
  9738. 目前人数{{
  9739. groupStudentUid[toolIndex][gd].length
  9740. }}人</span
  9741. >
  9742. </div>
  9743. </div>
  9744. </div>
  9745. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  9746. <div
  9747. class="zuoyeYulan"
  9748. v-if="
  9749. worksStudent.length &&
  9750. worksStudent[toolIndex].length > 0
  9751. "
  9752. >
  9753. <span class="worksTitle">作业预览</span>
  9754. </div>
  9755. <div>
  9756. <div
  9757. class="group_workBox"
  9758. v-for="(g, gindex) in tool.groupJson.group"
  9759. :key="gindex"
  9760. >
  9761. <div
  9762. class="group_box"
  9763. v-if="
  9764. groupStudentUid[toolIndex] &&
  9765. worksStudent[toolIndex] &&
  9766. (worksStudent[toolIndex][gindex].length ||
  9767. groupStudentUid[toolIndex][gindex].indexOf(
  9768. userid
  9769. ) != -1)
  9770. "
  9771. >
  9772. <div class="group_title">
  9773. <el-tooltip
  9774. class="item"
  9775. effect="light"
  9776. :content="g.name"
  9777. placement="top"
  9778. >
  9779. <div class="group_name">{{ g.name }}</div>
  9780. </el-tooltip>
  9781. <el-button
  9782. type="primary"
  9783. v-if="
  9784. groupStudentUid[toolIndex][gindex].indexOf(
  9785. userid
  9786. ) != -1
  9787. "
  9788. @click="groupUpload(toolIndex, taskCount, gindex)"
  9789. >上传作业</el-button
  9790. >
  9791. </div>
  9792. <div class="group_work">
  9793. <div
  9794. class="works"
  9795. style="
  9796. width: 200px;
  9797. height: 140px;
  9798. margin: 10px 10px 10px 0;
  9799. border-radius: 15px;
  9800. box-shadow: 0 0 6px 1px #dfdada;
  9801. "
  9802. v-for="(w, wIndex) in worksStudent[toolIndex][
  9803. gindex
  9804. ]"
  9805. :key="wIndex"
  9806. :class="w.type == 1 ? 'isTypeOne' : ''"
  9807. >
  9808. <div class="workImg" v-if="w.type == 0">
  9809. <img
  9810. :src="w.works"
  9811. @click="previewImg(w.works, w)"
  9812. alt
  9813. />
  9814. <div
  9815. class="answerScore"
  9816. v-if="w.score"
  9817. @click.stop="openScore(w)"
  9818. :class="{
  9819. rightW:
  9820. w.userid == userid ||
  9821. tType == 1 ||
  9822. tType == 4 ||
  9823. w.ateacher == userid
  9824. }"
  9825. >
  9826. {{ JSON.parse(w.score).wScore }}分
  9827. </div>
  9828. <div
  9829. class="answerScore"
  9830. @click.stop="openScore(w)"
  9831. v-else-if="courseDetail.userid == userid"
  9832. :class="{
  9833. rightW:
  9834. w.userid == userid ||
  9835. tType == 1 ||
  9836. tType == 4 ||
  9837. w.ateacher == userid
  9838. }"
  9839. >
  9840. 评分
  9841. </div>
  9842. <img
  9843. class="deleteImg"
  9844. src="../../assets/deleteworks.png"
  9845. v-if="
  9846. w.userid == userid ||
  9847. tType == 1 ||
  9848. tType == 4
  9849. "
  9850. @click.stop="deleteWorks(w.wid)"
  9851. alt
  9852. />
  9853. </div>
  9854. <div class="workImg" v-if="w.type == 1">
  9855. <img
  9856. :src="word"
  9857. @click="openFile(w.works)"
  9858. alt
  9859. />
  9860. <!-- @click="openFile(w.works)" -->
  9861. <div
  9862. class="answerScore"
  9863. v-if="w.score"
  9864. @click.stop="openScore(w)"
  9865. :class="{
  9866. rightW:
  9867. w.userid == userid ||
  9868. tType == 1 ||
  9869. tType == 4 ||
  9870. w.ateacher == userid
  9871. }"
  9872. >
  9873. {{ JSON.parse(w.score).wScore }}分
  9874. </div>
  9875. <div
  9876. class="answerScore"
  9877. @click.stop="openScore(w)"
  9878. v-else-if="courseDetail.userid == userid"
  9879. :class="{
  9880. rightW:
  9881. w.userid == userid ||
  9882. tType == 1 ||
  9883. tType == 4 ||
  9884. w.ateacher == userid
  9885. }"
  9886. >
  9887. 评分
  9888. </div>
  9889. <img
  9890. class="deleteImg"
  9891. src="../../assets/deleteworks.png"
  9892. v-if="
  9893. w.userid == userid ||
  9894. tType == 1 ||
  9895. tType == 4
  9896. "
  9897. @click.stop="deleteWorks(w.wid)"
  9898. alt
  9899. />
  9900. </div>
  9901. <div class="workImg" v-if="w.type == 3">
  9902. <img
  9903. style="cursor: pointer"
  9904. :src="video"
  9905. @click="openVideo(w)"
  9906. alt
  9907. />
  9908. <!-- @click="openVideo(w.works)" -->
  9909. <div
  9910. class="answerScore"
  9911. v-if="w.score"
  9912. @click.stop="openScore(w)"
  9913. :class="{
  9914. rightW:
  9915. w.userid == userid ||
  9916. tType == 1 ||
  9917. tType == 4 ||
  9918. w.ateacher == userid
  9919. }"
  9920. >
  9921. {{ JSON.parse(w.score).wScore }}分
  9922. </div>
  9923. <div
  9924. class="answerScore"
  9925. @click.stop="openScore(w)"
  9926. v-else-if="courseDetail.userid == userid"
  9927. :class="{
  9928. rightW:
  9929. w.userid == userid ||
  9930. tType == 1 ||
  9931. tType == 4 ||
  9932. w.ateacher == userid
  9933. }"
  9934. >
  9935. 评分
  9936. </div>
  9937. <img
  9938. class="deleteImg"
  9939. src="../../assets/deleteworks.png"
  9940. v-if="
  9941. w.userid == userid ||
  9942. tType == 1 ||
  9943. tType == 4
  9944. "
  9945. @click.stop="deleteWorks(w.wid)"
  9946. alt
  9947. />
  9948. </div>
  9949. <div class="workImg" v-if="w.type == 12">
  9950. <img
  9951. style="cursor: pointer"
  9952. :src="word2"
  9953. @click="downloadFile(w.works)"
  9954. alt
  9955. />
  9956. <!-- @click="openVideo(w.works)" -->
  9957. <div
  9958. class="answerScore"
  9959. v-if="w.score"
  9960. @click.stop="openScore(w)"
  9961. :class="{
  9962. rightW:
  9963. w.userid == userid ||
  9964. tType == 1 ||
  9965. tType == 4 ||
  9966. w.ateacher == userid
  9967. }"
  9968. >
  9969. {{ JSON.parse(w.score).wScore }}分
  9970. </div>
  9971. <div
  9972. class="answerScore"
  9973. @click.stop="openScore(w)"
  9974. v-else-if="courseDetail.userid == userid"
  9975. :class="{
  9976. rightW:
  9977. w.userid == userid ||
  9978. tType == 1 ||
  9979. tType == 4 ||
  9980. w.ateacher == userid
  9981. }"
  9982. >
  9983. 评分
  9984. </div>
  9985. <img
  9986. class="deleteImg"
  9987. src="../../assets/deleteworks.png"
  9988. v-if="
  9989. w.userid == userid ||
  9990. tType == 1 ||
  9991. tType == 4
  9992. "
  9993. @click.stop="deleteWorks(w.wid)"
  9994. alt
  9995. />
  9996. </div>
  9997. <div class="comment" style="min-width: 200px">
  9998. <div class="worksName">
  9999. <div>{{ w.sName }}</div>
  10000. </div>
  10001. <div class="commentList">
  10002. <div class="commentList">
  10003. <div
  10004. class="commentImg"
  10005. @click="
  10006. isLikes(
  10007. w.wid,
  10008. userid,
  10009. 1,
  10010. null,
  10011. w.isLikes,
  10012. w.sName
  10013. )
  10014. "
  10015. >
  10016. <img
  10017. :src="
  10018. w.isLikes == true ? likes : noLikes
  10019. "
  10020. alt=""
  10021. />
  10022. </div>
  10023. <div>{{ w.likesCount }}</div>
  10024. </div>
  10025. <div
  10026. class="commentList"
  10027. style="margin-right: 15px"
  10028. >
  10029. <div
  10030. class="commentImg"
  10031. @click="
  10032. commentOther(
  10033. w,
  10034. toolIndex,
  10035. wIndex,
  10036. gindex
  10037. )
  10038. "
  10039. >
  10040. <img
  10041. src="../../assets/icon/comment/comment.png"
  10042. alt=""
  10043. />
  10044. </div>
  10045. <div>{{ w.commentCount }}</div>
  10046. </div>
  10047. </div>
  10048. </div>
  10049. </div>
  10050. </div>
  10051. </div>
  10052. </div>
  10053. </div>
  10054. </div>
  10055. <div
  10056. style="width:92%;margin: 0 0 0 40px;"
  10057. v-if="
  10058. courseDetail.state == 5 && tool.eList && tool.eList.length
  10059. "
  10060. >
  10061. <evaTable :eList="tool.eList"></evaTable>
  10062. </div>
  10063. </div>
  10064. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10065. 上传文件
  10066. <input
  10067. type="file"
  10068. accept="image/png, image/gif, image/jpeg"
  10069. style="display: none"
  10070. @change="beforeUpload1($event, 2, index)"
  10071. />
  10072. </div>-->
  10073. </div>
  10074. </div>
  10075. <!-- <div
  10076. class="vedioBox"
  10077. style="margin-top: 10px"
  10078. v-if="
  10079. courseDetail.userid == userid ||
  10080. (courseDetail.course_teacher &&
  10081. courseDetail.course_teacher.indexOf(userid) != -1)
  10082. "
  10083. :style="{
  10084. borderRadius:
  10085. !(
  10086. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10087. .toolChoose[0].tool &&
  10088. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10089. .toolChoose[0].tool.length > 0
  10090. ) &&
  10091. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10092. .taskDetail == '' &&
  10093. vChapterData[taskCount].length == 0 &&
  10094. fileC[taskCount].length == 0
  10095. ? '0 0 20px 20px'
  10096. : '20px',
  10097. }"
  10098. >
  10099. <div
  10100. class="queTop"
  10101. @click="isClose = !isClose"
  10102. style="
  10103. padding: 15px 0 15px 37px;
  10104. justify-content: space-between;
  10105. "
  10106. >
  10107. <div class="queTopTitle">新增工具</div>
  10108. <div class="queTopRight">
  10109. <div class="queTopClose" v-if="isClose == 0">
  10110. 展开
  10111. <div class="closeImg">
  10112. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10113. </div>
  10114. </div>
  10115. <div class="queTopClose" v-if="isClose == 1">
  10116. 折叠
  10117. <div class="openImg">
  10118. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10119. </div>
  10120. </div>
  10121. <el-button
  10122. style="margin: 0 30px 0 auto"
  10123. type="primary"
  10124. size="small"
  10125. v-if="isClose == 1 && checktoolArray.length > 0"
  10126. @click.stop="addToolChoose"
  10127. >确定</el-button
  10128. >
  10129. </div>
  10130. </div>
  10131. <div
  10132. class="tool_work_box"
  10133. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10134. >
  10135. <div class="tool_box">
  10136. <div class="tool_type_box">
  10137. <div class="chooseWho">
  10138. <div
  10139. :class="toolType == 0 ? 'isChooseActive' : ''"
  10140. @click="(toolType = 0), $forceUpdate()"
  10141. >
  10142. 互动类
  10143. </div>
  10144. <div
  10145. :class="toolType == 1 ? 'isChooseActive' : ''"
  10146. @click="(toolType = 1), $forceUpdate()"
  10147. >
  10148. 思维类
  10149. </div>
  10150. <div
  10151. :class="toolType == 2 ? 'isChooseActive' : ''"
  10152. @click="(toolType = 2), $forceUpdate()"
  10153. >
  10154. 测评类
  10155. </div>
  10156. <div
  10157. :class="toolType == 3 ? 'isChooseActive' : ''"
  10158. @click="(toolType = 3), $forceUpdate()"
  10159. >
  10160. 编程类
  10161. </div>
  10162. <div
  10163. :class="toolType == 5 ? 'isChooseActive' : ''"
  10164. @click="(toolType = 5), $forceUpdate()"
  10165. >
  10166. 学科类
  10167. </div>
  10168. </div>
  10169. </div>
  10170. <div>
  10171. <div class="toolSort" v-if="toolType == 0">
  10172. <div class="tool">
  10173. <div class="whiteBIcon" @click="addTools2(10)">
  10174. <img
  10175. src="../../assets/icon/thirdToolList/time.png"
  10176. alt
  10177. />
  10178. <div style="margin: 5px 0">倒计时</div>
  10179. </div>
  10180. <div class="check" @click="addTools2(10)">
  10181. <img
  10182. src="../../assets/icon/checkNo.png"
  10183. alt
  10184. v-if="checktoolArray.indexOf(10) == -1"
  10185. />
  10186. <div class="checkDiv" v-else>
  10187. <img src="../../assets/icon/checkedIs.png" alt /><span
  10188. >已选择</span
  10189. >
  10190. </div>
  10191. </div>
  10192. </div>
  10193. <div class="tool">
  10194. <div class="whiteBIcon" @click="addTools2(65)">
  10195. <img
  10196. src="../../assets/icon/firstToolList/pickPeople.png"
  10197. alt
  10198. />
  10199. <div style="margin: 5px 0">挑人</div>
  10200. </div>
  10201. <div class="check" @click="addTools2(65)">
  10202. <img
  10203. src="../../assets/icon/checkNo.png"
  10204. alt
  10205. v-if="checktoolArray.indexOf(65) == -1"
  10206. />
  10207. <div class="checkDiv" v-else>
  10208. <img src="../../assets/icon/checkedIs.png" alt /><span
  10209. >已选择</span
  10210. >
  10211. </div>
  10212. </div>
  10213. </div>
  10214. </div>
  10215. <div class="toolSort" v-if="toolType == 1">
  10216. <div class="tool">
  10217. <div class="whiteBIcon" @click="addTools2(7)">
  10218. <img
  10219. src="../../assets/icon/secondToolList/mindNetwork.png"
  10220. alt
  10221. />
  10222. <div style="margin: 5px 0">思维网格</div>
  10223. </div>
  10224. <div class="check" @click="addTools2(7)">
  10225. <img
  10226. src="../../assets/icon/checkNo.png"
  10227. alt
  10228. v-if="checktoolArray.indexOf(7) == -1"
  10229. />
  10230. <div class="checkDiv" v-else>
  10231. <img src="../../assets/icon/checkedIs.png" alt /><span
  10232. >已选择</span
  10233. >
  10234. </div>
  10235. </div>
  10236. </div>
  10237. <div class="tool">
  10238. <div class="whiteBIcon" @click="addTools2(1)">
  10239. <img
  10240. src="../../assets/icon/secondToolList/whiteBoard.png"
  10241. alt
  10242. />
  10243. <div style="margin: 5px 0">电子白板</div>
  10244. </div>
  10245. <div class="check" @click="addTools2(1)">
  10246. <img
  10247. src="../../assets/icon/checkNo.png"
  10248. alt
  10249. v-if="checktoolArray.indexOf(1) == -1"
  10250. />
  10251. <div class="checkDiv" v-else>
  10252. <img src="../../assets/icon/checkedIs.png" alt /><span
  10253. >已选择</span
  10254. >
  10255. </div>
  10256. </div>
  10257. </div>
  10258. <div class="tool">
  10259. <div class="whiteBIcon" @click="addTools2(52)">
  10260. <img
  10261. src="../../assets/icon/fourthToolList/text.png"
  10262. alt
  10263. />
  10264. <div style="margin: 5px 0">文档</div>
  10265. </div>
  10266. <div class="check" @click="addTools2(52)">
  10267. <img
  10268. src="../../assets/icon/checkNo.png"
  10269. alt
  10270. v-if="checktoolArray.indexOf(52) == -1"
  10271. />
  10272. <div class="checkDiv" v-else>
  10273. <img src="../../assets/icon/checkedIs.png" alt /><span
  10274. >已选择</span
  10275. >
  10276. </div>
  10277. </div>
  10278. </div>
  10279. <div class="tool">
  10280. <div class="whiteBIcon" @click="addTools2(3)">
  10281. <img
  10282. src="../../assets/icon/secondToolList/mindMapping.png"
  10283. alt
  10284. />
  10285. <div style="margin: 5px 0">思维导图</div>
  10286. </div>
  10287. <div class="check" @click="addTools2(3)">
  10288. <img
  10289. src="../../assets/icon/checkNo.png"
  10290. alt
  10291. v-if="checktoolArray.indexOf(3) == -1"
  10292. />
  10293. <div class="checkDiv" v-else>
  10294. <img src="../../assets/icon/checkedIs.png" alt /><span
  10295. >已选择</span
  10296. >
  10297. </div>
  10298. </div>
  10299. </div>
  10300. <div class="tool">
  10301. <div class="whiteBIcon" @click="addTools2(48)">
  10302. <img
  10303. src="../../assets/icon/fourthToolList/table.png"
  10304. alt
  10305. />
  10306. <div style="margin: 5px 0">表格</div>
  10307. </div>
  10308. <div class="check" @click="addTools2(48)">
  10309. <img
  10310. src="../../assets/icon/checkNo.png"
  10311. alt
  10312. v-if="checktoolArray.indexOf(48) == -1"
  10313. />
  10314. <div class="checkDiv" v-else>
  10315. <img src="../../assets/icon/checkedIs.png" alt /><span
  10316. >已选择</span
  10317. >
  10318. </div>
  10319. </div>
  10320. </div>
  10321. </div>
  10322. <div class="toolSort" v-if="toolType == 6">
  10323. <div v-show="tooC == 49">
  10324. <img
  10325. @click="addTools(tooC, toolIndex, taskCount)"
  10326. src="../../assets/icon/fourthToolList/group.png"
  10327. alt
  10328. />
  10329. <div style="margin: 5px 0">学生分组</div>
  10330. </div>
  10331. </div>
  10332. <div class="toolSort" v-if="toolType == 2">
  10333. <div class="tool">
  10334. <div class="whiteBIcon" @click="addTools2(16)">
  10335. <img
  10336. src="../../assets/icon/thirdToolList/work.png"
  10337. alt
  10338. />
  10339. <div style="margin: 5px 0">作业提交</div>
  10340. </div>
  10341. <div class="check" @click="addTools2(16)">
  10342. <img
  10343. src="../../assets/icon/checkNo.png"
  10344. alt
  10345. v-if="checktoolArray.indexOf(16) == -1"
  10346. />
  10347. <div class="checkDiv" v-else>
  10348. <img src="../../assets/icon/checkedIs.png" alt /><span
  10349. >已选择</span
  10350. >
  10351. </div>
  10352. </div>
  10353. </div>
  10354. <div class="tool">
  10355. <div class="whiteBIcon" @click="addTools2(50)">
  10356. <img
  10357. src="../../assets/icon/thirdToolList/plwork.png"
  10358. alt
  10359. />
  10360. <div style="margin: 5px 0">批量上传</div>
  10361. </div>
  10362. <div class="check" @click="addTools2(50)">
  10363. <img
  10364. src="../../assets/icon/checkNo.png"
  10365. alt
  10366. v-if="checktoolArray.indexOf(50) == -1"
  10367. />
  10368. <div class="checkDiv" v-else>
  10369. <img src="../../assets/icon/checkedIs.png" alt /><span
  10370. >已选择</span
  10371. >
  10372. </div>
  10373. </div>
  10374. </div>
  10375. </div>
  10376. <div class="toolSort" v-if="toolType == 3">
  10377. <div class="tool">
  10378. <div class="whiteBIcon" @click="addTools2(18)">
  10379. <img
  10380. src="../../assets/icon/thirdToolList/trainPlatform.png"
  10381. alt
  10382. />
  10383. <div style="margin: 5px 0">训练平台</div>
  10384. </div>
  10385. <div class="check" @click="addTools2(18)">
  10386. <img
  10387. src="../../assets/icon/checkNo.png"
  10388. alt
  10389. v-if="checktoolArray.indexOf(18) == -1"
  10390. />
  10391. <div class="checkDiv" v-else>
  10392. <img src="../../assets/icon/checkedIs.png" alt /><span
  10393. >已选择</span
  10394. >
  10395. </div>
  10396. </div>
  10397. </div>
  10398. <div class="tool">
  10399. <div class="whiteBIcon" @click="addTools2(21)">
  10400. <img
  10401. src="../../assets/icon/fourthToolList/program.png"
  10402. alt
  10403. />
  10404. <div style="margin: 5px 0">AIoT Blockly</div>
  10405. </div>
  10406. <div class="check" @click="addTools2(21)">
  10407. <img
  10408. src="../../assets/icon/checkNo.png"
  10409. alt
  10410. v-if="checktoolArray.indexOf(21) == -1"
  10411. />
  10412. <div class="checkDiv" v-else>
  10413. <img src="../../assets/icon/checkedIs.png" alt /><span
  10414. >已选择</span
  10415. >
  10416. </div>
  10417. </div>
  10418. </div>
  10419. <div class="tool">
  10420. <div class="whiteBIcon" @click="addTools2(23)">
  10421. <img
  10422. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  10423. alt
  10424. />
  10425. <div style="margin: 5px 0">AI Python</div>
  10426. </div>
  10427. <div class="check" @click="addTools2(23)">
  10428. <img
  10429. src="../../assets/icon/checkNo.png"
  10430. alt
  10431. v-if="checktoolArray.indexOf(23) == -1"
  10432. />
  10433. <div class="checkDiv" v-else>
  10434. <img src="../../assets/icon/checkedIs.png" alt /><span
  10435. >已选择</span
  10436. >
  10437. </div>
  10438. </div>
  10439. </div>
  10440. <div class="tool">
  10441. <div class="whiteBIcon" @click="addTools2(24)">
  10442. <img
  10443. src="../../assets/icon/fourthToolList/AIprogram.png"
  10444. alt
  10445. />
  10446. <div style="margin: 5px 0">AI Blockly</div>
  10447. </div>
  10448. <div class="check" @click="addTools2(24)">
  10449. <img
  10450. src="../../assets/icon/checkNo.png"
  10451. alt
  10452. v-if="checktoolArray.indexOf(24) == -1"
  10453. />
  10454. <div class="checkDiv" v-else>
  10455. <img src="../../assets/icon/checkedIs.png" alt /><span
  10456. >已选择</span
  10457. >
  10458. </div>
  10459. </div>
  10460. </div>
  10461. <div class="tool">
  10462. <div class="whiteBIcon" @click="addTools2(32)">
  10463. <img
  10464. src="../../assets/icon/thirdToolList/code.png"
  10465. alt
  10466. />
  10467. <div style="margin: 5px 0">源码编辑</div>
  10468. </div>
  10469. <div class="check" @click="addTools2(32)">
  10470. <img
  10471. src="../../assets/icon/checkNo.png"
  10472. alt
  10473. v-if="checktoolArray.indexOf(32) == -1"
  10474. />
  10475. <div class="checkDiv" v-else>
  10476. <img src="../../assets/icon/checkedIs.png" alt /><span
  10477. >已选择</span
  10478. >
  10479. </div>
  10480. </div>
  10481. </div>
  10482. <div class="tool">
  10483. <div class="whiteBIcon" @click="addTools2(57)">
  10484. <img
  10485. src="../../assets/icon/fourthToolList/cocopi.png"
  10486. alt
  10487. />
  10488. <div style="margin: 5px 0">CocoPi</div>
  10489. </div>
  10490. <div class="check" @click="addTools2(57)">
  10491. <img
  10492. src="../../assets/icon/checkNo.png"
  10493. alt
  10494. v-if="checktoolArray.indexOf(57) == -1"
  10495. />
  10496. <div class="checkDiv" v-else>
  10497. <img src="../../assets/icon/checkedIs.png" alt /><span
  10498. >已选择</span
  10499. >
  10500. </div>
  10501. </div>
  10502. </div>
  10503. <div class="tool">
  10504. <div class="whiteBIcon" @click="addTools2(63)">
  10505. <img
  10506. src="../../assets/icon/fourthToolList/Wood.png"
  10507. alt
  10508. />
  10509. <div style="margin: 5px 0">海龟编程</div>
  10510. </div>
  10511. <div class="check" @click="addTools2(63)">
  10512. <img
  10513. src="../../assets/icon/checkNo.png"
  10514. alt
  10515. v-if="checktoolArray.indexOf(63) == -1"
  10516. />
  10517. <div class="checkDiv" v-else>
  10518. <img src="../../assets/icon/checkedIs.png" alt /><span
  10519. >已选择</span
  10520. >
  10521. </div>
  10522. </div>
  10523. </div>
  10524. </div>
  10525. <div class="toolSort" v-if="toolType == 5">
  10526. <div class="tool">
  10527. <div class="whiteBIcon" @click="addTools2(28)">
  10528. <img
  10529. src="../../assets/icon/secondToolList/translation.png"
  10530. alt
  10531. />
  10532. <div style="margin: 5px 0">翻译</div>
  10533. </div>
  10534. <div class="check" @click="addTools2(28)">
  10535. <img
  10536. src="../../assets/icon/checkNo.png"
  10537. alt
  10538. v-if="checktoolArray.indexOf(28) == -1"
  10539. />
  10540. <div class="checkDiv" v-else>
  10541. <img src="../../assets/icon/checkedIs.png" alt /><span
  10542. >已选择</span
  10543. >
  10544. </div>
  10545. </div>
  10546. </div>
  10547. <div class="tool">
  10548. <div class="whiteBIcon" @click="addTools2(31)">
  10549. <img
  10550. src="../../assets/icon/secondToolList/networkPanel.png"
  10551. alt
  10552. />
  10553. <div style="margin: 5px 0">数字画板</div>
  10554. </div>
  10555. <div class="check" @click="addTools2(31)">
  10556. <img
  10557. src="../../assets/icon/checkNo.png"
  10558. alt
  10559. v-if="checktoolArray.indexOf(31) == -1"
  10560. />
  10561. <div class="checkDiv" v-else>
  10562. <img src="../../assets/icon/checkedIs.png" alt /><span
  10563. >已选择</span
  10564. >
  10565. </div>
  10566. </div>
  10567. </div>
  10568. <div class="tool">
  10569. <div class="whiteBIcon" @click="addTools2(39)">
  10570. <img
  10571. src="../../assets/icon/secondToolList/GeoGebra.png"
  10572. alt
  10573. />
  10574. <div style="margin: 5px 0">GeoGebra</div>
  10575. </div>
  10576. <div class="check" @click="addTools2(39)">
  10577. <img
  10578. src="../../assets/icon/checkNo.png"
  10579. alt
  10580. v-if="checktoolArray.indexOf(39) == -1"
  10581. />
  10582. <div class="checkDiv" v-else>
  10583. <img src="../../assets/icon/checkedIs.png" alt /><span
  10584. >已选择</span
  10585. >
  10586. </div>
  10587. </div>
  10588. </div>
  10589. <div class="tool">
  10590. <div class="whiteBIcon" @click="addTools2(66)">
  10591. <img
  10592. src="../../assets/icon/secondToolList/formulaEdi.png"
  10593. alt
  10594. />
  10595. <div style="margin: 5px 0">公式编辑</div>
  10596. </div>
  10597. <div class="check" @click="addTools2(66)">
  10598. <img
  10599. src="../../assets/icon/checkNo.png"
  10600. alt
  10601. v-if="checktoolArray.indexOf(66) == -1"
  10602. />
  10603. <div class="checkDiv" v-else>
  10604. <img src="../../assets/icon/checkedIs.png" alt /><span
  10605. >已选择</span
  10606. >
  10607. </div>
  10608. </div>
  10609. </div>
  10610. <div class="tool">
  10611. <div class="whiteBIcon" @click="addTools2(67)">
  10612. <img
  10613. src="../../assets/icon/secondToolList/molStr.png"
  10614. alt
  10615. />
  10616. <div style="margin: 5px 0">分子结构</div>
  10617. </div>
  10618. <div class="check" @click="addTools2(67)">
  10619. <img
  10620. src="../../assets/icon/checkNo.png"
  10621. alt
  10622. v-if="checktoolArray.indexOf(67) == -1"
  10623. />
  10624. <div class="checkDiv" v-else>
  10625. <img src="../../assets/icon/checkedIs.png" alt /><span
  10626. >已选择</span
  10627. >
  10628. </div>
  10629. </div>
  10630. </div>
  10631. <div class="tool">
  10632. <div class="whiteBIcon" @click="addTools2(68)">
  10633. <img
  10634. src="../../assets/icon/secondToolList/timeAxis.png"
  10635. alt
  10636. />
  10637. <div style="margin: 5px 0">时间轴</div>
  10638. </div>
  10639. <div class="check" @click="addTools2(68)">
  10640. <img
  10641. src="../../assets/icon/checkNo.png"
  10642. alt
  10643. v-if="checktoolArray.indexOf(68) == -1"
  10644. />
  10645. <div class="checkDiv" v-else>
  10646. <img src="../../assets/icon/checkedIs.png" alt /><span
  10647. >已选择</span
  10648. >
  10649. </div>
  10650. </div>
  10651. </div>
  10652. </div>
  10653. <div class="toolSort" v-if="toolType == 7">
  10654. <div class="tool">
  10655. <div class="whiteBIcon" @click="addTools2(40)">
  10656. <img
  10657. src="../../assets/icon/secondToolList/eval.png"
  10658. alt
  10659. />
  10660. <div style="margin: 5px 0">个人评价</div>
  10661. </div>
  10662. <div class="check" @click="addTools2(40)">
  10663. <img
  10664. src="../../assets/icon/checkNo.png"
  10665. alt
  10666. v-if="checktoolArray.indexOf(40) == -1"
  10667. />
  10668. <div class="checkDiv" v-else>
  10669. <img src="../../assets/icon/checkedIs.png" alt /><span
  10670. >已选择</span
  10671. >
  10672. </div>
  10673. </div>
  10674. </div>
  10675. </div>
  10676. <div class="toolSort" v-if="toolType == 4">
  10677. <div class="tool">
  10678. <div class="whiteBIcon" @click="addTools2(26)">
  10679. <img
  10680. src="../../assets/icon/thirdToolList/courseDesign.png"
  10681. alt
  10682. />
  10683. <div style="margin: 5px 0">课程设计</div>
  10684. </div>
  10685. <div class="check" @click="addTools2(26)">
  10686. <img
  10687. src="../../assets/icon/checkNo.png"
  10688. alt
  10689. v-if="checktoolArray.indexOf(26) == -1"
  10690. />
  10691. <div class="checkDiv" v-else>
  10692. <img src="../../assets/icon/checkedIs.png" alt /><span
  10693. >已选择</span
  10694. >
  10695. </div>
  10696. </div>
  10697. </div>
  10698. <div class="tool">
  10699. <div class="whiteBIcon" @click="addTools2(25)">
  10700. <img
  10701. src="../../assets/icon/thirdToolList/evalua.png"
  10702. alt
  10703. />
  10704. <div style="margin: 5px 0">目标管理</div>
  10705. </div>
  10706. <div class="check" @click="addTools2(25)">
  10707. <img
  10708. src="../../assets/icon/checkNo.png"
  10709. alt
  10710. v-if="checktoolArray.indexOf(25) == -1"
  10711. />
  10712. <div class="checkDiv" v-else>
  10713. <img src="../../assets/icon/checkedIs.png" alt /><span
  10714. >已选择</span
  10715. >
  10716. </div>
  10717. </div>
  10718. </div>
  10719. </div>
  10720. </div>
  10721. </div>
  10722. </div>
  10723. </div> -->
  10724. <div
  10725. class="vedioBox"
  10726. style="margin-top: 10px; border-radius: 20px"
  10727. v-if="
  10728. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10729. .eList &&
  10730. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10731. .eList.length &&
  10732. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10733. .eList.length > 0 &&
  10734. tType != 2
  10735. "
  10736. >
  10737. <div
  10738. class="queTop"
  10739. style="
  10740. font-size: 20px;
  10741. padding: 15px 0 15px 37px;
  10742. font-weight: bold;
  10743. "
  10744. >
  10745. <!-- <div class="question" style="width: 30px">
  10746. <img src="../assets/icon/toolIcon.png" alt />
  10747. </div>
  10748. <div class="queTitle">
  10749. <div>工具</div>
  10750. </div>-->
  10751. 评一评
  10752. </div>
  10753. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  10754. <div
  10755. class="elist_input"
  10756. :style="{
  10757. marginLeft: '20px',
  10758. width: evalua
  10759. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  10760. taskCount
  10761. ].isEvaFold2
  10762. ? '45%'
  10763. : 'calc(100% - 180px)'
  10764. : 'calc(100% - 20px)'
  10765. }"
  10766. >
  10767. <el-table
  10768. :data="
  10769. chapInfoList[courseType].chapterInfo[0].taskJson[
  10770. taskCount
  10771. ].eList
  10772. "
  10773. :header-cell-style="{ background: '#F0F4FA' }"
  10774. :row-class-name="tableRowClassName"
  10775. border
  10776. stripe
  10777. style="width: 100%"
  10778. >
  10779. <el-table-column
  10780. :width="courseDetail.state == 5 ? '230' : '150'"
  10781. label="目标"
  10782. align="center"
  10783. >
  10784. <template slot-scope="scope">
  10785. <div
  10786. style="display:flex;justify-content: center;align-items: center;"
  10787. >
  10788. <img
  10789. class="blueRootCss"
  10790. v-if="
  10791. scope.row.isai == 1 ||
  10792. (!scope.row.isai && courseDetail.state == 5)
  10793. "
  10794. src="../../assets/icon/newIcons/blueRoot.png"
  10795. alt=""
  10796. />
  10797. <div v-if="courseDetail.state == 5">
  10798. {{ scope.row.target ? scope.row.target : "-" }}
  10799. </div>
  10800. <div v-else>
  10801. {{
  10802. scope.row.target
  10803. ? scope.row.target[scope.row.target.length - 1]
  10804. : "-"
  10805. }}
  10806. </div>
  10807. </div>
  10808. </template></el-table-column
  10809. >
  10810. <el-table-column
  10811. label="评价维度"
  10812. align="center"
  10813. v-if="courseDetail.state != 5"
  10814. >
  10815. <template slot-scope="scope"
  10816. ><div>{{ scope.row.value }}</div></template
  10817. >
  10818. </el-table-column>
  10819. <el-table-column
  10820. :label="courseDetail.state == 5 ? '评价标准' : '维度描述'"
  10821. align="center"
  10822. >
  10823. <template slot-scope="scope"
  10824. ><div>
  10825. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  10826. </div></template
  10827. >
  10828. </el-table-column>
  10829. <el-table-column
  10830. label="细则"
  10831. align="center"
  10832. v-if="courseDetail.state == 5"
  10833. >
  10834. <template slot-scope="scope"
  10835. ><div
  10836. style="display:flex;justify-content: space-around;margin:auto"
  10837. v-if="scope.row.rule"
  10838. >
  10839. <el-popover
  10840. placement="top"
  10841. width="350"
  10842. trigger="hover"
  10843. >
  10844. <div
  10845. v-html="scope.row.rule"
  10846. style="white-space:pre-wrap"
  10847. ></div>
  10848. <div
  10849. slot="reference"
  10850. style="color:#4383FF;cursor: pointer;"
  10851. >
  10852. 查看
  10853. </div>
  10854. </el-popover>
  10855. </div>
  10856. <div v-else>-</div>
  10857. </template>
  10858. </el-table-column>
  10859. </el-table>
  10860. <!-- <div
  10861. v-for="(eItem, eIndex) in chapInfoList[courseType]
  10862. .chapterInfo[0].taskJson[taskCount].eList"
  10863. :key="eIndex"
  10864. class="elist_input_box"
  10865. >
  10866. <div style="width: 95%">
  10867. <div
  10868. style="
  10869. display: flex;
  10870. flex-direction: row;
  10871. flex-wrap: nowrap;
  10872. align-items: center;
  10873. "
  10874. >
  10875. <div style="max-width: calc(100% - 285px)">
  10876. <span>{{ eItem.value }}</span>
  10877. </div>
  10878. <div
  10879. style="
  10880. padding-left: 25px;
  10881. display: flex;
  10882. flex-direction: row;
  10883. align-items: center;
  10884. "
  10885. >
  10886. <el-rate
  10887. v-model="eItem.score"
  10888. :colors="colors"
  10889. disabled
  10890. ></el-rate>
  10891. </div>
  10892. </div>
  10893. <div class="elist_inptu_text" style="padding-left: 10px">
  10894. <span v-if="eItem.detail != ''">{{
  10895. eItem.detail
  10896. }}</span>
  10897. <span v-else style="color: #b2b1b3; font-size: 14px"
  10898. >暂无描述...</span
  10899. >
  10900. </div>
  10901. </div>
  10902. </div> -->
  10903. </div>
  10904. <div
  10905. v-if="evalua"
  10906. style="
  10907. border: 1px solid #e5e5e5;
  10908. max-width: 650px;
  10909. width: 100%;
  10910. margin-top: 20px;
  10911. box-shadow: 3px 1px 15px 3px #e0e0e0;
  10912. "
  10913. :style="{
  10914. width: chapInfoList[courseType].chapterInfo[0].taskJson[
  10915. taskCount
  10916. ].isEvaFold2
  10917. ? '100%'
  10918. : '116px'
  10919. }"
  10920. >
  10921. <div class="e_add_top">
  10922. <div class="e_add_title" style="width: 100%">
  10923. <!-- <span>目标管理名称</span> -->
  10924. <span
  10925. v-if="
  10926. chapInfoList[courseType].chapterInfo[0].taskJson[
  10927. taskCount
  10928. ].isEvaFold2
  10929. "
  10930. >{{ eTitle }}</span
  10931. >
  10932. <img
  10933. v-if="
  10934. chapInfoList[courseType].chapterInfo[0].taskJson[
  10935. taskCount
  10936. ].isEvaFold2
  10937. "
  10938. src="../../assets/line.png"
  10939. class="cru_line"
  10940. style="
  10941. width: 125px;
  10942. height: 20px;
  10943. bottom: -10px;
  10944. left: 5px;
  10945. "
  10946. />
  10947. <!-- <el-input
  10948. v-model="eTitle"
  10949. placeholder="请输入名称"
  10950. @change="setMindData"
  10951. ></el-input>-->
  10952. <div
  10953. v-show="
  10954. chapInfoList[courseType].chapterInfo[0].taskJson[
  10955. taskCount
  10956. ].isEvaFold2
  10957. "
  10958. class="show_taskD show"
  10959. style="margin:0 0 0 auto"
  10960. @click="foldEva()"
  10961. >
  10962. <img
  10963. src="../../assets/icon/newIcon/icon-slide.png"
  10964. />收起目标
  10965. </div>
  10966. <div
  10967. v-show="
  10968. !chapInfoList[courseType].chapterInfo[0].taskJson[
  10969. taskCount
  10970. ].isEvaFold2
  10971. "
  10972. style="margin:0 0 0 auto"
  10973. class="show_taskD"
  10974. @click="foldEva()"
  10975. >
  10976. <img
  10977. src="../../assets/icon/newIcon/icon-slide.png"
  10978. />展开目标
  10979. </div>
  10980. </div>
  10981. </div>
  10982. <div
  10983. class="e_add_content"
  10984. v-if="
  10985. chapInfoList[courseType].chapterInfo[0].taskJson[
  10986. taskCount
  10987. ].isEvaFold2
  10988. "
  10989. >
  10990. <div class="e_add_list_pbox">
  10991. <div class="e_add_list_pbox_title">
  10992. <!-- <span class="type_title">切换模式</span> -->
  10993. <div class="type_content">
  10994. <span
  10995. :class="{ active: typeMode == 1 }"
  10996. @click="typeMode = 1"
  10997. >目标树</span
  10998. >
  10999. <span
  11000. :class="{ active: typeMode == 2 }"
  11001. @click="typeMode = 2"
  11002. >目标罗盘</span
  11003. >
  11004. <!-- <span
  11005. :class="{ active: typeMode == 3 }"
  11006. @click="typeMode = 3"
  11007. >目标看板</span
  11008. > -->
  11009. </div>
  11010. </div>
  11011. <div
  11012. class="e_add_list_pbox_content"
  11013. style="min-height: 200px;"
  11014. >
  11015. <Mind
  11016. :showBar="false"
  11017. :mindData="data"
  11018. style="width: 100%"
  11019. v-show="typeMode == 1"
  11020. ></Mind>
  11021. <Sunburst
  11022. :Josn="eJson"
  11023. :num="eJSONNum"
  11024. style="width: 100%"
  11025. v-if="typeMode == 2"
  11026. ></Sunburst>
  11027. <SeeBoard
  11028. :Josn="eJson"
  11029. :num="eJSONNum"
  11030. :ename="eTitle"
  11031. style="width: 100%"
  11032. v-if="typeMode == 3"
  11033. >
  11034. </SeeBoard>
  11035. </div>
  11036. </div>
  11037. </div>
  11038. </div>
  11039. </div>
  11040. </div>
  11041. <!-- <div
  11042. class="project_box"
  11043. style="margin-top: 15px; padding-bottom: 30px"
  11044. >
  11045. <div
  11046. style="
  11047. display: flex;
  11048. flex-wrap: nowrap;
  11049. flex-direction: column;
  11050. position: relative;
  11051. "
  11052. >
  11053. <div class="queTop">
  11054. <div class="question">
  11055. <img src="../../assets/icon/homeWork.png" alt="" />
  11056. </div>
  11057. <div class="queTitle">
  11058. <div>作业提交<span>(提交图文视频等)</span></div>
  11059. <div>:任务:{{ task.task }}</div>
  11060. </div>
  11061. </div>
  11062. <div class="ediBottom">
  11063. <div
  11064. class="addEditor"
  11065. style="margin-top: 23px"
  11066. @click="openAddWork"
  11067. v-if="!isNoHomeWork"
  11068. >
  11069. 选择文件
  11070. </div>
  11071. <div
  11072. class="addEditor"
  11073. style="margin-top: 23px"
  11074. @click="openAddWork"
  11075. v-else
  11076. >
  11077. 已提交
  11078. </div>
  11079. </div>
  11080. </div>
  11081. </div>-->
  11082. </div>
  11083. </div>
  11084. <el-dialog
  11085. title="作业提交"
  11086. :visible.sync="dialogVisible"
  11087. :append-to-body="true"
  11088. width="500px"
  11089. :before-close="handleClose"
  11090. class="dialog_change"
  11091. >
  11092. <div class="marginT">
  11093. <div>上传文件</div>
  11094. <div
  11095. class="chapter_add"
  11096. @click="addImg($event)"
  11097. v-if="studyJuri[0].cover.length == 0"
  11098. >
  11099. <div class="up_photo">
  11100. <img src="../../assets/icon/uploadImg.png" alt />
  11101. </div>
  11102. <!-- <input
  11103. type="file"
  11104. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11105. style="display: none"
  11106. @change="beforeUpload1($event, 1)"
  11107. /> -->
  11108. <input
  11109. type="file"
  11110. accept="*"
  11111. style="display: none"
  11112. @change="beforeUpload1($event, 1)"
  11113. />
  11114. <!-- <input
  11115. type="file"
  11116. accept="image/*"
  11117. capture="camera"
  11118. style="display: none"
  11119. @change="beforeUpload1($event, 1)"
  11120. /> -->
  11121. </div>
  11122. <div
  11123. class="chapter_add"
  11124. style="
  11125. display: flex;
  11126. width: 100%;
  11127. flex-direction: row;
  11128. flex-wrap: wrap;
  11129. justify-content: flex-start;
  11130. padding: 15px 0;
  11131. "
  11132. v-if="studyJuri[0].cover.length > 0"
  11133. >
  11134. <div class="upCover">
  11135. <img
  11136. :src="studyJuri[0].cover[0].url"
  11137. alt
  11138. v-if="fileType == 0"
  11139. />
  11140. <img :src="word" alt v-else-if="fileType == 1" />
  11141. <img :src="video" alt v-else-if="fileType == 2" />
  11142. <img :src="word2" alt v-else-if="fileType == 3" />
  11143. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11144. <div class="deleteWord" @click="clean(1)">
  11145. <img src="../../assets/icon/deleteWorks.png" alt />
  11146. </div>
  11147. </div>
  11148. </div>
  11149. </div>
  11150. <div
  11151. class="upload_send"
  11152. @click="addCourseWorksCopy(taskCount)"
  11153. v-if="!proVisible"
  11154. >
  11155. 提交
  11156. </div>
  11157. </el-dialog>
  11158. </div>
  11159. </div>
  11160. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11161. <classRoomHelper
  11162. v-if="!['2'].includes(tType)"
  11163. @studentFreePreview="studentFreePreview"
  11164. @OpenJobPreview="OpenJobPreview"
  11165. :videoStart="videoStart"
  11166. :IsFollow="IsFollow"
  11167. :sIsOpen="sIsOpen"
  11168. :IsLookOpen="IsLookOpen"
  11169. :splitScreenData="splitScreenData"
  11170. @splitScreenBehavior="splitScreenBehavior"
  11171. @startRecording="startRecording"
  11172. @stopRecording="stopRecording"
  11173. :fileList="vChapterData[taskCount]"
  11174. :worksStudent="worksStudent"
  11175. :courseType="parseInt(courseType)"
  11176. :taskCount="taskCount"
  11177. :tcid="tcid"
  11178. :navList="navList"
  11179. v-show="orgArray.includes(org) || oidArray.includes(oid)"
  11180. ref="classRoomHelperRef"
  11181. :courseDetail="courseDetail"
  11182. :tType="tType"
  11183. @setWidth="setClassRoomHelperWidth"
  11184. @refresh="refreshCourse"
  11185. @goStep="nextOrpreSteps"
  11186. @authority="juriVisible = true"
  11187. @review="setPz"
  11188. @backPage="
  11189. goTo(
  11190. '/courseDetail?userid=' +
  11191. userid +
  11192. '&oid=' +
  11193. oid +
  11194. '&org=' +
  11195. org +
  11196. '&cid=' +
  11197. classId +
  11198. '&courseId=' +
  11199. id +
  11200. '&tType=' +
  11201. tType +
  11202. '&screenType=' +
  11203. screenType
  11204. )
  11205. "
  11206. ></classRoomHelper>
  11207. <div
  11208. class="pButton"
  11209. @click="(pzDialog = true), selectPz()"
  11210. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11211. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11212. >
  11213. <!-- 批 -->
  11214. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11215. </div>
  11216. <div
  11217. v-if="pzDialog == true"
  11218. class="newDialogCss"
  11219. :style="`right:${commentRight}`"
  11220. >
  11221. <div class="pzTop2">
  11222. <!-- <div>评论</div>
  11223. <div @click="pzDialog = false">
  11224. <img src="../../assets/close1.png" alt="" />
  11225. </div> -->
  11226. <div class="checkbox">
  11227. <!-- <div class="check" style="font-size: 25px; position: unset">
  11228. 评论
  11229. </div> -->
  11230. <div class="cb-tabList">
  11231. <div
  11232. :class="[commentTagShow == 0 ? 'cb-tabItem' : '']"
  11233. @click="commentTagShow = 0"
  11234. >
  11235. 评论
  11236. </div>
  11237. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11238. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11239. <div
  11240. :class="[commentTagShow == 2 ? 'cb-tabItem' : '']"
  11241. @click="commentTagShow = 2"
  11242. >
  11243. 总评
  11244. </div>
  11245. </div>
  11246. <el-select
  11247. v-model="pzStype"
  11248. @change="selectPz"
  11249. class="selectBox"
  11250. v-show="commentTagShow == 0"
  11251. >
  11252. <el-option label="时间降序" :value="1"></el-option>
  11253. <el-option label="时间升序" :value="2"></el-option>
  11254. <el-option label="我的评课" :value="3"></el-option>
  11255. </el-select>
  11256. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11257. </div>
  11258. </div>
  11259. <div
  11260. :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'"
  11261. v-if="commentTagShow == 0"
  11262. >
  11263. <div class="pzListBox" v-if="pzList && pzList.length">
  11264. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11265. <div class="pzNavTop">
  11266. <div>评</div>
  11267. <div>
  11268. {{
  11269. pz.username && pz.username.length > 5
  11270. ? pz.username.substring(0, 5) + "..."
  11271. : pz.username
  11272. }}的评论
  11273. </div>
  11274. <div
  11275. class="pzDelete"
  11276. v-if="pz.userid == userid"
  11277. @click="deletePz(pz.id)"
  11278. >
  11279. 删除
  11280. </div>
  11281. </div>
  11282. <div
  11283. @click="checkImg(getImgList(pz.content))"
  11284. class="pzContent cont"
  11285. v-html="pz.content"
  11286. v-if="pz.type == '1'"
  11287. ></div>
  11288. <div class="pzContent" v-if="pz.type == '2'">
  11289. <audio :src="pz.content" controls="controls" ref="audio">
  11290. Your browser does not support the audio element.
  11291. </audio>
  11292. </div>
  11293. <div class="pzContent" v-if="pz.type == '3'">
  11294. <img
  11295. :src="pz.content"
  11296. style="width: 90%; margin: 0 auto; display: block"
  11297. @click="previewImg(pz.content)"
  11298. />
  11299. </div>
  11300. <div class="timeAndReply">
  11301. <div class="time">
  11302. {{ pz.time }}
  11303. </div>
  11304. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11305. </div>
  11306. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11307. <div
  11308. v-for="(h, hIndex) in pz.hfList"
  11309. :key="hIndex"
  11310. class="hfItem"
  11311. >
  11312. <div class="whoReplyWho">
  11313. <div class="hfName">{{ h.username }}</div>
  11314. <div class="hfImg">
  11315. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11316. </div>
  11317. <div class="hfName">{{ pz.username }}</div>
  11318. </div>
  11319. <div class="hfContent" v-html="h.content"></div>
  11320. <div class="hfBottom">
  11321. <div class="hfTime">{{ h.time }}</div>
  11322. <div
  11323. class="deleteHfItem"
  11324. @click="deleteReply(h.id)"
  11325. v-if="userid == h.userid"
  11326. >
  11327. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11328. </div>
  11329. </div>
  11330. </div>
  11331. </div>
  11332. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11333. <div class="replyInput">
  11334. <el-input v-model="reply[pzIndex]"></el-input>
  11335. </div>
  11336. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11337. </div> -->
  11338. </div>
  11339. </div>
  11340. <div class="noPz" v-else>
  11341. <img src="../../assets/icon/noPz.png" alt="" />
  11342. </div>
  11343. <div class="addPzButton">
  11344. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11345. 添加评论
  11346. </div>
  11347. <!-- <div class="img1">
  11348. <div @click="(addPzDialog = true), (pzType = 2)">
  11349. <img src="../../assets/audio.png" /><span>音频</span>
  11350. </div>
  11351. </div> -->
  11352. </div>
  11353. </div>
  11354. <div class="scoreList" v-if="commentTagShow == 1">
  11355. <scoreItem
  11356. v-for="item in scoreList.datalist"
  11357. @refresh="getScoreList"
  11358. :data="item"
  11359. :isScore="
  11360. scoreList.isScoreList.filter(
  11361. i => i.userid == item.userid && i.courseid == item.courseId
  11362. )
  11363. "
  11364. :key="item.courseId"
  11365. />
  11366. </div>
  11367. <div
  11368. class="scoreList"
  11369. v-if="commentTagShow == 2"
  11370. style="position: relative"
  11371. >
  11372. <scoreZong
  11373. :courseid="id"
  11374. :userid="userid"
  11375. @insertMemorandum="insertMemorandum"
  11376. ></scoreZong>
  11377. </div>
  11378. </div>
  11379. <div
  11380. v-if="toolDialogVisible == true"
  11381. class="toolMask"
  11382. @click="toolDialogVisible = false"
  11383. ></div>
  11384. <div v-if="toolDialogVisible == true" class="addToolCss">
  11385. <div class="toolTop">
  11386. <div style="font-weight: bold">新增工具</div>
  11387. <div @click="toolDialogVisible = false">
  11388. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11389. </div>
  11390. </div>
  11391. <div class="tool_box">
  11392. <div class="tool_type_box">
  11393. <div class="chooseWho">
  11394. <div
  11395. :class="toolType == 0 ? 'isChooseActive' : ''"
  11396. @click="(toolType = 0), $forceUpdate()"
  11397. >
  11398. 互动类
  11399. </div>
  11400. <div
  11401. :class="toolType == 1 ? 'isChooseActive' : ''"
  11402. @click="(toolType = 1), $forceUpdate()"
  11403. >
  11404. 思维类
  11405. </div>
  11406. <div
  11407. :class="toolType == 2 ? 'isChooseActive' : ''"
  11408. @click="(toolType = 2), $forceUpdate()"
  11409. >
  11410. 测评类
  11411. </div>
  11412. <div
  11413. :class="toolType == 3 ? 'isChooseActive' : ''"
  11414. @click="(toolType = 3), $forceUpdate()"
  11415. >
  11416. 编程类
  11417. </div>
  11418. <div
  11419. :class="toolType == 5 ? 'isChooseActive' : ''"
  11420. @click="(toolType = 5), $forceUpdate()"
  11421. >
  11422. 学科类
  11423. </div>
  11424. </div>
  11425. </div>
  11426. <div>
  11427. <div class="toolSort" v-if="toolType == 0">
  11428. <div
  11429. class="tool"
  11430. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11431. @click="addTools2(10)"
  11432. >
  11433. <div class="whiteBIcon">
  11434. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11435. <div style="margin: 5px 0">倒计时</div>
  11436. </div>
  11437. <div class="check">
  11438. <div
  11439. v-if="checktoolArray.indexOf(10) == -1"
  11440. class="noChoose"
  11441. ></div>
  11442. <div v-else class="isChoose"></div>
  11443. </div>
  11444. </div>
  11445. <div
  11446. class="tool"
  11447. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11448. @click="addTools2(65)"
  11449. >
  11450. <div class="whiteBIcon">
  11451. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11452. <div style="margin: 5px 0">挑人</div>
  11453. </div>
  11454. <div class="check">
  11455. <div
  11456. v-if="checktoolArray.indexOf(65) == -1"
  11457. class="noChoose"
  11458. ></div>
  11459. <div v-else class="isChoose"></div>
  11460. </div>
  11461. </div>
  11462. </div>
  11463. <div class="toolSort" v-if="toolType == 1">
  11464. <div
  11465. class="tool"
  11466. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11467. @click="addTools2(7)"
  11468. >
  11469. <div class="whiteBIcon">
  11470. <img
  11471. src="../../assets/icon/secondToolList/mindNetwork.png"
  11472. alt
  11473. />
  11474. <div style="margin: 5px 0">思维网格</div>
  11475. </div>
  11476. <div class="check">
  11477. <div
  11478. v-if="checktoolArray.indexOf(7) == -1"
  11479. class="noChoose"
  11480. ></div>
  11481. <div v-else class="isChoose"></div>
  11482. </div>
  11483. </div>
  11484. <div
  11485. class="tool"
  11486. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11487. @click="addTools2(1)"
  11488. >
  11489. <div class="whiteBIcon">
  11490. <img
  11491. src="../../assets/icon/secondToolList/whiteBoard.png"
  11492. alt
  11493. />
  11494. <div style="margin: 5px 0">电子白板</div>
  11495. </div>
  11496. <div class="check">
  11497. <div
  11498. v-if="checktoolArray.indexOf(1) == -1"
  11499. class="noChoose"
  11500. ></div>
  11501. <div v-else class="isChoose"></div>
  11502. </div>
  11503. </div>
  11504. <div
  11505. class="tool"
  11506. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11507. @click="addTools2(52)"
  11508. >
  11509. <div class="whiteBIcon">
  11510. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11511. <div style="margin: 5px 0">文档</div>
  11512. </div>
  11513. <div class="check">
  11514. <div
  11515. v-if="checktoolArray.indexOf(52) == -1"
  11516. class="noChoose"
  11517. ></div>
  11518. <div v-else class="isChoose"></div>
  11519. </div>
  11520. </div>
  11521. <div
  11522. class="tool"
  11523. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  11524. @click="addTools2(3)"
  11525. >
  11526. <div class="whiteBIcon">
  11527. <img
  11528. src="../../assets/icon/secondToolList/mindMapping.png"
  11529. alt
  11530. />
  11531. <div style="margin: 5px 0">思维导图</div>
  11532. </div>
  11533. <div class="check">
  11534. <div
  11535. v-if="checktoolArray.indexOf(3) == -1"
  11536. class="noChoose"
  11537. ></div>
  11538. <div v-else class="isChoose"></div>
  11539. </div>
  11540. </div>
  11541. <div
  11542. class="tool"
  11543. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  11544. @click="addTools2(48)"
  11545. >
  11546. <div class="whiteBIcon">
  11547. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11548. <div style="margin: 5px 0">表格</div>
  11549. </div>
  11550. <div class="check">
  11551. <div
  11552. v-if="checktoolArray.indexOf(48) == -1"
  11553. class="noChoose"
  11554. ></div>
  11555. <div v-else class="isChoose"></div>
  11556. </div>
  11557. </div>
  11558. </div>
  11559. <div class="toolSort" v-if="toolType == 6">
  11560. <div v-show="tooC == 49">
  11561. <img
  11562. @click="addTools(tooC, toolIndex, taskCount)"
  11563. src="../../assets/icon/fourthToolList/group.png"
  11564. alt
  11565. />
  11566. <div style="margin: 5px 0">学生分组</div>
  11567. </div>
  11568. </div>
  11569. <div class="toolSort" v-if="toolType == 2">
  11570. <div
  11571. class="tool"
  11572. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11573. @click="addTools2(16)"
  11574. >
  11575. <div class="whiteBIcon">
  11576. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11577. <div style="margin: 5px 0">作业提交</div>
  11578. </div>
  11579. <div class="check">
  11580. <div
  11581. v-if="checktoolArray.indexOf(16) == -1"
  11582. class="noChoose"
  11583. ></div>
  11584. <div v-else class="isChoose"></div>
  11585. </div>
  11586. </div>
  11587. <div
  11588. class="tool"
  11589. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11590. @click="addTools2(50)"
  11591. >
  11592. <div class="whiteBIcon">
  11593. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11594. <div style="margin: 5px 0">批量上传</div>
  11595. </div>
  11596. <div class="check">
  11597. <div
  11598. v-if="checktoolArray.indexOf(50) == -1"
  11599. class="noChoose"
  11600. ></div>
  11601. <div v-else class="isChoose"></div>
  11602. </div>
  11603. </div>
  11604. </div>
  11605. <div class="toolSort" v-if="toolType == 3">
  11606. <div
  11607. class="tool"
  11608. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11609. @click="addTools2(18)"
  11610. >
  11611. <div class="whiteBIcon">
  11612. <img
  11613. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11614. alt
  11615. />
  11616. <div style="margin: 5px 0">训练平台</div>
  11617. </div>
  11618. <div class="check">
  11619. <div
  11620. v-if="checktoolArray.indexOf(18) == -1"
  11621. class="noChoose"
  11622. ></div>
  11623. <div v-else class="isChoose"></div>
  11624. </div>
  11625. </div>
  11626. <div
  11627. class="tool"
  11628. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11629. @click="addTools2(21)"
  11630. >
  11631. <div class="whiteBIcon">
  11632. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11633. <div style="margin: 5px 0">AIoT Blockly</div>
  11634. </div>
  11635. <div class="check">
  11636. <div
  11637. v-if="checktoolArray.indexOf(21) == -1"
  11638. class="noChoose"
  11639. ></div>
  11640. <div v-else class="isChoose"></div>
  11641. </div>
  11642. </div>
  11643. <div
  11644. class="tool"
  11645. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11646. @click="addTools2(23)"
  11647. >
  11648. <div class="whiteBIcon">
  11649. <img
  11650. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11651. alt
  11652. />
  11653. <div style="margin: 5px 0">AI Python</div>
  11654. </div>
  11655. <div class="check">
  11656. <div
  11657. v-if="checktoolArray.indexOf(23) == -1"
  11658. class="noChoose"
  11659. ></div>
  11660. <div v-else class="isChoose"></div>
  11661. </div>
  11662. </div>
  11663. <div
  11664. class="tool"
  11665. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  11666. @click="addTools2(24)"
  11667. >
  11668. <div class="whiteBIcon">
  11669. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11670. <div style="margin: 5px 0">AI Blockly</div>
  11671. </div>
  11672. <div class="check">
  11673. <div
  11674. v-if="checktoolArray.indexOf(24) == -1"
  11675. class="noChoose"
  11676. ></div>
  11677. <div v-else class="isChoose"></div>
  11678. </div>
  11679. </div>
  11680. <div
  11681. class="tool"
  11682. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  11683. @click="addTools2(32)"
  11684. >
  11685. <div class="whiteBIcon">
  11686. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11687. <div style="margin: 5px 0">源码编辑</div>
  11688. </div>
  11689. <div class="check">
  11690. <div
  11691. v-if="checktoolArray.indexOf(32) == -1"
  11692. class="noChoose"
  11693. ></div>
  11694. <div v-else class="isChoose"></div>
  11695. </div>
  11696. </div>
  11697. <div
  11698. class="tool"
  11699. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11700. @click="addTools2(57)"
  11701. >
  11702. <div class="whiteBIcon">
  11703. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11704. <div style="margin: 5px 0">CocoPi</div>
  11705. </div>
  11706. <div class="check">
  11707. <div
  11708. v-if="checktoolArray.indexOf(57) == -1"
  11709. class="noChoose"
  11710. ></div>
  11711. <div v-else class="isChoose"></div>
  11712. </div>
  11713. </div>
  11714. <div
  11715. class="tool"
  11716. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11717. @click="addTools2(63)"
  11718. >
  11719. <div class="whiteBIcon">
  11720. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11721. <div style="margin: 5px 0">海龟编程</div>
  11722. </div>
  11723. <div class="check">
  11724. <div
  11725. v-if="checktoolArray.indexOf(63) == -1"
  11726. class="noChoose"
  11727. ></div>
  11728. <div v-else class="isChoose"></div>
  11729. </div>
  11730. </div>
  11731. <div
  11732. class="tool"
  11733. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11734. @click="addTools2(71)"
  11735. >
  11736. <div class="whiteBIcon">
  11737. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11738. <div style="margin: 5px 0">AI智能体</div>
  11739. </div>
  11740. <div class="check">
  11741. <div
  11742. v-if="checktoolArray.indexOf(71) == -1"
  11743. class="noChoose"
  11744. ></div>
  11745. <div v-else class="isChoose"></div>
  11746. </div>
  11747. </div>
  11748. </div>
  11749. <div class="toolSort" v-if="toolType == 7">
  11750. <div
  11751. class="tool"
  11752. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11753. @click="addTools2(40)"
  11754. >
  11755. <div class="whiteBIcon">
  11756. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11757. <div style="margin: 5px 0">个人评价</div>
  11758. </div>
  11759. <div class="check">
  11760. <div
  11761. v-if="checktoolArray.indexOf(40) == -1"
  11762. class="noChoose"
  11763. ></div>
  11764. <div v-else class="isChoose"></div>
  11765. </div>
  11766. </div>
  11767. </div>
  11768. <div class="toolSort" v-if="toolType == 5">
  11769. <div
  11770. class="tool"
  11771. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11772. @click="addTools2(28)"
  11773. >
  11774. <div class="whiteBIcon">
  11775. <img
  11776. src="../../assets/icon/secondToolList/translation.png"
  11777. alt
  11778. />
  11779. <div style="margin: 5px 0">翻译</div>
  11780. </div>
  11781. <div class="check">
  11782. <div
  11783. v-if="checktoolArray.indexOf(28) == -1"
  11784. class="noChoose"
  11785. ></div>
  11786. <div v-else class="isChoose"></div>
  11787. </div>
  11788. </div>
  11789. <div
  11790. class="tool"
  11791. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11792. @click="addTools2(31)"
  11793. >
  11794. <div class="whiteBIcon">
  11795. <img
  11796. src="../../assets/icon/secondToolList/networkPanel.png"
  11797. alt
  11798. />
  11799. <div style="margin: 5px 0">数字画板</div>
  11800. </div>
  11801. <div class="check">
  11802. <div
  11803. v-if="checktoolArray.indexOf(31) == -1"
  11804. class="noChoose"
  11805. ></div>
  11806. <div v-else class="isChoose"></div>
  11807. </div>
  11808. </div>
  11809. <div
  11810. class="tool"
  11811. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11812. @click="addTools2(39)"
  11813. >
  11814. <div class="whiteBIcon">
  11815. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11816. <div style="margin: 5px 0">GeoGebra</div>
  11817. </div>
  11818. <div class="check">
  11819. <div
  11820. v-if="checktoolArray.indexOf(39) == -1"
  11821. class="noChoose"
  11822. ></div>
  11823. <div v-else class="isChoose"></div>
  11824. </div>
  11825. </div>
  11826. <div
  11827. class="tool"
  11828. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  11829. @click="addTools2(66)"
  11830. >
  11831. <div class="whiteBIcon">
  11832. <img
  11833. src="../../assets/icon/secondToolList/formulaEdi.png"
  11834. alt
  11835. />
  11836. <div style="margin: 5px 0">公式编辑</div>
  11837. </div>
  11838. <div class="check">
  11839. <div
  11840. v-if="checktoolArray.indexOf(66) == -1"
  11841. class="noChoose"
  11842. ></div>
  11843. <div v-else class="isChoose"></div>
  11844. </div>
  11845. </div>
  11846. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  11847. <div class="whiteBIcon" @click="addTools2(67)">
  11848. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  11849. <div style="margin: 5px 0">分子结构</div>
  11850. </div>
  11851. <div class="check" @click="addTools2(67)">
  11852. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  11853. <div v-else class="isChoose"></div>
  11854. </div>
  11855. </div> -->
  11856. <div
  11857. class="tool"
  11858. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  11859. @click="addTools2(68)"
  11860. >
  11861. <div class="whiteBIcon">
  11862. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  11863. <div style="margin: 5px 0">时间轴</div>
  11864. </div>
  11865. <div class="check">
  11866. <div
  11867. v-if="checktoolArray.indexOf(68) == -1"
  11868. class="noChoose"
  11869. ></div>
  11870. <div v-else class="isChoose"></div>
  11871. </div>
  11872. </div>
  11873. <!-- <div
  11874. class="tool"
  11875. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  11876. @click="addTools2(69)"
  11877. >
  11878. <div class="whiteBIcon">
  11879. <img src="../../assets/icon/secondToolList/english.png" alt />
  11880. <div style="margin: 5px 0">英语写作</div>
  11881. </div>
  11882. <div class="check">
  11883. <div
  11884. v-if="checktoolArray.indexOf(69) == -1"
  11885. class="noChoose"
  11886. ></div>
  11887. <div v-else class="isChoose"></div>
  11888. </div>
  11889. </div> -->
  11890. </div>
  11891. <div class="toolSort" v-if="toolType == 4">
  11892. <div
  11893. class="tool"
  11894. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  11895. @click="addTools2(26)"
  11896. >
  11897. <div class="whiteBIcon">
  11898. <img
  11899. src="../../assets/icon/thirdToolList/courseDesign.png"
  11900. alt
  11901. />
  11902. <div style="margin: 5px 0">课程设计</div>
  11903. </div>
  11904. <div class="check">
  11905. <div
  11906. v-if="checktoolArray.indexOf(26) == -1"
  11907. class="noChoose"
  11908. ></div>
  11909. <div v-else class="isChoose"></div>
  11910. </div>
  11911. </div>
  11912. <div
  11913. class="tool"
  11914. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  11915. @click="addTools2(25)"
  11916. >
  11917. <div class="whiteBIcon">
  11918. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  11919. <div style="margin: 5px 0">目标管理</div>
  11920. </div>
  11921. <div class="check">
  11922. <div
  11923. v-if="checktoolArray.indexOf(25) == -1"
  11924. class="noChoose"
  11925. ></div>
  11926. <div v-else class="isChoose"></div>
  11927. </div>
  11928. </div>
  11929. </div>
  11930. </div>
  11931. </div>
  11932. <span
  11933. slot="footer"
  11934. class="dialog-footer"
  11935. style="display: block; text-align: center; padding: 0 0 10px 0"
  11936. >
  11937. <el-button @click="toolDialogVisible = false">取 消</el-button>
  11938. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  11939. </span>
  11940. </div>
  11941. <div
  11942. v-if="replyDialogVisible == true"
  11943. class="addDialogCss"
  11944. v-el-drag-dialog
  11945. >
  11946. <div class="pzTop">
  11947. <div class="teacherPz">
  11948. <div class="teacherPzImg">
  11949. <img src="../../assets/icon/teacherPz.png" alt="" />
  11950. </div>
  11951. <div style="margin-left: 10px; height: 25px">添加回复</div>
  11952. </div>
  11953. <div @click="replyDialogVisible = false">
  11954. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11955. </div>
  11956. </div>
  11957. <div class="addPzBox">
  11958. <!-- <div class="addPzCheck">
  11959. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11960. >文本</span
  11961. >
  11962. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  11963. >音频</span
  11964. >
  11965. </div> -->
  11966. <div style="height: calc(100% - 50px)">
  11967. <editor-bar
  11968. class="binfo_input pzConText"
  11969. style="width: 100% !important; margin: 0 auto"
  11970. placeholder="请输入回复描述"
  11971. v-model="reply"
  11972. @change="change"
  11973. ></editor-bar>
  11974. </div>
  11975. <div class="addTextCss" @click="addHf">确定</div>
  11976. </div>
  11977. </div>
  11978. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  11979. <div class="pzTop">
  11980. <div class="teacherPz">
  11981. <div class="teacherPzImg">
  11982. <img src="../../assets/icon/teacherPz.png" alt="" />
  11983. </div>
  11984. <div style="margin-left: 10px; height: 25px">教师评论</div>
  11985. </div>
  11986. <div @click="addPzDialog = false">
  11987. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11988. </div>
  11989. </div>
  11990. <div class="addPzBox">
  11991. <div class="addPzCheck">
  11992. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11993. >文本</span
  11994. >
  11995. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  11996. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  11997. >音频</span
  11998. >
  11999. </div>
  12000. <div style="height: calc(100% - 95px)">
  12001. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12002. v-if="pzType == 1"></textarea> -->
  12003. <editor-bar
  12004. class="binfo_input pzConText"
  12005. style="width: 100% !important"
  12006. placeholder="请输入任务描述"
  12007. v-model="pzConText"
  12008. @change="change"
  12009. v-if="pzType == 1"
  12010. ></editor-bar>
  12011. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12012. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12013. <div @click="addImg($event)">
  12014. <el-button type="primary">上传图片</el-button>
  12015. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12016. @change="beforeUpload1($event, 4)" />
  12017. </div>
  12018. </div> -->
  12019. </div>
  12020. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12021. 确定
  12022. </div>
  12023. </div>
  12024. </div>
  12025. <div v-if="proVisible" class="mask">
  12026. <div class="progressBox">
  12027. <!-- <div id="closePro" class="closeCss">
  12028. <img src="../../assets/icon/close.png" alt />
  12029. </div> -->
  12030. <div class="lbox">
  12031. <img src="../../assets/loading.gif" />上传中,请稍后
  12032. </div>
  12033. <div style="margin-bottom: 10px">
  12034. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12035. </div>
  12036. <el-progress
  12037. :text-inside="true"
  12038. :stroke-width="20"
  12039. :percentage="progress"
  12040. style="width: 80%"
  12041. ></el-progress>
  12042. </div>
  12043. </div>
  12044. <div v-if="proVisible2" class="mask">
  12045. <div class="progressBox">
  12046. <div class="lbox">
  12047. <img src="../../assets/loading.gif" />上传中,请稍后
  12048. </div>
  12049. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12050. </div>
  12051. </div>
  12052. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12053. <img width="100%" :src="dialogImageUrl" alt />
  12054. </el-dialog>
  12055. <el-dialog
  12056. :title="noteName != '' ? noteName : '查看问卷'"
  12057. :visible.sync="dialogVisible5"
  12058. :append-to-body="true"
  12059. width="1000px"
  12060. :before-close="handleClose"
  12061. class="dialog_diy dialog_diy3"
  12062. >
  12063. <div>
  12064. <div
  12065. class="a_add_title"
  12066. style="
  12067. display: flex;
  12068. flex-direction: row;
  12069. align-items: center;
  12070. justify-content: center;
  12071. "
  12072. >
  12073. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12074. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12075. </div>
  12076. <div class="a_addBox">
  12077. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12078. 题目内容
  12079. </div>
  12080. <div
  12081. class="a_add_box"
  12082. v-for="(item1, index1) in askJson.askCount"
  12083. :key="index1"
  12084. >
  12085. <div class="a_add_head">
  12086. <div style="display: flex">
  12087. <span class="askIndex"> {{ index1 + 1 }}</span>
  12088. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12089. </div>
  12090. <img
  12091. v-if="askJson.askJson[index1].img"
  12092. :src="askJson.askJson[index1].img"
  12093. style="height: 300px; margin-top: 10px; max-width: 100%"
  12094. />
  12095. </div>
  12096. <div class="a_add_body">
  12097. <div class="a_add_input">
  12098. <el-radio-group
  12099. v-model="radio[index1]"
  12100. v-if="
  12101. askJson.askJson[index1].type == '1' ||
  12102. !askJson.askJson[index1].type
  12103. "
  12104. >
  12105. <el-radio
  12106. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12107. .checkList"
  12108. :key="checkIndex"
  12109. :label="checkIndex"
  12110. :disabled="isAnswer"
  12111. class="redioStyle"
  12112. ><span v-html="item2"></span
  12113. ></el-radio>
  12114. </el-radio-group>
  12115. <el-checkbox-group
  12116. v-model="radio[index1]"
  12117. v-if="askJson.askJson[index1].type == '2'"
  12118. >
  12119. <el-checkbox
  12120. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12121. .checkList"
  12122. :key="checkIndex1"
  12123. :label="checkIndex1"
  12124. :disabled="isAnswer"
  12125. class="redioStyle"
  12126. ><span v-html="item2"></span>
  12127. </el-checkbox>
  12128. </el-checkbox-group>
  12129. </div>
  12130. </div>
  12131. </div>
  12132. </div>
  12133. </div>
  12134. <span slot="footer" class="dialog-footer">
  12135. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12136. >取 消</el-button
  12137. >
  12138. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12139. >确 定</el-button
  12140. >
  12141. </span>
  12142. </el-dialog>
  12143. <el-dialog
  12144. :title="noteName != '' ? noteName : '查看问卷'"
  12145. :visible.sync="dialogVisible5Teacher"
  12146. :append-to-body="true"
  12147. width="1000px"
  12148. :before-close="handleClose"
  12149. class="dialog_diy dialog_diy3"
  12150. >
  12151. <div>
  12152. <div class="w_name">
  12153. 学生姓名:<span>{{ sStudent.student }}</span>
  12154. </div>
  12155. <div
  12156. class="a_add_title"
  12157. style="
  12158. display: flex;
  12159. flex-direction: row;
  12160. align-items: center;
  12161. justify-content: center;
  12162. "
  12163. >
  12164. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12165. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12166. </div>
  12167. <div class="a_addBox">
  12168. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12169. 题目内容
  12170. </div>
  12171. <div
  12172. class="a_add_box"
  12173. v-for="(item1, index1) in askJson.askCount"
  12174. :key="index1"
  12175. >
  12176. <div class="a_add_head">
  12177. <div style="display: flex">
  12178. <span class="askIndex">{{ index1 + 1 }}</span>
  12179. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12180. </div>
  12181. <img
  12182. v-if="askJson.askJson[index1].img"
  12183. :src="askJson.askJson[index1].img"
  12184. style="height: 300px; margin-top: 10px; max-width: 100%"
  12185. />
  12186. </div>
  12187. <div class="a_add_body">
  12188. <div class="a_add_input">
  12189. <el-radio-group
  12190. v-model="radio[index1]"
  12191. v-if="
  12192. askJson.askJson[index1].type == '1' ||
  12193. !askJson.askJson[index1].type
  12194. "
  12195. >
  12196. <el-radio
  12197. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12198. .checkList"
  12199. :key="checkIndex"
  12200. :label="checkIndex"
  12201. :disabled="isAnswer"
  12202. class="redioStyle"
  12203. ><span v-html="item2"></span
  12204. ></el-radio>
  12205. </el-radio-group>
  12206. <el-checkbox-group
  12207. v-model="radio[index1]"
  12208. v-if="askJson.askJson[index1].type == '2'"
  12209. >
  12210. <el-checkbox
  12211. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12212. .checkList"
  12213. :key="checkIndex1"
  12214. :label="checkIndex1"
  12215. :disabled="isAnswer"
  12216. class="redioStyle"
  12217. ><span v-html="item2"></span>
  12218. </el-checkbox>
  12219. </el-checkbox-group>
  12220. </div>
  12221. </div>
  12222. </div>
  12223. </div>
  12224. </div>
  12225. <span slot="footer" class="dialog-footer">
  12226. <el-button
  12227. @click="dialogVisible5Teacher = false"
  12228. v-show="noteName == ''"
  12229. >取 消</el-button
  12230. >
  12231. <el-button
  12232. type="primary"
  12233. @click="addStudentAskTeacher"
  12234. v-show="noteName == ''"
  12235. >确 定</el-button
  12236. >
  12237. </span>
  12238. </el-dialog>
  12239. <el-dialog
  12240. :title="noteName != '' ? noteName : '查看选择题'"
  12241. :visible.sync="dialogVisibleChoice"
  12242. :append-to-body="true"
  12243. width="1000px"
  12244. :before-close="handleClose"
  12245. class="dialog_diy dialog_diy3"
  12246. >
  12247. <div>
  12248. <!-- <div class="a_add_title" style="
  12249. display: flex;
  12250. flex-direction: row;
  12251. align-items: center;
  12252. justify-content: center;
  12253. ">
  12254. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12255. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12256. </div> -->
  12257. <div class="a_addBox">
  12258. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12259. 题目内容
  12260. </div>
  12261. <div
  12262. class="a_add_box"
  12263. v-for="(item1, index1) in testJson.testCount"
  12264. :key="index1"
  12265. >
  12266. <div class="a_add_head">
  12267. <div style="display: flex">
  12268. <span class="askIndex">{{ index1 + 1 }}</span>
  12269. <div
  12270. v-if="testJson.testJson[index1].type == '1'"
  12271. style="margin-right: 5px; min-width: 70px"
  12272. >
  12273. (单选题)
  12274. </div>
  12275. <div
  12276. v-if="testJson.testJson[index1].type == '2'"
  12277. style="margin-right: 5px; min-width: 70px"
  12278. >
  12279. (多选题)
  12280. </div>
  12281. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12282. </div>
  12283. <img
  12284. v-if="testJson.testJson[index1].img"
  12285. :src="testJson.testJson[index1].img"
  12286. style="height: 300px; margin-top: 10px; max-width: 100%"
  12287. />
  12288. </div>
  12289. <div
  12290. class="timuImgBox"
  12291. v-if="
  12292. testJson.testJson[index1].timuList &&
  12293. testJson.testJson[index1].timuList.length
  12294. "
  12295. >
  12296. <div
  12297. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12298. :key="tIndex"
  12299. class="timuImg"
  12300. @click.stop="previewImg(timg.src)"
  12301. >
  12302. <img :src="timg.src" alt="" />
  12303. </div>
  12304. </div>
  12305. <div class="a_add_body">
  12306. <div class="a_add_input">
  12307. <el-radio-group
  12308. v-model="radio[index1]"
  12309. v-if="testJson.testJson[index1].type == '1'"
  12310. >
  12311. <div class="radioBox">
  12312. <el-radio
  12313. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12314. .checkList"
  12315. :key="checkIndex"
  12316. :label="checkIndex"
  12317. :disabled="isAnswer"
  12318. class="redioStyle"
  12319. >
  12320. <div
  12321. style="margin-right: 10px"
  12322. v-if="item2 && item2.imgType && item2.imgType == 1"
  12323. >
  12324. <div class="inImg" @click.stop="previewImg(item2.src)">
  12325. <img :src="item2.src" alt="" />
  12326. </div>
  12327. </div>
  12328. <span v-else v-html="item2"></span>
  12329. </el-radio>
  12330. </div>
  12331. </el-radio-group>
  12332. <el-checkbox-group
  12333. v-model="radio[index1]"
  12334. v-if="testJson.testJson[index1].type == '2'"
  12335. >
  12336. <div class="radioBox">
  12337. <el-checkbox
  12338. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12339. .checkList"
  12340. :key="checkIndex"
  12341. :label="checkIndex"
  12342. :disabled="isAnswer"
  12343. class="redioStyle"
  12344. >
  12345. <div
  12346. style="margin-right: 10px"
  12347. v-if="item2 && item2.imgType && item2.imgType == 1"
  12348. >
  12349. <div class="inImg" @click.stop="previewImg(item2.src)">
  12350. <img :src="item2.src" alt="" />
  12351. </div>
  12352. </div>
  12353. <span v-else v-html="item2"></span>
  12354. </el-checkbox>
  12355. </div>
  12356. </el-checkbox-group>
  12357. </div>
  12358. </div>
  12359. </div>
  12360. </div>
  12361. </div>
  12362. <span slot="footer" class="dialog-footer">
  12363. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12364. >取 消</el-button
  12365. >
  12366. <el-button
  12367. type="primary"
  12368. @click="addStudentTest"
  12369. v-show="noteName == ''"
  12370. >确 定</el-button
  12371. >
  12372. </span>
  12373. </el-dialog>
  12374. <el-dialog
  12375. :title="noteName != '' ? noteName : '查看选择题'"
  12376. :visible.sync="dialogVisibleChoiceTeacher"
  12377. :append-to-body="true"
  12378. width="1000px"
  12379. :before-close="handleClose"
  12380. class="dialog_diy dialog_diy3"
  12381. >
  12382. <div>
  12383. <div class="w_name">
  12384. 学生姓名:<span>{{ sStudent.student }}</span>
  12385. </div>
  12386. <div class="a_addBox">
  12387. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12388. 题目内容
  12389. </div>
  12390. <div
  12391. class="a_add_box"
  12392. v-for="(item1, index1) in testJson.testCount"
  12393. :key="index1"
  12394. >
  12395. <div class="a_add_head">
  12396. <div style="display: flex">
  12397. <span class="askIndex">{{ index1 + 1 }}</span>
  12398. <div
  12399. v-if="testJson.testJson[index1].type == '1'"
  12400. style="margin-right: 5px; min-width: 70px"
  12401. >
  12402. (单选题)
  12403. </div>
  12404. <div
  12405. v-if="testJson.testJson[index1].type == '2'"
  12406. style="margin-right: 5px; min-width: 70px"
  12407. >
  12408. (多选题)
  12409. </div>
  12410. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12411. </div>
  12412. <img
  12413. v-if="testJson.testJson[index1].img"
  12414. :src="testJson.testJson[index1].img"
  12415. style="height: 300px; margin-top: 10px; max-width: 100%"
  12416. />
  12417. </div>
  12418. <div
  12419. class="timuImgBox"
  12420. v-if="
  12421. testJson.testJson[index1].timuList &&
  12422. testJson.testJson[index1].timuList.length
  12423. "
  12424. >
  12425. <div
  12426. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12427. :key="tIndex"
  12428. class="timuImg"
  12429. @click.stop="previewImg(timg.src)"
  12430. >
  12431. <img :src="timg.src" alt="" />
  12432. </div>
  12433. </div>
  12434. <div class="a_add_body">
  12435. <div class="a_add_input">
  12436. <el-radio-group
  12437. v-model="radio[index1]"
  12438. v-if="testJson.testJson[index1].type == '1'"
  12439. >
  12440. <div class="radioBox">
  12441. <el-radio
  12442. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12443. .checkList"
  12444. :key="checkIndex"
  12445. :label="checkIndex"
  12446. :disabled="isAnswer"
  12447. class="redioStyle"
  12448. >
  12449. <div
  12450. style="margin-right: 10px"
  12451. v-if="item2 && item2.imgType && item2.imgType == 1"
  12452. >
  12453. <div class="inImg" @click.stop="previewImg(item2.src)">
  12454. <img :src="item2.src" alt="" />
  12455. </div>
  12456. </div>
  12457. <span v-else v-html="item2"></span>
  12458. </el-radio>
  12459. </div>
  12460. </el-radio-group>
  12461. <el-checkbox-group
  12462. v-model="radio[index1]"
  12463. v-if="testJson.testJson[index1].type == '2'"
  12464. >
  12465. <div class="radioBox">
  12466. <el-checkbox
  12467. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12468. .checkList"
  12469. :key="checkIndex"
  12470. :label="checkIndex"
  12471. :disabled="isAnswer"
  12472. class="redioStyle"
  12473. >
  12474. <div
  12475. style="margin-right: 10px"
  12476. v-if="item2 && item2.imgType && item2.imgType == 1"
  12477. >
  12478. <div class="inImg" @click.stop="previewImg(item2.src)">
  12479. <img :src="item2.src" alt="" />
  12480. </div>
  12481. </div>
  12482. <span v-else v-html="item2"></span>
  12483. </el-checkbox>
  12484. </div>
  12485. </el-checkbox-group>
  12486. </div>
  12487. </div>
  12488. </div>
  12489. </div>
  12490. </div>
  12491. <span slot="footer" class="dialog-footer">
  12492. <el-button
  12493. @click="dialogVisibleChoiceTeacher = false"
  12494. v-show="noteName == ''"
  12495. >取 消</el-button
  12496. >
  12497. <el-button
  12498. type="primary"
  12499. @click="addStudentTestTeacher"
  12500. v-show="noteName == ''"
  12501. >确 定</el-button
  12502. >
  12503. </span>
  12504. </el-dialog>
  12505. <el-dialog
  12506. title="查看富文本"
  12507. :visible.sync="dialogVisible1"
  12508. :append-to-body="true"
  12509. width="500px"
  12510. :before-close="handleClose"
  12511. class="dialog_diy textCss"
  12512. >
  12513. <el-form style="font-size: 20px">
  12514. <el-form-item label="文本标题" class="textTitle">
  12515. <div style="font-size: 20px">{{ text.name }}</div>
  12516. </el-form-item>
  12517. <div>富文本内容</div>
  12518. <div
  12519. v-html="text.url"
  12520. style="font-size: 18px; padding: 40px 0 0 0"
  12521. ></div>
  12522. </el-form>
  12523. <span slot="footer" class="dialog-footer">
  12524. <el-button type="primary" @click="dialogVisible1 = false"
  12525. >确定</el-button
  12526. >
  12527. </span>
  12528. </el-dialog>
  12529. <el-dialog
  12530. title="文件预览"
  12531. :visible.sync="dialogVisible3"
  12532. width="50%"
  12533. :before-close="handleClose"
  12534. class="dialog_diy"
  12535. :class="{ fullStyle: full }"
  12536. >
  12537. <div slot="title" class="header-title">
  12538. <div style="color: #fff">文件预览</div>
  12539. <div style="position: absolute; top: 19px; right: 50px">
  12540. <img
  12541. src="../../assets/full.png"
  12542. style="height: 16px; cursor: pointer"
  12543. alt=""
  12544. @click="fullTools"
  12545. />
  12546. </div>
  12547. </div>
  12548. <pdf
  12549. v-if="showPDF"
  12550. :pdfUrl="pptImgUrl"
  12551. style="width: 100%; height: 520px; overflow: auto"
  12552. :class="{ fullStyle: full }"
  12553. ></pdf>
  12554. <iframe
  12555. v-else
  12556. :src="pptImgUrl"
  12557. frameborder="0"
  12558. width="100%"
  12559. height="600"
  12560. :class="{ fullStyle: full }"
  12561. ></iframe>
  12562. </el-dialog>
  12563. <el-dialog
  12564. title="文件预览"
  12565. :visible.sync="dialogVisible6"
  12566. width="50%"
  12567. :before-close="handleClose"
  12568. class="dialog_diy"
  12569. >
  12570. <iframe
  12571. :src="pptImgUrl1"
  12572. frameborder="0"
  12573. width="100%"
  12574. height="600"
  12575. ></iframe>
  12576. </el-dialog>
  12577. <el-dialog
  12578. title="提示"
  12579. :visible.sync="dialogVisible4"
  12580. :append-to-body="true"
  12581. width="800px"
  12582. :before-close="handleClose"
  12583. class="dialog_diy notice"
  12584. >
  12585. <div>此功能暂未开放!</div>
  12586. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  12587. </el-dialog>
  12588. <el-dialog
  12589. title="问答"
  12590. :visible.sync="answerDialogVisible"
  12591. :append-to-body="true"
  12592. width="800px"
  12593. :before-close="handleClose"
  12594. class="dialog_diy"
  12595. >
  12596. <div>
  12597. <div
  12598. style="
  12599. display: flex;
  12600. flex-wrap: nowrap;
  12601. flex-direction: column;
  12602. position: relative;
  12603. "
  12604. >
  12605. <div class="queTop" style="padding: 20px 0 20px 0">
  12606. <div class="question">
  12607. <img src="../../assets/icon/question.png" alt />
  12608. </div>
  12609. <div class="queTitle">
  12610. <div style="width: 90px; min-width: 90px">提问:</div>
  12611. <div>{{ answerQ }}</div>
  12612. </div>
  12613. </div>
  12614. <div class="ediBottom">
  12615. <textarea
  12616. rows="6"
  12617. class="binfo_input"
  12618. cols
  12619. style="width: 95%; height: 120px"
  12620. v-model="questionAnswer"
  12621. ></textarea>
  12622. </div>
  12623. </div>
  12624. </div>
  12625. <div slot="footer">
  12626. <el-button @click="answerDialogVisible = false">取 消</el-button>
  12627. <el-button type="primary" @click="addQuestion">提 交</el-button>
  12628. </div>
  12629. </el-dialog>
  12630. <el-dialog
  12631. title="问答"
  12632. :visible.sync="answerDialogVisibleTeacher"
  12633. :append-to-body="true"
  12634. width="800px"
  12635. :before-close="handleClose"
  12636. class="dialog_diy"
  12637. >
  12638. <div>
  12639. <div class="w_name">
  12640. 学生姓名:<span>{{ sStudent.student }}</span>
  12641. </div>
  12642. <div
  12643. style="
  12644. display: flex;
  12645. flex-wrap: nowrap;
  12646. flex-direction: column;
  12647. position: relative;
  12648. "
  12649. >
  12650. <div class="queTop" style="padding: 20px 0 20px 0">
  12651. <div class="question">
  12652. <img src="../../assets/icon/question.png" alt />
  12653. </div>
  12654. <div class="queTitle">
  12655. <div style="width: 90px; min-width: 90px">提问:</div>
  12656. <div>{{ answerQ }}</div>
  12657. </div>
  12658. </div>
  12659. <div class="ediBottom">
  12660. <textarea
  12661. rows="6"
  12662. class="binfo_input"
  12663. cols
  12664. style="width: 95%; height: 120px"
  12665. v-model="questionAnswer"
  12666. ></textarea>
  12667. </div>
  12668. </div>
  12669. </div>
  12670. <div slot="footer">
  12671. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  12672. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  12673. </div>
  12674. </el-dialog>
  12675. <el-dialog
  12676. title="倒计时"
  12677. :visible.sync="timeDialogVisible"
  12678. :append-to-body="true"
  12679. width="800px"
  12680. :before-close="handleClose"
  12681. class="dialog_diy"
  12682. >
  12683. <div>
  12684. <div style="margin-bottom: 20px; color: #999">
  12685. 提示:点击“+”或“-”修改倒计时时长。
  12686. </div>
  12687. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12688. </div>
  12689. <div slot="footer">
  12690. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  12691. </div>
  12692. </el-dialog>
  12693. <el-dialog
  12694. title="权限设置"
  12695. :visible.sync="juriVisible"
  12696. :append-to-body="true"
  12697. width="400px"
  12698. :before-close="handleClose"
  12699. class="dialog_diy"
  12700. >
  12701. <div>
  12702. <div class="open_box">
  12703. <div class="switch_box">
  12704. <span>允许学生查看所有作业</span>
  12705. <el-switch
  12706. v-model="sIsOpen"
  12707. active-text=""
  12708. class="switchCss"
  12709. @change="updateSLook"
  12710. ></el-switch>
  12711. </div>
  12712. <div
  12713. class="switch_box"
  12714. v-if="
  12715. courseDetail.userid == userid ||
  12716. (courseDetail.course_teacher &&
  12717. courseDetail.course_teacher.indexOf(userid) != -1)
  12718. "
  12719. >
  12720. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12721. <span>禁止学生查看所有阶段</span>
  12722. <el-switch
  12723. v-model="IsLookOpen"
  12724. active-text=""
  12725. class="switchCss"
  12726. @change="updateLookOpen"
  12727. ></el-switch>
  12728. </div>
  12729. <div class="switch_box" v-if="courseDetail.userid == userid">
  12730. <span>开启跟随模式</span>
  12731. <el-switch
  12732. v-model="IsFollow"
  12733. active-text=""
  12734. class="switchCss"
  12735. @change="updateFollow"
  12736. ></el-switch>
  12737. </div>
  12738. </div>
  12739. </div>
  12740. <div slot="footer">
  12741. <el-button
  12742. style="background: #409efe; color: #fff"
  12743. @click="juriVisible = false"
  12744. >关 闭</el-button
  12745. >
  12746. </div>
  12747. </el-dialog>
  12748. <el-dialog
  12749. title="查看视频"
  12750. :visible.sync="videoVisible"
  12751. :append-to-body="true"
  12752. width="1000px"
  12753. :before-close="handleClose"
  12754. class="dialog_diy1"
  12755. >
  12756. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12757. <video-player
  12758. class="video-player vjs-custom-skin"
  12759. :playsinline="true"
  12760. :options="videoDetail"
  12761. @play="onPlayerPlay($event)"
  12762. style="width: 100%; height: 100%"
  12763. ></video-player>
  12764. </div>
  12765. <div slot="footer">
  12766. <el-button
  12767. style="background: #409efe; color: #fff"
  12768. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12769. >
  12770. 关 闭</el-button
  12771. >
  12772. </div>
  12773. </el-dialog>
  12774. <el-dialog
  12775. title="查看详情"
  12776. :visible.sync="commentDialogVisible"
  12777. :append-to-body="true"
  12778. width="800px"
  12779. :before-close="handleClose"
  12780. class="dialog_diy"
  12781. >
  12782. <div class="commentTop">
  12783. <div class="studentDetail">
  12784. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12785. <div class="nameAndTime">
  12786. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12787. <div>{{ commentDetail.time }}</div>
  12788. </div>
  12789. <div
  12790. class="returnBtn"
  12791. style="margin-left: auto; width: 80px"
  12792. v-if="
  12793. commentDetail.works &&
  12794. commentDetail.type == 0 &&
  12795. (tType == 1 || tType == 4)
  12796. "
  12797. @click="
  12798. showPicturePaint(
  12799. commentDetail.img ? commentDetail.img : commentDetail.works
  12800. )
  12801. "
  12802. >
  12803. 教师批注
  12804. </div>
  12805. </div>
  12806. <div
  12807. class="worksAnswer"
  12808. v-if="commentDetail.works && commentDetail.type == 2"
  12809. >
  12810. {{ JSON.parse(commentDetail.works)[0].answer }}
  12811. </div>
  12812. <div
  12813. class="worksAnswer"
  12814. v-if="commentDetail.works && commentDetail.type == 1"
  12815. >
  12816. <img
  12817. src="../../assets/teacherWork.png"
  12818. v-if="commentDetail.ateacher"
  12819. class="w_teachert"
  12820. />
  12821. <pdf
  12822. v-if="showPDF"
  12823. :pdfUrl="pptImgUrl"
  12824. style="width: 100%; height: 520px; overflow: auto"
  12825. :class="{ fullStyle: full }"
  12826. ></pdf>
  12827. <iframe
  12828. v-else
  12829. :src="pptImgUrl"
  12830. frameborder="0"
  12831. width="100%"
  12832. height="600"
  12833. :class="{ fullStyle: full }"
  12834. ></iframe>
  12835. </div>
  12836. <div
  12837. class="worksAnswer"
  12838. v-if="commentDetail.works && commentDetail.type == 0"
  12839. >
  12840. <img
  12841. src="../../assets/teacherWork.png"
  12842. v-if="commentDetail.ateacher"
  12843. class="w_teachert"
  12844. style="right: 105px"
  12845. />
  12846. <img
  12847. :src="commentDetail.works"
  12848. alt=""
  12849. @click="previewImg(commentDetail.works)"
  12850. />
  12851. </div>
  12852. <div
  12853. class="worksAnswer"
  12854. v-if="commentDetail.works && commentDetail.type == 3"
  12855. >
  12856. <img
  12857. src="../../assets/teacherWork.png"
  12858. v-if="commentDetail.ateacher"
  12859. class="w_teachert"
  12860. />
  12861. <video-player
  12862. class="video-player vjs-custom-skin"
  12863. :playsinline="true"
  12864. :options="videoDetail"
  12865. @play="onPlayerPlay($event)"
  12866. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  12867. ></video-player>
  12868. </div>
  12869. <div
  12870. class="worksAnswer"
  12871. v-if="commentDetail.works && commentDetail.type == 10"
  12872. >
  12873. <div class="cont" v-html="commentDetail.works.text"></div>
  12874. </div>
  12875. <div v-if="commentDetail.works && commentDetail.type == 12">
  12876. <!-- class="worksAnswer codeFileBox" -->
  12877. <!-- @click="downloadFile(commentDetail.works)" -->
  12878. <!-- <img src="../../assets/icon/codeFile.png" />
  12879. <div>点击下载文件</div> -->
  12880. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  12881. </div>
  12882. <div
  12883. class="worksAnswer codeFileBox"
  12884. v-if="commentDetail.works && commentDetail.type == 15"
  12885. @click="
  12886. openCocoPi(
  12887. 57,
  12888. commentIndexJson.toolIndex,
  12889. commentDetail.userid,
  12890. commentDetail.sName
  12891. )
  12892. "
  12893. >
  12894. <img src="../../assets/icon/codeFile.png" />
  12895. <div>点击打开CocoPi</div>
  12896. </div>
  12897. <div
  12898. class="worksAnswer"
  12899. v-if="commentDetail.works && commentDetail.type == 13"
  12900. >
  12901. <div v-html="JSON.parse(commentDetail.works).text"></div>
  12902. </div>
  12903. <div
  12904. class="worksAnswer"
  12905. v-if="commentDetail.works && commentDetail.type == 4"
  12906. >
  12907. <div class="evalCss">
  12908. <div class="nav">请选择星星进行评分</div>
  12909. <div class="middleBox" v-if="eScore.eStar">
  12910. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  12911. <div class="nameAndrate">
  12912. <div>{{ e.value }}</div>
  12913. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  12914. </div>
  12915. <div v-if="e.detail">{{ e.detail }}</div>
  12916. </div>
  12917. <div class="bz">
  12918. <textarea
  12919. disabled
  12920. rows="4"
  12921. class="pj"
  12922. style="
  12923. padding: 10px 5px;
  12924. width: 70%;
  12925. background: #f7f6f9;
  12926. font-size: 14px;
  12927. text-indent: 10px;
  12928. color: #000;
  12929. "
  12930. cols
  12931. v-model="eScore.eBzText"
  12932. placeholder="请输入评价内容..."
  12933. ></textarea>
  12934. </div>
  12935. </div>
  12936. </div>
  12937. </div>
  12938. <div class="comment">
  12939. <div class="commentList">
  12940. <div class="commentImg">
  12941. <img
  12942. @click="
  12943. isLikes(
  12944. commentDetail.wid,
  12945. userid,
  12946. 1,
  12947. null,
  12948. commentDetail.isLikes,
  12949. commentDetail.sName
  12950. )
  12951. "
  12952. :src="commentDetail.isLikes == true ? likes : noLikes"
  12953. alt=""
  12954. />
  12955. </div>
  12956. <div>{{ commentDetail.likesCount }}</div>
  12957. </div>
  12958. <div class="commentList">
  12959. <div class="commentImg">
  12960. <img src="../../assets/icon/comment/comment.png" alt="" />
  12961. </div>
  12962. <div>{{ commentDetail.commentCount }}</div>
  12963. </div>
  12964. </div>
  12965. <div class="drawPBox" v-if="commentDetail.img">
  12966. <span>教师批注</span>
  12967. <img
  12968. :src="commentDetail.img"
  12969. alt=""
  12970. @click="previewImg(commentDetail.img)"
  12971. />
  12972. <span
  12973. class="deleteImg"
  12974. v-if="tType == 1 || tType == 4"
  12975. @click.stop="deletePicturePaint(commentDetail.wid)"
  12976. style="
  12977. font-size: 14px;
  12978. width: auto !important;
  12979. color: #b4b4b4;
  12980. top: unset;
  12981. bottom: 0;
  12982. border: none;
  12983. padding: 0;
  12984. height: auto !important;
  12985. margin: 0;
  12986. "
  12987. >删除</span
  12988. >
  12989. </div>
  12990. </div>
  12991. <div class="commentBox">
  12992. <div class="pl">评论:</div>
  12993. <div style="max-height: 200px; overflow: auto">
  12994. <div
  12995. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  12996. style="padding: 10px 0 0 0"
  12997. >
  12998. <div
  12999. class="studentDetail"
  13000. style="padding-top: 10px"
  13001. v-for="(co, coIndex) in commentDetail.commentJson"
  13002. :key="coIndex"
  13003. >
  13004. <div class="tx" style="min-width: 50px">
  13005. <img src="../../assets/avatar.png" alt="" />
  13006. </div>
  13007. <div class="plPerson">
  13008. <div class="plName">
  13009. <div>{{ co.commentPeople }}</div>
  13010. <div style="margin-left: 5px">
  13011. {{ co.commentTime }}
  13012. </div>
  13013. <div
  13014. class="deleteComment"
  13015. v-if="userid == co.userid"
  13016. @click="deleteComment(co.wid)"
  13017. >
  13018. 删除
  13019. </div>
  13020. </div>
  13021. <div class="plContent">{{ co.commentText }}</div>
  13022. </div>
  13023. </div>
  13024. </div>
  13025. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13026. </div>
  13027. </div>
  13028. <div style="margin-top: 10px">
  13029. <div class="displayBox">
  13030. <div
  13031. style="
  13032. color: #556db4;
  13033. font-size: 14px;
  13034. font-weight: bold;
  13035. padding-bottom: 10px;
  13036. "
  13037. >
  13038. 评价
  13039. </div>
  13040. <div class="easy_comment" v-if="false">
  13041. <div
  13042. v-for="(p, pIndex) in PlTextList"
  13043. :key="pIndex"
  13044. @click="fastText(p, 1)"
  13045. >
  13046. {{ p }}
  13047. </div>
  13048. </div>
  13049. </div>
  13050. <div>
  13051. <textarea
  13052. rows="3"
  13053. class="pj"
  13054. style="padding: 10px 5px"
  13055. cols
  13056. v-model="commentText"
  13057. placeholder="请输入评论"
  13058. ></textarea>
  13059. </div>
  13060. </div>
  13061. <div slot="footer">
  13062. <el-button
  13063. @click="
  13064. (commentDialogVisible = false),
  13065. (commentIndexJson = {}),
  13066. videoDetail.sources && videoDetail.sources[0]
  13067. ? (videoDetail.sources[0].src = '')
  13068. : ''
  13069. "
  13070. >取 消</el-button
  13071. >
  13072. <el-button
  13073. type="primary"
  13074. @click="addComment(commentDetail.wid, userid, 2, commentDetail)"
  13075. >确 定</el-button
  13076. >
  13077. </div>
  13078. </el-dialog>
  13079. <el-dialog
  13080. title="查看文档"
  13081. :visible.sync="fullDialogVisible"
  13082. :append-to-body="true"
  13083. width="100%"
  13084. :before-close="handleClose"
  13085. :show-close="false"
  13086. class="dialog_diy full_diy"
  13087. :class="{ full_diy2: fulltype == 3 }"
  13088. >
  13089. <div slot="title" class="header-title">
  13090. <div style="color: #fff">查看文档</div>
  13091. <div
  13092. @click="
  13093. () => {
  13094. (fullDialogVisible = false),
  13095. changeSplitScreenBehavior({ code: 99 });
  13096. }
  13097. "
  13098. style="
  13099. cursor: pointer;
  13100. position: absolute;
  13101. top: 20px;
  13102. right: 20px;
  13103. color: #fff;
  13104. "
  13105. >
  13106. 退出全屏
  13107. </div>
  13108. </div>
  13109. <div style="height: 100%">
  13110. <div
  13111. class="wheel"
  13112. v-if="
  13113. fulltype == 2 &&
  13114. fullUrl.indexOf(
  13115. 'https://view.officeapps.live.com/op/view.aspx?src='
  13116. ) != -1
  13117. "
  13118. style="width: 100%;height:100%; margin: 0 auto"
  13119. >
  13120. <iframe
  13121. style="width: 100%; height: 100%; border: none"
  13122. :src="fullUrl"
  13123. ></iframe>
  13124. </div>
  13125. <iframe
  13126. v-else-if="fulltype == 2"
  13127. style="width: 100%; height: 100%; border: none"
  13128. :src="fullUrl"
  13129. security="restricted"
  13130. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13131. ></iframe>
  13132. <pdf
  13133. v-else-if="fulltype == 3"
  13134. :pdfUrl="fullUrl"
  13135. style="width: 100%; height: 100%; overflow: auto"
  13136. ></pdf>
  13137. <div
  13138. class="wheel"
  13139. v-if="fulltype == 1"
  13140. style="
  13141. box-shadow: 0 0 6px 1px #f2f2f2;
  13142. height:100%;
  13143. width: 100%;
  13144. background: #f1f1f1;
  13145. "
  13146. >
  13147. <div class="title" style="width: 100%; box-sizing: border-box">
  13148. 查看文档
  13149. </div>
  13150. <el-form class="textBox" style="height: 90%">
  13151. <el-form-item class="textTitle">
  13152. <div style="font-size: 22px">
  13153. {{ fullUrl.name }}
  13154. </div>
  13155. </el-form-item>
  13156. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13157. <div
  13158. v-html="fullUrl.url"
  13159. class="textContent"
  13160. style="height: auto"
  13161. ></div>
  13162. </el-form>
  13163. </div>
  13164. </div>
  13165. <!-- <div slot="footer">
  13166. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13167. </div> -->
  13168. </el-dialog>
  13169. <el-dialog
  13170. title="个人评价"
  13171. :visible.sync="studentEvalDialogVisible"
  13172. :append-to-body="true"
  13173. width="800px"
  13174. :before-close="handleClose"
  13175. class="dialog_diy"
  13176. >
  13177. <div class="evalCss">
  13178. <div class="nav">请选择星星进行评分</div>
  13179. <div class="middleBox" v-if="eScore.eStar">
  13180. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13181. <div class="nameAndrate">
  13182. <div>{{ e.value }}</div>
  13183. <el-rate
  13184. v-model="eScore.eStar[eIndex]"
  13185. :disabled="isStar"
  13186. ></el-rate>
  13187. </div>
  13188. <div v-if="e.detail">{{ e.detail }}</div>
  13189. </div>
  13190. <div class="easy_comment" v-if="false">
  13191. <div
  13192. v-for="(p, pIndex) in PlTextList"
  13193. :key="pIndex"
  13194. @click="fastText(p, 2)"
  13195. >
  13196. {{ p }}
  13197. </div>
  13198. </div>
  13199. <div class="bz">
  13200. <textarea
  13201. :disabled="isStar"
  13202. rows="4"
  13203. class="pj"
  13204. style="
  13205. padding: 10px 5px;
  13206. width: 70%;
  13207. background: #f7f6f9;
  13208. font-size: 14px;
  13209. text-indent: 10px;
  13210. "
  13211. cols
  13212. v-model="eScore.eBzText"
  13213. placeholder="请输入评价内容..."
  13214. ></textarea>
  13215. </div>
  13216. </div>
  13217. </div>
  13218. <div slot="footer">
  13219. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13220. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13221. >确 定</el-button
  13222. >
  13223. </div>
  13224. </el-dialog>
  13225. <el-dialog
  13226. title="个人评价"
  13227. :visible.sync="studentEvalDialogVisibleTeacher"
  13228. :append-to-body="true"
  13229. width="800px"
  13230. :before-close="handleClose"
  13231. class="dialog_diy"
  13232. >
  13233. <div class="w_name">
  13234. 学生姓名:<span>{{ sStudent.student }}</span>
  13235. </div>
  13236. <div class="evalCss">
  13237. <div class="nav">请选择星星进行评分</div>
  13238. <div class="middleBox" v-if="eScore.eStar">
  13239. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13240. <div class="nameAndrate">
  13241. <div>{{ e.value }}</div>
  13242. <el-rate
  13243. v-model="eScore.eStar[eIndex]"
  13244. :disabled="isStar"
  13245. ></el-rate>
  13246. </div>
  13247. <div v-if="e.detail">{{ e.detail }}</div>
  13248. </div>
  13249. <div class="easy_comment" v-if="false">
  13250. <div
  13251. v-for="(p, pIndex) in PlTextList"
  13252. :key="pIndex"
  13253. @click="fastText(p, 2)"
  13254. >
  13255. {{ p }}
  13256. </div>
  13257. </div>
  13258. <div class="bz">
  13259. <textarea
  13260. :disabled="isStar"
  13261. rows="4"
  13262. class="pj"
  13263. style="
  13264. padding: 10px 5px;
  13265. width: 70%;
  13266. background: #f7f6f9;
  13267. font-size: 14px;
  13268. text-indent: 10px;
  13269. "
  13270. cols
  13271. v-model="eScore.eBzText"
  13272. placeholder="请输入评价内容..."
  13273. ></textarea>
  13274. </div>
  13275. </div>
  13276. </div>
  13277. <div slot="footer">
  13278. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13279. >取 消</el-button
  13280. >
  13281. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13282. >确 定</el-button
  13283. >
  13284. </div>
  13285. </el-dialog>
  13286. <el-dialog
  13287. title="选择匹配"
  13288. :visible.sync="dialogVisibleSelect"
  13289. :append-to-body="true"
  13290. width="90%"
  13291. :before-close="handleClose"
  13292. class="dialog_diy dialog_diy3"
  13293. >
  13294. <div v-if="selectJson">
  13295. <div class="select_box2">
  13296. <div class="select_box2_title">
  13297. <div>选择匹配</div>
  13298. <div>请选择对应的答案进行答题!</div>
  13299. </div>
  13300. <div class="select_box2_box">
  13301. <div class="select_box2_img">
  13302. <img
  13303. :src="selectJson.url"
  13304. @click="previewImg(selectJson.url)"
  13305. alt=""
  13306. />
  13307. </div>
  13308. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13309. <div style="padding-top: 15px">
  13310. <div class="select_answer_title" v-if="isSelect">
  13311. {{ selectAnswer.stu }}
  13312. </div>
  13313. <div class="select_answer_title" v-else>
  13314. 根据题目选择对应答案
  13315. </div>
  13316. <div
  13317. class="select_box2_answer_box"
  13318. v-for="(item2, checkIndex) in selectJson.select"
  13319. :key="checkIndex"
  13320. >
  13321. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13322. <el-select
  13323. :disabled="isSelect"
  13324. v-model="selectAnswer.answer[checkIndex]"
  13325. placeholder="请选择正确答案"
  13326. >
  13327. <el-option
  13328. v-for="(e, eIndex) in selectJson.select"
  13329. :key="eIndex"
  13330. :label="e"
  13331. :value="eIndex"
  13332. >
  13333. </el-option>
  13334. </el-select>
  13335. </div>
  13336. </div>
  13337. <div
  13338. class="rightAnswerCss"
  13339. v-if="isSelect && (tType == 1 || tType == 4)"
  13340. >
  13341. <div
  13342. v-for="(a, aIndex) in selectJson.answer"
  13343. :key="aIndex"
  13344. class="rightAnswer"
  13345. >
  13346. <div
  13347. v-if="selectAnswer.answer[aIndex] === a"
  13348. style="color: #767de1"
  13349. >
  13350. 回答正确
  13351. </div>
  13352. <div v-else>回答错误</div>
  13353. <div
  13354. style="margin-left: 10px"
  13355. v-if="selectAnswer.answer[aIndex] !== a"
  13356. >
  13357. 正确答案:
  13358. </div>
  13359. <div
  13360. :class="
  13361. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13362. "
  13363. >
  13364. {{ selectJson.select[a] }}
  13365. </div>
  13366. </div>
  13367. </div>
  13368. </div>
  13369. <div class="upAnswerCss">
  13370. <el-button
  13371. type="primary"
  13372. @click="addSelectAnswer"
  13373. v-if="!isSelect"
  13374. >提交答案</el-button
  13375. >
  13376. </div>
  13377. </div>
  13378. </div>
  13379. </div>
  13380. </el-dialog>
  13381. <el-dialog
  13382. title="选择匹配"
  13383. :visible.sync="dialogVisibleSelectTeacher"
  13384. :append-to-body="true"
  13385. width="90%"
  13386. :before-close="handleClose"
  13387. class="dialog_diy dialog_diy3"
  13388. >
  13389. <div v-if="selectJson">
  13390. <div class="w_name">
  13391. 学生姓名:<span>{{ sStudent.student }}</span>
  13392. </div>
  13393. <div class="select_box2">
  13394. <div class="select_box2_title">
  13395. <div>选择匹配</div>
  13396. <div>请选择对应的答案进行答题!</div>
  13397. </div>
  13398. <div class="select_box2_box">
  13399. <div class="select_box2_img">
  13400. <img
  13401. :src="selectJson.url"
  13402. @click="previewImg(selectJson.url)"
  13403. alt=""
  13404. />
  13405. </div>
  13406. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13407. <div style="padding-top: 15px">
  13408. <div class="select_answer_title" v-if="isSelect">
  13409. {{ selectAnswer.stu }}
  13410. </div>
  13411. <div class="select_answer_title" v-else>
  13412. 根据题目选择对应答案
  13413. </div>
  13414. <div
  13415. class="select_box2_answer_box"
  13416. v-for="(item2, checkIndex) in selectJson.select"
  13417. :key="checkIndex"
  13418. >
  13419. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13420. <el-select
  13421. :disabled="isSelect"
  13422. v-model="selectAnswer.answer[checkIndex]"
  13423. placeholder="请选择正确答案"
  13424. >
  13425. <el-option
  13426. v-for="(e, eIndex) in selectJson.select"
  13427. :key="eIndex"
  13428. :label="e"
  13429. :value="eIndex"
  13430. >
  13431. </el-option>
  13432. </el-select>
  13433. </div>
  13434. </div>
  13435. <div
  13436. class="rightAnswerCss"
  13437. v-if="isSelect && (tType == 1 || tType == 4)"
  13438. >
  13439. <div
  13440. v-for="(a, aIndex) in selectJson.answer"
  13441. :key="aIndex"
  13442. class="rightAnswer"
  13443. >
  13444. <div
  13445. v-if="selectAnswer.answer[aIndex] === a"
  13446. style="color: #767de1"
  13447. >
  13448. 回答正确
  13449. </div>
  13450. <div v-else>回答错误</div>
  13451. <div
  13452. style="margin-left: 10px"
  13453. v-if="selectAnswer.answer[aIndex] !== a"
  13454. >
  13455. 正确答案:
  13456. </div>
  13457. <div
  13458. :class="
  13459. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13460. "
  13461. >
  13462. {{ selectJson.select[a] }}
  13463. </div>
  13464. </div>
  13465. </div>
  13466. </div>
  13467. <div class="upAnswerCss">
  13468. <el-button
  13469. type="primary"
  13470. @click="addSelectAnswerTeacher"
  13471. v-if="!isSelect"
  13472. >提交答案</el-button
  13473. >
  13474. </div>
  13475. </div>
  13476. </div>
  13477. </div>
  13478. </el-dialog>
  13479. <el-dialog
  13480. title="教师评分"
  13481. :visible.sync="dialogVisibleScore"
  13482. :append-to-body="true"
  13483. width="800px"
  13484. :before-close="handleClose"
  13485. class="dialog_diy"
  13486. >
  13487. <div>
  13488. <div class="studentDetail">
  13489. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13490. <div class="nameAndTime">
  13491. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13492. <div>{{ commentDetail.time }}</div>
  13493. </div>
  13494. </div>
  13495. <div
  13496. class="worksAnswer"
  13497. v-if="commentDetail.works && commentDetail.type == 2"
  13498. >
  13499. {{ JSON.parse(commentDetail.works)[0].answer }}
  13500. </div>
  13501. <div
  13502. class="worksAnswer"
  13503. v-if="commentDetail.works && commentDetail.type == 1"
  13504. >
  13505. <pdf
  13506. v-if="showPDF"
  13507. :pdfUrl="pptImgUrl"
  13508. style="width: 100%; height: 520px; overflow: auto"
  13509. :class="{ fullStyle: full }"
  13510. ></pdf>
  13511. <iframe
  13512. v-else
  13513. :src="pptImgUrl"
  13514. frameborder="0"
  13515. width="100%"
  13516. height="600"
  13517. :class="{ fullStyle: full }"
  13518. ></iframe>
  13519. </div>
  13520. <div
  13521. class="worksAnswer"
  13522. v-if="commentDetail.works && commentDetail.type == 0"
  13523. >
  13524. <img
  13525. :src="commentDetail.works"
  13526. alt=""
  13527. @click="previewImg(commentDetail.works)"
  13528. />
  13529. </div>
  13530. <div
  13531. class="worksAnswer"
  13532. v-if="commentDetail.works && commentDetail.type == 3"
  13533. >
  13534. <video-player
  13535. class="video-player vjs-custom-skin"
  13536. :playsinline="true"
  13537. :options="videoDetail"
  13538. @play="onPlayerPlay($event)"
  13539. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13540. ></video-player>
  13541. </div>
  13542. <div
  13543. class="worksAnswer codeFileBox"
  13544. v-if="commentDetail.works && commentDetail.type == 12"
  13545. @click="downloadFile(commentDetail.works)"
  13546. >
  13547. <img src="../../assets/icon/codeFile.png" />
  13548. <div>点击下载文件</div>
  13549. </div>
  13550. <div
  13551. class="worksAnswer codeFileBox"
  13552. v-if="commentDetail.works && commentDetail.type == 15"
  13553. @click="
  13554. openCocoPi(
  13555. 57,
  13556. commentIndexJson.toolIndex,
  13557. commentDetail.userid,
  13558. commentDetail.sName
  13559. )
  13560. "
  13561. >
  13562. <img src="../../assets/icon/codeFile.png" />
  13563. <div>点击打开CocoPi</div>
  13564. </div>
  13565. <div
  13566. class="worksAnswer"
  13567. v-if="commentDetail.works && commentDetail.type == 13"
  13568. >
  13569. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13570. </div>
  13571. <div class="scoreBox">
  13572. <span class="t">请输入分数</span>
  13573. <el-input-number
  13574. :disabled="courseDetail.userid != userid"
  13575. v-model="wScore"
  13576. :controls="false"
  13577. :min="0"
  13578. :max="100"
  13579. ></el-input-number>
  13580. </div>
  13581. <div class="scoreDetailBox">
  13582. <span class="t">评分评论</span>
  13583. <el-input
  13584. type="textarea"
  13585. :rows="5"
  13586. :disabled="courseDetail.userid != userid"
  13587. resize="none"
  13588. v-model="scoreDetail"
  13589. placeholder="请输入对学生的评价"
  13590. >
  13591. </el-input>
  13592. </div>
  13593. </div>
  13594. <span slot="footer" class="dialog-footer">
  13595. <el-button
  13596. @click="
  13597. (dialogVisibleScore = false),
  13598. (commentIndexJson = {}),
  13599. videoDetail.sources && videoDetail.sources[0]
  13600. ? (videoDetail.sources[0].src = '')
  13601. : ''
  13602. "
  13603. >取 消</el-button
  13604. >
  13605. <el-button
  13606. type="primary"
  13607. v-if="courseDetail.userid == userid"
  13608. @click="scoreWork(commentDetail.wid, commentDetail.sName)"
  13609. >确 定
  13610. </el-button>
  13611. </span>
  13612. </el-dialog>
  13613. <el-dialog
  13614. title="排序"
  13615. :visible.sync="dialogVisibleSentence"
  13616. :append-to-body="true"
  13617. width="1000px"
  13618. :before-close="handleClose"
  13619. class="dialog_diy dialog_diy3"
  13620. >
  13621. <div>
  13622. <div class="sentenBox">
  13623. <div
  13624. v-for="(st, stIndex) in sentenceList"
  13625. :key="stIndex"
  13626. style="padding-bottom: 20px"
  13627. >
  13628. <div
  13629. style="padding: 15px 0 10px 20px"
  13630. class="sentenceTitle"
  13631. :index="stIndex + 1"
  13632. >
  13633. 题目{{ stIndex + 1 }}:请选择正确顺序
  13634. </div>
  13635. <div class="cardList" v-if="st.chooseSenList">
  13636. <div class="cardBox">
  13637. <div
  13638. v-for="(r, rIndex) in st.chooseSenList"
  13639. :key="rIndex"
  13640. @click="returnCard(r, stIndex, rIndex)"
  13641. >
  13642. <el-tooltip
  13643. class="item"
  13644. effect="light"
  13645. :content="r"
  13646. placement="top"
  13647. v-if="r != '' && r != undefined"
  13648. >
  13649. <div
  13650. :class="{
  13651. isCard: r,
  13652. isChooseCard: r == '' || r == undefined
  13653. }"
  13654. >
  13655. <div>{{ r }}</div>
  13656. </div>
  13657. </el-tooltip>
  13658. <div
  13659. :class="{
  13660. isCard: r,
  13661. isChooseCard: r == '' || r == undefined
  13662. }"
  13663. v-else
  13664. >
  13665. <div>{{ r }}</div>
  13666. </div>
  13667. </div>
  13668. </div>
  13669. </div>
  13670. <div class="cardList" v-if="st.addChangeSen">
  13671. <div class="cardBox">
  13672. <div
  13673. v-for="(s, sIndex) in st.addChangeSen"
  13674. :key="sIndex"
  13675. @click="setRightAnswer(s, stIndex, sIndex)"
  13676. >
  13677. <el-tooltip
  13678. class="item"
  13679. effect="light"
  13680. :content="s"
  13681. placement="top"
  13682. v-if="s != '' && s != undefined"
  13683. >
  13684. <div
  13685. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13686. >
  13687. <div>{{ s }}</div>
  13688. </div>
  13689. </el-tooltip>
  13690. <div
  13691. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13692. v-else
  13693. >
  13694. <div>{{ s }}</div>
  13695. </div>
  13696. </div>
  13697. </div>
  13698. </div>
  13699. </div>
  13700. </div>
  13701. </div>
  13702. <span slot="footer" class="dialog-footer">
  13703. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  13704. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  13705. </span>
  13706. </el-dialog>
  13707. <el-dialog
  13708. title="排序"
  13709. :visible.sync="dialogVisibleSentenceTeacher"
  13710. :append-to-body="true"
  13711. width="1000px"
  13712. :before-close="handleClose"
  13713. class="dialog_diy dialog_diy3"
  13714. >
  13715. <div>
  13716. <div class="w_name">
  13717. 学生姓名:<span>{{ sStudent.student }}</span>
  13718. </div>
  13719. <div class="sentenBox">
  13720. <div
  13721. v-for="(st, stIndex) in sentenceList"
  13722. :key="stIndex"
  13723. style="padding-bottom: 20px"
  13724. >
  13725. <div
  13726. style="padding: 15px 0 10px 20px"
  13727. class="sentenceTitle"
  13728. :index="stIndex + 1"
  13729. >
  13730. 题目{{ stIndex + 1 }}:请选择正确顺序
  13731. </div>
  13732. <div class="cardList" v-if="st.chooseSenList">
  13733. <div class="cardBox">
  13734. <div
  13735. v-for="(r, rIndex) in st.chooseSenList"
  13736. :key="rIndex"
  13737. @click="returnCard(r, stIndex, rIndex)"
  13738. >
  13739. <el-tooltip
  13740. class="item"
  13741. effect="light"
  13742. :content="r"
  13743. placement="top"
  13744. v-if="r != '' && r != undefined"
  13745. >
  13746. <div
  13747. :class="{
  13748. isCard: r,
  13749. isChooseCard: r == '' || r == undefined
  13750. }"
  13751. >
  13752. <div>{{ r }}</div>
  13753. </div>
  13754. </el-tooltip>
  13755. <div
  13756. :class="{
  13757. isCard: r,
  13758. isChooseCard: r == '' || r == undefined
  13759. }"
  13760. v-else
  13761. >
  13762. <div>{{ r }}</div>
  13763. </div>
  13764. </div>
  13765. </div>
  13766. </div>
  13767. <div class="cardList" v-if="st.addChangeSen">
  13768. <div class="cardBox">
  13769. <div
  13770. v-for="(s, sIndex) in st.addChangeSen"
  13771. :key="sIndex"
  13772. @click="setRightAnswer(s, stIndex, sIndex)"
  13773. >
  13774. <el-tooltip
  13775. class="item"
  13776. effect="light"
  13777. :content="s"
  13778. placement="top"
  13779. v-if="s != '' && s != undefined"
  13780. >
  13781. <div
  13782. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13783. >
  13784. <div>{{ s }}</div>
  13785. </div>
  13786. </el-tooltip>
  13787. <div
  13788. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13789. v-else
  13790. >
  13791. <div>{{ s }}</div>
  13792. </div>
  13793. </div>
  13794. </div>
  13795. </div>
  13796. </div>
  13797. </div>
  13798. </div>
  13799. <span slot="footer" class="dialog-footer">
  13800. <el-button @click="dialogVisibleSentenceTeacher = false"
  13801. >取 消</el-button
  13802. >
  13803. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  13804. </span>
  13805. </el-dialog>
  13806. <el-dialog
  13807. title="排序"
  13808. :visible.sync="dialogVisibleSentence1"
  13809. :append-to-body="true"
  13810. width="1000px"
  13811. :before-close="handleClose"
  13812. class="dialog_diy dialog_diy3"
  13813. >
  13814. <div>
  13815. <div class="sentenBox">
  13816. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13817. {{ sentenceList1.stuName }}的作业
  13818. </div>
  13819. <div
  13820. v-for="(st, stIndex) in sentenceList1"
  13821. :key="stIndex"
  13822. style="padding-bottom: 20px"
  13823. >
  13824. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13825. 第{{ stIndex + 1 }}题
  13826. </div>
  13827. <div class="isWrong">
  13828. <div class="cardList1" v-if="st.chooseSenList">
  13829. <div class="cardBox">
  13830. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  13831. <el-tooltip
  13832. class="item"
  13833. effect="light"
  13834. :content="s"
  13835. placement="top"
  13836. >
  13837. <div class="isCard">
  13838. <div>{{ s }}</div>
  13839. </div>
  13840. </el-tooltip>
  13841. </div>
  13842. </div>
  13843. <div class="cardAnswerBox">
  13844. 组成句子:{{ st.chooseSenList.join(" ") }}
  13845. </div>
  13846. </div>
  13847. <div v-if="tType == 2" class="isTj">
  13848. <div class="isTjImg">
  13849. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13850. </div>
  13851. <div>已提交</div>
  13852. </div>
  13853. <div
  13854. class="answerRight isTj"
  13855. v-if="
  13856. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  13857. (tType == 1 || tType == 4)
  13858. "
  13859. >
  13860. <div class="isTjImg">
  13861. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13862. </div>
  13863. <div>回答正确</div>
  13864. </div>
  13865. <div
  13866. class="answerRight isTj"
  13867. v-if="
  13868. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13869. (tType == 1 || tType == 4)
  13870. "
  13871. >
  13872. <div class="isTjImg">
  13873. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  13874. </div>
  13875. <div>回答错误</div>
  13876. </div>
  13877. </div>
  13878. <div
  13879. v-if="
  13880. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13881. (tType == 1 || tType == 4)
  13882. "
  13883. >
  13884. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  13885. <div
  13886. class="cardList"
  13887. v-if="st.rightAnswer"
  13888. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  13889. >
  13890. <div class="cardBox">
  13891. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  13892. <el-tooltip
  13893. class="item"
  13894. effect="light"
  13895. :content="r"
  13896. placement="top"
  13897. >
  13898. <div class="isCard1">
  13899. <div>{{ r }}</div>
  13900. </div>
  13901. </el-tooltip>
  13902. </div>
  13903. </div>
  13904. <div class="cardAnswerBox">
  13905. 组成句子:{{ st.rightAnswer.join(" ") }}
  13906. </div>
  13907. </div>
  13908. </div>
  13909. </div>
  13910. </div>
  13911. </div>
  13912. <span slot="footer" class="dialog-footer">
  13913. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  13914. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  13915. >确 定</el-button
  13916. >
  13917. </span>
  13918. </el-dialog>
  13919. <el-dialog
  13920. title="教师提交作业"
  13921. :visible.sync="dialogVisibleWorks"
  13922. :append-to-body="true"
  13923. width="500px"
  13924. :before-close="handleClose"
  13925. class="dialog_change"
  13926. >
  13927. <div class="marginT">
  13928. <div class="w_name">
  13929. 学生姓名:<span>{{ sStudent.student }}</span>
  13930. </div>
  13931. <div>上传文件</div>
  13932. <div
  13933. class="chapter_add"
  13934. @click="addImg($event)"
  13935. v-if="studyJuri[0].cover.length == 0"
  13936. >
  13937. <div class="up_photo">
  13938. <img src="../../assets/uploadImg2.png" alt />
  13939. </div>
  13940. <!-- <input
  13941. type="file"
  13942. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  13943. style="display: none"
  13944. @change="beforeUpload1($event, 1)"
  13945. /> -->
  13946. <input
  13947. type="file"
  13948. accept="*"
  13949. style="display: none"
  13950. @change="beforeUpload1($event, 1)"
  13951. />
  13952. </div>
  13953. <!-- capture="camera" -->
  13954. <div
  13955. class="chapter_add"
  13956. style="
  13957. display: flex;
  13958. width: 100%;
  13959. flex-direction: row;
  13960. flex-wrap: wrap;
  13961. justify-content: flex-start;
  13962. padding: 15px 0;
  13963. "
  13964. v-if="studyJuri[0].cover.length > 0"
  13965. >
  13966. <div class="upCover">
  13967. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  13968. <img :src="word" alt v-else-if="fileType == 1" />
  13969. <img :src="video" alt v-else-if="fileType == 2" />
  13970. <img :src="word2" alt v-else-if="fileType == 3" />
  13971. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  13972. <div class="deleteWord" @click="clean(1)">
  13973. <img src="../../assets/icon/deleteWorks.png" alt />
  13974. </div>
  13975. </div>
  13976. </div>
  13977. </div>
  13978. <div
  13979. class="upload_send"
  13980. @click="addCourseWorksTeacher(taskCount)"
  13981. v-if="!proVisible"
  13982. >
  13983. 提交
  13984. </div>
  13985. </el-dialog>
  13986. <ImgDraw
  13987. :drawShow="drawShow"
  13988. @closeDraw="closeDraw"
  13989. @addImgDraw="addImgDraw"
  13990. :bg="bg"
  13991. ></ImgDraw>
  13992. <el-dialog
  13993. title="表格"
  13994. :visible.sync="dialogVisibleTable"
  13995. :append-to-body="true"
  13996. width="95%"
  13997. :before-close="handleClose"
  13998. class="dialog_diy"
  13999. >
  14000. <el-form>
  14001. <div
  14002. style="
  14003. display: flex;
  14004. align-items: center;
  14005. justify-content: space-between;
  14006. "
  14007. >
  14008. <span>表格内容</span>
  14009. <el-button type="primary" size="small" @click="returnTableText"
  14010. >还原模板</el-button
  14011. >
  14012. </div>
  14013. <Table
  14014. v-model="tableJson.text"
  14015. @change="change"
  14016. v-if="dialogVisibleTable"
  14017. ></Table>
  14018. </el-form>
  14019. <span slot="footer" class="dialog-footer">
  14020. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14021. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14022. </span>
  14023. </el-dialog>
  14024. <el-dialog
  14025. title="表格"
  14026. :visible.sync="dialogVisibleTableTeacher"
  14027. :append-to-body="true"
  14028. width="95%"
  14029. :before-close="handleClose"
  14030. class="dialog_diy"
  14031. >
  14032. <el-form>
  14033. <div class="w_name">
  14034. 学生姓名:<span>{{ sStudent.student }}</span>
  14035. </div>
  14036. <div>表格内容</div>
  14037. <Table
  14038. v-model="tableJson.text"
  14039. @change="change"
  14040. v-if="dialogVisibleTableTeacher"
  14041. ></Table>
  14042. </el-form>
  14043. <span slot="footer" class="dialog-footer">
  14044. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14045. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14046. </span>
  14047. </el-dialog>
  14048. <el-dialog
  14049. title="文档"
  14050. :visible.sync="dialogVisibleWord"
  14051. :append-to-body="true"
  14052. width="95%"
  14053. :before-close="handleClose"
  14054. class="dialog_diy"
  14055. >
  14056. <el-form>
  14057. <div
  14058. style="
  14059. display: flex;
  14060. align-items: center;
  14061. justify-content: space-between;
  14062. "
  14063. >
  14064. <span>文档内容</span>
  14065. <el-button type="primary" size="small" @click="returnWordText"
  14066. >还原模板</el-button
  14067. >
  14068. </div>
  14069. <editor-bar
  14070. v-model="wordJson.text"
  14071. v-if="dialogVisibleWord"
  14072. ></editor-bar>
  14073. </el-form>
  14074. <span slot="footer" class="dialog-footer">
  14075. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14076. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14077. </span>
  14078. </el-dialog>
  14079. <el-dialog
  14080. title="文档"
  14081. :visible.sync="dialogVisibleWordTeacher"
  14082. :append-to-body="true"
  14083. width="95%"
  14084. :before-close="handleClose"
  14085. class="dialog_diy"
  14086. >
  14087. <el-form>
  14088. <div class="w_name">
  14089. 学生姓名:<span>{{ sStudent.student }}</span>
  14090. </div>
  14091. <div>文档内容</div>
  14092. <editor-bar
  14093. v-model="wordJson.text"
  14094. v-if="dialogVisibleWordTeacher"
  14095. ></editor-bar>
  14096. </el-form>
  14097. <span slot="footer" class="dialog-footer">
  14098. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14099. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14100. </span>
  14101. </el-dialog>
  14102. <el-dialog
  14103. title="表格"
  14104. :visible.sync="dialogVisibleTable2"
  14105. :append-to-body="true"
  14106. width="95%"
  14107. :before-close="handleClose"
  14108. class="dialog_diy"
  14109. >
  14110. <el-form>
  14111. <div class="cont" v-html="tableJson.text"></div>
  14112. </el-form>
  14113. <span slot="footer" class="dialog-footer">
  14114. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14115. </span>
  14116. </el-dialog>
  14117. <el-dialog
  14118. title="文档"
  14119. :visible.sync="dialogVisibleTable3"
  14120. :append-to-body="true"
  14121. width="95%"
  14122. :before-close="handleClose"
  14123. class="dialog_diy"
  14124. >
  14125. <el-form>
  14126. <div class="cont" v-html="tableJson.text"></div>
  14127. </el-form>
  14128. <span slot="footer" class="dialog-footer">
  14129. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14130. </span>
  14131. </el-dialog>
  14132. <el-dialog
  14133. title="分组设置"
  14134. :visible.sync="dialogVisibleGroup"
  14135. :append-to-body="true"
  14136. width="95%"
  14137. :before-close="handleClose"
  14138. class="dialog_diy"
  14139. >
  14140. <div v-if="dialogVisibleGroup">
  14141. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14142. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14143. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14144. </div>
  14145. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14146. @click="lockChair">
  14147. 锁定位置
  14148. </div>
  14149. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14150. 解锁位置
  14151. </div> -->
  14152. <div class="group_switch">
  14153. <span>开放选座</span>
  14154. <el-switch
  14155. v-model="islock"
  14156. active-text=""
  14157. class="switchCss"
  14158. @change="lockChair"
  14159. ></el-switch>
  14160. </div>
  14161. <div
  14162. type="primary"
  14163. @click="updateGroup"
  14164. class="returnBtn"
  14165. style="background-color: #225bc7"
  14166. >
  14167. 分组设置
  14168. </div>
  14169. </div>
  14170. <div>
  14171. <div
  14172. class="g_d_box"
  14173. v-if="groupJson.group && groupStudent[toolindex]"
  14174. >
  14175. <div
  14176. class="g_d_group"
  14177. v-for="(g, gindex) in groupJson.group"
  14178. :key="gindex"
  14179. >
  14180. <div class="g_d_group_chair">
  14181. <div v-if="groupJson.number > 1">
  14182. <span
  14183. :class="{
  14184. isChair:
  14185. groupStudent[toolindex][gindex] &&
  14186. groupStudent[toolindex][gindex][0],
  14187. updateChair:
  14188. courseDetail.userid == userid &&
  14189. groupStudent[toolindex][gindex] &&
  14190. groupStudent[toolindex][gindex][0] &&
  14191. groupJson.islock == 2
  14192. }"
  14193. ><span
  14194. class="updateChairBtn"
  14195. @click="
  14196. updateGroupChair(
  14197. groupStudent[toolindex][gindex] &&
  14198. groupStudent[toolindex][gindex][0]
  14199. )
  14200. "
  14201. >修改</span
  14202. ></span
  14203. ><span>{{
  14204. groupStudent[toolindex][gindex] &&
  14205. groupStudent[toolindex][gindex][0]
  14206. ? groupStudent[toolindex][gindex] &&
  14207. groupStudent[toolindex][gindex][0].name
  14208. : "空位置"
  14209. }}</span>
  14210. </div>
  14211. <div v-if="groupJson.number > 4">
  14212. <span
  14213. :class="{
  14214. isChair:
  14215. groupStudent[toolindex][gindex] &&
  14216. groupStudent[toolindex][gindex][4],
  14217. updateChair:
  14218. courseDetail.userid == userid &&
  14219. groupStudent[toolindex][gindex] &&
  14220. groupStudent[toolindex][gindex][4] &&
  14221. groupJson.islock == 2
  14222. }"
  14223. ><span
  14224. class="updateChairBtn"
  14225. @click="
  14226. updateGroupChair(
  14227. groupStudent[toolindex][gindex] &&
  14228. groupStudent[toolindex][gindex][4]
  14229. )
  14230. "
  14231. >修改</span
  14232. ></span
  14233. ><span>{{
  14234. groupStudent[toolindex][gindex] &&
  14235. groupStudent[toolindex][gindex][4]
  14236. ? groupStudent[toolindex][gindex] &&
  14237. groupStudent[toolindex][gindex][4].name
  14238. : "空位置"
  14239. }}</span>
  14240. </div>
  14241. <div v-if="groupJson.number > 8">
  14242. <span
  14243. :class="{
  14244. isChair:
  14245. groupStudent[toolindex][gindex] &&
  14246. groupStudent[toolindex][gindex][8],
  14247. updateChair:
  14248. courseDetail.userid == userid &&
  14249. groupStudent[toolindex][gindex] &&
  14250. groupStudent[toolindex][gindex][8] &&
  14251. groupJson.islock == 2
  14252. }"
  14253. ><span
  14254. class="updateChairBtn"
  14255. @click="
  14256. updateGroupChair(
  14257. groupStudent[toolindex][gindex] &&
  14258. groupStudent[toolindex][gindex][8]
  14259. )
  14260. "
  14261. >修改</span
  14262. ></span
  14263. ><span>{{
  14264. groupStudent[toolindex][gindex] &&
  14265. groupStudent[toolindex][gindex][8]
  14266. ? groupStudent[toolindex][gindex] &&
  14267. groupStudent[toolindex][gindex][8].name
  14268. : "空位置"
  14269. }}</span>
  14270. </div>
  14271. </div>
  14272. <div class="g_d_group_tableBox">
  14273. <div class="g_d_group_chair2">
  14274. <div v-if="groupJson.number > 2">
  14275. <span
  14276. :class="{
  14277. isChair:
  14278. groupStudent[toolindex][gindex] &&
  14279. groupStudent[toolindex][gindex][2],
  14280. updateChair:
  14281. courseDetail.userid == userid &&
  14282. groupStudent[toolindex][gindex] &&
  14283. groupStudent[toolindex][gindex][2] &&
  14284. groupJson.islock == 2
  14285. }"
  14286. ><span
  14287. class="updateChairBtn"
  14288. @click="
  14289. updateGroupChair(
  14290. groupStudent[toolindex][gindex] &&
  14291. groupStudent[toolindex][gindex][2]
  14292. )
  14293. "
  14294. >修改</span
  14295. ></span
  14296. ><span>{{
  14297. groupStudent[toolindex][gindex] &&
  14298. groupStudent[toolindex][gindex][2]
  14299. ? groupStudent[toolindex][gindex] &&
  14300. groupStudent[toolindex][gindex][2].name
  14301. : "空位置"
  14302. }}</span>
  14303. </div>
  14304. <div v-if="groupJson.number > 6">
  14305. <span
  14306. :class="{
  14307. isChair:
  14308. groupStudent[toolindex][gindex] &&
  14309. groupStudent[toolindex][gindex][6],
  14310. updateChair:
  14311. courseDetail.userid == userid &&
  14312. groupStudent[toolindex][gindex] &&
  14313. groupStudent[toolindex][gindex][6] &&
  14314. groupJson.islock == 2
  14315. }"
  14316. ><span
  14317. class="updateChairBtn"
  14318. @click="
  14319. updateGroupChair(
  14320. groupStudent[toolindex][gindex] &&
  14321. groupStudent[toolindex][gindex][6]
  14322. )
  14323. "
  14324. >修改</span
  14325. ></span
  14326. ><span>{{
  14327. groupStudent[toolindex][gindex] &&
  14328. groupStudent[toolindex][gindex][6]
  14329. ? groupStudent[toolindex][gindex] &&
  14330. groupStudent[toolindex][gindex][6].name
  14331. : "空位置"
  14332. }}</span>
  14333. </div>
  14334. </div>
  14335. <div class="g_d_group_table">
  14336. <div>
  14337. {{ g.name }}
  14338. </div>
  14339. <div>
  14340. <div
  14341. v-if="
  14342. courseDetail.userid == userid && groupJson.islock == 2
  14343. "
  14344. @click="deleteGroupChair(gindex)"
  14345. >
  14346. 移除组员
  14347. </div>
  14348. <div
  14349. @click="selectGroup(gindex)"
  14350. v-else-if="
  14351. groupStudentUid[toolindex] &&
  14352. groupStudentUid[toolindex][gindex].indexOf(userid) ==
  14353. -1
  14354. "
  14355. >
  14356. 加入分组
  14357. </div>
  14358. <div
  14359. @click="
  14360. exitGroup(
  14361. groupStudent[toolindex][gindex] &&
  14362. groupStudent[toolindex][gindex][
  14363. groupStudentUid[toolindex][gindex].indexOf(userid)
  14364. ].id
  14365. )
  14366. "
  14367. v-else-if="
  14368. groupStudentUid[toolindex] &&
  14369. groupStudentUid[toolindex][gindex].indexOf(userid) !=
  14370. -1
  14371. "
  14372. >
  14373. 退出分组
  14374. </div>
  14375. </div>
  14376. </div>
  14377. <div class="g_d_group_chair2">
  14378. <div v-if="groupJson.number > 3">
  14379. <span
  14380. :class="{
  14381. isChair:
  14382. groupStudent[toolindex][gindex] &&
  14383. groupStudent[toolindex][gindex][3],
  14384. updateChair:
  14385. courseDetail.userid == userid &&
  14386. groupStudent[toolindex][gindex] &&
  14387. groupStudent[toolindex][gindex][3] &&
  14388. groupJson.islock == 2
  14389. }"
  14390. ><span
  14391. class="updateChairBtn"
  14392. @click="
  14393. updateGroupChair(
  14394. groupStudent[toolindex][gindex] &&
  14395. groupStudent[toolindex][gindex][3]
  14396. )
  14397. "
  14398. >修改</span
  14399. ></span
  14400. ><span>{{
  14401. groupStudent[toolindex][gindex] &&
  14402. groupStudent[toolindex][gindex][3]
  14403. ? groupStudent[toolindex][gindex] &&
  14404. groupStudent[toolindex][gindex][3].name
  14405. : "空位置"
  14406. }}</span>
  14407. </div>
  14408. <div v-if="groupJson.number > 7">
  14409. <span
  14410. :class="{
  14411. isChair:
  14412. groupStudent[toolindex][gindex] &&
  14413. groupStudent[toolindex][gindex][7],
  14414. updateChair:
  14415. courseDetail.userid == userid &&
  14416. groupStudent[toolindex][gindex] &&
  14417. groupStudent[toolindex][gindex][7] &&
  14418. groupJson.islock == 2
  14419. }"
  14420. ><span
  14421. class="updateChairBtn"
  14422. @click="
  14423. updateGroupChair(
  14424. groupStudent[toolindex][gindex] &&
  14425. groupStudent[toolindex][gindex][7]
  14426. )
  14427. "
  14428. >修改</span
  14429. ></span
  14430. ><span>{{
  14431. groupStudent[toolindex][gindex] &&
  14432. groupStudent[toolindex][gindex][7]
  14433. ? groupStudent[toolindex][gindex] &&
  14434. groupStudent[toolindex][gindex][7].name
  14435. : "空位置"
  14436. }}</span>
  14437. </div>
  14438. </div>
  14439. </div>
  14440. <div class="g_d_group_chair">
  14441. <div v-if="groupJson.number > 1">
  14442. <span
  14443. :class="{
  14444. isChair:
  14445. groupStudent[toolindex][gindex] &&
  14446. groupStudent[toolindex][gindex][1],
  14447. updateChair:
  14448. courseDetail.userid == userid &&
  14449. groupStudent[toolindex][gindex] &&
  14450. groupStudent[toolindex][gindex][1] &&
  14451. groupJson.islock == 2
  14452. }"
  14453. ><span
  14454. class="updateChairBtn"
  14455. @click="
  14456. updateGroupChair(
  14457. groupStudent[toolindex][gindex] &&
  14458. groupStudent[toolindex][gindex][1]
  14459. )
  14460. "
  14461. >修改</span
  14462. ></span
  14463. ><span>{{
  14464. groupStudent[toolindex][gindex] &&
  14465. groupStudent[toolindex][gindex][1]
  14466. ? groupStudent[toolindex][gindex] &&
  14467. groupStudent[toolindex][gindex][1].name
  14468. : "空位置"
  14469. }}</span>
  14470. </div>
  14471. <div v-if="groupJson.number > 5">
  14472. <span
  14473. :class="{
  14474. isChair:
  14475. groupStudent[toolindex][gindex] &&
  14476. groupStudent[toolindex][gindex][5],
  14477. updateChair:
  14478. courseDetail.userid == userid &&
  14479. groupStudent[toolindex][gindex] &&
  14480. groupStudent[toolindex][gindex][5] &&
  14481. groupJson.islock == 2
  14482. }"
  14483. ><span
  14484. class="updateChairBtn"
  14485. @click="
  14486. updateGroupChair(
  14487. groupStudent[toolindex][gindex] &&
  14488. groupStudent[toolindex][gindex][5]
  14489. )
  14490. "
  14491. >修改</span
  14492. ></span
  14493. ><span>{{
  14494. groupStudent[toolindex][gindex] &&
  14495. groupStudent[toolindex][gindex][5]
  14496. ? groupStudent[toolindex][gindex] &&
  14497. groupStudent[toolindex][gindex][5].name
  14498. : "空位置"
  14499. }}</span>
  14500. </div>
  14501. <div v-if="groupJson.number > 9">
  14502. <span
  14503. :class="{
  14504. isChair:
  14505. groupStudent[toolindex][gindex] &&
  14506. groupStudent[toolindex][gindex][9],
  14507. updateChair:
  14508. courseDetail.userid == userid &&
  14509. groupStudent[toolindex][gindex] &&
  14510. groupStudent[toolindex][gindex][9] &&
  14511. groupJson.islock == 2
  14512. }"
  14513. ><span
  14514. class="updateChairBtn"
  14515. @click="
  14516. updateGroupChair(
  14517. groupStudent[toolindex][gindex] &&
  14518. groupStudent[toolindex][gindex][9]
  14519. )
  14520. "
  14521. >修改</span
  14522. ></span
  14523. ><span>{{
  14524. groupStudent[toolindex][gindex] &&
  14525. groupStudent[toolindex][gindex][9]
  14526. ? groupStudent[toolindex][gindex] &&
  14527. groupStudent[toolindex][gindex][9].name
  14528. : "空位置"
  14529. }}</span>
  14530. </div>
  14531. </div>
  14532. </div>
  14533. </div>
  14534. </div>
  14535. </div>
  14536. <span slot="footer" class="dialog-footer">
  14537. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14538. </span>
  14539. </el-dialog>
  14540. <el-dialog
  14541. title="分组设置"
  14542. :visible.sync="dialogVisibleGroup2"
  14543. :append-to-body="true"
  14544. width="650px"
  14545. :before-close="handleClose"
  14546. class="dialog_diy"
  14547. >
  14548. <div class="groupBox">
  14549. <div v-if="groupJson2.group" class="groupContent">
  14550. <div class="groupTitle">请设置小组数量及名称</div>
  14551. <div
  14552. v-for="(item, index) in groupJson2.group"
  14553. :key="index"
  14554. class="groupName"
  14555. >
  14556. <span class="groupn">第{{ index + 1 }}组名称:</span>
  14557. <el-input
  14558. v-model="item.name"
  14559. placeholder="请输入名称..."
  14560. style="width: 250px"
  14561. ></el-input>
  14562. <!-- <div class="groupBtn">
  14563. <el-button type="primary" size="small" @click="addGroup(index)">
  14564. 添加</el-button>
  14565. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14566. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14567. </div> -->
  14568. </div>
  14569. </div>
  14570. <div class="groupContent">
  14571. <div class="groupTitle">请设置每组人数</div>
  14572. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14573. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14574. <el-input
  14575. v-model="groupJson.number"
  14576. style="width: 150px"
  14577. placeholder="请输入2-10的数字"
  14578. @change="numberPan"
  14579. ></el-input>
  14580. </div>
  14581. </div>
  14582. <span slot="footer" class="dialog-footer">
  14583. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  14584. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  14585. </span>
  14586. </el-dialog>
  14587. <el-dialog
  14588. title="作业提交"
  14589. :visible.sync="dialogVisibleGroupWork"
  14590. :append-to-body="true"
  14591. width="500px"
  14592. :before-close="handleClose"
  14593. class="dialog_change"
  14594. >
  14595. <div class="marginT">
  14596. <div>上传文件</div>
  14597. <div
  14598. class="chapter_add"
  14599. @click="addImg($event)"
  14600. v-if="studyJuri[0].cover.length == 0"
  14601. >
  14602. <div class="up_photo">
  14603. <img src="../../assets/icon/uploadImg.png" alt />
  14604. </div>
  14605. <!-- <input
  14606. type="file"
  14607. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14608. style="display: none"
  14609. @change="beforeUpload1($event, 1)"
  14610. /> -->
  14611. <input
  14612. type="file"
  14613. accept="*"
  14614. style="display: none"
  14615. @change="beforeUpload1($event, 1)"
  14616. />
  14617. </div>
  14618. <!-- capture="camera" -->
  14619. <div
  14620. class="chapter_add"
  14621. style="
  14622. display: flex;
  14623. width: 100%;
  14624. flex-direction: row;
  14625. flex-wrap: wrap;
  14626. justify-content: flex-start;
  14627. padding: 15px 0;
  14628. "
  14629. v-if="studyJuri[0].cover.length > 0"
  14630. >
  14631. <div class="upCover">
  14632. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14633. <img :src="word" alt v-else-if="fileType == 1" />
  14634. <img :src="video" alt v-else-if="fileType == 2" />
  14635. <img :src="word2" alt v-else-if="fileType == 3" />
  14636. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14637. <div class="deleteWord" @click="clean(1)">
  14638. <img src="../../assets/icon/deleteWorks.png" alt />
  14639. </div>
  14640. </div>
  14641. </div>
  14642. </div>
  14643. <div
  14644. class="upload_send"
  14645. @click="addCourseWorks2(taskCount)"
  14646. v-if="!proVisible"
  14647. >
  14648. 提交
  14649. </div>
  14650. </el-dialog>
  14651. <el-dialog
  14652. title="修改分组"
  14653. :visible.sync="dialogVisibleUpdateGroup"
  14654. :append-to-body="true"
  14655. width="350px"
  14656. :before-close="handleClose"
  14657. class="dialog_diy"
  14658. >
  14659. <div>
  14660. <h2>
  14661. {{ this.updateGroupUser.name }}
  14662. </h2>
  14663. <div style="color: rgb(171 171 171); margin-top: 10px">
  14664. 请选择要进入的分组
  14665. </div>
  14666. <el-radio-group v-model="checkChair">
  14667. <el-radio
  14668. style="display: block; margin-top: 20px"
  14669. v-for="(item, index) in updateGroupArray"
  14670. :label="item.label"
  14671. :key="index"
  14672. >{{ item.name }}</el-radio
  14673. >
  14674. </el-radio-group>
  14675. </div>
  14676. <span slot="footer" class="dialog-footer">
  14677. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  14678. <el-button type="primary" @click="updateChair">确定</el-button>
  14679. </span>
  14680. </el-dialog>
  14681. <el-dialog
  14682. title="移除组员"
  14683. :visible.sync="dialogVisibleDeleteGroup"
  14684. :append-to-body="true"
  14685. width="350px"
  14686. :before-close="handleClose"
  14687. class="dialog_diy"
  14688. >
  14689. <div>
  14690. <h2>
  14691. {{ this.deleteGroupArray.name }}
  14692. </h2>
  14693. <div style="color: rgb(171 171 171); margin-top: 10px">
  14694. 请选择要删除的组员
  14695. </div>
  14696. <el-checkbox-group v-model="checkDeleteGroup">
  14697. <el-checkbox
  14698. style="display: flex; margin-top: 20px"
  14699. v-for="(item, index) in deleteGroupUser"
  14700. :label="item.userid"
  14701. :key="index"
  14702. >{{ item.name }}</el-checkbox
  14703. >
  14704. </el-checkbox-group>
  14705. </div>
  14706. <span slot="footer" class="dialog-footer">
  14707. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  14708. <el-button type="primary" @click="deleteChair">确定</el-button>
  14709. </span>
  14710. </el-dialog>
  14711. <el-dialog
  14712. title="批量上传"
  14713. :visible.sync="dialogVisiblePl"
  14714. :append-to-body="true"
  14715. width="700px"
  14716. :before-close="handleClose"
  14717. class="dialog_change"
  14718. >
  14719. <div class="marginT">
  14720. <div class="plworkBox">
  14721. <div
  14722. class="chapter_add"
  14723. style="
  14724. display: flex;
  14725. width: 150px;
  14726. flex-direction: row;
  14727. flex-wrap: wrap;
  14728. justify-content: flex-start;
  14729. margin: 0 10px 10px 0;
  14730. "
  14731. v-for="(item, index) in plworkFile"
  14732. :key="index"
  14733. >
  14734. <div class="upCover2">
  14735. <img
  14736. :src="item.url"
  14737. alt
  14738. v-if="item.fileType == 1"
  14739. @click="previewImg(item.url)"
  14740. />
  14741. <img :src="word" alt v-else-if="item.fileType == 4" />
  14742. <img :src="video" alt v-else />
  14743. <!-- <span class="picName">{{ item.name }}</span> -->
  14744. <!-- <el-input
  14745. v-model="item.username"
  14746. placeholder="请输入学生名字"
  14747. style="margin-top: 10px"
  14748. ></el-input> -->
  14749. <div
  14750. class="pl_select_box"
  14751. @click="
  14752. getUpdateMore(true, checkUpload(), item.username, index)
  14753. "
  14754. >
  14755. {{ getSName(item.username) }}
  14756. </div>
  14757. <!-- <el-select
  14758. style="margin-top: 10px"
  14759. v-model="item.username"
  14760. filterable
  14761. allow-create
  14762. placeholder="请选择学生"
  14763. >
  14764. <el-option
  14765. v-for="item1 in checkUpload()"
  14766. :key="item1.userid"
  14767. :label="item1.name ? item1.name : item1.username"
  14768. :value="item1.userid"
  14769. >
  14770. </el-option>
  14771. </el-select> -->
  14772. <div class="deleteWord" @click="clean2(index)">
  14773. <img src="../../assets/icon/deleteWorks.png" alt />
  14774. </div>
  14775. </div>
  14776. </div>
  14777. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14778. <div class="up_photo2">
  14779. <img src="../../assets/icon/plwork.png" alt />
  14780. <span>点击上传文件</span>
  14781. </div>
  14782. <input
  14783. type="file"
  14784. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14785. multiple="multiple"
  14786. style="display: none"
  14787. @change="beforeUpload3($event, 6)"
  14788. />
  14789. </div>
  14790. </div>
  14791. </div>
  14792. <!-- capture="camera" -->
  14793. <div
  14794. class="upload_send"
  14795. @click="addCourseWorksPl(taskCount)"
  14796. v-if="!proVisible2"
  14797. >
  14798. 提交
  14799. </div>
  14800. </el-dialog>
  14801. <el-dialog
  14802. title="修改名称"
  14803. :visible.sync="dialogVisibleSname"
  14804. width="500px"
  14805. :before-close="handleClose"
  14806. class="dialog_diy"
  14807. center
  14808. >
  14809. <div
  14810. style="
  14811. text-align: center;
  14812. display: flex;
  14813. align-items: center;
  14814. justify-content: center;
  14815. "
  14816. >
  14817. <span class="tian1">名称</span>
  14818. <div
  14819. class="pl_select_box"
  14820. style="margin-left: 10px; width: 200px"
  14821. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  14822. >
  14823. {{ getSName(worksSName) }}
  14824. </div>
  14825. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  14826. placeholder="请选择学生">
  14827. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  14828. :value="item.userid">
  14829. </el-option>
  14830. </el-select> -->
  14831. <!-- <el-input
  14832. v-model="worksSName"
  14833. style="width: 250px; margin: 15px 0px"
  14834. ></el-input> -->
  14835. </div>
  14836. <span slot="footer" class="dialog-footer">
  14837. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  14838. <el-button type="primary" @click="updateName">确 定</el-button>
  14839. </span>
  14840. </el-dialog>
  14841. <el-dialog
  14842. title="英语写作"
  14843. :visible.sync="engDialogVisible"
  14844. :append-to-body="true"
  14845. width="800px"
  14846. :before-close="handleClose"
  14847. class="dialog_diy"
  14848. >
  14849. <onlineWrite
  14850. v-if="engDialogVisible"
  14851. :englishList="englishList"
  14852. :myAnswerList1="myAnswerList1"
  14853. ref="engJson"
  14854. ></onlineWrite>
  14855. <span slot="footer" class="dialog-footer" style="text-align: center;">
  14856. <el-button @click="engDialogVisible = false">取 消</el-button>
  14857. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  14858. </span>
  14859. </el-dialog>
  14860. <el-dialog
  14861. title="英语写作"
  14862. :visible.sync="engUpdateDialogVisible"
  14863. :append-to-body="true"
  14864. width="800px"
  14865. :before-close="handleClose"
  14866. class="dialog_diy fullStyle"
  14867. >
  14868. <div class="engUpBox">
  14869. <div class="engUpTop">
  14870. <div class="engTitle">
  14871. <div>作文题目:</div>
  14872. <div>{{ englishList1.engTitle }}</div>
  14873. </div>
  14874. <div class="engText">
  14875. <div>作文内容:</div>
  14876. <div
  14877. class="cont"
  14878. v-html="englishList1.englishText"
  14879. style="white-space: pre-line;"
  14880. @click="checkImg(getImgList(englishList1.englishText))"
  14881. ></div>
  14882. </div>
  14883. </div>
  14884. <div
  14885. class="correctBox"
  14886. :style="{ height: `calc(100% - ${topHeight}px)` }"
  14887. >
  14888. <div class="oldBox">
  14889. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  14890. <div class="oldText">
  14891. <div class="detailBox">
  14892. <div class="oldDetail">
  14893. <div>标题:</div>
  14894. <div>{{ oldEnglishJson.engTitle }}</div>
  14895. </div>
  14896. <div class="oldDetail1">
  14897. <div>正文:</div>
  14898. <div
  14899. v-html="oldEnglishJson.engText"
  14900. style="white-space: pre-line;"
  14901. ></div>
  14902. </div>
  14903. <div
  14904. class="oldDetail"
  14905. v-if="
  14906. oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0
  14907. "
  14908. >
  14909. <div>图片:</div>
  14910. <div class="oldImg">
  14911. <img :src="oldEnglishJson.imgList[0].url" alt="" />
  14912. </div>
  14913. </div>
  14914. </div>
  14915. </div>
  14916. </div>
  14917. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  14918. <div class="oldMes" style="background: #aacaff;">
  14919. {{ userMes[0].username }}
  14920. </div>
  14921. <div class="oldText">
  14922. <div class="detailBox" style="position: relative;">
  14923. <div class="oldDetail">
  14924. <div>标题:</div>
  14925. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14926. <div v-else v-html="newEnglishList.engTitle"></div>
  14927. </div>
  14928. <div class="oldDetail">
  14929. <div>正文:</div>
  14930. <el-input
  14931. v-if="greyType"
  14932. type="textarea"
  14933. :rows="10"
  14934. resize="none"
  14935. v-model="newEnglishList.engText"
  14936. @input="gx"
  14937. />
  14938. <correctText
  14939. :newText="newEnglishList.engText"
  14940. :oldData="oldEnglishJson.engText"
  14941. />
  14942. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  14943. </div>
  14944. <div style="position: absolute;bottom: -25px;">
  14945. 注:红色划线字为删除,绿色背景白色字为新添加.
  14946. </div>
  14947. <el-button
  14948. @click="isUpdateCorrect(newEnglishList.engText, 1)"
  14949. class="correctCss"
  14950. :style="{ right: greyType == false ? '0' : '80px' }"
  14951. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  14952. >
  14953. <el-button
  14954. @click="aiCorrect(newEnglishList.engText, 1)"
  14955. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  14956. v-if="!greyType"
  14957. >AI批注</el-button
  14958. >
  14959. <el-button
  14960. @click="addCorrect"
  14961. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  14962. v-if="greyType"
  14963. >确定</el-button
  14964. >
  14965. </div>
  14966. </div>
  14967. </div>
  14968. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  14969. <div
  14970. class="oldMes"
  14971. style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;"
  14972. v-if="newEnglishList1.length > 0"
  14973. >
  14974. <div
  14975. v-if="isNoUserid"
  14976. class="allName"
  14977. :style="{
  14978. minWidth: `calc(100% / ${engListLength})`,
  14979. background: newEngIndex == -1 ? '#aacaff' : ''
  14980. }"
  14981. @click="setEngText(-1)"
  14982. style="background: #aacaff;"
  14983. >
  14984. {{ userMes[0].username }}
  14985. </div>
  14986. <div
  14987. v-for="(item, index) in newEnglishList1"
  14988. :key="index"
  14989. class="allName"
  14990. :style="{
  14991. minWidth: `calc(100% / ${engListLength})`,
  14992. background: index == newEngIndex ? '#aacaff' : ''
  14993. }"
  14994. @click="setEngText(index)"
  14995. >
  14996. {{ item.username }}
  14997. </div>
  14998. </div>
  14999. <div class="oldMes" style="background: #aacaff;" v-else>
  15000. {{ userMes[0].username }}
  15001. </div>
  15002. <div
  15003. class="oldText"
  15004. v-if="
  15005. newEngIndex == -1 &&
  15006. isNoUserid == true &&
  15007. newEnglishList1.length
  15008. "
  15009. >
  15010. <div class="detailBox" style="position: relative;">
  15011. <div class="oldDetail">
  15012. <div>标题:</div>
  15013. <el-input
  15014. v-if="greyType"
  15015. v-model="oldEnglishJson1.engTitle"
  15016. />
  15017. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15018. </div>
  15019. <div class="oldDetail">
  15020. <div>正文:</div>
  15021. <el-input
  15022. v-if="greyType"
  15023. type="textarea"
  15024. :rows="10"
  15025. resize="none"
  15026. v-model="oldEnglishJson1.engText"
  15027. @input="gx"
  15028. />
  15029. <correctText
  15030. v-else
  15031. :newText="oldEnglishJson1.engText"
  15032. :oldData="oldEnglishJson.engText"
  15033. />
  15034. </div>
  15035. <div style="position: absolute;bottom: -25px;">
  15036. 注:红色划线字为删除,绿色背景白色字为新添加.
  15037. </div>
  15038. <el-button
  15039. @click="isUpdateCorrect(oldEnglishJson1.engText, 2)"
  15040. class="correctCss"
  15041. :style="{ right: greyType == false ? '0' : '80px' }"
  15042. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15043. >
  15044. <el-button
  15045. @click="aiCorrect(oldEnglishJson1.engText, 2)"
  15046. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15047. v-if="!greyType"
  15048. >AI批注</el-button
  15049. >
  15050. <el-button
  15051. @click="addCorrect"
  15052. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15053. v-if="greyType"
  15054. >确定</el-button
  15055. >
  15056. </div>
  15057. </div>
  15058. <div class="oldText" v-else-if="newEngIndex == -1">
  15059. <div class="detailBox" style="position: relative;">
  15060. <div class="oldDetail">
  15061. <div>标题:</div>
  15062. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15063. <div v-else v-html="newEnglishList.engTitle"></div>
  15064. </div>
  15065. <div class="oldDetail">
  15066. <div>正文:</div>
  15067. <el-input
  15068. v-if="greyType"
  15069. type="textarea"
  15070. :rows="10"
  15071. resize="none"
  15072. v-model="newEnglishList.engText"
  15073. @input="gx"
  15074. />
  15075. <correctText
  15076. v-else
  15077. :newText="newEnglishList.engText"
  15078. :oldData="oldEnglishJson.engText"
  15079. />
  15080. </div>
  15081. <div style="position: absolute;bottom: -25px;">
  15082. 注:红色划线字为删除,绿色背景白色字为新添加.
  15083. </div>
  15084. <el-button
  15085. @click="isUpdateCorrect(newEnglishList.engText, 3)"
  15086. class="correctCss"
  15087. :style="{ right: greyType == false ? '0' : '80px' }"
  15088. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15089. >
  15090. <el-button
  15091. @click="aiCorrect(newEnglishList.engText, 3)"
  15092. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15093. v-if="!greyType"
  15094. >AI批注</el-button
  15095. >
  15096. <el-button
  15097. @click="addCorrect"
  15098. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15099. v-if="greyType"
  15100. >确定</el-button
  15101. >
  15102. </div>
  15103. </div>
  15104. <div
  15105. class="oldText"
  15106. v-else-if="newEngIndex > -1 && newEnglishList1.length > 0"
  15107. >
  15108. <div class="detailBox" style="position: relative;">
  15109. <div class="oldDetail">
  15110. <div>标题:</div>
  15111. <div
  15112. v-if="
  15113. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15114. "
  15115. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15116. ></div>
  15117. <div v-else>
  15118. <el-input
  15119. v-if="greyType"
  15120. v-model="newEnglishList1[newEngIndex].cWork.engTitle"
  15121. />
  15122. <div
  15123. v-else
  15124. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15125. ></div>
  15126. </div>
  15127. </div>
  15128. <div class="oldDetail">
  15129. <div>正文:</div>
  15130. <correctText
  15131. v-if="
  15132. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15133. "
  15134. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15135. :oldData="oldEnglishJson.engText"
  15136. />
  15137. <div v-else>
  15138. <el-input
  15139. v-if="greyType"
  15140. type="textarea"
  15141. :rows="10"
  15142. resize="none"
  15143. v-model="newEnglishList1[newEngIndex].cWork.engText"
  15144. @input="gx"
  15145. />
  15146. <correctText
  15147. v-else
  15148. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15149. :oldData="oldEnglishJson.engText"
  15150. />
  15151. </div>
  15152. </div>
  15153. <div style="position: absolute;bottom: -25px;">
  15154. 注:红色划线字为删除,绿色背景白色字为新添加.
  15155. </div>
  15156. <el-button
  15157. @click="
  15158. isUpdateCorrect(
  15159. newEnglishList1[newEngIndex].cWork.engText,
  15160. 4
  15161. )
  15162. "
  15163. class="correctCss"
  15164. :style="{ right: greyType == false ? '0' : '80px' }"
  15165. v-if="
  15166. !greyType &&
  15167. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15168. "
  15169. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15170. >
  15171. <el-button
  15172. @click="
  15173. aiCorrect(newEnglishList1[newEngIndex].cWork.engText, 4)
  15174. "
  15175. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15176. v-if="
  15177. !greyType &&
  15178. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15179. "
  15180. >AI批注</el-button
  15181. >
  15182. <el-button
  15183. @click="addCorrect"
  15184. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15185. v-if="greyType"
  15186. >确定</el-button
  15187. >
  15188. </div>
  15189. </div>
  15190. </div>
  15191. </div>
  15192. </div>
  15193. <span slot="footer" class="dialog-footer">
  15194. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15195. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15196. </span>
  15197. </el-dialog>
  15198. <englishEva
  15199. :evaEngJson="evaEngJson"
  15200. :engEvaDialogVisible.sync="engEvaDialogVisible"
  15201. :uid="userid"
  15202. :tType="tType"
  15203. :courseDetail="courseDetail"
  15204. ></englishEva>
  15205. <interVideo
  15206. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15207. :videoJson="videoJson"
  15208. :userid="userid"
  15209. :id="id"
  15210. :courseType="courseType"
  15211. :taskCount="taskCount"
  15212. :toolindex="toolindex"
  15213. :videoType="videoType"
  15214. ></interVideo>
  15215. <UpdateMore
  15216. :dialogVisibleMember.sync="dialogVisibleMember"
  15217. :cList="uploadStudentJuri"
  15218. :userid="userid"
  15219. :searchTN="worksSName2"
  15220. @setPlname="setPlname"
  15221. ></UpdateMore>
  15222. <wordCloud
  15223. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15224. :data="wordCloudData"
  15225. ></wordCloud>
  15226. <el-dialog
  15227. title="挑人"
  15228. :visible.sync="dialogVisiblePickPeople"
  15229. width="650px"
  15230. :before-close="handleClose"
  15231. class="dialog_diy"
  15232. center
  15233. >
  15234. <div class="pick_box">
  15235. <div
  15236. class="noWorksName"
  15237. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15238. v-for="(item, index) in uploadStudentJuri"
  15239. :key="index"
  15240. @click="pickStudent(item)"
  15241. >
  15242. {{ item.name }}
  15243. </div>
  15244. </div>
  15245. </el-dialog>
  15246. <EnglishVoice
  15247. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  15248. :englishVoiceJson="englishVoiceJson"
  15249. :userid="userid"
  15250. :id="id"
  15251. :courseType="courseType"
  15252. :taskCount="taskCount"
  15253. :toolindex="toolindex"
  15254. @selectSWorks="selectSWorks"
  15255. @selectStudent="selectStudent"
  15256. :englishVoiceJsonWork="englishVoiceJsonWork"
  15257. ></EnglishVoice>
  15258. <checkEnglishVoice
  15259. :englishVoiceJson="englishVoiceJson"
  15260. :userid="userid"
  15261. :dialogVisibleENScore.sync="dialogVisibleENScore"
  15262. :commentDetail="commentDetail"
  15263. :courseDetail="courseDetail"
  15264. :wScore="wScore"
  15265. :scoreDetail="scoreDetail"
  15266. @selectSWorks="selectSWorks"
  15267. @selectStudent="selectStudent"
  15268. ></checkEnglishVoice>
  15269. <el-dialog
  15270. title="教师评分"
  15271. :visible.sync="markScoreVisible"
  15272. :append-to-body="true"
  15273. width="1000px"
  15274. :fullscreen="markfullscreen"
  15275. :before-close="markScorehandleClose"
  15276. class="markScore_diy"
  15277. >
  15278. <div slot="title">
  15279. <div class="markScore_diyTit">
  15280. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15281. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15282. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15283. </div>
  15284. </div>
  15285. </div>
  15286. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15287. <!-- @updateDocSco="updateDocSco" -->
  15288. <markDialog
  15289. :key="markScoreVisible.toString()"
  15290. :uid="markScoreUid"
  15291. :toolIndex="markScoretoolIndex"
  15292. :stage="courseType"
  15293. :task="taskCount"
  15294. :taskDetail="
  15295. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15296. "
  15297. :tool="toolListS"
  15298. :languageSetting="languageSetting"
  15299. :scoTit="markScoreTit"
  15300. :tType="tType"
  15301. :sIsOpen="sIsOpen"
  15302. :markScoreworksStudent="markScoreworksStudent"
  15303. :markScoreVisible="markScoreVisible"
  15304. ></markDialog>
  15305. </el-dialog>
  15306. <!-- 查看Txt,md等文件 -->
  15307. <el-dialog
  15308. title="文件预览"
  15309. :visible.sync="dialogVisibleTxt"
  15310. width="50%"
  15311. :before-close="handleCloseTxt"
  15312. class="dialog_diy"
  15313. :class="{ fullStyle: full }"
  15314. >
  15315. <div slot="title" class="header-title">
  15316. <div style="color: #fff">文件预览</div>
  15317. <div style="position: absolute; top: 19px; right: 50px">
  15318. <img
  15319. src="../../assets/full.png"
  15320. style="height: 16px; cursor: pointer"
  15321. alt=""
  15322. @click="fullTools"
  15323. />
  15324. </div>
  15325. </div>
  15326. <div>{{ TxtMd }}</div>
  15327. </el-dialog>
  15328. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15329. <choseWorksDetailDialog
  15330. ref="choseWorksDetailDialogRef"
  15331. :worksStudentData="this.worksStudent"
  15332. :noWorksSData="noWorksS"
  15333. :chapInfoListData="chapInfoList"
  15334. :courseType="courseType"
  15335. :taskCount="taskCount"
  15336. @deleteWorks="deleteWorks"
  15337. @openTools="openTools"
  15338. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15339. />
  15340. </div>
  15341. </template>
  15342. <script>
  15343. import "../../common/aws-sdk-2.235.1.min.js";
  15344. // import pdf from "../components/pdf3";
  15345. import pdf from "../components/vpdf";
  15346. import AskStatic from "../components/askStatic";
  15347. import AskStatic2 from "../components/askStatic2";
  15348. import AnswerData2 from "../components/answerData2";
  15349. import AnswerData from "../components/answerData";
  15350. import EditorBar from "../tools/wangEnduit.vue";
  15351. import Table from "../tools/table.vue";
  15352. import Time from "../tools/time.vue";
  15353. import Mind from "../tools/jsmind.vue";
  15354. import Sunburst from "../tools/sunburst";
  15355. import SeeBoard from "../tools/seeBoard";
  15356. import * as imageConversion from "image-conversion";
  15357. import Audio from "../components/audio.vue";
  15358. import ImgDraw from "../tools/imgDraw/imgDraw";
  15359. import { Empty } from "element-ui";
  15360. import RecordRTC from "recordrtc";
  15361. import interVideo from "../interVideo/index.vue";
  15362. import UpdateMore from "../updateMore/updateMore.vue";
  15363. import wordCloud from "../wordCloud/index.vue";
  15364. import axios from "axios";
  15365. import JSZip from "jszip";
  15366. import FileSaver from "file-saver";
  15367. import onlineWrite from "./commpont/onlineWrite";
  15368. import englishEva from "../components/englishEva";
  15369. import * as Diff from "diff";
  15370. import EnglishVoice from "../EnglishVoice2/index.vue";
  15371. import checkEnglishVoice from "../checkEnglishVoice/index.vue";
  15372. import correctText from "../components/correctText.vue";
  15373. import scoreItem from "../scoreList/scoreItem.vue";
  15374. import scoreZong from "../scoreZong/index.vue";
  15375. import classRoomHelper from "../classRoomHelper/index.vue";
  15376. import markScore from "./commpont/markScore";
  15377. import markDialog from "./commpont/markDialog";
  15378. import evaTable from "./commpont/evaTable";
  15379. import { v4 as uuidv4 } from "uuid";
  15380. import statisticalAnalysis from "../components/statisticalAnalysis.vue";
  15381. import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
  15382. const getFile = url => {
  15383. return new Promise((resolve, reject) => {
  15384. var credentials = {
  15385. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15386. secretAccessKey: "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"
  15387. }; //秘钥形式的登录上传
  15388. window.AWS.config.update(credentials);
  15389. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15390. let url2 = url;
  15391. let _url2 = "";
  15392. if (
  15393. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15394. ) {
  15395. _url2 = url2.split(
  15396. "https://view.officeapps.live.com/op/view.aspx?src="
  15397. )[1];
  15398. } else {
  15399. _url2 = url2;
  15400. }
  15401. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15402. let name = decodeURIComponent(
  15403. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  15404. );
  15405. var params = {
  15406. Bucket: "ccrb",
  15407. Key: name
  15408. };
  15409. s3.getObject(params, function(err, data) {
  15410. if (err) {
  15411. console.log(err, err.stack);
  15412. resolve({ data: 1 });
  15413. } else {
  15414. resolve({ data: data.Body });
  15415. console.log(data);
  15416. } // sxuccessful response
  15417. });
  15418. // axios({
  15419. // method: "get",
  15420. // url,
  15421. // responseType: "blob",
  15422. // })
  15423. // .then((data) => {
  15424. // resolve({ data: data.data });
  15425. // })
  15426. // .catch((error) => {
  15427. // resolve({ data: 1 });
  15428. // // reject(error.toString());
  15429. // });
  15430. });
  15431. };
  15432. export default {
  15433. components: {
  15434. EditorBar,
  15435. Time,
  15436. pdf,
  15437. AskStatic,
  15438. AskStatic2,
  15439. Mind,
  15440. Sunburst,
  15441. SeeBoard,
  15442. AnswerData2,
  15443. AnswerData,
  15444. Audio,
  15445. ImgDraw,
  15446. Table,
  15447. interVideo,
  15448. UpdateMore,
  15449. wordCloud,
  15450. onlineWrite,
  15451. englishEva,
  15452. EnglishVoice,
  15453. checkEnglishVoice,
  15454. correctText,
  15455. scoreItem,
  15456. classRoomHelper,
  15457. scoreZong,
  15458. markScore,
  15459. markDialog,
  15460. evaTable,
  15461. statisticalAnalysis,
  15462. choseWorksDetailDialog
  15463. },
  15464. data() {
  15465. return {
  15466. bg: null,
  15467. drawShow: false,
  15468. dialogVisible: false,
  15469. dialogVisiblePl: false,
  15470. commentDialogVisible: false,
  15471. dialogVisibleMember: false,
  15472. dialogVisibleWordCloud: false,
  15473. videoVisible: false,
  15474. isStar: false,
  15475. studentEvalDialogVisible: false,
  15476. studentEvalDialogVisibleTeacher: false,
  15477. dialogVisibleSelect: false,
  15478. dialogVisibleSelectTeacher: false,
  15479. dialogVisibleScore: false,
  15480. dialogVisibleENScore: false,
  15481. dialogVisibleSentence: false,
  15482. dialogVisibleSentenceTeacher: false,
  15483. dialogVisibleSentence1: false,
  15484. dialogVisibleWorks: false,
  15485. dialogVisibleTable: false,
  15486. dialogVisibleTableTeacher: false,
  15487. dialogVisibleWord: false,
  15488. dialogVisibleWordTeacher: false,
  15489. dialogVisibleTable2: false,
  15490. dialogVisibleTable3: false,
  15491. dialogVisibleGroupWork: false,
  15492. dialogVisibleUpdateGroup: false,
  15493. dialogVisibleDeleteGroup: false,
  15494. dialogVisibleSname: false,
  15495. dialogVisibleVideo: false,
  15496. dialogVisiblePickPeople: false,
  15497. engDialogVisible: false,
  15498. engUpdateDialogVisible: false,
  15499. engEvaDialogVisible: false,
  15500. evaEngJson: {
  15501. teacherJson: {},
  15502. studentJson: {},
  15503. message: {}
  15504. },
  15505. isNoUserid: false,
  15506. engListLength: 0,
  15507. engWid: "",
  15508. newEnglishList: {
  15509. engTitle: "",
  15510. engText: ""
  15511. },
  15512. newEnglishList1: [],
  15513. oldEnglishJson: {},
  15514. oldEnglishJson1: {},
  15515. englishList1: {},
  15516. englishList: {},
  15517. myAnswerList1: {},
  15518. topHeight: 0,
  15519. newEngIndex: -1,
  15520. englishToolIndex: 0,
  15521. userMes: {},
  15522. englishToolIndex: 0,
  15523. worksSName: "",
  15524. classJuri: [],
  15525. uploadStudentJuri: [],
  15526. uploadCid: "",
  15527. snameWid: "",
  15528. sStudent: {},
  15529. sTool: "",
  15530. bzText: "",
  15531. commentDetail: [],
  15532. selectAnswer: [],
  15533. videoDetail: {},
  15534. selectJson: {},
  15535. englishList: {},
  15536. topHeight: 0,
  15537. eScore: { eBzText: "", eStar: [] },
  15538. id: this.$route.query.courseId,
  15539. userid: this.$route.query.userid,
  15540. classId: this.$route.query.cid,
  15541. // courseTypeLine: this.$route.query.type,
  15542. oid: this.$route.query.oid,
  15543. org: this.$route.query.org,
  15544. tType: this.$route.query.tType,
  15545. courseType: this.$route.query.type,
  15546. screenType: this.$route.query.screenType,
  15547. tcid2: this.$route.query.tcid,
  15548. tcid: "",
  15549. pptImgUrl: "",
  15550. pptImgUrl1: "",
  15551. commentText: "",
  15552. full: false,
  15553. sIsOpen: false,
  15554. IsLookOpen: false,
  15555. IsFollow: false,
  15556. pzDialog: false,
  15557. contentDialog: false,
  15558. mlDialog: false,
  15559. type: 1,
  15560. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15561. sentenceList1: [],
  15562. tableJson: [],
  15563. tableJsonO: [],
  15564. wordJson: [],
  15565. wordJsonO: [],
  15566. vedio: [],
  15567. text: [],
  15568. textList: [],
  15569. line: [],
  15570. lineList: [],
  15571. chapTools: [],
  15572. chapToolList: [],
  15573. file: [],
  15574. fileC: [],
  15575. vedioTime: [],
  15576. upToolImg: "",
  15577. preTime: 0,
  15578. rateList: {
  15579. ca: 0
  15580. },
  15581. rateParams: [],
  15582. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15583. studyJuri: [
  15584. {
  15585. content: "",
  15586. cover: [],
  15587. upVedio: [],
  15588. upFile: []
  15589. }
  15590. ],
  15591. isClose: 0,
  15592. plworkFile: [],
  15593. mr: require("../../assets/vedioPic.png"),
  15594. word: require("../../assets/icon/isWord.png"),
  15595. word2: require("../../assets/icon/word2.png"),
  15596. video: require("../../assets/icon/isVideo.png"),
  15597. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15598. likes: require("../../assets/icon/comment/likes.png"),
  15599. scoreImg: require("../../assets/score.png"),
  15600. courseDetail: {},
  15601. reply: "",
  15602. isSelect: false,
  15603. chapInfo: [],
  15604. chapInfoList: [],
  15605. taskCount: 0,
  15606. imgList: [],
  15607. noImgList: [],
  15608. pzList: [],
  15609. timeWorkList: [],
  15610. PlTextList: [
  15611. "Excellent!",
  15612. "nice!",
  15613. "很有创意!",
  15614. "还不错哦~",
  15615. "继续努力哦~"
  15616. ],
  15617. isClickNav: "",
  15618. navId: "",
  15619. playerOptions: {
  15620. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15621. autoplay: false, //如果true,浏览器准备好时开始回放。
  15622. muted: false, // 默认情况下将会消除任何音频。
  15623. loop: false, // 导致视频一结束就重新开始。
  15624. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15625. language: "zh-CN",
  15626. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15627. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15628. sources: [
  15629. {
  15630. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15631. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15632. }
  15633. ],
  15634. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15635. // poster: dataRes.imgUrl, //你的封面地址
  15636. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15637. controlBar: {
  15638. timeDivider: true, //当前时间和持续时间的分隔符
  15639. durationDisplay: true, //显示持续时间
  15640. remainingTimeDisplay: false, //是否显示剩余时间功能
  15641. fullscreenToggle: true //全屏按钮
  15642. }
  15643. },
  15644. playerOptions1: {
  15645. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15646. autoplay: false, //如果true,浏览器准备好时开始回放。
  15647. muted: false, // 默认情况下将会消除任何音频。
  15648. loop: false, // 导致视频一结束就重新开始。
  15649. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15650. language: "zh-CN",
  15651. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15652. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15653. sources: [
  15654. {
  15655. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15656. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15657. }
  15658. ],
  15659. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15660. // poster: dataRes.imgUrl, //你的封面地址
  15661. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15662. controlBar: {
  15663. timeDivider: true, //当前时间和持续时间的分隔符
  15664. durationDisplay: true, //显示持续时间
  15665. remainingTimeDisplay: false, //是否显示剩余时间功能
  15666. fullscreenToggle: true //全屏按钮
  15667. }
  15668. },
  15669. playerO: {},
  15670. noneBtnImg: false,
  15671. proVisible: false,
  15672. proVisible2: false,
  15673. progress: 0,
  15674. isFinishSize: 0,
  15675. isAllSize: 0,
  15676. questionAnswer: "",
  15677. answerQ: "", //问答标题
  15678. rateJson: [],
  15679. wbCount: 0,
  15680. wordCount: 0,
  15681. mindCount: 0,
  15682. askCount: 0,
  15683. noteCount: 0,
  15684. mindNetWorkCount: 0,
  15685. libraryCount: 0,
  15686. workCount: 0,
  15687. timeCount: 0,
  15688. answerCount: 0,
  15689. trainCount: 0,
  15690. evalCount: 0,
  15691. dialogImageUrl: "",
  15692. pictureDialog: false,
  15693. toolTypeList: [],
  15694. dialogVisible1: false,
  15695. dialogVisible2: false,
  15696. dialogVisible3: false,
  15697. dialogVisible6: false,
  15698. dialogVisible4: false,
  15699. isNoHomeWork: false,
  15700. dialogVisible5: false,
  15701. dialogVisible5Teacher: false,
  15702. dialogVisibleChoice: false,
  15703. dialogVisibleChoiceTeacher: false,
  15704. answerDialogVisible: false,
  15705. answerDialogVisibleTeacher: false,
  15706. juriVisible: false,
  15707. timeDialogVisible: false,
  15708. replyDialogVisible: false,
  15709. toolDialogVisible: false,
  15710. replyIndex: 0,
  15711. replyPid: "",
  15712. radio: [],
  15713. isAsk: false,
  15714. askJson: {
  15715. askCount: 1,
  15716. askTitle: "",
  15717. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  15718. },
  15719. testJson: {},
  15720. videoType: 0,
  15721. checkJson: [],
  15722. askList: [],
  15723. answerList: [],
  15724. navList: [],
  15725. addPzDialog: false,
  15726. pzConText: "",
  15727. worksStudent: [],
  15728. isCloseList: [],
  15729. workStudent: [],
  15730. groupStudent: [],
  15731. groupStudentUid: [],
  15732. noWorksS: [],
  15733. isWorksS: [],
  15734. noWorksStudent: [],
  15735. toolindex: 0,
  15736. toolDetailIndex: null,
  15737. groupIndex: 0,
  15738. workTypeB: false,
  15739. workTypeC: false,
  15740. isAnswer: false,
  15741. isHovered: false,
  15742. isHovered1: false,
  15743. isHovered2: false,
  15744. commentTagShow: 0,
  15745. timer: null,
  15746. opertimer: null,
  15747. showType: 0,
  15748. fileType: 0,
  15749. showPDF: false,
  15750. noteName: "",
  15751. evaJuri: [],
  15752. evalua: "",
  15753. eTitle: "",
  15754. eName: "",
  15755. eJson: {},
  15756. fid: "", //一级
  15757. sid: "", //二级
  15758. tid: "", //二级
  15759. typeMode: 1,
  15760. eJSONNum: 0,
  15761. Etype: 1,
  15762. data: {
  15763. meta: {
  15764. name: "example",
  15765. author: "dd@163.com",
  15766. version: "0.2"
  15767. },
  15768. format: "node_array",
  15769. data: [{ id: "root", isroot: true, topic: "" }]
  15770. },
  15771. fullDialogVisible: false,
  15772. fulltype: "",
  15773. fullUrl: "",
  15774. commentIndexJson: {},
  15775. Stbodywidth: 0,
  15776. ispzType: 0,
  15777. pzType: 1,
  15778. wScore: 0,
  15779. scoreDetail: "",
  15780. videoStart: false,
  15781. recorder: null,
  15782. groupJson: {},
  15783. islock: false,
  15784. groupJson2: {},
  15785. dialogVisibleGroup: false,
  15786. dialogVisibleGroup2: false,
  15787. updateGroupArray: [],
  15788. updateGroupUser: {},
  15789. deleteGroupUser: [],
  15790. deleteGroupArray: {},
  15791. checkChair: "",
  15792. checkDeleteGroup: [],
  15793. inviteCode: "",
  15794. courseGroupStudent: [],
  15795. courseGroupStudentUid: [],
  15796. courseGroup: {},
  15797. isGroup: false,
  15798. toolIndex: null,
  15799. tool: {},
  15800. isWorkTool: [
  15801. 16,
  15802. 32,
  15803. 57,
  15804. 4,
  15805. 45,
  15806. 15,
  15807. 1,
  15808. 3,
  15809. 6,
  15810. 7,
  15811. 26,
  15812. 41,
  15813. 47,
  15814. 48,
  15815. 52,
  15816. 50,
  15817. 40
  15818. ], //, 40
  15819. videoJson: {},
  15820. toolType: 0,
  15821. checktoolArray: [],
  15822. vChapterData: [],
  15823. isUpdateToolDetail: false,
  15824. isUpdateToolDetail1: false,
  15825. updateToolDetailInner: "",
  15826. checkboxList: [],
  15827. plIndex: "",
  15828. worksSName2: "",
  15829. worksSid: "",
  15830. wordCloudData: [],
  15831. isPickStudent: [],
  15832. pzStype: 1,
  15833. downLoading: false,
  15834. greyType: false,
  15835. correctWord: [],
  15836. EnglishVoiceDialog: false,
  15837. englishVoiceJson: {},
  15838. englishVoiceJsonWork: [],
  15839. scoreList: {
  15840. listdata: [],
  15841. isScoreList: []
  15842. },
  15843. classRoomHelperWidth: "85px",
  15844. orgArray: [],
  15845. oidArray: [],
  15846. refreshKey: 0,
  15847. AIloading: [],
  15848. worksStudentCopy: [],
  15849. loopLoading: [],
  15850. markScoreVisible: false,
  15851. markScoretoolIndex: 0,
  15852. markScoreUid: "",
  15853. markScoreTit: {},
  15854. markfullscreen: false,
  15855. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  15856. markScoreworksStudent: [],
  15857. finalMarkList: -1,
  15858. isaiNum: 0,
  15859. dialogVisibleTxt: false,
  15860. TxtMd: "",
  15861. languageSetting: 0, //0中文 1繁体 2英文
  15862. toolListS: [],
  15863. commentDetailCopy: "",
  15864. splitScreenData: {
  15865. isOpen: false,
  15866. userId: "",
  15867. uid: "",
  15868. myUid: "",
  15869. loading: false,
  15870. behavior: null
  15871. }
  15872. };
  15873. },
  15874. methods: {
  15875. getAIJ() {
  15876. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  15877. let oid = res.data[0];
  15878. let org = res.data[1];
  15879. let oidArray = [];
  15880. let orgArray = [];
  15881. oid.forEach(i => oidArray.push(i.oid));
  15882. org.forEach(i => orgArray.push(i.oid));
  15883. this.orgArray = orgArray;
  15884. this.oidArray = oidArray;
  15885. });
  15886. },
  15887. // 评分弹框全屏
  15888. markFullScreenBtn() {
  15889. this.markfullscreen = !this.markfullscreen;
  15890. },
  15891. insertMemorandum(_html) {
  15892. //保存行为操作
  15893. //variable
  15894. //btn
  15895. let params = [
  15896. {
  15897. uid: this.userid,
  15898. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  15899. content: _html
  15900. }
  15901. ];
  15902. console.log(params);
  15903. this.ajax
  15904. .post(
  15905. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  15906. params
  15907. )
  15908. .then(res => {
  15909. if (res.data == 1) {
  15910. console.log("保存操作成功");
  15911. } else {
  15912. console.log("保存操作失败");
  15913. }
  15914. })
  15915. .catch(e => {
  15916. console.log("保存操作失败");
  15917. console.log(e);
  15918. });
  15919. },
  15920. // 获取文档id
  15921. createFileid(url) {
  15922. let _this = this;
  15923. return new Promise((resolve, reject) => {
  15924. try {
  15925. _this.ajax
  15926. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  15927. url: url
  15928. })
  15929. .then(res => {
  15930. let _data = res.data.FunctionResponse;
  15931. if (_data.result && _data.result.id) {
  15932. resolve(_data.result.id);
  15933. } else {
  15934. resolve(1);
  15935. }
  15936. })
  15937. .catch(function(error) {
  15938. resolve(1);
  15939. });
  15940. } catch (e) {
  15941. resolve(1);
  15942. }
  15943. });
  15944. },
  15945. // 一键重置
  15946. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  15947. let jude = false;
  15948. this.AIloading.forEach((e, index) => {
  15949. if (index == toolIndex) {
  15950. e.forEach(k => {
  15951. if (k.loading == true) jude = true;
  15952. });
  15953. }
  15954. });
  15955. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  15956. this.$confirm("确认一键重置?")
  15957. .then(_ => {
  15958. this.allEmptyScoBtn(con, stage, task, toolIndex);
  15959. })
  15960. .catch(_ => {});
  15961. },
  15962. // 一键重置
  15963. async allEmptyScoBtn(con, stage, task, toolIndex) {
  15964. for (let index = 0; index < con.length; index++) {
  15965. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  15966. }
  15967. this.$message.success("重置完成");
  15968. // this.refreshAssembly();
  15969. this.worksStudent.forEach((e, index) => {
  15970. if (toolIndex == index) {
  15971. console.log("6666");
  15972. e.forEach((i, inx) => {
  15973. let mk = `markSco${index}${inx}`;
  15974. this.$refs[mk][0].getData();
  15975. });
  15976. }
  15977. });
  15978. },
  15979. // 一键重置
  15980. allEmptySco(uid, stage, task, toolIndex) {
  15981. let params = [
  15982. {
  15983. cid: this.id,
  15984. uid: uid,
  15985. s: stage,
  15986. t: task,
  15987. tool: toolIndex ? toolIndex : ""
  15988. }
  15989. ];
  15990. return new Promise(resolve => {
  15991. this.ajax
  15992. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  15993. .then(res => {
  15994. resolve(1);
  15995. })
  15996. .catch(err => {
  15997. console.error(err);
  15998. });
  15999. }).catch(error => {
  16000. console.log(error);
  16001. });
  16002. },
  16003. // AI评分循环打分
  16004. async loopEva(
  16005. con,
  16006. tit,
  16007. stage,
  16008. task,
  16009. toolIndex,
  16010. toolDetail,
  16011. taskDetail,
  16012. toolList
  16013. ) {
  16014. let jude = false;
  16015. this.AIloading.forEach((e, index) => {
  16016. if (index == toolIndex) {
  16017. e.forEach(k => {
  16018. if (k.loading == true) jude = true;
  16019. });
  16020. }
  16021. });
  16022. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16023. this.AIloading.forEach((e, index) => {
  16024. if (index == toolIndex) {
  16025. e.forEach(k => {
  16026. k.loading = true;
  16027. });
  16028. }
  16029. });
  16030. this.loopLoading[toolIndex].loading = true;
  16031. let laws = "";
  16032. let std = "";
  16033. let text = "";
  16034. if (toolList && toolList.eList && toolList.eList.length) {
  16035. for (let i = 0; i < toolList.eList.length; i++) {
  16036. if (toolList.eList[i].isai == 1) {
  16037. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16038. }
  16039. }
  16040. for (let i = 0; i < toolList.eList.length; i++) {
  16041. if (toolList.eList[i].isai == 1) {
  16042. let a = toolList.eList[i].detail;
  16043. if (isNaN(parseFloat(a)) && a) {
  16044. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16045. } else {
  16046. var result = a;
  16047. }
  16048. std += `纬度${i}:“${result}”, \n`;
  16049. }
  16050. }
  16051. for (let i = 0; i < toolList.eList.length; i++) {
  16052. if (toolList.eList[i].isai == 1) {
  16053. let a = toolList.eList[i].detail;
  16054. if (isNaN(parseFloat(a)) && a) {
  16055. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16056. } else {
  16057. var result = a;
  16058. }
  16059. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16060. }
  16061. }
  16062. } else {
  16063. let titRule = 0;
  16064. let titRule2 = 0;
  16065. tit.forEach((e, index) => {
  16066. if (!e.isai) {
  16067. e.isai = 1;
  16068. }
  16069. });
  16070. tit.forEach((e, index) => {
  16071. if (e.isai == 1) {
  16072. titRule2++;
  16073. if (e.rule) {
  16074. titRule++;
  16075. }
  16076. }
  16077. });
  16078. if (titRule != titRule2) {
  16079. this.AIloading.forEach((e, index) => {
  16080. if (index == toolIndex) {
  16081. e.forEach(k => {
  16082. k.loading = false;
  16083. });
  16084. }
  16085. });
  16086. this.loopLoading[toolIndex].loading = false;
  16087. this.$message.info("细则努力生成中,请稍候……");
  16088. return;
  16089. }
  16090. for (let i = 0; i < tit.length; i++) {
  16091. if (tit[i].isai == 1) {
  16092. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16093. }
  16094. }
  16095. for (let i = 0; i < tit.length; i++) {
  16096. if (tit[i].isai == 1) {
  16097. let a = tit[i].detail;
  16098. if (isNaN(parseFloat(a)) && a) {
  16099. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16100. } else {
  16101. var result = a;
  16102. }
  16103. std += `纬度${i}:“${result}”, \n`;
  16104. }
  16105. }
  16106. for (let i = 0; i < tit.length; i++) {
  16107. if (tit[i].isai == 1) {
  16108. let a = tit[i].detail;
  16109. if (isNaN(parseFloat(a)) && a) {
  16110. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16111. } else {
  16112. var result = a;
  16113. }
  16114. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16115. }
  16116. }
  16117. }
  16118. let forAllList = [];
  16119. // console.log('con',con)
  16120. for (let i = 0; i < con.length; i++) {
  16121. let _fileid = "";
  16122. let wok = con[i].works;
  16123. // console.log('con',con);
  16124. // console.log('con[i].type',con[i].type);
  16125. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16126. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16127. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16128. _fileid = await this.createFileid(con[i].works);
  16129. } else {
  16130. this.AIloading[toolIndex][i].loading = false;
  16131. continue;
  16132. }
  16133. }
  16134. // console.log('con[i].type',con[i])
  16135. // console.log('con[i].type',con[i].type)
  16136. if (_fileid == 1 || con[i].type == 3) {
  16137. this.AIloading[toolIndex][i].loading = false;
  16138. continue;
  16139. }
  16140. let msg = `NOTICE
  16141. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16142. Language: ${this.getLang()}
  16143. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16144. Instruction: Based on the context, follow "Format example", write content.
  16145. #目标#
  16146. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16147. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16148. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16149. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16150. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16151. #评分资料#
  16152. 评价标准:${std}
  16153. 评价细则:${laws}
  16154. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16155. 任务描述:${taskDetail}
  16156. 工具描述:${toolDetail}
  16157. #输出要求#
  16158. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16159. “评语”控制在150字左右。
  16160. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16161. #输出格式#
  16162. [${text}{'comment':'评语(150个汉字左右)'}]
  16163. `;
  16164. let mk = `markSco${toolIndex}${i}`;
  16165. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16166. msg,
  16167. con[i].userid,
  16168. stage,
  16169. task,
  16170. _fileid,
  16171. con[i].type
  16172. );
  16173. forAllList.push(mkAwit);
  16174. }
  16175. Promise.all(forAllList)
  16176. .then(values => {
  16177. console.log("values", values);
  16178. this.$message({
  16179. message: "评价成功",
  16180. type: "success"
  16181. });
  16182. // this.refreshKey++
  16183. // this.worksStudent.forEach((e,index)=>{
  16184. // if(toolIndex == index){
  16185. // e.forEach((i,inx)=>{
  16186. // let mk = `markSco${index}${inx}`
  16187. // this.$refs[mk][0].getData()
  16188. // })
  16189. // }
  16190. // })
  16191. this.AIloading[toolIndex].forEach(e => {
  16192. e.loading = false;
  16193. });
  16194. this.loopLoading[toolIndex].loading = false;
  16195. })
  16196. .catch(reason => {
  16197. console.error("reasonreasonreasonreasonreason", reason);
  16198. // 输出“失败原因”
  16199. });
  16200. },
  16201. // 获取评价细则
  16202. againEva(i, k) {
  16203. let msg = `NOTICE
  16204. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16205. Language: ${this.getLang()}
  16206. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16207. Instruction: Based on the context, follow "Format example", write content.
  16208. #Context
  16209. ##要求
  16210. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16211. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16212. ##制定标准资料
  16213. 评价维度:${
  16214. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16215. }
  16216. 维度描述:${
  16217. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16218. }
  16219. # Format example
  16220. ==
  16221. 0 星,作业内容与作业要求无关;
  16222. 1 星,没有识别问题和需求;
  16223. 2 星,问题或需求没有被清晰理解或准确识别;
  16224. 3 星,问题或需求的一部分被识别;
  16225. 4 星,问题或需求的大部分被识别;
  16226. 5 星,问题或需求都被识别。
  16227. ==
  16228. `;
  16229. let params = {
  16230. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16231. message: [
  16232. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16233. ],
  16234. session_name: uuidv4(),
  16235. userId: this.userid,
  16236. file_ids: [],
  16237. model: "gpt-4o-2024-08-06"
  16238. };
  16239. // console.log('params',params);
  16240. this.ajax
  16241. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16242. .then(response => {
  16243. let data = response.data.FunctionResponse;
  16244. // console.log("data", data);
  16245. if (data.message) {
  16246. let content = data.message;
  16247. var regex = new RegExp("==([^=]+)==");
  16248. let match = content.match(regex);
  16249. if (match) {
  16250. content = match[1].trim().replaceAll(" ", "");
  16251. // 获取匹配到的内容并去除两端空格
  16252. // console.log('contentInsideDoubleEquals', content);
  16253. if (
  16254. content.indexOf("0星") == -1 ||
  16255. content.indexOf("2星") == -1 ||
  16256. content.indexOf("3星") == -1 ||
  16257. content.indexOf("4星") == -1 ||
  16258. content.indexOf("5星") == -1
  16259. ) {
  16260. console.log("未有星级。");
  16261. this.againEva(i, k);
  16262. return;
  16263. }
  16264. // return
  16265. } else {
  16266. console.log("未找到匹配的内容。");
  16267. this.againEva(i, k);
  16268. return;
  16269. }
  16270. let elist = JSON.parse(
  16271. JSON.stringify(
  16272. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16273. )
  16274. );
  16275. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16276. elist.rule = JSON.parse(
  16277. JSON.stringify(content.replaceAll("#", ""))
  16278. );
  16279. this.$set(
  16280. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16281. k,
  16282. elist
  16283. );
  16284. this.$forceUpdate();
  16285. let params2 = [
  16286. {
  16287. cid: this.id,
  16288. chapters: JSON.stringify(this.chapInfoList),
  16289. uid: this.userid,
  16290. unitIndex: this.courseType
  16291. }
  16292. ];
  16293. this.ajax
  16294. .post(this.$store.state.api + "updateWorkNew4", params2)
  16295. .then(res => {
  16296. this.getCourseDetail(2);
  16297. this.$forceUpdate();
  16298. })
  16299. .catch(err => {
  16300. this.$message.error("网络不佳");
  16301. console.error(err);
  16302. });
  16303. // 进行进一步处理或解析outputContent
  16304. // } else {
  16305. // console.log("No match found for # Output section.");
  16306. // }
  16307. }
  16308. })
  16309. .catch(error => {
  16310. console.log(error);
  16311. });
  16312. },
  16313. // 关闭评分弹框
  16314. markScorehandleClose(done) {
  16315. // this.refreshKey++
  16316. this.worksStudent.forEach((e, index) => {
  16317. if (this.markScoretoolIndex == index) {
  16318. e.forEach((i, inx) => {
  16319. let mk = `markSco${index}${inx}`;
  16320. if (this.$refs[mk] && this.$refs[mk][0]) {
  16321. this.$refs[mk][0].getData();
  16322. }
  16323. });
  16324. }
  16325. });
  16326. done();
  16327. },
  16328. // 关闭txtMd预览弹框
  16329. handleCloseTxt(done) {
  16330. this.TxtMd = "";
  16331. done();
  16332. },
  16333. // Txt,Md作业查看
  16334. lookTxt(val) {
  16335. this.dialogVisibleTxt = true;
  16336. this.TxtMd = "";
  16337. getFile(val).then(res => {
  16338. this.TxtMd = res.data;
  16339. });
  16340. },
  16341. // 组件刷新
  16342. refreshAssembly(val) {
  16343. this.refreshKey++;
  16344. // console.log(this.refreshKey)
  16345. },
  16346. updateLoading(payload) {
  16347. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16348. },
  16349. handleShow(toolIndex, val) {
  16350. let mk = `markSco${toolIndex}${val}`;
  16351. // console.log(mk);
  16352. this.$refs[mk][0].getData();
  16353. },
  16354. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16355. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16356. // console.log('this.AIloading',this.AIloading)
  16357. let jude = false;
  16358. this.AIloading.forEach((e, index) => {
  16359. if (index == tidx) {
  16360. e.forEach(k => {
  16361. if (k.loading == true) jude = true;
  16362. });
  16363. }
  16364. });
  16365. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16366. if (val) return;
  16367. // console.log(uname,worksStudent,uid,tidx,titlist)
  16368. this.markScoreTit = titlist;
  16369. this.markScoreUid = uid;
  16370. this.toolListS = toolList;
  16371. this.markScoretoolIndex = tidx;
  16372. this.markScoreworksStudent = worksStudent;
  16373. this.markfullscreen = false;
  16374. this.markScoreVisible = true;
  16375. if (this.tType == 1) {
  16376. this.insertMemorandum(
  16377. `查看<span class="variable">${uname}</span>的作业`
  16378. );
  16379. }
  16380. },
  16381. // 点击markScore显示评分框
  16382. markScoreDig(data) {
  16383. // console.log('data',data)
  16384. let jude = false;
  16385. this.AIloading.forEach((e, index) => {
  16386. if (index == data.val2) {
  16387. e.forEach(k => {
  16388. if (k.loading == true) jude = true;
  16389. });
  16390. }
  16391. });
  16392. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16393. this.markScoreTit = data.tit;
  16394. this.markScoreUid = data.val;
  16395. this.markScoretoolIndex = data.val2;
  16396. this.markfullscreen = false;
  16397. this.markScoreVisible = true;
  16398. this.insertMemorandum(
  16399. `查看<span class="variable">${data.uname}</span>的作业`
  16400. );
  16401. },
  16402. // 刷新其他组件分数
  16403. refreshOther(v) {
  16404. // console.log('v',v)
  16405. this.AIloading[v.tid].forEach((e, i) => {
  16406. if (i == v.wid) {
  16407. e.loading = false;
  16408. }
  16409. });
  16410. // this.worksStudent.forEach((e,index)=>{
  16411. // if(toolIndex != index){
  16412. // e.forEach((i,inx)=>{
  16413. // let mk = `markSco${index}${inx}`
  16414. // this.$refs[mk][0].getData()
  16415. // })
  16416. // }
  16417. // })
  16418. },
  16419. updateDocSco(payload) {
  16420. // console.log('payload',payload)
  16421. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16422. },
  16423. gx() {
  16424. this.$forceUpdate();
  16425. },
  16426. isUpdateCorrect(t, p) {
  16427. if (this.greyType == false) {
  16428. this.isUpdateText = t;
  16429. this.greyType = true;
  16430. } else {
  16431. if (p == 1) {
  16432. this.newEnglishList.engText = this.isUpdateText;
  16433. } else if (p == 2) {
  16434. this.oldEnglishJson1.engText = this.isUpdateText;
  16435. } else if (p == 3) {
  16436. this.newEnglishList.engText = this.isUpdateText;
  16437. } else {
  16438. this.newEnglishList1[
  16439. this.newEngIndex
  16440. ].cWork.engText = this.isUpdateText;
  16441. }
  16442. this.greyType = false;
  16443. }
  16444. },
  16445. aiCorrect(t, p) {
  16446. let aiText = "";
  16447. const loading = this.$loading.service({
  16448. background: "rgba(255, 255, 255)",
  16449. target: document.querySelectorAll(".loadingText")[0]
  16450. });
  16451. let param = {
  16452. model: "gpt-3.5-turbo",
  16453. temperature: 0,
  16454. max_tokens: 2048,
  16455. top_p: 1,
  16456. frequency_penalty: 0,
  16457. presence_penalty: 0,
  16458. messages: [
  16459. {
  16460. role: "user",
  16461. content: `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`
  16462. }
  16463. ],
  16464. uid: this.userid,
  16465. stream: false
  16466. };
  16467. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16468. res => {
  16469. if (
  16470. res.data.FunctionResponse &&
  16471. res.data.FunctionResponse.result &&
  16472. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16473. ) {
  16474. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  16475. return;
  16476. }
  16477. aiText = res.data.FunctionResponse.choices[0].message.content;
  16478. aiText = aiText.replace(/%/g, "%25");
  16479. // let w = "";
  16480. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16481. // for(var k = 0;k<a.length;k++){
  16482. // //diffWordsWithSpace
  16483. // if(a.length > 1){
  16484. // if(a[k].added == true){
  16485. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16486. // }else if(a[k].removed == true){
  16487. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16488. // }else{
  16489. // w += '<span>' + a[k].value + '</span>';
  16490. // }
  16491. // }else{
  16492. // if(p == 1){
  16493. // w = this.newEnglishList.engText;
  16494. // }else if(p == 2){
  16495. // w = this.oldEnglishJson1.engText;
  16496. // }else if(p == 3){
  16497. // w = this.newEnglishList.engText;
  16498. // }else{
  16499. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16500. // }
  16501. // }
  16502. // }
  16503. if (p == 1) {
  16504. this.newEnglishList.engText = aiText;
  16505. } else if (p == 2) {
  16506. this.oldEnglishJson1.engText = aiText;
  16507. } else if (p == 3) {
  16508. this.newEnglishList.engText = aiText;
  16509. } else {
  16510. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16511. }
  16512. loading.close();
  16513. },
  16514. err => {
  16515. console.log(err);
  16516. loading.close();
  16517. }
  16518. );
  16519. },
  16520. addToolChoose() {
  16521. if (!this.checktoolArray.length) {
  16522. this.$message.error("请选择要添加的任务");
  16523. return;
  16524. }
  16525. if (
  16526. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16527. this.taskCount
  16528. ].toolChoose[0].tool.length
  16529. ) {
  16530. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16531. this.taskCount
  16532. ].toolChoose[0].tool = this.checktoolArray;
  16533. } else {
  16534. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16535. this.taskCount
  16536. ].toolChoose.push({
  16537. tool: this.checktoolArray,
  16538. toolDetail: "",
  16539. toolType: 0,
  16540. askCount: 1,
  16541. askTitle: "",
  16542. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  16543. });
  16544. }
  16545. let params = [
  16546. {
  16547. cid: this.id,
  16548. chapters: JSON.stringify(this.chapInfoList),
  16549. uid: this.userid,
  16550. unitIndex: this.courseType
  16551. }
  16552. ];
  16553. this.ajax
  16554. .post(this.$store.state.api + "updateWorkNew4", params)
  16555. .then(res => {
  16556. this.$message({
  16557. message: "添加成功",
  16558. type: "success"
  16559. });
  16560. this.checktoolArray = [];
  16561. this.getCourseDetail(2);
  16562. this.checkBz(
  16563. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16564. this.taskCount
  16565. ].toolChoose.length - 1
  16566. );
  16567. this.toolDialogVisible = false;
  16568. this.refreshCourse();
  16569. this.$forceUpdate();
  16570. })
  16571. .catch(err => {
  16572. console.error(err);
  16573. });
  16574. },
  16575. checkBz(index) {
  16576. this.isUpdateToolDetail = false;
  16577. this.$forceUpdate();
  16578. setTimeout(() => {
  16579. document.scrollingElement.scrollTop =
  16580. document.querySelectorAll(".filebox")[index].offsetTop +
  16581. document.querySelector(".student_body").offsetTop;
  16582. }, 500);
  16583. },
  16584. updateToolDetail(i, type) {
  16585. if (
  16586. !this.isUpdateToolDetail1 &&
  16587. type == 2 &&
  16588. (this.courseDetail.userid == this.userid ||
  16589. (this.courseDetail.course_teacher &&
  16590. this.courseDetail.course_teacher.indexOf(this.userid) != -1))
  16591. ) {
  16592. this.toolDetailIndex = i;
  16593. this.isUpdateToolDetail1 = true;
  16594. setTimeout(() => {
  16595. this.updateToolDetailInner = JSON.parse(
  16596. JSON.stringify(
  16597. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16598. this.taskCount
  16599. ].toolChoose[i].toolDetail
  16600. )
  16601. );
  16602. document.querySelector(".checkTextArea").focus();
  16603. }, 0);
  16604. } else if (this.isUpdateToolDetail1 && type != 2) {
  16605. // this.toolDetailIndex = i;
  16606. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16607. this.taskCount
  16608. ].toolChoose[i].toolDetail = JSON.parse(
  16609. JSON.stringify(this.updateToolDetailInner)
  16610. );
  16611. let params = [
  16612. {
  16613. cid: this.id,
  16614. chapters: JSON.stringify(this.chapInfoList),
  16615. uid: this.userid,
  16616. unitIndex: this.courseType
  16617. }
  16618. ];
  16619. this.ajax
  16620. .post(this.$store.state.api + "updateWorkNew4", params)
  16621. .then(res => {
  16622. this.isUpdateToolDetail1 = false;
  16623. this.$message({
  16624. message: "修改成功",
  16625. type: "success"
  16626. });
  16627. this.toolDetailIndex = null;
  16628. this.updateToolDetailInner = "";
  16629. this.getCourseDetail(2);
  16630. this.$forceUpdate();
  16631. })
  16632. .catch(err => {
  16633. console.error(err);
  16634. });
  16635. } else if (this.isUpdateToolDetail1 && type == 2) {
  16636. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16637. this.taskCount
  16638. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16639. JSON.stringify(this.updateToolDetailInner)
  16640. );
  16641. let params = [
  16642. {
  16643. cid: this.id,
  16644. chapters: JSON.stringify(this.chapInfoList),
  16645. uid: this.userid,
  16646. unitIndex: this.courseType
  16647. }
  16648. ];
  16649. this.ajax
  16650. .post(this.$store.state.api + "updateWorkNew4", params)
  16651. .then(res => {
  16652. this.$message({
  16653. message: "修改成功",
  16654. type: "success"
  16655. });
  16656. this.toolDetailIndex = i;
  16657. this.isUpdateToolDetail1 = true;
  16658. setTimeout(() => {
  16659. this.updateToolDetailInner = JSON.parse(
  16660. JSON.stringify(
  16661. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16662. this.taskCount
  16663. ].toolChoose[i].toolDetail
  16664. )
  16665. );
  16666. document.querySelector(".checkTextArea").focus();
  16667. }, 0);
  16668. this.getCourseDetail(2);
  16669. this.$forceUpdate();
  16670. })
  16671. .catch(err => {
  16672. console.error(err);
  16673. });
  16674. }
  16675. },
  16676. jumpGj(i, j, k, l) {
  16677. this.refreshAssembly();
  16678. for (var z = 0; z < this.navList.length; z++) {
  16679. for (var q = 0; q < this.navList[z].task.length; q++) {
  16680. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16681. this.navList[z].task[q].tool[w].isTool = false;
  16682. }
  16683. }
  16684. }
  16685. this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
  16686. .isTool;
  16687. var a = document.scrollingElement;
  16688. let target = document.querySelector(`#gj${k}`);
  16689. if (target) {
  16690. target.scrollIntoView(true);
  16691. setTimeout(() => {
  16692. a.scrollTop = a.scrollTop - 150;
  16693. }, 0);
  16694. }
  16695. this.navId = "";
  16696. let flag = this.courseType == i;
  16697. let flag2 = this.taskCount == j;
  16698. if (l) {
  16699. this.courseType = i;
  16700. // this.navId = l;
  16701. this.taskCount = j;
  16702. this.selectPz();
  16703. this.getHomeWork();
  16704. this.getCourseDetail(2);
  16705. if (flag) {
  16706. if (flag2) {
  16707. this.insertMemorandum(
  16708. `选择<span class="variable">工具${k + 1}:${
  16709. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16710. }</span>`
  16711. );
  16712. } else {
  16713. this.insertMemorandum(
  16714. `选择<span class="variable">任务${j + 1}${
  16715. this.navList[i].task[j].taskName
  16716. ? ":" + this.navList[i].task[j].taskName
  16717. : ""
  16718. }</span>→<span class="variable">工具${k + 1}:${
  16719. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16720. }</span>`
  16721. );
  16722. }
  16723. } else {
  16724. this.insertMemorandum(
  16725. `选择<span class="variable">阶段${i + 1}${
  16726. this.navList[i].dyName ? ":" + this.navList[i].dyName : ""
  16727. }</span>→<span class="variable">任务${j + 1}${
  16728. this.navList[i].task[j].taskName
  16729. ? ":" + this.navList[i].task[j].taskName
  16730. : ""
  16731. }</span>→<span class="variable">工具${k + 1}:${
  16732. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16733. }</span>`
  16734. );
  16735. }
  16736. }
  16737. // var b = this.$refs["bz" + k][0];
  16738. // a.scrollTop = b.offsetTop;
  16739. },
  16740. addTools2(i) {
  16741. if (i == 4) {
  16742. // this.openTools2(4);
  16743. this.$message.error("暂未开放");
  16744. return;
  16745. }
  16746. if (i == 45) {
  16747. // this.openTools2(45);
  16748. this.$message.error("暂未开放");
  16749. return;
  16750. }
  16751. if (i == 47) {
  16752. // this.openTools2(47);
  16753. this.$message.error("暂未开放");
  16754. return;
  16755. }
  16756. if (i == 49) {
  16757. // this.openTools2(49);
  16758. this.$message.error("暂未开放");
  16759. return;
  16760. }
  16761. if (i == 62) {
  16762. // this.openTools(itemTaskIndex, 62, toolIndex);
  16763. this.$message.error("暂未开放");
  16764. return;
  16765. }
  16766. if (i == 15) {
  16767. // this.openTools(itemTaskIndex, 15, toolIndex);
  16768. this.$message.error("暂未开放");
  16769. return;
  16770. }
  16771. if (i == 40) {
  16772. // this.openTools(itemTaskIndex, 40, toolIndex);
  16773. this.$message.error("暂未开放");
  16774. return;
  16775. }
  16776. if (i == 41) {
  16777. // this.openTools(itemTaskIndex, 41, toolIndex);
  16778. this.$message.error("暂未开放");
  16779. return;
  16780. }
  16781. if (i == 42) {
  16782. // this.openTools(itemTaskIndex, 42, toolIndex);
  16783. this.$message.error("暂未开放");
  16784. return;
  16785. }
  16786. if (this.checktoolArray.length > 0) {
  16787. if (this.checktoolArray.indexOf(i) != -1) {
  16788. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  16789. } else {
  16790. this.checktoolArray = [];
  16791. this.checktoolArray.push(i);
  16792. }
  16793. } else {
  16794. this.checktoolArray.push(i);
  16795. }
  16796. this.$forceUpdate();
  16797. },
  16798. jump() {
  16799. window.parent.postMessage({ tools: "43" }, "*");
  16800. },
  16801. getUpdateMore(f, checkboxList, searchTN, index) {
  16802. this.dialogVisibleMember = f;
  16803. this.checkboxList = checkboxList;
  16804. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  16805. this.plIndex = index;
  16806. },
  16807. setPlname(a) {
  16808. if (this.plworkFile.length) {
  16809. this.plworkFile[this.plIndex].username = a;
  16810. } else {
  16811. this.worksSName = a;
  16812. }
  16813. this.dialogVisibleMember = false;
  16814. },
  16815. previewImg(url, w) {
  16816. this.$hevueImgPreview(url);
  16817. if (w) {
  16818. this.insertMemorandum(
  16819. `查看<span class="variable">${w.sName}</span>的作业`
  16820. );
  16821. }
  16822. },
  16823. checkImg(list) {
  16824. if (!list.length) {
  16825. return;
  16826. }
  16827. this.$hevueImgPreview({
  16828. multiple: true, // 开启多图预览模式
  16829. imgList: list // 需要预览的多图数组
  16830. });
  16831. },
  16832. change(val) {
  16833. console.log(val);
  16834. },
  16835. goTo(path) {
  16836. this.$router.push(path);
  16837. },
  16838. handlePictureCardPreview(url) {
  16839. this.dialogImageUrl = url;
  16840. this.pictureDialog = true;
  16841. },
  16842. clean(type) {
  16843. if (type == 1) {
  16844. this.studyJuri[0].cover.splice(0, 1);
  16845. } else if (type == 2) {
  16846. this.studyJuri[0].upVedio.splice(0, 1);
  16847. } else {
  16848. this.studyJuri[0].upFile.splice(0, 1);
  16849. }
  16850. },
  16851. clean2(index) {
  16852. this.plworkFile.splice(index, 1);
  16853. },
  16854. handleClose(done) {
  16855. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  16856. this.videoDetail.sources[0].src = "";
  16857. }
  16858. this.commentIndexJson = {};
  16859. done();
  16860. },
  16861. fullTools() {
  16862. this.full = !this.full;
  16863. },
  16864. imgChange(file, fileList, type) {
  16865. if (type == 1) {
  16866. var _tmp = this.studyJuri[0].cover;
  16867. } else if (type == 2) {
  16868. var _tmp = this.studyJuri[0].upVedio;
  16869. } else {
  16870. var _tmp = this.studyJuri[0].upFile;
  16871. }
  16872. this.noneBtnImg = _tmp.length >= 1;
  16873. },
  16874. setContent(bool) {
  16875. this.contentDialog = bool;
  16876. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  16877. document.querySelector(".workd_media").style.height = "650px";
  16878. } else if (document.querySelector(".workd_media")) {
  16879. document.querySelector(".workd_media").style.height = "auto";
  16880. }
  16881. },
  16882. setContent2(bool) {
  16883. this.mlDialog = bool;
  16884. if (
  16885. bool &&
  16886. this.contentDialog &&
  16887. document.querySelector(".workd_media")
  16888. ) {
  16889. document.querySelector(".workd_media").style.height = "650px";
  16890. } else if (document.querySelector(".workd_media")) {
  16891. document.querySelector(".workd_media").style.height = "auto";
  16892. }
  16893. },
  16894. openToolAll() {
  16895. this.toolDialogVisible = true;
  16896. },
  16897. addImg(e) {
  16898. var el = e.currentTarget;
  16899. // this.$message.success('触发上传')
  16900. el.getElementsByTagName("input")[0].click();
  16901. e.target.value = "";
  16902. },
  16903. addSelectAnswer() {
  16904. let params = [
  16905. {
  16906. uid: this.userid,
  16907. cid: this.id,
  16908. stage: this.courseType,
  16909. task: this.taskCount,
  16910. tool: this.toolindex,
  16911. content: this.selectAnswer.answer,
  16912. type: 7
  16913. }
  16914. ];
  16915. this.ajax
  16916. .post(this.$store.state.api + "addCourseWorks", params)
  16917. .then(res => {
  16918. this.$message({
  16919. message: "提交成功",
  16920. type: "success"
  16921. });
  16922. this.dialogVisibleSelect = false;
  16923. // this.selectAnswer = {};
  16924. this.selectSWorks();
  16925. this.selectStudent();
  16926. })
  16927. .catch(err => {
  16928. this.$message.error("提交失败");
  16929. console.error(err);
  16930. });
  16931. },
  16932. addSelectAnswerTeacher() {
  16933. let params = [
  16934. {
  16935. uid: this.sStudent.userid,
  16936. cid: this.id,
  16937. stage: this.courseType,
  16938. task: this.taskCount,
  16939. tool: this.toolindex,
  16940. content: this.selectAnswer.answer,
  16941. type: 7
  16942. }
  16943. ];
  16944. this.ajax
  16945. .post(this.$store.state.api + "addCourseWorks", params)
  16946. .then(res => {
  16947. this.$message({
  16948. message: "提交成功",
  16949. type: "success"
  16950. });
  16951. this.dialogVisibleSelectTeacher = false;
  16952. // this.selectAnswer = {};
  16953. this.selectSWorks();
  16954. this.selectStudent();
  16955. })
  16956. .catch(err => {
  16957. this.$message.error("提交失败");
  16958. console.error(err);
  16959. });
  16960. },
  16961. addSenWorks() {
  16962. for (var i = 0; i < this.sentenceList.length; i++) {
  16963. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  16964. if (
  16965. this.sentenceList[i].chooseSenList[j] == undefined ||
  16966. this.sentenceList[i].chooseSenList[j] == ""
  16967. ) {
  16968. this.$message.error("请将答案填写完整!");
  16969. return;
  16970. }
  16971. }
  16972. }
  16973. let params = [
  16974. {
  16975. uid: this.userid,
  16976. cid: this.id,
  16977. stage: this.courseType,
  16978. task: this.taskCount,
  16979. tool: this.toolindex,
  16980. content: JSON.stringify(this.sentenceList),
  16981. type: 9
  16982. }
  16983. ];
  16984. this.ajax
  16985. .post(this.$store.state.api + "addCourseWorks", params)
  16986. .then(res => {
  16987. this.$message({
  16988. message: "提交成功",
  16989. type: "success"
  16990. });
  16991. this.dialogVisibleSentence = false;
  16992. // this.selectAnswer = {};
  16993. this.selectSWorks();
  16994. this.selectStudent();
  16995. })
  16996. .catch(err => {
  16997. this.$message.error("提交失败");
  16998. console.error(err);
  16999. });
  17000. },
  17001. addSenWorksTeacher() {
  17002. for (var i = 0; i < this.sentenceList.length; i++) {
  17003. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17004. if (
  17005. this.sentenceList[i].chooseSenList[j] == undefined ||
  17006. this.sentenceList[i].chooseSenList[j] == ""
  17007. ) {
  17008. this.$message.error("请将答案填写完整!");
  17009. return;
  17010. }
  17011. }
  17012. }
  17013. let params = [
  17014. {
  17015. uid: this.sStudent.userid,
  17016. cid: this.id,
  17017. stage: this.courseType,
  17018. task: this.taskCount,
  17019. tool: this.toolindex,
  17020. content: JSON.stringify(this.sentenceList),
  17021. type: 9
  17022. }
  17023. ];
  17024. this.ajax
  17025. .post(this.$store.state.api + "addCourseWorks", params)
  17026. .then(res => {
  17027. this.$message({
  17028. message: "提交成功",
  17029. type: "success"
  17030. });
  17031. this.dialogVisibleSentenceTeacher = false;
  17032. // this.selectAnswer = {};
  17033. this.selectSWorks();
  17034. this.selectStudent();
  17035. })
  17036. .catch(err => {
  17037. this.$message.error("提交失败");
  17038. console.error(err);
  17039. });
  17040. },
  17041. returnTableText() {
  17042. this.$confirm("确定还原此模板吗?", "提示", {
  17043. confirmButtonText: "确定",
  17044. cancelButtonText: "取消",
  17045. type: "warning"
  17046. })
  17047. .then(() => {
  17048. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17049. })
  17050. .catch(() => {});
  17051. },
  17052. addTableWorks() {
  17053. let params = [
  17054. {
  17055. uid: this.userid,
  17056. cid: this.id,
  17057. stage: this.courseType,
  17058. task: this.taskCount,
  17059. tool: this.toolindex,
  17060. content: JSON.stringify(this.tableJson),
  17061. type: 10
  17062. }
  17063. ];
  17064. this.ajax
  17065. .post(this.$store.state.api + "addCourseWorks", params)
  17066. .then(res => {
  17067. this.$message({
  17068. message: "提交成功",
  17069. type: "success"
  17070. });
  17071. this.dialogVisibleTable = false;
  17072. // this.selectAnswer = {};
  17073. this.selectSWorks();
  17074. this.selectStudent();
  17075. })
  17076. .catch(err => {
  17077. this.$message.error("提交失败");
  17078. console.error(err);
  17079. });
  17080. },
  17081. tableRowClassName({ row, rowIndex }) {
  17082. if ((rowIndex + 1) % 2 === 0) {
  17083. return "even_row";
  17084. } else {
  17085. return "";
  17086. }
  17087. },
  17088. addTableWorksTeacher() {
  17089. let params = [
  17090. {
  17091. uid: this.sStudent.userid,
  17092. cid: this.id,
  17093. stage: this.courseType,
  17094. task: this.taskCount,
  17095. tool: this.toolindex,
  17096. content: JSON.stringify(this.tableJson),
  17097. type: 10
  17098. }
  17099. ];
  17100. this.ajax
  17101. .post(this.$store.state.api + "addCourseWorks", params)
  17102. .then(res => {
  17103. this.$message({
  17104. message: "提交成功",
  17105. type: "success"
  17106. });
  17107. this.dialogVisibleTableTeacher = false;
  17108. // this.selectAnswer = {};
  17109. this.selectSWorks();
  17110. this.selectStudent();
  17111. })
  17112. .catch(err => {
  17113. this.$message.error("提交失败");
  17114. console.error(err);
  17115. });
  17116. },
  17117. returnWordText() {
  17118. this.$confirm("确定还原此模板吗?", "提示", {
  17119. confirmButtonText: "确定",
  17120. cancelButtonText: "取消",
  17121. type: "warning"
  17122. })
  17123. .then(() => {
  17124. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17125. })
  17126. .catch(() => {});
  17127. },
  17128. addWordWorks() {
  17129. let params = [
  17130. {
  17131. uid: this.userid,
  17132. cid: this.id,
  17133. stage: this.courseType,
  17134. task: this.taskCount,
  17135. tool: this.toolindex,
  17136. content: JSON.stringify(this.wordJson),
  17137. type: 13,
  17138. atool: 52
  17139. }
  17140. ];
  17141. this.ajax
  17142. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17143. .then(res => {
  17144. this.$message({
  17145. message: "提交成功",
  17146. type: "success"
  17147. });
  17148. this.dialogVisibleWord = false;
  17149. // this.selectAnswer = {};
  17150. this.selectSWorks();
  17151. this.selectStudent();
  17152. })
  17153. .catch(err => {
  17154. this.$message.error("提交失败");
  17155. console.error(err);
  17156. });
  17157. },
  17158. addWordWorksTeacher() {
  17159. let params = [
  17160. {
  17161. uid: this.sStudent.userid,
  17162. cid: this.id,
  17163. stage: this.courseType,
  17164. task: this.taskCount,
  17165. tool: this.toolindex,
  17166. content: JSON.stringify(this.wordJson),
  17167. type: 13,
  17168. atool: 52
  17169. }
  17170. ];
  17171. this.ajax
  17172. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17173. .then(res => {
  17174. this.$message({
  17175. message: "提交成功",
  17176. type: "success"
  17177. });
  17178. this.dialogVisibleWordTeacher = false;
  17179. // this.selectAnswer = {};
  17180. this.selectSWorks();
  17181. this.selectStudent();
  17182. })
  17183. .catch(err => {
  17184. this.$message.error("提交失败");
  17185. console.error(err);
  17186. });
  17187. },
  17188. addCourseWorksCopy(i) {
  17189. let arr = this.workStudent[this.toolindex].filter(e => {
  17190. return (e.userid = this.userid);
  17191. });
  17192. if (arr.length > 0) {
  17193. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17194. confirmButtonText: "确定",
  17195. cancelButtonText: "取消",
  17196. type: "warning"
  17197. })
  17198. .then(() => {
  17199. this.addCourseWorks(i);
  17200. })
  17201. .catch(() => {});
  17202. } else {
  17203. this.addCourseWorks(i);
  17204. }
  17205. },
  17206. addCourseWorks(i) {
  17207. var typesql;
  17208. if (this.fileType === 0) {
  17209. typesql = 1;
  17210. } else if (this.fileType === 1) {
  17211. typesql = 4;
  17212. } else if (this.fileType === 2) {
  17213. typesql = 5;
  17214. } else if (this.fileType === 3) {
  17215. typesql = 12;
  17216. }
  17217. if (!this.studyJuri[0].cover[0].url) {
  17218. this.$message.error("请上传文件");
  17219. return;
  17220. }
  17221. let params = [
  17222. {
  17223. uid: this.userid,
  17224. cid: this.id,
  17225. stage: this.courseType,
  17226. task: i,
  17227. tool: this.toolindex,
  17228. content: this.studyJuri[0].cover[0].url,
  17229. type: typesql
  17230. }
  17231. ];
  17232. this.ajax
  17233. .post(this.$store.state.api + "addCourseWorksR1", params)
  17234. .then(res => {
  17235. this.$message({
  17236. message: "提交成功",
  17237. type: "success"
  17238. });
  17239. this.studyJuri[0].cover = [];
  17240. this.dialogVisible = false;
  17241. this.getCourseDetail(2);
  17242. })
  17243. .catch(err => {
  17244. this.$message.error("提交失败");
  17245. console.error(err);
  17246. });
  17247. },
  17248. addCourseWorksPl(i) {
  17249. let _files = this.plworkFile;
  17250. var c = 1;
  17251. for (var k = 0; k < _files.length; k++) {
  17252. if (!_files[k].username) {
  17253. c = 2;
  17254. }
  17255. }
  17256. if (c == 2) {
  17257. this.$message.error("请填写学生姓名");
  17258. return;
  17259. }
  17260. let params = [
  17261. {
  17262. ateacher: this.userid,
  17263. cid: this.id,
  17264. stage: this.courseType,
  17265. task: i,
  17266. tool: this.toolindex,
  17267. content: JSON.stringify(_files)
  17268. }
  17269. ];
  17270. this.ajax
  17271. .post(this.$store.state.api + "addCourseWorksPl", params)
  17272. .then(res => {
  17273. this.$message({
  17274. message: "提交成功",
  17275. type: "success"
  17276. });
  17277. this.plworkFile = [];
  17278. this.dialogVisiblePl = false;
  17279. this.getCourseDetail(2);
  17280. })
  17281. .catch(err => {
  17282. this.$message.error("提交失败");
  17283. console.error(err);
  17284. });
  17285. },
  17286. addCourseWorks2(i) {
  17287. var typesql;
  17288. if (this.fileType === 0) {
  17289. typesql = 0;
  17290. } else if (this.fileType === 1) {
  17291. typesql = 1;
  17292. } else if (this.fileType === 2) {
  17293. typesql = 3;
  17294. } else if (this.fileType === 3) {
  17295. typesql = 12;
  17296. }
  17297. if (!this.studyJuri[0].cover[0].url) {
  17298. this.$message.error("请上传文件");
  17299. return;
  17300. }
  17301. let params = [
  17302. {
  17303. uid: this.userid,
  17304. cid: this.id,
  17305. stage: this.courseType,
  17306. task: i,
  17307. tool: this.toolindex,
  17308. content: JSON.stringify({
  17309. type: typesql,
  17310. groupIndex: this.groupIndex,
  17311. url: this.studyJuri[0].cover[0].url
  17312. }),
  17313. type: 11,
  17314. atool: 49,
  17315. text: ""
  17316. }
  17317. ];
  17318. this.ajax
  17319. .post(this.$store.state.api + "addCourseWorks5", params)
  17320. .then(res => {
  17321. this.$message({
  17322. message: "提交成功",
  17323. type: "success"
  17324. });
  17325. this.studyJuri[0].cover = [];
  17326. this.dialogVisibleGroupWork = false;
  17327. this.getCourseDetail(2);
  17328. })
  17329. .catch(err => {
  17330. this.$message.error("提交失败");
  17331. console.error(err);
  17332. });
  17333. },
  17334. addEnglishWork() {
  17335. this.myAnList = this.$refs["engJson"].myAnswerList;
  17336. if (
  17337. !this.myAnList.engTitle ||
  17338. !this.myAnList.engText ||
  17339. this.myAnList.engTitle == "" ||
  17340. this.myAnList.engText == ""
  17341. ) {
  17342. this.$message.error("请输入作文标题和正文!");
  17343. return;
  17344. }
  17345. let params = [
  17346. {
  17347. uid: this.userid,
  17348. cid: this.id,
  17349. stage: this.courseType,
  17350. task: this.taskCount,
  17351. tool: this.englishToolIndex,
  17352. content: JSON.stringify(this.myAnList),
  17353. type: 16,
  17354. atool: 69,
  17355. text: ""
  17356. }
  17357. ];
  17358. this.ajax
  17359. .post(this.$store.state.api + "addCourseWorks5", params)
  17360. .then(res => {
  17361. this.$message({
  17362. message: "提交成功",
  17363. type: "success"
  17364. });
  17365. this.myAnList = {};
  17366. this.englishList = {};
  17367. this.englishToolIndex = 0;
  17368. this.engDialogVisible = false;
  17369. this.selectSWorks();
  17370. this.selectStudent();
  17371. })
  17372. .catch(err => {
  17373. this.$message.error("提交失败");
  17374. console.error(err);
  17375. });
  17376. },
  17377. addCourseWorksGong(i, data, tool) {
  17378. let params = [
  17379. {
  17380. uid: this.userid,
  17381. cid: this.id,
  17382. stage: this.courseType,
  17383. task: this.taskCount,
  17384. tool: i,
  17385. content: data,
  17386. type: 12,
  17387. atool: tool,
  17388. text: ""
  17389. }
  17390. ];
  17391. this.ajax
  17392. .post(this.$store.state.api + "addCourseWorks5", params)
  17393. .then(res => {
  17394. this.$message({
  17395. message: "提交成功",
  17396. type: "success"
  17397. });
  17398. this.studyJuri[0].cover = [];
  17399. this.selectSWorks();
  17400. this.selectStudent();
  17401. })
  17402. .catch(err => {
  17403. this.$message.error("提交失败");
  17404. console.error(err);
  17405. });
  17406. },
  17407. addCourseWorksGongTeacher(i, data, tool) {
  17408. let params = [
  17409. {
  17410. uid: this.sStudent.userid,
  17411. cid: this.id,
  17412. stage: this.courseType,
  17413. task: this.taskCount,
  17414. tool: i,
  17415. content: data,
  17416. type: 12,
  17417. atool: tool,
  17418. text: ""
  17419. }
  17420. ];
  17421. this.ajax
  17422. .post(this.$store.state.api + "addCourseWorks5", params)
  17423. .then(res => {
  17424. this.$message({
  17425. message: "提交成功",
  17426. type: "success"
  17427. });
  17428. this.studyJuri[0].cover = [];
  17429. this.dialogVisibleWorks = false;
  17430. this.selectSWorks();
  17431. this.selectStudent();
  17432. })
  17433. .catch(err => {
  17434. this.$message.error("提交失败");
  17435. console.error(err);
  17436. });
  17437. },
  17438. addCourseWorksGongPl(i, data, tool, type) {
  17439. let params = [
  17440. {
  17441. uid: this.sStudent.userid,
  17442. cid: this.id,
  17443. stage: this.courseType,
  17444. task: this.taskCount,
  17445. tool: i,
  17446. content: data,
  17447. type: type,
  17448. atool: tool,
  17449. text: ""
  17450. }
  17451. ];
  17452. this.ajax
  17453. .post(this.$store.state.api + "addCourseWorks5", params)
  17454. .then(res => {
  17455. this.$message({
  17456. message: "提交成功",
  17457. type: "success"
  17458. });
  17459. this.studyJuri[0].cover = [];
  17460. this.dialogVisibleWorks = false;
  17461. this.selectSWorks();
  17462. this.selectStudent();
  17463. })
  17464. .catch(err => {
  17465. this.$message.error("提交失败");
  17466. console.error(err);
  17467. });
  17468. },
  17469. addCourseWorksTeacher(i) {
  17470. var typesql;
  17471. if (this.sTool == 32) {
  17472. this.addCourseWorksGongTeacher(
  17473. this.toolindex,
  17474. this.studyJuri[0].cover[0].url,
  17475. this.sTool
  17476. );
  17477. return;
  17478. }
  17479. if (this.fileType === 0) {
  17480. typesql = 1;
  17481. } else if (this.fileType === 1) {
  17482. typesql = 4;
  17483. } else if (this.fileType === 2) {
  17484. typesql = 5;
  17485. } else if (this.fileType === 3) {
  17486. typesql = 12;
  17487. }
  17488. if (this.sTool == 50) {
  17489. this.addCourseWorksGongPl(
  17490. this.toolindex,
  17491. this.studyJuri[0].cover[0].url,
  17492. this.sTool,
  17493. typesql
  17494. );
  17495. return;
  17496. }
  17497. if (!this.studyJuri[0].cover[0].url) {
  17498. this.$message.error("请上传文件");
  17499. return;
  17500. }
  17501. let params = [
  17502. {
  17503. uid: this.sStudent.userid,
  17504. cid: this.id,
  17505. stage: this.courseType,
  17506. task: i,
  17507. tool: this.toolindex,
  17508. content: this.studyJuri[0].cover[0].url,
  17509. type: typesql,
  17510. ateacher: this.userid
  17511. }
  17512. ];
  17513. this.ajax
  17514. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17515. .then(res => {
  17516. this.$message({
  17517. message: "提交成功",
  17518. type: "success"
  17519. });
  17520. this.studyJuri[0].cover = [];
  17521. this.dialogVisibleWorks = false;
  17522. this.getCourseDetail(2);
  17523. })
  17524. .catch(err => {
  17525. this.$message.error("提交失败");
  17526. console.error(err);
  17527. });
  17528. },
  17529. selectUploadStudent(type) {
  17530. const loading = this.$loading.service({
  17531. background: "rgba(255, 255, 255, 0.7)",
  17532. target: document.body
  17533. });
  17534. let params = {
  17535. cid: this.uploadCid,
  17536. oid: this.oid,
  17537. cn: ""
  17538. };
  17539. this.ajax
  17540. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17541. .then(res => {
  17542. loading.close();
  17543. var studentK = [];
  17544. if (this.isWorksS[this.toolindex].length > 0) {
  17545. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17546. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17547. }
  17548. studentK = studentK.join(",");
  17549. }
  17550. this.uploadStudentJuri = res.data[0].filter(el => {
  17551. return studentK.indexOf(el.userid) == -1;
  17552. });
  17553. if (this.worksSName && this.worksSid) {
  17554. this.uploadStudentJuri.push({
  17555. userid: this.worksSid,
  17556. name: this.worksSName
  17557. });
  17558. }
  17559. if (type == 1) {
  17560. this.plworkFile = [];
  17561. this.dialogVisibleSname = true;
  17562. } else if (type == 2) {
  17563. this.dialogVisiblePl = true;
  17564. }
  17565. })
  17566. .catch(err => {
  17567. loading.close();
  17568. console.error(err);
  17569. });
  17570. },
  17571. selectPickStudent() {
  17572. const loading = this.$loading.service({
  17573. background: "rgba(255, 255, 255, 0.7)",
  17574. target: document.body
  17575. });
  17576. let params = {
  17577. cid: this.uploadCid,
  17578. oid: this.oid,
  17579. cn: ""
  17580. };
  17581. this.ajax
  17582. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17583. .then(res => {
  17584. loading.close();
  17585. this.uploadStudentJuri = res.data[0];
  17586. this.dialogVisiblePickPeople = true;
  17587. })
  17588. .catch(err => {
  17589. loading.close();
  17590. console.error(err);
  17591. });
  17592. },
  17593. arrayToArray(arrayo, arrayt) {
  17594. let array1 = arrayo;
  17595. let array2 = arrayt;
  17596. let commonElements = [];
  17597. for (let i = 0; i < array1.length; i++) {
  17598. for (let j = 0; j < array2.length; j++) {
  17599. if (array1[i] === array2[j]) {
  17600. commonElements.push(array1[i]);
  17601. }
  17602. }
  17603. }
  17604. return commonElements;
  17605. },
  17606. selectWorksStudent() {
  17607. let params = {
  17608. oid: this.oid,
  17609. cid: this.courseDetail.juri
  17610. };
  17611. this.ajax
  17612. .get(this.$store.state.api + "selectWorksStudent", params)
  17613. .then(res => {
  17614. var a = res.data[0];
  17615. for (var i = 0; i < this.isWorksS.length; i++) {
  17616. this.noWorksS[i] = [];
  17617. var studentK = [];
  17618. if (this.isWorksS[i].length > 0) {
  17619. for (var z = 0; z < this.isWorksS[i].length; z++) {
  17620. studentK.push(this.isWorksS[i][z].uid);
  17621. }
  17622. studentK = studentK.join(",");
  17623. for (var j = 0; j < a.length; j++) {
  17624. if (studentK.indexOf(a[j].userid) == -1) {
  17625. if (this.tcid) {
  17626. // a[j].classid.indexOf(this.tcid) != -1
  17627. if (
  17628. this.arrayToArray(
  17629. a[j].classid.split(","),
  17630. this.tcid.split(",")
  17631. ).length
  17632. ) {
  17633. this.noWorksS[i].push({
  17634. student: a[j].name,
  17635. userid: a[j].userid
  17636. });
  17637. }
  17638. } else {
  17639. this.noWorksS[i].push({
  17640. student: a[j].name,
  17641. userid: a[j].userid
  17642. });
  17643. }
  17644. }
  17645. }
  17646. } else {
  17647. for (var k = 0; k < a.length; k++) {
  17648. if (this.tcid) {
  17649. if (
  17650. this.arrayToArray(
  17651. a[k].classid.split(","),
  17652. this.tcid.split(",")
  17653. ).length
  17654. ) {
  17655. this.noWorksS[i].push({
  17656. student: a[k].name,
  17657. userid: a[k].userid
  17658. });
  17659. }
  17660. } else {
  17661. this.noWorksS[i].push({
  17662. student: a[k].name,
  17663. userid: a[k].userid
  17664. });
  17665. }
  17666. }
  17667. }
  17668. }
  17669. this.$forceUpdate();
  17670. if (
  17671. Object.keys(this.commentDetail).length &&
  17672. Object.keys(this.commentIndexJson).length &&
  17673. !this.dialogVisibleScore &&
  17674. !this.dialogVisibleENScore
  17675. ) {
  17676. let a = 1;
  17677. let c = this.commentIndexJson;
  17678. if (
  17679. this.commentIndexJson.gindex ||
  17680. this.commentIndexJson.gindex === 0
  17681. ) {
  17682. for (
  17683. var i = 0;
  17684. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17685. i++
  17686. ) {
  17687. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  17688. groupA: for (var k = 0; k < _el.length; k++) {
  17689. let el = _el[k];
  17690. if (el.wid == this.commentDetail.wid) {
  17691. a = 2;
  17692. this.commentOther(
  17693. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  17694. this.commentIndexJson.toolIndex,
  17695. k,
  17696. this.commentIndexJson.gindex
  17697. );
  17698. break groupA;
  17699. }
  17700. }
  17701. }
  17702. if (a === 1) {
  17703. this.commentDetail = [];
  17704. this.commentIndexJson = {};
  17705. this.commentDialogVisible = false;
  17706. this.$message("此作业已被删除");
  17707. }
  17708. } else {
  17709. if (this.isGroup && this.commentIndexJson.gid) {
  17710. groupA: for (
  17711. var i = 0;
  17712. i < this.courseGroup.group.length;
  17713. i++
  17714. ) {
  17715. let _group = this.courseGroup.group[i];
  17716. if (_group.id == this.commentIndexJson.gid) {
  17717. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  17718. for (var k = 0; k < _el2.length; k++) {
  17719. let el2 = _el2[k];
  17720. if (el2.wid == this.commentDetail.wid) {
  17721. a = 2;
  17722. this.commentOther(
  17723. _el2[k],
  17724. this.commentIndexJson.toolIndex,
  17725. k,
  17726. null,
  17727. this.commentIndexJson.gid
  17728. );
  17729. break groupA;
  17730. }
  17731. }
  17732. }
  17733. }
  17734. }
  17735. if (a == 1) {
  17736. for (
  17737. var i = 0;
  17738. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17739. i++
  17740. ) {
  17741. let el = this.worksStudent[this.commentIndexJson.toolIndex][
  17742. i
  17743. ];
  17744. if (el.wid == this.commentDetail.wid) {
  17745. a = 2;
  17746. this.commentOther(
  17747. this.worksStudent[this.commentIndexJson.toolIndex][i],
  17748. this.commentIndexJson.toolIndex,
  17749. i
  17750. );
  17751. break;
  17752. }
  17753. }
  17754. }
  17755. if (a === 1) {
  17756. this.commentDetail = [];
  17757. this.commentIndexJson = {};
  17758. this.commentDialogVisible = false;
  17759. this.$message("此作业已被删除");
  17760. }
  17761. }
  17762. }
  17763. })
  17764. .catch(err => {
  17765. console.error(err);
  17766. });
  17767. },
  17768. selectStudent() {
  17769. //学生查看自己作业
  17770. let params = {
  17771. uid: this.userid,
  17772. cid: this.id,
  17773. s: this.courseType,
  17774. t: this.taskCount
  17775. };
  17776. this.ajax
  17777. .get(this.$store.state.api + "selectStudentWorks", params)
  17778. .then(res => {
  17779. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17780. this.taskCount
  17781. ].toolChoose;
  17782. var b = res.data[0];
  17783. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17784. var y = [
  17785. "AVI",
  17786. "NAVI",
  17787. "MPEG",
  17788. "ASF",
  17789. "MOV",
  17790. "WMV",
  17791. "3GP",
  17792. "RM",
  17793. "RMVB",
  17794. "FLV",
  17795. "F4V",
  17796. "H.264",
  17797. "H.265",
  17798. "REAL VIDEO",
  17799. "MKV",
  17800. "WebM",
  17801. "HDDVD",
  17802. "MP4",
  17803. "MPG",
  17804. "M4V",
  17805. "MGV",
  17806. "OGV",
  17807. "QTM",
  17808. "STR",
  17809. "AMC",
  17810. "DVX",
  17811. "EVO",
  17812. "DAT",
  17813. "OGG",
  17814. "OGM"
  17815. ];
  17816. for (var i = 0; i < a.length; i++) {
  17817. this.workStudent[i] = [];
  17818. for (var j = 0; j < b.length; j++) {
  17819. if (i == b[j].tool) {
  17820. if (
  17821. (b[j].type == 1 ||
  17822. b[j].type == 4 ||
  17823. b[j].type == 5 ||
  17824. b[j].type == 6 ||
  17825. b[j].type == 12 ||
  17826. b[j].type == 7) &&
  17827. a[i].tool[0] != 15 &&
  17828. a[i].tool[0] != 4 &&
  17829. a[i].tool[0] != 45 &&
  17830. a[i].tool[0] != 50 &&
  17831. a[i].tool[0] != 32 &&
  17832. a[i].tool[0] != 57 &&
  17833. a[i].tool[0] != 52 &&
  17834. a[i].tool[0] != 69
  17835. ) {
  17836. if (
  17837. c.indexOf(
  17838. b[j].content
  17839. .split(".")
  17840. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17841. ) != -1 &&
  17842. a[i].tool[0] == 16 &&
  17843. b[j].atool != 50
  17844. ) {
  17845. this.workStudent[i].push({
  17846. works: b[j].content,
  17847. sName: b[j].name,
  17848. score: b[j].score,
  17849. img: b[j].img,
  17850. type: 1,
  17851. time: b[j].time,
  17852. userid: b[j].userid,
  17853. wid: b[j].id
  17854. });
  17855. } else if (
  17856. y.indexOf(
  17857. b[j].content
  17858. .split(".")
  17859. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17860. ) != -1 &&
  17861. a[i].tool[0] == 16 &&
  17862. b[j].atool != 50
  17863. ) {
  17864. this.workStudent[i].push({
  17865. userid: b[j].userid,
  17866. wid: b[j].id,
  17867. works: b[j].content,
  17868. sName: b[j].name,
  17869. score: b[j].score,
  17870. img: b[j].img,
  17871. type: 3,
  17872. time: b[j].time
  17873. });
  17874. } else if (b[j].type == 6 && b[j].atool != 50) {
  17875. this.workStudent[i].push({
  17876. userid: b[j].userid,
  17877. wid: b[j].id,
  17878. works: b[j].content,
  17879. sName: b[j].name,
  17880. score: b[j].score,
  17881. img: b[j].img,
  17882. type: 4,
  17883. time: b[j].time
  17884. });
  17885. } else if (b[j].type == 7 && b[j].atool != 50) {
  17886. this.workStudent[i].push({
  17887. userid: b[j].userid,
  17888. wid: b[j].id,
  17889. works: b[j].content,
  17890. sName: b[j].name,
  17891. score: b[j].score,
  17892. img: b[j].img,
  17893. type: 5,
  17894. time: b[j].time
  17895. });
  17896. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  17897. this.workStudent[i].push({
  17898. works: b[j].content,
  17899. sName: b[j].name,
  17900. score: b[j].score,
  17901. img: b[j].img,
  17902. type: 12,
  17903. time: b[j].time,
  17904. userid: b[j].userid,
  17905. wid: b[j].id
  17906. });
  17907. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  17908. this.workStudent[i].push({
  17909. works: b[j].content,
  17910. sName: b[j].name,
  17911. score: b[j].score,
  17912. img: b[j].img,
  17913. type: 0,
  17914. time: b[j].time,
  17915. userid: b[j].userid,
  17916. wid: b[j].id
  17917. });
  17918. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  17919. this.workStudent[i].push({
  17920. works: b[j].content,
  17921. sName: b[j].name,
  17922. score: b[j].score,
  17923. img: b[j].img,
  17924. type: 0,
  17925. time: b[j].time,
  17926. userid: b[j].userid,
  17927. wid: b[j].id
  17928. });
  17929. }
  17930. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  17931. this.workStudent[i].push({
  17932. works: b[j].content,
  17933. sName: b[j].name,
  17934. score: b[j].score,
  17935. img: b[j].img,
  17936. type: 2,
  17937. time: b[j].time,
  17938. userid: b[j].userid,
  17939. wid: b[j].id
  17940. });
  17941. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  17942. //问卷
  17943. this.workStudent[i].push({
  17944. works: b[j].content,
  17945. sName: b[j].name,
  17946. score: b[j].score,
  17947. img: b[j].img,
  17948. type: 2,
  17949. time: b[j].time,
  17950. userid: b[j].userid,
  17951. wid: b[j].id
  17952. });
  17953. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  17954. //选择题
  17955. this.workStudent[i].push({
  17956. works: b[j].content,
  17957. sName: b[j].name,
  17958. score: b[j].score,
  17959. img: b[j].img,
  17960. type: 8,
  17961. time: b[j].time,
  17962. userid: b[j].userid,
  17963. wid: b[j].id
  17964. });
  17965. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  17966. //选择题
  17967. this.workStudent[i].push({
  17968. works: b[j].content,
  17969. sName: b[j].name,
  17970. score: b[j].score,
  17971. img: b[j].img,
  17972. type: 9,
  17973. time: b[j].time,
  17974. userid: b[j].userid,
  17975. wid: b[j].id
  17976. });
  17977. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  17978. //选择题
  17979. this.workStudent[i].push({
  17980. works: b[j].content,
  17981. sName: b[j].name,
  17982. score: b[j].score,
  17983. img: b[j].img,
  17984. type: 10,
  17985. time: b[j].time,
  17986. userid: b[j].userid,
  17987. wid: b[j].id
  17988. });
  17989. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  17990. //选择题
  17991. this.workStudent[i].push({
  17992. works: b[j].content,
  17993. sName: b[j].name,
  17994. score: b[j].score,
  17995. img: b[j].img,
  17996. type: 13,
  17997. time: b[j].time,
  17998. userid: b[j].userid,
  17999. wid: b[j].id
  18000. });
  18001. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18002. //选择题
  18003. this.workStudent[i].push({
  18004. works: b[j].content,
  18005. sName: b[j].name,
  18006. score: b[j].score,
  18007. img: b[j].img,
  18008. type: 12,
  18009. time: b[j].time,
  18010. userid: b[j].userid,
  18011. wid: b[j].id
  18012. });
  18013. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18014. //选择题
  18015. this.workStudent[i].push({
  18016. works: b[j].content,
  18017. sName: b[j].name,
  18018. score: b[j].score,
  18019. img: b[j].img,
  18020. type: 12,
  18021. time: b[j].time,
  18022. userid: b[j].userid,
  18023. wid: b[j].id
  18024. });
  18025. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18026. //选择题
  18027. this.workStudent[i].push({
  18028. works: b[j].content,
  18029. sName: b[j].name,
  18030. score: b[j].score,
  18031. img: b[j].img,
  18032. type: 15,
  18033. time: b[j].time,
  18034. userid: b[j].userid,
  18035. wid: b[j].id
  18036. });
  18037. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18038. //英语写作
  18039. this.workStudent[i].push({
  18040. works: b[j].content,
  18041. sName: b[j].name,
  18042. score: b[j].score,
  18043. img: b[j].img,
  18044. type: 16,
  18045. time: b[j].time,
  18046. userid: b[j].userid,
  18047. wid: b[j].id,
  18048. aiCode: b[j].aiCode,
  18049. teacherCode: b[j].teacherCode
  18050. });
  18051. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18052. //英语写作
  18053. this.workStudent[i].push({
  18054. works: b[j].content,
  18055. sName: b[j].name,
  18056. score: b[j].score,
  18057. img: b[j].img,
  18058. type: 17,
  18059. time: b[j].time,
  18060. userid: b[j].userid,
  18061. wid: b[j].id
  18062. });
  18063. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18064. //英语口语
  18065. this.workStudent[i].push({
  18066. works: b[j].content,
  18067. sName: b[j].name,
  18068. score: b[j].score,
  18069. img: b[j].img,
  18070. type: 14,
  18071. time: b[j].time,
  18072. userid: b[j].userid,
  18073. wid: b[j].id
  18074. });
  18075. }
  18076. }
  18077. }
  18078. }
  18079. })
  18080. .catch(err => {
  18081. console.error(err);
  18082. });
  18083. },
  18084. openVideo(w) {
  18085. this.videoDetail = {};
  18086. this.playerOptions1.sources[0].src = w.works;
  18087. this.videoDetail = this.playerOptions1;
  18088. this.videoVisible = true;
  18089. },
  18090. isLikes(wid, uid, t, c, isLikes, sName) {
  18091. if (isLikes == false) {
  18092. let params = [
  18093. {
  18094. wid: wid,
  18095. lid: uid,
  18096. t: t,
  18097. c: c
  18098. }
  18099. ];
  18100. this.ajax
  18101. .post(this.$store.state.api + "insertComment", params)
  18102. .then(res => {
  18103. this.$message({
  18104. message: "点赞成功",
  18105. type: "success"
  18106. });
  18107. this.selectSWorks();
  18108. this.selectStudent();
  18109. this.insertMemorandum(
  18110. `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
  18111. );
  18112. })
  18113. .catch(err => {
  18114. this.$message.error("点赞失败");
  18115. console.error(err);
  18116. });
  18117. } else {
  18118. let params = {
  18119. wid: wid,
  18120. lid: uid,
  18121. type: t
  18122. };
  18123. this.ajax
  18124. .get(this.$store.state.api + "deleteComment", params)
  18125. .then(res => {
  18126. this.$message({
  18127. message: "取消点赞成功",
  18128. type: "success"
  18129. });
  18130. this.selectSWorks();
  18131. this.selectStudent();
  18132. })
  18133. .catch(err => {
  18134. console.error(err);
  18135. });
  18136. }
  18137. },
  18138. deleteComment(wid) {
  18139. this.$confirm("确定删除此评论吗?", "提示", {
  18140. confirmButtonText: "确定",
  18141. cancelButtonText: "取消",
  18142. type: "warning"
  18143. })
  18144. .then(() => {
  18145. let params = {
  18146. id: wid
  18147. };
  18148. this.ajax
  18149. .get(this.$store.state.api + "deleteComment2", params)
  18150. .then(res => {
  18151. this.$message({
  18152. message: "删除评论成功",
  18153. type: "success"
  18154. });
  18155. this.selectSWorks();
  18156. this.selectStudent();
  18157. })
  18158. .catch(err => {
  18159. console.error(err);
  18160. });
  18161. })
  18162. .catch(() => {});
  18163. },
  18164. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18165. this.commentIndexJson = {
  18166. toolIndex: toolIndex,
  18167. wIndex: wIndex,
  18168. gindex: gindex,
  18169. gid: gid
  18170. };
  18171. this.commentDialogVisible = true;
  18172. // console.log('wwwwww',w)
  18173. if (JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works))
  18174. return;
  18175. this.commentDetailCopy = w.works;
  18176. this.commentDetail = [];
  18177. this.commentDetail = w;
  18178. if (w.works && w.type == 1) {
  18179. // this.pptImgUrl = "";
  18180. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18181. if (
  18182. a.indexOf(
  18183. w.works
  18184. .split(".")
  18185. [w.works.split(".").length - 1].toLocaleUpperCase()
  18186. ) != -1
  18187. ) {
  18188. let _uuurl = await this.checkLink(w.works);
  18189. this.pptImgUrl =
  18190. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18191. encodeURIComponent(_uuurl);
  18192. this.showPDF = false;
  18193. } else if (
  18194. w.works
  18195. .split(".")
  18196. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18197. ) {
  18198. this.pptImgUrl = w.works;
  18199. this.showPDF = true;
  18200. }
  18201. } else if (w.works && w.type == 3) {
  18202. this.videoDetail = {};
  18203. this.playerOptions1.sources[0].src = w.works;
  18204. this.videoDetail = this.playerOptions1;
  18205. // this.videoVisible = true;
  18206. } else if (w.works && w.type == 4) {
  18207. this.eScore = JSON.parse(w.works);
  18208. this.rateJson = this.chapInfoList[
  18209. this.courseType
  18210. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18211. toolIndex
  18212. ].rateJson;
  18213. } else if (w.works && w.type == 10) {
  18214. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18215. } else if (w.works && w.type == 12) {
  18216. getFile(this.commentDetail.works).then(res => {
  18217. this.commentDetail.works = res.data;
  18218. });
  18219. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18220. } else if (w.works && w.type == 13) {
  18221. this.wordJson = this.chapInfoList[
  18222. this.courseType
  18223. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18224. toolIndex
  18225. ].wordJson;
  18226. }
  18227. },
  18228. async openScore(w, index) {
  18229. this.wScore = 0;
  18230. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18231. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18232. this.commentDetail = [];
  18233. if (w.type == 17) {
  18234. this.dialogVisibleENScore = true;
  18235. } else {
  18236. this.dialogVisibleScore = true;
  18237. }
  18238. this.commentDetail = w;
  18239. if (w.works && w.type == 1) {
  18240. this.pptImgUrl = "";
  18241. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18242. if (
  18243. a.indexOf(
  18244. w.works
  18245. .split(".")
  18246. [w.works.split(".").length - 1].toLocaleUpperCase()
  18247. ) != -1
  18248. ) {
  18249. let _uuurl = await this.checkLink(w.works);
  18250. this.pptImgUrl =
  18251. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18252. encodeURIComponent(_uuurl);
  18253. this.showPDF = false;
  18254. } else if (
  18255. w.works
  18256. .split(".")
  18257. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18258. ) {
  18259. this.pptImgUrl = w.works;
  18260. this.showPDF = true;
  18261. }
  18262. } else if (w.works && w.type == 3) {
  18263. this.videoDetail = {};
  18264. this.playerOptions1.sources[0].src = w.works;
  18265. this.videoDetail = this.playerOptions1;
  18266. } else if (w.type == 17) {
  18267. let englishVoiceJson = {};
  18268. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18269. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18270. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18271. this.taskCount
  18272. ].toolChoose[index].englishVoiceJson
  18273. : {};
  18274. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18275. }
  18276. this.insertMemorandum(
  18277. `查看<span class="variable">${w.sName}</span>的作业`
  18278. );
  18279. },
  18280. addComment(wid, uid, t, detail) {
  18281. if (this.commentText == "") {
  18282. this.$message.error("请输入评论");
  18283. return;
  18284. }
  18285. let params2 = [
  18286. {
  18287. wid: wid,
  18288. lid: uid,
  18289. t: t
  18290. }
  18291. ];
  18292. this.ajax
  18293. .post(this.$store.state.api + "getComment", params2)
  18294. .then(res => {
  18295. if (res.data[0].length > 0) {
  18296. this.$message.error("一个作业只能评论一条");
  18297. } else {
  18298. let params = [
  18299. {
  18300. wid: wid,
  18301. lid: uid,
  18302. t: t,
  18303. c: this.commentText
  18304. }
  18305. ];
  18306. this.ajax
  18307. .post(this.$store.state.api + "insertComment", params)
  18308. .then(res => {
  18309. this.$message({
  18310. message: "评论成功",
  18311. type: "success"
  18312. });
  18313. this.commentText = "";
  18314. this.selectSWorks();
  18315. this.selectStudent();
  18316. this.insertMemorandum(
  18317. `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
  18318. );
  18319. })
  18320. .catch(err => {
  18321. this.$message.error("评论失败");
  18322. console.error(err);
  18323. });
  18324. }
  18325. })
  18326. .catch(err => {
  18327. // this.$message.error("评论失败");
  18328. console.error(err);
  18329. });
  18330. },
  18331. scoreWork(wid, sName) {
  18332. if (this.wScore == 0) {
  18333. this.$message.error("请评分");
  18334. return;
  18335. }
  18336. let params = [
  18337. {
  18338. wid: wid,
  18339. score: JSON.stringify({
  18340. wScore: this.wScore,
  18341. detail: this.scoreDetail
  18342. })
  18343. }
  18344. ];
  18345. this.ajax
  18346. .post(this.$store.state.api + "scoreWork", params)
  18347. .then(res => {
  18348. this.$message({
  18349. message: "评分成功",
  18350. type: "success"
  18351. });
  18352. this.wScore = 0;
  18353. this.scoreDetail = "";
  18354. this.dialogVisibleScore = false;
  18355. this.selectSWorks();
  18356. this.selectStudent();
  18357. this.insertMemorandum(
  18358. `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
  18359. );
  18360. })
  18361. .catch(err => {
  18362. this.$message.error("评分失败");
  18363. console.error(err);
  18364. });
  18365. },
  18366. openXz(w, i) {
  18367. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18368. .taskJson[this.taskCount].toolChoose[i].selectJson
  18369. ? JSON.parse(
  18370. JSON.stringify(
  18371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18372. this.taskCount
  18373. ].toolChoose[i].selectJson
  18374. )
  18375. )
  18376. : { url: "", select: [], answer: [] };
  18377. var a = w.works.split(",");
  18378. for (var k = 0; k < a.length; k++) {
  18379. a[k] = parseInt(a[k]);
  18380. }
  18381. this.selectAnswer = { answer: a, stu: w.sName };
  18382. this.isSelect = true;
  18383. this.dialogVisibleSelect = true;
  18384. this.insertMemorandum(
  18385. `查看<span class="variable">${w.sName}</span>的作业`
  18386. );
  18387. },
  18388. openSen(w, i) {
  18389. this.sentenceList1 = JSON.parse(w.works);
  18390. this.sentenceList1.stuName = w.sName;
  18391. this.dialogVisibleSentence1 = true;
  18392. },
  18393. openPj(w, toolindex) {
  18394. this.isStar = true;
  18395. this.eScore = JSON.parse(w);
  18396. this.rateJson = this.chapInfoList[
  18397. this.courseType
  18398. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[toolindex].rateJson;
  18399. this.studentEvalDialogVisible = true;
  18400. },
  18401. openEnglishEva(id, i) {
  18402. let params = {
  18403. wid: id
  18404. };
  18405. this.ajax
  18406. .get(this.$store.state.api + "selectEngWork", params)
  18407. .then(res => {
  18408. this.evaEngJson.message = res.data[0][0];
  18409. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18410. this.evaEngJson.teacherJson = this.chapInfoList[
  18411. this.courseType
  18412. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].englishList;
  18413. this.engEvaDialogVisible = true;
  18414. })
  18415. .catch(err => {
  18416. console.error(err);
  18417. });
  18418. },
  18419. deleteWorks(id) {
  18420. this.$confirm("确定删除此作业吗?", "提示", {
  18421. confirmButtonText: "确定",
  18422. cancelButtonText: "取消",
  18423. type: "warning"
  18424. })
  18425. .then(() => {
  18426. let params = [
  18427. {
  18428. id: id
  18429. }
  18430. ];
  18431. this.ajax
  18432. .post(this.$store.state.api + "deleteCourseWork", params)
  18433. .then(res => {
  18434. this.$message({
  18435. message: "删除成功",
  18436. type: "success"
  18437. });
  18438. this.selectStudent();
  18439. this.selectSWorks();
  18440. this.selectSLook();
  18441. })
  18442. .catch(err => {
  18443. this.$message.error("网络异常");
  18444. console.error(err);
  18445. });
  18446. })
  18447. .catch(() => {});
  18448. },
  18449. // deleteWorksTwo(w,stage,task) {
  18450. // // let mk = `markSco${toolIndex}${wIndex}`
  18451. // // console.log(this.$refs[mk][0].homeworkVal)
  18452. // // let wid = this.$refs[mk][0].homeworkVal.id
  18453. // // console.log('wid',wid);
  18454. // this.$confirm("确定删除此作业吗?", "提示", {
  18455. // confirmButtonText: "确定",
  18456. // cancelButtonText: "取消",
  18457. // type: "warning",
  18458. // })
  18459. // .then(() => {
  18460. // let params = [
  18461. // {
  18462. // id: w.wid,
  18463. // cid: this.id,
  18464. // uid:w.userid,
  18465. // s:stage,
  18466. // t:task
  18467. // },
  18468. // ];
  18469. // // return console.log(params)
  18470. // this.ajax
  18471. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  18472. // .then((res) => {
  18473. // this.$message({
  18474. // message: "删除成功",
  18475. // type: "success",
  18476. // });
  18477. // this.selectStudent();
  18478. // this.selectSWorks();
  18479. // this.selectSLook();
  18480. // })
  18481. // .catch((err) => {
  18482. // this.$message.error("网络异常");
  18483. // console.error(err);
  18484. // });
  18485. // })
  18486. // .catch(() => {});
  18487. // },
  18488. noIsAi() {
  18489. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  18490. },
  18491. getLang() {
  18492. let lang = "";
  18493. if (this.languageSetting == 0) {
  18494. lang = "Chinese.";
  18495. } else if (this.languageSetting == 1) {
  18496. lang = "Traditional Chinese.";
  18497. } else if (this.languageSetting == 2) {
  18498. lang = "English.";
  18499. }
  18500. return lang;
  18501. },
  18502. selectSWorks(gindex) {
  18503. //教师查看全部作业
  18504. let params = {
  18505. cid: this.id,
  18506. s: this.courseType,
  18507. t: this.taskCount
  18508. };
  18509. this.ajax
  18510. .get(this.$store.state.api + "selectSWorks", params)
  18511. .then(res => {
  18512. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18513. this.taskCount
  18514. ].toolChoose;
  18515. var b = res.data[0];
  18516. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18517. var y = [
  18518. "AVI",
  18519. "NAVI",
  18520. "MPEG",
  18521. "ASF",
  18522. "MOV",
  18523. "WMV",
  18524. "3GP",
  18525. "RM",
  18526. "RMVB",
  18527. "FLV",
  18528. "F4V",
  18529. "H.264",
  18530. "H.265",
  18531. "REAL VIDEO",
  18532. "MKV",
  18533. "WebM",
  18534. "HDDVD",
  18535. "MP4",
  18536. "MPG",
  18537. "M4V",
  18538. "MGV",
  18539. "OGV",
  18540. "QTM",
  18541. "STR",
  18542. "AMC",
  18543. "DVX",
  18544. "EVO",
  18545. "DAT",
  18546. "OGG",
  18547. "OGM"
  18548. ];
  18549. var d = res.data[1];
  18550. var e = res.data[2];
  18551. var f = res.data[3];
  18552. let _worksStudent = [];
  18553. var _worksStudent2 = [];
  18554. for (var i = 0; i < a.length; i++) {
  18555. _worksStudent[i] = [];
  18556. _worksStudent2[i] = [];
  18557. if (
  18558. !this.isCloseList[i] ||
  18559. this.isCloseList[i].isClose == undefined
  18560. ) {
  18561. this.isCloseList[i] = { isClose: 0 };
  18562. }
  18563. this.groupStudent[i] = [];
  18564. this.groupStudentUid[i] = [];
  18565. if (this.isGroup) {
  18566. for (
  18567. var groupI = 0;
  18568. groupI < this.courseGroup.group.length;
  18569. groupI++
  18570. ) {
  18571. this.courseGroup.group[groupI].works[i] = [];
  18572. }
  18573. }
  18574. this.isWorksS[i] = [];
  18575. this.checkJson[i] = [];
  18576. if (a[i].tool[0] == 49) {
  18577. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18578. this.groupStudent[i][gA] = [];
  18579. this.groupStudentUid[i][gA] = [];
  18580. _worksStudent[i][gA] = [];
  18581. _worksStudent2[i][gA] = [];
  18582. this.isCloseList[i][gA] = [];
  18583. for (var g = 0; g < f.length; g++) {
  18584. if (
  18585. f[g].ttype == 2 &&
  18586. this.tcid &&
  18587. this.arrayToArray(
  18588. f[g].classid ? f[g].classid.split(",") : [],
  18589. this.tcid.split(",")
  18590. ).length == 0
  18591. ) {
  18592. continue;
  18593. }
  18594. let _classId = this.arrayToArray(
  18595. this.courseDetail.juri
  18596. ? this.courseDetail.juri.split(",")
  18597. : [],
  18598. this.classId ? this.classId.split(",") : []
  18599. );
  18600. if (
  18601. gA == f[g].group &&
  18602. f[g].tool == i &&
  18603. (this.arrayToArray(
  18604. f[g].classid ? f[g].classid.split(",") : [],
  18605. this.tcid.split(",")
  18606. ).length !== 0 ||
  18607. this.arrayToArray(
  18608. f[g].classid ? f[g].classid.split(",") : [],
  18609. _classId
  18610. ).length !== 0 ||
  18611. (!this.tcid && this.tType == "1") ||
  18612. this.courseDetail.juri === "" ||
  18613. f[g].ttype == 1)
  18614. ) {
  18615. this.groupStudent[i][gA].push(f[g]);
  18616. this.groupStudentUid[i][gA].push(f[g].userid);
  18617. }
  18618. }
  18619. }
  18620. this.$forceUpdate();
  18621. }
  18622. for (var j = 0; j < b.length; j++) {
  18623. if (
  18624. b[j].ttype == 2 &&
  18625. this.tcid &&
  18626. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  18627. .length == 0
  18628. ) {
  18629. continue;
  18630. }
  18631. var likesCount = 0;
  18632. var commentCount = 0;
  18633. var isLikes = false;
  18634. var commentJson = [];
  18635. var likeJson = [];
  18636. var data = b[j];
  18637. if (i == b[j].tool) {
  18638. if (data.type == 2 && a[i].tool[0] == 4) {
  18639. // if(JSON.parse(data.content)[0].anwer){
  18640. var checkL =
  18641. JSON.parse(data.content)[0].anwer instanceof Array
  18642. ? JSON.parse(data.content)[0].anwer
  18643. : JSON.parse(data.content)[0].anwer.split(",");
  18644. for (var z = 0; z < checkL.length; z++) {
  18645. if (!this.checkJson[i][z]) {
  18646. this.checkJson[i].push({
  18647. checkCount: [],
  18648. checkPerson: [],
  18649. rightPerson: []
  18650. });
  18651. }
  18652. if (!this.checkJson[i][z].checkCount.length) {
  18653. this.checkJson[i][z].checkCount = [];
  18654. let _askItemCount = JSON.parse(data.content)[0].askJson
  18655. .askJson[z].askItem;
  18656. for (var aic = 0; aic < _askItemCount; aic++) {
  18657. this.checkJson[i][z].checkCount.push(0);
  18658. }
  18659. }
  18660. if (checkL[z] instanceof Array) {
  18661. if (
  18662. JSON.parse(data.content)[0]
  18663. .anwer.sort()
  18664. .join(",") == checkL[z].sort().join(",")
  18665. ) {
  18666. this.checkJson[i][z].rightPerson.push(data.name);
  18667. }
  18668. for (var q = 0; q < checkL[z].length; q++) {
  18669. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18670. ? this.checkJson[i][z].checkPerson[
  18671. parseInt(checkL[z][q])
  18672. ].push(data.name)
  18673. : (this.checkJson[i][z].checkPerson[
  18674. parseInt(checkL[z][q])
  18675. ] = [data.name]);
  18676. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18677. ? this.checkJson[i][z].checkCount[
  18678. parseInt(checkL[z][q])
  18679. ]++
  18680. : (this.checkJson[i][z].checkCount[
  18681. parseInt(checkL[z][q])
  18682. ] = 1);
  18683. }
  18684. } else {
  18685. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  18686. this.checkJson[i][z].rightPerson.push(data.name);
  18687. }
  18688. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18689. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18690. ? this.checkJson[i][z].checkPerson[
  18691. parseInt(checkL[z])
  18692. ].push(data.name)
  18693. : (this.checkJson[i][z].checkPerson[
  18694. parseInt(checkL[z])
  18695. ] = [data.name]);
  18696. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18697. ? this.checkJson[i][z].checkCount[
  18698. parseInt(checkL[z])
  18699. ]++
  18700. : (this.checkJson[i][z].checkCount[
  18701. parseInt(checkL[z])
  18702. ] = 1);
  18703. }
  18704. }
  18705. }
  18706. } else if (data.type == 8 && a[i].tool[0] == 45) {
  18707. var checkL = JSON.parse(data.content)[0].anwer;
  18708. for (var z = 0; z < checkL.length; z++) {
  18709. if (!this.checkJson[i][z]) {
  18710. this.checkJson[i].push({
  18711. checkCount: [],
  18712. checkPerson: [],
  18713. rightPerson: []
  18714. });
  18715. }
  18716. if (!this.checkJson[i][z].checkCount.length) {
  18717. this.checkJson[i][z].checkCount = [];
  18718. let _askItemCount = JSON.parse(data.content)[0].testJson
  18719. .testJson[z].testItem;
  18720. for (var aic = 0; aic < _askItemCount; aic++) {
  18721. this.checkJson[i][z].checkCount.push(0);
  18722. }
  18723. }
  18724. if (checkL[z] instanceof Array) {
  18725. if (
  18726. JSON.parse(data.content)[0]
  18727. .testJson.testJson[z].answer.sort()
  18728. .join(",") == checkL[z].sort().join(",")
  18729. ) {
  18730. this.checkJson[i][z].rightPerson.push(data.name);
  18731. }
  18732. for (var q = 0; q < checkL[z].length; q++) {
  18733. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18734. ? this.checkJson[i][z].checkPerson[
  18735. parseInt(checkL[z][q])
  18736. ].push(data.name)
  18737. : (this.checkJson[i][z].checkPerson[
  18738. parseInt(checkL[z][q])
  18739. ] = [data.name]);
  18740. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18741. ? this.checkJson[i][z].checkCount[
  18742. parseInt(checkL[z][q])
  18743. ]++
  18744. : (this.checkJson[i][z].checkCount[
  18745. parseInt(checkL[z][q])
  18746. ] = 1);
  18747. }
  18748. } else {
  18749. if (
  18750. JSON.parse(data.content)[0].testJson.testJson[z]
  18751. .answer == checkL[z]
  18752. ) {
  18753. this.checkJson[i][z].rightPerson.push(data.name);
  18754. }
  18755. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18756. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18757. ? this.checkJson[i][z].checkPerson[
  18758. parseInt(checkL[z])
  18759. ].push(data.name)
  18760. : (this.checkJson[i][z].checkPerson[
  18761. parseInt(checkL[z])
  18762. ] = [data.name]);
  18763. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18764. ? this.checkJson[i][z].checkCount[
  18765. parseInt(checkL[z])
  18766. ]++
  18767. : (this.checkJson[i][z].checkCount[
  18768. parseInt(checkL[z])
  18769. ] = 1);
  18770. }
  18771. }
  18772. }
  18773. } else if (data.type == 9 && a[i].tool[0] == 47) {
  18774. var checkL = JSON.parse(data.content);
  18775. for (var z = 0; z < checkL.length; z++) {
  18776. if (!this.checkJson[i][z]) {
  18777. this.checkJson[i].push({
  18778. checkCount: [],
  18779. checkPerson: [],
  18780. rightPerson: []
  18781. });
  18782. }
  18783. this.checkJson[i][z].checkPerson.push(data.name);
  18784. if (
  18785. checkL[z].chooseSenList.toString() ==
  18786. checkL[z].rightAnswer.toString()
  18787. ) {
  18788. this.checkJson[i][z].rightPerson.push(data.name);
  18789. }
  18790. }
  18791. }
  18792. for (var k = 0; k < d.length; k++) {
  18793. //点赞
  18794. if (d[k].workId == b[j].id) {
  18795. likesCount++;
  18796. likeJson.push(d[k]);
  18797. if (d[k].likesId == this.userid) {
  18798. isLikes = true;
  18799. }
  18800. }
  18801. }
  18802. for (var l = 0; l < e.length; l++) {
  18803. //评论
  18804. if (e[l].workId == b[j].id) {
  18805. if (e[l].comment != "") {
  18806. commentCount++;
  18807. commentJson.push({
  18808. commentText: e[l].comment,
  18809. commentTime: e[l].commentTime,
  18810. commentPeople: e[l].commentPeople,
  18811. userid: e[l].userid,
  18812. wid: e[l].id
  18813. });
  18814. }
  18815. }
  18816. }
  18817. if (
  18818. (b[j].type == 1 ||
  18819. b[j].type == 4 ||
  18820. b[j].type == 5 ||
  18821. b[j].type == 6 ||
  18822. b[j].type == 12 ||
  18823. b[j].type == 7) &&
  18824. a[i].tool[0] != 15 &&
  18825. a[i].tool[0] != 4 &&
  18826. a[i].tool[0] != 45 &&
  18827. a[i].tool[0] != 50 &&
  18828. a[i].tool[0] != 32 &&
  18829. a[i].tool[0] != 57 &&
  18830. a[i].tool[0] != 52
  18831. ) {
  18832. if (
  18833. c.indexOf(
  18834. b[j].content
  18835. .split(".")
  18836. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18837. ) != -1 &&
  18838. a[i].tool[0] == 16 &&
  18839. b[j].atool != 50
  18840. ) {
  18841. let _works = {
  18842. userid: b[j].userid,
  18843. ateacher: b[j].ateacher,
  18844. wid: b[j].id,
  18845. works: b[j].content,
  18846. sName: b[j].name,
  18847. type: 1,
  18848. ttype: b[j].ttype,
  18849. time: b[j].time,
  18850. score: b[j].score,
  18851. img: b[j].img,
  18852. likesCount: likesCount,
  18853. commentCount: commentCount,
  18854. isLikes: isLikes,
  18855. commentJson: commentJson,
  18856. likeJson: likeJson
  18857. };
  18858. if (this.isGroup) {
  18859. let isGw = 1;
  18860. for (
  18861. var groupI = 0;
  18862. groupI < this.courseGroup.group.length;
  18863. groupI++
  18864. ) {
  18865. let gid = this.courseGroup.group[groupI].id;
  18866. if (
  18867. this.courseGroupStudentUid[gid].indexOf(
  18868. b[j].userid
  18869. ) != -1
  18870. ) {
  18871. isGw = 2;
  18872. this.courseGroup.group[groupI].works[i].push(_works);
  18873. break;
  18874. }
  18875. }
  18876. if (isGw == 1) {
  18877. _worksStudent[i].push(_works);
  18878. }
  18879. } else {
  18880. _worksStudent[i].push(_works);
  18881. }
  18882. _worksStudent2[i].push(_works);
  18883. this.isWorksS[i].push({
  18884. uid: b[j].userid,
  18885. sName: b[j].name
  18886. });
  18887. } else if (
  18888. y.indexOf(
  18889. b[j].content
  18890. .split(".")
  18891. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18892. ) != -1 &&
  18893. a[i].tool[0] == 16 &&
  18894. b[j].atool != 50
  18895. ) {
  18896. let _works = {
  18897. userid: b[j].userid,
  18898. ateacher: b[j].ateacher,
  18899. wid: b[j].id,
  18900. works: b[j].content,
  18901. sName: b[j].name,
  18902. type: 3,
  18903. ttype: b[j].ttype,
  18904. time: b[j].time,
  18905. score: b[j].score,
  18906. img: b[j].img,
  18907. likesCount: likesCount,
  18908. commentCount: commentCount,
  18909. isLikes: isLikes,
  18910. commentJson: commentJson,
  18911. likeJson: likeJson
  18912. };
  18913. if (this.isGroup) {
  18914. let isGw = 1;
  18915. for (
  18916. var groupI = 0;
  18917. groupI < this.courseGroup.group.length;
  18918. groupI++
  18919. ) {
  18920. let gid = this.courseGroup.group[groupI].id;
  18921. if (
  18922. this.courseGroupStudentUid[gid].indexOf(
  18923. b[j].userid
  18924. ) != -1
  18925. ) {
  18926. isGw = 2;
  18927. this.courseGroup.group[groupI].works[i].push(_works);
  18928. break;
  18929. }
  18930. }
  18931. if (isGw == 1) {
  18932. _worksStudent[i].push(_works);
  18933. }
  18934. } else {
  18935. _worksStudent[i].push(_works);
  18936. }
  18937. _worksStudent2[i].push(_works);
  18938. this.isWorksS[i].push({
  18939. uid: b[j].userid,
  18940. sName: b[j].name
  18941. });
  18942. } else if (b[j].type == 6 && b[j].atool != 50) {
  18943. let _works = {
  18944. userid: b[j].userid,
  18945. ateacher: b[j].ateacher,
  18946. wid: b[j].id,
  18947. works: b[j].content,
  18948. sName: b[j].name,
  18949. type: 4,
  18950. ttype: b[j].ttype,
  18951. time: b[j].time,
  18952. score: b[j].score,
  18953. img: b[j].img,
  18954. likesCount: likesCount,
  18955. commentCount: commentCount,
  18956. isLikes: isLikes,
  18957. commentJson: commentJson,
  18958. likeJson: likeJson
  18959. };
  18960. _worksStudent[i].push(_works);
  18961. _worksStudent2[i].push(_works);
  18962. this.isWorksS[i].push({
  18963. uid: b[j].userid,
  18964. sName: b[j].name
  18965. });
  18966. } else if (b[j].type == 7 && b[j].atool != 50) {
  18967. let _work = {
  18968. userid: b[j].userid,
  18969. ateacher: b[j].ateacher,
  18970. wid: b[j].id,
  18971. works: b[j].content,
  18972. sName: b[j].name,
  18973. type: 5,
  18974. ttype: b[j].ttype,
  18975. time: b[j].time,
  18976. score: b[j].score,
  18977. img: b[j].img,
  18978. likesCount: likesCount,
  18979. commentCount: commentCount,
  18980. isLikes: isLikes,
  18981. commentJson: commentJson,
  18982. likeJson: likeJson
  18983. };
  18984. _worksStudent[i].push(_work);
  18985. _worksStudent2[i].push(_work);
  18986. this.isWorksS[i].push({
  18987. uid: b[j].userid,
  18988. sName: b[j].name
  18989. });
  18990. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18991. let _works = {
  18992. userid: b[j].userid,
  18993. ateacher: b[j].ateacher,
  18994. wid: b[j].id,
  18995. works: b[j].content,
  18996. sName: b[j].name,
  18997. type: 12,
  18998. ttype: b[j].ttype,
  18999. time: b[j].time,
  19000. score: b[j].score,
  19001. img: b[j].img,
  19002. likesCount: likesCount,
  19003. commentCount: commentCount,
  19004. isLikes: isLikes,
  19005. commentJson: commentJson,
  19006. likeJson: likeJson
  19007. };
  19008. if (this.isGroup) {
  19009. let isGw = 1;
  19010. for (
  19011. var groupI = 0;
  19012. groupI < this.courseGroup.group.length;
  19013. groupI++
  19014. ) {
  19015. let gid = this.courseGroup.group[groupI].id;
  19016. if (
  19017. this.courseGroupStudentUid[gid].indexOf(
  19018. b[j].userid
  19019. ) != -1
  19020. ) {
  19021. isGw = 2;
  19022. this.courseGroup.group[groupI].works[i].push(_works);
  19023. break;
  19024. }
  19025. }
  19026. if (isGw == 1) {
  19027. _worksStudent[i].push(_works);
  19028. }
  19029. } else {
  19030. _worksStudent[i].push(_works);
  19031. }
  19032. _worksStudent2[i].push(_works);
  19033. this.isWorksS[i].push({
  19034. uid: b[j].userid,
  19035. sName: b[j].name
  19036. });
  19037. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19038. let _works = {
  19039. userid: b[j].userid,
  19040. ateacher: b[j].ateacher,
  19041. wid: b[j].id,
  19042. works: b[j].content,
  19043. sName: b[j].name,
  19044. type: 0,
  19045. ttype: b[j].ttype,
  19046. time: b[j].time,
  19047. score: b[j].score,
  19048. img: b[j].img,
  19049. likesCount: likesCount,
  19050. commentCount: commentCount,
  19051. isLikes: isLikes,
  19052. commentJson: commentJson,
  19053. likeJson: likeJson
  19054. };
  19055. if (this.isGroup) {
  19056. let isGw = 1;
  19057. for (
  19058. var groupI = 0;
  19059. groupI < this.courseGroup.group.length;
  19060. groupI++
  19061. ) {
  19062. let gid = this.courseGroup.group[groupI].id;
  19063. if (
  19064. this.courseGroupStudentUid[gid].indexOf(
  19065. b[j].userid
  19066. ) != -1
  19067. ) {
  19068. isGw = 2;
  19069. this.courseGroup.group[groupI].works[i].push(_works);
  19070. break;
  19071. }
  19072. }
  19073. if (isGw == 1) {
  19074. _worksStudent[i].push(_works);
  19075. }
  19076. } else {
  19077. _worksStudent[i].push(_works);
  19078. }
  19079. _worksStudent2[i].push(_works);
  19080. this.isWorksS[i].push({
  19081. uid: b[j].userid,
  19082. sName: b[j].name
  19083. });
  19084. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19085. let _works = {
  19086. userid: b[j].userid,
  19087. ateacher: b[j].ateacher,
  19088. wid: b[j].id,
  19089. works: b[j].content,
  19090. sName: b[j].name,
  19091. type: 0,
  19092. ttype: b[j].ttype,
  19093. time: b[j].time,
  19094. score: b[j].score,
  19095. img: b[j].img,
  19096. likesCount: likesCount,
  19097. commentCount: commentCount,
  19098. isLikes: isLikes,
  19099. commentJson: commentJson,
  19100. likeJson: likeJson
  19101. };
  19102. if (this.isGroup) {
  19103. let isGw = 1;
  19104. for (
  19105. var groupI = 0;
  19106. groupI < this.courseGroup.group.length;
  19107. groupI++
  19108. ) {
  19109. let gid = this.courseGroup.group[groupI].id;
  19110. if (
  19111. this.courseGroupStudentUid[gid].indexOf(
  19112. b[j].userid
  19113. ) != -1
  19114. ) {
  19115. isGw = 2;
  19116. this.courseGroup.group[groupI].works[i].push(_works);
  19117. break;
  19118. }
  19119. }
  19120. if (isGw == 1) {
  19121. _worksStudent[i].push(_works);
  19122. }
  19123. } else {
  19124. _worksStudent[i].push(_works);
  19125. }
  19126. _worksStudent2[i].push(_works);
  19127. this.isWorksS[i].push({
  19128. uid: b[j].userid,
  19129. sName: b[j].name
  19130. });
  19131. }
  19132. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19133. let _works = {
  19134. userid: b[j].userid,
  19135. ateacher: b[j].ateacher,
  19136. wid: b[j].id,
  19137. works: b[j].content,
  19138. sName: b[j].name,
  19139. type: 2,
  19140. ttype: b[j].ttype,
  19141. time: b[j].time,
  19142. score: b[j].score,
  19143. img: b[j].img,
  19144. likesCount: likesCount,
  19145. commentCount: commentCount,
  19146. isLikes: isLikes,
  19147. commentJson: commentJson,
  19148. likeJson: likeJson
  19149. };
  19150. if (this.isGroup) {
  19151. let isGw = 1;
  19152. for (
  19153. var groupI = 0;
  19154. groupI < this.courseGroup.group.length;
  19155. groupI++
  19156. ) {
  19157. let gid = this.courseGroup.group[groupI].id;
  19158. if (
  19159. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19160. -1
  19161. ) {
  19162. isGw = 2;
  19163. this.courseGroup.group[groupI].works[i].push(_works);
  19164. break;
  19165. }
  19166. }
  19167. if (isGw == 1) {
  19168. _worksStudent[i].push(_works);
  19169. }
  19170. } else {
  19171. _worksStudent[i].push(_works);
  19172. }
  19173. _worksStudent2[i].push(_works);
  19174. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19175. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19176. //问卷
  19177. let _work = {
  19178. userid: b[j].userid,
  19179. ateacher: b[j].ateacher,
  19180. wid: b[j].id,
  19181. works: b[j].content,
  19182. sName: b[j].name,
  19183. type: 2,
  19184. ttype: b[j].ttype,
  19185. time: b[j].time,
  19186. score: b[j].score,
  19187. img: b[j].img,
  19188. likesCount: likesCount,
  19189. commentCount: commentCount,
  19190. isLikes: isLikes,
  19191. commentJson: commentJson,
  19192. likeJson: likeJson
  19193. };
  19194. _worksStudent[i].push(_work);
  19195. _worksStudent2[i].push(_work);
  19196. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19197. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19198. //选择题
  19199. let _work = {
  19200. userid: b[j].userid,
  19201. ateacher: b[j].ateacher,
  19202. wid: b[j].id,
  19203. works: b[j].content,
  19204. sName: b[j].name,
  19205. type: 8,
  19206. ttype: b[j].ttype,
  19207. time: b[j].time,
  19208. score: b[j].score,
  19209. img: b[j].img,
  19210. likesCount: likesCount,
  19211. commentCount: commentCount,
  19212. isLikes: isLikes,
  19213. commentJson: commentJson,
  19214. likeJson: likeJson
  19215. };
  19216. _worksStudent[i].push(_work);
  19217. _worksStudent2[i].push(_work);
  19218. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19219. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19220. //选择题
  19221. let _work = {
  19222. userid: b[j].userid,
  19223. ateacher: b[j].ateacher,
  19224. wid: b[j].id,
  19225. works: b[j].content,
  19226. sName: b[j].name,
  19227. type: 9,
  19228. ttype: b[j].ttype,
  19229. time: b[j].time,
  19230. score: b[j].score,
  19231. img: b[j].img,
  19232. likesCount: likesCount,
  19233. commentCount: commentCount,
  19234. isLikes: isLikes,
  19235. commentJson: commentJson,
  19236. likeJson: likeJson
  19237. };
  19238. _worksStudent[i].push(_work);
  19239. _worksStudent2[i].push(_work);
  19240. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19241. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19242. //选择题
  19243. let _work = {
  19244. userid: b[j].userid,
  19245. ateacher: b[j].ateacher,
  19246. wid: b[j].id,
  19247. works: b[j].content,
  19248. sName: b[j].name,
  19249. type: 10,
  19250. ttype: b[j].ttype,
  19251. time: b[j].time,
  19252. score: b[j].score,
  19253. img: b[j].img,
  19254. likesCount: likesCount,
  19255. commentCount: commentCount,
  19256. isLikes: isLikes,
  19257. commentJson: commentJson,
  19258. likeJson: likeJson
  19259. };
  19260. _worksStudent[i].push(_work);
  19261. _worksStudent2[i].push(_work);
  19262. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19263. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19264. //选择题
  19265. let _work = {
  19266. userid: b[j].userid,
  19267. ateacher: b[j].ateacher,
  19268. wid: b[j].id,
  19269. works: b[j].content,
  19270. sName: b[j].name,
  19271. type: 13,
  19272. ttype: b[j].ttype,
  19273. time: b[j].time,
  19274. score: b[j].score,
  19275. img: b[j].img,
  19276. likesCount: likesCount,
  19277. commentCount: commentCount,
  19278. isLikes: isLikes,
  19279. commentJson: commentJson,
  19280. likeJson: likeJson
  19281. };
  19282. _worksStudent[i].push(_work);
  19283. _worksStudent2[i].push(_work);
  19284. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19285. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19286. //选择题
  19287. let _work = {
  19288. userid: b[j].userid,
  19289. ateacher: b[j].ateacher,
  19290. wid: b[j].id,
  19291. works: b[j].content,
  19292. sName: b[j].name,
  19293. type: 16,
  19294. ttype: b[j].ttype,
  19295. time: b[j].time,
  19296. score: b[j].score,
  19297. img: b[j].img,
  19298. likesCount: likesCount,
  19299. commentCount: commentCount,
  19300. isLikes: isLikes,
  19301. commentJson: commentJson,
  19302. aiCode: b[j].aiCode,
  19303. teacherCode: b[j].teacherCode,
  19304. likeJson: likeJson
  19305. };
  19306. _worksStudent[i].push(_work);
  19307. _worksStudent2[i].push(_work);
  19308. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19309. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19310. //选择题
  19311. let _work = {
  19312. userid: b[j].userid,
  19313. ateacher: b[j].ateacher,
  19314. wid: b[j].id,
  19315. works: b[j].content,
  19316. sName: b[j].name,
  19317. type: 17,
  19318. ttype: b[j].ttype,
  19319. time: b[j].time,
  19320. score: b[j].score,
  19321. img: b[j].img,
  19322. likesCount: likesCount,
  19323. commentCount: commentCount,
  19324. isLikes: isLikes,
  19325. commentJson: commentJson,
  19326. likeJson: likeJson
  19327. };
  19328. _worksStudent[i].push(_work);
  19329. _worksStudent2[i].push(_work);
  19330. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19331. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19332. //交互视频
  19333. let _work = {
  19334. userid: b[j].userid,
  19335. ateacher: b[j].ateacher,
  19336. wid: b[j].id,
  19337. works: b[j].content,
  19338. sName: b[j].name,
  19339. type: 14,
  19340. ttype: b[j].ttype,
  19341. time: b[j].time,
  19342. score: b[j].score,
  19343. img: b[j].img,
  19344. likesCount: likesCount,
  19345. commentCount: commentCount,
  19346. isLikes: isLikes,
  19347. commentJson: commentJson,
  19348. likeJson: likeJson
  19349. };
  19350. _worksStudent[i].push(_work);
  19351. _worksStudent2[i].push(_work);
  19352. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19353. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19354. let _gindex = JSON.parse(b[j].content);
  19355. if (
  19356. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19357. b[j].userid
  19358. ) != -1
  19359. ) {
  19360. let _work = {
  19361. userid: b[j].userid,
  19362. ateacher: b[j].ateacher,
  19363. wid: b[j].id,
  19364. works: _gindex.url,
  19365. sName: b[j].name,
  19366. type: _gindex.type,
  19367. ttype: b[j].ttype,
  19368. time: b[j].time,
  19369. score: b[j].score,
  19370. img: b[j].img,
  19371. likesCount: likesCount,
  19372. commentCount: commentCount,
  19373. isLikes: isLikes,
  19374. commentJson: commentJson,
  19375. likeJson: likeJson
  19376. };
  19377. _worksStudent[i][_gindex.groupIndex].push(_work);
  19378. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19379. }
  19380. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19381. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19382. let _work = {
  19383. userid: b[j].userid,
  19384. ateacher: b[j].ateacher,
  19385. wid: b[j].id,
  19386. works: b[j].content,
  19387. sName: b[j].name ? b[j].name : b[j].userid,
  19388. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19389. ttype: b[j].ttype,
  19390. time: b[j].time,
  19391. score: b[j].score,
  19392. img: b[j].img,
  19393. likesCount: likesCount,
  19394. commentCount: commentCount,
  19395. isLikes: isLikes,
  19396. commentJson: commentJson,
  19397. likeJson: likeJson
  19398. };
  19399. _worksStudent[i].push(_work);
  19400. _worksStudent2[i].push(_work);
  19401. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19402. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  19403. let _work = {
  19404. userid: b[j].userid,
  19405. ateacher: b[j].ateacher,
  19406. wid: b[j].id,
  19407. works: b[j].content,
  19408. sName: b[j].name ? b[j].name : b[j].userid,
  19409. type: 12,
  19410. ttype: b[j].ttype,
  19411. time: b[j].time,
  19412. score: b[j].score,
  19413. img: b[j].img,
  19414. likesCount: likesCount,
  19415. commentCount: commentCount,
  19416. isLikes: isLikes,
  19417. commentJson: commentJson,
  19418. likeJson: likeJson
  19419. };
  19420. _worksStudent[i].push(_work);
  19421. _worksStudent2[i].push(_work);
  19422. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19423. } else if (
  19424. a[i].tool[0] == 57 &&
  19425. b[j].atool == 57 &&
  19426. b[j].type == 12
  19427. ) {
  19428. let _work = {
  19429. userid: b[j].userid,
  19430. ateacher: b[j].ateacher,
  19431. wid: b[j].id,
  19432. works: b[j].content,
  19433. sName: b[j].name ? b[j].name : b[j].userid,
  19434. type: 12,
  19435. ttype: b[j].ttype,
  19436. time: b[j].time,
  19437. score: b[j].score,
  19438. img: b[j].img,
  19439. likesCount: likesCount,
  19440. commentCount: commentCount,
  19441. isLikes: isLikes,
  19442. commentJson: commentJson,
  19443. likeJson: likeJson
  19444. };
  19445. _worksStudent[i].push(_work);
  19446. _worksStudent2[i].push(_work);
  19447. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19448. } else if (
  19449. a[i].tool[0] == 57 &&
  19450. b[j].atool == 57 &&
  19451. b[j].type == 15
  19452. ) {
  19453. let _work = {
  19454. userid: b[j].userid,
  19455. ateacher: b[j].ateacher,
  19456. wid: b[j].id,
  19457. works: b[j].content,
  19458. sName: b[j].name ? b[j].name : b[j].userid,
  19459. type: 15,
  19460. ttype: b[j].ttype,
  19461. time: b[j].time,
  19462. score: b[j].score,
  19463. img: b[j].img,
  19464. likesCount: likesCount,
  19465. commentCount: commentCount,
  19466. isLikes: isLikes,
  19467. commentJson: commentJson,
  19468. likeJson: likeJson
  19469. };
  19470. _worksStudent[i].push(_work);
  19471. _worksStudent2[i].push(_work);
  19472. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19473. }
  19474. }
  19475. }
  19476. if (_worksStudent[i] && _worksStudent[i].length) {
  19477. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19478. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19479. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19480. var scoreA = parseFloat(jscoreA);
  19481. var scoreB = parseFloat(jscoreB);
  19482. if (scoreA == scoreB) {
  19483. return b.likesCount - a.likesCount;
  19484. }
  19485. return scoreB - scoreA;
  19486. });
  19487. if (this.isGroup) {
  19488. for (
  19489. var groupI = 0;
  19490. groupI < this.courseGroup.group.length;
  19491. groupI++
  19492. ) {
  19493. this.courseGroup.group[groupI].works[
  19494. i
  19495. ] = this.courseGroup.group[groupI].works[i].sort(function(
  19496. a,
  19497. b
  19498. ) {
  19499. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19500. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19501. var scoreA = parseFloat(jscoreA);
  19502. var scoreB = parseFloat(jscoreB);
  19503. if (scoreA == scoreB) {
  19504. return b.likesCount - a.likesCount;
  19505. }
  19506. return scoreB - scoreA;
  19507. });
  19508. }
  19509. }
  19510. }
  19511. }
  19512. this.timeWorkList = _worksStudent2;
  19513. for (var i = 0; i < a.length; i++) {
  19514. for (var j = 0; j < b.length; j++) {
  19515. var data = b[j];
  19516. if (i == b[j].tool) {
  19517. if (data.type == 2 || data.type == 8) {
  19518. for (var z = 0; z < this.checkJson[i].length; z++) {
  19519. this.checkJson[i][z].checkPerent = [];
  19520. this.checkJson[i][z].right = Math.round(
  19521. (this.checkJson[i][z].rightPerson.length /
  19522. parseInt(_worksStudent[i].length)) *
  19523. 100
  19524. );
  19525. let aaaa = this.checkJson[i][z];
  19526. for (
  19527. var k = 0;
  19528. k < this.checkJson[i][z].checkCount.length;
  19529. k++
  19530. ) {
  19531. this.checkJson[i][z].checkPerent.push(
  19532. Math.round(
  19533. (this.checkJson[i][z].checkCount[k] /
  19534. parseInt(_worksStudent[i].length)) *
  19535. 100
  19536. )
  19537. );
  19538. }
  19539. }
  19540. } else if (data.type == 9) {
  19541. for (var z = 0; z < this.checkJson[i].length; z++) {
  19542. this.checkJson[i][z].checkPerent = [];
  19543. this.checkJson[i][z].right = Math.round(
  19544. (this.checkJson[i][z].rightPerson.length /
  19545. this.checkJson[i][z].checkPerson.length) *
  19546. 100
  19547. );
  19548. }
  19549. }
  19550. }
  19551. }
  19552. }
  19553. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  19554. this.joinGroup(gindex);
  19555. }
  19556. this.worksStudent = _worksStudent;
  19557. if (
  19558. JSON.stringify(this.worksStudentCopy) !=
  19559. JSON.stringify(this.worksStudent)
  19560. ) {
  19561. console.log("88888999999");
  19562. this.worksStudentCopy = this.worksStudent;
  19563. this.AIloading = [];
  19564. this.loopLoading = [];
  19565. this.worksStudent.forEach((e, index) => {
  19566. this.loopLoading.push({ loading: false });
  19567. this.AIloading.push([]);
  19568. e.forEach(k => {
  19569. this.AIloading[index].push({ loading: false, sco: 0 });
  19570. });
  19571. });
  19572. this.refreshAssembly();
  19573. }
  19574. this.selectWorksStudent();
  19575. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  19576. this.$nextTick(() => {
  19577. setTimeout(() => {
  19578. setTimeout(() => {
  19579. this.panToolHeight("tool-" + ci);
  19580. }, 500);
  19581. }, 0);
  19582. });
  19583. }
  19584. })
  19585. .catch(err => {
  19586. console.error(err);
  19587. });
  19588. },
  19589. pngToWhiteBg(file) {
  19590. const _file = file;
  19591. let read = new FileReader();
  19592. read.readAsDataURL(file); // 文件转base64
  19593. return new Promise((resolve, reject) => {
  19594. read.onload = e => {
  19595. let img = new Image();
  19596. img.src = e.target.result;
  19597. img.onload = async () => {
  19598. // 生成canvas
  19599. let canvas = document.createElement("canvas");
  19600. let context = canvas.getContext("2d");
  19601. // 绘制图片到canvas上
  19602. canvas.width = img.width;
  19603. canvas.height = img.height;
  19604. // 在canvas绘制前填充白色背景
  19605. context.fillStyle = "#fff";
  19606. context.fillRect(0, 0, canvas.width, canvas.height);
  19607. context.drawImage(img, 0, 0);
  19608. let base64 = canvas.toDataURL(file["type"], 1);
  19609. let newFile = this.dataUrlToFile(base64, _file);
  19610. resolve(newFile);
  19611. };
  19612. };
  19613. });
  19614. },
  19615. dataUrlToFile(dataurl, file) {
  19616. let arr = dataurl.split(","),
  19617. mime = arr[0].match(/:(.*?);/)[1],
  19618. bstr = atob(arr[1]),
  19619. n = bstr.length,
  19620. u8arr = new Uint8Array(n);
  19621. while (n--) {
  19622. u8arr[n] = bstr.charCodeAt(n);
  19623. }
  19624. // return new Blob([u8arr], { type: mime });
  19625. return new File([new Blob([u8arr], { type: mime })], file.name, {
  19626. type: mime
  19627. });
  19628. },
  19629. async beforeUpload1(event, type, i) {
  19630. // this.$message.success('进入上传')
  19631. var file = "";
  19632. if (type == 5) {
  19633. file = event;
  19634. } else {
  19635. file = event.target.files[0];
  19636. }
  19637. var credentials = {
  19638. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19639. secretAccessKey: "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"
  19640. }; //秘钥形式的登录上传
  19641. window.AWS.config.update(credentials);
  19642. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19643. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19644. var _this = this;
  19645. _this.progress = 0;
  19646. _this.proVisible = true;
  19647. _this.isFinishSize = 0;
  19648. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  19649. var b = [
  19650. "DOC",
  19651. "DOCX",
  19652. "DOCM",
  19653. "DOTM",
  19654. "DOTX",
  19655. "PPTX",
  19656. "PPSX",
  19657. "PPT",
  19658. "PPS",
  19659. "PPTM",
  19660. "POTM",
  19661. "PPAM",
  19662. "POTX",
  19663. "PPSM"
  19664. ];
  19665. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19666. var photoA = [
  19667. "BMP",
  19668. "GIF",
  19669. "PNG",
  19670. "JPEG",
  19671. "JPEG",
  19672. "JPG",
  19673. "TIF",
  19674. "PCX",
  19675. "TGA",
  19676. "EXIF",
  19677. "FPX",
  19678. "SVG",
  19679. "APNG"
  19680. ];
  19681. // if (
  19682. // b.indexOf(
  19683. // file.name
  19684. // .split(".")
  19685. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19686. // ) != -1
  19687. // ) {
  19688. // if (file.size / 1024 / 1024 > 10) {
  19689. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  19690. // return;
  19691. // }
  19692. // } else if (
  19693. // excelA.indexOf(
  19694. // file.name
  19695. // .split(".")
  19696. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19697. // ) != "-1"
  19698. // ) {
  19699. // if (file.size / 1024 / 1024 > 5) {
  19700. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  19701. // return;
  19702. // }
  19703. // }
  19704. if (
  19705. photoA.indexOf(
  19706. file.name
  19707. .split(".")
  19708. [file.name.split(".").length - 1].toLocaleUpperCase()
  19709. ) != -1 &&
  19710. type != 4
  19711. ) {
  19712. // const blob = await imageConversion.compress(file, 0.8)
  19713. file = await this.pngToWhiteBg(file);
  19714. const blob = await imageConversion.compressAccurately(file, 256);
  19715. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19716. file = new File([blob], file.name, { type: file.type });
  19717. }
  19718. if (file) {
  19719. var params = {
  19720. Key:
  19721. file.name.split(".")[0] +
  19722. new Date().getTime() +
  19723. "." +
  19724. file.name.split(".")[file.name.split(".").length - 1],
  19725. ContentType: file.type,
  19726. Body: file,
  19727. "Access-Control-Allow-Credentials": "*",
  19728. ACL: "public-read"
  19729. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19730. var options = {
  19731. // partSize: 2048 * 1024 * 1024,
  19732. partSize: 1024 * 1024 * 1024,
  19733. queueSize: 2,
  19734. leavePartsOnError: true
  19735. };
  19736. bucket
  19737. .upload(params, options)
  19738. .on("httpUploadProgress", function(evt) {
  19739. //这里可以写进度条
  19740. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19741. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  19742. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  19743. })
  19744. .send(function(err, data) {
  19745. _this.progress = 100;
  19746. _this.isFinishSize = _this.isAllSize;
  19747. setTimeout(() => {
  19748. _this.proVisible = false;
  19749. }, 1000);
  19750. if (err) {
  19751. var a = _this.$refs.upload1.uploadFiles;
  19752. a.splice(a.length - 1, a.length);
  19753. _this.$message.error("上传失败");
  19754. } else {
  19755. // _this.$message.success('上传成功')
  19756. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19757. var c = [
  19758. "AVI",
  19759. "NAVI",
  19760. "MPEG",
  19761. "ASF",
  19762. "MOV",
  19763. "WMV",
  19764. "3GP",
  19765. "RM",
  19766. "RMVB",
  19767. "FLV",
  19768. "F4V",
  19769. "H.264",
  19770. "H.265",
  19771. "REAL VIDEO",
  19772. "MKV",
  19773. "WebM",
  19774. "HDDVD",
  19775. "MP4",
  19776. "MPG",
  19777. "M4V",
  19778. "MGV",
  19779. "OGV",
  19780. "QTM",
  19781. "STR",
  19782. "AMC",
  19783. "DVX",
  19784. "EVO",
  19785. "DAT",
  19786. "OGG",
  19787. "OGM"
  19788. ];
  19789. if (type == 1) {
  19790. _this.studyJuri[0].cover.push({
  19791. name: file.name,
  19792. url: data.Location,
  19793. uid: file.uid
  19794. });
  19795. if (
  19796. c.indexOf(
  19797. _this.studyJuri[0].cover[0].url
  19798. .split(".")
  19799. [
  19800. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19801. ].toLocaleUpperCase()
  19802. ) != -1
  19803. ) {
  19804. _this.fileType = 2;
  19805. } else if (
  19806. b.indexOf(
  19807. _this.studyJuri[0].cover[0].url
  19808. .split(".")
  19809. [
  19810. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19811. ].toLocaleUpperCase()
  19812. ) != -1
  19813. ) {
  19814. _this.fileType = 1;
  19815. } else if (
  19816. photoA.indexOf(
  19817. _this.studyJuri[0].cover[0].url
  19818. .split(".")
  19819. [
  19820. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19821. ].toLocaleUpperCase()
  19822. ) != -1
  19823. ) {
  19824. _this.fileType = 0;
  19825. } else {
  19826. _this.fileType = 3;
  19827. }
  19828. _this.imgChange(null, null, type);
  19829. } else if (type == 2) {
  19830. _this.upToolImg = data.Location;
  19831. _this.imgChange(null, null, type);
  19832. _this.addCourseWorks(i);
  19833. } else if (type == 4) {
  19834. _this.addPz("3", data.Location);
  19835. } else if (type == 5) {
  19836. _this.addImgDrawImG(data.Location);
  19837. } else if (type == 6) {
  19838. var _ftype = 1;
  19839. if (
  19840. c.indexOf(
  19841. data.Location.split(".")[
  19842. data.Location.split(".").length - 1
  19843. ].toLocaleUpperCase()
  19844. ) != -1
  19845. ) {
  19846. _ftype = 5;
  19847. } else if (
  19848. b.indexOf(
  19849. data.Location.split(".")[
  19850. data.Location.split(".").length - 1
  19851. ].toLocaleUpperCase()
  19852. ) != -1
  19853. ) {
  19854. _ftype = 4;
  19855. } else {
  19856. _ftype = 1;
  19857. }
  19858. _this.plworkFile.push({
  19859. name: file.name,
  19860. url: data.Location,
  19861. uid: file.uid,
  19862. fileType: _ftype,
  19863. username:
  19864. _this.plworkFile.length > 10
  19865. ? _this.plworkFile.length + 1
  19866. : "0" + (_this.plworkFile.length + 1)
  19867. });
  19868. } else if (type == 7) {
  19869. _this.addCourseWorksGong(i, data.Location, 32);
  19870. } else if (type == 8) {
  19871. _this.addCourseWorksGong(i, data.Location, 57);
  19872. }
  19873. _this.imgChange(null, null, type);
  19874. console.log(data.Location);
  19875. // _this.$message.success('上传成功'+data.Location)
  19876. }
  19877. });
  19878. }
  19879. },
  19880. async beforeUpload3(event, type, i) {
  19881. // this.$message.success('进入上传')
  19882. let file = "";
  19883. let cfindex2 = 0;
  19884. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  19885. file = event.target.files[cfindex];
  19886. var credentials = {
  19887. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19888. secretAccessKey: "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"
  19889. }; //秘钥形式的登录上传
  19890. window.AWS.config.update(credentials);
  19891. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19892. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19893. var _this = this;
  19894. // _this.progress = 0;
  19895. _this.proVisible2 = true;
  19896. var b = [
  19897. "DOC",
  19898. "DOCX",
  19899. "DOCM",
  19900. "DOTM",
  19901. "DOTX",
  19902. "PPTX",
  19903. "PPSX",
  19904. "PPT",
  19905. "PPS",
  19906. "PPTM",
  19907. "POTM",
  19908. "PPAM",
  19909. "POTX",
  19910. "PPSM"
  19911. ];
  19912. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19913. var photoA = [
  19914. "BMP",
  19915. "GIF",
  19916. "PNG",
  19917. "JPEG",
  19918. "JPG",
  19919. "TIF",
  19920. "PCX",
  19921. "TGA",
  19922. "EXIF",
  19923. "FPX",
  19924. "SVG",
  19925. "APNG"
  19926. ];
  19927. if (
  19928. photoA.indexOf(
  19929. file.name
  19930. .split(".")
  19931. [file.name.split(".").length - 1].toLocaleUpperCase()
  19932. ) != -1 &&
  19933. type != 4
  19934. ) {
  19935. // const blob = await imageConversion.compress(file, 0.8)
  19936. file = await this.pngToWhiteBg(file);
  19937. const blob = await imageConversion.compressAccurately(file, 256);
  19938. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19939. file = new File([blob], file.name, { type: file.type });
  19940. }
  19941. if (file) {
  19942. var params = {
  19943. Key:
  19944. file.name.split(".")[0] +
  19945. new Date().getTime() +
  19946. "." +
  19947. file.name.split(".")[file.name.split(".").length - 1],
  19948. ContentType: file.type,
  19949. Body: file,
  19950. "Access-Control-Allow-Credentials": "*",
  19951. ACL: "public-read"
  19952. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19953. var options = {
  19954. // partSize: 2048 * 1024 * 1024,
  19955. partSize: 1024 * 1024 * 1024,
  19956. queueSize: 2,
  19957. leavePartsOnError: true
  19958. };
  19959. bucket
  19960. .upload(params, options)
  19961. .on("httpUploadProgress", function(evt) {
  19962. //这里可以写进度条
  19963. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19964. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  19965. })
  19966. .send(function(err, data) {
  19967. // _this.progress = 100;
  19968. cfindex2++;
  19969. setTimeout(() => {
  19970. if (
  19971. cfindex2 == event.target.files.length - 1 ||
  19972. cfindex2 > event.target.files.length - 1
  19973. ) {
  19974. _this.proVisible2 = false;
  19975. }
  19976. }, 1000);
  19977. if (err) {
  19978. var a = _this.$refs.upload1.uploadFiles;
  19979. a.splice(a.length - 1, a.length);
  19980. _this.$message.error("上传失败");
  19981. } else {
  19982. // _this.$message.success('上传成功')
  19983. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19984. var c = [
  19985. "AVI",
  19986. "NAVI",
  19987. "MPEG",
  19988. "ASF",
  19989. "MOV",
  19990. "WMV",
  19991. "3GP",
  19992. "RM",
  19993. "RMVB",
  19994. "FLV",
  19995. "F4V",
  19996. "H.264",
  19997. "H.265",
  19998. "REAL VIDEO",
  19999. "MKV",
  20000. "WebM",
  20001. "HDDVD",
  20002. "MP4",
  20003. "MPG",
  20004. "M4V",
  20005. "MGV",
  20006. "OGV",
  20007. "QTM",
  20008. "STR",
  20009. "AMC",
  20010. "DVX",
  20011. "EVO",
  20012. "DAT",
  20013. "OGG",
  20014. "OGM"
  20015. ];
  20016. if (type == 1) {
  20017. _this.studyJuri[0].cover.push({
  20018. name: file.name,
  20019. url: data.Location,
  20020. uid: file.uid
  20021. });
  20022. if (
  20023. c.indexOf(
  20024. _this.studyJuri[0].cover[0].url
  20025. .split(".")
  20026. [
  20027. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20028. ].toLocaleUpperCase()
  20029. ) != -1
  20030. ) {
  20031. _this.fileType = 2;
  20032. } else if (
  20033. b.indexOf(
  20034. _this.studyJuri[0].cover[0].url
  20035. .split(".")
  20036. [
  20037. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20038. ].toLocaleUpperCase()
  20039. ) != -1
  20040. ) {
  20041. _this.fileType = 1;
  20042. } else {
  20043. _this.fileType = 0;
  20044. }
  20045. _this.imgChange(null, null, type);
  20046. } else if (type == 2) {
  20047. _this.upToolImg = data.Location;
  20048. _this.imgChange(null, null, type);
  20049. _this.addCourseWorks(i);
  20050. } else if (type == 4) {
  20051. _this.addPz("3", data.Location);
  20052. } else if (type == 5) {
  20053. _this.addImgDrawImG(data.Location);
  20054. } else if (type == 6) {
  20055. var _ftype = 1;
  20056. if (
  20057. c.indexOf(
  20058. data.Location.split(".")[
  20059. data.Location.split(".").length - 1
  20060. ].toLocaleUpperCase()
  20061. ) != -1
  20062. ) {
  20063. _ftype = 5;
  20064. } else if (
  20065. b.indexOf(
  20066. data.Location.split(".")[
  20067. data.Location.split(".").length - 1
  20068. ].toLocaleUpperCase()
  20069. ) != -1
  20070. ) {
  20071. _ftype = 4;
  20072. } else {
  20073. _ftype = 1;
  20074. }
  20075. _this.plworkFile.push({
  20076. name: file.name,
  20077. url: data.Location,
  20078. uid: file.uid,
  20079. fileType: _ftype,
  20080. username:
  20081. _this.plworkFile.length + 1 > 9
  20082. ? _this.plworkFile.length + 1
  20083. : "0" + (_this.plworkFile.length + 1)
  20084. });
  20085. }
  20086. _this.imgChange(null, null, type);
  20087. console.log(data.Location);
  20088. // _this.$message.success('上传成功'+data.Location)
  20089. }
  20090. });
  20091. }
  20092. }
  20093. },
  20094. beforeUpload2(event, type) {
  20095. var file = event.target.files[0];
  20096. var credentials = {
  20097. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20098. secretAccessKey: "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"
  20099. }; //秘钥形式的登录上传
  20100. window.AWS.config.update(credentials);
  20101. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20102. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20103. var _this = this;
  20104. _this.progress = 0;
  20105. _this.proVisible = true;
  20106. if (file) {
  20107. var params = {
  20108. Key:
  20109. file.name.split(".")[0] +
  20110. new Date().getTime() +
  20111. "." +
  20112. file.name.split(".")[file.name.split(".").length - 1],
  20113. ContentType: file.type,
  20114. Body: file,
  20115. "Access-Control-Allow-Credentials": "*",
  20116. ACL: "public-read"
  20117. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20118. var options = {
  20119. partSize: 2048 * 1024 * 1024,
  20120. queueSize: 2,
  20121. leavePartsOnError: true
  20122. };
  20123. bucket
  20124. .upload(params, options)
  20125. .on("httpUploadProgress", function(evt) {
  20126. //这里可以写进度条
  20127. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20128. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20129. })
  20130. .send(function(err, data) {
  20131. _this.progress = 100;
  20132. setTimeout(() => {
  20133. _this.proVisible = false;
  20134. }, 1000);
  20135. if (err) {
  20136. var a = _this.$refs.upload1.uploadFiles;
  20137. a.splice(a.length - 1, a.length);
  20138. _this.$message.error("上传失败");
  20139. } else {
  20140. if (type == 2) {
  20141. _this.studyJuri[0].upVedio.push({
  20142. name: file.name,
  20143. url: data.Location,
  20144. uid: file.uid
  20145. });
  20146. _this.imgChange(null, null, type);
  20147. } else if (type == 3) {
  20148. _this.studyJuri[0].upFile.push({
  20149. name: file.name,
  20150. url: data.Location,
  20151. uid: file.uid
  20152. });
  20153. _this.imgChange(null, null, type);
  20154. }
  20155. console.log(data.Location);
  20156. }
  20157. });
  20158. }
  20159. },
  20160. allScrell() {
  20161. window.parent.postMessage({ allScreen: this.screenType }, "*");
  20162. },
  20163. nextOrpreSteps(t) {
  20164. if (this.IsFollow && this.tType == 2) {
  20165. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20166. return;
  20167. }
  20168. var b = this.chapInfoList.length - 1;
  20169. if (t == 0) {
  20170. if (this.courseType == 0) {
  20171. if (this.taskCount == 0) {
  20172. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20173. if (this.IsLookOpen) {
  20174. if (
  20175. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20176. ) {
  20177. if (
  20178. this.courseDetail.userid != this.userid &&
  20179. (!this.courseDetail.course_teacher ||
  20180. (this.courseDetail.course_teacher &&
  20181. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20182. -1))
  20183. ) {
  20184. this.$message.error("任务未解锁");
  20185. } else {
  20186. this.$message.error("上一任务未解锁");
  20187. }
  20188. return;
  20189. }
  20190. }
  20191. this.navList[this.courseType].isOpen = false;
  20192. this.courseType = b;
  20193. this.taskCount =
  20194. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20195. .length - 1;
  20196. this.navList[this.courseType].isOpen = true;
  20197. } else {
  20198. this.taskCount--;
  20199. }
  20200. } else {
  20201. if (this.taskCount == 0) {
  20202. this.navList[this.courseType].isOpen = false;
  20203. this.courseType--;
  20204. this.taskCount =
  20205. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20206. .length - 1;
  20207. this.navList[this.courseType].isOpen = true;
  20208. } else {
  20209. this.taskCount--;
  20210. }
  20211. }
  20212. } else {
  20213. if (this.courseType == b) {
  20214. if (
  20215. this.taskCount ==
  20216. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20217. 1
  20218. ) {
  20219. this.navList[this.courseType].isOpen = false;
  20220. this.courseType = 0;
  20221. this.taskCount = 0;
  20222. this.navList[this.courseType].isOpen = true;
  20223. } else {
  20224. var bbb = parseInt(this.taskCount) + 1;
  20225. if (
  20226. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20227. .isLook &&
  20228. this.courseDetail.userid != this.userid &&
  20229. (!this.courseDetail.course_teacher ||
  20230. (this.courseDetail.course_teacher &&
  20231. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20232. -1)) &&
  20233. this.IsLookOpen
  20234. ) {
  20235. this.$message.error("任务未解锁");
  20236. return;
  20237. }
  20238. this.taskCount++;
  20239. if (this.IsLookOpen) {
  20240. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20241. this.taskCount
  20242. ].isLook = true;
  20243. this.addCourseState(3);
  20244. }
  20245. }
  20246. } else {
  20247. if (
  20248. this.taskCount ==
  20249. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20250. 1
  20251. ) {
  20252. var bbb = parseInt(this.courseType) + 1;
  20253. if (
  20254. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20255. this.courseDetail.userid != this.userid &&
  20256. (!this.courseDetail.course_teacher ||
  20257. (this.courseDetail.course_teacher &&
  20258. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20259. -1)) &&
  20260. this.IsLookOpen
  20261. ) {
  20262. this.$message.error("任务未解锁");
  20263. return;
  20264. }
  20265. this.navList[this.courseType].isOpen = false;
  20266. this.courseType++;
  20267. this.taskCount = 0;
  20268. this.navList[this.courseType].isOpen = true;
  20269. } else {
  20270. var bbb = parseInt(this.taskCount) + 1;
  20271. if (
  20272. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20273. .isLook &&
  20274. this.courseDetail.userid != this.userid &&
  20275. (!this.courseDetail.course_teacher ||
  20276. (this.courseDetail.course_teacher &&
  20277. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20278. -1)) &&
  20279. this.IsLookOpen
  20280. ) {
  20281. this.$message.error("任务未解锁");
  20282. return;
  20283. }
  20284. this.taskCount++;
  20285. }
  20286. if (this.IsLookOpen) {
  20287. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20288. this.taskCount
  20289. ].isLook = true;
  20290. this.addCourseState(3);
  20291. }
  20292. }
  20293. // if (
  20294. // this.taskCount ==
  20295. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20296. // ) {
  20297. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20298. // } else {
  20299. // this.taskCount++;
  20300. // }
  20301. }
  20302. document.scrollingElement.scrollTop = 0;
  20303. this.showType = 7;
  20304. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20305. // if (this.vedio[this.taskCount].length > 0) {
  20306. // var a =
  20307. // document.getElementsByClassName("box_course")[this.taskCount]
  20308. // .offsetHeight;
  20309. // document.getElementsByClassName("vedioList")[
  20310. // this.taskCount
  20311. // ].style.height = a + "px";
  20312. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20313. // a - 40 + "px";
  20314. // }
  20315. this.isNoHomeWork = false;
  20316. (this.studyJuri = [
  20317. {
  20318. content: "",
  20319. cover: [],
  20320. upVedio: [],
  20321. upFile: []
  20322. }
  20323. ]),
  20324. (this.radio = []);
  20325. this.isClickNav = "";
  20326. this.selectPz();
  20327. this.getHomeWork();
  20328. this.getCourseDetail(2);
  20329. this.$forceUpdate();
  20330. },
  20331. openTask(s, n, i) {
  20332. this.refreshAssembly();
  20333. if (this.IsFollow && this.tType == 2) {
  20334. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20335. return;
  20336. }
  20337. if (this.IsLookOpen) {
  20338. if (
  20339. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20340. this.courseDetail.userid != this.userid &&
  20341. (!this.courseDetail.course_teacher ||
  20342. (this.courseDetail.course_teacher &&
  20343. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20344. ) {
  20345. this.$message.error("任务未解锁");
  20346. return;
  20347. }
  20348. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20349. if (
  20350. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20351. .isLook
  20352. ) {
  20353. this.$message.error("上一任务未解锁");
  20354. return;
  20355. }
  20356. } else if (s > this.courseType) {
  20357. if (n > 0) {
  20358. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20359. this.$message.error("上一任务未解锁");
  20360. return;
  20361. }
  20362. } else {
  20363. if (
  20364. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20365. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20366. ].isLook
  20367. ) {
  20368. this.$message.error("上一任务未解锁");
  20369. return;
  20370. }
  20371. }
  20372. }
  20373. }
  20374. if (this.navList[s].task[n].isOpen == true) {
  20375. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20376. return;
  20377. }
  20378. let flag = this.courseType == s;
  20379. this.courseType = s;
  20380. this.navId = i;
  20381. this.taskCount = n;
  20382. this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
  20383. this.courseType
  20384. ].task[this.taskCount].isOpen;
  20385. if (this.IsLookOpen) {
  20386. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20387. this.taskCount
  20388. ].isLook = true;
  20389. this.addCourseState(3);
  20390. }
  20391. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20392. this.isCloseList[ci].isClose = 0;
  20393. this.isCloseList[ci].isCloseBoolean = false;
  20394. this.$nextTick(() => {
  20395. setTimeout(() => {
  20396. setTimeout(() => {
  20397. this.panToolHeight("tool-" + ci);
  20398. }, 0);
  20399. }, 0);
  20400. });
  20401. }
  20402. this.showType = 7;
  20403. this.isNoHomeWork = false;
  20404. (this.studyJuri = [
  20405. {
  20406. content: "",
  20407. cover: [],
  20408. upVedio: [],
  20409. upFile: []
  20410. }
  20411. ]),
  20412. (this.radio = []);
  20413. document.scrollingElement.scrollTop = 0;
  20414. // setTimeout(() => {
  20415. // let a = document.getElementById(i);
  20416. // if (a.offsetTop - 110 == 0) {
  20417. // window.scrollTo(0, 0);
  20418. // } else {
  20419. // window.scrollTo(0, a.offsetTop);
  20420. // }
  20421. // }, 0);
  20422. for (var z = 0; z < this.navList.length; z++) {
  20423. for (var q = 0; q < this.navList[z].task.length; q++) {
  20424. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20425. this.navList[z].task[q].tool[w].isTool = false;
  20426. }
  20427. }
  20428. }
  20429. this.selectPz();
  20430. this.getHomeWork();
  20431. this.getCourseDetail(2);
  20432. if (flag) {
  20433. this.insertMemorandum(
  20434. `进入<span class="variable">任务${n + 1}${
  20435. this.navList[s].task[n].taskName
  20436. ? ":" + this.navList[s].task[n].taskName
  20437. : ""
  20438. }</span>`
  20439. );
  20440. } else {
  20441. this.insertMemorandum(
  20442. `进入<span class="variable">阶段${s + 1}${
  20443. this.navList[s].dyName ? ":" + this.navList[s].dyName : ""
  20444. }</span>→<span class="variable">任务${n + 1}${
  20445. this.navList[s].task[n].taskName
  20446. ? ":" + this.navList[s].task[n].taskName
  20447. : ""
  20448. }</span>`
  20449. );
  20450. }
  20451. },
  20452. get(i) {
  20453. if (this.IsFollow && this.tType == 2) {
  20454. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20455. return;
  20456. }
  20457. // for(var k=0;k<this.navList.length;k++){
  20458. // this.navList[k].isOpen = false;
  20459. // }
  20460. // this.navList[i].isOpen = true;
  20461. this.navList[i].isOpen = !this.navList[i].isOpen;
  20462. if (this.navList[i].isOpen) {
  20463. this.openTask(i, 0, i + "-0");
  20464. }
  20465. },
  20466. addQuestion() {
  20467. this.answerList.push({
  20468. answerTitle: this.answerQ,
  20469. answer: this.questionAnswer
  20470. });
  20471. let params = [
  20472. {
  20473. uid: this.userid,
  20474. cid: this.id,
  20475. stage: this.courseType,
  20476. task: this.taskCount,
  20477. tool: this.toolindex,
  20478. content: JSON.stringify(this.answerList),
  20479. type: 3
  20480. }
  20481. ];
  20482. this.ajax
  20483. .post(this.$store.state.api + "addCourseWorks", params)
  20484. .then(res => {
  20485. this.$message({
  20486. message: "提交成功",
  20487. type: "success"
  20488. });
  20489. this.answerList = [];
  20490. this.answerDialogVisible = false;
  20491. this.selectStudent();
  20492. this.selectSWorks();
  20493. this.selectSLook();
  20494. })
  20495. .catch(err => {
  20496. this.$message.error("提交失败");
  20497. console.error(err);
  20498. });
  20499. },
  20500. addQuestionTeacher() {
  20501. this.answerList.push({
  20502. answerTitle: this.answerQ,
  20503. answer: this.questionAnswer
  20504. });
  20505. let params = [
  20506. {
  20507. uid: this.sStudent.userid,
  20508. cid: this.id,
  20509. stage: this.courseType,
  20510. task: this.taskCount,
  20511. tool: this.toolindex,
  20512. content: JSON.stringify(this.answerList),
  20513. type: 3,
  20514. ateacher: this.userid
  20515. }
  20516. ];
  20517. this.ajax
  20518. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  20519. .then(res => {
  20520. this.$message({
  20521. message: "提交成功",
  20522. type: "success"
  20523. });
  20524. this.answerList = [];
  20525. this.questionAnswer = "";
  20526. this.answerDialogVisibleTeacher = false;
  20527. this.selectStudent();
  20528. this.selectSWorks();
  20529. this.selectSLook();
  20530. })
  20531. .catch(err => {
  20532. this.$message.error("提交失败");
  20533. console.error(err);
  20534. });
  20535. },
  20536. refreshCourse() {
  20537. // window.location.reload();
  20538. this.navList = [];
  20539. this.getCourseDetail(1);
  20540. },
  20541. getCourseDetail(type, gindex) {
  20542. let loading;
  20543. if (type != 2) {
  20544. loading = this.$loading.service({
  20545. background: "rgba(255, 255, 255, 0.7)",
  20546. target: document.querySelector(".student_table")
  20547. });
  20548. }
  20549. this.downLoading = false;
  20550. // this.navList[0].isOpen = false;
  20551. // this.navList[this.courseType].isOpen = true;
  20552. // this.courseType = this.courseTypeLine;
  20553. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20554. let params = {
  20555. courseId: this.id
  20556. };
  20557. this.ajax
  20558. .get(this.$store.state.api + "selectCourseDetail3", params)
  20559. .then(res => {
  20560. if (type != 2) {
  20561. loading.close();
  20562. if (
  20563. this.courseType >
  20564. JSON.parse(res.data[0][0].chapters).length - 1
  20565. ) {
  20566. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  20567. }
  20568. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20569. .chapterInfo[0].taskJson;
  20570. var b = [
  20571. "AVI",
  20572. "NAVI",
  20573. "MPEG",
  20574. "ASF",
  20575. "MOV",
  20576. "WMV",
  20577. "3GP",
  20578. "RM",
  20579. "RMVB",
  20580. "FLV",
  20581. "F4V",
  20582. "H.264",
  20583. "H.265",
  20584. "REAL VIDEO",
  20585. "MKV",
  20586. "WebM",
  20587. "HDDVD",
  20588. "MP4",
  20589. "MPG",
  20590. "M4V",
  20591. "MGV",
  20592. "OGV",
  20593. "QTM",
  20594. "STR",
  20595. "AMC",
  20596. "DVX",
  20597. "EVO",
  20598. "DAT",
  20599. "OGG",
  20600. "OGM",
  20601. "MP3"
  20602. ];
  20603. let _chapterData = [];
  20604. for (var i = 0; i < a.length; i++) {
  20605. var c = a[i].chapterData;
  20606. this.vedio[i] = [];
  20607. this.textList[i] = [];
  20608. this.lineList[i] = [];
  20609. this.chapToolList[i] = [];
  20610. this.file[i] = [];
  20611. this.fileC[i] = [];
  20612. _chapterData[i] = c.filter(el => {
  20613. return el.type != 12;
  20614. });
  20615. this.fileC[i] = c.filter(el => {
  20616. return el.type == 12;
  20617. });
  20618. // else if (c[j].type == 12) {
  20619. // this.fileC[i].push(c[j]);
  20620. // }
  20621. for (var j = 0; j < c.length; j++) {
  20622. if (c[j].type == 7) {
  20623. this.chapToolList[i].push(c[j]);
  20624. } else if (c[j].type == 8 || c[j].type == 14) {
  20625. this.lineList[i].push(c[j]);
  20626. } else if (c[j].type == 6) {
  20627. this.textList[i].push(c[j]);
  20628. } else {
  20629. if (
  20630. b.indexOf(
  20631. c[j].url
  20632. .split(".")
  20633. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20634. ) != -1
  20635. ) {
  20636. this.vedio[i].push(c[j]);
  20637. } else {
  20638. this.file[i].push(c[j]);
  20639. }
  20640. }
  20641. }
  20642. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20643. d.sources[0].src =
  20644. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20645. this.playerO[i] = d;
  20646. }
  20647. this.courseDetail = res.data[0][0];
  20648. this.tcid = this.arrayToArray(
  20649. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20650. this.tcid2 ? this.tcid2.split(",") : []
  20651. ).join(",");
  20652. this.evalua = res.data[0][0].evaId;
  20653. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  20654. this.courseType
  20655. ];
  20656. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20657. if (this.tcid && res.data[1].length) {
  20658. let _inviteA = [];
  20659. for (var ik = 0; ik < res.data[1].length; ik++) {
  20660. _inviteA.push({
  20661. cid: res.data[1][ik].classid,
  20662. ic: res.data[1][ik].code
  20663. });
  20664. }
  20665. for (var ik = 0; ik < _inviteA.length; ik++) {
  20666. if (
  20667. this.arrayToArray(
  20668. _inviteA[ik].cid.split(","),
  20669. this.tcid.split(",")
  20670. ).length
  20671. ) {
  20672. this.inviteCode = _inviteA[ik].ic;
  20673. break;
  20674. }
  20675. }
  20676. }
  20677. for (var l = 0; l < this.chapInfoList.length; l++) {
  20678. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20679. for (var m = 0; m < w.length; m++) {
  20680. w[m].id = l + "-" + m;
  20681. }
  20682. }
  20683. if (
  20684. _chapterData[this.taskCount].length &&
  20685. _chapterData[this.taskCount][0].type == 2
  20686. ) {
  20687. this.showType = 0;
  20688. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  20689. } else {
  20690. if (_chapterData[this.taskCount].length > 0) {
  20691. let _url = _chapterData[this.taskCount][0].url;
  20692. if (
  20693. _chapterData[this.taskCount][0].type == 8 ||
  20694. _chapterData[this.taskCount][0].type == 14
  20695. ) {
  20696. this.showType = 2;
  20697. if (
  20698. _url.indexOf("https://") == -1 &&
  20699. _url.indexOf("http://") == -1
  20700. ) {
  20701. _url = "https://" + _url;
  20702. }
  20703. this.pptImgUrl1 = _url;
  20704. } else if (_chapterData[this.taskCount][0].type == 3) {
  20705. if (
  20706. _url
  20707. .split(".")
  20708. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20709. ) {
  20710. this.showType = 3;
  20711. this.pptImgUrl1 = _url;
  20712. } else if (
  20713. this.isAssetTypeAnImage(
  20714. _url
  20715. .split(".")
  20716. [_url.split(".").length - 1].toLocaleLowerCase()
  20717. )
  20718. ) {
  20719. this.showType = 4;
  20720. this.pptImgUrl1 = _url;
  20721. } else {
  20722. this.showType = 2;
  20723. this.pptImgUrl1 =
  20724. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20725. encodeURIComponent(_url);
  20726. }
  20727. } else if (_chapterData[this.taskCount][0].type == 13) {
  20728. this.showType = 4;
  20729. this.pptImgUrl1 = _url;
  20730. } else if (_chapterData[this.taskCount][0].type == 6) {
  20731. this.showType = 1;
  20732. this.text = this.textList[this.taskCount][0];
  20733. }
  20734. }
  20735. }
  20736. this.isClickNav = 0;
  20737. if (
  20738. !_chapterData[this.taskCount].length ||
  20739. _chapterData[this.taskCount][0].type == 12
  20740. ) {
  20741. this.isClickNav = "";
  20742. this.showType = "";
  20743. }
  20744. this.vChapterData = _chapterData;
  20745. } else {
  20746. this.showType = 0;
  20747. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20748. .chapterInfo[0].taskJson;
  20749. var b = [
  20750. "AVI",
  20751. "NAVI",
  20752. "MPEG",
  20753. "ASF",
  20754. "MOV",
  20755. "WMV",
  20756. "3GP",
  20757. "RM",
  20758. "RMVB",
  20759. "FLV",
  20760. "F4V",
  20761. "H.264",
  20762. "H.265",
  20763. "REAL VIDEO",
  20764. "MKV",
  20765. "WebM",
  20766. "HDDVD",
  20767. "MP4",
  20768. "MPG",
  20769. "M4V",
  20770. "MGV",
  20771. "OGV",
  20772. "QTM",
  20773. "STR",
  20774. "AMC",
  20775. "DVX",
  20776. "EVO",
  20777. "DAT",
  20778. "OGG",
  20779. "OGM",
  20780. "MP3"
  20781. ];
  20782. let _chapterData = [];
  20783. for (var i = 0; i < a.length; i++) {
  20784. var c = a[i].chapterData;
  20785. this.vedio[i] = [];
  20786. this.textList[i] = [];
  20787. this.lineList[i] = [];
  20788. this.chapToolList[i] = [];
  20789. this.file[i] = [];
  20790. this.fileC[i] = [];
  20791. _chapterData[i] = c.filter(el => {
  20792. return el.type != 12;
  20793. });
  20794. this.fileC[i] = c.filter(el => {
  20795. return el.type == 12;
  20796. });
  20797. for (var j = 0; j < c.length; j++) {
  20798. if (c[j].type == 7) {
  20799. this.chapToolList[i].push(c[j]);
  20800. } else if (c[j].type == 8 || c[j].type == 14) {
  20801. this.lineList[i].push(c[j]);
  20802. } else if (c[j].type == 6) {
  20803. this.textList[i].push(c[j]);
  20804. } else {
  20805. if (
  20806. b.indexOf(
  20807. c[j].url
  20808. .split(".")
  20809. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20810. ) != -1
  20811. ) {
  20812. this.vedio[i].push(c[j]);
  20813. } else {
  20814. this.file[i].push(c[j]);
  20815. }
  20816. }
  20817. }
  20818. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20819. d.sources[0].src =
  20820. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20821. this.playerO[i] = d;
  20822. }
  20823. if (
  20824. _chapterData[this.taskCount].length &&
  20825. _chapterData[this.taskCount][0].type == 2
  20826. ) {
  20827. this.showType = 0;
  20828. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  20829. } else {
  20830. if (_chapterData[this.taskCount].length > 0) {
  20831. let _url = _chapterData[this.taskCount][0].url;
  20832. if (
  20833. _chapterData[this.taskCount][0].type == 8 ||
  20834. _chapterData[this.taskCount][0].type == 14
  20835. ) {
  20836. this.showType = 2;
  20837. if (
  20838. _url.indexOf("https://") == -1 &&
  20839. _url.indexOf("http://") == -1
  20840. ) {
  20841. _url = "https://" + _url;
  20842. }
  20843. this.pptImgUrl1 = _url;
  20844. } else if (_chapterData[this.taskCount][0].type == 3) {
  20845. if (
  20846. _url
  20847. .split(".")
  20848. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20849. ) {
  20850. this.showType = 3;
  20851. this.pptImgUrl1 = _url;
  20852. } else if (
  20853. this.isAssetTypeAnImage(
  20854. _url
  20855. .split(".")
  20856. [_url.split(".").length - 1].toLocaleLowerCase()
  20857. )
  20858. ) {
  20859. this.showType = 4;
  20860. this.pptImgUrl1 = _url;
  20861. } else {
  20862. this.showType = 2;
  20863. this.pptImgUrl1 =
  20864. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20865. encodeURIComponent(_url);
  20866. }
  20867. } else if (_chapterData[this.taskCount][0].type == 13) {
  20868. this.showType = 4;
  20869. this.pptImgUrl1 = _url;
  20870. } else if (_chapterData[this.taskCount][0].type == 6) {
  20871. this.showType = 1;
  20872. this.text = this.textList[this.taskCount][0];
  20873. }
  20874. }
  20875. }
  20876. this.isClickNav = 0;
  20877. if (
  20878. !_chapterData[this.taskCount].length ||
  20879. _chapterData[this.taskCount][0].type == 12
  20880. ) {
  20881. this.isClickNav = "";
  20882. this.showType = "";
  20883. }
  20884. this.vChapterData = _chapterData;
  20885. this.$forceUpdate();
  20886. }
  20887. // console.log('this.chapInfoList22222',JS);
  20888. if (res.data[0][0].setting) {
  20889. try {
  20890. this.languageSetting =
  20891. JSON.parse(res.data[0][0].setting).languageSetting ||
  20892. JSON.parse(res.data[0][0].setting).languageSetting == 0
  20893. ? JSON.parse(res.data[0][0].setting).languageSetting
  20894. : 0;
  20895. } catch (error) {
  20896. console.error(error);
  20897. }
  20898. }
  20899. // finalMarkList用来判断哪个工具为评分工具
  20900. if (this.courseDetail.state == 5) {
  20901. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  20902. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  20903. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  20904. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  20905. // // 没有的话在选其他工具为评分工具
  20906. // if(adc.length > 0){
  20907. // for (let k = chap.length - 1; k >= 0; k--) {
  20908. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  20909. // this.finalMarkList = k;
  20910. // break;
  20911. // }
  20912. // }
  20913. // }else{
  20914. // for (let k = chap.length - 1; k >= 0; k--) {
  20915. // if (chap[k].tool[0] == 7 || chap[k].tool[0] == 50 || chap[k].tool[0] == 1 || chap[k].tool[0] == 3 || chap[k].tool[0] == 48 || chap[k].tool[0] == 15 || chap[k] == 57) {
  20916. // this.finalMarkList = k;
  20917. // break;
  20918. // }
  20919. // }
  20920. // }
  20921. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  20922. // 不然会无限循环报错,会很难受
  20923. let aiSNum = 0;
  20924. if (
  20925. chapInfoListCopy[this.taskCount].eList &&
  20926. chapInfoListCopy[this.taskCount].eList.length
  20927. ) {
  20928. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  20929. if (e.isai == 2) {
  20930. aiSNum++;
  20931. }
  20932. });
  20933. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  20934. this.isaiNum = aiSNum;
  20935. } else {
  20936. this.isaiNum = 0;
  20937. }
  20938. for (
  20939. let k = 0;
  20940. k < chapInfoListCopy[this.taskCount].eList.length;
  20941. k++
  20942. ) {
  20943. if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  20944. this.againEva(this.taskCount, k);
  20945. }
  20946. }
  20947. }
  20948. }
  20949. // else {
  20950. // this.courseDetail = res.data[0][0];
  20951. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20952. // }
  20953. let _this = this;
  20954. if (_this.timer) {
  20955. clearInterval(_this.timer);
  20956. _this.timer = null;
  20957. }
  20958. if (_this.tcid) {
  20959. _this.getCourseGroup(gindex);
  20960. } else {
  20961. _this.selectSWorks(gindex);
  20962. }
  20963. _this.selectStudent();
  20964. _this.selectSLook();
  20965. _this.getPick();
  20966. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  20967. _this.setCTask();
  20968. }
  20969. if (_this.dialogVisibleGroup) {
  20970. _this.groupJson =
  20971. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  20972. _this.taskCount
  20973. ].toolChoose[_this.toolindex].groupJson;
  20974. }
  20975. _this.$nextTick(() => {
  20976. setTimeout(() => {
  20977. _this.checkEva();
  20978. }, 1000);
  20979. });
  20980. _this.timer = setInterval(function() {
  20981. // _this.getCourseDetail(2);
  20982. if (_this.tcid) {
  20983. _this.getCourseGroup(gindex);
  20984. } else {
  20985. _this.selectSWorks(gindex);
  20986. }
  20987. _this.selectStudent();
  20988. _this.selectSLook();
  20989. _this.getPick();
  20990. _this.getSplitScreenData();
  20991. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  20992. _this.setCTask();
  20993. }
  20994. if (_this.dialogVisibleGroup) {
  20995. _this.groupJson =
  20996. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  20997. _this.taskCount
  20998. ].toolChoose[_this.toolindex].groupJson;
  20999. }
  21000. if (_this.tType == 4 || _this.ispzType == 4) {
  21001. _this.selectPz();
  21002. }
  21003. }, 5000);
  21004. _this.$nextTick(function() {
  21005. setTimeout(() => {
  21006. // var a =
  21007. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21008. // document.getElementsByClassName("vedioList")[0].style.height =
  21009. // a + "px";
  21010. // document.getElementsByClassName("navBox")[0].style.height =
  21011. // a - 40 + "px";
  21012. // if (_this.vedio[_this.taskCount].length > 0) {
  21013. // _this.vedioTime = [];
  21014. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21015. // _this.vedioTime[i] = document.getElementsByClassName(
  21016. // "vjs-duration-display"
  21017. // )[i].textContent;
  21018. // }
  21019. // }
  21020. }, 1000);
  21021. });
  21022. })
  21023. .catch(err => {
  21024. loading.close();
  21025. console.error(err);
  21026. });
  21027. },
  21028. getCourseGroup(gindex) {
  21029. let params = {
  21030. cid: this.id,
  21031. classid: this.tcid ? this.tcid : "1"
  21032. };
  21033. this.ajax
  21034. .get(this.$store.state.api + "getCourseGroup", params)
  21035. .then(res => {
  21036. if (res.data && res.data[0].length) {
  21037. if (!this.isGroup) {
  21038. let courseGroup = JSON.parse(res.data[0][0].group);
  21039. courseGroup.group = courseGroup.group.filter(el => {
  21040. el.works = [];
  21041. return el;
  21042. });
  21043. if (courseGroup.isopen == 2) {
  21044. this.isGroup = false;
  21045. this.selectSWorks(gindex);
  21046. return;
  21047. }
  21048. this.courseGroup = courseGroup;
  21049. let groupPerson = res.data[1];
  21050. let group = JSON.parse(res.data[0][0].group).group;
  21051. let courseGroupStudent = {};
  21052. let courseGroupStudentUid = {};
  21053. for (var i = 0; i < group.length; i++) {
  21054. courseGroupStudent[group[i].id] = [];
  21055. courseGroupStudentUid[group[i].id] = [];
  21056. for (var j = 0; j < groupPerson.length; j++) {
  21057. if (groupPerson[j].groupCid == group[i].id) {
  21058. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21059. courseGroupStudentUid[group[i].id].push(
  21060. groupPerson[j].userid
  21061. );
  21062. }
  21063. }
  21064. }
  21065. this.courseGroupStudent = courseGroupStudent;
  21066. this.courseGroupStudentUid = courseGroupStudentUid;
  21067. }
  21068. if (this.courseGroup.isopen == 2) {
  21069. this.isGroup = false;
  21070. } else {
  21071. this.isGroup = true;
  21072. }
  21073. this.selectSWorks(gindex);
  21074. } else {
  21075. this.selectSWorks(gindex);
  21076. this.isGroup = false;
  21077. }
  21078. })
  21079. .catch(err => {
  21080. // this.$message.error("网络不佳");
  21081. console.error(err);
  21082. });
  21083. },
  21084. setOperationTime() {
  21085. let _this = this;
  21086. if (_this.opertimer) {
  21087. clearInterval(_this.opertimer);
  21088. _this.opertimer = null;
  21089. }
  21090. _this.opertimer = setInterval(() => {
  21091. _this.setoTime("600");
  21092. }, 600000);
  21093. },
  21094. setoTime(time) {
  21095. let params = [
  21096. {
  21097. uid: this.userid,
  21098. cid: this.id,
  21099. type: "2",
  21100. time: time
  21101. }
  21102. ];
  21103. this.ajax
  21104. .post(this.$store.state.api + "addOperationTimeT2", params)
  21105. .then(res => {})
  21106. .catch(err => {
  21107. console.error(err);
  21108. });
  21109. },
  21110. addPz(type, content) {
  21111. if (type == "1" && this.pzConText == "") {
  21112. this.$message.error("评论不能为空!");
  21113. return;
  21114. }
  21115. let params = [
  21116. {
  21117. cid: this.id,
  21118. uid: this.userid,
  21119. s: this.courseType,
  21120. t: this.taskCount,
  21121. c: type == "1" ? this.pzConText : content,
  21122. type: type
  21123. }
  21124. ];
  21125. this.ajax
  21126. .post(this.$store.state.api + "addPz2", params)
  21127. .then(res => {
  21128. this.$message({
  21129. message: "添加成功",
  21130. type: "success"
  21131. });
  21132. this.pzConText = "";
  21133. this.addPzDialog = false;
  21134. this.selectPz();
  21135. this.insertMemorandum(
  21136. `使用<span class="btn">评论</span>功能,添加评论`
  21137. );
  21138. })
  21139. .catch(err => {
  21140. this.$message.error("添加失败");
  21141. console.error(err);
  21142. });
  21143. },
  21144. setReplyIndex(id, i) {
  21145. this.replyIndex = i;
  21146. this.replyPid = id;
  21147. this.replyDialogVisible = true;
  21148. },
  21149. addHf() {
  21150. if (this.reply == "") {
  21151. this.$message.error("回复不能为空!");
  21152. return;
  21153. }
  21154. let params = [
  21155. {
  21156. cid: this.id,
  21157. uid: this.userid,
  21158. s: this.courseType,
  21159. t: this.taskCount,
  21160. type: "1",
  21161. ct: 2,
  21162. pid: this.replyPid,
  21163. c: this.reply
  21164. }
  21165. ];
  21166. this.ajax
  21167. .post(this.$store.state.api + "addHf", params)
  21168. .then(res => {
  21169. this.reply = "";
  21170. this.$message({
  21171. message: "回复成功",
  21172. type: "success"
  21173. });
  21174. this.replyDialogVisible = false;
  21175. this.selectPz();
  21176. })
  21177. .catch(err => {
  21178. this.$message.error("回复失败");
  21179. console.error(err);
  21180. });
  21181. },
  21182. deletePz(id) {
  21183. this.$confirm("确定删除此评论吗?", "提示", {
  21184. confirmButtonText: "确定",
  21185. cancelButtonText: "取消",
  21186. type: "warning"
  21187. })
  21188. .then(() => {
  21189. let params = [
  21190. {
  21191. id: id
  21192. }
  21193. ];
  21194. this.ajax
  21195. .post(this.$store.state.api + "deletePz", params)
  21196. .then(res => {
  21197. this.$message({
  21198. message: "删除成功",
  21199. type: "success"
  21200. });
  21201. this.selectPz();
  21202. })
  21203. .catch(err => {
  21204. this.$message.error("网络异常");
  21205. console.error(err);
  21206. });
  21207. })
  21208. .catch(() => {});
  21209. },
  21210. deleteReply(id) {
  21211. this.$confirm("确定删除此回复吗?", "提示", {
  21212. confirmButtonText: "确定",
  21213. cancelButtonText: "取消",
  21214. type: "warning"
  21215. })
  21216. .then(() => {
  21217. let params = [
  21218. {
  21219. id: id
  21220. }
  21221. ];
  21222. this.ajax
  21223. .post(this.$store.state.api + "deleteReply", params)
  21224. .then(res => {
  21225. this.$message({
  21226. message: "删除成功",
  21227. type: "success"
  21228. });
  21229. this.selectPz();
  21230. })
  21231. .catch(err => {
  21232. this.$message.error("网络异常");
  21233. console.error(err);
  21234. });
  21235. })
  21236. .catch(() => {});
  21237. },
  21238. setPz() {
  21239. if (this.ispzType == 4) {
  21240. this.ispzType = 0;
  21241. this.pzDialog = false;
  21242. return;
  21243. }
  21244. this.ispzType = 4;
  21245. this.pzDialog = true;
  21246. this.selectPz();
  21247. },
  21248. selectPz() {
  21249. let params = {
  21250. cid: this.id,
  21251. s: this.courseType,
  21252. t: this.taskCount,
  21253. type: this.pzStype,
  21254. uid: this.userid
  21255. };
  21256. this.ajax
  21257. .get(this.$store.state.api + "selectPzListType", params)
  21258. .then(res => {
  21259. this.pzList = res.data[0];
  21260. var a = res.data[1];
  21261. for (var i = 0; i < a.length; i++) {
  21262. for (var j = 0; j < this.pzList.length; j++) {
  21263. if (!this.pzList[j].hfList) {
  21264. this.pzList[j].hfList = [];
  21265. }
  21266. if (a[i].pid == this.pzList[j].id) {
  21267. this.pzList[j].hfList.push(a[i]);
  21268. }
  21269. }
  21270. }
  21271. })
  21272. .catch(err => {
  21273. console.error(err);
  21274. });
  21275. },
  21276. // selectHf() {
  21277. // let params = {
  21278. // cid: this.id,
  21279. // s: this.courseType,
  21280. // t: this.taskCount,
  21281. // };
  21282. // this.ajax
  21283. // .get(this.$store.state.api + "selectHfList", params)
  21284. // .then((res) => {
  21285. // var a = res.data[0];
  21286. // for (var i = 0; i < a.length; i++) {
  21287. // for (var j = 0; j < this.pzList.length; j++) {
  21288. // if (!this.pzList[i].hfList) {
  21289. // this.pzList[i].hfList = [];
  21290. // }
  21291. // if (a[i].pid == this.pzList[j].id) {
  21292. // this.pzList[i].hfList.push(a[i]);
  21293. // }
  21294. // }
  21295. // }
  21296. // })
  21297. // .catch((err) => {
  21298. // console.error(err);
  21299. // });
  21300. // },
  21301. updateSLook() {
  21302. let params = {
  21303. sopen: this.sIsOpen == false ? 1 : 2,
  21304. cid: this.id
  21305. };
  21306. this.ajax
  21307. .get(this.$store.state.api + "updateCourseSLook", params)
  21308. .then(res => {
  21309. if (this.sIsOpen == true) {
  21310. this.$message({
  21311. message: "权限设置成功",
  21312. type: "success"
  21313. });
  21314. } else {
  21315. this.$message({
  21316. message: "权限关闭成功",
  21317. type: "success"
  21318. });
  21319. }
  21320. })
  21321. .catch(err => {
  21322. console.error(err);
  21323. });
  21324. },
  21325. updateFollow() {
  21326. let params = [
  21327. {
  21328. sopen: this.IsFollow == false ? 1 : 2,
  21329. cid: this.id
  21330. }
  21331. ];
  21332. this.ajax
  21333. .post(this.$store.state.api + "updateCourseFollow", params)
  21334. .then(res => {
  21335. if (this.IsFollow == true) {
  21336. this.$message({
  21337. message: "开启成功",
  21338. type: "success"
  21339. });
  21340. } else {
  21341. this.$message({
  21342. message: "关闭成功",
  21343. type: "success"
  21344. });
  21345. }
  21346. this.setCTask();
  21347. })
  21348. .catch(err => {
  21349. console.error(err);
  21350. });
  21351. },
  21352. setCTask() {
  21353. let params = [
  21354. {
  21355. sopen: this.courseType + "-" + this.taskCount,
  21356. cid: this.id
  21357. }
  21358. ];
  21359. this.ajax
  21360. .post(this.$store.state.api + "updateCourseFollowC", params)
  21361. .then(res => {})
  21362. .catch(err => {
  21363. console.error(err);
  21364. });
  21365. },
  21366. updateLookOpen() {
  21367. let params = [
  21368. {
  21369. sopen: this.IsLookOpen == false ? 1 : 2,
  21370. cid: this.id
  21371. }
  21372. ];
  21373. this.ajax
  21374. .post(this.$store.state.api + "updateCourseLookOpen", params)
  21375. .then(res => {
  21376. if (this.IsLookOpen == true) {
  21377. // if (this.courseType != 0 && this.taskCount != 0) {
  21378. // this.openTask(0, 0, "0-0");
  21379. // }
  21380. this.$message({
  21381. message: "权限设置成功",
  21382. type: "success"
  21383. });
  21384. } else {
  21385. this.$message({
  21386. message: "权限关闭成功",
  21387. type: "success"
  21388. });
  21389. }
  21390. this.getCourseState(2);
  21391. })
  21392. .catch(err => {
  21393. console.error(err);
  21394. });
  21395. },
  21396. selectSLook() {
  21397. let params = {
  21398. cid: this.id
  21399. };
  21400. this.ajax
  21401. .get(this.$store.state.api + "selectCourseSLook", params)
  21402. .then(res => {
  21403. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  21404. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  21405. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  21406. if (!this.IsLookOpen) {
  21407. this.setNavList();
  21408. } else {
  21409. this.getCourseState(1);
  21410. }
  21411. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  21412. this.setContent2(false);
  21413. let _followC = res.data[0][0].followC.split("-");
  21414. if (
  21415. this.courseType != _followC[0] ||
  21416. this.taskCount != _followC[1]
  21417. ) {
  21418. this.navList[this.courseType].isOpen = false;
  21419. this.courseType = _followC[0];
  21420. this.navList[this.courseType].isOpen = true;
  21421. this.taskCount = parseInt(_followC[1]);
  21422. this.navId = res.data[0][0].followC;
  21423. document.scrollingElement.scrollTop = 0;
  21424. this.getCourseDetail(2);
  21425. }
  21426. }
  21427. })
  21428. .catch(err => {
  21429. console.error(err);
  21430. });
  21431. },
  21432. setNavList() {
  21433. if (this.navList.length == 0) {
  21434. this.navList = [];
  21435. var copyList = [];
  21436. for (var l = 0; l < this.chapInfoList.length; l++) {
  21437. var q = this.chapInfoList[l].dyName;
  21438. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21439. var e;
  21440. copyList.push({
  21441. dyName: q,
  21442. isOpen: l === 0 ? true : false,
  21443. task: []
  21444. });
  21445. for (var r = 0; r < w.length; r++) {
  21446. e = w[r].task;
  21447. if (this.chapInfoList[l].easy == 1) {
  21448. copyList[l].task.push({
  21449. taskName: q,
  21450. id: l + "-" + r,
  21451. isLook: w[r].isLook,
  21452. isOpen: r === 0 ? true : false,
  21453. tool: []
  21454. });
  21455. } else {
  21456. copyList[l].task.push({
  21457. taskName: e,
  21458. id: l + "-" + r,
  21459. isLook: w[r].isLook,
  21460. isOpen: r === 0 ? true : false,
  21461. tool: []
  21462. });
  21463. }
  21464. var t = w[r].toolChoose;
  21465. for (var k = 0; k < t.length; k++) {
  21466. var tool = t[k].tool[0];
  21467. copyList[l].task[r].tool.push({
  21468. tool: tool,
  21469. isTool: false
  21470. });
  21471. }
  21472. // this.navId = this.navId ? this.navId : l + "-" + r;
  21473. // this.navId = l + "-" + r;
  21474. }
  21475. }
  21476. this.navList = copyList;
  21477. this.navList[0].isOpen = false;
  21478. this.navList[this.courseType].isOpen = true;
  21479. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21480. } else {
  21481. this.setNavList2();
  21482. }
  21483. },
  21484. setNavList2() {
  21485. for (var l = 0; l < this.chapInfoList.length; l++) {
  21486. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21487. for (var r = 0; r < w.length; r++) {
  21488. this.navList[l].task[r].isLook = w[r].isLook;
  21489. }
  21490. }
  21491. if (
  21492. this.IsLookOpen &&
  21493. !this.navList[this.courseType].task[this.taskCount].isLook
  21494. ) {
  21495. this.openTask(0, 0, "0-0");
  21496. }
  21497. this.$forceUpdate();
  21498. },
  21499. getCourseState(type) {
  21500. let params = {
  21501. cid: this.id
  21502. };
  21503. this.ajax
  21504. .get(this.$store.state.api + "getCourseState", params)
  21505. .then(res => {
  21506. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  21507. this.chapInfoList = JSON.parse(res.data[0][0].state);
  21508. console.log("this.chapInfoList", this.chapInfoList);
  21509. this.setNavList();
  21510. this.$forceUpdate();
  21511. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  21512. this.addCourseState(2);
  21513. } else {
  21514. this.addCourseState(1);
  21515. }
  21516. })
  21517. .catch(err => {
  21518. console.error(err);
  21519. });
  21520. },
  21521. addCourseState(type) {
  21522. let _state = this.chapInfoList;
  21523. // this.courseType this.taskCount
  21524. if (type == 1 || type == 2) {
  21525. for (var i = 0; i < _state.length; i++) {
  21526. let el = _state[i].chapterInfo[0].taskJson;
  21527. for (var j = 0; j < el.length; j++) {
  21528. // if (i == 0 && j == 0) {
  21529. // el[j].isLook = true;
  21530. // } else {
  21531. // el[j].isLook = false;
  21532. // }
  21533. if (
  21534. this.courseType > i ||
  21535. (this.courseType == i && this.taskCount + 1 > j)
  21536. ) {
  21537. el[j].isLook = true;
  21538. } else {
  21539. el[j].isLook = false;
  21540. }
  21541. }
  21542. }
  21543. }
  21544. let params = [
  21545. {
  21546. cid: this.id,
  21547. state: JSON.stringify(_state)
  21548. }
  21549. ];
  21550. this.ajax
  21551. .post(
  21552. this.$store.state.api +
  21553. (type == 1 ? "addCourseState" : "updateCourseSate"),
  21554. params
  21555. )
  21556. .then(res => {
  21557. if (this.IsLookOpen) {
  21558. this.setNavList();
  21559. }
  21560. if (type == 3 && type == 2) {
  21561. this.getCourseState(1);
  21562. }
  21563. })
  21564. .catch(err => {
  21565. console.error(err);
  21566. });
  21567. },
  21568. getHomeWork() {
  21569. let params = {
  21570. cid: this.id,
  21571. stage: this.courseType,
  21572. task: this.taskCount,
  21573. uid: this.userid
  21574. };
  21575. this.ajax
  21576. .get(this.$store.state.api + "selectWork", params)
  21577. .then(res => {
  21578. if (res.data[0].length > 0) {
  21579. this.studyJuri = JSON.parse(res.data[0][0].content);
  21580. this.isNoHomeWork = true;
  21581. }
  21582. })
  21583. .catch(err => {
  21584. console.error(err);
  21585. });
  21586. },
  21587. isAssetTypeAnImage(ext) {
  21588. return (
  21589. [
  21590. "png",
  21591. "jpg",
  21592. "jpeg",
  21593. "bmp",
  21594. "gif",
  21595. "webp",
  21596. "psd",
  21597. "svg",
  21598. "tiff"
  21599. ].indexOf(ext) !== -1
  21600. );
  21601. },
  21602. switchVideo(media) {
  21603. this.playerO = {};
  21604. this.playerOptions.poster = "";
  21605. this.playerOptions.sources[0].src = media;
  21606. this.playerO = this.playerOptions;
  21607. },
  21608. onPlayerPlay() {},
  21609. onPlayerTimeupdate(player) {
  21610. let gklog = player.cache_.currentTime; //当前播放的秒数
  21611. let a = player.cache_.duration; //视频的总时长
  21612. let gklog2 = parseInt(gklog);
  21613. // if(gklog2 == '3'){
  21614. // player.pause()
  21615. // setTimeout(()=>{
  21616. // player.currentTime(gklog2+1)
  21617. // player.play()
  21618. // },1000)
  21619. // }
  21620. console.log(" onPlayerTimeupdate!", gklog);
  21621. console.log(" onPlayerTimeupdate!", gklog2);
  21622. },
  21623. lookVedio(u, i) {
  21624. this.isClickNav = "";
  21625. // this.playerOptions.sources[0].src = u;
  21626. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21627. d.sources[0].src = u;
  21628. this.playerO[this.taskCount] = d;
  21629. this.showType = 0;
  21630. // this.isClickNav = "video" + i;
  21631. this.isClickNav = i;
  21632. this.$forceUpdate();
  21633. this.insertMemorandum(
  21634. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21635. this.vChapterData[this.taskCount].find(i => i.url == u).name
  21636. }</span>`
  21637. );
  21638. },
  21639. lookText(i, t) {
  21640. this.isClickNav = "";
  21641. // this.text = this.textList[i][t];
  21642. this.text = this.vChapterData[i][t];
  21643. // this.dialogVisible1 = true;
  21644. this.showType = 1;
  21645. // this.isClickNav = "text" + t;
  21646. this.isClickNav = t;
  21647. this.insertMemorandum(
  21648. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21649. this.vChapterData[this.taskCount][t].name
  21650. }.doc</span>`
  21651. );
  21652. },
  21653. lookTools(i, t) {
  21654. this.chapTools = this.chapToolList[i][t];
  21655. this.dialogVisible2 = true;
  21656. },
  21657. async openFile(f) {
  21658. this.pptImgUrl = "";
  21659. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  21660. if (
  21661. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  21662. -1
  21663. ) {
  21664. let _uuurl = await this.checkLink(f);
  21665. this.pptImgUrl =
  21666. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21667. encodeURIComponent(_uuurl);
  21668. this.showPDF = false;
  21669. this.dialogVisible3 = true;
  21670. } else if (
  21671. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21672. ) {
  21673. this.pptImgUrl = f;
  21674. this.showPDF = true;
  21675. this.dialogVisible3 = true;
  21676. }
  21677. this.insertMemorandum(
  21678. `查看<span class="variable">${w.sName}</span>的作业`
  21679. );
  21680. },
  21681. openTable(f) {
  21682. this.tableJson = JSON.parse(f.works);
  21683. this.dialogVisibleTable2 = true;
  21684. this.insertMemorandum(
  21685. `查看<span class="variable">${f.sName}的作业</span>`
  21686. );
  21687. },
  21688. openWord(f) {
  21689. this.tableJson = JSON.parse(f.works);
  21690. this.dialogVisibleTable3 = true;
  21691. this.insertMemorandum(
  21692. `查看<span class="variable">${f.sName}的作业</span>`
  21693. );
  21694. },
  21695. doUrl(url, i) {
  21696. this.isClickNav = "";
  21697. this.pptImgUrl1 = "";
  21698. this.showType = 2;
  21699. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  21700. url = "https://" + url;
  21701. }
  21702. this.pptImgUrl1 = "";
  21703. setTimeout(() => {
  21704. this.pptImgUrl1 = url;
  21705. }, 500);
  21706. // this.isClickNav = "line" + i;
  21707. this.isClickNav = i;
  21708. this.$forceUpdate();
  21709. },
  21710. checkPhoto(f, i) {
  21711. this.showType = 4;
  21712. this.pptImgUrl1 = f.url;
  21713. this.isClickNav = i;
  21714. this.$forceUpdate();
  21715. this.insertMemorandum(
  21716. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21717. this.vChapterData[this.taskCount][i].name
  21718. }</span>`
  21719. );
  21720. },
  21721. async downFile(f, i) {
  21722. this.isClickNav = "";
  21723. this.pptImgUrl1 = "";
  21724. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  21725. if (
  21726. a.indexOf(
  21727. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  21728. ) != -1
  21729. ) {
  21730. let _uuurl = await this.checkLink(f.url);
  21731. this.pptImgUrl1 =
  21732. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21733. encodeURIComponent(_uuurl);
  21734. // this.dialogVisible3 = true;
  21735. this.showType = 2;
  21736. } else if (
  21737. this.isAssetTypeAnImage(
  21738. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  21739. )
  21740. ) {
  21741. this.showType = 4;
  21742. this.pptImgUrl1 = f.url;
  21743. } else if (
  21744. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  21745. "PDF"
  21746. ) {
  21747. this.pptImgUrl1 = f.url;
  21748. // this.dialogVisible3 = true;
  21749. this.showType = 3;
  21750. } else {
  21751. window.open(this.file[i].url);
  21752. }
  21753. // this.isClickNav = "word" + i;
  21754. this.isClickNav = i;
  21755. this.insertMemorandum(
  21756. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21757. this.vChapterData[this.taskCount][i].name
  21758. }</span>`
  21759. );
  21760. },
  21761. downFileList(i) {
  21762. window.open(this.noImgList[i].url);
  21763. },
  21764. openAddWork() {
  21765. this.dialogVisible = true;
  21766. },
  21767. addBzWorks() {
  21768. let params = [
  21769. {
  21770. uid: this.userid,
  21771. cid: this.id,
  21772. stage: this.courseType,
  21773. task: this.taskCount,
  21774. tool: this.toolindex,
  21775. content: JSON.stringify(this.eScore),
  21776. type: 6
  21777. }
  21778. ];
  21779. this.ajax
  21780. .post(this.$store.state.api + "addCourseWorks", params)
  21781. .then(res => {
  21782. this.$message({
  21783. message: "提交成功",
  21784. type: "success"
  21785. });
  21786. this.eScore = { eBzText: "", eStar: [] };
  21787. this.studentEvalDialogVisible = false;
  21788. this.selectSWorks();
  21789. })
  21790. .catch(err => {
  21791. this.$message.error("提交失败");
  21792. console.error(err);
  21793. });
  21794. },
  21795. addBzWorksTeacher() {
  21796. let params = [
  21797. {
  21798. uid: this.sStudent.userid,
  21799. cid: this.id,
  21800. stage: this.courseType,
  21801. task: this.taskCount,
  21802. tool: this.toolindex,
  21803. content: JSON.stringify(this.eScore),
  21804. type: 6
  21805. }
  21806. ];
  21807. this.ajax
  21808. .post(this.$store.state.api + "addCourseWorks", params)
  21809. .then(res => {
  21810. this.$message({
  21811. message: "提交成功",
  21812. type: "success"
  21813. });
  21814. this.eScore = { eBzText: "", eStar: [] };
  21815. this.studentEvalDialogVisibleTeacher = false;
  21816. this.selectSWorks();
  21817. })
  21818. .catch(err => {
  21819. this.$message.error("提交失败");
  21820. console.error(err);
  21821. });
  21822. },
  21823. addStudentAsk() {
  21824. if (!this.radio.length) {
  21825. this.$message.error("请选择选项");
  21826. return;
  21827. }
  21828. for (var i = 0; i < this.askJson.askCount; i++) {
  21829. if (
  21830. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21831. (this.radio[i] !== 0 && !this.radio[i])
  21832. ) {
  21833. this.$message.error("请选择选项");
  21834. return;
  21835. }
  21836. }
  21837. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21838. let params = [
  21839. {
  21840. uid: this.userid,
  21841. cid: this.id,
  21842. stage: this.courseType,
  21843. task: this.taskCount,
  21844. tool: this.toolindex,
  21845. content: JSON.stringify(this.askList),
  21846. type: 2
  21847. }
  21848. ];
  21849. this.ajax
  21850. .post(this.$store.state.api + "addCourseWorks", params)
  21851. .then(res => {
  21852. this.$message({
  21853. message: "提交成功",
  21854. type: "success"
  21855. });
  21856. this.askList = [];
  21857. this.dialogVisible5 = false;
  21858. this.selectStudent();
  21859. this.selectSWorks();
  21860. this.selectSLook();
  21861. })
  21862. .catch(err => {
  21863. this.$message.error("提交失败");
  21864. console.error(err);
  21865. });
  21866. },
  21867. addStudentAskTeacher() {
  21868. if (!this.radio.length) {
  21869. this.$message.error("请选择选项");
  21870. return;
  21871. }
  21872. for (var i = 0; i < this.askJson.askCount; i++) {
  21873. if (
  21874. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21875. (this.radio[i] !== 0 && !this.radio[i])
  21876. ) {
  21877. this.$message.error("请选择选项");
  21878. return;
  21879. }
  21880. }
  21881. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21882. let params = [
  21883. {
  21884. uid: this.sStudent.userid,
  21885. cid: this.id,
  21886. stage: this.courseType,
  21887. task: this.taskCount,
  21888. tool: this.toolindex,
  21889. content: JSON.stringify(this.askList),
  21890. type: 2
  21891. }
  21892. ];
  21893. this.ajax
  21894. .post(this.$store.state.api + "addCourseWorks", params)
  21895. .then(res => {
  21896. this.$message({
  21897. message: "提交成功",
  21898. type: "success"
  21899. });
  21900. this.askList = [];
  21901. this.dialogVisible5Teacher = false;
  21902. this.selectStudent();
  21903. this.selectSWorks();
  21904. this.selectSLook();
  21905. })
  21906. .catch(err => {
  21907. this.$message.error("提交失败");
  21908. console.error(err);
  21909. });
  21910. },
  21911. addStudentTest() {
  21912. if (!this.radio.length) {
  21913. this.$message.error("请选择选项");
  21914. return;
  21915. }
  21916. for (var i = 0; i < this.testJson.testCount; i++) {
  21917. if (
  21918. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21919. (this.radio[i] !== 0 && !this.radio[i])
  21920. ) {
  21921. this.$message.error("请选择选项");
  21922. return;
  21923. }
  21924. }
  21925. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  21926. let params = [
  21927. {
  21928. uid: this.userid,
  21929. cid: this.id,
  21930. stage: this.courseType,
  21931. task: this.taskCount,
  21932. tool: this.toolindex,
  21933. content: JSON.stringify(this.askList),
  21934. type: 8
  21935. }
  21936. ];
  21937. this.ajax
  21938. .post(this.$store.state.api + "addCourseWorks", params)
  21939. .then(res => {
  21940. this.$message({
  21941. message: "提交成功",
  21942. type: "success"
  21943. });
  21944. this.askList = [];
  21945. this.dialogVisibleChoice = false;
  21946. this.selectStudent();
  21947. this.selectSWorks();
  21948. this.selectSLook();
  21949. })
  21950. .catch(err => {
  21951. this.$message.error("提交失败");
  21952. console.error(err);
  21953. });
  21954. },
  21955. addStudentTestTeacher() {
  21956. if (!this.radio.length) {
  21957. this.$message.error("请选择选项");
  21958. return;
  21959. }
  21960. for (var i = 0; i < this.testJson.testCount; i++) {
  21961. if (
  21962. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21963. (this.radio[i] !== 0 && !this.radio[i])
  21964. ) {
  21965. this.$message.error("请选择选项");
  21966. return;
  21967. }
  21968. }
  21969. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  21970. let params = [
  21971. {
  21972. uid: this.sStudent.userid,
  21973. cid: this.id,
  21974. stage: this.courseType,
  21975. task: this.taskCount,
  21976. tool: this.toolindex,
  21977. content: JSON.stringify(this.askList),
  21978. type: 8
  21979. }
  21980. ];
  21981. this.ajax
  21982. .post(this.$store.state.api + "addCourseWorks", params)
  21983. .then(res => {
  21984. this.$message({
  21985. message: "提交成功",
  21986. type: "success"
  21987. });
  21988. this.askList = [];
  21989. this.dialogVisibleChoiceTeacher = false;
  21990. this.selectStudent();
  21991. this.selectSWorks();
  21992. this.selectSLook();
  21993. })
  21994. .catch(err => {
  21995. this.$message.error("提交失败");
  21996. console.error(err);
  21997. });
  21998. },
  21999. addWork() {
  22000. if (this.studyJuri[0].content == "") {
  22001. this.$message.error("请将信息填写完整");
  22002. return;
  22003. } else if (this.studyJuri[0].cover.length == 0) {
  22004. this.$message.error("请将信息填写完整");
  22005. return;
  22006. } else if (this.studyJuri[0].upVedio.length == 0) {
  22007. this.$message.error("请将信息填写完整");
  22008. return;
  22009. }
  22010. if (this.isNoHomeWork) {
  22011. this.$confirm(
  22012. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22013. "提示",
  22014. {
  22015. confirmButtonText: "确定",
  22016. cancelButtonText: "取消",
  22017. type: "warning"
  22018. }
  22019. )
  22020. .then(() => {
  22021. let params = [
  22022. {
  22023. uid: this.userid,
  22024. cid: this.id,
  22025. stage: this.courseType,
  22026. task: this.taskCount,
  22027. content: JSON.stringify(this.studyJuri)
  22028. }
  22029. ];
  22030. this.ajax
  22031. .post(this.$store.state.api + "addWorks", params)
  22032. .then(res => {
  22033. this.$message({
  22034. message: "提交成功",
  22035. type: "success"
  22036. });
  22037. this.isNoHomeWork = true;
  22038. this.dialogVisible = false;
  22039. })
  22040. .catch(err => {
  22041. this.$message.error("提交失败");
  22042. console.error(err);
  22043. });
  22044. })
  22045. .catch(() => {});
  22046. } else {
  22047. let params = [
  22048. {
  22049. uid: this.userid,
  22050. cid: this.id,
  22051. stage: this.courseType,
  22052. task: this.taskCount,
  22053. content: JSON.stringify(this.studyJuri)
  22054. }
  22055. ];
  22056. this.ajax
  22057. .post(this.$store.state.api + "addWorks", params)
  22058. .then(res => {
  22059. this.$message({
  22060. message: "提交成功",
  22061. type: "success"
  22062. });
  22063. this.isNoHomeWork = true;
  22064. this.dialogVisible = false;
  22065. })
  22066. .catch(err => {
  22067. this.$message.error("提交失败");
  22068. console.error(err);
  22069. });
  22070. }
  22071. },
  22072. selectCount() {
  22073. let params = {
  22074. cid: this.id,
  22075. chid: this.courseType,
  22076. uid: this.userid
  22077. };
  22078. this.ajax
  22079. .get(this.$store.state.api + "selectToolsCount", params)
  22080. .then(res => {
  22081. for (var i = 0; i < res.data[0].length; i++) {
  22082. if (res.data[0][i].tools == 1) {
  22083. this.wbCount = res.data[0][i].count;
  22084. } else if (res.data[0][i].tools == 2) {
  22085. this.wordCount = res.data[0][i].count;
  22086. } else if (res.data[0][i].tools == 3) {
  22087. this.mindCount = res.data[0][i].count;
  22088. } else if (res.data[0][i].tools == 4) {
  22089. this.askCount = res.data[0][i].count;
  22090. } else if (res.data[0][i].tools == 6) {
  22091. this.noteCount = res.data[0][i].count;
  22092. } else if (res.data[0][i].tools == 7) {
  22093. this.mindNetWorkCount = res.data[0][i].count;
  22094. } else if (res.data[0][i].tools == 8) {
  22095. this.libraryCount = res.data[0][i].count;
  22096. } else if (res.data[0][i].tools == 16) {
  22097. this.workCount = res.data[0][i].count;
  22098. } else if (res.data[0][i].tools == 10) {
  22099. this.timeCount = res.data[0][i].count;
  22100. } else if (res.data[0][i].tools == 15) {
  22101. this.answerCount = res.data[0][i].count;
  22102. } else if (res.data[0][i].tools == 18) {
  22103. this.trainCount = res.data[0][i].count;
  22104. }
  22105. }
  22106. })
  22107. .catch(err => {
  22108. console.error(err);
  22109. });
  22110. },
  22111. openTools(t, i, index, c, sName, id) {
  22112. var z = JSON.parse(c);
  22113. this.noteName = sName;
  22114. if (t == 4) {
  22115. this.radio = [];
  22116. this.isAnswer = false;
  22117. let b = z[0].anwer;
  22118. this.radio = b;
  22119. this.askJson = z[0].askJson;
  22120. this.isAnswer = true;
  22121. this.dialogVisible5 = true;
  22122. } else if (t == 45) {
  22123. this.radio = [];
  22124. this.isAnswer = false;
  22125. let b = z[0].anwer;
  22126. this.radio = b;
  22127. this.testJson = z[0].testJson;
  22128. this.isAnswer = true;
  22129. this.dialogVisibleChoice = true;
  22130. } else if (t == 69) {
  22131. this.oldEnglishJson1 = {};
  22132. this.oldEnglishJson = {};
  22133. this.englishList1 = {};
  22134. this.newEngIndex = -1;
  22135. this.isNoUserid = false;
  22136. this.englishList1 = this.chapInfoList[
  22137. this.courseType
  22138. ].chapterInfo[0].taskJson[index].toolChoose[i].englishList;
  22139. this.oldEnglishJson = z;
  22140. this.engWid = id;
  22141. this.newEnglishList = { engTitle: "", engText: "" };
  22142. this.newEnglishList1 = [];
  22143. this.selectEngC(id, z);
  22144. } else if (t == 62) {
  22145. this.videoType = 1;
  22146. this.videoJson = {};
  22147. this.videoJson = JSON.parse(c);
  22148. // this.videoJson =
  22149. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22150. // index
  22151. // ].toolChoose[i].videoJson;
  22152. this.dialogVisibleVideo = true;
  22153. }
  22154. // else if (t == 15) {
  22155. // this.answerQ = "";
  22156. // this.questionAnswer = "";
  22157. // this.answerQ = z[0].answerTitle;
  22158. // this.questionAnswer = z[0].answer;
  22159. // this.answerDialogVisible = true;
  22160. // }
  22161. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`);
  22162. },
  22163. fastText(p, t) {
  22164. if (t == 1) {
  22165. this.commentText += p;
  22166. } else {
  22167. this.eScore.eBzText += p;
  22168. }
  22169. },
  22170. addTools(t, i, index) {
  22171. var a = 0;
  22172. // this.taskCount = index;
  22173. this.toolindex = i;
  22174. if (t == 1) {
  22175. if (this.wbCount > 0) {
  22176. this.updateCount(this.wbCount, t);
  22177. } else {
  22178. this.wbCount++;
  22179. a = this.wbCount;
  22180. this.toolsCount(a, t);
  22181. }
  22182. window.parent.postMessage(
  22183. {
  22184. tools: "1",
  22185. cid: this.id,
  22186. stage: this.courseType,
  22187. task: this.taskCount,
  22188. tool: i
  22189. },
  22190. "*"
  22191. );
  22192. } else if (t == 2) {
  22193. if (this.wordCount > 0) {
  22194. this.updateCount(this.wordCount, t);
  22195. } else {
  22196. this.wordCount++;
  22197. a = this.wordCount;
  22198. this.toolsCount(a, t);
  22199. }
  22200. window.parent.postMessage({ tools: "2" }, "*");
  22201. } else if (t == 3) {
  22202. if (this.mindCount > 0) {
  22203. this.updateCount(this.mindCount, t);
  22204. } else {
  22205. this.mindCount++;
  22206. a = this.mindCount;
  22207. this.toolsCount(a, t);
  22208. }
  22209. window.parent.postMessage(
  22210. {
  22211. tools: "3",
  22212. cid: this.id,
  22213. stage: this.courseType,
  22214. task: this.taskCount,
  22215. tool: i
  22216. },
  22217. "*"
  22218. );
  22219. } else if (t == 4) {
  22220. this.radio = [];
  22221. this.noteName = "";
  22222. this.isAnswer = false;
  22223. if (this.askCount > 0) {
  22224. this.updateCount(this.askCount, t);
  22225. } else {
  22226. this.askCount++;
  22227. a = this.askCount;
  22228. this.toolsCount(a, t);
  22229. }
  22230. if (!this.dialogVisible2) {
  22231. this.askJson.askJson = this.chapInfoList[
  22232. this.courseType
  22233. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  22234. this.askJson.askTitle = this.chapInfoList[
  22235. this.courseType
  22236. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  22237. this.askJson.askCount = this.chapInfoList[
  22238. this.courseType
  22239. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  22240. } else {
  22241. this.askJson.askJson = this.chapTools.askJson.askJson;
  22242. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22243. this.askJson.askCount = this.chapTools.askJson.askCount;
  22244. }
  22245. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22246. if (this.askJson.askJson[k].type == "2") {
  22247. this.radio.push([]);
  22248. } else {
  22249. this.radio.push("");
  22250. }
  22251. }
  22252. this.dialogVisible5 = true;
  22253. // window.parent.postMessage({ tools: "4" }, "*");
  22254. } else if (t == 45) {
  22255. this.noteName = "";
  22256. this.radio = [];
  22257. this.isAnswer = false;
  22258. if (this.askCount > 0) {
  22259. this.updateCount(this.askCount, t);
  22260. } else {
  22261. this.askCount++;
  22262. a = this.askCount;
  22263. this.toolsCount(a, t);
  22264. }
  22265. this.testJson = this.chapInfoList[
  22266. this.courseType
  22267. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  22268. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22269. if (this.testJson.testJson[k].type == "2") {
  22270. this.radio.push([]);
  22271. } else {
  22272. this.radio.push("");
  22273. }
  22274. }
  22275. this.dialogVisibleChoice = true;
  22276. // window.parent.postMessage({ tools: "4" }, "*");
  22277. } else if (t == 5) {
  22278. if (this.scoreCount > 0) {
  22279. this.updateCount(this.scoreCount, t);
  22280. } else {
  22281. this.scoreCount++;
  22282. a = this.scoreCount;
  22283. this.toolsCount(a, t);
  22284. }
  22285. this.dialogVisible4 = true;
  22286. // window.parent.postMessage({ tools: "5" }, "*");
  22287. } else if (t == 6) {
  22288. if (this.noteCount > 0) {
  22289. this.updateCount(this.noteCount, t);
  22290. } else {
  22291. this.noteCount++;
  22292. a = this.noteCount;
  22293. this.toolsCount(a, t);
  22294. }
  22295. window.parent.postMessage(
  22296. {
  22297. tools: "6",
  22298. cid: this.id,
  22299. stage: this.courseType,
  22300. task: this.taskCount,
  22301. tool: i
  22302. },
  22303. "*"
  22304. );
  22305. } else if (t == 7) {
  22306. if (this.mindNetWorkCount > 0) {
  22307. this.updateCount(this.mindNetWorkCount, t);
  22308. } else {
  22309. this.mindNetWorkCount++;
  22310. a = this.mindNetWorkCount;
  22311. this.toolsCount(a, t);
  22312. }
  22313. window.parent.postMessage(
  22314. {
  22315. tools: "7",
  22316. cid: this.id,
  22317. stage: this.courseType,
  22318. task: this.taskCount,
  22319. tool: i
  22320. },
  22321. "*"
  22322. );
  22323. } else if (t == 16) {
  22324. if (this.workCount > 0) {
  22325. this.updateCount(this.workCount, t);
  22326. } else {
  22327. this.workCount++;
  22328. a = this.workCount;
  22329. this.toolsCount(a, t);
  22330. }
  22331. this.dialogVisible = true;
  22332. } else if (t == 50) {
  22333. if (this.tType == 2) {
  22334. this.$message.error("不支持学生使用");
  22335. return;
  22336. }
  22337. this.plworkFile = [];
  22338. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22339. if (!this.uploadCid) {
  22340. this.$message.error(
  22341. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  22342. );
  22343. return;
  22344. }
  22345. // this.uploadCid =
  22346. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22347. // index
  22348. // ].toolChoose[i].uploadJson[0];
  22349. this.selectUploadStudent(2);
  22350. } else if (t == 8) {
  22351. if (this.libraryCount > 0) {
  22352. this.updateCount(this.libraryCount, t);
  22353. } else {
  22354. this.libraryCount++;
  22355. a = this.libraryCount;
  22356. this.toolsCount(a, t);
  22357. }
  22358. window.parent.postMessage({ tools: "8" }, "*");
  22359. } else if (t == 17) {
  22360. if (this.libraryCount > 0) {
  22361. this.updateCount(this.libraryCount, t);
  22362. } else {
  22363. this.libraryCount++;
  22364. a = this.libraryCount;
  22365. this.toolsCount(a, t);
  22366. }
  22367. window.parent.postMessage({ tools: "17" }, "*");
  22368. } else if (t == 18) {
  22369. if (this.trainCount > 0) {
  22370. this.updateCount(this.trainCount, t);
  22371. } else {
  22372. this.trainCount++;
  22373. a = this.trainCount;
  22374. this.toolsCount(a, t);
  22375. }
  22376. window.parent.postMessage({ tools: "18" }, "*");
  22377. } else if (t == 10) {
  22378. if (this.timeCount > 0) {
  22379. this.updateCount(this.timeCount, t);
  22380. } else {
  22381. this.timeCount++;
  22382. a = this.timeCount;
  22383. this.toolsCount(a, t);
  22384. }
  22385. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  22386. .taskJson[index].toolChoose[i].preTime
  22387. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22388. .toolChoose[i].preTime
  22389. : "";
  22390. this.timeDialogVisible = true;
  22391. } else if (t == 15) {
  22392. this.answerQ = "";
  22393. this.questionAnswer = "";
  22394. if (this.answerCount > 0) {
  22395. this.updateCount(this.answerCount, t);
  22396. } else {
  22397. this.answerCount++;
  22398. a = this.answerCount;
  22399. this.toolsCount(a, t);
  22400. }
  22401. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22402. .taskJson[index].toolChoose[i].answerQ
  22403. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22404. .toolChoose[i].answerQ
  22405. : "";
  22406. this.answerDialogVisible = true;
  22407. } else if (t == 21) {
  22408. window.parent.postMessage({ tools: "21" }, "*");
  22409. } else if (t == 22) {
  22410. window.parent.postMessage({ tools: "22" }, "*");
  22411. } else if (t == 23) {
  22412. window.parent.postMessage({ tools: "23" }, "*");
  22413. } else if (t == 24) {
  22414. window.parent.postMessage({ tools: "24" }, "*");
  22415. } else if (t == 25) {
  22416. window.parent.postMessage({ tools: "25" }, "*");
  22417. } else if (t == 31) {
  22418. window.parent.postMessage({ tools: "31" }, "*");
  22419. } else if (t == 28) {
  22420. window.parent.postMessage({ tools: "28" }, "*");
  22421. } else if (t == 37) {
  22422. window.parent.postMessage({ tools: "37" }, "*");
  22423. } else if (t == 38) {
  22424. window.parent.postMessage({ tools: "38" }, "*");
  22425. } else if (t == 39) {
  22426. window.parent.postMessage({ tools: "39" }, "*");
  22427. } else if (t == 32) {
  22428. window.parent.postMessage({ tools: "32" }, "*");
  22429. } else if (t == 66) {
  22430. window.parent.postMessage({ tools: "66" }, "*");
  22431. } else if (t == 67) {
  22432. window.parent.postMessage({ tools: "67" }, "*");
  22433. } else if (t == 68) {
  22434. window.parent.postMessage({ tools: "68" }, "*");
  22435. } else if (t == 57) {
  22436. // window.parent.postMessage({ tools: "57" }, "*");
  22437. window.parent.postMessage(
  22438. {
  22439. tools: "57u",
  22440. cid: this.id,
  22441. stage: this.courseType,
  22442. task: this.taskCount,
  22443. tool: i
  22444. },
  22445. "*"
  22446. );
  22447. } else if (t == 58) {
  22448. window.parent.postMessage({ tools: "58" }, "*");
  22449. } else if (t == 59) {
  22450. window.parent.postMessage({ tools: "59" }, "*");
  22451. } else if (t == 60) {
  22452. window.parent.postMessage({ tools: "60" }, "*");
  22453. } else if (t == 61) {
  22454. window.parent.postMessage({ tools: "61" }, "*");
  22455. } else if (t == 63) {
  22456. window.parent.postMessage({ tools: "63" }, "*");
  22457. } else if (t == 71) {
  22458. window.parent.postMessage({ tools: "71" }, "*");
  22459. } else if (t == 69) {
  22460. if (this.worksStudent[i].length) {
  22461. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22462. if (this.userid == this.worksStudent[i][k].userid) {
  22463. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works);
  22464. break;
  22465. } else {
  22466. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  22467. }
  22468. }
  22469. } else {
  22470. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  22471. }
  22472. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  22473. .taskJson[index].toolChoose[i].englishList
  22474. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22475. .toolChoose[i].englishList
  22476. : {};
  22477. this.englishToolIndex = i;
  22478. this.myAnList = this.myAnswerList1;
  22479. this.engDialogVisible = true;
  22480. } else if (t == 70) {
  22481. if (this.worksStudent[i].length) {
  22482. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22483. if (
  22484. this.userid == this.worksStudent[i][k].userid &&
  22485. this.worksStudent[i][k].type == 17
  22486. ) {
  22487. this.englishVoiceJsonWork = JSON.parse(
  22488. this.worksStudent[i][k].works
  22489. );
  22490. break;
  22491. } else {
  22492. this.englishVoiceJsonWork = [];
  22493. }
  22494. }
  22495. } else {
  22496. this.englishVoiceJsonWork = [];
  22497. }
  22498. let englishVoiceJson = {};
  22499. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22500. .taskJson[index].toolChoose[i].englishVoiceJson
  22501. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22502. .toolChoose[i].englishVoiceJson
  22503. : {};
  22504. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  22505. this.EnglishVoiceDialog = true;
  22506. } else if (t == 65) {
  22507. if (this.tType == 2) {
  22508. this.$message.error("不支持学生使用");
  22509. return;
  22510. }
  22511. this.uploadCid = this.tcid;
  22512. if (!this.uploadCid) {
  22513. this.$message.error(
  22514. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  22515. );
  22516. return;
  22517. }
  22518. this.selectPickStudent();
  22519. } else if (t == 26) {
  22520. window.parent.postMessage(
  22521. {
  22522. tools: "26",
  22523. cid: this.id,
  22524. stage: this.courseType,
  22525. task: this.taskCount,
  22526. tool: i
  22527. },
  22528. "*"
  22529. );
  22530. } else if (t == 40) {
  22531. if (this.evalCount > 0) {
  22532. this.updateCount(this.evalCount, t);
  22533. } else {
  22534. this.evalCount++;
  22535. a = this.evalCount;
  22536. this.toolsCount(a, t);
  22537. }
  22538. this.eScore = { eBzText: "", eStar: [] };
  22539. if (this.worksStudent[i].length) {
  22540. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22541. if (this.userid == this.worksStudent[i][k].userid) {
  22542. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22543. this.rateJson = this.chapInfoList[
  22544. this.courseType
  22545. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22546. break;
  22547. } else {
  22548. this.rateJson = this.chapInfoList[
  22549. this.courseType
  22550. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22551. }
  22552. }
  22553. } else {
  22554. this.rateJson = this.chapInfoList[
  22555. this.courseType
  22556. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22557. }
  22558. this.isStar = false;
  22559. this.studentEvalDialogVisible = true;
  22560. } else if (t == 41) {
  22561. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22562. .taskJson[index].toolChoose[i].selectJson
  22563. ? JSON.parse(
  22564. JSON.stringify(
  22565. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22566. index
  22567. ].toolChoose[i].selectJson
  22568. )
  22569. )
  22570. : { url: "", select: [], answer: [] };
  22571. if (this.worksStudent[i].length) {
  22572. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22573. if (this.userid == this.worksStudent[i][k].userid) {
  22574. var a = this.worksStudent[i][k].works.split(",");
  22575. for (var ki = 0; ki < a.length; ki++) {
  22576. a[ki] = parseInt(a[ki]);
  22577. }
  22578. this.selectAnswer = {
  22579. answer: a,
  22580. stu: this.worksStudent[i][k].sName
  22581. };
  22582. break;
  22583. } else {
  22584. this.selectAnswer = { answer: [], stu: "" };
  22585. }
  22586. }
  22587. } else {
  22588. this.selectAnswer = { answer: [], stu: "" };
  22589. }
  22590. this.isSelect = false;
  22591. this.dialogVisibleSelect = true;
  22592. } else if (t == 44) {
  22593. window.parent.postMessage({ tools: "44" }, "*");
  22594. } else if (t == 47) {
  22595. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22596. .taskJson[index].toolChoose[i].sentenceList
  22597. ? JSON.parse(
  22598. JSON.stringify(
  22599. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22600. index
  22601. ].toolChoose[i].sentenceList
  22602. )
  22603. )
  22604. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22605. for (var q = 0; q < this.sentenceList.length; q++) {
  22606. this.sentenceList[q].chooseSenList = [];
  22607. this.sentenceList[q].addChangeSen = [];
  22608. this.sentenceList[q].addChangeSen = JSON.parse(
  22609. JSON.stringify(this.sentenceList[q].addSentence)
  22610. );
  22611. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  22612. q
  22613. ].rightAnswer.length;
  22614. }
  22615. this.dialogVisibleSentence = true;
  22616. } else if (t == 48) {
  22617. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22618. .taskJson[index].toolChoose[i].tableJson
  22619. ? JSON.parse(
  22620. JSON.stringify(
  22621. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22622. index
  22623. ].toolChoose[i].tableJson
  22624. )
  22625. )
  22626. : { text: "" };
  22627. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  22628. if (this.worksStudent[i].length) {
  22629. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22630. if (this.userid == this.worksStudent[i][k].userid) {
  22631. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22632. break;
  22633. }
  22634. }
  22635. }
  22636. this.dialogVisibleTable = true;
  22637. } else if (t == 52) {
  22638. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22639. .taskJson[index].toolChoose[i].wordJson
  22640. ? JSON.parse(
  22641. JSON.stringify(
  22642. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22643. index
  22644. ].toolChoose[i].wordJson
  22645. )
  22646. )
  22647. : { text: "" };
  22648. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  22649. if (this.worksStudent[i].length) {
  22650. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22651. if (this.userid == this.worksStudent[i][k].userid) {
  22652. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22653. break;
  22654. }
  22655. }
  22656. }
  22657. this.dialogVisibleWord = true;
  22658. } else if (t == 49) {
  22659. if (!this.tcid2 && this.courseDetail.juri != "" && this.tType == "1") {
  22660. return;
  22661. }
  22662. this.groupJson = this.chapInfoList[
  22663. this.courseType
  22664. ].chapterInfo[0].taskJson[index].toolChoose[i].groupJson;
  22665. this.islock = this.groupJson.islock == 1 ? true : false;
  22666. this.dialogVisibleGroup = true;
  22667. } else if (t == 62) {
  22668. this.videoType = 0;
  22669. this.videoJson = {};
  22670. this.videoJson = this.chapInfoList[
  22671. this.courseType
  22672. ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
  22673. this.dialogVisibleVideo = true;
  22674. }
  22675. this.insertMemorandum(
  22676. `点击工作区<span class="variable">工具${index + 1}:${
  22677. this.toolsList[t]
  22678. }</span>`
  22679. );
  22680. },
  22681. teacherWorkSubmit(t, i, index, s) {
  22682. this.sStudent = s;
  22683. this.toolindex = i;
  22684. this.sTool = t;
  22685. if (this.tType !== "1" && this.tType !== "4") {
  22686. return;
  22687. }
  22688. if (t == 16 || t == 32 || t == 50) {
  22689. this.dialogVisibleWorks = true;
  22690. } else if (t == 15) {
  22691. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22692. .taskJson[index].toolChoose[i].answerQ
  22693. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22694. .toolChoose[i].answerQ
  22695. : "";
  22696. this.questionAnswer = "";
  22697. this.answerDialogVisibleTeacher = true; //问答
  22698. } else if (t == 52) {
  22699. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22700. .taskJson[index].toolChoose[i].wordJson
  22701. ? JSON.parse(
  22702. JSON.stringify(
  22703. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22704. index
  22705. ].toolChoose[i].wordJson
  22706. )
  22707. )
  22708. : { text: "" };
  22709. if (this.worksStudent[i].length) {
  22710. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22711. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22712. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22713. break;
  22714. }
  22715. }
  22716. }
  22717. this.dialogVisibleWordTeacher = true; //文档
  22718. } else if (t == 4) {
  22719. this.radio = [];
  22720. this.noteName = "";
  22721. this.isAnswer = false;
  22722. if (this.askCount > 0) {
  22723. this.updateCount(this.askCount, t);
  22724. } else {
  22725. this.askCount++;
  22726. a = this.askCount;
  22727. this.toolsCount(a, t);
  22728. }
  22729. if (!this.dialogVisible2) {
  22730. this.askJson.askJson = this.chapInfoList[
  22731. this.courseType
  22732. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  22733. this.askJson.askTitle = this.chapInfoList[
  22734. this.courseType
  22735. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  22736. this.askJson.askCount = this.chapInfoList[
  22737. this.courseType
  22738. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  22739. } else {
  22740. this.askJson.askJson = this.chapTools.askJson.askJson;
  22741. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22742. this.askJson.askCount = this.chapTools.askJson.askCount;
  22743. }
  22744. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22745. if (this.askJson.askJson[k].type == "2") {
  22746. this.radio.push([]);
  22747. } else {
  22748. this.radio.push("");
  22749. }
  22750. }
  22751. this.dialogVisible5Teacher = true;
  22752. } else if (t == 45) {
  22753. this.noteName = "";
  22754. this.radio = [];
  22755. this.isAnswer = false;
  22756. if (this.askCount > 0) {
  22757. this.updateCount(this.askCount, t);
  22758. } else {
  22759. this.askCount++;
  22760. a = this.askCount;
  22761. this.toolsCount(a, t);
  22762. }
  22763. this.testJson = this.chapInfoList[
  22764. this.courseType
  22765. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  22766. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22767. if (this.testJson.testJson[k].type == "2") {
  22768. this.radio.push([]);
  22769. } else {
  22770. this.radio.push("");
  22771. }
  22772. }
  22773. this.dialogVisibleChoiceTeacher = true;
  22774. } else if (t == 41) {
  22775. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22776. .taskJson[index].toolChoose[i].selectJson
  22777. ? JSON.parse(
  22778. JSON.stringify(
  22779. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22780. index
  22781. ].toolChoose[i].selectJson
  22782. )
  22783. )
  22784. : { url: "", select: [], answer: [] };
  22785. if (this.worksStudent[i].length) {
  22786. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22787. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22788. var a = this.worksStudent[i][k].works.split(",");
  22789. for (var ki = 0; ki < a.length; ki++) {
  22790. a[ki] = parseInt(a[ki]);
  22791. }
  22792. this.selectAnswer = {
  22793. answer: a,
  22794. stu: this.worksStudent[i][k].sName
  22795. };
  22796. break;
  22797. } else {
  22798. this.selectAnswer = { answer: [], stu: "" };
  22799. }
  22800. }
  22801. } else {
  22802. this.selectAnswer = { answer: [], stu: "" };
  22803. }
  22804. this.isSelect = false;
  22805. this.dialogVisibleSelectTeacher = true;
  22806. } else if (t == 47) {
  22807. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22808. .taskJson[index].toolChoose[i].sentenceList
  22809. ? JSON.parse(
  22810. JSON.stringify(
  22811. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22812. index
  22813. ].toolChoose[i].sentenceList
  22814. )
  22815. )
  22816. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22817. for (var q = 0; q < this.sentenceList.length; q++) {
  22818. this.sentenceList[q].chooseSenList = [];
  22819. this.sentenceList[q].addChangeSen = [];
  22820. this.sentenceList[q].addChangeSen = JSON.parse(
  22821. JSON.stringify(this.sentenceList[q].addSentence)
  22822. );
  22823. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  22824. q
  22825. ].rightAnswer.length;
  22826. }
  22827. this.dialogVisibleSentenceTeacher = true;
  22828. } else if (t == 48) {
  22829. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22830. .taskJson[index].toolChoose[i].tableJson
  22831. ? JSON.parse(
  22832. JSON.stringify(
  22833. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22834. index
  22835. ].toolChoose[i].tableJson
  22836. )
  22837. )
  22838. : { text: "" };
  22839. if (this.worksStudent[i].length) {
  22840. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22841. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22842. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22843. break;
  22844. }
  22845. }
  22846. }
  22847. this.dialogVisibleTableTeacher = true;
  22848. } else if (t == 40) {
  22849. if (this.evalCount > 0) {
  22850. this.updateCount(this.evalCount, t);
  22851. } else {
  22852. this.evalCount++;
  22853. a = this.evalCount;
  22854. this.toolsCount(a, t);
  22855. }
  22856. this.eScore = { eBzText: "", eStar: [] };
  22857. if (this.worksStudent[i].length) {
  22858. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22859. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22860. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22861. this.rateJson = this.chapInfoList[
  22862. this.courseType
  22863. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22864. break;
  22865. } else {
  22866. this.rateJson = this.chapInfoList[
  22867. this.courseType
  22868. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22869. }
  22870. }
  22871. } else {
  22872. this.rateJson = this.chapInfoList[
  22873. this.courseType
  22874. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22875. }
  22876. this.isStar = false;
  22877. this.studentEvalDialogVisibleTeacher = true;
  22878. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  22879. window.parent.postMessage(
  22880. {
  22881. tools: t + "teacher",
  22882. cid: this.id,
  22883. stage: this.courseType,
  22884. task: this.taskCount,
  22885. tool: i,
  22886. student: this.sStudent
  22887. },
  22888. "*"
  22889. );
  22890. }
  22891. },
  22892. openCocoPi(tool, i, uid, uname) {
  22893. let student = {
  22894. userid: uid,
  22895. student: uname
  22896. };
  22897. if (tool == 57) {
  22898. window.parent.postMessage(
  22899. {
  22900. tools: tool + "teacher",
  22901. cid: this.id,
  22902. stage: this.courseType,
  22903. task: this.taskCount,
  22904. tool: i,
  22905. student: student
  22906. },
  22907. "*"
  22908. );
  22909. }
  22910. },
  22911. setRightAnswer(s, i, j) {
  22912. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  22913. if (
  22914. this.sentenceList[i].chooseSenList[q] == undefined ||
  22915. this.sentenceList[i].chooseSenList[q] == ""
  22916. ) {
  22917. this.sentenceList[i].chooseSenList[q] = s;
  22918. this.sentenceList[i].addChangeSen[j] = "";
  22919. break;
  22920. }
  22921. }
  22922. this.$forceUpdate();
  22923. },
  22924. returnCard(r, i, j) {
  22925. var a = this.sentenceList[i].addSentence.indexOf(r);
  22926. this.sentenceList[i].chooseSenList[j] = "";
  22927. this.sentenceList[i].addChangeSen[a] = r;
  22928. this.$forceUpdate();
  22929. },
  22930. // addSentenceTool() {
  22931. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22932. // this.taskCount
  22933. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  22934. // this.sentenceList = [
  22935. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  22936. // ];
  22937. // this.dialogVisibleSentence = false;
  22938. // },
  22939. toolsCount(a, t) {
  22940. let params = {
  22941. cid: this.id,
  22942. chid: this.courseType,
  22943. uid: this.userid,
  22944. tid: t,
  22945. count: a
  22946. };
  22947. this.ajax
  22948. .get(this.$store.state.api + "insertToolsCount", params)
  22949. .then(res => {
  22950. this.selectCount();
  22951. })
  22952. .catch(err => {
  22953. console.error(err);
  22954. });
  22955. },
  22956. updateCount(c, t) {
  22957. c++;
  22958. let params = {
  22959. cid: this.id,
  22960. chid: this.courseType,
  22961. uid: this.userid,
  22962. tid: t,
  22963. count: c
  22964. };
  22965. this.ajax
  22966. .get(this.$store.state.api + "updateToolsCount", params)
  22967. .then(res => {
  22968. this.selectCount();
  22969. })
  22970. .catch(err => {
  22971. console.error(err);
  22972. });
  22973. },
  22974. checkEva() {
  22975. if (this.evalua != "") {
  22976. for (var i = 0; i < this.evaJuri.length; i++) {
  22977. if (this.evalua == this.evaJuri[i].id) {
  22978. this.eTitle = this.evaJuri[i].title;
  22979. this.eJson = JSON.parse(this.evaJuri[i].content);
  22980. }
  22981. }
  22982. this.$forceUpdate();
  22983. setTimeout(() => {
  22984. this.setMindData();
  22985. }, 0);
  22986. }
  22987. },
  22988. selectEva() {
  22989. let params = {
  22990. oid: this.oid
  22991. };
  22992. this.ajax
  22993. .get(this.$store.state.api + "selectAllEvaluation", params)
  22994. .then(res => {
  22995. this.evaJuri = res.data[0];
  22996. })
  22997. .catch(err => {
  22998. console.error(err);
  22999. });
  23000. },
  23001. setMindData() {
  23002. this.data.data = [];
  23003. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23004. let _eJson = Object.keys(this.eJson);
  23005. let _e = this.eJson;
  23006. for (let i = 0; i < _eJson.length; i++) {
  23007. let element = _e[_eJson[i]];
  23008. this.data.data.push({
  23009. id: element.id,
  23010. parentid: "root",
  23011. topic: element.name
  23012. });
  23013. let _eJsonc = Object.keys(element.child);
  23014. let _e2 = element.child;
  23015. for (let j = 0; j < _eJsonc.length; j++) {
  23016. let _ec = _e2[_eJsonc[j]];
  23017. this.data.data.push({
  23018. id: _ec.id,
  23019. parentid: element.id,
  23020. topic: _ec.name
  23021. });
  23022. let _eJsonz = Object.keys(_ec.child);
  23023. let _e3 = _ec.child;
  23024. for (let z = 0; z < _eJsonz.length; z++) {
  23025. let _ez = _e3[_eJsonz[z]];
  23026. this.data.data.push({
  23027. id: _ez.id,
  23028. parentid: _ec.id,
  23029. topic: _ez.name
  23030. });
  23031. }
  23032. }
  23033. }
  23034. this.$forceUpdate();
  23035. },
  23036. checkFileFull(type, url) {
  23037. this.fullDialogVisible = true;
  23038. this.fulltype = type;
  23039. this.fullUrl = url;
  23040. },
  23041. async checkFileFull1(t, f) {
  23042. this.fullDialogVisible = true;
  23043. if (t == 6) {
  23044. this.fulltype = 1;
  23045. this.fullUrl = JSON.parse(JSON.stringify(f));
  23046. } else if (t == 8) {
  23047. this.fulltype = 2;
  23048. this.fullUrl = f.url;
  23049. } else if (
  23050. t == 3 &&
  23051. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23052. "PDF"
  23053. ) {
  23054. this.fulltype = 3;
  23055. this.fullUrl = f.url;
  23056. } else if (t == 3) {
  23057. this.fulltype = 2;
  23058. let _uuurl = await this.checkLink(f.url);
  23059. this.fullUrl =
  23060. "https://view.officeapps.live.com/op/view.aspx?src=" +
  23061. encodeURIComponent(_uuurl);
  23062. }
  23063. this.changeSplitScreenBehavior({ code: 0, form: [t, f] });
  23064. },
  23065. openSname(n, id, i, uid) {
  23066. this.snameWid = id;
  23067. this.worksSName = n;
  23068. this.worksSid = uid == n ? "" : uid;
  23069. this.toolindex = i;
  23070. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23071. if (!this.uploadCid) {
  23072. this.$message.error(
  23073. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23074. );
  23075. return;
  23076. }
  23077. this.selectUploadStudent(1);
  23078. },
  23079. updateName() {
  23080. let params = {
  23081. n: this.worksSName,
  23082. cid: this.snameWid
  23083. };
  23084. this.ajax
  23085. .get(this.$store.state.api + "updateCourseWorksName", params)
  23086. .then(res => {
  23087. this.$message({
  23088. message: "修改成功",
  23089. type: "success"
  23090. });
  23091. this.dialogVisibleSname = false;
  23092. this.getCourseDetail(2);
  23093. this.snameWid = "";
  23094. this.worksSName = "";
  23095. })
  23096. .catch(err => {
  23097. console.error(err);
  23098. });
  23099. },
  23100. downloadFile2(f) {
  23101. // const loading = this.$loading.service({
  23102. // background: "rgba(255, 255, 255, 0.7)",
  23103. // target: document.body,
  23104. // text: "文件加载中...",
  23105. // });
  23106. // let url2 = f.url;
  23107. // let _url2 = "";
  23108. // if (
  23109. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23110. // ) {
  23111. // _url2 = url2.split(
  23112. // "https://view.officeapps.live.com/op/view.aspx?src="
  23113. // )[1];
  23114. // } else {
  23115. // _url2 = url2;
  23116. // }
  23117. // let params = {
  23118. // url: _url2,
  23119. // name: f.name,
  23120. // };
  23121. // this.ajax
  23122. // .get(this.$store.state.api + "download", params)
  23123. // .then((res) => {
  23124. // loading.close();
  23125. // let content = res.data.data.data;
  23126. // let ab = new ArrayBuffer(content.length);
  23127. // let view = new Uint8Array(ab);
  23128. // for (var i = 0; i < content.length; ++i) {
  23129. // view[i] = content[i];
  23130. // }
  23131. // let elink = document.createElement("a");
  23132. // elink.download = f.name;
  23133. // elink.style.display = "none";
  23134. // let blob = new Blob([ab], {
  23135. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23136. // });
  23137. // elink.href = URL.createObjectURL(blob);
  23138. // document.body.appendChild(elink);
  23139. // elink.click();
  23140. // document.body.removeChild(elink);
  23141. // })
  23142. // .catch((err) => {
  23143. // loading.close();
  23144. // console.error(err);
  23145. // });
  23146. var credentials = {
  23147. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23148. secretAccessKey: "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"
  23149. }; //秘钥形式的登录上传
  23150. window.AWS.config.update(credentials);
  23151. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23152. let url2 = f.url;
  23153. let _url2 = "";
  23154. if (
  23155. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23156. ) {
  23157. _url2 = url2.split(
  23158. "https://view.officeapps.live.com/op/view.aspx?src="
  23159. )[1];
  23160. } else {
  23161. _url2 = url2;
  23162. }
  23163. let _this = this;
  23164. _this.downLoading = true;
  23165. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23166. let name = decodeURIComponent(
  23167. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23168. );
  23169. var params = {
  23170. Bucket: "ccrb",
  23171. Key: name
  23172. };
  23173. s3.getObject(params, function(err, data) {
  23174. _this.downLoading = false;
  23175. if (err) console.log(err, err.stack);
  23176. // an error occurred
  23177. else {
  23178. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23179. let a = document.createElement("a");
  23180. a.name = f.name;
  23181. a.href = url;
  23182. a.download = f.name;
  23183. a.click();
  23184. console.log(data);
  23185. } // sxuccessful response
  23186. });
  23187. return;
  23188. let url = f.url;
  23189. let _url = "";
  23190. if (
  23191. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23192. ) {
  23193. _url = url.split(
  23194. "https://view.officeapps.live.com/op/view.aspx?src="
  23195. )[1];
  23196. } else {
  23197. _url = url;
  23198. }
  23199. _this.downLoading = true;
  23200. // const loading = _this.$loading.service({
  23201. // background: "rgba(255, 255, 255, 0.7)",
  23202. // target: document.body,
  23203. // text: "文件加载中...",
  23204. // });
  23205. let x = new XMLHttpRequest();
  23206. x.open("GET", _url, true);
  23207. x.responseType = "blob";
  23208. x.onload = function() {
  23209. _this.downLoading = false;
  23210. // loading.close();
  23211. let url = window.URL.createObjectURL(new Blob([x.response]));
  23212. let a = document.createElement("a");
  23213. a.name = f.name;
  23214. a.href = url;
  23215. a.download = f.name;
  23216. a.click();
  23217. };
  23218. x.send();
  23219. },
  23220. downloadFile(url) {
  23221. let hz = url.substring(url.lastIndexOf(".") + 1);
  23222. if (hz == "txt" || hz == "md") {
  23223. this.lookTxt(url);
  23224. return;
  23225. }
  23226. var credentials = {
  23227. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23228. secretAccessKey: "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"
  23229. }; //秘钥形式的登录上传
  23230. window.AWS.config.update(credentials);
  23231. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23232. let url2 = url;
  23233. let _url2 = "";
  23234. if (
  23235. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23236. ) {
  23237. _url2 = url2.split(
  23238. "https://view.officeapps.live.com/op/view.aspx?src="
  23239. )[1];
  23240. } else {
  23241. _url2 = url2;
  23242. }
  23243. const loading2 = this.$loading.service({
  23244. background: "rgba(255, 255, 255, 0.7)",
  23245. target: document.body,
  23246. text: "文件加载中..."
  23247. });
  23248. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23249. let name = decodeURIComponent(
  23250. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23251. );
  23252. var params = {
  23253. Bucket: "ccrb",
  23254. Key: name
  23255. };
  23256. s3.getObject(params, function(err, data) {
  23257. loading2.close();
  23258. if (err) console.log(err, err.stack);
  23259. // an error occurred
  23260. else {
  23261. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23262. let a = document.createElement("a");
  23263. a.name = name;
  23264. a.href = url;
  23265. a.download = name;
  23266. a.click();
  23267. console.log(data);
  23268. } // sxuccessful response
  23269. });
  23270. return;
  23271. let _this = this;
  23272. let _url = "";
  23273. if (
  23274. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23275. ) {
  23276. _url = url.split(
  23277. "https://view.officeapps.live.com/op/view.aspx?src="
  23278. )[1];
  23279. } else {
  23280. _url = url;
  23281. }
  23282. const x = new XMLHttpRequest();
  23283. x.open("GET", _url, true);
  23284. x.responseType = "blob";
  23285. const loading = _this.$loading.service({
  23286. background: "rgba(255, 255, 255, 0.7)",
  23287. target: document.body,
  23288. text: "文件加载中..."
  23289. });
  23290. // _this.$message.success("文件下载中...");
  23291. x.onload = function(e) {
  23292. loading.close();
  23293. let content = x.response;
  23294. let elink = document.createElement("a");
  23295. elink.download = decodeURI(
  23296. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23297. );
  23298. elink.style.display = "none";
  23299. let blob = new Blob([content]);
  23300. elink.href = URL.createObjectURL(blob);
  23301. document.body.appendChild(elink);
  23302. elink.click();
  23303. document.body.removeChild(elink);
  23304. };
  23305. x.send();
  23306. },
  23307. openLine(url) {
  23308. window.open(url);
  23309. },
  23310. resize() {
  23311. if (document.getElementsByClassName("box_course").length) {
  23312. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  23313. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  23314. if (this.showType == 2 || this.showType == 3) {
  23315. document.getElementsByClassName("navBox")[0].style.height =
  23316. a - 40 + 0 + "px";
  23317. } else {
  23318. document.getElementsByClassName("navBox")[0].style.height =
  23319. a - 40 + "px";
  23320. }
  23321. }
  23322. this.Stbodywidth =
  23323. document.getElementsByClassName("student_body").length &&
  23324. document.getElementsByClassName("student_body")[0].offsetWidth;
  23325. },
  23326. closeDraw() {
  23327. this.bg = null;
  23328. this.drawShow = false;
  23329. },
  23330. showPicturePaint(url) {
  23331. let params = {
  23332. img: url
  23333. };
  23334. this.ajax
  23335. .get(this.$store.state.api + "imgToBase64", params)
  23336. .then(res => {
  23337. this.drawShow = true;
  23338. this.bg = res.data[0].img;
  23339. })
  23340. .catch(err => {
  23341. console.error(err);
  23342. });
  23343. },
  23344. addImgDraw(base64) {
  23345. let file = { name: "批注图.png" };
  23346. let img = this.dataUrlToFile(base64, file);
  23347. this.beforeUpload1(img, 5);
  23348. },
  23349. addImgDrawImG(url) {
  23350. // console.log(url);
  23351. let params = [
  23352. {
  23353. wid: this.commentDetail.wid,
  23354. img: url
  23355. }
  23356. ];
  23357. this.ajax
  23358. .post(this.$store.state.api + "updateCourseWorks", params)
  23359. .then(res => {
  23360. this.$message({
  23361. message: "提交成功",
  23362. type: "success"
  23363. });
  23364. this.drawShow = false;
  23365. this.bg = "";
  23366. this.selectSWorks();
  23367. this.selectStudent();
  23368. })
  23369. .catch(err => {
  23370. this.$message.error("提交失败");
  23371. console.error(err);
  23372. });
  23373. },
  23374. deletePicturePaint() {
  23375. this.$confirm("确定删除此批注吗?", "提示", {
  23376. confirmButtonText: "确定",
  23377. cancelButtonText: "取消",
  23378. type: "warning"
  23379. })
  23380. .then(() => {
  23381. let params = [
  23382. {
  23383. wid: this.commentDetail.wid,
  23384. img: ""
  23385. }
  23386. ];
  23387. this.ajax
  23388. .post(this.$store.state.api + "updateCourseWorks", params)
  23389. .then(res => {
  23390. this.$message({
  23391. message: "删除成功",
  23392. type: "success"
  23393. });
  23394. this.selectSWorks();
  23395. this.selectStudent();
  23396. })
  23397. .catch(err => {
  23398. this.$message.error("删除失败");
  23399. console.error(err);
  23400. });
  23401. })
  23402. .catch(() => {});
  23403. },
  23404. getAudioVideo(constraintsData) {
  23405. if (navigator.mediaDevices === undefined) {
  23406. navigator.mediaDevices = {};
  23407. }
  23408. if (navigator.mediaDevices.getUserMedia === undefined) {
  23409. navigator.mediaDevices.getUserMedia = function(constraints) {
  23410. // 首先,如果有getUserMedia的话,就获得它
  23411. var getUserMedia =
  23412. navigator.getUserMedia ||
  23413. navigator.webkitGetUserMedia ||
  23414. navigator.mozGetUserMedia ||
  23415. navigator.msGetUserMedia;
  23416. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  23417. if (!getUserMedia) {
  23418. return Promise.reject({ code: 404 });
  23419. }
  23420. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  23421. return new Promise(function(resolve, reject) {
  23422. getUserMedia.call(navigator, constraints, resolve, reject);
  23423. });
  23424. };
  23425. }
  23426. return navigator.mediaDevices.getUserMedia(constraintsData);
  23427. },
  23428. /**
  23429. * 开始录制
  23430. */
  23431. startRecording(callback) {
  23432. let _function = screenStream => {
  23433. this.addStreamStopListener(screenStream, () => {
  23434. console.log("流停止监听");
  23435. this.stopRecording();
  23436. this.$emit("streamStop", {});
  23437. // this.stopRecording();
  23438. });
  23439. var options = {
  23440. type: "video",
  23441. mimeType: "video/webm",
  23442. disableLogs: false,
  23443. getNativeBlob: false, // enable it for longer recordings
  23444. ignoreMutedMedia: false
  23445. };
  23446. // this.video.srcObject = screenStream;
  23447. this.recorder = RecordRTC(screenStream, options);
  23448. this.recorder.startRecording();
  23449. this.recorder.screen = screenStream;
  23450. this.videoStart = true;
  23451. // callback(true);
  23452. };
  23453. this.getAudioVideo({ audio: true })
  23454. .then(res => {
  23455. this.captureScreen(_function, true);
  23456. console.log("已点击允许,开启成功");
  23457. })
  23458. .catch(err => {
  23459. // console.log('浏览器不支持,请更换浏览器')
  23460. // } else {
  23461. this.captureScreen(_function, false);
  23462. console.log("请检查是否存在麦克风");
  23463. });
  23464. },
  23465. /**
  23466. * 停止录制
  23467. */
  23468. stopRecording(callback) {
  23469. this.recorder.stopRecording(() => {
  23470. // this.video.src = this.video.srcObject = null;
  23471. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  23472. const url = URL.createObjectURL(this.recorder.getBlob());
  23473. const a = document.createElement("a"); //this.fileName+
  23474. let videoFile = new File(
  23475. [this.recorder.getBlob()],
  23476. this.courseDetail.title + "录屏.mp4",
  23477. {
  23478. type: "video/mp4"
  23479. }
  23480. );
  23481. let downloadUrl = URL.createObjectURL(videoFile);
  23482. if (this.$refs.classRoomHelperRef) {
  23483. this.$refs.classRoomHelperRef.checkUploadFile(videoFile);
  23484. }
  23485. document.body.appendChild(a);
  23486. a.style.display = "none";
  23487. a.href = url;
  23488. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  23489. a.click();
  23490. this.recorder.screen.stop();
  23491. this.recorder.destroy();
  23492. this.recorder = null;
  23493. this.videoStart = false;
  23494. // callback(false);
  23495. });
  23496. },
  23497. //初始化
  23498. captureScreen(callback, type) {
  23499. if (navigator.getDisplayMedia) {
  23500. //录制结束,文件下载
  23501. navigator
  23502. .getDisplayMedia({
  23503. video: true
  23504. })
  23505. .then(screenStream => {
  23506. if (type) {
  23507. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  23508. screenStream.addTrack(mic.getTracks()[0]);
  23509. callback(screenStream);
  23510. });
  23511. } else {
  23512. callback(screenStream);
  23513. }
  23514. })
  23515. .catch(function(error) {
  23516. console.log("error", error);
  23517. });
  23518. } else if (navigator.mediaDevices.getDisplayMedia) {
  23519. navigator.mediaDevices
  23520. .getDisplayMedia({
  23521. video: true
  23522. })
  23523. .then(screenStream => {
  23524. if (type) {
  23525. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  23526. screenStream.addTrack(mic.getTracks()[0]);
  23527. callback(screenStream);
  23528. });
  23529. } else {
  23530. callback(screenStream);
  23531. }
  23532. })
  23533. .catch(function(error) {
  23534. console.log("error", error);
  23535. });
  23536. } else {
  23537. var error = "getDisplayMedia API are not supported in this browser.";
  23538. console.log("error", error);
  23539. alert(error);
  23540. }
  23541. },
  23542. //流监听
  23543. addStreamStopListener(stream, callback) {
  23544. stream.addEventListener(
  23545. "ended",
  23546. function() {
  23547. callback();
  23548. callback = function() {};
  23549. },
  23550. false
  23551. );
  23552. stream.addEventListener(
  23553. "inactive",
  23554. function() {
  23555. callback();
  23556. callback = function() {};
  23557. },
  23558. false
  23559. );
  23560. stream.getTracks().forEach(function(track) {
  23561. track.addEventListener(
  23562. "ended",
  23563. function() {
  23564. callback();
  23565. callback = function() {};
  23566. },
  23567. false
  23568. );
  23569. track.addEventListener(
  23570. "inactive",
  23571. function() {
  23572. callback();
  23573. callback = function() {};
  23574. },
  23575. false
  23576. );
  23577. });
  23578. },
  23579. updateGroup() {
  23580. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23581. this.dialogVisibleGroup2 = true;
  23582. },
  23583. numberPan() {
  23584. if (
  23585. /[^\d]/.test(this.groupJson.number) ||
  23586. this.groupJson.number < 2 ||
  23587. this.groupJson.number > 10
  23588. ) {
  23589. this.$message.error("请输入2-10的数字");
  23590. this.groupJson.number = "";
  23591. }
  23592. },
  23593. updateGroupJson() {
  23594. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  23595. if (
  23596. this.groupStudentUid[this.toolindex][i].length >
  23597. this.groupJson2.number
  23598. ) {
  23599. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  23600. return;
  23601. }
  23602. }
  23603. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  23604. this.islock = this.groupJson.islock == 1 ? true : false;
  23605. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23606. this.taskCount
  23607. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  23608. let params = [
  23609. {
  23610. cid: this.id,
  23611. chapters: JSON.stringify(this.chapInfoList),
  23612. uid: this.userid,
  23613. unitIndex: this.courseType
  23614. }
  23615. ];
  23616. this.ajax
  23617. .post(this.$store.state.api + "updateWorkNew4", params)
  23618. .then(res => {
  23619. this.$message.success("设置成功");
  23620. this.getCourseDetail(2);
  23621. this.dialogVisibleGroup2 = false;
  23622. this.groupJson2 = {};
  23623. this.$forceUpdate();
  23624. })
  23625. .catch(err => {
  23626. this.$message.error("网络不佳");
  23627. console.error(err);
  23628. });
  23629. },
  23630. lockChair() {
  23631. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23632. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  23633. this.updateGroupJson();
  23634. },
  23635. selectGroup(index) {
  23636. this.getCourseDetail(2, index);
  23637. },
  23638. joinGroup(index) {
  23639. if (this.groupJson.islock == 2) {
  23640. this.$message.error("位置已被锁定,无法加入");
  23641. return;
  23642. }
  23643. if (
  23644. this.groupStudent[this.toolindex][index].length >
  23645. this.groupJson.number ||
  23646. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  23647. ) {
  23648. this.$message.error("位置已满,无法加入");
  23649. return;
  23650. }
  23651. let params = [
  23652. {
  23653. cid: this.id,
  23654. stage: this.courseType,
  23655. task: this.taskCount,
  23656. tool: this.toolindex,
  23657. g: index,
  23658. uid: this.userid
  23659. }
  23660. ];
  23661. this.ajax
  23662. .post(this.$store.state.api + "joinGroup", params)
  23663. .then(res => {
  23664. this.$message.success("加入成功");
  23665. this.getCourseDetail(2);
  23666. })
  23667. .catch(err => {
  23668. this.$message.error("网络不佳");
  23669. console.error(err);
  23670. });
  23671. },
  23672. exitGroup(id) {
  23673. if (this.groupJson.islock == 2) {
  23674. this.$message.error("位置已被锁定,无法退出");
  23675. return;
  23676. }
  23677. let params = [
  23678. {
  23679. gid: id
  23680. }
  23681. ];
  23682. this.ajax
  23683. .post(this.$store.state.api + "exitGroup", params)
  23684. .then(res => {
  23685. this.$message.success("退出成功");
  23686. this.getCourseDetail(2);
  23687. })
  23688. .catch(err => {
  23689. this.$message.error("网络不佳");
  23690. console.error(err);
  23691. });
  23692. },
  23693. groupUpload(index, task, gindex) {
  23694. this.taskCount = task;
  23695. this.toolindex = index;
  23696. this.groupIndex = gindex;
  23697. this.dialogVisibleGroupWork = true;
  23698. },
  23699. updateGroupChair(user) {
  23700. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  23701. el.label = index;
  23702. return index != user.group;
  23703. });
  23704. this.updateGroupUser = user;
  23705. this.dialogVisibleUpdateGroup = true;
  23706. },
  23707. updateChair() {
  23708. if (
  23709. this.groupStudent[this.toolindex][this.checkChair].length >
  23710. this.groupJson.number ||
  23711. this.groupStudent[this.toolindex][this.checkChair].length ==
  23712. this.groupJson.number
  23713. ) {
  23714. this.$message.error("位置已满,无法加入");
  23715. return;
  23716. }
  23717. let params = [
  23718. {
  23719. cid: this.id,
  23720. stage: this.courseType,
  23721. task: this.taskCount,
  23722. tool: this.toolindex,
  23723. g: this.checkChair,
  23724. uid: this.updateGroupUser.userid
  23725. }
  23726. ];
  23727. this.ajax
  23728. .post(this.$store.state.api + "joinGroup", params)
  23729. .then(res => {
  23730. this.$message.success("修改成功");
  23731. this.updateGroupUser = {};
  23732. this.checkChair = "";
  23733. this.updateGroupArray = {};
  23734. this.dialogVisibleUpdateGroup = false;
  23735. this.getCourseDetail(2);
  23736. })
  23737. .catch(err => {
  23738. this.$message.error("网络不佳");
  23739. console.error(err);
  23740. });
  23741. },
  23742. deleteGroupChair(gindex) {
  23743. this.checkDeleteGroup = [];
  23744. this.deleteGroupUser = JSON.parse(
  23745. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  23746. );
  23747. this.deleteGroupArray = this.groupJson.group[gindex];
  23748. this.groupIndex = gindex;
  23749. this.dialogVisibleDeleteGroup = true;
  23750. },
  23751. async deleteChair() {
  23752. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  23753. const gid = this.groupStudent[this.toolindex][this.groupIndex][
  23754. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  23755. this.checkDeleteGroup[i]
  23756. )
  23757. ];
  23758. let params = [
  23759. {
  23760. gid: gid.id
  23761. }
  23762. ];
  23763. var a = await this.deleteChairA(params);
  23764. if (i == this.checkDeleteGroup.length - 1) {
  23765. this.$message.success("退出成功");
  23766. this.dialogVisibleDeleteGroup = false;
  23767. this.deleteGroupUser = [];
  23768. this.deleteGroupArray = {};
  23769. this.groupIndex = "";
  23770. this.checkDeleteGroup = [];
  23771. this.getCourseDetail(2);
  23772. }
  23773. }
  23774. },
  23775. deleteChairA(params) {
  23776. return new Promise((resolve, reject) => {
  23777. this.ajax
  23778. .post(this.$store.state.api + "exitGroup", params)
  23779. .then(res => {
  23780. resolve(1);
  23781. })
  23782. .catch(err => {
  23783. this.$message.error("网络不佳");
  23784. console.error(err);
  23785. });
  23786. });
  23787. },
  23788. contract(i) {
  23789. if (this.isCloseList[i].isClose == 0) {
  23790. this.isCloseList[i].isClose = 1;
  23791. } else {
  23792. this.isCloseList[i].isClose = 0;
  23793. }
  23794. this.$forceUpdate();
  23795. },
  23796. openWordCloud(toolindex) {
  23797. let array = [];
  23798. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  23799. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  23800. array.push({ name: works });
  23801. }
  23802. if (this.isGroup) {
  23803. for (var i = 0; i < this.courseGroup.group.length; i++) {
  23804. let works = this.courseGroup.group[i].works[toolindex];
  23805. for (var j = 0; j < works.length; j++) {
  23806. let answer = JSON.parse(works[j].works)[0].answer;
  23807. array.push({ name: answer });
  23808. }
  23809. }
  23810. }
  23811. this.wordCloudData = array;
  23812. this.dialogVisibleWordCloud = true;
  23813. },
  23814. openTips(i) {
  23815. this.tipsIndex = i;
  23816. this.downDialogVisible = true;
  23817. },
  23818. uploadWorks() {
  23819. this.$confirm("确定导出作业吗?", "提示", {
  23820. confirmButtonText: "确定",
  23821. cancelButtonText: "取消",
  23822. type: "warning"
  23823. })
  23824. .then(() => {
  23825. const loading = this.$loading.service({
  23826. background: "rgba(255, 255, 255, 0.7)",
  23827. target: document.body,
  23828. text: "文件加载中..."
  23829. });
  23830. const _worksStudent = this.worksStudent;
  23831. let url = [];
  23832. var counts = {};
  23833. for (var l = 0; l < _worksStudent[i].length; l++) {
  23834. var item = _worksStudent[i][l];
  23835. var name = item.sName;
  23836. if (!counts.hasOwnProperty(name)) {
  23837. counts[name] = 0;
  23838. } else {
  23839. counts[name]++;
  23840. }
  23841. if (counts[name] > 0) {
  23842. item.sName += " (" + counts[name] + ")";
  23843. }
  23844. }
  23845. for (var l = 0; l < _worksStudent[i].length; l++) {
  23846. var item = _worksStudent[i][l];
  23847. if (
  23848. item.works.indexOf(
  23849. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  23850. ) !== -1 &&
  23851. item.works.indexOf("img") === -1
  23852. ) {
  23853. url.push({ name: item.sName, url: item.works });
  23854. }
  23855. }
  23856. // var toolList = [
  23857. // { name: "电子白板", tool: 1 },
  23858. // { name: "思维导图", tool: 3 },
  23859. // { name: "协同文档", tool: 6 },
  23860. // { name: "思维网格", tool: 7 },
  23861. // { name: "素材库", tool: 8 },
  23862. // { name: "学习资料", tool: 17 },
  23863. // { name: "便签", tool: 2 },
  23864. // { name: "问卷调查", tool: 4 },
  23865. // { name: "选择题", tool: 45 },
  23866. // { name: "倒计时", tool: 10 },
  23867. // { name: "问答", tool: 15 },
  23868. // { name: "课程设计", tool: 26 },
  23869. // { name: "训练服务器", tool: 18 },
  23870. // { name: "作业提交", tool: 16 },
  23871. // { name: "批量上传", tool: 50 },
  23872. // { name: "AIoT Blockly", tool: 21 },
  23873. // { name: "AI Python", tool: 23 },
  23874. // { name: "AI Blockly", tool: 24 },
  23875. // { name: "目标管理", tool: 25 },
  23876. // { name: "数学画板", tool: 31 },
  23877. // { name: "翻译", tool: 28 },
  23878. // { name: "魔盒识字", tool: 37 },
  23879. // { name: "数学画板", tool: 31 },
  23880. // { name: "24点", tool: 38 },
  23881. // { name: "GeoGebra", tool: 39 },
  23882. // { name: "源码编辑", tool: 32 },
  23883. // { name: "个人评价", tool: 40 },
  23884. // { name: "选择匹配", tool: 41 },
  23885. // { name: "汉字宫", tool: 44 },
  23886. // { name: "排序", tool: 47 },
  23887. // { name: "表格", tool: 48 },
  23888. // { name: "文档", tool: 52 },
  23889. // { name: "学生分组", tool: 49 },
  23890. // { name: "CocoPi", tool: 57 },
  23891. // { name: "模拟驾驶", tool: 58 },
  23892. // { name: "路径搜索", tool: 59 },
  23893. // { name: "深度学习", tool: 60 },
  23894. // { name: "全历史", tool: 61 },
  23895. // { name: "交互视频", tool: 62 },
  23896. // { name: "海龟编程", tool: 63 },
  23897. // { name: "挑人", tool: 65 },
  23898. // { name: "公式编辑", tool: 66 },
  23899. // { name: "分子结构", tool: 67 },
  23900. // { name: "时间轴", tool: 68 },
  23901. // ];
  23902. // var toolName = "";
  23903. // for(var w = 0;w<toolList.length;w++){
  23904. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  23905. // toolName = toolList[w].name;
  23906. // }
  23907. // }
  23908. console.log(url);
  23909. this.downLoadAll(url, loading);
  23910. })
  23911. .catch(() => {});
  23912. },
  23913. downLoadAll(url, loading) {
  23914. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  23915. const zip = new JSZip();
  23916. const cache = {};
  23917. const promises = [];
  23918. data.forEach(item => {
  23919. const promise = getFile(item.url).then(data => {
  23920. if (data.data != 1) {
  23921. // 下载文件, 并存成ArrayBuffer对象
  23922. const file_name =
  23923. item.name +
  23924. "." +
  23925. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  23926. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  23927. cache[file_name] = data.data;
  23928. }
  23929. });
  23930. promises.push(promise);
  23931. });
  23932. Promise.all(promises).then(() => {
  23933. zip.generateAsync({ type: "blob" }).then(content => {
  23934. // 生成二进制流
  23935. FileSaver.saveAs(
  23936. content,
  23937. this.courseDetail.title + "-" + "作业提交工具.zip"
  23938. ); // 利用file-saver保存文件 自定义文件名
  23939. setTimeout(() => {
  23940. loading.close();
  23941. }, 2000);
  23942. });
  23943. });
  23944. },
  23945. pickStudent(stu) {
  23946. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  23947. return;
  23948. }
  23949. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  23950. confirmButtonText: "确定",
  23951. cancelButtonText: "取消",
  23952. type: "warning"
  23953. })
  23954. .then(() => {
  23955. let params = [
  23956. {
  23957. uid: stu.userid,
  23958. cid: this.id,
  23959. stage: this.courseType,
  23960. task: this.taskCount,
  23961. tool: this.toolindex
  23962. }
  23963. ];
  23964. this.ajax
  23965. .post(this.$store.state.api + "updateCoursePick", params)
  23966. .then(res => {
  23967. this.$message.success("操作成功");
  23968. this.getPick();
  23969. })
  23970. .catch(err => {
  23971. this.$message.error("网络不佳");
  23972. console.error(err);
  23973. });
  23974. })
  23975. .catch(() => {});
  23976. },
  23977. selectUser() {
  23978. let params = {
  23979. userid: this.userid
  23980. };
  23981. this.ajax
  23982. .get(this.$store.state.api + "selectUser", params)
  23983. .then(res => {
  23984. this.userMes = res.data[0];
  23985. })
  23986. .catch(err => {
  23987. console.error(err);
  23988. });
  23989. },
  23990. setEngText(i) {
  23991. this.newEngIndex = i;
  23992. this.$forceUpdate();
  23993. },
  23994. addCorrect() {
  23995. this.$confirm("你确定提交批改嘛?", "提示", {
  23996. confirmButtonText: "确定",
  23997. showCancelButton: false,
  23998. closeOnClickModal: false,
  23999. type: "warning"
  24000. })
  24001. .then(() => {
  24002. let params = {
  24003. cid: this.id,
  24004. s: parseInt(this.courseType),
  24005. t: this.taskCount,
  24006. tool: this.toolindex,
  24007. wid: this.engWid,
  24008. c: this.userid,
  24009. w:
  24010. this.userMes[0].type == 2
  24011. ? JSON.parse(this.newEnglishList)
  24012. : this.newEngIndex == -1 &&
  24013. this.isNoUserid == true &&
  24014. this.newEnglishList1.length
  24015. ? JSON.stringify(this.oldEnglishJson1)
  24016. : this.newEngIndex == -1
  24017. ? JSON.stringify(this.newEnglishList)
  24018. : this.newEngIndex > -1 && this.newEnglishList1.length > 0
  24019. ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork)
  24020. : ""
  24021. };
  24022. this.ajax
  24023. .get(this.$store.state.api + "addEngC", params)
  24024. .then(res => {
  24025. this.$message.success("提交成功");
  24026. this.engUpdateDialogVisible = false;
  24027. })
  24028. .catch(err => {
  24029. console.error(err);
  24030. });
  24031. })
  24032. .catch(() => {});
  24033. },
  24034. selectEngC(id, z) {
  24035. let params = {
  24036. workid: id
  24037. };
  24038. this.ajax
  24039. .get(this.$store.state.api + "selectEngC", params)
  24040. .then(res => {
  24041. if (res.data[0].length == 0) {
  24042. this.newEnglishList.engTitle = z.engTitle;
  24043. this.newEnglishList.engText = z.engText;
  24044. } else {
  24045. var a = res.data[0];
  24046. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24047. if (this.userMes[0].type == 2) {
  24048. var snum = 0;
  24049. for (var i = 0; i < a.length; i++) {
  24050. if (this.userMes[0].userid == a[i].correct) {
  24051. this.newEnglishList = JSON.parse(a[i].cWork);
  24052. snum = 1;
  24053. }
  24054. }
  24055. if (snum == 0) {
  24056. this.newEnglishList = { engTitle: "", engText: "" };
  24057. this.newEnglishList.engTitle = z.engTitle;
  24058. this.newEnglishList.engText = z.engText;
  24059. }
  24060. } else if (this.userMes[0].type == 1) {
  24061. var num = 0;
  24062. for (var w = 0; w < a.length; w++) {
  24063. if (this.userMes[0].userid == a[w].correct) {
  24064. num = 1;
  24065. }
  24066. }
  24067. if (num == 0) {
  24068. this.isNoUserid = true;
  24069. var c = JSON.parse(JSON.stringify(z));
  24070. this.oldEnglishJson1 = c;
  24071. } else {
  24072. this.isNoUserid = false;
  24073. }
  24074. var b = a.sort((item, index) => {
  24075. console.log(item);
  24076. if (item.correct === this.userMes[0].userid) {
  24077. return -1; // 将a移到前面
  24078. } else if (index.correct === this.userMes[0].userid) {
  24079. return 1; // 将b移到前面
  24080. } else {
  24081. return 0; // 保持默认顺序
  24082. }
  24083. });
  24084. for (var p = 0; p < b.length; p++) {
  24085. for (var y = 0; y < ppp.length; y++) {
  24086. if (b[p].id == ppp[y].id) {
  24087. b[p].cWork = JSON.parse(ppp[y].cWork);
  24088. break;
  24089. }
  24090. }
  24091. }
  24092. this.newEnglishList1 = b;
  24093. }
  24094. }
  24095. this.greyType = false;
  24096. setTimeout(() => {
  24097. this.topHeight = document.querySelectorAll(
  24098. ".engUpTop"
  24099. )[0].offsetHeight;
  24100. if (this.newEnglishList1.length > 0) {
  24101. if (this.isNoUserid == true) {
  24102. this.engListLength = this.newEnglishList1.length + 1;
  24103. this.newEngIndex = -1;
  24104. } else {
  24105. this.engListLength = this.newEnglishList1.length;
  24106. this.newEngIndex = 0;
  24107. }
  24108. }
  24109. if (this.userMes[0].type == 2) {
  24110. this.correctWord = Diff.diffWordsWithSpace(
  24111. this.oldEnglishJson.engText,
  24112. this.newEnglishList.engText
  24113. );
  24114. } else if (
  24115. this.newEngIndex == -1 &&
  24116. this.isNoUserid == true &&
  24117. this.newEnglishList1.length
  24118. ) {
  24119. this.correctWord = Diff.diffWordsWithSpace(
  24120. this.oldEnglishJson.engText,
  24121. this.oldEnglishJson1.engText
  24122. );
  24123. } else if (this.newEngIndex == -1) {
  24124. this.correctWord = Diff.diffWordsWithSpace(
  24125. this.oldEnglishJson.engText,
  24126. this.newEnglishList.engText
  24127. );
  24128. } else if (
  24129. this.newEngIndex > -1 &&
  24130. this.newEnglishList1.length > 0
  24131. ) {
  24132. this.correctWord = Diff.diffWordsWithSpace(
  24133. this.oldEnglishJson.engText,
  24134. this.newEnglishList1[this.newEngIndex].cWork.engText
  24135. );
  24136. }
  24137. }, 500);
  24138. this.engUpdateDialogVisible = true;
  24139. this.$forceUpdate();
  24140. })
  24141. .catch(err => {
  24142. console.error(err);
  24143. });
  24144. },
  24145. getPick() {
  24146. let params = {
  24147. cid: this.id
  24148. };
  24149. this.ajax
  24150. .get(this.$store.state.api + "getPick", params)
  24151. .then(res => {
  24152. let array = [];
  24153. for (var i = 0; i < res.data[0].length; i++) {
  24154. array.push(res.data[0][i].userid);
  24155. }
  24156. this.isPickStudent = array;
  24157. if (array.indexOf(this.userid) !== -1) {
  24158. this.$confirm("你被老师选到啦!", "提示", {
  24159. confirmButtonText: "确定",
  24160. showCancelButton: false,
  24161. closeOnClickModal: false,
  24162. type: "warning"
  24163. })
  24164. .then(() => {
  24165. let pa = [
  24166. {
  24167. uid: this.userid,
  24168. cid: this.id
  24169. }
  24170. ];
  24171. this.ajax
  24172. .post(this.$store.state.api + "deletePick", pa)
  24173. .then(res => {
  24174. this.getPick();
  24175. })
  24176. .catch(err => {
  24177. this.$message.error("网络不佳");
  24178. console.error(err);
  24179. });
  24180. })
  24181. .catch(() => {});
  24182. }
  24183. })
  24184. .catch(err => {
  24185. this.$message.error("网络不佳");
  24186. console.error(err);
  24187. });
  24188. },
  24189. foldEva() {
  24190. if (
  24191. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24192. this.taskCount
  24193. ].isEvaFold2
  24194. ) {
  24195. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24196. this.taskCount
  24197. ].isEvaFold2 = false;
  24198. } else {
  24199. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24200. this.taskCount
  24201. ].isEvaFold2 = true;
  24202. setTimeout(() => {
  24203. this.checkEva();
  24204. setTimeout(() => {
  24205. this.checkEva();
  24206. }, 500);
  24207. }, 0);
  24208. }
  24209. this.$forceUpdate();
  24210. },
  24211. panToolHeight(tool) {
  24212. var _tool = document.querySelectorAll("#" + tool)[0];
  24213. var _toolA = _tool ? _tool.offsetHeight : 0;
  24214. var _toolC = 0;
  24215. var _toolC =
  24216. _tool && _tool.children && _tool.children[0]
  24217. ? _tool.children[0].offsetHeight + 50
  24218. : 0;
  24219. let boolean2 = _toolA > _toolC ? true : false;
  24220. this.isCloseList[tool.split("-")[1]].isCloseBoolean = boolean2;
  24221. this.$forceUpdate();
  24222. },
  24223. async checkLink(url) {
  24224. // console.log(url)
  24225. let _url = url;
  24226. try {
  24227. const response = await fetch(url);
  24228. if (!response.ok) {
  24229. _url = await this.checkLink(
  24230. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24231. encodeURIComponent(
  24232. _url.split(
  24233. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/"
  24234. )[1]
  24235. )
  24236. );
  24237. }
  24238. // console.log(response.ok)
  24239. } catch (error) {
  24240. console.error("Error checking link:", error);
  24241. // console.log(false)
  24242. _url = await this.checkLink(
  24243. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24244. encodeURIComponent(
  24245. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24246. )
  24247. );
  24248. }
  24249. // console.log(_url)
  24250. return _url;
  24251. },
  24252. setClassRoomHelperWidth(width) {
  24253. this.classRoomHelperWidth = width;
  24254. },
  24255. openChoseWorksDetailDialog(tooC, toolIndex, taskCount) {
  24256. this.$refs.choseWorksDetailDialogRef.open({
  24257. toolType:45,
  24258. tType: this.tType,
  24259. toolIndex: toolIndex
  24260. });
  24261. this.changeSplitScreenBehavior({
  24262. code: 1,
  24263. form: {
  24264. toolType:45,
  24265. toolIndex: toolIndex,
  24266. courseType: this.courseType,
  24267. taskCount: this.taskCount,
  24268. type: 0
  24269. }
  24270. });
  24271. },
  24272. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24273. this.$refs.statisticalAnalysisRef.open({
  24274. worksStudent: this.worksStudent[toolIndex],
  24275. tType: this.tType,
  24276. toolIndex: toolIndex
  24277. });
  24278. this.changeSplitScreenBehavior({
  24279. code: 2,
  24280. form: {
  24281. toolType:4,
  24282. courseType: this.courseType,
  24283. taskCount: this.taskCount,
  24284. toolIndex: toolIndex,
  24285. type: 0
  24286. }
  24287. });
  24288. },
  24289. statisticalAnalysisRefresh(toolIndex) {
  24290. this.$refs.statisticalAnalysisRef.refreshData({
  24291. worksStudent: this.worksStudent[toolIndex],
  24292. tType: this.tType,
  24293. toolIndex: toolIndex
  24294. });
  24295. },
  24296. async splitScreenBehavior(type = 0) {
  24297. // return;
  24298. if (this.splitScreenData.loading)
  24299. return this.$message.info("操作过快,请稍等");
  24300. if (type == 0) {
  24301. //关闭分屏
  24302. this.splitScreenData.isOpen = false;
  24303. // this.splitScreenData.userId = "";
  24304. // this.splitScreenData.uid = "";
  24305. this.splitScreenData.behavior = null;
  24306. await this.updateSplitScreenData(1);
  24307. this.$message.success("已关闭分屏模式");
  24308. this.studentFreePreview(false);
  24309. this.OpenJobPreview(false);
  24310. // this.followingMode(false);
  24311. } else if (type == 1) {
  24312. //开启分屏
  24313. this.splitScreenData.isOpen = true;
  24314. this.splitScreenData.userId = this.userid;
  24315. this.splitScreenData.uid = this.splitScreenData.myUid;
  24316. this.splitScreenData.behavior = null;
  24317. let status = await this.updateSplitScreenData(0);
  24318. if (status == 1) {
  24319. this.$message.success("已开启分屏");
  24320. this.studentFreePreview(true);
  24321. this.OpenJobPreview(true);
  24322. // this.followingMode(true);
  24323. } else {
  24324. this.splitScreenData.isOpen = false;
  24325. this.splitScreenData.userId = "";
  24326. this.splitScreenData.uid = "";
  24327. this.splitScreenData.behavior = null;
  24328. this.$message.success("分屏开启失败");
  24329. }
  24330. }
  24331. },
  24332. getSplitScreenData() {
  24333. // return;
  24334. if (this.tType != 1) return;
  24335. let params = {
  24336. cid: this.id
  24337. };
  24338. this.ajax
  24339. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  24340. .then(async res => {
  24341. let data = res.data[0][0]["splitScreenData"];
  24342. console.log("获取了分屏数:", data);
  24343. if (data) {
  24344. data = JSON.parse(data);
  24345. if (
  24346. !this.splitScreenData.isOpen &&
  24347. data.isOpen &&
  24348. this.splitScreenData.myUid == data.uid
  24349. ) {
  24350. this.splitScreenData.isOpen = false;
  24351. this.splitScreenData.userId = "";
  24352. this.splitScreenData.uid = "";
  24353. this.splitScreenData.behavior = null;
  24354. await this.updateSplitScreenData(1);
  24355. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  24356. this.splitScreenData.isOpen = true;
  24357. this.splitScreenData.uid = data.uid;
  24358. this.splitScreenData.userId = data.userId;
  24359. this.splitScreenData.behavior = data.behavior;
  24360. this.$message.success("分屏模式已开启");
  24361. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  24362. this.splitScreenData.isOpen = false;
  24363. this.splitScreenData.userId = "";
  24364. this.splitScreenData.uid = "";
  24365. this.splitScreenData.behavior = null;
  24366. this.$message.error("已结束分屏模式");
  24367. } else if (this.splitScreenData.isOpen && data.isOpen) {
  24368. this.splitScreenData.isOpen = true;
  24369. this.splitScreenData.uid = data.uid;
  24370. this.splitScreenData.userId = data.userId;
  24371. this.splitScreenData.behavior = data.behavior;
  24372. }
  24373. this.doSplitScreenBehavior();
  24374. } else {
  24375. if (this.splitScreenData.isOpen) {
  24376. this.splitScreenData.isOpen = false;
  24377. this.splitScreenData.userId = "";
  24378. this.splitScreenData.uid = "";
  24379. this.splitScreenData.behavior = null;
  24380. this.$message.error("已结束分屏模式");
  24381. }
  24382. }
  24383. })
  24384. .catch(e => {
  24385. console.log("获取分屏数出错:", e);
  24386. });
  24387. },
  24388. doSplitScreenBehavior() {
  24389. if (
  24390. this.splitScreenData.isOpen &&
  24391. this.splitScreenData.uid != this.splitScreenData.myUid
  24392. ) {
  24393. let behavior = this.splitScreenData.behavior;
  24394. if (behavior) {
  24395. if (behavior.code === 99) {
  24396. //初始化
  24397. this.fullDialogVisible = false;
  24398. if(this.$refs.choseWorksDetailDialogRef.show){
  24399. this.$refs.choseWorksDetailDialogRef.close();
  24400. }
  24401. if(this.$refs.statisticalAnalysisRef.show){
  24402. this.$refs.statisticalAnalysisRef.close();
  24403. }
  24404. } else if (behavior.code === 0) {
  24405. //开启内容列表弹窗
  24406. this.checkFileFull1(behavior.form[0], behavior.form[1]);
  24407. } else if (behavior.code === 1) {
  24408. //关于选择题的作业详细的操作
  24409. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  24410. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  24411. this.courseType = behavior.form.courseType;
  24412. this.taskCount = behavior.form.taskCount;
  24413. }
  24414. this.$nextTick(() => {
  24415. if (this.$refs.choseWorksDetailDialogRef.show) {
  24416. //已经打开了
  24417. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType})
  24418. } else {
  24419. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,})
  24420. }
  24421. });
  24422. }else if(behavior.code === 2){
  24423. if(this.$refs.statisticalAnalysisRef.show){
  24424. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  24425. }else{
  24426. this.$refs.statisticalAnalysisRef.open({
  24427. worksStudent: this.worksStudent[behavior.form.toolIndex],
  24428. tType: this.tType,
  24429. toolIndex: behavior.form.toolIndex
  24430. });
  24431. }
  24432. }
  24433. } else {
  24434. }
  24435. }
  24436. },
  24437. updateSplitScreenData(empty = 0) {
  24438. // return
  24439. return new Promise(resolve => {
  24440. if(this.userid!==this.courseDetail.userid){
  24441. if(!this.courseDetail.userid){
  24442. return setTimeout(()=>{
  24443. this.updateSplitScreenData(empty)
  24444. },2000)
  24445. }
  24446. return;
  24447. };
  24448. if (
  24449. this.splitScreenData.uid == this.splitScreenData.myUid &&
  24450. this.splitScreenData.userId == this.userid
  24451. ) {
  24452. this.splitScreenData.loading = true;
  24453. let params = [
  24454. {
  24455. cid: this.id,
  24456. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  24457. }
  24458. ];
  24459. this.ajax
  24460. .post(
  24461. this.$store.state.api + "update_courseSplitScreenData",
  24462. params
  24463. )
  24464. .then(res => {
  24465. this.splitScreenData.loading = false;
  24466. if (res.data == 1) {
  24467. resolve(1);
  24468. console.log("修改分屏数据成功");
  24469. }
  24470. })
  24471. .catch(e => {
  24472. this.splitScreenData.loading = false;
  24473. console.log("修改分屏数据失败", e);
  24474. resoleve(0);
  24475. });
  24476. } else if (empty == 2 && this.tType == 1) {
  24477. console.log("清空清空清空清空")
  24478. let params = [
  24479. {
  24480. cid: this.id,
  24481. nData: ""
  24482. }
  24483. ];
  24484. return this.ajax
  24485. .post(
  24486. this.$store.state.api + "update_courseSplitScreenData",
  24487. params
  24488. )
  24489. .then(_ => resolve(1))
  24490. .catch(_ => resolve(0));
  24491. } else {
  24492. return resolve(0);
  24493. }
  24494. });
  24495. },
  24496. changeSplitScreenBehavior(newValue) {
  24497. if (
  24498. this.splitScreenData.isOpen &&
  24499. this.splitScreenData.uid == this.splitScreenData.myUid
  24500. ) {
  24501. this.splitScreenData.behavior = newValue;
  24502. this.updateSplitScreenData(0);
  24503. }
  24504. },
  24505. studentFreePreview(flag) {
  24506. this.IsLookOpen = flag;
  24507. this.followingMode(flag)
  24508. this.updateLookOpen();
  24509. },
  24510. OpenJobPreview(flag) {
  24511. this.sIsOpen = flag;
  24512. this.updateSLook();
  24513. },
  24514. followingMode(flag) {
  24515. this.IsFollow = flag;
  24516. this.updateFollow();
  24517. }
  24518. },
  24519. directives: {
  24520. // 使用局部注册指令的方式
  24521. resize: {
  24522. // 指令的名称
  24523. bind(el, binding) {
  24524. // el为绑定的元素,binding为绑定给指令的对象
  24525. let width = "",
  24526. height = "";
  24527. function isReize() {
  24528. const style = document.defaultView.getComputedStyle(el);
  24529. if (width !== style.width || height !== style.height) {
  24530. binding.value(); // 关键
  24531. }
  24532. width = style.width;
  24533. height = style.height;
  24534. }
  24535. el.__vueSetInterval__ = setInterval(isReize, 300);
  24536. },
  24537. unbind(el) {
  24538. clearInterval(el.__vueSetInterval__);
  24539. }
  24540. },
  24541. autoHeight: {
  24542. update(el, binding) {
  24543. const { value } = binding;
  24544. if (value && typeof value === "number") {
  24545. el.style.height = `${value}px`;
  24546. } else {
  24547. el.style.height = "auto";
  24548. }
  24549. },
  24550. componentUpdated(el) {
  24551. el.style.height = `${el.scrollHeight + 5}px`;
  24552. }
  24553. }
  24554. },
  24555. beforeDestroy() {
  24556. window.onresize = null;
  24557. clearInterval(this.timer);
  24558. this.timer = null;
  24559. clearInterval(this.opertimer);
  24560. this.opertimer = null;
  24561. this.updateSplitScreenData(1);
  24562. },
  24563. computed: {
  24564. getHeight() {
  24565. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24566. },
  24567. contentConvent() {
  24568. return function(c) {
  24569. return c
  24570. ? c
  24571. .replaceAll(/\r\n/g, "<br/>")
  24572. .replaceAll(/\n/g, "<br/>")
  24573. .replaceAll(/\s/g, " &nbsp")
  24574. : "";
  24575. };
  24576. },
  24577. commentRight() {
  24578. if (
  24579. !this.orgArray.includes(this.org) &&
  24580. !this.oidArray.includes(this.oid)
  24581. ) {
  24582. return "35px";
  24583. }
  24584. return `calc(${this.classRoomHelperWidth} + 5px)`;
  24585. // if(this.$refs["classRoomHelperRef"].type==0){
  24586. // return "100px";
  24587. // }else if(this.$refs["classRoomHelperRef"].type==1){
  24588. // return "502px"
  24589. // }else{
  24590. // return "0px"
  24591. // }
  24592. },
  24593. checkUpload() {
  24594. return function() {
  24595. var studentK = [];
  24596. if (this.plworkFile.length > 0) {
  24597. for (var z = 0; z < this.plworkFile.length; z++) {
  24598. studentK.push(this.plworkFile[z].username);
  24599. }
  24600. studentK = studentK.join(",");
  24601. }
  24602. var a = this.uploadStudentJuri.filter(el => {
  24603. return studentK.indexOf(el.userid) == -1;
  24604. });
  24605. return a;
  24606. };
  24607. },
  24608. getSName() {
  24609. return function(name) {
  24610. var check = name;
  24611. this.uploadStudentJuri.forEach(el => {
  24612. if (el.userid == check) {
  24613. check = el.name ? el.name : el.username;
  24614. }
  24615. });
  24616. return check;
  24617. };
  24618. },
  24619. getImgList() {
  24620. return function(val) {
  24621. let srcList = []; // 定义一个数组用来接收后面的img地址
  24622. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function(
  24623. match,
  24624. capture
  24625. ) {
  24626. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  24627. srcList.push(capture);
  24628. });
  24629. return srcList;
  24630. };
  24631. },
  24632. retrnToolHeight() {
  24633. return function(tool) {
  24634. var _tool = document.querySelectorAll("#" + tool)[0];
  24635. return _tool
  24636. ? document.querySelectorAll("#" + tool)[0].children[0].offsetHeight +
  24637. 30 +
  24638. "px"
  24639. : 0;
  24640. };
  24641. },
  24642. Correct() {
  24643. return function(c) {
  24644. let w = "";
  24645. let a = this.correctWord;
  24646. for (var k = 0; k < a.length; k++) {
  24647. //diffWordsWithSpace
  24648. if (a.length > 1) {
  24649. if (a[k].added == true) {
  24650. w +=
  24651. '<span style="background-color: green;color:#fff">' +
  24652. a[k].value +
  24653. "</span>";
  24654. } else if (a[k].removed == true) {
  24655. w +=
  24656. '<span style="text-decoration: line-through;color:red">' +
  24657. a[k].value +
  24658. "</span>";
  24659. } else {
  24660. w += "<span>" + a[k].value + "</span>";
  24661. }
  24662. } else {
  24663. w = c;
  24664. }
  24665. //diffChars方法
  24666. // if(w == ""){
  24667. // if(a.length > 1){
  24668. // if(a[k].added == true){
  24669. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24670. // }else if(a[k].removed == true){
  24671. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24672. // }
  24673. // }else{
  24674. // w = c
  24675. // }
  24676. // }else{
  24677. // if(k == a.length - 1){
  24678. // if(a[k].added == true){
  24679. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24680. // }else if(a[k].removed == true){
  24681. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24682. // }
  24683. // }else{
  24684. // if(a[k].added == true){
  24685. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24686. // }else if(a[k].removed == true){
  24687. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24688. // }
  24689. // }
  24690. // }
  24691. }
  24692. c = w;
  24693. return c;
  24694. };
  24695. },
  24696. getScoreList() {
  24697. let params = {
  24698. cid: this.id
  24699. };
  24700. this.ajax
  24701. .get(this.$store.state.api + "selectTestCourseByCid", params)
  24702. .then(res => {
  24703. let result = res.data;
  24704. this.scoreList.datalist = result[0];
  24705. this.scoreList.isScoreList = result[1];
  24706. })
  24707. .catch(err => {
  24708. console.error(err);
  24709. });
  24710. }
  24711. },
  24712. mounted() {
  24713. this.updateSplitScreenData(2);
  24714. this.splitScreenData.myUid = uuidv4();
  24715. document.body.addEventListener("click", e => {
  24716. if (this.isUpdateToolDetail1) {
  24717. this.updateToolDetail(this.toolDetailIndex);
  24718. }
  24719. });
  24720. if (this.screenType == 2) {
  24721. window.parent.postMessage({ allScreen: 4 }, "*");
  24722. } else if (this.screenType == 3) {
  24723. window.parent.postMessage({ allScreen: 5 }, "*");
  24724. } else if (this.screenType == 1) {
  24725. window.parent.postMessage({ allScreen: 6 }, "*");
  24726. }
  24727. this.setOperationTime();
  24728. this.selectEva();
  24729. this.getCourseDetail();
  24730. this.selectCount();
  24731. this.getHomeWork();
  24732. this.selectUser();
  24733. this.getAIJ();
  24734. this.contentDialog = true;
  24735. this.setContent2(true);
  24736. if (this.tType == 4) {
  24737. this.pzDialog = true;
  24738. this.selectPz();
  24739. }
  24740. // 获取评分列表
  24741. this.getScoreList();
  24742. document.scrollingElement.scrollTop = 0;
  24743. window.addEventListener("resize", () => {
  24744. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24745. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24746. if (this.showType == 2 || this.showType == 3) {
  24747. document.getElementsByClassName("navBox")[0].style.height =
  24748. a - 40 + 0 + "px";
  24749. } else {
  24750. document.getElementsByClassName("navBox")[0].style.height =
  24751. a - 40 + "px";
  24752. }
  24753. });
  24754. let _this = this;
  24755. setTimeout(() => {
  24756. // _this.vedioTime = [];
  24757. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  24758. // _this.vedioTime[i] = document.getElementsByClassName(
  24759. // "vjs-duration-display"
  24760. // )[i].textContent;
  24761. // }
  24762. }, 1000);
  24763. }
  24764. };
  24765. </script>
  24766. <style scoped>
  24767. @media screen and (max-width: 1280px) {
  24768. /* .courseIndex > div:first-child(2) {
  24769. width: 15% !important;
  24770. } */
  24771. /* .navText {
  24772. width: 120px !important;
  24773. } */
  24774. .evaCss {
  24775. flex-direction: column !important;
  24776. align-items: center !important;
  24777. }
  24778. .elist_input {
  24779. width: 90% !important;
  24780. }
  24781. .dialog_diy1 >>> .el-dialog {
  24782. width: 100% !important;
  24783. }
  24784. .rightWidthCss {
  24785. width: 100% !important;
  24786. }
  24787. .dialog_diy3 >>> .el-dialog {
  24788. width: 100% !important;
  24789. }
  24790. .addToolCss {
  24791. right: 0 !important;
  24792. width: 100% !important;
  24793. min-width: unset !important;
  24794. }
  24795. }
  24796. .evaCssMax {
  24797. flex-direction: column !important;
  24798. align-items: center !important;
  24799. }
  24800. .dialog_diy >>> .el-dialog {
  24801. margin-top: 10vh !important;
  24802. }
  24803. .body_student {
  24804. width: 77%;
  24805. height: 100%;
  24806. position: absolute;
  24807. left: 22%;
  24808. top: 0;
  24809. }
  24810. .student_head {
  24811. width: 100%;
  24812. margin: 20px auto 0;
  24813. padding-bottom: 20px;
  24814. display: flex;
  24815. flex-direction: column;
  24816. flex-wrap: nowrap;
  24817. align-items: flex-start;
  24818. justify-content: flex-start;
  24819. }
  24820. .pb_left {
  24821. width: 20%;
  24822. margin-right: 10px;
  24823. background: rgb(255, 255, 255);
  24824. position: fixed;
  24825. height: calc(100% - 40px);
  24826. border-radius: 20px;
  24827. padding-bottom: 15px;
  24828. box-sizing: border-box;
  24829. }
  24830. .wheel > img,
  24831. .project > img,
  24832. .star > img,
  24833. .evaluate > img,
  24834. .up_photo > img,
  24835. .chapter_add > img,
  24836. .deleteWord > img,
  24837. .question > img,
  24838. .homework > img {
  24839. width: 100%;
  24840. height: 100%;
  24841. }
  24842. .upCover > img {
  24843. width: 131px;
  24844. height: 69px;
  24845. object-fit: cover;
  24846. }
  24847. .upCover {
  24848. width: calc(100% / 3.5);
  24849. position: relative;
  24850. margin: 0 15px 10px 0;
  24851. display: flex;
  24852. flex-direction: column;
  24853. flex-wrap: nowrap;
  24854. justify-content: center;
  24855. align-content: center;
  24856. align-items: center;
  24857. height: fit-content;
  24858. }
  24859. .upCover2 {
  24860. width: 100%;
  24861. position: relative;
  24862. margin: 0 15px 10px 0;
  24863. display: flex;
  24864. flex-direction: column;
  24865. flex-wrap: nowrap;
  24866. justify-content: center;
  24867. align-content: center;
  24868. align-items: center;
  24869. }
  24870. .upCover2 > img {
  24871. width: 100%;
  24872. height: 90px;
  24873. object-fit: contain;
  24874. }
  24875. .chapter_add {
  24876. width: 120px;
  24877. position: relative;
  24878. text-align: center;
  24879. }
  24880. .isAddThings {
  24881. margin-top: 20px;
  24882. position: relative;
  24883. text-align: center;
  24884. background: #f7f8fa;
  24885. height: 90px;
  24886. width: 90px;
  24887. display: flex;
  24888. flex-direction: column;
  24889. justify-content: center;
  24890. }
  24891. .deleteWord {
  24892. width: 22px;
  24893. height: 22px;
  24894. position: absolute;
  24895. right: -5px;
  24896. top: -5px;
  24897. cursor: pointer;
  24898. }
  24899. .box_course {
  24900. /* width: 60%; */
  24901. width: calc(100% - 300px);
  24902. }
  24903. .wheel {
  24904. width: 100%;
  24905. /* height: 100%; */
  24906. height: 650px;
  24907. }
  24908. .right_box {
  24909. display: flex;
  24910. flex-direction: column;
  24911. margin-left: 30px;
  24912. justify-content: space-around;
  24913. }
  24914. .right_box_title {
  24915. font-size: 23px;
  24916. }
  24917. .people {
  24918. display: flex;
  24919. }
  24920. .student_body {
  24921. width: 100%;
  24922. margin: 0 auto;
  24923. margin-top: 10px;
  24924. padding: 0 0 20px;
  24925. }
  24926. .study_top {
  24927. margin-top: 100px;
  24928. width: 100%;
  24929. height: auto;
  24930. padding-bottom: 20px;
  24931. }
  24932. .study_top .checkbox {
  24933. display: flex;
  24934. align-items: center;
  24935. padding: 15px 0 15px 30px;
  24936. flex: 0 0 auto;
  24937. font-weight: bold;
  24938. border-bottom: 1px solid #eee;
  24939. }
  24940. .study_top .check {
  24941. padding-bottom: 5px;
  24942. text-align: center;
  24943. cursor: pointer;
  24944. height: 30px;
  24945. box-sizing: border-box;
  24946. display: flex;
  24947. }
  24948. .study_top .checked {
  24949. border-bottom: 4px solid #3fc6a0;
  24950. padding-bottom: 5px;
  24951. color: #3fc6a0;
  24952. display: flex;
  24953. height: 35px;
  24954. }
  24955. .study_top .checked > div,
  24956. .study_top .check > div {
  24957. margin-right: 5px;
  24958. }
  24959. .videoTop {
  24960. display: flex;
  24961. flex-direction: row;
  24962. justify-content: space-between;
  24963. background: #fff;
  24964. align-items: center;
  24965. width: 95%;
  24966. padding: 20px;
  24967. }
  24968. .filebox {
  24969. display: flex;
  24970. flex-wrap: wrap;
  24971. flex-direction: column;
  24972. padding: 0 0 5px;
  24973. position: relative;
  24974. }
  24975. .filebox:before {
  24976. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  24977. position: absolute;
  24978. top: 20px;
  24979. left: 13px;
  24980. border-left: 2px dotted #cad1dc;
  24981. height: calc(100% - 15px);
  24982. }
  24983. .toolHeng2 > div:last-child::before {
  24984. height: calc(100% - 43px);
  24985. }
  24986. .filebox .tooldetail {
  24987. width: calc(100%);
  24988. margin: 0px 12px;
  24989. padding: 12px;
  24990. line-height: 30px;
  24991. word-break: break-word;
  24992. background: #ffffff;
  24993. border-radius: 8px 8px 8px 8px;
  24994. opacity: 1;
  24995. border: 1px solid #cad1dc;
  24996. overflow: hidden;
  24997. box-sizing: border-box;
  24998. }
  24999. .file {
  25000. display: flex;
  25001. flex-direction: column;
  25002. align-items: center;
  25003. justify-content: center;
  25004. cursor: pointer;
  25005. width: 200px;
  25006. }
  25007. .file div {
  25008. margin-top: 10px;
  25009. width: 150px;
  25010. text-align: center;
  25011. overflow: hidden;
  25012. white-space: nowrap;
  25013. text-overflow: ellipsis;
  25014. }
  25015. .media {
  25016. display: flex;
  25017. flex-direction: column;
  25018. align-items: center;
  25019. justify-content: center;
  25020. margin: 0 20px 20px 0;
  25021. cursor: pointer;
  25022. margin: 12px 0 5px 15px;
  25023. overflow: hidden;
  25024. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25025. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25026. box-sizing: border-box;
  25027. }
  25028. .media img {
  25029. height: 90px;
  25030. width: 160px;
  25031. object-fit: cover;
  25032. }
  25033. .media .title {
  25034. padding: 5px;
  25035. text-align: left;
  25036. width: 100%;
  25037. box-sizing: border-box;
  25038. }
  25039. .media .btn {
  25040. width: 100%;
  25041. height: 35px;
  25042. line-height: 35px;
  25043. color: #fff;
  25044. background: #606060;
  25045. text-align: center;
  25046. overflow: hidden;
  25047. white-space: nowrap;
  25048. text-overflow: ellipsis;
  25049. }
  25050. .detail_content_top {
  25051. width: 100%;
  25052. padding: 25px 0 25px 0;
  25053. }
  25054. .detail_title {
  25055. text-align: center;
  25056. font-size: 24px;
  25057. }
  25058. .detail_time {
  25059. font-size: 13px;
  25060. padding: 15px 0 0 40px;
  25061. }
  25062. .detail_content {
  25063. line-height: 2pc;
  25064. width: 90%;
  25065. margin: 0 auto;
  25066. padding-top: 30px;
  25067. text-indent: 30px;
  25068. overflow: auto;
  25069. height: 200px;
  25070. }
  25071. .score_box >>> .el-rate {
  25072. margin-left: 10px;
  25073. }
  25074. .dialog_change >>> .el-dialog {
  25075. border-radius: 5px;
  25076. }
  25077. .dialog_change >>> .el-dialog__header {
  25078. background: #f2f2f2;
  25079. text-align: center;
  25080. }
  25081. .dialog_change >>> .el-dialog__title {
  25082. line-height: 5px;
  25083. }
  25084. .dialog_change >>> .el-dialog__body {
  25085. background: #fff;
  25086. padding: 10px 20px;
  25087. }
  25088. .score_box {
  25089. display: flex;
  25090. align-items: center;
  25091. margin-bottom: 18px;
  25092. margin-top: 20px;
  25093. }
  25094. .up_photo {
  25095. width: 120px;
  25096. cursor: pointer;
  25097. margin-top: 10px;
  25098. }
  25099. .up_photo2 {
  25100. width: 180px;
  25101. box-sizing: border-box;
  25102. min-width: 180px;
  25103. height: 180px;
  25104. max-height: 180px;
  25105. min-height: 180px;
  25106. cursor: pointer;
  25107. display: flex;
  25108. flex-direction: column;
  25109. align-items: center;
  25110. justify-content: center;
  25111. background: rgb(242, 246, 255);
  25112. /* padding: 25px; */
  25113. margin-bottom: 10px;
  25114. }
  25115. .up_photo2 img {
  25116. width: 50%;
  25117. height: auto;
  25118. }
  25119. .up_photo2 span {
  25120. color: #898989;
  25121. }
  25122. .plworkBox {
  25123. display: flex;
  25124. align-items: center;
  25125. margin-top: 10px;
  25126. flex-wrap: wrap;
  25127. }
  25128. .upload_send {
  25129. margin: 30px auto 30px;
  25130. width: 60%;
  25131. background: #3681fc;
  25132. text-align: center;
  25133. height: 35px;
  25134. line-height: 35px;
  25135. color: #fff;
  25136. border-radius: 5px;
  25137. cursor: pointer;
  25138. }
  25139. .marginT {
  25140. margin-top: 20px;
  25141. }
  25142. .cd_content_steps {
  25143. display: flex;
  25144. width: 90%;
  25145. justify-content: space-around;
  25146. border-top: 1px solid #eeeeee;
  25147. }
  25148. .cd_steps_box {
  25149. display: flex;
  25150. justify-content: center;
  25151. align-items: center;
  25152. flex-direction: column;
  25153. cursor: pointer;
  25154. }
  25155. .first {
  25156. display: flex;
  25157. align-items: center;
  25158. margin: 15px 0 20px 0;
  25159. font-size: 20px;
  25160. }
  25161. .first > div:nth-child(2) {
  25162. font-size: 16px !important;
  25163. padding-left: 10px;
  25164. line-height: 26px;
  25165. box-sizing: border-box;
  25166. }
  25167. .blue_box_one {
  25168. text-align: center;
  25169. color: #fff;
  25170. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  25171. border-radius: 7px;
  25172. margin: 10px;
  25173. cursor: pointer;
  25174. width: 95%;
  25175. height: 45px;
  25176. display: flex;
  25177. flex-direction: row;
  25178. justify-content: flex-start;
  25179. align-items: center;
  25180. }
  25181. .blue_box_one > div:nth-child(1) {
  25182. line-height: 30px;
  25183. margin: 0 5px 0 10px;
  25184. width: 30%;
  25185. min-width: 70px;
  25186. border-radius: 4px;
  25187. }
  25188. .blue_box_one > div:nth-child(2) {
  25189. white-space: nowrap;
  25190. text-overflow: ellipsis;
  25191. overflow: hidden;
  25192. word-break: break-all;
  25193. width: 70%;
  25194. text-align: left;
  25195. margin-right: 10px;
  25196. max-width: calc(100% - 85px);
  25197. }
  25198. .blue_box_one > div:nth-child(2):hover {
  25199. overflow: hidden;
  25200. text-overflow: ellipsis;
  25201. white-space: nowrap;
  25202. cursor: pointer;
  25203. }
  25204. .upFile {
  25205. margin: 0 auto;
  25206. width: 120px;
  25207. background: #3681fc;
  25208. color: #fff;
  25209. height: 30px;
  25210. text-align: center;
  25211. line-height: 30px;
  25212. border-radius: 5px;
  25213. font-size: 14px;
  25214. cursor: pointer;
  25215. }
  25216. .courseTitle {
  25217. width: 85%;
  25218. margin: 10px auto 26px auto;
  25219. display: flex;
  25220. flex-direction: row;
  25221. align-items: center;
  25222. justify-content: space-between;
  25223. text-align: center;
  25224. }
  25225. .courseTitle .ctitle {
  25226. font-size: 20px;
  25227. font-weight: bold;
  25228. color: #0e1e33;
  25229. white-space: nowrap;
  25230. overflow: hidden;
  25231. text-overflow: ellipsis;
  25232. }
  25233. .inviteBox {
  25234. font-size: 14px;
  25235. /* margin-top: 5px; */
  25236. color: #00000099;
  25237. text-align: center;
  25238. }
  25239. .courseTitle >>> .el-tooltip {
  25240. width: 100%;
  25241. white-space: nowrap;
  25242. overflow: hidden;
  25243. text-overflow: ellipsis;
  25244. word-break: break-word;
  25245. }
  25246. .ml {
  25247. margin-left: 20px;
  25248. color: #5b7dba;
  25249. border-left: 3px solid #5b7dba;
  25250. padding-left: 5px;
  25251. font-weight: bold;
  25252. }
  25253. .return {
  25254. width: 2rem;
  25255. height: 2rem;
  25256. cursor: pointer;
  25257. }
  25258. .return > img {
  25259. width: 100%;
  25260. height: 100%;
  25261. }
  25262. .returnBtn {
  25263. width: 86px;
  25264. height: 36px;
  25265. background: #3681fc;
  25266. border-radius: 4px;
  25267. color: #fff;
  25268. text-align: center;
  25269. line-height: 36px;
  25270. margin-right: 20px;
  25271. cursor: pointer;
  25272. font-size: 14px;
  25273. font-weight: 400;
  25274. display: flex;
  25275. flex-direction: row;
  25276. flex-wrap: nowrap;
  25277. align-items: center;
  25278. justify-content: center;
  25279. }
  25280. .reBtnIcon,
  25281. .commentIcon,
  25282. .vedioIcon,
  25283. .vedioIcon1 {
  25284. /* width: 36px; */
  25285. height: 36px;
  25286. border-radius: 4px;
  25287. position: relative;
  25288. /* background: #e0eafb; */
  25289. background: #0061ff;
  25290. cursor: pointer;
  25291. margin-right: 12px;
  25292. display: flex;
  25293. align-items: center;
  25294. padding: 0 10px;
  25295. box-sizing: border-box;
  25296. font-size: 14px;
  25297. color: #fff;
  25298. }
  25299. .reBtnIcon::before,
  25300. .commentIcon::before,
  25301. .vedioIcon::before,
  25302. .vedioIcon1::before {
  25303. content: "";
  25304. display: block;
  25305. background-size: 100% 100%;
  25306. background-repeat: no-repeat;
  25307. width: 20px;
  25308. height: 20px;
  25309. margin-right: 5px;
  25310. /* position: absolute; */
  25311. /* top: 8px;
  25312. left: 8px; */
  25313. }
  25314. .vedioIcon1 {
  25315. background: #f63564;
  25316. }
  25317. .reBtnIcon::before {
  25318. background-image: url("../../assets/icon/newIcons/refresh.png");
  25319. }
  25320. .commentIcon::before {
  25321. background-image: url("../../assets/icon/newIcons/comment.png");
  25322. }
  25323. .vedioIcon::before {
  25324. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25325. }
  25326. .vedioIcon1::before {
  25327. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  25328. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25329. }
  25330. .tool {
  25331. display: flex;
  25332. flex-direction: column;
  25333. flex-wrap: nowrap;
  25334. width: 13%;
  25335. margin: 0 30px;
  25336. align-items: center;
  25337. position: relative;
  25338. padding: 10px 25px;
  25339. cursor: pointer;
  25340. }
  25341. .whiteBIcon {
  25342. width: 150px;
  25343. }
  25344. .whiteBIcon > img {
  25345. width: 100%;
  25346. height: 100%;
  25347. }
  25348. .mask {
  25349. background-color: rgba(0, 0, 0, 0);
  25350. position: fixed;
  25351. top: 0;
  25352. left: 0;
  25353. width: 100%;
  25354. height: 100%;
  25355. z-index: 20000;
  25356. display: flex;
  25357. align-items: center;
  25358. justify-content: center;
  25359. }
  25360. .progressBox {
  25361. width: 500px;
  25362. height: 180px;
  25363. background: #fff;
  25364. border-radius: 10px;
  25365. box-shadow: 0 0 6px 1px #bfbfbf;
  25366. display: flex;
  25367. align-items: center;
  25368. justify-content: center;
  25369. flex-direction: column;
  25370. position: relative;
  25371. color: #6c6c6c;
  25372. }
  25373. .progressBox >>> .el-progress-bar__outer {
  25374. background-color: #d1dfff !important;
  25375. }
  25376. .progressBox .lbox {
  25377. height: 50px;
  25378. font-size: 19px;
  25379. display: flex;
  25380. align-items: center;
  25381. color: #747474;
  25382. }
  25383. .progressBox .lbox img {
  25384. width: 40px;
  25385. margin-right: 20px;
  25386. }
  25387. .closeCss {
  25388. position: absolute;
  25389. top: 8px;
  25390. right: 8px;
  25391. cursor: pointer;
  25392. width: 20px;
  25393. height: 20px;
  25394. }
  25395. .closeCss > img {
  25396. width: 100%;
  25397. height: 100%;
  25398. }
  25399. .uploadVedio {
  25400. display: flex;
  25401. flex-direction: column;
  25402. flex-wrap: nowrap;
  25403. justify-content: center;
  25404. align-items: center;
  25405. margin: 0 15px 10px 0;
  25406. }
  25407. .uploadVedio > img {
  25408. width: 30px;
  25409. height: 30px;
  25410. }
  25411. .uploadVedio > span {
  25412. white-space: nowrap;
  25413. overflow: hidden;
  25414. text-overflow: ellipsis;
  25415. width: 75px;
  25416. margin-top: 7px;
  25417. }
  25418. .picName {
  25419. white-space: nowrap;
  25420. overflow: hidden;
  25421. text-overflow: ellipsis;
  25422. width: 75px;
  25423. margin-top: 7px;
  25424. }
  25425. .new_top {
  25426. display: flex;
  25427. background: #fff;
  25428. flex-direction: row;
  25429. justify-content: flex-start;
  25430. align-items: center;
  25431. height: 60px;
  25432. position: fixed;
  25433. top: 20px;
  25434. left: 22%;
  25435. width: 77%;
  25436. z-index: 999;
  25437. border-radius: 12px 12px 0 0;
  25438. border-bottom: 1px solid #cad1dc;
  25439. padding: 10px 0;
  25440. }
  25441. .new_topFixed {
  25442. width: 100%;
  25443. height: 40px;
  25444. position: fixed;
  25445. top: 0px;
  25446. display: block;
  25447. background: #f2f2f2;
  25448. z-index: 998;
  25449. }
  25450. .before {
  25451. position: absolute;
  25452. background: #c3dad4;
  25453. width: 6px;
  25454. height: 100%;
  25455. }
  25456. .courseIndex {
  25457. display: flex;
  25458. flex-direction: row;
  25459. align-items: center;
  25460. width: calc(100% - 745px);
  25461. }
  25462. .courseIndex > div:nth-child(1) {
  25463. margin: 0 0 0 10px;
  25464. font-size: 20px;
  25465. min-width: 100px;
  25466. font-weight: bold;
  25467. border-left: 4px solid #3363b9;
  25468. height: 32px;
  25469. text-align: center;
  25470. line-height: 35px;
  25471. }
  25472. .courseIndex > div:nth-child(2) {
  25473. font-size: 20px;
  25474. /* width: 300px; */
  25475. max-width: calc(100% - 105px);
  25476. white-space: nowrap;
  25477. overflow: hidden;
  25478. text-overflow: ellipsis;
  25479. }
  25480. .courseIndex > div:nth-child(3) {
  25481. border-bottom: 1px solid #d7d7d7;
  25482. padding-bottom: 5px;
  25483. background: #3681fc;
  25484. width: 55px;
  25485. min-width: 55px;
  25486. border-radius: 5px;
  25487. color: #fff;
  25488. text-align: center;
  25489. height: 20px;
  25490. line-height: 26px;
  25491. font-size: 14px;
  25492. margin: 0 0 0 10px;
  25493. }
  25494. .course_text {
  25495. padding: 20px 0 0 15px;
  25496. text-indent: 30px;
  25497. width: 80%;
  25498. min-height: 20px;
  25499. }
  25500. .vedioList {
  25501. background: #f2f2f2;
  25502. border: 1px solid #ececec;
  25503. /* width: 38.8%; */
  25504. /* width: 300px; */
  25505. width: 100%;
  25506. height: 445px;
  25507. border-radius: 10px;
  25508. overflow: hidden;
  25509. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  25510. }
  25511. .vedioNav {
  25512. margin: 10px 0 0 15px;
  25513. border-bottom: 1px solid #d7d7d7;
  25514. padding-bottom: 5px;
  25515. background: #3681fc;
  25516. width: 55px;
  25517. min-width: 55px;
  25518. border-radius: 5px;
  25519. color: #fff;
  25520. text-align: center;
  25521. height: 20px;
  25522. line-height: 26px;
  25523. font-size: 14px;
  25524. }
  25525. .queTop {
  25526. display: flex;
  25527. padding: 20px 0 20px 30px;
  25528. width: 100%;
  25529. flex-direction: row;
  25530. justify-content: flex-start;
  25531. align-items: center;
  25532. box-sizing: border-box;
  25533. }
  25534. .queTopTitle {
  25535. display: flex;
  25536. flex-direction: row;
  25537. flex-wrap: nowrap;
  25538. align-items: center;
  25539. font-weight: bold;
  25540. font-size: 20px;
  25541. color: rgb(14, 30, 51);
  25542. }
  25543. .queTopTitle::before {
  25544. content: "";
  25545. width: 2px;
  25546. height: 22px;
  25547. background: #3681fc;
  25548. border-radius: 3px;
  25549. display: block;
  25550. margin: 2px 6px 0 0;
  25551. }
  25552. .queTopRight {
  25553. display: flex;
  25554. flex-direction: row;
  25555. flex-wrap: nowrap;
  25556. align-items: center;
  25557. }
  25558. .queTopClose {
  25559. margin-right: 20px;
  25560. cursor: pointer;
  25561. position: relative;
  25562. display: flex;
  25563. }
  25564. .closeImg,
  25565. .openImg {
  25566. width: 25px;
  25567. height: 25px;
  25568. position: absolute;
  25569. left: -20px;
  25570. top: -1px;
  25571. }
  25572. .closeImg > img,
  25573. .openImg > img {
  25574. width: 100%;
  25575. height: 100%;
  25576. }
  25577. .question {
  25578. width: 40px;
  25579. margin-right: 10px;
  25580. margin-top: 7px;
  25581. }
  25582. .queTitle {
  25583. margin-left: 5px;
  25584. font-size: 25px;
  25585. display: flex;
  25586. align-items: center;
  25587. }
  25588. .addEditor {
  25589. width: 100px;
  25590. height: 30px;
  25591. background: #42cda6;
  25592. color: #fff;
  25593. border-radius: 5px;
  25594. text-align: center;
  25595. line-height: 30px;
  25596. box-shadow: 1px 3px 6px 1px #bfbfbf;
  25597. cursor: pointer;
  25598. }
  25599. /* .vedioName {
  25600. cursor: pointer;
  25601. margin: 0px 0px 10px 5px;
  25602. white-space: nowrap;
  25603. overflow: hidden;
  25604. text-overflow: ellipsis;
  25605. width: 100%;
  25606. } */
  25607. .vedioTime {
  25608. width: 35px;
  25609. position: absolute;
  25610. color: #fff;
  25611. bottom: 0px;
  25612. right: 0px;
  25613. text-align: center;
  25614. background: #46411f;
  25615. height: 20px;
  25616. font-size: 14px;
  25617. line-height: 20px;
  25618. }
  25619. .homework {
  25620. width: 200px;
  25621. display: flex;
  25622. flex-direction: column;
  25623. flex-wrap: nowrap;
  25624. align-items: center;
  25625. cursor: pointer;
  25626. }
  25627. .homebox {
  25628. display: flex;
  25629. flex-wrap: wrap;
  25630. flex-direction: row;
  25631. justify-content: flex-start;
  25632. align-items: center;
  25633. padding: 15px 0;
  25634. }
  25635. .isChooseActive {
  25636. color: #3681fc !important;
  25637. font-weight: bold !important;
  25638. }
  25639. .chooseWho {
  25640. display: flex;
  25641. width: 100%;
  25642. flex-direction: row;
  25643. flex-wrap: nowrap;
  25644. justify-content: flex-start;
  25645. padding-bottom: 10px;
  25646. }
  25647. .chooseWho > div {
  25648. cursor: pointer;
  25649. padding-bottom: 10px;
  25650. margin: 0 30px 0 0;
  25651. font-weight: 400;
  25652. color: #0e1e33;
  25653. }
  25654. .addPoint > div > img {
  25655. cursor: pointer;
  25656. width: 85px;
  25657. border-radius: 15px;
  25658. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  25659. }
  25660. .addPoint > div {
  25661. display: flex;
  25662. flex-direction: column;
  25663. flex-wrap: nowrap;
  25664. align-items: center;
  25665. }
  25666. .isBorder > div {
  25667. margin: 0 0 10px 0;
  25668. align-items: flex-start !important;
  25669. }
  25670. .noiframeBox {
  25671. display: flex;
  25672. flex-wrap: wrap;
  25673. }
  25674. .iframeBox iframe {
  25675. width: 100%;
  25676. height: 800px;
  25677. border: none;
  25678. margin-bottom: 20px;
  25679. border: 1px solid #ccc;
  25680. }
  25681. .upload_toolBtn {
  25682. background: #3681fc;
  25683. color: #fff;
  25684. width: 110px;
  25685. text-align: center;
  25686. height: 35px;
  25687. line-height: 35px;
  25688. font-size: 14px;
  25689. border-radius: 5px;
  25690. cursor: pointer;
  25691. position: absolute;
  25692. right: 10px;
  25693. bottom: 0;
  25694. }
  25695. .binfo_input,
  25696. .pj {
  25697. font: inherit;
  25698. color: currentColor;
  25699. width: 100%;
  25700. margin: 0;
  25701. padding: 15px 14px;
  25702. display: block;
  25703. min-width: 0;
  25704. outline: none;
  25705. box-sizing: content-box;
  25706. background: none;
  25707. -webkit-tap-highlight-color: transparent;
  25708. border: 1px solid rgba(0, 0, 0, 0.23);
  25709. border-radius: 4px;
  25710. box-sizing: border-box;
  25711. resize: none;
  25712. }
  25713. .binfo_input:focus-visible {
  25714. border: 1px solid rgba(61, 103, 188);
  25715. }
  25716. .dialog_diy >>> .el-dialog__header,
  25717. .dialog_diy1 >>> .el-dialog__header {
  25718. background: #454545 !important;
  25719. padding: 15px 20px;
  25720. }
  25721. .dialog_diy >>> .el-dialog__title,
  25722. .dialog_diy1 >>> .el-dialog__title {
  25723. color: #fff;
  25724. }
  25725. .dialog_diy >>> .el-dialog__headerbtn,
  25726. .dialog_diy1 >>> .el-dialog__headerbtn {
  25727. top: 19px;
  25728. }
  25729. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  25730. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  25731. color: #fff;
  25732. }
  25733. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  25734. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  25735. color: #fff;
  25736. }
  25737. .dialog_diy1 >>> .el-dialog__body {
  25738. padding: 0;
  25739. }
  25740. .dialog_diy >>> .el-dialog__body,
  25741. .dialog_diy >>> .el-dialog__footer,
  25742. .dialog_diy1 >>> .el-dialog__footer {
  25743. background: #fafafa;
  25744. }
  25745. .markScore_diy >>> .el-dialog {
  25746. border-radius: 10px;
  25747. }
  25748. .markScore_diy >>> .el-dialog__body {
  25749. padding: 0;
  25750. height: 621px;
  25751. min-height: calc(100% - 60px);
  25752. }
  25753. .markScore_diy >>> .el-dialog__header {
  25754. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  25755. }
  25756. .markScore_diy >>> .markScore_diyTit {
  25757. width: calc(100% - 60px);
  25758. display: flex;
  25759. justify-content: space-between;
  25760. align-items: center;
  25761. }
  25762. .a_addBox {
  25763. padding: 0 0 0 15px;
  25764. }
  25765. .a_add_box {
  25766. padding: 10px;
  25767. background: #fff;
  25768. margin-bottom: 10px;
  25769. border-radius: 5px;
  25770. box-shadow: 0 0 5px 0 #d5d5d5;
  25771. }
  25772. .a_add_head {
  25773. display: flex;
  25774. align-items: flex-start;
  25775. /* justify-content: space-between; */
  25776. flex-direction: column;
  25777. /* flex-direction: row; */
  25778. margin: 10px 0 20px 0;
  25779. font-size: 18px;
  25780. width: 100%;
  25781. }
  25782. .askIndex {
  25783. background: #3681fc;
  25784. border-radius: 50%;
  25785. color: #fff;
  25786. width: 25px;
  25787. height: 25px;
  25788. min-width: 25px;
  25789. min-height: 25px;
  25790. text-align: center;
  25791. line-height: 25px;
  25792. margin-right: 5px;
  25793. }
  25794. .a_add_head .a_add_head_input {
  25795. width: 300px;
  25796. }
  25797. .a_add_head .a_add_head_div {
  25798. display: flex;
  25799. align-items: center;
  25800. justify-content: space-between;
  25801. }
  25802. .a_add_body {
  25803. display: flex;
  25804. align-items: center;
  25805. }
  25806. .a_add_input {
  25807. display: flex;
  25808. align-items: center;
  25809. flex-wrap: wrap;
  25810. width: 100%;
  25811. }
  25812. .a_add_input >>> .el-radio-group,
  25813. .a_add_input >>> .el-checkbox-group {
  25814. width: 100%;
  25815. }
  25816. .a_add_input >>> .el-radio,
  25817. .a_add_input >>> .el-checkbox {
  25818. display: flex;
  25819. flex-direction: row;
  25820. flex-wrap: nowrap;
  25821. align-items: center;
  25822. padding: 15px 0;
  25823. }
  25824. .a_add_input >>> .el-radio:not(:last-child),
  25825. .a_add_input >>> .el-checkbox:not(:last-child) {
  25826. width: 100%;
  25827. border-bottom: 1px solid #efefef;
  25828. }
  25829. .redioStyle >>> .el-radio__label {
  25830. font-size: 18px;
  25831. }
  25832. .redioStyle >>> .el-radio__label > span,
  25833. .redioStyle >>> .el-checkbox__label > span {
  25834. word-break: break-all;
  25835. white-space: normal;
  25836. }
  25837. .redioStyle >>> .el-checkbox__label {
  25838. font-size: 18px;
  25839. }
  25840. .toolHeng2 {
  25841. width: 100%;
  25842. padding-left: 15px;
  25843. box-sizing: border-box;
  25844. }
  25845. .workNav {
  25846. font-size: 20px;
  25847. font-weight: bold;
  25848. color: #0e1e33;
  25849. display: flex;
  25850. flex-direction: row;
  25851. flex-wrap: nowrap;
  25852. align-items: center;
  25853. padding: 15px 0 15px 0;
  25854. }
  25855. .workNav::before {
  25856. content: "";
  25857. width: 2px;
  25858. height: 22px;
  25859. background: #3681fc;
  25860. border-radius: 3px;
  25861. display: block;
  25862. margin: 2px 6px 0 0;
  25863. }
  25864. .toolHeng {
  25865. display: flex;
  25866. flex-direction: row;
  25867. flex-wrap: wrap;
  25868. justify-content: flex-start;
  25869. align-items: center;
  25870. width: 100%;
  25871. }
  25872. .toolHeng > div {
  25873. padding-left: 20px;
  25874. }
  25875. .isWidth {
  25876. width: 20%;
  25877. }
  25878. .textTitle {
  25879. display: flex;
  25880. flex-direction: row;
  25881. flex-wrap: nowrap;
  25882. align-items: center;
  25883. width: 95%;
  25884. }
  25885. .textTitle >>> .el-form-item__label {
  25886. font-size: 22px;
  25887. color: #918f8f;
  25888. width: 100px;
  25889. }
  25890. .textTitle >>> .el-form-item__content {
  25891. width: calc(100% - 100px);
  25892. }
  25893. .textCss >>> .el-dialog {
  25894. width: 800px !important;
  25895. height: 400px;
  25896. background: #fafafa;
  25897. }
  25898. .textCss >>> .el-dialog__body {
  25899. margin: 55px 8% 0 8%;
  25900. padding: 0 !important;
  25901. }
  25902. .textCss >>> .el-dialog__footer {
  25903. padding-top: 38px;
  25904. }
  25905. .toolsCss >>> .el-dialog__body {
  25906. padding: 20px;
  25907. }
  25908. .lineCss >>> .el-dialog__body {
  25909. display: flex;
  25910. flex-direction: row;
  25911. align-items: center;
  25912. justify-content: center;
  25913. }
  25914. .newNav {
  25915. display: flex;
  25916. flex-direction: row;
  25917. align-items: baseline;
  25918. justify-content: flex-start;
  25919. }
  25920. .navListItem {
  25921. width: calc(100% - 20px);
  25922. height: 50px;
  25923. margin: 0px auto 10px;
  25924. display: flex;
  25925. flex-direction: row;
  25926. flex-wrap: nowrap;
  25927. align-items: center;
  25928. justify-content: space-between;
  25929. background: #f0f4fa;
  25930. border-radius: 6px 6px 6px 6px;
  25931. }
  25932. .navText {
  25933. cursor: pointer;
  25934. white-space: nowrap;
  25935. overflow: hidden;
  25936. text-overflow: ellipsis;
  25937. width: 220px;
  25938. padding: 0 10px;
  25939. font-weight: 400;
  25940. color: #0e1e33;
  25941. }
  25942. .downIcon {
  25943. width: 20px;
  25944. min-width: 20px;
  25945. height: 20px;
  25946. margin-right: 15px;
  25947. cursor: pointer;
  25948. }
  25949. .downIcon > img {
  25950. width: 100%;
  25951. height: 100%;
  25952. }
  25953. .noVedio {
  25954. display: flex;
  25955. flex-direction: row;
  25956. justify-content: center;
  25957. align-content: center;
  25958. }
  25959. .noNavText {
  25960. cursor: pointer;
  25961. margin: 0px 0px 10px 5px;
  25962. width: 112px;
  25963. }
  25964. .listNoVedio {
  25965. margin: 0 0 0 30px;
  25966. width: 97%;
  25967. }
  25968. .video-player >>> .video-js {
  25969. height: 100%;
  25970. }
  25971. .hangVedioList {
  25972. width: 90% !important;
  25973. height: 150px !important;
  25974. margin: 20px 0 0 30px;
  25975. }
  25976. .hangVedio {
  25977. width: 100%;
  25978. height: 170px !important;
  25979. align-items: flex-start !important;
  25980. }
  25981. .hangHand {
  25982. height: 150px !important;
  25983. }
  25984. .twoChild {
  25985. width: 95%;
  25986. margin: 10px;
  25987. border-radius: 5px;
  25988. background: #f2f2f2;
  25989. display: flex;
  25990. flex-direction: column;
  25991. flex-wrap: nowrap;
  25992. justify-content: flex-start;
  25993. align-items: flex-start;
  25994. transition: all 0.5s;
  25995. overflow: hidden;
  25996. height: 0;
  25997. background: #e7f3ff;
  25998. }
  25999. .twoChild > div:nth-child(1) {
  26000. margin-top: 5px;
  26001. }
  26002. .navChild {
  26003. width: 100%;
  26004. cursor: pointer;
  26005. margin-bottom: 10px;
  26006. position: relative;
  26007. }
  26008. .navChild img {
  26009. position: absolute;
  26010. right: 11px;
  26011. width: 15px;
  26012. top: 50%;
  26013. transform: translateY(-50%);
  26014. }
  26015. .navActive,
  26016. .toolActive {
  26017. height: auto !important;
  26018. overflow: auto !important;
  26019. /* // padding-bottom: 16px; */
  26020. }
  26021. .toolActive {
  26022. padding: 0;
  26023. }
  26024. .navTask {
  26025. display: flex;
  26026. flex-direction: row;
  26027. flex-wrap: nowrap;
  26028. align-items: center;
  26029. align-content: flex-start;
  26030. height: 40px;
  26031. justify-content: flex-start;
  26032. padding: 0 10px;
  26033. width: 100%;
  26034. box-sizing: border-box;
  26035. }
  26036. .navTaskname {
  26037. white-space: nowrap;
  26038. text-overflow: ellipsis;
  26039. overflow: hidden;
  26040. word-break: break-all;
  26041. padding-left: 5px;
  26042. }
  26043. .openTaskActive {
  26044. /* background-color: #e0eafb !important;
  26045. color: #0061ff; */
  26046. color: #fff;
  26047. background: rgb(55, 129, 252) !important;
  26048. }
  26049. .iframeName {
  26050. margin: 5px 0;
  26051. border-left: 4px solid #41c4a4;
  26052. padding-left: 4px;
  26053. }
  26054. .toolTitle {
  26055. margin: 0px 0px 20px;
  26056. font-size: 20px;
  26057. font-weight: 500;
  26058. border-left: 4px solid #41c4a4;
  26059. padding-left: 4px;
  26060. }
  26061. .cru_selectBox {
  26062. overflow: auto;
  26063. width: 95%;
  26064. margin: 17px auto 0;
  26065. height: calc(100% - 40px - 21px - 20px - 17px);
  26066. background: #fff;
  26067. border-radius: 8px;
  26068. }
  26069. .cru_selectBox::-webkit-scrollbar,
  26070. .study_top::-webkit-scrollbar,
  26071. .textContent::-webkit-scrollbar {
  26072. /*滚动条整体样式*/
  26073. width: 6px;
  26074. /*高宽分别对应横竖滚动条的尺寸*/
  26075. height: 6px;
  26076. }
  26077. /*定义滚动条轨道 内阴影+圆角*/
  26078. .cru_selectBox::-webkit-scrollbar-track,
  26079. .study_top::-webkit-scrollbar-track,
  26080. .textContent::-webkit-scrollbar {
  26081. border-radius: 10px;
  26082. background-color: #b8bdc9;
  26083. }
  26084. /*定义滑块 内阴影+圆角*/
  26085. .cru_selectBox::-webkit-scrollbar-thumb,
  26086. .study_top::-webkit-scrollbar-thumb,
  26087. .textContent::-webkit-scrollbar-thumb {
  26088. border-radius: 10px;
  26089. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26090. background-color: #2c5ab3;
  26091. }
  26092. .vedioBox {
  26093. border-radius: 0 0 20px 20px;
  26094. background: #fff;
  26095. overflow: auto;
  26096. }
  26097. .taskBox {
  26098. width: 98%;
  26099. background: #f0f4fa;
  26100. margin: 10px auto;
  26101. padding: 0 10px;
  26102. border-radius: 4px;
  26103. box-sizing: border-box;
  26104. }
  26105. .vedioTaskBox {
  26106. width: 100%;
  26107. display: flex;
  26108. flex-direction: row;
  26109. flex-wrap: nowrap;
  26110. align-items: flex-start;
  26111. position: relative;
  26112. }
  26113. .toolBox {
  26114. margin: 15px 0 0 25px;
  26115. display: flex;
  26116. position: relative;
  26117. padding: 18px 20px;
  26118. border-top-left-radius: 5px;
  26119. border-top-right-radius: 5px;
  26120. width: 90%;
  26121. }
  26122. .btnAll {
  26123. position: absolute;
  26124. right: 0;
  26125. display: flex;
  26126. flex-direction: row;
  26127. flex-wrap: nowrap;
  26128. align-items: center;
  26129. }
  26130. .btnLeft,
  26131. .btnRight {
  26132. display: flex;
  26133. flex-direction: row;
  26134. flex-wrap: nowrap;
  26135. align-items: center;
  26136. padding: 5px 0;
  26137. }
  26138. .btnLeft {
  26139. border-right: 1px solid #cad1dc;
  26140. }
  26141. .btnLeft > .custom-tooltip {
  26142. background: #3681fc;
  26143. color: #fff;
  26144. }
  26145. .last:hover {
  26146. background: #3383fa !important;
  26147. color: #fff;
  26148. border: 1px solid #3383fa !important;
  26149. }
  26150. .last,
  26151. .returnBtn1 {
  26152. width: 90px;
  26153. height: 36px;
  26154. background: #ffffff;
  26155. border-radius: 4px;
  26156. border: 1px solid #0061ff;
  26157. color: #0061ff;
  26158. cursor: pointer;
  26159. display: flex;
  26160. flex-direction: row;
  26161. flex-wrap: nowrap;
  26162. align-items: center;
  26163. justify-content: center;
  26164. margin-left: 12px;
  26165. }
  26166. .returnBtn1 {
  26167. background: #f0f4fa;
  26168. border-radius: 4px;
  26169. border: 1px solid #cad1dc;
  26170. margin: 0 12px;
  26171. }
  26172. .lastImg {
  26173. min-width: 15px;
  26174. width: 15px;
  26175. height: 15px;
  26176. display: flex;
  26177. }
  26178. .lastText {
  26179. padding: 0 5px 0 5px;
  26180. box-sizing: border-box;
  26181. font-size: 14px;
  26182. }
  26183. .lastImg > img {
  26184. width: 100%;
  26185. height: 100%;
  26186. }
  26187. /* .vedioTimeBox {
  26188. display: flex;
  26189. flex-direction: row;
  26190. align-items: center;
  26191. flex-wrap: nowrap;
  26192. position: relative;
  26193. } */
  26194. .navBox {
  26195. background: #fff;
  26196. height: calc(100% - 40px);
  26197. overflow-y: auto;
  26198. overflow-x: hidden;
  26199. }
  26200. .worksBox {
  26201. margin: 0 0 10px 25px;
  26202. border-bottom: 1px solid #eeeeee;
  26203. padding: 18px 20px;
  26204. border-radius: 4px;
  26205. width: 90%;
  26206. }
  26207. .worksBTitle {
  26208. font-size: 20px;
  26209. padding-bottom: 15px;
  26210. border-bottom: 1px solid #eeeeee;
  26211. display: flex;
  26212. align-items: center;
  26213. }
  26214. .greenBox {
  26215. width: 5px;
  26216. height: 30px;
  26217. background: #63b6fa;
  26218. margin-right: 5px;
  26219. }
  26220. .worksDetailBox {
  26221. display: flex;
  26222. width: 100%;
  26223. flex-direction: row;
  26224. flex-wrap: wrap;
  26225. align-items: flex-end;
  26226. justify-content: flex-start;
  26227. padding: 15px 5px;
  26228. box-sizing: border-box;
  26229. }
  26230. .works {
  26231. display: flex;
  26232. flex-direction: column;
  26233. flex-wrap: nowrap;
  26234. align-items: flex-start;
  26235. justify-content: flex-start;
  26236. align-content: center;
  26237. max-width: 240px;
  26238. width: calc(100% / 3 - 10px);
  26239. height: auto;
  26240. margin-right: 10px;
  26241. margin-bottom: 10px;
  26242. overflow: hidden;
  26243. height: 140px;
  26244. box-shadow: 0 0 6px 1px #dfdada;
  26245. border-radius: 15px;
  26246. }
  26247. .workImg {
  26248. width: 100%;
  26249. /* height: calc(100% - 40px); */
  26250. height: 105px;
  26251. position: relative;
  26252. }
  26253. .workImg > img {
  26254. width: 100%;
  26255. height: 100%;
  26256. object-fit: contain;
  26257. cursor: pointer;
  26258. }
  26259. .worksName {
  26260. height: 40px;
  26261. line-height: 40px;
  26262. display: flex;
  26263. width: 100%;
  26264. flex-direction: row;
  26265. flex-wrap: nowrap;
  26266. justify-content: space-between;
  26267. align-items: center;
  26268. margin: 0 0 0 10px;
  26269. }
  26270. .worksName > div:nth-child(1) {
  26271. width: 110px;
  26272. white-space: nowrap;
  26273. overflow: hidden;
  26274. text-overflow: ellipsis;
  26275. }
  26276. .worksName > div:nth-child(2) {
  26277. color: #b7b4b5;
  26278. }
  26279. .noWorksS {
  26280. padding: 15px 0;
  26281. display: flex;
  26282. flex-direction: row;
  26283. flex-wrap: wrap;
  26284. align-items: center;
  26285. justify-content: flex-start;
  26286. }
  26287. .noWorksName,
  26288. .isWorksName,
  26289. .isWorksName2 {
  26290. background: #ddebf8;
  26291. color: #000;
  26292. width: 90px;
  26293. height: 25px;
  26294. text-align: center;
  26295. line-height: 25px;
  26296. border-radius: 4px;
  26297. margin: 10px 15px 10px 0;
  26298. white-space: nowrap;
  26299. overflow: hidden;
  26300. padding: 5px;
  26301. text-overflow: ellipsis;
  26302. cursor: pointer;
  26303. border: 1px solid #ddebf8;
  26304. }
  26305. .noWorksName {
  26306. background: #fff;
  26307. color: #0061ff;
  26308. border: 1px solid #0061ff;
  26309. }
  26310. .noWorksName > span {
  26311. max-width: 100%;
  26312. display: block;
  26313. overflow: hidden;
  26314. text-overflow: ellipsis;
  26315. white-space: nowrap;
  26316. }
  26317. .isWorksName2 {
  26318. width: 100px;
  26319. height: 40px;
  26320. line-height: 40px;
  26321. position: relative;
  26322. background: #dae6f9;
  26323. }
  26324. .isWorksName {
  26325. background: #e7ebf1 !important;
  26326. width: 100px;
  26327. height: 40px;
  26328. line-height: 40px;
  26329. position: relative;
  26330. color: #acb4bf;
  26331. border: 1px solid #cad1dc !important;
  26332. }
  26333. .isSelectName,
  26334. .noWorksName:hover {
  26335. background: #3383fa !important;
  26336. color: #fff !important;
  26337. border: 1px solid #3383fa !important;
  26338. }
  26339. .title {
  26340. background: #1e5cc9;
  26341. /* width: 98%; */
  26342. height: 45px;
  26343. color: #fff;
  26344. line-height: 45px;
  26345. padding-left: 20px;
  26346. box-sizing: border-box;
  26347. }
  26348. .textBox {
  26349. font-size: 20px;
  26350. width: 90%;
  26351. display: flex;
  26352. flex-direction: column;
  26353. align-items: center;
  26354. margin: 20px auto 0;
  26355. max-height: calc(100% - 75px);
  26356. overflow: auto;
  26357. }
  26358. .textContent {
  26359. font-size: 18px;
  26360. width: 95%;
  26361. max-width: 95%;
  26362. }
  26363. .answerBg {
  26364. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  26365. background-size: 100% 100%;
  26366. width: 100%;
  26367. height: 100%;
  26368. color: #fff;
  26369. text-align: center;
  26370. display: flex;
  26371. flex-direction: column;
  26372. flex-wrap: nowrap;
  26373. align-items: center;
  26374. position: relative;
  26375. justify-content: center;
  26376. }
  26377. /* .answerBg > div:nth-child(1) { */
  26378. /* font-size: 22px;
  26379. padding: 25px 0 10px; */
  26380. /* } */
  26381. .answerContent {
  26382. width: 215px;
  26383. max-height: 60px;
  26384. word-break: break-all;
  26385. text-align: center;
  26386. /* white-space: nowrap; */
  26387. overflow: hidden;
  26388. text-overflow: ellipsis;
  26389. /* padding: 23px 0 0; */
  26390. -webkit-line-clamp: 3;
  26391. -webkit-box-orient: vertical;
  26392. display: -webkit-box;
  26393. font-size: 15px;
  26394. cursor: pointer;
  26395. }
  26396. .elist_input_box {
  26397. display: flex;
  26398. align-items: flex-start;
  26399. flex-wrap: nowrap;
  26400. padding: 10px 0 15px 30px;
  26401. flex-direction: column;
  26402. }
  26403. .elist_input {
  26404. /* width: 40%; */
  26405. width: 45%;
  26406. padding: 20px;
  26407. /* margin: 20px; */
  26408. box-sizing: border-box;
  26409. }
  26410. .elist_input .elist_input_box input {
  26411. font: inherit;
  26412. color: currentColor;
  26413. width: 200px;
  26414. padding: 8px 14px;
  26415. display: block;
  26416. min-width: 0;
  26417. outline: none;
  26418. border: 1px solid rgba(0, 0, 0, 0.23);
  26419. border-radius: 4px;
  26420. box-sizing: border-box;
  26421. background: #fff;
  26422. margin: 0 20px 0 0;
  26423. }
  26424. .elist_input .elist_input_box span {
  26425. height: 36px;
  26426. line-height: 36px;
  26427. color: rgb(82, 82, 82);
  26428. }
  26429. .elist_input .elist_input_box .remove {
  26430. height: 20px;
  26431. width: 20px;
  26432. background-size: 100% 100%;
  26433. background-position: unset;
  26434. margin-left: 5px;
  26435. }
  26436. .elist_input_box >>> .el-rate {
  26437. display: flex;
  26438. height: 36px;
  26439. align-items: center;
  26440. }
  26441. .elist_input_box .elist_inptu_text {
  26442. min-height: 50px;
  26443. /* width: 500px;
  26444. max-height: 150px; */
  26445. width: 100%;
  26446. line-height: 50px;
  26447. color: rgb(82, 82, 82);
  26448. overflow: auto;
  26449. text-indent: 5px;
  26450. background: #f7f6f9;
  26451. border-radius: 10px;
  26452. }
  26453. .elist_input_box .elist_inptu_text input {
  26454. width: 500px;
  26455. }
  26456. .elist_input_box >>> .el-rate__icon {
  26457. font-size: 24px;
  26458. }
  26459. .isClick {
  26460. background: #4d9def;
  26461. }
  26462. .bzBox {
  26463. display: flex;
  26464. flex-direction: row;
  26465. align-items: center;
  26466. }
  26467. .bzBox .yCss {
  26468. width: 7px;
  26469. height: 7px;
  26470. background: #fff;
  26471. margin: 0 16px 0 6px;
  26472. border-radius: 50%;
  26473. border: 5px solid #3681fc;
  26474. z-index: 99;
  26475. }
  26476. .bzBox > div:nth-child(2) {
  26477. font-size: 18px;
  26478. font-weight: bold;
  26479. color: #0e1e33;
  26480. }
  26481. .navTitile {
  26482. padding: 0 0px 0 15px;
  26483. font-size: 16px;
  26484. font-weight: bold;
  26485. color: #0e1e33;
  26486. height: 40px;
  26487. line-height: 40px;
  26488. }
  26489. .isTypeOne {
  26490. width: 240px;
  26491. height: 170px;
  26492. /* border: 1px solid #f8f8f8; */
  26493. border-radius: 10px;
  26494. box-shadow: 0 0 6px 1px #dfdada;
  26495. }
  26496. .e_add_top {
  26497. display: flex;
  26498. justify-content: space-between;
  26499. padding: 10px 20px;
  26500. border-radius: 3px;
  26501. background: #fff;
  26502. }
  26503. .e_add_title2 {
  26504. display: flex;
  26505. align-items: center;
  26506. }
  26507. .e_add_title2 span {
  26508. width: 40px;
  26509. }
  26510. .e_add_title {
  26511. display: flex;
  26512. align-items: center;
  26513. color: #b8b8b8;
  26514. font-size: 18px;
  26515. position: relative;
  26516. height: 40px;
  26517. }
  26518. .e_add_title span {
  26519. margin-right: 10px;
  26520. }
  26521. .e_add_title .el_input {
  26522. width: 300px;
  26523. }
  26524. .e_add_title >>> .el-input__inner {
  26525. width: 400px;
  26526. }
  26527. .e_add_btn {
  26528. }
  26529. .e_add_content {
  26530. display: flex;
  26531. width: 100%;
  26532. max-width: 650px;
  26533. height: 550px;
  26534. }
  26535. .e_add_list {
  26536. background: #fff;
  26537. height: 500px;
  26538. width: 210px;
  26539. position: relative;
  26540. margin: 15px 5px 0 0;
  26541. flex-shrink: 0;
  26542. display: flex;
  26543. flex-direction: column;
  26544. }
  26545. .e_add_list_title {
  26546. font-size: 20px;
  26547. width: 100%;
  26548. box-sizing: border-box;
  26549. padding: 15px 40px;
  26550. text-align: center;
  26551. border-bottom: 1px solid #eaeaea;
  26552. position: relative;
  26553. display: flex;
  26554. align-items: center;
  26555. justify-content: center;
  26556. height: 57px;
  26557. background: #f6f6f6;
  26558. }
  26559. .e_add_list_title span {
  26560. overflow: hidden;
  26561. white-space: nowrap;
  26562. text-overflow: ellipsis;
  26563. }
  26564. .e_add_list_title img {
  26565. position: absolute;
  26566. right: 15px;
  26567. width: 25px;
  26568. cursor: pointer;
  26569. top: 50%;
  26570. transform: translateY(-50%);
  26571. }
  26572. .e_add_list_body {
  26573. height: calc(100% - 187px);
  26574. overflow: auto;
  26575. }
  26576. .e_add_list_child {
  26577. width: 100%;
  26578. display: flex;
  26579. align-items: center;
  26580. justify-content: center;
  26581. position: relative;
  26582. box-sizing: border-box;
  26583. padding: 15px 40px;
  26584. text-align: center;
  26585. }
  26586. .e_add_list_child span {
  26587. overflow: hidden;
  26588. white-space: nowrap;
  26589. text-overflow: ellipsis;
  26590. cursor: pointer;
  26591. }
  26592. .e_add_list_child img {
  26593. position: absolute;
  26594. right: 10px;
  26595. width: 21px;
  26596. cursor: pointer;
  26597. top: 50%;
  26598. transform: translateY(-50%);
  26599. }
  26600. .e_add_list_child + .e_add_list_child {
  26601. border-top: 1px solid #eaeaea;
  26602. }
  26603. .e_add_list_child .active {
  26604. color: #409eff;
  26605. }
  26606. .e_add_list_btn {
  26607. position: absolute;
  26608. bottom: 0;
  26609. height: 50px;
  26610. background: rgb(120, 120, 254);
  26611. width: 100%;
  26612. color: #fff;
  26613. font-size: 16px;
  26614. text-align: center;
  26615. line-height: 50px;
  26616. cursor: pointer;
  26617. }
  26618. .e_add_list_detail {
  26619. position: absolute;
  26620. bottom: 0;
  26621. height: 130px;
  26622. background: rgb(120, 120, 254);
  26623. width: 100%;
  26624. color: #fff;
  26625. font-size: 16px;
  26626. display: flex;
  26627. align-items: center;
  26628. justify-content: center;
  26629. }
  26630. .e_add_list_detail textarea {
  26631. height: 90%;
  26632. width: 95%;
  26633. border: none;
  26634. resize: none;
  26635. outline: none;
  26636. padding: 5px;
  26637. box-sizing: border-box;
  26638. }
  26639. .e_add_list_pbox {
  26640. width: 100%;
  26641. max-width: 650px;
  26642. /* height: 600px; */
  26643. }
  26644. .e_add_list_pbox_title {
  26645. height: 50px;
  26646. background: #fff;
  26647. display: flex;
  26648. align-items: center;
  26649. width: 100%;
  26650. box-sizing: border-box;
  26651. padding: 0 20px;
  26652. }
  26653. .type_title {
  26654. font-size: 18px;
  26655. font-weight: 700;
  26656. }
  26657. .type_content {
  26658. font-size: 16px;
  26659. /* margin-left: 30px; */
  26660. }
  26661. .type_content span + span {
  26662. margin-left: 20px;
  26663. }
  26664. .type_content span {
  26665. cursor: pointer;
  26666. padding-bottom: 5px;
  26667. box-sizing: border-box;
  26668. }
  26669. .type_content .active {
  26670. color: #409eff;
  26671. border-bottom: 2px solid #409eff;
  26672. }
  26673. .e_add_list_pbox_content {
  26674. height: calc(100% - 50px);
  26675. display: flex;
  26676. align-items: center;
  26677. width: 100%;
  26678. background: #fff;
  26679. }
  26680. .evaCss {
  26681. display: flex;
  26682. flex-direction: row;
  26683. flex-wrap: nowrap;
  26684. align-items: flex-start;
  26685. padding: 0 0 20px;
  26686. }
  26687. .evaCss >>> .cell {
  26688. position: relative;
  26689. overflow: visible;
  26690. }
  26691. .evaCss >>> .el-table__body-wrapper {
  26692. overflow: visible;
  26693. }
  26694. .evaCss >>> .el-table {
  26695. overflow: visible;
  26696. }
  26697. .blueRootCss {
  26698. position: absolute;
  26699. top: 50%;
  26700. left: 0;
  26701. transform: translate(-20px, -50%);
  26702. }
  26703. .cru_line {
  26704. position: absolute;
  26705. bottom: 0px;
  26706. transition: all 0.5s;
  26707. left: 0px;
  26708. width: 125px;
  26709. margin-left: -25px;
  26710. }
  26711. .isNoMessage {
  26712. width: 20%;
  26713. margin: 25% auto 0;
  26714. }
  26715. .isNoMessage > img {
  26716. width: 100%;
  26717. height: 100%;
  26718. }
  26719. .fullStyle >>> .el-dialog__body {
  26720. height: 100% !important;
  26721. }
  26722. .fullStyle >>> .el-dialog,
  26723. .fullStyle {
  26724. width: 100% !important;
  26725. max-width: 100% !important;
  26726. height: 100% !important;
  26727. margin: 0 !important;
  26728. }
  26729. .full_diy >>> .el-dialog {
  26730. margin: 0 !important;
  26731. height: 100%;
  26732. padding: 4px;
  26733. }
  26734. .full_diy >>> .el-dialog__body {
  26735. height: calc(100% - 100px);
  26736. }
  26737. .full_diy2 >>> .el-dialog__body {
  26738. height: calc(100% - 50px);
  26739. padding: 0;
  26740. }
  26741. .switchCss {
  26742. /* width: 100%; */
  26743. display: flex;
  26744. flex-direction: row;
  26745. flex-wrap: nowrap;
  26746. align-items: center;
  26747. /* justify-content: center; */
  26748. }
  26749. .isClickNav {
  26750. /* color: #499eef; */
  26751. color: #000;
  26752. }
  26753. .commentImg {
  26754. width: 25px;
  26755. height: 25px;
  26756. cursor: pointer;
  26757. }
  26758. .commentImg > img {
  26759. width: 100%;
  26760. height: 100%;
  26761. }
  26762. .comment {
  26763. background: #f9f9f9;
  26764. border-radius: 0 0 4px 4px;
  26765. display: flex;
  26766. flex-direction: row;
  26767. flex-wrap: nowrap;
  26768. align-items: center;
  26769. justify-content: flex-end;
  26770. height: 35px;
  26771. }
  26772. .commentList {
  26773. display: flex;
  26774. flex-direction: row;
  26775. flex-wrap: nowrap;
  26776. align-items: center;
  26777. justify-content: center;
  26778. align-content: center;
  26779. /* margin-left: 15px; */
  26780. /* margin-left: 8px; */
  26781. }
  26782. .scoreImg {
  26783. width: 17px;
  26784. height: 17px;
  26785. }
  26786. .studentDetail {
  26787. display: flex;
  26788. flex-direction: row;
  26789. flex-wrap: nowrap;
  26790. /* align-items: center; */
  26791. align-items: flex-start;
  26792. }
  26793. .tx {
  26794. width: 50px;
  26795. }
  26796. .tx > img {
  26797. width: 100%;
  26798. height: 100%;
  26799. }
  26800. .nameAndTime {
  26801. display: flex;
  26802. flex-direction: column;
  26803. flex-wrap: nowrap;
  26804. align-items: flex-start;
  26805. margin-left: 10px;
  26806. }
  26807. .worksAnswer {
  26808. color: #4078dd;
  26809. margin: 10px 0;
  26810. font-size: 16px;
  26811. position: relative;
  26812. }
  26813. .worksAnswer > img {
  26814. width: 500px;
  26815. height: 300px;
  26816. object-fit: contain;
  26817. margin: 0 auto;
  26818. display: block;
  26819. }
  26820. .commentTop {
  26821. border-bottom: 1px solid #eaeaea;
  26822. padding-bottom: 10px;
  26823. }
  26824. .commentBox {
  26825. padding-top: 15px;
  26826. }
  26827. .pl {
  26828. font-size: 18px;
  26829. }
  26830. .plPerson {
  26831. width: 100%;
  26832. }
  26833. .plName {
  26834. display: flex;
  26835. flex-direction: row;
  26836. flex-wrap: nowrap;
  26837. align-items: baseline;
  26838. color: #78787a;
  26839. width: 100%;
  26840. }
  26841. .deleteComment {
  26842. cursor: pointer;
  26843. margin-left: auto;
  26844. color: #237ade;
  26845. }
  26846. .plContent {
  26847. margin-top: 5px;
  26848. }
  26849. .evalCss {
  26850. background: #fff;
  26851. font-size: 18px;
  26852. }
  26853. .nav {
  26854. color: #9d9d9d;
  26855. padding: 5px 0 15px 20px;
  26856. }
  26857. .middleBox {
  26858. padding: 5px 0 15px 20px;
  26859. }
  26860. .pfBox {
  26861. padding-bottom: 30px;
  26862. }
  26863. .nameAndrate {
  26864. display: flex;
  26865. flex-direction: row;
  26866. flex-wrap: nowrap;
  26867. align-items: center;
  26868. padding-bottom: 10px;
  26869. height: 30px;
  26870. line-height: 30px;
  26871. }
  26872. .nameAndrate > div {
  26873. margin-left: 10px;
  26874. color: #000;
  26875. height: 30px;
  26876. }
  26877. .nameAndrate >>> .el-rate__icon {
  26878. font-size: 28px !important;
  26879. }
  26880. .pfBox > div:nth-child(2) {
  26881. background: #f7f6f9;
  26882. width: 400px;
  26883. min-height: 45px;
  26884. border-radius: 10px;
  26885. font-size: 16px;
  26886. display: flex;
  26887. flex-wrap: wrap;
  26888. align-items: center;
  26889. padding: 10px 20px;
  26890. box-sizing: border-box;
  26891. color: #000;
  26892. }
  26893. .bz {
  26894. display: flex;
  26895. flex-direction: row;
  26896. flex-wrap: nowrap;
  26897. align-items: flex-start;
  26898. }
  26899. .bz > div {
  26900. padding: 0 10px;
  26901. }
  26902. .select_box2_title {
  26903. background: #fff;
  26904. border-radius: 5px;
  26905. padding: 15px 10px;
  26906. box-sizing: border-box;
  26907. margin-bottom: 10px;
  26908. display: flex;
  26909. flex-direction: row;
  26910. flex-wrap: nowrap;
  26911. align-items: center;
  26912. }
  26913. .select_box2_title > div:nth-child(2) {
  26914. margin-left: 10px;
  26915. color: #c4c4c4;
  26916. }
  26917. .select_box2_box {
  26918. display: flex;
  26919. height: 500px;
  26920. }
  26921. .select_box2_img {
  26922. width: calc(100% - 310px);
  26923. height: 100%;
  26924. overflow: auto;
  26925. background: #fff;
  26926. border-radius: 5px;
  26927. }
  26928. .select_box2_img img {
  26929. width: 100%;
  26930. }
  26931. .select_box2_answer {
  26932. background: #fff;
  26933. margin-left: 10px;
  26934. border-radius: 5px;
  26935. width: 300px;
  26936. overflow: auto;
  26937. height: 90%;
  26938. display: flex;
  26939. flex-direction: column;
  26940. align-items: flex-start;
  26941. padding-top: 10px;
  26942. box-sizing: border-box;
  26943. position: relative;
  26944. }
  26945. .select_answer_title {
  26946. padding: 0 0 15px 20px;
  26947. color: #c4c4c4;
  26948. }
  26949. .select_box2_answer_box {
  26950. margin: 0 0 10px 20px;
  26951. width: 85%;
  26952. display: flex;
  26953. flex-direction: row;
  26954. flex-wrap: nowrap;
  26955. align-items: center;
  26956. }
  26957. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  26958. color: #000;
  26959. }
  26960. .upAnswerCss {
  26961. position: absolute;
  26962. bottom: 15px;
  26963. right: 15px;
  26964. }
  26965. .upAnswerCss >>> .el-button {
  26966. width: 95px;
  26967. height: 35px;
  26968. line-height: 35px;
  26969. padding: 0;
  26970. }
  26971. .rightWidthCss {
  26972. width: 60%;
  26973. display: flex;
  26974. flex-direction: row;
  26975. align-items: flex-start;
  26976. }
  26977. .rightAnswer {
  26978. display: flex;
  26979. flex-direction: row;
  26980. flex-wrap: nowrap;
  26981. align-items: center;
  26982. color: red;
  26983. margin-bottom: 31px;
  26984. }
  26985. .rightAnswerCss {
  26986. display: flex;
  26987. flex-direction: column;
  26988. flex-wrap: nowrap;
  26989. padding-top: 60px;
  26990. }
  26991. .blueCss {
  26992. color: #767de1;
  26993. margin-left: 10px;
  26994. }
  26995. .redCss {
  26996. color: red;
  26997. }
  26998. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  26999. color: rgb(0 123 255) !important;
  27000. }
  27001. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27002. color: rgb(0 123 255) !important;
  27003. }
  27004. .zuoyeYulan {
  27005. padding-top: 0;
  27006. font-size: 18px;
  27007. display: flex;
  27008. align-items: flex-end;
  27009. }
  27010. .buttonA {
  27011. margin-left: 10px;
  27012. padding: 0;
  27013. }
  27014. .displayBox {
  27015. margin-bottom: 10px;
  27016. display: block;
  27017. border-bottom: 3px solid #eee;
  27018. display: flex;
  27019. align-items: center;
  27020. }
  27021. .easy_comment {
  27022. width: calc(100% - 90px);
  27023. margin-left: 10px;
  27024. display: flex;
  27025. flex-wrap: wrap;
  27026. }
  27027. .easy_comment > div {
  27028. border: 1px solid #4a4a4a;
  27029. color: #666;
  27030. border-radius: 15px;
  27031. padding: 5px 10px;
  27032. font-size: 16px;
  27033. margin-bottom: 10px;
  27034. margin-right: 5px;
  27035. cursor: pointer;
  27036. }
  27037. .easy_comment div:hover {
  27038. border: 1px solid #f7ba2a;
  27039. color: #c69217;
  27040. }
  27041. .xuan_right_box {
  27042. padding: 10px 0;
  27043. background: #f0f4fa;
  27044. margin: 0 15px 0 25px;
  27045. border-bottom-left-radius: 5px;
  27046. border-bottom-right-radius: 5px;
  27047. width: 91.5%;
  27048. }
  27049. .tool_right_box {
  27050. display: flex;
  27051. align-items: center;
  27052. }
  27053. .tool_right_box + .tool_right_box {
  27054. margin-top: 10px;
  27055. }
  27056. .right_box_xuan {
  27057. border-radius: 5px;
  27058. padding: 5px;
  27059. margin-left: 10px;
  27060. min-width: 85px;
  27061. background: #fff;
  27062. color: #0061ff;
  27063. border: 1px solid #0061ff;
  27064. font-size: 14px;
  27065. }
  27066. .pButton:hover {
  27067. opacity: 1 !important;
  27068. }
  27069. .pButton {
  27070. position: fixed;
  27071. text-align: center;
  27072. cursor: pointer;
  27073. z-index: 999;
  27074. right: 20px;
  27075. top: 110px;
  27076. width: 50px;
  27077. height: 50px;
  27078. display: flex;
  27079. align-items: center;
  27080. justify-content: center;
  27081. border-radius: 5px;
  27082. }
  27083. .pzClass {
  27084. width: calc(100% - 340px);
  27085. }
  27086. .newDialogCss {
  27087. /* position: fixed;
  27088. right: 5%;
  27089. top: 50%;
  27090. width: 340px;
  27091. transform: translateY(-50%);
  27092. height: 60%;
  27093. box-shadow: 0px 0 8px 0px #555555;
  27094. border-radius: 15px;
  27095. z-index: 999; */
  27096. position: fixed;
  27097. right: 20px;
  27098. top: 101px;
  27099. width: 330px;
  27100. height: calc(100% - 80px);
  27101. z-index: 999;
  27102. background: #fff;
  27103. border-top-right-radius: 0px;
  27104. border-bottom-right-radius: 0px;
  27105. overflow: hidden;
  27106. }
  27107. .newDialogCss > .scoreList {
  27108. width: 100%;
  27109. height: 100%;
  27110. box-sizing: border-box;
  27111. padding: 10px 15px;
  27112. overflow: auto;
  27113. padding-bottom: 80px;
  27114. }
  27115. .pzTop {
  27116. color: #fff;
  27117. background: #000;
  27118. display: flex;
  27119. flex-direction: row;
  27120. flex-wrap: nowrap;
  27121. align-items: center;
  27122. justify-content: space-between;
  27123. height: 40px;
  27124. border-radius: 15px 15px 0 0;
  27125. user-select: none;
  27126. }
  27127. .pzTop2 .checkbox {
  27128. display: flex;
  27129. align-items: center;
  27130. padding: 5px 10px;
  27131. flex: 0 0 auto;
  27132. font-weight: bold;
  27133. border-bottom: 1px solid #eee;
  27134. justify-content: space-between;
  27135. }
  27136. .checkbox > .cb-tabList {
  27137. display: flex;
  27138. align-items: center;
  27139. }
  27140. .cb-tabList > div {
  27141. margin-right: 20px;
  27142. font-weight: 400;
  27143. cursor: pointer;
  27144. }
  27145. .cb-tabList > .cb-tabItem {
  27146. color: #1684fc;
  27147. position: relative;
  27148. }
  27149. .cb-tabItem::after {
  27150. content: "";
  27151. width: 100%;
  27152. height: 2px;
  27153. background: #1684fc;
  27154. position: absolute;
  27155. bottom: -5px;
  27156. left: 0;
  27157. }
  27158. .pzTop2 .check {
  27159. text-align: center;
  27160. cursor: pointer;
  27161. box-sizing: border-box;
  27162. display: flex;
  27163. }
  27164. .pzTop2 img {
  27165. width: 25px;
  27166. cursor: pointer;
  27167. }
  27168. .pzTop > div:nth-child(1) {
  27169. padding-left: 10px;
  27170. }
  27171. .pzTop > div:nth-child(2) {
  27172. width: 15px;
  27173. height: 15px;
  27174. padding-right: 10px;
  27175. cursor: pointer;
  27176. }
  27177. .pzTop > div:nth-child(2) > img {
  27178. width: 100%;
  27179. height: 100%;
  27180. }
  27181. .pzBox,
  27182. .noPzBox {
  27183. height: calc(100% - 60px);
  27184. /* background: #ededed; */
  27185. background: #fff;
  27186. /* border-radius: 0 0 15px 15px; */
  27187. }
  27188. .noPzBox {
  27189. display: flex;
  27190. flex-direction: column;
  27191. flex-wrap: nowrap;
  27192. justify-content: center;
  27193. align-items: center;
  27194. }
  27195. .pzList {
  27196. background: #f7f7f7;
  27197. width: 90%;
  27198. margin: 0 auto 15px;
  27199. border-radius: 5px;
  27200. }
  27201. .pzNavTop {
  27202. display: flex;
  27203. flex-direction: row;
  27204. flex-wrap: nowrap;
  27205. padding: 10px 10px 0 10px;
  27206. align-items: center;
  27207. }
  27208. .pzDelete {
  27209. cursor: pointer;
  27210. margin-left: auto;
  27211. font-size: 14px;
  27212. color: #afafaf;
  27213. }
  27214. .pzNavTop > div:nth-child(1) {
  27215. background: #3760af;
  27216. width: 35px;
  27217. height: 35px;
  27218. color: #fff;
  27219. text-align: center;
  27220. line-height: 35px;
  27221. border-radius: 50%;
  27222. font-size: 14px;
  27223. }
  27224. .pzNavTop > div:nth-child(2) {
  27225. font-size: 18px;
  27226. color: #959595;
  27227. margin-left: 5px;
  27228. }
  27229. .pzContent {
  27230. padding: 10px;
  27231. word-break: break-word;
  27232. }
  27233. .pzContent audio {
  27234. width: 100%;
  27235. }
  27236. .pzContent audio::-webkit-media-controls-panel {
  27237. background: #fff;
  27238. }
  27239. .pzContent >>> img {
  27240. max-width: 100%;
  27241. }
  27242. .pzListBox {
  27243. padding-top: 15px;
  27244. height: calc(100% - 110px);
  27245. overflow: auto;
  27246. }
  27247. .addPzButton {
  27248. position: relative;
  27249. margin-top: 3px;
  27250. width: 100%;
  27251. }
  27252. .addPzButton .img1 {
  27253. position: absolute;
  27254. top: 50%;
  27255. right: 25px;
  27256. transform: translateY(-50%);
  27257. height: 100%;
  27258. display: flex;
  27259. align-items: center;
  27260. }
  27261. .addPzButton .img1 div {
  27262. display: flex;
  27263. }
  27264. .addPzButton .img1 div img {
  27265. width: 28px;
  27266. margin-left: 10px;
  27267. cursor: pointer;
  27268. }
  27269. .addPzButton .img1 div span {
  27270. font-size: 14px;
  27271. margin: 4px 0 0 3px;
  27272. color: #afafaf;
  27273. }
  27274. .addPz {
  27275. background: #4b79ce;
  27276. width: 100px;
  27277. color: #fff;
  27278. font-size: 12px;
  27279. height: 30px;
  27280. margin: 0 auto;
  27281. text-align: center;
  27282. line-height: 30px;
  27283. border-radius: 10px;
  27284. cursor: pointer;
  27285. }
  27286. .addDialogCss {
  27287. position: fixed;
  27288. width: 600px;
  27289. height: 70%;
  27290. min-height: 450px;
  27291. box-shadow: 0px 0 8px 0px #555555;
  27292. border-radius: 15px;
  27293. z-index: 999;
  27294. left: 50%;
  27295. top: 50%;
  27296. margin: -18% 0 0 -300px;
  27297. }
  27298. .teacherPz {
  27299. display: flex;
  27300. flex-direction: row;
  27301. align-items: center;
  27302. flex-wrap: nowrap;
  27303. }
  27304. .teacherPzImg {
  27305. width: 30px;
  27306. height: 30px;
  27307. }
  27308. .teacherPzImg > img {
  27309. width: 100%;
  27310. height: 100%;
  27311. }
  27312. .addPzBox {
  27313. height: calc(100% - 40px);
  27314. background: #ededed;
  27315. border-bottom-left-radius: 15px;
  27316. border-bottom-right-radius: 15px;
  27317. }
  27318. .pzAudioClass {
  27319. margin: 15px 14px;
  27320. background: #fff;
  27321. height: 100%;
  27322. display: flex;
  27323. justify-content: center;
  27324. align-items: center;
  27325. }
  27326. .pzConText {
  27327. width: 95%;
  27328. height: 100%;
  27329. margin: 10px auto 0;
  27330. border: none;
  27331. background: #fff;
  27332. border-radius: 0px;
  27333. }
  27334. .pzConText >>> .text {
  27335. height: calc(100% - 82px);
  27336. }
  27337. .addTextCss {
  27338. background: #4b79ce;
  27339. width: 80px;
  27340. height: 30px;
  27341. text-align: center;
  27342. color: #fff;
  27343. line-height: 30px;
  27344. border-radius: 10px;
  27345. margin: 10px auto 0;
  27346. cursor: pointer;
  27347. }
  27348. .pzConText:focus-visible {
  27349. border: none !important;
  27350. }
  27351. .maxWidth {
  27352. width: 1000px;
  27353. }
  27354. .noPz {
  27355. width: 150px;
  27356. margin: 0 auto 20%;
  27357. }
  27358. .noPz > img {
  27359. width: 100%;
  27360. height: 100%;
  27361. }
  27362. .timeAndReply {
  27363. display: flex;
  27364. flex-direction: row;
  27365. flex-wrap: nowrap;
  27366. justify-content: space-between;
  27367. align-items: center;
  27368. font-size: 14px;
  27369. box-sizing: border-box;
  27370. padding: 0 10px 10px 0px;
  27371. }
  27372. .timeAndReply .time {
  27373. color: #bfbfbf;
  27374. padding: 0 0 0 10px;
  27375. box-sizing: border-box;
  27376. }
  27377. .timeAndReply > div:last-child {
  27378. cursor: pointer;
  27379. color: #777;
  27380. }
  27381. /* table 样式 */
  27382. .cont >>> table {
  27383. border-top: 1px solid #ccc;
  27384. border-left: 1px solid #ccc;
  27385. }
  27386. .cont >>> table td,
  27387. .cont >>> table th {
  27388. border-bottom: 1px solid #ccc;
  27389. border-right: 1px solid #ccc;
  27390. /* padding: 20px 5px; */
  27391. padding: 5px 10px;
  27392. max-width: 0px;
  27393. height: 30px;
  27394. vertical-align: baseline;
  27395. box-sizing: border-box;
  27396. }
  27397. .cont >>> table th {
  27398. border-bottom: 2px solid #ccc;
  27399. text-align: center;
  27400. }
  27401. /* blockquote 样式 */
  27402. .cont >>> blockquote {
  27403. display: block;
  27404. border-left: 8px solid #d0e5f2;
  27405. padding: 5px 10px;
  27406. margin: 10px 0;
  27407. line-height: 1.4;
  27408. font-size: 100%;
  27409. background-color: #f1f1f1;
  27410. }
  27411. /* code 样式 */
  27412. .cont >>> code {
  27413. display: inline-block;
  27414. /* *display: inline; */
  27415. zoom: 1;
  27416. background-color: #f1f1f1;
  27417. border-radius: 3px;
  27418. padding: 3px 5px;
  27419. margin: 0 3px;
  27420. }
  27421. .cont >>> pre code {
  27422. display: block;
  27423. }
  27424. /* ul ol 样式 */
  27425. .cont >>> ul,
  27426. ol {
  27427. margin: 10px 0 10px 20px;
  27428. }
  27429. .addPzCheck {
  27430. display: flex;
  27431. flex-direction: row;
  27432. flex-wrap: nowrap;
  27433. padding: 10px 15px 0;
  27434. }
  27435. .addPzCheck span {
  27436. cursor: pointer;
  27437. padding-bottom: 5px;
  27438. font-weight: bold;
  27439. }
  27440. .addPzCheck span + span {
  27441. margin-left: 10px;
  27442. }
  27443. .addPzCheck .isChooseActive {
  27444. color: #3e88f4;
  27445. border-bottom: 2px solid #2f80f3;
  27446. }
  27447. /* code 样式 */
  27448. .cont {
  27449. /* -webkit-user-modify: read-write; */
  27450. overflow-wrap: break-word;
  27451. -webkit-line-break: after-white-space;
  27452. word-break: break-word;
  27453. white-space: pre-line;
  27454. }
  27455. .scoreBox,
  27456. .scoreDetailBox {
  27457. display: flex;
  27458. align-items: center;
  27459. justify-content: flex-start;
  27460. margin-top: 20px;
  27461. font-size: 18px;
  27462. width: 100%;
  27463. }
  27464. .scoreBox .t,
  27465. .scoreDetailBox .t {
  27466. margin-right: 10px;
  27467. width: 100px;
  27468. text-align: right;
  27469. }
  27470. .scoreDetailBox {
  27471. align-items: flex-start;
  27472. }
  27473. .scoreDetailBox >>> .el-textarea {
  27474. width: calc(100% - 200px);
  27475. }
  27476. .scoreBox >>> .el-input {
  27477. width: 130px;
  27478. font-size: 38px;
  27479. }
  27480. .scoreBox >>> .el-input__inner {
  27481. height: 60px;
  27482. }
  27483. .answerScore {
  27484. position: absolute;
  27485. top: 10px;
  27486. right: 10px;
  27487. background: #0000008f;
  27488. border-radius: 5px;
  27489. padding: 3px 5px;
  27490. font-size: 14px;
  27491. color: #fff;
  27492. cursor: pointer;
  27493. }
  27494. .open_box .switch_box {
  27495. width: 100%;
  27496. margin: 0 auto;
  27497. display: flex;
  27498. justify-content: space-between;
  27499. }
  27500. .open_box .switch_box + .switch_box {
  27501. margin-top: 10px;
  27502. }
  27503. .deleteImg,
  27504. .deleteImg1 {
  27505. width: 25px !important;
  27506. height: 25px !important;
  27507. cursor: pointer;
  27508. position: absolute;
  27509. top: 10px;
  27510. right: 10px;
  27511. }
  27512. .deleteImg2 {
  27513. width: 23px !important;
  27514. height: 23px !important;
  27515. top: 5px;
  27516. right: 5px;
  27517. }
  27518. .deleteImg1 {
  27519. width: 23px !important;
  27520. height: 23px !important;
  27521. top: 5px !important;
  27522. right: 30px !important;
  27523. }
  27524. .rightW {
  27525. right: 40px;
  27526. }
  27527. .drawPBox {
  27528. display: flex;
  27529. flex-direction: column;
  27530. position: relative;
  27531. }
  27532. .drawPBox span {
  27533. font-size: 18px;
  27534. color: #606266;
  27535. padding-bottom: 10px;
  27536. margin: 10px 0;
  27537. border-bottom: 1px solid #eaeaea;
  27538. }
  27539. .drawPBox img {
  27540. width: 500px;
  27541. height: 300px;
  27542. object-fit: contain;
  27543. cursor: pointer;
  27544. margin: 0 auto;
  27545. }
  27546. .sentenBox {
  27547. background: #fff;
  27548. height: 450px;
  27549. overflow: auto;
  27550. background-image: url("../../assets/icon/conSentences/stuBg.png");
  27551. background-position: 102%;
  27552. background-repeat: no-repeat;
  27553. background-size: 60%;
  27554. }
  27555. .addSen {
  27556. background: #409efe;
  27557. width: 90px;
  27558. color: #fff;
  27559. height: 35px;
  27560. text-align: center;
  27561. line-height: 35px;
  27562. border-radius: 5px;
  27563. float: right;
  27564. margin: 10px 20px 0 0;
  27565. cursor: pointer;
  27566. }
  27567. .sentenTop {
  27568. display: flex;
  27569. flex-direction: row;
  27570. flex-wrap: nowrap;
  27571. align-items: center;
  27572. padding: 55px 0 0 20px;
  27573. box-sizing: border-box;
  27574. }
  27575. .sentenTop > div:nth-child(2) {
  27576. width: 300px;
  27577. margin: 0 15px;
  27578. }
  27579. .sentenTop > div:nth-child(3) {
  27580. background: #409efe;
  27581. color: #fff;
  27582. width: 65px;
  27583. height: 35px;
  27584. text-align: center;
  27585. line-height: 35px;
  27586. border-radius: 5px;
  27587. cursor: pointer;
  27588. }
  27589. .cardList,
  27590. .cardList1 {
  27591. padding: 10px 0 10px 0;
  27592. display: flex;
  27593. flex-direction: row;
  27594. flex-wrap: wrap;
  27595. align-items: center;
  27596. box-sizing: border-box;
  27597. border-bottom: 1px solid #f4f4f4;
  27598. width: 98%;
  27599. margin: 0 auto;
  27600. min-width: 60%;
  27601. max-width: 85%;
  27602. }
  27603. .cardList1 {
  27604. padding: 10px 0 10px 10px !important;
  27605. margin: 0 !important;
  27606. }
  27607. .cardBox {
  27608. display: flex;
  27609. flex-direction: row;
  27610. flex-wrap: wrap;
  27611. align-items: center;
  27612. align-content: center;
  27613. }
  27614. .cardBox > div {
  27615. margin-bottom: 10px;
  27616. }
  27617. .isCard,
  27618. .isChooseCard,
  27619. .noCard,
  27620. .isCard1 {
  27621. min-width: 130px;
  27622. width: auto;
  27623. height: 60px;
  27624. text-align: center;
  27625. line-height: 60px;
  27626. font-size: 20px;
  27627. cursor: pointer;
  27628. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  27629. background-size: cover;
  27630. transition: all 2s;
  27631. margin-right: 20px;
  27632. background-size: 100% 100%;
  27633. padding: 0 20px;
  27634. box-sizing: border-box;
  27635. }
  27636. .isCard > div,
  27637. .noCard > div,
  27638. .isCard1 > div {
  27639. white-space: nowrap;
  27640. overflow: hidden;
  27641. text-overflow: ellipsis;
  27642. width: 100%;
  27643. margin: 0 auto;
  27644. }
  27645. .noCard {
  27646. background-image: none;
  27647. }
  27648. .isCard1 {
  27649. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  27650. }
  27651. .isChooseCard {
  27652. background-image: none;
  27653. border: 1px dashed #b9b9b9;
  27654. border-radius: 10px;
  27655. }
  27656. .card {
  27657. width: 130px;
  27658. height: 60px;
  27659. }
  27660. .card > img {
  27661. width: 100%;
  27662. height: 100%;
  27663. }
  27664. .rightCardBox {
  27665. margin: 10px 0 0 10px;
  27666. }
  27667. .rightCardBox > div:nth-child(1) {
  27668. margin-bottom: 10px;
  27669. }
  27670. .cardCss {
  27671. display: flex;
  27672. flex-direction: column;
  27673. flex-wrap: nowrap;
  27674. align-items: center;
  27675. border-bottom: 3px solid #b4c3d3;
  27676. padding: 0 0 5px 0;
  27677. margin-right: 10px;
  27678. }
  27679. .cardCss > div:nth-child(2) {
  27680. background: #5b7b9d;
  27681. color: #fff;
  27682. width: 20px;
  27683. height: 20px;
  27684. border-radius: 50%;
  27685. text-align: center;
  27686. line-height: 20px;
  27687. }
  27688. .isWrong {
  27689. display: flex;
  27690. flex-direction: row;
  27691. flex-wrap: nowrap;
  27692. align-content: center;
  27693. align-items: center;
  27694. }
  27695. .answerRight {
  27696. width: 25%;
  27697. }
  27698. .isTj {
  27699. display: flex;
  27700. flex-direction: row;
  27701. flex-wrap: nowrap;
  27702. align-items: center;
  27703. }
  27704. .isTj > div:nth-child(2) {
  27705. color: #727070;
  27706. margin-left: 10px;
  27707. }
  27708. .isTjImg {
  27709. width: 30px;
  27710. height: 30px;
  27711. }
  27712. .isTjImg > img {
  27713. width: 100%;
  27714. height: 100%;
  27715. }
  27716. .cardAnswerBox {
  27717. font-size: 18px;
  27718. width: 97%;
  27719. border: 5px;
  27720. padding: 0;
  27721. border-radius: 5px;
  27722. margin: 10px auto;
  27723. word-break: break-word;
  27724. }
  27725. .w_name {
  27726. margin-bottom: 10px;
  27727. }
  27728. .w_name span {
  27729. font-size: 16px;
  27730. }
  27731. .w_teachert {
  27732. width: 50px !important;
  27733. position: absolute;
  27734. height: auto !important;
  27735. z-index: 10;
  27736. right: 25px;
  27737. top: -25px;
  27738. }
  27739. /* .group_workBox {
  27740. } */
  27741. .group_workBox + .group_workBox {
  27742. margin-top: 20px;
  27743. }
  27744. .group_box {
  27745. padding-bottom: 20px;
  27746. border-bottom: 2px solid #f0f0f0;
  27747. margin-top: 10px;
  27748. }
  27749. .group_title {
  27750. display: flex;
  27751. align-items: center;
  27752. justify-content: space-between;
  27753. width: 95%;
  27754. }
  27755. .group_name {
  27756. background-image: url(../../assets/icon/groupN.png);
  27757. width: 220px;
  27758. background-size: 100% 100%;
  27759. height: 67px;
  27760. padding: 0 20px 0 43px;
  27761. box-sizing: border-box;
  27762. line-height: 63px;
  27763. color: #fff;
  27764. overflow: hidden;
  27765. white-space: nowrap;
  27766. text-overflow: ellipsis;
  27767. }
  27768. .group_work {
  27769. width: 100%;
  27770. padding: 0 10px;
  27771. box-sizing: border-box;
  27772. display: flex;
  27773. flex-wrap: wrap;
  27774. }
  27775. .g_d_box {
  27776. display: flex;
  27777. flex-flow: wrap;
  27778. justify-content: space-around;
  27779. }
  27780. .g_d_box .isChair {
  27781. background-image: url(../../assets/avatar.png) !important;
  27782. }
  27783. .g_d_group {
  27784. width: 500px;
  27785. margin-bottom: 80px;
  27786. }
  27787. .g_d_group_chair {
  27788. display: flex;
  27789. align-items: center;
  27790. justify-content: center;
  27791. }
  27792. .g_d_group_chair > div + div {
  27793. margin-left: 30px;
  27794. }
  27795. .g_d_group_chair > div,
  27796. .g_d_group_chair2 > div {
  27797. display: flex;
  27798. flex-direction: column;
  27799. align-items: center;
  27800. }
  27801. .g_d_group_chair > div > span:nth-child(1),
  27802. .g_d_group_chair2 > div > span:nth-child(1) {
  27803. background-image: url(../../assets/icon/chair.png);
  27804. width: 50px;
  27805. height: 50px;
  27806. display: block;
  27807. background-size: 100% 100%;
  27808. }
  27809. .g_d_group_tableBox {
  27810. display: flex;
  27811. align-items: center;
  27812. justify-content: center;
  27813. }
  27814. .g_d_group_chair2 {
  27815. display: flex;
  27816. flex-direction: column;
  27817. align-items: center;
  27818. justify-content: center;
  27819. }
  27820. .g_d_group_chair2 > div + div {
  27821. margin-top: 10px;
  27822. }
  27823. .g_d_group_table {
  27824. background-image: url(../../assets/icon/groupBg.png);
  27825. width: 354px;
  27826. height: 196px;
  27827. background-size: 100% 100%;
  27828. display: flex;
  27829. align-items: center;
  27830. justify-content: center;
  27831. flex-direction: column;
  27832. color: #fff;
  27833. }
  27834. .g_d_group_table > div:nth-child(1) {
  27835. font-size: 24px;
  27836. margin-bottom: 5px;
  27837. }
  27838. .g_d_group_table > div:nth-child(2) div {
  27839. cursor: pointer;
  27840. background: #2e77bf;
  27841. padding: 4px 10px;
  27842. border-radius: 5px;
  27843. }
  27844. .groupBox {
  27845. }
  27846. .groupContent + .groupContent {
  27847. margin-top: 30px;
  27848. }
  27849. .groupTitle {
  27850. font-size: 24px;
  27851. color: rgb(80, 80, 80);
  27852. margin-bottom: 20px;
  27853. }
  27854. .groupName {
  27855. display: flex;
  27856. align-items: center;
  27857. }
  27858. .groupn {
  27859. font-size: 15px;
  27860. margin-right: 10px;
  27861. }
  27862. .groupName + .groupName {
  27863. margin-top: 15px;
  27864. }
  27865. .groupBtn {
  27866. margin-left: 10px;
  27867. }
  27868. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  27869. text-align: left;
  27870. }
  27871. .g_d_btnBox {
  27872. display: flex;
  27873. justify-content: flex-end;
  27874. align-items: center;
  27875. margin-bottom: 20px;
  27876. }
  27877. .updateChair {
  27878. position: relative;
  27879. }
  27880. .updateChairBtn {
  27881. position: absolute;
  27882. width: 50px;
  27883. height: 50px;
  27884. overflow: hidden;
  27885. /* display: flex; */
  27886. align-items: center;
  27887. justify-content: center;
  27888. background: #00000087;
  27889. color: #fff;
  27890. border-radius: 50px;
  27891. display: none;
  27892. cursor: pointer;
  27893. }
  27894. .updateChair:hover .updateChairBtn {
  27895. display: flex;
  27896. }
  27897. .group_staic_box {
  27898. display: flex;
  27899. padding: 30px 40px 10px;
  27900. flex-wrap: wrap;
  27901. }
  27902. .group_staic {
  27903. /* width: 50%; */
  27904. margin-bottom: 20px;
  27905. display: flex;
  27906. align-items: center;
  27907. }
  27908. .group_staic span:nth-child(1) {
  27909. width: 150px;
  27910. text-align: right;
  27911. margin-right: 15px;
  27912. }
  27913. .group_staic span:nth-child(2) {
  27914. background: rgb(0 123 255);
  27915. color: #fff;
  27916. border-radius: 5px;
  27917. padding: 5px;
  27918. }
  27919. .codeFileBox {
  27920. height: 300px;
  27921. background: #fff;
  27922. display: flex;
  27923. align-items: center;
  27924. justify-content: center;
  27925. }
  27926. .codeFileBox img {
  27927. width: 200px;
  27928. margin: 0;
  27929. height: auto;
  27930. }
  27931. .codeFileBox div {
  27932. background: rgb(80, 142, 226);
  27933. color: #fff;
  27934. padding: 10px 20px;
  27935. border-radius: 25px;
  27936. cursor: pointer;
  27937. margin-left: 15px;
  27938. }
  27939. .radioBox {
  27940. display: flex;
  27941. flex-direction: column;
  27942. flex-wrap: nowrap;
  27943. align-items: flex-start;
  27944. }
  27945. .radioBox > div {
  27946. margin: 10px 0 0 10px;
  27947. }
  27948. /* .radioBox >>> .el-radio__input,
  27949. .radioBox >>> .el-checkbox__inner {
  27950. margin-left: 10px;
  27951. } */
  27952. .radioBox >>> .el-radio__label,
  27953. .radioBox >>> .el-checkbox__label {
  27954. display: flex;
  27955. align-items: center;
  27956. width: 100%;
  27957. }
  27958. .radioBox >>> .el-radio__label > span {
  27959. width: 100%;
  27960. display: -webkit-box;
  27961. overflow: hidden;
  27962. white-space: normal !important;
  27963. text-overflow: ellipsis;
  27964. word-wrap: break-word;
  27965. }
  27966. .inImg {
  27967. width: 100px;
  27968. cursor: pointer;
  27969. }
  27970. .inImg > img {
  27971. width: 100%;
  27972. height: 100%;
  27973. object-fit: cover;
  27974. }
  27975. .timuImgBox {
  27976. margin: 10px 0;
  27977. display: flex;
  27978. flex-direction: column;
  27979. flex-wrap: wrap;
  27980. align-items: flex-start;
  27981. }
  27982. .timuImg {
  27983. width: 150px;
  27984. margin: 5px 0;
  27985. cursor: pointer;
  27986. }
  27987. .timuImg > img {
  27988. width: 100%;
  27989. height: 100%;
  27990. object-fit: cover;
  27991. }
  27992. .worksTop {
  27993. display: flex;
  27994. flex-direction: row;
  27995. align-items: flex-end;
  27996. }
  27997. .worksTitle {
  27998. display: flex;
  27999. flex-direction: row;
  28000. flex-wrap: nowrap;
  28001. align-items: center;
  28002. }
  28003. .worksTitle::before,
  28004. .worksTop::before {
  28005. content: "";
  28006. display: block;
  28007. width: 3px;
  28008. height: 20px;
  28009. background: #0061ff;
  28010. border-radius: 3px;
  28011. margin: 0 5px 0 0;
  28012. }
  28013. .corOpen {
  28014. margin: 0 0 0 10px;
  28015. font-size: 14px;
  28016. cursor: pointer;
  28017. color: #505050;
  28018. }
  28019. .corOpen:hover {
  28020. color: #499eef;
  28021. }
  28022. .navCorOpenBox {
  28023. display: flex;
  28024. flex-direction: row;
  28025. align-items: center;
  28026. justify-content: space-between;
  28027. height: 55px;
  28028. background: #ffffff;
  28029. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28030. border-radius: 8px 8px 0px 0px;
  28031. z-index: 9;
  28032. position: relative;
  28033. }
  28034. .navCorOpen {
  28035. padding-right: 15px;
  28036. cursor: pointer;
  28037. width: 45px;
  28038. display: flex;
  28039. }
  28040. .navCorOpen > img {
  28041. width: 100%;
  28042. height: 100%;
  28043. }
  28044. .mlImg {
  28045. width: 40px !important;
  28046. min-width: 40px;
  28047. cursor: pointer;
  28048. transform: rotate(180deg);
  28049. }
  28050. .mlImg > img {
  28051. width: 100%;
  28052. height: 100%;
  28053. }
  28054. .navLeftCss {
  28055. width: 100% !important;
  28056. left: 0 !important;
  28057. }
  28058. .isContentCss {
  28059. width: 100% !important;
  28060. }
  28061. .isAllWidth {
  28062. width: 100% !important;
  28063. }
  28064. .group_switch {
  28065. margin-right: 10px;
  28066. height: 30px;
  28067. display: flex;
  28068. align-items: center;
  28069. }
  28070. .group_switch > span {
  28071. margin-right: 5px;
  28072. }
  28073. .fileC_box {
  28074. padding-top: 15px;
  28075. }
  28076. .fileC_box > .fileC_title {
  28077. padding: 10px 5px 14px 10px;
  28078. border-top: 1px solid #cad1dc;
  28079. font-size: 14px;
  28080. font-weight: 400;
  28081. color: #cad1dc;
  28082. width: calc(100% - 20px);
  28083. margin: 0 auto;
  28084. box-sizing: border-box;
  28085. }
  28086. .pl_select_box {
  28087. height: 40px;
  28088. line-height: 40px;
  28089. width: 100%;
  28090. cursor: pointer;
  28091. padding: 0 20px;
  28092. box-sizing: border-box;
  28093. border-radius: 5px;
  28094. border: 1px solid #d6d6d6;
  28095. white-space: nowrap;
  28096. overflow: hidden;
  28097. text-overflow: ellipsis;
  28098. background: #fff;
  28099. text-align: left;
  28100. }
  28101. .newButton {
  28102. width: 102px;
  28103. height: 36px;
  28104. background: #e7ebf1;
  28105. border-radius: 4px;
  28106. color: #0e1e33;
  28107. font-weight: 400;
  28108. font-size: 14px;
  28109. border: none;
  28110. float: right;
  28111. margin-left: 10px;
  28112. }
  28113. .el-table >>> .even_row {
  28114. background-color: #f0f4fa;
  28115. }
  28116. .stageBoxCss,
  28117. .stageBoxIsCss {
  28118. display: flex;
  28119. flex-direction: row;
  28120. flex-wrap: nowrap;
  28121. align-items: center;
  28122. height: 50px;
  28123. border-bottom: 1px solid #e2f5fc;
  28124. cursor: pointer;
  28125. width: 100%;
  28126. }
  28127. .stageBoxIsCss {
  28128. background: #0061ff;
  28129. color: #fff;
  28130. border-radius: 8px;
  28131. }
  28132. .closeTri,
  28133. .closeTri1 {
  28134. min-width: 15px;
  28135. width: 15px;
  28136. height: 15px;
  28137. }
  28138. .closeTri1 {
  28139. padding-left: 10px;
  28140. cursor: pointer;
  28141. }
  28142. .closeTri > img,
  28143. .closeTri1 > img {
  28144. width: 100%;
  28145. height: 100%;
  28146. /* transition: all .5s; */
  28147. }
  28148. .noToolBlue {
  28149. min-width: 10px;
  28150. width: 10px;
  28151. height: 10px;
  28152. background: #0061ff;
  28153. border-radius: 50%;
  28154. margin-left: 13px;
  28155. }
  28156. .stageChild,
  28157. .toolChild {
  28158. height: 0;
  28159. overflow: hidden;
  28160. transition: all 0.5s;
  28161. }
  28162. /* .toolChild { */
  28163. /* margin: 0 0 0 17px;
  28164. padding: 0 0 0 20px;
  28165. border-left: 1px solid #d7d7d7; */
  28166. /* } */
  28167. .toolChild > div + div {
  28168. margin-top: 5px;
  28169. }
  28170. .gjCss {
  28171. display: flex;
  28172. flex-direction: row;
  28173. flex-wrap: nowrap;
  28174. align-items: center;
  28175. padding: 10px 0 10px 40px;
  28176. box-sizing: border-box;
  28177. font-size: 14px;
  28178. cursor: pointer;
  28179. border-radius: 5px;
  28180. }
  28181. .toolChild > div {
  28182. position: relative;
  28183. width: 100%;
  28184. }
  28185. /* .toolChild > div::before { */
  28186. /* content: "";
  28187. width: 15px;
  28188. height: 1px;
  28189. background: #cad1dc;
  28190. position: absolute;
  28191. top: 24px;
  28192. left: -20px;
  28193. display: block; */
  28194. /* } */
  28195. .isGjCss {
  28196. /* color: #0061ff; */
  28197. color: #fff;
  28198. background: rgb(55, 129, 252);
  28199. /* background-color: #e0eafb !important;
  28200. color: #0061ff !important; */
  28201. }
  28202. .navItem {
  28203. background: #ffffff;
  28204. border-radius: 4px;
  28205. width: 100%;
  28206. margin: 10px auto;
  28207. position: relative;
  28208. height: 40px;
  28209. display: flex;
  28210. flex-direction: row;
  28211. flex-wrap: nowrap;
  28212. align-items: center;
  28213. }
  28214. .navItemList {
  28215. display: flex;
  28216. flex-direction: row;
  28217. flex-wrap: nowrap;
  28218. align-items: center;
  28219. padding: 0 13px;
  28220. cursor: pointer;
  28221. width: calc(100% - 60px);
  28222. height: 100%;
  28223. }
  28224. .navItemList > div:first-child {
  28225. min-width: 60px;
  28226. }
  28227. .navItemList > div:last-child {
  28228. width: calc(100% - 80px);
  28229. white-space: nowrap;
  28230. overflow: hidden;
  28231. text-overflow: ellipsis;
  28232. word-break: break-word;
  28233. }
  28234. /* .isItemList > div {
  28235. color: #fff !important;
  28236. } */
  28237. .tool_work_box {
  28238. width: 100%;
  28239. padding: 0 37px 0;
  28240. box-sizing: border-box;
  28241. }
  28242. .tool_box {
  28243. width: 100%;
  28244. padding: 0 0 0 20px;
  28245. }
  28246. .tool_type_box {
  28247. display: flex;
  28248. flex-direction: row;
  28249. align-items: baseline;
  28250. flex-wrap: nowrap;
  28251. justify-content: flex-start;
  28252. position: relative;
  28253. }
  28254. .toolSort {
  28255. display: flex;
  28256. flex-direction: row;
  28257. flex-wrap: wrap;
  28258. justify-content: flex-start;
  28259. align-items: flex-start;
  28260. padding: 0 0 15px 0;
  28261. }
  28262. .toolSort > div {
  28263. margin: 0 10px 0 0;
  28264. width: 135px;
  28265. box-sizing: border-box;
  28266. border: 2px solid transparent;
  28267. }
  28268. .tools {
  28269. width: 100%;
  28270. display: flex;
  28271. flex-direction: column;
  28272. flex-wrap: nowrap;
  28273. align-items: flex-start;
  28274. }
  28275. .whiteBIcon {
  28276. width: fit-content;
  28277. cursor: pointer;
  28278. display: flex;
  28279. flex-direction: column;
  28280. flex-wrap: nowrap;
  28281. align-items: center;
  28282. font-size: 14px;
  28283. }
  28284. .tool:hover {
  28285. border: 2px solid #a5c7ff;
  28286. border-radius: 5px;
  28287. }
  28288. .whiteBIcon > img {
  28289. width: 65px;
  28290. height: 100%;
  28291. }
  28292. .whiteBIcon > img {
  28293. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  28294. border-radius: 15px;
  28295. }
  28296. .check {
  28297. /* width: 20px;
  28298. height: 20px; */
  28299. cursor: pointer;
  28300. margin: 10px 0;
  28301. position: absolute;
  28302. right: 2px;
  28303. top: -5px;
  28304. }
  28305. .noChoose,
  28306. .isChoose {
  28307. width: 15px;
  28308. height: 15px;
  28309. border-radius: 50%;
  28310. border: 1px solid #adadad;
  28311. }
  28312. .isChoose {
  28313. border: 4px solid #0363ff !important;
  28314. width: 10px;
  28315. height: 10px;
  28316. }
  28317. .isToolChoose {
  28318. border: 2px solid #5394ff !important;
  28319. border-radius: 5px;
  28320. box-shadow: 0 0 6px 0px #5394ff;
  28321. }
  28322. .checkDiv {
  28323. display: flex;
  28324. align-items: center;
  28325. }
  28326. .checkDiv span {
  28327. margin-left: 5px;
  28328. color: #858585;
  28329. }
  28330. .check img {
  28331. width: 20px;
  28332. height: 20px;
  28333. }
  28334. .lockTaskIcon {
  28335. width: 20px;
  28336. height: 20px;
  28337. position: absolute;
  28338. right: 10px;
  28339. top: 10px;
  28340. }
  28341. .lockTaskIcon > img {
  28342. width: 100%;
  28343. height: 100%;
  28344. }
  28345. .pick_box {
  28346. display: flex;
  28347. align-items: flex-start;
  28348. flex-wrap: wrap;
  28349. }
  28350. .selectBox {
  28351. width: 110px;
  28352. margin-left: 10px;
  28353. margin: 0 10px 0 auto;
  28354. }
  28355. .selectBox >>> .el-input__inner {
  28356. height: 30px;
  28357. line-height: 30px;
  28358. }
  28359. .selectBox >>> .el-input__icon {
  28360. line-height: 30px;
  28361. }
  28362. .sentenceTitle {
  28363. display: flex;
  28364. flex-direction: row;
  28365. flex-wrap: nowrap;
  28366. align-items: center;
  28367. }
  28368. .sentenceTitle::before {
  28369. content: attr(index);
  28370. background: #3681fc;
  28371. border-radius: 50%;
  28372. color: #fff;
  28373. width: 25px;
  28374. height: 25px;
  28375. min-width: 25px;
  28376. min-height: 25px;
  28377. text-align: center;
  28378. line-height: 25px;
  28379. margin-right: 5px;
  28380. }
  28381. .hfBox {
  28382. padding: 10px;
  28383. box-sizing: border-box;
  28384. }
  28385. .whoReplyWho {
  28386. display: flex;
  28387. flex-direction: row;
  28388. flex-wrap: nowrap;
  28389. align-items: baseline;
  28390. justify-content: flex-start;
  28391. }
  28392. .hfBottom {
  28393. display: flex;
  28394. flex-direction: row;
  28395. flex-wrap: nowrap;
  28396. align-items: center;
  28397. justify-content: space-between;
  28398. font-size: 14px;
  28399. }
  28400. .deleteHfItem {
  28401. cursor: pointer;
  28402. width: 20px;
  28403. height: 20px;
  28404. }
  28405. .deleteHfItem > img {
  28406. width: 100%;
  28407. height: 100%;
  28408. }
  28409. .whoReplyWho > .hfImg {
  28410. width: 12px;
  28411. height: 12px;
  28412. margin: 0 5px;
  28413. }
  28414. .whoReplyWho > .hfImg > img {
  28415. width: 100%;
  28416. height: 100%;
  28417. }
  28418. .hfContent {
  28419. padding-top: 10px;
  28420. box-sizing: border-box;
  28421. display: -webkit-box;
  28422. overflow: hidden;
  28423. white-space: normal !important;
  28424. text-overflow: ellipsis;
  28425. word-wrap: break-word;
  28426. -webkit-box-orient: vertical;
  28427. }
  28428. .hfTime {
  28429. text-align: left;
  28430. box-sizing: border-box;
  28431. padding: 10px 0 10px 0px;
  28432. color: #bfbfbf;
  28433. font-size: 14px;
  28434. }
  28435. .btnAllNT {
  28436. position: fixed;
  28437. bottom: 100px;
  28438. right: 40px;
  28439. z-index: 999;
  28440. display: flex;
  28441. flex-direction: row;
  28442. }
  28443. .btnAllNT > img {
  28444. cursor: pointer;
  28445. width: 80px;
  28446. }
  28447. .toolMask {
  28448. position: fixed;
  28449. width: 100%;
  28450. height: 100%;
  28451. background: #3f3c3c;
  28452. opacity: 0.5;
  28453. top: 0;
  28454. left: 0;
  28455. z-index: 999;
  28456. }
  28457. .addToolCss {
  28458. position: fixed;
  28459. z-index: 999;
  28460. background: #fff;
  28461. right: 5%;
  28462. bottom: 18%;
  28463. min-width: 1035px;
  28464. min-height: 300px;
  28465. border-radius: 10px;
  28466. box-shadow: 0 0 8px 1px #b2b2b2;
  28467. }
  28468. .toolTop {
  28469. display: flex;
  28470. flex-direction: row;
  28471. flex-wrap: nowrap;
  28472. justify-content: space-between;
  28473. align-items: center;
  28474. padding: 20px;
  28475. }
  28476. .toolTop > div:nth-child(2) {
  28477. width: 15px;
  28478. height: 15px;
  28479. padding-right: 10px;
  28480. cursor: pointer;
  28481. }
  28482. .toolTop > div:nth-child(2) > img {
  28483. width: 100%;
  28484. height: 100%;
  28485. }
  28486. .fullStyle >>> .el-dialog__body {
  28487. height: calc(100% - 125px) !important;
  28488. box-sizing: border-box;
  28489. padding: 30px 0 !important;
  28490. background: #fff !important;
  28491. }
  28492. .fullStyle >>> .el-dialog {
  28493. width: 100% !important;
  28494. max-width: 100% !important;
  28495. height: 100% !important;
  28496. margin: 0 !important;
  28497. }
  28498. .fullStyle {
  28499. width: 100% !important;
  28500. max-width: 100% !important;
  28501. height: 100% !important;
  28502. margin: 0 auto !important;
  28503. }
  28504. .fullStyle >>> .el-dialog__footer {
  28505. background: #fff !important;
  28506. }
  28507. .engUpBox {
  28508. width: 100%;
  28509. height: 100%;
  28510. }
  28511. .engTitle,
  28512. .engText {
  28513. display: flex;
  28514. flex-direction: row;
  28515. flex-wrap: nowrap;
  28516. align-items: flex-start;
  28517. padding: 0 20px 20px 20px;
  28518. box-sizing: border-box;
  28519. }
  28520. .engTitle > .div:first-child,
  28521. .engText > div:first-child {
  28522. min-width: 75px;
  28523. }
  28524. .correctBox {
  28525. width: 100%;
  28526. display: flex;
  28527. flex-direction: row;
  28528. flex-wrap: nowrap;
  28529. align-items: flex-start;
  28530. }
  28531. .oldBox {
  28532. width: 50%;
  28533. height: 100%;
  28534. display: flex;
  28535. flex-direction: column;
  28536. flex-wrap: nowrap;
  28537. align-items: center;
  28538. border-top: 1px solid #d9d9d9;
  28539. border-left: 1px solid #d9d9d9;
  28540. border-right: 1px solid #d9d9d9;
  28541. }
  28542. .oldBox > div:first-child {
  28543. width: 100%;
  28544. text-align: center;
  28545. background: #d9d9d9;
  28546. height: 35px;
  28547. line-height: 35px;
  28548. font-weight: bold;
  28549. }
  28550. .oldText {
  28551. width: 100%;
  28552. height: calc(100% - 35px);
  28553. overflow: auto;
  28554. margin: 10px 0;
  28555. display: flex;
  28556. flex-direction: column;
  28557. flex-wrap: nowrap;
  28558. align-content: center;
  28559. align-items: center;
  28560. }
  28561. .detailBox {
  28562. width: 50%;
  28563. padding: 10px;
  28564. background: #f6f6f6;
  28565. border-radius: 5px;
  28566. }
  28567. .oldDetail,
  28568. .oldDetail1 {
  28569. padding-bottom: 30px;
  28570. }
  28571. .oldImg {
  28572. width: 30px;
  28573. height: 30px;
  28574. }
  28575. .oldImg > img {
  28576. width: 100%;
  28577. height: 100%;
  28578. }
  28579. .allName {
  28580. min-width: 200px;
  28581. white-space: nowrap;
  28582. overflow: hidden;
  28583. text-overflow: ellipsis;
  28584. word-break: break-word;
  28585. cursor: pointer;
  28586. text-align: center;
  28587. border: 1px solid #bcc2cc;
  28588. box-sizing: border-box;
  28589. }
  28590. .engUpTop {
  28591. max-height: 300px;
  28592. overflow: auto;
  28593. }
  28594. .isUpdateToolDetailClass {
  28595. padding: 0 !important;
  28596. }
  28597. .isUpdateToolDetailClass textarea {
  28598. padding: 12px;
  28599. font-size: 16px;
  28600. min-height: 100%;
  28601. width: 100%;
  28602. box-sizing: border-box;
  28603. outline: none;
  28604. border: none;
  28605. line-height: 30px;
  28606. resize: none;
  28607. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  28608. "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  28609. color: #838383;
  28610. }
  28611. .show_taskD {
  28612. min-width: fit-content;
  28613. margin-left: 10px;
  28614. display: flex;
  28615. align-items: center;
  28616. font-size: 14px;
  28617. cursor: pointer;
  28618. color: #717c8d;
  28619. }
  28620. .show_taskD > img {
  28621. width: 15px;
  28622. margin-right: 5px;
  28623. transition: 0.2s all;
  28624. transform: rotate(-90deg);
  28625. }
  28626. .show_taskD.show > img {
  28627. transform: rotate(0deg);
  28628. }
  28629. .correctCss {
  28630. position: absolute;
  28631. bottom: -70px;
  28632. background: #409eff;
  28633. color: #fff;
  28634. }
  28635. .ScoreBtn {
  28636. background: rgba(87, 159, 248, 1);
  28637. display: flex;
  28638. justify-content: center;
  28639. align-items: center;
  28640. color: #fff;
  28641. font-size: 14px;
  28642. padding: 8px 12px;
  28643. border-radius: 5px;
  28644. cursor: pointer;
  28645. }
  28646. .max-height-popover .el-popover {
  28647. min-height: 200px;
  28648. max-height: 400px; /* 设置最大高度 */
  28649. overflow: auto; /* 超出部分显示滚动条 */
  28650. }
  28651. .blueRootCss {
  28652. display: block;
  28653. margin-right: 5px;
  28654. }
  28655. .stuLookScore {
  28656. position: absolute;
  28657. top: 12px;
  28658. right: 40px;
  28659. background: #0000008f;
  28660. border-radius: 5px;
  28661. padding: 3px 5px;
  28662. font-size: 14px;
  28663. color: #fff;
  28664. cursor: pointer;
  28665. }
  28666. </style>