studyStudent.vue 1022 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 100%;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. overflow: auto;
  12. "
  13. >
  14. <!-- <div class="btnAllNT">
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. <img
  26. src="../../assets/icon/learn/last.png"
  27. @click="nextOrpreSteps(0)"
  28. />
  29. <img
  30. src="../../assets/icon/learn/next.png"
  31. @click="nextOrpreSteps(1)"
  32. />
  33. <img
  34. src="../../assets/icon/learn/return.png"
  35. @click.stop="
  36. goTo(
  37. '/courseDetail?userid=' +
  38. userid +
  39. '&oid=' +
  40. oid +
  41. '&org=' +
  42. org +
  43. '&cid=' +
  44. classId +
  45. '&courseId=' +
  46. id +
  47. '&tType=' +
  48. tType +
  49. '&screenType=' +
  50. screenType
  51. )
  52. "
  53. />
  54. </div> -->
  55. <div
  56. class="pButton"
  57. style="left: 0; top: 140px"
  58. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  59. @click="setContent2(true)"
  60. >
  61. <!-- 批 , getCourseDetail()-->
  62. <img
  63. src="../../assets/icon/newIcons/isRight.png"
  64. style="width: 45px"
  65. alt=""
  66. />
  67. </div>
  68. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  69. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  70. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  71. <div
  72. class="courseTitle"
  73. :style="{ margin: tcid && inviteCode && '10px auto 0px' }"
  74. >
  75. <div
  76. style="
  77. max-width: calc(100% - 40px);
  78. width: auto;
  79. white-space: nowrap;
  80. overflow: hidden;
  81. text-overflow: ellipsis;
  82. word-break: break-word;
  83. display: block;
  84. "
  85. >
  86. <el-tooltip
  87. effect="light"
  88. :content="courseDetail.title"
  89. placement="top"
  90. >
  91. <div class="ctitle">
  92. {{ courseDetail.title }}
  93. </div>
  94. </el-tooltip>
  95. </div>
  96. <el-tooltip effect="light" content="收缩" placement="top">
  97. <div class="mlImg" @click="setContent2(false)">
  98. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  99. </div>
  100. </el-tooltip>
  101. </div>
  102. <div
  103. class="inviteBox"
  104. v-if="tcid && inviteCode"
  105. style="padding: 0 0 8px 0"
  106. >
  107. <div>
  108. <span>随机码:{{ inviteCode }}</span>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="cru_selectBox">
  113. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  114. <div class="stageChild" :class="{ navActive: item.isOpen }">
  115. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  116. <div
  117. class="navItem"
  118. :class="{
  119. openTaskActive:
  120. navIndex == taskCount &&
  121. nav.id == navId &&
  122. stageIndex == courseType
  123. }"
  124. >
  125. <div v-if="nav.tool[0].tool != undefined">
  126. <div
  127. class="closeTri1"
  128. v-if="
  129. navIndex == taskCount &&
  130. nav.id == navId &&
  131. stageIndex == courseType
  132. "
  133. @click="openTask(stageIndex, navIndex, nav.id)"
  134. >
  135. <img
  136. :style="{
  137. transform: nav.isOpen
  138. ? 'rotate(0deg)'
  139. : 'rotate(270deg)'
  140. }"
  141. src="../../assets/icon/newIcons/bDown2.png"
  142. alt
  143. />
  144. </div>
  145. <div
  146. class="closeTri1"
  147. v-else
  148. @click="openTask(stageIndex, navIndex, nav.id)"
  149. >
  150. <img
  151. :style="{
  152. transform: nav.isOpen
  153. ? 'rotate(90deg)'
  154. : 'rotate(0deg)'
  155. }"
  156. src="../../assets/icon/newIcons/right.png"
  157. alt
  158. />
  159. </div>
  160. </div>
  161. <div v-else class="noToolBlue"></div>
  162. <div
  163. @click="openTask(stageIndex, navIndex, nav.id)"
  164. class="navItemList"
  165. :class="{
  166. isItemList:
  167. navIndex == taskCount &&
  168. nav.id == navId &&
  169. stageIndex == courseType
  170. }"
  171. >
  172. <div>任务{{ navIndex + 1 }}:</div>
  173. <el-tooltip
  174. effect="light"
  175. :content="nav.taskName"
  176. placement="top"
  177. >
  178. <div
  179. :style="{
  180. width:
  181. IsLookOpen && !nav.isLook
  182. ? 'calc(100% - 75px)'
  183. : 'auto'
  184. }"
  185. >
  186. {{ nav.taskName }}
  187. </div>
  188. </el-tooltip>
  189. </div>
  190. <div class="lockTaskIcon">
  191. <img
  192. src="../../assets/lock.png"
  193. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  194. courseDetail.course_teacher.indexOf(userid) ==-1"
  195. alt=""
  196. />
  197. </div>
  198. </div>
  199. <div
  200. v-if="nav.tool[0].tool != undefined"
  201. class="toolChild"
  202. :class="{ toolActive: nav.isOpen }"
  203. >
  204. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  205. <div
  206. class="gjCss"
  207. :class="{
  208. isGjCss: t.isTool
  209. }"
  210. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  211. >
  212. <div>工具{{ toolIndex2 + 1 }}:</div>
  213. <div v-if="t.tool == 58">模拟驾驶</div>
  214. <div v-if="t.tool == 59">路径搜索</div>
  215. <div v-if="t.tool == 60">深度学习</div>
  216. <div v-if="t.tool == 10">倒计时</div>
  217. <div v-if="t.tool == 65">挑人</div>
  218. <div v-if="t.tool == 7">思维网格</div>
  219. <div v-if="t.tool == 1">电子白板</div>
  220. <div v-if="t.tool == 52">文档</div>
  221. <div v-if="t.tool == 3">思维导图</div>
  222. <div v-if="t.tool == 48">表格</div>
  223. <div v-if="t.tool == 49">学生分组</div>
  224. <div v-if="t.tool == 4">问卷调查</div>
  225. <div v-if="t.tool == 45">选择题</div>
  226. <div v-if="t.tool == 15">问答</div>
  227. <div v-if="t.tool == 16">作业提交</div>
  228. <div v-if="t.tool == 50">批量上传</div>
  229. <div v-if="t.tool == 41">选择匹配</div>
  230. <div v-if="t.tool == 47">排序</div>
  231. <div v-if="t.tool == 40">个人评价</div>
  232. <div v-if="t.tool == 18">训练平台</div>
  233. <div v-if="t.tool == 21">AIoT Blockly</div>
  234. <div v-if="t.tool == 23">AI Python</div>
  235. <div v-if="t.tool == 24">AI Blockly</div>
  236. <div v-if="t.tool == 32">源码编辑</div>
  237. <div v-if="t.tool == 57">CocoPi</div>
  238. <div v-if="t.tool == 63">海龟编程</div>
  239. <div v-if="t.tool == 28">翻译</div>
  240. <div v-if="t.tool == 31">数字画板</div>
  241. <div v-if="t.tool == 39">GeoGebra</div>
  242. <div v-if="t.tool == 66">公式编辑</div>
  243. <div v-if="t.tool == 67">分子结构</div>
  244. <div v-if="t.tool == 68">时间轴</div>
  245. <div v-if="t.tool == 69">英语写作</div>
  246. <div v-if="t.tool == 70">英语口语</div>
  247. <div v-if="t.tool == 25">目标管理</div>
  248. <div v-if="t.tool == 26">课程设计</div>
  249. <div v-if="t.tool == 62">交互视频</div>
  250. <div v-if="t.tool == 71">AI智能体</div>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. <div
  260. class="body_student"
  261. :style="{
  262. width: mlDialog
  263. ? 'calc(100% - ' +
  264. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  265. ' - 20% - 40px)'
  266. : 'calc(100% - ' +
  267. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  268. ' - 10px)',
  269. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  270. }"
  271. >
  272. <div
  273. class="new_topFixed"
  274. :style="{
  275. width: mlDialog
  276. ? 'calc(100% - ' +
  277. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  278. ' - 20% - 40px)'
  279. : 'calc(100% - ' +
  280. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  281. ' - 10px)',
  282. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  283. }"
  284. ></div>
  285. <div
  286. class="new_top"
  287. :style="{
  288. width: mlDialog
  289. ? 'calc(100% - ' +
  290. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  291. ' - 20% - 47px)'
  292. : 'calc(100% - ' +
  293. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  294. ' - 18px)',
  295. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  296. }"
  297. >
  298. <div
  299. class="courseIndex"
  300. :style="{
  301. width:
  302. (orgArray.includes(org) || oidArray.includes(oid)) &&
  303. !['2'].includes(tType)
  304. ? '100%'
  305. : 'calc(100% - 745px)'
  306. }"
  307. >
  308. <div>任务{{ taskCount + 1 }}</div>
  309. <el-tooltip
  310. effect="light"
  311. :content="
  312. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  313. "
  314. placement="top"
  315. >
  316. <div>
  317. {{
  318. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  319. .task
  320. }}
  321. </div>
  322. </el-tooltip>
  323. </div>
  324. <div
  325. class="btnAll"
  326. v-show="
  327. (!orgArray.includes(org) && !oidArray.includes(oid)) ||
  328. ['2'].includes(tType)
  329. "
  330. >
  331. <div class="btnLeft">
  332. <el-tooltip effect="light" content="刷新" placement="top">
  333. <div class="reBtnIcon" @click="refreshCourse">
  334. <span>刷新</span>
  335. </div>
  336. </el-tooltip>
  337. <el-tooltip effect="light" content="评论" placement="top">
  338. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  339. <span>评论</span>
  340. </div>
  341. </el-tooltip>
  342. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  343. <el-tooltip effect="light" content="录制" placement="top">
  344. <div class="vedioIcon" @click="startRecording">
  345. <span>录制</span>
  346. </div>
  347. </el-tooltip>
  348. </div>
  349. <div v-else-if="tType == 1 || tType == 4">
  350. <el-tooltip effect="light" content="下载" placement="top">
  351. <div class="vedioIcon1" @click="stopRecording">
  352. <span>下载</span>
  353. </div>
  354. </el-tooltip>
  355. </div>
  356. </div>
  357. <div class="btnRight">
  358. <div
  359. class="last"
  360. @click="nextOrpreSteps(0)"
  361. v-if="!(IsFollow && tType == 2)"
  362. @mouseover="isHovered = true"
  363. @mouseout="isHovered = false"
  364. >
  365. <div class="lastImg">
  366. <img
  367. :src="
  368. isHovered
  369. ? require('../../assets/icon/newIcons/whiteLast.png')
  370. : require('../../assets/icon/newIcons/last.png')
  371. "
  372. alt=""
  373. />
  374. </div>
  375. <div class="lastText">上一步</div>
  376. </div>
  377. <div
  378. class="last"
  379. @click="nextOrpreSteps(1)"
  380. v-if="!(IsFollow && tType == 2)"
  381. @mouseover="isHovered1 = true"
  382. @mouseout="isHovered1 = false"
  383. >
  384. <div class="lastText">下一步</div>
  385. <div class="lastImg">
  386. <img
  387. :src="
  388. isHovered1
  389. ? require('../../assets/icon/newIcons/whiteNext.png')
  390. : require('../../assets/icon/newIcons/next.png')
  391. "
  392. alt=""
  393. />
  394. </div>
  395. </div>
  396. <div
  397. class="last"
  398. @click="juriVisible = true"
  399. v-if="tType == 1"
  400. @mouseover="isHovered2 = true"
  401. @mouseout="isHovered2 = false"
  402. >
  403. <div class="lastImg">
  404. <img
  405. :src="
  406. isHovered2
  407. ? require('../../assets/icon/newIcons/whiteLock.png')
  408. : require('../../assets/icon/newIcons/lock.png')
  409. "
  410. alt=""
  411. />
  412. </div>
  413. <div class="lastText">权限</div>
  414. </div>
  415. <div
  416. class="returnBtn1 returnIcon"
  417. @click.stop="
  418. goTo(
  419. '/courseDetail?userid=' +
  420. userid +
  421. '&oid=' +
  422. oid +
  423. '&org=' +
  424. org +
  425. '&cid=' +
  426. classId +
  427. '&courseId=' +
  428. id +
  429. '&tType=' +
  430. tType +
  431. '&screenType=' +
  432. screenType
  433. )
  434. "
  435. >
  436. <div class="lastImg">
  437. <img src="../../assets/icon/newIcon/return.png" alt="" />
  438. </div>
  439. <div class="lastText" style="color: #000">返回</div>
  440. </div>
  441. </div>
  442. <!-- <div
  443. class="returnBtn lockIcon"
  444. @click="juriVisible = true"
  445. v-if="tType == 1"
  446. >
  447. 权限
  448. </div>
  449. <div
  450. class="returnBtn vedioIcon"
  451. @click="startRecording"
  452. v-if="!videoStart && (tType == 1 || tType == 4)"
  453. >
  454. 录制
  455. </div>
  456. <div
  457. class="returnBtn"
  458. @click="stopRecording"
  459. v-else-if="tType == 1 || tType == 4"
  460. style="background: #ee5255"
  461. >
  462. 下载
  463. </div>
  464. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  465. 评论
  466. </div>
  467. <div
  468. class="returnBtn"
  469. @click="nextOrpreSteps(0)"
  470. v-if="!(IsFollow && tType == 2)"
  471. >
  472. 上一步
  473. </div>
  474. <div
  475. class="returnBtn"
  476. @click="nextOrpreSteps(1)"
  477. v-if="!(IsFollow && tType == 2)"
  478. >
  479. 下一步
  480. </div>
  481. <div class="returnBtn" @click="refreshCourse">刷新</div>
  482. <div
  483. class="returnBtn returnIcon"
  484. @click.stop="
  485. goTo(
  486. '/courseDetail?userid=' +
  487. userid +
  488. '&oid=' +
  489. oid +
  490. '&org=' +
  491. org +
  492. '&cid=' +
  493. classId +
  494. '&courseId=' +
  495. id +
  496. '&tType=' +
  497. tType +
  498. '&screenType=' +
  499. screenType
  500. )
  501. "
  502. >
  503. 返回
  504. </div> -->
  505. </div>
  506. </div>
  507. <div
  508. class="isNoMessage"
  509. v-if="
  510. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  511. .chapterData.length == 0 &&
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .toolChoose[0].tool.length == 0 &&
  514. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  515. .taskDetail == '' &&
  516. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  517. .eList &&
  518. !(
  519. courseDetail.userid == userid ||
  520. (courseDetail.course_teacher &&
  521. courseDetail.course_teacher.indexOf(userid) != -1)
  522. )
  523. "
  524. >
  525. <img src="../../assets/icon/isNoMessage.png" alt />
  526. </div>
  527. <div class="study_top" :class="{ pzClass: pzDialog }">
  528. <div
  529. class="vedioBox"
  530. v-if="
  531. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  532. .taskDetail != '' ||
  533. vChapterData[taskCount].length > 0 ||
  534. fileC[taskCount].length > 0
  535. "
  536. style="border-radius: 0 0 20px 20px"
  537. >
  538. <div
  539. class="taskBox"
  540. v-if="
  541. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  542. .taskDetail != ''
  543. "
  544. >
  545. <div
  546. style="
  547. display: flex;
  548. flex-wrap: nowrap;
  549. flex-direction: column;
  550. position: relative;
  551. "
  552. >
  553. <div
  554. style="
  555. padding: 15px 0;
  556. line-height: 29px;
  557. font-size: 18px;
  558. color: #0e1e33;
  559. "
  560. class="cont"
  561. v-if="
  562. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  563. .taskDetail != ''
  564. "
  565. v-html="
  566. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  567. .taskDetail
  568. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  569. taskCount
  570. ].taskDetail
  571. : '暂无描述'
  572. "
  573. ></div>
  574. </div>
  575. </div>
  576. <div
  577. class="student_head"
  578. v-if="
  579. vChapterData[taskCount].length > 0 ||
  580. fileC[taskCount].length > 0
  581. "
  582. >
  583. <div
  584. class="vedioTaskBox"
  585. v-loading="downLoading || showType == 7"
  586. >
  587. <div
  588. :class="
  589. contentDialog == false
  590. ? 'box_course isContentCss'
  591. : 'box_course'
  592. "
  593. v-if="
  594. vChapterData.length > 0 &&
  595. vChapterData[taskCount] &&
  596. showType !== ''
  597. "
  598. >
  599. <div class="wheel" style="height: auto" v-if="showType === 0">
  600. <div
  601. class="workd_media"
  602. style="height: 650px; width: calc(100% - 50px)"
  603. >
  604. <video-player
  605. class="video-player vjs-custom-skin"
  606. :class="contentDialog == false ? 'isAllWidth' : ''"
  607. :playsinline="true"
  608. :options="playerO[taskCount]"
  609. @play="onPlayerPlay($event)"
  610. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  611. ></video-player>
  612. </div>
  613. </div>
  614. <div
  615. class="wheel"
  616. v-if="showType == 1"
  617. style="
  618. box-shadow: 0 0 6px 1px #f2f2f2;
  619. width: 95%;
  620. margin: 0 auto;
  621. background: #f1f1f1;
  622. "
  623. >
  624. <div class="title">查看文档</div>
  625. <el-form class="textBox">
  626. <el-form-item class="textTitle">
  627. <div style="font-size: 22px">
  628. {{ text.name }}
  629. </div>
  630. </el-form-item>
  631. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  632. <div v-html="text.url" class="textContent cont"></div>
  633. </el-form>
  634. </div>
  635. <div
  636. class="wheel"
  637. v-if="
  638. pptImgUrl1.indexOf(
  639. 'https://view.officeapps.live.com/op/view.aspx?src='
  640. ) != -1 && showType == 2
  641. "
  642. style="width: 95%; margin: 0 auto"
  643. >
  644. <iframe
  645. style="width: 100%; height: 100%; border: none"
  646. :src="pptImgUrl1"
  647. ></iframe>
  648. </div>
  649. <div
  650. class="wheel"
  651. v-else-if="showType == 2"
  652. style="width: 95%; margin: 0 auto"
  653. >
  654. <iframe
  655. style="width: 100%; height: 100%; border: none"
  656. security="restricted"
  657. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  658. :src="pptImgUrl1"
  659. ></iframe>
  660. </div>
  661. <div
  662. class="wheel"
  663. v-if="showType == 3"
  664. style="width: 95%; margin: 0 auto"
  665. >
  666. <pdf
  667. :pdfUrl="pptImgUrl1"
  668. style="width: 100%; height: 100%; overflow: auto"
  669. ></pdf>
  670. </div>
  671. <div
  672. class="wheel"
  673. v-if="showType == 4"
  674. style="width: 95%; margin: 0 auto"
  675. >
  676. <el-image
  677. :src="pptImgUrl1"
  678. fit="contain"
  679. style="width: 100%; height: 100%; cursor: pointer"
  680. @click="previewImg(pptImgUrl1)"
  681. ></el-image>
  682. </div>
  683. </div>
  684. <div
  685. class="pButton"
  686. style="position: absolute; right: 20px; top: 0; z-index: 998"
  687. v-if="!contentDialog"
  688. @click="setContent(true)"
  689. >
  690. <!-- 批 -->
  691. <img
  692. src="../../assets/icon/newIcons/isLeft.png"
  693. style="width: 45px"
  694. alt=""
  695. />
  696. </div>
  697. <div
  698. v-if="contentDialog == true"
  699. :style="{
  700. width:
  701. (vChapterData[taskCount].length > 0 ||
  702. fileC[taskCount].length > 0) &&
  703. showType === ''
  704. ? 'calc(100%)'
  705. : '300px',
  706. margin:
  707. (vChapterData[taskCount].length > 0 ||
  708. fileC[taskCount].length > 0) &&
  709. showType === ''
  710. ? '0 15px'
  711. : '0 15px 0 0'
  712. }"
  713. >
  714. <div
  715. class="vedioList"
  716. v-if="
  717. vChapterData[taskCount].length > 0 ||
  718. fileC[taskCount].length > 0
  719. "
  720. style="height: 650px"
  721. >
  722. <div class="navCorOpenBox">
  723. <div class="navTitile">内容列表:</div>
  724. <div class="navCorOpen" @click="setContent(false)">
  725. <img
  726. src="../../assets/icon/newIcons/isRight.png"
  727. alt=""
  728. />
  729. </div>
  730. </div>
  731. <div class="navBox">
  732. <div
  733. v-show="
  734. vChapterData[taskCount].length > 0 ||
  735. fileC[taskCount].length > 0
  736. "
  737. style="padding: 10px 0 25px 0"
  738. >
  739. <div
  740. class="vedioTimeBox"
  741. v-for="(vitem, vindex) in vChapterData[taskCount]"
  742. :key="vindex + '1'"
  743. >
  744. <div class="navListItem" v-if="vitem.type == 2">
  745. <div
  746. @click="lookVedio(vitem.url, vindex)"
  747. class="navText"
  748. :class="isClickNav == vindex ? 'isClickNav' : ''"
  749. >
  750. <span v-if="vitem.text">{{ vitem.text }}-</span
  751. >{{ vitem.name }}
  752. </div>
  753. <div class="downIcon" @click="downloadFile2(vitem)">
  754. <img
  755. src="../../assets/icon/newIcon/down.png"
  756. alt
  757. />
  758. </div>
  759. </div>
  760. <div class="navListItem" v-if="vitem.type == 6">
  761. <div
  762. @click="lookText(taskCount, vindex)"
  763. class="navText"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.name }}.doc
  767. </div>
  768. <div
  769. class="downIcon"
  770. @click="checkFileFull1(vitem.type, vitem)"
  771. >
  772. <img
  773. src="../../assets/icon/newIcon/allScreen.png"
  774. alt
  775. />
  776. </div>
  777. </div>
  778. <div
  779. class="navListItem"
  780. v-if="vitem.type == 8 || vitem.type == 14"
  781. >
  782. <div
  783. @click="doUrl(vitem.url, vindex)"
  784. class="navText"
  785. :class="isClickNav == vindex ? 'isClickNav' : ''"
  786. >
  787. {{ vitem.title ? vitem.title : vitem.url }}
  788. </div>
  789. <div
  790. class="downIcon"
  791. @click="checkFileFull1(vitem.type, vitem)"
  792. >
  793. <img
  794. src="../../assets/icon/newIcon/allScreen.png"
  795. alt
  796. />
  797. </div>
  798. </div>
  799. <div class="navListItem" v-if="vitem.type == 3">
  800. <div
  801. @click="downFile(vitem, vindex)"
  802. class="navText"
  803. :class="isClickNav == vindex ? 'isClickNav' : ''"
  804. >
  805. <span v-if="vitem.text">{{ vitem.text }}-</span
  806. >{{ vitem.name }}
  807. </div>
  808. <div
  809. class="downIcon"
  810. @click="checkFileFull1(vitem.type, vitem)"
  811. >
  812. <img
  813. src="../../assets/icon/newIcon/allScreen.png"
  814. alt
  815. />
  816. </div>
  817. <div class="downIcon" @click="downloadFile2(vitem)">
  818. <img
  819. src="../../assets/icon/newIcon/down.png"
  820. alt
  821. />
  822. </div>
  823. </div>
  824. <div class="navListItem" v-if="vitem.type == 12">
  825. <div class="navText" @click="downloadFile2(vitem)">
  826. <span v-if="vitem.text">{{ vitem.text }}-</span
  827. >{{ vitem.name }}
  828. </div>
  829. <div
  830. class="downIcon"
  831. @click="checkFileFull1(vitem.type, vitem)"
  832. >
  833. <img
  834. src="../../assets/icon/newIcon/allScreen.png"
  835. alt
  836. />
  837. </div>
  838. <div class="downIcon" @click="downloadFile2(vitem)">
  839. <img
  840. src="../../assets/icon/newIcon/down.png"
  841. alt
  842. />
  843. </div>
  844. </div>
  845. <div class="navListItem" v-if="vitem.type == 13">
  846. <div
  847. class="navText"
  848. @click="checkPhoto(vitem, vindex)"
  849. :class="isClickNav == vindex ? 'isClickNav' : ''"
  850. >
  851. {{ vitem.name }}
  852. </div>
  853. <div class="downIcon" @click="downloadFile2(vitem)">
  854. <img
  855. src="../../assets/icon/newIcon/down.png"
  856. alt
  857. />
  858. </div>
  859. </div>
  860. </div>
  861. <div
  862. class="fileC_box"
  863. v-if="fileC[taskCount].length > 0"
  864. >
  865. <div class="fileC_title">以下文件不支持预览</div>
  866. <div
  867. class="vedioTimeBox"
  868. v-for="(vitem, vindex) in fileC[taskCount]"
  869. :key="vindex + '1'"
  870. >
  871. <div class="navListItem" v-if="vitem.type == 12">
  872. <div class="navText" style="color: #acb4bf">
  873. <span v-if="vitem.text">{{ vitem.text }}-</span
  874. >{{ vitem.name }}
  875. </div>
  876. <div
  877. class="downIcon"
  878. @click="downloadFile2(vitem)"
  879. >
  880. <img
  881. src="../../assets/icon/newIcon/down.png"
  882. alt
  883. />
  884. </div>
  885. </div>
  886. </div>
  887. </div>
  888. </div>
  889. </div>
  890. </div>
  891. </div>
  892. </div>
  893. <div style="width: calc(100% - 315px)">
  894. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  895. <!-- <el-button
  896. type="primary"
  897. class="newButton"
  898. @click="checkFileFull(showType, pptImgUrl1)"
  899. >全屏查看</el-button
  900. >
  901. <el-button
  902. type="primary"
  903. class="newButton"
  904. @click="downloadFile(pptImgUrl1)"
  905. v-if="showType != 2"
  906. >文件下载</el-button
  907. > -->
  908. <el-button
  909. class="newButton"
  910. v-if="
  911. showType == 2 &&
  912. pptImgUrl1.indexOf(
  913. 'https://view.officeapps.live.com/op/view.aspx?src='
  914. ) == -1
  915. "
  916. type="primary"
  917. @click="openLine(pptImgUrl1)"
  918. >打开链接
  919. </el-button>
  920. </div>
  921. <!-- <div
  922. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  923. v-if="showType == 1"
  924. >
  925. <el-button
  926. type="primary"
  927. class="newButton"
  928. @click="checkFileFull(showType, text)"
  929. >全屏查看</el-button
  930. >
  931. </div> -->
  932. </div>
  933. </div>
  934. </div>
  935. <div class="student_body" v-resize="resize">
  936. <div
  937. class="vedioBox"
  938. :style="{
  939. borderRadius:
  940. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  941. .taskDetail == '' &&
  942. vChapterData[taskCount].length == 0 &&
  943. fileC[taskCount].length == 0
  944. ? '0 0 20px 20px'
  945. : '20px'
  946. }"
  947. v-if="
  948. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  949. .toolChoose[0].tool &&
  950. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  951. .toolChoose[0].tool.length > 0
  952. "
  953. >
  954. <div
  955. class="toolHeng2"
  956. style="position: relative"
  957. v-if="
  958. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  959. .toolChoose[0].tool &&
  960. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  961. .toolChoose[0].tool.length &&
  962. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  963. .toolChoose[0].tool.length > 0
  964. "
  965. >
  966. <div class="workNav">工作区</div>
  967. <div
  968. class="filebox"
  969. style="flex-wrap: nowrap"
  970. v-for="(tool, toolIndex) in chapInfoList[courseType]
  971. .chapterInfo[0].taskJson[taskCount].toolChoose"
  972. :key="toolIndex"
  973. >
  974. <div class="bzBox">
  975. <div class="yCss"></div>
  976. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  977. 工具{{ toolIndex + 1 }}
  978. </div>
  979. <div
  980. v-if="timeWorkList[toolIndex].length > 0"
  981. style="margin: 0 0 0 10px"
  982. >
  983. {{
  984. timeWorkList[toolIndex][0].time
  985. ? "时间:" + timeWorkList[toolIndex][0].time
  986. : ""
  987. }}
  988. </div>
  989. </div>
  990. <div class="toolBox">
  991. <div>
  992. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  993. :key="indexTool"-->
  994. <!-- <div class="iframeBox">
  995. <div
  996. class="addPoint isBorder"
  997. v-for="(tooC, toolCIndex) in tool.tool"
  998. :key="toolCIndex"
  999. >
  1000. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1001. <div
  1002. class="iframeName"
  1003. >
  1004. 电子白板
  1005. </div>
  1006. <iframe
  1007. src="https://iwb.cocorobo.cn/"
  1008. ref="whiteBoard"
  1009. ></iframe>
  1010. </div>
  1011. </div>
  1012. </div>-->
  1013. <div class="noiframeBox">
  1014. <div
  1015. class="addPoint"
  1016. v-for="(tooC, toolCIndex) in tool.tool"
  1017. :key="toolCIndex"
  1018. >
  1019. <div v-if="tooC == 1">
  1020. <img
  1021. src="../../assets/icon/secondToolList/whiteBoard.png"
  1022. alt
  1023. @click="addTools(tooC, toolIndex, taskCount)"
  1024. />
  1025. <div style="margin: 5px 0">电子白板</div>
  1026. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1027. style="position: absolute;right: 33px;top: -30px;">
  1028. 投影
  1029. </div>
  1030. </div>
  1031. <div v-if="tooC == 3">
  1032. <img
  1033. src="../../assets/icon/secondToolList/mindMapping.png"
  1034. alt
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. />
  1037. <div style="margin: 5px 0">思维导图</div>
  1038. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1039. style="position: absolute;right: 33px;top: -30px;">
  1040. 投影
  1041. </div>
  1042. </div>
  1043. <div v-if="tooC == 6">
  1044. <img
  1045. src="../../assets/icon/secondToolList/doc.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">协同文档</div>
  1050. </div>
  1051. <div v-if="tooC == 7">
  1052. <img
  1053. src="../../assets/icon/secondToolList/mindNetwork.png"
  1054. alt
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. />
  1057. <div style="margin: 5px 0">思维网格</div>
  1058. <!-- && worksStudent[toolIndex].length>0 -->
  1059. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1060. style="position: absolute;right: 33px;top: -30px;">
  1061. 投影
  1062. </div>
  1063. </div>
  1064. <div v-if="tooC == 8">
  1065. <img
  1066. src="../../assets/icon/secondToolList/library.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">素材库</div>
  1071. </div>
  1072. <div v-if="tooC == 17">
  1073. <img
  1074. src="../../assets/icon/secondToolList/library.png"
  1075. alt
  1076. @click="addTools(tooC, toolIndex, taskCount)"
  1077. />
  1078. <div style="margin: 5px 0">学习资料</div>
  1079. </div>
  1080. <div v-if="tooC == 2">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/secondToolList/note.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">便签</div>
  1087. </div>
  1088. <div v-if="tooC == 4">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../../assets/icon/thirdToolList/ask.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">问卷调查</div>
  1095. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1096. style="position: absolute;right: 153px;top: -30px;">
  1097. 投影
  1098. </div>
  1099. <div
  1100. class="upload_toolBtn"
  1101. v-if="tType === '1'"
  1102. @click="
  1103. openStatisticalAnalysis(
  1104. tooC,
  1105. toolIndex,
  1106. taskCount,
  1107. 45
  1108. )
  1109. "
  1110. style="position: absolute;right: 33px;top: -30px;"
  1111. >
  1112. 统计分析
  1113. </div>
  1114. </div>
  1115. <div v-if="tooC == 45">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../../assets/icon/thirdToolList/choose.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">选择题</div>
  1122. <div
  1123. class="upload_toolBtn"
  1124. @click="
  1125. openChoseWorksDetailDialog(
  1126. tooC,
  1127. toolIndex,
  1128. taskCount,
  1129. 45
  1130. )
  1131. "
  1132. style="position: absolute;right: 33px;top: -30px;"
  1133. >
  1134. 投影
  1135. </div>
  1136. </div>
  1137. <!-- <div v-if="tooC == 5">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../../assets/icon/thirdToolList/score.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">量规评分</div>
  1144. </div> -->
  1145. <div v-if="tooC == 10">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../../assets/icon/thirdToolList/time.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">倒计时</div>
  1152. </div>
  1153. <div v-if="tooC == 15">
  1154. <img
  1155. @click="addTools(tooC, toolIndex, taskCount)"
  1156. src="../../assets/icon/thirdToolList/answer.png"
  1157. alt
  1158. />
  1159. <div style="margin: 5px 0">问答</div>
  1160. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1161. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1162. 投影
  1163. </div>
  1164. </div>
  1165. <div v-if="tooC == 26">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../../assets/icon/thirdToolList/courseDesign.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">课程设计</div>
  1172. </div>
  1173. <div v-if="tooC == 18">
  1174. <img
  1175. @click="addTools(tooC, toolIndex, taskCount)"
  1176. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1177. alt
  1178. />
  1179. <div style="margin: 5px 0">训练服务器</div>
  1180. </div>
  1181. <div v-if="tooC == 16">
  1182. <img
  1183. @click="addTools(tooC, toolIndex, taskCount)"
  1184. src="../../assets/icon/thirdToolList/work.png"
  1185. alt
  1186. />
  1187. <div style="margin: 5px 0">作业提交</div>
  1188. </div>
  1189. <div v-if="tooC == 50">
  1190. <img
  1191. @click="addTools(tooC, toolIndex, taskCount)"
  1192. src="../../assets/icon/thirdToolList/plwork.png"
  1193. alt
  1194. />
  1195. <div style="margin: 5px 0">批量上传</div>
  1196. </div>
  1197. <div v-if="tooC == 21">
  1198. <img
  1199. @click="addTools(tooC, toolIndex, taskCount)"
  1200. src="../../assets/icon/fourthToolList/program.png"
  1201. alt
  1202. />
  1203. <div style="margin: 5px 0">AIoT Blockly</div>
  1204. </div>
  1205. <!-- <div v-if="tooC == 22">
  1206. <img
  1207. @click="addTools(tooC, toolIndex, taskCount)"
  1208. src="../../assets/icon/fourthToolList/program.png"
  1209. alt
  1210. />
  1211. <div style="margin: 5px 0">AI体验</div>
  1212. </div> -->
  1213. <div v-if="tooC == 23">
  1214. <img
  1215. @click="addTools(tooC, toolIndex, taskCount)"
  1216. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1217. alt
  1218. />
  1219. <div style="margin: 5px 0">AI Python</div>
  1220. </div>
  1221. <div v-if="tooC == 24">
  1222. <img
  1223. @click="addTools(tooC, toolIndex, taskCount)"
  1224. src="../../assets/icon/fourthToolList/AIprogram.png"
  1225. alt
  1226. />
  1227. <div style="margin: 5px 0">AI Blockly</div>
  1228. </div>
  1229. <div v-if="tooC == 25">
  1230. <img
  1231. @click="addTools(tooC, toolIndex, taskCount)"
  1232. src="../../assets/icon/thirdToolList/evalua.png"
  1233. alt
  1234. />
  1235. <div style="margin: 5px 0">目标管理</div>
  1236. </div>
  1237. <div v-if="tooC == 31">
  1238. <img
  1239. @click="addTools(tooC, toolIndex, taskCount)"
  1240. src="../../assets/icon/secondToolList/networkPanel.png"
  1241. alt
  1242. />
  1243. <div style="margin: 5px 0">数学画板</div>
  1244. </div>
  1245. <div v-if="tooC == 28">
  1246. <img
  1247. @click="addTools(tooC, toolIndex, taskCount)"
  1248. src="../../assets/icon/secondToolList/translation.png"
  1249. alt
  1250. />
  1251. <div style="margin: 5px 0">翻译</div>
  1252. </div>
  1253. <div v-if="tooC == 37">
  1254. <img
  1255. @click="addTools(tooC, toolIndex, taskCount)"
  1256. src="../../assets/icon/secondToolList/mohe.png"
  1257. alt
  1258. />
  1259. <div style="margin: 5px 0">魔盒识字</div>
  1260. </div>
  1261. <div v-if="tooC == 38">
  1262. <img
  1263. @click="addTools(tooC, toolIndex, taskCount)"
  1264. src="../../assets/icon/secondToolList/24game.png"
  1265. alt
  1266. />
  1267. <div style="margin: 5px 0">24点</div>
  1268. </div>
  1269. <div v-if="tooC == 39">
  1270. <img
  1271. @click="addTools(tooC, toolIndex, taskCount)"
  1272. src="../../assets/icon/secondToolList/GeoGebra.png"
  1273. alt
  1274. />
  1275. <div style="margin: 5px 0">GeoGebra</div>
  1276. </div>
  1277. <div v-if="tooC == 32">
  1278. <img
  1279. @click="addTools(tooC, toolIndex, taskCount)"
  1280. src="../../assets/icon/thirdToolList/code.png"
  1281. alt
  1282. />
  1283. <div style="margin: 5px 0">源码编辑</div>
  1284. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1285. style="position: absolute;left: 110px;bottom: 30px;">
  1286. 上传文件
  1287. <input type="file" accept="*" style="display: none"
  1288. @change="beforeUpload1($event, 7, toolIndex)" />
  1289. </div> -->
  1290. </div>
  1291. <div v-if="tooC == 40">
  1292. <img
  1293. @click="addTools(tooC, toolIndex, taskCount)"
  1294. src="../../assets/icon/secondToolList/eval.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">个人评价</div>
  1298. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1299. style="position: absolute;right: 33px;top: -30px;">
  1300. 投影
  1301. </div>
  1302. </div>
  1303. <div v-if="tooC == 41">
  1304. <img
  1305. @click="addTools(tooC, toolIndex, taskCount)"
  1306. src="../../assets/icon/thirdToolList/select.png"
  1307. alt
  1308. />
  1309. <div style="margin: 5px 0">选择匹配</div>
  1310. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1311. style="position: absolute;right: 33px;top: -30px;">
  1312. 投影
  1313. </div>
  1314. </div>
  1315. <div v-if="tooC == 44">
  1316. <img
  1317. @click="addTools(tooC, toolIndex, taskCount)"
  1318. src="../../assets/icon/thirdToolList/hanClass.png"
  1319. alt
  1320. />
  1321. <div style="margin: 5px 0">汉字宫</div>
  1322. </div>
  1323. <div v-if="tooC == 47">
  1324. <img
  1325. @click="addTools(tooC, toolIndex, taskCount)"
  1326. src="../../assets/icon/fourthToolList/conSentences.png"
  1327. alt
  1328. />
  1329. <div style="margin: 5px 0">排序</div>
  1330. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1331. style="position: absolute;right: 33px;top: -30px;">
  1332. 投影
  1333. </div>
  1334. </div>
  1335. <div v-if="tooC == 48">
  1336. <img
  1337. @click="addTools(tooC, toolIndex, taskCount)"
  1338. src="../../assets/icon/fourthToolList/table.png"
  1339. alt
  1340. />
  1341. <div style="margin: 5px 0">表格</div>
  1342. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1343. style="position: absolute;right: 33px;top: -30px;">
  1344. 投影
  1345. </div>
  1346. </div>
  1347. <div v-if="tooC == 52">
  1348. <img
  1349. @click="addTools(tooC, toolIndex, taskCount)"
  1350. src="../../assets/icon/fourthToolList/text.png"
  1351. alt
  1352. />
  1353. <div style="margin: 5px 0">文档</div>
  1354. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1355. style="position: absolute;right: 33px;top: -30px;">
  1356. 投影
  1357. </div>
  1358. </div>
  1359. <div v-if="tooC == 49">
  1360. <img
  1361. @click="addTools(tooC, toolIndex, taskCount)"
  1362. src="../../assets/icon/fourthToolList/group.png"
  1363. alt
  1364. />
  1365. <div style="margin: 5px 0">学生分组</div>
  1366. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1367. style="position: absolute;right: 33px;top: -30px;">
  1368. 投影
  1369. </div>
  1370. </div>
  1371. <div v-if="tooC == 57">
  1372. <img
  1373. @click="addTools(tooC, toolIndex, taskCount)"
  1374. src="../../assets/icon/fourthToolList/cocopi.png"
  1375. alt
  1376. />
  1377. <div style="margin: 5px 0">CocoPi</div>
  1378. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1379. style="position: absolute;right: 33px;top: -30px;">
  1380. 投影
  1381. </div>
  1382. </div>
  1383. <div v-if="tooC == 58">
  1384. <img
  1385. @click="addTools(tooC, toolIndex, taskCount)"
  1386. src="../../assets/icon/fourthToolList/car.png"
  1387. alt
  1388. />
  1389. <div style="margin: 5px 0">模拟驾驶</div>
  1390. </div>
  1391. <div v-if="tooC == 59">
  1392. <img
  1393. @click="addTools(tooC, toolIndex, taskCount)"
  1394. src="../../assets/icon/fourthToolList/lineSearch.png"
  1395. alt
  1396. />
  1397. <div style="margin: 5px 0">路径搜索</div>
  1398. </div>
  1399. <div v-if="tooC == 60">
  1400. <img
  1401. @click="addTools(tooC, toolIndex, taskCount)"
  1402. src="../../assets/icon/fourthToolList/deepLearning.png"
  1403. alt
  1404. />
  1405. <div style="margin: 5px 0">深度学习</div>
  1406. </div>
  1407. <div v-if="tooC == 61">
  1408. <img
  1409. @click="addTools(tooC, toolIndex, taskCount)"
  1410. src="../../assets/icon/fourthToolList/allHistory.png"
  1411. alt
  1412. />
  1413. <div style="margin: 5px 0">全历史</div>
  1414. </div>
  1415. <div v-if="tooC == 62">
  1416. <img
  1417. @click="addTools(tooC, toolIndex, taskCount)"
  1418. src="../../assets/icon/fourthToolList/interVideo.png"
  1419. alt
  1420. />
  1421. <div style="margin: 5px 0">交互视频</div>
  1422. </div>
  1423. <div v-if="tooC == 63">
  1424. <img
  1425. @click="addTools(tooC, toolIndex, taskCount)"
  1426. src="../../assets/icon/fourthToolList/Wood.png"
  1427. alt
  1428. />
  1429. <div style="margin: 5px 0">海龟编程</div>
  1430. </div>
  1431. <div v-if="tooC == 71">
  1432. <img
  1433. @click="addTools(tooC, toolIndex, taskCount)"
  1434. src="../../assets/icon/fourthToolList/chatgpt.png"
  1435. alt
  1436. />
  1437. <div style="margin: 5px 0">AI智能体</div>
  1438. </div>
  1439. <div v-if="tooC == 65">
  1440. <img
  1441. @click="addTools(tooC, toolIndex, taskCount)"
  1442. src="../../assets/icon/firstToolList/pickPeople.png"
  1443. alt
  1444. />
  1445. <div style="margin: 5px 0">挑人</div>
  1446. </div>
  1447. <div v-if="tooC == 66">
  1448. <img
  1449. @click="addTools(tooC, toolIndex, taskCount)"
  1450. src="../../assets/icon/secondToolList/formulaEdi.png"
  1451. alt
  1452. />
  1453. <div style="margin: 5px 0">公式编辑</div>
  1454. </div>
  1455. <div v-if="tooC == 67">
  1456. <img
  1457. @click="addTools(tooC, toolIndex, taskCount)"
  1458. src="../../assets/icon/secondToolList/molStr.png"
  1459. alt
  1460. />
  1461. <div style="margin: 5px 0">分子结构</div>
  1462. </div>
  1463. <div v-if="tooC == 68">
  1464. <img
  1465. @click="addTools(tooC, toolIndex, taskCount)"
  1466. src="../../assets/icon/secondToolList/timeAxis.png"
  1467. alt
  1468. />
  1469. <div style="margin: 5px 0">时间轴</div>
  1470. </div>
  1471. <div v-if="tooC == 69">
  1472. <img
  1473. @click="addTools(tooC, toolIndex, taskCount)"
  1474. src="../../assets/icon/secondToolList/english.png"
  1475. alt
  1476. />
  1477. <div style="margin: 5px 0">英语写作</div>
  1478. </div>
  1479. <div v-if="tooC == 70">
  1480. <img
  1481. @click="addTools(tooC, toolIndex, taskCount)"
  1482. src="../../assets/icon/thirdToolList/englishVoice.png"
  1483. alt
  1484. />
  1485. <div style="margin: 5px 0">英语口语</div>
  1486. </div>
  1487. </div>
  1488. </div>
  1489. </div>
  1490. <div
  1491. class="tooldetail"
  1492. v-if="tool.toolDetail != ''"
  1493. :class="{
  1494. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1495. }"
  1496. >
  1497. <!-- <div class="toolTitle">工具描述</div> -->
  1498. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1499. <div
  1500. style="height:100%;"
  1501. v-html="contentConvent(tool.toolDetail)"
  1502. v-if="toolDetailIndex != toolIndex"
  1503. ></div>
  1504. <div v-else @click.stop="" style="height:100%;">
  1505. <textarea
  1506. @change="
  1507. () => {
  1508. $forceUpdate();
  1509. }
  1510. "
  1511. class="checkTextArea"
  1512. rows="3"
  1513. v-autoHeight="70"
  1514. type="text"
  1515. placeholder="请输入任务描述"
  1516. v-model="updateToolDetailInner"
  1517. ></textarea>
  1518. </div>
  1519. </div>
  1520. <el-button
  1521. type="primary"
  1522. v-if="tool.tool[0] == 32"
  1523. style="position: absolute; right: 30px; top: -45px"
  1524. @click="addImg($event)"
  1525. >上传作业<input
  1526. type="file"
  1527. accept="*"
  1528. style="display: none"
  1529. @change="beforeUpload1($event, 7, toolIndex)"
  1530. /></el-button>
  1531. <el-button
  1532. type="primary"
  1533. v-if="tool.tool[0] == 15"
  1534. style="position: absolute; right: 30px; top: -45px"
  1535. @click="openWordCloud(toolIndex)"
  1536. >生成词云</el-button
  1537. >
  1538. <el-button
  1539. type="primary"
  1540. v-if="
  1541. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1542. "
  1543. style="position: absolute; right: 30px; top: -45px"
  1544. @click="uploadWorks(toolIndex)"
  1545. >导出作业</el-button
  1546. >
  1547. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1548. position: absolute;
  1549. right: 30px;
  1550. transform: translateY(-130%);
  1551. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1552. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1553. </div>
  1554. <div
  1555. v-if="
  1556. tType &&
  1557. tType == 2 &&
  1558. !sIsOpen &&
  1559. tool.tool.indexOf(16) != -1
  1560. "
  1561. class="worksBox"
  1562. >
  1563. <div
  1564. class="zuoyeYulan"
  1565. v-if="workStudent[toolIndex].length > 0"
  1566. >
  1567. <span class="worksTitle">作业预览</span>
  1568. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1569. </div>
  1570. <div
  1571. class="worksDetailBox"
  1572. v-if="workStudent[toolIndex].length > 0"
  1573. >
  1574. <div
  1575. class="works"
  1576. style="
  1577. width: 200px;
  1578. height: 140px;
  1579. margin: 10px 10px 10px 0;
  1580. box-shadow: 0 0 6px 1px #dfdada;
  1581. "
  1582. v-for="(w, wIndex) in workStudent[toolIndex]"
  1583. :key="wIndex"
  1584. >
  1585. <div class="workImg" v-if="w.type == 0">
  1586. <img
  1587. :src="w.works"
  1588. @click="previewImg(w.works, w)"
  1589. alt
  1590. />
  1591. <div
  1592. class="answerScore"
  1593. v-if="w.score"
  1594. @click.stop="openScore(w)"
  1595. :class="{
  1596. rightW:
  1597. w.userid == userid || tType == 1 || tType == 4
  1598. }"
  1599. >
  1600. {{ JSON.parse(w.score).wScore }}分
  1601. </div>
  1602. <div
  1603. class="answerScore"
  1604. @click.stop="openScore(w)"
  1605. v-else-if="courseDetail.userid == userid"
  1606. :class="{
  1607. rightW:
  1608. w.userid == userid || tType == 1 || tType == 4
  1609. }"
  1610. >
  1611. 评分
  1612. </div>
  1613. <div
  1614. class="stuLookScore"
  1615. v-if="
  1616. w.userid == userid ||
  1617. (tType == 1 &&
  1618. courseDetail.state == 5 &&
  1619. ((chapInfoList[courseType].chapterInfo[0]
  1620. .taskJson[taskCount].eList &&
  1621. chapInfoList[courseType].chapterInfo[0]
  1622. .taskJson[taskCount].eList.length) ||
  1623. (tool.eList && tool.eList.length)))
  1624. "
  1625. >
  1626. <el-popover
  1627. placement="top"
  1628. width="318"
  1629. trigger="hover"
  1630. >
  1631. <markScore
  1632. :loading="AIloading[toolIndex][wIndex].loading"
  1633. :markScoreVisible="markScoreVisible"
  1634. :ref="`markSco${toolIndex}${wIndex}`"
  1635. @updateLoading="updateLoading"
  1636. @updateDocSco="updateDocSco"
  1637. @refreshOther="refreshOther"
  1638. @markScoreDig="markScoreDig"
  1639. :tool="tool"
  1640. :wIndex="wIndex"
  1641. :scoCon="w"
  1642. :toolIndex="toolIndex"
  1643. :key="refreshKey"
  1644. :stage="courseType"
  1645. :task="taskCount"
  1646. :scoTit="
  1647. chapInfoList[courseType].chapterInfo[0]
  1648. .taskJson[taskCount].eList
  1649. "
  1650. >
  1651. </markScore>
  1652. <div
  1653. @click="
  1654. markScoreDig2(
  1655. w.sName,
  1656. worksStudent,
  1657. w.userid,
  1658. toolIndex,
  1659. chapInfoList[courseType].chapterInfo[0]
  1660. .taskJson[taskCount].eList,
  1661. AIloading[toolIndex][wIndex].loading,
  1662. tool
  1663. )
  1664. "
  1665. slot="reference"
  1666. >
  1667. <span v-if="AIloading[toolIndex][wIndex].sco">
  1668. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1669. </span>
  1670. <span v-else>
  1671. 评分
  1672. </span>
  1673. </div>
  1674. </el-popover>
  1675. </div>
  1676. <img
  1677. class="deleteImg"
  1678. src="../../assets/deleteworks.png"
  1679. v-if="
  1680. w.userid == userid || tType == 1 || tType == 4
  1681. "
  1682. @click.stop="deleteWorks(w.wid)"
  1683. alt
  1684. />
  1685. </div>
  1686. <div class="workImg" v-if="w.type == 1">
  1687. <img :src="word" @click="openFile(w.works)" alt />
  1688. <div
  1689. class="answerScore"
  1690. v-if="w.score"
  1691. @click.stop="openScore(w)"
  1692. :class="{
  1693. rightW:
  1694. w.userid == userid || tType == 1 || tType == 4
  1695. }"
  1696. >
  1697. {{ JSON.parse(w.score).wScore }}分
  1698. </div>
  1699. <div
  1700. class="answerScore"
  1701. @click.stop="openScore(w)"
  1702. v-else-if="courseDetail.userid == userid"
  1703. :class="{
  1704. rightW:
  1705. w.userid == userid || tType == 1 || tType == 4
  1706. }"
  1707. >
  1708. 评分
  1709. </div>
  1710. <div
  1711. class="stuLookScore"
  1712. v-if="
  1713. w.userid == userid ||
  1714. (tType == 1 &&
  1715. courseDetail.state == 5 &&
  1716. ((chapInfoList[courseType].chapterInfo[0]
  1717. .taskJson[taskCount].eList &&
  1718. chapInfoList[courseType].chapterInfo[0]
  1719. .taskJson[taskCount].eList.length) ||
  1720. (tool.eList && tool.eList.length)))
  1721. "
  1722. >
  1723. <el-popover
  1724. placement="top"
  1725. width="318"
  1726. trigger="hover"
  1727. >
  1728. <markScore
  1729. :loading="AIloading[toolIndex][wIndex].loading"
  1730. :markScoreVisible="markScoreVisible"
  1731. :ref="`markSco${toolIndex}${wIndex}`"
  1732. @updateLoading="updateLoading"
  1733. @updateDocSco="updateDocSco"
  1734. @refreshOther="refreshOther"
  1735. @markScoreDig="markScoreDig"
  1736. :tool="tool"
  1737. :wIndex="wIndex"
  1738. :scoCon="w"
  1739. :toolIndex="toolIndex"
  1740. :key="refreshKey"
  1741. :stage="courseType"
  1742. :task="taskCount"
  1743. :scoTit="
  1744. chapInfoList[courseType].chapterInfo[0]
  1745. .taskJson[taskCount].eList
  1746. "
  1747. >
  1748. </markScore>
  1749. <div
  1750. @click="
  1751. markScoreDig2(
  1752. w.sName,
  1753. worksStudent,
  1754. w.userid,
  1755. toolIndex,
  1756. chapInfoList[courseType].chapterInfo[0]
  1757. .taskJson[taskCount].eList,
  1758. AIloading[toolIndex][wIndex].loading,
  1759. tool
  1760. )
  1761. "
  1762. slot="reference"
  1763. >
  1764. <span v-if="AIloading[toolIndex][wIndex].sco">
  1765. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1766. </span>
  1767. <span v-else>
  1768. 评分
  1769. </span>
  1770. </div>
  1771. </el-popover>
  1772. </div>
  1773. <img
  1774. class="deleteImg"
  1775. src="../../assets/deleteworks.png"
  1776. v-if="
  1777. w.userid == userid || tType == 1 || tType == 4
  1778. "
  1779. @click.stop="deleteWorks(w.wid)"
  1780. alt
  1781. />
  1782. </div>
  1783. <div class="workImg" v-if="w.type == 3">
  1784. <img
  1785. style="cursor: pointer"
  1786. :src="video"
  1787. @click="openVideo(w)"
  1788. alt
  1789. />
  1790. <div
  1791. class="answerScore"
  1792. v-if="w.score"
  1793. @click.stop="openScore(w)"
  1794. :class="{
  1795. rightW:
  1796. w.userid == userid || tType == 1 || tType == 4
  1797. }"
  1798. >
  1799. {{ JSON.parse(w.score).wScore }}分
  1800. </div>
  1801. <div
  1802. class="answerScore"
  1803. @click.stop="openScore(w)"
  1804. v-else-if="courseDetail.userid == userid"
  1805. :class="{
  1806. rightW:
  1807. w.userid == userid || tType == 1 || tType == 4
  1808. }"
  1809. >
  1810. 评分
  1811. </div>
  1812. <div
  1813. class="stuLookScore"
  1814. v-if="
  1815. w.userid == userid ||
  1816. (tType == 1 &&
  1817. courseDetail.state == 5 &&
  1818. ((chapInfoList[courseType].chapterInfo[0]
  1819. .taskJson[taskCount].eList &&
  1820. chapInfoList[courseType].chapterInfo[0]
  1821. .taskJson[taskCount].eList.length) ||
  1822. (tool.eList && tool.eList.length)))
  1823. "
  1824. >
  1825. <el-popover
  1826. placement="top"
  1827. width="318"
  1828. trigger="hover"
  1829. >
  1830. <markScore
  1831. :loading="AIloading[toolIndex][wIndex].loading"
  1832. :markScoreVisible="markScoreVisible"
  1833. :ref="`markSco${toolIndex}${wIndex}`"
  1834. @updateLoading="updateLoading"
  1835. @updateDocSco="updateDocSco"
  1836. @refreshOther="refreshOther"
  1837. @markScoreDig="markScoreDig"
  1838. :tool="tool"
  1839. :wIndex="wIndex"
  1840. :scoCon="w"
  1841. :toolIndex="toolIndex"
  1842. :key="refreshKey"
  1843. :stage="courseType"
  1844. :task="taskCount"
  1845. :scoTit="
  1846. chapInfoList[courseType].chapterInfo[0]
  1847. .taskJson[taskCount].eList
  1848. "
  1849. >
  1850. </markScore>
  1851. <div
  1852. @click="
  1853. markScoreDig2(
  1854. w.sName,
  1855. worksStudent,
  1856. w.userid,
  1857. toolIndex,
  1858. chapInfoList[courseType].chapterInfo[0]
  1859. .taskJson[taskCount].eList,
  1860. AIloading[toolIndex][wIndex].loading,
  1861. tool
  1862. )
  1863. "
  1864. slot="reference"
  1865. >
  1866. <span v-if="AIloading[toolIndex][wIndex].sco">
  1867. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1868. </span>
  1869. <span v-else>
  1870. 评分
  1871. </span>
  1872. </div>
  1873. </el-popover>
  1874. </div>
  1875. <img
  1876. class="deleteImg"
  1877. src="../../assets/deleteworks.png"
  1878. v-if="
  1879. w.userid == userid || tType == 1 || tType == 4
  1880. "
  1881. @click.stop="deleteWorks(w.wid)"
  1882. alt
  1883. />
  1884. </div>
  1885. <div class="workImg" v-if="w.type == 12">
  1886. <img
  1887. style="cursor: pointer"
  1888. :src="word2"
  1889. @click="downloadFile(w.works)"
  1890. alt
  1891. />
  1892. <div
  1893. class="answerScore"
  1894. v-if="w.score"
  1895. @click.stop="openScore(w)"
  1896. :class="{
  1897. rightW:
  1898. w.userid == userid || tType == 1 || tType == 4
  1899. }"
  1900. >
  1901. {{ JSON.parse(w.score).wScore }}分
  1902. </div>
  1903. <div
  1904. class="answerScore"
  1905. @click.stop="openScore(w)"
  1906. v-else-if="courseDetail.userid == userid"
  1907. :class="{
  1908. rightW:
  1909. w.userid == userid || tType == 1 || tType == 4
  1910. }"
  1911. >
  1912. 评分
  1913. </div>
  1914. <div
  1915. class="stuLookScore"
  1916. v-if="
  1917. w.userid == userid ||
  1918. (tType == 1 &&
  1919. courseDetail.state == 5 &&
  1920. ((chapInfoList[courseType].chapterInfo[0]
  1921. .taskJson[taskCount].eList &&
  1922. chapInfoList[courseType].chapterInfo[0]
  1923. .taskJson[taskCount].eList.length) ||
  1924. (tool.eList && tool.eList.length)))
  1925. "
  1926. >
  1927. <el-popover
  1928. placement="top"
  1929. width="318"
  1930. trigger="hover"
  1931. >
  1932. <markScore
  1933. :loading="AIloading[toolIndex][wIndex].loading"
  1934. :markScoreVisible="markScoreVisible"
  1935. :ref="`markSco${toolIndex}${wIndex}`"
  1936. @updateLoading="updateLoading"
  1937. @updateDocSco="updateDocSco"
  1938. @refreshOther="refreshOther"
  1939. @markScoreDig="markScoreDig"
  1940. :tool="tool"
  1941. :wIndex="wIndex"
  1942. :scoCon="w"
  1943. :toolIndex="toolIndex"
  1944. :key="refreshKey"
  1945. :stage="courseType"
  1946. :task="taskCount"
  1947. :scoTit="
  1948. chapInfoList[courseType].chapterInfo[0]
  1949. .taskJson[taskCount].eList
  1950. "
  1951. >
  1952. </markScore>
  1953. <div
  1954. @click="
  1955. markScoreDig2(
  1956. w.sName,
  1957. worksStudent,
  1958. w.userid,
  1959. toolIndex,
  1960. chapInfoList[courseType].chapterInfo[0]
  1961. .taskJson[taskCount].eList,
  1962. AIloading[toolIndex][wIndex].loading,
  1963. tool
  1964. )
  1965. "
  1966. slot="reference"
  1967. >
  1968. <span v-if="AIloading[toolIndex][wIndex].sco">
  1969. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1970. </span>
  1971. <span v-else>
  1972. 评分
  1973. </span>
  1974. </div>
  1975. </el-popover>
  1976. </div>
  1977. <img
  1978. class="deleteImg"
  1979. src="../../assets/deleteworks.png"
  1980. v-if="
  1981. w.userid == userid || tType == 1 || tType == 4
  1982. "
  1983. @click.stop="deleteWorks(w.wid)"
  1984. alt
  1985. />
  1986. </div>
  1987. <div class="worksName">
  1988. <div>{{ w.sName }}</div>
  1989. </div>
  1990. </div>
  1991. </div>
  1992. </div>
  1993. <div
  1994. v-if="
  1995. tType &&
  1996. tType == 2 &&
  1997. !sIsOpen &&
  1998. tool.tool.indexOf(32) != -1
  1999. "
  2000. class="worksBox"
  2001. >
  2002. <div
  2003. class="zuoyeYulan"
  2004. v-if="workStudent[toolIndex].length > 0"
  2005. >
  2006. <span class="worksTitle">作业预览</span>
  2007. </div>
  2008. <div
  2009. class="worksDetailBox"
  2010. v-if="workStudent[toolIndex].length > 0"
  2011. >
  2012. <div
  2013. class="works"
  2014. style="
  2015. width: 200px;
  2016. height: 140px;
  2017. margin: 10px 10px 10px 0;
  2018. box-shadow: 0 0 6px 1px #dfdada;
  2019. "
  2020. v-for="(w, wIndex) in workStudent[toolIndex]"
  2021. :key="wIndex"
  2022. >
  2023. <div class="workImg">
  2024. <img
  2025. :src="word2"
  2026. @click="downloadFile(w.works)"
  2027. alt
  2028. />
  2029. <div
  2030. class="answerScore"
  2031. v-if="w.score"
  2032. @click.stop="openScore(w)"
  2033. :class="{
  2034. rightW:
  2035. w.userid == userid || tType == 1 || tType == 4
  2036. }"
  2037. >
  2038. {{ JSON.parse(w.score).wScore }}分
  2039. </div>
  2040. <div
  2041. class="answerScore"
  2042. @click.stop="openScore(w)"
  2043. v-else-if="courseDetail.userid == userid"
  2044. :class="{
  2045. rightW:
  2046. w.userid == userid || tType == 1 || tType == 4
  2047. }"
  2048. >
  2049. 评分
  2050. </div>
  2051. <img
  2052. class="deleteImg"
  2053. src="../../assets/deleteworks.png"
  2054. v-if="
  2055. w.userid == userid || tType == 1 || tType == 4
  2056. "
  2057. @click.stop="deleteWorks(w.wid)"
  2058. alt
  2059. />
  2060. </div>
  2061. <div class="worksName">
  2062. <div>{{ w.sName }}</div>
  2063. </div>
  2064. </div>
  2065. </div>
  2066. </div>
  2067. <div
  2068. v-if="
  2069. tType &&
  2070. tType == 2 &&
  2071. !sIsOpen &&
  2072. tool.tool.indexOf(57) != -1
  2073. "
  2074. class="worksBox"
  2075. >
  2076. <div
  2077. class="zuoyeYulan"
  2078. v-if="workStudent[toolIndex].length > 0"
  2079. >
  2080. <span class="worksTitle">作业预览</span>
  2081. </div>
  2082. <div
  2083. class="worksDetailBox"
  2084. v-if="workStudent[toolIndex].length > 0"
  2085. >
  2086. <div
  2087. class="works"
  2088. style="
  2089. width: 200px;
  2090. height: 140px;
  2091. margin: 10px 10px 10px 0;
  2092. box-shadow: 0 0 6px 1px #dfdada;
  2093. "
  2094. v-for="(w, wIndex) in workStudent[toolIndex]"
  2095. :key="wIndex"
  2096. >
  2097. <div class="workImg">
  2098. <img
  2099. :src="word2"
  2100. @click="downloadFile(w.works)"
  2101. v-if="w.type == 12"
  2102. alt
  2103. />
  2104. <img
  2105. :src="word2"
  2106. @click="
  2107. openCocoPi(57, toolIndex, w.userid, w.sName)
  2108. "
  2109. v-else-if="w.type == 15"
  2110. alt
  2111. />
  2112. <div
  2113. class="answerScore"
  2114. v-if="w.score"
  2115. @click.stop="openScore(w)"
  2116. :class="{
  2117. rightW:
  2118. w.userid == userid || tType == 1 || tType == 4
  2119. }"
  2120. >
  2121. {{ JSON.parse(w.score).wScore }}分
  2122. </div>
  2123. <div
  2124. class="answerScore"
  2125. @click.stop="openScore(w)"
  2126. v-else-if="courseDetail.userid == userid"
  2127. :class="{
  2128. rightW:
  2129. w.userid == userid || tType == 1 || tType == 4
  2130. }"
  2131. >
  2132. 评分
  2133. </div>
  2134. <img
  2135. class="deleteImg"
  2136. src="../../assets/deleteworks.png"
  2137. v-if="
  2138. w.userid == userid || tType == 1 || tType == 4
  2139. "
  2140. @click.stop="deleteWorks(w.wid)"
  2141. alt
  2142. />
  2143. </div>
  2144. <div class="worksName">
  2145. <div>{{ w.sName }}</div>
  2146. </div>
  2147. </div>
  2148. </div>
  2149. </div>
  2150. <div
  2151. v-if="
  2152. tType &&
  2153. tType == 2 &&
  2154. !sIsOpen &&
  2155. tool.tool.indexOf(4) != -1
  2156. "
  2157. class="worksBox"
  2158. >
  2159. <div
  2160. class="zuoyeYulan"
  2161. v-if="workStudent[toolIndex].length > 0"
  2162. >
  2163. <span class="worksTitle">作业预览</span>
  2164. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2165. </div>
  2166. <div
  2167. class="worksDetailBox"
  2168. v-if="workStudent[toolIndex].length > 0"
  2169. >
  2170. <div
  2171. class="isWorksName2"
  2172. v-for="(w, wIndex) in workStudent[toolIndex]"
  2173. :key="wIndex"
  2174. @click="
  2175. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2176. "
  2177. >
  2178. {{ w.sName }}
  2179. <img
  2180. class="deleteImg deleteImg2"
  2181. src="../../assets/deleteworks.png"
  2182. v-if="w.userid == userid || tType == 1 || tType == 4"
  2183. @click.stop="deleteWorks(w.wid)"
  2184. alt
  2185. />
  2186. </div>
  2187. <!-- <div
  2188. class="works"
  2189. style="
  2190. width: 200px;
  2191. height: 140px;
  2192. border-radius: 10px;
  2193. box-shadow: 0 0 6px 1px #dfdada;
  2194. overflow: hidden;
  2195. "
  2196. v-for="(w, wIndex) in workStudent[toolIndex]"
  2197. :key="wIndex"
  2198. >
  2199. <div class="workImg">
  2200. <img
  2201. src="../../assets/icon/works/noImg.png"
  2202. @click="
  2203. openTools(
  2204. 4,
  2205. toolIndex,
  2206. taskCount,
  2207. w.works,
  2208. w.sName
  2209. )
  2210. "
  2211. alt
  2212. />
  2213. </div>
  2214. <div class="worksName">
  2215. <div>{{ w.sName }}</div>
  2216. <div>{{ w.time }}</div>
  2217. </div>
  2218. </div> -->
  2219. </div>
  2220. </div>
  2221. <div
  2222. v-if="
  2223. tType &&
  2224. ((tType == 2 && sIsOpen == true) ||
  2225. tType == 1 ||
  2226. tType == 4) &&
  2227. tool.tool.indexOf(62) != -1
  2228. "
  2229. class="worksBox"
  2230. >
  2231. <div
  2232. class="zuoyeYulan"
  2233. v-if="
  2234. worksStudent.length &&
  2235. worksStudent[toolIndex].length > 0
  2236. "
  2237. >
  2238. <div class="worksTop">
  2239. <div>作业预览</div>
  2240. <div
  2241. class="corOpen"
  2242. @click="contract(toolIndex)"
  2243. v-if="
  2244. isCloseList[toolIndex].isCloseBoolean &&
  2245. isCloseList[toolIndex].isClose == 0
  2246. "
  2247. >
  2248. 折叠
  2249. </div>
  2250. <div
  2251. class="corOpen"
  2252. @click="contract(toolIndex)"
  2253. v-if="isCloseList[toolIndex].isClose == 1"
  2254. >
  2255. 展开
  2256. </div>
  2257. </div>
  2258. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2259. </div>
  2260. <div>
  2261. <div
  2262. :id="'tool-' + toolIndex"
  2263. :style="{
  2264. height:
  2265. isCloseList[toolIndex].isClose == 1
  2266. ? retrnToolHeight('tool-' + toolIndex)
  2267. : 'auto',
  2268. overflow:
  2269. isCloseList[toolIndex].isClose == 1
  2270. ? 'hidden'
  2271. : 'unset'
  2272. }"
  2273. class="worksDetailBox"
  2274. v-if="
  2275. worksStudent.length &&
  2276. worksStudent[toolIndex].length > 0
  2277. "
  2278. >
  2279. <div
  2280. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2281. :key="wIndex"
  2282. class="isWorksName2"
  2283. @click="
  2284. openTools(
  2285. 62,
  2286. toolIndex,
  2287. taskCount,
  2288. w.works,
  2289. w.sName
  2290. )
  2291. "
  2292. >
  2293. {{ w.sName }}
  2294. <img
  2295. class="deleteImg deleteImg2"
  2296. src="../../assets/deleteworks.png"
  2297. v-if="
  2298. w.userid == userid || tType == 1 || tType == 4
  2299. "
  2300. @click.stop="deleteWorks(w.wid)"
  2301. alt
  2302. />
  2303. </div>
  2304. </div>
  2305. </div>
  2306. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2307. 未提交
  2308. </div>
  2309. <div
  2310. class="noWorksS"
  2311. v-if="noWorksS && noWorksS[toolIndex].length"
  2312. >
  2313. <div
  2314. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2315. :key="sIndex"
  2316. class="noWorksName"
  2317. >
  2318. <el-tooltip
  2319. effect="dark"
  2320. :content="s.student"
  2321. placement="top"
  2322. >
  2323. <span>{{ s.student }}</span>
  2324. </el-tooltip>
  2325. </div>
  2326. </div>
  2327. </div>
  2328. <div
  2329. v-if="
  2330. tType &&
  2331. tType == 2 &&
  2332. !sIsOpen &&
  2333. tool.tool.indexOf(62) != -1
  2334. "
  2335. class="worksBox"
  2336. >
  2337. <div
  2338. class="zuoyeYulan"
  2339. v-if="workStudent[toolIndex].length > 0"
  2340. >
  2341. <span class="worksTitle">作业预览</span>
  2342. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2343. </div>
  2344. <div
  2345. class="worksDetailBox"
  2346. v-if="workStudent[toolIndex].length > 0"
  2347. >
  2348. <div
  2349. class="isWorksName2"
  2350. v-for="(w, wIndex) in workStudent[toolIndex]"
  2351. :key="wIndex"
  2352. @click="
  2353. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2354. "
  2355. >
  2356. {{ w.sName }}
  2357. <img
  2358. class="deleteImg deleteImg2"
  2359. src="../../assets/deleteworks.png"
  2360. v-if="w.userid == userid || tType == 1 || tType == 4"
  2361. @click.stop="deleteWorks(w.wid)"
  2362. alt
  2363. />
  2364. </div>
  2365. </div>
  2366. </div>
  2367. <div
  2368. v-if="
  2369. tType &&
  2370. tType == 2 &&
  2371. !sIsOpen &&
  2372. tool.tool.indexOf(45) != -1
  2373. "
  2374. class="worksBox"
  2375. >
  2376. <div
  2377. class="zuoyeYulan"
  2378. v-if="workStudent[toolIndex].length > 0"
  2379. >
  2380. <span class="worksTitle">作业预览</span>
  2381. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2382. </div>
  2383. <div
  2384. class="worksDetailBox"
  2385. v-if="workStudent[toolIndex].length > 0"
  2386. >
  2387. <div
  2388. class="isWorksName2"
  2389. v-for="(w, wIndex) in workStudent[toolIndex]"
  2390. :key="wIndex"
  2391. @click="
  2392. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2393. "
  2394. >
  2395. {{ w.sName }}
  2396. <img
  2397. class="deleteImg deleteImg2"
  2398. src="../../assets/deleteworks.png"
  2399. v-if="w.userid == userid || tType == 1 || tType == 4"
  2400. @click.stop="deleteWorks(w.wid)"
  2401. alt
  2402. />
  2403. </div>
  2404. </div>
  2405. </div>
  2406. <div
  2407. v-if="
  2408. tType &&
  2409. tType == 2 &&
  2410. !sIsOpen &&
  2411. tool.tool.indexOf(69) != -1
  2412. "
  2413. class="worksBox"
  2414. >
  2415. <div
  2416. class="zuoyeYulan"
  2417. v-if="workStudent[toolIndex].length > 0"
  2418. >
  2419. <span class="worksTitle">作业预览</span>
  2420. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2421. </div>
  2422. <div
  2423. class="worksDetailBox"
  2424. v-if="workStudent[toolIndex].length > 0"
  2425. >
  2426. <div
  2427. class="isWorksName2"
  2428. v-for="(w, wIndex) in workStudent[toolIndex]"
  2429. :key="wIndex"
  2430. @click="
  2431. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2432. "
  2433. >
  2434. {{ w.sName }}
  2435. <img
  2436. class="deleteImg deleteImg2"
  2437. src="../../assets/deleteworks.png"
  2438. v-if="w.userid == userid || tType == 1 || tType == 4"
  2439. @click.stop="deleteWorks(w.wid)"
  2440. alt
  2441. />
  2442. </div>
  2443. </div>
  2444. </div>
  2445. <div
  2446. v-if="
  2447. tType &&
  2448. tType == 2 &&
  2449. !sIsOpen &&
  2450. tool.tool.indexOf(15) != -1
  2451. "
  2452. class="worksBox"
  2453. >
  2454. <div
  2455. class="zuoyeYulan"
  2456. v-if="workStudent[toolIndex].length > 0"
  2457. >
  2458. <span class="worksTitle">作业预览</span>
  2459. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2460. </div>
  2461. <div
  2462. class="worksDetailBox"
  2463. v-if="workStudent[toolIndex].length > 0"
  2464. >
  2465. <div
  2466. class="works"
  2467. v-for="(w, wIndex) in workStudent[toolIndex]"
  2468. :key="wIndex"
  2469. >
  2470. <div class="workImg">
  2471. <!-- <img
  2472. src="../../assets/icon/works/noImg.png"
  2473. @click="openTools(15, toolIndex, taskCount, w.works)"
  2474. alt=""
  2475. />-->
  2476. <div class="answerBg">
  2477. <!-- <div>{{ w.sName }}</div> -->
  2478. <el-tooltip
  2479. class="item"
  2480. effect="light"
  2481. :content="JSON.parse(w.works)[0].answer"
  2482. placement="top"
  2483. >
  2484. <div class="answerContent">
  2485. {{ JSON.parse(w.works)[0].answer }}
  2486. </div>
  2487. </el-tooltip>
  2488. <div
  2489. class="answerScore"
  2490. v-if="w.score"
  2491. @click.stop="openScore(w)"
  2492. :class="{
  2493. rightW:
  2494. w.userid == userid || tType == 1 || tType == 4
  2495. }"
  2496. >
  2497. {{ JSON.parse(w.score).wScore }}分
  2498. </div>
  2499. <div
  2500. class="answerScore"
  2501. @click.stop="openScore(w)"
  2502. v-else-if="courseDetail.userid == userid"
  2503. :class="{
  2504. rightW:
  2505. w.userid == userid || tType == 1 || tType == 4
  2506. }"
  2507. >
  2508. 评分
  2509. </div>
  2510. <img
  2511. class="deleteImg"
  2512. src="../../assets/deleteworks.png"
  2513. v-if="
  2514. w.userid == userid || tType == 1 || tType == 4
  2515. "
  2516. @click.stop="deleteWorks(w.wid)"
  2517. alt
  2518. />
  2519. </div>
  2520. <div class="comment">
  2521. <div class="worksName">
  2522. <div>{{ w.sName }}</div>
  2523. </div>
  2524. </div>
  2525. </div>
  2526. </div>
  2527. </div>
  2528. </div>
  2529. <div
  2530. v-if="
  2531. tType &&
  2532. tType == 2 &&
  2533. !sIsOpen &&
  2534. tool.tool.indexOf(1) != -1
  2535. "
  2536. class="worksBox"
  2537. >
  2538. <div
  2539. class="zuoyeYulan"
  2540. v-if="workStudent[toolIndex].length > 0"
  2541. >
  2542. <span class="worksTitle">作业预览</span>
  2543. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2544. </div>
  2545. <div
  2546. class="worksDetailBox"
  2547. v-if="workStudent[toolIndex].length > 0"
  2548. >
  2549. <div
  2550. class="works"
  2551. style="
  2552. width: 200px;
  2553. height: 140px;
  2554. margin: 10px 10px 10px 0;
  2555. box-shadow: 0 0 6px 1px #dfdada;
  2556. "
  2557. v-for="(w, wIndex) in workStudent[toolIndex]"
  2558. :key="wIndex"
  2559. >
  2560. <div class="workImg">
  2561. <img
  2562. :src="w.works"
  2563. @click="previewImg(w.works, w)"
  2564. alt
  2565. />
  2566. <div
  2567. class="answerScore"
  2568. v-if="w.score"
  2569. @click.stop="openScore(w)"
  2570. :class="{
  2571. rightW:
  2572. w.userid == userid || tType == 1 || tType == 4
  2573. }"
  2574. >
  2575. {{ JSON.parse(w.score).wScore }}分
  2576. </div>
  2577. <div
  2578. class="answerScore"
  2579. @click.stop="openScore(w)"
  2580. v-else-if="courseDetail.userid == userid"
  2581. :class="{
  2582. rightW:
  2583. w.userid == userid || tType == 1 || tType == 4
  2584. }"
  2585. >
  2586. 评分
  2587. </div>
  2588. <div
  2589. class="stuLookScore"
  2590. v-if="
  2591. w.userid == userid ||
  2592. (tType == 1 &&
  2593. courseDetail.state == 5 &&
  2594. ((chapInfoList[courseType].chapterInfo[0]
  2595. .taskJson[taskCount].eList &&
  2596. chapInfoList[courseType].chapterInfo[0]
  2597. .taskJson[taskCount].eList.length) ||
  2598. (tool.eList && tool.eList.length)))
  2599. "
  2600. >
  2601. <el-popover
  2602. placement="top"
  2603. width="318"
  2604. trigger="hover"
  2605. >
  2606. <markScore
  2607. :loading="AIloading[toolIndex][wIndex].loading"
  2608. :markScoreVisible="markScoreVisible"
  2609. :ref="`markSco${toolIndex}${wIndex}`"
  2610. @updateLoading="updateLoading"
  2611. @updateDocSco="updateDocSco"
  2612. @refreshOther="refreshOther"
  2613. @markScoreDig="markScoreDig"
  2614. :tool="tool"
  2615. :wIndex="wIndex"
  2616. :scoCon="w"
  2617. :toolIndex="toolIndex"
  2618. :key="refreshKey"
  2619. :stage="courseType"
  2620. :task="taskCount"
  2621. :scoTit="
  2622. chapInfoList[courseType].chapterInfo[0]
  2623. .taskJson[taskCount].eList
  2624. "
  2625. >
  2626. </markScore>
  2627. <div
  2628. @click="
  2629. markScoreDig2(
  2630. w.sName,
  2631. worksStudent,
  2632. w.userid,
  2633. toolIndex,
  2634. chapInfoList[courseType].chapterInfo[0]
  2635. .taskJson[taskCount].eList,
  2636. AIloading[toolIndex][wIndex].loading,
  2637. tool
  2638. )
  2639. "
  2640. slot="reference"
  2641. >
  2642. <span v-if="AIloading[toolIndex][wIndex].sco">
  2643. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2644. </span>
  2645. <span v-else>
  2646. 评分
  2647. </span>
  2648. </div>
  2649. </el-popover>
  2650. </div>
  2651. <img
  2652. class="deleteImg"
  2653. src="../../assets/deleteworks.png"
  2654. v-if="
  2655. w.userid == userid || tType == 1 || tType == 4
  2656. "
  2657. @click.stop="deleteWorks(w.wid)"
  2658. alt
  2659. />
  2660. </div>
  2661. <div class="worksName">
  2662. <div>{{ w.sName }}</div>
  2663. </div>
  2664. </div>
  2665. </div>
  2666. </div>
  2667. <div
  2668. v-if="
  2669. tType &&
  2670. tType == 2 &&
  2671. !sIsOpen &&
  2672. tool.tool.indexOf(3) != -1
  2673. "
  2674. class="worksBox"
  2675. >
  2676. <div
  2677. class="zuoyeYulan"
  2678. v-if="workStudent[toolIndex].length > 0"
  2679. >
  2680. <span class="worksTitle">作业预览</span>
  2681. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2682. </div>
  2683. <div
  2684. class="worksDetailBox"
  2685. v-if="workStudent[toolIndex].length > 0"
  2686. >
  2687. <div
  2688. class="works"
  2689. style="
  2690. width: 200px;
  2691. height: 140px;
  2692. margin: 10px 10px 10px 0;
  2693. box-shadow: 0 0 6px 1px #dfdada;
  2694. "
  2695. v-for="(w, wIndex) in workStudent[toolIndex]"
  2696. :key="wIndex"
  2697. >
  2698. <div class="workImg">
  2699. <img
  2700. :src="w.works"
  2701. @click="previewImg(w.works, w)"
  2702. alt
  2703. />
  2704. <div
  2705. class="answerScore"
  2706. v-if="w.score"
  2707. @click.stop="openScore(w)"
  2708. :class="{
  2709. rightW:
  2710. w.userid == userid || tType == 1 || tType == 4
  2711. }"
  2712. >
  2713. {{ JSON.parse(w.score).wScore }}分
  2714. </div>
  2715. <div
  2716. class="answerScore"
  2717. @click.stop="openScore(w)"
  2718. v-else-if="courseDetail.userid == userid"
  2719. :class="{
  2720. rightW:
  2721. w.userid == userid || tType == 1 || tType == 4
  2722. }"
  2723. >
  2724. 评分
  2725. </div>
  2726. <div
  2727. class="stuLookScore"
  2728. v-if="
  2729. w.userid == userid ||
  2730. (tType == 1 &&
  2731. courseDetail.state == 5 &&
  2732. ((chapInfoList[courseType].chapterInfo[0]
  2733. .taskJson[taskCount].eList &&
  2734. chapInfoList[courseType].chapterInfo[0]
  2735. .taskJson[taskCount].eList.length) ||
  2736. (tool.eList && tool.eList.length)))
  2737. "
  2738. >
  2739. <el-popover
  2740. placement="top"
  2741. width="318"
  2742. trigger="hover"
  2743. >
  2744. <markScore
  2745. :loading="AIloading[toolIndex][wIndex].loading"
  2746. :markScoreVisible="markScoreVisible"
  2747. :ref="`markSco${toolIndex}${wIndex}`"
  2748. @updateLoading="updateLoading"
  2749. @updateDocSco="updateDocSco"
  2750. @refreshOther="refreshOther"
  2751. @markScoreDig="markScoreDig"
  2752. :tool="tool"
  2753. :wIndex="wIndex"
  2754. :scoCon="w"
  2755. :toolIndex="toolIndex"
  2756. :key="refreshKey"
  2757. :stage="courseType"
  2758. :task="taskCount"
  2759. :scoTit="
  2760. chapInfoList[courseType].chapterInfo[0]
  2761. .taskJson[taskCount].eList
  2762. "
  2763. >
  2764. </markScore>
  2765. <div
  2766. @click="
  2767. markScoreDig2(
  2768. w.sName,
  2769. worksStudent,
  2770. w.userid,
  2771. toolIndex,
  2772. chapInfoList[courseType].chapterInfo[0]
  2773. .taskJson[taskCount].eList,
  2774. AIloading[toolIndex][wIndex].loading,
  2775. tool
  2776. )
  2777. "
  2778. slot="reference"
  2779. >
  2780. <span v-if="AIloading[toolIndex][wIndex].sco">
  2781. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2782. </span>
  2783. <span v-else>
  2784. 评分
  2785. </span>
  2786. </div>
  2787. </el-popover>
  2788. </div>
  2789. <img
  2790. class="deleteImg"
  2791. src="../../assets/deleteworks.png"
  2792. v-if="
  2793. w.userid == userid || tType == 1 || tType == 4
  2794. "
  2795. @click.stop="deleteWorks(w.wid)"
  2796. alt
  2797. />
  2798. </div>
  2799. <div class="worksName">
  2800. <div>{{ w.sName }}</div>
  2801. </div>
  2802. </div>
  2803. </div>
  2804. </div>
  2805. <div
  2806. v-if="
  2807. tType &&
  2808. tType == 2 &&
  2809. !sIsOpen &&
  2810. tool.tool.indexOf(6) != -1
  2811. "
  2812. class="worksBox"
  2813. >
  2814. <div
  2815. class="zuoyeYulan"
  2816. v-if="workStudent[toolIndex].length > 0"
  2817. >
  2818. <span class="worksTitle">作业预览</span>
  2819. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2820. </div>
  2821. <div
  2822. class="worksDetailBox"
  2823. v-if="workStudent[toolIndex].length > 0"
  2824. >
  2825. <div
  2826. class="works"
  2827. style="
  2828. width: 200px;
  2829. height: 140px;
  2830. margin: 10px 10px 10px 0;
  2831. box-shadow: 0 0 6px 1px #dfdada;
  2832. "
  2833. v-for="(w, wIndex) in workStudent[toolIndex]"
  2834. :key="wIndex"
  2835. >
  2836. <div class="workImg">
  2837. <img
  2838. :src="w.works"
  2839. @click="previewImg(w.works, w)"
  2840. alt
  2841. />
  2842. <div
  2843. class="answerScore"
  2844. v-if="w.score"
  2845. @click.stop="openScore(w)"
  2846. :class="{
  2847. rightW:
  2848. w.userid == userid || tType == 1 || tType == 4
  2849. }"
  2850. >
  2851. {{ JSON.parse(w.score).wScore }}分
  2852. </div>
  2853. <div
  2854. class="answerScore"
  2855. @click.stop="openScore(w)"
  2856. v-else-if="courseDetail.userid == userid"
  2857. :class="{
  2858. rightW:
  2859. w.userid == userid || tType == 1 || tType == 4
  2860. }"
  2861. >
  2862. 评分
  2863. </div>
  2864. <img
  2865. class="deleteImg"
  2866. src="../../assets/deleteworks.png"
  2867. v-if="
  2868. w.userid == userid || tType == 1 || tType == 4
  2869. "
  2870. @click.stop="deleteWorks(w.wid)"
  2871. alt
  2872. />
  2873. </div>
  2874. <div class="worksName">
  2875. <div>{{ w.sName }}</div>
  2876. </div>
  2877. </div>
  2878. </div>
  2879. </div>
  2880. <div
  2881. v-if="
  2882. tType &&
  2883. tType == 2 &&
  2884. !sIsOpen &&
  2885. tool.tool.indexOf(7) != -1
  2886. "
  2887. class="worksBox"
  2888. >
  2889. <div
  2890. class="zuoyeYulan"
  2891. v-if="workStudent[toolIndex].length > 0"
  2892. >
  2893. <span class="worksTitle">作业预览</span>
  2894. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2895. </div>
  2896. <div
  2897. class="worksDetailBox"
  2898. v-if="workStudent[toolIndex].length > 0"
  2899. >
  2900. <div
  2901. class="works"
  2902. style="
  2903. width: 200px;
  2904. height: 140px;
  2905. margin: 10px 10px 10px 0;
  2906. box-shadow: 0 0 6px 1px #dfdada;
  2907. "
  2908. v-for="(w, wIndex) in workStudent[toolIndex]"
  2909. :key="wIndex"
  2910. >
  2911. <div class="workImg">
  2912. <img
  2913. :src="w.works"
  2914. @click="previewImg(w.works, w)"
  2915. alt
  2916. />
  2917. <div
  2918. class="answerScore"
  2919. v-if="w.score"
  2920. @click.stop="openScore(w)"
  2921. :class="{
  2922. rightW:
  2923. w.userid == userid || tType == 1 || tType == 4
  2924. }"
  2925. >
  2926. {{ JSON.parse(w.score).wScore }}分
  2927. </div>
  2928. <div
  2929. class="answerScore"
  2930. @click.stop="openScore(w)"
  2931. v-else-if="courseDetail.userid == userid"
  2932. :class="{
  2933. rightW:
  2934. w.userid == userid || tType == 1 || tType == 4
  2935. }"
  2936. >
  2937. 评分
  2938. </div>
  2939. <div
  2940. class="stuLookScore"
  2941. v-if="
  2942. w.userid == userid ||
  2943. (tType == 1 &&
  2944. courseDetail.state == 5 &&
  2945. ((chapInfoList[courseType].chapterInfo[0]
  2946. .taskJson[taskCount].eList &&
  2947. chapInfoList[courseType].chapterInfo[0]
  2948. .taskJson[taskCount].eList.length) ||
  2949. (tool.eList && tool.eList.length)))
  2950. "
  2951. >
  2952. <el-popover
  2953. placement="top"
  2954. width="318"
  2955. trigger="hover"
  2956. >
  2957. <markScore
  2958. :loading="AIloading[toolIndex][wIndex].loading"
  2959. :markScoreVisible="markScoreVisible"
  2960. :ref="`markSco${toolIndex}${wIndex}`"
  2961. @updateLoading="updateLoading"
  2962. @updateDocSco="updateDocSco"
  2963. @refreshOther="refreshOther"
  2964. @markScoreDig="markScoreDig"
  2965. :tool="tool"
  2966. :wIndex="wIndex"
  2967. :scoCon="w"
  2968. :toolIndex="toolIndex"
  2969. :key="refreshKey"
  2970. :stage="courseType"
  2971. :task="taskCount"
  2972. :scoTit="
  2973. chapInfoList[courseType].chapterInfo[0]
  2974. .taskJson[taskCount].eList
  2975. "
  2976. >
  2977. </markScore>
  2978. <div
  2979. @click="
  2980. markScoreDig2(
  2981. w.sName,
  2982. worksStudent,
  2983. w.userid,
  2984. toolIndex,
  2985. chapInfoList[courseType].chapterInfo[0]
  2986. .taskJson[taskCount].eList,
  2987. AIloading[toolIndex][wIndex].loading,
  2988. tool
  2989. )
  2990. "
  2991. slot="reference"
  2992. >
  2993. <span v-if="AIloading[toolIndex][wIndex].sco">
  2994. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2995. </span>
  2996. <span v-else>
  2997. 评分
  2998. </span>
  2999. </div>
  3000. </el-popover>
  3001. </div>
  3002. <img
  3003. class="deleteImg"
  3004. src="../../assets/deleteworks.png"
  3005. v-if="
  3006. w.userid == userid || tType == 1 || tType == 4
  3007. "
  3008. @click.stop="deleteWorks(w.wid)"
  3009. alt
  3010. />
  3011. </div>
  3012. <div class="worksName">
  3013. <div>{{ w.sName }}</div>
  3014. </div>
  3015. </div>
  3016. </div>
  3017. </div>
  3018. <div
  3019. v-if="
  3020. tType &&
  3021. tType == 2 &&
  3022. !sIsOpen &&
  3023. tool.tool.indexOf(26) != -1
  3024. "
  3025. class="worksBox"
  3026. >
  3027. <div
  3028. class="zuoyeYulan"
  3029. v-if="workStudent[toolIndex].length > 0"
  3030. >
  3031. <span class="worksTitle">作业预览</span>
  3032. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3033. </div>
  3034. <div
  3035. class="worksDetailBox"
  3036. v-if="workStudent[toolIndex].length > 0"
  3037. >
  3038. <div
  3039. class="works"
  3040. style="
  3041. width: 200px;
  3042. height: 140px;
  3043. margin: 10px 10px 10px 0;
  3044. box-shadow: 0 0 6px 1px #dfdada;
  3045. "
  3046. v-for="(w, wIndex) in workStudent[toolIndex]"
  3047. :key="wIndex"
  3048. >
  3049. <div class="workImg">
  3050. <img
  3051. :src="w.works"
  3052. @click="previewImg(w.works, w)"
  3053. alt
  3054. />
  3055. <img
  3056. class="deleteImg"
  3057. src="../../assets/deleteworks.png"
  3058. v-if="
  3059. w.userid == userid || tType == 1 || tType == 4
  3060. "
  3061. @click.stop="deleteWorks(w.wid)"
  3062. alt
  3063. />
  3064. </div>
  3065. <div class="worksName">
  3066. <div>{{ w.sName }}</div>
  3067. </div>
  3068. </div>
  3069. </div>
  3070. </div>
  3071. <div
  3072. v-if="
  3073. tType &&
  3074. ((tType == 2 && sIsOpen == true) ||
  3075. tType == 1 ||
  3076. tType == 4) &&
  3077. tool.tool.indexOf(16) != -1
  3078. "
  3079. class="worksBox"
  3080. >
  3081. <div
  3082. class="zuoyeYulan"
  3083. style="display: flex;justify-content: space-between;align-items: center;"
  3084. v-if="
  3085. (worksStudent.length &&
  3086. worksStudent[toolIndex].length > 0) ||
  3087. (courseGroup.group && courseGroup.group.length)
  3088. "
  3089. >
  3090. <div class="worksTop">
  3091. <div>作业预览</div>
  3092. <div
  3093. class="corOpen"
  3094. @click="contract(toolIndex)"
  3095. v-if="
  3096. isCloseList[toolIndex].isCloseBoolean &&
  3097. isCloseList[toolIndex].isClose == 0
  3098. "
  3099. >
  3100. 折叠
  3101. </div>
  3102. <div
  3103. class="corOpen"
  3104. @click="contract(toolIndex)"
  3105. v-if="isCloseList[toolIndex].isClose == 1"
  3106. >
  3107. 展开
  3108. </div>
  3109. </div>
  3110. <div
  3111. style="display: flex;"
  3112. v-if="
  3113. (courseDetail.userid == userid ||
  3114. (courseDetail.course_teacher &&
  3115. courseDetail.course_teacher.indexOf(userid) !=
  3116. -1)) &&
  3117. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3118. taskCount
  3119. ].eList &&
  3120. chapInfoList[courseType].chapterInfo[0].taskJson[
  3121. taskCount
  3122. ].eList.length) ||
  3123. (tool.eList && tool.eList.length)) &&
  3124. courseDetail.state == 5
  3125. "
  3126. >
  3127. <!-- <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"> -->
  3128. <div
  3129. style="margin-right:10px"
  3130. class="ScoreBtn"
  3131. @click="
  3132. resetLoopEva(
  3133. worksStudent[toolIndex],
  3134. chapInfoList[courseType].chapterInfo[0].taskJson[
  3135. taskCount
  3136. ].eList,
  3137. courseType,
  3138. taskCount,
  3139. toolIndex,
  3140. tool.toolDetail,
  3141. worksStudent
  3142. )
  3143. "
  3144. >
  3145. 一键重置
  3146. </div>
  3147. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3148. <img
  3149. src="../../assets/icon/newIcons/rootImg.png"
  3150. alt=""
  3151. />
  3152. AI评分
  3153. </div>
  3154. <div
  3155. class="ScoreBtn"
  3156. v-else-if="!loopLoading[toolIndex].loading"
  3157. @click="
  3158. loopEva(
  3159. worksStudent[toolIndex],
  3160. chapInfoList[courseType].chapterInfo[0].taskJson[
  3161. taskCount
  3162. ].eList,
  3163. courseType,
  3164. taskCount,
  3165. toolIndex,
  3166. tool.toolDetail,
  3167. chapInfoList[courseType].chapterInfo[0].taskJson[
  3168. taskCount
  3169. ].taskDetail,
  3170. tool
  3171. )
  3172. "
  3173. >
  3174. <img
  3175. src="../../assets/icon/newIcons/rootImg.png"
  3176. alt=""
  3177. />
  3178. AI评分
  3179. </div>
  3180. <div class="ScoreBtn" v-else>
  3181. <img
  3182. src="../../assets/icon/newIcons/rootImg.png"
  3183. alt=""
  3184. />
  3185. 正在评分
  3186. </div>
  3187. </div>
  3188. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3189. </div>
  3190. <div
  3191. class="group_workBox"
  3192. v-for="(g, gindex) in courseGroup.group"
  3193. :key="gindex"
  3194. >
  3195. <div class="group_box">
  3196. <div class="group_title">
  3197. <el-tooltip
  3198. class="item"
  3199. effect="light"
  3200. :content="g.name"
  3201. placement="top"
  3202. >
  3203. <div class="group_name">{{ g.name }}</div>
  3204. </el-tooltip>
  3205. </div>
  3206. <div
  3207. class="group_work"
  3208. v-if="
  3209. g.works &&
  3210. g.works.length &&
  3211. g.works[toolIndex].length
  3212. "
  3213. >
  3214. <div
  3215. class="works"
  3216. style="
  3217. width: 200px;
  3218. height: 140px;
  3219. margin: 10px 10px 10px 0;
  3220. border-radius: 15px;
  3221. box-shadow: 0 0 6px 1px #dfdada;
  3222. "
  3223. v-for="(w, wIndex) in g.works[toolIndex]"
  3224. :key="wIndex"
  3225. :class="w.type == 1 ? 'isTypeOne' : ''"
  3226. >
  3227. <div class="workImg" v-if="w.type == 0">
  3228. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3229. <img
  3230. :src="w.works"
  3231. @click="previewImg(w.works, w)"
  3232. alt
  3233. />
  3234. <div
  3235. class="answerScore"
  3236. v-if="w.score"
  3237. @click.stop="openScore(w)"
  3238. :class="{
  3239. rightW:
  3240. w.userid == userid ||
  3241. tType == 1 ||
  3242. tType == 4 ||
  3243. w.ateacher == userid
  3244. }"
  3245. >
  3246. {{ JSON.parse(w.score).wScore }}分
  3247. </div>
  3248. <div
  3249. class="answerScore"
  3250. @click.stop="openScore(w)"
  3251. v-else-if="courseDetail.userid == userid"
  3252. :class="{
  3253. rightW:
  3254. w.userid == userid ||
  3255. tType == 1 ||
  3256. tType == 4 ||
  3257. w.ateacher == userid
  3258. }"
  3259. >
  3260. 评分
  3261. </div>
  3262. <img
  3263. class="deleteImg"
  3264. src="../../assets/deleteworks.png"
  3265. v-if="
  3266. w.userid == userid || tType == 1 || tType == 4
  3267. "
  3268. @click.stop="deleteWorks(w.wid)"
  3269. alt
  3270. />
  3271. </div>
  3272. <div class="workImg" v-if="w.type == 1">
  3273. <img :src="word" @click="openFile(w.works)" alt />
  3274. <!-- @click="openFile(w.works)" -->
  3275. <div
  3276. class="answerScore"
  3277. v-if="w.score"
  3278. @click.stop="openScore(w)"
  3279. :class="{
  3280. rightW:
  3281. w.userid == userid ||
  3282. tType == 1 ||
  3283. tType == 4 ||
  3284. w.ateacher == userid
  3285. }"
  3286. >
  3287. {{ JSON.parse(w.score).wScore }}分
  3288. </div>
  3289. <div
  3290. class="answerScore"
  3291. @click.stop="openScore(w)"
  3292. v-else-if="courseDetail.userid == userid"
  3293. :class="{
  3294. rightW:
  3295. w.userid == userid ||
  3296. tType == 1 ||
  3297. tType == 4 ||
  3298. w.ateacher == userid
  3299. }"
  3300. >
  3301. 评分
  3302. </div>
  3303. <img
  3304. class="deleteImg"
  3305. src="../../assets/deleteworks.png"
  3306. v-if="
  3307. w.userid == userid || tType == 1 || tType == 4
  3308. "
  3309. @click.stop="deleteWorks(w.wid)"
  3310. alt
  3311. />
  3312. </div>
  3313. <div class="workImg" v-if="w.type == 3">
  3314. <img
  3315. style="cursor: pointer"
  3316. :src="video"
  3317. @click="openVideo(w)"
  3318. alt
  3319. />
  3320. <!-- @click="openVideo(w.works)" -->
  3321. <div
  3322. class="answerScore"
  3323. v-if="w.score"
  3324. @click.stop="openScore(w)"
  3325. :class="{
  3326. rightW:
  3327. w.userid == userid ||
  3328. tType == 1 ||
  3329. tType == 4 ||
  3330. w.ateacher == userid
  3331. }"
  3332. >
  3333. {{ JSON.parse(w.score).wScore }}分
  3334. </div>
  3335. <div
  3336. class="answerScore"
  3337. @click.stop="openScore(w)"
  3338. v-else-if="courseDetail.userid == userid"
  3339. :class="{
  3340. rightW:
  3341. w.userid == userid ||
  3342. tType == 1 ||
  3343. tType == 4 ||
  3344. w.ateacher == userid
  3345. }"
  3346. >
  3347. 评分
  3348. </div>
  3349. <img
  3350. class="deleteImg"
  3351. src="../../assets/deleteworks.png"
  3352. v-if="
  3353. w.userid == userid || tType == 1 || tType == 4
  3354. "
  3355. @click.stop="deleteWorks(w.wid)"
  3356. alt
  3357. />
  3358. </div>
  3359. <div class="workImg" v-if="w.type == 12">
  3360. <img
  3361. style="cursor: pointer"
  3362. :src="word2"
  3363. @click="downloadFile(w.works)"
  3364. alt
  3365. />
  3366. <!-- @click="openVideo(w.works)" -->
  3367. <div
  3368. class="answerScore"
  3369. v-if="w.score"
  3370. @click.stop="openScore(w)"
  3371. :class="{
  3372. rightW:
  3373. w.userid == userid ||
  3374. tType == 1 ||
  3375. tType == 4 ||
  3376. w.ateacher == userid
  3377. }"
  3378. >
  3379. {{ JSON.parse(w.score).wScore }}分
  3380. </div>
  3381. <div
  3382. class="answerScore"
  3383. @click.stop="openScore(w)"
  3384. v-else-if="courseDetail.userid == userid"
  3385. :class="{
  3386. rightW:
  3387. w.userid == userid ||
  3388. tType == 1 ||
  3389. tType == 4 ||
  3390. w.ateacher == userid
  3391. }"
  3392. >
  3393. 评分
  3394. </div>
  3395. <img
  3396. class="deleteImg"
  3397. src="../../assets/deleteworks.png"
  3398. v-if="
  3399. w.userid == userid || tType == 1 || tType == 4
  3400. "
  3401. @click.stop="deleteWorks(w.wid)"
  3402. alt
  3403. />
  3404. </div>
  3405. <div class="comment" style="min-width: 200px">
  3406. <div class="worksName">
  3407. <div>{{ w.sName }}</div>
  3408. </div>
  3409. <div class="commentList">
  3410. <div class="commentList">
  3411. <div
  3412. class="commentImg"
  3413. @click="
  3414. isLikes(
  3415. w.wid,
  3416. userid,
  3417. 1,
  3418. null,
  3419. w.isLikes,
  3420. w.sName
  3421. )
  3422. "
  3423. >
  3424. <img
  3425. :src="w.isLikes == true ? likes : noLikes"
  3426. alt=""
  3427. />
  3428. </div>
  3429. <div>{{ w.likesCount }}</div>
  3430. </div>
  3431. <div
  3432. class="commentList"
  3433. style="margin-right: 15px"
  3434. >
  3435. <div
  3436. class="commentImg"
  3437. @click="
  3438. commentOther(
  3439. w,
  3440. toolIndex,
  3441. wIndex,
  3442. null,
  3443. g.id
  3444. )
  3445. "
  3446. >
  3447. <img
  3448. src="../../assets/icon/comment/comment.png"
  3449. alt=""
  3450. />
  3451. </div>
  3452. <div>{{ w.commentCount }}</div>
  3453. </div>
  3454. </div>
  3455. </div>
  3456. </div>
  3457. </div>
  3458. <div class="group_work" v-else>暂无提交作业</div>
  3459. </div>
  3460. </div>
  3461. <div
  3462. :id="'tool-' + toolIndex"
  3463. :style="{
  3464. height:
  3465. isCloseList[toolIndex].isClose == 1
  3466. ? retrnToolHeight('tool-' + toolIndex)
  3467. : 'auto',
  3468. overflow:
  3469. isCloseList[toolIndex].isClose == 1
  3470. ? 'hidden'
  3471. : 'unset'
  3472. }"
  3473. class="worksDetailBox"
  3474. v-if="
  3475. worksStudent.length &&
  3476. worksStudent[toolIndex].length > 0
  3477. "
  3478. >
  3479. <div
  3480. class="works"
  3481. style="
  3482. width: 200px;
  3483. height: 140px;
  3484. margin: 10px 10px 10px 0;
  3485. border-radius: 15px;
  3486. box-shadow: 0 0 6px 1px #dfdada;
  3487. "
  3488. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3489. :key="wIndex"
  3490. :class="w.type == 1 ? 'isTypeOne' : ''"
  3491. >
  3492. <div class="workImg" v-if="w.type == 0">
  3493. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3494. <img
  3495. :src="w.works"
  3496. @click="previewImg(w.works, w)"
  3497. alt
  3498. />
  3499. <div
  3500. class="answerScore"
  3501. v-if="w.score"
  3502. @click.stop="openScore(w)"
  3503. :class="{
  3504. rightW:
  3505. w.userid == userid ||
  3506. tType == 1 ||
  3507. tType == 4 ||
  3508. w.ateacher == userid
  3509. }"
  3510. >
  3511. {{ JSON.parse(w.score).wScore }}分
  3512. </div>
  3513. <div
  3514. class="answerScore"
  3515. @click.stop="openScore(w)"
  3516. v-else-if="
  3517. courseDetail.userid == userid &&
  3518. courseDetail.state != 5 &&
  3519. chapInfoList[courseType].chapterInfo[0]
  3520. .taskJson[taskCount].eList &&
  3521. chapInfoList[courseType].chapterInfo[0]
  3522. .taskJson[taskCount].eList.length
  3523. "
  3524. :class="{
  3525. rightW:
  3526. w.userid == userid ||
  3527. tType == 1 ||
  3528. tType == 4 ||
  3529. w.ateacher == userid
  3530. }"
  3531. >
  3532. 评分
  3533. </div>
  3534. <!-- <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"> -->
  3535. <div
  3536. v-else-if="
  3537. (courseDetail.userid == userid ||
  3538. (courseDetail.course_teacher &&
  3539. courseDetail.course_teacher.indexOf(userid) !=
  3540. -1) ||
  3541. (w.userid == userid && sIsOpen)) &&
  3542. courseDetail.state == 5 &&
  3543. ((chapInfoList[courseType].chapterInfo[0]
  3544. .taskJson[taskCount].eList &&
  3545. chapInfoList[courseType].chapterInfo[0]
  3546. .taskJson[taskCount].eList.length) ||
  3547. (tool.eList && tool.eList.length))
  3548. "
  3549. >
  3550. <el-popover
  3551. placement="top"
  3552. width="318"
  3553. :disabled="AIloading[toolIndex][wIndex].loading"
  3554. trigger="hover"
  3555. >
  3556. <markScore
  3557. :loading="AIloading[toolIndex][wIndex].loading"
  3558. :markScoreVisible="markScoreVisible"
  3559. :ref="`markSco${toolIndex}${wIndex}`"
  3560. @updateLoading="updateLoading"
  3561. @updateDocSco="updateDocSco"
  3562. @refreshOther="refreshOther"
  3563. @markScoreDig="markScoreDig"
  3564. :tool="tool"
  3565. :wIndex="wIndex"
  3566. :scoCon="w"
  3567. :toolIndex="toolIndex"
  3568. :key="refreshKey"
  3569. :stage="courseType"
  3570. :task="taskCount"
  3571. :scoTit="
  3572. chapInfoList[courseType].chapterInfo[0]
  3573. .taskJson[taskCount].eList
  3574. "
  3575. >
  3576. </markScore>
  3577. <div
  3578. class="answerScore"
  3579. @click="
  3580. markScoreDig2(
  3581. w.sName,
  3582. worksStudent,
  3583. w.userid,
  3584. toolIndex,
  3585. chapInfoList[courseType].chapterInfo[0]
  3586. .taskJson[taskCount].eList,
  3587. AIloading[toolIndex][wIndex].loading,
  3588. tool
  3589. )
  3590. "
  3591. slot="reference"
  3592. :class="{
  3593. rightW:
  3594. w.userid == userid ||
  3595. tType == 1 ||
  3596. tType == 4 ||
  3597. w.ateacher == userid
  3598. }"
  3599. >
  3600. <span v-if="AIloading[toolIndex][wIndex].sco">
  3601. {{
  3602. AIloading[toolIndex][wIndex].loading
  3603. ? "评分中"
  3604. : AIloading[toolIndex][wIndex].sco + "分"
  3605. }}
  3606. </span>
  3607. <span v-else>
  3608. {{
  3609. AIloading[toolIndex][wIndex].loading
  3610. ? "评分中"
  3611. : "评分"
  3612. }}
  3613. </span>
  3614. </div>
  3615. </el-popover>
  3616. </div>
  3617. <img
  3618. class="deleteImg"
  3619. src="../../assets/deleteworks.png"
  3620. v-if="
  3621. w.userid == userid || tType == 1 || tType == 4
  3622. "
  3623. @click.stop="deleteWorks(w.wid)"
  3624. alt
  3625. />
  3626. </div>
  3627. <div class="workImg" v-if="w.type == 1">
  3628. <img :src="word" @click="openFile(w.works)" alt />
  3629. <!-- @click="openFile(w.works)" -->
  3630. <div
  3631. class="answerScore"
  3632. v-if="w.score"
  3633. @click.stop="openScore(w)"
  3634. :class="{
  3635. rightW:
  3636. w.userid == userid ||
  3637. tType == 1 ||
  3638. tType == 4 ||
  3639. w.ateacher == userid
  3640. }"
  3641. >
  3642. {{ JSON.parse(w.score).wScore }}分
  3643. </div>
  3644. <div
  3645. class="answerScore"
  3646. @click.stop="openScore(w)"
  3647. v-else-if="
  3648. courseDetail.userid == userid &&
  3649. courseDetail.state != 5 &&
  3650. chapInfoList[courseType].chapterInfo[0]
  3651. .taskJson[taskCount].eList &&
  3652. chapInfoList[courseType].chapterInfo[0]
  3653. .taskJson[taskCount].eList.length
  3654. "
  3655. :class="{
  3656. rightW:
  3657. w.userid == userid ||
  3658. tType == 1 ||
  3659. tType == 4 ||
  3660. w.ateacher == userid
  3661. }"
  3662. >
  3663. 评分
  3664. </div>
  3665. <!-- <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"> -->
  3666. <div
  3667. v-else-if="
  3668. (courseDetail.userid == userid ||
  3669. (courseDetail.course_teacher &&
  3670. courseDetail.course_teacher.indexOf(userid) !=
  3671. -1) ||
  3672. (w.userid == userid && sIsOpen)) &&
  3673. courseDetail.state == 5 &&
  3674. ((chapInfoList[courseType].chapterInfo[0]
  3675. .taskJson[taskCount].eList &&
  3676. chapInfoList[courseType].chapterInfo[0]
  3677. .taskJson[taskCount].eList.length) ||
  3678. (tool.eList && tool.eList.length))
  3679. "
  3680. >
  3681. <el-popover
  3682. placement="top"
  3683. width="318"
  3684. :disabled="AIloading[toolIndex][wIndex].loading"
  3685. trigger="hover"
  3686. >
  3687. <markScore
  3688. :loading="AIloading[toolIndex][wIndex].loading"
  3689. :markScoreVisible="markScoreVisible"
  3690. :ref="`markSco${toolIndex}${wIndex}`"
  3691. @updateLoading="updateLoading"
  3692. @updateDocSco="updateDocSco"
  3693. @refreshOther="refreshOther"
  3694. @markScoreDig="markScoreDig"
  3695. :tool="tool"
  3696. :wIndex="wIndex"
  3697. :scoCon="w"
  3698. :toolIndex="toolIndex"
  3699. :key="refreshKey"
  3700. :stage="courseType"
  3701. :task="taskCount"
  3702. :scoTit="
  3703. chapInfoList[courseType].chapterInfo[0]
  3704. .taskJson[taskCount].eList
  3705. "
  3706. >
  3707. </markScore>
  3708. <div
  3709. class="answerScore"
  3710. @click="
  3711. markScoreDig2(
  3712. w.sName,
  3713. worksStudent,
  3714. w.userid,
  3715. toolIndex,
  3716. chapInfoList[courseType].chapterInfo[0]
  3717. .taskJson[taskCount].eList,
  3718. AIloading[toolIndex][wIndex].loading,
  3719. tool
  3720. )
  3721. "
  3722. slot="reference"
  3723. :class="{
  3724. rightW:
  3725. w.userid == userid ||
  3726. tType == 1 ||
  3727. tType == 4 ||
  3728. w.ateacher == userid
  3729. }"
  3730. >
  3731. <span v-if="AIloading[toolIndex][wIndex].sco">
  3732. {{
  3733. AIloading[toolIndex][wIndex].loading
  3734. ? "评分中"
  3735. : AIloading[toolIndex][wIndex].sco + "分"
  3736. }}
  3737. </span>
  3738. <span v-else>
  3739. {{
  3740. AIloading[toolIndex][wIndex].loading
  3741. ? "评分中"
  3742. : "评分"
  3743. }}
  3744. </span>
  3745. </div>
  3746. </el-popover>
  3747. </div>
  3748. <img
  3749. class="deleteImg"
  3750. src="../../assets/deleteworks.png"
  3751. v-if="
  3752. w.userid == userid || tType == 1 || tType == 4
  3753. "
  3754. @click.stop="deleteWorks(w.wid)"
  3755. alt
  3756. />
  3757. </div>
  3758. <div class="workImg" v-if="w.type == 3">
  3759. <img
  3760. style="cursor: pointer"
  3761. :src="video"
  3762. @click="openVideo(w)"
  3763. alt
  3764. />
  3765. <!-- @click="openVideo(w.works)" -->
  3766. <div
  3767. class="answerScore"
  3768. v-if="w.score"
  3769. @click.stop="openScore(w)"
  3770. :class="{
  3771. rightW:
  3772. w.userid == userid ||
  3773. tType == 1 ||
  3774. tType == 4 ||
  3775. w.ateacher == userid
  3776. }"
  3777. >
  3778. {{ JSON.parse(w.score).wScore }}分
  3779. </div>
  3780. <div
  3781. class="answerScore"
  3782. @click.stop="openScore(w)"
  3783. v-else-if="
  3784. courseDetail.userid == userid &&
  3785. courseDetail.state != 5 &&
  3786. chapInfoList[courseType].chapterInfo[0]
  3787. .taskJson[taskCount].eList &&
  3788. chapInfoList[courseType].chapterInfo[0]
  3789. .taskJson[taskCount].eList.length
  3790. "
  3791. :class="{
  3792. rightW:
  3793. w.userid == userid ||
  3794. tType == 1 ||
  3795. tType == 4 ||
  3796. w.ateacher == userid
  3797. }"
  3798. >
  3799. 评分
  3800. </div>
  3801. <!-- <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"> -->
  3802. <div
  3803. v-else-if="
  3804. (courseDetail.userid == userid ||
  3805. (courseDetail.course_teacher &&
  3806. courseDetail.course_teacher.indexOf(userid) !=
  3807. -1) ||
  3808. (w.userid == userid && sIsOpen)) &&
  3809. courseDetail.state == 5 &&
  3810. ((chapInfoList[courseType].chapterInfo[0]
  3811. .taskJson[taskCount].eList &&
  3812. chapInfoList[courseType].chapterInfo[0]
  3813. .taskJson[taskCount].eList.length) ||
  3814. (tool.eList && tool.eList.length))
  3815. "
  3816. >
  3817. <el-popover
  3818. placement="top"
  3819. width="318"
  3820. :disabled="AIloading[toolIndex][wIndex].loading"
  3821. trigger="hover"
  3822. >
  3823. <markScore
  3824. :loading="AIloading[toolIndex][wIndex].loading"
  3825. :markScoreVisible="markScoreVisible"
  3826. :ref="`markSco${toolIndex}${wIndex}`"
  3827. @updateLoading="updateLoading"
  3828. @updateDocSco="updateDocSco"
  3829. @refreshOther="refreshOther"
  3830. @markScoreDig="markScoreDig"
  3831. :tool="tool"
  3832. :wIndex="wIndex"
  3833. :scoCon="w"
  3834. :toolIndex="toolIndex"
  3835. :key="refreshKey"
  3836. :stage="courseType"
  3837. :task="taskCount"
  3838. :scoTit="
  3839. chapInfoList[courseType].chapterInfo[0]
  3840. .taskJson[taskCount].eList
  3841. "
  3842. >
  3843. </markScore>
  3844. <div
  3845. class="answerScore"
  3846. @click="
  3847. markScoreDig2(
  3848. w.sName,
  3849. worksStudent,
  3850. w.userid,
  3851. toolIndex,
  3852. chapInfoList[courseType].chapterInfo[0]
  3853. .taskJson[taskCount].eList,
  3854. AIloading[toolIndex][wIndex].loading,
  3855. tool
  3856. )
  3857. "
  3858. slot="reference"
  3859. :class="{
  3860. rightW:
  3861. w.userid == userid ||
  3862. tType == 1 ||
  3863. tType == 4 ||
  3864. w.ateacher == userid
  3865. }"
  3866. >
  3867. <span v-if="AIloading[toolIndex][wIndex].sco">
  3868. {{
  3869. AIloading[toolIndex][wIndex].loading
  3870. ? "评分中"
  3871. : AIloading[toolIndex][wIndex].sco + "分"
  3872. }}
  3873. </span>
  3874. <span v-else>
  3875. {{
  3876. AIloading[toolIndex][wIndex].loading
  3877. ? "评分中"
  3878. : "评分"
  3879. }}
  3880. </span>
  3881. </div>
  3882. </el-popover>
  3883. </div>
  3884. <img
  3885. class="deleteImg"
  3886. src="../../assets/deleteworks.png"
  3887. v-if="
  3888. w.userid == userid || tType == 1 || tType == 4
  3889. "
  3890. @click.stop="deleteWorks(w.wid)"
  3891. alt
  3892. />
  3893. </div>
  3894. <div class="workImg" v-if="w.type == 12">
  3895. <img
  3896. style="cursor: pointer"
  3897. :src="word2"
  3898. @click="downloadFile(w.works)"
  3899. alt
  3900. />
  3901. <!-- @click="openVideo(w.works)" -->
  3902. <div
  3903. class="answerScore"
  3904. v-if="w.score"
  3905. @click.stop="openScore(w)"
  3906. :class="{
  3907. rightW:
  3908. w.userid == userid ||
  3909. tType == 1 ||
  3910. tType == 4 ||
  3911. w.ateacher == userid
  3912. }"
  3913. >
  3914. {{ JSON.parse(w.score).wScore }}分
  3915. </div>
  3916. <div
  3917. class="answerScore"
  3918. @click.stop="openScore(w)"
  3919. v-else-if="
  3920. courseDetail.userid == userid &&
  3921. courseDetail.state != 5 &&
  3922. chapInfoList[courseType].chapterInfo[0]
  3923. .taskJson[taskCount].eList &&
  3924. chapInfoList[courseType].chapterInfo[0]
  3925. .taskJson[taskCount].eList.length
  3926. "
  3927. :class="{
  3928. rightW:
  3929. w.userid == userid ||
  3930. tType == 1 ||
  3931. tType == 4 ||
  3932. w.ateacher == userid
  3933. }"
  3934. >
  3935. 评分
  3936. </div>
  3937. <!-- <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"> -->
  3938. <div
  3939. v-else-if="
  3940. (courseDetail.userid == userid ||
  3941. (courseDetail.course_teacher &&
  3942. courseDetail.course_teacher.indexOf(userid) !=
  3943. -1) ||
  3944. (w.userid == userid && sIsOpen)) &&
  3945. courseDetail.state == 5 &&
  3946. ((chapInfoList[courseType].chapterInfo[0]
  3947. .taskJson[taskCount].eList &&
  3948. chapInfoList[courseType].chapterInfo[0]
  3949. .taskJson[taskCount].eList.length) ||
  3950. (tool.eList && tool.eList.length))
  3951. "
  3952. >
  3953. <el-popover
  3954. placement="top"
  3955. width="318"
  3956. :disabled="AIloading[toolIndex][wIndex].loading"
  3957. trigger="hover"
  3958. >
  3959. <markScore
  3960. :loading="AIloading[toolIndex][wIndex].loading"
  3961. :markScoreVisible="markScoreVisible"
  3962. :ref="`markSco${toolIndex}${wIndex}`"
  3963. @updateLoading="updateLoading"
  3964. @updateDocSco="updateDocSco"
  3965. @refreshOther="refreshOther"
  3966. @markScoreDig="markScoreDig"
  3967. :tool="tool"
  3968. :wIndex="wIndex"
  3969. :scoCon="w"
  3970. :toolIndex="toolIndex"
  3971. :key="refreshKey"
  3972. :stage="courseType"
  3973. :task="taskCount"
  3974. :scoTit="
  3975. chapInfoList[courseType].chapterInfo[0]
  3976. .taskJson[taskCount].eList
  3977. "
  3978. >
  3979. </markScore>
  3980. <div
  3981. class="answerScore"
  3982. @click="
  3983. markScoreDig2(
  3984. w.sName,
  3985. worksStudent,
  3986. w.userid,
  3987. toolIndex,
  3988. chapInfoList[courseType].chapterInfo[0]
  3989. .taskJson[taskCount].eList,
  3990. AIloading[toolIndex][wIndex].loading,
  3991. tool
  3992. )
  3993. "
  3994. slot="reference"
  3995. :class="{
  3996. rightW:
  3997. w.userid == userid ||
  3998. tType == 1 ||
  3999. tType == 4 ||
  4000. w.ateacher == userid
  4001. }"
  4002. >
  4003. <span v-if="AIloading[toolIndex][wIndex].sco">
  4004. {{
  4005. AIloading[toolIndex][wIndex].loading
  4006. ? "评分中"
  4007. : AIloading[toolIndex][wIndex].sco + "分"
  4008. }}
  4009. </span>
  4010. <span v-else>
  4011. {{
  4012. AIloading[toolIndex][wIndex].loading
  4013. ? "评分中"
  4014. : "评分"
  4015. }}
  4016. </span>
  4017. </div>
  4018. </el-popover>
  4019. </div>
  4020. <img
  4021. class="deleteImg"
  4022. src="../../assets/deleteworks.png"
  4023. v-if="
  4024. w.userid == userid || tType == 1 || tType == 4
  4025. "
  4026. @click.stop="deleteWorks(w.wid)"
  4027. alt
  4028. />
  4029. </div>
  4030. <div class="comment" style="min-width: 200px">
  4031. <div class="worksName">
  4032. <div>{{ w.sName }}</div>
  4033. </div>
  4034. <div class="commentList">
  4035. <div class="commentList">
  4036. <div
  4037. class="commentImg"
  4038. @click="
  4039. isLikes(
  4040. w.wid,
  4041. userid,
  4042. 1,
  4043. null,
  4044. w.isLikes,
  4045. w.sName
  4046. )
  4047. "
  4048. >
  4049. <img
  4050. :src="w.isLikes == true ? likes : noLikes"
  4051. alt=""
  4052. />
  4053. </div>
  4054. <div>{{ w.likesCount }}</div>
  4055. </div>
  4056. <div class="commentList" style="margin-right: 15px">
  4057. <div
  4058. class="commentImg"
  4059. @click="commentOther(w, toolIndex, wIndex)"
  4060. >
  4061. <img
  4062. src="../../assets/icon/comment/comment.png"
  4063. alt=""
  4064. />
  4065. </div>
  4066. <div>{{ w.commentCount }}</div>
  4067. </div>
  4068. </div>
  4069. </div>
  4070. </div>
  4071. </div>
  4072. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4073. 未提交
  4074. </div>
  4075. <div
  4076. class="noWorksS"
  4077. v-if="noWorksS && noWorksS[toolIndex].length"
  4078. >
  4079. <div
  4080. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4081. :key="sIndex"
  4082. class="noWorksName"
  4083. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4084. >
  4085. <el-tooltip
  4086. effect="dark"
  4087. :content="s.student"
  4088. placement="top"
  4089. >
  4090. <span>{{ s.student }}</span>
  4091. </el-tooltip>
  4092. </div>
  4093. </div>
  4094. </div>
  4095. <div
  4096. v-if="
  4097. tType &&
  4098. ((tType == 2 && sIsOpen == true) ||
  4099. tType == 1 ||
  4100. tType == 4) &&
  4101. tool.tool.indexOf(70) != -1
  4102. "
  4103. class="worksBox"
  4104. >
  4105. <div
  4106. class="zuoyeYulan"
  4107. v-if="
  4108. worksStudent.length &&
  4109. worksStudent[toolIndex].length > 0
  4110. "
  4111. >
  4112. <div class="worksTop">
  4113. <div>作业预览</div>
  4114. <div
  4115. class="corOpen"
  4116. @click="contract(toolIndex)"
  4117. v-if="
  4118. isCloseList[toolIndex].isCloseBoolean &&
  4119. isCloseList[toolIndex].isClose == 0
  4120. "
  4121. >
  4122. 折叠
  4123. </div>
  4124. <div
  4125. class="corOpen"
  4126. @click="contract(toolIndex)"
  4127. v-if="isCloseList[toolIndex].isClose == 1"
  4128. >
  4129. 展开
  4130. </div>
  4131. </div>
  4132. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4133. </div>
  4134. <div
  4135. :id="'tool-' + toolIndex"
  4136. :style="{
  4137. height:
  4138. isCloseList[toolIndex].isClose == 1
  4139. ? retrnToolHeight('tool-' + toolIndex)
  4140. : 'auto',
  4141. overflow:
  4142. isCloseList[toolIndex].isClose == 1
  4143. ? 'hidden'
  4144. : 'unset'
  4145. }"
  4146. class="worksDetailBox"
  4147. v-if="
  4148. worksStudent.length &&
  4149. worksStudent[toolIndex].length > 0
  4150. "
  4151. >
  4152. <div
  4153. class="works"
  4154. style="
  4155. width: 200px;
  4156. height: 140px;
  4157. margin: 10px 10px 10px 0;
  4158. border-radius: 15px;
  4159. box-shadow: 0 0 6px 1px #dfdada;
  4160. "
  4161. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4162. :key="wIndex"
  4163. :class="w.type == 1 ? 'isTypeOne' : ''"
  4164. >
  4165. <div
  4166. class="workImg"
  4167. @click.stop="openScore(w, toolIndex)"
  4168. >
  4169. <img :src="word" alt />
  4170. <img
  4171. class="deleteImg"
  4172. src="../../assets/deleteworks.png"
  4173. v-if="
  4174. w.userid == userid || tType == 1 || tType == 4
  4175. "
  4176. @click.stop="deleteWorks(w.wid)"
  4177. alt
  4178. />
  4179. </div>
  4180. <div class="comment" style="min-width: 200px">
  4181. <div class="worksName">
  4182. <div>{{ w.sName }}</div>
  4183. </div>
  4184. </div>
  4185. </div>
  4186. </div>
  4187. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4188. 未提交
  4189. </div>
  4190. <div
  4191. class="noWorksS"
  4192. v-if="noWorksS && noWorksS[toolIndex].length"
  4193. >
  4194. <div
  4195. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4196. :key="sIndex"
  4197. class="noWorksName"
  4198. >
  4199. <el-tooltip
  4200. effect="dark"
  4201. :content="s.student"
  4202. placement="top"
  4203. >
  4204. <span>{{ s.student }}</span>
  4205. </el-tooltip>
  4206. </div>
  4207. </div>
  4208. </div>
  4209. <div
  4210. v-if="
  4211. tType &&
  4212. tType == 2 &&
  4213. !sIsOpen &&
  4214. tool.tool.indexOf(70) != -1
  4215. "
  4216. class="worksBox"
  4217. >
  4218. <div
  4219. class="zuoyeYulan"
  4220. v-if="workStudent[toolIndex].length > 0"
  4221. >
  4222. <span class="worksTitle">作业预览</span>
  4223. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4224. </div>
  4225. <div
  4226. class="worksDetailBox"
  4227. v-if="workStudent[toolIndex].length > 0"
  4228. >
  4229. <div
  4230. class="works"
  4231. style="
  4232. width: 200px;
  4233. height: 140px;
  4234. margin: 10px 10px 10px 0;
  4235. box-shadow: 0 0 6px 1px #dfdada;
  4236. "
  4237. v-for="(w, wIndex) in workStudent[toolIndex]"
  4238. :key="wIndex"
  4239. >
  4240. <div
  4241. class="workImg"
  4242. @click.stop="openScore(w, toolIndex)"
  4243. >
  4244. <img :src="word" alt />
  4245. <img
  4246. class="deleteImg"
  4247. src="../../assets/deleteworks.png"
  4248. v-if="
  4249. w.userid == userid || tType == 1 || tType == 4
  4250. "
  4251. @click.stop="deleteWorks(w.wid)"
  4252. alt
  4253. />
  4254. </div>
  4255. <div class="worksName">
  4256. <div>{{ w.sName }}</div>
  4257. </div>
  4258. </div>
  4259. </div>
  4260. </div>
  4261. <div
  4262. v-if="
  4263. tType &&
  4264. ((tType == 2 && sIsOpen == true) ||
  4265. tType == 1 ||
  4266. tType == 4) &&
  4267. tool.tool.indexOf(32) != -1
  4268. "
  4269. class="worksBox"
  4270. >
  4271. <div
  4272. class="zuoyeYulan"
  4273. v-if="
  4274. worksStudent.length &&
  4275. worksStudent[toolIndex].length > 0
  4276. "
  4277. >
  4278. <div class="worksTop">
  4279. <div>作业预览</div>
  4280. <div
  4281. class="corOpen"
  4282. @click="contract(toolIndex)"
  4283. v-if="
  4284. isCloseList[toolIndex].isCloseBoolean &&
  4285. isCloseList[toolIndex].isClose == 0
  4286. "
  4287. >
  4288. 折叠
  4289. </div>
  4290. <div
  4291. class="corOpen"
  4292. @click="contract(toolIndex)"
  4293. v-if="isCloseList[toolIndex].isClose == 1"
  4294. >
  4295. 展开
  4296. </div>
  4297. </div>
  4298. </div>
  4299. <div
  4300. :id="'tool-' + toolIndex"
  4301. :style="{
  4302. height:
  4303. isCloseList[toolIndex].isClose == 1
  4304. ? retrnToolHeight('tool-' + toolIndex)
  4305. : 'auto',
  4306. overflow:
  4307. isCloseList[toolIndex].isClose == 1
  4308. ? 'hidden'
  4309. : 'unset'
  4310. }"
  4311. class="worksDetailBox"
  4312. v-if="
  4313. worksStudent.length &&
  4314. worksStudent[toolIndex].length > 0
  4315. "
  4316. >
  4317. <div
  4318. class="works"
  4319. style="
  4320. width: 200px;
  4321. height: 140px;
  4322. margin: 10px 10px 10px 0;
  4323. border-radius: 15px;
  4324. box-shadow: 0 0 6px 1px #dfdada;
  4325. "
  4326. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4327. :key="wIndex"
  4328. :class="w.type == 1 ? 'isTypeOne' : ''"
  4329. >
  4330. <div class="workImg">
  4331. <img
  4332. :src="word2"
  4333. @click="downloadFile(w.works)"
  4334. alt
  4335. />
  4336. <div
  4337. class="answerScore"
  4338. v-if="w.score"
  4339. @click.stop="openScore(w)"
  4340. :class="{
  4341. rightW:
  4342. w.userid == userid ||
  4343. tType == 1 ||
  4344. tType == 4 ||
  4345. w.ateacher == userid
  4346. }"
  4347. >
  4348. {{ JSON.parse(w.score).wScore }}分
  4349. </div>
  4350. <div
  4351. class="answerScore"
  4352. @click.stop="openScore(w)"
  4353. v-else-if="courseDetail.userid == userid"
  4354. :class="{
  4355. rightW:
  4356. w.userid == userid ||
  4357. tType == 1 ||
  4358. tType == 4 ||
  4359. w.ateacher == userid
  4360. }"
  4361. >
  4362. 评分
  4363. </div>
  4364. <img
  4365. class="deleteImg"
  4366. src="../../assets/deleteworks.png"
  4367. v-if="
  4368. w.userid == userid || tType == 1 || tType == 4
  4369. "
  4370. @click.stop="deleteWorks(w.wid)"
  4371. alt
  4372. />
  4373. </div>
  4374. <div class="comment" style="min-width: 200px">
  4375. <div class="worksName">
  4376. <div>{{ w.sName }}</div>
  4377. </div>
  4378. <div class="commentList">
  4379. <div class="commentList">
  4380. <div
  4381. class="commentImg"
  4382. @click="
  4383. isLikes(
  4384. w.wid,
  4385. userid,
  4386. 1,
  4387. null,
  4388. w.isLikes,
  4389. w.sName
  4390. )
  4391. "
  4392. >
  4393. <img
  4394. :src="w.isLikes == true ? likes : noLikes"
  4395. alt=""
  4396. />
  4397. </div>
  4398. <div>{{ w.likesCount }}</div>
  4399. </div>
  4400. <div class="commentList" style="margin-right: 15px">
  4401. <div
  4402. class="commentImg"
  4403. @click="commentOther(w, toolIndex, wIndex)"
  4404. >
  4405. <img
  4406. src="../../assets/icon/comment/comment.png"
  4407. alt=""
  4408. />
  4409. </div>
  4410. <div>{{ w.commentCount }}</div>
  4411. </div>
  4412. </div>
  4413. </div>
  4414. </div>
  4415. </div>
  4416. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4417. 未提交
  4418. </div>
  4419. <div
  4420. class="noWorksS"
  4421. v-if="noWorksS && noWorksS[toolIndex].length"
  4422. >
  4423. <div
  4424. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4425. :key="sIndex"
  4426. class="noWorksName"
  4427. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4428. >
  4429. <el-tooltip
  4430. effect="dark"
  4431. :content="s.student"
  4432. placement="top"
  4433. >
  4434. <span>{{ s.student }}</span>
  4435. </el-tooltip>
  4436. </div>
  4437. </div>
  4438. </div>
  4439. <div
  4440. v-if="
  4441. tType &&
  4442. ((tType == 2 && sIsOpen == true) ||
  4443. tType == 1 ||
  4444. tType == 4) &&
  4445. tool.tool.indexOf(57) != -1
  4446. "
  4447. class="worksBox"
  4448. >
  4449. <div
  4450. class="zuoyeYulan"
  4451. v-if="
  4452. worksStudent.length &&
  4453. worksStudent[toolIndex].length > 0
  4454. "
  4455. >
  4456. <div class="worksTop">
  4457. <div>作业预览</div>
  4458. <div
  4459. class="corOpen"
  4460. @click="contract(toolIndex)"
  4461. v-if="
  4462. isCloseList[toolIndex].isCloseBoolean &&
  4463. isCloseList[toolIndex].isClose == 0
  4464. "
  4465. >
  4466. 折叠
  4467. </div>
  4468. <div
  4469. class="corOpen"
  4470. @click="contract(toolIndex)"
  4471. v-if="isCloseList[toolIndex].isClose == 1"
  4472. >
  4473. 展开
  4474. </div>
  4475. </div>
  4476. </div>
  4477. <div
  4478. :id="'tool-' + toolIndex"
  4479. :style="{
  4480. height:
  4481. isCloseList[toolIndex].isClose == 1
  4482. ? retrnToolHeight('tool-' + toolIndex)
  4483. : 'auto',
  4484. overflow:
  4485. isCloseList[toolIndex].isClose == 1
  4486. ? 'hidden'
  4487. : 'unset'
  4488. }"
  4489. class="worksDetailBox"
  4490. v-if="
  4491. worksStudent.length &&
  4492. worksStudent[toolIndex].length > 0
  4493. "
  4494. >
  4495. <div
  4496. class="works"
  4497. style="
  4498. width: 200px;
  4499. height: 140px;
  4500. margin: 10px 10px 10px 0;
  4501. border-radius: 15px;
  4502. box-shadow: 0 0 6px 1px #dfdada;
  4503. "
  4504. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4505. :key="wIndex"
  4506. :class="w.type == 1 ? 'isTypeOne' : ''"
  4507. >
  4508. <div class="workImg">
  4509. <img
  4510. :src="word2"
  4511. @click="downloadFile(w.works)"
  4512. v-if="w.type == 12"
  4513. alt
  4514. />
  4515. <img
  4516. :src="word2"
  4517. @click="
  4518. openCocoPi(57, toolIndex, w.userid, w.sName)
  4519. "
  4520. v-else-if="w.type == 15"
  4521. alt
  4522. />
  4523. <div
  4524. class="answerScore"
  4525. v-if="w.score"
  4526. @click.stop="openScore(w)"
  4527. :class="{
  4528. rightW:
  4529. w.userid == userid ||
  4530. tType == 1 ||
  4531. tType == 4 ||
  4532. w.ateacher == userid
  4533. }"
  4534. >
  4535. {{ JSON.parse(w.score).wScore }}分
  4536. </div>
  4537. <div
  4538. class="answerScore"
  4539. @click.stop="openScore(w)"
  4540. v-else-if="
  4541. courseDetail.userid == userid &&
  4542. courseDetail.state != 5 &&
  4543. chapInfoList[courseType].chapterInfo[0]
  4544. .taskJson[taskCount].eList &&
  4545. chapInfoList[courseType].chapterInfo[0]
  4546. .taskJson[taskCount].eList.length
  4547. "
  4548. :class="{
  4549. rightW:
  4550. w.userid == userid ||
  4551. tType == 1 ||
  4552. tType == 4 ||
  4553. w.ateacher == userid
  4554. }"
  4555. >
  4556. 评分
  4557. </div>
  4558. <!-- <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"> -->
  4559. <div
  4560. v-else-if="
  4561. (courseDetail.userid == userid ||
  4562. (courseDetail.course_teacher &&
  4563. courseDetail.course_teacher.indexOf(userid) !=
  4564. -1) ||
  4565. (w.userid == userid && sIsOpen)) &&
  4566. courseDetail.state == 5 &&
  4567. ((chapInfoList[courseType].chapterInfo[0]
  4568. .taskJson[taskCount].eList &&
  4569. chapInfoList[courseType].chapterInfo[0]
  4570. .taskJson[taskCount].eList.length) ||
  4571. (tool.eList && tool.eList.length))
  4572. "
  4573. >
  4574. <el-popover
  4575. placement="top"
  4576. width="318"
  4577. :disabled="AIloading[toolIndex][wIndex].loading"
  4578. trigger="hover"
  4579. >
  4580. <markScore
  4581. :loading="AIloading[toolIndex][wIndex].loading"
  4582. :markScoreVisible="markScoreVisible"
  4583. :ref="`markSco${toolIndex}${wIndex}`"
  4584. @updateLoading="updateLoading"
  4585. @updateDocSco="updateDocSco"
  4586. @refreshOther="refreshOther"
  4587. @markScoreDig="markScoreDig"
  4588. :tool="tool"
  4589. :wIndex="wIndex"
  4590. :scoCon="w"
  4591. :toolIndex="toolIndex"
  4592. :key="refreshKey"
  4593. :stage="courseType"
  4594. :task="taskCount"
  4595. :scoTit="
  4596. chapInfoList[courseType].chapterInfo[0]
  4597. .taskJson[taskCount].eList
  4598. "
  4599. >
  4600. </markScore>
  4601. <div
  4602. class="answerScore"
  4603. @click="
  4604. markScoreDig2(
  4605. w.sName,
  4606. worksStudent,
  4607. w.userid,
  4608. toolIndex,
  4609. chapInfoList[courseType].chapterInfo[0]
  4610. .taskJson[taskCount].eList,
  4611. AIloading[toolIndex][wIndex].loading,
  4612. tool
  4613. )
  4614. "
  4615. slot="reference"
  4616. :class="{
  4617. rightW:
  4618. w.userid == userid ||
  4619. tType == 1 ||
  4620. tType == 4 ||
  4621. w.ateacher == userid
  4622. }"
  4623. >
  4624. <span v-if="AIloading[toolIndex][wIndex].sco">
  4625. {{
  4626. AIloading[toolIndex][wIndex].loading
  4627. ? "评分中"
  4628. : AIloading[toolIndex][wIndex].sco + "分"
  4629. }}
  4630. </span>
  4631. <span v-else>
  4632. {{
  4633. AIloading[toolIndex][wIndex].loading
  4634. ? "评分中"
  4635. : "评分"
  4636. }}
  4637. </span>
  4638. </div>
  4639. </el-popover>
  4640. </div>
  4641. <img
  4642. class="deleteImg"
  4643. src="../../assets/deleteworks.png"
  4644. v-if="
  4645. w.userid == userid || tType == 1 || tType == 4
  4646. "
  4647. @click.stop="deleteWorks(w.wid)"
  4648. alt
  4649. />
  4650. </div>
  4651. <div class="comment" style="min-width: 200px">
  4652. <div class="worksName">
  4653. <div>{{ w.sName }}</div>
  4654. </div>
  4655. <div class="commentList">
  4656. <div class="commentList">
  4657. <div
  4658. class="commentImg"
  4659. @click="
  4660. isLikes(
  4661. w.wid,
  4662. userid,
  4663. 1,
  4664. null,
  4665. w.isLikes,
  4666. w.sName
  4667. )
  4668. "
  4669. >
  4670. <img
  4671. :src="w.isLikes == true ? likes : noLikes"
  4672. alt=""
  4673. />
  4674. </div>
  4675. <div>{{ w.likesCount }}</div>
  4676. </div>
  4677. <div class="commentList" style="margin-right: 15px">
  4678. <div
  4679. class="commentImg"
  4680. @click="commentOther(w, toolIndex, wIndex)"
  4681. >
  4682. <img
  4683. src="../../assets/icon/comment/comment.png"
  4684. alt=""
  4685. />
  4686. </div>
  4687. <div>{{ w.commentCount }}</div>
  4688. </div>
  4689. </div>
  4690. </div>
  4691. </div>
  4692. </div>
  4693. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4694. 未提交
  4695. </div>
  4696. <div
  4697. class="noWorksS"
  4698. v-if="noWorksS && noWorksS[toolIndex].length"
  4699. >
  4700. <div
  4701. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4702. :key="sIndex"
  4703. class="noWorksName"
  4704. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4705. >
  4706. <el-tooltip
  4707. effect="dark"
  4708. :content="s.student"
  4709. placement="top"
  4710. >
  4711. <span>{{ s.student }}</span>
  4712. </el-tooltip>
  4713. </div>
  4714. </div>
  4715. </div>
  4716. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4717. <div
  4718. style="display: flex;justify-content: space-between;align-items: center;"
  4719. >
  4720. <div
  4721. class="zuoyeYulan"
  4722. v-if="
  4723. worksStudent.length &&
  4724. worksStudent[toolIndex].length > 0
  4725. "
  4726. >
  4727. <span class="worksTitle">作业预览</span>
  4728. <div
  4729. class="corOpen"
  4730. @click="contract(toolIndex)"
  4731. v-if="
  4732. isCloseList[toolIndex].isCloseBoolean &&
  4733. isCloseList[toolIndex].isClose == 0
  4734. "
  4735. >
  4736. 折叠
  4737. </div>
  4738. <div
  4739. class="corOpen"
  4740. @click="contract(toolIndex)"
  4741. v-if="isCloseList[toolIndex].isClose == 1"
  4742. >
  4743. 展开
  4744. </div>
  4745. </div>
  4746. <div
  4747. style="display: flex;"
  4748. v-if="
  4749. (courseDetail.userid == userid ||
  4750. (courseDetail.course_teacher &&
  4751. courseDetail.course_teacher.indexOf(userid) !=
  4752. -1)) &&
  4753. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4754. taskCount
  4755. ].eList &&
  4756. chapInfoList[courseType].chapterInfo[0].taskJson[
  4757. taskCount
  4758. ].eList.length) ||
  4759. (tool.eList && tool.eList.length)) &&
  4760. courseDetail.state == 5
  4761. "
  4762. >
  4763. <!-- <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 "> -->
  4764. <div
  4765. style="margin-right:10px"
  4766. class="ScoreBtn"
  4767. @click="
  4768. resetLoopEva(
  4769. worksStudent[toolIndex],
  4770. chapInfoList[courseType].chapterInfo[0].taskJson[
  4771. taskCount
  4772. ].eList,
  4773. courseType,
  4774. taskCount,
  4775. toolIndex,
  4776. tool.toolDetail,
  4777. worksStudent
  4778. )
  4779. "
  4780. >
  4781. 一键重置
  4782. </div>
  4783. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4784. <img
  4785. src="../../assets/icon/newIcons/rootImg.png"
  4786. alt=""
  4787. />
  4788. AI评分
  4789. </div>
  4790. <div
  4791. class="ScoreBtn"
  4792. v-else-if="!loopLoading[toolIndex].loading"
  4793. @click="
  4794. loopEva(
  4795. worksStudent[toolIndex],
  4796. chapInfoList[courseType].chapterInfo[0].taskJson[
  4797. taskCount
  4798. ].eList,
  4799. courseType,
  4800. taskCount,
  4801. toolIndex,
  4802. tool.toolDetail,
  4803. chapInfoList[courseType].chapterInfo[0].taskJson[
  4804. taskCount
  4805. ].taskDetail,
  4806. tool
  4807. )
  4808. "
  4809. >
  4810. <img
  4811. src="../../assets/icon/newIcons/rootImg.png"
  4812. alt=""
  4813. />
  4814. AI评分
  4815. </div>
  4816. <div class="ScoreBtn" v-else>
  4817. <img
  4818. src="../../assets/icon/newIcons/rootImg.png"
  4819. alt=""
  4820. />
  4821. 正在评分
  4822. </div>
  4823. </div>
  4824. </div>
  4825. <div
  4826. :id="'tool-' + toolIndex"
  4827. :style="{
  4828. height:
  4829. isCloseList[toolIndex].isClose == 1
  4830. ? retrnToolHeight('tool-' + toolIndex)
  4831. : 'auto',
  4832. overflow:
  4833. isCloseList[toolIndex].isClose == 1
  4834. ? 'hidden'
  4835. : 'unset'
  4836. }"
  4837. class="worksDetailBox"
  4838. v-if="
  4839. worksStudent.length &&
  4840. worksStudent[toolIndex].length > 0
  4841. "
  4842. >
  4843. <div
  4844. class="works"
  4845. style="
  4846. width: 200px;
  4847. height: 140px;
  4848. margin: 10px 10px 10px 0;
  4849. border-radius: 15px;
  4850. box-shadow: 0 0 6px 1px #dfdada;
  4851. "
  4852. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4853. :key="wIndex"
  4854. :class="w.type == 1 ? 'isTypeOne' : ''"
  4855. >
  4856. <div class="workImg" v-if="w.type == 0">
  4857. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4858. <img
  4859. :src="w.works"
  4860. @click="previewImg(w.works, w)"
  4861. alt
  4862. />
  4863. <div
  4864. class="answerScore"
  4865. v-if="w.score"
  4866. @click.stop="openScore(w)"
  4867. :class="{
  4868. rightW:
  4869. w.userid == userid ||
  4870. tType == 1 ||
  4871. tType == 4 ||
  4872. w.ateacher == userid
  4873. }"
  4874. >
  4875. {{ JSON.parse(w.score).wScore }}分
  4876. </div>
  4877. <div
  4878. class="answerScore"
  4879. @click.stop="openScore(w)"
  4880. v-else-if="
  4881. courseDetail.userid == userid &&
  4882. courseDetail.state != 5 &&
  4883. chapInfoList[courseType].chapterInfo[0]
  4884. .taskJson[taskCount].eList &&
  4885. chapInfoList[courseType].chapterInfo[0]
  4886. .taskJson[taskCount].eList.length
  4887. "
  4888. :class="{
  4889. rightW:
  4890. w.userid == userid ||
  4891. tType == 1 ||
  4892. tType == 4 ||
  4893. w.ateacher == userid
  4894. }"
  4895. >
  4896. 评分
  4897. </div>
  4898. <!-- <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"> -->
  4899. <div
  4900. v-else-if="
  4901. (courseDetail.userid == userid ||
  4902. (courseDetail.course_teacher &&
  4903. courseDetail.course_teacher.indexOf(userid) !=
  4904. -1) ||
  4905. (w.userid == userid && sIsOpen)) &&
  4906. courseDetail.state == 5 &&
  4907. ((chapInfoList[courseType].chapterInfo[0]
  4908. .taskJson[taskCount].eList &&
  4909. chapInfoList[courseType].chapterInfo[0]
  4910. .taskJson[taskCount].eList.length) ||
  4911. (tool.eList && tool.eList.length))
  4912. "
  4913. >
  4914. <el-popover
  4915. placement="top"
  4916. width="318"
  4917. :disabled="AIloading[toolIndex][wIndex].loading"
  4918. trigger="hover"
  4919. >
  4920. <markScore
  4921. :loading="AIloading[toolIndex][wIndex].loading"
  4922. :markScoreVisible="markScoreVisible"
  4923. :ref="`markSco${toolIndex}${wIndex}`"
  4924. @updateLoading="updateLoading"
  4925. @updateDocSco="updateDocSco"
  4926. @refreshOther="refreshOther"
  4927. @markScoreDig="markScoreDig"
  4928. :tool="tool"
  4929. :wIndex="wIndex"
  4930. :scoCon="w"
  4931. :toolIndex="toolIndex"
  4932. :key="refreshKey"
  4933. :stage="courseType"
  4934. :task="taskCount"
  4935. :scoTit="
  4936. chapInfoList[courseType].chapterInfo[0]
  4937. .taskJson[taskCount].eList
  4938. "
  4939. >
  4940. </markScore>
  4941. <div
  4942. class="answerScore"
  4943. @click="
  4944. markScoreDig2(
  4945. w.sName,
  4946. worksStudent,
  4947. w.userid,
  4948. toolIndex,
  4949. chapInfoList[courseType].chapterInfo[0]
  4950. .taskJson[taskCount].eList,
  4951. AIloading[toolIndex][wIndex].loading,
  4952. tool
  4953. )
  4954. "
  4955. slot="reference"
  4956. :class="{
  4957. rightW:
  4958. w.userid == userid ||
  4959. tType == 1 ||
  4960. tType == 4 ||
  4961. w.ateacher == userid
  4962. }"
  4963. >
  4964. <span v-if="AIloading[toolIndex][wIndex].sco">
  4965. {{
  4966. AIloading[toolIndex][wIndex].loading
  4967. ? "评分中"
  4968. : AIloading[toolIndex][wIndex].sco + "分"
  4969. }}
  4970. </span>
  4971. <span v-else>
  4972. {{
  4973. AIloading[toolIndex][wIndex].loading
  4974. ? "评分中"
  4975. : "评分"
  4976. }}
  4977. </span>
  4978. </div>
  4979. </el-popover>
  4980. </div>
  4981. <img
  4982. class="deleteImg"
  4983. src="../../assets/deleteworks.png"
  4984. v-if="
  4985. w.userid == userid || tType == 1 || tType == 4
  4986. "
  4987. @click.stop="deleteWorks(w.wid)"
  4988. alt
  4989. />
  4990. </div>
  4991. <div
  4992. class="workImg"
  4993. style="cursor: pointer"
  4994. v-if="w.type == 1"
  4995. >
  4996. <img :src="word" @click="openFile(w.works)" alt />
  4997. <!-- @click="openFile(w.works)" -->
  4998. <div
  4999. class="answerScore"
  5000. v-if="w.score"
  5001. @click.stop="openScore(w)"
  5002. :class="{
  5003. rightW:
  5004. w.userid == userid ||
  5005. tType == 1 ||
  5006. tType == 4 ||
  5007. w.ateacher == userid
  5008. }"
  5009. >
  5010. {{ JSON.parse(w.score).wScore }}分
  5011. </div>
  5012. <div
  5013. class="answerScore"
  5014. @click.stop="openScore(w)"
  5015. v-else-if="
  5016. courseDetail.userid == userid &&
  5017. courseDetail.state != 5 &&
  5018. chapInfoList[courseType].chapterInfo[0]
  5019. .taskJson[taskCount].eList &&
  5020. chapInfoList[courseType].chapterInfo[0]
  5021. .taskJson[taskCount].eList.length
  5022. "
  5023. :class="{
  5024. rightW:
  5025. w.userid == userid ||
  5026. tType == 1 ||
  5027. tType == 4 ||
  5028. w.ateacher == userid
  5029. }"
  5030. >
  5031. 评分
  5032. </div>
  5033. <!-- <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"> -->
  5034. <div
  5035. v-else-if="
  5036. (courseDetail.userid == userid ||
  5037. (courseDetail.course_teacher &&
  5038. courseDetail.course_teacher.indexOf(userid) !=
  5039. -1) ||
  5040. (w.userid == userid && sIsOpen)) &&
  5041. courseDetail.state == 5 &&
  5042. ((chapInfoList[courseType].chapterInfo[0]
  5043. .taskJson[taskCount].eList &&
  5044. chapInfoList[courseType].chapterInfo[0]
  5045. .taskJson[taskCount].eList.length) ||
  5046. (tool.eList && tool.eList.length))
  5047. "
  5048. >
  5049. <el-popover
  5050. placement="top"
  5051. width="318"
  5052. :disabled="AIloading[toolIndex][wIndex].loading"
  5053. trigger="hover"
  5054. >
  5055. <markScore
  5056. :loading="AIloading[toolIndex][wIndex].loading"
  5057. :markScoreVisible="markScoreVisible"
  5058. :ref="`markSco${toolIndex}${wIndex}`"
  5059. @updateLoading="updateLoading"
  5060. @updateDocSco="updateDocSco"
  5061. @refreshOther="refreshOther"
  5062. @markScoreDig="markScoreDig"
  5063. :tool="tool"
  5064. :wIndex="wIndex"
  5065. :scoCon="w"
  5066. :toolIndex="toolIndex"
  5067. :key="refreshKey"
  5068. :stage="courseType"
  5069. :task="taskCount"
  5070. :scoTit="
  5071. chapInfoList[courseType].chapterInfo[0]
  5072. .taskJson[taskCount].eList
  5073. "
  5074. >
  5075. </markScore>
  5076. <div
  5077. class="answerScore"
  5078. @click="
  5079. markScoreDig2(
  5080. w.sName,
  5081. worksStudent,
  5082. w.userid,
  5083. toolIndex,
  5084. chapInfoList[courseType].chapterInfo[0]
  5085. .taskJson[taskCount].eList,
  5086. AIloading[toolIndex][wIndex].loading,
  5087. tool
  5088. )
  5089. "
  5090. slot="reference"
  5091. :class="{
  5092. rightW:
  5093. w.userid == userid ||
  5094. tType == 1 ||
  5095. tType == 4 ||
  5096. w.ateacher == userid
  5097. }"
  5098. >
  5099. <span v-if="AIloading[toolIndex][wIndex].sco">
  5100. {{
  5101. AIloading[toolIndex][wIndex].loading
  5102. ? "评分中"
  5103. : AIloading[toolIndex][wIndex].sco + "分"
  5104. }}
  5105. </span>
  5106. <span v-else>
  5107. {{
  5108. AIloading[toolIndex][wIndex].loading
  5109. ? "评分中"
  5110. : "评分"
  5111. }}
  5112. </span>
  5113. </div>
  5114. </el-popover>
  5115. </div>
  5116. <img
  5117. class="deleteImg"
  5118. src="../../assets/deleteworks.png"
  5119. v-if="
  5120. w.userid == userid || tType == 1 || tType == 4
  5121. "
  5122. @click.stop="deleteWorks(w.wid)"
  5123. alt
  5124. />
  5125. </div>
  5126. <div class="workImg" v-if="w.type == 3">
  5127. <img
  5128. style="cursor: pointer"
  5129. :src="video"
  5130. @click="openVideo(w)"
  5131. alt
  5132. />
  5133. <!-- @click="openVideo(w.works)" -->
  5134. <div
  5135. class="answerScore"
  5136. v-if="w.score"
  5137. @click.stop="openScore(w)"
  5138. :class="{
  5139. rightW:
  5140. w.userid == userid ||
  5141. tType == 1 ||
  5142. tType == 4 ||
  5143. w.ateacher == userid
  5144. }"
  5145. >
  5146. {{ JSON.parse(w.score).wScore }}分
  5147. </div>
  5148. <div
  5149. class="answerScore"
  5150. @click.stop="openScore(w)"
  5151. v-else-if="
  5152. courseDetail.userid == userid &&
  5153. courseDetail.state != 5 &&
  5154. chapInfoList[courseType].chapterInfo[0]
  5155. .taskJson[taskCount].eList &&
  5156. chapInfoList[courseType].chapterInfo[0]
  5157. .taskJson[taskCount].eList.length
  5158. "
  5159. :class="{
  5160. rightW:
  5161. w.userid == userid ||
  5162. tType == 1 ||
  5163. tType == 4 ||
  5164. w.ateacher == userid
  5165. }"
  5166. >
  5167. 评分
  5168. </div>
  5169. <!-- <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"> -->
  5170. <div
  5171. v-else-if="
  5172. (courseDetail.userid == userid ||
  5173. (courseDetail.course_teacher &&
  5174. courseDetail.course_teacher.indexOf(userid) !=
  5175. -1) ||
  5176. (w.userid == userid && sIsOpen)) &&
  5177. courseDetail.state == 5 &&
  5178. ((chapInfoList[courseType].chapterInfo[0]
  5179. .taskJson[taskCount].eList &&
  5180. chapInfoList[courseType].chapterInfo[0]
  5181. .taskJson[taskCount].eList.length) ||
  5182. (tool.eList && tool.eList.length))
  5183. "
  5184. >
  5185. <el-popover
  5186. placement="top"
  5187. width="318"
  5188. :disabled="AIloading[toolIndex][wIndex].loading"
  5189. trigger="hover"
  5190. >
  5191. <markScore
  5192. :loading="AIloading[toolIndex][wIndex].loading"
  5193. :markScoreVisible="markScoreVisible"
  5194. :ref="`markSco${toolIndex}${wIndex}`"
  5195. @updateLoading="updateLoading"
  5196. @updateDocSco="updateDocSco"
  5197. @refreshOther="refreshOther"
  5198. @markScoreDig="markScoreDig"
  5199. :tool="tool"
  5200. :wIndex="wIndex"
  5201. :scoCon="w"
  5202. :toolIndex="toolIndex"
  5203. :key="refreshKey"
  5204. :stage="courseType"
  5205. :task="taskCount"
  5206. :scoTit="
  5207. chapInfoList[courseType].chapterInfo[0]
  5208. .taskJson[taskCount].eList
  5209. "
  5210. >
  5211. </markScore>
  5212. <div
  5213. class="answerScore"
  5214. @click="
  5215. markScoreDig2(
  5216. w.sName,
  5217. worksStudent,
  5218. w.userid,
  5219. toolIndex,
  5220. chapInfoList[courseType].chapterInfo[0]
  5221. .taskJson[taskCount].eList,
  5222. AIloading[toolIndex][wIndex].loading,
  5223. tool
  5224. )
  5225. "
  5226. slot="reference"
  5227. :class="{
  5228. rightW:
  5229. w.userid == userid ||
  5230. tType == 1 ||
  5231. tType == 4 ||
  5232. w.ateacher == userid
  5233. }"
  5234. >
  5235. <span v-if="AIloading[toolIndex][wIndex].sco">
  5236. {{
  5237. AIloading[toolIndex][wIndex].loading
  5238. ? "评分中"
  5239. : AIloading[toolIndex][wIndex].sco + "分"
  5240. }}
  5241. </span>
  5242. <span v-else>
  5243. {{
  5244. AIloading[toolIndex][wIndex].loading
  5245. ? "评分中"
  5246. : "评分"
  5247. }}
  5248. </span>
  5249. </div>
  5250. </el-popover>
  5251. </div>
  5252. <img
  5253. class="deleteImg"
  5254. src="../../assets/deleteworks.png"
  5255. v-if="
  5256. w.userid == userid || tType == 1 || tType == 4
  5257. "
  5258. @click.stop="deleteWorks(w.wid)"
  5259. alt
  5260. />
  5261. </div>
  5262. <div class="comment" style="min-width: 200px">
  5263. <div class="worksName">
  5264. <div
  5265. style="cursor: pointer"
  5266. @click="
  5267. openSname(w.sName, w.wid, toolIndex, w.userid)
  5268. "
  5269. >
  5270. {{ w.sName }}
  5271. </div>
  5272. </div>
  5273. <div class="commentList">
  5274. <div class="commentList">
  5275. <div
  5276. class="commentImg"
  5277. @click="
  5278. isLikes(
  5279. w.wid,
  5280. userid,
  5281. 1,
  5282. null,
  5283. w.isLikes,
  5284. w.sName
  5285. )
  5286. "
  5287. >
  5288. <img
  5289. :src="w.isLikes == true ? likes : noLikes"
  5290. alt=""
  5291. />
  5292. </div>
  5293. <div>{{ w.likesCount }}</div>
  5294. </div>
  5295. <div class="commentList" style="margin-right: 15px">
  5296. <div
  5297. class="commentImg"
  5298. @click="commentOther(w, toolIndex, wIndex)"
  5299. >
  5300. <img
  5301. src="../../assets/icon/comment/comment.png"
  5302. alt=""
  5303. />
  5304. </div>
  5305. <div>{{ w.commentCount }}</div>
  5306. </div>
  5307. </div>
  5308. </div>
  5309. </div>
  5310. </div>
  5311. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5312. 未提交
  5313. </div>
  5314. <div
  5315. class="noWorksS"
  5316. v-if="noWorksS && noWorksS[toolIndex].length"
  5317. >
  5318. <div
  5319. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5320. :key="sIndex"
  5321. class="noWorksName"
  5322. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5323. >
  5324. <el-tooltip
  5325. effect="dark"
  5326. :content="s.student"
  5327. placement="top"
  5328. >
  5329. <span>{{ s.student }}</span>
  5330. </el-tooltip>
  5331. </div>
  5332. </div>
  5333. </div>
  5334. <div
  5335. v-if="
  5336. tType &&
  5337. ((tType == 2 && sIsOpen == true) ||
  5338. tType == 1 ||
  5339. tType == 4) &&
  5340. tool.tool.indexOf(4) != -1 &&
  5341. (tool.askJson[0].answer ||
  5342. tool.askJson[0].answer === 0) &&
  5343. checkJson[toolIndex].length
  5344. "
  5345. class="xuan_right_box"
  5346. >
  5347. <div
  5348. class="tool_right_box"
  5349. v-for="(item, index) in tool.askJson"
  5350. :key="index"
  5351. >
  5352. <div style="width: calc(100% - 30px);">
  5353. <el-tooltip
  5354. effect="light"
  5355. :content="index + 1 + '、' + item.askstitle"
  5356. placement="top"
  5357. popper-class="text_tooltip"
  5358. >
  5359. <div
  5360. style="
  5361. width: calc(100% - 130px);
  5362. display: block;
  5363. white-space: nowrap;
  5364. overflow: hidden;
  5365. text-overflow: ellipsis;
  5366. word-break: break-word;
  5367. cursor: pointer;
  5368. "
  5369. >
  5370. {{ index + 1 + "、" + item.askstitle }}
  5371. </div>
  5372. </el-tooltip>
  5373. </div>
  5374. <div class="right_box_xuan">
  5375. <span>正确率</span>
  5376. <span>{{
  5377. (checkJson[toolIndex][index].right
  5378. ? checkJson[toolIndex][index].right
  5379. : 0) + "%"
  5380. }}</span>
  5381. </div>
  5382. </div>
  5383. </div>
  5384. <div
  5385. class="xuan_right_box"
  5386. style="background: unset; padding: 0 10px"
  5387. v-if="
  5388. tType &&
  5389. ((tType == 2 && sIsOpen == true) ||
  5390. tType == 1 ||
  5391. tType == 4) &&
  5392. tool.tool.indexOf(4) != -1
  5393. "
  5394. >
  5395. <AskStatic
  5396. v-if="
  5397. worksStudent.length &&
  5398. worksStudent[toolIndex].length > 0
  5399. "
  5400. :askJSON="tool"
  5401. :checkJson="checkJson[toolIndex]"
  5402. ></AskStatic>
  5403. </div>
  5404. <div
  5405. v-if="
  5406. tType &&
  5407. ((tType == 2 && sIsOpen == true) ||
  5408. tType == 1 ||
  5409. tType == 4) &&
  5410. tool.tool.indexOf(4) != -1
  5411. "
  5412. class="worksBox"
  5413. >
  5414. <div
  5415. class="zuoyeYulan"
  5416. v-if="
  5417. worksStudent.length &&
  5418. worksStudent[toolIndex].length > 0
  5419. "
  5420. >
  5421. <div class="worksTop">
  5422. <div>作业预览</div>
  5423. <div
  5424. class="corOpen"
  5425. @click="contract(toolIndex)"
  5426. v-if="
  5427. isCloseList[toolIndex].isCloseBoolean &&
  5428. isCloseList[toolIndex].isClose == 0
  5429. "
  5430. >
  5431. 折叠
  5432. </div>
  5433. <div
  5434. class="corOpen"
  5435. @click="contract(toolIndex)"
  5436. v-if="isCloseList[toolIndex].isClose == 1"
  5437. >
  5438. 展开
  5439. </div>
  5440. </div>
  5441. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5442. </div>
  5443. <div>
  5444. <div
  5445. :id="'tool-' + toolIndex"
  5446. :style="{
  5447. height:
  5448. isCloseList[toolIndex].isClose == 1
  5449. ? retrnToolHeight('tool-' + toolIndex)
  5450. : 'auto',
  5451. overflow:
  5452. isCloseList[toolIndex].isClose == 1
  5453. ? 'hidden'
  5454. : 'unset'
  5455. }"
  5456. class="worksDetailBox"
  5457. v-if="
  5458. worksStudent.length &&
  5459. worksStudent[toolIndex].length > 0
  5460. "
  5461. >
  5462. <div
  5463. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5464. :key="wIndex"
  5465. class="isWorksName2"
  5466. @click="
  5467. openTools(4, toolIndex, taskCount, w.works, w.sName)
  5468. "
  5469. >
  5470. {{ w.sName }}
  5471. <img
  5472. class="deleteImg deleteImg2"
  5473. src="../../assets/deleteworks.png"
  5474. v-if="
  5475. w.userid == userid || tType == 1 || tType == 4
  5476. "
  5477. @click.stop="deleteWorks(w.wid)"
  5478. alt
  5479. />
  5480. </div>
  5481. <!-- <div class="works" style="
  5482. width: 200px;
  5483. height: 140px;
  5484. border-radius: 10px;
  5485. box-shadow: 0 0 6px 1px #dfdada;
  5486. overflow: hidden;
  5487. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  5488. <div class="workImg">
  5489. <img src="../../assets/icon/works/noImg.png" @click="
  5490. openTools(
  5491. 4,
  5492. toolIndex,
  5493. taskCount,
  5494. w.works,
  5495. w.sName
  5496. )
  5497. " alt />
  5498. </div>
  5499. <div class="worksName">
  5500. <div>{{ w.sName }}</div>
  5501. <div>{{ w.time }}</div>
  5502. </div>
  5503. </div> -->
  5504. </div>
  5505. </div>
  5506. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5507. 未提交
  5508. </div>
  5509. <div
  5510. class="noWorksS"
  5511. v-if="noWorksS && noWorksS[toolIndex].length"
  5512. >
  5513. <div
  5514. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5515. :key="sIndex"
  5516. class="noWorksName"
  5517. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  5518. >
  5519. <el-tooltip
  5520. effect="dark"
  5521. :content="s.student"
  5522. placement="top"
  5523. >
  5524. <span>{{ s.student }}</span>
  5525. </el-tooltip>
  5526. </div>
  5527. </div>
  5528. </div>
  5529. <div
  5530. v-if="
  5531. tType &&
  5532. ((tType == 2 && sIsOpen == true) ||
  5533. tType == 1 ||
  5534. tType == 4) &&
  5535. tool.tool.indexOf(45) != -1 &&
  5536. (tool.testJson.testJson[0].answer ||
  5537. tool.testJson.testJson[0].answer === 0) &&
  5538. checkJson[toolIndex].length
  5539. "
  5540. class="xuan_right_box"
  5541. >
  5542. <div
  5543. class="tool_right_box"
  5544. v-for="(item, index) in tool.testJson.testJson"
  5545. :key="index"
  5546. >
  5547. <div class="right_box_xuan" style="margin-right: 10px">
  5548. <span>正确率</span>
  5549. <span>{{
  5550. (checkJson[toolIndex][index].right
  5551. ? checkJson[toolIndex][index].right
  5552. : 0) + "%"
  5553. }}</span>
  5554. </div>
  5555. <div style="width: calc(100% - 30px);">
  5556. <el-tooltip
  5557. effect="light"
  5558. :content="index + 1 + '、' + item.teststitle"
  5559. placement="top"
  5560. popper-class="text_tooltip"
  5561. >
  5562. <div
  5563. style="
  5564. width: calc(100% - 130px);
  5565. display: block;
  5566. white-space: nowrap;
  5567. overflow: hidden;
  5568. text-overflow: ellipsis;
  5569. word-break: break-word;
  5570. cursor: pointer;
  5571. "
  5572. >
  5573. {{ index + 1 + "、" + item.teststitle }}
  5574. </div>
  5575. </el-tooltip>
  5576. </div>
  5577. </div>
  5578. </div>
  5579. <div
  5580. class="xuan_right_box"
  5581. style="background: unset; padding: 0 10px; width: 91.5%"
  5582. v-if="
  5583. tType &&
  5584. ((tType == 2 && sIsOpen == true) ||
  5585. tType == 1 ||
  5586. tType == 4) &&
  5587. tool.tool.indexOf(45) != -1
  5588. "
  5589. >
  5590. <AskStatic2
  5591. v-if="
  5592. worksStudent.length &&
  5593. worksStudent[toolIndex].length > 0
  5594. "
  5595. :askJSON="tool"
  5596. :checkJson="checkJson[toolIndex]"
  5597. ></AskStatic2>
  5598. </div>
  5599. <div
  5600. v-if="
  5601. tType &&
  5602. ((tType == 2 && sIsOpen == true) ||
  5603. tType == 1 ||
  5604. tType == 4) &&
  5605. tool.tool.indexOf(45) != -1
  5606. "
  5607. class="worksBox"
  5608. >
  5609. <div
  5610. class="zuoyeYulan"
  5611. v-if="
  5612. worksStudent.length &&
  5613. worksStudent[toolIndex].length > 0
  5614. "
  5615. >
  5616. <div class="worksTop">
  5617. <div>作业预览</div>
  5618. <div
  5619. class="corOpen"
  5620. @click="contract(toolIndex)"
  5621. v-if="
  5622. isCloseList[toolIndex].isCloseBoolean &&
  5623. isCloseList[toolIndex].isClose == 0
  5624. "
  5625. >
  5626. 折叠
  5627. </div>
  5628. <div
  5629. class="corOpen"
  5630. @click="contract(toolIndex)"
  5631. v-if="isCloseList[toolIndex].isClose == 1"
  5632. >
  5633. 展开
  5634. </div>
  5635. </div>
  5636. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5637. </div>
  5638. <div>
  5639. <div
  5640. :id="'tool-' + toolIndex"
  5641. :style="{
  5642. height:
  5643. isCloseList[toolIndex].isClose == 1
  5644. ? retrnToolHeight('tool-' + toolIndex)
  5645. : 'auto',
  5646. overflow:
  5647. isCloseList[toolIndex].isClose == 1
  5648. ? 'hidden'
  5649. : 'unset'
  5650. }"
  5651. class="worksDetailBox"
  5652. v-if="
  5653. worksStudent.length &&
  5654. worksStudent[toolIndex].length > 0
  5655. "
  5656. >
  5657. <div
  5658. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5659. :key="wIndex"
  5660. class="isWorksName2"
  5661. @click="
  5662. openTools(
  5663. 45,
  5664. toolIndex,
  5665. taskCount,
  5666. w.works,
  5667. w.sName
  5668. )
  5669. "
  5670. >
  5671. {{ w.sName }}
  5672. <img
  5673. class="deleteImg deleteImg2"
  5674. src="../../assets/deleteworks.png"
  5675. v-if="
  5676. w.userid == userid || tType == 1 || tType == 4
  5677. "
  5678. @click.stop="deleteWorks(w.wid)"
  5679. alt
  5680. />
  5681. </div>
  5682. </div>
  5683. </div>
  5684. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5685. 未提交
  5686. </div>
  5687. <div
  5688. class="noWorksS"
  5689. v-if="noWorksS && noWorksS[toolIndex].length"
  5690. >
  5691. <div
  5692. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5693. :key="sIndex"
  5694. class="noWorksName"
  5695. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  5696. >
  5697. <el-tooltip
  5698. effect="dark"
  5699. :content="s.student"
  5700. placement="top"
  5701. >
  5702. <span>{{ s.student }}</span>
  5703. </el-tooltip>
  5704. </div>
  5705. </div>
  5706. </div>
  5707. <div
  5708. v-if="
  5709. tType &&
  5710. ((tType == 2 && sIsOpen == true) ||
  5711. tType == 1 ||
  5712. tType == 4) &&
  5713. tool.tool.indexOf(69) != -1
  5714. "
  5715. class="worksBox"
  5716. >
  5717. <div
  5718. class="zuoyeYulan"
  5719. v-if="
  5720. worksStudent.length &&
  5721. worksStudent[toolIndex].length > 0
  5722. "
  5723. >
  5724. <div class="worksTop">
  5725. <div>作业预览</div>
  5726. <div
  5727. class="corOpen"
  5728. @click="contract(toolIndex)"
  5729. v-if="
  5730. isCloseList[toolIndex].isCloseBoolean &&
  5731. isCloseList[toolIndex].isClose == 0
  5732. "
  5733. >
  5734. 折叠
  5735. </div>
  5736. <div
  5737. class="corOpen"
  5738. @click="contract(toolIndex)"
  5739. v-if="isCloseList[toolIndex].isClose == 1"
  5740. >
  5741. 展开
  5742. </div>
  5743. </div>
  5744. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5745. </div>
  5746. <div>
  5747. <div
  5748. :id="'tool-' + toolIndex"
  5749. :style="{
  5750. height:
  5751. isCloseList[toolIndex].isClose == 1
  5752. ? retrnToolHeight('tool-' + toolIndex)
  5753. : 'auto',
  5754. overflow:
  5755. isCloseList[toolIndex].isClose == 1
  5756. ? 'hidden'
  5757. : 'unset'
  5758. }"
  5759. class="worksDetailBox"
  5760. v-if="
  5761. worksStudent.length &&
  5762. worksStudent[toolIndex].length > 0
  5763. "
  5764. >
  5765. <div
  5766. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5767. :key="wIndex"
  5768. class="isWorksName2"
  5769. style="width: 160px;height: 65px;line-height: 65px;"
  5770. @click="
  5771. openTools(
  5772. 69,
  5773. toolIndex,
  5774. taskCount,
  5775. w.works,
  5776. w.sName,
  5777. w.wid
  5778. )
  5779. "
  5780. >
  5781. {{ w.sName }}
  5782. <img
  5783. class="deleteImg1"
  5784. src="../../assets/evaEnglish.png"
  5785. @click.stop="openEnglishEva(w.wid, toolIndex)"
  5786. alt
  5787. v-if="
  5788. (courseDetail &&
  5789. (courseDetail.userid == userid ||
  5790. (courseDetail.course_teacher &&
  5791. courseDetail.course_teacher.indexOf(
  5792. userid
  5793. ) != -1))) ||
  5794. w.aiCode || w.teacherCode
  5795. "
  5796. />
  5797. <img
  5798. class="deleteImg deleteImg2"
  5799. src="../../assets/deleteworks.png"
  5800. v-if="
  5801. w.userid == userid || tType == 1 || tType == 4
  5802. "
  5803. @click.stop="deleteWorks(w.wid)"
  5804. alt
  5805. />
  5806. </div>
  5807. </div>
  5808. </div>
  5809. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5810. 未提交
  5811. </div>
  5812. <div
  5813. class="noWorksS"
  5814. v-if="noWorksS && noWorksS[toolIndex].length"
  5815. >
  5816. <div
  5817. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5818. :key="sIndex"
  5819. class="noWorksName"
  5820. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  5821. >
  5822. <el-tooltip
  5823. effect="dark"
  5824. :content="s.student"
  5825. placement="top"
  5826. >
  5827. <span>{{ s.student }}</span>
  5828. </el-tooltip>
  5829. </div>
  5830. </div>
  5831. </div>
  5832. <div
  5833. v-if="
  5834. tType &&
  5835. ((tType == 2 && sIsOpen == true) ||
  5836. tType == 1 ||
  5837. tType == 4) &&
  5838. tool.tool.indexOf(15) != -1
  5839. "
  5840. class="worksBox"
  5841. >
  5842. <div
  5843. class="zuoyeYulan"
  5844. v-if="
  5845. (worksStudent.length &&
  5846. worksStudent[toolIndex].length > 0) ||
  5847. (courseGroup.group && courseGroup.group.length)
  5848. "
  5849. >
  5850. <div class="worksTop">
  5851. <div>作业预览</div>
  5852. <div
  5853. class="corOpen"
  5854. @click="contract(toolIndex)"
  5855. v-if="
  5856. isCloseList[toolIndex].isCloseBoolean &&
  5857. isCloseList[toolIndex].isClose == 0
  5858. "
  5859. >
  5860. 折叠
  5861. </div>
  5862. <div
  5863. class="corOpen"
  5864. @click="contract(toolIndex)"
  5865. v-if="isCloseList[toolIndex].isClose == 1"
  5866. >
  5867. 展开
  5868. </div>
  5869. </div>
  5870. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5871. </div>
  5872. <div
  5873. class="group_workBox"
  5874. v-for="(g, gindex) in courseGroup.group"
  5875. :key="gindex"
  5876. >
  5877. <div class="group_box">
  5878. <div class="group_title">
  5879. <el-tooltip
  5880. class="item"
  5881. effect="light"
  5882. :content="g.name"
  5883. placement="top"
  5884. >
  5885. <div class="group_name">{{ g.name }}</div>
  5886. </el-tooltip>
  5887. </div>
  5888. <div
  5889. class="group_work"
  5890. v-if="
  5891. g.works &&
  5892. g.works.length &&
  5893. g.works[toolIndex].length
  5894. "
  5895. >
  5896. <div
  5897. class="works"
  5898. v-for="(w, wIndex) in g.works[toolIndex]"
  5899. :key="wIndex"
  5900. >
  5901. <div
  5902. class="workImg"
  5903. style="
  5904. border-radius: 15px;
  5905. box-shadow: 0px 0px 5px 5px #eee;
  5906. "
  5907. >
  5908. <div
  5909. class="answerBg"
  5910. style="border-radius: 15px 15px 0 0"
  5911. @click="
  5912. commentOther(w, toolIndex, wIndex, null, g.id)
  5913. "
  5914. >
  5915. <div class="answerContent">
  5916. {{ JSON.parse(w.works)[0].answer }}
  5917. </div>
  5918. <div
  5919. class="answerScore"
  5920. v-if="w.score"
  5921. @click.stop="openScore(w)"
  5922. :class="{
  5923. rightW:
  5924. w.userid == userid ||
  5925. tType == 1 ||
  5926. tType == 4
  5927. }"
  5928. >
  5929. {{ JSON.parse(w.score).wScore }}分
  5930. </div>
  5931. <div
  5932. class="answerScore"
  5933. @click.stop="openScore(w)"
  5934. v-else-if="
  5935. courseDetail.userid == userid &&
  5936. courseDetail.state != 5 &&
  5937. chapInfoList[courseType].chapterInfo[0]
  5938. .taskJson[taskCount].eList &&
  5939. chapInfoList[courseType].chapterInfo[0]
  5940. .taskJson[taskCount].eList.length
  5941. "
  5942. :class="{
  5943. rightW:
  5944. w.userid == userid ||
  5945. tType == 1 ||
  5946. tType == 4
  5947. }"
  5948. >
  5949. 评分
  5950. </div>
  5951. <!-- <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"> -->
  5952. <div
  5953. v-else-if="
  5954. (courseDetail.userid == userid ||
  5955. (courseDetail.course_teacher &&
  5956. courseDetail.course_teacher.indexOf(
  5957. userid
  5958. ) != -1) ||
  5959. (w.userid == userid && sIsOpen)) &&
  5960. courseDetail.state == 5 &&
  5961. ((chapInfoList[courseType].chapterInfo[0]
  5962. .taskJson[taskCount].eList &&
  5963. chapInfoList[courseType].chapterInfo[0]
  5964. .taskJson[taskCount].eList.length) ||
  5965. (tool.eList && tool.eList.length))
  5966. "
  5967. >
  5968. <el-popover
  5969. placement="top"
  5970. width="318"
  5971. :disabled="
  5972. AIloading[toolIndex][wIndex].loading
  5973. "
  5974. trigger="hover"
  5975. >
  5976. <markScore
  5977. :loading="
  5978. AIloading[toolIndex][wIndex].loading
  5979. "
  5980. :markScoreVisible="markScoreVisible"
  5981. :ref="`markSco${toolIndex}${wIndex}`"
  5982. @updateLoading="updateLoading"
  5983. @updateDocSco="updateDocSco"
  5984. @refreshOther="refreshOther"
  5985. @markScoreDig="markScoreDig"
  5986. :tool="tool"
  5987. :wIndex="wIndex"
  5988. :scoCon="w"
  5989. :toolIndex="toolIndex"
  5990. :key="refreshKey"
  5991. :stage="courseType"
  5992. :task="taskCount"
  5993. :scoTit="
  5994. chapInfoList[courseType].chapterInfo[0]
  5995. .taskJson[taskCount].eList
  5996. "
  5997. >
  5998. </markScore>
  5999. <div
  6000. class="answerScore"
  6001. @click.stop="
  6002. markScoreDig2(
  6003. w.sName,
  6004. worksStudent,
  6005. w.userid,
  6006. toolIndex,
  6007. chapInfoList[courseType]
  6008. .chapterInfo[0].taskJson[taskCount]
  6009. .eList,
  6010. AIloading[toolIndex][wIndex].loading,
  6011. tool
  6012. )
  6013. "
  6014. slot="reference"
  6015. :class="{
  6016. rightW:
  6017. w.userid == userid ||
  6018. tType == 1 ||
  6019. tType == 4 ||
  6020. w.ateacher == userid
  6021. }"
  6022. >
  6023. <span
  6024. v-if="AIloading[toolIndex][wIndex].sco"
  6025. >
  6026. {{
  6027. AIloading[toolIndex][wIndex].loading
  6028. ? "评分中"
  6029. : AIloading[toolIndex][wIndex].sco +
  6030. "分"
  6031. }}
  6032. </span>
  6033. <span v-else>
  6034. {{
  6035. AIloading[toolIndex][wIndex].loading
  6036. ? "评分中"
  6037. : "评分"
  6038. }}
  6039. </span>
  6040. </div>
  6041. </el-popover>
  6042. </div>
  6043. <img
  6044. class="deleteImg"
  6045. src="../../assets/deleteworks.png"
  6046. v-if="
  6047. w.userid == userid ||
  6048. tType == 1 ||
  6049. tType == 4
  6050. "
  6051. @click.stop="deleteWorks(w.wid)"
  6052. alt
  6053. />
  6054. </div>
  6055. <div class="comment">
  6056. <div class="worksName">
  6057. <div>{{ w.sName }}</div>
  6058. </div>
  6059. <div class="commentList">
  6060. <div
  6061. class="commentImg"
  6062. @click="
  6063. isLikes(
  6064. w.wid,
  6065. userid,
  6066. 1,
  6067. null,
  6068. w.isLikes,
  6069. w.sName
  6070. )
  6071. "
  6072. >
  6073. <img
  6074. :src="w.isLikes == true ? likes : noLikes"
  6075. alt=""
  6076. />
  6077. </div>
  6078. <div>{{ w.likesCount }}</div>
  6079. </div>
  6080. <div
  6081. class="commentList"
  6082. style="margin-right: 15px"
  6083. >
  6084. <div
  6085. class="commentImg"
  6086. @click="
  6087. commentOther(
  6088. w,
  6089. toolIndex,
  6090. wIndex,
  6091. null,
  6092. g.id
  6093. )
  6094. "
  6095. >
  6096. <img
  6097. src="../../assets/icon/comment/comment.png"
  6098. alt=""
  6099. />
  6100. </div>
  6101. <div>{{ w.commentCount }}</div>
  6102. </div>
  6103. </div>
  6104. </div>
  6105. </div>
  6106. </div>
  6107. <div class="group_work" v-else>暂无提交作业</div>
  6108. </div>
  6109. </div>
  6110. <div
  6111. :id="'tool-' + toolIndex"
  6112. :style="{
  6113. height:
  6114. isCloseList[toolIndex].isClose == 1
  6115. ? retrnToolHeight('tool-' + toolIndex)
  6116. : 'auto',
  6117. overflow:
  6118. isCloseList[toolIndex].isClose == 1
  6119. ? 'hidden'
  6120. : 'unset'
  6121. }"
  6122. class="worksDetailBox"
  6123. v-if="
  6124. worksStudent.length &&
  6125. worksStudent[toolIndex].length > 0
  6126. "
  6127. >
  6128. <div
  6129. class="works"
  6130. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6131. :key="wIndex"
  6132. >
  6133. <div
  6134. class="workImg"
  6135. style="
  6136. border-radius: 15px;
  6137. box-shadow: 0px 0px 5px 5px #eee;
  6138. "
  6139. >
  6140. <!-- <img
  6141. src="../../assets/icon/works/noImg.png"
  6142. @click="openTools(15, toolIndex, taskCount, w.works)"
  6143. alt=""
  6144. />-->
  6145. <div
  6146. class="answerBg"
  6147. style="border-radius: 15px 15px 0 0"
  6148. @click="commentOther(w, toolIndex, wIndex)"
  6149. >
  6150. <!-- <div>{{ w.sName }}</div> -->
  6151. <div class="answerContent">
  6152. {{ JSON.parse(w.works)[0].answer }}
  6153. </div>
  6154. <div
  6155. class="answerScore"
  6156. v-if="w.score"
  6157. @click.stop="openScore(w)"
  6158. :class="{
  6159. rightW:
  6160. w.userid == userid || tType == 1 || tType == 4
  6161. }"
  6162. >
  6163. {{ JSON.parse(w.score).wScore }}分
  6164. </div>
  6165. <div
  6166. class="answerScore"
  6167. @click.stop="openScore(w)"
  6168. v-else-if="
  6169. courseDetail.userid == userid &&
  6170. courseDetail.state != 5 &&
  6171. chapInfoList[courseType].chapterInfo[0]
  6172. .taskJson[taskCount].eList &&
  6173. chapInfoList[courseType].chapterInfo[0]
  6174. .taskJson[taskCount].eList.length
  6175. "
  6176. :class="{
  6177. rightW:
  6178. w.userid == userid || tType == 1 || tType == 4
  6179. }"
  6180. >
  6181. 评分
  6182. </div>
  6183. <!-- <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"> -->
  6184. <div
  6185. v-else-if="
  6186. (courseDetail.userid == userid ||
  6187. (courseDetail.course_teacher &&
  6188. courseDetail.course_teacher.indexOf(
  6189. userid
  6190. ) != -1) ||
  6191. (w.userid == userid && sIsOpen)) &&
  6192. courseDetail.state == 5 &&
  6193. ((chapInfoList[courseType].chapterInfo[0]
  6194. .taskJson[taskCount].eList &&
  6195. chapInfoList[courseType].chapterInfo[0]
  6196. .taskJson[taskCount].eList.length) ||
  6197. (tool.eList && tool.eList.length))
  6198. "
  6199. >
  6200. <el-popover
  6201. placement="top"
  6202. width="318"
  6203. :disabled="AIloading[toolIndex][wIndex].loading"
  6204. trigger="hover"
  6205. >
  6206. <markScore
  6207. :loading="
  6208. AIloading[toolIndex][wIndex].loading
  6209. "
  6210. :markScoreVisible="markScoreVisible"
  6211. :ref="`markSco${toolIndex}${wIndex}`"
  6212. @updateLoading="updateLoading"
  6213. @updateDocSco="updateDocSco"
  6214. @refreshOther="refreshOther"
  6215. @markScoreDig="markScoreDig"
  6216. :tool="tool"
  6217. :wIndex="wIndex"
  6218. :scoCon="w"
  6219. :toolIndex="toolIndex"
  6220. :key="refreshKey"
  6221. :stage="courseType"
  6222. :task="taskCount"
  6223. :scoTit="
  6224. chapInfoList[courseType].chapterInfo[0]
  6225. .taskJson[taskCount].eList
  6226. "
  6227. >
  6228. </markScore>
  6229. <div
  6230. class="answerScore"
  6231. @click.stop="
  6232. markScoreDig2(
  6233. w.sName,
  6234. worksStudent,
  6235. w.userid,
  6236. toolIndex,
  6237. chapInfoList[courseType].chapterInfo[0]
  6238. .taskJson[taskCount].eList,
  6239. AIloading[toolIndex][wIndex].loading,
  6240. tool
  6241. )
  6242. "
  6243. slot="reference"
  6244. :class="{
  6245. rightW:
  6246. w.userid == userid ||
  6247. tType == 1 ||
  6248. tType == 4 ||
  6249. w.ateacher == userid
  6250. }"
  6251. >
  6252. <span v-if="AIloading[toolIndex][wIndex].sco">
  6253. {{
  6254. AIloading[toolIndex][wIndex].loading
  6255. ? "评分中"
  6256. : AIloading[toolIndex][wIndex].sco +
  6257. "分"
  6258. }}
  6259. </span>
  6260. <span v-else>
  6261. {{
  6262. AIloading[toolIndex][wIndex].loading
  6263. ? "评分中"
  6264. : "评分"
  6265. }}
  6266. </span>
  6267. </div>
  6268. </el-popover>
  6269. </div>
  6270. <img
  6271. class="deleteImg"
  6272. src="../../assets/deleteworks.png"
  6273. v-if="
  6274. w.userid == userid || tType == 1 || tType == 4
  6275. "
  6276. @click.stop="deleteWorks(w.wid)"
  6277. alt
  6278. />
  6279. </div>
  6280. <div class="comment">
  6281. <div class="worksName">
  6282. <div>{{ w.sName }}</div>
  6283. </div>
  6284. <div class="commentList">
  6285. <div
  6286. class="commentImg"
  6287. @click="
  6288. isLikes(
  6289. w.wid,
  6290. userid,
  6291. 1,
  6292. null,
  6293. w.isLikes,
  6294. w.sName
  6295. )
  6296. "
  6297. >
  6298. <img
  6299. :src="w.isLikes == true ? likes : noLikes"
  6300. alt=""
  6301. />
  6302. </div>
  6303. <div>{{ w.likesCount }}</div>
  6304. </div>
  6305. <div class="commentList" style="margin-right: 15px">
  6306. <div
  6307. class="commentImg"
  6308. @click="commentOther(w, toolIndex, wIndex)"
  6309. >
  6310. <img
  6311. src="../../assets/icon/comment/comment.png"
  6312. alt=""
  6313. />
  6314. </div>
  6315. <div>{{ w.commentCount }}</div>
  6316. </div>
  6317. </div>
  6318. </div>
  6319. </div>
  6320. </div>
  6321. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6322. 未提交
  6323. </div>
  6324. <div
  6325. class="noWorksS"
  6326. v-if="noWorksS && noWorksS[toolIndex].length"
  6327. >
  6328. <div
  6329. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6330. :key="sIndex"
  6331. class="noWorksName"
  6332. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6333. >
  6334. <el-tooltip
  6335. effect="dark"
  6336. :content="s.student"
  6337. placement="top"
  6338. >
  6339. <span>{{ s.student }}</span>
  6340. </el-tooltip>
  6341. </div>
  6342. </div>
  6343. </div>
  6344. <div
  6345. v-if="
  6346. tType &&
  6347. ((tType == 2 && sIsOpen == true) ||
  6348. tType == 1 ||
  6349. tType == 4) &&
  6350. tool.tool.indexOf(1) != -1
  6351. "
  6352. class="worksBox"
  6353. >
  6354. <div
  6355. class="zuoyeYulan"
  6356. style="display: flex;justify-content: space-between;align-items: center;"
  6357. v-if="
  6358. (worksStudent.length &&
  6359. worksStudent[toolIndex].length > 0) ||
  6360. (courseGroup.group && courseGroup.group.length)
  6361. "
  6362. >
  6363. <div class="worksTop">
  6364. <div>作业预览</div>
  6365. <div
  6366. class="corOpen"
  6367. @click="contract(toolIndex)"
  6368. v-if="
  6369. isCloseList[toolIndex].isCloseBoolean &&
  6370. isCloseList[toolIndex].isClose == 0
  6371. "
  6372. >
  6373. 折叠
  6374. </div>
  6375. <div
  6376. class="corOpen"
  6377. @click="contract(toolIndex)"
  6378. v-if="isCloseList[toolIndex].isClose == 1"
  6379. >
  6380. 展开
  6381. </div>
  6382. </div>
  6383. <div
  6384. style="display: flex;"
  6385. v-if="
  6386. (courseDetail.userid == userid ||
  6387. (courseDetail.course_teacher &&
  6388. courseDetail.course_teacher.indexOf(userid) !=
  6389. -1)) &&
  6390. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6391. taskCount
  6392. ].eList &&
  6393. chapInfoList[courseType].chapterInfo[0].taskJson[
  6394. taskCount
  6395. ].eList.length) ||
  6396. (tool.eList && tool.eList.length)) &&
  6397. courseDetail.state == 5
  6398. "
  6399. >
  6400. <div
  6401. style="margin-right:10px"
  6402. class="ScoreBtn"
  6403. @click="
  6404. resetLoopEva(
  6405. worksStudent[toolIndex],
  6406. chapInfoList[courseType].chapterInfo[0].taskJson[
  6407. taskCount
  6408. ].eList,
  6409. courseType,
  6410. taskCount,
  6411. toolIndex,
  6412. tool.toolDetail,
  6413. worksStudent
  6414. )
  6415. "
  6416. >
  6417. 一键重置
  6418. </div>
  6419. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6420. <img
  6421. src="../../assets/icon/newIcons/rootImg.png"
  6422. alt=""
  6423. />
  6424. AI评分
  6425. </div>
  6426. <div
  6427. class="ScoreBtn"
  6428. v-else-if="!loopLoading[toolIndex].loading"
  6429. @click="
  6430. loopEva(
  6431. worksStudent[toolIndex],
  6432. chapInfoList[courseType].chapterInfo[0].taskJson[
  6433. taskCount
  6434. ].eList,
  6435. courseType,
  6436. taskCount,
  6437. toolIndex,
  6438. tool.toolDetail,
  6439. chapInfoList[courseType].chapterInfo[0].taskJson[
  6440. taskCount
  6441. ].taskDetail,
  6442. tool
  6443. )
  6444. "
  6445. >
  6446. <img
  6447. src="../../assets/icon/newIcons/rootImg.png"
  6448. alt=""
  6449. />
  6450. AI评分
  6451. </div>
  6452. <div class="ScoreBtn" v-else>
  6453. <img
  6454. src="../../assets/icon/newIcons/rootImg.png"
  6455. alt=""
  6456. />
  6457. 正在评分
  6458. </div>
  6459. </div>
  6460. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6461. </div>
  6462. <div
  6463. class="group_workBox"
  6464. v-for="(g, gindex) in courseGroup.group"
  6465. :key="gindex"
  6466. >
  6467. <div class="group_box">
  6468. <div class="group_title">
  6469. <el-tooltip
  6470. class="item"
  6471. effect="light"
  6472. :content="g.name"
  6473. placement="top"
  6474. >
  6475. <div class="group_name">{{ g.name }}</div>
  6476. </el-tooltip>
  6477. </div>
  6478. <div
  6479. class="group_work"
  6480. v-if="
  6481. g.works &&
  6482. g.works.length &&
  6483. g.works[toolIndex].length
  6484. "
  6485. >
  6486. <div
  6487. class="works"
  6488. style="
  6489. width: 200px;
  6490. height: 140px;
  6491. margin: 10px 10px 10px 0;
  6492. border-radius: 15px;
  6493. box-shadow: 0 0 6px 1px #dfdada;
  6494. "
  6495. v-for="(w, wIndex) in g.works[toolIndex]"
  6496. :key="wIndex"
  6497. :class="w.type == 1 ? 'isTypeOne' : ''"
  6498. >
  6499. <div class="workImg">
  6500. <img
  6501. :src="w.works"
  6502. @click="previewImg(w.works, w)"
  6503. alt
  6504. />
  6505. <div
  6506. class="answerScore"
  6507. v-if="w.score"
  6508. @click.stop="openScore(w)"
  6509. :class="{
  6510. rightW:
  6511. w.userid == userid ||
  6512. tType == 1 ||
  6513. tType == 4
  6514. }"
  6515. >
  6516. {{ JSON.parse(w.score).wScore }}分
  6517. </div>
  6518. <div
  6519. class="answerScore"
  6520. @click.stop="openScore(w)"
  6521. v-else-if="courseDetail.userid == userid"
  6522. :class="{
  6523. rightW:
  6524. w.userid == userid ||
  6525. tType == 1 ||
  6526. tType == 4
  6527. }"
  6528. >
  6529. 评分
  6530. </div>
  6531. <img
  6532. class="deleteImg"
  6533. src="../../assets/deleteworks.png"
  6534. v-if="
  6535. w.userid == userid || tType == 1 || tType == 4
  6536. "
  6537. @click.stop="deleteWorks(w.wid)"
  6538. alt
  6539. />
  6540. </div>
  6541. <div class="comment" style="min-width: 200px">
  6542. <div class="worksName">
  6543. <div>{{ w.sName }}</div>
  6544. </div>
  6545. <div class="commentList">
  6546. <div class="commentList">
  6547. <div
  6548. class="commentImg"
  6549. @click="
  6550. isLikes(
  6551. w.wid,
  6552. userid,
  6553. 1,
  6554. null,
  6555. w.isLikes,
  6556. w.sName
  6557. )
  6558. "
  6559. >
  6560. <img
  6561. :src="w.isLikes == true ? likes : noLikes"
  6562. alt=""
  6563. />
  6564. </div>
  6565. <div>{{ w.likesCount }}</div>
  6566. </div>
  6567. <div
  6568. class="commentList"
  6569. style="margin-right: 15px"
  6570. >
  6571. <div
  6572. class="commentImg"
  6573. @click="
  6574. commentOther(
  6575. w,
  6576. toolIndex,
  6577. wIndex,
  6578. null,
  6579. g.id
  6580. )
  6581. "
  6582. >
  6583. <img
  6584. src="../../assets/icon/comment/comment.png"
  6585. alt=""
  6586. />
  6587. </div>
  6588. <div>{{ w.commentCount }}</div>
  6589. </div>
  6590. </div>
  6591. </div>
  6592. </div>
  6593. </div>
  6594. <div class="group_work" v-else>暂无提交作业</div>
  6595. </div>
  6596. </div>
  6597. <div
  6598. :id="'tool-' + toolIndex"
  6599. :style="{
  6600. height:
  6601. isCloseList[toolIndex].isClose == 1
  6602. ? retrnToolHeight('tool-' + toolIndex)
  6603. : 'auto',
  6604. overflow:
  6605. isCloseList[toolIndex].isClose == 1
  6606. ? 'hidden'
  6607. : 'unset'
  6608. }"
  6609. class="worksDetailBox"
  6610. v-if="
  6611. worksStudent.length &&
  6612. worksStudent[toolIndex].length > 0
  6613. "
  6614. >
  6615. <div
  6616. class="works"
  6617. style="
  6618. width: 200px;
  6619. height: 140px;
  6620. margin: 10px 10px 10px 0;
  6621. border-radius: 15px;
  6622. box-shadow: 0 0 6px 1px #dfdada;
  6623. "
  6624. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6625. :key="wIndex"
  6626. >
  6627. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6628. <div class="workImg">
  6629. <img
  6630. :src="w.works"
  6631. @click="previewImg(w.works, w)"
  6632. alt
  6633. />
  6634. <div
  6635. class="answerScore"
  6636. v-if="w.score"
  6637. @click.stop="openScore(w)"
  6638. :class="{
  6639. rightW:
  6640. w.userid == userid || tType == 1 || tType == 4
  6641. }"
  6642. >
  6643. {{ JSON.parse(w.score).wScore }}分
  6644. </div>
  6645. <div
  6646. class="answerScore"
  6647. @click.stop="openScore(w)"
  6648. v-else-if="
  6649. courseDetail.userid == userid &&
  6650. courseDetail.state != 5 &&
  6651. chapInfoList[courseType].chapterInfo[0]
  6652. .taskJson[taskCount].eList &&
  6653. chapInfoList[courseType].chapterInfo[0]
  6654. .taskJson[taskCount].eList.length
  6655. "
  6656. :class="{
  6657. rightW:
  6658. w.userid == userid || tType == 1 || tType == 4
  6659. }"
  6660. >
  6661. 评分
  6662. </div>
  6663. <div
  6664. v-else-if="
  6665. (courseDetail.userid == userid ||
  6666. (courseDetail.course_teacher &&
  6667. courseDetail.course_teacher.indexOf(userid) !=
  6668. -1) ||
  6669. (courseDetail.course_teacher &&
  6670. courseDetail.course_teacher.indexOf(userid) !=
  6671. -1) ||
  6672. (courseDetail.course_teacher &&
  6673. courseDetail.course_teacher.indexOf(userid) !=
  6674. -1) ||
  6675. (w.userid == userid && sIsOpen)) &&
  6676. courseDetail.state == 5 &&
  6677. ((chapInfoList[courseType].chapterInfo[0]
  6678. .taskJson[taskCount].eList &&
  6679. chapInfoList[courseType].chapterInfo[0]
  6680. .taskJson[taskCount].eList.length) ||
  6681. (tool.eList && tool.eList.length))
  6682. "
  6683. >
  6684. <el-popover
  6685. placement="top"
  6686. width="318"
  6687. :disabled="AIloading[toolIndex][wIndex].loading"
  6688. trigger="hover"
  6689. >
  6690. <markScore
  6691. :loading="AIloading[toolIndex][wIndex].loading"
  6692. :markScoreVisible="markScoreVisible"
  6693. :ref="`markSco${toolIndex}${wIndex}`"
  6694. @updateLoading="updateLoading"
  6695. @updateDocSco="updateDocSco"
  6696. @refreshOther="refreshOther"
  6697. @markScoreDig="markScoreDig"
  6698. :tool="tool"
  6699. :wIndex="wIndex"
  6700. :scoCon="w"
  6701. :toolIndex="toolIndex"
  6702. :key="refreshKey"
  6703. :stage="courseType"
  6704. :task="taskCount"
  6705. :scoTit="
  6706. chapInfoList[courseType].chapterInfo[0]
  6707. .taskJson[taskCount].eList
  6708. "
  6709. >
  6710. </markScore>
  6711. <div
  6712. class="answerScore"
  6713. @click="
  6714. markScoreDig2(
  6715. w.sName,
  6716. worksStudent,
  6717. w.userid,
  6718. toolIndex,
  6719. chapInfoList[courseType].chapterInfo[0]
  6720. .taskJson[taskCount].eList,
  6721. AIloading[toolIndex][wIndex].loading,
  6722. tool
  6723. )
  6724. "
  6725. slot="reference"
  6726. :class="{
  6727. rightW:
  6728. w.userid == userid ||
  6729. tType == 1 ||
  6730. tType == 4 ||
  6731. w.ateacher == userid
  6732. }"
  6733. >
  6734. <span v-if="AIloading[toolIndex][wIndex].sco">
  6735. {{
  6736. AIloading[toolIndex][wIndex].loading
  6737. ? "评分中"
  6738. : AIloading[toolIndex][wIndex].sco + "分"
  6739. }}
  6740. </span>
  6741. <span v-else>
  6742. {{
  6743. AIloading[toolIndex][wIndex].loading
  6744. ? "评分中"
  6745. : "评分"
  6746. }}
  6747. </span>
  6748. </div>
  6749. </el-popover>
  6750. </div>
  6751. <img
  6752. class="deleteImg"
  6753. src="../../assets/deleteworks.png"
  6754. v-if="
  6755. w.userid == userid || tType == 1 || tType == 4
  6756. "
  6757. @click.stop="deleteWorks(w.wid)"
  6758. alt
  6759. />
  6760. </div>
  6761. <div class="comment" style="min-width: 200px">
  6762. <div class="worksName">
  6763. <div>{{ w.sName }}</div>
  6764. </div>
  6765. <div class="commentList">
  6766. <div class="commentList">
  6767. <div
  6768. class="commentImg"
  6769. @click="
  6770. isLikes(
  6771. w.wid,
  6772. userid,
  6773. 1,
  6774. null,
  6775. w.isLikes,
  6776. w.sName
  6777. )
  6778. "
  6779. >
  6780. <img
  6781. :src="w.isLikes == true ? likes : noLikes"
  6782. alt=""
  6783. />
  6784. </div>
  6785. <div>{{ w.likesCount }}</div>
  6786. </div>
  6787. <div class="commentList" style="margin-right: 15px">
  6788. <div
  6789. class="commentImg"
  6790. @click="commentOther(w, toolIndex, wIndex)"
  6791. >
  6792. <img
  6793. src="../../assets/icon/comment/comment.png"
  6794. alt=""
  6795. />
  6796. </div>
  6797. <div>{{ w.commentCount }}</div>
  6798. </div>
  6799. </div>
  6800. </div>
  6801. </div>
  6802. </div>
  6803. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6804. 未提交
  6805. </div>
  6806. <div
  6807. class="noWorksS"
  6808. v-if="noWorksS && noWorksS[toolIndex].length"
  6809. >
  6810. <div
  6811. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6812. :key="sIndex"
  6813. class="noWorksName"
  6814. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6815. >
  6816. <el-tooltip
  6817. effect="dark"
  6818. :content="s.student"
  6819. placement="top"
  6820. >
  6821. <span>{{ s.student }}</span>
  6822. </el-tooltip>
  6823. </div>
  6824. </div>
  6825. </div>
  6826. <div
  6827. v-if="
  6828. tType &&
  6829. ((tType == 2 && sIsOpen == true) ||
  6830. tType == 1 ||
  6831. tType == 4) &&
  6832. tool.tool.indexOf(3) != -1
  6833. "
  6834. class="worksBox"
  6835. >
  6836. <div
  6837. class="zuoyeYulan"
  6838. style="display: flex;justify-content: space-between;align-items: center;"
  6839. v-if="
  6840. (worksStudent.length &&
  6841. worksStudent[toolIndex].length > 0) ||
  6842. (courseGroup.group && courseGroup.group.length)
  6843. "
  6844. >
  6845. <div class="worksTop">
  6846. <div>作业预览</div>
  6847. <div
  6848. class="corOpen"
  6849. @click="contract(toolIndex)"
  6850. v-if="
  6851. isCloseList[toolIndex].isCloseBoolean &&
  6852. isCloseList[toolIndex].isClose == 0
  6853. "
  6854. >
  6855. 折叠
  6856. </div>
  6857. <div
  6858. class="corOpen"
  6859. @click="contract(toolIndex)"
  6860. v-if="isCloseList[toolIndex].isClose == 1"
  6861. >
  6862. 展开
  6863. </div>
  6864. </div>
  6865. <div
  6866. style="display: flex;"
  6867. v-if="
  6868. (courseDetail.userid == userid ||
  6869. (courseDetail.course_teacher &&
  6870. courseDetail.course_teacher.indexOf(userid) !=
  6871. -1)) &&
  6872. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6873. taskCount
  6874. ].eList &&
  6875. chapInfoList[courseType].chapterInfo[0].taskJson[
  6876. taskCount
  6877. ].eList.length) ||
  6878. (tool.eList && tool.eList.length)) &&
  6879. courseDetail.state == 5
  6880. "
  6881. >
  6882. <div
  6883. style="margin-right:10px"
  6884. class="ScoreBtn"
  6885. @click="
  6886. resetLoopEva(
  6887. worksStudent[toolIndex],
  6888. chapInfoList[courseType].chapterInfo[0].taskJson[
  6889. taskCount
  6890. ].eList,
  6891. courseType,
  6892. taskCount,
  6893. toolIndex,
  6894. tool.toolDetail,
  6895. worksStudent
  6896. )
  6897. "
  6898. >
  6899. 一键重置
  6900. </div>
  6901. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6902. <img
  6903. src="../../assets/icon/newIcons/rootImg.png"
  6904. alt=""
  6905. />
  6906. AI评分
  6907. </div>
  6908. <div
  6909. class="ScoreBtn"
  6910. v-else-if="!loopLoading[toolIndex].loading"
  6911. @click="
  6912. loopEva(
  6913. worksStudent[toolIndex],
  6914. chapInfoList[courseType].chapterInfo[0].taskJson[
  6915. taskCount
  6916. ].eList,
  6917. courseType,
  6918. taskCount,
  6919. toolIndex,
  6920. tool.toolDetail,
  6921. chapInfoList[courseType].chapterInfo[0].taskJson[
  6922. taskCount
  6923. ].taskDetail,
  6924. tool
  6925. )
  6926. "
  6927. >
  6928. <img
  6929. src="../../assets/icon/newIcons/rootImg.png"
  6930. alt=""
  6931. />
  6932. AI评分
  6933. </div>
  6934. <div class="ScoreBtn" v-else>
  6935. <img
  6936. src="../../assets/icon/newIcons/rootImg.png"
  6937. alt=""
  6938. />
  6939. 正在评分
  6940. </div>
  6941. </div>
  6942. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6943. </div>
  6944. <div
  6945. class="group_workBox"
  6946. v-for="(g, gindex) in courseGroup.group"
  6947. :key="gindex"
  6948. >
  6949. <div class="group_box">
  6950. <div class="group_title">
  6951. <el-tooltip
  6952. class="item"
  6953. effect="light"
  6954. :content="g.name"
  6955. placement="top"
  6956. >
  6957. <div class="group_name">{{ g.name }}</div>
  6958. </el-tooltip>
  6959. </div>
  6960. <div
  6961. class="group_work"
  6962. v-if="
  6963. g.works &&
  6964. g.works.length &&
  6965. g.works[toolIndex].length
  6966. "
  6967. >
  6968. <div
  6969. class="works"
  6970. style="
  6971. width: 200px;
  6972. height: 140px;
  6973. margin: 10px 10px 10px 0;
  6974. border-radius: 15px;
  6975. box-shadow: 0 0 6px 1px #dfdada;
  6976. "
  6977. v-for="(w, wIndex) in g.works[toolIndex]"
  6978. :key="wIndex"
  6979. :class="w.type == 1 ? 'isTypeOne' : ''"
  6980. >
  6981. <div class="workImg">
  6982. <img
  6983. :src="w.works"
  6984. @click="previewImg(w.works, w)"
  6985. alt
  6986. />
  6987. <div
  6988. class="answerScore"
  6989. v-if="w.score"
  6990. @click.stop="openScore(w)"
  6991. :class="{
  6992. rightW:
  6993. w.userid == userid ||
  6994. tType == 1 ||
  6995. tType == 4
  6996. }"
  6997. >
  6998. {{ JSON.parse(w.score).wScore }}分
  6999. </div>
  7000. <div
  7001. class="answerScore"
  7002. @click.stop="openScore(w)"
  7003. v-else-if="courseDetail.userid == userid"
  7004. :class="{
  7005. rightW:
  7006. w.userid == userid ||
  7007. tType == 1 ||
  7008. tType == 4
  7009. }"
  7010. >
  7011. 评分
  7012. </div>
  7013. <img
  7014. class="deleteImg"
  7015. src="../../assets/deleteworks.png"
  7016. v-if="
  7017. w.userid == userid || tType == 1 || tType == 4
  7018. "
  7019. @click.stop="deleteWorks(w.wid)"
  7020. alt
  7021. />
  7022. </div>
  7023. <div class="comment" style="min-width: 200px">
  7024. <div class="worksName">
  7025. <div>{{ w.sName }}</div>
  7026. </div>
  7027. <div class="commentList">
  7028. <div class="commentList">
  7029. <div
  7030. class="commentImg"
  7031. @click="
  7032. isLikes(
  7033. w.wid,
  7034. userid,
  7035. 1,
  7036. null,
  7037. w.isLikes,
  7038. w.sName
  7039. )
  7040. "
  7041. >
  7042. <img
  7043. :src="w.isLikes == true ? likes : noLikes"
  7044. alt=""
  7045. />
  7046. </div>
  7047. <div>{{ w.likesCount }}</div>
  7048. </div>
  7049. <div
  7050. class="commentList"
  7051. style="margin-right: 15px"
  7052. >
  7053. <div
  7054. class="commentImg"
  7055. @click="
  7056. commentOther(
  7057. w,
  7058. toolIndex,
  7059. wIndex,
  7060. null,
  7061. g.id
  7062. )
  7063. "
  7064. >
  7065. <img
  7066. src="../../assets/icon/comment/comment.png"
  7067. alt=""
  7068. />
  7069. </div>
  7070. <div>{{ w.commentCount }}</div>
  7071. </div>
  7072. </div>
  7073. </div>
  7074. </div>
  7075. </div>
  7076. <div class="group_work" v-else>暂无提交作业</div>
  7077. </div>
  7078. </div>
  7079. <div
  7080. :id="'tool-' + toolIndex"
  7081. :style="{
  7082. height:
  7083. isCloseList[toolIndex].isClose == 1
  7084. ? retrnToolHeight('tool-' + toolIndex)
  7085. : 'auto',
  7086. overflow:
  7087. isCloseList[toolIndex].isClose == 1
  7088. ? 'hidden'
  7089. : 'unset'
  7090. }"
  7091. class="worksDetailBox"
  7092. v-if="
  7093. worksStudent.length &&
  7094. worksStudent[toolIndex].length > 0
  7095. "
  7096. >
  7097. <div
  7098. class="works"
  7099. style="
  7100. width: 200px;
  7101. height: 140px;
  7102. margin: 10px 10px 10px 0;
  7103. border-radius: 15px;
  7104. box-shadow: 0 0 6px 1px #dfdada;
  7105. "
  7106. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7107. :key="wIndex"
  7108. >
  7109. <!-- @click="previewImg(w.works)" -->
  7110. <div class="workImg">
  7111. <img
  7112. :src="w.works"
  7113. @click="previewImg(w.works, w)"
  7114. alt
  7115. />
  7116. <div
  7117. class="answerScore"
  7118. v-if="w.score"
  7119. @click.stop="openScore(w)"
  7120. :class="{
  7121. rightW:
  7122. w.userid == userid || tType == 1 || tType == 4
  7123. }"
  7124. >
  7125. {{ JSON.parse(w.score).wScore }}分
  7126. </div>
  7127. <div
  7128. class="answerScore"
  7129. @click.stop="openScore(w)"
  7130. v-else-if="
  7131. courseDetail.userid == userid &&
  7132. courseDetail.state != 5 &&
  7133. chapInfoList[courseType].chapterInfo[0]
  7134. .taskJson[taskCount].eList &&
  7135. chapInfoList[courseType].chapterInfo[0]
  7136. .taskJson[taskCount].eList.length
  7137. "
  7138. :class="{
  7139. rightW:
  7140. w.userid == userid || tType == 1 || tType == 4
  7141. }"
  7142. >
  7143. 评分
  7144. </div>
  7145. <!-- <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"> -->
  7146. <div
  7147. v-else-if="
  7148. (courseDetail.userid == userid ||
  7149. (courseDetail.course_teacher &&
  7150. courseDetail.course_teacher.indexOf(userid) !=
  7151. -1) ||
  7152. (w.userid == userid && sIsOpen)) &&
  7153. courseDetail.state == 5 &&
  7154. ((chapInfoList[courseType].chapterInfo[0]
  7155. .taskJson[taskCount].eList &&
  7156. chapInfoList[courseType].chapterInfo[0]
  7157. .taskJson[taskCount].eList.length) ||
  7158. (tool.eList && tool.eList.length))
  7159. "
  7160. >
  7161. <el-popover
  7162. placement="top"
  7163. width="318"
  7164. :disabled="AIloading[toolIndex][wIndex].loading"
  7165. trigger="hover"
  7166. >
  7167. <markScore
  7168. :loading="AIloading[toolIndex][wIndex].loading"
  7169. :markScoreVisible="markScoreVisible"
  7170. :ref="`markSco${toolIndex}${wIndex}`"
  7171. @updateLoading="updateLoading"
  7172. @updateDocSco="updateDocSco"
  7173. @refreshOther="refreshOther"
  7174. @markScoreDig="markScoreDig"
  7175. :tool="tool"
  7176. :wIndex="wIndex"
  7177. :scoCon="w"
  7178. :toolIndex="toolIndex"
  7179. :key="refreshKey"
  7180. :stage="courseType"
  7181. :task="taskCount"
  7182. :scoTit="
  7183. chapInfoList[courseType].chapterInfo[0]
  7184. .taskJson[taskCount].eList
  7185. "
  7186. >
  7187. </markScore>
  7188. <div
  7189. class="answerScore"
  7190. @click="
  7191. markScoreDig2(
  7192. w.sName,
  7193. worksStudent,
  7194. w.userid,
  7195. toolIndex,
  7196. chapInfoList[courseType].chapterInfo[0]
  7197. .taskJson[taskCount].eList,
  7198. AIloading[toolIndex][wIndex].loading,
  7199. tool
  7200. )
  7201. "
  7202. slot="reference"
  7203. :class="{
  7204. rightW:
  7205. w.userid == userid ||
  7206. tType == 1 ||
  7207. tType == 4 ||
  7208. w.ateacher == userid
  7209. }"
  7210. >
  7211. <span v-if="AIloading[toolIndex][wIndex].sco">
  7212. {{
  7213. AIloading[toolIndex][wIndex].loading
  7214. ? "评分中"
  7215. : AIloading[toolIndex][wIndex].sco + "分"
  7216. }}
  7217. </span>
  7218. <span v-else>
  7219. {{
  7220. AIloading[toolIndex][wIndex].loading
  7221. ? "评分中"
  7222. : "评分"
  7223. }}
  7224. </span>
  7225. </div>
  7226. </el-popover>
  7227. </div>
  7228. <img
  7229. class="deleteImg"
  7230. src="../../assets/deleteworks.png"
  7231. v-if="
  7232. w.userid == userid || tType == 1 || tType == 4
  7233. "
  7234. @click.stop="deleteWorks(w.wid)"
  7235. alt
  7236. />
  7237. </div>
  7238. <div class="comment" style="min-width: 200px">
  7239. <div class="worksName">
  7240. <div>{{ w.sName }}</div>
  7241. </div>
  7242. <div class="commentList">
  7243. <div class="commentList">
  7244. <div
  7245. class="commentImg"
  7246. @click="
  7247. isLikes(
  7248. w.wid,
  7249. userid,
  7250. 1,
  7251. null,
  7252. w.isLikes,
  7253. w.sName
  7254. )
  7255. "
  7256. >
  7257. <img
  7258. :src="w.isLikes == true ? likes : noLikes"
  7259. alt=""
  7260. />
  7261. </div>
  7262. <div>{{ w.likesCount }}</div>
  7263. </div>
  7264. <div class="commentList" style="margin-right: 15px">
  7265. <div
  7266. class="commentImg"
  7267. @click="commentOther(w, toolIndex, wIndex)"
  7268. >
  7269. <img
  7270. src="../../assets/icon/comment/comment.png"
  7271. alt=""
  7272. />
  7273. </div>
  7274. <div>{{ w.commentCount }}</div>
  7275. </div>
  7276. </div>
  7277. </div>
  7278. </div>
  7279. </div>
  7280. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7281. 未提交
  7282. </div>
  7283. <div
  7284. class="noWorksS"
  7285. v-if="noWorksS && noWorksS[toolIndex].length"
  7286. >
  7287. <div
  7288. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7289. :key="sIndex"
  7290. class="noWorksName"
  7291. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7292. >
  7293. <el-tooltip
  7294. effect="dark"
  7295. :content="s.student"
  7296. placement="top"
  7297. >
  7298. <span>{{ s.student }}</span>
  7299. </el-tooltip>
  7300. </div>
  7301. </div>
  7302. </div>
  7303. <div
  7304. v-if="
  7305. tType &&
  7306. ((tType == 2 && sIsOpen == true) ||
  7307. tType == 1 ||
  7308. tType == 4) &&
  7309. tool.tool.indexOf(6) != -1
  7310. "
  7311. class="worksBox"
  7312. >
  7313. <div
  7314. class="zuoyeYulan"
  7315. v-if="
  7316. (worksStudent.length &&
  7317. worksStudent[toolIndex].length > 0) ||
  7318. (courseGroup.group && courseGroup.group.length)
  7319. "
  7320. >
  7321. <div class="worksTop">
  7322. <div>作业预览</div>
  7323. <div
  7324. class="corOpen"
  7325. @click="contract(toolIndex)"
  7326. v-if="
  7327. isCloseList[toolIndex].isCloseBoolean &&
  7328. isCloseList[toolIndex].isClose == 0
  7329. "
  7330. >
  7331. 折叠
  7332. </div>
  7333. <div
  7334. class="corOpen"
  7335. @click="contract(toolIndex)"
  7336. v-if="isCloseList[toolIndex].isClose == 1"
  7337. >
  7338. 展开
  7339. </div>
  7340. </div>
  7341. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7342. </div>
  7343. <div
  7344. class="group_workBox"
  7345. v-for="(g, gindex) in courseGroup.group"
  7346. :key="gindex"
  7347. >
  7348. <div class="group_box">
  7349. <div class="group_title">
  7350. <el-tooltip
  7351. class="item"
  7352. effect="light"
  7353. :content="g.name"
  7354. placement="top"
  7355. >
  7356. <div class="group_name">{{ g.name }}</div>
  7357. </el-tooltip>
  7358. </div>
  7359. <div
  7360. class="group_work"
  7361. v-if="
  7362. g.works &&
  7363. g.works.length &&
  7364. g.works[toolIndex].length
  7365. "
  7366. >
  7367. <div
  7368. class="works"
  7369. style="
  7370. width: 200px;
  7371. height: 140px;
  7372. margin: 10px 10px 10px 0;
  7373. border-radius: 15px;
  7374. box-shadow: 0 0 6px 1px #dfdada;
  7375. "
  7376. v-for="(w, wIndex) in g.works[toolIndex]"
  7377. :key="wIndex"
  7378. :class="w.type == 1 ? 'isTypeOne' : ''"
  7379. >
  7380. <div class="workImg">
  7381. <img
  7382. :src="w.works"
  7383. @click="previewImg(w.works, w)"
  7384. alt
  7385. />
  7386. <div
  7387. class="answerScore"
  7388. v-if="w.score"
  7389. @click.stop="openScore(w)"
  7390. :class="{
  7391. rightW:
  7392. w.userid == userid ||
  7393. tType == 1 ||
  7394. tType == 4
  7395. }"
  7396. >
  7397. {{ JSON.parse(w.score).wScore }}分
  7398. </div>
  7399. <div
  7400. class="answerScore"
  7401. @click.stop="openScore(w)"
  7402. v-else-if="courseDetail.userid == userid"
  7403. :class="{
  7404. rightW:
  7405. w.userid == userid ||
  7406. tType == 1 ||
  7407. tType == 4
  7408. }"
  7409. >
  7410. 评分
  7411. </div>
  7412. <img
  7413. class="deleteImg"
  7414. src="../../assets/deleteworks.png"
  7415. v-if="
  7416. w.userid == userid || tType == 1 || tType == 4
  7417. "
  7418. @click.stop="deleteWorks(w.wid)"
  7419. alt
  7420. />
  7421. </div>
  7422. <div class="comment" style="min-width: 200px">
  7423. <div class="worksName">
  7424. <div>{{ w.sName }}</div>
  7425. </div>
  7426. <div class="commentList">
  7427. <div class="commentList">
  7428. <div
  7429. class="commentImg"
  7430. @click="
  7431. isLikes(
  7432. w.wid,
  7433. userid,
  7434. 1,
  7435. null,
  7436. w.isLikes,
  7437. w.sName
  7438. )
  7439. "
  7440. >
  7441. <img
  7442. :src="w.isLikes == true ? likes : noLikes"
  7443. alt=""
  7444. />
  7445. </div>
  7446. <div>{{ w.likesCount }}</div>
  7447. </div>
  7448. <div
  7449. class="commentList"
  7450. style="margin-right: 15px"
  7451. >
  7452. <div
  7453. class="commentImg"
  7454. @click="
  7455. commentOther(
  7456. w,
  7457. toolIndex,
  7458. wIndex,
  7459. null,
  7460. g.id
  7461. )
  7462. "
  7463. >
  7464. <img
  7465. src="../../assets/icon/comment/comment.png"
  7466. alt=""
  7467. />
  7468. </div>
  7469. <div>{{ w.commentCount }}</div>
  7470. </div>
  7471. </div>
  7472. </div>
  7473. </div>
  7474. </div>
  7475. <div class="group_work" v-else>暂无提交作业</div>
  7476. </div>
  7477. </div>
  7478. <div
  7479. :id="'tool-' + toolIndex"
  7480. :style="{
  7481. height:
  7482. isCloseList[toolIndex].isClose == 1
  7483. ? retrnToolHeight('tool-' + toolIndex)
  7484. : 'auto',
  7485. overflow:
  7486. isCloseList[toolIndex].isClose == 1
  7487. ? 'hidden'
  7488. : 'unset'
  7489. }"
  7490. class="worksDetailBox"
  7491. v-if="
  7492. worksStudent.length &&
  7493. worksStudent[toolIndex].length > 0
  7494. "
  7495. >
  7496. <div
  7497. class="works"
  7498. style="
  7499. width: 200px;
  7500. height: 140px;
  7501. margin: 10px 10px 10px 0;
  7502. border-radius: 15px;
  7503. box-shadow: 0 0 6px 1px #dfdada;
  7504. "
  7505. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7506. :key="wIndex"
  7507. >
  7508. <!-- @click="previewImg(w.works)" -->
  7509. <div class="workImg">
  7510. <img
  7511. :src="w.works"
  7512. @click="previewImg(w.works, w)"
  7513. alt
  7514. />
  7515. <div
  7516. class="answerScore"
  7517. v-if="w.score"
  7518. @click.stop="openScore(w)"
  7519. :class="{
  7520. rightW:
  7521. w.userid == userid || tType == 1 || tType == 4
  7522. }"
  7523. >
  7524. {{ JSON.parse(w.score).wScore }}分
  7525. </div>
  7526. <div
  7527. class="answerScore"
  7528. @click.stop="openScore(w)"
  7529. v-else-if="courseDetail.userid == userid"
  7530. :class="{
  7531. rightW:
  7532. w.userid == userid || tType == 1 || tType == 4
  7533. }"
  7534. >
  7535. 评分
  7536. </div>
  7537. <img
  7538. class="deleteImg"
  7539. src="../../assets/deleteworks.png"
  7540. v-if="
  7541. w.userid == userid || tType == 1 || tType == 4
  7542. "
  7543. @click.stop="deleteWorks(w.wid)"
  7544. alt
  7545. />
  7546. </div>
  7547. <div class="comment" style="min-width: 200px">
  7548. <div class="worksName">
  7549. <div>{{ w.sName }}</div>
  7550. </div>
  7551. <div class="commentList">
  7552. <div class="commentList">
  7553. <div
  7554. class="commentImg"
  7555. @click="
  7556. isLikes(
  7557. w.wid,
  7558. userid,
  7559. 1,
  7560. null,
  7561. w.isLikes,
  7562. w.sName
  7563. )
  7564. "
  7565. >
  7566. <img
  7567. :src="w.isLikes == true ? likes : noLikes"
  7568. alt=""
  7569. />
  7570. </div>
  7571. <div>{{ w.likesCount }}</div>
  7572. </div>
  7573. <div class="commentList" style="margin-right: 15px">
  7574. <div
  7575. class="commentImg"
  7576. @click="commentOther(w, toolIndex, wIndex)"
  7577. >
  7578. <img
  7579. src="../../assets/icon/comment/comment.png"
  7580. alt=""
  7581. />
  7582. </div>
  7583. <div>{{ w.commentCount }}</div>
  7584. </div>
  7585. </div>
  7586. </div>
  7587. </div>
  7588. </div>
  7589. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7590. 未提交
  7591. </div>
  7592. <div
  7593. class="noWorksS"
  7594. v-if="noWorksS && noWorksS[toolIndex].length"
  7595. >
  7596. <div
  7597. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7598. :key="sIndex"
  7599. class="noWorksName"
  7600. >
  7601. <el-tooltip
  7602. effect="dark"
  7603. :content="s.student"
  7604. placement="top"
  7605. >
  7606. <span>{{ s.student }}</span>
  7607. </el-tooltip>
  7608. </div>
  7609. </div>
  7610. </div>
  7611. <div
  7612. v-if="
  7613. tType &&
  7614. ((tType == 2 && sIsOpen == true) ||
  7615. tType == 1 ||
  7616. tType == 4) &&
  7617. tool.tool.indexOf(7) != -1
  7618. "
  7619. class="worksBox"
  7620. >
  7621. <div
  7622. class="zuoyeYulan"
  7623. style="display: flex;justify-content: space-between;align-items: center;"
  7624. v-if="
  7625. (worksStudent.length &&
  7626. worksStudent[toolIndex].length > 0) ||
  7627. (courseGroup.group && courseGroup.group.length)
  7628. "
  7629. >
  7630. <div class="worksTop">
  7631. <div>作业预览</div>
  7632. <div
  7633. class="corOpen"
  7634. @click="contract(toolIndex)"
  7635. v-if="
  7636. isCloseList[toolIndex].isCloseBoolean &&
  7637. isCloseList[toolIndex].isClose == 0
  7638. "
  7639. >
  7640. 折叠
  7641. </div>
  7642. <div
  7643. class="corOpen"
  7644. @click="contract(toolIndex)"
  7645. v-if="isCloseList[toolIndex].isClose == 1"
  7646. >
  7647. 展开
  7648. </div>
  7649. </div>
  7650. <div
  7651. style="display: flex;"
  7652. v-if="
  7653. (courseDetail.userid == userid ||
  7654. (courseDetail.course_teacher &&
  7655. courseDetail.course_teacher.indexOf(userid) !=
  7656. -1)) &&
  7657. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7658. taskCount
  7659. ].eList &&
  7660. chapInfoList[courseType].chapterInfo[0].taskJson[
  7661. taskCount
  7662. ].eList.length) ||
  7663. (tool.eList && tool.eList.length)) &&
  7664. courseDetail.state == 5
  7665. "
  7666. >
  7667. <div
  7668. style="margin-right:10px"
  7669. class="ScoreBtn"
  7670. @click="
  7671. resetLoopEva(
  7672. worksStudent[toolIndex],
  7673. chapInfoList[courseType].chapterInfo[0].taskJson[
  7674. taskCount
  7675. ].eList,
  7676. courseType,
  7677. taskCount,
  7678. toolIndex,
  7679. tool.toolDetail,
  7680. worksStudent
  7681. )
  7682. "
  7683. >
  7684. 一键重置
  7685. </div>
  7686. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7687. <img
  7688. src="../../assets/icon/newIcons/rootImg.png"
  7689. alt=""
  7690. />
  7691. AI评分
  7692. </div>
  7693. <div
  7694. class="ScoreBtn"
  7695. v-else-if="!loopLoading[toolIndex].loading"
  7696. @click="
  7697. loopEva(
  7698. worksStudent[toolIndex],
  7699. chapInfoList[courseType].chapterInfo[0].taskJson[
  7700. taskCount
  7701. ].eList,
  7702. courseType,
  7703. taskCount,
  7704. toolIndex,
  7705. tool.toolDetail,
  7706. chapInfoList[courseType].chapterInfo[0].taskJson[
  7707. taskCount
  7708. ].taskDetail,
  7709. tool
  7710. )
  7711. "
  7712. >
  7713. <img
  7714. src="../../assets/icon/newIcons/rootImg.png"
  7715. alt=""
  7716. />
  7717. AI评分
  7718. </div>
  7719. <div class="ScoreBtn" v-else>
  7720. <img
  7721. src="../../assets/icon/newIcons/rootImg.png"
  7722. alt=""
  7723. />
  7724. 正在评分
  7725. </div>
  7726. </div>
  7727. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7728. </div>
  7729. <div
  7730. class="group_workBox"
  7731. v-for="(g, gindex) in courseGroup.group"
  7732. :key="gindex"
  7733. >
  7734. <div class="group_box">
  7735. <div class="group_title">
  7736. <el-tooltip
  7737. class="item"
  7738. effect="light"
  7739. :content="g.name"
  7740. placement="top"
  7741. >
  7742. <div class="group_name">{{ g.name }}</div>
  7743. </el-tooltip>
  7744. </div>
  7745. <div
  7746. class="group_work"
  7747. v-if="
  7748. g.works &&
  7749. g.works.length &&
  7750. g.works[toolIndex].length
  7751. "
  7752. >
  7753. <div
  7754. class="works"
  7755. style="
  7756. width: 200px;
  7757. height: 140px;
  7758. margin: 10px 10px 10px 0;
  7759. border-radius: 15px;
  7760. box-shadow: 0 0 6px 1px #dfdada;
  7761. "
  7762. v-for="(w, wIndex) in g.works[toolIndex]"
  7763. :key="wIndex"
  7764. :class="w.type == 1 ? 'isTypeOne' : ''"
  7765. >
  7766. <div class="workImg">
  7767. <img
  7768. :src="w.works"
  7769. @click="previewImg(w.works, w)"
  7770. alt
  7771. />
  7772. <div
  7773. class="answerScore"
  7774. v-if="w.score"
  7775. @click.stop="openScore(w)"
  7776. :class="{
  7777. rightW:
  7778. w.userid == userid ||
  7779. tType == 1 ||
  7780. tType == 4
  7781. }"
  7782. >
  7783. {{ JSON.parse(w.score).wScore }}分
  7784. </div>
  7785. <div
  7786. class="answerScore"
  7787. @click.stop="openScore(w)"
  7788. v-else-if="courseDetail.userid == userid"
  7789. :class="{
  7790. rightW:
  7791. w.userid == userid ||
  7792. tType == 1 ||
  7793. tType == 4
  7794. }"
  7795. >
  7796. 评分
  7797. </div>
  7798. <img
  7799. class="deleteImg"
  7800. src="../../assets/deleteworks.png"
  7801. v-if="
  7802. w.userid == userid || tType == 1 || tType == 4
  7803. "
  7804. @click.stop="deleteWorks(w.wid)"
  7805. alt
  7806. />
  7807. </div>
  7808. <div class="comment" style="min-width: 200px">
  7809. <div class="worksName">
  7810. <div>{{ w.sName }}</div>
  7811. </div>
  7812. <div class="commentList">
  7813. <div class="commentList">
  7814. <div
  7815. class="commentImg"
  7816. @click="
  7817. isLikes(
  7818. w.wid,
  7819. userid,
  7820. 1,
  7821. null,
  7822. w.isLikes,
  7823. w.sName
  7824. )
  7825. "
  7826. >
  7827. <img
  7828. :src="w.isLikes == true ? likes : noLikes"
  7829. alt=""
  7830. />
  7831. </div>
  7832. <div>{{ w.likesCount }}</div>
  7833. </div>
  7834. <div
  7835. class="commentList"
  7836. style="margin-right: 15px"
  7837. >
  7838. <div
  7839. class="commentImg"
  7840. @click="
  7841. commentOther(
  7842. w,
  7843. toolIndex,
  7844. wIndex,
  7845. null,
  7846. g.id
  7847. )
  7848. "
  7849. >
  7850. <img
  7851. src="../../assets/icon/comment/comment.png"
  7852. alt=""
  7853. />
  7854. </div>
  7855. <div>{{ w.commentCount }}</div>
  7856. </div>
  7857. </div>
  7858. </div>
  7859. </div>
  7860. </div>
  7861. <div class="group_work" v-else>暂无提交作业</div>
  7862. </div>
  7863. </div>
  7864. <div
  7865. :id="'tool-' + toolIndex"
  7866. :style="{
  7867. height:
  7868. isCloseList[toolIndex].isClose == 1
  7869. ? retrnToolHeight('tool-' + toolIndex)
  7870. : 'auto',
  7871. overflow:
  7872. isCloseList[toolIndex].isClose == 1
  7873. ? 'hidden'
  7874. : 'unset'
  7875. }"
  7876. class="worksDetailBox"
  7877. v-if="
  7878. worksStudent.length &&
  7879. worksStudent[toolIndex].length > 0
  7880. "
  7881. >
  7882. <div
  7883. class="works"
  7884. style="
  7885. width: 200px;
  7886. height: 140px;
  7887. margin: 10px 10px 10px 0;
  7888. border-radius: 15px;
  7889. box-shadow: 0 0 6px 1px #dfdada;
  7890. "
  7891. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7892. :key="wIndex"
  7893. >
  7894. <!-- @click="previewImg(w.works)" -->
  7895. <div class="workImg">
  7896. <img
  7897. :src="w.works"
  7898. @click="previewImg(w.works, w)"
  7899. alt
  7900. />
  7901. <div
  7902. class="answerScore"
  7903. v-if="w.score"
  7904. @click.stop="openScore(w)"
  7905. :class="{
  7906. rightW:
  7907. w.userid == userid || tType == 1 || tType == 4
  7908. }"
  7909. >
  7910. {{ JSON.parse(w.score).wScore }}分
  7911. </div>
  7912. <div
  7913. class="answerScore"
  7914. @click.stop="openScore(w)"
  7915. v-else-if="
  7916. courseDetail.userid == userid &&
  7917. courseDetail.state != 5 &&
  7918. chapInfoList[courseType].chapterInfo[0]
  7919. .taskJson[taskCount].eList &&
  7920. chapInfoList[courseType].chapterInfo[0]
  7921. .taskJson[taskCount].eList.length
  7922. "
  7923. :class="{
  7924. rightW:
  7925. w.userid == userid || tType == 1 || tType == 4
  7926. }"
  7927. >
  7928. 评分
  7929. </div>
  7930. <!-- <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"> -->
  7931. <div
  7932. v-else-if="
  7933. (courseDetail.userid == userid ||
  7934. (courseDetail.course_teacher &&
  7935. courseDetail.course_teacher.indexOf(userid) !=
  7936. -1) ||
  7937. (w.userid == userid && sIsOpen)) &&
  7938. courseDetail.state == 5 &&
  7939. ((chapInfoList[courseType].chapterInfo[0]
  7940. .taskJson[taskCount].eList &&
  7941. chapInfoList[courseType].chapterInfo[0]
  7942. .taskJson[taskCount].eList.length) ||
  7943. (tool.eList && tool.eList.length))
  7944. "
  7945. >
  7946. <el-popover
  7947. placement="top"
  7948. width="318"
  7949. :disabled="AIloading[toolIndex][wIndex].loading"
  7950. trigger="hover"
  7951. >
  7952. <markScore
  7953. :loading="AIloading[toolIndex][wIndex].loading"
  7954. :markScoreVisible="markScoreVisible"
  7955. :ref="`markSco${toolIndex}${wIndex}`"
  7956. @updateLoading="updateLoading"
  7957. @updateDocSco="updateDocSco"
  7958. @refreshOther="refreshOther"
  7959. @markScoreDig="markScoreDig"
  7960. :tool="tool"
  7961. :wIndex="wIndex"
  7962. :scoCon="w"
  7963. :toolIndex="toolIndex"
  7964. :key="refreshKey"
  7965. :stage="courseType"
  7966. :task="taskCount"
  7967. :scoTit="
  7968. chapInfoList[courseType].chapterInfo[0]
  7969. .taskJson[taskCount].eList
  7970. "
  7971. >
  7972. </markScore>
  7973. <div
  7974. class="answerScore"
  7975. @click="
  7976. markScoreDig2(
  7977. w.sName,
  7978. worksStudent,
  7979. w.userid,
  7980. toolIndex,
  7981. chapInfoList[courseType].chapterInfo[0]
  7982. .taskJson[taskCount].eList,
  7983. AIloading[toolIndex][wIndex].loading,
  7984. tool
  7985. )
  7986. "
  7987. slot="reference"
  7988. :class="{
  7989. rightW:
  7990. w.userid == userid ||
  7991. tType == 1 ||
  7992. tType == 4 ||
  7993. w.ateacher == userid
  7994. }"
  7995. >
  7996. <span v-if="AIloading[toolIndex][wIndex].sco">
  7997. {{
  7998. AIloading[toolIndex][wIndex].loading
  7999. ? "评分中"
  8000. : AIloading[toolIndex][wIndex].sco + "分"
  8001. }}
  8002. </span>
  8003. <span v-else>
  8004. {{
  8005. AIloading[toolIndex][wIndex].loading
  8006. ? "评分中"
  8007. : "评分"
  8008. }}
  8009. </span>
  8010. </div>
  8011. </el-popover>
  8012. </div>
  8013. <img
  8014. class="deleteImg"
  8015. src="../../assets/deleteworks.png"
  8016. v-if="
  8017. w.userid == userid || tType == 1 || tType == 4
  8018. "
  8019. @click.stop="deleteWorks(w.wid)"
  8020. alt
  8021. />
  8022. </div>
  8023. <div class="comment" style="min-width: 200px">
  8024. <div class="worksName">
  8025. <div>{{ w.sName }}</div>
  8026. </div>
  8027. <div class="commentList">
  8028. <div class="commentList">
  8029. <div
  8030. class="commentImg"
  8031. @click="
  8032. isLikes(
  8033. w.wid,
  8034. userid,
  8035. 1,
  8036. null,
  8037. w.isLikes,
  8038. w.sName
  8039. )
  8040. "
  8041. >
  8042. <img
  8043. :src="w.isLikes == true ? likes : noLikes"
  8044. alt=""
  8045. />
  8046. </div>
  8047. <div>{{ w.likesCount }}</div>
  8048. </div>
  8049. <div class="commentList" style="margin-right: 15px">
  8050. <div
  8051. class="commentImg"
  8052. @click="commentOther(w, toolIndex, wIndex)"
  8053. >
  8054. <img
  8055. src="../../assets/icon/comment/comment.png"
  8056. alt=""
  8057. />
  8058. </div>
  8059. <div>{{ w.commentCount }}</div>
  8060. </div>
  8061. </div>
  8062. </div>
  8063. </div>
  8064. </div>
  8065. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8066. 未提交
  8067. </div>
  8068. <div
  8069. class="noWorksS"
  8070. v-if="noWorksS && noWorksS[toolIndex].length"
  8071. >
  8072. <div
  8073. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8074. :key="sIndex"
  8075. class="noWorksName"
  8076. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8077. >
  8078. <el-tooltip
  8079. effect="dark"
  8080. :content="s.student"
  8081. placement="top"
  8082. >
  8083. <span>{{ s.student }}</span>
  8084. </el-tooltip>
  8085. </div>
  8086. </div>
  8087. </div>
  8088. <div
  8089. v-if="
  8090. tType &&
  8091. ((tType == 2 && sIsOpen == true) ||
  8092. tType == 1 ||
  8093. tType == 4) &&
  8094. tool.tool.indexOf(26) != -1
  8095. "
  8096. class="worksBox"
  8097. >
  8098. <div
  8099. class="zuoyeYulan"
  8100. v-if="
  8101. worksStudent.length &&
  8102. worksStudent[toolIndex].length > 0
  8103. "
  8104. >
  8105. <div class="worksTop">
  8106. <div>作业预览</div>
  8107. <div
  8108. class="corOpen"
  8109. @click="contract(toolIndex)"
  8110. v-if="
  8111. isCloseList[toolIndex].isCloseBoolean &&
  8112. isCloseList[toolIndex].isClose == 0
  8113. "
  8114. >
  8115. 折叠
  8116. </div>
  8117. <div
  8118. class="corOpen"
  8119. @click="contract(toolIndex)"
  8120. v-if="isCloseList[toolIndex].isClose == 1"
  8121. >
  8122. 展开
  8123. </div>
  8124. </div>
  8125. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8126. </div>
  8127. <div
  8128. :id="'tool-' + toolIndex"
  8129. :style="{
  8130. height:
  8131. isCloseList[toolIndex].isClose == 1
  8132. ? retrnToolHeight('tool-' + toolIndex)
  8133. : 'auto',
  8134. overflow:
  8135. isCloseList[toolIndex].isClose == 1
  8136. ? 'hidden'
  8137. : 'unset'
  8138. }"
  8139. class="worksDetailBox"
  8140. v-if="
  8141. worksStudent.length &&
  8142. worksStudent[toolIndex].length > 0
  8143. "
  8144. >
  8145. <div
  8146. class="works"
  8147. style="width: 240px; height: 140px; overflow: hidden"
  8148. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8149. :key="wIndex"
  8150. :class="w.type == 1 ? 'isTypeOne' : ''"
  8151. >
  8152. <div class="workImg" v-if="w.type == 0">
  8153. <img
  8154. :src="w.works"
  8155. @click="previewImg(w.works, w)"
  8156. alt
  8157. />
  8158. <img
  8159. class="deleteImg"
  8160. src="../../assets/deleteworks.png"
  8161. v-if="
  8162. w.userid == userid || tType == 1 || tType == 4
  8163. "
  8164. @click.stop="deleteWorks(w.wid)"
  8165. alt
  8166. />
  8167. </div>
  8168. <div class="workImg" v-if="w.type == 1">
  8169. <img :src="word" @click="openFile(w.works)" alt />
  8170. <img
  8171. class="deleteImg"
  8172. src="../../assets/deleteworks.png"
  8173. v-if="
  8174. w.userid == userid || tType == 1 || tType == 4
  8175. "
  8176. @click.stop="deleteWorks(w.wid)"
  8177. alt
  8178. />
  8179. </div>
  8180. <div class="worksName">
  8181. <div>{{ w.sName }}</div>
  8182. </div>
  8183. </div>
  8184. </div>
  8185. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8186. 未提交
  8187. </div>
  8188. <div
  8189. class="noWorksS"
  8190. v-if="noWorksS && noWorksS[toolIndex].length"
  8191. >
  8192. <div
  8193. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8194. :key="sIndex"
  8195. class="noWorksName"
  8196. >
  8197. <el-tooltip
  8198. effect="dark"
  8199. :content="s.student"
  8200. placement="top"
  8201. >
  8202. <span>{{ s.student }}</span>
  8203. </el-tooltip>
  8204. </div>
  8205. </div>
  8206. </div>
  8207. <div
  8208. v-if="
  8209. tType &&
  8210. ((tType == 2 && sIsOpen == true) ||
  8211. tType == 1 ||
  8212. tType == 4) &&
  8213. tool.tool.indexOf(40) != -1
  8214. "
  8215. class="worksBox"
  8216. >
  8217. <div
  8218. class="zuoyeYulan"
  8219. v-if="
  8220. worksStudent.length &&
  8221. worksStudent[toolIndex].length > 0
  8222. "
  8223. >
  8224. <div class="worksTop">
  8225. <div>作业预览</div>
  8226. <div
  8227. class="corOpen"
  8228. @click="contract(toolIndex)"
  8229. v-if="
  8230. isCloseList[toolIndex].isCloseBoolean &&
  8231. isCloseList[toolIndex].isClose == 0
  8232. "
  8233. >
  8234. 折叠
  8235. </div>
  8236. <div
  8237. class="corOpen"
  8238. @click="contract(toolIndex)"
  8239. v-if="isCloseList[toolIndex].isClose == 1"
  8240. >
  8241. 展开
  8242. </div>
  8243. </div>
  8244. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8245. </div>
  8246. <div
  8247. :id="'tool-' + toolIndex"
  8248. :style="{
  8249. height:
  8250. isCloseList[toolIndex].isClose == 1
  8251. ? retrnToolHeight('tool-' + toolIndex)
  8252. : 'auto',
  8253. overflow:
  8254. isCloseList[toolIndex].isClose == 1
  8255. ? 'hidden'
  8256. : 'unset'
  8257. }"
  8258. class="worksDetailBox"
  8259. v-if="
  8260. worksStudent.length &&
  8261. worksStudent[toolIndex].length > 0
  8262. "
  8263. >
  8264. <div
  8265. class="works"
  8266. style="
  8267. width: 200px;
  8268. height: 140px;
  8269. margin: 10px 10px 10px 0;
  8270. border-radius: 15px;
  8271. box-shadow: 0 0 6px 1px #dfdada;
  8272. "
  8273. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8274. :key="wIndex"
  8275. :class="w.type == 1 ? 'isTypeOne' : ''"
  8276. >
  8277. <div class="workImg">
  8278. <img
  8279. src="../../assets/icon/works/noImg.png"
  8280. @click="openPj(w.works, toolIndex)"
  8281. alt
  8282. />
  8283. <img
  8284. class="deleteImg"
  8285. src="../../assets/deleteworks.png"
  8286. v-if="
  8287. w.userid == userid || tType == 1 || tType == 4
  8288. "
  8289. @click.stop="deleteWorks(w.wid)"
  8290. alt
  8291. />
  8292. </div>
  8293. <div class="comment" style="min-width: 200px">
  8294. <div class="worksName">
  8295. <div>{{ w.sName }}</div>
  8296. </div>
  8297. <div class="commentList">
  8298. <div class="commentList">
  8299. <div
  8300. class="commentImg"
  8301. @click="
  8302. isLikes(
  8303. w.wid,
  8304. userid,
  8305. 1,
  8306. null,
  8307. w.isLikes,
  8308. w.sName
  8309. )
  8310. "
  8311. >
  8312. <img
  8313. :src="w.isLikes == true ? likes : noLikes"
  8314. alt=""
  8315. />
  8316. </div>
  8317. <div>{{ w.likesCount }}</div>
  8318. </div>
  8319. <div class="commentList" style="margin-right: 15px">
  8320. <div
  8321. class="commentImg"
  8322. @click="commentOther(w, toolIndex, wIndex)"
  8323. >
  8324. <img
  8325. src="../../assets/icon/comment/comment.png"
  8326. alt=""
  8327. />
  8328. </div>
  8329. <div>{{ w.commentCount }}</div>
  8330. </div>
  8331. </div>
  8332. </div>
  8333. </div>
  8334. </div>
  8335. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8336. 未提交
  8337. </div>
  8338. <div
  8339. class="noWorksS"
  8340. v-if="noWorksS && noWorksS[toolIndex].length"
  8341. >
  8342. <div
  8343. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8344. :key="sIndex"
  8345. class="noWorksName"
  8346. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8347. >
  8348. <el-tooltip
  8349. effect="dark"
  8350. :content="s.student"
  8351. placement="top"
  8352. >
  8353. <span>{{ s.student }}</span>
  8354. </el-tooltip>
  8355. </div>
  8356. </div>
  8357. </div>
  8358. <div
  8359. v-if="
  8360. tType &&
  8361. tType == 2 &&
  8362. !sIsOpen &&
  8363. tool.tool.indexOf(40) != -1
  8364. "
  8365. class="worksBox"
  8366. >
  8367. <div
  8368. class="zuoyeYulan"
  8369. v-if="workStudent[toolIndex].length > 0"
  8370. >
  8371. <span class="worksTitle">作业预览</span>
  8372. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8373. </div>
  8374. <div
  8375. class="worksDetailBox"
  8376. v-if="workStudent[toolIndex].length > 0"
  8377. >
  8378. <div
  8379. class="works"
  8380. style="
  8381. width: 200px;
  8382. height: 140px;
  8383. margin: 10px 10px 10px 0;
  8384. "
  8385. v-for="(w, wIndex) in workStudent[toolIndex]"
  8386. :key="wIndex"
  8387. >
  8388. <div class="workImg">
  8389. <img
  8390. src="../../assets/icon/works/noImg.png"
  8391. @click="openPj(w.works, toolIndex)"
  8392. alt
  8393. />
  8394. <img
  8395. class="deleteImg"
  8396. src="../../assets/deleteworks.png"
  8397. v-if="
  8398. w.userid == userid || tType == 1 || tType == 4
  8399. "
  8400. @click.stop="deleteWorks(w.wid)"
  8401. alt
  8402. />
  8403. </div>
  8404. <div class="worksName">
  8405. <div>{{ w.sName }}</div>
  8406. </div>
  8407. </div>
  8408. </div>
  8409. </div>
  8410. <div
  8411. v-if="
  8412. tType &&
  8413. ((tType == 2 && sIsOpen == true) ||
  8414. tType == 1 ||
  8415. tType == 4) &&
  8416. tool.tool.indexOf(41) != -1
  8417. "
  8418. >
  8419. <AnswerData2
  8420. v-if="
  8421. worksStudent.length &&
  8422. worksStudent[toolIndex].length > 0
  8423. "
  8424. :problemJson="tool.selectJson.answer"
  8425. :people="worksStudent[toolIndex]"
  8426. ></AnswerData2>
  8427. </div>
  8428. <div
  8429. v-if="
  8430. tType &&
  8431. ((tType == 2 && sIsOpen == true) ||
  8432. tType == 1 ||
  8433. tType == 4) &&
  8434. tool.tool.indexOf(41) != -1
  8435. "
  8436. class="worksBox"
  8437. >
  8438. <div
  8439. class="zuoyeYulan"
  8440. v-if="
  8441. worksStudent.length &&
  8442. worksStudent[toolIndex].length > 0
  8443. "
  8444. >
  8445. <div class="worksTop">
  8446. <div>作业预览</div>
  8447. <div
  8448. class="corOpen"
  8449. @click="contract(toolIndex)"
  8450. v-if="
  8451. isCloseList[toolIndex].isCloseBoolean &&
  8452. isCloseList[toolIndex].isClose == 0
  8453. "
  8454. >
  8455. 折叠
  8456. </div>
  8457. <div
  8458. class="corOpen"
  8459. @click="contract(toolIndex)"
  8460. v-if="isCloseList[toolIndex].isClose == 1"
  8461. >
  8462. 展开
  8463. </div>
  8464. </div>
  8465. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8466. </div>
  8467. <div
  8468. :id="'tool-' + toolIndex"
  8469. :style="{
  8470. height:
  8471. isCloseList[toolIndex].isClose == 1
  8472. ? retrnToolHeight('tool-' + toolIndex)
  8473. : 'auto',
  8474. overflow:
  8475. isCloseList[toolIndex].isClose == 1
  8476. ? 'hidden'
  8477. : 'unset'
  8478. }"
  8479. class="worksDetailBox"
  8480. v-if="
  8481. worksStudent.length &&
  8482. worksStudent[toolIndex].length > 0
  8483. "
  8484. >
  8485. <div
  8486. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8487. :key="wIndex"
  8488. class="isWorksName2"
  8489. @click="openXz(w, toolIndex)"
  8490. >
  8491. {{ w.sName }}
  8492. <img
  8493. class="deleteImg deleteImg2"
  8494. src="../../assets/deleteworks.png"
  8495. v-if="w.userid == userid || tType == 1 || tType == 4"
  8496. @click.stop="deleteWorks(w.wid)"
  8497. alt
  8498. />
  8499. </div>
  8500. <!-- <div
  8501. class="works"
  8502. style="
  8503. width: 200px;
  8504. height: 140px;
  8505. margin: 10px 10px 10px 0;
  8506. border-radius: 15px;
  8507. box-shadow: 0 0 6px 1px #dfdada;
  8508. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  8509. :class="w.type == 5 ? 'isTypeOne' : ''">
  8510. <div class="workImg">
  8511. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  8512. </div>
  8513. <div class="worksName">
  8514. <div>{{ w.sName }}</div>
  8515. </div>
  8516. </div> -->
  8517. </div>
  8518. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8519. 未提交
  8520. </div>
  8521. <div
  8522. class="noWorksS"
  8523. v-if="noWorksS && noWorksS[toolIndex].length"
  8524. >
  8525. <div
  8526. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8527. :key="sIndex"
  8528. class="noWorksName"
  8529. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8530. >
  8531. <el-tooltip
  8532. effect="dark"
  8533. :content="s.student"
  8534. placement="top"
  8535. >
  8536. <span>{{ s.student }}</span>
  8537. </el-tooltip>
  8538. </div>
  8539. </div>
  8540. </div>
  8541. <div
  8542. v-if="
  8543. tType &&
  8544. tType == 2 &&
  8545. !sIsOpen &&
  8546. tool.tool.indexOf(41) != -1
  8547. "
  8548. class="worksBox"
  8549. >
  8550. <div
  8551. class="zuoyeYulan"
  8552. v-if="workStudent[toolIndex].length > 0"
  8553. >
  8554. <span class="worksTitle">作业预览</span>
  8555. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8556. </div>
  8557. <div
  8558. class="worksDetailBox"
  8559. v-if="workStudent[toolIndex].length > 0"
  8560. >
  8561. <div
  8562. class="works"
  8563. style="
  8564. width: 200px;
  8565. height: 140px;
  8566. margin: 10px 10px 10px 0;
  8567. "
  8568. v-for="(w, wIndex) in workStudent[toolIndex]"
  8569. :key="wIndex"
  8570. >
  8571. <div class="workImg">
  8572. <img
  8573. src="../../assets/icon/works/noImg.png"
  8574. @click="openXz(w, toolIndex)"
  8575. alt
  8576. />
  8577. <img
  8578. class="deleteImg"
  8579. src="../../assets/deleteworks.png"
  8580. v-if="
  8581. w.userid == userid || tType == 1 || tType == 4
  8582. "
  8583. @click.stop="deleteWorks(w.wid)"
  8584. alt
  8585. />
  8586. </div>
  8587. <div class="worksName">
  8588. <div>{{ w.sName }}</div>
  8589. </div>
  8590. </div>
  8591. </div>
  8592. </div>
  8593. <div v-if="false" class="xuan_right_box">
  8594. <div
  8595. class="tool_right_box"
  8596. v-for="(item, index) in tool.sentenceList"
  8597. :key="index"
  8598. >
  8599. <div>
  8600. <span
  8601. style="word-break: break-all; white-space: normal"
  8602. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  8603. >
  8604. </div>
  8605. <div class="right_box_xuan">
  8606. <span>正确率</span>
  8607. <span>{{
  8608. (checkJson[toolIndex][index].right
  8609. ? checkJson[toolIndex][index].right
  8610. : 0) + "%"
  8611. }}</span>
  8612. </div>
  8613. <div class="right_box_xuan">
  8614. <span>答对人数</span>
  8615. <span>{{
  8616. checkJson[toolIndex][index].rightPerson.length
  8617. }}</span>
  8618. </div>
  8619. </div>
  8620. </div>
  8621. <div
  8622. v-if="
  8623. tType &&
  8624. ((tType == 2 && sIsOpen == true) ||
  8625. tType == 1 ||
  8626. tType == 4) &&
  8627. tool.tool.indexOf(47) != -1
  8628. "
  8629. >
  8630. <AnswerData
  8631. v-if="
  8632. checkJson[toolIndex].length &&
  8633. (tool.sentenceList || tool.sentenceList.length > 0)
  8634. "
  8635. :people="checkJson[toolIndex]"
  8636. ></AnswerData>
  8637. </div>
  8638. <div
  8639. v-if="
  8640. tType &&
  8641. tType == 2 &&
  8642. !sIsOpen &&
  8643. tool.tool.indexOf(47) != -1
  8644. "
  8645. class="worksBox"
  8646. >
  8647. <div
  8648. class="zuoyeYulan"
  8649. v-if="workStudent[toolIndex].length > 0"
  8650. >
  8651. <span class="worksTitle">作业预览</span>
  8652. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8653. </div>
  8654. <div
  8655. class="worksDetailBox"
  8656. v-if="workStudent[toolIndex].length > 0"
  8657. >
  8658. <div
  8659. class="works"
  8660. style="
  8661. width: 200px;
  8662. height: 140px;
  8663. margin: 10px 10px 10px 0;
  8664. "
  8665. v-for="(w, wIndex) in workStudent[toolIndex]"
  8666. :key="wIndex"
  8667. >
  8668. <!-- @click="openXz(w, toolIndex)" -->
  8669. <div class="workImg" @click="openSen(w, toolIndex)">
  8670. <img src="../../assets/icon/works/noImg.png" alt />
  8671. <img
  8672. class="deleteImg"
  8673. src="../../assets/deleteworks.png"
  8674. v-if="
  8675. w.userid == userid || tType == 1 || tType == 4
  8676. "
  8677. @click.stop="deleteWorks(w.wid)"
  8678. alt
  8679. />
  8680. </div>
  8681. <div class="worksName">
  8682. <div>
  8683. {{ w.sName }}
  8684. </div>
  8685. </div>
  8686. </div>
  8687. </div>
  8688. </div>
  8689. <div
  8690. v-if="
  8691. tType &&
  8692. ((tType == 2 && sIsOpen == true) ||
  8693. tType == 1 ||
  8694. tType == 4) &&
  8695. tool.tool.indexOf(47) != -1
  8696. "
  8697. class="worksBox"
  8698. >
  8699. <div
  8700. class="zuoyeYulan"
  8701. v-if="
  8702. worksStudent.length &&
  8703. worksStudent[toolIndex].length > 0
  8704. "
  8705. >
  8706. <div class="worksTop">
  8707. <div>作业预览</div>
  8708. <div
  8709. class="corOpen"
  8710. @click="contract(toolIndex)"
  8711. v-if="
  8712. isCloseList[toolIndex].isCloseBoolean &&
  8713. isCloseList[toolIndex].isClose == 0
  8714. "
  8715. >
  8716. 折叠
  8717. </div>
  8718. <div
  8719. class="corOpen"
  8720. @click="contract(toolIndex)"
  8721. v-if="isCloseList[toolIndex].isClose == 1"
  8722. >
  8723. 展开
  8724. </div>
  8725. </div>
  8726. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8727. </div>
  8728. <div
  8729. :id="'tool-' + toolIndex"
  8730. :style="{
  8731. height:
  8732. isCloseList[toolIndex].isClose == 1
  8733. ? retrnToolHeight('tool-' + toolIndex)
  8734. : 'auto',
  8735. overflow:
  8736. isCloseList[toolIndex].isClose == 1
  8737. ? 'hidden'
  8738. : 'unset'
  8739. }"
  8740. class="worksDetailBox"
  8741. v-if="
  8742. worksStudent.length &&
  8743. worksStudent[toolIndex].length > 0
  8744. "
  8745. >
  8746. <!-- @click="openXz(w, toolIndex)" -->
  8747. <div
  8748. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8749. :key="wIndex"
  8750. class="isWorksName2"
  8751. @click="openSen(w, toolIndex)"
  8752. >
  8753. {{ w.sName }}
  8754. <img
  8755. class="deleteImg deleteImg2"
  8756. src="../../assets/deleteworks.png"
  8757. v-if="w.userid == userid || tType == 1 || tType == 4"
  8758. @click.stop="deleteWorks(w.wid)"
  8759. alt
  8760. />
  8761. </div>
  8762. </div>
  8763. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8764. 未提交
  8765. </div>
  8766. <div
  8767. class="noWorksS"
  8768. v-if="noWorksS && noWorksS[toolIndex].length"
  8769. >
  8770. <div
  8771. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8772. :key="sIndex"
  8773. class="noWorksName"
  8774. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8775. >
  8776. <el-tooltip
  8777. effect="dark"
  8778. :content="s.student"
  8779. placement="top"
  8780. >
  8781. <span>{{ s.student }}</span>
  8782. </el-tooltip>
  8783. </div>
  8784. </div>
  8785. </div>
  8786. <div
  8787. v-if="
  8788. tType &&
  8789. ((tType == 2 && sIsOpen == true) ||
  8790. tType == 1 ||
  8791. tType == 4) &&
  8792. tool.tool.indexOf(48) != -1
  8793. "
  8794. class="worksBox"
  8795. >
  8796. <div
  8797. class="zuoyeYulan"
  8798. style="display: flex;justify-content: space-between;align-items: center;"
  8799. v-if="
  8800. worksStudent.length &&
  8801. worksStudent[toolIndex].length > 0
  8802. "
  8803. >
  8804. <div class="worksTop">
  8805. <div>作业预览</div>
  8806. <div
  8807. class="corOpen"
  8808. @click="contract(toolIndex)"
  8809. v-if="
  8810. isCloseList[toolIndex].isCloseBoolean &&
  8811. isCloseList[toolIndex].isClose == 0
  8812. "
  8813. >
  8814. 折叠
  8815. </div>
  8816. <div
  8817. class="corOpen"
  8818. @click="contract(toolIndex)"
  8819. v-if="isCloseList[toolIndex].isClose == 1"
  8820. >
  8821. 展开
  8822. </div>
  8823. </div>
  8824. <div
  8825. style="display: flex;"
  8826. v-if="
  8827. (courseDetail.userid == userid ||
  8828. (courseDetail.course_teacher &&
  8829. courseDetail.course_teacher.indexOf(userid) !=
  8830. -1)) &&
  8831. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8832. taskCount
  8833. ].eList &&
  8834. chapInfoList[courseType].chapterInfo[0].taskJson[
  8835. taskCount
  8836. ].eList.length) ||
  8837. (tool.eList && tool.eList.length)) &&
  8838. courseDetail.state == 5
  8839. "
  8840. >
  8841. <div
  8842. style="margin-right:10px"
  8843. class="ScoreBtn"
  8844. @click="
  8845. resetLoopEva(
  8846. worksStudent[toolIndex],
  8847. chapInfoList[courseType].chapterInfo[0].taskJson[
  8848. taskCount
  8849. ].eList,
  8850. courseType,
  8851. taskCount,
  8852. toolIndex,
  8853. tool.toolDetail,
  8854. worksStudent
  8855. )
  8856. "
  8857. >
  8858. 一键重置
  8859. </div>
  8860. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8861. <img
  8862. src="../../assets/icon/newIcons/rootImg.png"
  8863. alt=""
  8864. />
  8865. AI评分
  8866. </div>
  8867. <div
  8868. class="ScoreBtn"
  8869. v-else-if="!loopLoading[toolIndex].loading"
  8870. @click="
  8871. loopEva(
  8872. worksStudent[toolIndex],
  8873. chapInfoList[courseType].chapterInfo[0].taskJson[
  8874. taskCount
  8875. ].eList,
  8876. courseType,
  8877. taskCount,
  8878. toolIndex,
  8879. tool.toolDetail,
  8880. chapInfoList[courseType].chapterInfo[0].taskJson[
  8881. taskCount
  8882. ].taskDetail,
  8883. tool
  8884. )
  8885. "
  8886. >
  8887. <img
  8888. src="../../assets/icon/newIcons/rootImg.png"
  8889. alt=""
  8890. />
  8891. AI评分
  8892. </div>
  8893. <div class="ScoreBtn" v-else>
  8894. <img
  8895. src="../../assets/icon/newIcons/rootImg.png"
  8896. alt=""
  8897. />
  8898. 正在评分
  8899. </div>
  8900. </div>
  8901. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8902. </div>
  8903. <div
  8904. :id="'tool-' + toolIndex"
  8905. :style="{
  8906. height:
  8907. isCloseList[toolIndex].isClose == 1
  8908. ? retrnToolHeight('tool-' + toolIndex)
  8909. : 'auto',
  8910. overflow:
  8911. isCloseList[toolIndex].isClose == 1
  8912. ? 'hidden'
  8913. : 'unset'
  8914. }"
  8915. class="worksDetailBox"
  8916. v-if="
  8917. worksStudent.length &&
  8918. worksStudent[toolIndex].length > 0
  8919. "
  8920. >
  8921. <div
  8922. class="works"
  8923. style="
  8924. width: 200px;
  8925. height: 140px;
  8926. margin: 10px 10px 10px 0;
  8927. border-radius: 15px;
  8928. box-shadow: 0 0 6px 1px #dfdada;
  8929. "
  8930. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8931. :key="wIndex"
  8932. :class="w.type == 1 ? 'isTypeOne' : ''"
  8933. >
  8934. <div class="workImg">
  8935. <img :src="word" @click="openTable(w)" alt />
  8936. <!-- @click="openFile(w.works)" -->
  8937. <div
  8938. class="answerScore"
  8939. v-if="w.score"
  8940. @click.stop="openScore(w)"
  8941. :class="{
  8942. rightW:
  8943. w.userid == userid ||
  8944. tType == 1 ||
  8945. tType == 4 ||
  8946. w.ateacher == userid
  8947. }"
  8948. >
  8949. {{ JSON.parse(w.score).wScore }}分
  8950. </div>
  8951. <div
  8952. class="answerScore"
  8953. @click.stop="openScore(w)"
  8954. v-else-if="
  8955. courseDetail.userid == userid &&
  8956. courseDetail.state != 5 &&
  8957. chapInfoList[courseType].chapterInfo[0]
  8958. .taskJson[taskCount].eList &&
  8959. chapInfoList[courseType].chapterInfo[0]
  8960. .taskJson[taskCount].eList.length
  8961. "
  8962. :class="{
  8963. rightW:
  8964. w.userid == userid ||
  8965. tType == 1 ||
  8966. tType == 4 ||
  8967. w.ateacher == userid
  8968. }"
  8969. >
  8970. 评分
  8971. </div>
  8972. <!-- <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"> -->
  8973. <div
  8974. v-else-if="
  8975. (courseDetail.userid == userid ||
  8976. (courseDetail.course_teacher &&
  8977. courseDetail.course_teacher.indexOf(userid) !=
  8978. -1) ||
  8979. (w.userid == userid && sIsOpen)) &&
  8980. courseDetail.state == 5 &&
  8981. ((chapInfoList[courseType].chapterInfo[0]
  8982. .taskJson[taskCount].eList &&
  8983. chapInfoList[courseType].chapterInfo[0]
  8984. .taskJson[taskCount].eList.length) ||
  8985. (tool.eList && tool.eList.length))
  8986. "
  8987. >
  8988. <el-popover
  8989. placement="top"
  8990. width="318"
  8991. :disabled="AIloading[toolIndex][wIndex].loading"
  8992. trigger="hover"
  8993. >
  8994. <markScore
  8995. :loading="AIloading[toolIndex][wIndex].loading"
  8996. :markScoreVisible="markScoreVisible"
  8997. :ref="`markSco${toolIndex}${wIndex}`"
  8998. @updateLoading="updateLoading"
  8999. @updateDocSco="updateDocSco"
  9000. @refreshOther="refreshOther"
  9001. @markScoreDig="markScoreDig"
  9002. :tool="tool"
  9003. :wIndex="wIndex"
  9004. :scoCon="w"
  9005. :toolIndex="toolIndex"
  9006. :key="refreshKey"
  9007. :stage="courseType"
  9008. :task="taskCount"
  9009. :scoTit="
  9010. chapInfoList[courseType].chapterInfo[0]
  9011. .taskJson[taskCount].eList
  9012. "
  9013. >
  9014. </markScore>
  9015. <div
  9016. class="answerScore"
  9017. @click="
  9018. markScoreDig2(
  9019. w.sName,
  9020. worksStudent,
  9021. w.userid,
  9022. toolIndex,
  9023. chapInfoList[courseType].chapterInfo[0]
  9024. .taskJson[taskCount].eList,
  9025. AIloading[toolIndex][wIndex].loading,
  9026. tool
  9027. )
  9028. "
  9029. slot="reference"
  9030. :class="{
  9031. rightW:
  9032. w.userid == userid ||
  9033. tType == 1 ||
  9034. tType == 4 ||
  9035. w.ateacher == userid
  9036. }"
  9037. >
  9038. <span v-if="AIloading[toolIndex][wIndex].sco">
  9039. {{
  9040. AIloading[toolIndex][wIndex].loading
  9041. ? "评分中"
  9042. : AIloading[toolIndex][wIndex].sco + "分"
  9043. }}
  9044. </span>
  9045. <span v-else>
  9046. {{
  9047. AIloading[toolIndex][wIndex].loading
  9048. ? "评分中"
  9049. : "评分"
  9050. }}
  9051. </span>
  9052. </div>
  9053. </el-popover>
  9054. </div>
  9055. <img
  9056. class="deleteImg"
  9057. src="../../assets/deleteworks.png"
  9058. v-if="
  9059. w.userid == userid || tType == 1 || tType == 4
  9060. "
  9061. @click.stop="deleteWorks(w.wid)"
  9062. alt
  9063. />
  9064. </div>
  9065. <div class="comment" style="min-width: 200px">
  9066. <div class="worksName">
  9067. <div>{{ w.sName }}</div>
  9068. </div>
  9069. <div class="commentList">
  9070. <div class="commentList">
  9071. <div
  9072. class="commentImg"
  9073. @click="
  9074. isLikes(
  9075. w.wid,
  9076. userid,
  9077. 1,
  9078. null,
  9079. w.isLikes,
  9080. w.sName
  9081. )
  9082. "
  9083. >
  9084. <img
  9085. :src="w.isLikes == true ? likes : noLikes"
  9086. alt=""
  9087. />
  9088. </div>
  9089. <div>{{ w.likesCount }}</div>
  9090. </div>
  9091. <div class="commentList" style="margin-right: 15px">
  9092. <div
  9093. class="commentImg"
  9094. @click="commentOther(w, toolIndex, wIndex)"
  9095. >
  9096. <img
  9097. src="../../assets/icon/comment/comment.png"
  9098. alt=""
  9099. />
  9100. </div>
  9101. <div>{{ w.commentCount }}</div>
  9102. </div>
  9103. </div>
  9104. </div>
  9105. </div>
  9106. </div>
  9107. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9108. 未提交
  9109. </div>
  9110. <div
  9111. class="noWorksS"
  9112. v-if="noWorksS && noWorksS[toolIndex].length"
  9113. >
  9114. <div
  9115. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9116. :key="sIndex"
  9117. class="noWorksName"
  9118. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9119. >
  9120. <el-tooltip
  9121. effect="dark"
  9122. :content="s.student"
  9123. placement="top"
  9124. >
  9125. <span>{{ s.student }}</span>
  9126. </el-tooltip>
  9127. </div>
  9128. </div>
  9129. </div>
  9130. <div
  9131. v-if="
  9132. tType &&
  9133. tType == 2 &&
  9134. !sIsOpen &&
  9135. tool.tool.indexOf(48) != -1
  9136. "
  9137. class="worksBox"
  9138. >
  9139. <div
  9140. class="zuoyeYulan"
  9141. v-if="workStudent[toolIndex].length > 0"
  9142. >
  9143. <span class="worksTitle">作业预览</span>
  9144. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9145. </div>
  9146. <div
  9147. class="worksDetailBox"
  9148. v-if="workStudent[toolIndex].length > 0"
  9149. >
  9150. <div
  9151. class="works"
  9152. style="
  9153. width: 200px;
  9154. height: 140px;
  9155. margin: 10px 10px 10px 0;
  9156. box-shadow: 0 0 6px 1px #dfdada;
  9157. "
  9158. v-for="(w, wIndex) in workStudent[toolIndex]"
  9159. :key="wIndex"
  9160. >
  9161. <div class="workImg">
  9162. <img :src="word" @click="openTable(w)" alt />
  9163. <div
  9164. class="answerScore"
  9165. v-if="w.score"
  9166. @click.stop="openScore(w)"
  9167. :class="{
  9168. rightW:
  9169. w.userid == userid || tType == 1 || tType == 4
  9170. }"
  9171. >
  9172. {{ JSON.parse(w.score).wScore }}分
  9173. </div>
  9174. <div
  9175. class="answerScore"
  9176. @click.stop="openScore(w)"
  9177. v-else-if="courseDetail.userid == userid"
  9178. :class="{
  9179. rightW:
  9180. w.userid == userid || tType == 1 || tType == 4
  9181. }"
  9182. >
  9183. 评分
  9184. </div>
  9185. <div
  9186. class="stuLookScore"
  9187. v-if="
  9188. w.userid == userid ||
  9189. (tType == 1 &&
  9190. courseDetail.state == 5 &&
  9191. ((chapInfoList[courseType].chapterInfo[0]
  9192. .taskJson[taskCount].eList &&
  9193. chapInfoList[courseType].chapterInfo[0]
  9194. .taskJson[taskCount].eList.length) ||
  9195. (tool.eList && tool.eList.length)))
  9196. "
  9197. >
  9198. <el-popover
  9199. placement="top"
  9200. width="318"
  9201. trigger="hover"
  9202. >
  9203. <markScore
  9204. :loading="AIloading[toolIndex][wIndex].loading"
  9205. :markScoreVisible="markScoreVisible"
  9206. :ref="`markSco${toolIndex}${wIndex}`"
  9207. @updateLoading="updateLoading"
  9208. @updateDocSco="updateDocSco"
  9209. @refreshOther="refreshOther"
  9210. @markScoreDig="markScoreDig"
  9211. :tool="tool"
  9212. :wIndex="wIndex"
  9213. :scoCon="w"
  9214. :toolIndex="toolIndex"
  9215. :key="refreshKey"
  9216. :stage="courseType"
  9217. :task="taskCount"
  9218. :scoTit="
  9219. chapInfoList[courseType].chapterInfo[0]
  9220. .taskJson[taskCount].eList
  9221. "
  9222. >
  9223. </markScore>
  9224. <div
  9225. @click="
  9226. markScoreDig2(
  9227. w.sName,
  9228. worksStudent,
  9229. w.userid,
  9230. toolIndex,
  9231. chapInfoList[courseType].chapterInfo[0]
  9232. .taskJson[taskCount].eList,
  9233. AIloading[toolIndex][wIndex].loading,
  9234. tool
  9235. )
  9236. "
  9237. slot="reference"
  9238. >
  9239. <span v-if="AIloading[toolIndex][wIndex].sco">
  9240. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9241. </span>
  9242. <span v-else>
  9243. 评分
  9244. </span>
  9245. </div>
  9246. </el-popover>
  9247. </div>
  9248. <img
  9249. class="deleteImg"
  9250. src="../../assets/deleteworks.png"
  9251. v-if="
  9252. w.userid == userid || tType == 1 || tType == 4
  9253. "
  9254. @click.stop="deleteWorks(w.wid)"
  9255. alt
  9256. />
  9257. </div>
  9258. <div class="worksName">
  9259. <div>{{ w.sName }}</div>
  9260. </div>
  9261. </div>
  9262. </div>
  9263. </div>
  9264. <div
  9265. v-if="
  9266. tType &&
  9267. ((tType == 2 && sIsOpen == true) ||
  9268. tType == 1 ||
  9269. tType == 4) &&
  9270. tool.tool.indexOf(52) != -1
  9271. "
  9272. class="worksBox"
  9273. >
  9274. <div
  9275. class="zuoyeYulan"
  9276. style="display: flex;justify-content: space-between;align-items: center;"
  9277. v-if="
  9278. worksStudent.length &&
  9279. worksStudent[toolIndex].length > 0
  9280. "
  9281. >
  9282. <div class="worksTop">
  9283. <div>作业预览</div>
  9284. <div
  9285. class="corOpen"
  9286. @click="contract(toolIndex)"
  9287. v-if="
  9288. isCloseList[toolIndex].isCloseBoolean &&
  9289. isCloseList[toolIndex].isClose == 0
  9290. "
  9291. >
  9292. 折叠
  9293. </div>
  9294. <div
  9295. class="corOpen"
  9296. @click="contract(toolIndex)"
  9297. v-if="isCloseList[toolIndex].isClose == 1"
  9298. >
  9299. 展开
  9300. </div>
  9301. </div>
  9302. <div
  9303. style="display: flex;"
  9304. v-if="
  9305. (courseDetail.userid == userid ||
  9306. (courseDetail.course_teacher &&
  9307. courseDetail.course_teacher.indexOf(userid) !=
  9308. -1)) &&
  9309. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9310. taskCount
  9311. ].eList &&
  9312. chapInfoList[courseType].chapterInfo[0].taskJson[
  9313. taskCount
  9314. ].eList.length) ||
  9315. (tool.eList && tool.eList.length)) &&
  9316. courseDetail.state == 5
  9317. "
  9318. >
  9319. <!-- <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"> -->
  9320. <div
  9321. @click="
  9322. resetLoopEva(
  9323. worksStudent[toolIndex],
  9324. chapInfoList[courseType].chapterInfo[0].taskJson[
  9325. taskCount
  9326. ].eList,
  9327. courseType,
  9328. taskCount,
  9329. toolIndex,
  9330. tool.toolDetail,
  9331. tool
  9332. )
  9333. "
  9334. style="margin-right:10px"
  9335. class="ScoreBtn"
  9336. >
  9337. 一键重置
  9338. </div>
  9339. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9340. <img
  9341. src="../../assets/icon/newIcons/rootImg.png"
  9342. alt=""
  9343. />
  9344. AI评分
  9345. </div>
  9346. <div
  9347. class="ScoreBtn"
  9348. v-else-if="!loopLoading[toolIndex].loading"
  9349. @click="
  9350. loopEva(
  9351. worksStudent[toolIndex],
  9352. chapInfoList[courseType].chapterInfo[0].taskJson[
  9353. taskCount
  9354. ].eList,
  9355. courseType,
  9356. taskCount,
  9357. toolIndex,
  9358. tool.toolDetail,
  9359. chapInfoList[courseType].chapterInfo[0].taskJson[
  9360. taskCount
  9361. ].taskDetail,
  9362. tool
  9363. )
  9364. "
  9365. >
  9366. <img
  9367. src="../../assets/icon/newIcons/rootImg.png"
  9368. alt=""
  9369. />
  9370. AI评分
  9371. </div>
  9372. <div class="ScoreBtn" v-else>
  9373. <img
  9374. src="../../assets/icon/newIcons/rootImg.png"
  9375. alt=""
  9376. />
  9377. 正在评分
  9378. </div>
  9379. </div>
  9380. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9381. </div>
  9382. <div
  9383. :id="'tool-' + toolIndex"
  9384. :style="{
  9385. height:
  9386. isCloseList[toolIndex].isClose == 1
  9387. ? retrnToolHeight('tool-' + toolIndex)
  9388. : 'auto',
  9389. overflow:
  9390. isCloseList[toolIndex].isClose == 1
  9391. ? 'hidden'
  9392. : 'unset'
  9393. }"
  9394. class="worksDetailBox"
  9395. v-if="
  9396. worksStudent.length &&
  9397. worksStudent[toolIndex].length > 0
  9398. "
  9399. >
  9400. <div
  9401. class="works"
  9402. style="
  9403. width: 200px;
  9404. height: 140px;
  9405. margin: 10px 10px 10px 0;
  9406. border-radius: 15px;
  9407. box-shadow: 0 0 6px 1px #dfdada;
  9408. "
  9409. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9410. :key="wIndex"
  9411. :class="w.type == 1 ? 'isTypeOne' : ''"
  9412. >
  9413. <div class="workImg">
  9414. <img :src="word" @click="openWord(w)" alt />
  9415. <!-- @click="openFile(w.works)" -->
  9416. <div
  9417. class="answerScore"
  9418. v-if="w.score"
  9419. @click.stop="openScore(w)"
  9420. :class="{
  9421. rightW:
  9422. w.userid == userid ||
  9423. tType == 1 ||
  9424. tType == 4 ||
  9425. w.ateacher == userid
  9426. }"
  9427. >
  9428. {{ JSON.parse(w.score).wScore }}分
  9429. </div>
  9430. <div
  9431. class="answerScore"
  9432. @click.stop="openScore(w)"
  9433. v-else-if="
  9434. courseDetail.userid == userid &&
  9435. courseDetail.state != 5 &&
  9436. chapInfoList[courseType].chapterInfo[0]
  9437. .taskJson[taskCount].eList &&
  9438. chapInfoList[courseType].chapterInfo[0]
  9439. .taskJson[taskCount].eList.length
  9440. "
  9441. :class="{
  9442. rightW:
  9443. w.userid == userid ||
  9444. tType == 1 ||
  9445. tType == 4 ||
  9446. w.ateacher == userid
  9447. }"
  9448. >
  9449. 评分
  9450. </div>
  9451. <!-- <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"> -->
  9452. <div
  9453. v-else-if="
  9454. (courseDetail.userid == userid ||
  9455. (courseDetail.course_teacher &&
  9456. courseDetail.course_teacher.indexOf(userid) !=
  9457. -1) ||
  9458. (w.userid == userid && sIsOpen)) &&
  9459. courseDetail.state == 5 &&
  9460. ((chapInfoList[courseType].chapterInfo[0]
  9461. .taskJson[taskCount].eList &&
  9462. chapInfoList[courseType].chapterInfo[0]
  9463. .taskJson[taskCount].eList.length) ||
  9464. (tool.eList && tool.eList.length))
  9465. "
  9466. >
  9467. <!-- <div
  9468. class="answerScore"
  9469. @click="markScoreDig(w.userid,toolIndex)"
  9470. :class="{
  9471. rightW:
  9472. w.userid == userid ||
  9473. tType == 1 ||
  9474. tType == 4 ||
  9475. w.ateacher == userid,
  9476. }"
  9477. >
  9478. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  9479. </div> -->
  9480. <!-- @show="handleShow(toolIndex,wIndex)"
  9481. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  9482. <el-popover
  9483. placement="top"
  9484. width="318"
  9485. :disabled="AIloading[toolIndex][wIndex].loading"
  9486. trigger="hover"
  9487. >
  9488. <markScore
  9489. :loading="AIloading[toolIndex][wIndex].loading"
  9490. :markScoreVisible="markScoreVisible"
  9491. :ref="`markSco${toolIndex}${wIndex}`"
  9492. @updateLoading="updateLoading"
  9493. @updateDocSco="updateDocSco"
  9494. @refreshOther="refreshOther"
  9495. @markScoreDig="markScoreDig"
  9496. :tool="tool"
  9497. :wIndex="wIndex"
  9498. :scoCon="w"
  9499. :toolIndex="toolIndex"
  9500. :key="refreshKey"
  9501. :stage="courseType"
  9502. :task="taskCount"
  9503. :scoTit="
  9504. chapInfoList[courseType].chapterInfo[0]
  9505. .taskJson[taskCount].eList
  9506. "
  9507. >
  9508. </markScore>
  9509. <div
  9510. class="answerScore"
  9511. @click="
  9512. markScoreDig2(
  9513. w.sName,
  9514. worksStudent,
  9515. w.userid,
  9516. toolIndex,
  9517. chapInfoList[courseType].chapterInfo[0]
  9518. .taskJson[taskCount].eList,
  9519. AIloading[toolIndex][wIndex].loading,
  9520. tool
  9521. )
  9522. "
  9523. slot="reference"
  9524. :class="{
  9525. rightW:
  9526. w.userid == userid ||
  9527. tType == 1 ||
  9528. tType == 4 ||
  9529. w.ateacher == userid
  9530. }"
  9531. >
  9532. <span v-if="AIloading[toolIndex][wIndex].sco">
  9533. {{
  9534. AIloading[toolIndex][wIndex].loading
  9535. ? "评分中"
  9536. : AIloading[toolIndex][wIndex].sco + "分"
  9537. }}
  9538. </span>
  9539. <span v-else>
  9540. {{
  9541. AIloading[toolIndex][wIndex].loading
  9542. ? "评分中"
  9543. : "评分"
  9544. }}
  9545. </span>
  9546. </div>
  9547. </el-popover>
  9548. </div>
  9549. <img
  9550. class="deleteImg"
  9551. src="../../assets/deleteworks.png"
  9552. v-if="
  9553. w.userid == userid || tType == 1 || tType == 4
  9554. "
  9555. @click.stop="deleteWorks(w.wid)"
  9556. alt
  9557. />
  9558. </div>
  9559. <div class="comment" style="min-width: 200px">
  9560. <div class="worksName">
  9561. <div>{{ w.sName }}</div>
  9562. </div>
  9563. <div class="commentList">
  9564. <div class="commentList">
  9565. <div
  9566. class="commentImg"
  9567. @click="
  9568. isLikes(
  9569. w.wid,
  9570. userid,
  9571. 1,
  9572. null,
  9573. w.isLikes,
  9574. w.sName
  9575. )
  9576. "
  9577. >
  9578. <img
  9579. :src="w.isLikes == true ? likes : noLikes"
  9580. alt=""
  9581. />
  9582. </div>
  9583. <div>{{ w.likesCount }}</div>
  9584. </div>
  9585. <div class="commentList" style="margin-right: 15px">
  9586. <div
  9587. class="commentImg"
  9588. @click="commentOther(w, toolIndex, wIndex)"
  9589. >
  9590. <img
  9591. src="../../assets/icon/comment/comment.png"
  9592. alt=""
  9593. />
  9594. </div>
  9595. <div>{{ w.commentCount }}</div>
  9596. </div>
  9597. </div>
  9598. </div>
  9599. </div>
  9600. </div>
  9601. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9602. 未提交
  9603. </div>
  9604. <div
  9605. class="noWorksS"
  9606. v-if="noWorksS && noWorksS[toolIndex].length"
  9607. >
  9608. <div
  9609. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9610. :key="sIndex"
  9611. class="noWorksName"
  9612. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  9613. >
  9614. <el-tooltip
  9615. effect="dark"
  9616. :content="s.student"
  9617. placement="top"
  9618. >
  9619. <span>{{ s.student }}</span>
  9620. </el-tooltip>
  9621. </div>
  9622. </div>
  9623. </div>
  9624. <div
  9625. v-if="
  9626. tType &&
  9627. tType == 2 &&
  9628. !sIsOpen &&
  9629. tool.tool.indexOf(52) != -1
  9630. "
  9631. class="worksBox"
  9632. >
  9633. <div
  9634. class="zuoyeYulan"
  9635. v-if="workStudent[toolIndex].length > 0"
  9636. >
  9637. <span class="worksTitle">作业预览</span>
  9638. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9639. </div>
  9640. <div
  9641. class="worksDetailBox"
  9642. v-if="workStudent[toolIndex].length > 0"
  9643. >
  9644. <div
  9645. class="works"
  9646. style="
  9647. width: 200px;
  9648. height: 140px;
  9649. margin: 10px 10px 10px 0;
  9650. box-shadow: 0 0 6px 1px #dfdada;
  9651. "
  9652. v-for="(w, wIndex) in workStudent[toolIndex]"
  9653. :key="wIndex"
  9654. >
  9655. <div class="workImg">
  9656. <img :src="word" @click="openWord(w)" alt />
  9657. <div
  9658. class="answerScore"
  9659. v-if="w.score"
  9660. @click.stop="openScore(w)"
  9661. :class="{
  9662. rightW:
  9663. w.userid == userid || tType == 1 || tType == 4
  9664. }"
  9665. >
  9666. {{ JSON.parse(w.score).wScore }}分
  9667. </div>
  9668. <div
  9669. class="answerScore"
  9670. @click.stop="openScore(w)"
  9671. v-else-if="courseDetail.userid == userid"
  9672. :class="{
  9673. rightW:
  9674. w.userid == userid || tType == 1 || tType == 4
  9675. }"
  9676. >
  9677. 评分
  9678. </div>
  9679. <div
  9680. class="stuLookScore"
  9681. v-if="
  9682. w.userid == userid ||
  9683. (tType == 1 &&
  9684. courseDetail.state == 5 &&
  9685. ((chapInfoList[courseType].chapterInfo[0]
  9686. .taskJson[taskCount].eList &&
  9687. chapInfoList[courseType].chapterInfo[0]
  9688. .taskJson[taskCount].eList.length) ||
  9689. (tool.eList && tool.eList.length)))
  9690. "
  9691. >
  9692. <el-popover
  9693. placement="top"
  9694. width="318"
  9695. trigger="hover"
  9696. >
  9697. <markScore
  9698. :loading="AIloading[toolIndex][wIndex].loading"
  9699. :markScoreVisible="markScoreVisible"
  9700. :ref="`markSco${toolIndex}${wIndex}`"
  9701. @updateLoading="updateLoading"
  9702. @updateDocSco="updateDocSco"
  9703. @refreshOther="refreshOther"
  9704. @markScoreDig="markScoreDig"
  9705. :tool="tool"
  9706. :wIndex="wIndex"
  9707. :scoCon="w"
  9708. :toolIndex="toolIndex"
  9709. :key="refreshKey"
  9710. :stage="courseType"
  9711. :task="taskCount"
  9712. :scoTit="
  9713. chapInfoList[courseType].chapterInfo[0]
  9714. .taskJson[taskCount].eList
  9715. "
  9716. >
  9717. </markScore>
  9718. <div
  9719. @click="
  9720. markScoreDig2(
  9721. w.sName,
  9722. worksStudent,
  9723. w.userid,
  9724. toolIndex,
  9725. chapInfoList[courseType].chapterInfo[0]
  9726. .taskJson[taskCount].eList,
  9727. AIloading[toolIndex][wIndex].loading,
  9728. tool
  9729. )
  9730. "
  9731. slot="reference"
  9732. >
  9733. <span v-if="AIloading[toolIndex][wIndex].sco">
  9734. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9735. </span>
  9736. <span v-else>
  9737. 评分
  9738. </span>
  9739. </div>
  9740. </el-popover>
  9741. </div>
  9742. <img
  9743. class="deleteImg"
  9744. src="../../assets/deleteworks.png"
  9745. v-if="
  9746. w.userid == userid || tType == 1 || tType == 4
  9747. "
  9748. @click.stop="deleteWorks(w.wid)"
  9749. alt
  9750. />
  9751. </div>
  9752. <div class="worksName">
  9753. <div>{{ w.sName }}</div>
  9754. </div>
  9755. </div>
  9756. </div>
  9757. </div>
  9758. <div
  9759. v-if="tool.tool.indexOf(49) != -1"
  9760. class="xuan_right_box"
  9761. style="margin: 0 15px 0 25px; width: 93%"
  9762. >
  9763. <div
  9764. v-if="courseDetail.userid == userid"
  9765. style="
  9766. display: flex;
  9767. justify-content: flex-end;
  9768. margin-right: 10px;
  9769. "
  9770. >
  9771. <el-button
  9772. type="primary"
  9773. size="small"
  9774. @click="addTools(49, toolIndex, taskCount)"
  9775. >分组设置</el-button
  9776. >
  9777. </div>
  9778. <div
  9779. v-if="groupStudentUid[toolIndex]"
  9780. class="group_staic_box"
  9781. >
  9782. <div
  9783. v-for="(gp, gd) in tool.groupJson.group"
  9784. :key="gd"
  9785. class="group_staic"
  9786. >
  9787. <span> {{ gp.name }}</span>
  9788. <span>
  9789. 目前人数{{
  9790. groupStudentUid[toolIndex][gd].length
  9791. }}人</span
  9792. >
  9793. </div>
  9794. </div>
  9795. </div>
  9796. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  9797. <div
  9798. class="zuoyeYulan"
  9799. v-if="
  9800. worksStudent.length &&
  9801. worksStudent[toolIndex].length > 0
  9802. "
  9803. >
  9804. <span class="worksTitle">作业预览</span>
  9805. </div>
  9806. <div>
  9807. <div
  9808. class="group_workBox"
  9809. v-for="(g, gindex) in tool.groupJson.group"
  9810. :key="gindex"
  9811. >
  9812. <div
  9813. class="group_box"
  9814. v-if="
  9815. groupStudentUid[toolIndex] &&
  9816. worksStudent[toolIndex] &&
  9817. (worksStudent[toolIndex][gindex].length ||
  9818. groupStudentUid[toolIndex][gindex].indexOf(
  9819. userid
  9820. ) != -1)
  9821. "
  9822. >
  9823. <div class="group_title">
  9824. <el-tooltip
  9825. class="item"
  9826. effect="light"
  9827. :content="g.name"
  9828. placement="top"
  9829. >
  9830. <div class="group_name">{{ g.name }}</div>
  9831. </el-tooltip>
  9832. <el-button
  9833. type="primary"
  9834. v-if="
  9835. groupStudentUid[toolIndex][gindex].indexOf(
  9836. userid
  9837. ) != -1
  9838. "
  9839. @click="groupUpload(toolIndex, taskCount, gindex)"
  9840. >上传作业</el-button
  9841. >
  9842. </div>
  9843. <div class="group_work">
  9844. <div
  9845. class="works"
  9846. style="
  9847. width: 200px;
  9848. height: 140px;
  9849. margin: 10px 10px 10px 0;
  9850. border-radius: 15px;
  9851. box-shadow: 0 0 6px 1px #dfdada;
  9852. "
  9853. v-for="(w, wIndex) in worksStudent[toolIndex][
  9854. gindex
  9855. ]"
  9856. :key="wIndex"
  9857. :class="w.type == 1 ? 'isTypeOne' : ''"
  9858. >
  9859. <div class="workImg" v-if="w.type == 0">
  9860. <img
  9861. :src="w.works"
  9862. @click="previewImg(w.works, w)"
  9863. alt
  9864. />
  9865. <div
  9866. class="answerScore"
  9867. v-if="w.score"
  9868. @click.stop="openScore(w)"
  9869. :class="{
  9870. rightW:
  9871. w.userid == userid ||
  9872. tType == 1 ||
  9873. tType == 4 ||
  9874. w.ateacher == userid
  9875. }"
  9876. >
  9877. {{ JSON.parse(w.score).wScore }}分
  9878. </div>
  9879. <div
  9880. class="answerScore"
  9881. @click.stop="openScore(w)"
  9882. v-else-if="courseDetail.userid == userid"
  9883. :class="{
  9884. rightW:
  9885. w.userid == userid ||
  9886. tType == 1 ||
  9887. tType == 4 ||
  9888. w.ateacher == userid
  9889. }"
  9890. >
  9891. 评分
  9892. </div>
  9893. <img
  9894. class="deleteImg"
  9895. src="../../assets/deleteworks.png"
  9896. v-if="
  9897. w.userid == userid ||
  9898. tType == 1 ||
  9899. tType == 4
  9900. "
  9901. @click.stop="deleteWorks(w.wid)"
  9902. alt
  9903. />
  9904. </div>
  9905. <div class="workImg" v-if="w.type == 1">
  9906. <img
  9907. :src="word"
  9908. @click="openFile(w.works)"
  9909. alt
  9910. />
  9911. <!-- @click="openFile(w.works)" -->
  9912. <div
  9913. class="answerScore"
  9914. v-if="w.score"
  9915. @click.stop="openScore(w)"
  9916. :class="{
  9917. rightW:
  9918. w.userid == userid ||
  9919. tType == 1 ||
  9920. tType == 4 ||
  9921. w.ateacher == userid
  9922. }"
  9923. >
  9924. {{ JSON.parse(w.score).wScore }}分
  9925. </div>
  9926. <div
  9927. class="answerScore"
  9928. @click.stop="openScore(w)"
  9929. v-else-if="courseDetail.userid == userid"
  9930. :class="{
  9931. rightW:
  9932. w.userid == userid ||
  9933. tType == 1 ||
  9934. tType == 4 ||
  9935. w.ateacher == userid
  9936. }"
  9937. >
  9938. 评分
  9939. </div>
  9940. <img
  9941. class="deleteImg"
  9942. src="../../assets/deleteworks.png"
  9943. v-if="
  9944. w.userid == userid ||
  9945. tType == 1 ||
  9946. tType == 4
  9947. "
  9948. @click.stop="deleteWorks(w.wid)"
  9949. alt
  9950. />
  9951. </div>
  9952. <div class="workImg" v-if="w.type == 3">
  9953. <img
  9954. style="cursor: pointer"
  9955. :src="video"
  9956. @click="openVideo(w)"
  9957. alt
  9958. />
  9959. <!-- @click="openVideo(w.works)" -->
  9960. <div
  9961. class="answerScore"
  9962. v-if="w.score"
  9963. @click.stop="openScore(w)"
  9964. :class="{
  9965. rightW:
  9966. w.userid == userid ||
  9967. tType == 1 ||
  9968. tType == 4 ||
  9969. w.ateacher == userid
  9970. }"
  9971. >
  9972. {{ JSON.parse(w.score).wScore }}分
  9973. </div>
  9974. <div
  9975. class="answerScore"
  9976. @click.stop="openScore(w)"
  9977. v-else-if="courseDetail.userid == userid"
  9978. :class="{
  9979. rightW:
  9980. w.userid == userid ||
  9981. tType == 1 ||
  9982. tType == 4 ||
  9983. w.ateacher == userid
  9984. }"
  9985. >
  9986. 评分
  9987. </div>
  9988. <img
  9989. class="deleteImg"
  9990. src="../../assets/deleteworks.png"
  9991. v-if="
  9992. w.userid == userid ||
  9993. tType == 1 ||
  9994. tType == 4
  9995. "
  9996. @click.stop="deleteWorks(w.wid)"
  9997. alt
  9998. />
  9999. </div>
  10000. <div class="workImg" v-if="w.type == 12">
  10001. <img
  10002. style="cursor: pointer"
  10003. :src="word2"
  10004. @click="downloadFile(w.works)"
  10005. alt
  10006. />
  10007. <!-- @click="openVideo(w.works)" -->
  10008. <div
  10009. class="answerScore"
  10010. v-if="w.score"
  10011. @click.stop="openScore(w)"
  10012. :class="{
  10013. rightW:
  10014. w.userid == userid ||
  10015. tType == 1 ||
  10016. tType == 4 ||
  10017. w.ateacher == userid
  10018. }"
  10019. >
  10020. {{ JSON.parse(w.score).wScore }}分
  10021. </div>
  10022. <div
  10023. class="answerScore"
  10024. @click.stop="openScore(w)"
  10025. v-else-if="courseDetail.userid == userid"
  10026. :class="{
  10027. rightW:
  10028. w.userid == userid ||
  10029. tType == 1 ||
  10030. tType == 4 ||
  10031. w.ateacher == userid
  10032. }"
  10033. >
  10034. 评分
  10035. </div>
  10036. <img
  10037. class="deleteImg"
  10038. src="../../assets/deleteworks.png"
  10039. v-if="
  10040. w.userid == userid ||
  10041. tType == 1 ||
  10042. tType == 4
  10043. "
  10044. @click.stop="deleteWorks(w.wid)"
  10045. alt
  10046. />
  10047. </div>
  10048. <div class="comment" style="min-width: 200px">
  10049. <div class="worksName">
  10050. <div>{{ w.sName }}</div>
  10051. </div>
  10052. <div class="commentList">
  10053. <div class="commentList">
  10054. <div
  10055. class="commentImg"
  10056. @click="
  10057. isLikes(
  10058. w.wid,
  10059. userid,
  10060. 1,
  10061. null,
  10062. w.isLikes,
  10063. w.sName
  10064. )
  10065. "
  10066. >
  10067. <img
  10068. :src="
  10069. w.isLikes == true ? likes : noLikes
  10070. "
  10071. alt=""
  10072. />
  10073. </div>
  10074. <div>{{ w.likesCount }}</div>
  10075. </div>
  10076. <div
  10077. class="commentList"
  10078. style="margin-right: 15px"
  10079. >
  10080. <div
  10081. class="commentImg"
  10082. @click="
  10083. commentOther(
  10084. w,
  10085. toolIndex,
  10086. wIndex,
  10087. gindex
  10088. )
  10089. "
  10090. >
  10091. <img
  10092. src="../../assets/icon/comment/comment.png"
  10093. alt=""
  10094. />
  10095. </div>
  10096. <div>{{ w.commentCount }}</div>
  10097. </div>
  10098. </div>
  10099. </div>
  10100. </div>
  10101. </div>
  10102. </div>
  10103. </div>
  10104. </div>
  10105. </div>
  10106. <div
  10107. style="width:92%;margin: 0 0 0 40px;"
  10108. v-if="
  10109. courseDetail.state == 5 && tool.eList && tool.eList.length
  10110. "
  10111. >
  10112. <evaTable :eList="tool.eList"></evaTable>
  10113. </div>
  10114. </div>
  10115. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10116. 上传文件
  10117. <input
  10118. type="file"
  10119. accept="image/png, image/gif, image/jpeg"
  10120. style="display: none"
  10121. @change="beforeUpload1($event, 2, index)"
  10122. />
  10123. </div>-->
  10124. </div>
  10125. </div>
  10126. <!-- <div
  10127. class="vedioBox"
  10128. style="margin-top: 10px"
  10129. v-if="
  10130. courseDetail.userid == userid ||
  10131. (courseDetail.course_teacher &&
  10132. courseDetail.course_teacher.indexOf(userid) != -1)
  10133. "
  10134. :style="{
  10135. borderRadius:
  10136. !(
  10137. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10138. .toolChoose[0].tool &&
  10139. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10140. .toolChoose[0].tool.length > 0
  10141. ) &&
  10142. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10143. .taskDetail == '' &&
  10144. vChapterData[taskCount].length == 0 &&
  10145. fileC[taskCount].length == 0
  10146. ? '0 0 20px 20px'
  10147. : '20px',
  10148. }"
  10149. >
  10150. <div
  10151. class="queTop"
  10152. @click="isClose = !isClose"
  10153. style="
  10154. padding: 15px 0 15px 37px;
  10155. justify-content: space-between;
  10156. "
  10157. >
  10158. <div class="queTopTitle">新增工具</div>
  10159. <div class="queTopRight">
  10160. <div class="queTopClose" v-if="isClose == 0">
  10161. 展开
  10162. <div class="closeImg">
  10163. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10164. </div>
  10165. </div>
  10166. <div class="queTopClose" v-if="isClose == 1">
  10167. 折叠
  10168. <div class="openImg">
  10169. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10170. </div>
  10171. </div>
  10172. <el-button
  10173. style="margin: 0 30px 0 auto"
  10174. type="primary"
  10175. size="small"
  10176. v-if="isClose == 1 && checktoolArray.length > 0"
  10177. @click.stop="addToolChoose"
  10178. >确定</el-button
  10179. >
  10180. </div>
  10181. </div>
  10182. <div
  10183. class="tool_work_box"
  10184. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10185. >
  10186. <div class="tool_box">
  10187. <div class="tool_type_box">
  10188. <div class="chooseWho">
  10189. <div
  10190. :class="toolType == 0 ? 'isChooseActive' : ''"
  10191. @click="(toolType = 0), $forceUpdate()"
  10192. >
  10193. 互动类
  10194. </div>
  10195. <div
  10196. :class="toolType == 1 ? 'isChooseActive' : ''"
  10197. @click="(toolType = 1), $forceUpdate()"
  10198. >
  10199. 思维类
  10200. </div>
  10201. <div
  10202. :class="toolType == 2 ? 'isChooseActive' : ''"
  10203. @click="(toolType = 2), $forceUpdate()"
  10204. >
  10205. 测评类
  10206. </div>
  10207. <div
  10208. :class="toolType == 3 ? 'isChooseActive' : ''"
  10209. @click="(toolType = 3), $forceUpdate()"
  10210. >
  10211. 编程类
  10212. </div>
  10213. <div
  10214. :class="toolType == 5 ? 'isChooseActive' : ''"
  10215. @click="(toolType = 5), $forceUpdate()"
  10216. >
  10217. 学科类
  10218. </div>
  10219. </div>
  10220. </div>
  10221. <div>
  10222. <div class="toolSort" v-if="toolType == 0">
  10223. <div class="tool">
  10224. <div class="whiteBIcon" @click="addTools2(10)">
  10225. <img
  10226. src="../../assets/icon/thirdToolList/time.png"
  10227. alt
  10228. />
  10229. <div style="margin: 5px 0">倒计时</div>
  10230. </div>
  10231. <div class="check" @click="addTools2(10)">
  10232. <img
  10233. src="../../assets/icon/checkNo.png"
  10234. alt
  10235. v-if="checktoolArray.indexOf(10) == -1"
  10236. />
  10237. <div class="checkDiv" v-else>
  10238. <img src="../../assets/icon/checkedIs.png" alt /><span
  10239. >已选择</span
  10240. >
  10241. </div>
  10242. </div>
  10243. </div>
  10244. <div class="tool">
  10245. <div class="whiteBIcon" @click="addTools2(65)">
  10246. <img
  10247. src="../../assets/icon/firstToolList/pickPeople.png"
  10248. alt
  10249. />
  10250. <div style="margin: 5px 0">挑人</div>
  10251. </div>
  10252. <div class="check" @click="addTools2(65)">
  10253. <img
  10254. src="../../assets/icon/checkNo.png"
  10255. alt
  10256. v-if="checktoolArray.indexOf(65) == -1"
  10257. />
  10258. <div class="checkDiv" v-else>
  10259. <img src="../../assets/icon/checkedIs.png" alt /><span
  10260. >已选择</span
  10261. >
  10262. </div>
  10263. </div>
  10264. </div>
  10265. </div>
  10266. <div class="toolSort" v-if="toolType == 1">
  10267. <div class="tool">
  10268. <div class="whiteBIcon" @click="addTools2(7)">
  10269. <img
  10270. src="../../assets/icon/secondToolList/mindNetwork.png"
  10271. alt
  10272. />
  10273. <div style="margin: 5px 0">思维网格</div>
  10274. </div>
  10275. <div class="check" @click="addTools2(7)">
  10276. <img
  10277. src="../../assets/icon/checkNo.png"
  10278. alt
  10279. v-if="checktoolArray.indexOf(7) == -1"
  10280. />
  10281. <div class="checkDiv" v-else>
  10282. <img src="../../assets/icon/checkedIs.png" alt /><span
  10283. >已选择</span
  10284. >
  10285. </div>
  10286. </div>
  10287. </div>
  10288. <div class="tool">
  10289. <div class="whiteBIcon" @click="addTools2(1)">
  10290. <img
  10291. src="../../assets/icon/secondToolList/whiteBoard.png"
  10292. alt
  10293. />
  10294. <div style="margin: 5px 0">电子白板</div>
  10295. </div>
  10296. <div class="check" @click="addTools2(1)">
  10297. <img
  10298. src="../../assets/icon/checkNo.png"
  10299. alt
  10300. v-if="checktoolArray.indexOf(1) == -1"
  10301. />
  10302. <div class="checkDiv" v-else>
  10303. <img src="../../assets/icon/checkedIs.png" alt /><span
  10304. >已选择</span
  10305. >
  10306. </div>
  10307. </div>
  10308. </div>
  10309. <div class="tool">
  10310. <div class="whiteBIcon" @click="addTools2(52)">
  10311. <img
  10312. src="../../assets/icon/fourthToolList/text.png"
  10313. alt
  10314. />
  10315. <div style="margin: 5px 0">文档</div>
  10316. </div>
  10317. <div class="check" @click="addTools2(52)">
  10318. <img
  10319. src="../../assets/icon/checkNo.png"
  10320. alt
  10321. v-if="checktoolArray.indexOf(52) == -1"
  10322. />
  10323. <div class="checkDiv" v-else>
  10324. <img src="../../assets/icon/checkedIs.png" alt /><span
  10325. >已选择</span
  10326. >
  10327. </div>
  10328. </div>
  10329. </div>
  10330. <div class="tool">
  10331. <div class="whiteBIcon" @click="addTools2(3)">
  10332. <img
  10333. src="../../assets/icon/secondToolList/mindMapping.png"
  10334. alt
  10335. />
  10336. <div style="margin: 5px 0">思维导图</div>
  10337. </div>
  10338. <div class="check" @click="addTools2(3)">
  10339. <img
  10340. src="../../assets/icon/checkNo.png"
  10341. alt
  10342. v-if="checktoolArray.indexOf(3) == -1"
  10343. />
  10344. <div class="checkDiv" v-else>
  10345. <img src="../../assets/icon/checkedIs.png" alt /><span
  10346. >已选择</span
  10347. >
  10348. </div>
  10349. </div>
  10350. </div>
  10351. <div class="tool">
  10352. <div class="whiteBIcon" @click="addTools2(48)">
  10353. <img
  10354. src="../../assets/icon/fourthToolList/table.png"
  10355. alt
  10356. />
  10357. <div style="margin: 5px 0">表格</div>
  10358. </div>
  10359. <div class="check" @click="addTools2(48)">
  10360. <img
  10361. src="../../assets/icon/checkNo.png"
  10362. alt
  10363. v-if="checktoolArray.indexOf(48) == -1"
  10364. />
  10365. <div class="checkDiv" v-else>
  10366. <img src="../../assets/icon/checkedIs.png" alt /><span
  10367. >已选择</span
  10368. >
  10369. </div>
  10370. </div>
  10371. </div>
  10372. </div>
  10373. <div class="toolSort" v-if="toolType == 6">
  10374. <div v-show="tooC == 49">
  10375. <img
  10376. @click="addTools(tooC, toolIndex, taskCount)"
  10377. src="../../assets/icon/fourthToolList/group.png"
  10378. alt
  10379. />
  10380. <div style="margin: 5px 0">学生分组</div>
  10381. </div>
  10382. </div>
  10383. <div class="toolSort" v-if="toolType == 2">
  10384. <div class="tool">
  10385. <div class="whiteBIcon" @click="addTools2(16)">
  10386. <img
  10387. src="../../assets/icon/thirdToolList/work.png"
  10388. alt
  10389. />
  10390. <div style="margin: 5px 0">作业提交</div>
  10391. </div>
  10392. <div class="check" @click="addTools2(16)">
  10393. <img
  10394. src="../../assets/icon/checkNo.png"
  10395. alt
  10396. v-if="checktoolArray.indexOf(16) == -1"
  10397. />
  10398. <div class="checkDiv" v-else>
  10399. <img src="../../assets/icon/checkedIs.png" alt /><span
  10400. >已选择</span
  10401. >
  10402. </div>
  10403. </div>
  10404. </div>
  10405. <div class="tool">
  10406. <div class="whiteBIcon" @click="addTools2(50)">
  10407. <img
  10408. src="../../assets/icon/thirdToolList/plwork.png"
  10409. alt
  10410. />
  10411. <div style="margin: 5px 0">批量上传</div>
  10412. </div>
  10413. <div class="check" @click="addTools2(50)">
  10414. <img
  10415. src="../../assets/icon/checkNo.png"
  10416. alt
  10417. v-if="checktoolArray.indexOf(50) == -1"
  10418. />
  10419. <div class="checkDiv" v-else>
  10420. <img src="../../assets/icon/checkedIs.png" alt /><span
  10421. >已选择</span
  10422. >
  10423. </div>
  10424. </div>
  10425. </div>
  10426. </div>
  10427. <div class="toolSort" v-if="toolType == 3">
  10428. <div class="tool">
  10429. <div class="whiteBIcon" @click="addTools2(18)">
  10430. <img
  10431. src="../../assets/icon/thirdToolList/trainPlatform.png"
  10432. alt
  10433. />
  10434. <div style="margin: 5px 0">训练平台</div>
  10435. </div>
  10436. <div class="check" @click="addTools2(18)">
  10437. <img
  10438. src="../../assets/icon/checkNo.png"
  10439. alt
  10440. v-if="checktoolArray.indexOf(18) == -1"
  10441. />
  10442. <div class="checkDiv" v-else>
  10443. <img src="../../assets/icon/checkedIs.png" alt /><span
  10444. >已选择</span
  10445. >
  10446. </div>
  10447. </div>
  10448. </div>
  10449. <div class="tool">
  10450. <div class="whiteBIcon" @click="addTools2(21)">
  10451. <img
  10452. src="../../assets/icon/fourthToolList/program.png"
  10453. alt
  10454. />
  10455. <div style="margin: 5px 0">AIoT Blockly</div>
  10456. </div>
  10457. <div class="check" @click="addTools2(21)">
  10458. <img
  10459. src="../../assets/icon/checkNo.png"
  10460. alt
  10461. v-if="checktoolArray.indexOf(21) == -1"
  10462. />
  10463. <div class="checkDiv" v-else>
  10464. <img src="../../assets/icon/checkedIs.png" alt /><span
  10465. >已选择</span
  10466. >
  10467. </div>
  10468. </div>
  10469. </div>
  10470. <div class="tool">
  10471. <div class="whiteBIcon" @click="addTools2(23)">
  10472. <img
  10473. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  10474. alt
  10475. />
  10476. <div style="margin: 5px 0">AI Python</div>
  10477. </div>
  10478. <div class="check" @click="addTools2(23)">
  10479. <img
  10480. src="../../assets/icon/checkNo.png"
  10481. alt
  10482. v-if="checktoolArray.indexOf(23) == -1"
  10483. />
  10484. <div class="checkDiv" v-else>
  10485. <img src="../../assets/icon/checkedIs.png" alt /><span
  10486. >已选择</span
  10487. >
  10488. </div>
  10489. </div>
  10490. </div>
  10491. <div class="tool">
  10492. <div class="whiteBIcon" @click="addTools2(24)">
  10493. <img
  10494. src="../../assets/icon/fourthToolList/AIprogram.png"
  10495. alt
  10496. />
  10497. <div style="margin: 5px 0">AI Blockly</div>
  10498. </div>
  10499. <div class="check" @click="addTools2(24)">
  10500. <img
  10501. src="../../assets/icon/checkNo.png"
  10502. alt
  10503. v-if="checktoolArray.indexOf(24) == -1"
  10504. />
  10505. <div class="checkDiv" v-else>
  10506. <img src="../../assets/icon/checkedIs.png" alt /><span
  10507. >已选择</span
  10508. >
  10509. </div>
  10510. </div>
  10511. </div>
  10512. <div class="tool">
  10513. <div class="whiteBIcon" @click="addTools2(32)">
  10514. <img
  10515. src="../../assets/icon/thirdToolList/code.png"
  10516. alt
  10517. />
  10518. <div style="margin: 5px 0">源码编辑</div>
  10519. </div>
  10520. <div class="check" @click="addTools2(32)">
  10521. <img
  10522. src="../../assets/icon/checkNo.png"
  10523. alt
  10524. v-if="checktoolArray.indexOf(32) == -1"
  10525. />
  10526. <div class="checkDiv" v-else>
  10527. <img src="../../assets/icon/checkedIs.png" alt /><span
  10528. >已选择</span
  10529. >
  10530. </div>
  10531. </div>
  10532. </div>
  10533. <div class="tool">
  10534. <div class="whiteBIcon" @click="addTools2(57)">
  10535. <img
  10536. src="../../assets/icon/fourthToolList/cocopi.png"
  10537. alt
  10538. />
  10539. <div style="margin: 5px 0">CocoPi</div>
  10540. </div>
  10541. <div class="check" @click="addTools2(57)">
  10542. <img
  10543. src="../../assets/icon/checkNo.png"
  10544. alt
  10545. v-if="checktoolArray.indexOf(57) == -1"
  10546. />
  10547. <div class="checkDiv" v-else>
  10548. <img src="../../assets/icon/checkedIs.png" alt /><span
  10549. >已选择</span
  10550. >
  10551. </div>
  10552. </div>
  10553. </div>
  10554. <div class="tool">
  10555. <div class="whiteBIcon" @click="addTools2(63)">
  10556. <img
  10557. src="../../assets/icon/fourthToolList/Wood.png"
  10558. alt
  10559. />
  10560. <div style="margin: 5px 0">海龟编程</div>
  10561. </div>
  10562. <div class="check" @click="addTools2(63)">
  10563. <img
  10564. src="../../assets/icon/checkNo.png"
  10565. alt
  10566. v-if="checktoolArray.indexOf(63) == -1"
  10567. />
  10568. <div class="checkDiv" v-else>
  10569. <img src="../../assets/icon/checkedIs.png" alt /><span
  10570. >已选择</span
  10571. >
  10572. </div>
  10573. </div>
  10574. </div>
  10575. </div>
  10576. <div class="toolSort" v-if="toolType == 5">
  10577. <div class="tool">
  10578. <div class="whiteBIcon" @click="addTools2(28)">
  10579. <img
  10580. src="../../assets/icon/secondToolList/translation.png"
  10581. alt
  10582. />
  10583. <div style="margin: 5px 0">翻译</div>
  10584. </div>
  10585. <div class="check" @click="addTools2(28)">
  10586. <img
  10587. src="../../assets/icon/checkNo.png"
  10588. alt
  10589. v-if="checktoolArray.indexOf(28) == -1"
  10590. />
  10591. <div class="checkDiv" v-else>
  10592. <img src="../../assets/icon/checkedIs.png" alt /><span
  10593. >已选择</span
  10594. >
  10595. </div>
  10596. </div>
  10597. </div>
  10598. <div class="tool">
  10599. <div class="whiteBIcon" @click="addTools2(31)">
  10600. <img
  10601. src="../../assets/icon/secondToolList/networkPanel.png"
  10602. alt
  10603. />
  10604. <div style="margin: 5px 0">数字画板</div>
  10605. </div>
  10606. <div class="check" @click="addTools2(31)">
  10607. <img
  10608. src="../../assets/icon/checkNo.png"
  10609. alt
  10610. v-if="checktoolArray.indexOf(31) == -1"
  10611. />
  10612. <div class="checkDiv" v-else>
  10613. <img src="../../assets/icon/checkedIs.png" alt /><span
  10614. >已选择</span
  10615. >
  10616. </div>
  10617. </div>
  10618. </div>
  10619. <div class="tool">
  10620. <div class="whiteBIcon" @click="addTools2(39)">
  10621. <img
  10622. src="../../assets/icon/secondToolList/GeoGebra.png"
  10623. alt
  10624. />
  10625. <div style="margin: 5px 0">GeoGebra</div>
  10626. </div>
  10627. <div class="check" @click="addTools2(39)">
  10628. <img
  10629. src="../../assets/icon/checkNo.png"
  10630. alt
  10631. v-if="checktoolArray.indexOf(39) == -1"
  10632. />
  10633. <div class="checkDiv" v-else>
  10634. <img src="../../assets/icon/checkedIs.png" alt /><span
  10635. >已选择</span
  10636. >
  10637. </div>
  10638. </div>
  10639. </div>
  10640. <div class="tool">
  10641. <div class="whiteBIcon" @click="addTools2(66)">
  10642. <img
  10643. src="../../assets/icon/secondToolList/formulaEdi.png"
  10644. alt
  10645. />
  10646. <div style="margin: 5px 0">公式编辑</div>
  10647. </div>
  10648. <div class="check" @click="addTools2(66)">
  10649. <img
  10650. src="../../assets/icon/checkNo.png"
  10651. alt
  10652. v-if="checktoolArray.indexOf(66) == -1"
  10653. />
  10654. <div class="checkDiv" v-else>
  10655. <img src="../../assets/icon/checkedIs.png" alt /><span
  10656. >已选择</span
  10657. >
  10658. </div>
  10659. </div>
  10660. </div>
  10661. <div class="tool">
  10662. <div class="whiteBIcon" @click="addTools2(67)">
  10663. <img
  10664. src="../../assets/icon/secondToolList/molStr.png"
  10665. alt
  10666. />
  10667. <div style="margin: 5px 0">分子结构</div>
  10668. </div>
  10669. <div class="check" @click="addTools2(67)">
  10670. <img
  10671. src="../../assets/icon/checkNo.png"
  10672. alt
  10673. v-if="checktoolArray.indexOf(67) == -1"
  10674. />
  10675. <div class="checkDiv" v-else>
  10676. <img src="../../assets/icon/checkedIs.png" alt /><span
  10677. >已选择</span
  10678. >
  10679. </div>
  10680. </div>
  10681. </div>
  10682. <div class="tool">
  10683. <div class="whiteBIcon" @click="addTools2(68)">
  10684. <img
  10685. src="../../assets/icon/secondToolList/timeAxis.png"
  10686. alt
  10687. />
  10688. <div style="margin: 5px 0">时间轴</div>
  10689. </div>
  10690. <div class="check" @click="addTools2(68)">
  10691. <img
  10692. src="../../assets/icon/checkNo.png"
  10693. alt
  10694. v-if="checktoolArray.indexOf(68) == -1"
  10695. />
  10696. <div class="checkDiv" v-else>
  10697. <img src="../../assets/icon/checkedIs.png" alt /><span
  10698. >已选择</span
  10699. >
  10700. </div>
  10701. </div>
  10702. </div>
  10703. </div>
  10704. <div class="toolSort" v-if="toolType == 7">
  10705. <div class="tool">
  10706. <div class="whiteBIcon" @click="addTools2(40)">
  10707. <img
  10708. src="../../assets/icon/secondToolList/eval.png"
  10709. alt
  10710. />
  10711. <div style="margin: 5px 0">个人评价</div>
  10712. </div>
  10713. <div class="check" @click="addTools2(40)">
  10714. <img
  10715. src="../../assets/icon/checkNo.png"
  10716. alt
  10717. v-if="checktoolArray.indexOf(40) == -1"
  10718. />
  10719. <div class="checkDiv" v-else>
  10720. <img src="../../assets/icon/checkedIs.png" alt /><span
  10721. >已选择</span
  10722. >
  10723. </div>
  10724. </div>
  10725. </div>
  10726. </div>
  10727. <div class="toolSort" v-if="toolType == 4">
  10728. <div class="tool">
  10729. <div class="whiteBIcon" @click="addTools2(26)">
  10730. <img
  10731. src="../../assets/icon/thirdToolList/courseDesign.png"
  10732. alt
  10733. />
  10734. <div style="margin: 5px 0">课程设计</div>
  10735. </div>
  10736. <div class="check" @click="addTools2(26)">
  10737. <img
  10738. src="../../assets/icon/checkNo.png"
  10739. alt
  10740. v-if="checktoolArray.indexOf(26) == -1"
  10741. />
  10742. <div class="checkDiv" v-else>
  10743. <img src="../../assets/icon/checkedIs.png" alt /><span
  10744. >已选择</span
  10745. >
  10746. </div>
  10747. </div>
  10748. </div>
  10749. <div class="tool">
  10750. <div class="whiteBIcon" @click="addTools2(25)">
  10751. <img
  10752. src="../../assets/icon/thirdToolList/evalua.png"
  10753. alt
  10754. />
  10755. <div style="margin: 5px 0">目标管理</div>
  10756. </div>
  10757. <div class="check" @click="addTools2(25)">
  10758. <img
  10759. src="../../assets/icon/checkNo.png"
  10760. alt
  10761. v-if="checktoolArray.indexOf(25) == -1"
  10762. />
  10763. <div class="checkDiv" v-else>
  10764. <img src="../../assets/icon/checkedIs.png" alt /><span
  10765. >已选择</span
  10766. >
  10767. </div>
  10768. </div>
  10769. </div>
  10770. </div>
  10771. </div>
  10772. </div>
  10773. </div>
  10774. </div> -->
  10775. <div
  10776. class="vedioBox"
  10777. style="margin-top: 10px; border-radius: 20px"
  10778. v-if="
  10779. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10780. .eList &&
  10781. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10782. .eList.length &&
  10783. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10784. .eList.length > 0 &&
  10785. tType != 2
  10786. "
  10787. >
  10788. <div
  10789. class="queTop"
  10790. style="
  10791. font-size: 20px;
  10792. padding: 15px 0 15px 37px;
  10793. font-weight: bold;
  10794. "
  10795. >
  10796. <!-- <div class="question" style="width: 30px">
  10797. <img src="../assets/icon/toolIcon.png" alt />
  10798. </div>
  10799. <div class="queTitle">
  10800. <div>工具</div>
  10801. </div>-->
  10802. 评一评
  10803. </div>
  10804. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  10805. <div
  10806. class="elist_input"
  10807. :style="{
  10808. marginLeft: '20px',
  10809. width: evalua
  10810. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  10811. taskCount
  10812. ].isEvaFold2
  10813. ? '45%'
  10814. : 'calc(100% - 180px)'
  10815. : 'calc(100% - 20px)'
  10816. }"
  10817. >
  10818. <el-table
  10819. :data="
  10820. chapInfoList[courseType].chapterInfo[0].taskJson[
  10821. taskCount
  10822. ].eList
  10823. "
  10824. :header-cell-style="{ background: '#F0F4FA' }"
  10825. :row-class-name="tableRowClassName"
  10826. border
  10827. stripe
  10828. style="width: 100%"
  10829. >
  10830. <el-table-column
  10831. :width="courseDetail.state == 5 ? '230' : '150'"
  10832. label="目标"
  10833. align="center"
  10834. >
  10835. <template slot-scope="scope">
  10836. <div
  10837. style="display:flex;justify-content: center;align-items: center;"
  10838. >
  10839. <img
  10840. class="blueRootCss"
  10841. v-if="
  10842. scope.row.isai == 1 ||
  10843. (!scope.row.isai && courseDetail.state == 5)
  10844. "
  10845. src="../../assets/icon/newIcons/blueRoot.png"
  10846. alt=""
  10847. />
  10848. <div v-if="courseDetail.state == 5">
  10849. {{ scope.row.target ? scope.row.target : "-" }}
  10850. </div>
  10851. <div v-else>
  10852. {{
  10853. scope.row.target
  10854. ? scope.row.target[scope.row.target.length - 1]
  10855. : "-"
  10856. }}
  10857. </div>
  10858. </div>
  10859. </template></el-table-column
  10860. >
  10861. <el-table-column
  10862. label="评价维度"
  10863. align="center"
  10864. v-if="courseDetail.state != 5"
  10865. >
  10866. <template slot-scope="scope"
  10867. ><div>{{ scope.row.value }}</div></template
  10868. >
  10869. </el-table-column>
  10870. <el-table-column
  10871. :label="courseDetail.state == 5 ? '评价标准' : '维度描述'"
  10872. align="center"
  10873. >
  10874. <template slot-scope="scope"
  10875. ><div>
  10876. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  10877. </div></template
  10878. >
  10879. </el-table-column>
  10880. <el-table-column
  10881. label="细则"
  10882. align="center"
  10883. v-if="courseDetail.state == 5"
  10884. >
  10885. <template slot-scope="scope"
  10886. ><div
  10887. style="display:flex;justify-content: space-around;margin:auto"
  10888. v-if="scope.row.rule"
  10889. >
  10890. <el-popover
  10891. placement="top"
  10892. width="350"
  10893. trigger="hover"
  10894. >
  10895. <div
  10896. v-html="scope.row.rule"
  10897. style="white-space:pre-wrap"
  10898. ></div>
  10899. <div
  10900. slot="reference"
  10901. style="color:#4383FF;cursor: pointer;"
  10902. >
  10903. 查看
  10904. </div>
  10905. </el-popover>
  10906. </div>
  10907. <div v-else>-</div>
  10908. </template>
  10909. </el-table-column>
  10910. </el-table>
  10911. <!-- <div
  10912. v-for="(eItem, eIndex) in chapInfoList[courseType]
  10913. .chapterInfo[0].taskJson[taskCount].eList"
  10914. :key="eIndex"
  10915. class="elist_input_box"
  10916. >
  10917. <div style="width: 95%">
  10918. <div
  10919. style="
  10920. display: flex;
  10921. flex-direction: row;
  10922. flex-wrap: nowrap;
  10923. align-items: center;
  10924. "
  10925. >
  10926. <div style="max-width: calc(100% - 285px)">
  10927. <span>{{ eItem.value }}</span>
  10928. </div>
  10929. <div
  10930. style="
  10931. padding-left: 25px;
  10932. display: flex;
  10933. flex-direction: row;
  10934. align-items: center;
  10935. "
  10936. >
  10937. <el-rate
  10938. v-model="eItem.score"
  10939. :colors="colors"
  10940. disabled
  10941. ></el-rate>
  10942. </div>
  10943. </div>
  10944. <div class="elist_inptu_text" style="padding-left: 10px">
  10945. <span v-if="eItem.detail != ''">{{
  10946. eItem.detail
  10947. }}</span>
  10948. <span v-else style="color: #b2b1b3; font-size: 14px"
  10949. >暂无描述...</span
  10950. >
  10951. </div>
  10952. </div>
  10953. </div> -->
  10954. </div>
  10955. <div
  10956. v-if="evalua"
  10957. style="
  10958. border: 1px solid #e5e5e5;
  10959. max-width: 650px;
  10960. width: 100%;
  10961. margin-top: 20px;
  10962. box-shadow: 3px 1px 15px 3px #e0e0e0;
  10963. "
  10964. :style="{
  10965. width: chapInfoList[courseType].chapterInfo[0].taskJson[
  10966. taskCount
  10967. ].isEvaFold2
  10968. ? '100%'
  10969. : '116px'
  10970. }"
  10971. >
  10972. <div class="e_add_top">
  10973. <div class="e_add_title" style="width: 100%">
  10974. <!-- <span>目标管理名称</span> -->
  10975. <span
  10976. v-if="
  10977. chapInfoList[courseType].chapterInfo[0].taskJson[
  10978. taskCount
  10979. ].isEvaFold2
  10980. "
  10981. >{{ eTitle }}</span
  10982. >
  10983. <img
  10984. v-if="
  10985. chapInfoList[courseType].chapterInfo[0].taskJson[
  10986. taskCount
  10987. ].isEvaFold2
  10988. "
  10989. src="../../assets/line.png"
  10990. class="cru_line"
  10991. style="
  10992. width: 125px;
  10993. height: 20px;
  10994. bottom: -10px;
  10995. left: 5px;
  10996. "
  10997. />
  10998. <!-- <el-input
  10999. v-model="eTitle"
  11000. placeholder="请输入名称"
  11001. @change="setMindData"
  11002. ></el-input>-->
  11003. <div
  11004. v-show="
  11005. chapInfoList[courseType].chapterInfo[0].taskJson[
  11006. taskCount
  11007. ].isEvaFold2
  11008. "
  11009. class="show_taskD show"
  11010. style="margin:0 0 0 auto"
  11011. @click="foldEva()"
  11012. >
  11013. <img
  11014. src="../../assets/icon/newIcon/icon-slide.png"
  11015. />收起目标
  11016. </div>
  11017. <div
  11018. v-show="
  11019. !chapInfoList[courseType].chapterInfo[0].taskJson[
  11020. taskCount
  11021. ].isEvaFold2
  11022. "
  11023. style="margin:0 0 0 auto"
  11024. class="show_taskD"
  11025. @click="foldEva()"
  11026. >
  11027. <img
  11028. src="../../assets/icon/newIcon/icon-slide.png"
  11029. />展开目标
  11030. </div>
  11031. </div>
  11032. </div>
  11033. <div
  11034. class="e_add_content"
  11035. v-if="
  11036. chapInfoList[courseType].chapterInfo[0].taskJson[
  11037. taskCount
  11038. ].isEvaFold2
  11039. "
  11040. >
  11041. <div class="e_add_list_pbox">
  11042. <div class="e_add_list_pbox_title">
  11043. <!-- <span class="type_title">切换模式</span> -->
  11044. <div class="type_content">
  11045. <span
  11046. :class="{ active: typeMode == 1 }"
  11047. @click="typeMode = 1"
  11048. >目标树</span
  11049. >
  11050. <span
  11051. :class="{ active: typeMode == 2 }"
  11052. @click="typeMode = 2"
  11053. >目标罗盘</span
  11054. >
  11055. <!-- <span
  11056. :class="{ active: typeMode == 3 }"
  11057. @click="typeMode = 3"
  11058. >目标看板</span
  11059. > -->
  11060. </div>
  11061. </div>
  11062. <div
  11063. class="e_add_list_pbox_content"
  11064. style="min-height: 200px;"
  11065. >
  11066. <Mind
  11067. :showBar="false"
  11068. :mindData="data"
  11069. style="width: 100%"
  11070. v-show="typeMode == 1"
  11071. ></Mind>
  11072. <Sunburst
  11073. :Josn="eJson"
  11074. :num="eJSONNum"
  11075. style="width: 100%"
  11076. v-if="typeMode == 2"
  11077. ></Sunburst>
  11078. <SeeBoard
  11079. :Josn="eJson"
  11080. :num="eJSONNum"
  11081. :ename="eTitle"
  11082. style="width: 100%"
  11083. v-if="typeMode == 3"
  11084. >
  11085. </SeeBoard>
  11086. </div>
  11087. </div>
  11088. </div>
  11089. </div>
  11090. </div>
  11091. </div>
  11092. <!-- <div
  11093. class="project_box"
  11094. style="margin-top: 15px; padding-bottom: 30px"
  11095. >
  11096. <div
  11097. style="
  11098. display: flex;
  11099. flex-wrap: nowrap;
  11100. flex-direction: column;
  11101. position: relative;
  11102. "
  11103. >
  11104. <div class="queTop">
  11105. <div class="question">
  11106. <img src="../../assets/icon/homeWork.png" alt="" />
  11107. </div>
  11108. <div class="queTitle">
  11109. <div>作业提交<span>(提交图文视频等)</span></div>
  11110. <div>:任务:{{ task.task }}</div>
  11111. </div>
  11112. </div>
  11113. <div class="ediBottom">
  11114. <div
  11115. class="addEditor"
  11116. style="margin-top: 23px"
  11117. @click="openAddWork"
  11118. v-if="!isNoHomeWork"
  11119. >
  11120. 选择文件
  11121. </div>
  11122. <div
  11123. class="addEditor"
  11124. style="margin-top: 23px"
  11125. @click="openAddWork"
  11126. v-else
  11127. >
  11128. 已提交
  11129. </div>
  11130. </div>
  11131. </div>
  11132. </div>-->
  11133. </div>
  11134. </div>
  11135. <el-dialog
  11136. title="作业提交"
  11137. :visible.sync="dialogVisible"
  11138. :append-to-body="true"
  11139. width="500px"
  11140. :before-close="handleClose"
  11141. class="dialog_change"
  11142. >
  11143. <div class="marginT">
  11144. <div>上传文件</div>
  11145. <div
  11146. class="chapter_add"
  11147. @click="addImg($event)"
  11148. v-if="studyJuri[0].cover.length == 0"
  11149. >
  11150. <div class="up_photo">
  11151. <img src="../../assets/icon/uploadImg.png" alt />
  11152. </div>
  11153. <!-- <input
  11154. type="file"
  11155. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11156. style="display: none"
  11157. @change="beforeUpload1($event, 1)"
  11158. /> -->
  11159. <input
  11160. type="file"
  11161. accept="*"
  11162. style="display: none"
  11163. @change="beforeUpload1($event, 1)"
  11164. />
  11165. <!-- <input
  11166. type="file"
  11167. accept="image/*"
  11168. capture="camera"
  11169. style="display: none"
  11170. @change="beforeUpload1($event, 1)"
  11171. /> -->
  11172. </div>
  11173. <div
  11174. class="chapter_add"
  11175. style="
  11176. display: flex;
  11177. width: 100%;
  11178. flex-direction: row;
  11179. flex-wrap: wrap;
  11180. justify-content: flex-start;
  11181. padding: 15px 0;
  11182. "
  11183. v-if="studyJuri[0].cover.length > 0"
  11184. >
  11185. <div class="upCover">
  11186. <img
  11187. :src="studyJuri[0].cover[0].url"
  11188. alt
  11189. v-if="fileType == 0"
  11190. />
  11191. <img :src="word" alt v-else-if="fileType == 1" />
  11192. <img :src="video" alt v-else-if="fileType == 2" />
  11193. <img :src="word2" alt v-else-if="fileType == 3" />
  11194. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11195. <div class="deleteWord" @click="clean(1)">
  11196. <img src="../../assets/icon/deleteWorks.png" alt />
  11197. </div>
  11198. </div>
  11199. </div>
  11200. </div>
  11201. <div
  11202. class="upload_send"
  11203. @click="addCourseWorksCopy(taskCount)"
  11204. v-if="!proVisible"
  11205. >
  11206. 提交
  11207. </div>
  11208. </el-dialog>
  11209. </div>
  11210. </div>
  11211. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11212. <classRoomHelper
  11213. v-if="!['2'].includes(tType)"
  11214. @studentFreePreview="studentFreePreview"
  11215. @OpenJobPreview="OpenJobPreview"
  11216. :videoStart="videoStart"
  11217. :IsFollow="IsFollow"
  11218. :sIsOpen="sIsOpen"
  11219. :IsLookOpen="IsLookOpen"
  11220. :splitScreenData="splitScreenData"
  11221. @splitScreenBehavior="splitScreenBehavior"
  11222. @startRecording="startRecording"
  11223. @stopRecording="stopRecording"
  11224. :fileList="vChapterData[taskCount]"
  11225. :worksStudent="worksStudent"
  11226. :courseType="parseInt(courseType)"
  11227. :taskCount="taskCount"
  11228. :tcid="tcid"
  11229. :navList="navList"
  11230. v-show="orgArray.includes(org) || oidArray.includes(oid)"
  11231. ref="classRoomHelperRef"
  11232. :courseDetail="courseDetail"
  11233. :tType="tType"
  11234. @setWidth="setClassRoomHelperWidth"
  11235. @refresh="refreshCourse"
  11236. @goStep="nextOrpreSteps"
  11237. @authority="juriVisible = true"
  11238. @review="setPz"
  11239. @backPage="
  11240. goTo(
  11241. '/courseDetail?userid=' +
  11242. userid +
  11243. '&oid=' +
  11244. oid +
  11245. '&org=' +
  11246. org +
  11247. '&cid=' +
  11248. classId +
  11249. '&courseId=' +
  11250. id +
  11251. '&tType=' +
  11252. tType +
  11253. '&screenType=' +
  11254. screenType
  11255. )
  11256. "
  11257. ></classRoomHelper>
  11258. <div
  11259. class="pButton"
  11260. @click="(pzDialog = true), selectPz()"
  11261. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11262. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11263. >
  11264. <!-- 批 -->
  11265. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11266. </div>
  11267. <div
  11268. v-if="pzDialog == true"
  11269. class="newDialogCss"
  11270. :style="`right:${commentRight}`"
  11271. >
  11272. <div class="pzTop2">
  11273. <!-- <div>评论</div>
  11274. <div @click="pzDialog = false">
  11275. <img src="../../assets/close1.png" alt="" />
  11276. </div> -->
  11277. <div class="checkbox">
  11278. <!-- <div class="check" style="font-size: 25px; position: unset">
  11279. 评论
  11280. </div> -->
  11281. <div class="cb-tabList">
  11282. <div
  11283. :class="[commentTagShow == 0 ? 'cb-tabItem' : '']"
  11284. @click="commentTagShow = 0"
  11285. >
  11286. 评论
  11287. </div>
  11288. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11289. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11290. <div
  11291. :class="[commentTagShow == 2 ? 'cb-tabItem' : '']"
  11292. @click="commentTagShow = 2"
  11293. >
  11294. 总评
  11295. </div>
  11296. </div>
  11297. <el-select
  11298. v-model="pzStype"
  11299. @change="selectPz"
  11300. class="selectBox"
  11301. v-show="commentTagShow == 0"
  11302. >
  11303. <el-option label="时间降序" :value="1"></el-option>
  11304. <el-option label="时间升序" :value="2"></el-option>
  11305. <el-option label="我的评课" :value="3"></el-option>
  11306. </el-select>
  11307. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11308. </div>
  11309. </div>
  11310. <div
  11311. :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'"
  11312. v-if="commentTagShow == 0"
  11313. >
  11314. <div class="pzListBox" v-if="pzList && pzList.length">
  11315. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11316. <div class="pzNavTop">
  11317. <div>评</div>
  11318. <div>
  11319. {{
  11320. pz.username && pz.username.length > 5
  11321. ? pz.username.substring(0, 5) + "..."
  11322. : pz.username
  11323. }}的评论
  11324. </div>
  11325. <div
  11326. class="pzDelete"
  11327. v-if="pz.userid == userid"
  11328. @click="deletePz(pz.id)"
  11329. >
  11330. 删除
  11331. </div>
  11332. </div>
  11333. <div
  11334. @click="checkImg(getImgList(pz.content))"
  11335. class="pzContent cont"
  11336. v-html="pz.content"
  11337. v-if="pz.type == '1'"
  11338. ></div>
  11339. <div class="pzContent" v-if="pz.type == '2'">
  11340. <audio :src="pz.content" controls="controls" ref="audio">
  11341. Your browser does not support the audio element.
  11342. </audio>
  11343. </div>
  11344. <div class="pzContent" v-if="pz.type == '3'">
  11345. <img
  11346. :src="pz.content"
  11347. style="width: 90%; margin: 0 auto; display: block"
  11348. @click="previewImg(pz.content)"
  11349. />
  11350. </div>
  11351. <div class="timeAndReply">
  11352. <div class="time">
  11353. {{ pz.time }}
  11354. </div>
  11355. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11356. </div>
  11357. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11358. <div
  11359. v-for="(h, hIndex) in pz.hfList"
  11360. :key="hIndex"
  11361. class="hfItem"
  11362. >
  11363. <div class="whoReplyWho">
  11364. <div class="hfName">{{ h.username }}</div>
  11365. <div class="hfImg">
  11366. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11367. </div>
  11368. <div class="hfName">{{ pz.username }}</div>
  11369. </div>
  11370. <div class="hfContent" v-html="h.content"></div>
  11371. <div class="hfBottom">
  11372. <div class="hfTime">{{ h.time }}</div>
  11373. <div
  11374. class="deleteHfItem"
  11375. @click="deleteReply(h.id)"
  11376. v-if="userid == h.userid"
  11377. >
  11378. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11379. </div>
  11380. </div>
  11381. </div>
  11382. </div>
  11383. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11384. <div class="replyInput">
  11385. <el-input v-model="reply[pzIndex]"></el-input>
  11386. </div>
  11387. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11388. </div> -->
  11389. </div>
  11390. </div>
  11391. <div class="noPz" v-else>
  11392. <img src="../../assets/icon/noPz.png" alt="" />
  11393. </div>
  11394. <div class="addPzButton">
  11395. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11396. 添加评论
  11397. </div>
  11398. <!-- <div class="img1">
  11399. <div @click="(addPzDialog = true), (pzType = 2)">
  11400. <img src="../../assets/audio.png" /><span>音频</span>
  11401. </div>
  11402. </div> -->
  11403. </div>
  11404. </div>
  11405. <div class="scoreList" v-if="commentTagShow == 1">
  11406. <scoreItem
  11407. v-for="item in scoreList.datalist"
  11408. @refresh="getScoreList"
  11409. :data="item"
  11410. :isScore="
  11411. scoreList.isScoreList.filter(
  11412. i => i.userid == item.userid && i.courseid == item.courseId
  11413. )
  11414. "
  11415. :key="item.courseId"
  11416. />
  11417. </div>
  11418. <div
  11419. class="scoreList"
  11420. v-if="commentTagShow == 2"
  11421. style="position: relative"
  11422. >
  11423. <scoreZong
  11424. :courseid="id"
  11425. :userid="userid"
  11426. @insertMemorandum="insertMemorandum"
  11427. ></scoreZong>
  11428. </div>
  11429. </div>
  11430. <div
  11431. v-if="toolDialogVisible == true"
  11432. class="toolMask"
  11433. @click="toolDialogVisible = false"
  11434. ></div>
  11435. <div v-if="toolDialogVisible == true" class="addToolCss">
  11436. <div class="toolTop">
  11437. <div style="font-weight: bold">新增工具</div>
  11438. <div @click="toolDialogVisible = false">
  11439. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11440. </div>
  11441. </div>
  11442. <div class="tool_box">
  11443. <div class="tool_type_box">
  11444. <div class="chooseWho">
  11445. <div
  11446. :class="toolType == 0 ? 'isChooseActive' : ''"
  11447. @click="(toolType = 0), $forceUpdate()"
  11448. >
  11449. 互动类
  11450. </div>
  11451. <div
  11452. :class="toolType == 1 ? 'isChooseActive' : ''"
  11453. @click="(toolType = 1), $forceUpdate()"
  11454. >
  11455. 思维类
  11456. </div>
  11457. <div
  11458. :class="toolType == 2 ? 'isChooseActive' : ''"
  11459. @click="(toolType = 2), $forceUpdate()"
  11460. >
  11461. 测评类
  11462. </div>
  11463. <div
  11464. :class="toolType == 3 ? 'isChooseActive' : ''"
  11465. @click="(toolType = 3), $forceUpdate()"
  11466. >
  11467. 编程类
  11468. </div>
  11469. <div
  11470. :class="toolType == 5 ? 'isChooseActive' : ''"
  11471. @click="(toolType = 5), $forceUpdate()"
  11472. >
  11473. 学科类
  11474. </div>
  11475. </div>
  11476. </div>
  11477. <div>
  11478. <div class="toolSort" v-if="toolType == 0">
  11479. <div
  11480. class="tool"
  11481. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11482. @click="addTools2(10)"
  11483. >
  11484. <div class="whiteBIcon">
  11485. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11486. <div style="margin: 5px 0">倒计时</div>
  11487. </div>
  11488. <div class="check">
  11489. <div
  11490. v-if="checktoolArray.indexOf(10) == -1"
  11491. class="noChoose"
  11492. ></div>
  11493. <div v-else class="isChoose"></div>
  11494. </div>
  11495. </div>
  11496. <div
  11497. class="tool"
  11498. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11499. @click="addTools2(65)"
  11500. >
  11501. <div class="whiteBIcon">
  11502. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11503. <div style="margin: 5px 0">挑人</div>
  11504. </div>
  11505. <div class="check">
  11506. <div
  11507. v-if="checktoolArray.indexOf(65) == -1"
  11508. class="noChoose"
  11509. ></div>
  11510. <div v-else class="isChoose"></div>
  11511. </div>
  11512. </div>
  11513. </div>
  11514. <div class="toolSort" v-if="toolType == 1">
  11515. <div
  11516. class="tool"
  11517. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11518. @click="addTools2(7)"
  11519. >
  11520. <div class="whiteBIcon">
  11521. <img
  11522. src="../../assets/icon/secondToolList/mindNetwork.png"
  11523. alt
  11524. />
  11525. <div style="margin: 5px 0">思维网格</div>
  11526. </div>
  11527. <div class="check">
  11528. <div
  11529. v-if="checktoolArray.indexOf(7) == -1"
  11530. class="noChoose"
  11531. ></div>
  11532. <div v-else class="isChoose"></div>
  11533. </div>
  11534. </div>
  11535. <div
  11536. class="tool"
  11537. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11538. @click="addTools2(1)"
  11539. >
  11540. <div class="whiteBIcon">
  11541. <img
  11542. src="../../assets/icon/secondToolList/whiteBoard.png"
  11543. alt
  11544. />
  11545. <div style="margin: 5px 0">电子白板</div>
  11546. </div>
  11547. <div class="check">
  11548. <div
  11549. v-if="checktoolArray.indexOf(1) == -1"
  11550. class="noChoose"
  11551. ></div>
  11552. <div v-else class="isChoose"></div>
  11553. </div>
  11554. </div>
  11555. <div
  11556. class="tool"
  11557. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11558. @click="addTools2(52)"
  11559. >
  11560. <div class="whiteBIcon">
  11561. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11562. <div style="margin: 5px 0">文档</div>
  11563. </div>
  11564. <div class="check">
  11565. <div
  11566. v-if="checktoolArray.indexOf(52) == -1"
  11567. class="noChoose"
  11568. ></div>
  11569. <div v-else class="isChoose"></div>
  11570. </div>
  11571. </div>
  11572. <div
  11573. class="tool"
  11574. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  11575. @click="addTools2(3)"
  11576. >
  11577. <div class="whiteBIcon">
  11578. <img
  11579. src="../../assets/icon/secondToolList/mindMapping.png"
  11580. alt
  11581. />
  11582. <div style="margin: 5px 0">思维导图</div>
  11583. </div>
  11584. <div class="check">
  11585. <div
  11586. v-if="checktoolArray.indexOf(3) == -1"
  11587. class="noChoose"
  11588. ></div>
  11589. <div v-else class="isChoose"></div>
  11590. </div>
  11591. </div>
  11592. <div
  11593. class="tool"
  11594. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  11595. @click="addTools2(48)"
  11596. >
  11597. <div class="whiteBIcon">
  11598. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11599. <div style="margin: 5px 0">表格</div>
  11600. </div>
  11601. <div class="check">
  11602. <div
  11603. v-if="checktoolArray.indexOf(48) == -1"
  11604. class="noChoose"
  11605. ></div>
  11606. <div v-else class="isChoose"></div>
  11607. </div>
  11608. </div>
  11609. </div>
  11610. <div class="toolSort" v-if="toolType == 6">
  11611. <div v-show="tooC == 49">
  11612. <img
  11613. @click="addTools(tooC, toolIndex, taskCount)"
  11614. src="../../assets/icon/fourthToolList/group.png"
  11615. alt
  11616. />
  11617. <div style="margin: 5px 0">学生分组</div>
  11618. </div>
  11619. </div>
  11620. <div class="toolSort" v-if="toolType == 2">
  11621. <div
  11622. class="tool"
  11623. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11624. @click="addTools2(16)"
  11625. >
  11626. <div class="whiteBIcon">
  11627. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11628. <div style="margin: 5px 0">作业提交</div>
  11629. </div>
  11630. <div class="check">
  11631. <div
  11632. v-if="checktoolArray.indexOf(16) == -1"
  11633. class="noChoose"
  11634. ></div>
  11635. <div v-else class="isChoose"></div>
  11636. </div>
  11637. </div>
  11638. <div
  11639. class="tool"
  11640. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11641. @click="addTools2(50)"
  11642. >
  11643. <div class="whiteBIcon">
  11644. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11645. <div style="margin: 5px 0">批量上传</div>
  11646. </div>
  11647. <div class="check">
  11648. <div
  11649. v-if="checktoolArray.indexOf(50) == -1"
  11650. class="noChoose"
  11651. ></div>
  11652. <div v-else class="isChoose"></div>
  11653. </div>
  11654. </div>
  11655. </div>
  11656. <div class="toolSort" v-if="toolType == 3">
  11657. <div
  11658. class="tool"
  11659. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11660. @click="addTools2(18)"
  11661. >
  11662. <div class="whiteBIcon">
  11663. <img
  11664. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11665. alt
  11666. />
  11667. <div style="margin: 5px 0">训练平台</div>
  11668. </div>
  11669. <div class="check">
  11670. <div
  11671. v-if="checktoolArray.indexOf(18) == -1"
  11672. class="noChoose"
  11673. ></div>
  11674. <div v-else class="isChoose"></div>
  11675. </div>
  11676. </div>
  11677. <div
  11678. class="tool"
  11679. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11680. @click="addTools2(21)"
  11681. >
  11682. <div class="whiteBIcon">
  11683. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11684. <div style="margin: 5px 0">AIoT Blockly</div>
  11685. </div>
  11686. <div class="check">
  11687. <div
  11688. v-if="checktoolArray.indexOf(21) == -1"
  11689. class="noChoose"
  11690. ></div>
  11691. <div v-else class="isChoose"></div>
  11692. </div>
  11693. </div>
  11694. <div
  11695. class="tool"
  11696. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11697. @click="addTools2(23)"
  11698. >
  11699. <div class="whiteBIcon">
  11700. <img
  11701. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11702. alt
  11703. />
  11704. <div style="margin: 5px 0">AI Python</div>
  11705. </div>
  11706. <div class="check">
  11707. <div
  11708. v-if="checktoolArray.indexOf(23) == -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(24) != -1 }"
  11717. @click="addTools2(24)"
  11718. >
  11719. <div class="whiteBIcon">
  11720. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11721. <div style="margin: 5px 0">AI Blockly</div>
  11722. </div>
  11723. <div class="check">
  11724. <div
  11725. v-if="checktoolArray.indexOf(24) == -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(32) != -1 }"
  11734. @click="addTools2(32)"
  11735. >
  11736. <div class="whiteBIcon">
  11737. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11738. <div style="margin: 5px 0">源码编辑</div>
  11739. </div>
  11740. <div class="check">
  11741. <div
  11742. v-if="checktoolArray.indexOf(32) == -1"
  11743. class="noChoose"
  11744. ></div>
  11745. <div v-else class="isChoose"></div>
  11746. </div>
  11747. </div>
  11748. <div
  11749. class="tool"
  11750. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11751. @click="addTools2(57)"
  11752. >
  11753. <div class="whiteBIcon">
  11754. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11755. <div style="margin: 5px 0">CocoPi</div>
  11756. </div>
  11757. <div class="check">
  11758. <div
  11759. v-if="checktoolArray.indexOf(57) == -1"
  11760. class="noChoose"
  11761. ></div>
  11762. <div v-else class="isChoose"></div>
  11763. </div>
  11764. </div>
  11765. <div
  11766. class="tool"
  11767. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11768. @click="addTools2(63)"
  11769. >
  11770. <div class="whiteBIcon">
  11771. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11772. <div style="margin: 5px 0">海龟编程</div>
  11773. </div>
  11774. <div class="check">
  11775. <div
  11776. v-if="checktoolArray.indexOf(63) == -1"
  11777. class="noChoose"
  11778. ></div>
  11779. <div v-else class="isChoose"></div>
  11780. </div>
  11781. </div>
  11782. <div
  11783. class="tool"
  11784. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11785. @click="addTools2(71)"
  11786. >
  11787. <div class="whiteBIcon">
  11788. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11789. <div style="margin: 5px 0">AI智能体</div>
  11790. </div>
  11791. <div class="check">
  11792. <div
  11793. v-if="checktoolArray.indexOf(71) == -1"
  11794. class="noChoose"
  11795. ></div>
  11796. <div v-else class="isChoose"></div>
  11797. </div>
  11798. </div>
  11799. </div>
  11800. <div class="toolSort" v-if="toolType == 7">
  11801. <div
  11802. class="tool"
  11803. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11804. @click="addTools2(40)"
  11805. >
  11806. <div class="whiteBIcon">
  11807. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11808. <div style="margin: 5px 0">个人评价</div>
  11809. </div>
  11810. <div class="check">
  11811. <div
  11812. v-if="checktoolArray.indexOf(40) == -1"
  11813. class="noChoose"
  11814. ></div>
  11815. <div v-else class="isChoose"></div>
  11816. </div>
  11817. </div>
  11818. </div>
  11819. <div class="toolSort" v-if="toolType == 5">
  11820. <div
  11821. class="tool"
  11822. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11823. @click="addTools2(28)"
  11824. >
  11825. <div class="whiteBIcon">
  11826. <img
  11827. src="../../assets/icon/secondToolList/translation.png"
  11828. alt
  11829. />
  11830. <div style="margin: 5px 0">翻译</div>
  11831. </div>
  11832. <div class="check">
  11833. <div
  11834. v-if="checktoolArray.indexOf(28) == -1"
  11835. class="noChoose"
  11836. ></div>
  11837. <div v-else class="isChoose"></div>
  11838. </div>
  11839. </div>
  11840. <div
  11841. class="tool"
  11842. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11843. @click="addTools2(31)"
  11844. >
  11845. <div class="whiteBIcon">
  11846. <img
  11847. src="../../assets/icon/secondToolList/networkPanel.png"
  11848. alt
  11849. />
  11850. <div style="margin: 5px 0">数字画板</div>
  11851. </div>
  11852. <div class="check">
  11853. <div
  11854. v-if="checktoolArray.indexOf(31) == -1"
  11855. class="noChoose"
  11856. ></div>
  11857. <div v-else class="isChoose"></div>
  11858. </div>
  11859. </div>
  11860. <div
  11861. class="tool"
  11862. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11863. @click="addTools2(39)"
  11864. >
  11865. <div class="whiteBIcon">
  11866. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11867. <div style="margin: 5px 0">GeoGebra</div>
  11868. </div>
  11869. <div class="check">
  11870. <div
  11871. v-if="checktoolArray.indexOf(39) == -1"
  11872. class="noChoose"
  11873. ></div>
  11874. <div v-else class="isChoose"></div>
  11875. </div>
  11876. </div>
  11877. <div
  11878. class="tool"
  11879. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  11880. @click="addTools2(66)"
  11881. >
  11882. <div class="whiteBIcon">
  11883. <img
  11884. src="../../assets/icon/secondToolList/formulaEdi.png"
  11885. alt
  11886. />
  11887. <div style="margin: 5px 0">公式编辑</div>
  11888. </div>
  11889. <div class="check">
  11890. <div
  11891. v-if="checktoolArray.indexOf(66) == -1"
  11892. class="noChoose"
  11893. ></div>
  11894. <div v-else class="isChoose"></div>
  11895. </div>
  11896. </div>
  11897. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  11898. <div class="whiteBIcon" @click="addTools2(67)">
  11899. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  11900. <div style="margin: 5px 0">分子结构</div>
  11901. </div>
  11902. <div class="check" @click="addTools2(67)">
  11903. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  11904. <div v-else class="isChoose"></div>
  11905. </div>
  11906. </div> -->
  11907. <div
  11908. class="tool"
  11909. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  11910. @click="addTools2(68)"
  11911. >
  11912. <div class="whiteBIcon">
  11913. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  11914. <div style="margin: 5px 0">时间轴</div>
  11915. </div>
  11916. <div class="check">
  11917. <div
  11918. v-if="checktoolArray.indexOf(68) == -1"
  11919. class="noChoose"
  11920. ></div>
  11921. <div v-else class="isChoose"></div>
  11922. </div>
  11923. </div>
  11924. <!-- <div
  11925. class="tool"
  11926. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  11927. @click="addTools2(69)"
  11928. >
  11929. <div class="whiteBIcon">
  11930. <img src="../../assets/icon/secondToolList/english.png" alt />
  11931. <div style="margin: 5px 0">英语写作</div>
  11932. </div>
  11933. <div class="check">
  11934. <div
  11935. v-if="checktoolArray.indexOf(69) == -1"
  11936. class="noChoose"
  11937. ></div>
  11938. <div v-else class="isChoose"></div>
  11939. </div>
  11940. </div> -->
  11941. </div>
  11942. <div class="toolSort" v-if="toolType == 4">
  11943. <div
  11944. class="tool"
  11945. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  11946. @click="addTools2(26)"
  11947. >
  11948. <div class="whiteBIcon">
  11949. <img
  11950. src="../../assets/icon/thirdToolList/courseDesign.png"
  11951. alt
  11952. />
  11953. <div style="margin: 5px 0">课程设计</div>
  11954. </div>
  11955. <div class="check">
  11956. <div
  11957. v-if="checktoolArray.indexOf(26) == -1"
  11958. class="noChoose"
  11959. ></div>
  11960. <div v-else class="isChoose"></div>
  11961. </div>
  11962. </div>
  11963. <div
  11964. class="tool"
  11965. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  11966. @click="addTools2(25)"
  11967. >
  11968. <div class="whiteBIcon">
  11969. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  11970. <div style="margin: 5px 0">目标管理</div>
  11971. </div>
  11972. <div class="check">
  11973. <div
  11974. v-if="checktoolArray.indexOf(25) == -1"
  11975. class="noChoose"
  11976. ></div>
  11977. <div v-else class="isChoose"></div>
  11978. </div>
  11979. </div>
  11980. </div>
  11981. </div>
  11982. </div>
  11983. <span
  11984. slot="footer"
  11985. class="dialog-footer"
  11986. style="display: block; text-align: center; padding: 0 0 10px 0"
  11987. >
  11988. <el-button @click="toolDialogVisible = false">取 消</el-button>
  11989. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  11990. </span>
  11991. </div>
  11992. <div
  11993. v-if="replyDialogVisible == true"
  11994. class="addDialogCss"
  11995. v-el-drag-dialog
  11996. >
  11997. <div class="pzTop">
  11998. <div class="teacherPz">
  11999. <div class="teacherPzImg">
  12000. <img src="../../assets/icon/teacherPz.png" alt="" />
  12001. </div>
  12002. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12003. </div>
  12004. <div @click="replyDialogVisible = false">
  12005. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12006. </div>
  12007. </div>
  12008. <div class="addPzBox">
  12009. <!-- <div class="addPzCheck">
  12010. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12011. >文本</span
  12012. >
  12013. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12014. >音频</span
  12015. >
  12016. </div> -->
  12017. <div style="height: calc(100% - 50px)">
  12018. <editor-bar
  12019. class="binfo_input pzConText"
  12020. style="width: 100% !important; margin: 0 auto"
  12021. placeholder="请输入回复描述"
  12022. v-model="reply"
  12023. @change="change"
  12024. ></editor-bar>
  12025. </div>
  12026. <div class="addTextCss" @click="addHf">确定</div>
  12027. </div>
  12028. </div>
  12029. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12030. <div class="pzTop">
  12031. <div class="teacherPz">
  12032. <div class="teacherPzImg">
  12033. <img src="../../assets/icon/teacherPz.png" alt="" />
  12034. </div>
  12035. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12036. </div>
  12037. <div @click="addPzDialog = false">
  12038. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12039. </div>
  12040. </div>
  12041. <div class="addPzBox">
  12042. <div class="addPzCheck">
  12043. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12044. >文本</span
  12045. >
  12046. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12047. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12048. >音频</span
  12049. >
  12050. </div>
  12051. <div style="height: calc(100% - 95px)">
  12052. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12053. v-if="pzType == 1"></textarea> -->
  12054. <editor-bar
  12055. class="binfo_input pzConText"
  12056. style="width: 100% !important"
  12057. placeholder="请输入任务描述"
  12058. v-model="pzConText"
  12059. @change="change"
  12060. v-if="pzType == 1"
  12061. ></editor-bar>
  12062. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12063. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12064. <div @click="addImg($event)">
  12065. <el-button type="primary">上传图片</el-button>
  12066. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12067. @change="beforeUpload1($event, 4)" />
  12068. </div>
  12069. </div> -->
  12070. </div>
  12071. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12072. 确定
  12073. </div>
  12074. </div>
  12075. </div>
  12076. <div v-if="proVisible" class="mask">
  12077. <div class="progressBox">
  12078. <!-- <div id="closePro" class="closeCss">
  12079. <img src="../../assets/icon/close.png" alt />
  12080. </div> -->
  12081. <div class="lbox">
  12082. <img src="../../assets/loading.gif" />上传中,请稍后
  12083. </div>
  12084. <div style="margin-bottom: 10px">
  12085. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12086. </div>
  12087. <el-progress
  12088. :text-inside="true"
  12089. :stroke-width="20"
  12090. :percentage="progress"
  12091. style="width: 80%"
  12092. ></el-progress>
  12093. </div>
  12094. </div>
  12095. <div v-if="proVisible2" class="mask">
  12096. <div class="progressBox">
  12097. <div class="lbox">
  12098. <img src="../../assets/loading.gif" />上传中,请稍后
  12099. </div>
  12100. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12101. </div>
  12102. </div>
  12103. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12104. <img width="100%" :src="dialogImageUrl" alt />
  12105. </el-dialog>
  12106. <el-dialog
  12107. :title="noteName != '' ? noteName : '查看问卷'"
  12108. :visible.sync="dialogVisible5"
  12109. :append-to-body="true"
  12110. width="1000px"
  12111. :before-close="handleClose"
  12112. class="dialog_diy dialog_diy3"
  12113. >
  12114. <div>
  12115. <div
  12116. class="a_add_title"
  12117. style="
  12118. display: flex;
  12119. flex-direction: row;
  12120. align-items: center;
  12121. justify-content: center;
  12122. "
  12123. >
  12124. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12125. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12126. </div>
  12127. <div class="a_addBox">
  12128. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12129. 题目内容
  12130. </div>
  12131. <div
  12132. class="a_add_box"
  12133. v-for="(item1, index1) in askJson.askCount"
  12134. :key="index1"
  12135. >
  12136. <div class="a_add_head">
  12137. <div style="display: flex">
  12138. <span class="askIndex"> {{ index1 + 1 }}</span>
  12139. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12140. </div>
  12141. <img
  12142. v-if="askJson.askJson[index1].img"
  12143. :src="askJson.askJson[index1].img"
  12144. style="height: 300px; margin-top: 10px; max-width: 100%"
  12145. />
  12146. </div>
  12147. <div class="a_add_body">
  12148. <div class="a_add_input">
  12149. <el-radio-group
  12150. v-model="radio[index1]"
  12151. v-if="
  12152. askJson.askJson[index1].type == '1' ||
  12153. !askJson.askJson[index1].type
  12154. "
  12155. >
  12156. <el-radio
  12157. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12158. .checkList"
  12159. :key="checkIndex"
  12160. :label="checkIndex"
  12161. :disabled="isAnswer"
  12162. class="redioStyle"
  12163. ><span v-html="item2"></span
  12164. ></el-radio>
  12165. </el-radio-group>
  12166. <el-checkbox-group
  12167. v-model="radio[index1]"
  12168. v-if="askJson.askJson[index1].type == '2'"
  12169. >
  12170. <el-checkbox
  12171. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12172. .checkList"
  12173. :key="checkIndex1"
  12174. :label="checkIndex1"
  12175. :disabled="isAnswer"
  12176. class="redioStyle"
  12177. ><span v-html="item2"></span>
  12178. </el-checkbox>
  12179. </el-checkbox-group>
  12180. </div>
  12181. </div>
  12182. </div>
  12183. </div>
  12184. </div>
  12185. <span slot="footer" class="dialog-footer">
  12186. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12187. >取 消</el-button
  12188. >
  12189. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12190. >确 定</el-button
  12191. >
  12192. </span>
  12193. </el-dialog>
  12194. <el-dialog
  12195. :title="noteName != '' ? noteName : '查看问卷'"
  12196. :visible.sync="dialogVisible5Teacher"
  12197. :append-to-body="true"
  12198. width="1000px"
  12199. :before-close="handleClose"
  12200. class="dialog_diy dialog_diy3"
  12201. >
  12202. <div>
  12203. <div class="w_name">
  12204. 学生姓名:<span>{{ sStudent.student }}</span>
  12205. </div>
  12206. <div
  12207. class="a_add_title"
  12208. style="
  12209. display: flex;
  12210. flex-direction: row;
  12211. align-items: center;
  12212. justify-content: center;
  12213. "
  12214. >
  12215. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12216. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12217. </div>
  12218. <div class="a_addBox">
  12219. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12220. 题目内容
  12221. </div>
  12222. <div
  12223. class="a_add_box"
  12224. v-for="(item1, index1) in askJson.askCount"
  12225. :key="index1"
  12226. >
  12227. <div class="a_add_head">
  12228. <div style="display: flex">
  12229. <span class="askIndex">{{ index1 + 1 }}</span>
  12230. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12231. </div>
  12232. <img
  12233. v-if="askJson.askJson[index1].img"
  12234. :src="askJson.askJson[index1].img"
  12235. style="height: 300px; margin-top: 10px; max-width: 100%"
  12236. />
  12237. </div>
  12238. <div class="a_add_body">
  12239. <div class="a_add_input">
  12240. <el-radio-group
  12241. v-model="radio[index1]"
  12242. v-if="
  12243. askJson.askJson[index1].type == '1' ||
  12244. !askJson.askJson[index1].type
  12245. "
  12246. >
  12247. <el-radio
  12248. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12249. .checkList"
  12250. :key="checkIndex"
  12251. :label="checkIndex"
  12252. :disabled="isAnswer"
  12253. class="redioStyle"
  12254. ><span v-html="item2"></span
  12255. ></el-radio>
  12256. </el-radio-group>
  12257. <el-checkbox-group
  12258. v-model="radio[index1]"
  12259. v-if="askJson.askJson[index1].type == '2'"
  12260. >
  12261. <el-checkbox
  12262. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12263. .checkList"
  12264. :key="checkIndex1"
  12265. :label="checkIndex1"
  12266. :disabled="isAnswer"
  12267. class="redioStyle"
  12268. ><span v-html="item2"></span>
  12269. </el-checkbox>
  12270. </el-checkbox-group>
  12271. </div>
  12272. </div>
  12273. </div>
  12274. </div>
  12275. </div>
  12276. <span slot="footer" class="dialog-footer">
  12277. <el-button
  12278. @click="dialogVisible5Teacher = false"
  12279. v-show="noteName == ''"
  12280. >取 消</el-button
  12281. >
  12282. <el-button
  12283. type="primary"
  12284. @click="addStudentAskTeacher"
  12285. v-show="noteName == ''"
  12286. >确 定</el-button
  12287. >
  12288. </span>
  12289. </el-dialog>
  12290. <el-dialog
  12291. :title="noteName != '' ? noteName : '查看选择题'"
  12292. :visible.sync="dialogVisibleChoice"
  12293. :append-to-body="true"
  12294. width="1000px"
  12295. :before-close="handleClose"
  12296. class="dialog_diy dialog_diy3"
  12297. >
  12298. <div>
  12299. <!-- <div class="a_add_title" style="
  12300. display: flex;
  12301. flex-direction: row;
  12302. align-items: center;
  12303. justify-content: center;
  12304. ">
  12305. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12306. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12307. </div> -->
  12308. <div class="a_addBox">
  12309. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12310. 题目内容
  12311. </div>
  12312. <div
  12313. class="a_add_box"
  12314. v-for="(item1, index1) in testJson.testCount"
  12315. :key="index1"
  12316. >
  12317. <div class="a_add_head">
  12318. <div style="display: flex">
  12319. <span class="askIndex">{{ index1 + 1 }}</span>
  12320. <div
  12321. v-if="testJson.testJson[index1].type == '1'"
  12322. style="margin-right: 5px; min-width: 70px"
  12323. >
  12324. (单选题)
  12325. </div>
  12326. <div
  12327. v-if="testJson.testJson[index1].type == '2'"
  12328. style="margin-right: 5px; min-width: 70px"
  12329. >
  12330. (多选题)
  12331. </div>
  12332. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12333. </div>
  12334. <img
  12335. v-if="testJson.testJson[index1].img"
  12336. :src="testJson.testJson[index1].img"
  12337. style="height: 300px; margin-top: 10px; max-width: 100%"
  12338. />
  12339. </div>
  12340. <div
  12341. class="timuImgBox"
  12342. v-if="
  12343. testJson.testJson[index1].timuList &&
  12344. testJson.testJson[index1].timuList.length
  12345. "
  12346. >
  12347. <div
  12348. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12349. :key="tIndex"
  12350. class="timuImg"
  12351. @click.stop="previewImg(timg.src)"
  12352. >
  12353. <img :src="timg.src" alt="" />
  12354. </div>
  12355. </div>
  12356. <div class="a_add_body">
  12357. <div class="a_add_input">
  12358. <el-radio-group
  12359. v-model="radio[index1]"
  12360. v-if="testJson.testJson[index1].type == '1'"
  12361. >
  12362. <div class="radioBox">
  12363. <el-radio
  12364. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12365. .checkList"
  12366. :key="checkIndex"
  12367. :label="checkIndex"
  12368. :disabled="isAnswer"
  12369. class="redioStyle"
  12370. >
  12371. <div
  12372. style="margin-right: 10px"
  12373. v-if="item2 && item2.imgType && item2.imgType == 1"
  12374. >
  12375. <div class="inImg" @click.stop="previewImg(item2.src)">
  12376. <img :src="item2.src" alt="" />
  12377. </div>
  12378. </div>
  12379. <span v-else v-html="item2"></span>
  12380. </el-radio>
  12381. </div>
  12382. </el-radio-group>
  12383. <el-checkbox-group
  12384. v-model="radio[index1]"
  12385. v-if="testJson.testJson[index1].type == '2'"
  12386. >
  12387. <div class="radioBox">
  12388. <el-checkbox
  12389. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12390. .checkList"
  12391. :key="checkIndex"
  12392. :label="checkIndex"
  12393. :disabled="isAnswer"
  12394. class="redioStyle"
  12395. >
  12396. <div
  12397. style="margin-right: 10px"
  12398. v-if="item2 && item2.imgType && item2.imgType == 1"
  12399. >
  12400. <div class="inImg" @click.stop="previewImg(item2.src)">
  12401. <img :src="item2.src" alt="" />
  12402. </div>
  12403. </div>
  12404. <span v-else v-html="item2"></span>
  12405. </el-checkbox>
  12406. </div>
  12407. </el-checkbox-group>
  12408. </div>
  12409. </div>
  12410. </div>
  12411. </div>
  12412. </div>
  12413. <span slot="footer" class="dialog-footer">
  12414. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12415. >取 消</el-button
  12416. >
  12417. <el-button
  12418. type="primary"
  12419. @click="addStudentTest"
  12420. v-show="noteName == ''"
  12421. >确 定</el-button
  12422. >
  12423. </span>
  12424. </el-dialog>
  12425. <el-dialog
  12426. :title="noteName != '' ? noteName : '查看选择题'"
  12427. :visible.sync="dialogVisibleChoiceTeacher"
  12428. :append-to-body="true"
  12429. width="1000px"
  12430. :before-close="handleClose"
  12431. class="dialog_diy dialog_diy3"
  12432. >
  12433. <div>
  12434. <div class="w_name">
  12435. 学生姓名:<span>{{ sStudent.student }}</span>
  12436. </div>
  12437. <div class="a_addBox">
  12438. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12439. 题目内容
  12440. </div>
  12441. <div
  12442. class="a_add_box"
  12443. v-for="(item1, index1) in testJson.testCount"
  12444. :key="index1"
  12445. >
  12446. <div class="a_add_head">
  12447. <div style="display: flex">
  12448. <span class="askIndex">{{ index1 + 1 }}</span>
  12449. <div
  12450. v-if="testJson.testJson[index1].type == '1'"
  12451. style="margin-right: 5px; min-width: 70px"
  12452. >
  12453. (单选题)
  12454. </div>
  12455. <div
  12456. v-if="testJson.testJson[index1].type == '2'"
  12457. style="margin-right: 5px; min-width: 70px"
  12458. >
  12459. (多选题)
  12460. </div>
  12461. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12462. </div>
  12463. <img
  12464. v-if="testJson.testJson[index1].img"
  12465. :src="testJson.testJson[index1].img"
  12466. style="height: 300px; margin-top: 10px; max-width: 100%"
  12467. />
  12468. </div>
  12469. <div
  12470. class="timuImgBox"
  12471. v-if="
  12472. testJson.testJson[index1].timuList &&
  12473. testJson.testJson[index1].timuList.length
  12474. "
  12475. >
  12476. <div
  12477. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12478. :key="tIndex"
  12479. class="timuImg"
  12480. @click.stop="previewImg(timg.src)"
  12481. >
  12482. <img :src="timg.src" alt="" />
  12483. </div>
  12484. </div>
  12485. <div class="a_add_body">
  12486. <div class="a_add_input">
  12487. <el-radio-group
  12488. v-model="radio[index1]"
  12489. v-if="testJson.testJson[index1].type == '1'"
  12490. >
  12491. <div class="radioBox">
  12492. <el-radio
  12493. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12494. .checkList"
  12495. :key="checkIndex"
  12496. :label="checkIndex"
  12497. :disabled="isAnswer"
  12498. class="redioStyle"
  12499. >
  12500. <div
  12501. style="margin-right: 10px"
  12502. v-if="item2 && item2.imgType && item2.imgType == 1"
  12503. >
  12504. <div class="inImg" @click.stop="previewImg(item2.src)">
  12505. <img :src="item2.src" alt="" />
  12506. </div>
  12507. </div>
  12508. <span v-else v-html="item2"></span>
  12509. </el-radio>
  12510. </div>
  12511. </el-radio-group>
  12512. <el-checkbox-group
  12513. v-model="radio[index1]"
  12514. v-if="testJson.testJson[index1].type == '2'"
  12515. >
  12516. <div class="radioBox">
  12517. <el-checkbox
  12518. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12519. .checkList"
  12520. :key="checkIndex"
  12521. :label="checkIndex"
  12522. :disabled="isAnswer"
  12523. class="redioStyle"
  12524. >
  12525. <div
  12526. style="margin-right: 10px"
  12527. v-if="item2 && item2.imgType && item2.imgType == 1"
  12528. >
  12529. <div class="inImg" @click.stop="previewImg(item2.src)">
  12530. <img :src="item2.src" alt="" />
  12531. </div>
  12532. </div>
  12533. <span v-else v-html="item2"></span>
  12534. </el-checkbox>
  12535. </div>
  12536. </el-checkbox-group>
  12537. </div>
  12538. </div>
  12539. </div>
  12540. </div>
  12541. </div>
  12542. <span slot="footer" class="dialog-footer">
  12543. <el-button
  12544. @click="dialogVisibleChoiceTeacher = false"
  12545. v-show="noteName == ''"
  12546. >取 消</el-button
  12547. >
  12548. <el-button
  12549. type="primary"
  12550. @click="addStudentTestTeacher"
  12551. v-show="noteName == ''"
  12552. >确 定</el-button
  12553. >
  12554. </span>
  12555. </el-dialog>
  12556. <el-dialog
  12557. title="查看富文本"
  12558. :visible.sync="dialogVisible1"
  12559. :append-to-body="true"
  12560. width="500px"
  12561. :before-close="handleClose"
  12562. class="dialog_diy textCss"
  12563. >
  12564. <el-form style="font-size: 20px">
  12565. <el-form-item label="文本标题" class="textTitle">
  12566. <div style="font-size: 20px">{{ text.name }}</div>
  12567. </el-form-item>
  12568. <div>富文本内容</div>
  12569. <div
  12570. v-html="text.url"
  12571. style="font-size: 18px; padding: 40px 0 0 0"
  12572. ></div>
  12573. </el-form>
  12574. <span slot="footer" class="dialog-footer">
  12575. <el-button type="primary" @click="dialogVisible1 = false"
  12576. >确定</el-button
  12577. >
  12578. </span>
  12579. </el-dialog>
  12580. <el-dialog
  12581. title="文件预览"
  12582. :visible.sync="dialogVisible3"
  12583. width="50%"
  12584. :before-close="handleClose"
  12585. class="dialog_diy"
  12586. :class="{ fullStyle: full }"
  12587. >
  12588. <div slot="title" class="header-title">
  12589. <div style="color: #fff">文件预览</div>
  12590. <div style="position: absolute; top: 19px; right: 50px">
  12591. <img
  12592. src="../../assets/full.png"
  12593. style="height: 16px; cursor: pointer"
  12594. alt=""
  12595. @click="fullTools"
  12596. />
  12597. </div>
  12598. </div>
  12599. <pdf
  12600. v-if="showPDF"
  12601. :pdfUrl="pptImgUrl"
  12602. style="width: 100%; height: 520px; overflow: auto"
  12603. :class="{ fullStyle: full }"
  12604. ></pdf>
  12605. <iframe
  12606. v-else
  12607. :src="pptImgUrl"
  12608. frameborder="0"
  12609. width="100%"
  12610. height="600"
  12611. :class="{ fullStyle: full }"
  12612. ></iframe>
  12613. </el-dialog>
  12614. <el-dialog
  12615. title="文件预览"
  12616. :visible.sync="dialogVisible6"
  12617. width="50%"
  12618. :before-close="handleClose"
  12619. class="dialog_diy"
  12620. >
  12621. <iframe
  12622. :src="pptImgUrl1"
  12623. frameborder="0"
  12624. width="100%"
  12625. height="600"
  12626. ></iframe>
  12627. </el-dialog>
  12628. <el-dialog
  12629. title="提示"
  12630. :visible.sync="dialogVisible4"
  12631. :append-to-body="true"
  12632. width="800px"
  12633. :before-close="handleClose"
  12634. class="dialog_diy notice"
  12635. >
  12636. <div>此功能暂未开放!</div>
  12637. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  12638. </el-dialog>
  12639. <el-dialog
  12640. title="问答"
  12641. :visible.sync="answerDialogVisible"
  12642. :append-to-body="true"
  12643. width="800px"
  12644. :before-close="handleClose"
  12645. class="dialog_diy"
  12646. >
  12647. <div>
  12648. <div
  12649. style="
  12650. display: flex;
  12651. flex-wrap: nowrap;
  12652. flex-direction: column;
  12653. position: relative;
  12654. "
  12655. >
  12656. <div class="queTop" style="padding: 20px 0 20px 0">
  12657. <div class="question">
  12658. <img src="../../assets/icon/question.png" alt />
  12659. </div>
  12660. <div class="queTitle">
  12661. <div style="width: 90px; min-width: 90px">提问:</div>
  12662. <div>{{ answerQ }}</div>
  12663. </div>
  12664. </div>
  12665. <div class="ediBottom">
  12666. <textarea
  12667. rows="6"
  12668. class="binfo_input"
  12669. cols
  12670. style="width: 95%; height: 120px"
  12671. v-model="questionAnswer"
  12672. ></textarea>
  12673. </div>
  12674. </div>
  12675. </div>
  12676. <div slot="footer">
  12677. <el-button @click="answerDialogVisible = false">取 消</el-button>
  12678. <el-button type="primary" @click="addQuestion">提 交</el-button>
  12679. </div>
  12680. </el-dialog>
  12681. <el-dialog
  12682. title="问答"
  12683. :visible.sync="answerDialogVisibleTeacher"
  12684. :append-to-body="true"
  12685. width="800px"
  12686. :before-close="handleClose"
  12687. class="dialog_diy"
  12688. >
  12689. <div>
  12690. <div class="w_name">
  12691. 学生姓名:<span>{{ sStudent.student }}</span>
  12692. </div>
  12693. <div
  12694. style="
  12695. display: flex;
  12696. flex-wrap: nowrap;
  12697. flex-direction: column;
  12698. position: relative;
  12699. "
  12700. >
  12701. <div class="queTop" style="padding: 20px 0 20px 0">
  12702. <div class="question">
  12703. <img src="../../assets/icon/question.png" alt />
  12704. </div>
  12705. <div class="queTitle">
  12706. <div style="width: 90px; min-width: 90px">提问:</div>
  12707. <div>{{ answerQ }}</div>
  12708. </div>
  12709. </div>
  12710. <div class="ediBottom">
  12711. <textarea
  12712. rows="6"
  12713. class="binfo_input"
  12714. cols
  12715. style="width: 95%; height: 120px"
  12716. v-model="questionAnswer"
  12717. ></textarea>
  12718. </div>
  12719. </div>
  12720. </div>
  12721. <div slot="footer">
  12722. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  12723. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  12724. </div>
  12725. </el-dialog>
  12726. <el-dialog
  12727. title="倒计时"
  12728. :visible.sync="timeDialogVisible"
  12729. :append-to-body="true"
  12730. width="800px"
  12731. :before-close="handleClose"
  12732. class="dialog_diy"
  12733. >
  12734. <div>
  12735. <div style="margin-bottom: 20px; color: #999">
  12736. 提示:点击“+”或“-”修改倒计时时长。
  12737. </div>
  12738. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12739. </div>
  12740. <div slot="footer">
  12741. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  12742. </div>
  12743. </el-dialog>
  12744. <el-dialog
  12745. title="权限设置"
  12746. :visible.sync="juriVisible"
  12747. :append-to-body="true"
  12748. width="400px"
  12749. :before-close="handleClose"
  12750. class="dialog_diy"
  12751. >
  12752. <div>
  12753. <div class="open_box">
  12754. <div class="switch_box">
  12755. <span>允许学生查看所有作业</span>
  12756. <el-switch
  12757. v-model="sIsOpen"
  12758. active-text=""
  12759. class="switchCss"
  12760. @change="updateSLook"
  12761. ></el-switch>
  12762. </div>
  12763. <div
  12764. class="switch_box"
  12765. v-if="
  12766. courseDetail.userid == userid ||
  12767. (courseDetail.course_teacher &&
  12768. courseDetail.course_teacher.indexOf(userid) != -1)
  12769. "
  12770. >
  12771. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12772. <span>禁止学生查看阶段</span>
  12773. <el-switch
  12774. v-model="IsLookOpen"
  12775. active-text=""
  12776. class="switchCss"
  12777. @change="updateLookOpen"
  12778. ></el-switch>
  12779. </div>
  12780. <div class="switch_box" v-if="courseDetail.userid == userid">
  12781. <span>开启跟随模式</span>
  12782. <el-switch
  12783. v-model="IsFollow"
  12784. active-text=""
  12785. class="switchCss"
  12786. @change="updateFollow"
  12787. ></el-switch>
  12788. </div>
  12789. </div>
  12790. </div>
  12791. <div slot="footer">
  12792. <el-button
  12793. style="background: #409efe; color: #fff"
  12794. @click="juriVisible = false"
  12795. >关 闭</el-button
  12796. >
  12797. </div>
  12798. </el-dialog>
  12799. <el-dialog
  12800. title="查看视频"
  12801. :visible.sync="videoVisible"
  12802. :append-to-body="true"
  12803. width="1000px"
  12804. :before-close="handleClose"
  12805. class="dialog_diy1"
  12806. >
  12807. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12808. <video-player
  12809. class="video-player vjs-custom-skin"
  12810. :playsinline="true"
  12811. :options="videoDetail"
  12812. @play="onPlayerPlay($event)"
  12813. style="width: 100%; height: 100%"
  12814. ></video-player>
  12815. </div>
  12816. <div slot="footer">
  12817. <el-button
  12818. style="background: #409efe; color: #fff"
  12819. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12820. >
  12821. 关 闭</el-button
  12822. >
  12823. </div>
  12824. </el-dialog>
  12825. <el-dialog
  12826. title="查看详情"
  12827. :visible.sync="commentDialogVisible"
  12828. :append-to-body="true"
  12829. width="800px"
  12830. :before-close="handleClose"
  12831. class="dialog_diy"
  12832. >
  12833. <div class="commentTop">
  12834. <div class="studentDetail">
  12835. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12836. <div class="nameAndTime">
  12837. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12838. <div>{{ commentDetail.time }}</div>
  12839. </div>
  12840. <div
  12841. class="returnBtn"
  12842. style="margin-left: auto; width: 80px"
  12843. v-if="
  12844. commentDetail.works &&
  12845. commentDetail.type == 0 &&
  12846. (tType == 1 || tType == 4)
  12847. "
  12848. @click="
  12849. showPicturePaint(
  12850. commentDetail.img ? commentDetail.img : commentDetail.works
  12851. )
  12852. "
  12853. >
  12854. 教师批注
  12855. </div>
  12856. </div>
  12857. <div
  12858. class="worksAnswer"
  12859. v-if="commentDetail.works && commentDetail.type == 2"
  12860. >
  12861. {{ JSON.parse(commentDetail.works)[0].answer }}
  12862. </div>
  12863. <div
  12864. class="worksAnswer"
  12865. v-if="commentDetail.works && commentDetail.type == 1"
  12866. >
  12867. <img
  12868. src="../../assets/teacherWork.png"
  12869. v-if="commentDetail.ateacher"
  12870. class="w_teachert"
  12871. />
  12872. <pdf
  12873. v-if="showPDF"
  12874. :pdfUrl="pptImgUrl"
  12875. style="width: 100%; height: 520px; overflow: auto"
  12876. :class="{ fullStyle: full }"
  12877. ></pdf>
  12878. <iframe
  12879. v-else
  12880. :src="pptImgUrl"
  12881. frameborder="0"
  12882. width="100%"
  12883. height="600"
  12884. :class="{ fullStyle: full }"
  12885. ></iframe>
  12886. </div>
  12887. <div
  12888. class="worksAnswer"
  12889. v-if="commentDetail.works && commentDetail.type == 0"
  12890. >
  12891. <img
  12892. src="../../assets/teacherWork.png"
  12893. v-if="commentDetail.ateacher"
  12894. class="w_teachert"
  12895. style="right: 105px"
  12896. />
  12897. <img
  12898. :src="commentDetail.works"
  12899. alt=""
  12900. @click="previewImg(commentDetail.works)"
  12901. />
  12902. </div>
  12903. <div
  12904. class="worksAnswer"
  12905. v-if="commentDetail.works && commentDetail.type == 3"
  12906. >
  12907. <img
  12908. src="../../assets/teacherWork.png"
  12909. v-if="commentDetail.ateacher"
  12910. class="w_teachert"
  12911. />
  12912. <video-player
  12913. class="video-player vjs-custom-skin"
  12914. :playsinline="true"
  12915. :options="videoDetail"
  12916. @play="onPlayerPlay($event)"
  12917. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  12918. ></video-player>
  12919. </div>
  12920. <div
  12921. class="worksAnswer"
  12922. v-if="commentDetail.works && commentDetail.type == 10"
  12923. >
  12924. <div class="cont" v-html="commentDetail.works.text"></div>
  12925. </div>
  12926. <div v-if="commentDetail.works && commentDetail.type == 12">
  12927. <!-- class="worksAnswer codeFileBox" -->
  12928. <!-- @click="downloadFile(commentDetail.works)" -->
  12929. <!-- <img src="../../assets/icon/codeFile.png" />
  12930. <div>点击下载文件</div> -->
  12931. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  12932. </div>
  12933. <div
  12934. class="worksAnswer codeFileBox"
  12935. v-if="commentDetail.works && commentDetail.type == 15"
  12936. @click="
  12937. openCocoPi(
  12938. 57,
  12939. commentIndexJson.toolIndex,
  12940. commentDetail.userid,
  12941. commentDetail.sName
  12942. )
  12943. "
  12944. >
  12945. <img src="../../assets/icon/codeFile.png" />
  12946. <div>点击打开CocoPi</div>
  12947. </div>
  12948. <div
  12949. class="worksAnswer"
  12950. v-if="commentDetail.works && commentDetail.type == 13"
  12951. >
  12952. <div v-html="JSON.parse(commentDetail.works).text"></div>
  12953. </div>
  12954. <div
  12955. class="worksAnswer"
  12956. v-if="commentDetail.works && commentDetail.type == 4"
  12957. >
  12958. <div class="evalCss">
  12959. <div class="nav">请选择星星进行评分</div>
  12960. <div class="middleBox" v-if="eScore.eStar">
  12961. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  12962. <div class="nameAndrate">
  12963. <div>{{ e.value }}</div>
  12964. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  12965. </div>
  12966. <div v-if="e.detail">{{ e.detail }}</div>
  12967. </div>
  12968. <div class="bz">
  12969. <textarea
  12970. disabled
  12971. rows="4"
  12972. class="pj"
  12973. style="
  12974. padding: 10px 5px;
  12975. width: 70%;
  12976. background: #f7f6f9;
  12977. font-size: 14px;
  12978. text-indent: 10px;
  12979. color: #000;
  12980. "
  12981. cols
  12982. v-model="eScore.eBzText"
  12983. placeholder="请输入评价内容..."
  12984. ></textarea>
  12985. </div>
  12986. </div>
  12987. </div>
  12988. </div>
  12989. <div class="comment">
  12990. <div class="commentList">
  12991. <div class="commentImg">
  12992. <img
  12993. @click="
  12994. isLikes(
  12995. commentDetail.wid,
  12996. userid,
  12997. 1,
  12998. null,
  12999. commentDetail.isLikes,
  13000. commentDetail.sName
  13001. )
  13002. "
  13003. :src="commentDetail.isLikes == true ? likes : noLikes"
  13004. alt=""
  13005. />
  13006. </div>
  13007. <div>{{ commentDetail.likesCount }}</div>
  13008. </div>
  13009. <div class="commentList">
  13010. <div class="commentImg">
  13011. <img src="../../assets/icon/comment/comment.png" alt="" />
  13012. </div>
  13013. <div>{{ commentDetail.commentCount }}</div>
  13014. </div>
  13015. </div>
  13016. <div class="drawPBox" v-if="commentDetail.img">
  13017. <span>教师批注</span>
  13018. <img
  13019. :src="commentDetail.img"
  13020. alt=""
  13021. @click="previewImg(commentDetail.img)"
  13022. />
  13023. <span
  13024. class="deleteImg"
  13025. v-if="tType == 1 || tType == 4"
  13026. @click.stop="deletePicturePaint(commentDetail.wid)"
  13027. style="
  13028. font-size: 14px;
  13029. width: auto !important;
  13030. color: #b4b4b4;
  13031. top: unset;
  13032. bottom: 0;
  13033. border: none;
  13034. padding: 0;
  13035. height: auto !important;
  13036. margin: 0;
  13037. "
  13038. >删除</span
  13039. >
  13040. </div>
  13041. </div>
  13042. <div class="commentBox">
  13043. <div class="pl">评论:</div>
  13044. <div style="max-height: 200px; overflow: auto">
  13045. <div
  13046. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13047. style="padding: 10px 0 0 0"
  13048. >
  13049. <div
  13050. class="studentDetail"
  13051. style="padding-top: 10px"
  13052. v-for="(co, coIndex) in commentDetail.commentJson"
  13053. :key="coIndex"
  13054. >
  13055. <div class="tx" style="min-width: 50px">
  13056. <img src="../../assets/avatar.png" alt="" />
  13057. </div>
  13058. <div class="plPerson">
  13059. <div class="plName">
  13060. <div>{{ co.commentPeople }}</div>
  13061. <div style="margin-left: 5px">
  13062. {{ co.commentTime }}
  13063. </div>
  13064. <div
  13065. class="deleteComment"
  13066. v-if="userid == co.userid"
  13067. @click="deleteComment(co.wid)"
  13068. >
  13069. 删除
  13070. </div>
  13071. </div>
  13072. <div class="plContent">{{ co.commentText }}</div>
  13073. </div>
  13074. </div>
  13075. </div>
  13076. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13077. </div>
  13078. </div>
  13079. <div style="margin-top: 10px">
  13080. <div class="displayBox">
  13081. <div
  13082. style="
  13083. color: #556db4;
  13084. font-size: 14px;
  13085. font-weight: bold;
  13086. padding-bottom: 10px;
  13087. "
  13088. >
  13089. 评价
  13090. </div>
  13091. <div class="easy_comment" v-if="false">
  13092. <div
  13093. v-for="(p, pIndex) in PlTextList"
  13094. :key="pIndex"
  13095. @click="fastText(p, 1)"
  13096. >
  13097. {{ p }}
  13098. </div>
  13099. </div>
  13100. </div>
  13101. <div>
  13102. <textarea
  13103. rows="3"
  13104. class="pj"
  13105. style="padding: 10px 5px"
  13106. cols
  13107. v-model="commentText"
  13108. placeholder="请输入评论"
  13109. ></textarea>
  13110. </div>
  13111. </div>
  13112. <div slot="footer">
  13113. <el-button
  13114. @click="
  13115. (commentDialogVisible = false),
  13116. (commentIndexJson = {}),
  13117. videoDetail.sources && videoDetail.sources[0]
  13118. ? (videoDetail.sources[0].src = '')
  13119. : ''
  13120. "
  13121. >取 消</el-button
  13122. >
  13123. <el-button
  13124. type="primary"
  13125. @click="addComment(commentDetail.wid, userid, 2, commentDetail)"
  13126. >确 定</el-button
  13127. >
  13128. </div>
  13129. </el-dialog>
  13130. <el-dialog
  13131. :visible.sync="fullDialogVisible"
  13132. :append-to-body="true"
  13133. width="100%"
  13134. :before-close="handleClose"
  13135. :show-close="false"
  13136. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13137. >
  13138. <div slot="title" class="header-title">
  13139. <div style="color: #fff">查看文档</div>
  13140. <div
  13141. @click="
  13142. () => {
  13143. (fullDialogVisible = false),
  13144. changeSplitScreenBehavior({ code: 99 });
  13145. }
  13146. "
  13147. style="
  13148. cursor: pointer;
  13149. position: absolute;
  13150. top: 20px;
  13151. right: 20px;
  13152. color: #fff;
  13153. "
  13154. >
  13155. 退出全屏
  13156. </div>
  13157. </div>
  13158. <div style="height: 100%;position: relative;">
  13159. <el-button
  13160. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13161. size="medium"
  13162. type="primary"
  13163. @click="
  13164. () => {
  13165. (fullDialogVisible = false),
  13166. changeSplitScreenBehavior({ code: 99 });
  13167. }
  13168. "
  13169. style="
  13170. cursor: pointer;
  13171. position: absolute;
  13172. top: 10px;
  13173. right: 20px;
  13174. color: #fff;
  13175. "
  13176. >
  13177. 退出全屏
  13178. </el-button>
  13179. <div
  13180. class="wheel"
  13181. v-if="
  13182. fulltype == 2 &&
  13183. fullUrl.indexOf(
  13184. 'https://view.officeapps.live.com/op/view.aspx?src='
  13185. ) != -1
  13186. "
  13187. style="width: 100%;height:100%; margin: 0 auto"
  13188. >
  13189. <iframe
  13190. style="width: 100%; height: 100%; border: none"
  13191. :src="fullUrl"
  13192. ></iframe>
  13193. </div>
  13194. <iframe
  13195. v-else-if="fulltype == 2"
  13196. style="width: 100%; height: 100%; border: none"
  13197. :src="fullUrl"
  13198. security="restricted"
  13199. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13200. ></iframe>
  13201. <pdf
  13202. v-else-if="fulltype == 3"
  13203. :pdfUrl="fullUrl"
  13204. style="width: 100%; height: 100%; overflow: auto"
  13205. ></pdf>
  13206. <div
  13207. class="wheel"
  13208. v-if="fulltype == 1"
  13209. style="
  13210. box-shadow: 0 0 6px 1px #f2f2f2;
  13211. height:100%;
  13212. width: 100%;
  13213. background: #f1f1f1;
  13214. "
  13215. >
  13216. <div class="title" style="width: 100%; box-sizing: border-box">
  13217. 查看文档
  13218. </div>
  13219. <el-form class="textBox" style="height: 90%">
  13220. <el-form-item class="textTitle">
  13221. <div style="font-size: 22px">
  13222. {{ fullUrl.name }}
  13223. </div>
  13224. </el-form-item>
  13225. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13226. <div
  13227. v-html="fullUrl.url"
  13228. class="textContent"
  13229. style="height: auto"
  13230. ></div>
  13231. </el-form>
  13232. </div>
  13233. </div>
  13234. <!-- <div slot="footer">
  13235. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13236. </div> -->
  13237. </el-dialog>
  13238. <el-dialog
  13239. title="个人评价"
  13240. :visible.sync="studentEvalDialogVisible"
  13241. :append-to-body="true"
  13242. width="800px"
  13243. :before-close="handleClose"
  13244. class="dialog_diy"
  13245. >
  13246. <div class="evalCss">
  13247. <div class="nav">请选择星星进行评分</div>
  13248. <div class="middleBox" v-if="eScore.eStar">
  13249. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13250. <div class="nameAndrate">
  13251. <div>{{ e.value }}</div>
  13252. <el-rate
  13253. v-model="eScore.eStar[eIndex]"
  13254. :disabled="isStar"
  13255. ></el-rate>
  13256. </div>
  13257. <div v-if="e.detail">{{ e.detail }}</div>
  13258. </div>
  13259. <div class="easy_comment" v-if="false">
  13260. <div
  13261. v-for="(p, pIndex) in PlTextList"
  13262. :key="pIndex"
  13263. @click="fastText(p, 2)"
  13264. >
  13265. {{ p }}
  13266. </div>
  13267. </div>
  13268. <div class="bz">
  13269. <textarea
  13270. :disabled="isStar"
  13271. rows="4"
  13272. class="pj"
  13273. style="
  13274. padding: 10px 5px;
  13275. width: 70%;
  13276. background: #f7f6f9;
  13277. font-size: 14px;
  13278. text-indent: 10px;
  13279. "
  13280. cols
  13281. v-model="eScore.eBzText"
  13282. placeholder="请输入评价内容..."
  13283. ></textarea>
  13284. </div>
  13285. </div>
  13286. </div>
  13287. <div slot="footer">
  13288. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13289. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13290. >确 定</el-button
  13291. >
  13292. </div>
  13293. </el-dialog>
  13294. <el-dialog
  13295. title="个人评价"
  13296. :visible.sync="studentEvalDialogVisibleTeacher"
  13297. :append-to-body="true"
  13298. width="800px"
  13299. :before-close="handleClose"
  13300. class="dialog_diy"
  13301. >
  13302. <div class="w_name">
  13303. 学生姓名:<span>{{ sStudent.student }}</span>
  13304. </div>
  13305. <div class="evalCss">
  13306. <div class="nav">请选择星星进行评分</div>
  13307. <div class="middleBox" v-if="eScore.eStar">
  13308. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13309. <div class="nameAndrate">
  13310. <div>{{ e.value }}</div>
  13311. <el-rate
  13312. v-model="eScore.eStar[eIndex]"
  13313. :disabled="isStar"
  13314. ></el-rate>
  13315. </div>
  13316. <div v-if="e.detail">{{ e.detail }}</div>
  13317. </div>
  13318. <div class="easy_comment" v-if="false">
  13319. <div
  13320. v-for="(p, pIndex) in PlTextList"
  13321. :key="pIndex"
  13322. @click="fastText(p, 2)"
  13323. >
  13324. {{ p }}
  13325. </div>
  13326. </div>
  13327. <div class="bz">
  13328. <textarea
  13329. :disabled="isStar"
  13330. rows="4"
  13331. class="pj"
  13332. style="
  13333. padding: 10px 5px;
  13334. width: 70%;
  13335. background: #f7f6f9;
  13336. font-size: 14px;
  13337. text-indent: 10px;
  13338. "
  13339. cols
  13340. v-model="eScore.eBzText"
  13341. placeholder="请输入评价内容..."
  13342. ></textarea>
  13343. </div>
  13344. </div>
  13345. </div>
  13346. <div slot="footer">
  13347. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13348. >取 消</el-button
  13349. >
  13350. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13351. >确 定</el-button
  13352. >
  13353. </div>
  13354. </el-dialog>
  13355. <el-dialog
  13356. title="选择匹配"
  13357. :visible.sync="dialogVisibleSelect"
  13358. :append-to-body="true"
  13359. width="90%"
  13360. :before-close="handleClose"
  13361. class="dialog_diy dialog_diy3"
  13362. >
  13363. <div v-if="selectJson">
  13364. <div class="select_box2">
  13365. <div class="select_box2_title">
  13366. <div>选择匹配</div>
  13367. <div>请选择对应的答案进行答题!</div>
  13368. </div>
  13369. <div class="select_box2_box">
  13370. <div class="select_box2_img">
  13371. <img
  13372. :src="selectJson.url"
  13373. @click="previewImg(selectJson.url)"
  13374. alt=""
  13375. />
  13376. </div>
  13377. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13378. <div style="padding-top: 15px">
  13379. <div class="select_answer_title" v-if="isSelect">
  13380. {{ selectAnswer.stu }}
  13381. </div>
  13382. <div class="select_answer_title" v-else>
  13383. 根据题目选择对应答案
  13384. </div>
  13385. <div
  13386. class="select_box2_answer_box"
  13387. v-for="(item2, checkIndex) in selectJson.select"
  13388. :key="checkIndex"
  13389. >
  13390. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13391. <el-select
  13392. :disabled="isSelect"
  13393. v-model="selectAnswer.answer[checkIndex]"
  13394. placeholder="请选择正确答案"
  13395. >
  13396. <el-option
  13397. v-for="(e, eIndex) in selectJson.select"
  13398. :key="eIndex"
  13399. :label="e"
  13400. :value="eIndex"
  13401. >
  13402. </el-option>
  13403. </el-select>
  13404. </div>
  13405. </div>
  13406. <div
  13407. class="rightAnswerCss"
  13408. v-if="isSelect && (tType == 1 || tType == 4)"
  13409. >
  13410. <div
  13411. v-for="(a, aIndex) in selectJson.answer"
  13412. :key="aIndex"
  13413. class="rightAnswer"
  13414. >
  13415. <div
  13416. v-if="selectAnswer.answer[aIndex] === a"
  13417. style="color: #767de1"
  13418. >
  13419. 回答正确
  13420. </div>
  13421. <div v-else>回答错误</div>
  13422. <div
  13423. style="margin-left: 10px"
  13424. v-if="selectAnswer.answer[aIndex] !== a"
  13425. >
  13426. 正确答案:
  13427. </div>
  13428. <div
  13429. :class="
  13430. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13431. "
  13432. >
  13433. {{ selectJson.select[a] }}
  13434. </div>
  13435. </div>
  13436. </div>
  13437. </div>
  13438. <div class="upAnswerCss">
  13439. <el-button
  13440. type="primary"
  13441. @click="addSelectAnswer"
  13442. v-if="!isSelect"
  13443. >提交答案</el-button
  13444. >
  13445. </div>
  13446. </div>
  13447. </div>
  13448. </div>
  13449. </el-dialog>
  13450. <el-dialog
  13451. title="选择匹配"
  13452. :visible.sync="dialogVisibleSelectTeacher"
  13453. :append-to-body="true"
  13454. width="90%"
  13455. :before-close="handleClose"
  13456. class="dialog_diy dialog_diy3"
  13457. >
  13458. <div v-if="selectJson">
  13459. <div class="w_name">
  13460. 学生姓名:<span>{{ sStudent.student }}</span>
  13461. </div>
  13462. <div class="select_box2">
  13463. <div class="select_box2_title">
  13464. <div>选择匹配</div>
  13465. <div>请选择对应的答案进行答题!</div>
  13466. </div>
  13467. <div class="select_box2_box">
  13468. <div class="select_box2_img">
  13469. <img
  13470. :src="selectJson.url"
  13471. @click="previewImg(selectJson.url)"
  13472. alt=""
  13473. />
  13474. </div>
  13475. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13476. <div style="padding-top: 15px">
  13477. <div class="select_answer_title" v-if="isSelect">
  13478. {{ selectAnswer.stu }}
  13479. </div>
  13480. <div class="select_answer_title" v-else>
  13481. 根据题目选择对应答案
  13482. </div>
  13483. <div
  13484. class="select_box2_answer_box"
  13485. v-for="(item2, checkIndex) in selectJson.select"
  13486. :key="checkIndex"
  13487. >
  13488. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13489. <el-select
  13490. :disabled="isSelect"
  13491. v-model="selectAnswer.answer[checkIndex]"
  13492. placeholder="请选择正确答案"
  13493. >
  13494. <el-option
  13495. v-for="(e, eIndex) in selectJson.select"
  13496. :key="eIndex"
  13497. :label="e"
  13498. :value="eIndex"
  13499. >
  13500. </el-option>
  13501. </el-select>
  13502. </div>
  13503. </div>
  13504. <div
  13505. class="rightAnswerCss"
  13506. v-if="isSelect && (tType == 1 || tType == 4)"
  13507. >
  13508. <div
  13509. v-for="(a, aIndex) in selectJson.answer"
  13510. :key="aIndex"
  13511. class="rightAnswer"
  13512. >
  13513. <div
  13514. v-if="selectAnswer.answer[aIndex] === a"
  13515. style="color: #767de1"
  13516. >
  13517. 回答正确
  13518. </div>
  13519. <div v-else>回答错误</div>
  13520. <div
  13521. style="margin-left: 10px"
  13522. v-if="selectAnswer.answer[aIndex] !== a"
  13523. >
  13524. 正确答案:
  13525. </div>
  13526. <div
  13527. :class="
  13528. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13529. "
  13530. >
  13531. {{ selectJson.select[a] }}
  13532. </div>
  13533. </div>
  13534. </div>
  13535. </div>
  13536. <div class="upAnswerCss">
  13537. <el-button
  13538. type="primary"
  13539. @click="addSelectAnswerTeacher"
  13540. v-if="!isSelect"
  13541. >提交答案</el-button
  13542. >
  13543. </div>
  13544. </div>
  13545. </div>
  13546. </div>
  13547. </el-dialog>
  13548. <el-dialog
  13549. title="教师评分"
  13550. :visible.sync="dialogVisibleScore"
  13551. :append-to-body="true"
  13552. width="800px"
  13553. :before-close="handleClose"
  13554. class="dialog_diy"
  13555. >
  13556. <div>
  13557. <div class="studentDetail">
  13558. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13559. <div class="nameAndTime">
  13560. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13561. <div>{{ commentDetail.time }}</div>
  13562. </div>
  13563. </div>
  13564. <div
  13565. class="worksAnswer"
  13566. v-if="commentDetail.works && commentDetail.type == 2"
  13567. >
  13568. {{ JSON.parse(commentDetail.works)[0].answer }}
  13569. </div>
  13570. <div
  13571. class="worksAnswer"
  13572. v-if="commentDetail.works && commentDetail.type == 1"
  13573. >
  13574. <pdf
  13575. v-if="showPDF"
  13576. :pdfUrl="pptImgUrl"
  13577. style="width: 100%; height: 520px; overflow: auto"
  13578. :class="{ fullStyle: full }"
  13579. ></pdf>
  13580. <iframe
  13581. v-else
  13582. :src="pptImgUrl"
  13583. frameborder="0"
  13584. width="100%"
  13585. height="600"
  13586. :class="{ fullStyle: full }"
  13587. ></iframe>
  13588. </div>
  13589. <div
  13590. class="worksAnswer"
  13591. v-if="commentDetail.works && commentDetail.type == 0"
  13592. >
  13593. <img
  13594. :src="commentDetail.works"
  13595. alt=""
  13596. @click="previewImg(commentDetail.works)"
  13597. />
  13598. </div>
  13599. <div
  13600. class="worksAnswer"
  13601. v-if="commentDetail.works && commentDetail.type == 3"
  13602. >
  13603. <video-player
  13604. class="video-player vjs-custom-skin"
  13605. :playsinline="true"
  13606. :options="videoDetail"
  13607. @play="onPlayerPlay($event)"
  13608. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13609. ></video-player>
  13610. </div>
  13611. <div
  13612. class="worksAnswer codeFileBox"
  13613. v-if="commentDetail.works && commentDetail.type == 12"
  13614. @click="downloadFile(commentDetail.works)"
  13615. >
  13616. <img src="../../assets/icon/codeFile.png" />
  13617. <div>点击下载文件</div>
  13618. </div>
  13619. <div
  13620. class="worksAnswer codeFileBox"
  13621. v-if="commentDetail.works && commentDetail.type == 15"
  13622. @click="
  13623. openCocoPi(
  13624. 57,
  13625. commentIndexJson.toolIndex,
  13626. commentDetail.userid,
  13627. commentDetail.sName
  13628. )
  13629. "
  13630. >
  13631. <img src="../../assets/icon/codeFile.png" />
  13632. <div>点击打开CocoPi</div>
  13633. </div>
  13634. <div
  13635. class="worksAnswer"
  13636. v-if="commentDetail.works && commentDetail.type == 13"
  13637. >
  13638. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13639. </div>
  13640. <div class="scoreBox">
  13641. <span class="t">请输入分数</span>
  13642. <el-input-number
  13643. :disabled="courseDetail.userid != userid"
  13644. v-model="wScore"
  13645. :controls="false"
  13646. :min="0"
  13647. :max="100"
  13648. ></el-input-number>
  13649. </div>
  13650. <div class="scoreDetailBox">
  13651. <span class="t">评分评论</span>
  13652. <el-input
  13653. type="textarea"
  13654. :rows="5"
  13655. :disabled="courseDetail.userid != userid"
  13656. resize="none"
  13657. v-model="scoreDetail"
  13658. placeholder="请输入对学生的评价"
  13659. >
  13660. </el-input>
  13661. </div>
  13662. </div>
  13663. <span slot="footer" class="dialog-footer">
  13664. <el-button
  13665. @click="
  13666. (dialogVisibleScore = false),
  13667. (commentIndexJson = {}),
  13668. videoDetail.sources && videoDetail.sources[0]
  13669. ? (videoDetail.sources[0].src = '')
  13670. : ''
  13671. "
  13672. >取 消</el-button
  13673. >
  13674. <el-button
  13675. type="primary"
  13676. v-if="courseDetail.userid == userid"
  13677. @click="scoreWork(commentDetail.wid, commentDetail.sName)"
  13678. >确 定
  13679. </el-button>
  13680. </span>
  13681. </el-dialog>
  13682. <el-dialog
  13683. title="排序"
  13684. :visible.sync="dialogVisibleSentence"
  13685. :append-to-body="true"
  13686. width="1000px"
  13687. :before-close="handleClose"
  13688. class="dialog_diy dialog_diy3"
  13689. >
  13690. <div>
  13691. <div class="sentenBox">
  13692. <div
  13693. v-for="(st, stIndex) in sentenceList"
  13694. :key="stIndex"
  13695. style="padding-bottom: 20px"
  13696. >
  13697. <div
  13698. style="padding: 15px 0 10px 20px"
  13699. class="sentenceTitle"
  13700. :index="stIndex + 1"
  13701. >
  13702. 题目{{ stIndex + 1 }}:请选择正确顺序
  13703. </div>
  13704. <div class="cardList" v-if="st.chooseSenList">
  13705. <div class="cardBox">
  13706. <div
  13707. v-for="(r, rIndex) in st.chooseSenList"
  13708. :key="rIndex"
  13709. @click="returnCard(r, stIndex, rIndex)"
  13710. >
  13711. <el-tooltip
  13712. class="item"
  13713. effect="light"
  13714. :content="r"
  13715. placement="top"
  13716. v-if="r != '' && r != undefined"
  13717. >
  13718. <div
  13719. :class="{
  13720. isCard: r,
  13721. isChooseCard: r == '' || r == undefined
  13722. }"
  13723. >
  13724. <div>{{ r }}</div>
  13725. </div>
  13726. </el-tooltip>
  13727. <div
  13728. :class="{
  13729. isCard: r,
  13730. isChooseCard: r == '' || r == undefined
  13731. }"
  13732. v-else
  13733. >
  13734. <div>{{ r }}</div>
  13735. </div>
  13736. </div>
  13737. </div>
  13738. </div>
  13739. <div class="cardList" v-if="st.addChangeSen">
  13740. <div class="cardBox">
  13741. <div
  13742. v-for="(s, sIndex) in st.addChangeSen"
  13743. :key="sIndex"
  13744. @click="setRightAnswer(s, stIndex, sIndex)"
  13745. >
  13746. <el-tooltip
  13747. class="item"
  13748. effect="light"
  13749. :content="s"
  13750. placement="top"
  13751. v-if="s != '' && s != undefined"
  13752. >
  13753. <div
  13754. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13755. >
  13756. <div>{{ s }}</div>
  13757. </div>
  13758. </el-tooltip>
  13759. <div
  13760. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13761. v-else
  13762. >
  13763. <div>{{ s }}</div>
  13764. </div>
  13765. </div>
  13766. </div>
  13767. </div>
  13768. </div>
  13769. </div>
  13770. </div>
  13771. <span slot="footer" class="dialog-footer">
  13772. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  13773. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  13774. </span>
  13775. </el-dialog>
  13776. <el-dialog
  13777. title="排序"
  13778. :visible.sync="dialogVisibleSentenceTeacher"
  13779. :append-to-body="true"
  13780. width="1000px"
  13781. :before-close="handleClose"
  13782. class="dialog_diy dialog_diy3"
  13783. >
  13784. <div>
  13785. <div class="w_name">
  13786. 学生姓名:<span>{{ sStudent.student }}</span>
  13787. </div>
  13788. <div class="sentenBox">
  13789. <div
  13790. v-for="(st, stIndex) in sentenceList"
  13791. :key="stIndex"
  13792. style="padding-bottom: 20px"
  13793. >
  13794. <div
  13795. style="padding: 15px 0 10px 20px"
  13796. class="sentenceTitle"
  13797. :index="stIndex + 1"
  13798. >
  13799. 题目{{ stIndex + 1 }}:请选择正确顺序
  13800. </div>
  13801. <div class="cardList" v-if="st.chooseSenList">
  13802. <div class="cardBox">
  13803. <div
  13804. v-for="(r, rIndex) in st.chooseSenList"
  13805. :key="rIndex"
  13806. @click="returnCard(r, stIndex, rIndex)"
  13807. >
  13808. <el-tooltip
  13809. class="item"
  13810. effect="light"
  13811. :content="r"
  13812. placement="top"
  13813. v-if="r != '' && r != undefined"
  13814. >
  13815. <div
  13816. :class="{
  13817. isCard: r,
  13818. isChooseCard: r == '' || r == undefined
  13819. }"
  13820. >
  13821. <div>{{ r }}</div>
  13822. </div>
  13823. </el-tooltip>
  13824. <div
  13825. :class="{
  13826. isCard: r,
  13827. isChooseCard: r == '' || r == undefined
  13828. }"
  13829. v-else
  13830. >
  13831. <div>{{ r }}</div>
  13832. </div>
  13833. </div>
  13834. </div>
  13835. </div>
  13836. <div class="cardList" v-if="st.addChangeSen">
  13837. <div class="cardBox">
  13838. <div
  13839. v-for="(s, sIndex) in st.addChangeSen"
  13840. :key="sIndex"
  13841. @click="setRightAnswer(s, stIndex, sIndex)"
  13842. >
  13843. <el-tooltip
  13844. class="item"
  13845. effect="light"
  13846. :content="s"
  13847. placement="top"
  13848. v-if="s != '' && s != undefined"
  13849. >
  13850. <div
  13851. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13852. >
  13853. <div>{{ s }}</div>
  13854. </div>
  13855. </el-tooltip>
  13856. <div
  13857. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13858. v-else
  13859. >
  13860. <div>{{ s }}</div>
  13861. </div>
  13862. </div>
  13863. </div>
  13864. </div>
  13865. </div>
  13866. </div>
  13867. </div>
  13868. <span slot="footer" class="dialog-footer">
  13869. <el-button @click="dialogVisibleSentenceTeacher = false"
  13870. >取 消</el-button
  13871. >
  13872. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  13873. </span>
  13874. </el-dialog>
  13875. <el-dialog
  13876. title="排序"
  13877. :visible.sync="dialogVisibleSentence1"
  13878. :append-to-body="true"
  13879. width="1000px"
  13880. :before-close="handleClose"
  13881. class="dialog_diy dialog_diy3"
  13882. >
  13883. <div>
  13884. <div class="sentenBox">
  13885. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13886. {{ sentenceList1.stuName }}的作业
  13887. </div>
  13888. <div
  13889. v-for="(st, stIndex) in sentenceList1"
  13890. :key="stIndex"
  13891. style="padding-bottom: 20px"
  13892. >
  13893. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13894. 第{{ stIndex + 1 }}题
  13895. </div>
  13896. <div class="isWrong">
  13897. <div class="cardList1" v-if="st.chooseSenList">
  13898. <div class="cardBox">
  13899. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  13900. <el-tooltip
  13901. class="item"
  13902. effect="light"
  13903. :content="s"
  13904. placement="top"
  13905. >
  13906. <div class="isCard">
  13907. <div>{{ s }}</div>
  13908. </div>
  13909. </el-tooltip>
  13910. </div>
  13911. </div>
  13912. <div class="cardAnswerBox">
  13913. 组成句子:{{ st.chooseSenList.join(" ") }}
  13914. </div>
  13915. </div>
  13916. <div v-if="tType == 2" class="isTj">
  13917. <div class="isTjImg">
  13918. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13919. </div>
  13920. <div>已提交</div>
  13921. </div>
  13922. <div
  13923. class="answerRight isTj"
  13924. v-if="
  13925. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  13926. (tType == 1 || tType == 4)
  13927. "
  13928. >
  13929. <div class="isTjImg">
  13930. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13931. </div>
  13932. <div>回答正确</div>
  13933. </div>
  13934. <div
  13935. class="answerRight isTj"
  13936. v-if="
  13937. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13938. (tType == 1 || tType == 4)
  13939. "
  13940. >
  13941. <div class="isTjImg">
  13942. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  13943. </div>
  13944. <div>回答错误</div>
  13945. </div>
  13946. </div>
  13947. <div
  13948. v-if="
  13949. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13950. (tType == 1 || tType == 4)
  13951. "
  13952. >
  13953. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  13954. <div
  13955. class="cardList"
  13956. v-if="st.rightAnswer"
  13957. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  13958. >
  13959. <div class="cardBox">
  13960. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  13961. <el-tooltip
  13962. class="item"
  13963. effect="light"
  13964. :content="r"
  13965. placement="top"
  13966. >
  13967. <div class="isCard1">
  13968. <div>{{ r }}</div>
  13969. </div>
  13970. </el-tooltip>
  13971. </div>
  13972. </div>
  13973. <div class="cardAnswerBox">
  13974. 组成句子:{{ st.rightAnswer.join(" ") }}
  13975. </div>
  13976. </div>
  13977. </div>
  13978. </div>
  13979. </div>
  13980. </div>
  13981. <span slot="footer" class="dialog-footer">
  13982. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  13983. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  13984. >确 定</el-button
  13985. >
  13986. </span>
  13987. </el-dialog>
  13988. <el-dialog
  13989. title="教师提交作业"
  13990. :visible.sync="dialogVisibleWorks"
  13991. :append-to-body="true"
  13992. width="500px"
  13993. :before-close="handleClose"
  13994. class="dialog_change"
  13995. >
  13996. <div class="marginT">
  13997. <div class="w_name">
  13998. 学生姓名:<span>{{ sStudent.student }}</span>
  13999. </div>
  14000. <div>上传文件</div>
  14001. <div
  14002. class="chapter_add"
  14003. @click="addImg($event)"
  14004. v-if="studyJuri[0].cover.length == 0"
  14005. >
  14006. <div class="up_photo">
  14007. <img src="../../assets/uploadImg2.png" alt />
  14008. </div>
  14009. <!-- <input
  14010. type="file"
  14011. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14012. style="display: none"
  14013. @change="beforeUpload1($event, 1)"
  14014. /> -->
  14015. <input
  14016. type="file"
  14017. accept="*"
  14018. style="display: none"
  14019. @change="beforeUpload1($event, 1)"
  14020. />
  14021. </div>
  14022. <!-- capture="camera" -->
  14023. <div
  14024. class="chapter_add"
  14025. style="
  14026. display: flex;
  14027. width: 100%;
  14028. flex-direction: row;
  14029. flex-wrap: wrap;
  14030. justify-content: flex-start;
  14031. padding: 15px 0;
  14032. "
  14033. v-if="studyJuri[0].cover.length > 0"
  14034. >
  14035. <div class="upCover">
  14036. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14037. <img :src="word" alt v-else-if="fileType == 1" />
  14038. <img :src="video" alt v-else-if="fileType == 2" />
  14039. <img :src="word2" alt v-else-if="fileType == 3" />
  14040. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14041. <div class="deleteWord" @click="clean(1)">
  14042. <img src="../../assets/icon/deleteWorks.png" alt />
  14043. </div>
  14044. </div>
  14045. </div>
  14046. </div>
  14047. <div
  14048. class="upload_send"
  14049. @click="addCourseWorksTeacher(taskCount)"
  14050. v-if="!proVisible"
  14051. >
  14052. 提交
  14053. </div>
  14054. </el-dialog>
  14055. <ImgDraw
  14056. :drawShow="drawShow"
  14057. @closeDraw="closeDraw"
  14058. @addImgDraw="addImgDraw"
  14059. :bg="bg"
  14060. ></ImgDraw>
  14061. <el-dialog
  14062. title="表格"
  14063. :visible.sync="dialogVisibleTable"
  14064. :append-to-body="true"
  14065. width="95%"
  14066. :before-close="handleClose"
  14067. class="dialog_diy"
  14068. >
  14069. <el-form>
  14070. <div
  14071. style="
  14072. display: flex;
  14073. align-items: center;
  14074. justify-content: space-between;
  14075. "
  14076. >
  14077. <span>表格内容</span>
  14078. <el-button type="primary" size="small" @click="returnTableText"
  14079. >还原模板</el-button
  14080. >
  14081. </div>
  14082. <Table
  14083. v-model="tableJson.text"
  14084. @change="change"
  14085. v-if="dialogVisibleTable"
  14086. ></Table>
  14087. </el-form>
  14088. <span slot="footer" class="dialog-footer">
  14089. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14090. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14091. </span>
  14092. </el-dialog>
  14093. <el-dialog
  14094. title="表格"
  14095. :visible.sync="dialogVisibleTableTeacher"
  14096. :append-to-body="true"
  14097. width="95%"
  14098. :before-close="handleClose"
  14099. class="dialog_diy"
  14100. >
  14101. <el-form>
  14102. <div class="w_name">
  14103. 学生姓名:<span>{{ sStudent.student }}</span>
  14104. </div>
  14105. <div>表格内容</div>
  14106. <Table
  14107. v-model="tableJson.text"
  14108. @change="change"
  14109. v-if="dialogVisibleTableTeacher"
  14110. ></Table>
  14111. </el-form>
  14112. <span slot="footer" class="dialog-footer">
  14113. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14114. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14115. </span>
  14116. </el-dialog>
  14117. <el-dialog
  14118. title="文档"
  14119. :visible.sync="dialogVisibleWord"
  14120. :append-to-body="true"
  14121. width="95%"
  14122. :before-close="handleClose"
  14123. class="dialog_diy"
  14124. >
  14125. <el-form>
  14126. <div
  14127. style="
  14128. display: flex;
  14129. align-items: center;
  14130. justify-content: space-between;
  14131. "
  14132. >
  14133. <span>文档内容</span>
  14134. <el-button type="primary" size="small" @click="returnWordText"
  14135. >还原模板</el-button
  14136. >
  14137. </div>
  14138. <editor-bar
  14139. v-model="wordJson.text"
  14140. v-if="dialogVisibleWord"
  14141. ></editor-bar>
  14142. </el-form>
  14143. <span slot="footer" class="dialog-footer">
  14144. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14145. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14146. </span>
  14147. </el-dialog>
  14148. <el-dialog
  14149. title="文档"
  14150. :visible.sync="dialogVisibleWordTeacher"
  14151. :append-to-body="true"
  14152. width="95%"
  14153. :before-close="handleClose"
  14154. class="dialog_diy"
  14155. >
  14156. <el-form>
  14157. <div class="w_name">
  14158. 学生姓名:<span>{{ sStudent.student }}</span>
  14159. </div>
  14160. <div>文档内容</div>
  14161. <editor-bar
  14162. v-model="wordJson.text"
  14163. v-if="dialogVisibleWordTeacher"
  14164. ></editor-bar>
  14165. </el-form>
  14166. <span slot="footer" class="dialog-footer">
  14167. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14168. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14169. </span>
  14170. </el-dialog>
  14171. <el-dialog
  14172. title="表格"
  14173. :visible.sync="dialogVisibleTable2"
  14174. :append-to-body="true"
  14175. width="95%"
  14176. :before-close="handleClose"
  14177. class="dialog_diy"
  14178. >
  14179. <el-form>
  14180. <div class="cont" v-html="tableJson.text"></div>
  14181. </el-form>
  14182. <span slot="footer" class="dialog-footer">
  14183. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14184. </span>
  14185. </el-dialog>
  14186. <el-dialog
  14187. title="文档"
  14188. :visible.sync="dialogVisibleTable3"
  14189. :append-to-body="true"
  14190. width="95%"
  14191. :before-close="handleClose"
  14192. class="dialog_diy"
  14193. >
  14194. <el-form>
  14195. <div class="cont" v-html="tableJson.text"></div>
  14196. </el-form>
  14197. <span slot="footer" class="dialog-footer">
  14198. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14199. </span>
  14200. </el-dialog>
  14201. <el-dialog
  14202. title="分组设置"
  14203. :visible.sync="dialogVisibleGroup"
  14204. :append-to-body="true"
  14205. width="95%"
  14206. :before-close="handleClose"
  14207. class="dialog_diy"
  14208. >
  14209. <div v-if="dialogVisibleGroup">
  14210. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14211. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14212. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14213. </div>
  14214. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14215. @click="lockChair">
  14216. 锁定位置
  14217. </div>
  14218. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14219. 解锁位置
  14220. </div> -->
  14221. <div class="group_switch">
  14222. <span>开放选座</span>
  14223. <el-switch
  14224. v-model="islock"
  14225. active-text=""
  14226. class="switchCss"
  14227. @change="lockChair"
  14228. ></el-switch>
  14229. </div>
  14230. <div
  14231. type="primary"
  14232. @click="updateGroup"
  14233. class="returnBtn"
  14234. style="background-color: #225bc7"
  14235. >
  14236. 分组设置
  14237. </div>
  14238. </div>
  14239. <div>
  14240. <div
  14241. class="g_d_box"
  14242. v-if="groupJson.group && groupStudent[toolindex]"
  14243. >
  14244. <div
  14245. class="g_d_group"
  14246. v-for="(g, gindex) in groupJson.group"
  14247. :key="gindex"
  14248. >
  14249. <div class="g_d_group_chair">
  14250. <div v-if="groupJson.number > 1">
  14251. <span
  14252. :class="{
  14253. isChair:
  14254. groupStudent[toolindex][gindex] &&
  14255. groupStudent[toolindex][gindex][0],
  14256. updateChair:
  14257. courseDetail.userid == userid &&
  14258. groupStudent[toolindex][gindex] &&
  14259. groupStudent[toolindex][gindex][0] &&
  14260. groupJson.islock == 2
  14261. }"
  14262. ><span
  14263. class="updateChairBtn"
  14264. @click="
  14265. updateGroupChair(
  14266. groupStudent[toolindex][gindex] &&
  14267. groupStudent[toolindex][gindex][0]
  14268. )
  14269. "
  14270. >修改</span
  14271. ></span
  14272. ><span>{{
  14273. groupStudent[toolindex][gindex] &&
  14274. groupStudent[toolindex][gindex][0]
  14275. ? groupStudent[toolindex][gindex] &&
  14276. groupStudent[toolindex][gindex][0].name
  14277. : "空位置"
  14278. }}</span>
  14279. </div>
  14280. <div v-if="groupJson.number > 4">
  14281. <span
  14282. :class="{
  14283. isChair:
  14284. groupStudent[toolindex][gindex] &&
  14285. groupStudent[toolindex][gindex][4],
  14286. updateChair:
  14287. courseDetail.userid == userid &&
  14288. groupStudent[toolindex][gindex] &&
  14289. groupStudent[toolindex][gindex][4] &&
  14290. groupJson.islock == 2
  14291. }"
  14292. ><span
  14293. class="updateChairBtn"
  14294. @click="
  14295. updateGroupChair(
  14296. groupStudent[toolindex][gindex] &&
  14297. groupStudent[toolindex][gindex][4]
  14298. )
  14299. "
  14300. >修改</span
  14301. ></span
  14302. ><span>{{
  14303. groupStudent[toolindex][gindex] &&
  14304. groupStudent[toolindex][gindex][4]
  14305. ? groupStudent[toolindex][gindex] &&
  14306. groupStudent[toolindex][gindex][4].name
  14307. : "空位置"
  14308. }}</span>
  14309. </div>
  14310. <div v-if="groupJson.number > 8">
  14311. <span
  14312. :class="{
  14313. isChair:
  14314. groupStudent[toolindex][gindex] &&
  14315. groupStudent[toolindex][gindex][8],
  14316. updateChair:
  14317. courseDetail.userid == userid &&
  14318. groupStudent[toolindex][gindex] &&
  14319. groupStudent[toolindex][gindex][8] &&
  14320. groupJson.islock == 2
  14321. }"
  14322. ><span
  14323. class="updateChairBtn"
  14324. @click="
  14325. updateGroupChair(
  14326. groupStudent[toolindex][gindex] &&
  14327. groupStudent[toolindex][gindex][8]
  14328. )
  14329. "
  14330. >修改</span
  14331. ></span
  14332. ><span>{{
  14333. groupStudent[toolindex][gindex] &&
  14334. groupStudent[toolindex][gindex][8]
  14335. ? groupStudent[toolindex][gindex] &&
  14336. groupStudent[toolindex][gindex][8].name
  14337. : "空位置"
  14338. }}</span>
  14339. </div>
  14340. </div>
  14341. <div class="g_d_group_tableBox">
  14342. <div class="g_d_group_chair2">
  14343. <div v-if="groupJson.number > 2">
  14344. <span
  14345. :class="{
  14346. isChair:
  14347. groupStudent[toolindex][gindex] &&
  14348. groupStudent[toolindex][gindex][2],
  14349. updateChair:
  14350. courseDetail.userid == userid &&
  14351. groupStudent[toolindex][gindex] &&
  14352. groupStudent[toolindex][gindex][2] &&
  14353. groupJson.islock == 2
  14354. }"
  14355. ><span
  14356. class="updateChairBtn"
  14357. @click="
  14358. updateGroupChair(
  14359. groupStudent[toolindex][gindex] &&
  14360. groupStudent[toolindex][gindex][2]
  14361. )
  14362. "
  14363. >修改</span
  14364. ></span
  14365. ><span>{{
  14366. groupStudent[toolindex][gindex] &&
  14367. groupStudent[toolindex][gindex][2]
  14368. ? groupStudent[toolindex][gindex] &&
  14369. groupStudent[toolindex][gindex][2].name
  14370. : "空位置"
  14371. }}</span>
  14372. </div>
  14373. <div v-if="groupJson.number > 6">
  14374. <span
  14375. :class="{
  14376. isChair:
  14377. groupStudent[toolindex][gindex] &&
  14378. groupStudent[toolindex][gindex][6],
  14379. updateChair:
  14380. courseDetail.userid == userid &&
  14381. groupStudent[toolindex][gindex] &&
  14382. groupStudent[toolindex][gindex][6] &&
  14383. groupJson.islock == 2
  14384. }"
  14385. ><span
  14386. class="updateChairBtn"
  14387. @click="
  14388. updateGroupChair(
  14389. groupStudent[toolindex][gindex] &&
  14390. groupStudent[toolindex][gindex][6]
  14391. )
  14392. "
  14393. >修改</span
  14394. ></span
  14395. ><span>{{
  14396. groupStudent[toolindex][gindex] &&
  14397. groupStudent[toolindex][gindex][6]
  14398. ? groupStudent[toolindex][gindex] &&
  14399. groupStudent[toolindex][gindex][6].name
  14400. : "空位置"
  14401. }}</span>
  14402. </div>
  14403. </div>
  14404. <div class="g_d_group_table">
  14405. <div>
  14406. {{ g.name }}
  14407. </div>
  14408. <div>
  14409. <div
  14410. v-if="
  14411. courseDetail.userid == userid && groupJson.islock == 2
  14412. "
  14413. @click="deleteGroupChair(gindex)"
  14414. >
  14415. 移除组员
  14416. </div>
  14417. <div
  14418. @click="selectGroup(gindex)"
  14419. v-else-if="
  14420. groupStudentUid[toolindex] &&
  14421. groupStudentUid[toolindex][gindex].indexOf(userid) ==
  14422. -1
  14423. "
  14424. >
  14425. 加入分组
  14426. </div>
  14427. <div
  14428. @click="
  14429. exitGroup(
  14430. groupStudent[toolindex][gindex] &&
  14431. groupStudent[toolindex][gindex][
  14432. groupStudentUid[toolindex][gindex].indexOf(userid)
  14433. ].id
  14434. )
  14435. "
  14436. v-else-if="
  14437. groupStudentUid[toolindex] &&
  14438. groupStudentUid[toolindex][gindex].indexOf(userid) !=
  14439. -1
  14440. "
  14441. >
  14442. 退出分组
  14443. </div>
  14444. </div>
  14445. </div>
  14446. <div class="g_d_group_chair2">
  14447. <div v-if="groupJson.number > 3">
  14448. <span
  14449. :class="{
  14450. isChair:
  14451. groupStudent[toolindex][gindex] &&
  14452. groupStudent[toolindex][gindex][3],
  14453. updateChair:
  14454. courseDetail.userid == userid &&
  14455. groupStudent[toolindex][gindex] &&
  14456. groupStudent[toolindex][gindex][3] &&
  14457. groupJson.islock == 2
  14458. }"
  14459. ><span
  14460. class="updateChairBtn"
  14461. @click="
  14462. updateGroupChair(
  14463. groupStudent[toolindex][gindex] &&
  14464. groupStudent[toolindex][gindex][3]
  14465. )
  14466. "
  14467. >修改</span
  14468. ></span
  14469. ><span>{{
  14470. groupStudent[toolindex][gindex] &&
  14471. groupStudent[toolindex][gindex][3]
  14472. ? groupStudent[toolindex][gindex] &&
  14473. groupStudent[toolindex][gindex][3].name
  14474. : "空位置"
  14475. }}</span>
  14476. </div>
  14477. <div v-if="groupJson.number > 7">
  14478. <span
  14479. :class="{
  14480. isChair:
  14481. groupStudent[toolindex][gindex] &&
  14482. groupStudent[toolindex][gindex][7],
  14483. updateChair:
  14484. courseDetail.userid == userid &&
  14485. groupStudent[toolindex][gindex] &&
  14486. groupStudent[toolindex][gindex][7] &&
  14487. groupJson.islock == 2
  14488. }"
  14489. ><span
  14490. class="updateChairBtn"
  14491. @click="
  14492. updateGroupChair(
  14493. groupStudent[toolindex][gindex] &&
  14494. groupStudent[toolindex][gindex][7]
  14495. )
  14496. "
  14497. >修改</span
  14498. ></span
  14499. ><span>{{
  14500. groupStudent[toolindex][gindex] &&
  14501. groupStudent[toolindex][gindex][7]
  14502. ? groupStudent[toolindex][gindex] &&
  14503. groupStudent[toolindex][gindex][7].name
  14504. : "空位置"
  14505. }}</span>
  14506. </div>
  14507. </div>
  14508. </div>
  14509. <div class="g_d_group_chair">
  14510. <div v-if="groupJson.number > 1">
  14511. <span
  14512. :class="{
  14513. isChair:
  14514. groupStudent[toolindex][gindex] &&
  14515. groupStudent[toolindex][gindex][1],
  14516. updateChair:
  14517. courseDetail.userid == userid &&
  14518. groupStudent[toolindex][gindex] &&
  14519. groupStudent[toolindex][gindex][1] &&
  14520. groupJson.islock == 2
  14521. }"
  14522. ><span
  14523. class="updateChairBtn"
  14524. @click="
  14525. updateGroupChair(
  14526. groupStudent[toolindex][gindex] &&
  14527. groupStudent[toolindex][gindex][1]
  14528. )
  14529. "
  14530. >修改</span
  14531. ></span
  14532. ><span>{{
  14533. groupStudent[toolindex][gindex] &&
  14534. groupStudent[toolindex][gindex][1]
  14535. ? groupStudent[toolindex][gindex] &&
  14536. groupStudent[toolindex][gindex][1].name
  14537. : "空位置"
  14538. }}</span>
  14539. </div>
  14540. <div v-if="groupJson.number > 5">
  14541. <span
  14542. :class="{
  14543. isChair:
  14544. groupStudent[toolindex][gindex] &&
  14545. groupStudent[toolindex][gindex][5],
  14546. updateChair:
  14547. courseDetail.userid == userid &&
  14548. groupStudent[toolindex][gindex] &&
  14549. groupStudent[toolindex][gindex][5] &&
  14550. groupJson.islock == 2
  14551. }"
  14552. ><span
  14553. class="updateChairBtn"
  14554. @click="
  14555. updateGroupChair(
  14556. groupStudent[toolindex][gindex] &&
  14557. groupStudent[toolindex][gindex][5]
  14558. )
  14559. "
  14560. >修改</span
  14561. ></span
  14562. ><span>{{
  14563. groupStudent[toolindex][gindex] &&
  14564. groupStudent[toolindex][gindex][5]
  14565. ? groupStudent[toolindex][gindex] &&
  14566. groupStudent[toolindex][gindex][5].name
  14567. : "空位置"
  14568. }}</span>
  14569. </div>
  14570. <div v-if="groupJson.number > 9">
  14571. <span
  14572. :class="{
  14573. isChair:
  14574. groupStudent[toolindex][gindex] &&
  14575. groupStudent[toolindex][gindex][9],
  14576. updateChair:
  14577. courseDetail.userid == userid &&
  14578. groupStudent[toolindex][gindex] &&
  14579. groupStudent[toolindex][gindex][9] &&
  14580. groupJson.islock == 2
  14581. }"
  14582. ><span
  14583. class="updateChairBtn"
  14584. @click="
  14585. updateGroupChair(
  14586. groupStudent[toolindex][gindex] &&
  14587. groupStudent[toolindex][gindex][9]
  14588. )
  14589. "
  14590. >修改</span
  14591. ></span
  14592. ><span>{{
  14593. groupStudent[toolindex][gindex] &&
  14594. groupStudent[toolindex][gindex][9]
  14595. ? groupStudent[toolindex][gindex] &&
  14596. groupStudent[toolindex][gindex][9].name
  14597. : "空位置"
  14598. }}</span>
  14599. </div>
  14600. </div>
  14601. </div>
  14602. </div>
  14603. </div>
  14604. </div>
  14605. <span slot="footer" class="dialog-footer">
  14606. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14607. </span>
  14608. </el-dialog>
  14609. <el-dialog
  14610. title="分组设置"
  14611. :visible.sync="dialogVisibleGroup2"
  14612. :append-to-body="true"
  14613. width="650px"
  14614. :before-close="handleClose"
  14615. class="dialog_diy"
  14616. >
  14617. <div class="groupBox">
  14618. <div v-if="groupJson2.group" class="groupContent">
  14619. <div class="groupTitle">请设置小组数量及名称</div>
  14620. <div
  14621. v-for="(item, index) in groupJson2.group"
  14622. :key="index"
  14623. class="groupName"
  14624. >
  14625. <span class="groupn">第{{ index + 1 }}组名称:</span>
  14626. <el-input
  14627. v-model="item.name"
  14628. placeholder="请输入名称..."
  14629. style="width: 250px"
  14630. ></el-input>
  14631. <!-- <div class="groupBtn">
  14632. <el-button type="primary" size="small" @click="addGroup(index)">
  14633. 添加</el-button>
  14634. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14635. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14636. </div> -->
  14637. </div>
  14638. </div>
  14639. <div class="groupContent">
  14640. <div class="groupTitle">请设置每组人数</div>
  14641. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14642. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14643. <el-input
  14644. v-model="groupJson2.number"
  14645. style="width: 150px"
  14646. placeholder="请输入2-10的数字"
  14647. @change="numberPan"
  14648. ></el-input>
  14649. </div>
  14650. </div>
  14651. <span slot="footer" class="dialog-footer">
  14652. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  14653. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  14654. </span>
  14655. </el-dialog>
  14656. <el-dialog
  14657. title="作业提交"
  14658. :visible.sync="dialogVisibleGroupWork"
  14659. :append-to-body="true"
  14660. width="500px"
  14661. :before-close="handleClose"
  14662. class="dialog_change"
  14663. >
  14664. <div class="marginT">
  14665. <div>上传文件</div>
  14666. <div
  14667. class="chapter_add"
  14668. @click="addImg($event)"
  14669. v-if="studyJuri[0].cover.length == 0"
  14670. >
  14671. <div class="up_photo">
  14672. <img src="../../assets/icon/uploadImg.png" alt />
  14673. </div>
  14674. <!-- <input
  14675. type="file"
  14676. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14677. style="display: none"
  14678. @change="beforeUpload1($event, 1)"
  14679. /> -->
  14680. <input
  14681. type="file"
  14682. accept="*"
  14683. style="display: none"
  14684. @change="beforeUpload1($event, 1)"
  14685. />
  14686. </div>
  14687. <!-- capture="camera" -->
  14688. <div
  14689. class="chapter_add"
  14690. style="
  14691. display: flex;
  14692. width: 100%;
  14693. flex-direction: row;
  14694. flex-wrap: wrap;
  14695. justify-content: flex-start;
  14696. padding: 15px 0;
  14697. "
  14698. v-if="studyJuri[0].cover.length > 0"
  14699. >
  14700. <div class="upCover">
  14701. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14702. <img :src="word" alt v-else-if="fileType == 1" />
  14703. <img :src="video" alt v-else-if="fileType == 2" />
  14704. <img :src="word2" alt v-else-if="fileType == 3" />
  14705. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14706. <div class="deleteWord" @click="clean(1)">
  14707. <img src="../../assets/icon/deleteWorks.png" alt />
  14708. </div>
  14709. </div>
  14710. </div>
  14711. </div>
  14712. <div
  14713. class="upload_send"
  14714. @click="addCourseWorks2(taskCount)"
  14715. v-if="!proVisible"
  14716. >
  14717. 提交
  14718. </div>
  14719. </el-dialog>
  14720. <el-dialog
  14721. title="修改分组"
  14722. :visible.sync="dialogVisibleUpdateGroup"
  14723. :append-to-body="true"
  14724. width="350px"
  14725. :before-close="handleClose"
  14726. class="dialog_diy"
  14727. >
  14728. <div>
  14729. <h2>
  14730. {{ this.updateGroupUser.name }}
  14731. </h2>
  14732. <div style="color: rgb(171 171 171); margin-top: 10px">
  14733. 请选择要进入的分组
  14734. </div>
  14735. <el-radio-group v-model="checkChair">
  14736. <el-radio
  14737. style="display: block; margin-top: 20px"
  14738. v-for="(item, index) in updateGroupArray"
  14739. :label="item.label"
  14740. :key="index"
  14741. >{{ item.name }}</el-radio
  14742. >
  14743. </el-radio-group>
  14744. </div>
  14745. <span slot="footer" class="dialog-footer">
  14746. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  14747. <el-button type="primary" @click="updateChair">确定</el-button>
  14748. </span>
  14749. </el-dialog>
  14750. <el-dialog
  14751. title="移除组员"
  14752. :visible.sync="dialogVisibleDeleteGroup"
  14753. :append-to-body="true"
  14754. width="350px"
  14755. :before-close="handleClose"
  14756. class="dialog_diy"
  14757. >
  14758. <div>
  14759. <h2>
  14760. {{ this.deleteGroupArray.name }}
  14761. </h2>
  14762. <div style="color: rgb(171 171 171); margin-top: 10px">
  14763. 请选择要删除的组员
  14764. </div>
  14765. <el-checkbox-group v-model="checkDeleteGroup">
  14766. <el-checkbox
  14767. style="display: flex; margin-top: 20px"
  14768. v-for="(item, index) in deleteGroupUser"
  14769. :label="item.userid"
  14770. :key="index"
  14771. >{{ item.name }}</el-checkbox
  14772. >
  14773. </el-checkbox-group>
  14774. </div>
  14775. <span slot="footer" class="dialog-footer">
  14776. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  14777. <el-button type="primary" @click="deleteChair">确定</el-button>
  14778. </span>
  14779. </el-dialog>
  14780. <el-dialog
  14781. title="批量上传"
  14782. :visible.sync="dialogVisiblePl"
  14783. :append-to-body="true"
  14784. width="700px"
  14785. :before-close="handleClose"
  14786. class="dialog_change"
  14787. >
  14788. <div class="marginT">
  14789. <div class="plworkBox">
  14790. <div
  14791. class="chapter_add"
  14792. style="
  14793. display: flex;
  14794. width: 150px;
  14795. flex-direction: row;
  14796. flex-wrap: wrap;
  14797. justify-content: flex-start;
  14798. margin: 0 10px 10px 0;
  14799. "
  14800. v-for="(item, index) in plworkFile"
  14801. :key="index"
  14802. >
  14803. <div class="upCover2">
  14804. <img
  14805. :src="item.url"
  14806. alt
  14807. v-if="item.fileType == 1"
  14808. @click="previewImg(item.url)"
  14809. />
  14810. <img :src="word" alt v-else-if="item.fileType == 4" />
  14811. <img :src="video" alt v-else />
  14812. <!-- <span class="picName">{{ item.name }}</span> -->
  14813. <!-- <el-input
  14814. v-model="item.username"
  14815. placeholder="请输入学生名字"
  14816. style="margin-top: 10px"
  14817. ></el-input> -->
  14818. <div
  14819. class="pl_select_box"
  14820. @click="
  14821. getUpdateMore(true, checkUpload(), item.username, index)
  14822. "
  14823. >
  14824. {{ getSName(item.username) }}
  14825. </div>
  14826. <!-- <el-select
  14827. style="margin-top: 10px"
  14828. v-model="item.username"
  14829. filterable
  14830. allow-create
  14831. placeholder="请选择学生"
  14832. >
  14833. <el-option
  14834. v-for="item1 in checkUpload()"
  14835. :key="item1.userid"
  14836. :label="item1.name ? item1.name : item1.username"
  14837. :value="item1.userid"
  14838. >
  14839. </el-option>
  14840. </el-select> -->
  14841. <div class="deleteWord" @click="clean2(index)">
  14842. <img src="../../assets/icon/deleteWorks.png" alt />
  14843. </div>
  14844. </div>
  14845. </div>
  14846. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14847. <div class="up_photo2">
  14848. <img src="../../assets/icon/plwork.png" alt />
  14849. <span>点击上传文件</span>
  14850. </div>
  14851. <input
  14852. type="file"
  14853. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14854. multiple="multiple"
  14855. style="display: none"
  14856. @change="beforeUpload3($event, 6)"
  14857. />
  14858. </div>
  14859. </div>
  14860. </div>
  14861. <!-- capture="camera" -->
  14862. <div
  14863. class="upload_send"
  14864. @click="addCourseWorksPl(taskCount)"
  14865. v-if="!proVisible2"
  14866. >
  14867. 提交
  14868. </div>
  14869. </el-dialog>
  14870. <el-dialog
  14871. title="修改名称"
  14872. :visible.sync="dialogVisibleSname"
  14873. width="500px"
  14874. :before-close="handleClose"
  14875. class="dialog_diy"
  14876. center
  14877. >
  14878. <div
  14879. style="
  14880. text-align: center;
  14881. display: flex;
  14882. align-items: center;
  14883. justify-content: center;
  14884. "
  14885. >
  14886. <span class="tian1">名称</span>
  14887. <div
  14888. class="pl_select_box"
  14889. style="margin-left: 10px; width: 200px"
  14890. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  14891. >
  14892. {{ getSName(worksSName) }}
  14893. </div>
  14894. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  14895. placeholder="请选择学生">
  14896. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  14897. :value="item.userid">
  14898. </el-option>
  14899. </el-select> -->
  14900. <!-- <el-input
  14901. v-model="worksSName"
  14902. style="width: 250px; margin: 15px 0px"
  14903. ></el-input> -->
  14904. </div>
  14905. <span slot="footer" class="dialog-footer">
  14906. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  14907. <el-button type="primary" @click="updateName">确 定</el-button>
  14908. </span>
  14909. </el-dialog>
  14910. <el-dialog
  14911. title="英语写作"
  14912. :visible.sync="engDialogVisible"
  14913. :append-to-body="true"
  14914. width="800px"
  14915. :before-close="handleClose"
  14916. class="dialog_diy"
  14917. >
  14918. <onlineWrite
  14919. v-if="engDialogVisible"
  14920. :englishList="englishList"
  14921. :myAnswerList1="myAnswerList1"
  14922. ref="engJson"
  14923. ></onlineWrite>
  14924. <span slot="footer" class="dialog-footer" style="text-align: center;">
  14925. <el-button @click="engDialogVisible = false">取 消</el-button>
  14926. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  14927. </span>
  14928. </el-dialog>
  14929. <el-dialog
  14930. title="英语写作"
  14931. :visible.sync="engUpdateDialogVisible"
  14932. :append-to-body="true"
  14933. width="800px"
  14934. :before-close="handleClose"
  14935. class="dialog_diy fullStyle"
  14936. >
  14937. <div class="engUpBox">
  14938. <div class="engUpTop">
  14939. <div class="engTitle">
  14940. <div>作文题目:</div>
  14941. <div>{{ englishList1.engTitle }}</div>
  14942. </div>
  14943. <div class="engText">
  14944. <div>作文内容:</div>
  14945. <div
  14946. class="cont"
  14947. v-html="englishList1.englishText"
  14948. style="white-space: pre-line;"
  14949. @click="checkImg(getImgList(englishList1.englishText))"
  14950. ></div>
  14951. </div>
  14952. </div>
  14953. <div
  14954. class="correctBox"
  14955. :style="{ height: `calc(100% - ${topHeight}px)` }"
  14956. >
  14957. <div class="oldBox">
  14958. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  14959. <div class="oldText">
  14960. <div class="detailBox">
  14961. <div class="oldDetail">
  14962. <div>标题:</div>
  14963. <div>{{ oldEnglishJson.engTitle }}</div>
  14964. </div>
  14965. <div class="oldDetail1">
  14966. <div>正文:</div>
  14967. <div
  14968. v-html="oldEnglishJson.engText"
  14969. style="white-space: pre-line;"
  14970. ></div>
  14971. </div>
  14972. <div
  14973. class="oldDetail"
  14974. v-if="
  14975. oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0
  14976. "
  14977. >
  14978. <div>图片:</div>
  14979. <div class="oldImg">
  14980. <img :src="oldEnglishJson.imgList[0].url" alt="" />
  14981. </div>
  14982. </div>
  14983. </div>
  14984. </div>
  14985. </div>
  14986. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  14987. <div class="oldMes" style="background: #aacaff;">
  14988. {{ userMes[0].username }}
  14989. </div>
  14990. <div class="oldText">
  14991. <div class="detailBox" style="position: relative;">
  14992. <div class="oldDetail">
  14993. <div>标题:</div>
  14994. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14995. <div v-else v-html="newEnglishList.engTitle"></div>
  14996. </div>
  14997. <div class="oldDetail">
  14998. <div>正文:</div>
  14999. <el-input
  15000. v-if="greyType"
  15001. type="textarea"
  15002. :rows="10"
  15003. resize="none"
  15004. v-model="newEnglishList.engText"
  15005. @input="gx"
  15006. />
  15007. <correctText
  15008. :newText="newEnglishList.engText"
  15009. :oldData="oldEnglishJson.engText"
  15010. />
  15011. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  15012. </div>
  15013. <div style="position: absolute;bottom: -25px;">
  15014. 注:红色划线字为删除,绿色背景白色字为新添加.
  15015. </div>
  15016. <el-button
  15017. @click="isUpdateCorrect(newEnglishList.engText, 1)"
  15018. class="correctCss"
  15019. :style="{ right: greyType == false ? '0' : '80px' }"
  15020. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15021. >
  15022. <el-button
  15023. @click="aiCorrect(newEnglishList.engText, 1)"
  15024. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15025. v-if="!greyType"
  15026. >AI批注</el-button
  15027. >
  15028. <el-button
  15029. @click="addCorrect"
  15030. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15031. v-if="greyType"
  15032. >确定</el-button
  15033. >
  15034. </div>
  15035. </div>
  15036. </div>
  15037. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15038. <div
  15039. class="oldMes"
  15040. style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;"
  15041. v-if="newEnglishList1.length > 0"
  15042. >
  15043. <div
  15044. v-if="isNoUserid"
  15045. class="allName"
  15046. :style="{
  15047. minWidth: `calc(100% / ${engListLength})`,
  15048. background: newEngIndex == -1 ? '#aacaff' : ''
  15049. }"
  15050. @click="setEngText(-1)"
  15051. style="background: #aacaff;"
  15052. >
  15053. {{ userMes[0].username }}
  15054. </div>
  15055. <div
  15056. v-for="(item, index) in newEnglishList1"
  15057. :key="index"
  15058. class="allName"
  15059. :style="{
  15060. minWidth: `calc(100% / ${engListLength})`,
  15061. background: index == newEngIndex ? '#aacaff' : ''
  15062. }"
  15063. @click="setEngText(index)"
  15064. >
  15065. {{ item.username }}
  15066. </div>
  15067. </div>
  15068. <div class="oldMes" style="background: #aacaff;" v-else>
  15069. {{ userMes[0].username }}
  15070. </div>
  15071. <div
  15072. class="oldText"
  15073. v-if="
  15074. newEngIndex == -1 &&
  15075. isNoUserid == true &&
  15076. newEnglishList1.length
  15077. "
  15078. >
  15079. <div class="detailBox" style="position: relative;">
  15080. <div class="oldDetail">
  15081. <div>标题:</div>
  15082. <el-input
  15083. v-if="greyType"
  15084. v-model="oldEnglishJson1.engTitle"
  15085. />
  15086. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15087. </div>
  15088. <div class="oldDetail">
  15089. <div>正文:</div>
  15090. <el-input
  15091. v-if="greyType"
  15092. type="textarea"
  15093. :rows="10"
  15094. resize="none"
  15095. v-model="oldEnglishJson1.engText"
  15096. @input="gx"
  15097. />
  15098. <correctText
  15099. v-else
  15100. :newText="oldEnglishJson1.engText"
  15101. :oldData="oldEnglishJson.engText"
  15102. />
  15103. </div>
  15104. <div style="position: absolute;bottom: -25px;">
  15105. 注:红色划线字为删除,绿色背景白色字为新添加.
  15106. </div>
  15107. <el-button
  15108. @click="isUpdateCorrect(oldEnglishJson1.engText, 2)"
  15109. class="correctCss"
  15110. :style="{ right: greyType == false ? '0' : '80px' }"
  15111. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15112. >
  15113. <el-button
  15114. @click="aiCorrect(oldEnglishJson1.engText, 2)"
  15115. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15116. v-if="!greyType"
  15117. >AI批注</el-button
  15118. >
  15119. <el-button
  15120. @click="addCorrect"
  15121. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15122. v-if="greyType"
  15123. >确定</el-button
  15124. >
  15125. </div>
  15126. </div>
  15127. <div class="oldText" v-else-if="newEngIndex == -1">
  15128. <div class="detailBox" style="position: relative;">
  15129. <div class="oldDetail">
  15130. <div>标题:</div>
  15131. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15132. <div v-else v-html="newEnglishList.engTitle"></div>
  15133. </div>
  15134. <div class="oldDetail">
  15135. <div>正文:</div>
  15136. <el-input
  15137. v-if="greyType"
  15138. type="textarea"
  15139. :rows="10"
  15140. resize="none"
  15141. v-model="newEnglishList.engText"
  15142. @input="gx"
  15143. />
  15144. <correctText
  15145. v-else
  15146. :newText="newEnglishList.engText"
  15147. :oldData="oldEnglishJson.engText"
  15148. />
  15149. </div>
  15150. <div style="position: absolute;bottom: -25px;">
  15151. 注:红色划线字为删除,绿色背景白色字为新添加.
  15152. </div>
  15153. <el-button
  15154. @click="isUpdateCorrect(newEnglishList.engText, 3)"
  15155. class="correctCss"
  15156. :style="{ right: greyType == false ? '0' : '80px' }"
  15157. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15158. >
  15159. <el-button
  15160. @click="aiCorrect(newEnglishList.engText, 3)"
  15161. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15162. v-if="!greyType"
  15163. >AI批注</el-button
  15164. >
  15165. <el-button
  15166. @click="addCorrect"
  15167. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15168. v-if="greyType"
  15169. >确定</el-button
  15170. >
  15171. </div>
  15172. </div>
  15173. <div
  15174. class="oldText"
  15175. v-else-if="newEngIndex > -1 && newEnglishList1.length > 0"
  15176. >
  15177. <div class="detailBox" style="position: relative;">
  15178. <div class="oldDetail">
  15179. <div>标题:</div>
  15180. <div
  15181. v-if="
  15182. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15183. "
  15184. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15185. ></div>
  15186. <div v-else>
  15187. <el-input
  15188. v-if="greyType"
  15189. v-model="newEnglishList1[newEngIndex].cWork.engTitle"
  15190. />
  15191. <div
  15192. v-else
  15193. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15194. ></div>
  15195. </div>
  15196. </div>
  15197. <div class="oldDetail">
  15198. <div>正文:</div>
  15199. <correctText
  15200. v-if="
  15201. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15202. "
  15203. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15204. :oldData="oldEnglishJson.engText"
  15205. />
  15206. <div v-else>
  15207. <el-input
  15208. v-if="greyType"
  15209. type="textarea"
  15210. :rows="10"
  15211. resize="none"
  15212. v-model="newEnglishList1[newEngIndex].cWork.engText"
  15213. @input="gx"
  15214. />
  15215. <correctText
  15216. v-else
  15217. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15218. :oldData="oldEnglishJson.engText"
  15219. />
  15220. </div>
  15221. </div>
  15222. <div style="position: absolute;bottom: -25px;">
  15223. 注:红色划线字为删除,绿色背景白色字为新添加.
  15224. </div>
  15225. <el-button
  15226. @click="
  15227. isUpdateCorrect(
  15228. newEnglishList1[newEngIndex].cWork.engText,
  15229. 4
  15230. )
  15231. "
  15232. class="correctCss"
  15233. :style="{ right: greyType == false ? '0' : '80px' }"
  15234. v-if="
  15235. !greyType &&
  15236. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15237. "
  15238. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15239. >
  15240. <el-button
  15241. @click="
  15242. aiCorrect(newEnglishList1[newEngIndex].cWork.engText, 4)
  15243. "
  15244. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15245. v-if="
  15246. !greyType &&
  15247. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15248. "
  15249. >AI批注</el-button
  15250. >
  15251. <el-button
  15252. @click="addCorrect"
  15253. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15254. v-if="greyType"
  15255. >确定</el-button
  15256. >
  15257. </div>
  15258. </div>
  15259. </div>
  15260. </div>
  15261. </div>
  15262. <span slot="footer" class="dialog-footer">
  15263. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15264. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15265. </span>
  15266. </el-dialog>
  15267. <englishEva
  15268. :evaEngJson="evaEngJson"
  15269. :engEvaDialogVisible.sync="engEvaDialogVisible"
  15270. :uid="userid"
  15271. :tType="tType"
  15272. :courseDetail="courseDetail"
  15273. ></englishEva>
  15274. <interVideo
  15275. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15276. :videoJson="videoJson"
  15277. :userid="userid"
  15278. :id="id"
  15279. :courseType="courseType"
  15280. :taskCount="taskCount"
  15281. :toolindex="toolindex"
  15282. :videoType="videoType"
  15283. ></interVideo>
  15284. <UpdateMore
  15285. :dialogVisibleMember.sync="dialogVisibleMember"
  15286. :cList="uploadStudentJuri"
  15287. :userid="userid"
  15288. :searchTN="worksSName2"
  15289. @setPlname="setPlname"
  15290. ></UpdateMore>
  15291. <!-- <wordCloud
  15292. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15293. :data="wordCloudData"
  15294. ></wordCloud> -->
  15295. <el-dialog
  15296. title="词云"
  15297. :visible.sync="dialogVisibleWordCloud"
  15298. width="30%"
  15299. class="dialog_diy"
  15300. :before-close="handleClose">
  15301. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15302. </el-dialog>
  15303. <el-dialog
  15304. title="挑人"
  15305. :visible.sync="dialogVisiblePickPeople"
  15306. width="650px"
  15307. :before-close="handleClose"
  15308. class="dialog_diy"
  15309. center
  15310. >
  15311. <div class="pick_box">
  15312. <div
  15313. class="noWorksName"
  15314. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15315. v-for="(item, index) in uploadStudentJuri"
  15316. :key="index"
  15317. @click="pickStudent(item)"
  15318. >
  15319. {{ item.name }}
  15320. </div>
  15321. </div>
  15322. </el-dialog>
  15323. <EnglishVoice
  15324. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  15325. :englishVoiceJson="englishVoiceJson"
  15326. :userid="userid"
  15327. :id="id"
  15328. :courseType="courseType"
  15329. :taskCount="taskCount"
  15330. :toolindex="toolindex"
  15331. @selectSWorks="selectSWorks"
  15332. @selectStudent="selectStudent"
  15333. :englishVoiceJsonWork="englishVoiceJsonWork"
  15334. ></EnglishVoice>
  15335. <checkEnglishVoice
  15336. :englishVoiceJson="englishVoiceJson"
  15337. :userid="userid"
  15338. :dialogVisibleENScore.sync="dialogVisibleENScore"
  15339. :commentDetail="commentDetail"
  15340. :courseDetail="courseDetail"
  15341. :wScore="wScore"
  15342. :scoreDetail="scoreDetail"
  15343. @selectSWorks="selectSWorks"
  15344. @selectStudent="selectStudent"
  15345. ></checkEnglishVoice>
  15346. <el-dialog
  15347. title="教师评分"
  15348. :visible.sync="markScoreVisible"
  15349. :append-to-body="true"
  15350. width="1000px"
  15351. :fullscreen="markfullscreen"
  15352. :before-close="markScorehandleClose"
  15353. class="markScore_diy"
  15354. >
  15355. <div slot="title">
  15356. <div class="markScore_diyTit">
  15357. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15358. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15359. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15360. </div>
  15361. </div>
  15362. </div>
  15363. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15364. <!-- @updateDocSco="updateDocSco" -->
  15365. <markDialog
  15366. :key="markScoreVisible.toString()"
  15367. :uid="markScoreUid"
  15368. :toolIndex="markScoretoolIndex"
  15369. :stage="courseType"
  15370. :task="taskCount"
  15371. :taskDetail="
  15372. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15373. "
  15374. :tool="toolListS"
  15375. :languageSetting="languageSetting"
  15376. :scoTit="markScoreTit"
  15377. :tType="tType"
  15378. :sIsOpen="sIsOpen"
  15379. :markScoreworksStudent="markScoreworksStudent"
  15380. :markScoreVisible="markScoreVisible"
  15381. ></markDialog>
  15382. </el-dialog>
  15383. <!-- 查看Txt,md等文件 -->
  15384. <el-dialog
  15385. title="文件预览"
  15386. :visible.sync="dialogVisibleTxt"
  15387. width="50%"
  15388. :before-close="handleCloseTxt"
  15389. class="dialog_diy"
  15390. :class="{ fullStyle: full }"
  15391. >
  15392. <div slot="title" class="header-title">
  15393. <div style="color: #fff">文件预览</div>
  15394. <div style="position: absolute; top: 19px; right: 50px">
  15395. <img
  15396. src="../../assets/full.png"
  15397. style="height: 16px; cursor: pointer"
  15398. alt=""
  15399. @click="fullTools"
  15400. />
  15401. </div>
  15402. </div>
  15403. <div>{{ TxtMd }}</div>
  15404. </el-dialog>
  15405. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15406. <choseWorksDetailDialog
  15407. ref="choseWorksDetailDialogRef"
  15408. :worksStudentData="worksStudent"
  15409. :noWorksSData="noWorksS"
  15410. :chapInfoListData="chapInfoList"
  15411. :courseType="courseType"
  15412. :taskCount="taskCount"
  15413. :tType="tType"
  15414. :sIsOpen="sIsOpen"
  15415. :courseDetail="courseDetail"
  15416. :groupStudent="groupStudent"
  15417. @selectSLook="selectSLook"
  15418. @selectSWorks="selectSWorks"
  15419. @selectStudent="selectStudent"
  15420. @deleteWorks="deleteWorks"
  15421. @openTools="openTools"
  15422. @openWord="openWord"
  15423. @openScore="openScore"
  15424. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15425. />
  15426. <el-dialog
  15427. :visible.sync="confirmOpenDig"
  15428. width="500px"
  15429. :modal="false"
  15430. class="confirmOpenDigCss dialog_diyCopy"
  15431. :before-close="handleClose">
  15432. <div style="display: flex;align-items: center;">
  15433. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15434. <span>“{{ courseDetail.title }}”开课啦</span>
  15435. </div>
  15436. <div style="margin: 20px 0 35px;">
  15437. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  15438. <div>要认真听讲哦~</div>
  15439. </div>
  15440. <div style="text-align: center;">
  15441. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  15442. </div>
  15443. </el-dialog>
  15444. </div>
  15445. </template>
  15446. <script>
  15447. import "../../common/aws-sdk-2.235.1.min.js";
  15448. // import pdf from "../components/pdf3";
  15449. import pdf from "../components/vpdf";
  15450. import AskStatic from "../components/askStatic";
  15451. import AskStatic2 from "../components/askStatic2";
  15452. import AnswerData2 from "../components/answerData2";
  15453. import AnswerData from "../components/answerData";
  15454. import EditorBar from "../tools/wangEnduit.vue";
  15455. import Table from "../tools/table.vue";
  15456. import Time from "../tools/time.vue";
  15457. import Mind from "../tools/jsmind.vue";
  15458. import Sunburst from "../tools/sunburst";
  15459. import SeeBoard from "../tools/seeBoard";
  15460. import * as imageConversion from "image-conversion";
  15461. import Audio from "../components/audio.vue";
  15462. import ImgDraw from "../tools/imgDraw/imgDraw";
  15463. import { Empty } from "element-ui";
  15464. import RecordRTC from "recordrtc";
  15465. import interVideo from "../interVideo/index.vue";
  15466. import UpdateMore from "../updateMore/updateMore.vue";
  15467. import wordCloud from "../wordCloud/index.vue";
  15468. import axios from "axios";
  15469. import JSZip from "jszip";
  15470. import FileSaver from "file-saver";
  15471. import onlineWrite from "./commpont/onlineWrite";
  15472. import englishEva from "../components/englishEva";
  15473. import * as Diff from "diff";
  15474. import EnglishVoice from "../EnglishVoice2/index.vue";
  15475. import checkEnglishVoice from "../checkEnglishVoice/index.vue";
  15476. import correctText from "../components/correctText.vue";
  15477. import scoreItem from "../scoreList/scoreItem.vue";
  15478. import scoreZong from "../scoreZong/index.vue";
  15479. import classRoomHelper from "../classRoomHelper/index.vue";
  15480. import markScore from "./commpont/markScore";
  15481. import markDialog from "./commpont/markDialog";
  15482. import evaTable from "./commpont/evaTable";
  15483. import { v4 as uuidv4 } from "uuid";
  15484. import statisticalAnalysis from "../components/statisticalAnalysis.vue";
  15485. import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
  15486. import choseWordCloud from '../components/choseWordCloud.vue'
  15487. var OpenCC = require("opencc-js");
  15488. let converter = OpenCC.Converter({
  15489. from: "hk",
  15490. to: "cn"
  15491. });
  15492. const getFile = url => {
  15493. return new Promise((resolve, reject) => {
  15494. var credentials = {
  15495. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15496. secretAccessKey: "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"
  15497. }; //秘钥形式的登录上传
  15498. window.AWS.config.update(credentials);
  15499. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15500. let url2 = url;
  15501. let _url2 = "";
  15502. if (
  15503. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15504. ) {
  15505. _url2 = url2.split(
  15506. "https://view.officeapps.live.com/op/view.aspx?src="
  15507. )[1];
  15508. } else {
  15509. _url2 = url2;
  15510. }
  15511. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15512. let name = decodeURIComponent(
  15513. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  15514. );
  15515. var params = {
  15516. Bucket: "ccrb",
  15517. Key: name
  15518. };
  15519. s3.getObject(params, function(err, data) {
  15520. if (err) {
  15521. console.log(err, err.stack);
  15522. resolve({ data: 1 });
  15523. } else {
  15524. resolve({ data: data.Body });
  15525. console.log(data);
  15526. } // sxuccessful response
  15527. });
  15528. // axios({
  15529. // method: "get",
  15530. // url,
  15531. // responseType: "blob",
  15532. // })
  15533. // .then((data) => {
  15534. // resolve({ data: data.data });
  15535. // })
  15536. // .catch((error) => {
  15537. // resolve({ data: 1 });
  15538. // // reject(error.toString());
  15539. // });
  15540. });
  15541. };
  15542. export default {
  15543. components: {
  15544. choseWordCloud,
  15545. EditorBar,
  15546. Time,
  15547. pdf,
  15548. AskStatic,
  15549. AskStatic2,
  15550. Mind,
  15551. Sunburst,
  15552. SeeBoard,
  15553. AnswerData2,
  15554. AnswerData,
  15555. Audio,
  15556. ImgDraw,
  15557. Table,
  15558. interVideo,
  15559. UpdateMore,
  15560. wordCloud,
  15561. onlineWrite,
  15562. englishEva,
  15563. EnglishVoice,
  15564. checkEnglishVoice,
  15565. correctText,
  15566. scoreItem,
  15567. classRoomHelper,
  15568. scoreZong,
  15569. markScore,
  15570. markDialog,
  15571. evaTable,
  15572. statisticalAnalysis,
  15573. choseWorksDetailDialog
  15574. },
  15575. data() {
  15576. return {
  15577. wordCloudKey: 0,
  15578. bg: null,
  15579. drawShow: false,
  15580. dialogVisible: false,
  15581. dialogVisiblePl: false,
  15582. commentDialogVisible: false,
  15583. dialogVisibleMember: false,
  15584. dialogVisibleWordCloud: false,
  15585. videoVisible: false,
  15586. isStar: false,
  15587. studentEvalDialogVisible: false,
  15588. studentEvalDialogVisibleTeacher: false,
  15589. dialogVisibleSelect: false,
  15590. dialogVisibleSelectTeacher: false,
  15591. dialogVisibleScore: false,
  15592. dialogVisibleENScore: false,
  15593. dialogVisibleSentence: false,
  15594. dialogVisibleSentenceTeacher: false,
  15595. dialogVisibleSentence1: false,
  15596. dialogVisibleWorks: false,
  15597. dialogVisibleTable: false,
  15598. dialogVisibleTableTeacher: false,
  15599. dialogVisibleWord: false,
  15600. dialogVisibleWordTeacher: false,
  15601. dialogVisibleTable2: false,
  15602. dialogVisibleTable3: false,
  15603. dialogVisibleGroupWork: false,
  15604. dialogVisibleUpdateGroup: false,
  15605. dialogVisibleDeleteGroup: false,
  15606. dialogVisibleSname: false,
  15607. dialogVisibleVideo: false,
  15608. dialogVisiblePickPeople: false,
  15609. engDialogVisible: false,
  15610. engUpdateDialogVisible: false,
  15611. engEvaDialogVisible: false,
  15612. evaEngJson: {
  15613. teacherJson: {},
  15614. studentJson: {},
  15615. message: {}
  15616. },
  15617. isNoUserid: false,
  15618. engListLength: 0,
  15619. engWid: "",
  15620. newEnglishList: {
  15621. engTitle: "",
  15622. engText: ""
  15623. },
  15624. newEnglishList1: [],
  15625. oldEnglishJson: {},
  15626. oldEnglishJson1: {},
  15627. englishList1: {},
  15628. englishList: {},
  15629. myAnswerList1: {},
  15630. topHeight: 0,
  15631. newEngIndex: -1,
  15632. englishToolIndex: 0,
  15633. userMes: {},
  15634. englishToolIndex: 0,
  15635. worksSName: "",
  15636. classJuri: [],
  15637. uploadStudentJuri: [],
  15638. uploadCid: "",
  15639. snameWid: "",
  15640. sStudent: {},
  15641. sTool: "",
  15642. bzText: "",
  15643. commentDetail: [],
  15644. selectAnswer: [],
  15645. videoDetail: {},
  15646. selectJson: {},
  15647. englishList: {},
  15648. topHeight: 0,
  15649. eScore: { eBzText: "", eStar: [] },
  15650. id: this.$route.query.courseId,
  15651. userid: this.$route.query.userid,
  15652. classId: this.$route.query.cid,
  15653. // courseTypeLine: this.$route.query.type,
  15654. oid: this.$route.query.oid,
  15655. org: this.$route.query.org,
  15656. tType: this.$route.query.tType,
  15657. courseType: this.$route.query.type,
  15658. screenType: this.$route.query.screenType,
  15659. tcid2: this.$route.query.tcid,
  15660. tcid: "",
  15661. pptImgUrl: "",
  15662. pptImgUrl1: "",
  15663. commentText: "",
  15664. full: false,
  15665. sIsOpen: false, //允许学生查看所有作业
  15666. IsLookOpen: false, //禁止学生查看所有阶段
  15667. IsFollow: false, //开启跟随模式
  15668. pzDialog: false,
  15669. contentDialog: false,
  15670. mlDialog: false,
  15671. type: 1,
  15672. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15673. sentenceList1: [],
  15674. tableJson: [],
  15675. tableJsonO: [],
  15676. wordJson: [],
  15677. wordJsonO: [],
  15678. vedio: [],
  15679. text: [],
  15680. textList: [],
  15681. line: [],
  15682. lineList: [],
  15683. chapTools: [],
  15684. chapToolList: [],
  15685. file: [],
  15686. fileC: [],
  15687. vedioTime: [],
  15688. upToolImg: "",
  15689. preTime: 0,
  15690. rateList: {
  15691. ca: 0
  15692. },
  15693. rateParams: [],
  15694. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15695. studyJuri: [
  15696. {
  15697. content: "",
  15698. cover: [],
  15699. upVedio: [],
  15700. upFile: []
  15701. }
  15702. ],
  15703. isClose: 0,
  15704. plworkFile: [],
  15705. mr: require("../../assets/vedioPic.png"),
  15706. word: require("../../assets/icon/isWord.png"),
  15707. word2: require("../../assets/icon/word2.png"),
  15708. video: require("../../assets/icon/isVideo.png"),
  15709. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15710. likes: require("../../assets/icon/comment/likes.png"),
  15711. scoreImg: require("../../assets/score.png"),
  15712. courseDetail: {},
  15713. reply: "",
  15714. isSelect: false,
  15715. chapInfo: [],
  15716. chapInfoList: [],
  15717. taskCount: 0,
  15718. imgList: [],
  15719. noImgList: [],
  15720. pzList: [],
  15721. timeWorkList: [],
  15722. PlTextList: [
  15723. "Excellent!",
  15724. "nice!",
  15725. "很有创意!",
  15726. "还不错哦~",
  15727. "继续努力哦~"
  15728. ],
  15729. isClickNav: "",
  15730. navId: "",
  15731. playerOptions: {
  15732. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15733. autoplay: false, //如果true,浏览器准备好时开始回放。
  15734. muted: false, // 默认情况下将会消除任何音频。
  15735. loop: false, // 导致视频一结束就重新开始。
  15736. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15737. language: "zh-CN",
  15738. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15739. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15740. sources: [
  15741. {
  15742. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15743. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15744. }
  15745. ],
  15746. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15747. // poster: dataRes.imgUrl, //你的封面地址
  15748. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15749. controlBar: {
  15750. timeDivider: true, //当前时间和持续时间的分隔符
  15751. durationDisplay: true, //显示持续时间
  15752. remainingTimeDisplay: false, //是否显示剩余时间功能
  15753. fullscreenToggle: true //全屏按钮
  15754. }
  15755. },
  15756. playerOptions1: {
  15757. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15758. autoplay: false, //如果true,浏览器准备好时开始回放。
  15759. muted: false, // 默认情况下将会消除任何音频。
  15760. loop: false, // 导致视频一结束就重新开始。
  15761. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15762. language: "zh-CN",
  15763. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15764. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15765. sources: [
  15766. {
  15767. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15768. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15769. }
  15770. ],
  15771. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15772. // poster: dataRes.imgUrl, //你的封面地址
  15773. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15774. controlBar: {
  15775. timeDivider: true, //当前时间和持续时间的分隔符
  15776. durationDisplay: true, //显示持续时间
  15777. remainingTimeDisplay: false, //是否显示剩余时间功能
  15778. fullscreenToggle: true //全屏按钮
  15779. }
  15780. },
  15781. playerO: {},
  15782. noneBtnImg: false,
  15783. proVisible: false,
  15784. proVisible2: false,
  15785. progress: 0,
  15786. isFinishSize: 0,
  15787. isAllSize: 0,
  15788. questionAnswer: "",
  15789. answerQ: "", //问答标题
  15790. rateJson: [],
  15791. wbCount: 0,
  15792. wordCount: 0,
  15793. mindCount: 0,
  15794. askCount: 0,
  15795. noteCount: 0,
  15796. mindNetWorkCount: 0,
  15797. libraryCount: 0,
  15798. workCount: 0,
  15799. timeCount: 0,
  15800. answerCount: 0,
  15801. trainCount: 0,
  15802. evalCount: 0,
  15803. dialogImageUrl: "",
  15804. pictureDialog: false,
  15805. toolTypeList: [],
  15806. dialogVisible1: false,
  15807. dialogVisible2: false,
  15808. dialogVisible3: false,
  15809. dialogVisible6: false,
  15810. dialogVisible4: false,
  15811. isNoHomeWork: false,
  15812. dialogVisible5: false,
  15813. dialogVisible5Teacher: false,
  15814. dialogVisibleChoice: false,
  15815. dialogVisibleChoiceTeacher: false,
  15816. answerDialogVisible: false,
  15817. answerDialogVisibleTeacher: false,
  15818. juriVisible: false,
  15819. timeDialogVisible: false,
  15820. replyDialogVisible: false,
  15821. toolDialogVisible: false,
  15822. replyIndex: 0,
  15823. replyPid: "",
  15824. radio: [],
  15825. isAsk: false,
  15826. askJson: {
  15827. askCount: 1,
  15828. askTitle: "",
  15829. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  15830. },
  15831. testJson: {},
  15832. videoType: 0,
  15833. checkJson: [],
  15834. askList: [],
  15835. answerList: [],
  15836. navList: [],
  15837. addPzDialog: false,
  15838. pzConText: "",
  15839. worksStudent: [],
  15840. isCloseList: [],
  15841. workStudent: [],
  15842. groupStudent: [],
  15843. groupStudentUid: [],
  15844. noWorksS: [],
  15845. isWorksS: [],
  15846. noWorksStudent: [],
  15847. toolindex: 0,
  15848. toolDetailIndex: null,
  15849. groupIndex: 0,
  15850. workTypeB: false,
  15851. workTypeC: false,
  15852. isAnswer: false,
  15853. isHovered: false,
  15854. isHovered1: false,
  15855. isHovered2: false,
  15856. commentTagShow: 0,
  15857. timer: null,
  15858. timer2: null,
  15859. opertimer: null,
  15860. showType: 0,
  15861. fileType: 0,
  15862. showPDF: false,
  15863. noteName: "",
  15864. evaJuri: [],
  15865. evalua: "",
  15866. eTitle: "",
  15867. eName: "",
  15868. eJson: {},
  15869. fid: "", //一级
  15870. sid: "", //二级
  15871. tid: "", //二级
  15872. typeMode: 1,
  15873. eJSONNum: 0,
  15874. Etype: 1,
  15875. data: {
  15876. meta: {
  15877. name: "example",
  15878. author: "dd@163.com",
  15879. version: "0.2"
  15880. },
  15881. format: "node_array",
  15882. data: [{ id: "root", isroot: true, topic: "" }]
  15883. },
  15884. fullDialogVisible: false,
  15885. fulltype: "",
  15886. fullUrl: "",
  15887. commentIndexJson: {},
  15888. Stbodywidth: 0,
  15889. ispzType: 0,
  15890. pzType: 1,
  15891. wScore: 0,
  15892. scoreDetail: "",
  15893. videoStart: false,
  15894. recorder: null,
  15895. groupJson: {},
  15896. islock: false,
  15897. groupJson2: {},
  15898. dialogVisibleGroup: false,
  15899. dialogVisibleGroup2: false,
  15900. updateGroupArray: [],
  15901. updateGroupUser: {},
  15902. deleteGroupUser: [],
  15903. deleteGroupArray: {},
  15904. checkChair: "",
  15905. checkDeleteGroup: [],
  15906. inviteCode: "",
  15907. courseGroupStudent: [],
  15908. courseGroupStudentUid: [],
  15909. courseGroup: {},
  15910. isGroup: false,
  15911. toolIndex: null,
  15912. tool: {},
  15913. isWorkTool: [
  15914. 16,
  15915. 32,
  15916. 57,
  15917. 4,
  15918. 45,
  15919. 15,
  15920. 1,
  15921. 3,
  15922. 6,
  15923. 7,
  15924. 26,
  15925. 41,
  15926. 47,
  15927. 48,
  15928. 52,
  15929. 50,
  15930. 40
  15931. ], //, 40
  15932. videoJson: {},
  15933. toolType: 0,
  15934. checktoolArray: [],
  15935. vChapterData: [],
  15936. isUpdateToolDetail: false,
  15937. isUpdateToolDetail1: false,
  15938. updateToolDetailInner: "",
  15939. checkboxList: [],
  15940. plIndex: "",
  15941. worksSName2: "",
  15942. worksSid: "",
  15943. wordCloudData: [],
  15944. isPickStudent: [],
  15945. pzStype: 1,
  15946. downLoading: false,
  15947. greyType: false,
  15948. correctWord: [],
  15949. EnglishVoiceDialog: false,
  15950. englishVoiceJson: {},
  15951. englishVoiceJsonWork: [],
  15952. scoreList: {
  15953. listdata: [],
  15954. isScoreList: []
  15955. },
  15956. classRoomHelperWidth: "85px",
  15957. orgArray: [],
  15958. oidArray: [],
  15959. refreshKey: 0,
  15960. AIloading: [],
  15961. worksStudentCopy: [],
  15962. loopLoading: [],
  15963. markScoreVisible: false,
  15964. markScoretoolIndex: 0,
  15965. markScoreUid: "",
  15966. markScoreTit: {},
  15967. markfullscreen: false,
  15968. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  15969. markScoreworksStudent: [],
  15970. finalMarkList: -1,
  15971. isaiNum: 0,
  15972. dialogVisibleTxt: false,
  15973. TxtMd: "",
  15974. languageSetting: 0, //0中文 1繁体 2英文
  15975. toolListS: [],
  15976. commentDetailCopy: "",
  15977. splitScreenData: {
  15978. isOpen: false,
  15979. userId: "",
  15980. uid: "",
  15981. myUid: "",
  15982. loading: false,
  15983. behavior: null
  15984. },
  15985. confirmOpenDig:false,
  15986. confirmOpenDigData:''
  15987. };
  15988. },
  15989. methods: {
  15990. getAIJ() {
  15991. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  15992. let oid = res.data[0];
  15993. let org = res.data[1];
  15994. let oidArray = [];
  15995. let orgArray = [];
  15996. oid.forEach(i => oidArray.push(i.oid));
  15997. org.forEach(i => orgArray.push(i.oid));
  15998. this.orgArray = orgArray;
  15999. this.oidArray = oidArray;
  16000. });
  16001. },
  16002. // 评分弹框全屏
  16003. markFullScreenBtn() {
  16004. this.markfullscreen = !this.markfullscreen;
  16005. },
  16006. insertMemorandum(_html) {
  16007. //保存行为操作
  16008. //variable
  16009. //btn
  16010. let params = [
  16011. {
  16012. uid: this.userid,
  16013. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16014. content: _html
  16015. }
  16016. ];
  16017. console.log(params);
  16018. this.ajax
  16019. .post(
  16020. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16021. params
  16022. )
  16023. .then(res => {
  16024. if (res.data == 1) {
  16025. console.log("保存操作成功");
  16026. } else {
  16027. console.log("保存操作失败");
  16028. }
  16029. })
  16030. .catch(e => {
  16031. console.log("保存操作失败");
  16032. console.log(e);
  16033. });
  16034. },
  16035. // 获取文档id
  16036. createFileid(url) {
  16037. let _this = this;
  16038. return new Promise((resolve, reject) => {
  16039. try {
  16040. _this.ajax
  16041. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16042. url: url
  16043. })
  16044. .then(res => {
  16045. let _data = res.data.FunctionResponse;
  16046. if (_data.result && _data.result.id) {
  16047. resolve(_data.result.id);
  16048. } else {
  16049. resolve(1);
  16050. }
  16051. })
  16052. .catch(function(error) {
  16053. resolve(1);
  16054. });
  16055. } catch (e) {
  16056. resolve(1);
  16057. }
  16058. });
  16059. },
  16060. // 一键重置
  16061. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16062. let jude = false;
  16063. this.AIloading.forEach((e, index) => {
  16064. if (index == toolIndex) {
  16065. e.forEach(k => {
  16066. if (k.loading == true) jude = true;
  16067. });
  16068. }
  16069. });
  16070. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16071. this.$confirm("确认一键重置?")
  16072. .then(_ => {
  16073. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16074. })
  16075. .catch(_ => {});
  16076. },
  16077. // 一键重置
  16078. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16079. for (let index = 0; index < con.length; index++) {
  16080. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16081. }
  16082. this.$message.success("重置完成");
  16083. // this.refreshAssembly();
  16084. this.worksStudent.forEach((e, index) => {
  16085. if (toolIndex == index) {
  16086. console.log("6666");
  16087. e.forEach((i, inx) => {
  16088. let mk = `markSco${index}${inx}`;
  16089. this.$refs[mk][0].getData();
  16090. });
  16091. }
  16092. });
  16093. },
  16094. // 一键重置
  16095. allEmptySco(uid, stage, task, toolIndex) {
  16096. let params = [
  16097. {
  16098. cid: this.id,
  16099. uid: uid,
  16100. s: stage,
  16101. t: task,
  16102. tool: toolIndex ? toolIndex : ""
  16103. }
  16104. ];
  16105. return new Promise(resolve => {
  16106. this.ajax
  16107. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16108. .then(res => {
  16109. resolve(1);
  16110. })
  16111. .catch(err => {
  16112. console.error(err);
  16113. });
  16114. }).catch(error => {
  16115. console.log(error);
  16116. });
  16117. },
  16118. // AI评分循环打分
  16119. async loopEva(
  16120. con,
  16121. tit,
  16122. stage,
  16123. task,
  16124. toolIndex,
  16125. toolDetail,
  16126. taskDetail,
  16127. toolList
  16128. ) {
  16129. let jude = false;
  16130. this.AIloading.forEach((e, index) => {
  16131. if (index == toolIndex) {
  16132. e.forEach(k => {
  16133. if (k.loading == true) jude = true;
  16134. });
  16135. }
  16136. });
  16137. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16138. this.AIloading.forEach((e, index) => {
  16139. if (index == toolIndex) {
  16140. e.forEach(k => {
  16141. k.loading = true;
  16142. });
  16143. }
  16144. });
  16145. this.loopLoading[toolIndex].loading = true;
  16146. let laws = "";
  16147. let std = "";
  16148. let text = "";
  16149. if (toolList && toolList.eList && toolList.eList.length) {
  16150. for (let i = 0; i < toolList.eList.length; i++) {
  16151. if (toolList.eList[i].isai == 1) {
  16152. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16153. }
  16154. }
  16155. for (let i = 0; i < toolList.eList.length; i++) {
  16156. if (toolList.eList[i].isai == 1) {
  16157. let a = toolList.eList[i].detail;
  16158. if (isNaN(parseFloat(a)) && a) {
  16159. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16160. } else {
  16161. var result = a;
  16162. }
  16163. std += `纬度${i}:“${result}”, \n`;
  16164. }
  16165. }
  16166. for (let i = 0; i < toolList.eList.length; i++) {
  16167. if (toolList.eList[i].isai == 1) {
  16168. let a = toolList.eList[i].detail;
  16169. if (isNaN(parseFloat(a)) && a) {
  16170. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16171. } else {
  16172. var result = a;
  16173. }
  16174. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16175. }
  16176. }
  16177. } else {
  16178. let titRule = 0;
  16179. let titRule2 = 0;
  16180. tit.forEach((e, index) => {
  16181. if (!e.isai) {
  16182. e.isai = 1;
  16183. }
  16184. });
  16185. tit.forEach((e, index) => {
  16186. if (e.isai == 1) {
  16187. titRule2++;
  16188. if (e.rule) {
  16189. titRule++;
  16190. }
  16191. }
  16192. });
  16193. if (titRule != titRule2) {
  16194. this.AIloading.forEach((e, index) => {
  16195. if (index == toolIndex) {
  16196. e.forEach(k => {
  16197. k.loading = false;
  16198. });
  16199. }
  16200. });
  16201. this.loopLoading[toolIndex].loading = false;
  16202. this.$message.info("细则努力生成中,请稍候……");
  16203. return;
  16204. }
  16205. for (let i = 0; i < tit.length; i++) {
  16206. if (tit[i].isai == 1) {
  16207. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16208. }
  16209. }
  16210. for (let i = 0; i < tit.length; i++) {
  16211. if (tit[i].isai == 1) {
  16212. let a = tit[i].detail;
  16213. if (isNaN(parseFloat(a)) && a) {
  16214. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16215. } else {
  16216. var result = a;
  16217. }
  16218. std += `纬度${i}:“${result}”, \n`;
  16219. }
  16220. }
  16221. for (let i = 0; i < tit.length; i++) {
  16222. if (tit[i].isai == 1) {
  16223. let a = tit[i].detail;
  16224. if (isNaN(parseFloat(a)) && a) {
  16225. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16226. } else {
  16227. var result = a;
  16228. }
  16229. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16230. }
  16231. }
  16232. }
  16233. let forAllList = [];
  16234. // console.log('con',con)
  16235. for (let i = 0; i < con.length; i++) {
  16236. let _fileid = "";
  16237. let wok = con[i].works;
  16238. // console.log('con',con);
  16239. // console.log('con[i].type',con[i].type);
  16240. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16241. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16242. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16243. _fileid = await this.createFileid(con[i].works);
  16244. } else {
  16245. this.AIloading[toolIndex][i].loading = false;
  16246. continue;
  16247. }
  16248. }
  16249. // console.log('con[i].type',con[i])
  16250. // console.log('con[i].type',con[i].type)
  16251. if (_fileid == 1 || con[i].type == 3) {
  16252. this.AIloading[toolIndex][i].loading = false;
  16253. continue;
  16254. }
  16255. let msg = `NOTICE
  16256. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16257. Language: ${this.getLang()}
  16258. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16259. Instruction: Based on the context, follow "Format example", write content.
  16260. #目标#
  16261. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16262. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16263. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16264. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16265. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16266. #评分资料#
  16267. 评价标准:${std}
  16268. 评价细则:${laws}
  16269. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16270. 任务描述:${taskDetail}
  16271. 工具描述:${toolDetail}
  16272. #输出要求#
  16273. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16274. “评语”控制在150字左右。
  16275. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16276. #输出格式#
  16277. [${text}{'comment':'评语(150个汉字左右)'}]
  16278. `;
  16279. let mk = `markSco${toolIndex}${i}`;
  16280. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16281. msg,
  16282. con[i].userid,
  16283. stage,
  16284. task,
  16285. _fileid,
  16286. con[i].type
  16287. );
  16288. forAllList.push(mkAwit);
  16289. }
  16290. Promise.all(forAllList)
  16291. .then(values => {
  16292. console.log("values", values);
  16293. this.$message({
  16294. message: "评价成功",
  16295. type: "success"
  16296. });
  16297. // this.refreshKey++
  16298. // this.worksStudent.forEach((e,index)=>{
  16299. // if(toolIndex == index){
  16300. // e.forEach((i,inx)=>{
  16301. // let mk = `markSco${index}${inx}`
  16302. // this.$refs[mk][0].getData()
  16303. // })
  16304. // }
  16305. // })
  16306. this.AIloading[toolIndex].forEach(e => {
  16307. e.loading = false;
  16308. });
  16309. this.loopLoading[toolIndex].loading = false;
  16310. })
  16311. .catch(reason => {
  16312. console.error("reasonreasonreasonreasonreason", reason);
  16313. // 输出“失败原因”
  16314. });
  16315. },
  16316. // 获取评价细则
  16317. againEva(i, k) {
  16318. let msg = `NOTICE
  16319. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16320. Language: ${this.getLang()}
  16321. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16322. Instruction: Based on the context, follow "Format example", write content.
  16323. #Context
  16324. ##要求
  16325. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16326. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16327. ##制定标准资料
  16328. 评价维度:${
  16329. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16330. }
  16331. 维度描述:${
  16332. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16333. }
  16334. # Format example
  16335. ==
  16336. 0 星,作业内容与作业要求无关;
  16337. 1 星,没有识别问题和需求;
  16338. 2 星,问题或需求没有被清晰理解或准确识别;
  16339. 3 星,问题或需求的一部分被识别;
  16340. 4 星,问题或需求的大部分被识别;
  16341. 5 星,问题或需求都被识别。
  16342. ==
  16343. `;
  16344. let params = {
  16345. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16346. message: [
  16347. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16348. ],
  16349. session_name: uuidv4(),
  16350. userId: this.userid,
  16351. file_ids: [],
  16352. model: "gpt-4o-2024-11-20"
  16353. };
  16354. // console.log('params',params);
  16355. this.ajax
  16356. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16357. .then(response => {
  16358. let data = response.data.FunctionResponse;
  16359. // console.log("data", data);
  16360. if (data.message) {
  16361. let content = data.message;
  16362. var regex = new RegExp("==([^=]+)==");
  16363. let match = content.match(regex);
  16364. if (match) {
  16365. content = match[1].trim().replaceAll(" ", "");
  16366. // 获取匹配到的内容并去除两端空格
  16367. // console.log('contentInsideDoubleEquals', content);
  16368. if (
  16369. content.indexOf("0星") == -1 ||
  16370. content.indexOf("2星") == -1 ||
  16371. content.indexOf("3星") == -1 ||
  16372. content.indexOf("4星") == -1 ||
  16373. content.indexOf("5星") == -1
  16374. ) {
  16375. console.log("未有星级。");
  16376. this.againEva(i, k);
  16377. return;
  16378. }
  16379. // return
  16380. } else {
  16381. console.log("未找到匹配的内容。");
  16382. this.againEva(i, k);
  16383. return;
  16384. }
  16385. let elist = JSON.parse(
  16386. JSON.stringify(
  16387. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16388. )
  16389. );
  16390. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16391. elist.rule = JSON.parse(
  16392. JSON.stringify(content.replaceAll("#", ""))
  16393. );
  16394. this.$set(
  16395. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16396. k,
  16397. elist
  16398. );
  16399. this.$forceUpdate();
  16400. let params2 = [
  16401. {
  16402. cid: this.id,
  16403. chapters: JSON.stringify(this.chapInfoList),
  16404. uid: this.userid,
  16405. unitIndex: this.courseType
  16406. }
  16407. ];
  16408. this.ajax
  16409. .post(this.$store.state.api + "updateWorkNew4", params2)
  16410. .then(res => {
  16411. this.getCourseDetail(2);
  16412. this.$forceUpdate();
  16413. })
  16414. .catch(err => {
  16415. this.$message.error("网络不佳");
  16416. console.error(err);
  16417. });
  16418. // 进行进一步处理或解析outputContent
  16419. // } else {
  16420. // console.log("No match found for # Output section.");
  16421. // }
  16422. }
  16423. })
  16424. .catch(error => {
  16425. console.log(error);
  16426. });
  16427. },
  16428. // 关闭评分弹框
  16429. markScorehandleClose(done) {
  16430. // this.refreshKey++
  16431. this.worksStudent.forEach((e, index) => {
  16432. if (this.markScoretoolIndex == index) {
  16433. e.forEach((i, inx) => {
  16434. let mk = `markSco${index}${inx}`;
  16435. if (this.$refs[mk] && this.$refs[mk][0]) {
  16436. this.$refs[mk][0].getData();
  16437. }
  16438. });
  16439. }
  16440. });
  16441. done();
  16442. },
  16443. // 关闭txtMd预览弹框
  16444. handleCloseTxt(done) {
  16445. this.TxtMd = "";
  16446. done();
  16447. },
  16448. // Txt,Md作业查看
  16449. lookTxt(val) {
  16450. this.dialogVisibleTxt = true;
  16451. this.TxtMd = "";
  16452. getFile(val).then(res => {
  16453. this.TxtMd = res.data;
  16454. });
  16455. },
  16456. // 组件刷新
  16457. refreshAssembly(val) {
  16458. this.refreshKey++;
  16459. // console.log(this.refreshKey)
  16460. },
  16461. updateLoading(payload) {
  16462. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16463. },
  16464. handleShow(toolIndex, val) {
  16465. let mk = `markSco${toolIndex}${val}`;
  16466. // console.log(mk);
  16467. this.$refs[mk][0].getData();
  16468. },
  16469. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16470. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16471. // console.log('this.AIloading',this.AIloading)
  16472. let jude = false;
  16473. this.AIloading.forEach((e, index) => {
  16474. if (index == tidx) {
  16475. e.forEach(k => {
  16476. if (k.loading == true) jude = true;
  16477. });
  16478. }
  16479. });
  16480. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16481. if (val) return;
  16482. // console.log(uname,worksStudent,uid,tidx,titlist)
  16483. this.markScoreTit = titlist;
  16484. this.markScoreUid = uid;
  16485. this.toolListS = toolList;
  16486. this.markScoretoolIndex = tidx;
  16487. this.markScoreworksStudent = worksStudent;
  16488. this.markfullscreen = false;
  16489. this.markScoreVisible = true;
  16490. if (this.tType == 1) {
  16491. this.insertMemorandum(
  16492. `查看<span class="variable">${uname}</span>的作业`
  16493. );
  16494. }
  16495. },
  16496. // 点击markScore显示评分框
  16497. markScoreDig(data) {
  16498. // console.log('data',data)
  16499. let jude = false;
  16500. this.AIloading.forEach((e, index) => {
  16501. if (index == data.val2) {
  16502. e.forEach(k => {
  16503. if (k.loading == true) jude = true;
  16504. });
  16505. }
  16506. });
  16507. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16508. this.markScoreTit = data.tit;
  16509. this.markScoreUid = data.val;
  16510. this.markScoretoolIndex = data.val2;
  16511. this.markfullscreen = false;
  16512. this.markScoreVisible = true;
  16513. this.insertMemorandum(
  16514. `查看<span class="variable">${data.uname}</span>的作业`
  16515. );
  16516. },
  16517. // 刷新其他组件分数
  16518. refreshOther(v) {
  16519. // console.log('v',v)
  16520. this.AIloading[v.tid].forEach((e, i) => {
  16521. if (i == v.wid) {
  16522. e.loading = false;
  16523. }
  16524. });
  16525. // this.worksStudent.forEach((e,index)=>{
  16526. // if(toolIndex != index){
  16527. // e.forEach((i,inx)=>{
  16528. // let mk = `markSco${index}${inx}`
  16529. // this.$refs[mk][0].getData()
  16530. // })
  16531. // }
  16532. // })
  16533. },
  16534. updateDocSco(payload) {
  16535. // console.log('payload',payload)
  16536. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16537. },
  16538. gx() {
  16539. this.$forceUpdate();
  16540. },
  16541. isUpdateCorrect(t, p) {
  16542. if (this.greyType == false) {
  16543. this.isUpdateText = t;
  16544. this.greyType = true;
  16545. } else {
  16546. if (p == 1) {
  16547. this.newEnglishList.engText = this.isUpdateText;
  16548. } else if (p == 2) {
  16549. this.oldEnglishJson1.engText = this.isUpdateText;
  16550. } else if (p == 3) {
  16551. this.newEnglishList.engText = this.isUpdateText;
  16552. } else {
  16553. this.newEnglishList1[
  16554. this.newEngIndex
  16555. ].cWork.engText = this.isUpdateText;
  16556. }
  16557. this.greyType = false;
  16558. }
  16559. },
  16560. aiCorrect(t, p) {
  16561. let aiText = "";
  16562. const loading = this.$loading.service({
  16563. background: "rgba(255, 255, 255)",
  16564. target: document.querySelectorAll(".loadingText")[0]
  16565. });
  16566. let param = {
  16567. model: "gpt-3.5-turbo",
  16568. temperature: 0,
  16569. max_tokens: 2048,
  16570. top_p: 1,
  16571. frequency_penalty: 0,
  16572. presence_penalty: 0,
  16573. messages: [
  16574. {
  16575. role: "user",
  16576. content: `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`
  16577. }
  16578. ],
  16579. uid: this.userid,
  16580. stream: false
  16581. };
  16582. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16583. res => {
  16584. if (
  16585. res.data.FunctionResponse &&
  16586. res.data.FunctionResponse.result &&
  16587. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16588. ) {
  16589. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  16590. return;
  16591. }
  16592. aiText = res.data.FunctionResponse.choices[0].message.content;
  16593. aiText = aiText.replace(/%/g, "%25");
  16594. // let w = "";
  16595. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16596. // for(var k = 0;k<a.length;k++){
  16597. // //diffWordsWithSpace
  16598. // if(a.length > 1){
  16599. // if(a[k].added == true){
  16600. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16601. // }else if(a[k].removed == true){
  16602. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16603. // }else{
  16604. // w += '<span>' + a[k].value + '</span>';
  16605. // }
  16606. // }else{
  16607. // if(p == 1){
  16608. // w = this.newEnglishList.engText;
  16609. // }else if(p == 2){
  16610. // w = this.oldEnglishJson1.engText;
  16611. // }else if(p == 3){
  16612. // w = this.newEnglishList.engText;
  16613. // }else{
  16614. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16615. // }
  16616. // }
  16617. // }
  16618. if (p == 1) {
  16619. this.newEnglishList.engText = aiText;
  16620. } else if (p == 2) {
  16621. this.oldEnglishJson1.engText = aiText;
  16622. } else if (p == 3) {
  16623. this.newEnglishList.engText = aiText;
  16624. } else {
  16625. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16626. }
  16627. loading.close();
  16628. },
  16629. err => {
  16630. console.log(err);
  16631. loading.close();
  16632. }
  16633. );
  16634. },
  16635. addToolChoose() {
  16636. if (!this.checktoolArray.length) {
  16637. this.$message.error("请选择要添加的任务");
  16638. return;
  16639. }
  16640. if (
  16641. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16642. this.taskCount
  16643. ].toolChoose[0].tool.length
  16644. ) {
  16645. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16646. this.taskCount
  16647. ].toolChoose[0].tool = this.checktoolArray;
  16648. } else {
  16649. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16650. this.taskCount
  16651. ].toolChoose.push({
  16652. tool: this.checktoolArray,
  16653. toolDetail: "",
  16654. toolType: 0,
  16655. askCount: 1,
  16656. askTitle: "",
  16657. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  16658. });
  16659. }
  16660. let params = [
  16661. {
  16662. cid: this.id,
  16663. chapters: JSON.stringify(this.chapInfoList),
  16664. uid: this.userid,
  16665. unitIndex: this.courseType
  16666. }
  16667. ];
  16668. this.ajax
  16669. .post(this.$store.state.api + "updateWorkNew4", params)
  16670. .then(res => {
  16671. this.$message({
  16672. message: "添加成功",
  16673. type: "success"
  16674. });
  16675. this.checktoolArray = [];
  16676. this.getCourseDetail(2);
  16677. this.checkBz(
  16678. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16679. this.taskCount
  16680. ].toolChoose.length - 1
  16681. );
  16682. this.toolDialogVisible = false;
  16683. this.refreshCourse();
  16684. this.$forceUpdate();
  16685. })
  16686. .catch(err => {
  16687. console.error(err);
  16688. });
  16689. },
  16690. checkBz(index) {
  16691. this.isUpdateToolDetail = false;
  16692. this.$forceUpdate();
  16693. setTimeout(() => {
  16694. document.scrollingElement.scrollTop =
  16695. document.querySelectorAll(".filebox")[index].offsetTop +
  16696. document.querySelector(".student_body").offsetTop;
  16697. }, 500);
  16698. },
  16699. updateToolDetail(i, type) {
  16700. if (
  16701. !this.isUpdateToolDetail1 &&
  16702. type == 2 &&
  16703. (this.courseDetail.userid == this.userid ||
  16704. (this.courseDetail.course_teacher &&
  16705. this.courseDetail.course_teacher.indexOf(this.userid) != -1))
  16706. ) {
  16707. this.toolDetailIndex = i;
  16708. this.isUpdateToolDetail1 = true;
  16709. setTimeout(() => {
  16710. this.updateToolDetailInner = JSON.parse(
  16711. JSON.stringify(
  16712. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16713. this.taskCount
  16714. ].toolChoose[i].toolDetail
  16715. )
  16716. );
  16717. document.querySelector(".checkTextArea").focus();
  16718. }, 0);
  16719. } else if (this.isUpdateToolDetail1 && type != 2) {
  16720. // this.toolDetailIndex = i;
  16721. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16722. this.taskCount
  16723. ].toolChoose[i].toolDetail = JSON.parse(
  16724. JSON.stringify(this.updateToolDetailInner)
  16725. );
  16726. let params = [
  16727. {
  16728. cid: this.id,
  16729. chapters: JSON.stringify(this.chapInfoList),
  16730. uid: this.userid,
  16731. unitIndex: this.courseType
  16732. }
  16733. ];
  16734. this.ajax
  16735. .post(this.$store.state.api + "updateWorkNew4", params)
  16736. .then(res => {
  16737. this.isUpdateToolDetail1 = false;
  16738. this.$message({
  16739. message: "修改成功",
  16740. type: "success"
  16741. });
  16742. this.toolDetailIndex = null;
  16743. this.updateToolDetailInner = "";
  16744. this.getCourseDetail(2);
  16745. this.$forceUpdate();
  16746. })
  16747. .catch(err => {
  16748. console.error(err);
  16749. });
  16750. } else if (this.isUpdateToolDetail1 && type == 2) {
  16751. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16752. this.taskCount
  16753. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16754. JSON.stringify(this.updateToolDetailInner)
  16755. );
  16756. let params = [
  16757. {
  16758. cid: this.id,
  16759. chapters: JSON.stringify(this.chapInfoList),
  16760. uid: this.userid,
  16761. unitIndex: this.courseType
  16762. }
  16763. ];
  16764. this.ajax
  16765. .post(this.$store.state.api + "updateWorkNew4", params)
  16766. .then(res => {
  16767. this.$message({
  16768. message: "修改成功",
  16769. type: "success"
  16770. });
  16771. this.toolDetailIndex = i;
  16772. this.isUpdateToolDetail1 = true;
  16773. setTimeout(() => {
  16774. this.updateToolDetailInner = JSON.parse(
  16775. JSON.stringify(
  16776. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16777. this.taskCount
  16778. ].toolChoose[i].toolDetail
  16779. )
  16780. );
  16781. document.querySelector(".checkTextArea").focus();
  16782. }, 0);
  16783. this.getCourseDetail(2);
  16784. this.$forceUpdate();
  16785. })
  16786. .catch(err => {
  16787. console.error(err);
  16788. });
  16789. }
  16790. },
  16791. jumpGj(i, j, k, l) {
  16792. this.refreshAssembly();
  16793. for (var z = 0; z < this.navList.length; z++) {
  16794. for (var q = 0; q < this.navList[z].task.length; q++) {
  16795. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16796. this.navList[z].task[q].tool[w].isTool = false;
  16797. }
  16798. }
  16799. }
  16800. this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
  16801. .isTool;
  16802. var a = document.scrollingElement;
  16803. let target = document.querySelector(`#gj${k}`);
  16804. if (target) {
  16805. // target.scrollIntoView(true);
  16806. // setTimeout(() => {
  16807. // a.scrollTop = a.scrollTop - 150;
  16808. // }, 0);
  16809. target.scrollIntoView();
  16810. setTimeout(()=>{
  16811. let scrollBody = document.querySelector('.body_student').parentElement
  16812. scrollBody.scrollTop = scrollBody.scrollTop - 100
  16813. }, 0);
  16814. }
  16815. this.navId = "";
  16816. let flag = this.courseType == i;
  16817. let flag2 = this.taskCount == j;
  16818. if (l) {
  16819. this.courseType = i;
  16820. // this.navId = l;
  16821. this.taskCount = j;
  16822. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  16823. this.selectPz();
  16824. this.getHomeWork();
  16825. this.getCourseDetail(2);
  16826. if (flag) {
  16827. if (flag2) {
  16828. this.insertMemorandum(
  16829. `选择<span class="variable">工具${k + 1}:${
  16830. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16831. }</span>`
  16832. );
  16833. } else {
  16834. this.insertMemorandum(
  16835. `选择<span class="variable">任务${j + 1}${
  16836. this.navList[i].task[j].taskName
  16837. ? ":" + this.navList[i].task[j].taskName
  16838. : ""
  16839. }</span>→<span class="variable">工具${k + 1}:${
  16840. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16841. }</span>`
  16842. );
  16843. }
  16844. } else {
  16845. this.insertMemorandum(
  16846. `选择<span class="variable">阶段${i + 1}${
  16847. this.navList[i].dyName ? ":" + this.navList[i].dyName : ""
  16848. }</span>→<span class="variable">任务${j + 1}${
  16849. this.navList[i].task[j].taskName
  16850. ? ":" + this.navList[i].task[j].taskName
  16851. : ""
  16852. }</span>→<span class="variable">工具${k + 1}:${
  16853. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16854. }</span>`
  16855. );
  16856. }
  16857. }
  16858. },
  16859. addTools2(i) {
  16860. if (i == 4) {
  16861. // this.openTools2(4);
  16862. this.$message.error("暂未开放");
  16863. return;
  16864. }
  16865. if (i == 45) {
  16866. // this.openTools2(45);
  16867. this.$message.error("暂未开放");
  16868. return;
  16869. }
  16870. if (i == 47) {
  16871. // this.openTools2(47);
  16872. this.$message.error("暂未开放");
  16873. return;
  16874. }
  16875. if (i == 49) {
  16876. // this.openTools2(49);
  16877. this.$message.error("暂未开放");
  16878. return;
  16879. }
  16880. if (i == 62) {
  16881. // this.openTools(itemTaskIndex, 62, toolIndex);
  16882. this.$message.error("暂未开放");
  16883. return;
  16884. }
  16885. if (i == 15) {
  16886. // this.openTools(itemTaskIndex, 15, toolIndex);
  16887. this.$message.error("暂未开放");
  16888. return;
  16889. }
  16890. if (i == 40) {
  16891. // this.openTools(itemTaskIndex, 40, toolIndex);
  16892. this.$message.error("暂未开放");
  16893. return;
  16894. }
  16895. if (i == 41) {
  16896. // this.openTools(itemTaskIndex, 41, toolIndex);
  16897. this.$message.error("暂未开放");
  16898. return;
  16899. }
  16900. if (i == 42) {
  16901. // this.openTools(itemTaskIndex, 42, toolIndex);
  16902. this.$message.error("暂未开放");
  16903. return;
  16904. }
  16905. if (this.checktoolArray.length > 0) {
  16906. if (this.checktoolArray.indexOf(i) != -1) {
  16907. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  16908. } else {
  16909. this.checktoolArray = [];
  16910. this.checktoolArray.push(i);
  16911. }
  16912. } else {
  16913. this.checktoolArray.push(i);
  16914. }
  16915. this.$forceUpdate();
  16916. },
  16917. jump() {
  16918. window.parent.postMessage({ tools: "43" }, "*");
  16919. },
  16920. getUpdateMore(f, checkboxList, searchTN, index) {
  16921. this.dialogVisibleMember = f;
  16922. this.checkboxList = checkboxList;
  16923. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  16924. this.plIndex = index;
  16925. },
  16926. setPlname(a) {
  16927. if (this.plworkFile.length) {
  16928. this.plworkFile[this.plIndex].username = a;
  16929. } else {
  16930. this.worksSName = a;
  16931. }
  16932. this.dialogVisibleMember = false;
  16933. },
  16934. previewImg(url, w) {
  16935. this.$hevueImgPreview(url);
  16936. if (w) {
  16937. this.insertMemorandum(
  16938. `查看<span class="variable">${w.sName}</span>的作业`
  16939. );
  16940. }
  16941. },
  16942. checkImg(list) {
  16943. if (!list.length) {
  16944. return;
  16945. }
  16946. this.$hevueImgPreview({
  16947. multiple: true, // 开启多图预览模式
  16948. imgList: list // 需要预览的多图数组
  16949. });
  16950. },
  16951. change(val) {
  16952. console.log(val);
  16953. },
  16954. goTo(path) {
  16955. this.$router.push(path);
  16956. },
  16957. handlePictureCardPreview(url) {
  16958. this.dialogImageUrl = url;
  16959. this.pictureDialog = true;
  16960. },
  16961. clean(type) {
  16962. if (type == 1) {
  16963. this.studyJuri[0].cover.splice(0, 1);
  16964. } else if (type == 2) {
  16965. this.studyJuri[0].upVedio.splice(0, 1);
  16966. } else {
  16967. this.studyJuri[0].upFile.splice(0, 1);
  16968. }
  16969. },
  16970. clean2(index) {
  16971. this.plworkFile.splice(index, 1);
  16972. },
  16973. handleClose(done) {
  16974. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  16975. this.videoDetail.sources[0].src = "";
  16976. }
  16977. this.commentIndexJson = {};
  16978. done();
  16979. },
  16980. fullTools() {
  16981. this.full = !this.full;
  16982. },
  16983. imgChange(file, fileList, type) {
  16984. if (type == 1) {
  16985. var _tmp = this.studyJuri[0].cover;
  16986. } else if (type == 2) {
  16987. var _tmp = this.studyJuri[0].upVedio;
  16988. } else {
  16989. var _tmp = this.studyJuri[0].upFile;
  16990. }
  16991. this.noneBtnImg = _tmp.length >= 1;
  16992. },
  16993. setContent(bool) {
  16994. this.contentDialog = bool;
  16995. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  16996. document.querySelector(".workd_media").style.height = "650px";
  16997. } else if (document.querySelector(".workd_media")) {
  16998. document.querySelector(".workd_media").style.height = "auto";
  16999. }
  17000. },
  17001. setContent2(bool) {
  17002. this.mlDialog = bool;
  17003. if (
  17004. bool &&
  17005. this.contentDialog &&
  17006. document.querySelector(".workd_media")
  17007. ) {
  17008. document.querySelector(".workd_media").style.height = "650px";
  17009. } else if (document.querySelector(".workd_media")) {
  17010. document.querySelector(".workd_media").style.height = "auto";
  17011. }
  17012. },
  17013. openToolAll() {
  17014. this.toolDialogVisible = true;
  17015. },
  17016. addImg(e) {
  17017. var el = e.currentTarget;
  17018. // this.$message.success('触发上传')
  17019. el.getElementsByTagName("input")[0].click();
  17020. e.target.value = "";
  17021. },
  17022. addSelectAnswer() {
  17023. let params = [
  17024. {
  17025. uid: this.userid,
  17026. cid: this.id,
  17027. stage: this.courseType,
  17028. task: this.taskCount,
  17029. tool: this.toolindex,
  17030. content: this.selectAnswer.answer,
  17031. type: 7
  17032. }
  17033. ];
  17034. this.ajax
  17035. .post(this.$store.state.api + "addCourseWorks", params)
  17036. .then(res => {
  17037. this.$message({
  17038. message: "提交成功",
  17039. type: "success"
  17040. });
  17041. this.dialogVisibleSelect = false;
  17042. // this.selectAnswer = {};
  17043. this.selectSWorks();
  17044. this.selectStudent();
  17045. })
  17046. .catch(err => {
  17047. this.$message.error("提交失败");
  17048. console.error(err);
  17049. });
  17050. },
  17051. addSelectAnswerTeacher() {
  17052. let params = [
  17053. {
  17054. uid: this.sStudent.userid,
  17055. cid: this.id,
  17056. stage: this.courseType,
  17057. task: this.taskCount,
  17058. tool: this.toolindex,
  17059. content: this.selectAnswer.answer,
  17060. type: 7
  17061. }
  17062. ];
  17063. this.ajax
  17064. .post(this.$store.state.api + "addCourseWorks", params)
  17065. .then(res => {
  17066. this.$message({
  17067. message: "提交成功",
  17068. type: "success"
  17069. });
  17070. this.dialogVisibleSelectTeacher = false;
  17071. // this.selectAnswer = {};
  17072. this.selectSWorks();
  17073. this.selectStudent();
  17074. })
  17075. .catch(err => {
  17076. this.$message.error("提交失败");
  17077. console.error(err);
  17078. });
  17079. },
  17080. addSenWorks() {
  17081. for (var i = 0; i < this.sentenceList.length; i++) {
  17082. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17083. if (
  17084. this.sentenceList[i].chooseSenList[j] == undefined ||
  17085. this.sentenceList[i].chooseSenList[j] == ""
  17086. ) {
  17087. this.$message.error("请将答案填写完整!");
  17088. return;
  17089. }
  17090. }
  17091. }
  17092. let params = [
  17093. {
  17094. uid: this.userid,
  17095. cid: this.id,
  17096. stage: this.courseType,
  17097. task: this.taskCount,
  17098. tool: this.toolindex,
  17099. content: JSON.stringify(this.sentenceList),
  17100. type: 9
  17101. }
  17102. ];
  17103. this.ajax
  17104. .post(this.$store.state.api + "addCourseWorks", params)
  17105. .then(res => {
  17106. this.$message({
  17107. message: "提交成功",
  17108. type: "success"
  17109. });
  17110. this.dialogVisibleSentence = false;
  17111. // this.selectAnswer = {};
  17112. this.selectSWorks();
  17113. this.selectStudent();
  17114. })
  17115. .catch(err => {
  17116. this.$message.error("提交失败");
  17117. console.error(err);
  17118. });
  17119. },
  17120. addSenWorksTeacher() {
  17121. for (var i = 0; i < this.sentenceList.length; i++) {
  17122. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17123. if (
  17124. this.sentenceList[i].chooseSenList[j] == undefined ||
  17125. this.sentenceList[i].chooseSenList[j] == ""
  17126. ) {
  17127. this.$message.error("请将答案填写完整!");
  17128. return;
  17129. }
  17130. }
  17131. }
  17132. let params = [
  17133. {
  17134. uid: this.sStudent.userid,
  17135. cid: this.id,
  17136. stage: this.courseType,
  17137. task: this.taskCount,
  17138. tool: this.toolindex,
  17139. content: JSON.stringify(this.sentenceList),
  17140. type: 9
  17141. }
  17142. ];
  17143. this.ajax
  17144. .post(this.$store.state.api + "addCourseWorks", params)
  17145. .then(res => {
  17146. this.$message({
  17147. message: "提交成功",
  17148. type: "success"
  17149. });
  17150. this.dialogVisibleSentenceTeacher = false;
  17151. // this.selectAnswer = {};
  17152. this.selectSWorks();
  17153. this.selectStudent();
  17154. })
  17155. .catch(err => {
  17156. this.$message.error("提交失败");
  17157. console.error(err);
  17158. });
  17159. },
  17160. returnTableText() {
  17161. this.$confirm("确定还原此模板吗?", "提示", {
  17162. confirmButtonText: "确定",
  17163. cancelButtonText: "取消",
  17164. type: "warning"
  17165. })
  17166. .then(() => {
  17167. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17168. })
  17169. .catch(() => {});
  17170. },
  17171. addTableWorks() {
  17172. let params = [
  17173. {
  17174. uid: this.userid,
  17175. cid: this.id,
  17176. stage: this.courseType,
  17177. task: this.taskCount,
  17178. tool: this.toolindex,
  17179. content: JSON.stringify(this.tableJson),
  17180. type: 10
  17181. }
  17182. ];
  17183. this.ajax
  17184. .post(this.$store.state.api + "addCourseWorks", params)
  17185. .then(res => {
  17186. this.$message({
  17187. message: "提交成功",
  17188. type: "success"
  17189. });
  17190. this.dialogVisibleTable = false;
  17191. // this.selectAnswer = {};
  17192. this.selectSWorks();
  17193. this.selectStudent();
  17194. })
  17195. .catch(err => {
  17196. this.$message.error("提交失败");
  17197. console.error(err);
  17198. });
  17199. },
  17200. tableRowClassName({ row, rowIndex }) {
  17201. if ((rowIndex + 1) % 2 === 0) {
  17202. return "even_row";
  17203. } else {
  17204. return "";
  17205. }
  17206. },
  17207. addTableWorksTeacher() {
  17208. let params = [
  17209. {
  17210. uid: this.sStudent.userid,
  17211. cid: this.id,
  17212. stage: this.courseType,
  17213. task: this.taskCount,
  17214. tool: this.toolindex,
  17215. content: JSON.stringify(this.tableJson),
  17216. type: 10
  17217. }
  17218. ];
  17219. this.ajax
  17220. .post(this.$store.state.api + "addCourseWorks", params)
  17221. .then(res => {
  17222. this.$message({
  17223. message: "提交成功",
  17224. type: "success"
  17225. });
  17226. this.dialogVisibleTableTeacher = false;
  17227. // this.selectAnswer = {};
  17228. this.selectSWorks();
  17229. this.selectStudent();
  17230. })
  17231. .catch(err => {
  17232. this.$message.error("提交失败");
  17233. console.error(err);
  17234. });
  17235. },
  17236. returnWordText() {
  17237. this.$confirm("确定还原此模板吗?", "提示", {
  17238. confirmButtonText: "确定",
  17239. cancelButtonText: "取消",
  17240. type: "warning"
  17241. })
  17242. .then(() => {
  17243. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17244. })
  17245. .catch(() => {});
  17246. },
  17247. addWordWorks() {
  17248. let params = [
  17249. {
  17250. uid: this.userid,
  17251. cid: this.id,
  17252. stage: this.courseType,
  17253. task: this.taskCount,
  17254. tool: this.toolindex,
  17255. content: JSON.stringify(this.wordJson),
  17256. type: 13,
  17257. atool: 52
  17258. }
  17259. ];
  17260. this.ajax
  17261. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17262. .then(res => {
  17263. this.$message({
  17264. message: "提交成功",
  17265. type: "success"
  17266. });
  17267. this.dialogVisibleWord = false;
  17268. // this.selectAnswer = {};
  17269. this.selectSWorks();
  17270. this.selectStudent();
  17271. })
  17272. .catch(err => {
  17273. this.$message.error("提交失败");
  17274. console.error(err);
  17275. });
  17276. },
  17277. addWordWorksTeacher() {
  17278. let params = [
  17279. {
  17280. uid: this.sStudent.userid,
  17281. cid: this.id,
  17282. stage: this.courseType,
  17283. task: this.taskCount,
  17284. tool: this.toolindex,
  17285. content: JSON.stringify(this.wordJson),
  17286. type: 13,
  17287. atool: 52
  17288. }
  17289. ];
  17290. this.ajax
  17291. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17292. .then(res => {
  17293. this.$message({
  17294. message: "提交成功",
  17295. type: "success"
  17296. });
  17297. this.dialogVisibleWordTeacher = false;
  17298. // this.selectAnswer = {};
  17299. this.selectSWorks();
  17300. this.selectStudent();
  17301. })
  17302. .catch(err => {
  17303. this.$message.error("提交失败");
  17304. console.error(err);
  17305. });
  17306. },
  17307. addCourseWorksCopy(i) {
  17308. let arr = this.workStudent[this.toolindex].filter(e => {
  17309. return (e.userid = this.userid);
  17310. });
  17311. if (arr.length > 0) {
  17312. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17313. confirmButtonText: "确定",
  17314. cancelButtonText: "取消",
  17315. type: "warning"
  17316. })
  17317. .then(() => {
  17318. this.addCourseWorks(i);
  17319. })
  17320. .catch(() => {});
  17321. } else {
  17322. this.addCourseWorks(i);
  17323. }
  17324. },
  17325. addCourseWorks(i) {
  17326. var typesql;
  17327. if (this.fileType === 0) {
  17328. typesql = 1;
  17329. } else if (this.fileType === 1) {
  17330. typesql = 4;
  17331. } else if (this.fileType === 2) {
  17332. typesql = 5;
  17333. } else if (this.fileType === 3) {
  17334. typesql = 12;
  17335. }
  17336. if (!this.studyJuri[0].cover[0].url) {
  17337. this.$message.error("请上传文件");
  17338. return;
  17339. }
  17340. let params = [
  17341. {
  17342. uid: this.userid,
  17343. cid: this.id,
  17344. stage: this.courseType,
  17345. task: i,
  17346. tool: this.toolindex,
  17347. content: this.studyJuri[0].cover[0].url,
  17348. type: typesql
  17349. }
  17350. ];
  17351. this.ajax
  17352. .post(this.$store.state.api + "addCourseWorksR1", params)
  17353. .then(res => {
  17354. this.$message({
  17355. message: "提交成功",
  17356. type: "success"
  17357. });
  17358. this.studyJuri[0].cover = [];
  17359. this.dialogVisible = false;
  17360. this.getCourseDetail(2);
  17361. })
  17362. .catch(err => {
  17363. this.$message.error("提交失败");
  17364. console.error(err);
  17365. });
  17366. },
  17367. addCourseWorksPl(i) {
  17368. let _files = this.plworkFile;
  17369. var c = 1;
  17370. for (var k = 0; k < _files.length; k++) {
  17371. if (!_files[k].username) {
  17372. c = 2;
  17373. }
  17374. }
  17375. if (c == 2) {
  17376. this.$message.error("请填写学生姓名");
  17377. return;
  17378. }
  17379. let params = [
  17380. {
  17381. ateacher: this.userid,
  17382. cid: this.id,
  17383. stage: this.courseType,
  17384. task: i,
  17385. tool: this.toolindex,
  17386. content: JSON.stringify(_files)
  17387. }
  17388. ];
  17389. this.ajax
  17390. .post(this.$store.state.api + "addCourseWorksPl", params)
  17391. .then(res => {
  17392. this.$message({
  17393. message: "提交成功",
  17394. type: "success"
  17395. });
  17396. this.plworkFile = [];
  17397. this.dialogVisiblePl = false;
  17398. this.getCourseDetail(2);
  17399. })
  17400. .catch(err => {
  17401. this.$message.error("提交失败");
  17402. console.error(err);
  17403. });
  17404. },
  17405. addCourseWorks2(i) {
  17406. var typesql;
  17407. if (this.fileType === 0) {
  17408. typesql = 0;
  17409. } else if (this.fileType === 1) {
  17410. typesql = 1;
  17411. } else if (this.fileType === 2) {
  17412. typesql = 3;
  17413. } else if (this.fileType === 3) {
  17414. typesql = 12;
  17415. }
  17416. if (!this.studyJuri[0].cover[0].url) {
  17417. this.$message.error("请上传文件");
  17418. return;
  17419. }
  17420. let params = [
  17421. {
  17422. uid: this.userid,
  17423. cid: this.id,
  17424. stage: this.courseType,
  17425. task: i,
  17426. tool: this.toolindex,
  17427. content: JSON.stringify({
  17428. type: typesql,
  17429. groupIndex: this.groupIndex,
  17430. url: this.studyJuri[0].cover[0].url
  17431. }),
  17432. type: 11,
  17433. atool: 49,
  17434. text: ""
  17435. }
  17436. ];
  17437. this.ajax
  17438. .post(this.$store.state.api + "addCourseWorks5", params)
  17439. .then(res => {
  17440. this.$message({
  17441. message: "提交成功",
  17442. type: "success"
  17443. });
  17444. this.studyJuri[0].cover = [];
  17445. this.dialogVisibleGroupWork = false;
  17446. this.getCourseDetail(2);
  17447. })
  17448. .catch(err => {
  17449. this.$message.error("提交失败");
  17450. console.error(err);
  17451. });
  17452. },
  17453. addEnglishWork() {
  17454. this.myAnList = this.$refs["engJson"].myAnswerList;
  17455. if (
  17456. !this.myAnList.engTitle ||
  17457. !this.myAnList.engText ||
  17458. this.myAnList.engTitle == "" ||
  17459. this.myAnList.engText == ""
  17460. ) {
  17461. this.$message.error("请输入作文标题和正文!");
  17462. return;
  17463. }
  17464. let params = [
  17465. {
  17466. uid: this.userid,
  17467. cid: this.id,
  17468. stage: this.courseType,
  17469. task: this.taskCount,
  17470. tool: this.englishToolIndex,
  17471. content: JSON.stringify(this.myAnList),
  17472. type: 16,
  17473. atool: 69,
  17474. text: ""
  17475. }
  17476. ];
  17477. this.ajax
  17478. .post(this.$store.state.api + "addCourseWorks5", params)
  17479. .then(res => {
  17480. this.$message({
  17481. message: "提交成功",
  17482. type: "success"
  17483. });
  17484. this.myAnList = {};
  17485. this.englishList = {};
  17486. this.englishToolIndex = 0;
  17487. this.engDialogVisible = false;
  17488. this.selectSWorks();
  17489. this.selectStudent();
  17490. })
  17491. .catch(err => {
  17492. this.$message.error("提交失败");
  17493. console.error(err);
  17494. });
  17495. },
  17496. addCourseWorksGong(i, data, tool) {
  17497. let params = [
  17498. {
  17499. uid: this.userid,
  17500. cid: this.id,
  17501. stage: this.courseType,
  17502. task: this.taskCount,
  17503. tool: i,
  17504. content: data,
  17505. type: 12,
  17506. atool: tool,
  17507. text: ""
  17508. }
  17509. ];
  17510. this.ajax
  17511. .post(this.$store.state.api + "addCourseWorks5", params)
  17512. .then(res => {
  17513. this.$message({
  17514. message: "提交成功",
  17515. type: "success"
  17516. });
  17517. this.studyJuri[0].cover = [];
  17518. this.selectSWorks();
  17519. this.selectStudent();
  17520. })
  17521. .catch(err => {
  17522. this.$message.error("提交失败");
  17523. console.error(err);
  17524. });
  17525. },
  17526. addCourseWorksGongTeacher(i, data, tool) {
  17527. let params = [
  17528. {
  17529. uid: this.sStudent.userid,
  17530. cid: this.id,
  17531. stage: this.courseType,
  17532. task: this.taskCount,
  17533. tool: i,
  17534. content: data,
  17535. type: 12,
  17536. atool: tool,
  17537. text: ""
  17538. }
  17539. ];
  17540. this.ajax
  17541. .post(this.$store.state.api + "addCourseWorks5", params)
  17542. .then(res => {
  17543. this.$message({
  17544. message: "提交成功",
  17545. type: "success"
  17546. });
  17547. this.studyJuri[0].cover = [];
  17548. this.dialogVisibleWorks = false;
  17549. this.selectSWorks();
  17550. this.selectStudent();
  17551. })
  17552. .catch(err => {
  17553. this.$message.error("提交失败");
  17554. console.error(err);
  17555. });
  17556. },
  17557. addCourseWorksGongPl(i, data, tool, type) {
  17558. let params = [
  17559. {
  17560. uid: this.sStudent.userid,
  17561. cid: this.id,
  17562. stage: this.courseType,
  17563. task: this.taskCount,
  17564. tool: i,
  17565. content: data,
  17566. type: type,
  17567. atool: tool,
  17568. text: ""
  17569. }
  17570. ];
  17571. this.ajax
  17572. .post(this.$store.state.api + "addCourseWorks5", params)
  17573. .then(res => {
  17574. this.$message({
  17575. message: "提交成功",
  17576. type: "success"
  17577. });
  17578. this.studyJuri[0].cover = [];
  17579. this.dialogVisibleWorks = false;
  17580. this.selectSWorks();
  17581. this.selectStudent();
  17582. })
  17583. .catch(err => {
  17584. this.$message.error("提交失败");
  17585. console.error(err);
  17586. });
  17587. },
  17588. addCourseWorksTeacher(i) {
  17589. var typesql;
  17590. if (this.sTool == 32) {
  17591. this.addCourseWorksGongTeacher(
  17592. this.toolindex,
  17593. this.studyJuri[0].cover[0].url,
  17594. this.sTool
  17595. );
  17596. return;
  17597. }
  17598. if (this.fileType === 0) {
  17599. typesql = 1;
  17600. } else if (this.fileType === 1) {
  17601. typesql = 4;
  17602. } else if (this.fileType === 2) {
  17603. typesql = 5;
  17604. } else if (this.fileType === 3) {
  17605. typesql = 12;
  17606. }
  17607. if (this.sTool == 50) {
  17608. this.addCourseWorksGongPl(
  17609. this.toolindex,
  17610. this.studyJuri[0].cover[0].url,
  17611. this.sTool,
  17612. typesql
  17613. );
  17614. return;
  17615. }
  17616. if (!this.studyJuri[0].cover[0].url) {
  17617. this.$message.error("请上传文件");
  17618. return;
  17619. }
  17620. let params = [
  17621. {
  17622. uid: this.sStudent.userid,
  17623. cid: this.id,
  17624. stage: this.courseType,
  17625. task: i,
  17626. tool: this.toolindex,
  17627. content: this.studyJuri[0].cover[0].url,
  17628. type: typesql,
  17629. ateacher: this.userid
  17630. }
  17631. ];
  17632. this.ajax
  17633. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17634. .then(res => {
  17635. this.$message({
  17636. message: "提交成功",
  17637. type: "success"
  17638. });
  17639. this.studyJuri[0].cover = [];
  17640. this.dialogVisibleWorks = false;
  17641. this.getCourseDetail(2);
  17642. })
  17643. .catch(err => {
  17644. this.$message.error("提交失败");
  17645. console.error(err);
  17646. });
  17647. },
  17648. selectUploadStudent(type) {
  17649. const loading = this.$loading.service({
  17650. background: "rgba(255, 255, 255, 0.7)",
  17651. target: document.body
  17652. });
  17653. let params = {
  17654. cid: this.uploadCid,
  17655. oid: this.oid,
  17656. cn: ""
  17657. };
  17658. this.ajax
  17659. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17660. .then(res => {
  17661. loading.close();
  17662. var studentK = [];
  17663. if (this.isWorksS[this.toolindex].length > 0) {
  17664. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17665. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17666. }
  17667. studentK = studentK.join(",");
  17668. }
  17669. this.uploadStudentJuri = res.data[0].filter(el => {
  17670. return studentK.indexOf(el.userid) == -1;
  17671. });
  17672. if (this.worksSName && this.worksSid) {
  17673. this.uploadStudentJuri.push({
  17674. userid: this.worksSid,
  17675. name: this.worksSName
  17676. });
  17677. }
  17678. if (type == 1) {
  17679. this.plworkFile = [];
  17680. this.dialogVisibleSname = true;
  17681. } else if (type == 2) {
  17682. this.dialogVisiblePl = true;
  17683. }
  17684. })
  17685. .catch(err => {
  17686. loading.close();
  17687. console.error(err);
  17688. });
  17689. },
  17690. selectPickStudent() {
  17691. const loading = this.$loading.service({
  17692. background: "rgba(255, 255, 255, 0.7)",
  17693. target: document.body
  17694. });
  17695. let params = {
  17696. cid: this.uploadCid,
  17697. oid: this.oid,
  17698. cn: ""
  17699. };
  17700. this.ajax
  17701. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17702. .then(res => {
  17703. loading.close();
  17704. this.uploadStudentJuri = res.data[0];
  17705. this.dialogVisiblePickPeople = true;
  17706. })
  17707. .catch(err => {
  17708. loading.close();
  17709. console.error(err);
  17710. });
  17711. },
  17712. arrayToArray(arrayo, arrayt) {
  17713. let array1 = arrayo;
  17714. let array2 = arrayt;
  17715. let commonElements = [];
  17716. for (let i = 0; i < array1.length; i++) {
  17717. for (let j = 0; j < array2.length; j++) {
  17718. if (array1[i] === array2[j]) {
  17719. commonElements.push(array1[i]);
  17720. }
  17721. }
  17722. }
  17723. return commonElements;
  17724. },
  17725. selectWorksStudent() {
  17726. let params = {
  17727. oid: this.oid,
  17728. cid: this.courseDetail.juri
  17729. };
  17730. this.ajax
  17731. .get(this.$store.state.api + "selectWorksStudent", params)
  17732. .then(res => {
  17733. var a = res.data[0];
  17734. for (var i = 0; i < this.isWorksS.length; i++) {
  17735. this.noWorksS[i] = [];
  17736. var studentK = [];
  17737. if (this.isWorksS[i].length > 0) {
  17738. for (var z = 0; z < this.isWorksS[i].length; z++) {
  17739. studentK.push(this.isWorksS[i][z].uid);
  17740. }
  17741. studentK = studentK.join(",");
  17742. for (var j = 0; j < a.length; j++) {
  17743. if (studentK.indexOf(a[j].userid) == -1) {
  17744. if (this.tcid) {
  17745. // a[j].classid.indexOf(this.tcid) != -1
  17746. if (
  17747. this.arrayToArray(
  17748. a[j].classid.split(","),
  17749. this.tcid.split(",")
  17750. ).length
  17751. ) {
  17752. this.noWorksS[i].push({
  17753. student: a[j].name,
  17754. userid: a[j].userid
  17755. });
  17756. }
  17757. } else {
  17758. this.noWorksS[i].push({
  17759. student: a[j].name,
  17760. userid: a[j].userid
  17761. });
  17762. }
  17763. }
  17764. }
  17765. } else {
  17766. for (var k = 0; k < a.length; k++) {
  17767. if (this.tcid) {
  17768. if (
  17769. this.arrayToArray(
  17770. a[k].classid.split(","),
  17771. this.tcid.split(",")
  17772. ).length
  17773. ) {
  17774. this.noWorksS[i].push({
  17775. student: a[k].name,
  17776. userid: a[k].userid
  17777. });
  17778. }
  17779. } else {
  17780. this.noWorksS[i].push({
  17781. student: a[k].name,
  17782. userid: a[k].userid
  17783. });
  17784. }
  17785. }
  17786. }
  17787. }
  17788. this.$forceUpdate();
  17789. if (
  17790. Object.keys(this.commentDetail).length &&
  17791. Object.keys(this.commentIndexJson).length &&
  17792. !this.dialogVisibleScore &&
  17793. !this.dialogVisibleENScore
  17794. ) {
  17795. let a = 1;
  17796. let c = this.commentIndexJson;
  17797. if (
  17798. this.commentIndexJson.gindex ||
  17799. this.commentIndexJson.gindex === 0
  17800. ) {
  17801. for (
  17802. var i = 0;
  17803. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17804. i++
  17805. ) {
  17806. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  17807. groupA: for (var k = 0; k < _el.length; k++) {
  17808. let el = _el[k];
  17809. if (el.wid == this.commentDetail.wid) {
  17810. a = 2;
  17811. this.commentOther(
  17812. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  17813. this.commentIndexJson.toolIndex,
  17814. k,
  17815. this.commentIndexJson.gindex
  17816. );
  17817. break groupA;
  17818. }
  17819. }
  17820. }
  17821. if (a === 1) {
  17822. this.commentDetail = [];
  17823. this.commentIndexJson = {};
  17824. this.commentDialogVisible = false;
  17825. this.$message("此作业已被删除");
  17826. }
  17827. } else {
  17828. if (this.isGroup && this.commentIndexJson.gid) {
  17829. groupA: for (
  17830. var i = 0;
  17831. i < this.courseGroup.group.length;
  17832. i++
  17833. ) {
  17834. let _group = this.courseGroup.group[i];
  17835. if (_group.id == this.commentIndexJson.gid) {
  17836. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  17837. for (var k = 0; k < _el2.length; k++) {
  17838. let el2 = _el2[k];
  17839. if (el2.wid == this.commentDetail.wid) {
  17840. a = 2;
  17841. this.commentOther(
  17842. _el2[k],
  17843. this.commentIndexJson.toolIndex,
  17844. k,
  17845. null,
  17846. this.commentIndexJson.gid
  17847. );
  17848. break groupA;
  17849. }
  17850. }
  17851. }
  17852. }
  17853. }
  17854. if (a == 1) {
  17855. for (
  17856. var i = 0;
  17857. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17858. i++
  17859. ) {
  17860. let el = this.worksStudent[this.commentIndexJson.toolIndex][
  17861. i
  17862. ];
  17863. if (el.wid == this.commentDetail.wid) {
  17864. a = 2;
  17865. this.commentOther(
  17866. this.worksStudent[this.commentIndexJson.toolIndex][i],
  17867. this.commentIndexJson.toolIndex,
  17868. i
  17869. );
  17870. break;
  17871. }
  17872. }
  17873. }
  17874. if (a === 1) {
  17875. this.commentDetail = [];
  17876. this.commentIndexJson = {};
  17877. this.commentDialogVisible = false;
  17878. this.$message("此作业已被删除");
  17879. }
  17880. }
  17881. }
  17882. })
  17883. .catch(err => {
  17884. console.error(err);
  17885. });
  17886. },
  17887. selectStudent() {
  17888. //学生查看自己作业
  17889. let params = {
  17890. uid: this.userid,
  17891. cid: this.id,
  17892. s: this.courseType,
  17893. t: this.taskCount
  17894. };
  17895. this.ajax
  17896. .get(this.$store.state.api + "selectStudentWorks", params)
  17897. .then(res => {
  17898. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17899. this.taskCount
  17900. ].toolChoose;
  17901. var b = res.data[0];
  17902. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17903. var y = [
  17904. "AVI",
  17905. "NAVI",
  17906. "MPEG",
  17907. "ASF",
  17908. "MOV",
  17909. "WMV",
  17910. "3GP",
  17911. "RM",
  17912. "RMVB",
  17913. "FLV",
  17914. "F4V",
  17915. "H.264",
  17916. "H.265",
  17917. "REAL VIDEO",
  17918. "MKV",
  17919. "WebM",
  17920. "HDDVD",
  17921. "MP4",
  17922. "MPG",
  17923. "M4V",
  17924. "MGV",
  17925. "OGV",
  17926. "QTM",
  17927. "STR",
  17928. "AMC",
  17929. "DVX",
  17930. "EVO",
  17931. "DAT",
  17932. "OGG",
  17933. "OGM"
  17934. ];
  17935. for (var i = 0; i < a.length; i++) {
  17936. this.workStudent[i] = [];
  17937. for (var j = 0; j < b.length; j++) {
  17938. if (i == b[j].tool) {
  17939. if (
  17940. (b[j].type == 1 ||
  17941. b[j].type == 4 ||
  17942. b[j].type == 5 ||
  17943. b[j].type == 6 ||
  17944. b[j].type == 12 ||
  17945. b[j].type == 7) &&
  17946. a[i].tool[0] != 15 &&
  17947. a[i].tool[0] != 4 &&
  17948. a[i].tool[0] != 45 &&
  17949. a[i].tool[0] != 50 &&
  17950. a[i].tool[0] != 32 &&
  17951. a[i].tool[0] != 57 &&
  17952. a[i].tool[0] != 52 &&
  17953. a[i].tool[0] != 69
  17954. ) {
  17955. if (
  17956. c.indexOf(
  17957. b[j].content
  17958. .split(".")
  17959. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17960. ) != -1 &&
  17961. a[i].tool[0] == 16 &&
  17962. b[j].atool != 50
  17963. ) {
  17964. this.workStudent[i].push({
  17965. works: b[j].content,
  17966. sName: b[j].name,
  17967. score: b[j].score,
  17968. img: b[j].img,
  17969. type: 1,
  17970. time: b[j].time,
  17971. userid: b[j].userid,
  17972. wid: b[j].id
  17973. });
  17974. } else if (
  17975. y.indexOf(
  17976. b[j].content
  17977. .split(".")
  17978. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17979. ) != -1 &&
  17980. a[i].tool[0] == 16 &&
  17981. b[j].atool != 50
  17982. ) {
  17983. this.workStudent[i].push({
  17984. userid: b[j].userid,
  17985. wid: b[j].id,
  17986. works: b[j].content,
  17987. sName: b[j].name,
  17988. score: b[j].score,
  17989. img: b[j].img,
  17990. type: 3,
  17991. time: b[j].time
  17992. });
  17993. } else if (b[j].type == 6 && b[j].atool != 50) {
  17994. this.workStudent[i].push({
  17995. userid: b[j].userid,
  17996. wid: b[j].id,
  17997. works: b[j].content,
  17998. sName: b[j].name,
  17999. score: b[j].score,
  18000. img: b[j].img,
  18001. type: 4,
  18002. time: b[j].time
  18003. });
  18004. } else if (b[j].type == 7 && b[j].atool != 50) {
  18005. this.workStudent[i].push({
  18006. userid: b[j].userid,
  18007. wid: b[j].id,
  18008. works: b[j].content,
  18009. sName: b[j].name,
  18010. score: b[j].score,
  18011. img: b[j].img,
  18012. type: 5,
  18013. time: b[j].time
  18014. });
  18015. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18016. this.workStudent[i].push({
  18017. works: b[j].content,
  18018. sName: b[j].name,
  18019. score: b[j].score,
  18020. img: b[j].img,
  18021. type: 12,
  18022. time: b[j].time,
  18023. userid: b[j].userid,
  18024. wid: b[j].id
  18025. });
  18026. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  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: 0,
  18033. time: b[j].time,
  18034. userid: b[j].userid,
  18035. wid: b[j].id
  18036. });
  18037. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18038. this.workStudent[i].push({
  18039. works: b[j].content,
  18040. sName: b[j].name,
  18041. score: b[j].score,
  18042. img: b[j].img,
  18043. type: 0,
  18044. time: b[j].time,
  18045. userid: b[j].userid,
  18046. wid: b[j].id
  18047. });
  18048. }
  18049. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18050. this.workStudent[i].push({
  18051. works: b[j].content,
  18052. sName: b[j].name,
  18053. score: b[j].score,
  18054. img: b[j].img,
  18055. type: 2,
  18056. time: b[j].time,
  18057. userid: b[j].userid,
  18058. wid: b[j].id
  18059. });
  18060. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18061. //问卷
  18062. this.workStudent[i].push({
  18063. works: b[j].content,
  18064. sName: b[j].name,
  18065. score: b[j].score,
  18066. img: b[j].img,
  18067. type: 2,
  18068. time: b[j].time,
  18069. userid: b[j].userid,
  18070. wid: b[j].id
  18071. });
  18072. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18073. //选择题
  18074. this.workStudent[i].push({
  18075. works: b[j].content,
  18076. sName: b[j].name,
  18077. score: b[j].score,
  18078. img: b[j].img,
  18079. type: 8,
  18080. time: b[j].time,
  18081. userid: b[j].userid,
  18082. wid: b[j].id
  18083. });
  18084. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18085. //选择题
  18086. this.workStudent[i].push({
  18087. works: b[j].content,
  18088. sName: b[j].name,
  18089. score: b[j].score,
  18090. img: b[j].img,
  18091. type: 9,
  18092. time: b[j].time,
  18093. userid: b[j].userid,
  18094. wid: b[j].id
  18095. });
  18096. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18097. //选择题
  18098. this.workStudent[i].push({
  18099. works: b[j].content,
  18100. sName: b[j].name,
  18101. score: b[j].score,
  18102. img: b[j].img,
  18103. type: 10,
  18104. time: b[j].time,
  18105. userid: b[j].userid,
  18106. wid: b[j].id
  18107. });
  18108. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18109. //选择题
  18110. this.workStudent[i].push({
  18111. works: b[j].content,
  18112. sName: b[j].name,
  18113. score: b[j].score,
  18114. img: b[j].img,
  18115. type: 13,
  18116. time: b[j].time,
  18117. userid: b[j].userid,
  18118. wid: b[j].id
  18119. });
  18120. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18121. //选择题
  18122. this.workStudent[i].push({
  18123. works: b[j].content,
  18124. sName: b[j].name,
  18125. score: b[j].score,
  18126. img: b[j].img,
  18127. type: 12,
  18128. time: b[j].time,
  18129. userid: b[j].userid,
  18130. wid: b[j].id
  18131. });
  18132. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18133. //选择题
  18134. this.workStudent[i].push({
  18135. works: b[j].content,
  18136. sName: b[j].name,
  18137. score: b[j].score,
  18138. img: b[j].img,
  18139. type: 12,
  18140. time: b[j].time,
  18141. userid: b[j].userid,
  18142. wid: b[j].id
  18143. });
  18144. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18145. //选择题
  18146. this.workStudent[i].push({
  18147. works: b[j].content,
  18148. sName: b[j].name,
  18149. score: b[j].score,
  18150. img: b[j].img,
  18151. type: 15,
  18152. time: b[j].time,
  18153. userid: b[j].userid,
  18154. wid: b[j].id
  18155. });
  18156. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18157. //英语写作
  18158. this.workStudent[i].push({
  18159. works: b[j].content,
  18160. sName: b[j].name,
  18161. score: b[j].score,
  18162. img: b[j].img,
  18163. type: 16,
  18164. time: b[j].time,
  18165. userid: b[j].userid,
  18166. wid: b[j].id,
  18167. aiCode: b[j].aiCode,
  18168. teacherCode: b[j].teacherCode
  18169. });
  18170. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18171. //英语写作
  18172. this.workStudent[i].push({
  18173. works: b[j].content,
  18174. sName: b[j].name,
  18175. score: b[j].score,
  18176. img: b[j].img,
  18177. type: 17,
  18178. time: b[j].time,
  18179. userid: b[j].userid,
  18180. wid: b[j].id
  18181. });
  18182. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18183. //英语口语
  18184. this.workStudent[i].push({
  18185. works: b[j].content,
  18186. sName: b[j].name,
  18187. score: b[j].score,
  18188. img: b[j].img,
  18189. type: 14,
  18190. time: b[j].time,
  18191. userid: b[j].userid,
  18192. wid: b[j].id
  18193. });
  18194. }
  18195. }
  18196. }
  18197. }
  18198. })
  18199. .catch(err => {
  18200. console.error(err);
  18201. });
  18202. },
  18203. openVideo(w) {
  18204. this.videoDetail = {};
  18205. this.playerOptions1.sources[0].src = w.works;
  18206. this.videoDetail = this.playerOptions1;
  18207. this.videoVisible = true;
  18208. },
  18209. isLikes(wid, uid, t, c, isLikes, sName) {
  18210. if (isLikes == false) {
  18211. let params = [
  18212. {
  18213. wid: wid,
  18214. lid: uid,
  18215. t: t,
  18216. c: c
  18217. }
  18218. ];
  18219. this.ajax
  18220. .post(this.$store.state.api + "insertComment", params)
  18221. .then(res => {
  18222. this.$message({
  18223. message: "点赞成功",
  18224. type: "success"
  18225. });
  18226. this.selectSWorks();
  18227. this.selectStudent();
  18228. this.insertMemorandum(
  18229. `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
  18230. );
  18231. })
  18232. .catch(err => {
  18233. this.$message.error("点赞失败");
  18234. console.error(err);
  18235. });
  18236. } else {
  18237. let params = {
  18238. wid: wid,
  18239. lid: uid,
  18240. type: t
  18241. };
  18242. this.ajax
  18243. .get(this.$store.state.api + "deleteComment", params)
  18244. .then(res => {
  18245. this.$message({
  18246. message: "取消点赞成功",
  18247. type: "success"
  18248. });
  18249. this.selectSWorks();
  18250. this.selectStudent();
  18251. })
  18252. .catch(err => {
  18253. console.error(err);
  18254. });
  18255. }
  18256. },
  18257. deleteComment(wid) {
  18258. this.$confirm("确定删除此评论吗?", "提示", {
  18259. confirmButtonText: "确定",
  18260. cancelButtonText: "取消",
  18261. type: "warning"
  18262. })
  18263. .then(() => {
  18264. let params = {
  18265. id: wid
  18266. };
  18267. this.ajax
  18268. .get(this.$store.state.api + "deleteComment2", params)
  18269. .then(res => {
  18270. this.$message({
  18271. message: "删除评论成功",
  18272. type: "success"
  18273. });
  18274. this.selectSWorks();
  18275. this.selectStudent();
  18276. })
  18277. .catch(err => {
  18278. console.error(err);
  18279. });
  18280. })
  18281. .catch(() => {});
  18282. },
  18283. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18284. this.commentIndexJson = {
  18285. toolIndex: toolIndex,
  18286. wIndex: wIndex,
  18287. gindex: gindex,
  18288. gid: gid
  18289. };
  18290. this.commentDialogVisible = true;
  18291. // console.log('wwwwww',w)
  18292. if (JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works))
  18293. return;
  18294. this.commentDetailCopy = w.works;
  18295. this.commentDetail = [];
  18296. this.commentDetail = w;
  18297. if (w.works && w.type == 1) {
  18298. // this.pptImgUrl = "";
  18299. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18300. if (
  18301. a.indexOf(
  18302. w.works
  18303. .split(".")
  18304. [w.works.split(".").length - 1].toLocaleUpperCase()
  18305. ) != -1
  18306. ) {
  18307. let _uuurl = await this.checkLink(w.works);
  18308. this.pptImgUrl =
  18309. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18310. encodeURIComponent(_uuurl);
  18311. this.showPDF = false;
  18312. } else if (
  18313. w.works
  18314. .split(".")
  18315. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18316. ) {
  18317. this.pptImgUrl = w.works;
  18318. this.showPDF = true;
  18319. }
  18320. } else if (w.works && w.type == 3) {
  18321. this.videoDetail = {};
  18322. this.playerOptions1.sources[0].src = w.works;
  18323. this.videoDetail = this.playerOptions1;
  18324. // this.videoVisible = true;
  18325. } else if (w.works && w.type == 4) {
  18326. this.eScore = JSON.parse(w.works);
  18327. this.rateJson = this.chapInfoList[
  18328. this.courseType
  18329. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18330. toolIndex
  18331. ].rateJson;
  18332. } else if (w.works && w.type == 10) {
  18333. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18334. } else if (w.works && w.type == 12) {
  18335. getFile(this.commentDetail.works).then(res => {
  18336. this.commentDetail.works = res.data;
  18337. });
  18338. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18339. } else if (w.works && w.type == 13) {
  18340. this.wordJson = this.chapInfoList[
  18341. this.courseType
  18342. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18343. toolIndex
  18344. ].wordJson;
  18345. }
  18346. },
  18347. async openScore(w, index) {
  18348. this.wScore = 0;
  18349. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18350. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18351. this.commentDetail = [];
  18352. if (w.type == 17) {
  18353. this.dialogVisibleENScore = true;
  18354. } else {
  18355. this.dialogVisibleScore = true;
  18356. }
  18357. this.commentDetail = w;
  18358. if (w.works && w.type == 1) {
  18359. this.pptImgUrl = "";
  18360. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18361. if (
  18362. a.indexOf(
  18363. w.works
  18364. .split(".")
  18365. [w.works.split(".").length - 1].toLocaleUpperCase()
  18366. ) != -1
  18367. ) {
  18368. let _uuurl = await this.checkLink(w.works);
  18369. this.pptImgUrl =
  18370. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18371. encodeURIComponent(_uuurl);
  18372. this.showPDF = false;
  18373. } else if (
  18374. w.works
  18375. .split(".")
  18376. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18377. ) {
  18378. this.pptImgUrl = w.works;
  18379. this.showPDF = true;
  18380. }
  18381. } else if (w.works && w.type == 3) {
  18382. this.videoDetail = {};
  18383. this.playerOptions1.sources[0].src = w.works;
  18384. this.videoDetail = this.playerOptions1;
  18385. } else if (w.type == 17) {
  18386. let englishVoiceJson = {};
  18387. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18388. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18389. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18390. this.taskCount
  18391. ].toolChoose[index].englishVoiceJson
  18392. : {};
  18393. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18394. }
  18395. this.insertMemorandum(
  18396. `查看<span class="variable">${w.sName}</span>的作业`
  18397. );
  18398. },
  18399. addComment(wid, uid, t, detail) {
  18400. if (this.commentText == "") {
  18401. this.$message.error("请输入评论");
  18402. return;
  18403. }
  18404. let params2 = [
  18405. {
  18406. wid: wid,
  18407. lid: uid,
  18408. t: t
  18409. }
  18410. ];
  18411. this.ajax
  18412. .post(this.$store.state.api + "getComment", params2)
  18413. .then(res => {
  18414. if (res.data[0].length > 0) {
  18415. this.$message.error("一个作业只能评论一条");
  18416. } else {
  18417. let params = [
  18418. {
  18419. wid: wid,
  18420. lid: uid,
  18421. t: t,
  18422. c: this.commentText
  18423. }
  18424. ];
  18425. this.ajax
  18426. .post(this.$store.state.api + "insertComment", params)
  18427. .then(res => {
  18428. this.$message({
  18429. message: "评论成功",
  18430. type: "success"
  18431. });
  18432. this.commentText = "";
  18433. this.selectSWorks();
  18434. this.selectStudent();
  18435. this.insertMemorandum(
  18436. `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
  18437. );
  18438. })
  18439. .catch(err => {
  18440. this.$message.error("评论失败");
  18441. console.error(err);
  18442. });
  18443. }
  18444. })
  18445. .catch(err => {
  18446. // this.$message.error("评论失败");
  18447. console.error(err);
  18448. });
  18449. },
  18450. scoreWork(wid, sName) {
  18451. if (this.wScore == 0) {
  18452. this.$message.error("请评分");
  18453. return;
  18454. }
  18455. let params = [
  18456. {
  18457. wid: wid,
  18458. score: JSON.stringify({
  18459. wScore: this.wScore,
  18460. detail: this.scoreDetail
  18461. })
  18462. }
  18463. ];
  18464. this.ajax
  18465. .post(this.$store.state.api + "scoreWork", params)
  18466. .then(res => {
  18467. this.$message({
  18468. message: "评分成功",
  18469. type: "success"
  18470. });
  18471. this.wScore = 0;
  18472. this.scoreDetail = "";
  18473. this.dialogVisibleScore = false;
  18474. this.selectSWorks();
  18475. this.selectStudent();
  18476. this.insertMemorandum(
  18477. `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
  18478. );
  18479. })
  18480. .catch(err => {
  18481. this.$message.error("评分失败");
  18482. console.error(err);
  18483. });
  18484. },
  18485. openXz(w, i) {
  18486. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18487. .taskJson[this.taskCount].toolChoose[i].selectJson
  18488. ? JSON.parse(
  18489. JSON.stringify(
  18490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18491. this.taskCount
  18492. ].toolChoose[i].selectJson
  18493. )
  18494. )
  18495. : { url: "", select: [], answer: [] };
  18496. var a = w.works.split(",");
  18497. for (var k = 0; k < a.length; k++) {
  18498. a[k] = parseInt(a[k]);
  18499. }
  18500. this.selectAnswer = { answer: a, stu: w.sName };
  18501. this.isSelect = true;
  18502. this.dialogVisibleSelect = true;
  18503. this.insertMemorandum(
  18504. `查看<span class="variable">${w.sName}</span>的作业`
  18505. );
  18506. },
  18507. openSen(w, i) {
  18508. this.sentenceList1 = JSON.parse(w.works);
  18509. this.sentenceList1.stuName = w.sName;
  18510. this.dialogVisibleSentence1 = true;
  18511. },
  18512. openPj(w, toolindex) {
  18513. this.isStar = true;
  18514. this.eScore = JSON.parse(w);
  18515. this.rateJson = this.chapInfoList[
  18516. this.courseType
  18517. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[toolindex].rateJson;
  18518. this.studentEvalDialogVisible = true;
  18519. },
  18520. openEnglishEva(id, i) {
  18521. let params = {
  18522. wid: id
  18523. };
  18524. this.ajax
  18525. .get(this.$store.state.api + "selectEngWork", params)
  18526. .then(res => {
  18527. this.evaEngJson.message = res.data[0][0];
  18528. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18529. this.evaEngJson.teacherJson = this.chapInfoList[
  18530. this.courseType
  18531. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].englishList;
  18532. this.engEvaDialogVisible = true;
  18533. })
  18534. .catch(err => {
  18535. console.error(err);
  18536. });
  18537. },
  18538. deleteWorks(id) {
  18539. this.$confirm("确定删除此作业吗?", "提示", {
  18540. confirmButtonText: "确定",
  18541. cancelButtonText: "取消",
  18542. type: "warning"
  18543. })
  18544. .then(() => {
  18545. let params = [
  18546. {
  18547. id: id
  18548. }
  18549. ];
  18550. this.ajax
  18551. .post(this.$store.state.api + "deleteCourseWork", params)
  18552. .then(res => {
  18553. this.$message({
  18554. message: "删除成功",
  18555. type: "success"
  18556. });
  18557. this.selectStudent();
  18558. this.selectSWorks();
  18559. this.selectSLook();
  18560. })
  18561. .catch(err => {
  18562. this.$message.error("网络异常");
  18563. console.error(err);
  18564. });
  18565. })
  18566. .catch(() => {});
  18567. },
  18568. // deleteWorksTwo(w,stage,task) {
  18569. // // let mk = `markSco${toolIndex}${wIndex}`
  18570. // // console.log(this.$refs[mk][0].homeworkVal)
  18571. // // let wid = this.$refs[mk][0].homeworkVal.id
  18572. // // console.log('wid',wid);
  18573. // this.$confirm("确定删除此作业吗?", "提示", {
  18574. // confirmButtonText: "确定",
  18575. // cancelButtonText: "取消",
  18576. // type: "warning",
  18577. // })
  18578. // .then(() => {
  18579. // let params = [
  18580. // {
  18581. // id: w.wid,
  18582. // cid: this.id,
  18583. // uid:w.userid,
  18584. // s:stage,
  18585. // t:task
  18586. // },
  18587. // ];
  18588. // // return console.log(params)
  18589. // this.ajax
  18590. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  18591. // .then((res) => {
  18592. // this.$message({
  18593. // message: "删除成功",
  18594. // type: "success",
  18595. // });
  18596. // this.selectStudent();
  18597. // this.selectSWorks();
  18598. // this.selectSLook();
  18599. // })
  18600. // .catch((err) => {
  18601. // this.$message.error("网络异常");
  18602. // console.error(err);
  18603. // });
  18604. // })
  18605. // .catch(() => {});
  18606. // },
  18607. noIsAi() {
  18608. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  18609. },
  18610. getLang() {
  18611. let lang = "";
  18612. if (this.languageSetting == 0) {
  18613. lang = "Chinese.";
  18614. } else if (this.languageSetting == 1) {
  18615. lang = "Traditional Chinese.";
  18616. } else if (this.languageSetting == 2) {
  18617. lang = "English.";
  18618. }
  18619. return lang;
  18620. },
  18621. selectSWorks(gindex) {
  18622. //教师查看全部作业
  18623. let params = {
  18624. cid: this.id,
  18625. s: this.courseType,
  18626. t: this.taskCount
  18627. };
  18628. this.ajax
  18629. .get(this.$store.state.api + "selectSWorks", params)
  18630. .then(res => {
  18631. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18632. this.taskCount
  18633. ].toolChoose;
  18634. var b = res.data[0];
  18635. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18636. var y = [
  18637. "AVI",
  18638. "NAVI",
  18639. "MPEG",
  18640. "ASF",
  18641. "MOV",
  18642. "WMV",
  18643. "3GP",
  18644. "RM",
  18645. "RMVB",
  18646. "FLV",
  18647. "F4V",
  18648. "H.264",
  18649. "H.265",
  18650. "REAL VIDEO",
  18651. "MKV",
  18652. "WebM",
  18653. "HDDVD",
  18654. "MP4",
  18655. "MPG",
  18656. "M4V",
  18657. "MGV",
  18658. "OGV",
  18659. "QTM",
  18660. "STR",
  18661. "AMC",
  18662. "DVX",
  18663. "EVO",
  18664. "DAT",
  18665. "OGG",
  18666. "OGM"
  18667. ];
  18668. var d = res.data[1];
  18669. var e = res.data[2];
  18670. var f = res.data[3];
  18671. let _worksStudent = [];
  18672. var _worksStudent2 = [];
  18673. for (var i = 0; i < a.length; i++) {
  18674. _worksStudent[i] = [];
  18675. _worksStudent2[i] = [];
  18676. if (
  18677. !this.isCloseList[i] ||
  18678. this.isCloseList[i].isClose == undefined
  18679. ) {
  18680. this.isCloseList[i] = { isClose: 0 };
  18681. }
  18682. this.groupStudent[i] = [];
  18683. this.groupStudentUid[i] = [];
  18684. if (this.isGroup) {
  18685. for (
  18686. var groupI = 0;
  18687. groupI < this.courseGroup.group.length;
  18688. groupI++
  18689. ) {
  18690. this.courseGroup.group[groupI].works[i] = [];
  18691. }
  18692. }
  18693. this.isWorksS[i] = [];
  18694. this.checkJson[i] = [];
  18695. if (a[i].tool[0] == 49) {
  18696. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18697. this.groupStudent[i][gA] = [];
  18698. this.groupStudentUid[i][gA] = [];
  18699. _worksStudent[i][gA] = [];
  18700. _worksStudent2[i][gA] = [];
  18701. this.isCloseList[i][gA] = [];
  18702. for (var g = 0; g < f.length; g++) {
  18703. if (
  18704. f[g].ttype == 2 &&
  18705. this.tcid &&
  18706. this.arrayToArray(
  18707. f[g].classid ? f[g].classid.split(",") : [],
  18708. this.tcid.split(",")
  18709. ).length == 0
  18710. ) {
  18711. continue;
  18712. }
  18713. let _classId = this.arrayToArray(
  18714. this.courseDetail.juri
  18715. ? this.courseDetail.juri.split(",")
  18716. : [],
  18717. this.classId ? this.classId.split(",") : []
  18718. );
  18719. if (
  18720. gA == f[g].group &&
  18721. f[g].tool == i &&
  18722. (this.arrayToArray(
  18723. f[g].classid ? f[g].classid.split(",") : [],
  18724. this.tcid.split(",")
  18725. ).length !== 0 ||
  18726. this.arrayToArray(
  18727. f[g].classid ? f[g].classid.split(",") : [],
  18728. _classId
  18729. ).length !== 0 ||
  18730. (!this.tcid && this.tType == "1") ||
  18731. this.courseDetail.juri === "" ||
  18732. f[g].ttype == 1)
  18733. ) {
  18734. this.groupStudent[i][gA].push(f[g]);
  18735. this.groupStudentUid[i][gA].push(f[g].userid);
  18736. }
  18737. }
  18738. }
  18739. this.$forceUpdate();
  18740. }
  18741. for (var j = 0; j < b.length; j++) {
  18742. if (
  18743. b[j].ttype == 2 &&
  18744. this.tcid &&
  18745. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  18746. .length == 0
  18747. ) {
  18748. continue;
  18749. }
  18750. var likesCount = 0;
  18751. var commentCount = 0;
  18752. var isLikes = false;
  18753. var commentJson = [];
  18754. var likeJson = [];
  18755. var data = b[j];
  18756. if (i == b[j].tool) {
  18757. if (data.type == 2 && a[i].tool[0] == 4) {
  18758. // if(JSON.parse(data.content)[0].anwer){
  18759. var checkL =
  18760. JSON.parse(data.content)[0].anwer instanceof Array
  18761. ? JSON.parse(data.content)[0].anwer
  18762. : JSON.parse(data.content)[0].anwer.split(",");
  18763. for (var z = 0; z < checkL.length; z++) {
  18764. if (!this.checkJson[i][z]) {
  18765. this.checkJson[i].push({
  18766. checkCount: [],
  18767. checkPerson: [],
  18768. rightPerson: []
  18769. });
  18770. }
  18771. if (!this.checkJson[i][z].checkCount.length) {
  18772. this.checkJson[i][z].checkCount = [];
  18773. let _askItemCount = JSON.parse(data.content)[0].askJson
  18774. .askJson[z].askItem;
  18775. for (var aic = 0; aic < _askItemCount; aic++) {
  18776. this.checkJson[i][z].checkCount.push(0);
  18777. }
  18778. }
  18779. if (checkL[z] instanceof Array) {
  18780. if (
  18781. JSON.parse(data.content)[0]
  18782. .anwer.sort()
  18783. .join(",") == checkL[z].sort().join(",")
  18784. ) {
  18785. this.checkJson[i][z].rightPerson.push(data.name);
  18786. }
  18787. for (var q = 0; q < checkL[z].length; q++) {
  18788. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18789. ? this.checkJson[i][z].checkPerson[
  18790. parseInt(checkL[z][q])
  18791. ].push(data.name)
  18792. : (this.checkJson[i][z].checkPerson[
  18793. parseInt(checkL[z][q])
  18794. ] = [data.name]);
  18795. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18796. ? this.checkJson[i][z].checkCount[
  18797. parseInt(checkL[z][q])
  18798. ]++
  18799. : (this.checkJson[i][z].checkCount[
  18800. parseInt(checkL[z][q])
  18801. ] = 1);
  18802. }
  18803. } else {
  18804. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  18805. this.checkJson[i][z].rightPerson.push(data.name);
  18806. }
  18807. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18808. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18809. ? this.checkJson[i][z].checkPerson[
  18810. parseInt(checkL[z])
  18811. ].push(data.name)
  18812. : (this.checkJson[i][z].checkPerson[
  18813. parseInt(checkL[z])
  18814. ] = [data.name]);
  18815. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18816. ? this.checkJson[i][z].checkCount[
  18817. parseInt(checkL[z])
  18818. ]++
  18819. : (this.checkJson[i][z].checkCount[
  18820. parseInt(checkL[z])
  18821. ] = 1);
  18822. }
  18823. }
  18824. }
  18825. } else if (data.type == 8 && a[i].tool[0] == 45) {
  18826. var checkL = JSON.parse(data.content)[0].anwer;
  18827. for (var z = 0; z < checkL.length; z++) {
  18828. if (!this.checkJson[i][z]) {
  18829. this.checkJson[i].push({
  18830. checkCount: [],
  18831. checkPerson: [],
  18832. rightPerson: []
  18833. });
  18834. }
  18835. if (!this.checkJson[i][z].checkCount.length) {
  18836. this.checkJson[i][z].checkCount = [];
  18837. let _askItemCount = JSON.parse(data.content)[0].testJson
  18838. .testJson[z].testItem;
  18839. for (var aic = 0; aic < _askItemCount; aic++) {
  18840. this.checkJson[i][z].checkCount.push(0);
  18841. }
  18842. }
  18843. if (checkL[z] instanceof Array) {
  18844. if (
  18845. JSON.parse(data.content)[0]
  18846. .testJson.testJson[z].answer.sort()
  18847. .join(",") == checkL[z].sort().join(",")
  18848. ) {
  18849. this.checkJson[i][z].rightPerson.push(data.name);
  18850. }
  18851. for (var q = 0; q < checkL[z].length; q++) {
  18852. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18853. ? this.checkJson[i][z].checkPerson[
  18854. parseInt(checkL[z][q])
  18855. ].push(data.name)
  18856. : (this.checkJson[i][z].checkPerson[
  18857. parseInt(checkL[z][q])
  18858. ] = [data.name]);
  18859. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18860. ? this.checkJson[i][z].checkCount[
  18861. parseInt(checkL[z][q])
  18862. ]++
  18863. : (this.checkJson[i][z].checkCount[
  18864. parseInt(checkL[z][q])
  18865. ] = 1);
  18866. }
  18867. } else {
  18868. if (
  18869. JSON.parse(data.content)[0].testJson.testJson[z]
  18870. .answer == checkL[z]
  18871. ) {
  18872. this.checkJson[i][z].rightPerson.push(data.name);
  18873. }
  18874. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18875. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18876. ? this.checkJson[i][z].checkPerson[
  18877. parseInt(checkL[z])
  18878. ].push(data.name)
  18879. : (this.checkJson[i][z].checkPerson[
  18880. parseInt(checkL[z])
  18881. ] = [data.name]);
  18882. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18883. ? this.checkJson[i][z].checkCount[
  18884. parseInt(checkL[z])
  18885. ]++
  18886. : (this.checkJson[i][z].checkCount[
  18887. parseInt(checkL[z])
  18888. ] = 1);
  18889. }
  18890. }
  18891. }
  18892. } else if (data.type == 9 && a[i].tool[0] == 47) {
  18893. var checkL = JSON.parse(data.content);
  18894. for (var z = 0; z < checkL.length; z++) {
  18895. if (!this.checkJson[i][z]) {
  18896. this.checkJson[i].push({
  18897. checkCount: [],
  18898. checkPerson: [],
  18899. rightPerson: []
  18900. });
  18901. }
  18902. this.checkJson[i][z].checkPerson.push(data.name);
  18903. if (
  18904. checkL[z].chooseSenList.toString() ==
  18905. checkL[z].rightAnswer.toString()
  18906. ) {
  18907. this.checkJson[i][z].rightPerson.push(data.name);
  18908. }
  18909. }
  18910. }
  18911. for (var k = 0; k < d.length; k++) {
  18912. //点赞
  18913. if (d[k].workId == b[j].id) {
  18914. likesCount++;
  18915. likeJson.push(d[k]);
  18916. if (d[k].likesId == this.userid) {
  18917. isLikes = true;
  18918. }
  18919. }
  18920. }
  18921. for (var l = 0; l < e.length; l++) {
  18922. //评论
  18923. if (e[l].workId == b[j].id) {
  18924. if (e[l].comment != "") {
  18925. commentCount++;
  18926. commentJson.push({
  18927. commentText: e[l].comment,
  18928. commentTime: e[l].commentTime,
  18929. commentPeople: e[l].commentPeople,
  18930. userid: e[l].userid,
  18931. wid: e[l].id
  18932. });
  18933. }
  18934. }
  18935. }
  18936. if (
  18937. (b[j].type == 1 ||
  18938. b[j].type == 4 ||
  18939. b[j].type == 5 ||
  18940. b[j].type == 6 ||
  18941. b[j].type == 12 ||
  18942. b[j].type == 7) &&
  18943. a[i].tool[0] != 15 &&
  18944. a[i].tool[0] != 4 &&
  18945. a[i].tool[0] != 45 &&
  18946. a[i].tool[0] != 50 &&
  18947. a[i].tool[0] != 32 &&
  18948. a[i].tool[0] != 57 &&
  18949. a[i].tool[0] != 52
  18950. ) {
  18951. if (
  18952. c.indexOf(
  18953. b[j].content
  18954. .split(".")
  18955. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18956. ) != -1 &&
  18957. a[i].tool[0] == 16 &&
  18958. b[j].atool != 50
  18959. ) {
  18960. let _works = {
  18961. userid: b[j].userid,
  18962. ateacher: b[j].ateacher,
  18963. wid: b[j].id,
  18964. works: b[j].content,
  18965. sName: b[j].name,
  18966. type: 1,
  18967. ttype: b[j].ttype,
  18968. time: b[j].time,
  18969. score: b[j].score,
  18970. img: b[j].img,
  18971. likesCount: likesCount,
  18972. commentCount: commentCount,
  18973. isLikes: isLikes,
  18974. commentJson: commentJson,
  18975. likeJson: likeJson
  18976. };
  18977. if (this.isGroup) {
  18978. let isGw = 1;
  18979. for (
  18980. var groupI = 0;
  18981. groupI < this.courseGroup.group.length;
  18982. groupI++
  18983. ) {
  18984. let gid = this.courseGroup.group[groupI].id;
  18985. if (
  18986. this.courseGroupStudentUid[gid].indexOf(
  18987. b[j].userid
  18988. ) != -1
  18989. ) {
  18990. isGw = 2;
  18991. this.courseGroup.group[groupI].works[i].push(_works);
  18992. break;
  18993. }
  18994. }
  18995. if (isGw == 1) {
  18996. _worksStudent[i].push(_works);
  18997. }
  18998. } else {
  18999. _worksStudent[i].push(_works);
  19000. }
  19001. _worksStudent2[i].push(_works);
  19002. this.isWorksS[i].push({
  19003. uid: b[j].userid,
  19004. sName: b[j].name
  19005. });
  19006. } else if (
  19007. y.indexOf(
  19008. b[j].content
  19009. .split(".")
  19010. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19011. ) != -1 &&
  19012. a[i].tool[0] == 16 &&
  19013. b[j].atool != 50
  19014. ) {
  19015. let _works = {
  19016. userid: b[j].userid,
  19017. ateacher: b[j].ateacher,
  19018. wid: b[j].id,
  19019. works: b[j].content,
  19020. sName: b[j].name,
  19021. type: 3,
  19022. ttype: b[j].ttype,
  19023. time: b[j].time,
  19024. score: b[j].score,
  19025. img: b[j].img,
  19026. likesCount: likesCount,
  19027. commentCount: commentCount,
  19028. isLikes: isLikes,
  19029. commentJson: commentJson,
  19030. likeJson: likeJson
  19031. };
  19032. if (this.isGroup) {
  19033. let isGw = 1;
  19034. for (
  19035. var groupI = 0;
  19036. groupI < this.courseGroup.group.length;
  19037. groupI++
  19038. ) {
  19039. let gid = this.courseGroup.group[groupI].id;
  19040. if (
  19041. this.courseGroupStudentUid[gid].indexOf(
  19042. b[j].userid
  19043. ) != -1
  19044. ) {
  19045. isGw = 2;
  19046. this.courseGroup.group[groupI].works[i].push(_works);
  19047. break;
  19048. }
  19049. }
  19050. if (isGw == 1) {
  19051. _worksStudent[i].push(_works);
  19052. }
  19053. } else {
  19054. _worksStudent[i].push(_works);
  19055. }
  19056. _worksStudent2[i].push(_works);
  19057. this.isWorksS[i].push({
  19058. uid: b[j].userid,
  19059. sName: b[j].name
  19060. });
  19061. } else if (b[j].type == 6 && b[j].atool != 50) {
  19062. let _works = {
  19063. userid: b[j].userid,
  19064. ateacher: b[j].ateacher,
  19065. wid: b[j].id,
  19066. works: b[j].content,
  19067. sName: b[j].name,
  19068. type: 4,
  19069. ttype: b[j].ttype,
  19070. time: b[j].time,
  19071. score: b[j].score,
  19072. img: b[j].img,
  19073. likesCount: likesCount,
  19074. commentCount: commentCount,
  19075. isLikes: isLikes,
  19076. commentJson: commentJson,
  19077. likeJson: likeJson
  19078. };
  19079. _worksStudent[i].push(_works);
  19080. _worksStudent2[i].push(_works);
  19081. this.isWorksS[i].push({
  19082. uid: b[j].userid,
  19083. sName: b[j].name
  19084. });
  19085. } else if (b[j].type == 7 && b[j].atool != 50) {
  19086. let _work = {
  19087. userid: b[j].userid,
  19088. ateacher: b[j].ateacher,
  19089. wid: b[j].id,
  19090. works: b[j].content,
  19091. sName: b[j].name,
  19092. type: 5,
  19093. ttype: b[j].ttype,
  19094. time: b[j].time,
  19095. score: b[j].score,
  19096. img: b[j].img,
  19097. likesCount: likesCount,
  19098. commentCount: commentCount,
  19099. isLikes: isLikes,
  19100. commentJson: commentJson,
  19101. likeJson: likeJson
  19102. };
  19103. _worksStudent[i].push(_work);
  19104. _worksStudent2[i].push(_work);
  19105. this.isWorksS[i].push({
  19106. uid: b[j].userid,
  19107. sName: b[j].name
  19108. });
  19109. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19110. let _works = {
  19111. userid: b[j].userid,
  19112. ateacher: b[j].ateacher,
  19113. wid: b[j].id,
  19114. works: b[j].content,
  19115. sName: b[j].name,
  19116. type: 12,
  19117. ttype: b[j].ttype,
  19118. time: b[j].time,
  19119. score: b[j].score,
  19120. img: b[j].img,
  19121. likesCount: likesCount,
  19122. commentCount: commentCount,
  19123. isLikes: isLikes,
  19124. commentJson: commentJson,
  19125. likeJson: likeJson
  19126. };
  19127. if (this.isGroup) {
  19128. let isGw = 1;
  19129. for (
  19130. var groupI = 0;
  19131. groupI < this.courseGroup.group.length;
  19132. groupI++
  19133. ) {
  19134. let gid = this.courseGroup.group[groupI].id;
  19135. if (
  19136. this.courseGroupStudentUid[gid].indexOf(
  19137. b[j].userid
  19138. ) != -1
  19139. ) {
  19140. isGw = 2;
  19141. this.courseGroup.group[groupI].works[i].push(_works);
  19142. break;
  19143. }
  19144. }
  19145. if (isGw == 1) {
  19146. _worksStudent[i].push(_works);
  19147. }
  19148. } else {
  19149. _worksStudent[i].push(_works);
  19150. }
  19151. _worksStudent2[i].push(_works);
  19152. this.isWorksS[i].push({
  19153. uid: b[j].userid,
  19154. sName: b[j].name
  19155. });
  19156. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19157. let _works = {
  19158. userid: b[j].userid,
  19159. ateacher: b[j].ateacher,
  19160. wid: b[j].id,
  19161. works: b[j].content,
  19162. sName: b[j].name,
  19163. type: 0,
  19164. ttype: b[j].ttype,
  19165. time: b[j].time,
  19166. score: b[j].score,
  19167. img: b[j].img,
  19168. likesCount: likesCount,
  19169. commentCount: commentCount,
  19170. isLikes: isLikes,
  19171. commentJson: commentJson,
  19172. likeJson: likeJson
  19173. };
  19174. if (this.isGroup) {
  19175. let isGw = 1;
  19176. for (
  19177. var groupI = 0;
  19178. groupI < this.courseGroup.group.length;
  19179. groupI++
  19180. ) {
  19181. let gid = this.courseGroup.group[groupI].id;
  19182. if (
  19183. this.courseGroupStudentUid[gid].indexOf(
  19184. b[j].userid
  19185. ) != -1
  19186. ) {
  19187. isGw = 2;
  19188. this.courseGroup.group[groupI].works[i].push(_works);
  19189. break;
  19190. }
  19191. }
  19192. if (isGw == 1) {
  19193. _worksStudent[i].push(_works);
  19194. }
  19195. } else {
  19196. _worksStudent[i].push(_works);
  19197. }
  19198. _worksStudent2[i].push(_works);
  19199. this.isWorksS[i].push({
  19200. uid: b[j].userid,
  19201. sName: b[j].name
  19202. });
  19203. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19204. let _works = {
  19205. userid: b[j].userid,
  19206. ateacher: b[j].ateacher,
  19207. wid: b[j].id,
  19208. works: b[j].content,
  19209. sName: b[j].name,
  19210. type: 0,
  19211. ttype: b[j].ttype,
  19212. time: b[j].time,
  19213. score: b[j].score,
  19214. img: b[j].img,
  19215. likesCount: likesCount,
  19216. commentCount: commentCount,
  19217. isLikes: isLikes,
  19218. commentJson: commentJson,
  19219. likeJson: likeJson
  19220. };
  19221. if (this.isGroup) {
  19222. let isGw = 1;
  19223. for (
  19224. var groupI = 0;
  19225. groupI < this.courseGroup.group.length;
  19226. groupI++
  19227. ) {
  19228. let gid = this.courseGroup.group[groupI].id;
  19229. if (
  19230. this.courseGroupStudentUid[gid].indexOf(
  19231. b[j].userid
  19232. ) != -1
  19233. ) {
  19234. isGw = 2;
  19235. this.courseGroup.group[groupI].works[i].push(_works);
  19236. break;
  19237. }
  19238. }
  19239. if (isGw == 1) {
  19240. _worksStudent[i].push(_works);
  19241. }
  19242. } else {
  19243. _worksStudent[i].push(_works);
  19244. }
  19245. _worksStudent2[i].push(_works);
  19246. this.isWorksS[i].push({
  19247. uid: b[j].userid,
  19248. sName: b[j].name
  19249. });
  19250. }
  19251. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19252. let _works = {
  19253. userid: b[j].userid,
  19254. ateacher: b[j].ateacher,
  19255. wid: b[j].id,
  19256. works: b[j].content,
  19257. sName: b[j].name,
  19258. type: 2,
  19259. ttype: b[j].ttype,
  19260. time: b[j].time,
  19261. score: b[j].score,
  19262. img: b[j].img,
  19263. likesCount: likesCount,
  19264. commentCount: commentCount,
  19265. isLikes: isLikes,
  19266. commentJson: commentJson,
  19267. likeJson: likeJson
  19268. };
  19269. if (this.isGroup) {
  19270. let isGw = 1;
  19271. for (
  19272. var groupI = 0;
  19273. groupI < this.courseGroup.group.length;
  19274. groupI++
  19275. ) {
  19276. let gid = this.courseGroup.group[groupI].id;
  19277. if (
  19278. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19279. -1
  19280. ) {
  19281. isGw = 2;
  19282. this.courseGroup.group[groupI].works[i].push(_works);
  19283. break;
  19284. }
  19285. }
  19286. if (isGw == 1) {
  19287. _worksStudent[i].push(_works);
  19288. }
  19289. } else {
  19290. _worksStudent[i].push(_works);
  19291. }
  19292. _worksStudent2[i].push(_works);
  19293. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19294. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19295. //问卷
  19296. let _work = {
  19297. userid: b[j].userid,
  19298. ateacher: b[j].ateacher,
  19299. wid: b[j].id,
  19300. works: b[j].content,
  19301. sName: b[j].name,
  19302. type: 2,
  19303. ttype: b[j].ttype,
  19304. time: b[j].time,
  19305. score: b[j].score,
  19306. img: b[j].img,
  19307. likesCount: likesCount,
  19308. commentCount: commentCount,
  19309. isLikes: isLikes,
  19310. commentJson: commentJson,
  19311. likeJson: likeJson
  19312. };
  19313. _worksStudent[i].push(_work);
  19314. _worksStudent2[i].push(_work);
  19315. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19316. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19317. //选择题
  19318. let _work = {
  19319. userid: b[j].userid,
  19320. ateacher: b[j].ateacher,
  19321. wid: b[j].id,
  19322. works: b[j].content,
  19323. sName: b[j].name,
  19324. type: 8,
  19325. ttype: b[j].ttype,
  19326. time: b[j].time,
  19327. score: b[j].score,
  19328. img: b[j].img,
  19329. likesCount: likesCount,
  19330. commentCount: commentCount,
  19331. isLikes: isLikes,
  19332. commentJson: commentJson,
  19333. likeJson: likeJson
  19334. };
  19335. _worksStudent[i].push(_work);
  19336. _worksStudent2[i].push(_work);
  19337. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19338. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19339. //选择题
  19340. let _work = {
  19341. userid: b[j].userid,
  19342. ateacher: b[j].ateacher,
  19343. wid: b[j].id,
  19344. works: b[j].content,
  19345. sName: b[j].name,
  19346. type: 9,
  19347. ttype: b[j].ttype,
  19348. time: b[j].time,
  19349. score: b[j].score,
  19350. img: b[j].img,
  19351. likesCount: likesCount,
  19352. commentCount: commentCount,
  19353. isLikes: isLikes,
  19354. commentJson: commentJson,
  19355. likeJson: likeJson
  19356. };
  19357. _worksStudent[i].push(_work);
  19358. _worksStudent2[i].push(_work);
  19359. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19360. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19361. //选择题
  19362. let _work = {
  19363. userid: b[j].userid,
  19364. ateacher: b[j].ateacher,
  19365. wid: b[j].id,
  19366. works: b[j].content,
  19367. sName: b[j].name,
  19368. type: 10,
  19369. ttype: b[j].ttype,
  19370. time: b[j].time,
  19371. score: b[j].score,
  19372. img: b[j].img,
  19373. likesCount: likesCount,
  19374. commentCount: commentCount,
  19375. isLikes: isLikes,
  19376. commentJson: commentJson,
  19377. likeJson: likeJson
  19378. };
  19379. _worksStudent[i].push(_work);
  19380. _worksStudent2[i].push(_work);
  19381. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19382. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19383. //选择题
  19384. let _work = {
  19385. userid: b[j].userid,
  19386. ateacher: b[j].ateacher,
  19387. wid: b[j].id,
  19388. works: b[j].content,
  19389. sName: b[j].name,
  19390. type: 13,
  19391. ttype: b[j].ttype,
  19392. time: b[j].time,
  19393. score: b[j].score,
  19394. img: b[j].img,
  19395. likesCount: likesCount,
  19396. commentCount: commentCount,
  19397. isLikes: isLikes,
  19398. commentJson: commentJson,
  19399. likeJson: likeJson
  19400. };
  19401. _worksStudent[i].push(_work);
  19402. _worksStudent2[i].push(_work);
  19403. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19404. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19405. //选择题
  19406. let _work = {
  19407. userid: b[j].userid,
  19408. ateacher: b[j].ateacher,
  19409. wid: b[j].id,
  19410. works: b[j].content,
  19411. sName: b[j].name,
  19412. type: 16,
  19413. ttype: b[j].ttype,
  19414. time: b[j].time,
  19415. score: b[j].score,
  19416. img: b[j].img,
  19417. likesCount: likesCount,
  19418. commentCount: commentCount,
  19419. isLikes: isLikes,
  19420. commentJson: commentJson,
  19421. aiCode: b[j].aiCode,
  19422. teacherCode: b[j].teacherCode,
  19423. likeJson: likeJson
  19424. };
  19425. _worksStudent[i].push(_work);
  19426. _worksStudent2[i].push(_work);
  19427. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19428. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19429. //选择题
  19430. let _work = {
  19431. userid: b[j].userid,
  19432. ateacher: b[j].ateacher,
  19433. wid: b[j].id,
  19434. works: b[j].content,
  19435. sName: b[j].name,
  19436. type: 17,
  19437. ttype: b[j].ttype,
  19438. time: b[j].time,
  19439. score: b[j].score,
  19440. img: b[j].img,
  19441. likesCount: likesCount,
  19442. commentCount: commentCount,
  19443. isLikes: isLikes,
  19444. commentJson: commentJson,
  19445. likeJson: likeJson
  19446. };
  19447. _worksStudent[i].push(_work);
  19448. _worksStudent2[i].push(_work);
  19449. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19450. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19451. //交互视频
  19452. let _work = {
  19453. userid: b[j].userid,
  19454. ateacher: b[j].ateacher,
  19455. wid: b[j].id,
  19456. works: b[j].content,
  19457. sName: b[j].name,
  19458. type: 14,
  19459. ttype: b[j].ttype,
  19460. time: b[j].time,
  19461. score: b[j].score,
  19462. img: b[j].img,
  19463. likesCount: likesCount,
  19464. commentCount: commentCount,
  19465. isLikes: isLikes,
  19466. commentJson: commentJson,
  19467. likeJson: likeJson
  19468. };
  19469. _worksStudent[i].push(_work);
  19470. _worksStudent2[i].push(_work);
  19471. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19472. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19473. let _gindex = JSON.parse(b[j].content);
  19474. if (
  19475. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19476. b[j].userid
  19477. ) != -1
  19478. ) {
  19479. let _work = {
  19480. userid: b[j].userid,
  19481. ateacher: b[j].ateacher,
  19482. wid: b[j].id,
  19483. works: _gindex.url,
  19484. sName: b[j].name,
  19485. type: _gindex.type,
  19486. ttype: b[j].ttype,
  19487. time: b[j].time,
  19488. score: b[j].score,
  19489. img: b[j].img,
  19490. likesCount: likesCount,
  19491. commentCount: commentCount,
  19492. isLikes: isLikes,
  19493. commentJson: commentJson,
  19494. likeJson: likeJson
  19495. };
  19496. _worksStudent[i][_gindex.groupIndex].push(_work);
  19497. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19498. }
  19499. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19500. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19501. let _work = {
  19502. userid: b[j].userid,
  19503. ateacher: b[j].ateacher,
  19504. wid: b[j].id,
  19505. works: b[j].content,
  19506. sName: b[j].name ? b[j].name : b[j].userid,
  19507. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19508. ttype: b[j].ttype,
  19509. time: b[j].time,
  19510. score: b[j].score,
  19511. img: b[j].img,
  19512. likesCount: likesCount,
  19513. commentCount: commentCount,
  19514. isLikes: isLikes,
  19515. commentJson: commentJson,
  19516. likeJson: likeJson
  19517. };
  19518. _worksStudent[i].push(_work);
  19519. _worksStudent2[i].push(_work);
  19520. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19521. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  19522. let _work = {
  19523. userid: b[j].userid,
  19524. ateacher: b[j].ateacher,
  19525. wid: b[j].id,
  19526. works: b[j].content,
  19527. sName: b[j].name ? b[j].name : b[j].userid,
  19528. type: 12,
  19529. ttype: b[j].ttype,
  19530. time: b[j].time,
  19531. score: b[j].score,
  19532. img: b[j].img,
  19533. likesCount: likesCount,
  19534. commentCount: commentCount,
  19535. isLikes: isLikes,
  19536. commentJson: commentJson,
  19537. likeJson: likeJson
  19538. };
  19539. _worksStudent[i].push(_work);
  19540. _worksStudent2[i].push(_work);
  19541. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19542. } else if (
  19543. a[i].tool[0] == 57 &&
  19544. b[j].atool == 57 &&
  19545. b[j].type == 12
  19546. ) {
  19547. let _work = {
  19548. userid: b[j].userid,
  19549. ateacher: b[j].ateacher,
  19550. wid: b[j].id,
  19551. works: b[j].content,
  19552. sName: b[j].name ? b[j].name : b[j].userid,
  19553. type: 12,
  19554. ttype: b[j].ttype,
  19555. time: b[j].time,
  19556. score: b[j].score,
  19557. img: b[j].img,
  19558. likesCount: likesCount,
  19559. commentCount: commentCount,
  19560. isLikes: isLikes,
  19561. commentJson: commentJson,
  19562. likeJson: likeJson
  19563. };
  19564. _worksStudent[i].push(_work);
  19565. _worksStudent2[i].push(_work);
  19566. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19567. } else if (
  19568. a[i].tool[0] == 57 &&
  19569. b[j].atool == 57 &&
  19570. b[j].type == 15
  19571. ) {
  19572. let _work = {
  19573. userid: b[j].userid,
  19574. ateacher: b[j].ateacher,
  19575. wid: b[j].id,
  19576. works: b[j].content,
  19577. sName: b[j].name ? b[j].name : b[j].userid,
  19578. type: 15,
  19579. ttype: b[j].ttype,
  19580. time: b[j].time,
  19581. score: b[j].score,
  19582. img: b[j].img,
  19583. likesCount: likesCount,
  19584. commentCount: commentCount,
  19585. isLikes: isLikes,
  19586. commentJson: commentJson,
  19587. likeJson: likeJson
  19588. };
  19589. _worksStudent[i].push(_work);
  19590. _worksStudent2[i].push(_work);
  19591. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19592. }
  19593. }
  19594. }
  19595. if (_worksStudent[i] && _worksStudent[i].length) {
  19596. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19597. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19598. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19599. var scoreA = parseFloat(jscoreA);
  19600. var scoreB = parseFloat(jscoreB);
  19601. if (scoreA == scoreB) {
  19602. return b.likesCount - a.likesCount;
  19603. }
  19604. return scoreB - scoreA;
  19605. });
  19606. if (this.isGroup) {
  19607. for (
  19608. var groupI = 0;
  19609. groupI < this.courseGroup.group.length;
  19610. groupI++
  19611. ) {
  19612. this.courseGroup.group[groupI].works[
  19613. i
  19614. ] = this.courseGroup.group[groupI].works[i].sort(function(
  19615. a,
  19616. b
  19617. ) {
  19618. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19619. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19620. var scoreA = parseFloat(jscoreA);
  19621. var scoreB = parseFloat(jscoreB);
  19622. if (scoreA == scoreB) {
  19623. return b.likesCount - a.likesCount;
  19624. }
  19625. return scoreB - scoreA;
  19626. });
  19627. }
  19628. }
  19629. }
  19630. }
  19631. this.timeWorkList = _worksStudent2;
  19632. for (var i = 0; i < a.length; i++) {
  19633. for (var j = 0; j < b.length; j++) {
  19634. var data = b[j];
  19635. if (i == b[j].tool) {
  19636. if (data.type == 2 || data.type == 8) {
  19637. for (var z = 0; z < this.checkJson[i].length; z++) {
  19638. this.checkJson[i][z].checkPerent = [];
  19639. this.checkJson[i][z].right = Math.round(
  19640. (this.checkJson[i][z].rightPerson.length /
  19641. parseInt(_worksStudent[i].length)) *
  19642. 100
  19643. );
  19644. let aaaa = this.checkJson[i][z];
  19645. for (
  19646. var k = 0;
  19647. k < this.checkJson[i][z].checkCount.length;
  19648. k++
  19649. ) {
  19650. this.checkJson[i][z].checkPerent.push(
  19651. Math.round(
  19652. (this.checkJson[i][z].checkCount[k] /
  19653. parseInt(_worksStudent[i].length)) *
  19654. 100
  19655. )
  19656. );
  19657. }
  19658. }
  19659. } else if (data.type == 9) {
  19660. for (var z = 0; z < this.checkJson[i].length; z++) {
  19661. this.checkJson[i][z].checkPerent = [];
  19662. this.checkJson[i][z].right = Math.round(
  19663. (this.checkJson[i][z].rightPerson.length /
  19664. this.checkJson[i][z].checkPerson.length) *
  19665. 100
  19666. );
  19667. }
  19668. }
  19669. }
  19670. }
  19671. }
  19672. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  19673. this.joinGroup(gindex);
  19674. }
  19675. this.worksStudent = _worksStudent;
  19676. if (
  19677. JSON.stringify(this.worksStudentCopy) !=
  19678. JSON.stringify(this.worksStudent)
  19679. ) {
  19680. console.log("88888999999");
  19681. this.worksStudentCopy = this.worksStudent;
  19682. this.AIloading = [];
  19683. this.loopLoading = [];
  19684. this.worksStudent.forEach((e, index) => {
  19685. this.loopLoading.push({ loading: false });
  19686. this.AIloading.push([]);
  19687. e.forEach(k => {
  19688. this.AIloading[index].push({ loading: false, sco: 0 });
  19689. });
  19690. });
  19691. this.refreshAssembly();
  19692. }
  19693. this.selectWorksStudent();
  19694. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  19695. this.$nextTick(() => {
  19696. setTimeout(() => {
  19697. setTimeout(() => {
  19698. this.panToolHeight("tool-" + ci);
  19699. }, 500);
  19700. }, 0);
  19701. });
  19702. }
  19703. })
  19704. .catch(err => {
  19705. console.error(err);
  19706. });
  19707. },
  19708. pngToWhiteBg(file) {
  19709. const _file = file;
  19710. let read = new FileReader();
  19711. read.readAsDataURL(file); // 文件转base64
  19712. return new Promise((resolve, reject) => {
  19713. read.onload = e => {
  19714. let img = new Image();
  19715. img.src = e.target.result;
  19716. img.onload = async () => {
  19717. // 生成canvas
  19718. let canvas = document.createElement("canvas");
  19719. let context = canvas.getContext("2d");
  19720. // 绘制图片到canvas上
  19721. canvas.width = img.width;
  19722. canvas.height = img.height;
  19723. // 在canvas绘制前填充白色背景
  19724. context.fillStyle = "#fff";
  19725. context.fillRect(0, 0, canvas.width, canvas.height);
  19726. context.drawImage(img, 0, 0);
  19727. let base64 = canvas.toDataURL(file["type"], 1);
  19728. let newFile = this.dataUrlToFile(base64, _file);
  19729. resolve(newFile);
  19730. };
  19731. };
  19732. });
  19733. },
  19734. dataUrlToFile(dataurl, file) {
  19735. let arr = dataurl.split(","),
  19736. mime = arr[0].match(/:(.*?);/)[1],
  19737. bstr = atob(arr[1]),
  19738. n = bstr.length,
  19739. u8arr = new Uint8Array(n);
  19740. while (n--) {
  19741. u8arr[n] = bstr.charCodeAt(n);
  19742. }
  19743. // return new Blob([u8arr], { type: mime });
  19744. return new File([new Blob([u8arr], { type: mime })], file.name, {
  19745. type: mime
  19746. });
  19747. },
  19748. async beforeUpload1(event, type, i) {
  19749. // this.$message.success('进入上传')
  19750. var file = "";
  19751. if (type == 5) {
  19752. file = event;
  19753. } else {
  19754. file = event.target.files[0];
  19755. }
  19756. var credentials = {
  19757. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19758. secretAccessKey: "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"
  19759. }; //秘钥形式的登录上传
  19760. window.AWS.config.update(credentials);
  19761. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19762. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19763. var _this = this;
  19764. _this.progress = 0;
  19765. _this.proVisible = true;
  19766. _this.isFinishSize = 0;
  19767. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  19768. var b = [
  19769. "DOC",
  19770. "DOCX",
  19771. "DOCM",
  19772. "DOTM",
  19773. "DOTX",
  19774. "PPTX",
  19775. "PPSX",
  19776. "PPT",
  19777. "PPS",
  19778. "PPTM",
  19779. "POTM",
  19780. "PPAM",
  19781. "POTX",
  19782. "PPSM"
  19783. ];
  19784. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19785. var photoA = [
  19786. "BMP",
  19787. "GIF",
  19788. "PNG",
  19789. "JPEG",
  19790. "JPEG",
  19791. "JPG",
  19792. "TIF",
  19793. "PCX",
  19794. "TGA",
  19795. "EXIF",
  19796. "FPX",
  19797. "SVG",
  19798. "APNG"
  19799. ];
  19800. // if (
  19801. // b.indexOf(
  19802. // file.name
  19803. // .split(".")
  19804. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19805. // ) != -1
  19806. // ) {
  19807. // if (file.size / 1024 / 1024 > 10) {
  19808. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  19809. // return;
  19810. // }
  19811. // } else if (
  19812. // excelA.indexOf(
  19813. // file.name
  19814. // .split(".")
  19815. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19816. // ) != "-1"
  19817. // ) {
  19818. // if (file.size / 1024 / 1024 > 5) {
  19819. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  19820. // return;
  19821. // }
  19822. // }
  19823. if (
  19824. photoA.indexOf(
  19825. file.name
  19826. .split(".")
  19827. [file.name.split(".").length - 1].toLocaleUpperCase()
  19828. ) != -1 &&
  19829. type != 4
  19830. ) {
  19831. // const blob = await imageConversion.compress(file, 0.8)
  19832. file = await this.pngToWhiteBg(file);
  19833. const blob = await imageConversion.compressAccurately(file, 256);
  19834. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19835. file = new File([blob], file.name, { type: file.type });
  19836. }
  19837. if (file) {
  19838. var params = {
  19839. Key:
  19840. file.name.split(".")[0] +
  19841. new Date().getTime() +
  19842. "." +
  19843. file.name.split(".")[file.name.split(".").length - 1],
  19844. ContentType: file.type,
  19845. Body: file,
  19846. "Access-Control-Allow-Credentials": "*",
  19847. ACL: "public-read"
  19848. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19849. var options = {
  19850. // partSize: 2048 * 1024 * 1024,
  19851. partSize: 1024 * 1024 * 1024,
  19852. queueSize: 2,
  19853. leavePartsOnError: true
  19854. };
  19855. bucket
  19856. .upload(params, options)
  19857. .on("httpUploadProgress", function(evt) {
  19858. //这里可以写进度条
  19859. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19860. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  19861. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  19862. })
  19863. .send(function(err, data) {
  19864. _this.progress = 100;
  19865. _this.isFinishSize = _this.isAllSize;
  19866. setTimeout(() => {
  19867. _this.proVisible = false;
  19868. }, 1000);
  19869. if (err) {
  19870. var a = _this.$refs.upload1.uploadFiles;
  19871. a.splice(a.length - 1, a.length);
  19872. _this.$message.error("上传失败");
  19873. } else {
  19874. // _this.$message.success('上传成功')
  19875. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19876. var c = [
  19877. "AVI",
  19878. "NAVI",
  19879. "MPEG",
  19880. "ASF",
  19881. "MOV",
  19882. "WMV",
  19883. "3GP",
  19884. "RM",
  19885. "RMVB",
  19886. "FLV",
  19887. "F4V",
  19888. "H.264",
  19889. "H.265",
  19890. "REAL VIDEO",
  19891. "MKV",
  19892. "WebM",
  19893. "HDDVD",
  19894. "MP4",
  19895. "MPG",
  19896. "M4V",
  19897. "MGV",
  19898. "OGV",
  19899. "QTM",
  19900. "STR",
  19901. "AMC",
  19902. "DVX",
  19903. "EVO",
  19904. "DAT",
  19905. "OGG",
  19906. "OGM"
  19907. ];
  19908. if (type == 1) {
  19909. _this.studyJuri[0].cover.push({
  19910. name: file.name,
  19911. url: data.Location,
  19912. uid: file.uid
  19913. });
  19914. if (
  19915. c.indexOf(
  19916. _this.studyJuri[0].cover[0].url
  19917. .split(".")
  19918. [
  19919. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19920. ].toLocaleUpperCase()
  19921. ) != -1
  19922. ) {
  19923. _this.fileType = 2;
  19924. } else if (
  19925. b.indexOf(
  19926. _this.studyJuri[0].cover[0].url
  19927. .split(".")
  19928. [
  19929. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19930. ].toLocaleUpperCase()
  19931. ) != -1
  19932. ) {
  19933. _this.fileType = 1;
  19934. } else if (
  19935. photoA.indexOf(
  19936. _this.studyJuri[0].cover[0].url
  19937. .split(".")
  19938. [
  19939. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19940. ].toLocaleUpperCase()
  19941. ) != -1
  19942. ) {
  19943. _this.fileType = 0;
  19944. } else {
  19945. _this.fileType = 3;
  19946. }
  19947. _this.imgChange(null, null, type);
  19948. } else if (type == 2) {
  19949. _this.upToolImg = data.Location;
  19950. _this.imgChange(null, null, type);
  19951. _this.addCourseWorks(i);
  19952. } else if (type == 4) {
  19953. _this.addPz("3", data.Location);
  19954. } else if (type == 5) {
  19955. _this.addImgDrawImG(data.Location);
  19956. } else if (type == 6) {
  19957. var _ftype = 1;
  19958. if (
  19959. c.indexOf(
  19960. data.Location.split(".")[
  19961. data.Location.split(".").length - 1
  19962. ].toLocaleUpperCase()
  19963. ) != -1
  19964. ) {
  19965. _ftype = 5;
  19966. } else if (
  19967. b.indexOf(
  19968. data.Location.split(".")[
  19969. data.Location.split(".").length - 1
  19970. ].toLocaleUpperCase()
  19971. ) != -1
  19972. ) {
  19973. _ftype = 4;
  19974. } else {
  19975. _ftype = 1;
  19976. }
  19977. _this.plworkFile.push({
  19978. name: file.name,
  19979. url: data.Location,
  19980. uid: file.uid,
  19981. fileType: _ftype,
  19982. username:
  19983. _this.plworkFile.length > 10
  19984. ? _this.plworkFile.length + 1
  19985. : "0" + (_this.plworkFile.length + 1)
  19986. });
  19987. } else if (type == 7) {
  19988. _this.addCourseWorksGong(i, data.Location, 32);
  19989. } else if (type == 8) {
  19990. _this.addCourseWorksGong(i, data.Location, 57);
  19991. }
  19992. _this.imgChange(null, null, type);
  19993. console.log(data.Location);
  19994. // _this.$message.success('上传成功'+data.Location)
  19995. }
  19996. });
  19997. }
  19998. },
  19999. async beforeUpload3(event, type, i) {
  20000. // this.$message.success('进入上传')
  20001. let file = "";
  20002. let cfindex2 = 0;
  20003. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20004. file = event.target.files[cfindex];
  20005. var credentials = {
  20006. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20007. secretAccessKey: "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"
  20008. }; //秘钥形式的登录上传
  20009. window.AWS.config.update(credentials);
  20010. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20011. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20012. var _this = this;
  20013. // _this.progress = 0;
  20014. _this.proVisible2 = true;
  20015. var b = [
  20016. "DOC",
  20017. "DOCX",
  20018. "DOCM",
  20019. "DOTM",
  20020. "DOTX",
  20021. "PPTX",
  20022. "PPSX",
  20023. "PPT",
  20024. "PPS",
  20025. "PPTM",
  20026. "POTM",
  20027. "PPAM",
  20028. "POTX",
  20029. "PPSM"
  20030. ];
  20031. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20032. var photoA = [
  20033. "BMP",
  20034. "GIF",
  20035. "PNG",
  20036. "JPEG",
  20037. "JPG",
  20038. "TIF",
  20039. "PCX",
  20040. "TGA",
  20041. "EXIF",
  20042. "FPX",
  20043. "SVG",
  20044. "APNG"
  20045. ];
  20046. if (
  20047. photoA.indexOf(
  20048. file.name
  20049. .split(".")
  20050. [file.name.split(".").length - 1].toLocaleUpperCase()
  20051. ) != -1 &&
  20052. type != 4
  20053. ) {
  20054. // const blob = await imageConversion.compress(file, 0.8)
  20055. file = await this.pngToWhiteBg(file);
  20056. const blob = await imageConversion.compressAccurately(file, 256);
  20057. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20058. file = new File([blob], file.name, { type: file.type });
  20059. }
  20060. if (file) {
  20061. var params = {
  20062. Key:
  20063. file.name.split(".")[0] +
  20064. new Date().getTime() +
  20065. "." +
  20066. file.name.split(".")[file.name.split(".").length - 1],
  20067. ContentType: file.type,
  20068. Body: file,
  20069. "Access-Control-Allow-Credentials": "*",
  20070. ACL: "public-read"
  20071. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20072. var options = {
  20073. // partSize: 2048 * 1024 * 1024,
  20074. partSize: 1024 * 1024 * 1024,
  20075. queueSize: 2,
  20076. leavePartsOnError: true
  20077. };
  20078. bucket
  20079. .upload(params, options)
  20080. .on("httpUploadProgress", function(evt) {
  20081. //这里可以写进度条
  20082. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20083. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20084. })
  20085. .send(function(err, data) {
  20086. // _this.progress = 100;
  20087. cfindex2++;
  20088. setTimeout(() => {
  20089. if (
  20090. cfindex2 == event.target.files.length - 1 ||
  20091. cfindex2 > event.target.files.length - 1
  20092. ) {
  20093. _this.proVisible2 = false;
  20094. }
  20095. }, 1000);
  20096. if (err) {
  20097. var a = _this.$refs.upload1.uploadFiles;
  20098. a.splice(a.length - 1, a.length);
  20099. _this.$message.error("上传失败");
  20100. } else {
  20101. // _this.$message.success('上传成功')
  20102. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20103. var c = [
  20104. "AVI",
  20105. "NAVI",
  20106. "MPEG",
  20107. "ASF",
  20108. "MOV",
  20109. "WMV",
  20110. "3GP",
  20111. "RM",
  20112. "RMVB",
  20113. "FLV",
  20114. "F4V",
  20115. "H.264",
  20116. "H.265",
  20117. "REAL VIDEO",
  20118. "MKV",
  20119. "WebM",
  20120. "HDDVD",
  20121. "MP4",
  20122. "MPG",
  20123. "M4V",
  20124. "MGV",
  20125. "OGV",
  20126. "QTM",
  20127. "STR",
  20128. "AMC",
  20129. "DVX",
  20130. "EVO",
  20131. "DAT",
  20132. "OGG",
  20133. "OGM"
  20134. ];
  20135. if (type == 1) {
  20136. _this.studyJuri[0].cover.push({
  20137. name: file.name,
  20138. url: data.Location,
  20139. uid: file.uid
  20140. });
  20141. if (
  20142. c.indexOf(
  20143. _this.studyJuri[0].cover[0].url
  20144. .split(".")
  20145. [
  20146. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20147. ].toLocaleUpperCase()
  20148. ) != -1
  20149. ) {
  20150. _this.fileType = 2;
  20151. } else if (
  20152. b.indexOf(
  20153. _this.studyJuri[0].cover[0].url
  20154. .split(".")
  20155. [
  20156. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20157. ].toLocaleUpperCase()
  20158. ) != -1
  20159. ) {
  20160. _this.fileType = 1;
  20161. } else {
  20162. _this.fileType = 0;
  20163. }
  20164. _this.imgChange(null, null, type);
  20165. } else if (type == 2) {
  20166. _this.upToolImg = data.Location;
  20167. _this.imgChange(null, null, type);
  20168. _this.addCourseWorks(i);
  20169. } else if (type == 4) {
  20170. _this.addPz("3", data.Location);
  20171. } else if (type == 5) {
  20172. _this.addImgDrawImG(data.Location);
  20173. } else if (type == 6) {
  20174. var _ftype = 1;
  20175. if (
  20176. c.indexOf(
  20177. data.Location.split(".")[
  20178. data.Location.split(".").length - 1
  20179. ].toLocaleUpperCase()
  20180. ) != -1
  20181. ) {
  20182. _ftype = 5;
  20183. } else if (
  20184. b.indexOf(
  20185. data.Location.split(".")[
  20186. data.Location.split(".").length - 1
  20187. ].toLocaleUpperCase()
  20188. ) != -1
  20189. ) {
  20190. _ftype = 4;
  20191. } else {
  20192. _ftype = 1;
  20193. }
  20194. _this.plworkFile.push({
  20195. name: file.name,
  20196. url: data.Location,
  20197. uid: file.uid,
  20198. fileType: _ftype,
  20199. username:
  20200. _this.plworkFile.length + 1 > 9
  20201. ? _this.plworkFile.length + 1
  20202. : "0" + (_this.plworkFile.length + 1)
  20203. });
  20204. }
  20205. _this.imgChange(null, null, type);
  20206. console.log(data.Location);
  20207. // _this.$message.success('上传成功'+data.Location)
  20208. }
  20209. });
  20210. }
  20211. }
  20212. },
  20213. beforeUpload2(event, type) {
  20214. var file = event.target.files[0];
  20215. var credentials = {
  20216. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20217. secretAccessKey: "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"
  20218. }; //秘钥形式的登录上传
  20219. window.AWS.config.update(credentials);
  20220. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20221. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20222. var _this = this;
  20223. _this.progress = 0;
  20224. _this.proVisible = true;
  20225. if (file) {
  20226. var params = {
  20227. Key:
  20228. file.name.split(".")[0] +
  20229. new Date().getTime() +
  20230. "." +
  20231. file.name.split(".")[file.name.split(".").length - 1],
  20232. ContentType: file.type,
  20233. Body: file,
  20234. "Access-Control-Allow-Credentials": "*",
  20235. ACL: "public-read"
  20236. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20237. var options = {
  20238. partSize: 2048 * 1024 * 1024,
  20239. queueSize: 2,
  20240. leavePartsOnError: true
  20241. };
  20242. bucket
  20243. .upload(params, options)
  20244. .on("httpUploadProgress", function(evt) {
  20245. //这里可以写进度条
  20246. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20247. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20248. })
  20249. .send(function(err, data) {
  20250. _this.progress = 100;
  20251. setTimeout(() => {
  20252. _this.proVisible = false;
  20253. }, 1000);
  20254. if (err) {
  20255. var a = _this.$refs.upload1.uploadFiles;
  20256. a.splice(a.length - 1, a.length);
  20257. _this.$message.error("上传失败");
  20258. } else {
  20259. if (type == 2) {
  20260. _this.studyJuri[0].upVedio.push({
  20261. name: file.name,
  20262. url: data.Location,
  20263. uid: file.uid
  20264. });
  20265. _this.imgChange(null, null, type);
  20266. } else if (type == 3) {
  20267. _this.studyJuri[0].upFile.push({
  20268. name: file.name,
  20269. url: data.Location,
  20270. uid: file.uid
  20271. });
  20272. _this.imgChange(null, null, type);
  20273. }
  20274. console.log(data.Location);
  20275. }
  20276. });
  20277. }
  20278. },
  20279. allScrell() {
  20280. window.parent.postMessage({ allScreen: this.screenType }, "*");
  20281. },
  20282. nextOrpreSteps(t) {
  20283. if (this.IsFollow && this.tType == 2) {
  20284. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20285. return;
  20286. }
  20287. var b = this.chapInfoList.length - 1;
  20288. if (t == 0) {
  20289. if (this.courseType == 0) {
  20290. if (this.taskCount == 0) {
  20291. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20292. if (this.IsLookOpen) {
  20293. if (
  20294. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20295. ) {
  20296. if (
  20297. this.courseDetail.userid != this.userid &&
  20298. (!this.courseDetail.course_teacher ||
  20299. (this.courseDetail.course_teacher &&
  20300. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20301. -1))
  20302. ) {
  20303. this.$message.error("任务未解锁");
  20304. } else {
  20305. this.$message.error("上一任务未解锁");
  20306. }
  20307. return;
  20308. }
  20309. }
  20310. this.navList[this.courseType].isOpen = false;
  20311. this.courseType = b;
  20312. this.taskCount =
  20313. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20314. .length - 1;
  20315. this.navList[this.courseType].isOpen = true;
  20316. } else {
  20317. this.taskCount--;
  20318. }
  20319. } else {
  20320. if (this.taskCount == 0) {
  20321. this.navList[this.courseType].isOpen = false;
  20322. this.courseType--;
  20323. this.taskCount =
  20324. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20325. .length - 1;
  20326. this.navList[this.courseType].isOpen = true;
  20327. } else {
  20328. this.taskCount--;
  20329. }
  20330. }
  20331. } else {
  20332. if (this.courseType == b) {
  20333. if (
  20334. this.taskCount ==
  20335. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20336. 1
  20337. ) {
  20338. this.navList[this.courseType].isOpen = false;
  20339. this.courseType = 0;
  20340. this.taskCount = 0;
  20341. this.navList[this.courseType].isOpen = true;
  20342. } else {
  20343. var bbb = parseInt(this.taskCount) + 1;
  20344. if (
  20345. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20346. .isLook &&
  20347. this.courseDetail.userid != this.userid &&
  20348. (!this.courseDetail.course_teacher ||
  20349. (this.courseDetail.course_teacher &&
  20350. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20351. -1)) &&
  20352. this.IsLookOpen
  20353. ) {
  20354. this.$message.error("任务未解锁");
  20355. return;
  20356. }
  20357. this.taskCount++;
  20358. if (this.IsLookOpen) {
  20359. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20360. this.taskCount
  20361. ].isLook = true;
  20362. this.addCourseState(3);
  20363. }
  20364. }
  20365. } else {
  20366. if (
  20367. this.taskCount ==
  20368. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20369. 1
  20370. ) {
  20371. var bbb = parseInt(this.courseType) + 1;
  20372. if (
  20373. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20374. this.courseDetail.userid != this.userid &&
  20375. (!this.courseDetail.course_teacher ||
  20376. (this.courseDetail.course_teacher &&
  20377. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20378. -1)) &&
  20379. this.IsLookOpen
  20380. ) {
  20381. this.$message.error("任务未解锁");
  20382. return;
  20383. }
  20384. this.navList[this.courseType].isOpen = false;
  20385. this.courseType++;
  20386. this.taskCount = 0;
  20387. this.navList[this.courseType].isOpen = true;
  20388. } else {
  20389. var bbb = parseInt(this.taskCount) + 1;
  20390. if (
  20391. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20392. .isLook &&
  20393. this.courseDetail.userid != this.userid &&
  20394. (!this.courseDetail.course_teacher ||
  20395. (this.courseDetail.course_teacher &&
  20396. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20397. -1)) &&
  20398. this.IsLookOpen
  20399. ) {
  20400. this.$message.error("任务未解锁");
  20401. return;
  20402. }
  20403. this.taskCount++;
  20404. }
  20405. if (this.IsLookOpen) {
  20406. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20407. this.taskCount
  20408. ].isLook = true;
  20409. this.addCourseState(3);
  20410. }
  20411. }
  20412. // if (
  20413. // this.taskCount ==
  20414. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20415. // ) {
  20416. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20417. // } else {
  20418. // this.taskCount++;
  20419. // }
  20420. }
  20421. document.scrollingElement.scrollTop = 0;
  20422. this.showType = 7;
  20423. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20424. // if (this.vedio[this.taskCount].length > 0) {
  20425. // var a =
  20426. // document.getElementsByClassName("box_course")[this.taskCount]
  20427. // .offsetHeight;
  20428. // document.getElementsByClassName("vedioList")[
  20429. // this.taskCount
  20430. // ].style.height = a + "px";
  20431. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20432. // a - 40 + "px";
  20433. // }
  20434. this.isNoHomeWork = false;
  20435. (this.studyJuri = [
  20436. {
  20437. content: "",
  20438. cover: [],
  20439. upVedio: [],
  20440. upFile: []
  20441. }
  20442. ]),
  20443. (this.radio = []);
  20444. this.isClickNav = "";
  20445. this.selectPz();
  20446. this.getHomeWork();
  20447. this.getCourseDetail(2);
  20448. this.$forceUpdate();
  20449. },
  20450. openTask(s, n, i) {
  20451. this.refreshAssembly();
  20452. if (this.IsFollow && this.tType == 2) {
  20453. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20454. return;
  20455. }
  20456. if (this.IsLookOpen &&
  20457. this.courseDetail.userid != this.userid &&
  20458. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20459. if (
  20460. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20461. this.courseDetail.userid != this.userid &&
  20462. (!this.courseDetail.course_teacher ||
  20463. (this.courseDetail.course_teacher &&
  20464. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20465. ) {
  20466. this.$message.error("任务未解锁");
  20467. return;
  20468. }
  20469. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20470. if (
  20471. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20472. .isLook
  20473. ) {
  20474. this.$message.error("上一任务未解锁");
  20475. return;
  20476. }
  20477. } else if (s > this.courseType) {
  20478. if (n > 0) {
  20479. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20480. this.$message.error("上一任务未解锁");
  20481. return;
  20482. }
  20483. } else {
  20484. if (
  20485. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20486. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20487. ].isLook
  20488. ) {
  20489. this.$message.error("上一任务未解锁");
  20490. return;
  20491. }
  20492. }
  20493. }
  20494. }
  20495. if (this.navList[s].task[n].isOpen == true) {
  20496. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20497. return;
  20498. }
  20499. let flag = this.courseType == s;
  20500. this.courseType = s;
  20501. this.navId = i;
  20502. this.taskCount = n;
  20503. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20504. this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
  20505. this.courseType
  20506. ].task[this.taskCount].isOpen;
  20507. if (this.IsLookOpen) {
  20508. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20509. this.taskCount
  20510. ].isLook = true;
  20511. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20512. this.addCourseState(3,yym);
  20513. }
  20514. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20515. this.isCloseList[ci].isClose = 0;
  20516. this.isCloseList[ci].isCloseBoolean = false;
  20517. this.$nextTick(() => {
  20518. setTimeout(() => {
  20519. setTimeout(() => {
  20520. this.panToolHeight("tool-" + ci);
  20521. }, 0);
  20522. }, 0);
  20523. });
  20524. }
  20525. this.showType = 7;
  20526. this.isNoHomeWork = false;
  20527. (this.studyJuri = [
  20528. {
  20529. content: "",
  20530. cover: [],
  20531. upVedio: [],
  20532. upFile: []
  20533. }
  20534. ]),
  20535. (this.radio = []);
  20536. document.scrollingElement.scrollTop = 0;
  20537. // setTimeout(() => {
  20538. // let a = document.getElementById(i);
  20539. // if (a.offsetTop - 110 == 0) {
  20540. // window.scrollTo(0, 0);
  20541. // } else {
  20542. // window.scrollTo(0, a.offsetTop);
  20543. // }
  20544. // }, 0);
  20545. for (var z = 0; z < this.navList.length; z++) {
  20546. for (var q = 0; q < this.navList[z].task.length; q++) {
  20547. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20548. this.navList[z].task[q].tool[w].isTool = false;
  20549. }
  20550. }
  20551. }
  20552. this.selectPz();
  20553. this.getHomeWork();
  20554. this.getCourseDetail(2);
  20555. if (flag) {
  20556. this.insertMemorandum(
  20557. `进入<span class="variable">任务${n + 1}${
  20558. this.navList[s].task[n].taskName
  20559. ? ":" + this.navList[s].task[n].taskName
  20560. : ""
  20561. }</span>`
  20562. );
  20563. } else {
  20564. this.insertMemorandum(
  20565. `进入<span class="variable">阶段${s + 1}${
  20566. this.navList[s].dyName ? ":" + this.navList[s].dyName : ""
  20567. }</span>→<span class="variable">任务${n + 1}${
  20568. this.navList[s].task[n].taskName
  20569. ? ":" + this.navList[s].task[n].taskName
  20570. : ""
  20571. }</span>`
  20572. );
  20573. }
  20574. },
  20575. get(i) {
  20576. if (this.IsFollow && this.tType == 2) {
  20577. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20578. return;
  20579. }
  20580. // for(var k=0;k<this.navList.length;k++){
  20581. // this.navList[k].isOpen = false;
  20582. // }
  20583. // this.navList[i].isOpen = true;
  20584. this.navList[i].isOpen = !this.navList[i].isOpen;
  20585. if (this.navList[i].isOpen) {
  20586. this.openTask(i, 0, i + "-0");
  20587. }
  20588. },
  20589. addQuestion() {
  20590. this.answerList.push({
  20591. answerTitle: this.answerQ,
  20592. answer: this.questionAnswer
  20593. });
  20594. let params = [
  20595. {
  20596. uid: this.userid,
  20597. cid: this.id,
  20598. stage: this.courseType,
  20599. task: this.taskCount,
  20600. tool: this.toolindex,
  20601. content: JSON.stringify(this.answerList),
  20602. type: 3
  20603. }
  20604. ];
  20605. this.ajax
  20606. .post(this.$store.state.api + "addCourseWorks", params)
  20607. .then(res => {
  20608. this.$message({
  20609. message: "提交成功",
  20610. type: "success"
  20611. });
  20612. this.answerList = [];
  20613. this.answerDialogVisible = false;
  20614. this.selectStudent();
  20615. this.selectSWorks();
  20616. this.selectSLook();
  20617. })
  20618. .catch(err => {
  20619. this.$message.error("提交失败");
  20620. console.error(err);
  20621. });
  20622. },
  20623. addQuestionTeacher() {
  20624. this.answerList.push({
  20625. answerTitle: this.answerQ,
  20626. answer: this.questionAnswer
  20627. });
  20628. let params = [
  20629. {
  20630. uid: this.sStudent.userid,
  20631. cid: this.id,
  20632. stage: this.courseType,
  20633. task: this.taskCount,
  20634. tool: this.toolindex,
  20635. content: JSON.stringify(this.answerList),
  20636. type: 3,
  20637. ateacher: this.userid
  20638. }
  20639. ];
  20640. this.ajax
  20641. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  20642. .then(res => {
  20643. this.$message({
  20644. message: "提交成功",
  20645. type: "success"
  20646. });
  20647. this.answerList = [];
  20648. this.questionAnswer = "";
  20649. this.answerDialogVisibleTeacher = false;
  20650. this.selectStudent();
  20651. this.selectSWorks();
  20652. this.selectSLook();
  20653. })
  20654. .catch(err => {
  20655. this.$message.error("提交失败");
  20656. console.error(err);
  20657. });
  20658. },
  20659. refreshCourse() {
  20660. // window.location.reload();
  20661. this.navList = [];
  20662. this.getCourseDetail(1);
  20663. },
  20664. getCourseDetail(type, gindex) {
  20665. let loading;
  20666. if (type != 2) {
  20667. loading = this.$loading.service({
  20668. background: "rgba(255, 255, 255, 0.7)",
  20669. target: document.querySelector(".student_table")
  20670. });
  20671. }
  20672. this.downLoading = false;
  20673. // this.navList[0].isOpen = false;
  20674. // this.navList[this.courseType].isOpen = true;
  20675. // this.courseType = this.courseTypeLine;
  20676. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20677. let params = {
  20678. courseId: this.id
  20679. };
  20680. this.ajax
  20681. .get(this.$store.state.api + "selectCourseDetail3", params)
  20682. .then(res => {
  20683. if (type != 2) {
  20684. loading.close();
  20685. if (
  20686. this.courseType >
  20687. JSON.parse(res.data[0][0].chapters).length - 1
  20688. ) {
  20689. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  20690. }
  20691. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20692. .chapterInfo[0].taskJson;
  20693. var b = [
  20694. "AVI",
  20695. "NAVI",
  20696. "MPEG",
  20697. "ASF",
  20698. "MOV",
  20699. "WMV",
  20700. "3GP",
  20701. "RM",
  20702. "RMVB",
  20703. "FLV",
  20704. "F4V",
  20705. "H.264",
  20706. "H.265",
  20707. "REAL VIDEO",
  20708. "MKV",
  20709. "WebM",
  20710. "HDDVD",
  20711. "MP4",
  20712. "MPG",
  20713. "M4V",
  20714. "MGV",
  20715. "OGV",
  20716. "QTM",
  20717. "STR",
  20718. "AMC",
  20719. "DVX",
  20720. "EVO",
  20721. "DAT",
  20722. "OGG",
  20723. "OGM",
  20724. "MP3"
  20725. ];
  20726. let _chapterData = [];
  20727. for (var i = 0; i < a.length; i++) {
  20728. var c = a[i].chapterData;
  20729. this.vedio[i] = [];
  20730. this.textList[i] = [];
  20731. this.lineList[i] = [];
  20732. this.chapToolList[i] = [];
  20733. this.file[i] = [];
  20734. this.fileC[i] = [];
  20735. _chapterData[i] = c.filter(el => {
  20736. return el.type != 12;
  20737. });
  20738. this.fileC[i] = c.filter(el => {
  20739. return el.type == 12;
  20740. });
  20741. if (this.tType == 2) {
  20742. if (this.fileC[i].length) {
  20743. let yym1 = this.fileC[i].filter(e=>{
  20744. if(!converter(e.name).includes(converter("教案"))){
  20745. return e
  20746. }
  20747. })
  20748. this.fileC[i] = yym1
  20749. }
  20750. }
  20751. // else if (c[j].type == 12) {
  20752. // this.fileC[i].push(c[j]);
  20753. // }
  20754. for (var j = 0; j < c.length; j++) {
  20755. if (c[j].type == 7) {
  20756. this.chapToolList[i].push(c[j]);
  20757. } else if (c[j].type == 8 || c[j].type == 14) {
  20758. this.lineList[i].push(c[j]);
  20759. } else if (c[j].type == 6) {
  20760. this.textList[i].push(c[j]);
  20761. } else {
  20762. if (
  20763. b.indexOf(
  20764. c[j].url
  20765. .split(".")
  20766. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20767. ) != -1
  20768. ) {
  20769. this.vedio[i].push(c[j]);
  20770. } else {
  20771. this.file[i].push(c[j]);
  20772. }
  20773. }
  20774. }
  20775. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20776. d.sources[0].src =
  20777. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20778. this.playerO[i] = d;
  20779. }
  20780. this.courseDetail = res.data[0][0];
  20781. if(this.tType == 2){
  20782. this.tcid = this.arrayToArray(
  20783. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20784. this.classId ? this.classId.split(",") : []
  20785. ).join(",");
  20786. }else{
  20787. this.tcid = this.arrayToArray(
  20788. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20789. this.tcid2 ? this.tcid2.split(",") : []
  20790. ).join(",");
  20791. }
  20792. this.evalua = res.data[0][0].evaId;
  20793. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  20794. this.courseType
  20795. ];
  20796. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20797. if (this.tcid && res.data[1].length) {
  20798. let _inviteA = [];
  20799. for (var ik = 0; ik < res.data[1].length; ik++) {
  20800. _inviteA.push({
  20801. cid: res.data[1][ik].classid,
  20802. ic: res.data[1][ik].code
  20803. });
  20804. }
  20805. for (var ik = 0; ik < _inviteA.length; ik++) {
  20806. if (
  20807. this.arrayToArray(
  20808. _inviteA[ik].cid.split(","),
  20809. this.tcid.split(",")
  20810. ).length
  20811. ) {
  20812. this.inviteCode = _inviteA[ik].ic;
  20813. break;
  20814. }
  20815. }
  20816. }
  20817. for (var l = 0; l < this.chapInfoList.length; l++) {
  20818. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20819. for (var m = 0; m < w.length; m++) {
  20820. w[m].id = l + "-" + m;
  20821. }
  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. if (this.tType == 2) {
  20885. _chapterData.forEach((e,i)=>{
  20886. if (e.length) {
  20887. let yym = e.filter(k=>{
  20888. if(!converter(k.name).includes(converter("教案"))){
  20889. return k
  20890. }
  20891. })
  20892. _chapterData[i] = yym
  20893. }
  20894. })
  20895. }
  20896. this.vChapterData = _chapterData;
  20897. } else {
  20898. this.showType = 0;
  20899. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20900. .chapterInfo[0].taskJson;
  20901. var b = [
  20902. "AVI",
  20903. "NAVI",
  20904. "MPEG",
  20905. "ASF",
  20906. "MOV",
  20907. "WMV",
  20908. "3GP",
  20909. "RM",
  20910. "RMVB",
  20911. "FLV",
  20912. "F4V",
  20913. "H.264",
  20914. "H.265",
  20915. "REAL VIDEO",
  20916. "MKV",
  20917. "WebM",
  20918. "HDDVD",
  20919. "MP4",
  20920. "MPG",
  20921. "M4V",
  20922. "MGV",
  20923. "OGV",
  20924. "QTM",
  20925. "STR",
  20926. "AMC",
  20927. "DVX",
  20928. "EVO",
  20929. "DAT",
  20930. "OGG",
  20931. "OGM",
  20932. "MP3"
  20933. ];
  20934. let _chapterData = [];
  20935. for (var i = 0; i < a.length; i++) {
  20936. var c = a[i].chapterData;
  20937. this.vedio[i] = [];
  20938. this.textList[i] = [];
  20939. this.lineList[i] = [];
  20940. this.chapToolList[i] = [];
  20941. this.file[i] = [];
  20942. this.fileC[i] = [];
  20943. _chapterData[i] = c.filter(el => {
  20944. return el.type != 12;
  20945. });
  20946. this.fileC[i] = c.filter(el => {
  20947. return el.type == 12;
  20948. });
  20949. if (this.tType == 2) {
  20950. if (this.fileC[i].length) {
  20951. let yym1 = this.fileC[i].filter(e=>{
  20952. if(!converter(e.name).includes(converter("教案"))){
  20953. return e
  20954. }
  20955. })
  20956. this.fileC[i] = yym1
  20957. }
  20958. }
  20959. for (var j = 0; j < c.length; j++) {
  20960. if (c[j].type == 7) {
  20961. this.chapToolList[i].push(c[j]);
  20962. } else if (c[j].type == 8 || c[j].type == 14) {
  20963. this.lineList[i].push(c[j]);
  20964. } else if (c[j].type == 6) {
  20965. this.textList[i].push(c[j]);
  20966. } else {
  20967. if (
  20968. b.indexOf(
  20969. c[j].url
  20970. .split(".")
  20971. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20972. ) != -1
  20973. ) {
  20974. this.vedio[i].push(c[j]);
  20975. } else {
  20976. this.file[i].push(c[j]);
  20977. }
  20978. }
  20979. }
  20980. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20981. d.sources[0].src =
  20982. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20983. this.playerO[i] = d;
  20984. }
  20985. if (
  20986. _chapterData[this.taskCount].length &&
  20987. _chapterData[this.taskCount][0].type == 2
  20988. ) {
  20989. this.showType = 0;
  20990. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  20991. } else {
  20992. if (_chapterData[this.taskCount].length > 0) {
  20993. let _url = _chapterData[this.taskCount][0].url;
  20994. if (
  20995. _chapterData[this.taskCount][0].type == 8 ||
  20996. _chapterData[this.taskCount][0].type == 14
  20997. ) {
  20998. this.showType = 2;
  20999. if (
  21000. _url.indexOf("https://") == -1 &&
  21001. _url.indexOf("http://") == -1
  21002. ) {
  21003. _url = "https://" + _url;
  21004. }
  21005. this.pptImgUrl1 = _url;
  21006. } else if (_chapterData[this.taskCount][0].type == 3) {
  21007. if (
  21008. _url
  21009. .split(".")
  21010. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21011. ) {
  21012. this.showType = 3;
  21013. this.pptImgUrl1 = _url;
  21014. } else if (
  21015. this.isAssetTypeAnImage(
  21016. _url
  21017. .split(".")
  21018. [_url.split(".").length - 1].toLocaleLowerCase()
  21019. )
  21020. ) {
  21021. this.showType = 4;
  21022. this.pptImgUrl1 = _url;
  21023. } else {
  21024. this.showType = 2;
  21025. this.pptImgUrl1 =
  21026. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21027. encodeURIComponent(_url);
  21028. }
  21029. } else if (_chapterData[this.taskCount][0].type == 13) {
  21030. this.showType = 4;
  21031. this.pptImgUrl1 = _url;
  21032. } else if (_chapterData[this.taskCount][0].type == 6) {
  21033. this.showType = 1;
  21034. this.text = this.textList[this.taskCount][0];
  21035. }
  21036. }
  21037. }
  21038. this.isClickNav = 0;
  21039. if (
  21040. !_chapterData[this.taskCount].length ||
  21041. _chapterData[this.taskCount][0].type == 12
  21042. ) {
  21043. this.isClickNav = "";
  21044. this.showType = "";
  21045. }
  21046. if (this.tType == 2) {
  21047. _chapterData.forEach((e,i)=>{
  21048. if (e.length) {
  21049. let yym = e.filter(k=>{
  21050. if(!converter(k.name).includes(converter("教案"))){
  21051. return k
  21052. }
  21053. })
  21054. _chapterData[i] = yym
  21055. }
  21056. })
  21057. }
  21058. this.vChapterData = _chapterData;
  21059. this.$forceUpdate();
  21060. }
  21061. // console.log('this.chapInfoList22222',JS);
  21062. if (res.data[0][0].setting) {
  21063. try {
  21064. this.languageSetting =
  21065. JSON.parse(res.data[0][0].setting).languageSetting ||
  21066. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21067. ? JSON.parse(res.data[0][0].setting).languageSetting
  21068. : 0;
  21069. } catch (error) {
  21070. console.error(error);
  21071. }
  21072. }
  21073. // finalMarkList用来判断哪个工具为评分工具
  21074. if (this.courseDetail.state == 5) {
  21075. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21076. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21077. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21078. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21079. // // 没有的话在选其他工具为评分工具
  21080. // if(adc.length > 0){
  21081. // for (let k = chap.length - 1; k >= 0; k--) {
  21082. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21083. // this.finalMarkList = k;
  21084. // break;
  21085. // }
  21086. // }
  21087. // }else{
  21088. // for (let k = chap.length - 1; k >= 0; k--) {
  21089. // 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) {
  21090. // this.finalMarkList = k;
  21091. // break;
  21092. // }
  21093. // }
  21094. // }
  21095. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21096. // 不然会无限循环报错,会很难受
  21097. let aiSNum = 0;
  21098. if (
  21099. chapInfoListCopy[this.taskCount].eList &&
  21100. chapInfoListCopy[this.taskCount].eList.length
  21101. ) {
  21102. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21103. if (e.isai == 2) {
  21104. aiSNum++;
  21105. }
  21106. });
  21107. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21108. this.isaiNum = aiSNum;
  21109. } else {
  21110. this.isaiNum = 0;
  21111. }
  21112. // for (
  21113. // let k = 0;
  21114. // k < chapInfoListCopy[this.taskCount].eList.length;
  21115. // k++
  21116. // ) {
  21117. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21118. // this.againEva(this.taskCount, k);
  21119. // }
  21120. // }
  21121. }
  21122. }
  21123. // else {
  21124. // this.courseDetail = res.data[0][0];
  21125. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21126. // }
  21127. let _this = this;
  21128. if (_this.timer) {
  21129. clearInterval(_this.timer);
  21130. _this.timer = null;
  21131. }
  21132. if (_this.tcid) {
  21133. _this.getCourseGroup(gindex);
  21134. } else {
  21135. _this.selectSWorks(gindex);
  21136. }
  21137. _this.selectStudent();
  21138. _this.selectSLook();
  21139. _this.getPick();
  21140. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21141. _this.setCTask();
  21142. }
  21143. if (_this.dialogVisibleGroup) {
  21144. _this.groupJson =
  21145. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21146. _this.taskCount
  21147. ].toolChoose[_this.toolindex].groupJson;
  21148. }
  21149. _this.$nextTick(() => {
  21150. setTimeout(() => {
  21151. _this.checkEva();
  21152. }, 1000);
  21153. });
  21154. _this.timer = setInterval(function() {
  21155. // _this.getCourseDetail(2);
  21156. if (_this.tcid) {
  21157. _this.getCourseGroup(gindex);
  21158. } else {
  21159. _this.selectSWorks(gindex);
  21160. }
  21161. _this.selectStudent();
  21162. _this.selectSLook();
  21163. _this.getPick();
  21164. // _this.getSplitScreenData();
  21165. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21166. _this.setCTask();
  21167. }
  21168. if (_this.dialogVisibleGroup) {
  21169. _this.groupJson =
  21170. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21171. _this.taskCount
  21172. ].toolChoose[_this.toolindex].groupJson;
  21173. }
  21174. if (_this.tType == 4 || _this.ispzType == 4) {
  21175. _this.selectPz();
  21176. }
  21177. }, 5000);
  21178. if (_this.timer2 == null) {
  21179. _this.timer2 = setInterval(()=> {
  21180. _this.getSplitScreenData();//获取分屏数据
  21181. }, 5000);
  21182. }
  21183. _this.$nextTick(function() {
  21184. setTimeout(() => {
  21185. // var a =
  21186. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21187. // document.getElementsByClassName("vedioList")[0].style.height =
  21188. // a + "px";
  21189. // document.getElementsByClassName("navBox")[0].style.height =
  21190. // a - 40 + "px";
  21191. // if (_this.vedio[_this.taskCount].length > 0) {
  21192. // _this.vedioTime = [];
  21193. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21194. // _this.vedioTime[i] = document.getElementsByClassName(
  21195. // "vjs-duration-display"
  21196. // )[i].textContent;
  21197. // }
  21198. // }
  21199. }, 1000);
  21200. });
  21201. })
  21202. .catch(err => {
  21203. loading.close();
  21204. console.error(err);
  21205. });
  21206. },
  21207. getCourseGroup(gindex) {
  21208. let params = {
  21209. cid: this.id,
  21210. classid: this.tcid ? this.tcid : "1"
  21211. };
  21212. this.ajax
  21213. .get(this.$store.state.api + "getCourseGroup", params)
  21214. .then(res => {
  21215. if (res.data && res.data[0].length) {
  21216. if (!this.isGroup) {
  21217. let courseGroup = JSON.parse(res.data[0][0].group);
  21218. courseGroup.group = courseGroup.group.filter(el => {
  21219. el.works = [];
  21220. return el;
  21221. });
  21222. if (courseGroup.isopen == 2) {
  21223. this.isGroup = false;
  21224. this.selectSWorks(gindex);
  21225. return;
  21226. }
  21227. this.courseGroup = courseGroup;
  21228. let groupPerson = res.data[1];
  21229. let group = JSON.parse(res.data[0][0].group).group;
  21230. let courseGroupStudent = {};
  21231. let courseGroupStudentUid = {};
  21232. for (var i = 0; i < group.length; i++) {
  21233. courseGroupStudent[group[i].id] = [];
  21234. courseGroupStudentUid[group[i].id] = [];
  21235. for (var j = 0; j < groupPerson.length; j++) {
  21236. if (groupPerson[j].groupCid == group[i].id) {
  21237. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21238. courseGroupStudentUid[group[i].id].push(
  21239. groupPerson[j].userid
  21240. );
  21241. }
  21242. }
  21243. }
  21244. this.courseGroupStudent = courseGroupStudent;
  21245. this.courseGroupStudentUid = courseGroupStudentUid;
  21246. }
  21247. if (this.courseGroup.isopen == 2) {
  21248. this.isGroup = false;
  21249. } else {
  21250. this.isGroup = true;
  21251. }
  21252. this.selectSWorks(gindex);
  21253. } else {
  21254. this.selectSWorks(gindex);
  21255. this.isGroup = false;
  21256. }
  21257. })
  21258. .catch(err => {
  21259. // this.$message.error("网络不佳");
  21260. console.error(err);
  21261. });
  21262. },
  21263. setOperationTime() {
  21264. let _this = this;
  21265. if (_this.opertimer) {
  21266. clearInterval(_this.opertimer);
  21267. _this.opertimer = null;
  21268. }
  21269. _this.opertimer = setInterval(() => {
  21270. _this.setoTime("600");
  21271. }, 600000);
  21272. },
  21273. setoTime(time) {
  21274. let params = [
  21275. {
  21276. uid: this.userid,
  21277. cid: this.id,
  21278. type: "2",
  21279. time: time
  21280. }
  21281. ];
  21282. this.ajax
  21283. .post(this.$store.state.api + "addOperationTimeT2", params)
  21284. .then(res => {})
  21285. .catch(err => {
  21286. console.error(err);
  21287. });
  21288. },
  21289. addPz(type, content) {
  21290. if (type == "1" && this.pzConText == "") {
  21291. this.$message.error("评论不能为空!");
  21292. return;
  21293. }
  21294. let params = [
  21295. {
  21296. cid: this.id,
  21297. uid: this.userid,
  21298. s: this.courseType,
  21299. t: this.taskCount,
  21300. c: type == "1" ? this.pzConText : content,
  21301. type: type
  21302. }
  21303. ];
  21304. this.ajax
  21305. .post(this.$store.state.api + "addPz2", params)
  21306. .then(res => {
  21307. this.$message({
  21308. message: "添加成功",
  21309. type: "success"
  21310. });
  21311. this.pzConText = "";
  21312. this.addPzDialog = false;
  21313. this.selectPz();
  21314. this.insertMemorandum(
  21315. `使用<span class="btn">评论</span>功能,添加评论`
  21316. );
  21317. })
  21318. .catch(err => {
  21319. this.$message.error("添加失败");
  21320. console.error(err);
  21321. });
  21322. },
  21323. setReplyIndex(id, i) {
  21324. this.replyIndex = i;
  21325. this.replyPid = id;
  21326. this.replyDialogVisible = true;
  21327. },
  21328. addHf() {
  21329. if (this.reply == "") {
  21330. this.$message.error("回复不能为空!");
  21331. return;
  21332. }
  21333. let params = [
  21334. {
  21335. cid: this.id,
  21336. uid: this.userid,
  21337. s: this.courseType,
  21338. t: this.taskCount,
  21339. type: "1",
  21340. ct: 2,
  21341. pid: this.replyPid,
  21342. c: this.reply
  21343. }
  21344. ];
  21345. this.ajax
  21346. .post(this.$store.state.api + "addHf", params)
  21347. .then(res => {
  21348. this.reply = "";
  21349. this.$message({
  21350. message: "回复成功",
  21351. type: "success"
  21352. });
  21353. this.replyDialogVisible = false;
  21354. this.selectPz();
  21355. })
  21356. .catch(err => {
  21357. this.$message.error("回复失败");
  21358. console.error(err);
  21359. });
  21360. },
  21361. deletePz(id) {
  21362. this.$confirm("确定删除此评论吗?", "提示", {
  21363. confirmButtonText: "确定",
  21364. cancelButtonText: "取消",
  21365. type: "warning"
  21366. })
  21367. .then(() => {
  21368. let params = [
  21369. {
  21370. id: id
  21371. }
  21372. ];
  21373. this.ajax
  21374. .post(this.$store.state.api + "deletePz", params)
  21375. .then(res => {
  21376. this.$message({
  21377. message: "删除成功",
  21378. type: "success"
  21379. });
  21380. this.selectPz();
  21381. })
  21382. .catch(err => {
  21383. this.$message.error("网络异常");
  21384. console.error(err);
  21385. });
  21386. })
  21387. .catch(() => {});
  21388. },
  21389. deleteReply(id) {
  21390. this.$confirm("确定删除此回复吗?", "提示", {
  21391. confirmButtonText: "确定",
  21392. cancelButtonText: "取消",
  21393. type: "warning"
  21394. })
  21395. .then(() => {
  21396. let params = [
  21397. {
  21398. id: id
  21399. }
  21400. ];
  21401. this.ajax
  21402. .post(this.$store.state.api + "deleteReply", params)
  21403. .then(res => {
  21404. this.$message({
  21405. message: "删除成功",
  21406. type: "success"
  21407. });
  21408. this.selectPz();
  21409. })
  21410. .catch(err => {
  21411. this.$message.error("网络异常");
  21412. console.error(err);
  21413. });
  21414. })
  21415. .catch(() => {});
  21416. },
  21417. setPz() {
  21418. if (this.ispzType == 4) {
  21419. this.ispzType = 0;
  21420. this.pzDialog = false;
  21421. return;
  21422. }
  21423. this.ispzType = 4;
  21424. this.pzDialog = true;
  21425. this.selectPz();
  21426. },
  21427. selectPz() {
  21428. let params = {
  21429. cid: this.id,
  21430. s: this.courseType,
  21431. t: this.taskCount,
  21432. type: this.pzStype,
  21433. uid: this.userid
  21434. };
  21435. this.ajax
  21436. .get(this.$store.state.api + "selectPzListType", params)
  21437. .then(res => {
  21438. this.pzList = res.data[0];
  21439. var a = res.data[1];
  21440. for (var i = 0; i < a.length; i++) {
  21441. for (var j = 0; j < this.pzList.length; j++) {
  21442. if (!this.pzList[j].hfList) {
  21443. this.pzList[j].hfList = [];
  21444. }
  21445. if (a[i].pid == this.pzList[j].id) {
  21446. this.pzList[j].hfList.push(a[i]);
  21447. }
  21448. }
  21449. }
  21450. })
  21451. .catch(err => {
  21452. console.error(err);
  21453. });
  21454. },
  21455. // selectHf() {
  21456. // let params = {
  21457. // cid: this.id,
  21458. // s: this.courseType,
  21459. // t: this.taskCount,
  21460. // };
  21461. // this.ajax
  21462. // .get(this.$store.state.api + "selectHfList", params)
  21463. // .then((res) => {
  21464. // var a = res.data[0];
  21465. // for (var i = 0; i < a.length; i++) {
  21466. // for (var j = 0; j < this.pzList.length; j++) {
  21467. // if (!this.pzList[i].hfList) {
  21468. // this.pzList[i].hfList = [];
  21469. // }
  21470. // if (a[i].pid == this.pzList[j].id) {
  21471. // this.pzList[i].hfList.push(a[i]);
  21472. // }
  21473. // }
  21474. // }
  21475. // })
  21476. // .catch((err) => {
  21477. // console.error(err);
  21478. // });
  21479. // },
  21480. updateSLook() {
  21481. let params = {
  21482. sopen: this.sIsOpen == false ? 1 : 2,
  21483. cid: this.id
  21484. };
  21485. this.ajax
  21486. .get(this.$store.state.api + "updateCourseSLook", params)
  21487. .then(res => {
  21488. if (this.sIsOpen == true) {
  21489. this.$message({
  21490. message: "权限设置成功",
  21491. type: "success"
  21492. });
  21493. } else {
  21494. this.$message({
  21495. message: "权限关闭成功",
  21496. type: "success"
  21497. });
  21498. }
  21499. })
  21500. .catch(err => {
  21501. console.error(err);
  21502. });
  21503. },
  21504. updateFollow() {
  21505. let params = [
  21506. {
  21507. sopen: this.IsFollow == false ? 1 : 2,
  21508. cid: this.id
  21509. }
  21510. ];
  21511. this.ajax
  21512. .post(this.$store.state.api + "updateCourseFollow", params)
  21513. .then(res => {
  21514. if (this.IsFollow == true) {
  21515. this.$message({
  21516. message: "开启成功",
  21517. type: "success"
  21518. });
  21519. } else {
  21520. this.$message({
  21521. message: "关闭成功",
  21522. type: "success"
  21523. });
  21524. }
  21525. this.setCTask();
  21526. })
  21527. .catch(err => {
  21528. console.error(err);
  21529. });
  21530. },
  21531. setCTask() {
  21532. let params = [
  21533. {
  21534. sopen: this.courseType + "-" + this.taskCount,
  21535. cid: this.id
  21536. }
  21537. ];
  21538. this.ajax
  21539. .post(this.$store.state.api + "updateCourseFollowC", params)
  21540. .then(res => {})
  21541. .catch(err => {
  21542. console.error(err);
  21543. });
  21544. },
  21545. updateLookOpen() {
  21546. let params = [
  21547. {
  21548. sopen: this.IsLookOpen == false ? 1 : 2,
  21549. cid: this.id
  21550. }
  21551. ];
  21552. this.ajax
  21553. .post(this.$store.state.api + "updateCourseLookOpen", params)
  21554. .then(res => {
  21555. if (this.IsLookOpen == true) {
  21556. // if (this.courseType != 0 && this.taskCount != 0) {
  21557. // this.openTask(0, 0, "0-0");
  21558. // }
  21559. this.$message({
  21560. message: "权限设置成功",
  21561. type: "success"
  21562. });
  21563. } else {
  21564. this.$message({
  21565. message: "权限关闭成功",
  21566. type: "success"
  21567. });
  21568. }
  21569. this.getCourseState(2);
  21570. })
  21571. .catch(err => {
  21572. console.error(err);
  21573. });
  21574. },
  21575. selectSLook() {
  21576. let params = {
  21577. cid: this.id
  21578. };
  21579. this.ajax
  21580. .get(this.$store.state.api + "selectCourseSLook", params)
  21581. .then(res => {
  21582. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  21583. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  21584. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  21585. if (!this.IsLookOpen) {
  21586. this.setNavList();
  21587. } else {
  21588. this.getCourseState(1);
  21589. }
  21590. // || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
  21591. if ((this.IsFollow && this.tType == 2)) {
  21592. this.setContent2(false);
  21593. let _followC = res.data[0][0].followC.split("-");
  21594. if (
  21595. this.courseType != _followC[0] ||
  21596. this.taskCount != _followC[1]
  21597. ) {
  21598. this.navList[this.courseType].isOpen = false;
  21599. this.courseType = _followC[0];
  21600. this.navList[this.courseType].isOpen = true;
  21601. this.taskCount = parseInt(_followC[1]);
  21602. this.navId = res.data[0][0].followC;
  21603. document.scrollingElement.scrollTop = 0;
  21604. this.getCourseDetail(2);
  21605. }
  21606. }
  21607. })
  21608. .catch(err => {
  21609. console.error(err);
  21610. });
  21611. },
  21612. setNavList() {
  21613. if (this.navList.length == 0) {
  21614. this.navList = [];
  21615. var copyList = [];
  21616. for (var l = 0; l < this.chapInfoList.length; l++) {
  21617. var q = this.chapInfoList[l].dyName;
  21618. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21619. var e;
  21620. copyList.push({
  21621. dyName: q,
  21622. isOpen: l === 0 ? true : false,
  21623. task: []
  21624. });
  21625. for (var r = 0; r < w.length; r++) {
  21626. e = w[r].task;
  21627. if (this.chapInfoList[l].easy == 1) {
  21628. copyList[l].task.push({
  21629. taskName: q,
  21630. id: l + "-" + r,
  21631. isLook: w[r].isLook,
  21632. isOpen: r === 0 ? true : false,
  21633. tool: []
  21634. });
  21635. } else {
  21636. copyList[l].task.push({
  21637. taskName: e,
  21638. id: l + "-" + r,
  21639. isLook: w[r].isLook,
  21640. isOpen: r === 0 ? true : false,
  21641. tool: []
  21642. });
  21643. }
  21644. var t = w[r].toolChoose;
  21645. for (var k = 0; k < t.length; k++) {
  21646. var tool = t[k].tool[0];
  21647. copyList[l].task[r].tool.push({
  21648. tool: tool,
  21649. isTool: false
  21650. });
  21651. }
  21652. // this.navId = this.navId ? this.navId : l + "-" + r;
  21653. // this.navId = l + "-" + r;
  21654. }
  21655. }
  21656. this.navList = copyList;
  21657. this.navList[0].isOpen = false;
  21658. this.navList[this.courseType].isOpen = true;
  21659. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21660. } else {
  21661. this.setNavList2();
  21662. }
  21663. },
  21664. setNavList2() {
  21665. for (var l = 0; l < this.chapInfoList.length; l++) {
  21666. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21667. for (var r = 0; r < w.length; r++) {
  21668. this.navList[l].task[r].isLook = w[r].isLook;
  21669. }
  21670. }
  21671. if (
  21672. this.IsLookOpen &&
  21673. !this.navList[this.courseType].task[this.taskCount].isLook
  21674. ) {
  21675. this.openTask(0, 0, "0-0");
  21676. }
  21677. this.$forceUpdate();
  21678. },
  21679. getCourseState(type) {
  21680. let params = {
  21681. cid: this.id
  21682. };
  21683. this.ajax
  21684. .get(this.$store.state.api + "getCourseState", params)
  21685. .then(res => {
  21686. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  21687. this.chapInfoList = JSON.parse(res.data[0][0].state);
  21688. console.log("this.chapInfoList", this.chapInfoList);
  21689. this.setNavList();
  21690. this.$forceUpdate();
  21691. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  21692. this.addCourseState(2);
  21693. } else {
  21694. this.addCourseState(1);
  21695. }
  21696. })
  21697. .catch(err => {
  21698. console.error(err);
  21699. });
  21700. },
  21701. addCourseState(type,val = '') {
  21702. let _state = val ? val : this.chapInfoList;
  21703. // this.courseType this.taskCount
  21704. if (type == 1 || type == 2) {
  21705. for (var i = 0; i < _state.length; i++) {
  21706. let el = _state[i].chapterInfo[0].taskJson;
  21707. for (var j = 0; j < el.length; j++) {
  21708. // if (i == 0 && j == 0) {
  21709. // el[j].isLook = true;
  21710. // } else {
  21711. // el[j].isLook = false;
  21712. // }
  21713. if (
  21714. this.courseType > i ||
  21715. (this.courseType == i && this.taskCount + 1 > j)
  21716. ) {
  21717. el[j].isLook = true;
  21718. } else {
  21719. el[j].isLook = false;
  21720. }
  21721. }
  21722. }
  21723. }
  21724. let params = [
  21725. {
  21726. cid: this.id,
  21727. state: JSON.stringify(_state)
  21728. }
  21729. ];
  21730. this.ajax
  21731. .post(
  21732. this.$store.state.api +
  21733. (type == 1 ? "addCourseState" : "updateCourseSate"),
  21734. params
  21735. )
  21736. .then(res => {
  21737. if (this.IsLookOpen) {
  21738. this.setNavList();
  21739. }
  21740. if (type == 3 && type == 2) {
  21741. this.getCourseState(1);
  21742. }
  21743. })
  21744. .catch(err => {
  21745. console.error(err);
  21746. });
  21747. },
  21748. getHomeWork() {
  21749. let params = {
  21750. cid: this.id,
  21751. stage: this.courseType,
  21752. task: this.taskCount,
  21753. uid: this.userid
  21754. };
  21755. this.ajax
  21756. .get(this.$store.state.api + "selectWork", params)
  21757. .then(res => {
  21758. if (res.data[0].length > 0) {
  21759. this.studyJuri = JSON.parse(res.data[0][0].content);
  21760. this.isNoHomeWork = true;
  21761. }
  21762. })
  21763. .catch(err => {
  21764. console.error(err);
  21765. });
  21766. },
  21767. isAssetTypeAnImage(ext) {
  21768. return (
  21769. [
  21770. "png",
  21771. "jpg",
  21772. "jpeg",
  21773. "bmp",
  21774. "gif",
  21775. "webp",
  21776. "psd",
  21777. "svg",
  21778. "tiff"
  21779. ].indexOf(ext) !== -1
  21780. );
  21781. },
  21782. switchVideo(media) {
  21783. this.playerO = {};
  21784. this.playerOptions.poster = "";
  21785. this.playerOptions.sources[0].src = media;
  21786. this.playerO = this.playerOptions;
  21787. },
  21788. onPlayerPlay() {},
  21789. onPlayerTimeupdate(player) {
  21790. let gklog = player.cache_.currentTime; //当前播放的秒数
  21791. let a = player.cache_.duration; //视频的总时长
  21792. let gklog2 = parseInt(gklog);
  21793. // if(gklog2 == '3'){
  21794. // player.pause()
  21795. // setTimeout(()=>{
  21796. // player.currentTime(gklog2+1)
  21797. // player.play()
  21798. // },1000)
  21799. // }
  21800. console.log(" onPlayerTimeupdate!", gklog);
  21801. console.log(" onPlayerTimeupdate!", gklog2);
  21802. },
  21803. lookVedio(u, i) {
  21804. this.isClickNav = "";
  21805. // this.playerOptions.sources[0].src = u;
  21806. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21807. d.sources[0].src = u;
  21808. this.playerO[this.taskCount] = d;
  21809. this.showType = 0;
  21810. // this.isClickNav = "video" + i;
  21811. this.isClickNav = i;
  21812. this.$forceUpdate();
  21813. this.insertMemorandum(
  21814. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21815. this.vChapterData[this.taskCount].find(i => i.url == u).name
  21816. }</span>`
  21817. );
  21818. },
  21819. lookText(i, t) {
  21820. this.isClickNav = "";
  21821. // this.text = this.textList[i][t];
  21822. this.text = this.vChapterData[i][t];
  21823. // this.dialogVisible1 = true;
  21824. this.showType = 1;
  21825. // this.isClickNav = "text" + t;
  21826. this.isClickNav = t;
  21827. this.insertMemorandum(
  21828. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21829. this.vChapterData[this.taskCount][t].name
  21830. }.doc</span>`
  21831. );
  21832. },
  21833. lookTools(i, t) {
  21834. this.chapTools = this.chapToolList[i][t];
  21835. this.dialogVisible2 = true;
  21836. },
  21837. async openFile(f) {
  21838. this.pptImgUrl = "";
  21839. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  21840. if (
  21841. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  21842. -1
  21843. ) {
  21844. let _uuurl = await this.checkLink(f);
  21845. this.pptImgUrl =
  21846. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21847. encodeURIComponent(_uuurl);
  21848. this.showPDF = false;
  21849. this.dialogVisible3 = true;
  21850. } else if (
  21851. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21852. ) {
  21853. this.pptImgUrl = f;
  21854. this.showPDF = true;
  21855. this.dialogVisible3 = true;
  21856. }
  21857. this.insertMemorandum(
  21858. `查看<span class="variable">${w.sName}</span>的作业`
  21859. );
  21860. },
  21861. openTable(f) {
  21862. this.tableJson = JSON.parse(f.works);
  21863. this.dialogVisibleTable2 = true;
  21864. this.insertMemorandum(
  21865. `查看<span class="variable">${f.sName}的作业</span>`
  21866. );
  21867. },
  21868. openWord(f) {
  21869. this.tableJson = JSON.parse(f.works);
  21870. this.dialogVisibleTable3 = true;
  21871. this.insertMemorandum(
  21872. `查看<span class="variable">${f.sName}的作业</span>`
  21873. );
  21874. },
  21875. doUrl(url, i) {
  21876. this.isClickNav = "";
  21877. this.pptImgUrl1 = "";
  21878. this.showType = 2;
  21879. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  21880. url = "https://" + url;
  21881. }
  21882. this.pptImgUrl1 = "";
  21883. setTimeout(() => {
  21884. this.pptImgUrl1 = url;
  21885. }, 500);
  21886. // this.isClickNav = "line" + i;
  21887. this.isClickNav = i;
  21888. this.$forceUpdate();
  21889. },
  21890. checkPhoto(f, i) {
  21891. this.showType = 4;
  21892. this.pptImgUrl1 = f.url;
  21893. this.isClickNav = i;
  21894. this.$forceUpdate();
  21895. this.insertMemorandum(
  21896. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21897. this.vChapterData[this.taskCount][i].name
  21898. }</span>`
  21899. );
  21900. },
  21901. async downFile(f, i) {
  21902. this.isClickNav = "";
  21903. this.pptImgUrl1 = "";
  21904. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  21905. if (
  21906. a.indexOf(
  21907. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  21908. ) != -1
  21909. ) {
  21910. let _uuurl = await this.checkLink(f.url);
  21911. this.pptImgUrl1 =
  21912. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21913. encodeURIComponent(_uuurl);
  21914. // this.dialogVisible3 = true;
  21915. this.showType = 2;
  21916. } else if (
  21917. this.isAssetTypeAnImage(
  21918. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  21919. )
  21920. ) {
  21921. this.showType = 4;
  21922. this.pptImgUrl1 = f.url;
  21923. } else if (
  21924. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  21925. "PDF"
  21926. ) {
  21927. this.pptImgUrl1 = f.url;
  21928. // this.dialogVisible3 = true;
  21929. this.showType = 3;
  21930. } else {
  21931. window.open(this.file[i].url);
  21932. }
  21933. // this.isClickNav = "word" + i;
  21934. this.isClickNav = i;
  21935. this.insertMemorandum(
  21936. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21937. this.vChapterData[this.taskCount][i].name
  21938. }</span>`
  21939. );
  21940. },
  21941. downFileList(i) {
  21942. window.open(this.noImgList[i].url);
  21943. },
  21944. openAddWork() {
  21945. this.dialogVisible = true;
  21946. },
  21947. addBzWorks() {
  21948. let params = [
  21949. {
  21950. uid: this.userid,
  21951. cid: this.id,
  21952. stage: this.courseType,
  21953. task: this.taskCount,
  21954. tool: this.toolindex,
  21955. content: JSON.stringify(this.eScore),
  21956. type: 6
  21957. }
  21958. ];
  21959. this.ajax
  21960. .post(this.$store.state.api + "addCourseWorks", params)
  21961. .then(res => {
  21962. this.$message({
  21963. message: "提交成功",
  21964. type: "success"
  21965. });
  21966. this.eScore = { eBzText: "", eStar: [] };
  21967. this.studentEvalDialogVisible = false;
  21968. this.selectSWorks();
  21969. })
  21970. .catch(err => {
  21971. this.$message.error("提交失败");
  21972. console.error(err);
  21973. });
  21974. },
  21975. addBzWorksTeacher() {
  21976. let params = [
  21977. {
  21978. uid: this.sStudent.userid,
  21979. cid: this.id,
  21980. stage: this.courseType,
  21981. task: this.taskCount,
  21982. tool: this.toolindex,
  21983. content: JSON.stringify(this.eScore),
  21984. type: 6
  21985. }
  21986. ];
  21987. this.ajax
  21988. .post(this.$store.state.api + "addCourseWorks", params)
  21989. .then(res => {
  21990. this.$message({
  21991. message: "提交成功",
  21992. type: "success"
  21993. });
  21994. this.eScore = { eBzText: "", eStar: [] };
  21995. this.studentEvalDialogVisibleTeacher = false;
  21996. this.selectSWorks();
  21997. })
  21998. .catch(err => {
  21999. this.$message.error("提交失败");
  22000. console.error(err);
  22001. });
  22002. },
  22003. addStudentAsk() {
  22004. if (!this.radio.length) {
  22005. this.$message.error("请选择选项");
  22006. return;
  22007. }
  22008. for (var i = 0; i < this.askJson.askCount; i++) {
  22009. if (
  22010. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22011. (this.radio[i] !== 0 && !this.radio[i])
  22012. ) {
  22013. this.$message.error("请选择选项");
  22014. return;
  22015. }
  22016. }
  22017. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22018. let params = [
  22019. {
  22020. uid: this.userid,
  22021. cid: this.id,
  22022. stage: this.courseType,
  22023. task: this.taskCount,
  22024. tool: this.toolindex,
  22025. content: JSON.stringify(this.askList),
  22026. type: 2
  22027. }
  22028. ];
  22029. this.ajax
  22030. .post(this.$store.state.api + "addCourseWorks", params)
  22031. .then(res => {
  22032. this.$message({
  22033. message: "提交成功",
  22034. type: "success"
  22035. });
  22036. this.askList = [];
  22037. this.dialogVisible5 = false;
  22038. this.selectStudent();
  22039. this.selectSWorks();
  22040. this.selectSLook();
  22041. })
  22042. .catch(err => {
  22043. this.$message.error("提交失败");
  22044. console.error(err);
  22045. });
  22046. },
  22047. addStudentAskTeacher() {
  22048. if (!this.radio.length) {
  22049. this.$message.error("请选择选项");
  22050. return;
  22051. }
  22052. for (var i = 0; i < this.askJson.askCount; i++) {
  22053. if (
  22054. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22055. (this.radio[i] !== 0 && !this.radio[i])
  22056. ) {
  22057. this.$message.error("请选择选项");
  22058. return;
  22059. }
  22060. }
  22061. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22062. let params = [
  22063. {
  22064. uid: this.sStudent.userid,
  22065. cid: this.id,
  22066. stage: this.courseType,
  22067. task: this.taskCount,
  22068. tool: this.toolindex,
  22069. content: JSON.stringify(this.askList),
  22070. type: 2
  22071. }
  22072. ];
  22073. this.ajax
  22074. .post(this.$store.state.api + "addCourseWorks", params)
  22075. .then(res => {
  22076. this.$message({
  22077. message: "提交成功",
  22078. type: "success"
  22079. });
  22080. this.askList = [];
  22081. this.dialogVisible5Teacher = false;
  22082. this.selectStudent();
  22083. this.selectSWorks();
  22084. this.selectSLook();
  22085. })
  22086. .catch(err => {
  22087. this.$message.error("提交失败");
  22088. console.error(err);
  22089. });
  22090. },
  22091. addStudentTest() {
  22092. if (!this.radio.length) {
  22093. this.$message.error("请选择选项");
  22094. return;
  22095. }
  22096. for (var i = 0; i < this.testJson.testCount; i++) {
  22097. if (
  22098. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22099. (this.radio[i] !== 0 && !this.radio[i])
  22100. ) {
  22101. this.$message.error("请选择选项");
  22102. return;
  22103. }
  22104. }
  22105. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22106. let params = [
  22107. {
  22108. uid: this.userid,
  22109. cid: this.id,
  22110. stage: this.courseType,
  22111. task: this.taskCount,
  22112. tool: this.toolindex,
  22113. content: JSON.stringify(this.askList),
  22114. type: 8
  22115. }
  22116. ];
  22117. this.ajax
  22118. .post(this.$store.state.api + "addCourseWorks", params)
  22119. .then(res => {
  22120. this.$message({
  22121. message: "提交成功",
  22122. type: "success"
  22123. });
  22124. this.askList = [];
  22125. this.dialogVisibleChoice = false;
  22126. this.selectStudent();
  22127. this.selectSWorks();
  22128. this.selectSLook();
  22129. })
  22130. .catch(err => {
  22131. this.$message.error("提交失败");
  22132. console.error(err);
  22133. });
  22134. },
  22135. addStudentTestTeacher() {
  22136. if (!this.radio.length) {
  22137. this.$message.error("请选择选项");
  22138. return;
  22139. }
  22140. for (var i = 0; i < this.testJson.testCount; i++) {
  22141. if (
  22142. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22143. (this.radio[i] !== 0 && !this.radio[i])
  22144. ) {
  22145. this.$message.error("请选择选项");
  22146. return;
  22147. }
  22148. }
  22149. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22150. let params = [
  22151. {
  22152. uid: this.sStudent.userid,
  22153. cid: this.id,
  22154. stage: this.courseType,
  22155. task: this.taskCount,
  22156. tool: this.toolindex,
  22157. content: JSON.stringify(this.askList),
  22158. type: 8
  22159. }
  22160. ];
  22161. this.ajax
  22162. .post(this.$store.state.api + "addCourseWorks", params)
  22163. .then(res => {
  22164. this.$message({
  22165. message: "提交成功",
  22166. type: "success"
  22167. });
  22168. this.askList = [];
  22169. this.dialogVisibleChoiceTeacher = false;
  22170. this.selectStudent();
  22171. this.selectSWorks();
  22172. this.selectSLook();
  22173. })
  22174. .catch(err => {
  22175. this.$message.error("提交失败");
  22176. console.error(err);
  22177. });
  22178. },
  22179. addWork() {
  22180. if (this.studyJuri[0].content == "") {
  22181. this.$message.error("请将信息填写完整");
  22182. return;
  22183. } else if (this.studyJuri[0].cover.length == 0) {
  22184. this.$message.error("请将信息填写完整");
  22185. return;
  22186. } else if (this.studyJuri[0].upVedio.length == 0) {
  22187. this.$message.error("请将信息填写完整");
  22188. return;
  22189. }
  22190. if (this.isNoHomeWork) {
  22191. this.$confirm(
  22192. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22193. "提示",
  22194. {
  22195. confirmButtonText: "确定",
  22196. cancelButtonText: "取消",
  22197. type: "warning"
  22198. }
  22199. )
  22200. .then(() => {
  22201. let params = [
  22202. {
  22203. uid: this.userid,
  22204. cid: this.id,
  22205. stage: this.courseType,
  22206. task: this.taskCount,
  22207. content: JSON.stringify(this.studyJuri)
  22208. }
  22209. ];
  22210. this.ajax
  22211. .post(this.$store.state.api + "addWorks", params)
  22212. .then(res => {
  22213. this.$message({
  22214. message: "提交成功",
  22215. type: "success"
  22216. });
  22217. this.isNoHomeWork = true;
  22218. this.dialogVisible = false;
  22219. })
  22220. .catch(err => {
  22221. this.$message.error("提交失败");
  22222. console.error(err);
  22223. });
  22224. })
  22225. .catch(() => {});
  22226. } else {
  22227. let params = [
  22228. {
  22229. uid: this.userid,
  22230. cid: this.id,
  22231. stage: this.courseType,
  22232. task: this.taskCount,
  22233. content: JSON.stringify(this.studyJuri)
  22234. }
  22235. ];
  22236. this.ajax
  22237. .post(this.$store.state.api + "addWorks", params)
  22238. .then(res => {
  22239. this.$message({
  22240. message: "提交成功",
  22241. type: "success"
  22242. });
  22243. this.isNoHomeWork = true;
  22244. this.dialogVisible = false;
  22245. })
  22246. .catch(err => {
  22247. this.$message.error("提交失败");
  22248. console.error(err);
  22249. });
  22250. }
  22251. },
  22252. selectCount() {
  22253. let params = {
  22254. cid: this.id,
  22255. chid: this.courseType,
  22256. uid: this.userid
  22257. };
  22258. this.ajax
  22259. .get(this.$store.state.api + "selectToolsCount", params)
  22260. .then(res => {
  22261. for (var i = 0; i < res.data[0].length; i++) {
  22262. if (res.data[0][i].tools == 1) {
  22263. this.wbCount = res.data[0][i].count;
  22264. } else if (res.data[0][i].tools == 2) {
  22265. this.wordCount = res.data[0][i].count;
  22266. } else if (res.data[0][i].tools == 3) {
  22267. this.mindCount = res.data[0][i].count;
  22268. } else if (res.data[0][i].tools == 4) {
  22269. this.askCount = res.data[0][i].count;
  22270. } else if (res.data[0][i].tools == 6) {
  22271. this.noteCount = res.data[0][i].count;
  22272. } else if (res.data[0][i].tools == 7) {
  22273. this.mindNetWorkCount = res.data[0][i].count;
  22274. } else if (res.data[0][i].tools == 8) {
  22275. this.libraryCount = res.data[0][i].count;
  22276. } else if (res.data[0][i].tools == 16) {
  22277. this.workCount = res.data[0][i].count;
  22278. } else if (res.data[0][i].tools == 10) {
  22279. this.timeCount = res.data[0][i].count;
  22280. } else if (res.data[0][i].tools == 15) {
  22281. this.answerCount = res.data[0][i].count;
  22282. } else if (res.data[0][i].tools == 18) {
  22283. this.trainCount = res.data[0][i].count;
  22284. }
  22285. }
  22286. })
  22287. .catch(err => {
  22288. console.error(err);
  22289. });
  22290. },
  22291. openTools(t, i, index, c, sName, id) {
  22292. var z = JSON.parse(c);
  22293. this.noteName = sName;
  22294. if (t == 4) {
  22295. this.radio = [];
  22296. this.isAnswer = false;
  22297. let b = z[0].anwer;
  22298. this.radio = b;
  22299. this.askJson = z[0].askJson;
  22300. this.isAnswer = true;
  22301. this.dialogVisible5 = true;
  22302. } else if (t == 45) {
  22303. this.radio = [];
  22304. this.isAnswer = false;
  22305. let b = z[0].anwer;
  22306. this.radio = b;
  22307. this.testJson = z[0].testJson;
  22308. this.isAnswer = true;
  22309. this.dialogVisibleChoice = true;
  22310. } else if (t == 69) {
  22311. this.oldEnglishJson1 = {};
  22312. this.oldEnglishJson = {};
  22313. this.englishList1 = {};
  22314. this.newEngIndex = -1;
  22315. this.isNoUserid = false;
  22316. this.englishList1 = this.chapInfoList[
  22317. this.courseType
  22318. ].chapterInfo[0].taskJson[index].toolChoose[i].englishList;
  22319. this.oldEnglishJson = z;
  22320. this.engWid = id;
  22321. this.newEnglishList = { engTitle: "", engText: "" };
  22322. this.newEnglishList1 = [];
  22323. this.selectEngC(id, z);
  22324. } else if (t == 62) {
  22325. this.videoType = 1;
  22326. this.videoJson = {};
  22327. this.videoJson = JSON.parse(c);
  22328. // this.videoJson =
  22329. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22330. // index
  22331. // ].toolChoose[i].videoJson;
  22332. this.dialogVisibleVideo = true;
  22333. }
  22334. // else if (t == 15) {
  22335. // this.answerQ = "";
  22336. // this.questionAnswer = "";
  22337. // this.answerQ = z[0].answerTitle;
  22338. // this.questionAnswer = z[0].answer;
  22339. // this.answerDialogVisible = true;
  22340. // }
  22341. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`);
  22342. },
  22343. fastText(p, t) {
  22344. if (t == 1) {
  22345. this.commentText += p;
  22346. } else {
  22347. this.eScore.eBzText += p;
  22348. }
  22349. },
  22350. addTools(t, i, index) {
  22351. var a = 0;
  22352. // this.taskCount = index;
  22353. this.toolindex = i;
  22354. if (t == 1) {
  22355. if (this.wbCount > 0) {
  22356. this.updateCount(this.wbCount, t);
  22357. } else {
  22358. this.wbCount++;
  22359. a = this.wbCount;
  22360. this.toolsCount(a, t);
  22361. }
  22362. window.parent.postMessage(
  22363. {
  22364. tools: "1",
  22365. cid: this.id,
  22366. stage: this.courseType,
  22367. task: this.taskCount,
  22368. tool: i
  22369. },
  22370. "*"
  22371. );
  22372. } else if (t == 2) {
  22373. if (this.wordCount > 0) {
  22374. this.updateCount(this.wordCount, t);
  22375. } else {
  22376. this.wordCount++;
  22377. a = this.wordCount;
  22378. this.toolsCount(a, t);
  22379. }
  22380. window.parent.postMessage({ tools: "2" }, "*");
  22381. } else if (t == 3) {
  22382. if (this.mindCount > 0) {
  22383. this.updateCount(this.mindCount, t);
  22384. } else {
  22385. this.mindCount++;
  22386. a = this.mindCount;
  22387. this.toolsCount(a, t);
  22388. }
  22389. window.parent.postMessage(
  22390. {
  22391. tools: "3",
  22392. cid: this.id,
  22393. stage: this.courseType,
  22394. task: this.taskCount,
  22395. tool: i
  22396. },
  22397. "*"
  22398. );
  22399. } else if (t == 4) {
  22400. this.radio = [];
  22401. this.noteName = "";
  22402. this.isAnswer = false;
  22403. if (this.askCount > 0) {
  22404. this.updateCount(this.askCount, t);
  22405. } else {
  22406. this.askCount++;
  22407. a = this.askCount;
  22408. this.toolsCount(a, t);
  22409. }
  22410. if (!this.dialogVisible2) {
  22411. this.askJson.askJson = this.chapInfoList[
  22412. this.courseType
  22413. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  22414. this.askJson.askTitle = this.chapInfoList[
  22415. this.courseType
  22416. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  22417. this.askJson.askCount = this.chapInfoList[
  22418. this.courseType
  22419. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  22420. } else {
  22421. this.askJson.askJson = this.chapTools.askJson.askJson;
  22422. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22423. this.askJson.askCount = this.chapTools.askJson.askCount;
  22424. }
  22425. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22426. if (this.askJson.askJson[k].type == "2") {
  22427. this.radio.push([]);
  22428. } else {
  22429. this.radio.push("");
  22430. }
  22431. }
  22432. this.dialogVisible5 = true;
  22433. // window.parent.postMessage({ tools: "4" }, "*");
  22434. } else if (t == 45) {
  22435. this.noteName = "";
  22436. this.radio = [];
  22437. this.isAnswer = false;
  22438. if (this.askCount > 0) {
  22439. this.updateCount(this.askCount, t);
  22440. } else {
  22441. this.askCount++;
  22442. a = this.askCount;
  22443. this.toolsCount(a, t);
  22444. }
  22445. this.testJson = this.chapInfoList[
  22446. this.courseType
  22447. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  22448. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22449. if (this.testJson.testJson[k].type == "2") {
  22450. this.radio.push([]);
  22451. } else {
  22452. this.radio.push("");
  22453. }
  22454. }
  22455. this.dialogVisibleChoice = true;
  22456. // window.parent.postMessage({ tools: "4" }, "*");
  22457. } else if (t == 5) {
  22458. if (this.scoreCount > 0) {
  22459. this.updateCount(this.scoreCount, t);
  22460. } else {
  22461. this.scoreCount++;
  22462. a = this.scoreCount;
  22463. this.toolsCount(a, t);
  22464. }
  22465. this.dialogVisible4 = true;
  22466. // window.parent.postMessage({ tools: "5" }, "*");
  22467. } else if (t == 6) {
  22468. if (this.noteCount > 0) {
  22469. this.updateCount(this.noteCount, t);
  22470. } else {
  22471. this.noteCount++;
  22472. a = this.noteCount;
  22473. this.toolsCount(a, t);
  22474. }
  22475. window.parent.postMessage(
  22476. {
  22477. tools: "6",
  22478. cid: this.id,
  22479. stage: this.courseType,
  22480. task: this.taskCount,
  22481. tool: i
  22482. },
  22483. "*"
  22484. );
  22485. } else if (t == 7) {
  22486. if (this.mindNetWorkCount > 0) {
  22487. this.updateCount(this.mindNetWorkCount, t);
  22488. } else {
  22489. this.mindNetWorkCount++;
  22490. a = this.mindNetWorkCount;
  22491. this.toolsCount(a, t);
  22492. }
  22493. window.parent.postMessage(
  22494. {
  22495. tools: "7",
  22496. cid: this.id,
  22497. stage: this.courseType,
  22498. task: this.taskCount,
  22499. tool: i
  22500. },
  22501. "*"
  22502. );
  22503. } else if (t == 16) {
  22504. if (this.workCount > 0) {
  22505. this.updateCount(this.workCount, t);
  22506. } else {
  22507. this.workCount++;
  22508. a = this.workCount;
  22509. this.toolsCount(a, t);
  22510. }
  22511. this.dialogVisible = true;
  22512. } else if (t == 50) {
  22513. if (this.tType == 2) {
  22514. this.$message.error("不支持学生使用");
  22515. return;
  22516. }
  22517. this.plworkFile = [];
  22518. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22519. if (!this.uploadCid) {
  22520. this.$message.error(
  22521. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  22522. );
  22523. return;
  22524. }
  22525. // this.uploadCid =
  22526. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22527. // index
  22528. // ].toolChoose[i].uploadJson[0];
  22529. this.selectUploadStudent(2);
  22530. } else if (t == 8) {
  22531. if (this.libraryCount > 0) {
  22532. this.updateCount(this.libraryCount, t);
  22533. } else {
  22534. this.libraryCount++;
  22535. a = this.libraryCount;
  22536. this.toolsCount(a, t);
  22537. }
  22538. window.parent.postMessage({ tools: "8" }, "*");
  22539. } else if (t == 17) {
  22540. if (this.libraryCount > 0) {
  22541. this.updateCount(this.libraryCount, t);
  22542. } else {
  22543. this.libraryCount++;
  22544. a = this.libraryCount;
  22545. this.toolsCount(a, t);
  22546. }
  22547. window.parent.postMessage({ tools: "17" }, "*");
  22548. } else if (t == 18) {
  22549. if (this.trainCount > 0) {
  22550. this.updateCount(this.trainCount, t);
  22551. } else {
  22552. this.trainCount++;
  22553. a = this.trainCount;
  22554. this.toolsCount(a, t);
  22555. }
  22556. window.parent.postMessage({ tools: "18" }, "*");
  22557. } else if (t == 10) {
  22558. if (this.timeCount > 0) {
  22559. this.updateCount(this.timeCount, t);
  22560. } else {
  22561. this.timeCount++;
  22562. a = this.timeCount;
  22563. this.toolsCount(a, t);
  22564. }
  22565. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  22566. .taskJson[index].toolChoose[i].preTime
  22567. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22568. .toolChoose[i].preTime
  22569. : "";
  22570. this.timeDialogVisible = true;
  22571. } else if (t == 15) {
  22572. this.answerQ = "";
  22573. this.questionAnswer = "";
  22574. if (this.answerCount > 0) {
  22575. this.updateCount(this.answerCount, t);
  22576. } else {
  22577. this.answerCount++;
  22578. a = this.answerCount;
  22579. this.toolsCount(a, t);
  22580. }
  22581. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22582. .taskJson[index].toolChoose[i].answerQ
  22583. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22584. .toolChoose[i].answerQ
  22585. : "";
  22586. this.answerDialogVisible = true;
  22587. } else if (t == 21) {
  22588. window.parent.postMessage({ tools: "21" }, "*");
  22589. } else if (t == 22) {
  22590. window.parent.postMessage({ tools: "22" }, "*");
  22591. } else if (t == 23) {
  22592. window.parent.postMessage({ tools: "23" }, "*");
  22593. } else if (t == 24) {
  22594. window.parent.postMessage({ tools: "24" }, "*");
  22595. } else if (t == 25) {
  22596. window.parent.postMessage({ tools: "25" }, "*");
  22597. } else if (t == 31) {
  22598. window.parent.postMessage({ tools: "31" }, "*");
  22599. } else if (t == 28) {
  22600. window.parent.postMessage({ tools: "28" }, "*");
  22601. } else if (t == 37) {
  22602. window.parent.postMessage({ tools: "37" }, "*");
  22603. } else if (t == 38) {
  22604. window.parent.postMessage({ tools: "38" }, "*");
  22605. } else if (t == 39) {
  22606. window.parent.postMessage({ tools: "39" }, "*");
  22607. } else if (t == 32) {
  22608. window.parent.postMessage({ tools: "32" }, "*");
  22609. } else if (t == 66) {
  22610. window.parent.postMessage({ tools: "66" }, "*");
  22611. } else if (t == 67) {
  22612. window.parent.postMessage({ tools: "67" }, "*");
  22613. } else if (t == 68) {
  22614. window.parent.postMessage({ tools: "68" }, "*");
  22615. } else if (t == 57) {
  22616. // window.parent.postMessage({ tools: "57" }, "*");
  22617. window.parent.postMessage(
  22618. {
  22619. tools: "57u",
  22620. cid: this.id,
  22621. stage: this.courseType,
  22622. task: this.taskCount,
  22623. tool: i
  22624. },
  22625. "*"
  22626. );
  22627. } else if (t == 58) {
  22628. window.parent.postMessage({ tools: "58" }, "*");
  22629. } else if (t == 59) {
  22630. window.parent.postMessage({ tools: "59" }, "*");
  22631. } else if (t == 60) {
  22632. window.parent.postMessage({ tools: "60" }, "*");
  22633. } else if (t == 61) {
  22634. window.parent.postMessage({ tools: "61" }, "*");
  22635. } else if (t == 63) {
  22636. window.parent.postMessage({ tools: "63" }, "*");
  22637. } else if (t == 71) {
  22638. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  22639. // this.$message.error("该工具不可使用");
  22640. // return
  22641. // }
  22642. window.parent.postMessage({ tools: "71" }, "*");
  22643. } else if (t == 69) {
  22644. if (this.worksStudent[i].length) {
  22645. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22646. if (this.userid == this.worksStudent[i][k].userid) {
  22647. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works);
  22648. break;
  22649. } else {
  22650. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  22651. }
  22652. }
  22653. } else {
  22654. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  22655. }
  22656. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  22657. .taskJson[index].toolChoose[i].englishList
  22658. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22659. .toolChoose[i].englishList
  22660. : {};
  22661. this.englishToolIndex = i;
  22662. this.myAnList = this.myAnswerList1;
  22663. this.engDialogVisible = true;
  22664. } else if (t == 70) {
  22665. if (this.worksStudent[i].length) {
  22666. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22667. if (
  22668. this.userid == this.worksStudent[i][k].userid &&
  22669. this.worksStudent[i][k].type == 17
  22670. ) {
  22671. this.englishVoiceJsonWork = JSON.parse(
  22672. this.worksStudent[i][k].works
  22673. );
  22674. break;
  22675. } else {
  22676. this.englishVoiceJsonWork = [];
  22677. }
  22678. }
  22679. } else {
  22680. this.englishVoiceJsonWork = [];
  22681. }
  22682. let englishVoiceJson = {};
  22683. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22684. .taskJson[index].toolChoose[i].englishVoiceJson
  22685. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22686. .toolChoose[i].englishVoiceJson
  22687. : {};
  22688. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  22689. this.EnglishVoiceDialog = true;
  22690. } else if (t == 65) {
  22691. if (this.tType == 2) {
  22692. this.$message.error("不支持学生使用");
  22693. return;
  22694. }
  22695. this.uploadCid = this.tcid;
  22696. if (!this.uploadCid) {
  22697. this.$message.error(
  22698. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  22699. );
  22700. return;
  22701. }
  22702. this.selectPickStudent();
  22703. } else if (t == 26) {
  22704. window.parent.postMessage(
  22705. {
  22706. tools: "26",
  22707. cid: this.id,
  22708. stage: this.courseType,
  22709. task: this.taskCount,
  22710. tool: i
  22711. },
  22712. "*"
  22713. );
  22714. } else if (t == 40) {
  22715. if (this.evalCount > 0) {
  22716. this.updateCount(this.evalCount, t);
  22717. } else {
  22718. this.evalCount++;
  22719. a = this.evalCount;
  22720. this.toolsCount(a, t);
  22721. }
  22722. this.eScore = { eBzText: "", eStar: [] };
  22723. if (this.worksStudent[i].length) {
  22724. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22725. if (this.userid == this.worksStudent[i][k].userid) {
  22726. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22727. this.rateJson = this.chapInfoList[
  22728. this.courseType
  22729. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22730. break;
  22731. } else {
  22732. this.rateJson = this.chapInfoList[
  22733. this.courseType
  22734. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22735. }
  22736. }
  22737. } else {
  22738. this.rateJson = this.chapInfoList[
  22739. this.courseType
  22740. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22741. }
  22742. this.isStar = false;
  22743. this.studentEvalDialogVisible = true;
  22744. } else if (t == 41) {
  22745. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22746. .taskJson[index].toolChoose[i].selectJson
  22747. ? JSON.parse(
  22748. JSON.stringify(
  22749. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22750. index
  22751. ].toolChoose[i].selectJson
  22752. )
  22753. )
  22754. : { url: "", select: [], answer: [] };
  22755. if (this.worksStudent[i].length) {
  22756. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22757. if (this.userid == this.worksStudent[i][k].userid) {
  22758. var a = this.worksStudent[i][k].works.split(",");
  22759. for (var ki = 0; ki < a.length; ki++) {
  22760. a[ki] = parseInt(a[ki]);
  22761. }
  22762. this.selectAnswer = {
  22763. answer: a,
  22764. stu: this.worksStudent[i][k].sName
  22765. };
  22766. break;
  22767. } else {
  22768. this.selectAnswer = { answer: [], stu: "" };
  22769. }
  22770. }
  22771. } else {
  22772. this.selectAnswer = { answer: [], stu: "" };
  22773. }
  22774. this.isSelect = false;
  22775. this.dialogVisibleSelect = true;
  22776. } else if (t == 44) {
  22777. window.parent.postMessage({ tools: "44" }, "*");
  22778. } else if (t == 47) {
  22779. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22780. .taskJson[index].toolChoose[i].sentenceList
  22781. ? JSON.parse(
  22782. JSON.stringify(
  22783. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22784. index
  22785. ].toolChoose[i].sentenceList
  22786. )
  22787. )
  22788. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22789. for (var q = 0; q < this.sentenceList.length; q++) {
  22790. this.sentenceList[q].chooseSenList = [];
  22791. this.sentenceList[q].addChangeSen = [];
  22792. this.sentenceList[q].addChangeSen = JSON.parse(
  22793. JSON.stringify(this.sentenceList[q].addSentence)
  22794. );
  22795. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  22796. q
  22797. ].rightAnswer.length;
  22798. }
  22799. this.dialogVisibleSentence = true;
  22800. } else if (t == 48) {
  22801. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22802. .taskJson[index].toolChoose[i].tableJson
  22803. ? JSON.parse(
  22804. JSON.stringify(
  22805. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22806. index
  22807. ].toolChoose[i].tableJson
  22808. )
  22809. )
  22810. : { text: "" };
  22811. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  22812. if (this.worksStudent[i].length) {
  22813. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22814. if (this.userid == this.worksStudent[i][k].userid) {
  22815. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22816. break;
  22817. }
  22818. }
  22819. }
  22820. this.dialogVisibleTable = true;
  22821. } else if (t == 52) {
  22822. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22823. .taskJson[index].toolChoose[i].wordJson
  22824. ? JSON.parse(
  22825. JSON.stringify(
  22826. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22827. index
  22828. ].toolChoose[i].wordJson
  22829. )
  22830. )
  22831. : { text: "" };
  22832. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  22833. if (this.worksStudent[i].length) {
  22834. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22835. if (this.userid == this.worksStudent[i][k].userid) {
  22836. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22837. break;
  22838. }
  22839. }
  22840. }
  22841. this.dialogVisibleWord = true;
  22842. } else if (t == 49) {
  22843. if (!this.tcid2 && this.courseDetail.juri != "" && this.tType == "1") {
  22844. return;
  22845. }
  22846. this.groupJson = this.chapInfoList[
  22847. this.courseType
  22848. ].chapterInfo[0].taskJson[index].toolChoose[i].groupJson;
  22849. this.islock = this.groupJson.islock == 1 ? true : false;
  22850. this.dialogVisibleGroup = true;
  22851. } else if (t == 62) {
  22852. this.videoType = 0;
  22853. this.videoJson = {};
  22854. this.videoJson = this.chapInfoList[
  22855. this.courseType
  22856. ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
  22857. this.dialogVisibleVideo = true;
  22858. }
  22859. this.insertMemorandum(
  22860. `点击工作区<span class="variable">工具${index + 1}:${
  22861. this.toolsList[t]
  22862. }</span>`
  22863. );
  22864. },
  22865. teacherWorkSubmit(t, i, index, s) {
  22866. this.sStudent = s;
  22867. this.toolindex = i;
  22868. this.sTool = t;
  22869. if (this.tType !== "1" && this.tType !== "4") {
  22870. return;
  22871. }
  22872. if (t == 16 || t == 32 || t == 50) {
  22873. this.dialogVisibleWorks = true;
  22874. } else if (t == 15) {
  22875. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22876. .taskJson[index].toolChoose[i].answerQ
  22877. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22878. .toolChoose[i].answerQ
  22879. : "";
  22880. this.questionAnswer = "";
  22881. this.answerDialogVisibleTeacher = true; //问答
  22882. } else if (t == 52) {
  22883. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22884. .taskJson[index].toolChoose[i].wordJson
  22885. ? JSON.parse(
  22886. JSON.stringify(
  22887. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22888. index
  22889. ].toolChoose[i].wordJson
  22890. )
  22891. )
  22892. : { text: "" };
  22893. if (this.worksStudent[i].length) {
  22894. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22895. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22896. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22897. break;
  22898. }
  22899. }
  22900. }
  22901. this.dialogVisibleWordTeacher = true; //文档
  22902. } else if (t == 4) {
  22903. this.radio = [];
  22904. this.noteName = "";
  22905. this.isAnswer = false;
  22906. if (this.askCount > 0) {
  22907. this.updateCount(this.askCount, t);
  22908. } else {
  22909. this.askCount++;
  22910. a = this.askCount;
  22911. this.toolsCount(a, t);
  22912. }
  22913. if (!this.dialogVisible2) {
  22914. this.askJson.askJson = this.chapInfoList[
  22915. this.courseType
  22916. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  22917. this.askJson.askTitle = this.chapInfoList[
  22918. this.courseType
  22919. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  22920. this.askJson.askCount = this.chapInfoList[
  22921. this.courseType
  22922. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  22923. } else {
  22924. this.askJson.askJson = this.chapTools.askJson.askJson;
  22925. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22926. this.askJson.askCount = this.chapTools.askJson.askCount;
  22927. }
  22928. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22929. if (this.askJson.askJson[k].type == "2") {
  22930. this.radio.push([]);
  22931. } else {
  22932. this.radio.push("");
  22933. }
  22934. }
  22935. this.dialogVisible5Teacher = true;
  22936. } else if (t == 45) {
  22937. this.noteName = "";
  22938. this.radio = [];
  22939. this.isAnswer = false;
  22940. if (this.askCount > 0) {
  22941. this.updateCount(this.askCount, t);
  22942. } else {
  22943. this.askCount++;
  22944. a = this.askCount;
  22945. this.toolsCount(a, t);
  22946. }
  22947. this.testJson = this.chapInfoList[
  22948. this.courseType
  22949. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  22950. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22951. if (this.testJson.testJson[k].type == "2") {
  22952. this.radio.push([]);
  22953. } else {
  22954. this.radio.push("");
  22955. }
  22956. }
  22957. this.dialogVisibleChoiceTeacher = true;
  22958. } else if (t == 41) {
  22959. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22960. .taskJson[index].toolChoose[i].selectJson
  22961. ? JSON.parse(
  22962. JSON.stringify(
  22963. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22964. index
  22965. ].toolChoose[i].selectJson
  22966. )
  22967. )
  22968. : { url: "", select: [], answer: [] };
  22969. if (this.worksStudent[i].length) {
  22970. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22971. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22972. var a = this.worksStudent[i][k].works.split(",");
  22973. for (var ki = 0; ki < a.length; ki++) {
  22974. a[ki] = parseInt(a[ki]);
  22975. }
  22976. this.selectAnswer = {
  22977. answer: a,
  22978. stu: this.worksStudent[i][k].sName
  22979. };
  22980. break;
  22981. } else {
  22982. this.selectAnswer = { answer: [], stu: "" };
  22983. }
  22984. }
  22985. } else {
  22986. this.selectAnswer = { answer: [], stu: "" };
  22987. }
  22988. this.isSelect = false;
  22989. this.dialogVisibleSelectTeacher = true;
  22990. } else if (t == 47) {
  22991. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22992. .taskJson[index].toolChoose[i].sentenceList
  22993. ? JSON.parse(
  22994. JSON.stringify(
  22995. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22996. index
  22997. ].toolChoose[i].sentenceList
  22998. )
  22999. )
  23000. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23001. for (var q = 0; q < this.sentenceList.length; q++) {
  23002. this.sentenceList[q].chooseSenList = [];
  23003. this.sentenceList[q].addChangeSen = [];
  23004. this.sentenceList[q].addChangeSen = JSON.parse(
  23005. JSON.stringify(this.sentenceList[q].addSentence)
  23006. );
  23007. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23008. q
  23009. ].rightAnswer.length;
  23010. }
  23011. this.dialogVisibleSentenceTeacher = true;
  23012. } else if (t == 48) {
  23013. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23014. .taskJson[index].toolChoose[i].tableJson
  23015. ? JSON.parse(
  23016. JSON.stringify(
  23017. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23018. index
  23019. ].toolChoose[i].tableJson
  23020. )
  23021. )
  23022. : { text: "" };
  23023. if (this.worksStudent[i].length) {
  23024. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23025. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23026. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23027. break;
  23028. }
  23029. }
  23030. }
  23031. this.dialogVisibleTableTeacher = true;
  23032. } else if (t == 40) {
  23033. if (this.evalCount > 0) {
  23034. this.updateCount(this.evalCount, t);
  23035. } else {
  23036. this.evalCount++;
  23037. a = this.evalCount;
  23038. this.toolsCount(a, t);
  23039. }
  23040. this.eScore = { eBzText: "", eStar: [] };
  23041. if (this.worksStudent[i].length) {
  23042. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23043. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23044. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23045. this.rateJson = this.chapInfoList[
  23046. this.courseType
  23047. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23048. break;
  23049. } else {
  23050. this.rateJson = this.chapInfoList[
  23051. this.courseType
  23052. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23053. }
  23054. }
  23055. } else {
  23056. this.rateJson = this.chapInfoList[
  23057. this.courseType
  23058. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23059. }
  23060. this.isStar = false;
  23061. this.studentEvalDialogVisibleTeacher = true;
  23062. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23063. window.parent.postMessage(
  23064. {
  23065. tools: t + "teacher",
  23066. cid: this.id,
  23067. stage: this.courseType,
  23068. task: this.taskCount,
  23069. tool: i,
  23070. student: this.sStudent
  23071. },
  23072. "*"
  23073. );
  23074. }
  23075. },
  23076. openCocoPi(tool, i, uid, uname) {
  23077. let student = {
  23078. userid: uid,
  23079. student: uname
  23080. };
  23081. if (tool == 57) {
  23082. window.parent.postMessage(
  23083. {
  23084. tools: tool + "teacher",
  23085. cid: this.id,
  23086. stage: this.courseType,
  23087. task: this.taskCount,
  23088. tool: i,
  23089. student: student
  23090. },
  23091. "*"
  23092. );
  23093. }
  23094. },
  23095. setRightAnswer(s, i, j) {
  23096. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23097. if (
  23098. this.sentenceList[i].chooseSenList[q] == undefined ||
  23099. this.sentenceList[i].chooseSenList[q] == ""
  23100. ) {
  23101. this.sentenceList[i].chooseSenList[q] = s;
  23102. this.sentenceList[i].addChangeSen[j] = "";
  23103. break;
  23104. }
  23105. }
  23106. this.$forceUpdate();
  23107. },
  23108. returnCard(r, i, j) {
  23109. var a = this.sentenceList[i].addSentence.indexOf(r);
  23110. this.sentenceList[i].chooseSenList[j] = "";
  23111. this.sentenceList[i].addChangeSen[a] = r;
  23112. this.$forceUpdate();
  23113. },
  23114. // addSentenceTool() {
  23115. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23116. // this.taskCount
  23117. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23118. // this.sentenceList = [
  23119. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23120. // ];
  23121. // this.dialogVisibleSentence = false;
  23122. // },
  23123. toolsCount(a, t) {
  23124. let params = {
  23125. cid: this.id,
  23126. chid: this.courseType,
  23127. uid: this.userid,
  23128. tid: t,
  23129. count: a
  23130. };
  23131. this.ajax
  23132. .get(this.$store.state.api + "insertToolsCount", params)
  23133. .then(res => {
  23134. this.selectCount();
  23135. })
  23136. .catch(err => {
  23137. console.error(err);
  23138. });
  23139. },
  23140. updateCount(c, t) {
  23141. c++;
  23142. let params = {
  23143. cid: this.id,
  23144. chid: this.courseType,
  23145. uid: this.userid,
  23146. tid: t,
  23147. count: c
  23148. };
  23149. this.ajax
  23150. .get(this.$store.state.api + "updateToolsCount", params)
  23151. .then(res => {
  23152. this.selectCount();
  23153. })
  23154. .catch(err => {
  23155. console.error(err);
  23156. });
  23157. },
  23158. checkEva() {
  23159. if (this.evalua != "") {
  23160. for (var i = 0; i < this.evaJuri.length; i++) {
  23161. if (this.evalua == this.evaJuri[i].id) {
  23162. this.eTitle = this.evaJuri[i].title;
  23163. this.eJson = JSON.parse(this.evaJuri[i].content);
  23164. }
  23165. }
  23166. this.$forceUpdate();
  23167. setTimeout(() => {
  23168. this.setMindData();
  23169. }, 0);
  23170. }
  23171. },
  23172. selectEva() {
  23173. let params = {
  23174. oid: this.oid
  23175. };
  23176. this.ajax
  23177. .get(this.$store.state.api + "selectAllEvaluation", params)
  23178. .then(res => {
  23179. this.evaJuri = res.data[0];
  23180. })
  23181. .catch(err => {
  23182. console.error(err);
  23183. });
  23184. },
  23185. setMindData() {
  23186. this.data.data = [];
  23187. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23188. let _eJson = Object.keys(this.eJson);
  23189. let _e = this.eJson;
  23190. for (let i = 0; i < _eJson.length; i++) {
  23191. let element = _e[_eJson[i]];
  23192. this.data.data.push({
  23193. id: element.id,
  23194. parentid: "root",
  23195. topic: element.name
  23196. });
  23197. let _eJsonc = Object.keys(element.child);
  23198. let _e2 = element.child;
  23199. for (let j = 0; j < _eJsonc.length; j++) {
  23200. let _ec = _e2[_eJsonc[j]];
  23201. this.data.data.push({
  23202. id: _ec.id,
  23203. parentid: element.id,
  23204. topic: _ec.name
  23205. });
  23206. let _eJsonz = Object.keys(_ec.child);
  23207. let _e3 = _ec.child;
  23208. for (let z = 0; z < _eJsonz.length; z++) {
  23209. let _ez = _e3[_eJsonz[z]];
  23210. this.data.data.push({
  23211. id: _ez.id,
  23212. parentid: _ec.id,
  23213. topic: _ez.name
  23214. });
  23215. }
  23216. }
  23217. }
  23218. this.$forceUpdate();
  23219. },
  23220. checkFileFull(type, url) {
  23221. this.fullDialogVisible = true;
  23222. this.fulltype = type;
  23223. this.fullUrl = url;
  23224. },
  23225. async checkFileFull1(t, f) {
  23226. this.fullDialogVisible = true;
  23227. if (t == 6) {
  23228. this.fulltype = 1;
  23229. this.fullUrl = JSON.parse(JSON.stringify(f));
  23230. } else if (t == 8) {
  23231. this.fulltype = 2;
  23232. this.fullUrl = f.url;
  23233. } else if (
  23234. t == 3 &&
  23235. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23236. "PDF"
  23237. ) {
  23238. this.fulltype = 3;
  23239. this.fullUrl = f.url;
  23240. } else if (t == 3) {
  23241. this.fulltype = 2;
  23242. let _uuurl = await this.checkLink(f.url);
  23243. this.fullUrl =
  23244. "https://view.officeapps.live.com/op/view.aspx?src=" +
  23245. encodeURIComponent(_uuurl);
  23246. }
  23247. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23248. },
  23249. openSname(n, id, i, uid) {
  23250. this.snameWid = id;
  23251. this.worksSName = n;
  23252. this.worksSid = uid == n ? "" : uid;
  23253. this.toolindex = i;
  23254. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23255. if (!this.uploadCid) {
  23256. this.$message.error(
  23257. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23258. );
  23259. return;
  23260. }
  23261. this.selectUploadStudent(1);
  23262. },
  23263. updateName() {
  23264. let params = {
  23265. n: this.worksSName,
  23266. cid: this.snameWid
  23267. };
  23268. this.ajax
  23269. .get(this.$store.state.api + "updateCourseWorksName", params)
  23270. .then(res => {
  23271. this.$message({
  23272. message: "修改成功",
  23273. type: "success"
  23274. });
  23275. this.dialogVisibleSname = false;
  23276. this.getCourseDetail(2);
  23277. this.snameWid = "";
  23278. this.worksSName = "";
  23279. })
  23280. .catch(err => {
  23281. console.error(err);
  23282. });
  23283. },
  23284. downloadFile2(f) {
  23285. // const loading = this.$loading.service({
  23286. // background: "rgba(255, 255, 255, 0.7)",
  23287. // target: document.body,
  23288. // text: "文件加载中...",
  23289. // });
  23290. // let url2 = f.url;
  23291. // let _url2 = "";
  23292. // if (
  23293. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23294. // ) {
  23295. // _url2 = url2.split(
  23296. // "https://view.officeapps.live.com/op/view.aspx?src="
  23297. // )[1];
  23298. // } else {
  23299. // _url2 = url2;
  23300. // }
  23301. // let params = {
  23302. // url: _url2,
  23303. // name: f.name,
  23304. // };
  23305. // this.ajax
  23306. // .get(this.$store.state.api + "download", params)
  23307. // .then((res) => {
  23308. // loading.close();
  23309. // let content = res.data.data.data;
  23310. // let ab = new ArrayBuffer(content.length);
  23311. // let view = new Uint8Array(ab);
  23312. // for (var i = 0; i < content.length; ++i) {
  23313. // view[i] = content[i];
  23314. // }
  23315. // let elink = document.createElement("a");
  23316. // elink.download = f.name;
  23317. // elink.style.display = "none";
  23318. // let blob = new Blob([ab], {
  23319. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23320. // });
  23321. // elink.href = URL.createObjectURL(blob);
  23322. // document.body.appendChild(elink);
  23323. // elink.click();
  23324. // document.body.removeChild(elink);
  23325. // })
  23326. // .catch((err) => {
  23327. // loading.close();
  23328. // console.error(err);
  23329. // });
  23330. var credentials = {
  23331. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23332. secretAccessKey: "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"
  23333. }; //秘钥形式的登录上传
  23334. window.AWS.config.update(credentials);
  23335. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23336. let url2 = f.url;
  23337. let _url2 = "";
  23338. if (
  23339. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23340. ) {
  23341. _url2 = url2.split(
  23342. "https://view.officeapps.live.com/op/view.aspx?src="
  23343. )[1];
  23344. } else {
  23345. _url2 = url2;
  23346. }
  23347. let _this = this;
  23348. _this.downLoading = true;
  23349. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23350. let name = decodeURIComponent(
  23351. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23352. );
  23353. var params = {
  23354. Bucket: "ccrb",
  23355. Key: name
  23356. };
  23357. s3.getObject(params, function(err, data) {
  23358. _this.downLoading = false;
  23359. if (err) console.log(err, err.stack);
  23360. // an error occurred
  23361. else {
  23362. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23363. let a = document.createElement("a");
  23364. a.name = f.name;
  23365. a.href = url;
  23366. a.download = f.name;
  23367. a.click();
  23368. console.log(data);
  23369. } // sxuccessful response
  23370. });
  23371. return;
  23372. let url = f.url;
  23373. let _url = "";
  23374. if (
  23375. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23376. ) {
  23377. _url = url.split(
  23378. "https://view.officeapps.live.com/op/view.aspx?src="
  23379. )[1];
  23380. } else {
  23381. _url = url;
  23382. }
  23383. _this.downLoading = true;
  23384. // const loading = _this.$loading.service({
  23385. // background: "rgba(255, 255, 255, 0.7)",
  23386. // target: document.body,
  23387. // text: "文件加载中...",
  23388. // });
  23389. let x = new XMLHttpRequest();
  23390. x.open("GET", _url, true);
  23391. x.responseType = "blob";
  23392. x.onload = function() {
  23393. _this.downLoading = false;
  23394. // loading.close();
  23395. let url = window.URL.createObjectURL(new Blob([x.response]));
  23396. let a = document.createElement("a");
  23397. a.name = f.name;
  23398. a.href = url;
  23399. a.download = f.name;
  23400. a.click();
  23401. };
  23402. x.send();
  23403. },
  23404. downloadFile(url) {
  23405. let hz = url.substring(url.lastIndexOf(".") + 1);
  23406. if (hz == "txt" || hz == "md") {
  23407. this.lookTxt(url);
  23408. return;
  23409. }
  23410. var credentials = {
  23411. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23412. secretAccessKey: "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"
  23413. }; //秘钥形式的登录上传
  23414. window.AWS.config.update(credentials);
  23415. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23416. let url2 = url;
  23417. let _url2 = "";
  23418. if (
  23419. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23420. ) {
  23421. _url2 = url2.split(
  23422. "https://view.officeapps.live.com/op/view.aspx?src="
  23423. )[1];
  23424. } else {
  23425. _url2 = url2;
  23426. }
  23427. const loading2 = this.$loading.service({
  23428. background: "rgba(255, 255, 255, 0.7)",
  23429. target: document.body,
  23430. text: "文件加载中..."
  23431. });
  23432. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23433. let name = decodeURIComponent(
  23434. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23435. );
  23436. var params = {
  23437. Bucket: "ccrb",
  23438. Key: name
  23439. };
  23440. s3.getObject(params, function(err, data) {
  23441. loading2.close();
  23442. if (err) console.log(err, err.stack);
  23443. // an error occurred
  23444. else {
  23445. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23446. let a = document.createElement("a");
  23447. a.name = name;
  23448. a.href = url;
  23449. a.download = name;
  23450. a.click();
  23451. console.log(data);
  23452. } // sxuccessful response
  23453. });
  23454. return;
  23455. let _this = this;
  23456. let _url = "";
  23457. if (
  23458. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23459. ) {
  23460. _url = url.split(
  23461. "https://view.officeapps.live.com/op/view.aspx?src="
  23462. )[1];
  23463. } else {
  23464. _url = url;
  23465. }
  23466. const x = new XMLHttpRequest();
  23467. x.open("GET", _url, true);
  23468. x.responseType = "blob";
  23469. const loading = _this.$loading.service({
  23470. background: "rgba(255, 255, 255, 0.7)",
  23471. target: document.body,
  23472. text: "文件加载中..."
  23473. });
  23474. // _this.$message.success("文件下载中...");
  23475. x.onload = function(e) {
  23476. loading.close();
  23477. let content = x.response;
  23478. let elink = document.createElement("a");
  23479. elink.download = decodeURI(
  23480. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23481. );
  23482. elink.style.display = "none";
  23483. let blob = new Blob([content]);
  23484. elink.href = URL.createObjectURL(blob);
  23485. document.body.appendChild(elink);
  23486. elink.click();
  23487. document.body.removeChild(elink);
  23488. };
  23489. x.send();
  23490. },
  23491. openLine(url) {
  23492. window.open(url);
  23493. },
  23494. resize() {
  23495. if (document.getElementsByClassName("box_course").length) {
  23496. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  23497. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  23498. if (this.showType == 2 || this.showType == 3) {
  23499. document.getElementsByClassName("navBox")[0].style.height =
  23500. a - 40 + 0 + "px";
  23501. } else {
  23502. document.getElementsByClassName("navBox")[0].style.height =
  23503. a - 40 + "px";
  23504. }
  23505. }
  23506. this.Stbodywidth =
  23507. document.getElementsByClassName("student_body").length &&
  23508. document.getElementsByClassName("student_body")[0].offsetWidth;
  23509. },
  23510. closeDraw() {
  23511. this.bg = null;
  23512. this.drawShow = false;
  23513. },
  23514. showPicturePaint(url) {
  23515. let params = {
  23516. img: url
  23517. };
  23518. this.ajax
  23519. .get(this.$store.state.api + "imgToBase64", params)
  23520. .then(res => {
  23521. this.drawShow = true;
  23522. this.bg = res.data[0].img;
  23523. })
  23524. .catch(err => {
  23525. console.error(err);
  23526. });
  23527. },
  23528. addImgDraw(base64) {
  23529. let file = { name: "批注图.png" };
  23530. let img = this.dataUrlToFile(base64, file);
  23531. this.beforeUpload1(img, 5);
  23532. },
  23533. addImgDrawImG(url) {
  23534. // console.log(url);
  23535. let params = [
  23536. {
  23537. wid: this.commentDetail.wid,
  23538. img: url
  23539. }
  23540. ];
  23541. this.ajax
  23542. .post(this.$store.state.api + "updateCourseWorks", params)
  23543. .then(res => {
  23544. this.$message({
  23545. message: "提交成功",
  23546. type: "success"
  23547. });
  23548. this.drawShow = false;
  23549. this.bg = "";
  23550. this.selectSWorks();
  23551. this.selectStudent();
  23552. })
  23553. .catch(err => {
  23554. this.$message.error("提交失败");
  23555. console.error(err);
  23556. });
  23557. },
  23558. deletePicturePaint() {
  23559. this.$confirm("确定删除此批注吗?", "提示", {
  23560. confirmButtonText: "确定",
  23561. cancelButtonText: "取消",
  23562. type: "warning"
  23563. })
  23564. .then(() => {
  23565. let params = [
  23566. {
  23567. wid: this.commentDetail.wid,
  23568. img: ""
  23569. }
  23570. ];
  23571. this.ajax
  23572. .post(this.$store.state.api + "updateCourseWorks", params)
  23573. .then(res => {
  23574. this.$message({
  23575. message: "删除成功",
  23576. type: "success"
  23577. });
  23578. this.selectSWorks();
  23579. this.selectStudent();
  23580. })
  23581. .catch(err => {
  23582. this.$message.error("删除失败");
  23583. console.error(err);
  23584. });
  23585. })
  23586. .catch(() => {});
  23587. },
  23588. getAudioVideo(constraintsData) {
  23589. if (navigator.mediaDevices === undefined) {
  23590. navigator.mediaDevices = {};
  23591. }
  23592. if (navigator.mediaDevices.getUserMedia === undefined) {
  23593. navigator.mediaDevices.getUserMedia = function(constraints) {
  23594. // 首先,如果有getUserMedia的话,就获得它
  23595. var getUserMedia =
  23596. navigator.getUserMedia ||
  23597. navigator.webkitGetUserMedia ||
  23598. navigator.mozGetUserMedia ||
  23599. navigator.msGetUserMedia;
  23600. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  23601. if (!getUserMedia) {
  23602. return Promise.reject({ code: 404 });
  23603. }
  23604. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  23605. return new Promise(function(resolve, reject) {
  23606. getUserMedia.call(navigator, constraints, resolve, reject);
  23607. });
  23608. };
  23609. }
  23610. return navigator.mediaDevices.getUserMedia(constraintsData);
  23611. },
  23612. /**
  23613. * 开始录制
  23614. */
  23615. startRecording(callback) {
  23616. let _function = screenStream => {
  23617. this.addStreamStopListener(screenStream, () => {
  23618. console.log("流停止监听");
  23619. this.stopRecording();
  23620. this.$emit("streamStop", {});
  23621. // this.stopRecording();
  23622. });
  23623. var options = {
  23624. type: "video",
  23625. mimeType: "video/webm",
  23626. disableLogs: false,
  23627. getNativeBlob: false, // enable it for longer recordings
  23628. ignoreMutedMedia: false
  23629. };
  23630. // this.video.srcObject = screenStream;
  23631. this.recorder = RecordRTC(screenStream, options);
  23632. this.recorder.startRecording();
  23633. this.recorder.screen = screenStream;
  23634. this.videoStart = true;
  23635. // callback(true);
  23636. };
  23637. this.getAudioVideo({ audio: true })
  23638. .then(res => {
  23639. this.captureScreen(_function, true);
  23640. console.log("已点击允许,开启成功");
  23641. })
  23642. .catch(err => {
  23643. // console.log('浏览器不支持,请更换浏览器')
  23644. // } else {
  23645. this.captureScreen(_function, false);
  23646. console.log("请检查是否存在麦克风");
  23647. });
  23648. },
  23649. /**
  23650. * 停止录制
  23651. */
  23652. stopRecording(callback) {
  23653. this.recorder.stopRecording(() => {
  23654. // this.video.src = this.video.srcObject = null;
  23655. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  23656. const url = URL.createObjectURL(this.recorder.getBlob());
  23657. const a = document.createElement("a"); //this.fileName+
  23658. let videoFile = new File(
  23659. [this.recorder.getBlob()],
  23660. this.courseDetail.title + "录屏.mp4",
  23661. {
  23662. type: "video/mp4"
  23663. }
  23664. );
  23665. let downloadUrl = URL.createObjectURL(videoFile);
  23666. if (this.$refs.classRoomHelperRef) {
  23667. this.$refs.classRoomHelperRef.checkUploadFile(videoFile);
  23668. }
  23669. document.body.appendChild(a);
  23670. a.style.display = "none";
  23671. a.href = url;
  23672. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  23673. a.click();
  23674. this.recorder.screen.stop();
  23675. this.recorder.destroy();
  23676. this.recorder = null;
  23677. this.videoStart = false;
  23678. // callback(false);
  23679. });
  23680. },
  23681. //初始化
  23682. captureScreen(callback, type) {
  23683. if (navigator.getDisplayMedia) {
  23684. //录制结束,文件下载
  23685. navigator
  23686. .getDisplayMedia({
  23687. video: true
  23688. })
  23689. .then(screenStream => {
  23690. if (type) {
  23691. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  23692. screenStream.addTrack(mic.getTracks()[0]);
  23693. callback(screenStream);
  23694. });
  23695. } else {
  23696. callback(screenStream);
  23697. }
  23698. })
  23699. .catch(function(error) {
  23700. console.log("error", error);
  23701. });
  23702. } else if (navigator.mediaDevices.getDisplayMedia) {
  23703. navigator.mediaDevices
  23704. .getDisplayMedia({
  23705. video: true
  23706. })
  23707. .then(screenStream => {
  23708. if (type) {
  23709. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  23710. screenStream.addTrack(mic.getTracks()[0]);
  23711. callback(screenStream);
  23712. });
  23713. } else {
  23714. callback(screenStream);
  23715. }
  23716. })
  23717. .catch(function(error) {
  23718. console.log("error", error);
  23719. });
  23720. } else {
  23721. var error = "getDisplayMedia API are not supported in this browser.";
  23722. console.log("error", error);
  23723. alert(error);
  23724. }
  23725. },
  23726. //流监听
  23727. addStreamStopListener(stream, callback) {
  23728. stream.addEventListener(
  23729. "ended",
  23730. function() {
  23731. callback();
  23732. callback = function() {};
  23733. },
  23734. false
  23735. );
  23736. stream.addEventListener(
  23737. "inactive",
  23738. function() {
  23739. callback();
  23740. callback = function() {};
  23741. },
  23742. false
  23743. );
  23744. stream.getTracks().forEach(function(track) {
  23745. track.addEventListener(
  23746. "ended",
  23747. function() {
  23748. callback();
  23749. callback = function() {};
  23750. },
  23751. false
  23752. );
  23753. track.addEventListener(
  23754. "inactive",
  23755. function() {
  23756. callback();
  23757. callback = function() {};
  23758. },
  23759. false
  23760. );
  23761. });
  23762. },
  23763. updateGroup() {
  23764. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23765. this.dialogVisibleGroup2 = true;
  23766. },
  23767. numberPan() {
  23768. if (
  23769. /[^\d]/.test(this.groupJson.number) ||
  23770. this.groupJson.number < 2 ||
  23771. this.groupJson.number > 10
  23772. ) {
  23773. this.$message.error("请输入2-10的数字");
  23774. this.groupJson.number = "";
  23775. }
  23776. },
  23777. updateGroupJson() {
  23778. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  23779. if (
  23780. this.groupStudentUid[this.toolindex][i].length >
  23781. this.groupJson2.number
  23782. ) {
  23783. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  23784. return;
  23785. }
  23786. }
  23787. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  23788. this.islock = this.groupJson.islock == 1 ? true : false;
  23789. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23790. this.taskCount
  23791. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  23792. let params = [
  23793. {
  23794. cid: this.id,
  23795. chapters: JSON.stringify(this.chapInfoList),
  23796. uid: this.userid,
  23797. unitIndex: this.courseType
  23798. }
  23799. ];
  23800. this.ajax
  23801. .post(this.$store.state.api + "updateWorkNew4", params)
  23802. .then(res => {
  23803. this.$message.success("设置成功");
  23804. this.getCourseDetail(2);
  23805. this.dialogVisibleGroup2 = false;
  23806. this.groupJson2 = {};
  23807. this.$forceUpdate();
  23808. })
  23809. .catch(err => {
  23810. this.$message.error("网络不佳");
  23811. console.error(err);
  23812. });
  23813. },
  23814. lockChair() {
  23815. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23816. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  23817. this.updateGroupJson();
  23818. },
  23819. selectGroup(index) {
  23820. this.getCourseDetail(2, index);
  23821. },
  23822. joinGroup(index) {
  23823. if (this.groupJson.islock == 2) {
  23824. this.$message.error("位置已被锁定,无法加入");
  23825. return;
  23826. }
  23827. if (
  23828. this.groupStudent[this.toolindex][index].length >
  23829. this.groupJson.number ||
  23830. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  23831. ) {
  23832. this.$message.error("位置已满,无法加入");
  23833. return;
  23834. }
  23835. let params = [
  23836. {
  23837. cid: this.id,
  23838. stage: this.courseType,
  23839. task: this.taskCount,
  23840. tool: this.toolindex,
  23841. g: index,
  23842. uid: this.userid
  23843. }
  23844. ];
  23845. this.ajax
  23846. .post(this.$store.state.api + "joinGroup", params)
  23847. .then(res => {
  23848. this.$message.success("加入成功");
  23849. this.getCourseDetail(2);
  23850. })
  23851. .catch(err => {
  23852. this.$message.error("网络不佳");
  23853. console.error(err);
  23854. });
  23855. },
  23856. exitGroup(id) {
  23857. if (this.groupJson.islock == 2) {
  23858. this.$message.error("位置已被锁定,无法退出");
  23859. return;
  23860. }
  23861. let params = [
  23862. {
  23863. gid: id
  23864. }
  23865. ];
  23866. this.ajax
  23867. .post(this.$store.state.api + "exitGroup", params)
  23868. .then(res => {
  23869. this.$message.success("退出成功");
  23870. this.getCourseDetail(2);
  23871. })
  23872. .catch(err => {
  23873. this.$message.error("网络不佳");
  23874. console.error(err);
  23875. });
  23876. },
  23877. groupUpload(index, task, gindex) {
  23878. this.taskCount = task;
  23879. this.toolindex = index;
  23880. this.groupIndex = gindex;
  23881. this.dialogVisibleGroupWork = true;
  23882. },
  23883. updateGroupChair(user) {
  23884. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  23885. el.label = index;
  23886. return index != user.group;
  23887. });
  23888. this.updateGroupUser = user;
  23889. this.dialogVisibleUpdateGroup = true;
  23890. },
  23891. updateChair() {
  23892. if (
  23893. this.groupStudent[this.toolindex][this.checkChair].length >
  23894. this.groupJson.number ||
  23895. this.groupStudent[this.toolindex][this.checkChair].length ==
  23896. this.groupJson.number
  23897. ) {
  23898. this.$message.error("位置已满,无法加入");
  23899. return;
  23900. }
  23901. let params = [
  23902. {
  23903. cid: this.id,
  23904. stage: this.courseType,
  23905. task: this.taskCount,
  23906. tool: this.toolindex,
  23907. g: this.checkChair,
  23908. uid: this.updateGroupUser.userid
  23909. }
  23910. ];
  23911. this.ajax
  23912. .post(this.$store.state.api + "joinGroup", params)
  23913. .then(res => {
  23914. this.$message.success("修改成功");
  23915. this.updateGroupUser = {};
  23916. this.checkChair = "";
  23917. this.updateGroupArray = {};
  23918. this.dialogVisibleUpdateGroup = false;
  23919. this.getCourseDetail(2);
  23920. })
  23921. .catch(err => {
  23922. this.$message.error("网络不佳");
  23923. console.error(err);
  23924. });
  23925. },
  23926. deleteGroupChair(gindex) {
  23927. this.checkDeleteGroup = [];
  23928. this.deleteGroupUser = JSON.parse(
  23929. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  23930. );
  23931. this.deleteGroupArray = this.groupJson.group[gindex];
  23932. this.groupIndex = gindex;
  23933. this.dialogVisibleDeleteGroup = true;
  23934. },
  23935. async deleteChair() {
  23936. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  23937. const gid = this.groupStudent[this.toolindex][this.groupIndex][
  23938. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  23939. this.checkDeleteGroup[i]
  23940. )
  23941. ];
  23942. let params = [
  23943. {
  23944. gid: gid.id
  23945. }
  23946. ];
  23947. var a = await this.deleteChairA(params);
  23948. if (i == this.checkDeleteGroup.length - 1) {
  23949. this.$message.success("退出成功");
  23950. this.dialogVisibleDeleteGroup = false;
  23951. this.deleteGroupUser = [];
  23952. this.deleteGroupArray = {};
  23953. this.groupIndex = "";
  23954. this.checkDeleteGroup = [];
  23955. this.getCourseDetail(2);
  23956. }
  23957. }
  23958. },
  23959. deleteChairA(params) {
  23960. return new Promise((resolve, reject) => {
  23961. this.ajax
  23962. .post(this.$store.state.api + "exitGroup", params)
  23963. .then(res => {
  23964. resolve(1);
  23965. })
  23966. .catch(err => {
  23967. this.$message.error("网络不佳");
  23968. console.error(err);
  23969. });
  23970. });
  23971. },
  23972. contract(i) {
  23973. if (this.isCloseList[i].isClose == 0) {
  23974. this.isCloseList[i].isClose = 1;
  23975. } else {
  23976. this.isCloseList[i].isClose = 0;
  23977. }
  23978. this.$forceUpdate();
  23979. },
  23980. openWordCloud(toolindex) {
  23981. this.wordCloudData = '';
  23982. let array = [];
  23983. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  23984. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  23985. array.push({ name: works });
  23986. }
  23987. if (this.isGroup) {
  23988. for (var i = 0; i < this.courseGroup.group.length; i++) {
  23989. let works = this.courseGroup.group[i].works[toolindex];
  23990. for (var j = 0; j < works.length; j++) {
  23991. let answer = JSON.parse(works[j].works)[0].answer;
  23992. array.push({ name: answer });
  23993. }
  23994. }
  23995. }
  23996. let _result = ''
  23997. array.forEach(e=>{
  23998. _result +=e.name+','
  23999. })
  24000. this.wordCloudData = _result;
  24001. this.dialogVisibleWordCloud = true;
  24002. this.wordCloudKey += 1;
  24003. },
  24004. openTips(i) {
  24005. this.tipsIndex = i;
  24006. this.downDialogVisible = true;
  24007. },
  24008. uploadWorks() {
  24009. this.$confirm("确定导出作业吗?", "提示", {
  24010. confirmButtonText: "确定",
  24011. cancelButtonText: "取消",
  24012. type: "warning"
  24013. })
  24014. .then(() => {
  24015. const loading = this.$loading.service({
  24016. background: "rgba(255, 255, 255, 0.7)",
  24017. target: document.body,
  24018. text: "文件加载中..."
  24019. });
  24020. const _worksStudent = this.worksStudent;
  24021. let url = [];
  24022. var counts = {};
  24023. for (var l = 0; l < _worksStudent[i].length; l++) {
  24024. var item = _worksStudent[i][l];
  24025. var name = item.sName;
  24026. if (!counts.hasOwnProperty(name)) {
  24027. counts[name] = 0;
  24028. } else {
  24029. counts[name]++;
  24030. }
  24031. if (counts[name] > 0) {
  24032. item.sName += " (" + counts[name] + ")";
  24033. }
  24034. }
  24035. for (var l = 0; l < _worksStudent[i].length; l++) {
  24036. var item = _worksStudent[i][l];
  24037. if (
  24038. item.works.indexOf(
  24039. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24040. ) !== -1 &&
  24041. item.works.indexOf("img") === -1
  24042. ) {
  24043. url.push({ name: item.sName, url: item.works });
  24044. }
  24045. }
  24046. // var toolList = [
  24047. // { name: "电子白板", tool: 1 },
  24048. // { name: "思维导图", tool: 3 },
  24049. // { name: "协同文档", tool: 6 },
  24050. // { name: "思维网格", tool: 7 },
  24051. // { name: "素材库", tool: 8 },
  24052. // { name: "学习资料", tool: 17 },
  24053. // { name: "便签", tool: 2 },
  24054. // { name: "问卷调查", tool: 4 },
  24055. // { name: "选择题", tool: 45 },
  24056. // { name: "倒计时", tool: 10 },
  24057. // { name: "问答", tool: 15 },
  24058. // { name: "课程设计", tool: 26 },
  24059. // { name: "训练服务器", tool: 18 },
  24060. // { name: "作业提交", tool: 16 },
  24061. // { name: "批量上传", tool: 50 },
  24062. // { name: "AIoT Blockly", tool: 21 },
  24063. // { name: "AI Python", tool: 23 },
  24064. // { name: "AI Blockly", tool: 24 },
  24065. // { name: "目标管理", tool: 25 },
  24066. // { name: "数学画板", tool: 31 },
  24067. // { name: "翻译", tool: 28 },
  24068. // { name: "魔盒识字", tool: 37 },
  24069. // { name: "数学画板", tool: 31 },
  24070. // { name: "24点", tool: 38 },
  24071. // { name: "GeoGebra", tool: 39 },
  24072. // { name: "源码编辑", tool: 32 },
  24073. // { name: "个人评价", tool: 40 },
  24074. // { name: "选择匹配", tool: 41 },
  24075. // { name: "汉字宫", tool: 44 },
  24076. // { name: "排序", tool: 47 },
  24077. // { name: "表格", tool: 48 },
  24078. // { name: "文档", tool: 52 },
  24079. // { name: "学生分组", tool: 49 },
  24080. // { name: "CocoPi", tool: 57 },
  24081. // { name: "模拟驾驶", tool: 58 },
  24082. // { name: "路径搜索", tool: 59 },
  24083. // { name: "深度学习", tool: 60 },
  24084. // { name: "全历史", tool: 61 },
  24085. // { name: "交互视频", tool: 62 },
  24086. // { name: "海龟编程", tool: 63 },
  24087. // { name: "挑人", tool: 65 },
  24088. // { name: "公式编辑", tool: 66 },
  24089. // { name: "分子结构", tool: 67 },
  24090. // { name: "时间轴", tool: 68 },
  24091. // ];
  24092. // var toolName = "";
  24093. // for(var w = 0;w<toolList.length;w++){
  24094. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24095. // toolName = toolList[w].name;
  24096. // }
  24097. // }
  24098. console.log(url);
  24099. this.downLoadAll(url, loading);
  24100. })
  24101. .catch(() => {});
  24102. },
  24103. downLoadAll(url, loading) {
  24104. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24105. const zip = new JSZip();
  24106. const cache = {};
  24107. const promises = [];
  24108. data.forEach(item => {
  24109. const promise = getFile(item.url).then(data => {
  24110. if (data.data != 1) {
  24111. // 下载文件, 并存成ArrayBuffer对象
  24112. const file_name =
  24113. item.name +
  24114. "." +
  24115. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24116. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24117. cache[file_name] = data.data;
  24118. }
  24119. });
  24120. promises.push(promise);
  24121. });
  24122. Promise.all(promises).then(() => {
  24123. zip.generateAsync({ type: "blob" }).then(content => {
  24124. // 生成二进制流
  24125. FileSaver.saveAs(
  24126. content,
  24127. this.courseDetail.title + "-" + "作业提交工具.zip"
  24128. ); // 利用file-saver保存文件 自定义文件名
  24129. setTimeout(() => {
  24130. loading.close();
  24131. }, 2000);
  24132. });
  24133. });
  24134. },
  24135. pickStudent(stu) {
  24136. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24137. return;
  24138. }
  24139. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24140. confirmButtonText: "确定",
  24141. cancelButtonText: "取消",
  24142. type: "warning"
  24143. })
  24144. .then(() => {
  24145. let params = [
  24146. {
  24147. uid: stu.userid,
  24148. cid: this.id,
  24149. stage: this.courseType,
  24150. task: this.taskCount,
  24151. tool: this.toolindex
  24152. }
  24153. ];
  24154. this.ajax
  24155. .post(this.$store.state.api + "updateCoursePick", params)
  24156. .then(res => {
  24157. this.$message.success("操作成功");
  24158. this.getPick();
  24159. })
  24160. .catch(err => {
  24161. this.$message.error("网络不佳");
  24162. console.error(err);
  24163. });
  24164. })
  24165. .catch(() => {});
  24166. },
  24167. selectUser() {
  24168. let params = {
  24169. userid: this.userid
  24170. };
  24171. this.ajax
  24172. .get(this.$store.state.api + "selectUser", params)
  24173. .then(res => {
  24174. this.userMes = res.data[0];
  24175. })
  24176. .catch(err => {
  24177. console.error(err);
  24178. });
  24179. },
  24180. setEngText(i) {
  24181. this.newEngIndex = i;
  24182. this.$forceUpdate();
  24183. },
  24184. addCorrect() {
  24185. this.$confirm("你确定提交批改嘛?", "提示", {
  24186. confirmButtonText: "确定",
  24187. showCancelButton: false,
  24188. closeOnClickModal: false,
  24189. type: "warning"
  24190. })
  24191. .then(() => {
  24192. let params = {
  24193. cid: this.id,
  24194. s: parseInt(this.courseType),
  24195. t: this.taskCount,
  24196. tool: this.toolindex,
  24197. wid: this.engWid,
  24198. c: this.userid,
  24199. w:
  24200. this.userMes[0].type == 2
  24201. ? JSON.parse(this.newEnglishList)
  24202. : this.newEngIndex == -1 &&
  24203. this.isNoUserid == true &&
  24204. this.newEnglishList1.length
  24205. ? JSON.stringify(this.oldEnglishJson1)
  24206. : this.newEngIndex == -1
  24207. ? JSON.stringify(this.newEnglishList)
  24208. : this.newEngIndex > -1 && this.newEnglishList1.length > 0
  24209. ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork)
  24210. : ""
  24211. };
  24212. this.ajax
  24213. .get(this.$store.state.api + "addEngC", params)
  24214. .then(res => {
  24215. this.$message.success("提交成功");
  24216. this.engUpdateDialogVisible = false;
  24217. })
  24218. .catch(err => {
  24219. console.error(err);
  24220. });
  24221. })
  24222. .catch(() => {});
  24223. },
  24224. selectEngC(id, z) {
  24225. let params = {
  24226. workid: id
  24227. };
  24228. this.ajax
  24229. .get(this.$store.state.api + "selectEngC", params)
  24230. .then(res => {
  24231. if (res.data[0].length == 0) {
  24232. this.newEnglishList.engTitle = z.engTitle;
  24233. this.newEnglishList.engText = z.engText;
  24234. } else {
  24235. var a = res.data[0];
  24236. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24237. if (this.userMes[0].type == 2) {
  24238. var snum = 0;
  24239. for (var i = 0; i < a.length; i++) {
  24240. if (this.userMes[0].userid == a[i].correct) {
  24241. this.newEnglishList = JSON.parse(a[i].cWork);
  24242. snum = 1;
  24243. }
  24244. }
  24245. if (snum == 0) {
  24246. this.newEnglishList = { engTitle: "", engText: "" };
  24247. this.newEnglishList.engTitle = z.engTitle;
  24248. this.newEnglishList.engText = z.engText;
  24249. }
  24250. } else if (this.userMes[0].type == 1) {
  24251. var num = 0;
  24252. for (var w = 0; w < a.length; w++) {
  24253. if (this.userMes[0].userid == a[w].correct) {
  24254. num = 1;
  24255. }
  24256. }
  24257. if (num == 0) {
  24258. this.isNoUserid = true;
  24259. var c = JSON.parse(JSON.stringify(z));
  24260. this.oldEnglishJson1 = c;
  24261. } else {
  24262. this.isNoUserid = false;
  24263. }
  24264. var b = a.sort((item, index) => {
  24265. console.log(item);
  24266. if (item.correct === this.userMes[0].userid) {
  24267. return -1; // 将a移到前面
  24268. } else if (index.correct === this.userMes[0].userid) {
  24269. return 1; // 将b移到前面
  24270. } else {
  24271. return 0; // 保持默认顺序
  24272. }
  24273. });
  24274. for (var p = 0; p < b.length; p++) {
  24275. for (var y = 0; y < ppp.length; y++) {
  24276. if (b[p].id == ppp[y].id) {
  24277. b[p].cWork = JSON.parse(ppp[y].cWork);
  24278. break;
  24279. }
  24280. }
  24281. }
  24282. this.newEnglishList1 = b;
  24283. }
  24284. }
  24285. this.greyType = false;
  24286. setTimeout(() => {
  24287. this.topHeight = document.querySelectorAll(
  24288. ".engUpTop"
  24289. )[0].offsetHeight;
  24290. if (this.newEnglishList1.length > 0) {
  24291. if (this.isNoUserid == true) {
  24292. this.engListLength = this.newEnglishList1.length + 1;
  24293. this.newEngIndex = -1;
  24294. } else {
  24295. this.engListLength = this.newEnglishList1.length;
  24296. this.newEngIndex = 0;
  24297. }
  24298. }
  24299. if (this.userMes[0].type == 2) {
  24300. this.correctWord = Diff.diffWordsWithSpace(
  24301. this.oldEnglishJson.engText,
  24302. this.newEnglishList.engText
  24303. );
  24304. } else if (
  24305. this.newEngIndex == -1 &&
  24306. this.isNoUserid == true &&
  24307. this.newEnglishList1.length
  24308. ) {
  24309. this.correctWord = Diff.diffWordsWithSpace(
  24310. this.oldEnglishJson.engText,
  24311. this.oldEnglishJson1.engText
  24312. );
  24313. } else if (this.newEngIndex == -1) {
  24314. this.correctWord = Diff.diffWordsWithSpace(
  24315. this.oldEnglishJson.engText,
  24316. this.newEnglishList.engText
  24317. );
  24318. } else if (
  24319. this.newEngIndex > -1 &&
  24320. this.newEnglishList1.length > 0
  24321. ) {
  24322. this.correctWord = Diff.diffWordsWithSpace(
  24323. this.oldEnglishJson.engText,
  24324. this.newEnglishList1[this.newEngIndex].cWork.engText
  24325. );
  24326. }
  24327. }, 500);
  24328. this.engUpdateDialogVisible = true;
  24329. this.$forceUpdate();
  24330. })
  24331. .catch(err => {
  24332. console.error(err);
  24333. });
  24334. },
  24335. getPick() {
  24336. let params = {
  24337. cid: this.id
  24338. };
  24339. this.ajax
  24340. .get(this.$store.state.api + "getPick", params)
  24341. .then(res => {
  24342. let array = [];
  24343. for (var i = 0; i < res.data[0].length; i++) {
  24344. array.push(res.data[0][i].userid);
  24345. }
  24346. this.isPickStudent = array;
  24347. if (array.indexOf(this.userid) !== -1) {
  24348. this.$confirm("你被老师选到啦!", "提示", {
  24349. confirmButtonText: "确定",
  24350. showCancelButton: false,
  24351. closeOnClickModal: false,
  24352. type: "warning"
  24353. })
  24354. .then(() => {
  24355. let pa = [
  24356. {
  24357. uid: this.userid,
  24358. cid: this.id
  24359. }
  24360. ];
  24361. this.ajax
  24362. .post(this.$store.state.api + "deletePick", pa)
  24363. .then(res => {
  24364. this.getPick();
  24365. })
  24366. .catch(err => {
  24367. this.$message.error("网络不佳");
  24368. console.error(err);
  24369. });
  24370. })
  24371. .catch(() => {});
  24372. }
  24373. })
  24374. .catch(err => {
  24375. this.$message.error("网络不佳");
  24376. console.error(err);
  24377. });
  24378. },
  24379. foldEva() {
  24380. if (
  24381. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24382. this.taskCount
  24383. ].isEvaFold2
  24384. ) {
  24385. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24386. this.taskCount
  24387. ].isEvaFold2 = false;
  24388. } else {
  24389. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24390. this.taskCount
  24391. ].isEvaFold2 = true;
  24392. setTimeout(() => {
  24393. this.checkEva();
  24394. setTimeout(() => {
  24395. this.checkEva();
  24396. }, 500);
  24397. }, 0);
  24398. }
  24399. this.$forceUpdate();
  24400. },
  24401. panToolHeight(tool) {
  24402. var _tool = document.querySelectorAll("#" + tool)[0];
  24403. var _toolA = _tool ? _tool.offsetHeight : 0;
  24404. var _toolC = 0;
  24405. var _toolC =
  24406. _tool && _tool.children && _tool.children[0]
  24407. ? _tool.children[0].offsetHeight + 50
  24408. : 0;
  24409. let boolean2 = _toolA > _toolC ? true : false;
  24410. this.isCloseList[tool.split("-")[1]].isCloseBoolean = boolean2;
  24411. this.$forceUpdate();
  24412. },
  24413. async checkLink(url) {
  24414. // console.log(url)
  24415. let _url = url;
  24416. try {
  24417. const response = await fetch(url);
  24418. if (!response.ok) {
  24419. _url = await this.checkLink(
  24420. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24421. encodeURIComponent(
  24422. _url.split(
  24423. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/"
  24424. )[1]
  24425. )
  24426. );
  24427. }
  24428. // console.log(response.ok)
  24429. } catch (error) {
  24430. console.error("Error checking link:", error);
  24431. // console.log(false)
  24432. _url = await this.checkLink(
  24433. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24434. encodeURIComponent(
  24435. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24436. )
  24437. );
  24438. }
  24439. // console.log(_url)
  24440. return _url;
  24441. },
  24442. setClassRoomHelperWidth(width) {
  24443. this.classRoomHelperWidth = width;
  24444. },
  24445. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  24446. this.$refs.choseWorksDetailDialogRef.open({
  24447. toolType:tooc,
  24448. tType: this.tType,
  24449. toolIndex: toolIndex
  24450. });
  24451. this.changeSplitScreenBehavior({
  24452. code: 1,
  24453. form: {
  24454. toolType:tooc,
  24455. toolIndex: toolIndex,
  24456. courseType: this.courseType,
  24457. taskCount: this.taskCount,
  24458. type: 0
  24459. }
  24460. });
  24461. },
  24462. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24463. this.$refs.statisticalAnalysisRef.open({
  24464. worksStudent: this.worksStudent[toolIndex],
  24465. tType: this.tType,
  24466. toolIndex: toolIndex
  24467. });
  24468. this.changeSplitScreenBehavior({
  24469. code: 2,
  24470. form: {
  24471. toolType:4,
  24472. courseType: this.courseType,
  24473. taskCount: this.taskCount,
  24474. toolIndex: toolIndex,
  24475. type: 0
  24476. }
  24477. });
  24478. },
  24479. statisticalAnalysisRefresh(toolIndex) {
  24480. this.$refs.statisticalAnalysisRef.refreshData({
  24481. worksStudent: this.worksStudent[toolIndex],
  24482. tType: this.tType,
  24483. toolIndex: toolIndex
  24484. });
  24485. },
  24486. async splitScreenBehavior(type = 0) {
  24487. // return;
  24488. if (this.splitScreenData.loading)
  24489. return this.$message.info("操作过快,请稍等");
  24490. if (type == 0) {
  24491. //关闭分屏
  24492. this.splitScreenData.isOpen = false;
  24493. // this.splitScreenData.userId = "";
  24494. // this.splitScreenData.uid = "";
  24495. this.splitScreenData.behavior = null;
  24496. await this.updateSplitScreenData(1);
  24497. this.$message.success("已关闭分屏模式");
  24498. this.studentFreePreview(false);
  24499. this.OpenJobPreview(false);
  24500. // this.followingMode(false);
  24501. } else if (type == 1) {
  24502. //开启分屏
  24503. this.splitScreenData.isOpen = true;
  24504. this.splitScreenData.userId = this.userid;
  24505. this.splitScreenData.uid = this.splitScreenData.myUid;
  24506. this.splitScreenData.behavior = null;
  24507. let status = await this.updateSplitScreenData(0);
  24508. if (status == 1) {
  24509. this.$message.success("已开启分屏");
  24510. this.studentFreePreview(true);
  24511. this.OpenJobPreview(true);
  24512. this.changeSplitScreenBehavior({form:{}})
  24513. // this.followingMode(true);
  24514. } else {
  24515. this.splitScreenData.isOpen = false;
  24516. this.splitScreenData.userId = "";
  24517. this.splitScreenData.uid = "";
  24518. this.splitScreenData.behavior = null;
  24519. this.$message.success("分屏开启失败");
  24520. }
  24521. }
  24522. },
  24523. enterFullScreen() {
  24524. let element = document.documentElement;
  24525. if (element.requestFullscreen) {
  24526. element.requestFullscreen();
  24527. } else if (element.mozRequestFullScreen) { /* Firefox */
  24528. element.mozRequestFullScreen();
  24529. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  24530. element.webkitRequestFullscreen();
  24531. } else if (element.msRequestFullscreen) { /* IE/Edge */
  24532. element.msRequestFullscreen();
  24533. }
  24534. },
  24535. exitFullScreen() {
  24536. if (document.exitFullscreen) {
  24537. document.exitFullscreen();
  24538. } else if (document.mozCancelFullScreen) { /* Firefox */
  24539. document.mozCancelFullScreen();
  24540. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  24541. document.webkitExitFullscreen();
  24542. } else if (document.msExitFullscreen) { /* IE/Edge */
  24543. document.msExitFullscreen();
  24544. }
  24545. },
  24546. confirmOpen(){
  24547. this.splitScreenData.isOpen = true;
  24548. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  24549. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  24550. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  24551. this.confirmOpenDig = false
  24552. if (!document.fullscreenElement) {
  24553. this.enterFullScreen();
  24554. }
  24555. if (this.timer2) {
  24556. clearInterval(this.timer2);
  24557. this.timer2 = null;
  24558. console.log('清除定时器');
  24559. }
  24560. this.timer2 = setInterval(()=> {
  24561. this.getSplitScreenData();//获取分屏数据
  24562. }, 1000);
  24563. this.$message.success("分屏模式已开启");
  24564. },
  24565. getSplitScreenData() {
  24566. // return;
  24567. // if (this.tType != 1) return;
  24568. let params = {
  24569. cid: this.id
  24570. };
  24571. this.ajax
  24572. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  24573. .then(async res => {
  24574. let data = res.data[0][0]["splitScreenData"];
  24575. console.log("获取了分屏数:", data);
  24576. if (data) {
  24577. data = JSON.parse(data);
  24578. if (
  24579. !this.splitScreenData.isOpen &&
  24580. data.isOpen &&
  24581. this.splitScreenData.myUid == data.uid
  24582. ) {
  24583. this.splitScreenData.isOpen = false;
  24584. this.splitScreenData.userId = "";
  24585. this.splitScreenData.uid = "";
  24586. this.splitScreenData.behavior = null;
  24587. await this.updateSplitScreenData(1);
  24588. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  24589. this.confirmOpenDig = true
  24590. this.confirmOpenDigData = data
  24591. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  24592. this.splitScreenData.isOpen = false;
  24593. this.splitScreenData.userId = "";
  24594. this.splitScreenData.uid = "";
  24595. this.splitScreenData.behavior = null;
  24596. this.$message.error("已结束分屏模式");
  24597. } else if (this.splitScreenData.isOpen && data.isOpen) {
  24598. this.splitScreenData.isOpen = true;
  24599. this.splitScreenData.uid = data.uid;
  24600. this.splitScreenData.userId = data.userId;
  24601. this.splitScreenData.behavior = data.behavior;
  24602. }
  24603. this.doSplitScreenBehavior();
  24604. } else {
  24605. if (this.splitScreenData.isOpen) {
  24606. this.splitScreenData.isOpen = false;
  24607. this.splitScreenData.userId = "";
  24608. this.splitScreenData.uid = "";
  24609. this.splitScreenData.behavior = null;
  24610. this.$message.error("已结束分屏模式");
  24611. if (this.timer2) {
  24612. clearInterval(this.timer2);
  24613. this.timer2 = null;
  24614. }
  24615. this.timer2 = setInterval(()=> {
  24616. this.getSplitScreenData();//获取分屏数据
  24617. }, 5000);
  24618. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  24619. confirmButtonText: '确定', //确认按钮的文字
  24620. showCancelButton: false, //是否显示取消按钮
  24621. showClose: false, //是否显示关闭按钮
  24622. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  24623. type: "warning",
  24624. })
  24625. .then(() => {
  24626. if (document.fullscreenElement) {
  24627. this.exitFullScreen();
  24628. }
  24629. })
  24630. .catch(() => {});
  24631. }
  24632. }
  24633. })
  24634. .catch(e => {
  24635. console.log("获取分屏数出错:", e);
  24636. });
  24637. },
  24638. doSplitScreenBehavior() {
  24639. if (
  24640. this.splitScreenData.isOpen &&
  24641. this.splitScreenData.uid != this.splitScreenData.myUid
  24642. ) {
  24643. let behavior = this.splitScreenData.behavior;
  24644. if (behavior) {
  24645. if (behavior.code === 99) {
  24646. //初始化
  24647. this.fullDialogVisible = false;
  24648. if(this.$refs.choseWorksDetailDialogRef.show){
  24649. this.$refs.choseWorksDetailDialogRef.close();
  24650. }
  24651. if(this.$refs.statisticalAnalysisRef.show){
  24652. this.$refs.statisticalAnalysisRef.close();
  24653. }
  24654. }
  24655. if (behavior.code === 0) {
  24656. //开启内容列表弹窗
  24657. this.checkFileFull1(behavior.form.t, behavior.form.f);
  24658. }else{
  24659. this.fullDialogVisible = false;
  24660. }
  24661. if (behavior.code === 1) {
  24662. //关于选择题的作业详细的操作
  24663. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  24664. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  24665. this.courseType = behavior.form.courseType;
  24666. this.taskCount = behavior.form.taskCount;
  24667. }
  24668. this.$nextTick(() => {
  24669. if (this.$refs.choseWorksDetailDialogRef.show) {
  24670. //已经打开了
  24671. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  24672. } else {
  24673. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  24674. }
  24675. });
  24676. }else{
  24677. this.$refs.choseWorksDetailDialogRef.close()
  24678. }
  24679. if(behavior.code === 2){
  24680. if(this.$refs.statisticalAnalysisRef.show){
  24681. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  24682. }else{
  24683. this.$refs.statisticalAnalysisRef.open({
  24684. worksStudent: this.worksStudent[behavior.form.toolIndex],
  24685. tType: this.tType,
  24686. toolIndex: behavior.form.toolIndex
  24687. });
  24688. }
  24689. }else{
  24690. this.$refs.statisticalAnalysisRef.close();
  24691. }
  24692. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  24693. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  24694. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  24695. if (behavior.form.courseType != this.courseType ||
  24696. behavior.form.taskCount != this.taskCount ||
  24697. behavior.form.toolType != this.toolindex
  24698. ) {
  24699. var a = document.scrollingElement;
  24700. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  24701. if (target) {
  24702. target.scrollIntoView(true);
  24703. setTimeout(()=>{
  24704. let scrollBody = document.querySelector('.body_student').parentElement
  24705. scrollBody.scrollTop = scrollBody.scrollTop - 100
  24706. }, 0);
  24707. // setTimeout(() => {
  24708. // a.scrollTop = 0
  24709. // }, 0);
  24710. }
  24711. }
  24712. if(this.courseType !=behavior.form.courseType){
  24713. this.courseType = behavior.form.courseType;
  24714. }
  24715. if(this.taskCount !=behavior.form.taskCount){
  24716. this.taskCount = behavior.form.taskCount;
  24717. }
  24718. if(this.toolindex != behavior.form.toolType){
  24719. this.toolindex = behavior.form.toolType;
  24720. }
  24721. // if(behavior.form.navId){
  24722. // this.navId = behavior.form.navId
  24723. // }
  24724. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  24725. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  24726. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  24727. this.getCourseDetail()
  24728. }
  24729. this.setContent2(false)
  24730. }
  24731. } else {
  24732. }
  24733. }
  24734. },
  24735. updateSplitScreenData(empty = 0) {
  24736. return new Promise(resolve => {
  24737. if(this.userid!==this.courseDetail.userid){
  24738. if(!this.courseDetail.userid){
  24739. return setTimeout(()=>{
  24740. this.updateSplitScreenData(empty)
  24741. },2000)
  24742. }
  24743. return;
  24744. };
  24745. if (
  24746. this.splitScreenData.uid == this.splitScreenData.myUid &&
  24747. this.splitScreenData.userId == this.userid
  24748. ) {
  24749. this.splitScreenData.loading = true;
  24750. let params = [
  24751. {
  24752. cid: this.id,
  24753. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  24754. }
  24755. ];
  24756. this.ajax
  24757. .post(
  24758. this.$store.state.api + "update_courseSplitScreenData",
  24759. params
  24760. )
  24761. .then(res => {
  24762. this.splitScreenData.loading = false;
  24763. if (res.data == 1) {
  24764. resolve(1);
  24765. console.log("修改分屏数据成功");
  24766. }
  24767. })
  24768. .catch(e => {
  24769. this.splitScreenData.loading = false;
  24770. console.log("修改分屏数据失败", e);
  24771. resoleve(0);
  24772. });
  24773. } else if (empty == 2 && this.tType == 1) {
  24774. let params = [
  24775. {
  24776. cid: this.id,
  24777. nData: ""
  24778. }
  24779. ];
  24780. return this.ajax
  24781. .post(
  24782. this.$store.state.api + "update_courseSplitScreenData",
  24783. params
  24784. )
  24785. .then(_ => resolve(1))
  24786. .catch(_ => resolve(0));
  24787. } else {
  24788. return resolve(0);
  24789. }
  24790. });
  24791. },
  24792. changeSplitScreenBehavior(newValue) {
  24793. if (
  24794. this.splitScreenData.isOpen &&
  24795. this.splitScreenData.uid == this.splitScreenData.myUid
  24796. ) {
  24797. let _behavior = null;
  24798. if(!newValue){
  24799. _behavior = {}
  24800. }else{
  24801. _behavior = newValue
  24802. }
  24803. if(_behavior.form){
  24804. _behavior.form.taskCount = this.taskCount;
  24805. _behavior.form.courseType = this.courseType
  24806. }else{
  24807. _behavior.form = {
  24808. taskCount:this.taskCount,
  24809. courseType:this.courseType
  24810. }
  24811. }
  24812. this.splitScreenData.behavior = _behavior;
  24813. this.updateSplitScreenData(0);
  24814. }
  24815. },
  24816. studentFreePreview(flag) {
  24817. this.IsLookOpen = flag;
  24818. this.followingMode(flag)
  24819. this.updateLookOpen();
  24820. },
  24821. OpenJobPreview(flag) {
  24822. this.sIsOpen = flag;
  24823. this.updateSLook();
  24824. },
  24825. followingMode(flag) {
  24826. this.IsFollow = flag;
  24827. this.updateFollow();
  24828. }
  24829. },
  24830. directives: {
  24831. // 使用局部注册指令的方式
  24832. resize: {
  24833. // 指令的名称
  24834. bind(el, binding) {
  24835. // el为绑定的元素,binding为绑定给指令的对象
  24836. let width = "",
  24837. height = "";
  24838. function isReize() {
  24839. const style = document.defaultView.getComputedStyle(el);
  24840. if (width !== style.width || height !== style.height) {
  24841. binding.value(); // 关键
  24842. }
  24843. width = style.width;
  24844. height = style.height;
  24845. }
  24846. el.__vueSetInterval__ = setInterval(isReize, 300);
  24847. },
  24848. unbind(el) {
  24849. clearInterval(el.__vueSetInterval__);
  24850. }
  24851. },
  24852. autoHeight: {
  24853. update(el, binding) {
  24854. const { value } = binding;
  24855. if (value && typeof value === "number") {
  24856. el.style.height = `${value}px`;
  24857. } else {
  24858. el.style.height = "auto";
  24859. }
  24860. },
  24861. componentUpdated(el) {
  24862. el.style.height = `${el.scrollHeight + 5}px`;
  24863. }
  24864. }
  24865. },
  24866. beforeDestroy() {
  24867. window.onresize = null;
  24868. clearInterval(this.timer);
  24869. this.timer = null;
  24870. clearInterval(this.timer2);
  24871. this.timer2 = null;
  24872. clearInterval(this.opertimer);
  24873. this.opertimer = null;
  24874. this.updateSplitScreenData(1);
  24875. },
  24876. computed: {
  24877. getHeight() {
  24878. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24879. },
  24880. contentConvent() {
  24881. return function(c) {
  24882. return c
  24883. ? c
  24884. .replaceAll(/\r\n/g, "<br/>")
  24885. .replaceAll(/\n/g, "<br/>")
  24886. .replaceAll(/\s/g, " &nbsp")
  24887. : "";
  24888. };
  24889. },
  24890. commentRight() {
  24891. if (
  24892. !this.orgArray.includes(this.org) &&
  24893. !this.oidArray.includes(this.oid)
  24894. ) {
  24895. return "35px";
  24896. }
  24897. return `calc(${this.classRoomHelperWidth} + 5px)`;
  24898. // if(this.$refs["classRoomHelperRef"].type==0){
  24899. // return "100px";
  24900. // }else if(this.$refs["classRoomHelperRef"].type==1){
  24901. // return "502px"
  24902. // }else{
  24903. // return "0px"
  24904. // }
  24905. },
  24906. checkUpload() {
  24907. return function() {
  24908. var studentK = [];
  24909. if (this.plworkFile.length > 0) {
  24910. for (var z = 0; z < this.plworkFile.length; z++) {
  24911. studentK.push(this.plworkFile[z].username);
  24912. }
  24913. studentK = studentK.join(",");
  24914. }
  24915. var a = this.uploadStudentJuri.filter(el => {
  24916. return studentK.indexOf(el.userid) == -1;
  24917. });
  24918. return a;
  24919. };
  24920. },
  24921. getSName() {
  24922. return function(name) {
  24923. var check = name;
  24924. this.uploadStudentJuri.forEach(el => {
  24925. if (el.userid == check) {
  24926. check = el.name ? el.name : el.username;
  24927. }
  24928. });
  24929. return check;
  24930. };
  24931. },
  24932. getImgList() {
  24933. return function(val) {
  24934. let srcList = []; // 定义一个数组用来接收后面的img地址
  24935. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function(
  24936. match,
  24937. capture
  24938. ) {
  24939. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  24940. srcList.push(capture);
  24941. });
  24942. return srcList;
  24943. };
  24944. },
  24945. retrnToolHeight() {
  24946. return function(tool) {
  24947. var _tool = document.querySelectorAll("#" + tool)[0];
  24948. return _tool
  24949. ? document.querySelectorAll("#" + tool)[0].children[0].offsetHeight +
  24950. 30 +
  24951. "px"
  24952. : 0;
  24953. };
  24954. },
  24955. Correct() {
  24956. return function(c) {
  24957. let w = "";
  24958. let a = this.correctWord;
  24959. for (var k = 0; k < a.length; k++) {
  24960. //diffWordsWithSpace
  24961. if (a.length > 1) {
  24962. if (a[k].added == true) {
  24963. w +=
  24964. '<span style="background-color: green;color:#fff">' +
  24965. a[k].value +
  24966. "</span>";
  24967. } else if (a[k].removed == true) {
  24968. w +=
  24969. '<span style="text-decoration: line-through;color:red">' +
  24970. a[k].value +
  24971. "</span>";
  24972. } else {
  24973. w += "<span>" + a[k].value + "</span>";
  24974. }
  24975. } else {
  24976. w = c;
  24977. }
  24978. //diffChars方法
  24979. // if(w == ""){
  24980. // if(a.length > 1){
  24981. // if(a[k].added == true){
  24982. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24983. // }else if(a[k].removed == true){
  24984. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24985. // }
  24986. // }else{
  24987. // w = c
  24988. // }
  24989. // }else{
  24990. // if(k == a.length - 1){
  24991. // if(a[k].added == true){
  24992. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24993. // }else if(a[k].removed == true){
  24994. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24995. // }
  24996. // }else{
  24997. // if(a[k].added == true){
  24998. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24999. // }else if(a[k].removed == true){
  25000. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25001. // }
  25002. // }
  25003. // }
  25004. }
  25005. c = w;
  25006. return c;
  25007. };
  25008. },
  25009. getScoreList() {
  25010. let params = {
  25011. cid: this.id
  25012. };
  25013. this.ajax
  25014. .get(this.$store.state.api + "selectTestCourseByCid", params)
  25015. .then(res => {
  25016. let result = res.data;
  25017. this.scoreList.datalist = result[0];
  25018. this.scoreList.isScoreList = result[1];
  25019. })
  25020. .catch(err => {
  25021. console.error(err);
  25022. });
  25023. }
  25024. },
  25025. mounted() {
  25026. this.updateSplitScreenData(2);
  25027. this.splitScreenData.myUid = uuidv4();
  25028. document.body.addEventListener("click", e => {
  25029. if (this.isUpdateToolDetail1) {
  25030. this.updateToolDetail(this.toolDetailIndex);
  25031. }
  25032. });
  25033. if (this.screenType == 2) {
  25034. window.parent.postMessage({ allScreen: 4 }, "*");
  25035. } else if (this.screenType == 3) {
  25036. window.parent.postMessage({ allScreen: 5 }, "*");
  25037. } else if (this.screenType == 1) {
  25038. window.parent.postMessage({ allScreen: 6 }, "*");
  25039. }
  25040. this.setOperationTime();
  25041. this.selectEva();
  25042. this.getCourseDetail();
  25043. this.selectCount();
  25044. this.getHomeWork();
  25045. this.selectUser();
  25046. this.getAIJ();
  25047. this.contentDialog = true;
  25048. this.setContent2(true);
  25049. if (this.tType == 4) {
  25050. this.pzDialog = true;
  25051. this.selectPz();
  25052. }
  25053. // 获取评分列表
  25054. this.getScoreList();
  25055. document.scrollingElement.scrollTop = 0;
  25056. window.addEventListener("resize", () => {
  25057. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25058. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25059. if (this.showType == 2 || this.showType == 3) {
  25060. document.getElementsByClassName("navBox")[0].style.height =
  25061. a - 40 + 0 + "px";
  25062. } else {
  25063. document.getElementsByClassName("navBox")[0].style.height =
  25064. a - 40 + "px";
  25065. }
  25066. });
  25067. let _this = this;
  25068. setTimeout(() => {
  25069. // _this.vedioTime = [];
  25070. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25071. // _this.vedioTime[i] = document.getElementsByClassName(
  25072. // "vjs-duration-display"
  25073. // )[i].textContent;
  25074. // }
  25075. }, 1000);
  25076. }
  25077. };
  25078. </script>
  25079. <style scoped>
  25080. @media screen and (max-width: 1280px) {
  25081. /* .courseIndex > div:first-child(2) {
  25082. width: 15% !important;
  25083. } */
  25084. /* .navText {
  25085. width: 120px !important;
  25086. } */
  25087. .evaCss {
  25088. flex-direction: column !important;
  25089. align-items: center !important;
  25090. }
  25091. .elist_input {
  25092. width: 90% !important;
  25093. }
  25094. .dialog_diy1 >>> .el-dialog {
  25095. width: 100% !important;
  25096. }
  25097. .rightWidthCss {
  25098. width: 100% !important;
  25099. }
  25100. .dialog_diy3 >>> .el-dialog {
  25101. width: 100% !important;
  25102. }
  25103. .addToolCss {
  25104. right: 0 !important;
  25105. width: 100% !important;
  25106. min-width: unset !important;
  25107. }
  25108. }
  25109. .evaCssMax {
  25110. flex-direction: column !important;
  25111. align-items: center !important;
  25112. }
  25113. .dialog_diy >>> .el-dialog {
  25114. margin-top: 10vh !important;
  25115. }
  25116. .body_student {
  25117. width: 77%;
  25118. height: 100%;
  25119. position: absolute;
  25120. left: 22%;
  25121. top: 0;
  25122. }
  25123. .student_head {
  25124. width: 100%;
  25125. margin: 20px auto 0;
  25126. padding-bottom: 20px;
  25127. display: flex;
  25128. flex-direction: column;
  25129. flex-wrap: nowrap;
  25130. align-items: flex-start;
  25131. justify-content: flex-start;
  25132. }
  25133. .pb_left {
  25134. width: 20%;
  25135. margin-right: 10px;
  25136. background: rgb(255, 255, 255);
  25137. position: fixed;
  25138. height: calc(100% - 40px);
  25139. border-radius: 20px;
  25140. padding-bottom: 15px;
  25141. box-sizing: border-box;
  25142. }
  25143. .wheel > img,
  25144. .project > img,
  25145. .star > img,
  25146. .evaluate > img,
  25147. .up_photo > img,
  25148. .chapter_add > img,
  25149. .deleteWord > img,
  25150. .question > img,
  25151. .homework > img {
  25152. width: 100%;
  25153. height: 100%;
  25154. }
  25155. .upCover > img {
  25156. width: 131px;
  25157. height: 69px;
  25158. object-fit: cover;
  25159. }
  25160. .upCover {
  25161. width: calc(100% / 3.5);
  25162. position: relative;
  25163. margin: 0 15px 10px 0;
  25164. display: flex;
  25165. flex-direction: column;
  25166. flex-wrap: nowrap;
  25167. justify-content: center;
  25168. align-content: center;
  25169. align-items: center;
  25170. height: fit-content;
  25171. }
  25172. .upCover2 {
  25173. width: 100%;
  25174. position: relative;
  25175. margin: 0 15px 10px 0;
  25176. display: flex;
  25177. flex-direction: column;
  25178. flex-wrap: nowrap;
  25179. justify-content: center;
  25180. align-content: center;
  25181. align-items: center;
  25182. }
  25183. .upCover2 > img {
  25184. width: 100%;
  25185. height: 90px;
  25186. object-fit: contain;
  25187. }
  25188. .chapter_add {
  25189. width: 120px;
  25190. position: relative;
  25191. text-align: center;
  25192. }
  25193. .isAddThings {
  25194. margin-top: 20px;
  25195. position: relative;
  25196. text-align: center;
  25197. background: #f7f8fa;
  25198. height: 90px;
  25199. width: 90px;
  25200. display: flex;
  25201. flex-direction: column;
  25202. justify-content: center;
  25203. }
  25204. .deleteWord {
  25205. width: 22px;
  25206. height: 22px;
  25207. position: absolute;
  25208. right: -5px;
  25209. top: -5px;
  25210. cursor: pointer;
  25211. }
  25212. .box_course {
  25213. /* width: 60%; */
  25214. width: calc(100% - 300px);
  25215. }
  25216. .wheel {
  25217. width: 100%;
  25218. /* height: 100%; */
  25219. height: 650px;
  25220. }
  25221. .right_box {
  25222. display: flex;
  25223. flex-direction: column;
  25224. margin-left: 30px;
  25225. justify-content: space-around;
  25226. }
  25227. .right_box_title {
  25228. font-size: 23px;
  25229. }
  25230. .people {
  25231. display: flex;
  25232. }
  25233. .student_body {
  25234. width: 100%;
  25235. margin: 0 auto;
  25236. margin-top: 10px;
  25237. padding: 0 0 20px;
  25238. }
  25239. .study_top {
  25240. margin-top: 100px;
  25241. width: 100%;
  25242. height: auto;
  25243. padding-bottom: 20px;
  25244. margin-left: 2px;
  25245. min-height: 90%;
  25246. }
  25247. .study_top .checkbox {
  25248. display: flex;
  25249. align-items: center;
  25250. padding: 15px 0 15px 30px;
  25251. flex: 0 0 auto;
  25252. font-weight: bold;
  25253. border-bottom: 1px solid #eee;
  25254. }
  25255. .study_top .check {
  25256. padding-bottom: 5px;
  25257. text-align: center;
  25258. cursor: pointer;
  25259. height: 30px;
  25260. box-sizing: border-box;
  25261. display: flex;
  25262. }
  25263. .study_top .checked {
  25264. border-bottom: 4px solid #3fc6a0;
  25265. padding-bottom: 5px;
  25266. color: #3fc6a0;
  25267. display: flex;
  25268. height: 35px;
  25269. }
  25270. .study_top .checked > div,
  25271. .study_top .check > div {
  25272. margin-right: 5px;
  25273. }
  25274. .videoTop {
  25275. display: flex;
  25276. flex-direction: row;
  25277. justify-content: space-between;
  25278. background: #fff;
  25279. align-items: center;
  25280. width: 95%;
  25281. padding: 20px;
  25282. }
  25283. .filebox {
  25284. display: flex;
  25285. flex-wrap: wrap;
  25286. flex-direction: column;
  25287. padding: 0 0 5px;
  25288. position: relative;
  25289. }
  25290. .filebox:before {
  25291. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25292. position: absolute;
  25293. top: 20px;
  25294. left: 13px;
  25295. border-left: 2px dotted #cad1dc;
  25296. height: calc(100% - 15px);
  25297. }
  25298. .toolHeng2 > div:last-child::before {
  25299. height: calc(100% - 43px);
  25300. }
  25301. .filebox .tooldetail {
  25302. width: calc(100%);
  25303. margin: 0px 12px;
  25304. padding: 12px;
  25305. line-height: 30px;
  25306. word-break: break-word;
  25307. background: #ffffff;
  25308. border-radius: 8px 8px 8px 8px;
  25309. opacity: 1;
  25310. border: 1px solid #cad1dc;
  25311. overflow: hidden;
  25312. box-sizing: border-box;
  25313. }
  25314. .file {
  25315. display: flex;
  25316. flex-direction: column;
  25317. align-items: center;
  25318. justify-content: center;
  25319. cursor: pointer;
  25320. width: 200px;
  25321. }
  25322. .file div {
  25323. margin-top: 10px;
  25324. width: 150px;
  25325. text-align: center;
  25326. overflow: hidden;
  25327. white-space: nowrap;
  25328. text-overflow: ellipsis;
  25329. }
  25330. .media {
  25331. display: flex;
  25332. flex-direction: column;
  25333. align-items: center;
  25334. justify-content: center;
  25335. margin: 0 20px 20px 0;
  25336. cursor: pointer;
  25337. margin: 12px 0 5px 15px;
  25338. overflow: hidden;
  25339. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25340. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25341. box-sizing: border-box;
  25342. }
  25343. .media img {
  25344. height: 90px;
  25345. width: 160px;
  25346. object-fit: cover;
  25347. }
  25348. .media .title {
  25349. padding: 5px;
  25350. text-align: left;
  25351. width: 100%;
  25352. box-sizing: border-box;
  25353. }
  25354. .media .btn {
  25355. width: 100%;
  25356. height: 35px;
  25357. line-height: 35px;
  25358. color: #fff;
  25359. background: #606060;
  25360. text-align: center;
  25361. overflow: hidden;
  25362. white-space: nowrap;
  25363. text-overflow: ellipsis;
  25364. }
  25365. .detail_content_top {
  25366. width: 100%;
  25367. padding: 25px 0 25px 0;
  25368. }
  25369. .detail_title {
  25370. text-align: center;
  25371. font-size: 24px;
  25372. }
  25373. .detail_time {
  25374. font-size: 13px;
  25375. padding: 15px 0 0 40px;
  25376. }
  25377. .detail_content {
  25378. line-height: 2pc;
  25379. width: 90%;
  25380. margin: 0 auto;
  25381. padding-top: 30px;
  25382. text-indent: 30px;
  25383. overflow: auto;
  25384. height: 200px;
  25385. }
  25386. .score_box >>> .el-rate {
  25387. margin-left: 10px;
  25388. }
  25389. .dialog_change >>> .el-dialog {
  25390. border-radius: 5px;
  25391. }
  25392. .dialog_change >>> .el-dialog__header {
  25393. background: #f2f2f2;
  25394. text-align: center;
  25395. }
  25396. .dialog_change >>> .el-dialog__title {
  25397. line-height: 5px;
  25398. }
  25399. .dialog_change >>> .el-dialog__body {
  25400. background: #fff;
  25401. padding: 10px 20px;
  25402. }
  25403. .score_box {
  25404. display: flex;
  25405. align-items: center;
  25406. margin-bottom: 18px;
  25407. margin-top: 20px;
  25408. }
  25409. .up_photo {
  25410. width: 120px;
  25411. cursor: pointer;
  25412. margin-top: 10px;
  25413. }
  25414. .up_photo2 {
  25415. width: 180px;
  25416. box-sizing: border-box;
  25417. min-width: 180px;
  25418. height: 180px;
  25419. max-height: 180px;
  25420. min-height: 180px;
  25421. cursor: pointer;
  25422. display: flex;
  25423. flex-direction: column;
  25424. align-items: center;
  25425. justify-content: center;
  25426. background: rgb(242, 246, 255);
  25427. /* padding: 25px; */
  25428. margin-bottom: 10px;
  25429. }
  25430. .up_photo2 img {
  25431. width: 50%;
  25432. height: auto;
  25433. }
  25434. .up_photo2 span {
  25435. color: #898989;
  25436. }
  25437. .plworkBox {
  25438. display: flex;
  25439. align-items: center;
  25440. margin-top: 10px;
  25441. flex-wrap: wrap;
  25442. }
  25443. .upload_send {
  25444. margin: 30px auto 30px;
  25445. width: 60%;
  25446. background: #3681fc;
  25447. text-align: center;
  25448. height: 35px;
  25449. line-height: 35px;
  25450. color: #fff;
  25451. border-radius: 5px;
  25452. cursor: pointer;
  25453. }
  25454. .marginT {
  25455. margin-top: 20px;
  25456. }
  25457. .cd_content_steps {
  25458. display: flex;
  25459. width: 90%;
  25460. justify-content: space-around;
  25461. border-top: 1px solid #eeeeee;
  25462. }
  25463. .cd_steps_box {
  25464. display: flex;
  25465. justify-content: center;
  25466. align-items: center;
  25467. flex-direction: column;
  25468. cursor: pointer;
  25469. }
  25470. .first {
  25471. display: flex;
  25472. align-items: center;
  25473. margin: 15px 0 20px 0;
  25474. font-size: 20px;
  25475. }
  25476. .first > div:nth-child(2) {
  25477. font-size: 16px !important;
  25478. padding-left: 10px;
  25479. line-height: 26px;
  25480. box-sizing: border-box;
  25481. }
  25482. .blue_box_one {
  25483. text-align: center;
  25484. color: #fff;
  25485. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  25486. border-radius: 7px;
  25487. margin: 10px;
  25488. cursor: pointer;
  25489. width: 95%;
  25490. height: 45px;
  25491. display: flex;
  25492. flex-direction: row;
  25493. justify-content: flex-start;
  25494. align-items: center;
  25495. }
  25496. .blue_box_one > div:nth-child(1) {
  25497. line-height: 30px;
  25498. margin: 0 5px 0 10px;
  25499. width: 30%;
  25500. min-width: 70px;
  25501. border-radius: 4px;
  25502. }
  25503. .blue_box_one > div:nth-child(2) {
  25504. white-space: nowrap;
  25505. text-overflow: ellipsis;
  25506. overflow: hidden;
  25507. word-break: break-all;
  25508. width: 70%;
  25509. text-align: left;
  25510. margin-right: 10px;
  25511. max-width: calc(100% - 85px);
  25512. }
  25513. .blue_box_one > div:nth-child(2):hover {
  25514. overflow: hidden;
  25515. text-overflow: ellipsis;
  25516. white-space: nowrap;
  25517. cursor: pointer;
  25518. }
  25519. .upFile {
  25520. margin: 0 auto;
  25521. width: 120px;
  25522. background: #3681fc;
  25523. color: #fff;
  25524. height: 30px;
  25525. text-align: center;
  25526. line-height: 30px;
  25527. border-radius: 5px;
  25528. font-size: 14px;
  25529. cursor: pointer;
  25530. }
  25531. .courseTitle {
  25532. width: 85%;
  25533. margin: 10px auto 26px auto;
  25534. display: flex;
  25535. flex-direction: row;
  25536. align-items: center;
  25537. justify-content: space-between;
  25538. text-align: center;
  25539. }
  25540. .courseTitle .ctitle {
  25541. font-size: 20px;
  25542. font-weight: bold;
  25543. color: #0e1e33;
  25544. white-space: nowrap;
  25545. overflow: hidden;
  25546. text-overflow: ellipsis;
  25547. }
  25548. .inviteBox {
  25549. font-size: 14px;
  25550. /* margin-top: 5px; */
  25551. color: #00000099;
  25552. text-align: center;
  25553. }
  25554. .courseTitle >>> .el-tooltip {
  25555. width: 100%;
  25556. white-space: nowrap;
  25557. overflow: hidden;
  25558. text-overflow: ellipsis;
  25559. word-break: break-word;
  25560. }
  25561. .ml {
  25562. margin-left: 20px;
  25563. color: #5b7dba;
  25564. border-left: 3px solid #5b7dba;
  25565. padding-left: 5px;
  25566. font-weight: bold;
  25567. }
  25568. .return {
  25569. width: 2rem;
  25570. height: 2rem;
  25571. cursor: pointer;
  25572. }
  25573. .return > img {
  25574. width: 100%;
  25575. height: 100%;
  25576. }
  25577. .returnBtn {
  25578. width: 86px;
  25579. height: 36px;
  25580. background: #3681fc;
  25581. border-radius: 4px;
  25582. color: #fff;
  25583. text-align: center;
  25584. line-height: 36px;
  25585. margin-right: 20px;
  25586. cursor: pointer;
  25587. font-size: 14px;
  25588. font-weight: 400;
  25589. display: flex;
  25590. flex-direction: row;
  25591. flex-wrap: nowrap;
  25592. align-items: center;
  25593. justify-content: center;
  25594. }
  25595. .reBtnIcon,
  25596. .commentIcon,
  25597. .vedioIcon,
  25598. .vedioIcon1 {
  25599. /* width: 36px; */
  25600. height: 36px;
  25601. border-radius: 4px;
  25602. position: relative;
  25603. /* background: #e0eafb; */
  25604. background: #0061ff;
  25605. cursor: pointer;
  25606. margin-right: 12px;
  25607. display: flex;
  25608. align-items: center;
  25609. padding: 0 10px;
  25610. box-sizing: border-box;
  25611. font-size: 14px;
  25612. color: #fff;
  25613. }
  25614. .reBtnIcon::before,
  25615. .commentIcon::before,
  25616. .vedioIcon::before,
  25617. .vedioIcon1::before {
  25618. content: "";
  25619. display: block;
  25620. background-size: 100% 100%;
  25621. background-repeat: no-repeat;
  25622. width: 20px;
  25623. height: 20px;
  25624. margin-right: 5px;
  25625. /* position: absolute; */
  25626. /* top: 8px;
  25627. left: 8px; */
  25628. }
  25629. .vedioIcon1 {
  25630. background: #f63564;
  25631. }
  25632. .reBtnIcon::before {
  25633. background-image: url("../../assets/icon/newIcons/refresh.png");
  25634. }
  25635. .commentIcon::before {
  25636. background-image: url("../../assets/icon/newIcons/comment.png");
  25637. }
  25638. .vedioIcon::before {
  25639. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25640. }
  25641. .vedioIcon1::before {
  25642. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  25643. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25644. }
  25645. .tool {
  25646. display: flex;
  25647. flex-direction: column;
  25648. flex-wrap: nowrap;
  25649. width: 13%;
  25650. margin: 0 30px;
  25651. align-items: center;
  25652. position: relative;
  25653. padding: 10px 25px;
  25654. cursor: pointer;
  25655. }
  25656. .whiteBIcon {
  25657. width: 150px;
  25658. }
  25659. .whiteBIcon > img {
  25660. width: 100%;
  25661. height: 100%;
  25662. }
  25663. .mask {
  25664. background-color: rgba(0, 0, 0, 0);
  25665. position: fixed;
  25666. top: 0;
  25667. left: 0;
  25668. width: 100%;
  25669. height: 100%;
  25670. z-index: 20000;
  25671. display: flex;
  25672. align-items: center;
  25673. justify-content: center;
  25674. }
  25675. .progressBox {
  25676. width: 500px;
  25677. height: 180px;
  25678. background: #fff;
  25679. border-radius: 10px;
  25680. box-shadow: 0 0 6px 1px #bfbfbf;
  25681. display: flex;
  25682. align-items: center;
  25683. justify-content: center;
  25684. flex-direction: column;
  25685. position: relative;
  25686. color: #6c6c6c;
  25687. }
  25688. .progressBox >>> .el-progress-bar__outer {
  25689. background-color: #d1dfff !important;
  25690. }
  25691. .progressBox .lbox {
  25692. height: 50px;
  25693. font-size: 19px;
  25694. display: flex;
  25695. align-items: center;
  25696. color: #747474;
  25697. }
  25698. .progressBox .lbox img {
  25699. width: 40px;
  25700. margin-right: 20px;
  25701. }
  25702. .closeCss {
  25703. position: absolute;
  25704. top: 8px;
  25705. right: 8px;
  25706. cursor: pointer;
  25707. width: 20px;
  25708. height: 20px;
  25709. }
  25710. .closeCss > img {
  25711. width: 100%;
  25712. height: 100%;
  25713. }
  25714. .uploadVedio {
  25715. display: flex;
  25716. flex-direction: column;
  25717. flex-wrap: nowrap;
  25718. justify-content: center;
  25719. align-items: center;
  25720. margin: 0 15px 10px 0;
  25721. }
  25722. .uploadVedio > img {
  25723. width: 30px;
  25724. height: 30px;
  25725. }
  25726. .uploadVedio > span {
  25727. white-space: nowrap;
  25728. overflow: hidden;
  25729. text-overflow: ellipsis;
  25730. width: 75px;
  25731. margin-top: 7px;
  25732. }
  25733. .picName {
  25734. white-space: nowrap;
  25735. overflow: hidden;
  25736. text-overflow: ellipsis;
  25737. width: 75px;
  25738. margin-top: 7px;
  25739. }
  25740. .new_top {
  25741. display: flex;
  25742. background: #fff;
  25743. flex-direction: row;
  25744. justify-content: flex-start;
  25745. align-items: center;
  25746. height: 60px;
  25747. position: fixed;
  25748. top: 20px;
  25749. left: 22%;
  25750. width: 77%;
  25751. z-index: 999;
  25752. border-radius: 12px 12px 0 0;
  25753. border-bottom: 1px solid #cad1dc;
  25754. padding: 10px 0;
  25755. }
  25756. .new_topFixed {
  25757. width: 100%;
  25758. height: 40px;
  25759. position: fixed;
  25760. top: 0px;
  25761. display: block;
  25762. background: #f2f2f2;
  25763. z-index: 998;
  25764. }
  25765. .before {
  25766. position: absolute;
  25767. background: #c3dad4;
  25768. width: 6px;
  25769. height: 100%;
  25770. }
  25771. .courseIndex {
  25772. display: flex;
  25773. flex-direction: row;
  25774. align-items: center;
  25775. width: calc(100% - 745px);
  25776. }
  25777. .courseIndex > div:nth-child(1) {
  25778. margin: 0 0 0 10px;
  25779. font-size: 20px;
  25780. min-width: 100px;
  25781. font-weight: bold;
  25782. border-left: 4px solid #3363b9;
  25783. height: 32px;
  25784. text-align: center;
  25785. line-height: 35px;
  25786. }
  25787. .courseIndex > div:nth-child(2) {
  25788. font-size: 20px;
  25789. /* width: 300px; */
  25790. max-width: calc(100% - 105px);
  25791. white-space: nowrap;
  25792. overflow: hidden;
  25793. text-overflow: ellipsis;
  25794. }
  25795. .courseIndex > div:nth-child(3) {
  25796. border-bottom: 1px solid #d7d7d7;
  25797. padding-bottom: 5px;
  25798. background: #3681fc;
  25799. width: 55px;
  25800. min-width: 55px;
  25801. border-radius: 5px;
  25802. color: #fff;
  25803. text-align: center;
  25804. height: 20px;
  25805. line-height: 26px;
  25806. font-size: 14px;
  25807. margin: 0 0 0 10px;
  25808. }
  25809. .course_text {
  25810. padding: 20px 0 0 15px;
  25811. text-indent: 30px;
  25812. width: 80%;
  25813. min-height: 20px;
  25814. }
  25815. .vedioList {
  25816. background: #f2f2f2;
  25817. border: 1px solid #ececec;
  25818. /* width: 38.8%; */
  25819. /* width: 300px; */
  25820. width: 100%;
  25821. height: 445px;
  25822. border-radius: 10px;
  25823. overflow: hidden;
  25824. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  25825. }
  25826. .vedioNav {
  25827. margin: 10px 0 0 15px;
  25828. border-bottom: 1px solid #d7d7d7;
  25829. padding-bottom: 5px;
  25830. background: #3681fc;
  25831. width: 55px;
  25832. min-width: 55px;
  25833. border-radius: 5px;
  25834. color: #fff;
  25835. text-align: center;
  25836. height: 20px;
  25837. line-height: 26px;
  25838. font-size: 14px;
  25839. }
  25840. .queTop {
  25841. display: flex;
  25842. padding: 20px 0 20px 30px;
  25843. width: 100%;
  25844. flex-direction: row;
  25845. justify-content: flex-start;
  25846. align-items: center;
  25847. box-sizing: border-box;
  25848. }
  25849. .queTopTitle {
  25850. display: flex;
  25851. flex-direction: row;
  25852. flex-wrap: nowrap;
  25853. align-items: center;
  25854. font-weight: bold;
  25855. font-size: 20px;
  25856. color: rgb(14, 30, 51);
  25857. }
  25858. .queTopTitle::before {
  25859. content: "";
  25860. width: 2px;
  25861. height: 22px;
  25862. background: #3681fc;
  25863. border-radius: 3px;
  25864. display: block;
  25865. margin: 2px 6px 0 0;
  25866. }
  25867. .queTopRight {
  25868. display: flex;
  25869. flex-direction: row;
  25870. flex-wrap: nowrap;
  25871. align-items: center;
  25872. }
  25873. .queTopClose {
  25874. margin-right: 20px;
  25875. cursor: pointer;
  25876. position: relative;
  25877. display: flex;
  25878. }
  25879. .closeImg,
  25880. .openImg {
  25881. width: 25px;
  25882. height: 25px;
  25883. position: absolute;
  25884. left: -20px;
  25885. top: -1px;
  25886. }
  25887. .closeImg > img,
  25888. .openImg > img {
  25889. width: 100%;
  25890. height: 100%;
  25891. }
  25892. .question {
  25893. width: 40px;
  25894. margin-right: 10px;
  25895. margin-top: 7px;
  25896. }
  25897. .queTitle {
  25898. margin-left: 5px;
  25899. font-size: 25px;
  25900. display: flex;
  25901. align-items: center;
  25902. }
  25903. .addEditor {
  25904. width: 100px;
  25905. height: 30px;
  25906. background: #42cda6;
  25907. color: #fff;
  25908. border-radius: 5px;
  25909. text-align: center;
  25910. line-height: 30px;
  25911. box-shadow: 1px 3px 6px 1px #bfbfbf;
  25912. cursor: pointer;
  25913. }
  25914. /* .vedioName {
  25915. cursor: pointer;
  25916. margin: 0px 0px 10px 5px;
  25917. white-space: nowrap;
  25918. overflow: hidden;
  25919. text-overflow: ellipsis;
  25920. width: 100%;
  25921. } */
  25922. .vedioTime {
  25923. width: 35px;
  25924. position: absolute;
  25925. color: #fff;
  25926. bottom: 0px;
  25927. right: 0px;
  25928. text-align: center;
  25929. background: #46411f;
  25930. height: 20px;
  25931. font-size: 14px;
  25932. line-height: 20px;
  25933. }
  25934. .homework {
  25935. width: 200px;
  25936. display: flex;
  25937. flex-direction: column;
  25938. flex-wrap: nowrap;
  25939. align-items: center;
  25940. cursor: pointer;
  25941. }
  25942. .homebox {
  25943. display: flex;
  25944. flex-wrap: wrap;
  25945. flex-direction: row;
  25946. justify-content: flex-start;
  25947. align-items: center;
  25948. padding: 15px 0;
  25949. }
  25950. .isChooseActive {
  25951. color: #3681fc !important;
  25952. font-weight: bold !important;
  25953. }
  25954. .chooseWho {
  25955. display: flex;
  25956. width: 100%;
  25957. flex-direction: row;
  25958. flex-wrap: nowrap;
  25959. justify-content: flex-start;
  25960. padding-bottom: 10px;
  25961. }
  25962. .chooseWho > div {
  25963. cursor: pointer;
  25964. padding-bottom: 10px;
  25965. margin: 0 30px 0 0;
  25966. font-weight: 400;
  25967. color: #0e1e33;
  25968. }
  25969. .addPoint > div > img {
  25970. cursor: pointer;
  25971. width: 85px;
  25972. border-radius: 15px;
  25973. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  25974. }
  25975. .addPoint > div {
  25976. display: flex;
  25977. flex-direction: column;
  25978. flex-wrap: nowrap;
  25979. align-items: center;
  25980. }
  25981. .isBorder > div {
  25982. margin: 0 0 10px 0;
  25983. align-items: flex-start !important;
  25984. }
  25985. .noiframeBox {
  25986. display: flex;
  25987. flex-wrap: wrap;
  25988. }
  25989. .iframeBox iframe {
  25990. width: 100%;
  25991. height: 800px;
  25992. border: none;
  25993. margin-bottom: 20px;
  25994. border: 1px solid #ccc;
  25995. }
  25996. .upload_toolBtn {
  25997. background: #3681fc;
  25998. color: #fff;
  25999. width: 110px;
  26000. text-align: center;
  26001. height: 35px;
  26002. line-height: 35px;
  26003. font-size: 14px;
  26004. border-radius: 5px;
  26005. cursor: pointer;
  26006. position: absolute;
  26007. right: 10px;
  26008. bottom: 0;
  26009. }
  26010. .binfo_input,
  26011. .pj {
  26012. font: inherit;
  26013. color: currentColor;
  26014. width: 100%;
  26015. margin: 0;
  26016. padding: 15px 14px;
  26017. display: block;
  26018. min-width: 0;
  26019. outline: none;
  26020. box-sizing: content-box;
  26021. background: none;
  26022. -webkit-tap-highlight-color: transparent;
  26023. border: 1px solid rgba(0, 0, 0, 0.23);
  26024. border-radius: 4px;
  26025. box-sizing: border-box;
  26026. resize: none;
  26027. }
  26028. .binfo_input:focus-visible {
  26029. border: 1px solid rgba(61, 103, 188);
  26030. }
  26031. .dialog_diyCopy >>> .el-dialog__header {
  26032. display: none !important;
  26033. }
  26034. .dialog_diyCopy >>> .el-dialog__body {
  26035. padding: 0 !important;
  26036. height: 100% !important;
  26037. }
  26038. .confirmOpenDigCss > div{
  26039. font-size: 14px;
  26040. color: rgba(0, 0, 0, 0.6);
  26041. }
  26042. .confirmOpenDigCss >>> .el-dialog{
  26043. border-radius: 6px;
  26044. }
  26045. .confirmOpenDigCss >>> .el-dialog__body{
  26046. padding: 25px !important;
  26047. }
  26048. .confirmOpenDigCss > span{
  26049. font-size: 16px;
  26050. font-weight: 600;
  26051. color: rgba(0, 0, 0, 0.8);
  26052. }
  26053. .dialog_diy >>> .el-dialog__header,
  26054. .dialog_diy1 >>> .el-dialog__header {
  26055. background: #454545 !important;
  26056. padding: 15px 20px;
  26057. }
  26058. .dialog_diy >>> .el-dialog__title,
  26059. .dialog_diy1 >>> .el-dialog__title {
  26060. color: #fff;
  26061. }
  26062. .dialog_diy >>> .el-dialog__headerbtn,
  26063. .dialog_diy1 >>> .el-dialog__headerbtn {
  26064. top: 19px;
  26065. }
  26066. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26067. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26068. color: #fff;
  26069. }
  26070. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26071. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26072. color: #fff;
  26073. }
  26074. .dialog_diy1 >>> .el-dialog__body {
  26075. padding: 0;
  26076. }
  26077. .dialog_diy >>> .el-dialog__body,
  26078. .dialog_diy >>> .el-dialog__footer,
  26079. .dialog_diy1 >>> .el-dialog__footer {
  26080. background: #fafafa;
  26081. }
  26082. .markScore_diy >>> .el-dialog {
  26083. border-radius: 10px;
  26084. }
  26085. .markScore_diy >>> .el-dialog__body {
  26086. padding: 0;
  26087. height: 621px;
  26088. min-height: calc(100% - 60px);
  26089. }
  26090. .markScore_diy >>> .el-dialog__header {
  26091. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26092. }
  26093. .markScore_diy >>> .markScore_diyTit {
  26094. width: calc(100% - 60px);
  26095. display: flex;
  26096. justify-content: space-between;
  26097. align-items: center;
  26098. }
  26099. .a_addBox {
  26100. padding: 0 0 0 15px;
  26101. }
  26102. .a_add_box {
  26103. padding: 10px;
  26104. background: #fff;
  26105. margin-bottom: 10px;
  26106. border-radius: 5px;
  26107. box-shadow: 0 0 5px 0 #d5d5d5;
  26108. }
  26109. .a_add_head {
  26110. display: flex;
  26111. align-items: flex-start;
  26112. /* justify-content: space-between; */
  26113. flex-direction: column;
  26114. /* flex-direction: row; */
  26115. margin: 10px 0 20px 0;
  26116. font-size: 18px;
  26117. width: 100%;
  26118. }
  26119. .askIndex {
  26120. background: #3681fc;
  26121. border-radius: 50%;
  26122. color: #fff;
  26123. width: 25px;
  26124. height: 25px;
  26125. min-width: 25px;
  26126. min-height: 25px;
  26127. text-align: center;
  26128. line-height: 25px;
  26129. margin-right: 5px;
  26130. }
  26131. .a_add_head .a_add_head_input {
  26132. width: 300px;
  26133. }
  26134. .a_add_head .a_add_head_div {
  26135. display: flex;
  26136. align-items: center;
  26137. justify-content: space-between;
  26138. }
  26139. .a_add_body {
  26140. display: flex;
  26141. align-items: center;
  26142. }
  26143. .a_add_input {
  26144. display: flex;
  26145. align-items: center;
  26146. flex-wrap: wrap;
  26147. width: 100%;
  26148. }
  26149. .a_add_input >>> .el-radio-group,
  26150. .a_add_input >>> .el-checkbox-group {
  26151. width: 100%;
  26152. }
  26153. .a_add_input >>> .el-radio,
  26154. .a_add_input >>> .el-checkbox {
  26155. display: flex;
  26156. flex-direction: row;
  26157. flex-wrap: nowrap;
  26158. align-items: center;
  26159. padding: 15px 0;
  26160. }
  26161. .a_add_input >>> .el-radio:not(:last-child),
  26162. .a_add_input >>> .el-checkbox:not(:last-child) {
  26163. width: 100%;
  26164. border-bottom: 1px solid #efefef;
  26165. }
  26166. .redioStyle >>> .el-radio__label {
  26167. font-size: 18px;
  26168. }
  26169. .redioStyle >>> .el-radio__label > span,
  26170. .redioStyle >>> .el-checkbox__label > span {
  26171. word-break: break-all;
  26172. white-space: normal;
  26173. }
  26174. .redioStyle >>> .el-checkbox__label {
  26175. font-size: 18px;
  26176. }
  26177. .toolHeng2 {
  26178. width: 100%;
  26179. padding-left: 15px;
  26180. box-sizing: border-box;
  26181. }
  26182. .workNav {
  26183. font-size: 20px;
  26184. font-weight: bold;
  26185. color: #0e1e33;
  26186. display: flex;
  26187. flex-direction: row;
  26188. flex-wrap: nowrap;
  26189. align-items: center;
  26190. padding: 15px 0 15px 0;
  26191. }
  26192. .workNav::before {
  26193. content: "";
  26194. width: 2px;
  26195. height: 22px;
  26196. background: #3681fc;
  26197. border-radius: 3px;
  26198. display: block;
  26199. margin: 2px 6px 0 0;
  26200. }
  26201. .toolHeng {
  26202. display: flex;
  26203. flex-direction: row;
  26204. flex-wrap: wrap;
  26205. justify-content: flex-start;
  26206. align-items: center;
  26207. width: 100%;
  26208. }
  26209. .toolHeng > div {
  26210. padding-left: 20px;
  26211. }
  26212. .isWidth {
  26213. width: 20%;
  26214. }
  26215. .textTitle {
  26216. display: flex;
  26217. flex-direction: row;
  26218. flex-wrap: nowrap;
  26219. align-items: center;
  26220. width: 95%;
  26221. }
  26222. .textTitle >>> .el-form-item__label {
  26223. font-size: 22px;
  26224. color: #918f8f;
  26225. width: 100px;
  26226. }
  26227. .textTitle >>> .el-form-item__content {
  26228. width: calc(100% - 100px);
  26229. }
  26230. .textCss >>> .el-dialog {
  26231. width: 800px !important;
  26232. height: 400px;
  26233. background: #fafafa;
  26234. }
  26235. .textCss >>> .el-dialog__body {
  26236. margin: 55px 8% 0 8%;
  26237. padding: 0 !important;
  26238. }
  26239. .textCss >>> .el-dialog__footer {
  26240. padding-top: 38px;
  26241. }
  26242. .toolsCss >>> .el-dialog__body {
  26243. padding: 20px;
  26244. }
  26245. .lineCss >>> .el-dialog__body {
  26246. display: flex;
  26247. flex-direction: row;
  26248. align-items: center;
  26249. justify-content: center;
  26250. }
  26251. .newNav {
  26252. display: flex;
  26253. flex-direction: row;
  26254. align-items: baseline;
  26255. justify-content: flex-start;
  26256. }
  26257. .navListItem {
  26258. width: calc(100% - 20px);
  26259. height: 50px;
  26260. margin: 0px auto 10px;
  26261. display: flex;
  26262. flex-direction: row;
  26263. flex-wrap: nowrap;
  26264. align-items: center;
  26265. justify-content: space-between;
  26266. background: #f0f4fa;
  26267. border-radius: 6px 6px 6px 6px;
  26268. }
  26269. .navText {
  26270. cursor: pointer;
  26271. white-space: nowrap;
  26272. overflow: hidden;
  26273. text-overflow: ellipsis;
  26274. width: 220px;
  26275. padding: 0 10px;
  26276. font-weight: 400;
  26277. color: #0e1e33;
  26278. }
  26279. .downIcon {
  26280. width: 20px;
  26281. min-width: 20px;
  26282. height: 20px;
  26283. margin-right: 15px;
  26284. cursor: pointer;
  26285. }
  26286. .downIcon > img {
  26287. width: 100%;
  26288. height: 100%;
  26289. }
  26290. .noVedio {
  26291. display: flex;
  26292. flex-direction: row;
  26293. justify-content: center;
  26294. align-content: center;
  26295. }
  26296. .noNavText {
  26297. cursor: pointer;
  26298. margin: 0px 0px 10px 5px;
  26299. width: 112px;
  26300. }
  26301. .listNoVedio {
  26302. margin: 0 0 0 30px;
  26303. width: 97%;
  26304. }
  26305. .video-player >>> .video-js {
  26306. height: 100%;
  26307. }
  26308. .hangVedioList {
  26309. width: 90% !important;
  26310. height: 150px !important;
  26311. margin: 20px 0 0 30px;
  26312. }
  26313. .hangVedio {
  26314. width: 100%;
  26315. height: 170px !important;
  26316. align-items: flex-start !important;
  26317. }
  26318. .hangHand {
  26319. height: 150px !important;
  26320. }
  26321. .twoChild {
  26322. width: 95%;
  26323. margin: 10px;
  26324. border-radius: 5px;
  26325. background: #f2f2f2;
  26326. display: flex;
  26327. flex-direction: column;
  26328. flex-wrap: nowrap;
  26329. justify-content: flex-start;
  26330. align-items: flex-start;
  26331. transition: all 0.5s;
  26332. overflow: hidden;
  26333. height: 0;
  26334. background: #e7f3ff;
  26335. }
  26336. .twoChild > div:nth-child(1) {
  26337. margin-top: 5px;
  26338. }
  26339. .navChild {
  26340. width: 100%;
  26341. cursor: pointer;
  26342. margin-bottom: 10px;
  26343. position: relative;
  26344. }
  26345. .navChild img {
  26346. position: absolute;
  26347. right: 11px;
  26348. width: 15px;
  26349. top: 50%;
  26350. transform: translateY(-50%);
  26351. }
  26352. .navActive,
  26353. .toolActive {
  26354. height: auto !important;
  26355. overflow: auto !important;
  26356. /* // padding-bottom: 16px; */
  26357. }
  26358. .toolActive {
  26359. padding: 0;
  26360. }
  26361. .navTask {
  26362. display: flex;
  26363. flex-direction: row;
  26364. flex-wrap: nowrap;
  26365. align-items: center;
  26366. align-content: flex-start;
  26367. height: 40px;
  26368. justify-content: flex-start;
  26369. padding: 0 10px;
  26370. width: 100%;
  26371. box-sizing: border-box;
  26372. }
  26373. .navTaskname {
  26374. white-space: nowrap;
  26375. text-overflow: ellipsis;
  26376. overflow: hidden;
  26377. word-break: break-all;
  26378. padding-left: 5px;
  26379. }
  26380. .openTaskActive {
  26381. /* background-color: #e0eafb !important;
  26382. color: #0061ff; */
  26383. color: #fff;
  26384. background: rgb(55, 129, 252) !important;
  26385. }
  26386. .iframeName {
  26387. margin: 5px 0;
  26388. border-left: 4px solid #41c4a4;
  26389. padding-left: 4px;
  26390. }
  26391. .toolTitle {
  26392. margin: 0px 0px 20px;
  26393. font-size: 20px;
  26394. font-weight: 500;
  26395. border-left: 4px solid #41c4a4;
  26396. padding-left: 4px;
  26397. }
  26398. .cru_selectBox {
  26399. overflow: auto;
  26400. width: 95%;
  26401. margin: 17px auto 0;
  26402. height: calc(100% - 40px - 21px - 20px - 17px);
  26403. background: #fff;
  26404. border-radius: 8px;
  26405. }
  26406. .cru_selectBox::-webkit-scrollbar,
  26407. .study_top::-webkit-scrollbar,
  26408. .textContent::-webkit-scrollbar {
  26409. /*滚动条整体样式*/
  26410. width: 6px;
  26411. /*高宽分别对应横竖滚动条的尺寸*/
  26412. height: 6px;
  26413. }
  26414. /*定义滚动条轨道 内阴影+圆角*/
  26415. .cru_selectBox::-webkit-scrollbar-track,
  26416. .study_top::-webkit-scrollbar-track,
  26417. .textContent::-webkit-scrollbar {
  26418. border-radius: 10px;
  26419. background-color: #b8bdc9;
  26420. }
  26421. /*定义滑块 内阴影+圆角*/
  26422. .cru_selectBox::-webkit-scrollbar-thumb,
  26423. .study_top::-webkit-scrollbar-thumb,
  26424. .textContent::-webkit-scrollbar-thumb {
  26425. border-radius: 10px;
  26426. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26427. background-color: #2c5ab3;
  26428. }
  26429. .vedioBox {
  26430. border-radius: 0 0 20px 20px;
  26431. background: #fff;
  26432. overflow: auto;
  26433. }
  26434. .taskBox {
  26435. width: 98%;
  26436. background: #f0f4fa;
  26437. margin: 10px auto;
  26438. padding: 0 10px;
  26439. border-radius: 4px;
  26440. box-sizing: border-box;
  26441. }
  26442. .vedioTaskBox {
  26443. width: 100%;
  26444. display: flex;
  26445. flex-direction: row;
  26446. flex-wrap: nowrap;
  26447. align-items: flex-start;
  26448. position: relative;
  26449. }
  26450. .toolBox {
  26451. margin: 15px 0 0 25px;
  26452. display: flex;
  26453. position: relative;
  26454. padding: 18px 20px;
  26455. border-top-left-radius: 5px;
  26456. border-top-right-radius: 5px;
  26457. width: 90%;
  26458. }
  26459. .btnAll {
  26460. position: absolute;
  26461. right: 0;
  26462. display: flex;
  26463. flex-direction: row;
  26464. flex-wrap: nowrap;
  26465. align-items: center;
  26466. }
  26467. .btnLeft,
  26468. .btnRight {
  26469. display: flex;
  26470. flex-direction: row;
  26471. flex-wrap: nowrap;
  26472. align-items: center;
  26473. padding: 5px 0;
  26474. }
  26475. .btnLeft {
  26476. border-right: 1px solid #cad1dc;
  26477. }
  26478. .btnLeft > .custom-tooltip {
  26479. background: #3681fc;
  26480. color: #fff;
  26481. }
  26482. .last:hover {
  26483. background: #3383fa !important;
  26484. color: #fff;
  26485. border: 1px solid #3383fa !important;
  26486. }
  26487. .last,
  26488. .returnBtn1 {
  26489. width: 90px;
  26490. height: 36px;
  26491. background: #ffffff;
  26492. border-radius: 4px;
  26493. border: 1px solid #0061ff;
  26494. color: #0061ff;
  26495. cursor: pointer;
  26496. display: flex;
  26497. flex-direction: row;
  26498. flex-wrap: nowrap;
  26499. align-items: center;
  26500. justify-content: center;
  26501. margin-left: 12px;
  26502. }
  26503. .returnBtn1 {
  26504. background: #f0f4fa;
  26505. border-radius: 4px;
  26506. border: 1px solid #cad1dc;
  26507. margin: 0 12px;
  26508. }
  26509. .lastImg {
  26510. min-width: 15px;
  26511. width: 15px;
  26512. height: 15px;
  26513. display: flex;
  26514. }
  26515. .lastText {
  26516. padding: 0 5px 0 5px;
  26517. box-sizing: border-box;
  26518. font-size: 14px;
  26519. }
  26520. .lastImg > img {
  26521. width: 100%;
  26522. height: 100%;
  26523. }
  26524. /* .vedioTimeBox {
  26525. display: flex;
  26526. flex-direction: row;
  26527. align-items: center;
  26528. flex-wrap: nowrap;
  26529. position: relative;
  26530. } */
  26531. .navBox {
  26532. background: #fff;
  26533. height: calc(100% - 40px);
  26534. overflow-y: auto;
  26535. overflow-x: hidden;
  26536. }
  26537. .worksBox {
  26538. margin: 0 0 10px 25px;
  26539. border-bottom: 1px solid #eeeeee;
  26540. padding: 18px 20px;
  26541. border-radius: 4px;
  26542. width: 90%;
  26543. }
  26544. .worksBTitle {
  26545. font-size: 20px;
  26546. padding-bottom: 15px;
  26547. border-bottom: 1px solid #eeeeee;
  26548. display: flex;
  26549. align-items: center;
  26550. }
  26551. .greenBox {
  26552. width: 5px;
  26553. height: 30px;
  26554. background: #63b6fa;
  26555. margin-right: 5px;
  26556. }
  26557. .worksDetailBox {
  26558. display: flex;
  26559. width: 100%;
  26560. flex-direction: row;
  26561. flex-wrap: wrap;
  26562. align-items: flex-end;
  26563. justify-content: flex-start;
  26564. padding: 15px 5px;
  26565. box-sizing: border-box;
  26566. }
  26567. .works {
  26568. display: flex;
  26569. flex-direction: column;
  26570. flex-wrap: nowrap;
  26571. align-items: flex-start;
  26572. justify-content: flex-start;
  26573. align-content: center;
  26574. max-width: 240px;
  26575. width: calc(100% / 3 - 10px);
  26576. height: auto;
  26577. margin-right: 10px;
  26578. margin-bottom: 10px;
  26579. overflow: hidden;
  26580. height: 140px;
  26581. box-shadow: 0 0 6px 1px #dfdada;
  26582. border-radius: 15px;
  26583. }
  26584. .workImg {
  26585. width: 100%;
  26586. /* height: calc(100% - 40px); */
  26587. height: 105px;
  26588. position: relative;
  26589. }
  26590. .workImg > img {
  26591. width: 100%;
  26592. height: 100%;
  26593. object-fit: contain;
  26594. cursor: pointer;
  26595. }
  26596. .worksName {
  26597. height: 40px;
  26598. line-height: 40px;
  26599. display: flex;
  26600. width: 100%;
  26601. flex-direction: row;
  26602. flex-wrap: nowrap;
  26603. justify-content: space-between;
  26604. align-items: center;
  26605. margin: 0 0 0 10px;
  26606. }
  26607. .worksName > div:nth-child(1) {
  26608. width: 110px;
  26609. white-space: nowrap;
  26610. overflow: hidden;
  26611. text-overflow: ellipsis;
  26612. }
  26613. .worksName > div:nth-child(2) {
  26614. color: #b7b4b5;
  26615. }
  26616. .noWorksS {
  26617. padding: 15px 0;
  26618. display: flex;
  26619. flex-direction: row;
  26620. flex-wrap: wrap;
  26621. align-items: center;
  26622. justify-content: flex-start;
  26623. }
  26624. .noWorksName,
  26625. .isWorksName,
  26626. .isWorksName2 {
  26627. background: #ddebf8;
  26628. color: #000;
  26629. width: 90px;
  26630. height: 25px;
  26631. text-align: center;
  26632. line-height: 25px;
  26633. border-radius: 4px;
  26634. margin: 10px 15px 10px 0;
  26635. white-space: nowrap;
  26636. overflow: hidden;
  26637. padding: 5px;
  26638. text-overflow: ellipsis;
  26639. cursor: pointer;
  26640. border: 1px solid #ddebf8;
  26641. }
  26642. .noWorksName {
  26643. background: #fff;
  26644. color: #0061ff;
  26645. border: 1px solid #0061ff;
  26646. }
  26647. .noWorksName > span {
  26648. max-width: 100%;
  26649. display: block;
  26650. overflow: hidden;
  26651. text-overflow: ellipsis;
  26652. white-space: nowrap;
  26653. }
  26654. .isWorksName2 {
  26655. width: 100px;
  26656. height: 40px;
  26657. line-height: 40px;
  26658. position: relative;
  26659. background: #dae6f9;
  26660. }
  26661. .isWorksName {
  26662. background: #e7ebf1 !important;
  26663. width: 100px;
  26664. height: 40px;
  26665. line-height: 40px;
  26666. position: relative;
  26667. color: #acb4bf;
  26668. border: 1px solid #cad1dc !important;
  26669. }
  26670. .isSelectName,
  26671. .noWorksName:hover {
  26672. background: #3383fa !important;
  26673. color: #fff !important;
  26674. border: 1px solid #3383fa !important;
  26675. }
  26676. .title {
  26677. background: #1e5cc9;
  26678. /* width: 98%; */
  26679. height: 45px;
  26680. color: #fff;
  26681. line-height: 45px;
  26682. padding-left: 20px;
  26683. box-sizing: border-box;
  26684. }
  26685. .textBox {
  26686. font-size: 20px;
  26687. width: 90%;
  26688. display: flex;
  26689. flex-direction: column;
  26690. align-items: center;
  26691. margin: 20px auto 0;
  26692. max-height: calc(100% - 75px);
  26693. overflow: auto;
  26694. }
  26695. .textContent {
  26696. font-size: 18px;
  26697. width: 95%;
  26698. max-width: 95%;
  26699. }
  26700. .answerBg {
  26701. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  26702. background-size: 100% 100%;
  26703. width: 100%;
  26704. height: 100%;
  26705. color: #fff;
  26706. text-align: center;
  26707. display: flex;
  26708. flex-direction: column;
  26709. flex-wrap: nowrap;
  26710. align-items: center;
  26711. position: relative;
  26712. justify-content: center;
  26713. }
  26714. /* .answerBg > div:nth-child(1) { */
  26715. /* font-size: 22px;
  26716. padding: 25px 0 10px; */
  26717. /* } */
  26718. .answerContent {
  26719. width: 215px;
  26720. max-height: 60px;
  26721. word-break: break-all;
  26722. text-align: center;
  26723. /* white-space: nowrap; */
  26724. overflow: hidden;
  26725. text-overflow: ellipsis;
  26726. /* padding: 23px 0 0; */
  26727. -webkit-line-clamp: 3;
  26728. -webkit-box-orient: vertical;
  26729. display: -webkit-box;
  26730. font-size: 15px;
  26731. cursor: pointer;
  26732. }
  26733. .elist_input_box {
  26734. display: flex;
  26735. align-items: flex-start;
  26736. flex-wrap: nowrap;
  26737. padding: 10px 0 15px 30px;
  26738. flex-direction: column;
  26739. }
  26740. .elist_input {
  26741. /* width: 40%; */
  26742. width: 45%;
  26743. padding: 20px;
  26744. /* margin: 20px; */
  26745. box-sizing: border-box;
  26746. }
  26747. .elist_input .elist_input_box input {
  26748. font: inherit;
  26749. color: currentColor;
  26750. width: 200px;
  26751. padding: 8px 14px;
  26752. display: block;
  26753. min-width: 0;
  26754. outline: none;
  26755. border: 1px solid rgba(0, 0, 0, 0.23);
  26756. border-radius: 4px;
  26757. box-sizing: border-box;
  26758. background: #fff;
  26759. margin: 0 20px 0 0;
  26760. }
  26761. .elist_input .elist_input_box span {
  26762. height: 36px;
  26763. line-height: 36px;
  26764. color: rgb(82, 82, 82);
  26765. }
  26766. .elist_input .elist_input_box .remove {
  26767. height: 20px;
  26768. width: 20px;
  26769. background-size: 100% 100%;
  26770. background-position: unset;
  26771. margin-left: 5px;
  26772. }
  26773. .elist_input_box >>> .el-rate {
  26774. display: flex;
  26775. height: 36px;
  26776. align-items: center;
  26777. }
  26778. .elist_input_box .elist_inptu_text {
  26779. min-height: 50px;
  26780. /* width: 500px;
  26781. max-height: 150px; */
  26782. width: 100%;
  26783. line-height: 50px;
  26784. color: rgb(82, 82, 82);
  26785. overflow: auto;
  26786. text-indent: 5px;
  26787. background: #f7f6f9;
  26788. border-radius: 10px;
  26789. }
  26790. .elist_input_box .elist_inptu_text input {
  26791. width: 500px;
  26792. }
  26793. .elist_input_box >>> .el-rate__icon {
  26794. font-size: 24px;
  26795. }
  26796. .isClick {
  26797. background: #4d9def;
  26798. }
  26799. .bzBox {
  26800. display: flex;
  26801. flex-direction: row;
  26802. align-items: center;
  26803. }
  26804. .bzBox .yCss {
  26805. width: 7px;
  26806. height: 7px;
  26807. background: #fff;
  26808. margin: 0 16px 0 6px;
  26809. border-radius: 50%;
  26810. border: 5px solid #3681fc;
  26811. z-index: 99;
  26812. }
  26813. .bzBox > div:nth-child(2) {
  26814. font-size: 18px;
  26815. font-weight: bold;
  26816. color: #0e1e33;
  26817. }
  26818. .navTitile {
  26819. padding: 0 0px 0 15px;
  26820. font-size: 16px;
  26821. font-weight: bold;
  26822. color: #0e1e33;
  26823. height: 40px;
  26824. line-height: 40px;
  26825. }
  26826. .isTypeOne {
  26827. width: 240px;
  26828. height: 170px;
  26829. /* border: 1px solid #f8f8f8; */
  26830. border-radius: 10px;
  26831. box-shadow: 0 0 6px 1px #dfdada;
  26832. }
  26833. .e_add_top {
  26834. display: flex;
  26835. justify-content: space-between;
  26836. padding: 10px 20px;
  26837. border-radius: 3px;
  26838. background: #fff;
  26839. }
  26840. .e_add_title2 {
  26841. display: flex;
  26842. align-items: center;
  26843. }
  26844. .e_add_title2 span {
  26845. width: 40px;
  26846. }
  26847. .e_add_title {
  26848. display: flex;
  26849. align-items: center;
  26850. color: #b8b8b8;
  26851. font-size: 18px;
  26852. position: relative;
  26853. height: 40px;
  26854. }
  26855. .e_add_title span {
  26856. margin-right: 10px;
  26857. }
  26858. .e_add_title .el_input {
  26859. width: 300px;
  26860. }
  26861. .e_add_title >>> .el-input__inner {
  26862. width: 400px;
  26863. }
  26864. .e_add_btn {
  26865. }
  26866. .e_add_content {
  26867. display: flex;
  26868. width: 100%;
  26869. max-width: 650px;
  26870. height: 550px;
  26871. }
  26872. .e_add_list {
  26873. background: #fff;
  26874. height: 500px;
  26875. width: 210px;
  26876. position: relative;
  26877. margin: 15px 5px 0 0;
  26878. flex-shrink: 0;
  26879. display: flex;
  26880. flex-direction: column;
  26881. }
  26882. .e_add_list_title {
  26883. font-size: 20px;
  26884. width: 100%;
  26885. box-sizing: border-box;
  26886. padding: 15px 40px;
  26887. text-align: center;
  26888. border-bottom: 1px solid #eaeaea;
  26889. position: relative;
  26890. display: flex;
  26891. align-items: center;
  26892. justify-content: center;
  26893. height: 57px;
  26894. background: #f6f6f6;
  26895. }
  26896. .e_add_list_title span {
  26897. overflow: hidden;
  26898. white-space: nowrap;
  26899. text-overflow: ellipsis;
  26900. }
  26901. .e_add_list_title img {
  26902. position: absolute;
  26903. right: 15px;
  26904. width: 25px;
  26905. cursor: pointer;
  26906. top: 50%;
  26907. transform: translateY(-50%);
  26908. }
  26909. .e_add_list_body {
  26910. height: calc(100% - 187px);
  26911. overflow: auto;
  26912. }
  26913. .e_add_list_child {
  26914. width: 100%;
  26915. display: flex;
  26916. align-items: center;
  26917. justify-content: center;
  26918. position: relative;
  26919. box-sizing: border-box;
  26920. padding: 15px 40px;
  26921. text-align: center;
  26922. }
  26923. .e_add_list_child span {
  26924. overflow: hidden;
  26925. white-space: nowrap;
  26926. text-overflow: ellipsis;
  26927. cursor: pointer;
  26928. }
  26929. .e_add_list_child img {
  26930. position: absolute;
  26931. right: 10px;
  26932. width: 21px;
  26933. cursor: pointer;
  26934. top: 50%;
  26935. transform: translateY(-50%);
  26936. }
  26937. .e_add_list_child + .e_add_list_child {
  26938. border-top: 1px solid #eaeaea;
  26939. }
  26940. .e_add_list_child .active {
  26941. color: #409eff;
  26942. }
  26943. .e_add_list_btn {
  26944. position: absolute;
  26945. bottom: 0;
  26946. height: 50px;
  26947. background: rgb(120, 120, 254);
  26948. width: 100%;
  26949. color: #fff;
  26950. font-size: 16px;
  26951. text-align: center;
  26952. line-height: 50px;
  26953. cursor: pointer;
  26954. }
  26955. .e_add_list_detail {
  26956. position: absolute;
  26957. bottom: 0;
  26958. height: 130px;
  26959. background: rgb(120, 120, 254);
  26960. width: 100%;
  26961. color: #fff;
  26962. font-size: 16px;
  26963. display: flex;
  26964. align-items: center;
  26965. justify-content: center;
  26966. }
  26967. .e_add_list_detail textarea {
  26968. height: 90%;
  26969. width: 95%;
  26970. border: none;
  26971. resize: none;
  26972. outline: none;
  26973. padding: 5px;
  26974. box-sizing: border-box;
  26975. }
  26976. .e_add_list_pbox {
  26977. width: 100%;
  26978. max-width: 650px;
  26979. /* height: 600px; */
  26980. }
  26981. .e_add_list_pbox_title {
  26982. height: 50px;
  26983. background: #fff;
  26984. display: flex;
  26985. align-items: center;
  26986. width: 100%;
  26987. box-sizing: border-box;
  26988. padding: 0 20px;
  26989. }
  26990. .type_title {
  26991. font-size: 18px;
  26992. font-weight: 700;
  26993. }
  26994. .type_content {
  26995. font-size: 16px;
  26996. /* margin-left: 30px; */
  26997. }
  26998. .type_content span + span {
  26999. margin-left: 20px;
  27000. }
  27001. .type_content span {
  27002. cursor: pointer;
  27003. padding-bottom: 5px;
  27004. box-sizing: border-box;
  27005. }
  27006. .type_content .active {
  27007. color: #409eff;
  27008. border-bottom: 2px solid #409eff;
  27009. }
  27010. .e_add_list_pbox_content {
  27011. height: calc(100% - 50px);
  27012. display: flex;
  27013. align-items: center;
  27014. width: 100%;
  27015. background: #fff;
  27016. }
  27017. .evaCss {
  27018. display: flex;
  27019. flex-direction: row;
  27020. flex-wrap: nowrap;
  27021. align-items: flex-start;
  27022. padding: 0 0 20px;
  27023. }
  27024. .evaCss >>> .cell {
  27025. position: relative;
  27026. overflow: visible;
  27027. }
  27028. .evaCss >>> .el-table__body-wrapper {
  27029. overflow: visible;
  27030. }
  27031. .evaCss >>> .el-table {
  27032. overflow: visible;
  27033. }
  27034. .blueRootCss {
  27035. position: absolute;
  27036. top: 50%;
  27037. left: 0;
  27038. transform: translate(-20px, -50%);
  27039. }
  27040. .cru_line {
  27041. position: absolute;
  27042. bottom: 0px;
  27043. transition: all 0.5s;
  27044. left: 0px;
  27045. width: 125px;
  27046. margin-left: -25px;
  27047. }
  27048. .isNoMessage {
  27049. width: 20%;
  27050. margin: 25% auto 0;
  27051. }
  27052. .isNoMessage > img {
  27053. width: 100%;
  27054. height: 100%;
  27055. }
  27056. .fullStyle >>> .el-dialog__body {
  27057. height: 100% !important;
  27058. }
  27059. .fullStyle >>> .el-dialog,
  27060. .fullStyle {
  27061. width: 100% !important;
  27062. max-width: 100% !important;
  27063. height: 100% !important;
  27064. margin: 0 !important;
  27065. }
  27066. .full_diy >>> .el-dialog {
  27067. margin: 0 !important;
  27068. height: 100%;
  27069. padding: 4px;
  27070. }
  27071. .full_diy >>> .el-dialog__body {
  27072. height: calc(100% - 100px);
  27073. }
  27074. .full_diy2 >>> .el-dialog__body {
  27075. height: calc(100% - 50px);
  27076. padding: 0;
  27077. }
  27078. .switchCss {
  27079. /* width: 100%; */
  27080. display: flex;
  27081. flex-direction: row;
  27082. flex-wrap: nowrap;
  27083. align-items: center;
  27084. /* justify-content: center; */
  27085. }
  27086. .isClickNav {
  27087. /* color: #499eef; */
  27088. color: #000;
  27089. }
  27090. .commentImg {
  27091. width: 25px;
  27092. height: 25px;
  27093. cursor: pointer;
  27094. }
  27095. .commentImg > img {
  27096. width: 100%;
  27097. height: 100%;
  27098. }
  27099. .comment {
  27100. background: #f9f9f9;
  27101. border-radius: 0 0 4px 4px;
  27102. display: flex;
  27103. flex-direction: row;
  27104. flex-wrap: nowrap;
  27105. align-items: center;
  27106. justify-content: flex-end;
  27107. height: 35px;
  27108. }
  27109. .commentList {
  27110. display: flex;
  27111. flex-direction: row;
  27112. flex-wrap: nowrap;
  27113. align-items: center;
  27114. justify-content: center;
  27115. align-content: center;
  27116. /* margin-left: 15px; */
  27117. /* margin-left: 8px; */
  27118. }
  27119. .scoreImg {
  27120. width: 17px;
  27121. height: 17px;
  27122. }
  27123. .studentDetail {
  27124. display: flex;
  27125. flex-direction: row;
  27126. flex-wrap: nowrap;
  27127. /* align-items: center; */
  27128. align-items: flex-start;
  27129. }
  27130. .tx {
  27131. width: 50px;
  27132. }
  27133. .tx > img {
  27134. width: 100%;
  27135. height: 100%;
  27136. }
  27137. .nameAndTime {
  27138. display: flex;
  27139. flex-direction: column;
  27140. flex-wrap: nowrap;
  27141. align-items: flex-start;
  27142. margin-left: 10px;
  27143. }
  27144. .worksAnswer {
  27145. color: #4078dd;
  27146. margin: 10px 0;
  27147. font-size: 16px;
  27148. position: relative;
  27149. }
  27150. .worksAnswer > img {
  27151. width: 500px;
  27152. height: 300px;
  27153. object-fit: contain;
  27154. margin: 0 auto;
  27155. display: block;
  27156. }
  27157. .commentTop {
  27158. border-bottom: 1px solid #eaeaea;
  27159. padding-bottom: 10px;
  27160. }
  27161. .commentBox {
  27162. padding-top: 15px;
  27163. }
  27164. .pl {
  27165. font-size: 18px;
  27166. }
  27167. .plPerson {
  27168. width: 100%;
  27169. }
  27170. .plName {
  27171. display: flex;
  27172. flex-direction: row;
  27173. flex-wrap: nowrap;
  27174. align-items: baseline;
  27175. color: #78787a;
  27176. width: 100%;
  27177. }
  27178. .deleteComment {
  27179. cursor: pointer;
  27180. margin-left: auto;
  27181. color: #237ade;
  27182. }
  27183. .plContent {
  27184. margin-top: 5px;
  27185. }
  27186. .evalCss {
  27187. background: #fff;
  27188. font-size: 18px;
  27189. }
  27190. .nav {
  27191. color: #9d9d9d;
  27192. padding: 5px 0 15px 20px;
  27193. }
  27194. .middleBox {
  27195. padding: 5px 0 15px 20px;
  27196. }
  27197. .pfBox {
  27198. padding-bottom: 30px;
  27199. }
  27200. .nameAndrate {
  27201. display: flex;
  27202. flex-direction: row;
  27203. flex-wrap: nowrap;
  27204. align-items: center;
  27205. padding-bottom: 10px;
  27206. height: 30px;
  27207. line-height: 30px;
  27208. }
  27209. .nameAndrate > div {
  27210. margin-left: 10px;
  27211. color: #000;
  27212. height: 30px;
  27213. }
  27214. .nameAndrate >>> .el-rate__icon {
  27215. font-size: 28px !important;
  27216. }
  27217. .pfBox > div:nth-child(2) {
  27218. background: #f7f6f9;
  27219. width: 400px;
  27220. min-height: 45px;
  27221. border-radius: 10px;
  27222. font-size: 16px;
  27223. display: flex;
  27224. flex-wrap: wrap;
  27225. align-items: center;
  27226. padding: 10px 20px;
  27227. box-sizing: border-box;
  27228. color: #000;
  27229. }
  27230. .bz {
  27231. display: flex;
  27232. flex-direction: row;
  27233. flex-wrap: nowrap;
  27234. align-items: flex-start;
  27235. }
  27236. .bz > div {
  27237. padding: 0 10px;
  27238. }
  27239. .select_box2_title {
  27240. background: #fff;
  27241. border-radius: 5px;
  27242. padding: 15px 10px;
  27243. box-sizing: border-box;
  27244. margin-bottom: 10px;
  27245. display: flex;
  27246. flex-direction: row;
  27247. flex-wrap: nowrap;
  27248. align-items: center;
  27249. }
  27250. .select_box2_title > div:nth-child(2) {
  27251. margin-left: 10px;
  27252. color: #c4c4c4;
  27253. }
  27254. .select_box2_box {
  27255. display: flex;
  27256. height: 500px;
  27257. }
  27258. .select_box2_img {
  27259. width: calc(100% - 310px);
  27260. height: 100%;
  27261. overflow: auto;
  27262. background: #fff;
  27263. border-radius: 5px;
  27264. }
  27265. .select_box2_img img {
  27266. width: 100%;
  27267. }
  27268. .select_box2_answer {
  27269. background: #fff;
  27270. margin-left: 10px;
  27271. border-radius: 5px;
  27272. width: 300px;
  27273. overflow: auto;
  27274. height: 90%;
  27275. display: flex;
  27276. flex-direction: column;
  27277. align-items: flex-start;
  27278. padding-top: 10px;
  27279. box-sizing: border-box;
  27280. position: relative;
  27281. }
  27282. .select_answer_title {
  27283. padding: 0 0 15px 20px;
  27284. color: #c4c4c4;
  27285. }
  27286. .select_box2_answer_box {
  27287. margin: 0 0 10px 20px;
  27288. width: 85%;
  27289. display: flex;
  27290. flex-direction: row;
  27291. flex-wrap: nowrap;
  27292. align-items: center;
  27293. }
  27294. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27295. color: #000;
  27296. }
  27297. .upAnswerCss {
  27298. position: absolute;
  27299. bottom: 15px;
  27300. right: 15px;
  27301. }
  27302. .upAnswerCss >>> .el-button {
  27303. width: 95px;
  27304. height: 35px;
  27305. line-height: 35px;
  27306. padding: 0;
  27307. }
  27308. .rightWidthCss {
  27309. width: 60%;
  27310. display: flex;
  27311. flex-direction: row;
  27312. align-items: flex-start;
  27313. }
  27314. .rightAnswer {
  27315. display: flex;
  27316. flex-direction: row;
  27317. flex-wrap: nowrap;
  27318. align-items: center;
  27319. color: red;
  27320. margin-bottom: 31px;
  27321. }
  27322. .rightAnswerCss {
  27323. display: flex;
  27324. flex-direction: column;
  27325. flex-wrap: nowrap;
  27326. padding-top: 60px;
  27327. }
  27328. .blueCss {
  27329. color: #767de1;
  27330. margin-left: 10px;
  27331. }
  27332. .redCss {
  27333. color: red;
  27334. }
  27335. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27336. color: rgb(0 123 255) !important;
  27337. }
  27338. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27339. color: rgb(0 123 255) !important;
  27340. }
  27341. .zuoyeYulan {
  27342. padding-top: 0;
  27343. font-size: 18px;
  27344. display: flex;
  27345. align-items: flex-end;
  27346. }
  27347. .buttonA {
  27348. margin-left: 10px;
  27349. padding: 0;
  27350. }
  27351. .displayBox {
  27352. margin-bottom: 10px;
  27353. display: block;
  27354. border-bottom: 3px solid #eee;
  27355. display: flex;
  27356. align-items: center;
  27357. }
  27358. .easy_comment {
  27359. width: calc(100% - 90px);
  27360. margin-left: 10px;
  27361. display: flex;
  27362. flex-wrap: wrap;
  27363. }
  27364. .easy_comment > div {
  27365. border: 1px solid #4a4a4a;
  27366. color: #666;
  27367. border-radius: 15px;
  27368. padding: 5px 10px;
  27369. font-size: 16px;
  27370. margin-bottom: 10px;
  27371. margin-right: 5px;
  27372. cursor: pointer;
  27373. }
  27374. .easy_comment div:hover {
  27375. border: 1px solid #f7ba2a;
  27376. color: #c69217;
  27377. }
  27378. .xuan_right_box {
  27379. padding: 10px 0;
  27380. background: #f0f4fa;
  27381. margin: 0 15px 0 25px;
  27382. border-bottom-left-radius: 5px;
  27383. border-bottom-right-radius: 5px;
  27384. width: 91.5%;
  27385. }
  27386. .tool_right_box {
  27387. display: flex;
  27388. align-items: center;
  27389. }
  27390. .tool_right_box + .tool_right_box {
  27391. margin-top: 10px;
  27392. }
  27393. .right_box_xuan {
  27394. border-radius: 5px;
  27395. padding: 5px;
  27396. margin-left: 10px;
  27397. min-width: 85px;
  27398. background: #fff;
  27399. color: #0061ff;
  27400. border: 1px solid #0061ff;
  27401. font-size: 14px;
  27402. }
  27403. .pButton:hover {
  27404. opacity: 1 !important;
  27405. }
  27406. .pButton {
  27407. position: fixed;
  27408. text-align: center;
  27409. cursor: pointer;
  27410. z-index: 999;
  27411. right: 20px;
  27412. top: 110px;
  27413. width: 50px;
  27414. height: 50px;
  27415. display: flex;
  27416. align-items: center;
  27417. justify-content: center;
  27418. border-radius: 5px;
  27419. }
  27420. .pzClass {
  27421. width: calc(100% - 340px);
  27422. }
  27423. .newDialogCss {
  27424. /* position: fixed;
  27425. right: 5%;
  27426. top: 50%;
  27427. width: 340px;
  27428. transform: translateY(-50%);
  27429. height: 60%;
  27430. box-shadow: 0px 0 8px 0px #555555;
  27431. border-radius: 15px;
  27432. z-index: 999; */
  27433. position: fixed;
  27434. right: 20px;
  27435. top: 101px;
  27436. width: 330px;
  27437. height: calc(100% - 80px);
  27438. z-index: 999;
  27439. background: #fff;
  27440. border-top-right-radius: 0px;
  27441. border-bottom-right-radius: 0px;
  27442. overflow: hidden;
  27443. }
  27444. .newDialogCss > .scoreList {
  27445. width: 100%;
  27446. height: 100%;
  27447. box-sizing: border-box;
  27448. padding: 10px 15px;
  27449. overflow: auto;
  27450. padding-bottom: 80px;
  27451. }
  27452. .pzTop {
  27453. color: #fff;
  27454. background: #000;
  27455. display: flex;
  27456. flex-direction: row;
  27457. flex-wrap: nowrap;
  27458. align-items: center;
  27459. justify-content: space-between;
  27460. height: 40px;
  27461. border-radius: 15px 15px 0 0;
  27462. user-select: none;
  27463. }
  27464. .pzTop2 .checkbox {
  27465. display: flex;
  27466. align-items: center;
  27467. padding: 5px 10px;
  27468. flex: 0 0 auto;
  27469. font-weight: bold;
  27470. border-bottom: 1px solid #eee;
  27471. justify-content: space-between;
  27472. }
  27473. .checkbox > .cb-tabList {
  27474. display: flex;
  27475. align-items: center;
  27476. }
  27477. .cb-tabList > div {
  27478. margin-right: 20px;
  27479. font-weight: 400;
  27480. cursor: pointer;
  27481. }
  27482. .cb-tabList > .cb-tabItem {
  27483. color: #1684fc;
  27484. position: relative;
  27485. }
  27486. .cb-tabItem::after {
  27487. content: "";
  27488. width: 100%;
  27489. height: 2px;
  27490. background: #1684fc;
  27491. position: absolute;
  27492. bottom: -5px;
  27493. left: 0;
  27494. }
  27495. .pzTop2 .check {
  27496. text-align: center;
  27497. cursor: pointer;
  27498. box-sizing: border-box;
  27499. display: flex;
  27500. }
  27501. .pzTop2 img {
  27502. width: 25px;
  27503. cursor: pointer;
  27504. }
  27505. .pzTop > div:nth-child(1) {
  27506. padding-left: 10px;
  27507. }
  27508. .pzTop > div:nth-child(2) {
  27509. width: 15px;
  27510. height: 15px;
  27511. padding-right: 10px;
  27512. cursor: pointer;
  27513. }
  27514. .pzTop > div:nth-child(2) > img {
  27515. width: 100%;
  27516. height: 100%;
  27517. }
  27518. .pzBox,
  27519. .noPzBox {
  27520. height: calc(100% - 60px);
  27521. /* background: #ededed; */
  27522. background: #fff;
  27523. /* border-radius: 0 0 15px 15px; */
  27524. }
  27525. .noPzBox {
  27526. display: flex;
  27527. flex-direction: column;
  27528. flex-wrap: nowrap;
  27529. justify-content: center;
  27530. align-items: center;
  27531. }
  27532. .pzList {
  27533. background: #f7f7f7;
  27534. width: 90%;
  27535. margin: 0 auto 15px;
  27536. border-radius: 5px;
  27537. }
  27538. .pzNavTop {
  27539. display: flex;
  27540. flex-direction: row;
  27541. flex-wrap: nowrap;
  27542. padding: 10px 10px 0 10px;
  27543. align-items: center;
  27544. }
  27545. .pzDelete {
  27546. cursor: pointer;
  27547. margin-left: auto;
  27548. font-size: 14px;
  27549. color: #afafaf;
  27550. }
  27551. .pzNavTop > div:nth-child(1) {
  27552. background: #3760af;
  27553. width: 35px;
  27554. height: 35px;
  27555. color: #fff;
  27556. text-align: center;
  27557. line-height: 35px;
  27558. border-radius: 50%;
  27559. font-size: 14px;
  27560. }
  27561. .pzNavTop > div:nth-child(2) {
  27562. font-size: 18px;
  27563. color: #959595;
  27564. margin-left: 5px;
  27565. }
  27566. .pzContent {
  27567. padding: 10px;
  27568. word-break: break-word;
  27569. }
  27570. .pzContent audio {
  27571. width: 100%;
  27572. }
  27573. .pzContent audio::-webkit-media-controls-panel {
  27574. background: #fff;
  27575. }
  27576. .pzContent >>> img {
  27577. max-width: 100%;
  27578. }
  27579. .pzListBox {
  27580. padding-top: 15px;
  27581. height: calc(100% - 110px);
  27582. overflow: auto;
  27583. }
  27584. .addPzButton {
  27585. position: relative;
  27586. margin-top: 3px;
  27587. width: 100%;
  27588. }
  27589. .addPzButton .img1 {
  27590. position: absolute;
  27591. top: 50%;
  27592. right: 25px;
  27593. transform: translateY(-50%);
  27594. height: 100%;
  27595. display: flex;
  27596. align-items: center;
  27597. }
  27598. .addPzButton .img1 div {
  27599. display: flex;
  27600. }
  27601. .addPzButton .img1 div img {
  27602. width: 28px;
  27603. margin-left: 10px;
  27604. cursor: pointer;
  27605. }
  27606. .addPzButton .img1 div span {
  27607. font-size: 14px;
  27608. margin: 4px 0 0 3px;
  27609. color: #afafaf;
  27610. }
  27611. .addPz {
  27612. background: #4b79ce;
  27613. width: 100px;
  27614. color: #fff;
  27615. font-size: 12px;
  27616. height: 30px;
  27617. margin: 0 auto;
  27618. text-align: center;
  27619. line-height: 30px;
  27620. border-radius: 10px;
  27621. cursor: pointer;
  27622. }
  27623. .addDialogCss {
  27624. position: fixed;
  27625. width: 600px;
  27626. height: 70%;
  27627. min-height: 450px;
  27628. box-shadow: 0px 0 8px 0px #555555;
  27629. border-radius: 15px;
  27630. z-index: 999;
  27631. left: 50%;
  27632. top: 50%;
  27633. margin: -18% 0 0 -300px;
  27634. }
  27635. .teacherPz {
  27636. display: flex;
  27637. flex-direction: row;
  27638. align-items: center;
  27639. flex-wrap: nowrap;
  27640. }
  27641. .teacherPzImg {
  27642. width: 30px;
  27643. height: 30px;
  27644. }
  27645. .teacherPzImg > img {
  27646. width: 100%;
  27647. height: 100%;
  27648. }
  27649. .addPzBox {
  27650. height: calc(100% - 40px);
  27651. background: #ededed;
  27652. border-bottom-left-radius: 15px;
  27653. border-bottom-right-radius: 15px;
  27654. }
  27655. .pzAudioClass {
  27656. margin: 15px 14px;
  27657. background: #fff;
  27658. height: 100%;
  27659. display: flex;
  27660. justify-content: center;
  27661. align-items: center;
  27662. }
  27663. .pzConText {
  27664. width: 95%;
  27665. height: 100%;
  27666. margin: 10px auto 0;
  27667. border: none;
  27668. background: #fff;
  27669. border-radius: 0px;
  27670. }
  27671. .pzConText >>> .text {
  27672. height: calc(100% - 82px);
  27673. }
  27674. .addTextCss {
  27675. background: #4b79ce;
  27676. width: 80px;
  27677. height: 30px;
  27678. text-align: center;
  27679. color: #fff;
  27680. line-height: 30px;
  27681. border-radius: 10px;
  27682. margin: 10px auto 0;
  27683. cursor: pointer;
  27684. }
  27685. .pzConText:focus-visible {
  27686. border: none !important;
  27687. }
  27688. .maxWidth {
  27689. width: 1000px;
  27690. }
  27691. .noPz {
  27692. width: 150px;
  27693. margin: 0 auto 20%;
  27694. }
  27695. .noPz > img {
  27696. width: 100%;
  27697. height: 100%;
  27698. }
  27699. .timeAndReply {
  27700. display: flex;
  27701. flex-direction: row;
  27702. flex-wrap: nowrap;
  27703. justify-content: space-between;
  27704. align-items: center;
  27705. font-size: 14px;
  27706. box-sizing: border-box;
  27707. padding: 0 10px 10px 0px;
  27708. }
  27709. .timeAndReply .time {
  27710. color: #bfbfbf;
  27711. padding: 0 0 0 10px;
  27712. box-sizing: border-box;
  27713. }
  27714. .timeAndReply > div:last-child {
  27715. cursor: pointer;
  27716. color: #777;
  27717. }
  27718. /* table 样式 */
  27719. .cont >>> table {
  27720. border-top: 1px solid #ccc;
  27721. border-left: 1px solid #ccc;
  27722. }
  27723. .cont >>> table td,
  27724. .cont >>> table th {
  27725. border-bottom: 1px solid #ccc;
  27726. border-right: 1px solid #ccc;
  27727. /* padding: 20px 5px; */
  27728. padding: 5px 10px;
  27729. max-width: 0px;
  27730. height: 30px;
  27731. vertical-align: baseline;
  27732. box-sizing: border-box;
  27733. }
  27734. .cont >>> table th {
  27735. border-bottom: 2px solid #ccc;
  27736. text-align: center;
  27737. }
  27738. /* blockquote 样式 */
  27739. .cont >>> blockquote {
  27740. display: block;
  27741. border-left: 8px solid #d0e5f2;
  27742. padding: 5px 10px;
  27743. margin: 10px 0;
  27744. line-height: 1.4;
  27745. font-size: 100%;
  27746. background-color: #f1f1f1;
  27747. }
  27748. /* code 样式 */
  27749. .cont >>> code {
  27750. display: inline-block;
  27751. /* *display: inline; */
  27752. zoom: 1;
  27753. background-color: #f1f1f1;
  27754. border-radius: 3px;
  27755. padding: 3px 5px;
  27756. margin: 0 3px;
  27757. }
  27758. .cont >>> pre code {
  27759. display: block;
  27760. }
  27761. /* ul ol 样式 */
  27762. .cont >>> ul,
  27763. ol {
  27764. margin: 10px 0 10px 20px;
  27765. }
  27766. .addPzCheck {
  27767. display: flex;
  27768. flex-direction: row;
  27769. flex-wrap: nowrap;
  27770. padding: 10px 15px 0;
  27771. }
  27772. .addPzCheck span {
  27773. cursor: pointer;
  27774. padding-bottom: 5px;
  27775. font-weight: bold;
  27776. }
  27777. .addPzCheck span + span {
  27778. margin-left: 10px;
  27779. }
  27780. .addPzCheck .isChooseActive {
  27781. color: #3e88f4;
  27782. border-bottom: 2px solid #2f80f3;
  27783. }
  27784. /* code 样式 */
  27785. .cont {
  27786. /* -webkit-user-modify: read-write; */
  27787. overflow-wrap: break-word;
  27788. -webkit-line-break: after-white-space;
  27789. word-break: break-word;
  27790. white-space: pre-line;
  27791. }
  27792. .scoreBox,
  27793. .scoreDetailBox {
  27794. display: flex;
  27795. align-items: center;
  27796. justify-content: flex-start;
  27797. margin-top: 20px;
  27798. font-size: 18px;
  27799. width: 100%;
  27800. }
  27801. .scoreBox .t,
  27802. .scoreDetailBox .t {
  27803. margin-right: 10px;
  27804. width: 100px;
  27805. text-align: right;
  27806. }
  27807. .scoreDetailBox {
  27808. align-items: flex-start;
  27809. }
  27810. .scoreDetailBox >>> .el-textarea {
  27811. width: calc(100% - 200px);
  27812. }
  27813. .scoreBox >>> .el-input {
  27814. width: 130px;
  27815. font-size: 38px;
  27816. }
  27817. .scoreBox >>> .el-input__inner {
  27818. height: 60px;
  27819. }
  27820. .answerScore {
  27821. position: absolute;
  27822. top: 10px;
  27823. right: 10px;
  27824. background: #0000008f;
  27825. border-radius: 5px;
  27826. padding: 3px 5px;
  27827. font-size: 14px;
  27828. color: #fff;
  27829. cursor: pointer;
  27830. }
  27831. .open_box .switch_box {
  27832. width: 100%;
  27833. margin: 0 auto;
  27834. display: flex;
  27835. justify-content: space-between;
  27836. }
  27837. .open_box .switch_box + .switch_box {
  27838. margin-top: 10px;
  27839. }
  27840. .deleteImg,
  27841. .deleteImg1 {
  27842. width: 25px !important;
  27843. height: 25px !important;
  27844. cursor: pointer;
  27845. position: absolute;
  27846. top: 10px;
  27847. right: 10px;
  27848. }
  27849. .deleteImg2 {
  27850. width: 23px !important;
  27851. height: 23px !important;
  27852. top: 5px;
  27853. right: 5px;
  27854. }
  27855. .deleteImg1 {
  27856. width: 23px !important;
  27857. height: 23px !important;
  27858. top: 5px !important;
  27859. right: 30px !important;
  27860. }
  27861. .rightW {
  27862. right: 40px;
  27863. }
  27864. .drawPBox {
  27865. display: flex;
  27866. flex-direction: column;
  27867. position: relative;
  27868. }
  27869. .drawPBox span {
  27870. font-size: 18px;
  27871. color: #606266;
  27872. padding-bottom: 10px;
  27873. margin: 10px 0;
  27874. border-bottom: 1px solid #eaeaea;
  27875. }
  27876. .drawPBox img {
  27877. width: 500px;
  27878. height: 300px;
  27879. object-fit: contain;
  27880. cursor: pointer;
  27881. margin: 0 auto;
  27882. }
  27883. .sentenBox {
  27884. background: #fff;
  27885. height: 450px;
  27886. overflow: auto;
  27887. background-image: url("../../assets/icon/conSentences/stuBg.png");
  27888. background-position: 102%;
  27889. background-repeat: no-repeat;
  27890. background-size: 60%;
  27891. }
  27892. .addSen {
  27893. background: #409efe;
  27894. width: 90px;
  27895. color: #fff;
  27896. height: 35px;
  27897. text-align: center;
  27898. line-height: 35px;
  27899. border-radius: 5px;
  27900. float: right;
  27901. margin: 10px 20px 0 0;
  27902. cursor: pointer;
  27903. }
  27904. .sentenTop {
  27905. display: flex;
  27906. flex-direction: row;
  27907. flex-wrap: nowrap;
  27908. align-items: center;
  27909. padding: 55px 0 0 20px;
  27910. box-sizing: border-box;
  27911. }
  27912. .sentenTop > div:nth-child(2) {
  27913. width: 300px;
  27914. margin: 0 15px;
  27915. }
  27916. .sentenTop > div:nth-child(3) {
  27917. background: #409efe;
  27918. color: #fff;
  27919. width: 65px;
  27920. height: 35px;
  27921. text-align: center;
  27922. line-height: 35px;
  27923. border-radius: 5px;
  27924. cursor: pointer;
  27925. }
  27926. .cardList,
  27927. .cardList1 {
  27928. padding: 10px 0 10px 0;
  27929. display: flex;
  27930. flex-direction: row;
  27931. flex-wrap: wrap;
  27932. align-items: center;
  27933. box-sizing: border-box;
  27934. border-bottom: 1px solid #f4f4f4;
  27935. width: 98%;
  27936. margin: 0 auto;
  27937. min-width: 60%;
  27938. max-width: 85%;
  27939. }
  27940. .cardList1 {
  27941. padding: 10px 0 10px 10px !important;
  27942. margin: 0 !important;
  27943. }
  27944. .cardBox {
  27945. display: flex;
  27946. flex-direction: row;
  27947. flex-wrap: wrap;
  27948. align-items: center;
  27949. align-content: center;
  27950. }
  27951. .cardBox > div {
  27952. margin-bottom: 10px;
  27953. }
  27954. .isCard,
  27955. .isChooseCard,
  27956. .noCard,
  27957. .isCard1 {
  27958. min-width: 130px;
  27959. width: auto;
  27960. height: 60px;
  27961. text-align: center;
  27962. line-height: 60px;
  27963. font-size: 20px;
  27964. cursor: pointer;
  27965. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  27966. background-size: cover;
  27967. transition: all 2s;
  27968. margin-right: 20px;
  27969. background-size: 100% 100%;
  27970. padding: 0 20px;
  27971. box-sizing: border-box;
  27972. }
  27973. .isCard > div,
  27974. .noCard > div,
  27975. .isCard1 > div {
  27976. white-space: nowrap;
  27977. overflow: hidden;
  27978. text-overflow: ellipsis;
  27979. width: 100%;
  27980. margin: 0 auto;
  27981. }
  27982. .noCard {
  27983. background-image: none;
  27984. }
  27985. .isCard1 {
  27986. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  27987. }
  27988. .isChooseCard {
  27989. background-image: none;
  27990. border: 1px dashed #b9b9b9;
  27991. border-radius: 10px;
  27992. }
  27993. .card {
  27994. width: 130px;
  27995. height: 60px;
  27996. }
  27997. .card > img {
  27998. width: 100%;
  27999. height: 100%;
  28000. }
  28001. .rightCardBox {
  28002. margin: 10px 0 0 10px;
  28003. }
  28004. .rightCardBox > div:nth-child(1) {
  28005. margin-bottom: 10px;
  28006. }
  28007. .cardCss {
  28008. display: flex;
  28009. flex-direction: column;
  28010. flex-wrap: nowrap;
  28011. align-items: center;
  28012. border-bottom: 3px solid #b4c3d3;
  28013. padding: 0 0 5px 0;
  28014. margin-right: 10px;
  28015. }
  28016. .cardCss > div:nth-child(2) {
  28017. background: #5b7b9d;
  28018. color: #fff;
  28019. width: 20px;
  28020. height: 20px;
  28021. border-radius: 50%;
  28022. text-align: center;
  28023. line-height: 20px;
  28024. }
  28025. .isWrong {
  28026. display: flex;
  28027. flex-direction: row;
  28028. flex-wrap: nowrap;
  28029. align-content: center;
  28030. align-items: center;
  28031. }
  28032. .answerRight {
  28033. width: 25%;
  28034. }
  28035. .isTj {
  28036. display: flex;
  28037. flex-direction: row;
  28038. flex-wrap: nowrap;
  28039. align-items: center;
  28040. }
  28041. .isTj > div:nth-child(2) {
  28042. color: #727070;
  28043. margin-left: 10px;
  28044. }
  28045. .isTjImg {
  28046. width: 30px;
  28047. height: 30px;
  28048. }
  28049. .isTjImg > img {
  28050. width: 100%;
  28051. height: 100%;
  28052. }
  28053. .cardAnswerBox {
  28054. font-size: 18px;
  28055. width: 97%;
  28056. border: 5px;
  28057. padding: 0;
  28058. border-radius: 5px;
  28059. margin: 10px auto;
  28060. word-break: break-word;
  28061. }
  28062. .w_name {
  28063. margin-bottom: 10px;
  28064. }
  28065. .w_name span {
  28066. font-size: 16px;
  28067. }
  28068. .w_teachert {
  28069. width: 50px !important;
  28070. position: absolute;
  28071. height: auto !important;
  28072. z-index: 10;
  28073. right: 25px;
  28074. top: -25px;
  28075. }
  28076. /* .group_workBox {
  28077. } */
  28078. .group_workBox + .group_workBox {
  28079. margin-top: 20px;
  28080. }
  28081. .group_box {
  28082. padding-bottom: 20px;
  28083. border-bottom: 2px solid #f0f0f0;
  28084. margin-top: 10px;
  28085. }
  28086. .group_title {
  28087. display: flex;
  28088. align-items: center;
  28089. justify-content: space-between;
  28090. width: 95%;
  28091. }
  28092. .group_name {
  28093. background-image: url(../../assets/icon/groupN.png);
  28094. width: 220px;
  28095. background-size: 100% 100%;
  28096. height: 67px;
  28097. padding: 0 20px 0 43px;
  28098. box-sizing: border-box;
  28099. line-height: 63px;
  28100. color: #fff;
  28101. overflow: hidden;
  28102. white-space: nowrap;
  28103. text-overflow: ellipsis;
  28104. }
  28105. .group_work {
  28106. width: 100%;
  28107. padding: 0 10px;
  28108. box-sizing: border-box;
  28109. display: flex;
  28110. flex-wrap: wrap;
  28111. }
  28112. .g_d_box {
  28113. display: flex;
  28114. flex-flow: wrap;
  28115. justify-content: space-around;
  28116. }
  28117. .g_d_box .isChair {
  28118. background-image: url(../../assets/avatar.png) !important;
  28119. }
  28120. .g_d_group {
  28121. width: 500px;
  28122. margin-bottom: 80px;
  28123. }
  28124. .g_d_group_chair {
  28125. display: flex;
  28126. align-items: center;
  28127. justify-content: center;
  28128. }
  28129. .g_d_group_chair > div + div {
  28130. margin-left: 30px;
  28131. }
  28132. .g_d_group_chair > div,
  28133. .g_d_group_chair2 > div {
  28134. display: flex;
  28135. flex-direction: column;
  28136. align-items: center;
  28137. }
  28138. .g_d_group_chair > div > span:nth-child(1),
  28139. .g_d_group_chair2 > div > span:nth-child(1) {
  28140. background-image: url(../../assets/icon/chair.png);
  28141. width: 50px;
  28142. height: 50px;
  28143. display: block;
  28144. background-size: 100% 100%;
  28145. }
  28146. .g_d_group_tableBox {
  28147. display: flex;
  28148. align-items: center;
  28149. justify-content: center;
  28150. }
  28151. .g_d_group_chair2 {
  28152. display: flex;
  28153. flex-direction: column;
  28154. align-items: center;
  28155. justify-content: center;
  28156. }
  28157. .g_d_group_chair2 > div + div {
  28158. margin-top: 10px;
  28159. }
  28160. .g_d_group_table {
  28161. background-image: url(../../assets/icon/groupBg.png);
  28162. width: 354px;
  28163. height: 196px;
  28164. background-size: 100% 100%;
  28165. display: flex;
  28166. align-items: center;
  28167. justify-content: center;
  28168. flex-direction: column;
  28169. color: #fff;
  28170. }
  28171. .g_d_group_table > div:nth-child(1) {
  28172. font-size: 24px;
  28173. margin-bottom: 5px;
  28174. }
  28175. .g_d_group_table > div:nth-child(2) div {
  28176. cursor: pointer;
  28177. background: #2e77bf;
  28178. padding: 4px 10px;
  28179. border-radius: 5px;
  28180. }
  28181. .groupBox {
  28182. }
  28183. .groupContent + .groupContent {
  28184. margin-top: 30px;
  28185. }
  28186. .groupTitle {
  28187. font-size: 24px;
  28188. color: rgb(80, 80, 80);
  28189. margin-bottom: 20px;
  28190. }
  28191. .groupName {
  28192. display: flex;
  28193. align-items: center;
  28194. }
  28195. .groupn {
  28196. font-size: 15px;
  28197. margin-right: 10px;
  28198. }
  28199. .groupName + .groupName {
  28200. margin-top: 15px;
  28201. }
  28202. .groupBtn {
  28203. margin-left: 10px;
  28204. }
  28205. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28206. text-align: left;
  28207. }
  28208. .g_d_btnBox {
  28209. display: flex;
  28210. justify-content: flex-end;
  28211. align-items: center;
  28212. margin-bottom: 20px;
  28213. }
  28214. .updateChair {
  28215. position: relative;
  28216. }
  28217. .updateChairBtn {
  28218. position: absolute;
  28219. width: 50px;
  28220. height: 50px;
  28221. overflow: hidden;
  28222. /* display: flex; */
  28223. align-items: center;
  28224. justify-content: center;
  28225. background: #00000087;
  28226. color: #fff;
  28227. border-radius: 50px;
  28228. display: none;
  28229. cursor: pointer;
  28230. }
  28231. .updateChair:hover .updateChairBtn {
  28232. display: flex;
  28233. }
  28234. .group_staic_box {
  28235. display: flex;
  28236. padding: 30px 40px 10px;
  28237. flex-wrap: wrap;
  28238. }
  28239. .group_staic {
  28240. /* width: 50%; */
  28241. margin-bottom: 20px;
  28242. display: flex;
  28243. align-items: center;
  28244. }
  28245. .group_staic span:nth-child(1) {
  28246. width: 150px;
  28247. text-align: right;
  28248. margin-right: 15px;
  28249. }
  28250. .group_staic span:nth-child(2) {
  28251. background: rgb(0 123 255);
  28252. color: #fff;
  28253. border-radius: 5px;
  28254. padding: 5px;
  28255. }
  28256. .codeFileBox {
  28257. height: 300px;
  28258. background: #fff;
  28259. display: flex;
  28260. align-items: center;
  28261. justify-content: center;
  28262. }
  28263. .codeFileBox img {
  28264. width: 200px;
  28265. margin: 0;
  28266. height: auto;
  28267. }
  28268. .codeFileBox div {
  28269. background: rgb(80, 142, 226);
  28270. color: #fff;
  28271. padding: 10px 20px;
  28272. border-radius: 25px;
  28273. cursor: pointer;
  28274. margin-left: 15px;
  28275. }
  28276. .radioBox {
  28277. display: flex;
  28278. flex-direction: column;
  28279. flex-wrap: nowrap;
  28280. align-items: flex-start;
  28281. }
  28282. .radioBox > div {
  28283. margin: 10px 0 0 10px;
  28284. }
  28285. /* .radioBox >>> .el-radio__input,
  28286. .radioBox >>> .el-checkbox__inner {
  28287. margin-left: 10px;
  28288. } */
  28289. .radioBox >>> .el-radio__label,
  28290. .radioBox >>> .el-checkbox__label {
  28291. display: flex;
  28292. align-items: center;
  28293. width: 100%;
  28294. }
  28295. .radioBox >>> .el-radio__label > span {
  28296. width: 100%;
  28297. display: -webkit-box;
  28298. overflow: hidden;
  28299. white-space: normal !important;
  28300. text-overflow: ellipsis;
  28301. word-wrap: break-word;
  28302. }
  28303. .inImg {
  28304. width: 100px;
  28305. cursor: pointer;
  28306. }
  28307. .inImg > img {
  28308. width: 100%;
  28309. height: 100%;
  28310. object-fit: cover;
  28311. }
  28312. .timuImgBox {
  28313. margin: 10px 0;
  28314. display: flex;
  28315. flex-direction: column;
  28316. flex-wrap: wrap;
  28317. align-items: flex-start;
  28318. }
  28319. .timuImg {
  28320. width: 150px;
  28321. margin: 5px 0;
  28322. cursor: pointer;
  28323. }
  28324. .timuImg > img {
  28325. width: 100%;
  28326. height: 100%;
  28327. object-fit: cover;
  28328. }
  28329. .worksTop {
  28330. display: flex;
  28331. flex-direction: row;
  28332. align-items: flex-end;
  28333. }
  28334. .worksTitle {
  28335. display: flex;
  28336. flex-direction: row;
  28337. flex-wrap: nowrap;
  28338. align-items: center;
  28339. }
  28340. .worksTitle::before,
  28341. .worksTop::before {
  28342. content: "";
  28343. display: block;
  28344. width: 3px;
  28345. height: 20px;
  28346. background: #0061ff;
  28347. border-radius: 3px;
  28348. margin: 0 5px 0 0;
  28349. }
  28350. .corOpen {
  28351. margin: 0 0 0 10px;
  28352. font-size: 14px;
  28353. cursor: pointer;
  28354. color: #505050;
  28355. }
  28356. .corOpen:hover {
  28357. color: #499eef;
  28358. }
  28359. .navCorOpenBox {
  28360. display: flex;
  28361. flex-direction: row;
  28362. align-items: center;
  28363. justify-content: space-between;
  28364. height: 55px;
  28365. background: #ffffff;
  28366. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28367. border-radius: 8px 8px 0px 0px;
  28368. z-index: 9;
  28369. position: relative;
  28370. }
  28371. .navCorOpen {
  28372. padding-right: 15px;
  28373. cursor: pointer;
  28374. width: 45px;
  28375. display: flex;
  28376. }
  28377. .navCorOpen > img {
  28378. width: 100%;
  28379. height: 100%;
  28380. }
  28381. .mlImg {
  28382. width: 40px !important;
  28383. min-width: 40px;
  28384. cursor: pointer;
  28385. transform: rotate(180deg);
  28386. }
  28387. .mlImg > img {
  28388. width: 100%;
  28389. height: 100%;
  28390. }
  28391. .navLeftCss {
  28392. width: 100% !important;
  28393. left: 0 !important;
  28394. }
  28395. .isContentCss {
  28396. width: 100% !important;
  28397. }
  28398. .isAllWidth {
  28399. width: 100% !important;
  28400. }
  28401. .group_switch {
  28402. margin-right: 10px;
  28403. height: 30px;
  28404. display: flex;
  28405. align-items: center;
  28406. }
  28407. .group_switch > span {
  28408. margin-right: 5px;
  28409. }
  28410. .fileC_box {
  28411. padding-top: 15px;
  28412. }
  28413. .fileC_box > .fileC_title {
  28414. padding: 10px 5px 14px 10px;
  28415. border-top: 1px solid #cad1dc;
  28416. font-size: 14px;
  28417. font-weight: 400;
  28418. color: #cad1dc;
  28419. width: calc(100% - 20px);
  28420. margin: 0 auto;
  28421. box-sizing: border-box;
  28422. }
  28423. .pl_select_box {
  28424. height: 40px;
  28425. line-height: 40px;
  28426. width: 100%;
  28427. cursor: pointer;
  28428. padding: 0 20px;
  28429. box-sizing: border-box;
  28430. border-radius: 5px;
  28431. border: 1px solid #d6d6d6;
  28432. white-space: nowrap;
  28433. overflow: hidden;
  28434. text-overflow: ellipsis;
  28435. background: #fff;
  28436. text-align: left;
  28437. }
  28438. .newButton {
  28439. width: 102px;
  28440. height: 36px;
  28441. background: #e7ebf1;
  28442. border-radius: 4px;
  28443. color: #0e1e33;
  28444. font-weight: 400;
  28445. font-size: 14px;
  28446. border: none;
  28447. float: right;
  28448. margin-left: 10px;
  28449. }
  28450. .el-table >>> .even_row {
  28451. background-color: #f0f4fa;
  28452. }
  28453. .stageBoxCss,
  28454. .stageBoxIsCss {
  28455. display: flex;
  28456. flex-direction: row;
  28457. flex-wrap: nowrap;
  28458. align-items: center;
  28459. height: 50px;
  28460. border-bottom: 1px solid #e2f5fc;
  28461. cursor: pointer;
  28462. width: 100%;
  28463. }
  28464. .stageBoxIsCss {
  28465. background: #0061ff;
  28466. color: #fff;
  28467. border-radius: 8px;
  28468. }
  28469. .closeTri,
  28470. .closeTri1 {
  28471. min-width: 15px;
  28472. width: 15px;
  28473. height: 15px;
  28474. }
  28475. .closeTri1 {
  28476. padding-left: 10px;
  28477. cursor: pointer;
  28478. }
  28479. .closeTri > img,
  28480. .closeTri1 > img {
  28481. width: 100%;
  28482. height: 100%;
  28483. /* transition: all .5s; */
  28484. }
  28485. .noToolBlue {
  28486. min-width: 10px;
  28487. width: 10px;
  28488. height: 10px;
  28489. background: #0061ff;
  28490. border-radius: 50%;
  28491. margin-left: 13px;
  28492. }
  28493. .stageChild,
  28494. .toolChild {
  28495. height: 0;
  28496. overflow: hidden;
  28497. transition: all 0.5s;
  28498. }
  28499. /* .toolChild { */
  28500. /* margin: 0 0 0 17px;
  28501. padding: 0 0 0 20px;
  28502. border-left: 1px solid #d7d7d7; */
  28503. /* } */
  28504. .toolChild > div + div {
  28505. margin-top: 5px;
  28506. }
  28507. .gjCss {
  28508. display: flex;
  28509. flex-direction: row;
  28510. flex-wrap: nowrap;
  28511. align-items: center;
  28512. padding: 10px 0 10px 40px;
  28513. box-sizing: border-box;
  28514. font-size: 14px;
  28515. cursor: pointer;
  28516. border-radius: 5px;
  28517. }
  28518. .toolChild > div {
  28519. position: relative;
  28520. width: 100%;
  28521. }
  28522. /* .toolChild > div::before { */
  28523. /* content: "";
  28524. width: 15px;
  28525. height: 1px;
  28526. background: #cad1dc;
  28527. position: absolute;
  28528. top: 24px;
  28529. left: -20px;
  28530. display: block; */
  28531. /* } */
  28532. .isGjCss {
  28533. /* color: #0061ff; */
  28534. color: #fff;
  28535. background: rgb(55, 129, 252);
  28536. /* background-color: #e0eafb !important;
  28537. color: #0061ff !important; */
  28538. }
  28539. .navItem {
  28540. background: #ffffff;
  28541. border-radius: 4px;
  28542. width: 100%;
  28543. margin: 10px auto;
  28544. position: relative;
  28545. height: 40px;
  28546. display: flex;
  28547. flex-direction: row;
  28548. flex-wrap: nowrap;
  28549. align-items: center;
  28550. }
  28551. .navItemList {
  28552. display: flex;
  28553. flex-direction: row;
  28554. flex-wrap: nowrap;
  28555. align-items: center;
  28556. padding: 0 13px;
  28557. cursor: pointer;
  28558. width: calc(100% - 60px);
  28559. height: 100%;
  28560. }
  28561. .navItemList > div:first-child {
  28562. min-width: 60px;
  28563. }
  28564. .navItemList > div:last-child {
  28565. width: calc(100% - 80px);
  28566. white-space: nowrap;
  28567. overflow: hidden;
  28568. text-overflow: ellipsis;
  28569. word-break: break-word;
  28570. }
  28571. /* .isItemList > div {
  28572. color: #fff !important;
  28573. } */
  28574. .tool_work_box {
  28575. width: 100%;
  28576. padding: 0 37px 0;
  28577. box-sizing: border-box;
  28578. }
  28579. .tool_box {
  28580. width: 100%;
  28581. padding: 0 0 0 20px;
  28582. }
  28583. .tool_type_box {
  28584. display: flex;
  28585. flex-direction: row;
  28586. align-items: baseline;
  28587. flex-wrap: nowrap;
  28588. justify-content: flex-start;
  28589. position: relative;
  28590. }
  28591. .toolSort {
  28592. display: flex;
  28593. flex-direction: row;
  28594. flex-wrap: wrap;
  28595. justify-content: flex-start;
  28596. align-items: flex-start;
  28597. padding: 0 0 15px 0;
  28598. }
  28599. .toolSort > div {
  28600. margin: 0 10px 0 0;
  28601. width: 135px;
  28602. box-sizing: border-box;
  28603. border: 2px solid transparent;
  28604. }
  28605. .tools {
  28606. width: 100%;
  28607. display: flex;
  28608. flex-direction: column;
  28609. flex-wrap: nowrap;
  28610. align-items: flex-start;
  28611. }
  28612. .whiteBIcon {
  28613. width: fit-content;
  28614. cursor: pointer;
  28615. display: flex;
  28616. flex-direction: column;
  28617. flex-wrap: nowrap;
  28618. align-items: center;
  28619. font-size: 14px;
  28620. }
  28621. .tool:hover {
  28622. border: 2px solid #a5c7ff;
  28623. border-radius: 5px;
  28624. }
  28625. .whiteBIcon > img {
  28626. width: 65px;
  28627. height: 100%;
  28628. }
  28629. .whiteBIcon > img {
  28630. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  28631. border-radius: 15px;
  28632. }
  28633. .check {
  28634. /* width: 20px;
  28635. height: 20px; */
  28636. cursor: pointer;
  28637. margin: 10px 0;
  28638. position: absolute;
  28639. right: 2px;
  28640. top: -5px;
  28641. }
  28642. .noChoose,
  28643. .isChoose {
  28644. width: 15px;
  28645. height: 15px;
  28646. border-radius: 50%;
  28647. border: 1px solid #adadad;
  28648. }
  28649. .isChoose {
  28650. border: 4px solid #0363ff !important;
  28651. width: 10px;
  28652. height: 10px;
  28653. }
  28654. .isToolChoose {
  28655. border: 2px solid #5394ff !important;
  28656. border-radius: 5px;
  28657. box-shadow: 0 0 6px 0px #5394ff;
  28658. }
  28659. .checkDiv {
  28660. display: flex;
  28661. align-items: center;
  28662. }
  28663. .checkDiv span {
  28664. margin-left: 5px;
  28665. color: #858585;
  28666. }
  28667. .check img {
  28668. width: 20px;
  28669. height: 20px;
  28670. }
  28671. .lockTaskIcon {
  28672. width: 20px;
  28673. height: 20px;
  28674. position: absolute;
  28675. right: 10px;
  28676. top: 10px;
  28677. }
  28678. .lockTaskIcon > img {
  28679. width: 100%;
  28680. height: 100%;
  28681. }
  28682. .pick_box {
  28683. display: flex;
  28684. align-items: flex-start;
  28685. flex-wrap: wrap;
  28686. }
  28687. .selectBox {
  28688. width: 110px;
  28689. margin-left: 10px;
  28690. margin: 0 10px 0 auto;
  28691. }
  28692. .selectBox >>> .el-input__inner {
  28693. height: 30px;
  28694. line-height: 30px;
  28695. }
  28696. .selectBox >>> .el-input__icon {
  28697. line-height: 30px;
  28698. }
  28699. .sentenceTitle {
  28700. display: flex;
  28701. flex-direction: row;
  28702. flex-wrap: nowrap;
  28703. align-items: center;
  28704. }
  28705. .sentenceTitle::before {
  28706. content: attr(index);
  28707. background: #3681fc;
  28708. border-radius: 50%;
  28709. color: #fff;
  28710. width: 25px;
  28711. height: 25px;
  28712. min-width: 25px;
  28713. min-height: 25px;
  28714. text-align: center;
  28715. line-height: 25px;
  28716. margin-right: 5px;
  28717. }
  28718. .hfBox {
  28719. padding: 10px;
  28720. box-sizing: border-box;
  28721. }
  28722. .whoReplyWho {
  28723. display: flex;
  28724. flex-direction: row;
  28725. flex-wrap: nowrap;
  28726. align-items: baseline;
  28727. justify-content: flex-start;
  28728. }
  28729. .hfBottom {
  28730. display: flex;
  28731. flex-direction: row;
  28732. flex-wrap: nowrap;
  28733. align-items: center;
  28734. justify-content: space-between;
  28735. font-size: 14px;
  28736. }
  28737. .deleteHfItem {
  28738. cursor: pointer;
  28739. width: 20px;
  28740. height: 20px;
  28741. }
  28742. .deleteHfItem > img {
  28743. width: 100%;
  28744. height: 100%;
  28745. }
  28746. .whoReplyWho > .hfImg {
  28747. width: 12px;
  28748. height: 12px;
  28749. margin: 0 5px;
  28750. }
  28751. .whoReplyWho > .hfImg > img {
  28752. width: 100%;
  28753. height: 100%;
  28754. }
  28755. .hfContent {
  28756. padding-top: 10px;
  28757. box-sizing: border-box;
  28758. display: -webkit-box;
  28759. overflow: hidden;
  28760. white-space: normal !important;
  28761. text-overflow: ellipsis;
  28762. word-wrap: break-word;
  28763. -webkit-box-orient: vertical;
  28764. }
  28765. .hfTime {
  28766. text-align: left;
  28767. box-sizing: border-box;
  28768. padding: 10px 0 10px 0px;
  28769. color: #bfbfbf;
  28770. font-size: 14px;
  28771. }
  28772. .btnAllNT {
  28773. position: fixed;
  28774. bottom: 100px;
  28775. right: 40px;
  28776. z-index: 999;
  28777. display: flex;
  28778. flex-direction: row;
  28779. }
  28780. .btnAllNT > img {
  28781. cursor: pointer;
  28782. width: 80px;
  28783. }
  28784. .toolMask {
  28785. position: fixed;
  28786. width: 100%;
  28787. height: 100%;
  28788. background: #3f3c3c;
  28789. opacity: 0.5;
  28790. top: 0;
  28791. left: 0;
  28792. z-index: 999;
  28793. }
  28794. .addToolCss {
  28795. position: fixed;
  28796. z-index: 999;
  28797. background: #fff;
  28798. right: 5%;
  28799. bottom: 18%;
  28800. min-width: 1035px;
  28801. min-height: 300px;
  28802. border-radius: 10px;
  28803. box-shadow: 0 0 8px 1px #b2b2b2;
  28804. }
  28805. .toolTop {
  28806. display: flex;
  28807. flex-direction: row;
  28808. flex-wrap: nowrap;
  28809. justify-content: space-between;
  28810. align-items: center;
  28811. padding: 20px;
  28812. }
  28813. .toolTop > div:nth-child(2) {
  28814. width: 15px;
  28815. height: 15px;
  28816. padding-right: 10px;
  28817. cursor: pointer;
  28818. }
  28819. .toolTop > div:nth-child(2) > img {
  28820. width: 100%;
  28821. height: 100%;
  28822. }
  28823. .fullStyle >>> .el-dialog__body {
  28824. height: calc(100% - 125px) !important;
  28825. box-sizing: border-box;
  28826. padding: 30px 0 !important;
  28827. background: #fff !important;
  28828. }
  28829. .fullStyle >>> .el-dialog {
  28830. width: 100% !important;
  28831. max-width: 100% !important;
  28832. height: 100% !important;
  28833. margin: 0 !important;
  28834. }
  28835. .fullStyle {
  28836. width: 100% !important;
  28837. max-width: 100% !important;
  28838. height: 100% !important;
  28839. margin: 0 auto !important;
  28840. }
  28841. .fullStyle >>> .el-dialog__footer {
  28842. background: #fff !important;
  28843. }
  28844. .engUpBox {
  28845. width: 100%;
  28846. height: 100%;
  28847. }
  28848. .engTitle,
  28849. .engText {
  28850. display: flex;
  28851. flex-direction: row;
  28852. flex-wrap: nowrap;
  28853. align-items: flex-start;
  28854. padding: 0 20px 20px 20px;
  28855. box-sizing: border-box;
  28856. }
  28857. .engTitle > .div:first-child,
  28858. .engText > div:first-child {
  28859. min-width: 75px;
  28860. }
  28861. .correctBox {
  28862. width: 100%;
  28863. display: flex;
  28864. flex-direction: row;
  28865. flex-wrap: nowrap;
  28866. align-items: flex-start;
  28867. }
  28868. .oldBox {
  28869. width: 50%;
  28870. height: 100%;
  28871. display: flex;
  28872. flex-direction: column;
  28873. flex-wrap: nowrap;
  28874. align-items: center;
  28875. border-top: 1px solid #d9d9d9;
  28876. border-left: 1px solid #d9d9d9;
  28877. border-right: 1px solid #d9d9d9;
  28878. }
  28879. .oldBox > div:first-child {
  28880. width: 100%;
  28881. text-align: center;
  28882. background: #d9d9d9;
  28883. height: 35px;
  28884. line-height: 35px;
  28885. font-weight: bold;
  28886. }
  28887. .oldText {
  28888. width: 100%;
  28889. height: calc(100% - 35px);
  28890. overflow: auto;
  28891. margin: 10px 0;
  28892. display: flex;
  28893. flex-direction: column;
  28894. flex-wrap: nowrap;
  28895. align-content: center;
  28896. align-items: center;
  28897. }
  28898. .detailBox {
  28899. width: 50%;
  28900. padding: 10px;
  28901. background: #f6f6f6;
  28902. border-radius: 5px;
  28903. }
  28904. .oldDetail,
  28905. .oldDetail1 {
  28906. padding-bottom: 30px;
  28907. }
  28908. .oldImg {
  28909. width: 30px;
  28910. height: 30px;
  28911. }
  28912. .oldImg > img {
  28913. width: 100%;
  28914. height: 100%;
  28915. }
  28916. .allName {
  28917. min-width: 200px;
  28918. white-space: nowrap;
  28919. overflow: hidden;
  28920. text-overflow: ellipsis;
  28921. word-break: break-word;
  28922. cursor: pointer;
  28923. text-align: center;
  28924. border: 1px solid #bcc2cc;
  28925. box-sizing: border-box;
  28926. }
  28927. .engUpTop {
  28928. max-height: 300px;
  28929. overflow: auto;
  28930. }
  28931. .isUpdateToolDetailClass {
  28932. padding: 0 !important;
  28933. }
  28934. .isUpdateToolDetailClass textarea {
  28935. padding: 12px;
  28936. font-size: 16px;
  28937. min-height: 100%;
  28938. width: 100%;
  28939. box-sizing: border-box;
  28940. outline: none;
  28941. border: none;
  28942. line-height: 30px;
  28943. resize: none;
  28944. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  28945. "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  28946. color: #838383;
  28947. }
  28948. .show_taskD {
  28949. min-width: fit-content;
  28950. margin-left: 10px;
  28951. display: flex;
  28952. align-items: center;
  28953. font-size: 14px;
  28954. cursor: pointer;
  28955. color: #717c8d;
  28956. }
  28957. .show_taskD > img {
  28958. width: 15px;
  28959. margin-right: 5px;
  28960. transition: 0.2s all;
  28961. transform: rotate(-90deg);
  28962. }
  28963. .show_taskD.show > img {
  28964. transform: rotate(0deg);
  28965. }
  28966. .correctCss {
  28967. position: absolute;
  28968. bottom: -70px;
  28969. background: #409eff;
  28970. color: #fff;
  28971. }
  28972. .ScoreBtn {
  28973. background: rgba(87, 159, 248, 1);
  28974. display: flex;
  28975. justify-content: center;
  28976. align-items: center;
  28977. color: #fff;
  28978. font-size: 14px;
  28979. padding: 8px 12px;
  28980. border-radius: 5px;
  28981. cursor: pointer;
  28982. }
  28983. .max-height-popover .el-popover {
  28984. min-height: 200px;
  28985. max-height: 400px; /* 设置最大高度 */
  28986. overflow: auto; /* 超出部分显示滚动条 */
  28987. }
  28988. .blueRootCss {
  28989. display: block;
  28990. margin-right: 5px;
  28991. }
  28992. .stuLookScore {
  28993. position: absolute;
  28994. top: 12px;
  28995. right: 40px;
  28996. background: #0000008f;
  28997. border-radius: 5px;
  28998. padding: 3px 5px;
  28999. font-size: 14px;
  29000. color: #fff;
  29001. cursor: pointer;
  29002. }
  29003. div::-webkit-scrollbar {
  29004. width: 10px;
  29005. height: 6px;
  29006. }
  29007. </style>