studyStudent.vue 1020 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787
  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>
  191. <div
  192. v-if="nav.tool[0].tool != undefined"
  193. class="toolChild"
  194. :class="{ toolActive: nav.isOpen }"
  195. >
  196. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  197. <div
  198. class="gjCss"
  199. :class="{
  200. isGjCss: t.isTool
  201. }"
  202. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  203. >
  204. <div>工具{{ toolIndex2 + 1 }}:</div>
  205. <div v-if="t.tool == 58">模拟驾驶</div>
  206. <div v-if="t.tool == 59">路径搜索</div>
  207. <div v-if="t.tool == 60">深度学习</div>
  208. <div v-if="t.tool == 10">倒计时</div>
  209. <div v-if="t.tool == 65">挑人</div>
  210. <div v-if="t.tool == 7">思维网格</div>
  211. <div v-if="t.tool == 1">电子白板</div>
  212. <div v-if="t.tool == 52">文档</div>
  213. <div v-if="t.tool == 3">思维导图</div>
  214. <div v-if="t.tool == 48">表格</div>
  215. <div v-if="t.tool == 49">学生分组</div>
  216. <div v-if="t.tool == 4">问卷调查</div>
  217. <div v-if="t.tool == 45">选择题</div>
  218. <div v-if="t.tool == 15">问答</div>
  219. <div v-if="t.tool == 16">作业提交</div>
  220. <div v-if="t.tool == 50">批量上传</div>
  221. <div v-if="t.tool == 41">选择匹配</div>
  222. <div v-if="t.tool == 47">排序</div>
  223. <div v-if="t.tool == 40">个人评价</div>
  224. <div v-if="t.tool == 18">训练平台</div>
  225. <div v-if="t.tool == 21">AIoT Blockly</div>
  226. <div v-if="t.tool == 23">AI Python</div>
  227. <div v-if="t.tool == 24">AI Blockly</div>
  228. <div v-if="t.tool == 32">源码编辑</div>
  229. <div v-if="t.tool == 57">CocoPi</div>
  230. <div v-if="t.tool == 63">海龟编程</div>
  231. <div v-if="t.tool == 28">翻译</div>
  232. <div v-if="t.tool == 31">数字画板</div>
  233. <div v-if="t.tool == 39">GeoGebra</div>
  234. <div v-if="t.tool == 66">公式编辑</div>
  235. <div v-if="t.tool == 67">分子结构</div>
  236. <div v-if="t.tool == 68">时间轴</div>
  237. <div v-if="t.tool == 69">英语写作</div>
  238. <div v-if="t.tool == 70">英语口语</div>
  239. <div v-if="t.tool == 25">目标管理</div>
  240. <div v-if="t.tool == 26">课程设计</div>
  241. <div v-if="t.tool == 62">交互视频</div>
  242. <div v-if="t.tool == 71">AI智能体</div>
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. <div
  252. class="body_student"
  253. :style="{
  254. width: mlDialog
  255. ? 'calc(100% - ' +
  256. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  257. ' - 20% - 40px)'
  258. : 'calc(100% - ' +
  259. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  260. ' - 10px)',
  261. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  262. }"
  263. >
  264. <div
  265. class="new_topFixed"
  266. :style="{
  267. width: mlDialog
  268. ? 'calc(100% - ' +
  269. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  270. ' - 20% - 40px)'
  271. : 'calc(100% - ' +
  272. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  273. ' - 10px)',
  274. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  275. }"
  276. ></div>
  277. <div
  278. class="new_top"
  279. :style="{
  280. width: mlDialog
  281. ? 'calc(100% - ' +
  282. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  283. ' - 20% - 47px)'
  284. : 'calc(100% - ' +
  285. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  286. ' - 18px)',
  287. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  288. }"
  289. >
  290. <div
  291. class="courseIndex"
  292. :style="{
  293. width:
  294. (orgArray.includes(org) || oidArray.includes(oid)) &&
  295. !['2'].includes(tType)
  296. ? '100%'
  297. : 'calc(100% - 745px)'
  298. }"
  299. >
  300. <div>任务{{ taskCount + 1 }}</div>
  301. <el-tooltip
  302. effect="light"
  303. :content="
  304. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  305. "
  306. placement="top"
  307. >
  308. <div>
  309. {{
  310. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  311. .task
  312. }}
  313. </div>
  314. </el-tooltip>
  315. </div>
  316. <div
  317. class="btnAll"
  318. v-show="
  319. (!orgArray.includes(org) && !oidArray.includes(oid)) ||
  320. ['2'].includes(tType)
  321. "
  322. >
  323. <div class="btnLeft">
  324. <el-tooltip effect="light" content="刷新" placement="top">
  325. <div class="reBtnIcon" @click="refreshCourse">
  326. <span>刷新</span>
  327. </div>
  328. </el-tooltip>
  329. <el-tooltip effect="light" content="评论" placement="top">
  330. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  331. <span>评论</span>
  332. </div>
  333. </el-tooltip>
  334. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  335. <el-tooltip effect="light" content="录制" placement="top">
  336. <div class="vedioIcon" @click="startRecording">
  337. <span>录制</span>
  338. </div>
  339. </el-tooltip>
  340. </div>
  341. <div v-else-if="tType == 1 || tType == 4">
  342. <el-tooltip effect="light" content="下载" placement="top">
  343. <div class="vedioIcon1" @click="stopRecording">
  344. <span>下载</span>
  345. </div>
  346. </el-tooltip>
  347. </div>
  348. </div>
  349. <div class="btnRight">
  350. <div
  351. class="last"
  352. @click="nextOrpreSteps(0)"
  353. v-if="!(IsFollow && tType == 2)"
  354. @mouseover="isHovered = true"
  355. @mouseout="isHovered = false"
  356. >
  357. <div class="lastImg">
  358. <img
  359. :src="
  360. isHovered
  361. ? require('../../assets/icon/newIcons/whiteLast.png')
  362. : require('../../assets/icon/newIcons/last.png')
  363. "
  364. alt=""
  365. />
  366. </div>
  367. <div class="lastText">上一步</div>
  368. </div>
  369. <div
  370. class="last"
  371. @click="nextOrpreSteps(1)"
  372. v-if="!(IsFollow && tType == 2)"
  373. @mouseover="isHovered1 = true"
  374. @mouseout="isHovered1 = false"
  375. >
  376. <div class="lastText">下一步</div>
  377. <div class="lastImg">
  378. <img
  379. :src="
  380. isHovered1
  381. ? require('../../assets/icon/newIcons/whiteNext.png')
  382. : require('../../assets/icon/newIcons/next.png')
  383. "
  384. alt=""
  385. />
  386. </div>
  387. </div>
  388. <div
  389. class="last"
  390. @click="juriVisible = true"
  391. v-if="tType == 1"
  392. @mouseover="isHovered2 = true"
  393. @mouseout="isHovered2 = false"
  394. >
  395. <div class="lastImg">
  396. <img
  397. :src="
  398. isHovered2
  399. ? require('../../assets/icon/newIcons/whiteLock.png')
  400. : require('../../assets/icon/newIcons/lock.png')
  401. "
  402. alt=""
  403. />
  404. </div>
  405. <div class="lastText">权限</div>
  406. </div>
  407. <div
  408. class="returnBtn1 returnIcon"
  409. @click.stop="
  410. goTo(
  411. '/courseDetail?userid=' +
  412. userid +
  413. '&oid=' +
  414. oid +
  415. '&org=' +
  416. org +
  417. '&cid=' +
  418. classId +
  419. '&courseId=' +
  420. id +
  421. '&tType=' +
  422. tType +
  423. '&screenType=' +
  424. screenType
  425. )
  426. "
  427. >
  428. <div class="lastImg">
  429. <img src="../../assets/icon/newIcon/return.png" alt="" />
  430. </div>
  431. <div class="lastText" style="color: #000">返回</div>
  432. </div>
  433. </div>
  434. <!-- <div
  435. class="returnBtn lockIcon"
  436. @click="juriVisible = true"
  437. v-if="tType == 1"
  438. >
  439. 权限
  440. </div>
  441. <div
  442. class="returnBtn vedioIcon"
  443. @click="startRecording"
  444. v-if="!videoStart && (tType == 1 || tType == 4)"
  445. >
  446. 录制
  447. </div>
  448. <div
  449. class="returnBtn"
  450. @click="stopRecording"
  451. v-else-if="tType == 1 || tType == 4"
  452. style="background: #ee5255"
  453. >
  454. 下载
  455. </div>
  456. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  457. 评论
  458. </div>
  459. <div
  460. class="returnBtn"
  461. @click="nextOrpreSteps(0)"
  462. v-if="!(IsFollow && tType == 2)"
  463. >
  464. 上一步
  465. </div>
  466. <div
  467. class="returnBtn"
  468. @click="nextOrpreSteps(1)"
  469. v-if="!(IsFollow && tType == 2)"
  470. >
  471. 下一步
  472. </div>
  473. <div class="returnBtn" @click="refreshCourse">刷新</div>
  474. <div
  475. class="returnBtn returnIcon"
  476. @click.stop="
  477. goTo(
  478. '/courseDetail?userid=' +
  479. userid +
  480. '&oid=' +
  481. oid +
  482. '&org=' +
  483. org +
  484. '&cid=' +
  485. classId +
  486. '&courseId=' +
  487. id +
  488. '&tType=' +
  489. tType +
  490. '&screenType=' +
  491. screenType
  492. )
  493. "
  494. >
  495. 返回
  496. </div> -->
  497. </div>
  498. </div>
  499. <div
  500. class="isNoMessage"
  501. v-if="
  502. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  503. .chapterData.length == 0 &&
  504. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  505. .toolChoose[0].tool.length == 0 &&
  506. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  507. .taskDetail == '' &&
  508. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  509. .eList &&
  510. !(
  511. courseDetail.userid == userid ||
  512. (courseDetail.course_teacher &&
  513. courseDetail.course_teacher.indexOf(userid) != -1)
  514. )
  515. "
  516. >
  517. <img src="../../assets/icon/isNoMessage.png" alt />
  518. </div>
  519. <div class="study_top" :class="{ pzClass: pzDialog }">
  520. <div
  521. class="vedioBox"
  522. v-if="
  523. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  524. .taskDetail != '' ||
  525. vChapterData[taskCount].length > 0 ||
  526. fileC[taskCount].length > 0
  527. "
  528. style="border-radius: 0 0 20px 20px"
  529. >
  530. <div
  531. class="taskBox"
  532. v-if="
  533. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  534. .taskDetail != ''
  535. "
  536. >
  537. <div
  538. style="
  539. display: flex;
  540. flex-wrap: nowrap;
  541. flex-direction: column;
  542. position: relative;
  543. "
  544. >
  545. <div
  546. style="
  547. padding: 15px 0;
  548. line-height: 29px;
  549. font-size: 18px;
  550. color: #0e1e33;
  551. "
  552. class="cont"
  553. v-if="
  554. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  555. .taskDetail != ''
  556. "
  557. v-html="
  558. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  559. .taskDetail
  560. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  561. taskCount
  562. ].taskDetail
  563. : '暂无描述'
  564. "
  565. ></div>
  566. </div>
  567. </div>
  568. <div
  569. class="student_head"
  570. v-if="
  571. vChapterData[taskCount].length > 0 ||
  572. fileC[taskCount].length > 0
  573. "
  574. >
  575. <div
  576. class="vedioTaskBox"
  577. v-loading="downLoading || showType == 7"
  578. >
  579. <div
  580. :class="
  581. contentDialog == false
  582. ? 'box_course isContentCss'
  583. : 'box_course'
  584. "
  585. v-if="
  586. vChapterData.length > 0 &&
  587. vChapterData[taskCount] &&
  588. showType !== ''
  589. "
  590. >
  591. <div class="wheel" style="height: auto" v-if="showType === 0">
  592. <div
  593. class="workd_media"
  594. style="height: 650px; width: calc(100% - 50px)"
  595. >
  596. <video-player
  597. class="video-player vjs-custom-skin"
  598. :class="contentDialog == false ? 'isAllWidth' : ''"
  599. :playsinline="true"
  600. :options="playerO[taskCount]"
  601. @play="onPlayerPlay($event)"
  602. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  603. ></video-player>
  604. </div>
  605. </div>
  606. <div
  607. class="wheel"
  608. v-if="showType == 1"
  609. style="
  610. box-shadow: 0 0 6px 1px #f2f2f2;
  611. width: 95%;
  612. margin: 0 auto;
  613. background: #f1f1f1;
  614. "
  615. >
  616. <div class="title">查看文档</div>
  617. <el-form class="textBox">
  618. <el-form-item class="textTitle">
  619. <div style="font-size: 22px">
  620. {{ text.name }}
  621. </div>
  622. </el-form-item>
  623. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  624. <div v-html="text.url" class="textContent cont"></div>
  625. </el-form>
  626. </div>
  627. <div
  628. class="wheel"
  629. v-if="
  630. pptImgUrl1.indexOf(
  631. 'https://view.officeapps.live.com/op/view.aspx?src='
  632. ) != -1 && showType == 2
  633. "
  634. style="width: 95%; margin: 0 auto"
  635. >
  636. <iframe
  637. style="width: 100%; height: 100%; border: none"
  638. :src="pptImgUrl1"
  639. ></iframe>
  640. </div>
  641. <div
  642. class="wheel"
  643. v-else-if="showType == 2"
  644. style="width: 95%; margin: 0 auto"
  645. >
  646. <iframe
  647. style="width: 100%; height: 100%; border: none"
  648. security="restricted"
  649. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  650. :src="pptImgUrl1"
  651. ></iframe>
  652. </div>
  653. <div
  654. class="wheel"
  655. v-if="showType == 3"
  656. style="width: 95%; margin: 0 auto"
  657. >
  658. <pdf
  659. :pdfUrl="pptImgUrl1"
  660. style="width: 100%; height: 100%; overflow: auto"
  661. ></pdf>
  662. </div>
  663. <div
  664. class="wheel"
  665. v-if="showType == 4"
  666. style="width: 95%; margin: 0 auto"
  667. >
  668. <el-image
  669. :src="pptImgUrl1"
  670. fit="contain"
  671. style="width: 100%; height: 100%; cursor: pointer"
  672. @click="previewImg(pptImgUrl1)"
  673. ></el-image>
  674. </div>
  675. </div>
  676. <div
  677. class="pButton"
  678. style="position: absolute; right: 20px; top: 0; z-index: 998"
  679. v-if="!contentDialog"
  680. @click="setContent(true)"
  681. >
  682. <!-- 批 -->
  683. <img
  684. src="../../assets/icon/newIcons/isLeft.png"
  685. style="width: 45px"
  686. alt=""
  687. />
  688. </div>
  689. <div
  690. v-if="contentDialog == true"
  691. :style="{
  692. width:
  693. (vChapterData[taskCount].length > 0 ||
  694. fileC[taskCount].length > 0) &&
  695. showType === ''
  696. ? 'calc(100%)'
  697. : '300px',
  698. margin:
  699. (vChapterData[taskCount].length > 0 ||
  700. fileC[taskCount].length > 0) &&
  701. showType === ''
  702. ? '0 15px'
  703. : '0 15px 0 0'
  704. }"
  705. >
  706. <div
  707. class="vedioList"
  708. v-if="
  709. vChapterData[taskCount].length > 0 ||
  710. fileC[taskCount].length > 0
  711. "
  712. style="height: 650px"
  713. >
  714. <div class="navCorOpenBox">
  715. <div class="navTitile">内容列表:</div>
  716. <div class="navCorOpen" @click="setContent(false)">
  717. <img
  718. src="../../assets/icon/newIcons/isRight.png"
  719. alt=""
  720. />
  721. </div>
  722. </div>
  723. <div class="navBox">
  724. <div
  725. v-show="
  726. vChapterData[taskCount].length > 0 ||
  727. fileC[taskCount].length > 0
  728. "
  729. style="padding: 10px 0 25px 0"
  730. >
  731. <div
  732. class="vedioTimeBox"
  733. v-for="(vitem, vindex) in vChapterData[taskCount]"
  734. :key="vindex + '1'"
  735. >
  736. <div class="navListItem" v-if="vitem.type == 2">
  737. <div
  738. @click="lookVedio(vitem.url, vindex)"
  739. class="navText"
  740. :class="isClickNav == vindex ? 'isClickNav' : ''"
  741. >
  742. <span v-if="vitem.text">{{ vitem.text }}-</span
  743. >{{ vitem.name }}
  744. </div>
  745. <div class="downIcon" @click="downloadFile2(vitem)">
  746. <img
  747. src="../../assets/icon/newIcon/down.png"
  748. alt
  749. />
  750. </div>
  751. </div>
  752. <div class="navListItem" v-if="vitem.type == 6">
  753. <div
  754. @click="lookText(taskCount, vindex)"
  755. class="navText"
  756. :class="isClickNav == vindex ? 'isClickNav' : ''"
  757. >
  758. {{ vitem.name }}.doc
  759. </div>
  760. <div
  761. class="downIcon"
  762. @click="checkFileFull1(vitem.type, vitem)"
  763. >
  764. <img
  765. src="../../assets/icon/newIcon/allScreen.png"
  766. alt
  767. />
  768. </div>
  769. </div>
  770. <div
  771. class="navListItem"
  772. v-if="vitem.type == 8 || vitem.type == 14"
  773. >
  774. <div
  775. @click="doUrl(vitem.url, vindex)"
  776. class="navText"
  777. :class="isClickNav == vindex ? 'isClickNav' : ''"
  778. >
  779. {{ vitem.title ? vitem.title : vitem.url }}
  780. </div>
  781. <div
  782. class="downIcon"
  783. @click="checkFileFull1(vitem.type, vitem)"
  784. >
  785. <img
  786. src="../../assets/icon/newIcon/allScreen.png"
  787. alt
  788. />
  789. </div>
  790. </div>
  791. <div class="navListItem" v-if="vitem.type == 3">
  792. <div
  793. @click="downFile(vitem, vindex)"
  794. class="navText"
  795. :class="isClickNav == vindex ? 'isClickNav' : ''"
  796. >
  797. <span v-if="vitem.text">{{ vitem.text }}-</span
  798. >{{ vitem.name }}
  799. </div>
  800. <div
  801. class="downIcon"
  802. @click="checkFileFull1(vitem.type, vitem)"
  803. >
  804. <img
  805. src="../../assets/icon/newIcon/allScreen.png"
  806. alt
  807. />
  808. </div>
  809. <div class="downIcon" @click="downloadFile2(vitem)">
  810. <img
  811. src="../../assets/icon/newIcon/down.png"
  812. alt
  813. />
  814. </div>
  815. </div>
  816. <div class="navListItem" v-if="vitem.type == 12">
  817. <div class="navText" @click="downloadFile2(vitem)">
  818. <span v-if="vitem.text">{{ vitem.text }}-</span
  819. >{{ vitem.name }}
  820. </div>
  821. <div
  822. class="downIcon"
  823. @click="checkFileFull1(vitem.type, vitem)"
  824. >
  825. <img
  826. src="../../assets/icon/newIcon/allScreen.png"
  827. alt
  828. />
  829. </div>
  830. <div class="downIcon" @click="downloadFile2(vitem)">
  831. <img
  832. src="../../assets/icon/newIcon/down.png"
  833. alt
  834. />
  835. </div>
  836. </div>
  837. <div class="navListItem" v-if="vitem.type == 13">
  838. <div
  839. class="navText"
  840. @click="checkPhoto(vitem, vindex)"
  841. :class="isClickNav == vindex ? 'isClickNav' : ''"
  842. >
  843. {{ vitem.name }}
  844. </div>
  845. <div class="downIcon" @click="downloadFile2(vitem)">
  846. <img
  847. src="../../assets/icon/newIcon/down.png"
  848. alt
  849. />
  850. </div>
  851. </div>
  852. </div>
  853. <div
  854. class="fileC_box"
  855. v-if="fileC[taskCount].length > 0"
  856. >
  857. <div class="fileC_title">以下文件不支持预览</div>
  858. <div
  859. class="vedioTimeBox"
  860. v-for="(vitem, vindex) in fileC[taskCount]"
  861. :key="vindex + '1'"
  862. >
  863. <div class="navListItem" v-if="vitem.type == 12">
  864. <div class="navText" style="color: #acb4bf">
  865. <span v-if="vitem.text">{{ vitem.text }}-</span
  866. >{{ vitem.name }}
  867. </div>
  868. <div
  869. class="downIcon"
  870. @click="downloadFile2(vitem)"
  871. >
  872. <img
  873. src="../../assets/icon/newIcon/down.png"
  874. alt
  875. />
  876. </div>
  877. </div>
  878. </div>
  879. </div>
  880. </div>
  881. </div>
  882. </div>
  883. </div>
  884. </div>
  885. <div style="width: calc(100% - 315px)">
  886. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  887. <!-- <el-button
  888. type="primary"
  889. class="newButton"
  890. @click="checkFileFull(showType, pptImgUrl1)"
  891. >全屏查看</el-button
  892. >
  893. <el-button
  894. type="primary"
  895. class="newButton"
  896. @click="downloadFile(pptImgUrl1)"
  897. v-if="showType != 2"
  898. >文件下载</el-button
  899. > -->
  900. <el-button
  901. class="newButton"
  902. v-if="
  903. showType == 2 &&
  904. pptImgUrl1.indexOf(
  905. 'https://view.officeapps.live.com/op/view.aspx?src='
  906. ) == -1
  907. "
  908. type="primary"
  909. @click="openLine(pptImgUrl1)"
  910. >打开链接
  911. </el-button>
  912. </div>
  913. <!-- <div
  914. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  915. v-if="showType == 1"
  916. >
  917. <el-button
  918. type="primary"
  919. class="newButton"
  920. @click="checkFileFull(showType, text)"
  921. >全屏查看</el-button
  922. >
  923. </div> -->
  924. </div>
  925. </div>
  926. </div>
  927. <div class="student_body" v-resize="resize">
  928. <div
  929. class="vedioBox"
  930. :style="{
  931. borderRadius:
  932. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  933. .taskDetail == '' &&
  934. vChapterData[taskCount].length == 0 &&
  935. fileC[taskCount].length == 0
  936. ? '0 0 20px 20px'
  937. : '20px'
  938. }"
  939. v-if="
  940. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  941. .toolChoose[0].tool &&
  942. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  943. .toolChoose[0].tool.length > 0
  944. "
  945. >
  946. <div
  947. class="toolHeng2"
  948. style="position: relative"
  949. v-if="
  950. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  951. .toolChoose[0].tool &&
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .toolChoose[0].tool.length &&
  954. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  955. .toolChoose[0].tool.length > 0
  956. "
  957. >
  958. <div class="workNav">工作区</div>
  959. <div
  960. class="filebox"
  961. style="flex-wrap: nowrap"
  962. v-for="(tool, toolIndex) in chapInfoList[courseType]
  963. .chapterInfo[0].taskJson[taskCount].toolChoose"
  964. :key="toolIndex"
  965. >
  966. <div class="bzBox">
  967. <div class="yCss"></div>
  968. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  969. 工具{{ toolIndex + 1 }}
  970. </div>
  971. <div
  972. v-if="timeWorkList[toolIndex].length > 0"
  973. style="margin: 0 0 0 10px"
  974. >
  975. {{
  976. timeWorkList[toolIndex][0].time
  977. ? "时间:" + timeWorkList[toolIndex][0].time
  978. : ""
  979. }}
  980. </div>
  981. </div>
  982. <div class="toolBox">
  983. <div>
  984. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  985. :key="indexTool"-->
  986. <!-- <div class="iframeBox">
  987. <div
  988. class="addPoint isBorder"
  989. v-for="(tooC, toolCIndex) in tool.tool"
  990. :key="toolCIndex"
  991. >
  992. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  993. <div
  994. class="iframeName"
  995. >
  996. 电子白板
  997. </div>
  998. <iframe
  999. src="https://iwb.cocorobo.cn/"
  1000. ref="whiteBoard"
  1001. ></iframe>
  1002. </div>
  1003. </div>
  1004. </div>-->
  1005. <div class="noiframeBox">
  1006. <div
  1007. class="addPoint"
  1008. v-for="(tooC, toolCIndex) in tool.tool"
  1009. :key="toolCIndex"
  1010. >
  1011. <div v-if="tooC == 1">
  1012. <img
  1013. src="../../assets/icon/secondToolList/whiteBoard.png"
  1014. alt
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. />
  1017. <div style="margin: 5px 0">电子白板</div>
  1018. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1019. style="position: absolute;right: 33px;top: -30px;">
  1020. 投影
  1021. </div>
  1022. </div>
  1023. <div v-if="tooC == 3">
  1024. <img
  1025. src="../../assets/icon/secondToolList/mindMapping.png"
  1026. alt
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. />
  1029. <div style="margin: 5px 0">思维导图</div>
  1030. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1031. style="position: absolute;right: 33px;top: -30px;">
  1032. 投影
  1033. </div>
  1034. </div>
  1035. <div v-if="tooC == 6">
  1036. <img
  1037. src="../../assets/icon/secondToolList/doc.png"
  1038. alt
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. />
  1041. <div style="margin: 5px 0">协同文档</div>
  1042. </div>
  1043. <div v-if="tooC == 7">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindNetwork.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">思维网格</div>
  1050. <!-- && worksStudent[toolIndex].length>0 -->
  1051. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. 投影
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 8">
  1057. <img
  1058. src="../../assets/icon/secondToolList/library.png"
  1059. alt
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. />
  1062. <div style="margin: 5px 0">素材库</div>
  1063. </div>
  1064. <div v-if="tooC == 17">
  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 == 2">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/secondToolList/note.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">便签</div>
  1079. </div>
  1080. <div v-if="tooC == 4">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/thirdToolList/ask.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">问卷调查</div>
  1087. <div
  1088. class="upload_toolBtn"
  1089. v-if="tType === '1'"
  1090. @click="
  1091. openStatisticalAnalysis(
  1092. tooC,
  1093. toolIndex,
  1094. taskCount,
  1095. 45
  1096. )
  1097. "
  1098. style="position: absolute;right: 33px;top: -30px;"
  1099. >
  1100. 统计分析
  1101. </div>
  1102. </div>
  1103. <div v-if="tooC == 45">
  1104. <img
  1105. @click="addTools(tooC, toolIndex, taskCount)"
  1106. src="../../assets/icon/thirdToolList/choose.png"
  1107. alt
  1108. />
  1109. <div style="margin: 5px 0">选择题</div>
  1110. <div
  1111. class="upload_toolBtn"
  1112. v-if="
  1113. tType === '1'
  1114. "
  1115. @click="
  1116. openChoseWorksDetailDialog(
  1117. tooC,
  1118. toolIndex,
  1119. taskCount,
  1120. 45
  1121. )
  1122. "
  1123. style="position: absolute;right: 33px;top: -30px;"
  1124. >
  1125. 投影
  1126. </div>
  1127. </div>
  1128. <!-- <div v-if="tooC == 5">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/thirdToolList/score.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">量规评分</div>
  1135. </div> -->
  1136. <div v-if="tooC == 10">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/thirdToolList/time.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">倒计时</div>
  1143. </div>
  1144. <div v-if="tooC == 15">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../../assets/icon/thirdToolList/answer.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">问答</div>
  1151. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1152. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1153. 投影
  1154. </div>
  1155. </div>
  1156. <div v-if="tooC == 26">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../../assets/icon/thirdToolList/courseDesign.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">课程设计</div>
  1163. </div>
  1164. <div v-if="tooC == 18">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">训练服务器</div>
  1171. </div>
  1172. <div v-if="tooC == 16">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../../assets/icon/thirdToolList/work.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">作业提交</div>
  1179. </div>
  1180. <div v-if="tooC == 50">
  1181. <img
  1182. @click="addTools(tooC, toolIndex, taskCount)"
  1183. src="../../assets/icon/thirdToolList/plwork.png"
  1184. alt
  1185. />
  1186. <div style="margin: 5px 0">批量上传</div>
  1187. </div>
  1188. <div v-if="tooC == 21">
  1189. <img
  1190. @click="addTools(tooC, toolIndex, taskCount)"
  1191. src="../../assets/icon/fourthToolList/program.png"
  1192. alt
  1193. />
  1194. <div style="margin: 5px 0">AIoT Blockly</div>
  1195. </div>
  1196. <!-- <div v-if="tooC == 22">
  1197. <img
  1198. @click="addTools(tooC, toolIndex, taskCount)"
  1199. src="../../assets/icon/fourthToolList/program.png"
  1200. alt
  1201. />
  1202. <div style="margin: 5px 0">AI体验</div>
  1203. </div> -->
  1204. <div v-if="tooC == 23">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">AI Python</div>
  1211. </div>
  1212. <div v-if="tooC == 24">
  1213. <img
  1214. @click="addTools(tooC, toolIndex, taskCount)"
  1215. src="../../assets/icon/fourthToolList/AIprogram.png"
  1216. alt
  1217. />
  1218. <div style="margin: 5px 0">AI Blockly</div>
  1219. </div>
  1220. <div v-if="tooC == 25">
  1221. <img
  1222. @click="addTools(tooC, toolIndex, taskCount)"
  1223. src="../../assets/icon/thirdToolList/evalua.png"
  1224. alt
  1225. />
  1226. <div style="margin: 5px 0">目标管理</div>
  1227. </div>
  1228. <div v-if="tooC == 31">
  1229. <img
  1230. @click="addTools(tooC, toolIndex, taskCount)"
  1231. src="../../assets/icon/secondToolList/networkPanel.png"
  1232. alt
  1233. />
  1234. <div style="margin: 5px 0">数学画板</div>
  1235. </div>
  1236. <div v-if="tooC == 28">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../../assets/icon/secondToolList/translation.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">翻译</div>
  1243. </div>
  1244. <div v-if="tooC == 37">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../../assets/icon/secondToolList/mohe.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">魔盒识字</div>
  1251. </div>
  1252. <div v-if="tooC == 38">
  1253. <img
  1254. @click="addTools(tooC, toolIndex, taskCount)"
  1255. src="../../assets/icon/secondToolList/24game.png"
  1256. alt
  1257. />
  1258. <div style="margin: 5px 0">24点</div>
  1259. </div>
  1260. <div v-if="tooC == 39">
  1261. <img
  1262. @click="addTools(tooC, toolIndex, taskCount)"
  1263. src="../../assets/icon/secondToolList/GeoGebra.png"
  1264. alt
  1265. />
  1266. <div style="margin: 5px 0">GeoGebra</div>
  1267. </div>
  1268. <div v-if="tooC == 32">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../../assets/icon/thirdToolList/code.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">源码编辑</div>
  1275. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1276. style="position: absolute;left: 110px;bottom: 30px;">
  1277. 上传文件
  1278. <input type="file" accept="*" style="display: none"
  1279. @change="beforeUpload1($event, 7, toolIndex)" />
  1280. </div> -->
  1281. </div>
  1282. <div v-if="tooC == 40">
  1283. <img
  1284. @click="addTools(tooC, toolIndex, taskCount)"
  1285. src="../../assets/icon/secondToolList/eval.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">个人评价</div>
  1289. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1290. style="position: absolute;right: 33px;top: -30px;">
  1291. 投影
  1292. </div>
  1293. </div>
  1294. <div v-if="tooC == 41">
  1295. <img
  1296. @click="addTools(tooC, toolIndex, taskCount)"
  1297. src="../../assets/icon/thirdToolList/select.png"
  1298. alt
  1299. />
  1300. <div style="margin: 5px 0">选择匹配</div>
  1301. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1302. style="position: absolute;right: 33px;top: -30px;">
  1303. 投影
  1304. </div>
  1305. </div>
  1306. <div v-if="tooC == 44">
  1307. <img
  1308. @click="addTools(tooC, toolIndex, taskCount)"
  1309. src="../../assets/icon/thirdToolList/hanClass.png"
  1310. alt
  1311. />
  1312. <div style="margin: 5px 0">汉字宫</div>
  1313. </div>
  1314. <div v-if="tooC == 47">
  1315. <img
  1316. @click="addTools(tooC, toolIndex, taskCount)"
  1317. src="../../assets/icon/fourthToolList/conSentences.png"
  1318. alt
  1319. />
  1320. <div style="margin: 5px 0">排序</div>
  1321. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1322. style="position: absolute;right: 33px;top: -30px;">
  1323. 投影
  1324. </div>
  1325. </div>
  1326. <div v-if="tooC == 48">
  1327. <img
  1328. @click="addTools(tooC, toolIndex, taskCount)"
  1329. src="../../assets/icon/fourthToolList/table.png"
  1330. alt
  1331. />
  1332. <div style="margin: 5px 0">表格</div>
  1333. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1334. style="position: absolute;right: 33px;top: -30px;">
  1335. 投影
  1336. </div>
  1337. </div>
  1338. <div v-if="tooC == 52">
  1339. <img
  1340. @click="addTools(tooC, toolIndex, taskCount)"
  1341. src="../../assets/icon/fourthToolList/text.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">文档</div>
  1345. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1346. style="position: absolute;right: 33px;top: -30px;">
  1347. 投影
  1348. </div>
  1349. </div>
  1350. <div v-if="tooC == 49">
  1351. <img
  1352. @click="addTools(tooC, toolIndex, taskCount)"
  1353. src="../../assets/icon/fourthToolList/group.png"
  1354. alt
  1355. />
  1356. <div style="margin: 5px 0">学生分组</div>
  1357. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1358. style="position: absolute;right: 33px;top: -30px;">
  1359. 投影
  1360. </div>
  1361. </div>
  1362. <div v-if="tooC == 57">
  1363. <img
  1364. @click="addTools(tooC, toolIndex, taskCount)"
  1365. src="../../assets/icon/fourthToolList/cocopi.png"
  1366. alt
  1367. />
  1368. <div style="margin: 5px 0">CocoPi</div>
  1369. </div>
  1370. <div v-if="tooC == 58">
  1371. <img
  1372. @click="addTools(tooC, toolIndex, taskCount)"
  1373. src="../../assets/icon/fourthToolList/car.png"
  1374. alt
  1375. />
  1376. <div style="margin: 5px 0">模拟驾驶</div>
  1377. </div>
  1378. <div v-if="tooC == 59">
  1379. <img
  1380. @click="addTools(tooC, toolIndex, taskCount)"
  1381. src="../../assets/icon/fourthToolList/lineSearch.png"
  1382. alt
  1383. />
  1384. <div style="margin: 5px 0">路径搜索</div>
  1385. </div>
  1386. <div v-if="tooC == 60">
  1387. <img
  1388. @click="addTools(tooC, toolIndex, taskCount)"
  1389. src="../../assets/icon/fourthToolList/deepLearning.png"
  1390. alt
  1391. />
  1392. <div style="margin: 5px 0">深度学习</div>
  1393. </div>
  1394. <div v-if="tooC == 61">
  1395. <img
  1396. @click="addTools(tooC, toolIndex, taskCount)"
  1397. src="../../assets/icon/fourthToolList/allHistory.png"
  1398. alt
  1399. />
  1400. <div style="margin: 5px 0">全历史</div>
  1401. </div>
  1402. <div v-if="tooC == 62">
  1403. <img
  1404. @click="addTools(tooC, toolIndex, taskCount)"
  1405. src="../../assets/icon/fourthToolList/interVideo.png"
  1406. alt
  1407. />
  1408. <div style="margin: 5px 0">交互视频</div>
  1409. </div>
  1410. <div v-if="tooC == 63">
  1411. <img
  1412. @click="addTools(tooC, toolIndex, taskCount)"
  1413. src="../../assets/icon/fourthToolList/Wood.png"
  1414. alt
  1415. />
  1416. <div style="margin: 5px 0">海龟编程</div>
  1417. </div>
  1418. <div v-if="tooC == 71">
  1419. <img
  1420. @click="addTools(tooC, toolIndex, taskCount)"
  1421. src="../../assets/icon/fourthToolList/chatgpt.png"
  1422. alt
  1423. />
  1424. <div style="margin: 5px 0">AI智能体</div>
  1425. </div>
  1426. <div v-if="tooC == 65">
  1427. <img
  1428. @click="addTools(tooC, toolIndex, taskCount)"
  1429. src="../../assets/icon/firstToolList/pickPeople.png"
  1430. alt
  1431. />
  1432. <div style="margin: 5px 0">挑人</div>
  1433. </div>
  1434. <div v-if="tooC == 66">
  1435. <img
  1436. @click="addTools(tooC, toolIndex, taskCount)"
  1437. src="../../assets/icon/secondToolList/formulaEdi.png"
  1438. alt
  1439. />
  1440. <div style="margin: 5px 0">公式编辑</div>
  1441. </div>
  1442. <div v-if="tooC == 67">
  1443. <img
  1444. @click="addTools(tooC, toolIndex, taskCount)"
  1445. src="../../assets/icon/secondToolList/molStr.png"
  1446. alt
  1447. />
  1448. <div style="margin: 5px 0">分子结构</div>
  1449. </div>
  1450. <div v-if="tooC == 68">
  1451. <img
  1452. @click="addTools(tooC, toolIndex, taskCount)"
  1453. src="../../assets/icon/secondToolList/timeAxis.png"
  1454. alt
  1455. />
  1456. <div style="margin: 5px 0">时间轴</div>
  1457. </div>
  1458. <div v-if="tooC == 69">
  1459. <img
  1460. @click="addTools(tooC, toolIndex, taskCount)"
  1461. src="../../assets/icon/secondToolList/english.png"
  1462. alt
  1463. />
  1464. <div style="margin: 5px 0">英语写作</div>
  1465. </div>
  1466. <div v-if="tooC == 70">
  1467. <img
  1468. @click="addTools(tooC, toolIndex, taskCount)"
  1469. src="../../assets/icon/thirdToolList/englishVoice.png"
  1470. alt
  1471. />
  1472. <div style="margin: 5px 0">英语口语</div>
  1473. </div>
  1474. </div>
  1475. </div>
  1476. </div>
  1477. <div
  1478. class="tooldetail"
  1479. v-if="tool.toolDetail != ''"
  1480. :class="{
  1481. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1482. }"
  1483. >
  1484. <!-- <div class="toolTitle">工具描述</div> -->
  1485. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1486. <div
  1487. style="height:100%;"
  1488. v-html="contentConvent(tool.toolDetail)"
  1489. v-if="toolDetailIndex != toolIndex"
  1490. ></div>
  1491. <div v-else @click.stop="" style="height:100%;">
  1492. <textarea
  1493. @change="
  1494. () => {
  1495. $forceUpdate();
  1496. }
  1497. "
  1498. class="checkTextArea"
  1499. rows="3"
  1500. v-autoHeight="70"
  1501. type="text"
  1502. placeholder="请输入任务描述"
  1503. v-model="updateToolDetailInner"
  1504. ></textarea>
  1505. </div>
  1506. </div>
  1507. <el-button
  1508. type="primary"
  1509. v-if="tool.tool[0] == 32"
  1510. style="position: absolute; right: 30px; top: -45px"
  1511. @click="addImg($event)"
  1512. >上传作业<input
  1513. type="file"
  1514. accept="*"
  1515. style="display: none"
  1516. @change="beforeUpload1($event, 7, toolIndex)"
  1517. /></el-button>
  1518. <el-button
  1519. type="primary"
  1520. v-if="tool.tool[0] == 15"
  1521. style="position: absolute; right: 30px; top: -45px"
  1522. @click="openWordCloud(toolIndex)"
  1523. >生成词云</el-button
  1524. >
  1525. <el-button
  1526. type="primary"
  1527. v-if="
  1528. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1529. "
  1530. style="position: absolute; right: 30px; top: -45px"
  1531. @click="uploadWorks(toolIndex)"
  1532. >导出作业</el-button
  1533. >
  1534. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1535. position: absolute;
  1536. right: 30px;
  1537. transform: translateY(-130%);
  1538. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1539. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1540. </div>
  1541. <div
  1542. v-if="
  1543. tType &&
  1544. tType == 2 &&
  1545. !sIsOpen &&
  1546. tool.tool.indexOf(16) != -1
  1547. "
  1548. class="worksBox"
  1549. >
  1550. <div
  1551. class="zuoyeYulan"
  1552. v-if="workStudent[toolIndex].length > 0"
  1553. >
  1554. <span class="worksTitle">作业预览</span>
  1555. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1556. </div>
  1557. <div
  1558. class="worksDetailBox"
  1559. v-if="workStudent[toolIndex].length > 0"
  1560. >
  1561. <div
  1562. class="works"
  1563. style="
  1564. width: 200px;
  1565. height: 140px;
  1566. margin: 10px 10px 10px 0;
  1567. box-shadow: 0 0 6px 1px #dfdada;
  1568. "
  1569. v-for="(w, wIndex) in workStudent[toolIndex]"
  1570. :key="wIndex"
  1571. >
  1572. <div class="workImg" v-if="w.type == 0">
  1573. <img
  1574. :src="w.works"
  1575. @click="previewImg(w.works, w)"
  1576. alt
  1577. />
  1578. <div
  1579. class="answerScore"
  1580. v-if="w.score"
  1581. @click.stop="openScore(w)"
  1582. :class="{
  1583. rightW:
  1584. w.userid == userid || tType == 1 || tType == 4
  1585. }"
  1586. >
  1587. {{ JSON.parse(w.score).wScore }}分
  1588. </div>
  1589. <div
  1590. class="answerScore"
  1591. @click.stop="openScore(w)"
  1592. v-else-if="courseDetail.userid == userid"
  1593. :class="{
  1594. rightW:
  1595. w.userid == userid || tType == 1 || tType == 4
  1596. }"
  1597. >
  1598. 评分
  1599. </div>
  1600. <div
  1601. class="stuLookScore"
  1602. v-if="
  1603. w.userid == userid ||
  1604. (tType == 1 &&
  1605. courseDetail.state == 5 &&
  1606. ((chapInfoList[courseType].chapterInfo[0]
  1607. .taskJson[taskCount].eList &&
  1608. chapInfoList[courseType].chapterInfo[0]
  1609. .taskJson[taskCount].eList.length) ||
  1610. (tool.eList && tool.eList.length)))
  1611. "
  1612. >
  1613. <el-popover
  1614. placement="top"
  1615. width="318"
  1616. trigger="hover"
  1617. >
  1618. <markScore
  1619. :loading="AIloading[toolIndex][wIndex].loading"
  1620. :markScoreVisible="markScoreVisible"
  1621. :ref="`markSco${toolIndex}${wIndex}`"
  1622. @updateLoading="updateLoading"
  1623. @updateDocSco="updateDocSco"
  1624. @refreshOther="refreshOther"
  1625. @markScoreDig="markScoreDig"
  1626. :tool="tool"
  1627. :wIndex="wIndex"
  1628. :scoCon="w"
  1629. :toolIndex="toolIndex"
  1630. :key="refreshKey"
  1631. :stage="courseType"
  1632. :task="taskCount"
  1633. :scoTit="
  1634. chapInfoList[courseType].chapterInfo[0]
  1635. .taskJson[taskCount].eList
  1636. "
  1637. >
  1638. </markScore>
  1639. <div
  1640. @click="
  1641. markScoreDig2(
  1642. w.sName,
  1643. worksStudent,
  1644. w.userid,
  1645. toolIndex,
  1646. chapInfoList[courseType].chapterInfo[0]
  1647. .taskJson[taskCount].eList,
  1648. AIloading[toolIndex][wIndex].loading,
  1649. tool
  1650. )
  1651. "
  1652. slot="reference"
  1653. >
  1654. <span v-if="AIloading[toolIndex][wIndex].sco">
  1655. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1656. </span>
  1657. <span v-else>
  1658. 评分
  1659. </span>
  1660. </div>
  1661. </el-popover>
  1662. </div>
  1663. <img
  1664. class="deleteImg"
  1665. src="../../assets/deleteworks.png"
  1666. v-if="
  1667. w.userid == userid || tType == 1 || tType == 4
  1668. "
  1669. @click.stop="deleteWorks(w.wid)"
  1670. alt
  1671. />
  1672. </div>
  1673. <div class="workImg" v-if="w.type == 1">
  1674. <img :src="word" @click="openFile(w.works)" alt />
  1675. <div
  1676. class="answerScore"
  1677. v-if="w.score"
  1678. @click.stop="openScore(w)"
  1679. :class="{
  1680. rightW:
  1681. w.userid == userid || tType == 1 || tType == 4
  1682. }"
  1683. >
  1684. {{ JSON.parse(w.score).wScore }}分
  1685. </div>
  1686. <div
  1687. class="answerScore"
  1688. @click.stop="openScore(w)"
  1689. v-else-if="courseDetail.userid == userid"
  1690. :class="{
  1691. rightW:
  1692. w.userid == userid || tType == 1 || tType == 4
  1693. }"
  1694. >
  1695. 评分
  1696. </div>
  1697. <div
  1698. class="stuLookScore"
  1699. v-if="
  1700. w.userid == userid ||
  1701. (tType == 1 &&
  1702. courseDetail.state == 5 &&
  1703. ((chapInfoList[courseType].chapterInfo[0]
  1704. .taskJson[taskCount].eList &&
  1705. chapInfoList[courseType].chapterInfo[0]
  1706. .taskJson[taskCount].eList.length) ||
  1707. (tool.eList && tool.eList.length)))
  1708. "
  1709. >
  1710. <el-popover
  1711. placement="top"
  1712. width="318"
  1713. trigger="hover"
  1714. >
  1715. <markScore
  1716. :loading="AIloading[toolIndex][wIndex].loading"
  1717. :markScoreVisible="markScoreVisible"
  1718. :ref="`markSco${toolIndex}${wIndex}`"
  1719. @updateLoading="updateLoading"
  1720. @updateDocSco="updateDocSco"
  1721. @refreshOther="refreshOther"
  1722. @markScoreDig="markScoreDig"
  1723. :tool="tool"
  1724. :wIndex="wIndex"
  1725. :scoCon="w"
  1726. :toolIndex="toolIndex"
  1727. :key="refreshKey"
  1728. :stage="courseType"
  1729. :task="taskCount"
  1730. :scoTit="
  1731. chapInfoList[courseType].chapterInfo[0]
  1732. .taskJson[taskCount].eList
  1733. "
  1734. >
  1735. </markScore>
  1736. <div
  1737. @click="
  1738. markScoreDig2(
  1739. w.sName,
  1740. worksStudent,
  1741. w.userid,
  1742. toolIndex,
  1743. chapInfoList[courseType].chapterInfo[0]
  1744. .taskJson[taskCount].eList,
  1745. AIloading[toolIndex][wIndex].loading,
  1746. tool
  1747. )
  1748. "
  1749. slot="reference"
  1750. >
  1751. <span v-if="AIloading[toolIndex][wIndex].sco">
  1752. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1753. </span>
  1754. <span v-else>
  1755. 评分
  1756. </span>
  1757. </div>
  1758. </el-popover>
  1759. </div>
  1760. <img
  1761. class="deleteImg"
  1762. src="../../assets/deleteworks.png"
  1763. v-if="
  1764. w.userid == userid || tType == 1 || tType == 4
  1765. "
  1766. @click.stop="deleteWorks(w.wid)"
  1767. alt
  1768. />
  1769. </div>
  1770. <div class="workImg" v-if="w.type == 3">
  1771. <img
  1772. style="cursor: pointer"
  1773. :src="video"
  1774. @click="openVideo(w)"
  1775. alt
  1776. />
  1777. <div
  1778. class="answerScore"
  1779. v-if="w.score"
  1780. @click.stop="openScore(w)"
  1781. :class="{
  1782. rightW:
  1783. w.userid == userid || tType == 1 || tType == 4
  1784. }"
  1785. >
  1786. {{ JSON.parse(w.score).wScore }}分
  1787. </div>
  1788. <div
  1789. class="answerScore"
  1790. @click.stop="openScore(w)"
  1791. v-else-if="courseDetail.userid == userid"
  1792. :class="{
  1793. rightW:
  1794. w.userid == userid || tType == 1 || tType == 4
  1795. }"
  1796. >
  1797. 评分
  1798. </div>
  1799. <div
  1800. class="stuLookScore"
  1801. v-if="
  1802. w.userid == userid ||
  1803. (tType == 1 &&
  1804. courseDetail.state == 5 &&
  1805. ((chapInfoList[courseType].chapterInfo[0]
  1806. .taskJson[taskCount].eList &&
  1807. chapInfoList[courseType].chapterInfo[0]
  1808. .taskJson[taskCount].eList.length) ||
  1809. (tool.eList && tool.eList.length)))
  1810. "
  1811. >
  1812. <el-popover
  1813. placement="top"
  1814. width="318"
  1815. trigger="hover"
  1816. >
  1817. <markScore
  1818. :loading="AIloading[toolIndex][wIndex].loading"
  1819. :markScoreVisible="markScoreVisible"
  1820. :ref="`markSco${toolIndex}${wIndex}`"
  1821. @updateLoading="updateLoading"
  1822. @updateDocSco="updateDocSco"
  1823. @refreshOther="refreshOther"
  1824. @markScoreDig="markScoreDig"
  1825. :tool="tool"
  1826. :wIndex="wIndex"
  1827. :scoCon="w"
  1828. :toolIndex="toolIndex"
  1829. :key="refreshKey"
  1830. :stage="courseType"
  1831. :task="taskCount"
  1832. :scoTit="
  1833. chapInfoList[courseType].chapterInfo[0]
  1834. .taskJson[taskCount].eList
  1835. "
  1836. >
  1837. </markScore>
  1838. <div
  1839. @click="
  1840. markScoreDig2(
  1841. w.sName,
  1842. worksStudent,
  1843. w.userid,
  1844. toolIndex,
  1845. chapInfoList[courseType].chapterInfo[0]
  1846. .taskJson[taskCount].eList,
  1847. AIloading[toolIndex][wIndex].loading,
  1848. tool
  1849. )
  1850. "
  1851. slot="reference"
  1852. >
  1853. <span v-if="AIloading[toolIndex][wIndex].sco">
  1854. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1855. </span>
  1856. <span v-else>
  1857. 评分
  1858. </span>
  1859. </div>
  1860. </el-popover>
  1861. </div>
  1862. <img
  1863. class="deleteImg"
  1864. src="../../assets/deleteworks.png"
  1865. v-if="
  1866. w.userid == userid || tType == 1 || tType == 4
  1867. "
  1868. @click.stop="deleteWorks(w.wid)"
  1869. alt
  1870. />
  1871. </div>
  1872. <div class="workImg" v-if="w.type == 12">
  1873. <img
  1874. style="cursor: pointer"
  1875. :src="word2"
  1876. @click="downloadFile(w.works)"
  1877. alt
  1878. />
  1879. <div
  1880. class="answerScore"
  1881. v-if="w.score"
  1882. @click.stop="openScore(w)"
  1883. :class="{
  1884. rightW:
  1885. w.userid == userid || tType == 1 || tType == 4
  1886. }"
  1887. >
  1888. {{ JSON.parse(w.score).wScore }}分
  1889. </div>
  1890. <div
  1891. class="answerScore"
  1892. @click.stop="openScore(w)"
  1893. v-else-if="courseDetail.userid == userid"
  1894. :class="{
  1895. rightW:
  1896. w.userid == userid || tType == 1 || tType == 4
  1897. }"
  1898. >
  1899. 评分
  1900. </div>
  1901. <div
  1902. class="stuLookScore"
  1903. v-if="
  1904. w.userid == userid ||
  1905. (tType == 1 &&
  1906. courseDetail.state == 5 &&
  1907. ((chapInfoList[courseType].chapterInfo[0]
  1908. .taskJson[taskCount].eList &&
  1909. chapInfoList[courseType].chapterInfo[0]
  1910. .taskJson[taskCount].eList.length) ||
  1911. (tool.eList && tool.eList.length)))
  1912. "
  1913. >
  1914. <el-popover
  1915. placement="top"
  1916. width="318"
  1917. trigger="hover"
  1918. >
  1919. <markScore
  1920. :loading="AIloading[toolIndex][wIndex].loading"
  1921. :markScoreVisible="markScoreVisible"
  1922. :ref="`markSco${toolIndex}${wIndex}`"
  1923. @updateLoading="updateLoading"
  1924. @updateDocSco="updateDocSco"
  1925. @refreshOther="refreshOther"
  1926. @markScoreDig="markScoreDig"
  1927. :tool="tool"
  1928. :wIndex="wIndex"
  1929. :scoCon="w"
  1930. :toolIndex="toolIndex"
  1931. :key="refreshKey"
  1932. :stage="courseType"
  1933. :task="taskCount"
  1934. :scoTit="
  1935. chapInfoList[courseType].chapterInfo[0]
  1936. .taskJson[taskCount].eList
  1937. "
  1938. >
  1939. </markScore>
  1940. <div
  1941. @click="
  1942. markScoreDig2(
  1943. w.sName,
  1944. worksStudent,
  1945. w.userid,
  1946. toolIndex,
  1947. chapInfoList[courseType].chapterInfo[0]
  1948. .taskJson[taskCount].eList,
  1949. AIloading[toolIndex][wIndex].loading,
  1950. tool
  1951. )
  1952. "
  1953. slot="reference"
  1954. >
  1955. <span v-if="AIloading[toolIndex][wIndex].sco">
  1956. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1957. </span>
  1958. <span v-else>
  1959. 评分
  1960. </span>
  1961. </div>
  1962. </el-popover>
  1963. </div>
  1964. <img
  1965. class="deleteImg"
  1966. src="../../assets/deleteworks.png"
  1967. v-if="
  1968. w.userid == userid || tType == 1 || tType == 4
  1969. "
  1970. @click.stop="deleteWorks(w.wid)"
  1971. alt
  1972. />
  1973. </div>
  1974. <div class="worksName">
  1975. <div>{{ w.sName }}</div>
  1976. </div>
  1977. </div>
  1978. </div>
  1979. </div>
  1980. <div
  1981. v-if="
  1982. tType &&
  1983. tType == 2 &&
  1984. !sIsOpen &&
  1985. tool.tool.indexOf(32) != -1
  1986. "
  1987. class="worksBox"
  1988. >
  1989. <div
  1990. class="zuoyeYulan"
  1991. v-if="workStudent[toolIndex].length > 0"
  1992. >
  1993. <span class="worksTitle">作业预览</span>
  1994. </div>
  1995. <div
  1996. class="worksDetailBox"
  1997. v-if="workStudent[toolIndex].length > 0"
  1998. >
  1999. <div
  2000. class="works"
  2001. style="
  2002. width: 200px;
  2003. height: 140px;
  2004. margin: 10px 10px 10px 0;
  2005. box-shadow: 0 0 6px 1px #dfdada;
  2006. "
  2007. v-for="(w, wIndex) in workStudent[toolIndex]"
  2008. :key="wIndex"
  2009. >
  2010. <div class="workImg">
  2011. <img
  2012. :src="word2"
  2013. @click="downloadFile(w.works)"
  2014. alt
  2015. />
  2016. <div
  2017. class="answerScore"
  2018. v-if="w.score"
  2019. @click.stop="openScore(w)"
  2020. :class="{
  2021. rightW:
  2022. w.userid == userid || tType == 1 || tType == 4
  2023. }"
  2024. >
  2025. {{ JSON.parse(w.score).wScore }}分
  2026. </div>
  2027. <div
  2028. class="answerScore"
  2029. @click.stop="openScore(w)"
  2030. v-else-if="courseDetail.userid == userid"
  2031. :class="{
  2032. rightW:
  2033. w.userid == userid || tType == 1 || tType == 4
  2034. }"
  2035. >
  2036. 评分
  2037. </div>
  2038. <img
  2039. class="deleteImg"
  2040. src="../../assets/deleteworks.png"
  2041. v-if="
  2042. w.userid == userid || tType == 1 || tType == 4
  2043. "
  2044. @click.stop="deleteWorks(w.wid)"
  2045. alt
  2046. />
  2047. </div>
  2048. <div class="worksName">
  2049. <div>{{ w.sName }}</div>
  2050. </div>
  2051. </div>
  2052. </div>
  2053. </div>
  2054. <div
  2055. v-if="
  2056. tType &&
  2057. tType == 2 &&
  2058. !sIsOpen &&
  2059. tool.tool.indexOf(57) != -1
  2060. "
  2061. class="worksBox"
  2062. >
  2063. <div
  2064. class="zuoyeYulan"
  2065. v-if="workStudent[toolIndex].length > 0"
  2066. >
  2067. <span class="worksTitle">作业预览</span>
  2068. </div>
  2069. <div
  2070. class="worksDetailBox"
  2071. v-if="workStudent[toolIndex].length > 0"
  2072. >
  2073. <div
  2074. class="works"
  2075. style="
  2076. width: 200px;
  2077. height: 140px;
  2078. margin: 10px 10px 10px 0;
  2079. box-shadow: 0 0 6px 1px #dfdada;
  2080. "
  2081. v-for="(w, wIndex) in workStudent[toolIndex]"
  2082. :key="wIndex"
  2083. >
  2084. <div class="workImg">
  2085. <img
  2086. :src="word2"
  2087. @click="downloadFile(w.works)"
  2088. v-if="w.type == 12"
  2089. alt
  2090. />
  2091. <img
  2092. :src="word2"
  2093. @click="
  2094. openCocoPi(57, toolIndex, w.userid, w.sName)
  2095. "
  2096. v-else-if="w.type == 15"
  2097. alt
  2098. />
  2099. <div
  2100. class="answerScore"
  2101. v-if="w.score"
  2102. @click.stop="openScore(w)"
  2103. :class="{
  2104. rightW:
  2105. w.userid == userid || tType == 1 || tType == 4
  2106. }"
  2107. >
  2108. {{ JSON.parse(w.score).wScore }}分
  2109. </div>
  2110. <div
  2111. class="answerScore"
  2112. @click.stop="openScore(w)"
  2113. v-else-if="courseDetail.userid == userid"
  2114. :class="{
  2115. rightW:
  2116. w.userid == userid || tType == 1 || tType == 4
  2117. }"
  2118. >
  2119. 评分
  2120. </div>
  2121. <img
  2122. class="deleteImg"
  2123. src="../../assets/deleteworks.png"
  2124. v-if="
  2125. w.userid == userid || tType == 1 || tType == 4
  2126. "
  2127. @click.stop="deleteWorks(w.wid)"
  2128. alt
  2129. />
  2130. </div>
  2131. <div class="worksName">
  2132. <div>{{ w.sName }}</div>
  2133. </div>
  2134. </div>
  2135. </div>
  2136. </div>
  2137. <div
  2138. v-if="
  2139. tType &&
  2140. tType == 2 &&
  2141. !sIsOpen &&
  2142. tool.tool.indexOf(4) != -1
  2143. "
  2144. class="worksBox"
  2145. >
  2146. <div
  2147. class="zuoyeYulan"
  2148. v-if="workStudent[toolIndex].length > 0"
  2149. >
  2150. <span class="worksTitle">作业预览</span>
  2151. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2152. </div>
  2153. <div
  2154. class="worksDetailBox"
  2155. v-if="workStudent[toolIndex].length > 0"
  2156. >
  2157. <div
  2158. class="isWorksName2"
  2159. v-for="(w, wIndex) in workStudent[toolIndex]"
  2160. :key="wIndex"
  2161. @click="
  2162. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2163. "
  2164. >
  2165. {{ w.sName }}
  2166. <img
  2167. class="deleteImg deleteImg2"
  2168. src="../../assets/deleteworks.png"
  2169. v-if="w.userid == userid || tType == 1 || tType == 4"
  2170. @click.stop="deleteWorks(w.wid)"
  2171. alt
  2172. />
  2173. </div>
  2174. <!-- <div
  2175. class="works"
  2176. style="
  2177. width: 200px;
  2178. height: 140px;
  2179. border-radius: 10px;
  2180. box-shadow: 0 0 6px 1px #dfdada;
  2181. overflow: hidden;
  2182. "
  2183. v-for="(w, wIndex) in workStudent[toolIndex]"
  2184. :key="wIndex"
  2185. >
  2186. <div class="workImg">
  2187. <img
  2188. src="../../assets/icon/works/noImg.png"
  2189. @click="
  2190. openTools(
  2191. 4,
  2192. toolIndex,
  2193. taskCount,
  2194. w.works,
  2195. w.sName
  2196. )
  2197. "
  2198. alt
  2199. />
  2200. </div>
  2201. <div class="worksName">
  2202. <div>{{ w.sName }}</div>
  2203. <div>{{ w.time }}</div>
  2204. </div>
  2205. </div> -->
  2206. </div>
  2207. </div>
  2208. <div
  2209. v-if="
  2210. tType &&
  2211. ((tType == 2 && sIsOpen == true) ||
  2212. tType == 1 ||
  2213. tType == 4) &&
  2214. tool.tool.indexOf(62) != -1
  2215. "
  2216. class="worksBox"
  2217. >
  2218. <div
  2219. class="zuoyeYulan"
  2220. v-if="
  2221. worksStudent.length &&
  2222. worksStudent[toolIndex].length > 0
  2223. "
  2224. >
  2225. <div class="worksTop">
  2226. <div>作业预览</div>
  2227. <div
  2228. class="corOpen"
  2229. @click="contract(toolIndex)"
  2230. v-if="
  2231. isCloseList[toolIndex].isCloseBoolean &&
  2232. isCloseList[toolIndex].isClose == 0
  2233. "
  2234. >
  2235. 折叠
  2236. </div>
  2237. <div
  2238. class="corOpen"
  2239. @click="contract(toolIndex)"
  2240. v-if="isCloseList[toolIndex].isClose == 1"
  2241. >
  2242. 展开
  2243. </div>
  2244. </div>
  2245. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2246. </div>
  2247. <div>
  2248. <div
  2249. :id="'tool-' + toolIndex"
  2250. :style="{
  2251. height:
  2252. isCloseList[toolIndex].isClose == 1
  2253. ? retrnToolHeight('tool-' + toolIndex)
  2254. : 'auto',
  2255. overflow:
  2256. isCloseList[toolIndex].isClose == 1
  2257. ? 'hidden'
  2258. : 'unset'
  2259. }"
  2260. class="worksDetailBox"
  2261. v-if="
  2262. worksStudent.length &&
  2263. worksStudent[toolIndex].length > 0
  2264. "
  2265. >
  2266. <div
  2267. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2268. :key="wIndex"
  2269. class="isWorksName2"
  2270. @click="
  2271. openTools(
  2272. 62,
  2273. toolIndex,
  2274. taskCount,
  2275. w.works,
  2276. w.sName
  2277. )
  2278. "
  2279. >
  2280. {{ w.sName }}
  2281. <img
  2282. class="deleteImg deleteImg2"
  2283. src="../../assets/deleteworks.png"
  2284. v-if="
  2285. w.userid == userid || tType == 1 || tType == 4
  2286. "
  2287. @click.stop="deleteWorks(w.wid)"
  2288. alt
  2289. />
  2290. </div>
  2291. </div>
  2292. </div>
  2293. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2294. 未提交
  2295. </div>
  2296. <div
  2297. class="noWorksS"
  2298. v-if="noWorksS && noWorksS[toolIndex].length"
  2299. >
  2300. <div
  2301. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2302. :key="sIndex"
  2303. class="noWorksName"
  2304. >
  2305. <el-tooltip
  2306. effect="dark"
  2307. :content="s.student"
  2308. placement="top"
  2309. >
  2310. <span>{{ s.student }}</span>
  2311. </el-tooltip>
  2312. </div>
  2313. </div>
  2314. </div>
  2315. <div
  2316. v-if="
  2317. tType &&
  2318. tType == 2 &&
  2319. !sIsOpen &&
  2320. tool.tool.indexOf(62) != -1
  2321. "
  2322. class="worksBox"
  2323. >
  2324. <div
  2325. class="zuoyeYulan"
  2326. v-if="workStudent[toolIndex].length > 0"
  2327. >
  2328. <span class="worksTitle">作业预览</span>
  2329. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2330. </div>
  2331. <div
  2332. class="worksDetailBox"
  2333. v-if="workStudent[toolIndex].length > 0"
  2334. >
  2335. <div
  2336. class="isWorksName2"
  2337. v-for="(w, wIndex) in workStudent[toolIndex]"
  2338. :key="wIndex"
  2339. @click="
  2340. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2341. "
  2342. >
  2343. {{ w.sName }}
  2344. <img
  2345. class="deleteImg deleteImg2"
  2346. src="../../assets/deleteworks.png"
  2347. v-if="w.userid == userid || tType == 1 || tType == 4"
  2348. @click.stop="deleteWorks(w.wid)"
  2349. alt
  2350. />
  2351. </div>
  2352. </div>
  2353. </div>
  2354. <div
  2355. v-if="
  2356. tType &&
  2357. tType == 2 &&
  2358. !sIsOpen &&
  2359. tool.tool.indexOf(45) != -1
  2360. "
  2361. class="worksBox"
  2362. >
  2363. <div
  2364. class="zuoyeYulan"
  2365. v-if="workStudent[toolIndex].length > 0"
  2366. >
  2367. <span class="worksTitle">作业预览</span>
  2368. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2369. </div>
  2370. <div
  2371. class="worksDetailBox"
  2372. v-if="workStudent[toolIndex].length > 0"
  2373. >
  2374. <div
  2375. class="isWorksName2"
  2376. v-for="(w, wIndex) in workStudent[toolIndex]"
  2377. :key="wIndex"
  2378. @click="
  2379. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2380. "
  2381. >
  2382. {{ w.sName }}
  2383. <img
  2384. class="deleteImg deleteImg2"
  2385. src="../../assets/deleteworks.png"
  2386. v-if="w.userid == userid || tType == 1 || tType == 4"
  2387. @click.stop="deleteWorks(w.wid)"
  2388. alt
  2389. />
  2390. </div>
  2391. </div>
  2392. </div>
  2393. <div
  2394. v-if="
  2395. tType &&
  2396. tType == 2 &&
  2397. !sIsOpen &&
  2398. tool.tool.indexOf(69) != -1
  2399. "
  2400. class="worksBox"
  2401. >
  2402. <div
  2403. class="zuoyeYulan"
  2404. v-if="workStudent[toolIndex].length > 0"
  2405. >
  2406. <span class="worksTitle">作业预览</span>
  2407. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2408. </div>
  2409. <div
  2410. class="worksDetailBox"
  2411. v-if="workStudent[toolIndex].length > 0"
  2412. >
  2413. <div
  2414. class="isWorksName2"
  2415. v-for="(w, wIndex) in workStudent[toolIndex]"
  2416. :key="wIndex"
  2417. @click="
  2418. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2419. "
  2420. >
  2421. {{ w.sName }}
  2422. <img
  2423. class="deleteImg deleteImg2"
  2424. src="../../assets/deleteworks.png"
  2425. v-if="w.userid == userid || tType == 1 || tType == 4"
  2426. @click.stop="deleteWorks(w.wid)"
  2427. alt
  2428. />
  2429. </div>
  2430. </div>
  2431. </div>
  2432. <div
  2433. v-if="
  2434. tType &&
  2435. tType == 2 &&
  2436. !sIsOpen &&
  2437. tool.tool.indexOf(15) != -1
  2438. "
  2439. class="worksBox"
  2440. >
  2441. <div
  2442. class="zuoyeYulan"
  2443. v-if="workStudent[toolIndex].length > 0"
  2444. >
  2445. <span class="worksTitle">作业预览</span>
  2446. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2447. </div>
  2448. <div
  2449. class="worksDetailBox"
  2450. v-if="workStudent[toolIndex].length > 0"
  2451. >
  2452. <div
  2453. class="works"
  2454. v-for="(w, wIndex) in workStudent[toolIndex]"
  2455. :key="wIndex"
  2456. >
  2457. <div class="workImg">
  2458. <!-- <img
  2459. src="../../assets/icon/works/noImg.png"
  2460. @click="openTools(15, toolIndex, taskCount, w.works)"
  2461. alt=""
  2462. />-->
  2463. <div class="answerBg">
  2464. <!-- <div>{{ w.sName }}</div> -->
  2465. <el-tooltip
  2466. class="item"
  2467. effect="light"
  2468. :content="JSON.parse(w.works)[0].answer"
  2469. placement="top"
  2470. >
  2471. <div class="answerContent">
  2472. {{ JSON.parse(w.works)[0].answer }}
  2473. </div>
  2474. </el-tooltip>
  2475. <div
  2476. class="answerScore"
  2477. v-if="w.score"
  2478. @click.stop="openScore(w)"
  2479. :class="{
  2480. rightW:
  2481. w.userid == userid || tType == 1 || tType == 4
  2482. }"
  2483. >
  2484. {{ JSON.parse(w.score).wScore }}分
  2485. </div>
  2486. <div
  2487. class="answerScore"
  2488. @click.stop="openScore(w)"
  2489. v-else-if="courseDetail.userid == userid"
  2490. :class="{
  2491. rightW:
  2492. w.userid == userid || tType == 1 || tType == 4
  2493. }"
  2494. >
  2495. 评分
  2496. </div>
  2497. <img
  2498. class="deleteImg"
  2499. src="../../assets/deleteworks.png"
  2500. v-if="
  2501. w.userid == userid || tType == 1 || tType == 4
  2502. "
  2503. @click.stop="deleteWorks(w.wid)"
  2504. alt
  2505. />
  2506. </div>
  2507. <div class="comment">
  2508. <div class="worksName">
  2509. <div>{{ w.sName }}</div>
  2510. </div>
  2511. </div>
  2512. </div>
  2513. </div>
  2514. </div>
  2515. </div>
  2516. <div
  2517. v-if="
  2518. tType &&
  2519. tType == 2 &&
  2520. !sIsOpen &&
  2521. tool.tool.indexOf(1) != -1
  2522. "
  2523. class="worksBox"
  2524. >
  2525. <div
  2526. class="zuoyeYulan"
  2527. v-if="workStudent[toolIndex].length > 0"
  2528. >
  2529. <span class="worksTitle">作业预览</span>
  2530. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2531. </div>
  2532. <div
  2533. class="worksDetailBox"
  2534. v-if="workStudent[toolIndex].length > 0"
  2535. >
  2536. <div
  2537. class="works"
  2538. style="
  2539. width: 200px;
  2540. height: 140px;
  2541. margin: 10px 10px 10px 0;
  2542. box-shadow: 0 0 6px 1px #dfdada;
  2543. "
  2544. v-for="(w, wIndex) in workStudent[toolIndex]"
  2545. :key="wIndex"
  2546. >
  2547. <div class="workImg">
  2548. <img
  2549. :src="w.works"
  2550. @click="previewImg(w.works, w)"
  2551. alt
  2552. />
  2553. <div
  2554. class="answerScore"
  2555. v-if="w.score"
  2556. @click.stop="openScore(w)"
  2557. :class="{
  2558. rightW:
  2559. w.userid == userid || tType == 1 || tType == 4
  2560. }"
  2561. >
  2562. {{ JSON.parse(w.score).wScore }}分
  2563. </div>
  2564. <div
  2565. class="answerScore"
  2566. @click.stop="openScore(w)"
  2567. v-else-if="courseDetail.userid == userid"
  2568. :class="{
  2569. rightW:
  2570. w.userid == userid || tType == 1 || tType == 4
  2571. }"
  2572. >
  2573. 评分
  2574. </div>
  2575. <div
  2576. class="stuLookScore"
  2577. v-if="
  2578. w.userid == userid ||
  2579. (tType == 1 &&
  2580. courseDetail.state == 5 &&
  2581. ((chapInfoList[courseType].chapterInfo[0]
  2582. .taskJson[taskCount].eList &&
  2583. chapInfoList[courseType].chapterInfo[0]
  2584. .taskJson[taskCount].eList.length) ||
  2585. (tool.eList && tool.eList.length)))
  2586. "
  2587. >
  2588. <el-popover
  2589. placement="top"
  2590. width="318"
  2591. trigger="hover"
  2592. >
  2593. <markScore
  2594. :loading="AIloading[toolIndex][wIndex].loading"
  2595. :markScoreVisible="markScoreVisible"
  2596. :ref="`markSco${toolIndex}${wIndex}`"
  2597. @updateLoading="updateLoading"
  2598. @updateDocSco="updateDocSco"
  2599. @refreshOther="refreshOther"
  2600. @markScoreDig="markScoreDig"
  2601. :tool="tool"
  2602. :wIndex="wIndex"
  2603. :scoCon="w"
  2604. :toolIndex="toolIndex"
  2605. :key="refreshKey"
  2606. :stage="courseType"
  2607. :task="taskCount"
  2608. :scoTit="
  2609. chapInfoList[courseType].chapterInfo[0]
  2610. .taskJson[taskCount].eList
  2611. "
  2612. >
  2613. </markScore>
  2614. <div
  2615. @click="
  2616. markScoreDig2(
  2617. w.sName,
  2618. worksStudent,
  2619. w.userid,
  2620. toolIndex,
  2621. chapInfoList[courseType].chapterInfo[0]
  2622. .taskJson[taskCount].eList,
  2623. AIloading[toolIndex][wIndex].loading,
  2624. tool
  2625. )
  2626. "
  2627. slot="reference"
  2628. >
  2629. <span v-if="AIloading[toolIndex][wIndex].sco">
  2630. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2631. </span>
  2632. <span v-else>
  2633. 评分
  2634. </span>
  2635. </div>
  2636. </el-popover>
  2637. </div>
  2638. <img
  2639. class="deleteImg"
  2640. src="../../assets/deleteworks.png"
  2641. v-if="
  2642. w.userid == userid || tType == 1 || tType == 4
  2643. "
  2644. @click.stop="deleteWorks(w.wid)"
  2645. alt
  2646. />
  2647. </div>
  2648. <div class="worksName">
  2649. <div>{{ w.sName }}</div>
  2650. </div>
  2651. </div>
  2652. </div>
  2653. </div>
  2654. <div
  2655. v-if="
  2656. tType &&
  2657. tType == 2 &&
  2658. !sIsOpen &&
  2659. tool.tool.indexOf(3) != -1
  2660. "
  2661. class="worksBox"
  2662. >
  2663. <div
  2664. class="zuoyeYulan"
  2665. v-if="workStudent[toolIndex].length > 0"
  2666. >
  2667. <span class="worksTitle">作业预览</span>
  2668. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2669. </div>
  2670. <div
  2671. class="worksDetailBox"
  2672. v-if="workStudent[toolIndex].length > 0"
  2673. >
  2674. <div
  2675. class="works"
  2676. style="
  2677. width: 200px;
  2678. height: 140px;
  2679. margin: 10px 10px 10px 0;
  2680. box-shadow: 0 0 6px 1px #dfdada;
  2681. "
  2682. v-for="(w, wIndex) in workStudent[toolIndex]"
  2683. :key="wIndex"
  2684. >
  2685. <div class="workImg">
  2686. <img
  2687. :src="w.works"
  2688. @click="previewImg(w.works, w)"
  2689. alt
  2690. />
  2691. <div
  2692. class="answerScore"
  2693. v-if="w.score"
  2694. @click.stop="openScore(w)"
  2695. :class="{
  2696. rightW:
  2697. w.userid == userid || tType == 1 || tType == 4
  2698. }"
  2699. >
  2700. {{ JSON.parse(w.score).wScore }}分
  2701. </div>
  2702. <div
  2703. class="answerScore"
  2704. @click.stop="openScore(w)"
  2705. v-else-if="courseDetail.userid == userid"
  2706. :class="{
  2707. rightW:
  2708. w.userid == userid || tType == 1 || tType == 4
  2709. }"
  2710. >
  2711. 评分
  2712. </div>
  2713. <div
  2714. class="stuLookScore"
  2715. v-if="
  2716. w.userid == userid ||
  2717. (tType == 1 &&
  2718. courseDetail.state == 5 &&
  2719. ((chapInfoList[courseType].chapterInfo[0]
  2720. .taskJson[taskCount].eList &&
  2721. chapInfoList[courseType].chapterInfo[0]
  2722. .taskJson[taskCount].eList.length) ||
  2723. (tool.eList && tool.eList.length)))
  2724. "
  2725. >
  2726. <el-popover
  2727. placement="top"
  2728. width="318"
  2729. trigger="hover"
  2730. >
  2731. <markScore
  2732. :loading="AIloading[toolIndex][wIndex].loading"
  2733. :markScoreVisible="markScoreVisible"
  2734. :ref="`markSco${toolIndex}${wIndex}`"
  2735. @updateLoading="updateLoading"
  2736. @updateDocSco="updateDocSco"
  2737. @refreshOther="refreshOther"
  2738. @markScoreDig="markScoreDig"
  2739. :tool="tool"
  2740. :wIndex="wIndex"
  2741. :scoCon="w"
  2742. :toolIndex="toolIndex"
  2743. :key="refreshKey"
  2744. :stage="courseType"
  2745. :task="taskCount"
  2746. :scoTit="
  2747. chapInfoList[courseType].chapterInfo[0]
  2748. .taskJson[taskCount].eList
  2749. "
  2750. >
  2751. </markScore>
  2752. <div
  2753. @click="
  2754. markScoreDig2(
  2755. w.sName,
  2756. worksStudent,
  2757. w.userid,
  2758. toolIndex,
  2759. chapInfoList[courseType].chapterInfo[0]
  2760. .taskJson[taskCount].eList,
  2761. AIloading[toolIndex][wIndex].loading,
  2762. tool
  2763. )
  2764. "
  2765. slot="reference"
  2766. >
  2767. <span v-if="AIloading[toolIndex][wIndex].sco">
  2768. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2769. </span>
  2770. <span v-else>
  2771. 评分
  2772. </span>
  2773. </div>
  2774. </el-popover>
  2775. </div>
  2776. <img
  2777. class="deleteImg"
  2778. src="../../assets/deleteworks.png"
  2779. v-if="
  2780. w.userid == userid || tType == 1 || tType == 4
  2781. "
  2782. @click.stop="deleteWorks(w.wid)"
  2783. alt
  2784. />
  2785. </div>
  2786. <div class="worksName">
  2787. <div>{{ w.sName }}</div>
  2788. </div>
  2789. </div>
  2790. </div>
  2791. </div>
  2792. <div
  2793. v-if="
  2794. tType &&
  2795. tType == 2 &&
  2796. !sIsOpen &&
  2797. tool.tool.indexOf(6) != -1
  2798. "
  2799. class="worksBox"
  2800. >
  2801. <div
  2802. class="zuoyeYulan"
  2803. v-if="workStudent[toolIndex].length > 0"
  2804. >
  2805. <span class="worksTitle">作业预览</span>
  2806. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2807. </div>
  2808. <div
  2809. class="worksDetailBox"
  2810. v-if="workStudent[toolIndex].length > 0"
  2811. >
  2812. <div
  2813. class="works"
  2814. style="
  2815. width: 200px;
  2816. height: 140px;
  2817. margin: 10px 10px 10px 0;
  2818. box-shadow: 0 0 6px 1px #dfdada;
  2819. "
  2820. v-for="(w, wIndex) in workStudent[toolIndex]"
  2821. :key="wIndex"
  2822. >
  2823. <div class="workImg">
  2824. <img
  2825. :src="w.works"
  2826. @click="previewImg(w.works, w)"
  2827. alt
  2828. />
  2829. <div
  2830. class="answerScore"
  2831. v-if="w.score"
  2832. @click.stop="openScore(w)"
  2833. :class="{
  2834. rightW:
  2835. w.userid == userid || tType == 1 || tType == 4
  2836. }"
  2837. >
  2838. {{ JSON.parse(w.score).wScore }}分
  2839. </div>
  2840. <div
  2841. class="answerScore"
  2842. @click.stop="openScore(w)"
  2843. v-else-if="courseDetail.userid == userid"
  2844. :class="{
  2845. rightW:
  2846. w.userid == userid || tType == 1 || tType == 4
  2847. }"
  2848. >
  2849. 评分
  2850. </div>
  2851. <img
  2852. class="deleteImg"
  2853. src="../../assets/deleteworks.png"
  2854. v-if="
  2855. w.userid == userid || tType == 1 || tType == 4
  2856. "
  2857. @click.stop="deleteWorks(w.wid)"
  2858. alt
  2859. />
  2860. </div>
  2861. <div class="worksName">
  2862. <div>{{ w.sName }}</div>
  2863. </div>
  2864. </div>
  2865. </div>
  2866. </div>
  2867. <div
  2868. v-if="
  2869. tType &&
  2870. tType == 2 &&
  2871. !sIsOpen &&
  2872. tool.tool.indexOf(7) != -1
  2873. "
  2874. class="worksBox"
  2875. >
  2876. <div
  2877. class="zuoyeYulan"
  2878. v-if="workStudent[toolIndex].length > 0"
  2879. >
  2880. <span class="worksTitle">作业预览</span>
  2881. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2882. </div>
  2883. <div
  2884. class="worksDetailBox"
  2885. v-if="workStudent[toolIndex].length > 0"
  2886. >
  2887. <div
  2888. class="works"
  2889. style="
  2890. width: 200px;
  2891. height: 140px;
  2892. margin: 10px 10px 10px 0;
  2893. box-shadow: 0 0 6px 1px #dfdada;
  2894. "
  2895. v-for="(w, wIndex) in workStudent[toolIndex]"
  2896. :key="wIndex"
  2897. >
  2898. <div class="workImg">
  2899. <img
  2900. :src="w.works"
  2901. @click="previewImg(w.works, w)"
  2902. alt
  2903. />
  2904. <div
  2905. class="answerScore"
  2906. v-if="w.score"
  2907. @click.stop="openScore(w)"
  2908. :class="{
  2909. rightW:
  2910. w.userid == userid || tType == 1 || tType == 4
  2911. }"
  2912. >
  2913. {{ JSON.parse(w.score).wScore }}分
  2914. </div>
  2915. <div
  2916. class="answerScore"
  2917. @click.stop="openScore(w)"
  2918. v-else-if="courseDetail.userid == userid"
  2919. :class="{
  2920. rightW:
  2921. w.userid == userid || tType == 1 || tType == 4
  2922. }"
  2923. >
  2924. 评分
  2925. </div>
  2926. <div
  2927. class="stuLookScore"
  2928. v-if="
  2929. w.userid == userid ||
  2930. (tType == 1 &&
  2931. courseDetail.state == 5 &&
  2932. ((chapInfoList[courseType].chapterInfo[0]
  2933. .taskJson[taskCount].eList &&
  2934. chapInfoList[courseType].chapterInfo[0]
  2935. .taskJson[taskCount].eList.length) ||
  2936. (tool.eList && tool.eList.length)))
  2937. "
  2938. >
  2939. <el-popover
  2940. placement="top"
  2941. width="318"
  2942. trigger="hover"
  2943. >
  2944. <markScore
  2945. :loading="AIloading[toolIndex][wIndex].loading"
  2946. :markScoreVisible="markScoreVisible"
  2947. :ref="`markSco${toolIndex}${wIndex}`"
  2948. @updateLoading="updateLoading"
  2949. @updateDocSco="updateDocSco"
  2950. @refreshOther="refreshOther"
  2951. @markScoreDig="markScoreDig"
  2952. :tool="tool"
  2953. :wIndex="wIndex"
  2954. :scoCon="w"
  2955. :toolIndex="toolIndex"
  2956. :key="refreshKey"
  2957. :stage="courseType"
  2958. :task="taskCount"
  2959. :scoTit="
  2960. chapInfoList[courseType].chapterInfo[0]
  2961. .taskJson[taskCount].eList
  2962. "
  2963. >
  2964. </markScore>
  2965. <div
  2966. @click="
  2967. markScoreDig2(
  2968. w.sName,
  2969. worksStudent,
  2970. w.userid,
  2971. toolIndex,
  2972. chapInfoList[courseType].chapterInfo[0]
  2973. .taskJson[taskCount].eList,
  2974. AIloading[toolIndex][wIndex].loading,
  2975. tool
  2976. )
  2977. "
  2978. slot="reference"
  2979. >
  2980. <span v-if="AIloading[toolIndex][wIndex].sco">
  2981. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2982. </span>
  2983. <span v-else>
  2984. 评分
  2985. </span>
  2986. </div>
  2987. </el-popover>
  2988. </div>
  2989. <img
  2990. class="deleteImg"
  2991. src="../../assets/deleteworks.png"
  2992. v-if="
  2993. w.userid == userid || tType == 1 || tType == 4
  2994. "
  2995. @click.stop="deleteWorks(w.wid)"
  2996. alt
  2997. />
  2998. </div>
  2999. <div class="worksName">
  3000. <div>{{ w.sName }}</div>
  3001. </div>
  3002. </div>
  3003. </div>
  3004. </div>
  3005. <div
  3006. v-if="
  3007. tType &&
  3008. tType == 2 &&
  3009. !sIsOpen &&
  3010. tool.tool.indexOf(26) != -1
  3011. "
  3012. class="worksBox"
  3013. >
  3014. <div
  3015. class="zuoyeYulan"
  3016. v-if="workStudent[toolIndex].length > 0"
  3017. >
  3018. <span class="worksTitle">作业预览</span>
  3019. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3020. </div>
  3021. <div
  3022. class="worksDetailBox"
  3023. v-if="workStudent[toolIndex].length > 0"
  3024. >
  3025. <div
  3026. class="works"
  3027. style="
  3028. width: 200px;
  3029. height: 140px;
  3030. margin: 10px 10px 10px 0;
  3031. box-shadow: 0 0 6px 1px #dfdada;
  3032. "
  3033. v-for="(w, wIndex) in workStudent[toolIndex]"
  3034. :key="wIndex"
  3035. >
  3036. <div class="workImg">
  3037. <img
  3038. :src="w.works"
  3039. @click="previewImg(w.works, w)"
  3040. alt
  3041. />
  3042. <img
  3043. class="deleteImg"
  3044. src="../../assets/deleteworks.png"
  3045. v-if="
  3046. w.userid == userid || tType == 1 || tType == 4
  3047. "
  3048. @click.stop="deleteWorks(w.wid)"
  3049. alt
  3050. />
  3051. </div>
  3052. <div class="worksName">
  3053. <div>{{ w.sName }}</div>
  3054. </div>
  3055. </div>
  3056. </div>
  3057. </div>
  3058. <div
  3059. v-if="
  3060. tType &&
  3061. ((tType == 2 && sIsOpen == true) ||
  3062. tType == 1 ||
  3063. tType == 4) &&
  3064. tool.tool.indexOf(16) != -1
  3065. "
  3066. class="worksBox"
  3067. >
  3068. <div
  3069. class="zuoyeYulan"
  3070. style="display: flex;justify-content: space-between;align-items: center;"
  3071. v-if="
  3072. (worksStudent.length &&
  3073. worksStudent[toolIndex].length > 0) ||
  3074. (courseGroup.group && courseGroup.group.length)
  3075. "
  3076. >
  3077. <div class="worksTop">
  3078. <div>作业预览</div>
  3079. <div
  3080. class="corOpen"
  3081. @click="contract(toolIndex)"
  3082. v-if="
  3083. isCloseList[toolIndex].isCloseBoolean &&
  3084. isCloseList[toolIndex].isClose == 0
  3085. "
  3086. >
  3087. 折叠
  3088. </div>
  3089. <div
  3090. class="corOpen"
  3091. @click="contract(toolIndex)"
  3092. v-if="isCloseList[toolIndex].isClose == 1"
  3093. >
  3094. 展开
  3095. </div>
  3096. </div>
  3097. <div
  3098. style="display: flex;"
  3099. v-if="
  3100. (courseDetail.userid == userid ||
  3101. (courseDetail.course_teacher &&
  3102. courseDetail.course_teacher.indexOf(userid) !=
  3103. -1)) &&
  3104. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3105. taskCount
  3106. ].eList &&
  3107. chapInfoList[courseType].chapterInfo[0].taskJson[
  3108. taskCount
  3109. ].eList.length) ||
  3110. (tool.eList && tool.eList.length)) &&
  3111. courseDetail.state == 5
  3112. "
  3113. >
  3114. <!-- <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"> -->
  3115. <div
  3116. style="margin-right:10px"
  3117. class="ScoreBtn"
  3118. @click="
  3119. resetLoopEva(
  3120. worksStudent[toolIndex],
  3121. chapInfoList[courseType].chapterInfo[0].taskJson[
  3122. taskCount
  3123. ].eList,
  3124. courseType,
  3125. taskCount,
  3126. toolIndex,
  3127. tool.toolDetail,
  3128. worksStudent
  3129. )
  3130. "
  3131. >
  3132. 一键重置
  3133. </div>
  3134. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3135. <img
  3136. src="../../assets/icon/newIcons/rootImg.png"
  3137. alt=""
  3138. />
  3139. AI评分
  3140. </div>
  3141. <div
  3142. class="ScoreBtn"
  3143. v-else-if="!loopLoading[toolIndex].loading"
  3144. @click="
  3145. loopEva(
  3146. worksStudent[toolIndex],
  3147. chapInfoList[courseType].chapterInfo[0].taskJson[
  3148. taskCount
  3149. ].eList,
  3150. courseType,
  3151. taskCount,
  3152. toolIndex,
  3153. tool.toolDetail,
  3154. chapInfoList[courseType].chapterInfo[0].taskJson[
  3155. taskCount
  3156. ].taskDetail,
  3157. tool
  3158. )
  3159. "
  3160. >
  3161. <img
  3162. src="../../assets/icon/newIcons/rootImg.png"
  3163. alt=""
  3164. />
  3165. AI评分
  3166. </div>
  3167. <div class="ScoreBtn" v-else>
  3168. <img
  3169. src="../../assets/icon/newIcons/rootImg.png"
  3170. alt=""
  3171. />
  3172. 正在评分
  3173. </div>
  3174. </div>
  3175. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3176. </div>
  3177. <div
  3178. class="group_workBox"
  3179. v-for="(g, gindex) in courseGroup.group"
  3180. :key="gindex"
  3181. >
  3182. <div class="group_box">
  3183. <div class="group_title">
  3184. <el-tooltip
  3185. class="item"
  3186. effect="light"
  3187. :content="g.name"
  3188. placement="top"
  3189. >
  3190. <div class="group_name">{{ g.name }}</div>
  3191. </el-tooltip>
  3192. </div>
  3193. <div
  3194. class="group_work"
  3195. v-if="
  3196. g.works &&
  3197. g.works.length &&
  3198. g.works[toolIndex].length
  3199. "
  3200. >
  3201. <div
  3202. class="works"
  3203. style="
  3204. width: 200px;
  3205. height: 140px;
  3206. margin: 10px 10px 10px 0;
  3207. border-radius: 15px;
  3208. box-shadow: 0 0 6px 1px #dfdada;
  3209. "
  3210. v-for="(w, wIndex) in g.works[toolIndex]"
  3211. :key="wIndex"
  3212. :class="w.type == 1 ? 'isTypeOne' : ''"
  3213. >
  3214. <div class="workImg" v-if="w.type == 0">
  3215. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3216. <img
  3217. :src="w.works"
  3218. @click="previewImg(w.works, w)"
  3219. alt
  3220. />
  3221. <div
  3222. class="answerScore"
  3223. v-if="w.score"
  3224. @click.stop="openScore(w)"
  3225. :class="{
  3226. rightW:
  3227. w.userid == userid ||
  3228. tType == 1 ||
  3229. tType == 4 ||
  3230. w.ateacher == userid
  3231. }"
  3232. >
  3233. {{ JSON.parse(w.score).wScore }}分
  3234. </div>
  3235. <div
  3236. class="answerScore"
  3237. @click.stop="openScore(w)"
  3238. v-else-if="courseDetail.userid == userid"
  3239. :class="{
  3240. rightW:
  3241. w.userid == userid ||
  3242. tType == 1 ||
  3243. tType == 4 ||
  3244. w.ateacher == userid
  3245. }"
  3246. >
  3247. 评分
  3248. </div>
  3249. <img
  3250. class="deleteImg"
  3251. src="../../assets/deleteworks.png"
  3252. v-if="
  3253. w.userid == userid || tType == 1 || tType == 4
  3254. "
  3255. @click.stop="deleteWorks(w.wid)"
  3256. alt
  3257. />
  3258. </div>
  3259. <div class="workImg" v-if="w.type == 1">
  3260. <img :src="word" @click="openFile(w.works)" alt />
  3261. <!-- @click="openFile(w.works)" -->
  3262. <div
  3263. class="answerScore"
  3264. v-if="w.score"
  3265. @click.stop="openScore(w)"
  3266. :class="{
  3267. rightW:
  3268. w.userid == userid ||
  3269. tType == 1 ||
  3270. tType == 4 ||
  3271. w.ateacher == userid
  3272. }"
  3273. >
  3274. {{ JSON.parse(w.score).wScore }}分
  3275. </div>
  3276. <div
  3277. class="answerScore"
  3278. @click.stop="openScore(w)"
  3279. v-else-if="courseDetail.userid == userid"
  3280. :class="{
  3281. rightW:
  3282. w.userid == userid ||
  3283. tType == 1 ||
  3284. tType == 4 ||
  3285. w.ateacher == userid
  3286. }"
  3287. >
  3288. 评分
  3289. </div>
  3290. <img
  3291. class="deleteImg"
  3292. src="../../assets/deleteworks.png"
  3293. v-if="
  3294. w.userid == userid || tType == 1 || tType == 4
  3295. "
  3296. @click.stop="deleteWorks(w.wid)"
  3297. alt
  3298. />
  3299. </div>
  3300. <div class="workImg" v-if="w.type == 3">
  3301. <img
  3302. style="cursor: pointer"
  3303. :src="video"
  3304. @click="openVideo(w)"
  3305. alt
  3306. />
  3307. <!-- @click="openVideo(w.works)" -->
  3308. <div
  3309. class="answerScore"
  3310. v-if="w.score"
  3311. @click.stop="openScore(w)"
  3312. :class="{
  3313. rightW:
  3314. w.userid == userid ||
  3315. tType == 1 ||
  3316. tType == 4 ||
  3317. w.ateacher == userid
  3318. }"
  3319. >
  3320. {{ JSON.parse(w.score).wScore }}分
  3321. </div>
  3322. <div
  3323. class="answerScore"
  3324. @click.stop="openScore(w)"
  3325. v-else-if="courseDetail.userid == userid"
  3326. :class="{
  3327. rightW:
  3328. w.userid == userid ||
  3329. tType == 1 ||
  3330. tType == 4 ||
  3331. w.ateacher == userid
  3332. }"
  3333. >
  3334. 评分
  3335. </div>
  3336. <img
  3337. class="deleteImg"
  3338. src="../../assets/deleteworks.png"
  3339. v-if="
  3340. w.userid == userid || tType == 1 || tType == 4
  3341. "
  3342. @click.stop="deleteWorks(w.wid)"
  3343. alt
  3344. />
  3345. </div>
  3346. <div class="workImg" v-if="w.type == 12">
  3347. <img
  3348. style="cursor: pointer"
  3349. :src="word2"
  3350. @click="downloadFile(w.works)"
  3351. alt
  3352. />
  3353. <!-- @click="openVideo(w.works)" -->
  3354. <div
  3355. class="answerScore"
  3356. v-if="w.score"
  3357. @click.stop="openScore(w)"
  3358. :class="{
  3359. rightW:
  3360. w.userid == userid ||
  3361. tType == 1 ||
  3362. tType == 4 ||
  3363. w.ateacher == userid
  3364. }"
  3365. >
  3366. {{ JSON.parse(w.score).wScore }}分
  3367. </div>
  3368. <div
  3369. class="answerScore"
  3370. @click.stop="openScore(w)"
  3371. v-else-if="courseDetail.userid == userid"
  3372. :class="{
  3373. rightW:
  3374. w.userid == userid ||
  3375. tType == 1 ||
  3376. tType == 4 ||
  3377. w.ateacher == userid
  3378. }"
  3379. >
  3380. 评分
  3381. </div>
  3382. <img
  3383. class="deleteImg"
  3384. src="../../assets/deleteworks.png"
  3385. v-if="
  3386. w.userid == userid || tType == 1 || tType == 4
  3387. "
  3388. @click.stop="deleteWorks(w.wid)"
  3389. alt
  3390. />
  3391. </div>
  3392. <div class="comment" style="min-width: 200px">
  3393. <div class="worksName">
  3394. <div>{{ w.sName }}</div>
  3395. </div>
  3396. <div class="commentList">
  3397. <div class="commentList">
  3398. <div
  3399. class="commentImg"
  3400. @click="
  3401. isLikes(
  3402. w.wid,
  3403. userid,
  3404. 1,
  3405. null,
  3406. w.isLikes,
  3407. w.sName
  3408. )
  3409. "
  3410. >
  3411. <img
  3412. :src="w.isLikes == true ? likes : noLikes"
  3413. alt=""
  3414. />
  3415. </div>
  3416. <div>{{ w.likesCount }}</div>
  3417. </div>
  3418. <div
  3419. class="commentList"
  3420. style="margin-right: 15px"
  3421. >
  3422. <div
  3423. class="commentImg"
  3424. @click="
  3425. commentOther(
  3426. w,
  3427. toolIndex,
  3428. wIndex,
  3429. null,
  3430. g.id
  3431. )
  3432. "
  3433. >
  3434. <img
  3435. src="../../assets/icon/comment/comment.png"
  3436. alt=""
  3437. />
  3438. </div>
  3439. <div>{{ w.commentCount }}</div>
  3440. </div>
  3441. </div>
  3442. </div>
  3443. </div>
  3444. </div>
  3445. <div class="group_work" v-else>暂无提交作业</div>
  3446. </div>
  3447. </div>
  3448. <div
  3449. :id="'tool-' + toolIndex"
  3450. :style="{
  3451. height:
  3452. isCloseList[toolIndex].isClose == 1
  3453. ? retrnToolHeight('tool-' + toolIndex)
  3454. : 'auto',
  3455. overflow:
  3456. isCloseList[toolIndex].isClose == 1
  3457. ? 'hidden'
  3458. : 'unset'
  3459. }"
  3460. class="worksDetailBox"
  3461. v-if="
  3462. worksStudent.length &&
  3463. worksStudent[toolIndex].length > 0
  3464. "
  3465. >
  3466. <div
  3467. class="works"
  3468. style="
  3469. width: 200px;
  3470. height: 140px;
  3471. margin: 10px 10px 10px 0;
  3472. border-radius: 15px;
  3473. box-shadow: 0 0 6px 1px #dfdada;
  3474. "
  3475. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3476. :key="wIndex"
  3477. :class="w.type == 1 ? 'isTypeOne' : ''"
  3478. >
  3479. <div class="workImg" v-if="w.type == 0">
  3480. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3481. <img
  3482. :src="w.works"
  3483. @click="previewImg(w.works, w)"
  3484. alt
  3485. />
  3486. <div
  3487. class="answerScore"
  3488. v-if="w.score"
  3489. @click.stop="openScore(w)"
  3490. :class="{
  3491. rightW:
  3492. w.userid == userid ||
  3493. tType == 1 ||
  3494. tType == 4 ||
  3495. w.ateacher == userid
  3496. }"
  3497. >
  3498. {{ JSON.parse(w.score).wScore }}分
  3499. </div>
  3500. <div
  3501. class="answerScore"
  3502. @click.stop="openScore(w)"
  3503. v-else-if="
  3504. courseDetail.userid == userid &&
  3505. courseDetail.state != 5 &&
  3506. chapInfoList[courseType].chapterInfo[0]
  3507. .taskJson[taskCount].eList &&
  3508. chapInfoList[courseType].chapterInfo[0]
  3509. .taskJson[taskCount].eList.length
  3510. "
  3511. :class="{
  3512. rightW:
  3513. w.userid == userid ||
  3514. tType == 1 ||
  3515. tType == 4 ||
  3516. w.ateacher == userid
  3517. }"
  3518. >
  3519. 评分
  3520. </div>
  3521. <!-- <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"> -->
  3522. <div
  3523. v-else-if="
  3524. (courseDetail.userid == userid ||
  3525. (courseDetail.course_teacher &&
  3526. courseDetail.course_teacher.indexOf(userid) !=
  3527. -1) ||
  3528. (w.userid == userid && sIsOpen)) &&
  3529. courseDetail.state == 5 &&
  3530. ((chapInfoList[courseType].chapterInfo[0]
  3531. .taskJson[taskCount].eList &&
  3532. chapInfoList[courseType].chapterInfo[0]
  3533. .taskJson[taskCount].eList.length) ||
  3534. (tool.eList && tool.eList.length))
  3535. "
  3536. >
  3537. <el-popover
  3538. placement="top"
  3539. width="318"
  3540. :disabled="AIloading[toolIndex][wIndex].loading"
  3541. trigger="hover"
  3542. >
  3543. <markScore
  3544. :loading="AIloading[toolIndex][wIndex].loading"
  3545. :markScoreVisible="markScoreVisible"
  3546. :ref="`markSco${toolIndex}${wIndex}`"
  3547. @updateLoading="updateLoading"
  3548. @updateDocSco="updateDocSco"
  3549. @refreshOther="refreshOther"
  3550. @markScoreDig="markScoreDig"
  3551. :tool="tool"
  3552. :wIndex="wIndex"
  3553. :scoCon="w"
  3554. :toolIndex="toolIndex"
  3555. :key="refreshKey"
  3556. :stage="courseType"
  3557. :task="taskCount"
  3558. :scoTit="
  3559. chapInfoList[courseType].chapterInfo[0]
  3560. .taskJson[taskCount].eList
  3561. "
  3562. >
  3563. </markScore>
  3564. <div
  3565. class="answerScore"
  3566. @click="
  3567. markScoreDig2(
  3568. w.sName,
  3569. worksStudent,
  3570. w.userid,
  3571. toolIndex,
  3572. chapInfoList[courseType].chapterInfo[0]
  3573. .taskJson[taskCount].eList,
  3574. AIloading[toolIndex][wIndex].loading,
  3575. tool
  3576. )
  3577. "
  3578. slot="reference"
  3579. :class="{
  3580. rightW:
  3581. w.userid == userid ||
  3582. tType == 1 ||
  3583. tType == 4 ||
  3584. w.ateacher == userid
  3585. }"
  3586. >
  3587. <span v-if="AIloading[toolIndex][wIndex].sco">
  3588. {{
  3589. AIloading[toolIndex][wIndex].loading
  3590. ? "评分中"
  3591. : AIloading[toolIndex][wIndex].sco + "分"
  3592. }}
  3593. </span>
  3594. <span v-else>
  3595. {{
  3596. AIloading[toolIndex][wIndex].loading
  3597. ? "评分中"
  3598. : "评分"
  3599. }}
  3600. </span>
  3601. </div>
  3602. </el-popover>
  3603. </div>
  3604. <img
  3605. class="deleteImg"
  3606. src="../../assets/deleteworks.png"
  3607. v-if="
  3608. w.userid == userid || tType == 1 || tType == 4
  3609. "
  3610. @click.stop="deleteWorks(w.wid)"
  3611. alt
  3612. />
  3613. </div>
  3614. <div class="workImg" v-if="w.type == 1">
  3615. <img :src="word" @click="openFile(w.works)" alt />
  3616. <!-- @click="openFile(w.works)" -->
  3617. <div
  3618. class="answerScore"
  3619. v-if="w.score"
  3620. @click.stop="openScore(w)"
  3621. :class="{
  3622. rightW:
  3623. w.userid == userid ||
  3624. tType == 1 ||
  3625. tType == 4 ||
  3626. w.ateacher == userid
  3627. }"
  3628. >
  3629. {{ JSON.parse(w.score).wScore }}分
  3630. </div>
  3631. <div
  3632. class="answerScore"
  3633. @click.stop="openScore(w)"
  3634. v-else-if="
  3635. courseDetail.userid == userid &&
  3636. courseDetail.state != 5 &&
  3637. chapInfoList[courseType].chapterInfo[0]
  3638. .taskJson[taskCount].eList &&
  3639. chapInfoList[courseType].chapterInfo[0]
  3640. .taskJson[taskCount].eList.length
  3641. "
  3642. :class="{
  3643. rightW:
  3644. w.userid == userid ||
  3645. tType == 1 ||
  3646. tType == 4 ||
  3647. w.ateacher == userid
  3648. }"
  3649. >
  3650. 评分
  3651. </div>
  3652. <!-- <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"> -->
  3653. <div
  3654. v-else-if="
  3655. (courseDetail.userid == userid ||
  3656. (courseDetail.course_teacher &&
  3657. courseDetail.course_teacher.indexOf(userid) !=
  3658. -1) ||
  3659. (w.userid == userid && sIsOpen)) &&
  3660. courseDetail.state == 5 &&
  3661. ((chapInfoList[courseType].chapterInfo[0]
  3662. .taskJson[taskCount].eList &&
  3663. chapInfoList[courseType].chapterInfo[0]
  3664. .taskJson[taskCount].eList.length) ||
  3665. (tool.eList && tool.eList.length))
  3666. "
  3667. >
  3668. <el-popover
  3669. placement="top"
  3670. width="318"
  3671. :disabled="AIloading[toolIndex][wIndex].loading"
  3672. trigger="hover"
  3673. >
  3674. <markScore
  3675. :loading="AIloading[toolIndex][wIndex].loading"
  3676. :markScoreVisible="markScoreVisible"
  3677. :ref="`markSco${toolIndex}${wIndex}`"
  3678. @updateLoading="updateLoading"
  3679. @updateDocSco="updateDocSco"
  3680. @refreshOther="refreshOther"
  3681. @markScoreDig="markScoreDig"
  3682. :tool="tool"
  3683. :wIndex="wIndex"
  3684. :scoCon="w"
  3685. :toolIndex="toolIndex"
  3686. :key="refreshKey"
  3687. :stage="courseType"
  3688. :task="taskCount"
  3689. :scoTit="
  3690. chapInfoList[courseType].chapterInfo[0]
  3691. .taskJson[taskCount].eList
  3692. "
  3693. >
  3694. </markScore>
  3695. <div
  3696. class="answerScore"
  3697. @click="
  3698. markScoreDig2(
  3699. w.sName,
  3700. worksStudent,
  3701. w.userid,
  3702. toolIndex,
  3703. chapInfoList[courseType].chapterInfo[0]
  3704. .taskJson[taskCount].eList,
  3705. AIloading[toolIndex][wIndex].loading,
  3706. tool
  3707. )
  3708. "
  3709. slot="reference"
  3710. :class="{
  3711. rightW:
  3712. w.userid == userid ||
  3713. tType == 1 ||
  3714. tType == 4 ||
  3715. w.ateacher == userid
  3716. }"
  3717. >
  3718. <span v-if="AIloading[toolIndex][wIndex].sco">
  3719. {{
  3720. AIloading[toolIndex][wIndex].loading
  3721. ? "评分中"
  3722. : AIloading[toolIndex][wIndex].sco + "分"
  3723. }}
  3724. </span>
  3725. <span v-else>
  3726. {{
  3727. AIloading[toolIndex][wIndex].loading
  3728. ? "评分中"
  3729. : "评分"
  3730. }}
  3731. </span>
  3732. </div>
  3733. </el-popover>
  3734. </div>
  3735. <img
  3736. class="deleteImg"
  3737. src="../../assets/deleteworks.png"
  3738. v-if="
  3739. w.userid == userid || tType == 1 || tType == 4
  3740. "
  3741. @click.stop="deleteWorks(w.wid)"
  3742. alt
  3743. />
  3744. </div>
  3745. <div class="workImg" v-if="w.type == 3">
  3746. <img
  3747. style="cursor: pointer"
  3748. :src="video"
  3749. @click="openVideo(w)"
  3750. alt
  3751. />
  3752. <!-- @click="openVideo(w.works)" -->
  3753. <div
  3754. class="answerScore"
  3755. v-if="w.score"
  3756. @click.stop="openScore(w)"
  3757. :class="{
  3758. rightW:
  3759. w.userid == userid ||
  3760. tType == 1 ||
  3761. tType == 4 ||
  3762. w.ateacher == userid
  3763. }"
  3764. >
  3765. {{ JSON.parse(w.score).wScore }}分
  3766. </div>
  3767. <div
  3768. class="answerScore"
  3769. @click.stop="openScore(w)"
  3770. v-else-if="
  3771. courseDetail.userid == userid &&
  3772. courseDetail.state != 5 &&
  3773. chapInfoList[courseType].chapterInfo[0]
  3774. .taskJson[taskCount].eList &&
  3775. chapInfoList[courseType].chapterInfo[0]
  3776. .taskJson[taskCount].eList.length
  3777. "
  3778. :class="{
  3779. rightW:
  3780. w.userid == userid ||
  3781. tType == 1 ||
  3782. tType == 4 ||
  3783. w.ateacher == userid
  3784. }"
  3785. >
  3786. 评分
  3787. </div>
  3788. <!-- <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"> -->
  3789. <div
  3790. v-else-if="
  3791. (courseDetail.userid == userid ||
  3792. (courseDetail.course_teacher &&
  3793. courseDetail.course_teacher.indexOf(userid) !=
  3794. -1) ||
  3795. (w.userid == userid && sIsOpen)) &&
  3796. courseDetail.state == 5 &&
  3797. ((chapInfoList[courseType].chapterInfo[0]
  3798. .taskJson[taskCount].eList &&
  3799. chapInfoList[courseType].chapterInfo[0]
  3800. .taskJson[taskCount].eList.length) ||
  3801. (tool.eList && tool.eList.length))
  3802. "
  3803. >
  3804. <el-popover
  3805. placement="top"
  3806. width="318"
  3807. :disabled="AIloading[toolIndex][wIndex].loading"
  3808. trigger="hover"
  3809. >
  3810. <markScore
  3811. :loading="AIloading[toolIndex][wIndex].loading"
  3812. :markScoreVisible="markScoreVisible"
  3813. :ref="`markSco${toolIndex}${wIndex}`"
  3814. @updateLoading="updateLoading"
  3815. @updateDocSco="updateDocSco"
  3816. @refreshOther="refreshOther"
  3817. @markScoreDig="markScoreDig"
  3818. :tool="tool"
  3819. :wIndex="wIndex"
  3820. :scoCon="w"
  3821. :toolIndex="toolIndex"
  3822. :key="refreshKey"
  3823. :stage="courseType"
  3824. :task="taskCount"
  3825. :scoTit="
  3826. chapInfoList[courseType].chapterInfo[0]
  3827. .taskJson[taskCount].eList
  3828. "
  3829. >
  3830. </markScore>
  3831. <div
  3832. class="answerScore"
  3833. @click="
  3834. markScoreDig2(
  3835. w.sName,
  3836. worksStudent,
  3837. w.userid,
  3838. toolIndex,
  3839. chapInfoList[courseType].chapterInfo[0]
  3840. .taskJson[taskCount].eList,
  3841. AIloading[toolIndex][wIndex].loading,
  3842. tool
  3843. )
  3844. "
  3845. slot="reference"
  3846. :class="{
  3847. rightW:
  3848. w.userid == userid ||
  3849. tType == 1 ||
  3850. tType == 4 ||
  3851. w.ateacher == userid
  3852. }"
  3853. >
  3854. <span v-if="AIloading[toolIndex][wIndex].sco">
  3855. {{
  3856. AIloading[toolIndex][wIndex].loading
  3857. ? "评分中"
  3858. : AIloading[toolIndex][wIndex].sco + "分"
  3859. }}
  3860. </span>
  3861. <span v-else>
  3862. {{
  3863. AIloading[toolIndex][wIndex].loading
  3864. ? "评分中"
  3865. : "评分"
  3866. }}
  3867. </span>
  3868. </div>
  3869. </el-popover>
  3870. </div>
  3871. <img
  3872. class="deleteImg"
  3873. src="../../assets/deleteworks.png"
  3874. v-if="
  3875. w.userid == userid || tType == 1 || tType == 4
  3876. "
  3877. @click.stop="deleteWorks(w.wid)"
  3878. alt
  3879. />
  3880. </div>
  3881. <div class="workImg" v-if="w.type == 12">
  3882. <img
  3883. style="cursor: pointer"
  3884. :src="word2"
  3885. @click="downloadFile(w.works)"
  3886. alt
  3887. />
  3888. <!-- @click="openVideo(w.works)" -->
  3889. <div
  3890. class="answerScore"
  3891. v-if="w.score"
  3892. @click.stop="openScore(w)"
  3893. :class="{
  3894. rightW:
  3895. w.userid == userid ||
  3896. tType == 1 ||
  3897. tType == 4 ||
  3898. w.ateacher == userid
  3899. }"
  3900. >
  3901. {{ JSON.parse(w.score).wScore }}分
  3902. </div>
  3903. <div
  3904. class="answerScore"
  3905. @click.stop="openScore(w)"
  3906. v-else-if="
  3907. courseDetail.userid == userid &&
  3908. courseDetail.state != 5 &&
  3909. chapInfoList[courseType].chapterInfo[0]
  3910. .taskJson[taskCount].eList &&
  3911. chapInfoList[courseType].chapterInfo[0]
  3912. .taskJson[taskCount].eList.length
  3913. "
  3914. :class="{
  3915. rightW:
  3916. w.userid == userid ||
  3917. tType == 1 ||
  3918. tType == 4 ||
  3919. w.ateacher == userid
  3920. }"
  3921. >
  3922. 评分
  3923. </div>
  3924. <!-- <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"> -->
  3925. <div
  3926. v-else-if="
  3927. (courseDetail.userid == userid ||
  3928. (courseDetail.course_teacher &&
  3929. courseDetail.course_teacher.indexOf(userid) !=
  3930. -1) ||
  3931. (w.userid == userid && sIsOpen)) &&
  3932. courseDetail.state == 5 &&
  3933. ((chapInfoList[courseType].chapterInfo[0]
  3934. .taskJson[taskCount].eList &&
  3935. chapInfoList[courseType].chapterInfo[0]
  3936. .taskJson[taskCount].eList.length) ||
  3937. (tool.eList && tool.eList.length))
  3938. "
  3939. >
  3940. <el-popover
  3941. placement="top"
  3942. width="318"
  3943. :disabled="AIloading[toolIndex][wIndex].loading"
  3944. trigger="hover"
  3945. >
  3946. <markScore
  3947. :loading="AIloading[toolIndex][wIndex].loading"
  3948. :markScoreVisible="markScoreVisible"
  3949. :ref="`markSco${toolIndex}${wIndex}`"
  3950. @updateLoading="updateLoading"
  3951. @updateDocSco="updateDocSco"
  3952. @refreshOther="refreshOther"
  3953. @markScoreDig="markScoreDig"
  3954. :tool="tool"
  3955. :wIndex="wIndex"
  3956. :scoCon="w"
  3957. :toolIndex="toolIndex"
  3958. :key="refreshKey"
  3959. :stage="courseType"
  3960. :task="taskCount"
  3961. :scoTit="
  3962. chapInfoList[courseType].chapterInfo[0]
  3963. .taskJson[taskCount].eList
  3964. "
  3965. >
  3966. </markScore>
  3967. <div
  3968. class="answerScore"
  3969. @click="
  3970. markScoreDig2(
  3971. w.sName,
  3972. worksStudent,
  3973. w.userid,
  3974. toolIndex,
  3975. chapInfoList[courseType].chapterInfo[0]
  3976. .taskJson[taskCount].eList,
  3977. AIloading[toolIndex][wIndex].loading,
  3978. tool
  3979. )
  3980. "
  3981. slot="reference"
  3982. :class="{
  3983. rightW:
  3984. w.userid == userid ||
  3985. tType == 1 ||
  3986. tType == 4 ||
  3987. w.ateacher == userid
  3988. }"
  3989. >
  3990. <span v-if="AIloading[toolIndex][wIndex].sco">
  3991. {{
  3992. AIloading[toolIndex][wIndex].loading
  3993. ? "评分中"
  3994. : AIloading[toolIndex][wIndex].sco + "分"
  3995. }}
  3996. </span>
  3997. <span v-else>
  3998. {{
  3999. AIloading[toolIndex][wIndex].loading
  4000. ? "评分中"
  4001. : "评分"
  4002. }}
  4003. </span>
  4004. </div>
  4005. </el-popover>
  4006. </div>
  4007. <img
  4008. class="deleteImg"
  4009. src="../../assets/deleteworks.png"
  4010. v-if="
  4011. w.userid == userid || tType == 1 || tType == 4
  4012. "
  4013. @click.stop="deleteWorks(w.wid)"
  4014. alt
  4015. />
  4016. </div>
  4017. <div class="comment" style="min-width: 200px">
  4018. <div class="worksName">
  4019. <div>{{ w.sName }}</div>
  4020. </div>
  4021. <div class="commentList">
  4022. <div class="commentList">
  4023. <div
  4024. class="commentImg"
  4025. @click="
  4026. isLikes(
  4027. w.wid,
  4028. userid,
  4029. 1,
  4030. null,
  4031. w.isLikes,
  4032. w.sName
  4033. )
  4034. "
  4035. >
  4036. <img
  4037. :src="w.isLikes == true ? likes : noLikes"
  4038. alt=""
  4039. />
  4040. </div>
  4041. <div>{{ w.likesCount }}</div>
  4042. </div>
  4043. <div class="commentList" style="margin-right: 15px">
  4044. <div
  4045. class="commentImg"
  4046. @click="commentOther(w, toolIndex, wIndex)"
  4047. >
  4048. <img
  4049. src="../../assets/icon/comment/comment.png"
  4050. alt=""
  4051. />
  4052. </div>
  4053. <div>{{ w.commentCount }}</div>
  4054. </div>
  4055. </div>
  4056. </div>
  4057. </div>
  4058. </div>
  4059. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4060. 未提交
  4061. </div>
  4062. <div
  4063. class="noWorksS"
  4064. v-if="noWorksS && noWorksS[toolIndex].length"
  4065. >
  4066. <div
  4067. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4068. :key="sIndex"
  4069. class="noWorksName"
  4070. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4071. >
  4072. <el-tooltip
  4073. effect="dark"
  4074. :content="s.student"
  4075. placement="top"
  4076. >
  4077. <span>{{ s.student }}</span>
  4078. </el-tooltip>
  4079. </div>
  4080. </div>
  4081. </div>
  4082. <div
  4083. v-if="
  4084. tType &&
  4085. ((tType == 2 && sIsOpen == true) ||
  4086. tType == 1 ||
  4087. tType == 4) &&
  4088. tool.tool.indexOf(70) != -1
  4089. "
  4090. class="worksBox"
  4091. >
  4092. <div
  4093. class="zuoyeYulan"
  4094. v-if="
  4095. worksStudent.length &&
  4096. worksStudent[toolIndex].length > 0
  4097. "
  4098. >
  4099. <div class="worksTop">
  4100. <div>作业预览</div>
  4101. <div
  4102. class="corOpen"
  4103. @click="contract(toolIndex)"
  4104. v-if="
  4105. isCloseList[toolIndex].isCloseBoolean &&
  4106. isCloseList[toolIndex].isClose == 0
  4107. "
  4108. >
  4109. 折叠
  4110. </div>
  4111. <div
  4112. class="corOpen"
  4113. @click="contract(toolIndex)"
  4114. v-if="isCloseList[toolIndex].isClose == 1"
  4115. >
  4116. 展开
  4117. </div>
  4118. </div>
  4119. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4120. </div>
  4121. <div
  4122. :id="'tool-' + toolIndex"
  4123. :style="{
  4124. height:
  4125. isCloseList[toolIndex].isClose == 1
  4126. ? retrnToolHeight('tool-' + toolIndex)
  4127. : 'auto',
  4128. overflow:
  4129. isCloseList[toolIndex].isClose == 1
  4130. ? 'hidden'
  4131. : 'unset'
  4132. }"
  4133. class="worksDetailBox"
  4134. v-if="
  4135. worksStudent.length &&
  4136. worksStudent[toolIndex].length > 0
  4137. "
  4138. >
  4139. <div
  4140. class="works"
  4141. style="
  4142. width: 200px;
  4143. height: 140px;
  4144. margin: 10px 10px 10px 0;
  4145. border-radius: 15px;
  4146. box-shadow: 0 0 6px 1px #dfdada;
  4147. "
  4148. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4149. :key="wIndex"
  4150. :class="w.type == 1 ? 'isTypeOne' : ''"
  4151. >
  4152. <div
  4153. class="workImg"
  4154. @click.stop="openScore(w, toolIndex)"
  4155. >
  4156. <img :src="word" alt />
  4157. <img
  4158. class="deleteImg"
  4159. src="../../assets/deleteworks.png"
  4160. v-if="
  4161. w.userid == userid || tType == 1 || tType == 4
  4162. "
  4163. @click.stop="deleteWorks(w.wid)"
  4164. alt
  4165. />
  4166. </div>
  4167. <div class="comment" style="min-width: 200px">
  4168. <div class="worksName">
  4169. <div>{{ w.sName }}</div>
  4170. </div>
  4171. </div>
  4172. </div>
  4173. </div>
  4174. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4175. 未提交
  4176. </div>
  4177. <div
  4178. class="noWorksS"
  4179. v-if="noWorksS && noWorksS[toolIndex].length"
  4180. >
  4181. <div
  4182. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4183. :key="sIndex"
  4184. class="noWorksName"
  4185. >
  4186. <el-tooltip
  4187. effect="dark"
  4188. :content="s.student"
  4189. placement="top"
  4190. >
  4191. <span>{{ s.student }}</span>
  4192. </el-tooltip>
  4193. </div>
  4194. </div>
  4195. </div>
  4196. <div
  4197. v-if="
  4198. tType &&
  4199. tType == 2 &&
  4200. !sIsOpen &&
  4201. tool.tool.indexOf(70) != -1
  4202. "
  4203. class="worksBox"
  4204. >
  4205. <div
  4206. class="zuoyeYulan"
  4207. v-if="workStudent[toolIndex].length > 0"
  4208. >
  4209. <span class="worksTitle">作业预览</span>
  4210. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4211. </div>
  4212. <div
  4213. class="worksDetailBox"
  4214. v-if="workStudent[toolIndex].length > 0"
  4215. >
  4216. <div
  4217. class="works"
  4218. style="
  4219. width: 200px;
  4220. height: 140px;
  4221. margin: 10px 10px 10px 0;
  4222. box-shadow: 0 0 6px 1px #dfdada;
  4223. "
  4224. v-for="(w, wIndex) in workStudent[toolIndex]"
  4225. :key="wIndex"
  4226. >
  4227. <div
  4228. class="workImg"
  4229. @click.stop="openScore(w, toolIndex)"
  4230. >
  4231. <img :src="word" alt />
  4232. <img
  4233. class="deleteImg"
  4234. src="../../assets/deleteworks.png"
  4235. v-if="
  4236. w.userid == userid || tType == 1 || tType == 4
  4237. "
  4238. @click.stop="deleteWorks(w.wid)"
  4239. alt
  4240. />
  4241. </div>
  4242. <div class="worksName">
  4243. <div>{{ w.sName }}</div>
  4244. </div>
  4245. </div>
  4246. </div>
  4247. </div>
  4248. <div
  4249. v-if="
  4250. tType &&
  4251. ((tType == 2 && sIsOpen == true) ||
  4252. tType == 1 ||
  4253. tType == 4) &&
  4254. tool.tool.indexOf(32) != -1
  4255. "
  4256. class="worksBox"
  4257. >
  4258. <div
  4259. class="zuoyeYulan"
  4260. v-if="
  4261. worksStudent.length &&
  4262. worksStudent[toolIndex].length > 0
  4263. "
  4264. >
  4265. <div class="worksTop">
  4266. <div>作业预览</div>
  4267. <div
  4268. class="corOpen"
  4269. @click="contract(toolIndex)"
  4270. v-if="
  4271. isCloseList[toolIndex].isCloseBoolean &&
  4272. isCloseList[toolIndex].isClose == 0
  4273. "
  4274. >
  4275. 折叠
  4276. </div>
  4277. <div
  4278. class="corOpen"
  4279. @click="contract(toolIndex)"
  4280. v-if="isCloseList[toolIndex].isClose == 1"
  4281. >
  4282. 展开
  4283. </div>
  4284. </div>
  4285. </div>
  4286. <div
  4287. :id="'tool-' + toolIndex"
  4288. :style="{
  4289. height:
  4290. isCloseList[toolIndex].isClose == 1
  4291. ? retrnToolHeight('tool-' + toolIndex)
  4292. : 'auto',
  4293. overflow:
  4294. isCloseList[toolIndex].isClose == 1
  4295. ? 'hidden'
  4296. : 'unset'
  4297. }"
  4298. class="worksDetailBox"
  4299. v-if="
  4300. worksStudent.length &&
  4301. worksStudent[toolIndex].length > 0
  4302. "
  4303. >
  4304. <div
  4305. class="works"
  4306. style="
  4307. width: 200px;
  4308. height: 140px;
  4309. margin: 10px 10px 10px 0;
  4310. border-radius: 15px;
  4311. box-shadow: 0 0 6px 1px #dfdada;
  4312. "
  4313. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4314. :key="wIndex"
  4315. :class="w.type == 1 ? 'isTypeOne' : ''"
  4316. >
  4317. <div class="workImg">
  4318. <img
  4319. :src="word2"
  4320. @click="downloadFile(w.works)"
  4321. alt
  4322. />
  4323. <div
  4324. class="answerScore"
  4325. v-if="w.score"
  4326. @click.stop="openScore(w)"
  4327. :class="{
  4328. rightW:
  4329. w.userid == userid ||
  4330. tType == 1 ||
  4331. tType == 4 ||
  4332. w.ateacher == userid
  4333. }"
  4334. >
  4335. {{ JSON.parse(w.score).wScore }}分
  4336. </div>
  4337. <div
  4338. class="answerScore"
  4339. @click.stop="openScore(w)"
  4340. v-else-if="courseDetail.userid == userid"
  4341. :class="{
  4342. rightW:
  4343. w.userid == userid ||
  4344. tType == 1 ||
  4345. tType == 4 ||
  4346. w.ateacher == userid
  4347. }"
  4348. >
  4349. 评分
  4350. </div>
  4351. <img
  4352. class="deleteImg"
  4353. src="../../assets/deleteworks.png"
  4354. v-if="
  4355. w.userid == userid || tType == 1 || tType == 4
  4356. "
  4357. @click.stop="deleteWorks(w.wid)"
  4358. alt
  4359. />
  4360. </div>
  4361. <div class="comment" style="min-width: 200px">
  4362. <div class="worksName">
  4363. <div>{{ w.sName }}</div>
  4364. </div>
  4365. <div class="commentList">
  4366. <div class="commentList">
  4367. <div
  4368. class="commentImg"
  4369. @click="
  4370. isLikes(
  4371. w.wid,
  4372. userid,
  4373. 1,
  4374. null,
  4375. w.isLikes,
  4376. w.sName
  4377. )
  4378. "
  4379. >
  4380. <img
  4381. :src="w.isLikes == true ? likes : noLikes"
  4382. alt=""
  4383. />
  4384. </div>
  4385. <div>{{ w.likesCount }}</div>
  4386. </div>
  4387. <div class="commentList" style="margin-right: 15px">
  4388. <div
  4389. class="commentImg"
  4390. @click="commentOther(w, toolIndex, wIndex)"
  4391. >
  4392. <img
  4393. src="../../assets/icon/comment/comment.png"
  4394. alt=""
  4395. />
  4396. </div>
  4397. <div>{{ w.commentCount }}</div>
  4398. </div>
  4399. </div>
  4400. </div>
  4401. </div>
  4402. </div>
  4403. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4404. 未提交
  4405. </div>
  4406. <div
  4407. class="noWorksS"
  4408. v-if="noWorksS && noWorksS[toolIndex].length"
  4409. >
  4410. <div
  4411. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4412. :key="sIndex"
  4413. class="noWorksName"
  4414. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4415. >
  4416. <el-tooltip
  4417. effect="dark"
  4418. :content="s.student"
  4419. placement="top"
  4420. >
  4421. <span>{{ s.student }}</span>
  4422. </el-tooltip>
  4423. </div>
  4424. </div>
  4425. </div>
  4426. <div
  4427. v-if="
  4428. tType &&
  4429. ((tType == 2 && sIsOpen == true) ||
  4430. tType == 1 ||
  4431. tType == 4) &&
  4432. tool.tool.indexOf(57) != -1
  4433. "
  4434. class="worksBox"
  4435. >
  4436. <div
  4437. class="zuoyeYulan"
  4438. v-if="
  4439. worksStudent.length &&
  4440. worksStudent[toolIndex].length > 0
  4441. "
  4442. >
  4443. <div class="worksTop">
  4444. <div>作业预览</div>
  4445. <div
  4446. class="corOpen"
  4447. @click="contract(toolIndex)"
  4448. v-if="
  4449. isCloseList[toolIndex].isCloseBoolean &&
  4450. isCloseList[toolIndex].isClose == 0
  4451. "
  4452. >
  4453. 折叠
  4454. </div>
  4455. <div
  4456. class="corOpen"
  4457. @click="contract(toolIndex)"
  4458. v-if="isCloseList[toolIndex].isClose == 1"
  4459. >
  4460. 展开
  4461. </div>
  4462. </div>
  4463. </div>
  4464. <div
  4465. :id="'tool-' + toolIndex"
  4466. :style="{
  4467. height:
  4468. isCloseList[toolIndex].isClose == 1
  4469. ? retrnToolHeight('tool-' + toolIndex)
  4470. : 'auto',
  4471. overflow:
  4472. isCloseList[toolIndex].isClose == 1
  4473. ? 'hidden'
  4474. : 'unset'
  4475. }"
  4476. class="worksDetailBox"
  4477. v-if="
  4478. worksStudent.length &&
  4479. worksStudent[toolIndex].length > 0
  4480. "
  4481. >
  4482. <div
  4483. class="works"
  4484. style="
  4485. width: 200px;
  4486. height: 140px;
  4487. margin: 10px 10px 10px 0;
  4488. border-radius: 15px;
  4489. box-shadow: 0 0 6px 1px #dfdada;
  4490. "
  4491. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4492. :key="wIndex"
  4493. :class="w.type == 1 ? 'isTypeOne' : ''"
  4494. >
  4495. <div class="workImg">
  4496. <img
  4497. :src="word2"
  4498. @click="downloadFile(w.works)"
  4499. v-if="w.type == 12"
  4500. alt
  4501. />
  4502. <img
  4503. :src="word2"
  4504. @click="
  4505. openCocoPi(57, toolIndex, w.userid, w.sName)
  4506. "
  4507. v-else-if="w.type == 15"
  4508. alt
  4509. />
  4510. <div
  4511. class="answerScore"
  4512. v-if="w.score"
  4513. @click.stop="openScore(w)"
  4514. :class="{
  4515. rightW:
  4516. w.userid == userid ||
  4517. tType == 1 ||
  4518. tType == 4 ||
  4519. w.ateacher == userid
  4520. }"
  4521. >
  4522. {{ JSON.parse(w.score).wScore }}分
  4523. </div>
  4524. <div
  4525. class="answerScore"
  4526. @click.stop="openScore(w)"
  4527. v-else-if="
  4528. courseDetail.userid == userid &&
  4529. courseDetail.state != 5 &&
  4530. chapInfoList[courseType].chapterInfo[0]
  4531. .taskJson[taskCount].eList &&
  4532. chapInfoList[courseType].chapterInfo[0]
  4533. .taskJson[taskCount].eList.length
  4534. "
  4535. :class="{
  4536. rightW:
  4537. w.userid == userid ||
  4538. tType == 1 ||
  4539. tType == 4 ||
  4540. w.ateacher == userid
  4541. }"
  4542. >
  4543. 评分
  4544. </div>
  4545. <!-- <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"> -->
  4546. <div
  4547. v-else-if="
  4548. (courseDetail.userid == userid ||
  4549. (courseDetail.course_teacher &&
  4550. courseDetail.course_teacher.indexOf(userid) !=
  4551. -1) ||
  4552. (w.userid == userid && sIsOpen)) &&
  4553. courseDetail.state == 5 &&
  4554. ((chapInfoList[courseType].chapterInfo[0]
  4555. .taskJson[taskCount].eList &&
  4556. chapInfoList[courseType].chapterInfo[0]
  4557. .taskJson[taskCount].eList.length) ||
  4558. (tool.eList && tool.eList.length))
  4559. "
  4560. >
  4561. <el-popover
  4562. placement="top"
  4563. width="318"
  4564. :disabled="AIloading[toolIndex][wIndex].loading"
  4565. trigger="hover"
  4566. >
  4567. <markScore
  4568. :loading="AIloading[toolIndex][wIndex].loading"
  4569. :markScoreVisible="markScoreVisible"
  4570. :ref="`markSco${toolIndex}${wIndex}`"
  4571. @updateLoading="updateLoading"
  4572. @updateDocSco="updateDocSco"
  4573. @refreshOther="refreshOther"
  4574. @markScoreDig="markScoreDig"
  4575. :tool="tool"
  4576. :wIndex="wIndex"
  4577. :scoCon="w"
  4578. :toolIndex="toolIndex"
  4579. :key="refreshKey"
  4580. :stage="courseType"
  4581. :task="taskCount"
  4582. :scoTit="
  4583. chapInfoList[courseType].chapterInfo[0]
  4584. .taskJson[taskCount].eList
  4585. "
  4586. >
  4587. </markScore>
  4588. <div
  4589. class="answerScore"
  4590. @click="
  4591. markScoreDig2(
  4592. w.sName,
  4593. worksStudent,
  4594. w.userid,
  4595. toolIndex,
  4596. chapInfoList[courseType].chapterInfo[0]
  4597. .taskJson[taskCount].eList,
  4598. AIloading[toolIndex][wIndex].loading,
  4599. tool
  4600. )
  4601. "
  4602. slot="reference"
  4603. :class="{
  4604. rightW:
  4605. w.userid == userid ||
  4606. tType == 1 ||
  4607. tType == 4 ||
  4608. w.ateacher == userid
  4609. }"
  4610. >
  4611. <span v-if="AIloading[toolIndex][wIndex].sco">
  4612. {{
  4613. AIloading[toolIndex][wIndex].loading
  4614. ? "评分中"
  4615. : AIloading[toolIndex][wIndex].sco + "分"
  4616. }}
  4617. </span>
  4618. <span v-else>
  4619. {{
  4620. AIloading[toolIndex][wIndex].loading
  4621. ? "评分中"
  4622. : "评分"
  4623. }}
  4624. </span>
  4625. </div>
  4626. </el-popover>
  4627. </div>
  4628. <img
  4629. class="deleteImg"
  4630. src="../../assets/deleteworks.png"
  4631. v-if="
  4632. w.userid == userid || tType == 1 || tType == 4
  4633. "
  4634. @click.stop="deleteWorks(w.wid)"
  4635. alt
  4636. />
  4637. </div>
  4638. <div class="comment" style="min-width: 200px">
  4639. <div class="worksName">
  4640. <div>{{ w.sName }}</div>
  4641. </div>
  4642. <div class="commentList">
  4643. <div class="commentList">
  4644. <div
  4645. class="commentImg"
  4646. @click="
  4647. isLikes(
  4648. w.wid,
  4649. userid,
  4650. 1,
  4651. null,
  4652. w.isLikes,
  4653. w.sName
  4654. )
  4655. "
  4656. >
  4657. <img
  4658. :src="w.isLikes == true ? likes : noLikes"
  4659. alt=""
  4660. />
  4661. </div>
  4662. <div>{{ w.likesCount }}</div>
  4663. </div>
  4664. <div class="commentList" style="margin-right: 15px">
  4665. <div
  4666. class="commentImg"
  4667. @click="commentOther(w, toolIndex, wIndex)"
  4668. >
  4669. <img
  4670. src="../../assets/icon/comment/comment.png"
  4671. alt=""
  4672. />
  4673. </div>
  4674. <div>{{ w.commentCount }}</div>
  4675. </div>
  4676. </div>
  4677. </div>
  4678. </div>
  4679. </div>
  4680. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4681. 未提交
  4682. </div>
  4683. <div
  4684. class="noWorksS"
  4685. v-if="noWorksS && noWorksS[toolIndex].length"
  4686. >
  4687. <div
  4688. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4689. :key="sIndex"
  4690. class="noWorksName"
  4691. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4692. >
  4693. <el-tooltip
  4694. effect="dark"
  4695. :content="s.student"
  4696. placement="top"
  4697. >
  4698. <span>{{ s.student }}</span>
  4699. </el-tooltip>
  4700. </div>
  4701. </div>
  4702. </div>
  4703. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4704. <div
  4705. style="display: flex;justify-content: space-between;align-items: center;"
  4706. >
  4707. <div
  4708. class="zuoyeYulan"
  4709. v-if="
  4710. worksStudent.length &&
  4711. worksStudent[toolIndex].length > 0
  4712. "
  4713. >
  4714. <span class="worksTitle">作业预览</span>
  4715. <div
  4716. class="corOpen"
  4717. @click="contract(toolIndex)"
  4718. v-if="
  4719. isCloseList[toolIndex].isCloseBoolean &&
  4720. isCloseList[toolIndex].isClose == 0
  4721. "
  4722. >
  4723. 折叠
  4724. </div>
  4725. <div
  4726. class="corOpen"
  4727. @click="contract(toolIndex)"
  4728. v-if="isCloseList[toolIndex].isClose == 1"
  4729. >
  4730. 展开
  4731. </div>
  4732. </div>
  4733. <div
  4734. style="display: flex;"
  4735. v-if="
  4736. (courseDetail.userid == userid ||
  4737. (courseDetail.course_teacher &&
  4738. courseDetail.course_teacher.indexOf(userid) !=
  4739. -1)) &&
  4740. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4741. taskCount
  4742. ].eList &&
  4743. chapInfoList[courseType].chapterInfo[0].taskJson[
  4744. taskCount
  4745. ].eList.length) ||
  4746. (tool.eList && tool.eList.length)) &&
  4747. courseDetail.state == 5
  4748. "
  4749. >
  4750. <!-- <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 "> -->
  4751. <div
  4752. style="margin-right:10px"
  4753. class="ScoreBtn"
  4754. @click="
  4755. resetLoopEva(
  4756. worksStudent[toolIndex],
  4757. chapInfoList[courseType].chapterInfo[0].taskJson[
  4758. taskCount
  4759. ].eList,
  4760. courseType,
  4761. taskCount,
  4762. toolIndex,
  4763. tool.toolDetail,
  4764. worksStudent
  4765. )
  4766. "
  4767. >
  4768. 一键重置
  4769. </div>
  4770. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4771. <img
  4772. src="../../assets/icon/newIcons/rootImg.png"
  4773. alt=""
  4774. />
  4775. AI评分
  4776. </div>
  4777. <div
  4778. class="ScoreBtn"
  4779. v-else-if="!loopLoading[toolIndex].loading"
  4780. @click="
  4781. loopEva(
  4782. worksStudent[toolIndex],
  4783. chapInfoList[courseType].chapterInfo[0].taskJson[
  4784. taskCount
  4785. ].eList,
  4786. courseType,
  4787. taskCount,
  4788. toolIndex,
  4789. tool.toolDetail,
  4790. chapInfoList[courseType].chapterInfo[0].taskJson[
  4791. taskCount
  4792. ].taskDetail,
  4793. tool
  4794. )
  4795. "
  4796. >
  4797. <img
  4798. src="../../assets/icon/newIcons/rootImg.png"
  4799. alt=""
  4800. />
  4801. AI评分
  4802. </div>
  4803. <div class="ScoreBtn" v-else>
  4804. <img
  4805. src="../../assets/icon/newIcons/rootImg.png"
  4806. alt=""
  4807. />
  4808. 正在评分
  4809. </div>
  4810. </div>
  4811. </div>
  4812. <div
  4813. :id="'tool-' + toolIndex"
  4814. :style="{
  4815. height:
  4816. isCloseList[toolIndex].isClose == 1
  4817. ? retrnToolHeight('tool-' + toolIndex)
  4818. : 'auto',
  4819. overflow:
  4820. isCloseList[toolIndex].isClose == 1
  4821. ? 'hidden'
  4822. : 'unset'
  4823. }"
  4824. class="worksDetailBox"
  4825. v-if="
  4826. worksStudent.length &&
  4827. worksStudent[toolIndex].length > 0
  4828. "
  4829. >
  4830. <div
  4831. class="works"
  4832. style="
  4833. width: 200px;
  4834. height: 140px;
  4835. margin: 10px 10px 10px 0;
  4836. border-radius: 15px;
  4837. box-shadow: 0 0 6px 1px #dfdada;
  4838. "
  4839. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4840. :key="wIndex"
  4841. :class="w.type == 1 ? 'isTypeOne' : ''"
  4842. >
  4843. <div class="workImg" v-if="w.type == 0">
  4844. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4845. <img
  4846. :src="w.works"
  4847. @click="previewImg(w.works, w)"
  4848. alt
  4849. />
  4850. <div
  4851. class="answerScore"
  4852. v-if="w.score"
  4853. @click.stop="openScore(w)"
  4854. :class="{
  4855. rightW:
  4856. w.userid == userid ||
  4857. tType == 1 ||
  4858. tType == 4 ||
  4859. w.ateacher == userid
  4860. }"
  4861. >
  4862. {{ JSON.parse(w.score).wScore }}分
  4863. </div>
  4864. <div
  4865. class="answerScore"
  4866. @click.stop="openScore(w)"
  4867. v-else-if="
  4868. courseDetail.userid == userid &&
  4869. courseDetail.state != 5 &&
  4870. chapInfoList[courseType].chapterInfo[0]
  4871. .taskJson[taskCount].eList &&
  4872. chapInfoList[courseType].chapterInfo[0]
  4873. .taskJson[taskCount].eList.length
  4874. "
  4875. :class="{
  4876. rightW:
  4877. w.userid == userid ||
  4878. tType == 1 ||
  4879. tType == 4 ||
  4880. w.ateacher == userid
  4881. }"
  4882. >
  4883. 评分
  4884. </div>
  4885. <!-- <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"> -->
  4886. <div
  4887. v-else-if="
  4888. (courseDetail.userid == userid ||
  4889. (courseDetail.course_teacher &&
  4890. courseDetail.course_teacher.indexOf(userid) !=
  4891. -1) ||
  4892. (w.userid == userid && sIsOpen)) &&
  4893. courseDetail.state == 5 &&
  4894. ((chapInfoList[courseType].chapterInfo[0]
  4895. .taskJson[taskCount].eList &&
  4896. chapInfoList[courseType].chapterInfo[0]
  4897. .taskJson[taskCount].eList.length) ||
  4898. (tool.eList && tool.eList.length))
  4899. "
  4900. >
  4901. <el-popover
  4902. placement="top"
  4903. width="318"
  4904. :disabled="AIloading[toolIndex][wIndex].loading"
  4905. trigger="hover"
  4906. >
  4907. <markScore
  4908. :loading="AIloading[toolIndex][wIndex].loading"
  4909. :markScoreVisible="markScoreVisible"
  4910. :ref="`markSco${toolIndex}${wIndex}`"
  4911. @updateLoading="updateLoading"
  4912. @updateDocSco="updateDocSco"
  4913. @refreshOther="refreshOther"
  4914. @markScoreDig="markScoreDig"
  4915. :tool="tool"
  4916. :wIndex="wIndex"
  4917. :scoCon="w"
  4918. :toolIndex="toolIndex"
  4919. :key="refreshKey"
  4920. :stage="courseType"
  4921. :task="taskCount"
  4922. :scoTit="
  4923. chapInfoList[courseType].chapterInfo[0]
  4924. .taskJson[taskCount].eList
  4925. "
  4926. >
  4927. </markScore>
  4928. <div
  4929. class="answerScore"
  4930. @click="
  4931. markScoreDig2(
  4932. w.sName,
  4933. worksStudent,
  4934. w.userid,
  4935. toolIndex,
  4936. chapInfoList[courseType].chapterInfo[0]
  4937. .taskJson[taskCount].eList,
  4938. AIloading[toolIndex][wIndex].loading,
  4939. tool
  4940. )
  4941. "
  4942. slot="reference"
  4943. :class="{
  4944. rightW:
  4945. w.userid == userid ||
  4946. tType == 1 ||
  4947. tType == 4 ||
  4948. w.ateacher == userid
  4949. }"
  4950. >
  4951. <span v-if="AIloading[toolIndex][wIndex].sco">
  4952. {{
  4953. AIloading[toolIndex][wIndex].loading
  4954. ? "评分中"
  4955. : AIloading[toolIndex][wIndex].sco + "分"
  4956. }}
  4957. </span>
  4958. <span v-else>
  4959. {{
  4960. AIloading[toolIndex][wIndex].loading
  4961. ? "评分中"
  4962. : "评分"
  4963. }}
  4964. </span>
  4965. </div>
  4966. </el-popover>
  4967. </div>
  4968. <img
  4969. class="deleteImg"
  4970. src="../../assets/deleteworks.png"
  4971. v-if="
  4972. w.userid == userid || tType == 1 || tType == 4
  4973. "
  4974. @click.stop="deleteWorks(w.wid)"
  4975. alt
  4976. />
  4977. </div>
  4978. <div
  4979. class="workImg"
  4980. style="cursor: pointer"
  4981. v-if="w.type == 1"
  4982. >
  4983. <img :src="word" @click="openFile(w.works)" alt />
  4984. <!-- @click="openFile(w.works)" -->
  4985. <div
  4986. class="answerScore"
  4987. v-if="w.score"
  4988. @click.stop="openScore(w)"
  4989. :class="{
  4990. rightW:
  4991. w.userid == userid ||
  4992. tType == 1 ||
  4993. tType == 4 ||
  4994. w.ateacher == userid
  4995. }"
  4996. >
  4997. {{ JSON.parse(w.score).wScore }}分
  4998. </div>
  4999. <div
  5000. class="answerScore"
  5001. @click.stop="openScore(w)"
  5002. v-else-if="
  5003. courseDetail.userid == userid &&
  5004. courseDetail.state != 5 &&
  5005. chapInfoList[courseType].chapterInfo[0]
  5006. .taskJson[taskCount].eList &&
  5007. chapInfoList[courseType].chapterInfo[0]
  5008. .taskJson[taskCount].eList.length
  5009. "
  5010. :class="{
  5011. rightW:
  5012. w.userid == userid ||
  5013. tType == 1 ||
  5014. tType == 4 ||
  5015. w.ateacher == userid
  5016. }"
  5017. >
  5018. 评分
  5019. </div>
  5020. <!-- <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"> -->
  5021. <div
  5022. v-else-if="
  5023. (courseDetail.userid == userid ||
  5024. (courseDetail.course_teacher &&
  5025. courseDetail.course_teacher.indexOf(userid) !=
  5026. -1) ||
  5027. (w.userid == userid && sIsOpen)) &&
  5028. courseDetail.state == 5 &&
  5029. ((chapInfoList[courseType].chapterInfo[0]
  5030. .taskJson[taskCount].eList &&
  5031. chapInfoList[courseType].chapterInfo[0]
  5032. .taskJson[taskCount].eList.length) ||
  5033. (tool.eList && tool.eList.length))
  5034. "
  5035. >
  5036. <el-popover
  5037. placement="top"
  5038. width="318"
  5039. :disabled="AIloading[toolIndex][wIndex].loading"
  5040. trigger="hover"
  5041. >
  5042. <markScore
  5043. :loading="AIloading[toolIndex][wIndex].loading"
  5044. :markScoreVisible="markScoreVisible"
  5045. :ref="`markSco${toolIndex}${wIndex}`"
  5046. @updateLoading="updateLoading"
  5047. @updateDocSco="updateDocSco"
  5048. @refreshOther="refreshOther"
  5049. @markScoreDig="markScoreDig"
  5050. :tool="tool"
  5051. :wIndex="wIndex"
  5052. :scoCon="w"
  5053. :toolIndex="toolIndex"
  5054. :key="refreshKey"
  5055. :stage="courseType"
  5056. :task="taskCount"
  5057. :scoTit="
  5058. chapInfoList[courseType].chapterInfo[0]
  5059. .taskJson[taskCount].eList
  5060. "
  5061. >
  5062. </markScore>
  5063. <div
  5064. class="answerScore"
  5065. @click="
  5066. markScoreDig2(
  5067. w.sName,
  5068. worksStudent,
  5069. w.userid,
  5070. toolIndex,
  5071. chapInfoList[courseType].chapterInfo[0]
  5072. .taskJson[taskCount].eList,
  5073. AIloading[toolIndex][wIndex].loading,
  5074. tool
  5075. )
  5076. "
  5077. slot="reference"
  5078. :class="{
  5079. rightW:
  5080. w.userid == userid ||
  5081. tType == 1 ||
  5082. tType == 4 ||
  5083. w.ateacher == userid
  5084. }"
  5085. >
  5086. <span v-if="AIloading[toolIndex][wIndex].sco">
  5087. {{
  5088. AIloading[toolIndex][wIndex].loading
  5089. ? "评分中"
  5090. : AIloading[toolIndex][wIndex].sco + "分"
  5091. }}
  5092. </span>
  5093. <span v-else>
  5094. {{
  5095. AIloading[toolIndex][wIndex].loading
  5096. ? "评分中"
  5097. : "评分"
  5098. }}
  5099. </span>
  5100. </div>
  5101. </el-popover>
  5102. </div>
  5103. <img
  5104. class="deleteImg"
  5105. src="../../assets/deleteworks.png"
  5106. v-if="
  5107. w.userid == userid || tType == 1 || tType == 4
  5108. "
  5109. @click.stop="deleteWorks(w.wid)"
  5110. alt
  5111. />
  5112. </div>
  5113. <div class="workImg" v-if="w.type == 3">
  5114. <img
  5115. style="cursor: pointer"
  5116. :src="video"
  5117. @click="openVideo(w)"
  5118. alt
  5119. />
  5120. <!-- @click="openVideo(w.works)" -->
  5121. <div
  5122. class="answerScore"
  5123. v-if="w.score"
  5124. @click.stop="openScore(w)"
  5125. :class="{
  5126. rightW:
  5127. w.userid == userid ||
  5128. tType == 1 ||
  5129. tType == 4 ||
  5130. w.ateacher == userid
  5131. }"
  5132. >
  5133. {{ JSON.parse(w.score).wScore }}分
  5134. </div>
  5135. <div
  5136. class="answerScore"
  5137. @click.stop="openScore(w)"
  5138. v-else-if="
  5139. courseDetail.userid == userid &&
  5140. courseDetail.state != 5 &&
  5141. chapInfoList[courseType].chapterInfo[0]
  5142. .taskJson[taskCount].eList &&
  5143. chapInfoList[courseType].chapterInfo[0]
  5144. .taskJson[taskCount].eList.length
  5145. "
  5146. :class="{
  5147. rightW:
  5148. w.userid == userid ||
  5149. tType == 1 ||
  5150. tType == 4 ||
  5151. w.ateacher == userid
  5152. }"
  5153. >
  5154. 评分
  5155. </div>
  5156. <!-- <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"> -->
  5157. <div
  5158. v-else-if="
  5159. (courseDetail.userid == userid ||
  5160. (courseDetail.course_teacher &&
  5161. courseDetail.course_teacher.indexOf(userid) !=
  5162. -1) ||
  5163. (w.userid == userid && sIsOpen)) &&
  5164. courseDetail.state == 5 &&
  5165. ((chapInfoList[courseType].chapterInfo[0]
  5166. .taskJson[taskCount].eList &&
  5167. chapInfoList[courseType].chapterInfo[0]
  5168. .taskJson[taskCount].eList.length) ||
  5169. (tool.eList && tool.eList.length))
  5170. "
  5171. >
  5172. <el-popover
  5173. placement="top"
  5174. width="318"
  5175. :disabled="AIloading[toolIndex][wIndex].loading"
  5176. trigger="hover"
  5177. >
  5178. <markScore
  5179. :loading="AIloading[toolIndex][wIndex].loading"
  5180. :markScoreVisible="markScoreVisible"
  5181. :ref="`markSco${toolIndex}${wIndex}`"
  5182. @updateLoading="updateLoading"
  5183. @updateDocSco="updateDocSco"
  5184. @refreshOther="refreshOther"
  5185. @markScoreDig="markScoreDig"
  5186. :tool="tool"
  5187. :wIndex="wIndex"
  5188. :scoCon="w"
  5189. :toolIndex="toolIndex"
  5190. :key="refreshKey"
  5191. :stage="courseType"
  5192. :task="taskCount"
  5193. :scoTit="
  5194. chapInfoList[courseType].chapterInfo[0]
  5195. .taskJson[taskCount].eList
  5196. "
  5197. >
  5198. </markScore>
  5199. <div
  5200. class="answerScore"
  5201. @click="
  5202. markScoreDig2(
  5203. w.sName,
  5204. worksStudent,
  5205. w.userid,
  5206. toolIndex,
  5207. chapInfoList[courseType].chapterInfo[0]
  5208. .taskJson[taskCount].eList,
  5209. AIloading[toolIndex][wIndex].loading,
  5210. tool
  5211. )
  5212. "
  5213. slot="reference"
  5214. :class="{
  5215. rightW:
  5216. w.userid == userid ||
  5217. tType == 1 ||
  5218. tType == 4 ||
  5219. w.ateacher == userid
  5220. }"
  5221. >
  5222. <span v-if="AIloading[toolIndex][wIndex].sco">
  5223. {{
  5224. AIloading[toolIndex][wIndex].loading
  5225. ? "评分中"
  5226. : AIloading[toolIndex][wIndex].sco + "分"
  5227. }}
  5228. </span>
  5229. <span v-else>
  5230. {{
  5231. AIloading[toolIndex][wIndex].loading
  5232. ? "评分中"
  5233. : "评分"
  5234. }}
  5235. </span>
  5236. </div>
  5237. </el-popover>
  5238. </div>
  5239. <img
  5240. class="deleteImg"
  5241. src="../../assets/deleteworks.png"
  5242. v-if="
  5243. w.userid == userid || tType == 1 || tType == 4
  5244. "
  5245. @click.stop="deleteWorks(w.wid)"
  5246. alt
  5247. />
  5248. </div>
  5249. <div class="comment" style="min-width: 200px">
  5250. <div class="worksName">
  5251. <div
  5252. style="cursor: pointer"
  5253. @click="
  5254. openSname(w.sName, w.wid, toolIndex, w.userid)
  5255. "
  5256. >
  5257. {{ w.sName }}
  5258. </div>
  5259. </div>
  5260. <div class="commentList">
  5261. <div class="commentList">
  5262. <div
  5263. class="commentImg"
  5264. @click="
  5265. isLikes(
  5266. w.wid,
  5267. userid,
  5268. 1,
  5269. null,
  5270. w.isLikes,
  5271. w.sName
  5272. )
  5273. "
  5274. >
  5275. <img
  5276. :src="w.isLikes == true ? likes : noLikes"
  5277. alt=""
  5278. />
  5279. </div>
  5280. <div>{{ w.likesCount }}</div>
  5281. </div>
  5282. <div class="commentList" style="margin-right: 15px">
  5283. <div
  5284. class="commentImg"
  5285. @click="commentOther(w, toolIndex, wIndex)"
  5286. >
  5287. <img
  5288. src="../../assets/icon/comment/comment.png"
  5289. alt=""
  5290. />
  5291. </div>
  5292. <div>{{ w.commentCount }}</div>
  5293. </div>
  5294. </div>
  5295. </div>
  5296. </div>
  5297. </div>
  5298. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5299. 未提交
  5300. </div>
  5301. <div
  5302. class="noWorksS"
  5303. v-if="noWorksS && noWorksS[toolIndex].length"
  5304. >
  5305. <div
  5306. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5307. :key="sIndex"
  5308. class="noWorksName"
  5309. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5310. >
  5311. <el-tooltip
  5312. effect="dark"
  5313. :content="s.student"
  5314. placement="top"
  5315. >
  5316. <span>{{ s.student }}</span>
  5317. </el-tooltip>
  5318. </div>
  5319. </div>
  5320. </div>
  5321. <div
  5322. v-if="
  5323. tType &&
  5324. ((tType == 2 && sIsOpen == true) ||
  5325. tType == 1 ||
  5326. tType == 4) &&
  5327. tool.tool.indexOf(4) != -1 &&
  5328. (tool.askJson[0].answer ||
  5329. tool.askJson[0].answer === 0) &&
  5330. checkJson[toolIndex].length
  5331. "
  5332. class="xuan_right_box"
  5333. >
  5334. <div
  5335. class="tool_right_box"
  5336. v-for="(item, index) in tool.askJson"
  5337. :key="index"
  5338. >
  5339. <div style="width: calc(100% - 30px);">
  5340. <el-tooltip
  5341. effect="light"
  5342. :content="index + 1 + '、' + item.askstitle"
  5343. placement="top"
  5344. popper-class="text_tooltip"
  5345. >
  5346. <div
  5347. style="
  5348. width: calc(100% - 130px);
  5349. display: block;
  5350. white-space: nowrap;
  5351. overflow: hidden;
  5352. text-overflow: ellipsis;
  5353. word-break: break-word;
  5354. cursor: pointer;
  5355. "
  5356. >
  5357. {{ index + 1 + "、" + item.askstitle }}
  5358. </div>
  5359. </el-tooltip>
  5360. </div>
  5361. <div class="right_box_xuan">
  5362. <span>正确率</span>
  5363. <span>{{
  5364. (checkJson[toolIndex][index].right
  5365. ? checkJson[toolIndex][index].right
  5366. : 0) + "%"
  5367. }}</span>
  5368. </div>
  5369. </div>
  5370. </div>
  5371. <div
  5372. class="xuan_right_box"
  5373. style="background: unset; padding: 0 10px"
  5374. v-if="
  5375. tType &&
  5376. ((tType == 2 && sIsOpen == true) ||
  5377. tType == 1 ||
  5378. tType == 4) &&
  5379. tool.tool.indexOf(4) != -1
  5380. "
  5381. >
  5382. <AskStatic
  5383. v-if="
  5384. worksStudent.length &&
  5385. worksStudent[toolIndex].length > 0
  5386. "
  5387. :askJSON="tool"
  5388. :checkJson="checkJson[toolIndex]"
  5389. ></AskStatic>
  5390. </div>
  5391. <div
  5392. v-if="
  5393. tType &&
  5394. ((tType == 2 && sIsOpen == true) ||
  5395. tType == 1 ||
  5396. tType == 4) &&
  5397. tool.tool.indexOf(4) != -1
  5398. "
  5399. class="worksBox"
  5400. >
  5401. <div
  5402. class="zuoyeYulan"
  5403. v-if="
  5404. worksStudent.length &&
  5405. worksStudent[toolIndex].length > 0
  5406. "
  5407. >
  5408. <div class="worksTop">
  5409. <div>作业预览</div>
  5410. <div
  5411. class="corOpen"
  5412. @click="contract(toolIndex)"
  5413. v-if="
  5414. isCloseList[toolIndex].isCloseBoolean &&
  5415. isCloseList[toolIndex].isClose == 0
  5416. "
  5417. >
  5418. 折叠
  5419. </div>
  5420. <div
  5421. class="corOpen"
  5422. @click="contract(toolIndex)"
  5423. v-if="isCloseList[toolIndex].isClose == 1"
  5424. >
  5425. 展开
  5426. </div>
  5427. </div>
  5428. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5429. </div>
  5430. <div>
  5431. <div
  5432. :id="'tool-' + toolIndex"
  5433. :style="{
  5434. height:
  5435. isCloseList[toolIndex].isClose == 1
  5436. ? retrnToolHeight('tool-' + toolIndex)
  5437. : 'auto',
  5438. overflow:
  5439. isCloseList[toolIndex].isClose == 1
  5440. ? 'hidden'
  5441. : 'unset'
  5442. }"
  5443. class="worksDetailBox"
  5444. v-if="
  5445. worksStudent.length &&
  5446. worksStudent[toolIndex].length > 0
  5447. "
  5448. >
  5449. <div
  5450. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5451. :key="wIndex"
  5452. class="isWorksName2"
  5453. @click="
  5454. openTools(4, toolIndex, taskCount, w.works, w.sName)
  5455. "
  5456. >
  5457. {{ w.sName }}
  5458. <img
  5459. class="deleteImg deleteImg2"
  5460. src="../../assets/deleteworks.png"
  5461. v-if="
  5462. w.userid == userid || tType == 1 || tType == 4
  5463. "
  5464. @click.stop="deleteWorks(w.wid)"
  5465. alt
  5466. />
  5467. </div>
  5468. <!-- <div class="works" style="
  5469. width: 200px;
  5470. height: 140px;
  5471. border-radius: 10px;
  5472. box-shadow: 0 0 6px 1px #dfdada;
  5473. overflow: hidden;
  5474. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  5475. <div class="workImg">
  5476. <img src="../../assets/icon/works/noImg.png" @click="
  5477. openTools(
  5478. 4,
  5479. toolIndex,
  5480. taskCount,
  5481. w.works,
  5482. w.sName
  5483. )
  5484. " alt />
  5485. </div>
  5486. <div class="worksName">
  5487. <div>{{ w.sName }}</div>
  5488. <div>{{ w.time }}</div>
  5489. </div>
  5490. </div> -->
  5491. </div>
  5492. </div>
  5493. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5494. 未提交
  5495. </div>
  5496. <div
  5497. class="noWorksS"
  5498. v-if="noWorksS && noWorksS[toolIndex].length"
  5499. >
  5500. <div
  5501. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5502. :key="sIndex"
  5503. class="noWorksName"
  5504. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  5505. >
  5506. <el-tooltip
  5507. effect="dark"
  5508. :content="s.student"
  5509. placement="top"
  5510. >
  5511. <span>{{ s.student }}</span>
  5512. </el-tooltip>
  5513. </div>
  5514. </div>
  5515. </div>
  5516. <div
  5517. v-if="
  5518. tType &&
  5519. ((tType == 2 && sIsOpen == true) ||
  5520. tType == 1 ||
  5521. tType == 4) &&
  5522. tool.tool.indexOf(45) != -1 &&
  5523. (tool.testJson.testJson[0].answer ||
  5524. tool.testJson.testJson[0].answer === 0) &&
  5525. checkJson[toolIndex].length
  5526. "
  5527. class="xuan_right_box"
  5528. >
  5529. <div
  5530. class="tool_right_box"
  5531. v-for="(item, index) in tool.testJson.testJson"
  5532. :key="index"
  5533. >
  5534. <div class="right_box_xuan" style="margin-right: 10px">
  5535. <span>正确率</span>
  5536. <span>{{
  5537. (checkJson[toolIndex][index].right
  5538. ? checkJson[toolIndex][index].right
  5539. : 0) + "%"
  5540. }}</span>
  5541. </div>
  5542. <div style="width: calc(100% - 30px);">
  5543. <el-tooltip
  5544. effect="light"
  5545. :content="index + 1 + '、' + item.teststitle"
  5546. placement="top"
  5547. popper-class="text_tooltip"
  5548. >
  5549. <div
  5550. style="
  5551. width: calc(100% - 130px);
  5552. display: block;
  5553. white-space: nowrap;
  5554. overflow: hidden;
  5555. text-overflow: ellipsis;
  5556. word-break: break-word;
  5557. cursor: pointer;
  5558. "
  5559. >
  5560. {{ index + 1 + "、" + item.teststitle }}
  5561. </div>
  5562. </el-tooltip>
  5563. </div>
  5564. </div>
  5565. </div>
  5566. <div
  5567. class="xuan_right_box"
  5568. style="background: unset; padding: 0 10px; width: 91.5%"
  5569. v-if="
  5570. tType &&
  5571. ((tType == 2 && sIsOpen == true) ||
  5572. tType == 1 ||
  5573. tType == 4) &&
  5574. tool.tool.indexOf(45) != -1
  5575. "
  5576. >
  5577. <AskStatic2
  5578. v-if="
  5579. worksStudent.length &&
  5580. worksStudent[toolIndex].length > 0
  5581. "
  5582. :askJSON="tool"
  5583. :checkJson="checkJson[toolIndex]"
  5584. ></AskStatic2>
  5585. </div>
  5586. <div
  5587. v-if="
  5588. tType &&
  5589. ((tType == 2 && sIsOpen == true) ||
  5590. tType == 1 ||
  5591. tType == 4) &&
  5592. tool.tool.indexOf(45) != -1
  5593. "
  5594. class="worksBox"
  5595. >
  5596. <div
  5597. class="zuoyeYulan"
  5598. v-if="
  5599. worksStudent.length &&
  5600. worksStudent[toolIndex].length > 0
  5601. "
  5602. >
  5603. <div class="worksTop">
  5604. <div>作业预览</div>
  5605. <div
  5606. class="corOpen"
  5607. @click="contract(toolIndex)"
  5608. v-if="
  5609. isCloseList[toolIndex].isCloseBoolean &&
  5610. isCloseList[toolIndex].isClose == 0
  5611. "
  5612. >
  5613. 折叠
  5614. </div>
  5615. <div
  5616. class="corOpen"
  5617. @click="contract(toolIndex)"
  5618. v-if="isCloseList[toolIndex].isClose == 1"
  5619. >
  5620. 展开
  5621. </div>
  5622. </div>
  5623. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5624. </div>
  5625. <div>
  5626. <div
  5627. :id="'tool-' + toolIndex"
  5628. :style="{
  5629. height:
  5630. isCloseList[toolIndex].isClose == 1
  5631. ? retrnToolHeight('tool-' + toolIndex)
  5632. : 'auto',
  5633. overflow:
  5634. isCloseList[toolIndex].isClose == 1
  5635. ? 'hidden'
  5636. : 'unset'
  5637. }"
  5638. class="worksDetailBox"
  5639. v-if="
  5640. worksStudent.length &&
  5641. worksStudent[toolIndex].length > 0
  5642. "
  5643. >
  5644. <div
  5645. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5646. :key="wIndex"
  5647. class="isWorksName2"
  5648. @click="
  5649. openTools(
  5650. 45,
  5651. toolIndex,
  5652. taskCount,
  5653. w.works,
  5654. w.sName
  5655. )
  5656. "
  5657. >
  5658. {{ w.sName }}
  5659. <img
  5660. class="deleteImg deleteImg2"
  5661. src="../../assets/deleteworks.png"
  5662. v-if="
  5663. w.userid == userid || tType == 1 || tType == 4
  5664. "
  5665. @click.stop="deleteWorks(w.wid)"
  5666. alt
  5667. />
  5668. </div>
  5669. </div>
  5670. </div>
  5671. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5672. 未提交
  5673. </div>
  5674. <div
  5675. class="noWorksS"
  5676. v-if="noWorksS && noWorksS[toolIndex].length"
  5677. >
  5678. <div
  5679. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5680. :key="sIndex"
  5681. class="noWorksName"
  5682. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  5683. >
  5684. <el-tooltip
  5685. effect="dark"
  5686. :content="s.student"
  5687. placement="top"
  5688. >
  5689. <span>{{ s.student }}</span>
  5690. </el-tooltip>
  5691. </div>
  5692. </div>
  5693. </div>
  5694. <div
  5695. v-if="
  5696. tType &&
  5697. ((tType == 2 && sIsOpen == true) ||
  5698. tType == 1 ||
  5699. tType == 4) &&
  5700. tool.tool.indexOf(69) != -1
  5701. "
  5702. class="worksBox"
  5703. >
  5704. <div
  5705. class="zuoyeYulan"
  5706. v-if="
  5707. worksStudent.length &&
  5708. worksStudent[toolIndex].length > 0
  5709. "
  5710. >
  5711. <div class="worksTop">
  5712. <div>作业预览</div>
  5713. <div
  5714. class="corOpen"
  5715. @click="contract(toolIndex)"
  5716. v-if="
  5717. isCloseList[toolIndex].isCloseBoolean &&
  5718. isCloseList[toolIndex].isClose == 0
  5719. "
  5720. >
  5721. 折叠
  5722. </div>
  5723. <div
  5724. class="corOpen"
  5725. @click="contract(toolIndex)"
  5726. v-if="isCloseList[toolIndex].isClose == 1"
  5727. >
  5728. 展开
  5729. </div>
  5730. </div>
  5731. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5732. </div>
  5733. <div>
  5734. <div
  5735. :id="'tool-' + toolIndex"
  5736. :style="{
  5737. height:
  5738. isCloseList[toolIndex].isClose == 1
  5739. ? retrnToolHeight('tool-' + toolIndex)
  5740. : 'auto',
  5741. overflow:
  5742. isCloseList[toolIndex].isClose == 1
  5743. ? 'hidden'
  5744. : 'unset'
  5745. }"
  5746. class="worksDetailBox"
  5747. v-if="
  5748. worksStudent.length &&
  5749. worksStudent[toolIndex].length > 0
  5750. "
  5751. >
  5752. <div
  5753. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5754. :key="wIndex"
  5755. class="isWorksName2"
  5756. style="width: 160px;height: 65px;line-height: 65px;"
  5757. @click="
  5758. openTools(
  5759. 69,
  5760. toolIndex,
  5761. taskCount,
  5762. w.works,
  5763. w.sName,
  5764. w.wid
  5765. )
  5766. "
  5767. >
  5768. {{ w.sName }}
  5769. <img
  5770. class="deleteImg1"
  5771. src="../../assets/evaEnglish.png"
  5772. @click.stop="openEnglishEva(w.wid, toolIndex)"
  5773. alt
  5774. v-if="
  5775. (courseDetail &&
  5776. (courseDetail.userid == userid ||
  5777. (courseDetail.course_teacher &&
  5778. courseDetail.course_teacher.indexOf(
  5779. userid
  5780. ) != -1))) ||
  5781. w.aiCode || w.teacherCode
  5782. "
  5783. />
  5784. <img
  5785. class="deleteImg deleteImg2"
  5786. src="../../assets/deleteworks.png"
  5787. v-if="
  5788. w.userid == userid || tType == 1 || tType == 4
  5789. "
  5790. @click.stop="deleteWorks(w.wid)"
  5791. alt
  5792. />
  5793. </div>
  5794. </div>
  5795. </div>
  5796. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5797. 未提交
  5798. </div>
  5799. <div
  5800. class="noWorksS"
  5801. v-if="noWorksS && noWorksS[toolIndex].length"
  5802. >
  5803. <div
  5804. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5805. :key="sIndex"
  5806. class="noWorksName"
  5807. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  5808. >
  5809. <el-tooltip
  5810. effect="dark"
  5811. :content="s.student"
  5812. placement="top"
  5813. >
  5814. <span>{{ s.student }}</span>
  5815. </el-tooltip>
  5816. </div>
  5817. </div>
  5818. </div>
  5819. <div
  5820. v-if="
  5821. tType &&
  5822. ((tType == 2 && sIsOpen == true) ||
  5823. tType == 1 ||
  5824. tType == 4) &&
  5825. tool.tool.indexOf(15) != -1
  5826. "
  5827. class="worksBox"
  5828. >
  5829. <div
  5830. class="zuoyeYulan"
  5831. v-if="
  5832. (worksStudent.length &&
  5833. worksStudent[toolIndex].length > 0) ||
  5834. (courseGroup.group && courseGroup.group.length)
  5835. "
  5836. >
  5837. <div class="worksTop">
  5838. <div>作业预览</div>
  5839. <div
  5840. class="corOpen"
  5841. @click="contract(toolIndex)"
  5842. v-if="
  5843. isCloseList[toolIndex].isCloseBoolean &&
  5844. isCloseList[toolIndex].isClose == 0
  5845. "
  5846. >
  5847. 折叠
  5848. </div>
  5849. <div
  5850. class="corOpen"
  5851. @click="contract(toolIndex)"
  5852. v-if="isCloseList[toolIndex].isClose == 1"
  5853. >
  5854. 展开
  5855. </div>
  5856. </div>
  5857. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5858. </div>
  5859. <div
  5860. class="group_workBox"
  5861. v-for="(g, gindex) in courseGroup.group"
  5862. :key="gindex"
  5863. >
  5864. <div class="group_box">
  5865. <div class="group_title">
  5866. <el-tooltip
  5867. class="item"
  5868. effect="light"
  5869. :content="g.name"
  5870. placement="top"
  5871. >
  5872. <div class="group_name">{{ g.name }}</div>
  5873. </el-tooltip>
  5874. </div>
  5875. <div
  5876. class="group_work"
  5877. v-if="
  5878. g.works &&
  5879. g.works.length &&
  5880. g.works[toolIndex].length
  5881. "
  5882. >
  5883. <div
  5884. class="works"
  5885. v-for="(w, wIndex) in g.works[toolIndex]"
  5886. :key="wIndex"
  5887. >
  5888. <div
  5889. class="workImg"
  5890. style="
  5891. border-radius: 15px;
  5892. box-shadow: 0px 0px 5px 5px #eee;
  5893. "
  5894. >
  5895. <div
  5896. class="answerBg"
  5897. style="border-radius: 15px 15px 0 0"
  5898. @click="
  5899. commentOther(w, toolIndex, wIndex, null, g.id)
  5900. "
  5901. >
  5902. <div class="answerContent">
  5903. {{ JSON.parse(w.works)[0].answer }}
  5904. </div>
  5905. <div
  5906. class="answerScore"
  5907. v-if="w.score"
  5908. @click.stop="openScore(w)"
  5909. :class="{
  5910. rightW:
  5911. w.userid == userid ||
  5912. tType == 1 ||
  5913. tType == 4
  5914. }"
  5915. >
  5916. {{ JSON.parse(w.score).wScore }}分
  5917. </div>
  5918. <div
  5919. class="answerScore"
  5920. @click.stop="openScore(w)"
  5921. v-else-if="
  5922. courseDetail.userid == userid &&
  5923. courseDetail.state != 5 &&
  5924. chapInfoList[courseType].chapterInfo[0]
  5925. .taskJson[taskCount].eList &&
  5926. chapInfoList[courseType].chapterInfo[0]
  5927. .taskJson[taskCount].eList.length
  5928. "
  5929. :class="{
  5930. rightW:
  5931. w.userid == userid ||
  5932. tType == 1 ||
  5933. tType == 4
  5934. }"
  5935. >
  5936. 评分
  5937. </div>
  5938. <!-- <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"> -->
  5939. <div
  5940. v-else-if="
  5941. (courseDetail.userid == userid ||
  5942. (courseDetail.course_teacher &&
  5943. courseDetail.course_teacher.indexOf(
  5944. userid
  5945. ) != -1) ||
  5946. (w.userid == userid && sIsOpen)) &&
  5947. courseDetail.state == 5 &&
  5948. ((chapInfoList[courseType].chapterInfo[0]
  5949. .taskJson[taskCount].eList &&
  5950. chapInfoList[courseType].chapterInfo[0]
  5951. .taskJson[taskCount].eList.length) ||
  5952. (tool.eList && tool.eList.length))
  5953. "
  5954. >
  5955. <el-popover
  5956. placement="top"
  5957. width="318"
  5958. :disabled="
  5959. AIloading[toolIndex][wIndex].loading
  5960. "
  5961. trigger="hover"
  5962. >
  5963. <markScore
  5964. :loading="
  5965. AIloading[toolIndex][wIndex].loading
  5966. "
  5967. :markScoreVisible="markScoreVisible"
  5968. :ref="`markSco${toolIndex}${wIndex}`"
  5969. @updateLoading="updateLoading"
  5970. @updateDocSco="updateDocSco"
  5971. @refreshOther="refreshOther"
  5972. @markScoreDig="markScoreDig"
  5973. :tool="tool"
  5974. :wIndex="wIndex"
  5975. :scoCon="w"
  5976. :toolIndex="toolIndex"
  5977. :key="refreshKey"
  5978. :stage="courseType"
  5979. :task="taskCount"
  5980. :scoTit="
  5981. chapInfoList[courseType].chapterInfo[0]
  5982. .taskJson[taskCount].eList
  5983. "
  5984. >
  5985. </markScore>
  5986. <div
  5987. class="answerScore"
  5988. @click.stop="
  5989. markScoreDig2(
  5990. w.sName,
  5991. worksStudent,
  5992. w.userid,
  5993. toolIndex,
  5994. chapInfoList[courseType]
  5995. .chapterInfo[0].taskJson[taskCount]
  5996. .eList,
  5997. AIloading[toolIndex][wIndex].loading,
  5998. tool
  5999. )
  6000. "
  6001. slot="reference"
  6002. :class="{
  6003. rightW:
  6004. w.userid == userid ||
  6005. tType == 1 ||
  6006. tType == 4 ||
  6007. w.ateacher == userid
  6008. }"
  6009. >
  6010. <span
  6011. v-if="AIloading[toolIndex][wIndex].sco"
  6012. >
  6013. {{
  6014. AIloading[toolIndex][wIndex].loading
  6015. ? "评分中"
  6016. : AIloading[toolIndex][wIndex].sco +
  6017. "分"
  6018. }}
  6019. </span>
  6020. <span v-else>
  6021. {{
  6022. AIloading[toolIndex][wIndex].loading
  6023. ? "评分中"
  6024. : "评分"
  6025. }}
  6026. </span>
  6027. </div>
  6028. </el-popover>
  6029. </div>
  6030. <img
  6031. class="deleteImg"
  6032. src="../../assets/deleteworks.png"
  6033. v-if="
  6034. w.userid == userid ||
  6035. tType == 1 ||
  6036. tType == 4
  6037. "
  6038. @click.stop="deleteWorks(w.wid)"
  6039. alt
  6040. />
  6041. </div>
  6042. <div class="comment">
  6043. <div class="worksName">
  6044. <div>{{ w.sName }}</div>
  6045. </div>
  6046. <div class="commentList">
  6047. <div
  6048. class="commentImg"
  6049. @click="
  6050. isLikes(
  6051. w.wid,
  6052. userid,
  6053. 1,
  6054. null,
  6055. w.isLikes,
  6056. w.sName
  6057. )
  6058. "
  6059. >
  6060. <img
  6061. :src="w.isLikes == true ? likes : noLikes"
  6062. alt=""
  6063. />
  6064. </div>
  6065. <div>{{ w.likesCount }}</div>
  6066. </div>
  6067. <div
  6068. class="commentList"
  6069. style="margin-right: 15px"
  6070. >
  6071. <div
  6072. class="commentImg"
  6073. @click="
  6074. commentOther(
  6075. w,
  6076. toolIndex,
  6077. wIndex,
  6078. null,
  6079. g.id
  6080. )
  6081. "
  6082. >
  6083. <img
  6084. src="../../assets/icon/comment/comment.png"
  6085. alt=""
  6086. />
  6087. </div>
  6088. <div>{{ w.commentCount }}</div>
  6089. </div>
  6090. </div>
  6091. </div>
  6092. </div>
  6093. </div>
  6094. <div class="group_work" v-else>暂无提交作业</div>
  6095. </div>
  6096. </div>
  6097. <div
  6098. :id="'tool-' + toolIndex"
  6099. :style="{
  6100. height:
  6101. isCloseList[toolIndex].isClose == 1
  6102. ? retrnToolHeight('tool-' + toolIndex)
  6103. : 'auto',
  6104. overflow:
  6105. isCloseList[toolIndex].isClose == 1
  6106. ? 'hidden'
  6107. : 'unset'
  6108. }"
  6109. class="worksDetailBox"
  6110. v-if="
  6111. worksStudent.length &&
  6112. worksStudent[toolIndex].length > 0
  6113. "
  6114. >
  6115. <div
  6116. class="works"
  6117. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6118. :key="wIndex"
  6119. >
  6120. <div
  6121. class="workImg"
  6122. style="
  6123. border-radius: 15px;
  6124. box-shadow: 0px 0px 5px 5px #eee;
  6125. "
  6126. >
  6127. <!-- <img
  6128. src="../../assets/icon/works/noImg.png"
  6129. @click="openTools(15, toolIndex, taskCount, w.works)"
  6130. alt=""
  6131. />-->
  6132. <div
  6133. class="answerBg"
  6134. style="border-radius: 15px 15px 0 0"
  6135. @click="commentOther(w, toolIndex, wIndex)"
  6136. >
  6137. <!-- <div>{{ w.sName }}</div> -->
  6138. <div class="answerContent">
  6139. {{ JSON.parse(w.works)[0].answer }}
  6140. </div>
  6141. <div
  6142. class="answerScore"
  6143. v-if="w.score"
  6144. @click.stop="openScore(w)"
  6145. :class="{
  6146. rightW:
  6147. w.userid == userid || tType == 1 || tType == 4
  6148. }"
  6149. >
  6150. {{ JSON.parse(w.score).wScore }}分
  6151. </div>
  6152. <div
  6153. class="answerScore"
  6154. @click.stop="openScore(w)"
  6155. v-else-if="
  6156. courseDetail.userid == userid &&
  6157. courseDetail.state != 5 &&
  6158. chapInfoList[courseType].chapterInfo[0]
  6159. .taskJson[taskCount].eList &&
  6160. chapInfoList[courseType].chapterInfo[0]
  6161. .taskJson[taskCount].eList.length
  6162. "
  6163. :class="{
  6164. rightW:
  6165. w.userid == userid || tType == 1 || tType == 4
  6166. }"
  6167. >
  6168. 评分
  6169. </div>
  6170. <!-- <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"> -->
  6171. <div
  6172. v-else-if="
  6173. (courseDetail.userid == userid ||
  6174. (courseDetail.course_teacher &&
  6175. courseDetail.course_teacher.indexOf(
  6176. userid
  6177. ) != -1) ||
  6178. (w.userid == userid && sIsOpen)) &&
  6179. courseDetail.state == 5 &&
  6180. ((chapInfoList[courseType].chapterInfo[0]
  6181. .taskJson[taskCount].eList &&
  6182. chapInfoList[courseType].chapterInfo[0]
  6183. .taskJson[taskCount].eList.length) ||
  6184. (tool.eList && tool.eList.length))
  6185. "
  6186. >
  6187. <el-popover
  6188. placement="top"
  6189. width="318"
  6190. :disabled="AIloading[toolIndex][wIndex].loading"
  6191. trigger="hover"
  6192. >
  6193. <markScore
  6194. :loading="
  6195. AIloading[toolIndex][wIndex].loading
  6196. "
  6197. :markScoreVisible="markScoreVisible"
  6198. :ref="`markSco${toolIndex}${wIndex}`"
  6199. @updateLoading="updateLoading"
  6200. @updateDocSco="updateDocSco"
  6201. @refreshOther="refreshOther"
  6202. @markScoreDig="markScoreDig"
  6203. :tool="tool"
  6204. :wIndex="wIndex"
  6205. :scoCon="w"
  6206. :toolIndex="toolIndex"
  6207. :key="refreshKey"
  6208. :stage="courseType"
  6209. :task="taskCount"
  6210. :scoTit="
  6211. chapInfoList[courseType].chapterInfo[0]
  6212. .taskJson[taskCount].eList
  6213. "
  6214. >
  6215. </markScore>
  6216. <div
  6217. class="answerScore"
  6218. @click.stop="
  6219. markScoreDig2(
  6220. w.sName,
  6221. worksStudent,
  6222. w.userid,
  6223. toolIndex,
  6224. chapInfoList[courseType].chapterInfo[0]
  6225. .taskJson[taskCount].eList,
  6226. AIloading[toolIndex][wIndex].loading,
  6227. tool
  6228. )
  6229. "
  6230. slot="reference"
  6231. :class="{
  6232. rightW:
  6233. w.userid == userid ||
  6234. tType == 1 ||
  6235. tType == 4 ||
  6236. w.ateacher == userid
  6237. }"
  6238. >
  6239. <span v-if="AIloading[toolIndex][wIndex].sco">
  6240. {{
  6241. AIloading[toolIndex][wIndex].loading
  6242. ? "评分中"
  6243. : AIloading[toolIndex][wIndex].sco +
  6244. "分"
  6245. }}
  6246. </span>
  6247. <span v-else>
  6248. {{
  6249. AIloading[toolIndex][wIndex].loading
  6250. ? "评分中"
  6251. : "评分"
  6252. }}
  6253. </span>
  6254. </div>
  6255. </el-popover>
  6256. </div>
  6257. <img
  6258. class="deleteImg"
  6259. src="../../assets/deleteworks.png"
  6260. v-if="
  6261. w.userid == userid || tType == 1 || tType == 4
  6262. "
  6263. @click.stop="deleteWorks(w.wid)"
  6264. alt
  6265. />
  6266. </div>
  6267. <div class="comment">
  6268. <div class="worksName">
  6269. <div>{{ w.sName }}</div>
  6270. </div>
  6271. <div class="commentList">
  6272. <div
  6273. class="commentImg"
  6274. @click="
  6275. isLikes(
  6276. w.wid,
  6277. userid,
  6278. 1,
  6279. null,
  6280. w.isLikes,
  6281. w.sName
  6282. )
  6283. "
  6284. >
  6285. <img
  6286. :src="w.isLikes == true ? likes : noLikes"
  6287. alt=""
  6288. />
  6289. </div>
  6290. <div>{{ w.likesCount }}</div>
  6291. </div>
  6292. <div class="commentList" style="margin-right: 15px">
  6293. <div
  6294. class="commentImg"
  6295. @click="commentOther(w, toolIndex, wIndex)"
  6296. >
  6297. <img
  6298. src="../../assets/icon/comment/comment.png"
  6299. alt=""
  6300. />
  6301. </div>
  6302. <div>{{ w.commentCount }}</div>
  6303. </div>
  6304. </div>
  6305. </div>
  6306. </div>
  6307. </div>
  6308. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6309. 未提交
  6310. </div>
  6311. <div
  6312. class="noWorksS"
  6313. v-if="noWorksS && noWorksS[toolIndex].length"
  6314. >
  6315. <div
  6316. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6317. :key="sIndex"
  6318. class="noWorksName"
  6319. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6320. >
  6321. <el-tooltip
  6322. effect="dark"
  6323. :content="s.student"
  6324. placement="top"
  6325. >
  6326. <span>{{ s.student }}</span>
  6327. </el-tooltip>
  6328. </div>
  6329. </div>
  6330. </div>
  6331. <div
  6332. v-if="
  6333. tType &&
  6334. ((tType == 2 && sIsOpen == true) ||
  6335. tType == 1 ||
  6336. tType == 4) &&
  6337. tool.tool.indexOf(1) != -1
  6338. "
  6339. class="worksBox"
  6340. >
  6341. <div
  6342. class="zuoyeYulan"
  6343. style="display: flex;justify-content: space-between;align-items: center;"
  6344. v-if="
  6345. (worksStudent.length &&
  6346. worksStudent[toolIndex].length > 0) ||
  6347. (courseGroup.group && courseGroup.group.length)
  6348. "
  6349. >
  6350. <div class="worksTop">
  6351. <div>作业预览</div>
  6352. <div
  6353. class="corOpen"
  6354. @click="contract(toolIndex)"
  6355. v-if="
  6356. isCloseList[toolIndex].isCloseBoolean &&
  6357. isCloseList[toolIndex].isClose == 0
  6358. "
  6359. >
  6360. 折叠
  6361. </div>
  6362. <div
  6363. class="corOpen"
  6364. @click="contract(toolIndex)"
  6365. v-if="isCloseList[toolIndex].isClose == 1"
  6366. >
  6367. 展开
  6368. </div>
  6369. </div>
  6370. <div
  6371. style="display: flex;"
  6372. v-if="
  6373. (courseDetail.userid == userid ||
  6374. (courseDetail.course_teacher &&
  6375. courseDetail.course_teacher.indexOf(userid) !=
  6376. -1)) &&
  6377. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6378. taskCount
  6379. ].eList &&
  6380. chapInfoList[courseType].chapterInfo[0].taskJson[
  6381. taskCount
  6382. ].eList.length) ||
  6383. (tool.eList && tool.eList.length)) &&
  6384. courseDetail.state == 5
  6385. "
  6386. >
  6387. <div
  6388. style="margin-right:10px"
  6389. class="ScoreBtn"
  6390. @click="
  6391. resetLoopEva(
  6392. worksStudent[toolIndex],
  6393. chapInfoList[courseType].chapterInfo[0].taskJson[
  6394. taskCount
  6395. ].eList,
  6396. courseType,
  6397. taskCount,
  6398. toolIndex,
  6399. tool.toolDetail,
  6400. worksStudent
  6401. )
  6402. "
  6403. >
  6404. 一键重置
  6405. </div>
  6406. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6407. <img
  6408. src="../../assets/icon/newIcons/rootImg.png"
  6409. alt=""
  6410. />
  6411. AI评分
  6412. </div>
  6413. <div
  6414. class="ScoreBtn"
  6415. v-else-if="!loopLoading[toolIndex].loading"
  6416. @click="
  6417. loopEva(
  6418. worksStudent[toolIndex],
  6419. chapInfoList[courseType].chapterInfo[0].taskJson[
  6420. taskCount
  6421. ].eList,
  6422. courseType,
  6423. taskCount,
  6424. toolIndex,
  6425. tool.toolDetail,
  6426. chapInfoList[courseType].chapterInfo[0].taskJson[
  6427. taskCount
  6428. ].taskDetail,
  6429. tool
  6430. )
  6431. "
  6432. >
  6433. <img
  6434. src="../../assets/icon/newIcons/rootImg.png"
  6435. alt=""
  6436. />
  6437. AI评分
  6438. </div>
  6439. <div class="ScoreBtn" v-else>
  6440. <img
  6441. src="../../assets/icon/newIcons/rootImg.png"
  6442. alt=""
  6443. />
  6444. 正在评分
  6445. </div>
  6446. </div>
  6447. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6448. </div>
  6449. <div
  6450. class="group_workBox"
  6451. v-for="(g, gindex) in courseGroup.group"
  6452. :key="gindex"
  6453. >
  6454. <div class="group_box">
  6455. <div class="group_title">
  6456. <el-tooltip
  6457. class="item"
  6458. effect="light"
  6459. :content="g.name"
  6460. placement="top"
  6461. >
  6462. <div class="group_name">{{ g.name }}</div>
  6463. </el-tooltip>
  6464. </div>
  6465. <div
  6466. class="group_work"
  6467. v-if="
  6468. g.works &&
  6469. g.works.length &&
  6470. g.works[toolIndex].length
  6471. "
  6472. >
  6473. <div
  6474. class="works"
  6475. style="
  6476. width: 200px;
  6477. height: 140px;
  6478. margin: 10px 10px 10px 0;
  6479. border-radius: 15px;
  6480. box-shadow: 0 0 6px 1px #dfdada;
  6481. "
  6482. v-for="(w, wIndex) in g.works[toolIndex]"
  6483. :key="wIndex"
  6484. :class="w.type == 1 ? 'isTypeOne' : ''"
  6485. >
  6486. <div class="workImg">
  6487. <img
  6488. :src="w.works"
  6489. @click="previewImg(w.works, w)"
  6490. alt
  6491. />
  6492. <div
  6493. class="answerScore"
  6494. v-if="w.score"
  6495. @click.stop="openScore(w)"
  6496. :class="{
  6497. rightW:
  6498. w.userid == userid ||
  6499. tType == 1 ||
  6500. tType == 4
  6501. }"
  6502. >
  6503. {{ JSON.parse(w.score).wScore }}分
  6504. </div>
  6505. <div
  6506. class="answerScore"
  6507. @click.stop="openScore(w)"
  6508. v-else-if="courseDetail.userid == userid"
  6509. :class="{
  6510. rightW:
  6511. w.userid == userid ||
  6512. tType == 1 ||
  6513. tType == 4
  6514. }"
  6515. >
  6516. 评分
  6517. </div>
  6518. <img
  6519. class="deleteImg"
  6520. src="../../assets/deleteworks.png"
  6521. v-if="
  6522. w.userid == userid || tType == 1 || tType == 4
  6523. "
  6524. @click.stop="deleteWorks(w.wid)"
  6525. alt
  6526. />
  6527. </div>
  6528. <div class="comment" style="min-width: 200px">
  6529. <div class="worksName">
  6530. <div>{{ w.sName }}</div>
  6531. </div>
  6532. <div class="commentList">
  6533. <div class="commentList">
  6534. <div
  6535. class="commentImg"
  6536. @click="
  6537. isLikes(
  6538. w.wid,
  6539. userid,
  6540. 1,
  6541. null,
  6542. w.isLikes,
  6543. w.sName
  6544. )
  6545. "
  6546. >
  6547. <img
  6548. :src="w.isLikes == true ? likes : noLikes"
  6549. alt=""
  6550. />
  6551. </div>
  6552. <div>{{ w.likesCount }}</div>
  6553. </div>
  6554. <div
  6555. class="commentList"
  6556. style="margin-right: 15px"
  6557. >
  6558. <div
  6559. class="commentImg"
  6560. @click="
  6561. commentOther(
  6562. w,
  6563. toolIndex,
  6564. wIndex,
  6565. null,
  6566. g.id
  6567. )
  6568. "
  6569. >
  6570. <img
  6571. src="../../assets/icon/comment/comment.png"
  6572. alt=""
  6573. />
  6574. </div>
  6575. <div>{{ w.commentCount }}</div>
  6576. </div>
  6577. </div>
  6578. </div>
  6579. </div>
  6580. </div>
  6581. <div class="group_work" v-else>暂无提交作业</div>
  6582. </div>
  6583. </div>
  6584. <div
  6585. :id="'tool-' + toolIndex"
  6586. :style="{
  6587. height:
  6588. isCloseList[toolIndex].isClose == 1
  6589. ? retrnToolHeight('tool-' + toolIndex)
  6590. : 'auto',
  6591. overflow:
  6592. isCloseList[toolIndex].isClose == 1
  6593. ? 'hidden'
  6594. : 'unset'
  6595. }"
  6596. class="worksDetailBox"
  6597. v-if="
  6598. worksStudent.length &&
  6599. worksStudent[toolIndex].length > 0
  6600. "
  6601. >
  6602. <div
  6603. class="works"
  6604. style="
  6605. width: 200px;
  6606. height: 140px;
  6607. margin: 10px 10px 10px 0;
  6608. border-radius: 15px;
  6609. box-shadow: 0 0 6px 1px #dfdada;
  6610. "
  6611. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6612. :key="wIndex"
  6613. >
  6614. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6615. <div class="workImg">
  6616. <img
  6617. :src="w.works"
  6618. @click="previewImg(w.works, w)"
  6619. alt
  6620. />
  6621. <div
  6622. class="answerScore"
  6623. v-if="w.score"
  6624. @click.stop="openScore(w)"
  6625. :class="{
  6626. rightW:
  6627. w.userid == userid || tType == 1 || tType == 4
  6628. }"
  6629. >
  6630. {{ JSON.parse(w.score).wScore }}分
  6631. </div>
  6632. <div
  6633. class="answerScore"
  6634. @click.stop="openScore(w)"
  6635. v-else-if="
  6636. courseDetail.userid == userid &&
  6637. courseDetail.state != 5 &&
  6638. chapInfoList[courseType].chapterInfo[0]
  6639. .taskJson[taskCount].eList &&
  6640. chapInfoList[courseType].chapterInfo[0]
  6641. .taskJson[taskCount].eList.length
  6642. "
  6643. :class="{
  6644. rightW:
  6645. w.userid == userid || tType == 1 || tType == 4
  6646. }"
  6647. >
  6648. 评分
  6649. </div>
  6650. <div
  6651. v-else-if="
  6652. (courseDetail.userid == userid ||
  6653. (courseDetail.course_teacher &&
  6654. courseDetail.course_teacher.indexOf(userid) !=
  6655. -1) ||
  6656. (courseDetail.course_teacher &&
  6657. courseDetail.course_teacher.indexOf(userid) !=
  6658. -1) ||
  6659. (courseDetail.course_teacher &&
  6660. courseDetail.course_teacher.indexOf(userid) !=
  6661. -1) ||
  6662. (w.userid == userid && sIsOpen)) &&
  6663. courseDetail.state == 5 &&
  6664. ((chapInfoList[courseType].chapterInfo[0]
  6665. .taskJson[taskCount].eList &&
  6666. chapInfoList[courseType].chapterInfo[0]
  6667. .taskJson[taskCount].eList.length) ||
  6668. (tool.eList && tool.eList.length))
  6669. "
  6670. >
  6671. <el-popover
  6672. placement="top"
  6673. width="318"
  6674. :disabled="AIloading[toolIndex][wIndex].loading"
  6675. trigger="hover"
  6676. >
  6677. <markScore
  6678. :loading="AIloading[toolIndex][wIndex].loading"
  6679. :markScoreVisible="markScoreVisible"
  6680. :ref="`markSco${toolIndex}${wIndex}`"
  6681. @updateLoading="updateLoading"
  6682. @updateDocSco="updateDocSco"
  6683. @refreshOther="refreshOther"
  6684. @markScoreDig="markScoreDig"
  6685. :tool="tool"
  6686. :wIndex="wIndex"
  6687. :scoCon="w"
  6688. :toolIndex="toolIndex"
  6689. :key="refreshKey"
  6690. :stage="courseType"
  6691. :task="taskCount"
  6692. :scoTit="
  6693. chapInfoList[courseType].chapterInfo[0]
  6694. .taskJson[taskCount].eList
  6695. "
  6696. >
  6697. </markScore>
  6698. <div
  6699. class="answerScore"
  6700. @click="
  6701. markScoreDig2(
  6702. w.sName,
  6703. worksStudent,
  6704. w.userid,
  6705. toolIndex,
  6706. chapInfoList[courseType].chapterInfo[0]
  6707. .taskJson[taskCount].eList,
  6708. AIloading[toolIndex][wIndex].loading,
  6709. tool
  6710. )
  6711. "
  6712. slot="reference"
  6713. :class="{
  6714. rightW:
  6715. w.userid == userid ||
  6716. tType == 1 ||
  6717. tType == 4 ||
  6718. w.ateacher == userid
  6719. }"
  6720. >
  6721. <span v-if="AIloading[toolIndex][wIndex].sco">
  6722. {{
  6723. AIloading[toolIndex][wIndex].loading
  6724. ? "评分中"
  6725. : AIloading[toolIndex][wIndex].sco + "分"
  6726. }}
  6727. </span>
  6728. <span v-else>
  6729. {{
  6730. AIloading[toolIndex][wIndex].loading
  6731. ? "评分中"
  6732. : "评分"
  6733. }}
  6734. </span>
  6735. </div>
  6736. </el-popover>
  6737. </div>
  6738. <img
  6739. class="deleteImg"
  6740. src="../../assets/deleteworks.png"
  6741. v-if="
  6742. w.userid == userid || tType == 1 || tType == 4
  6743. "
  6744. @click.stop="deleteWorks(w.wid)"
  6745. alt
  6746. />
  6747. </div>
  6748. <div class="comment" style="min-width: 200px">
  6749. <div class="worksName">
  6750. <div>{{ w.sName }}</div>
  6751. </div>
  6752. <div class="commentList">
  6753. <div class="commentList">
  6754. <div
  6755. class="commentImg"
  6756. @click="
  6757. isLikes(
  6758. w.wid,
  6759. userid,
  6760. 1,
  6761. null,
  6762. w.isLikes,
  6763. w.sName
  6764. )
  6765. "
  6766. >
  6767. <img
  6768. :src="w.isLikes == true ? likes : noLikes"
  6769. alt=""
  6770. />
  6771. </div>
  6772. <div>{{ w.likesCount }}</div>
  6773. </div>
  6774. <div class="commentList" style="margin-right: 15px">
  6775. <div
  6776. class="commentImg"
  6777. @click="commentOther(w, toolIndex, wIndex)"
  6778. >
  6779. <img
  6780. src="../../assets/icon/comment/comment.png"
  6781. alt=""
  6782. />
  6783. </div>
  6784. <div>{{ w.commentCount }}</div>
  6785. </div>
  6786. </div>
  6787. </div>
  6788. </div>
  6789. </div>
  6790. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6791. 未提交
  6792. </div>
  6793. <div
  6794. class="noWorksS"
  6795. v-if="noWorksS && noWorksS[toolIndex].length"
  6796. >
  6797. <div
  6798. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6799. :key="sIndex"
  6800. class="noWorksName"
  6801. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6802. >
  6803. <el-tooltip
  6804. effect="dark"
  6805. :content="s.student"
  6806. placement="top"
  6807. >
  6808. <span>{{ s.student }}</span>
  6809. </el-tooltip>
  6810. </div>
  6811. </div>
  6812. </div>
  6813. <div
  6814. v-if="
  6815. tType &&
  6816. ((tType == 2 && sIsOpen == true) ||
  6817. tType == 1 ||
  6818. tType == 4) &&
  6819. tool.tool.indexOf(3) != -1
  6820. "
  6821. class="worksBox"
  6822. >
  6823. <div
  6824. class="zuoyeYulan"
  6825. style="display: flex;justify-content: space-between;align-items: center;"
  6826. v-if="
  6827. (worksStudent.length &&
  6828. worksStudent[toolIndex].length > 0) ||
  6829. (courseGroup.group && courseGroup.group.length)
  6830. "
  6831. >
  6832. <div class="worksTop">
  6833. <div>作业预览</div>
  6834. <div
  6835. class="corOpen"
  6836. @click="contract(toolIndex)"
  6837. v-if="
  6838. isCloseList[toolIndex].isCloseBoolean &&
  6839. isCloseList[toolIndex].isClose == 0
  6840. "
  6841. >
  6842. 折叠
  6843. </div>
  6844. <div
  6845. class="corOpen"
  6846. @click="contract(toolIndex)"
  6847. v-if="isCloseList[toolIndex].isClose == 1"
  6848. >
  6849. 展开
  6850. </div>
  6851. </div>
  6852. <div
  6853. style="display: flex;"
  6854. v-if="
  6855. (courseDetail.userid == userid ||
  6856. (courseDetail.course_teacher &&
  6857. courseDetail.course_teacher.indexOf(userid) !=
  6858. -1)) &&
  6859. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6860. taskCount
  6861. ].eList &&
  6862. chapInfoList[courseType].chapterInfo[0].taskJson[
  6863. taskCount
  6864. ].eList.length) ||
  6865. (tool.eList && tool.eList.length)) &&
  6866. courseDetail.state == 5
  6867. "
  6868. >
  6869. <div
  6870. style="margin-right:10px"
  6871. class="ScoreBtn"
  6872. @click="
  6873. resetLoopEva(
  6874. worksStudent[toolIndex],
  6875. chapInfoList[courseType].chapterInfo[0].taskJson[
  6876. taskCount
  6877. ].eList,
  6878. courseType,
  6879. taskCount,
  6880. toolIndex,
  6881. tool.toolDetail,
  6882. worksStudent
  6883. )
  6884. "
  6885. >
  6886. 一键重置
  6887. </div>
  6888. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6889. <img
  6890. src="../../assets/icon/newIcons/rootImg.png"
  6891. alt=""
  6892. />
  6893. AI评分
  6894. </div>
  6895. <div
  6896. class="ScoreBtn"
  6897. v-else-if="!loopLoading[toolIndex].loading"
  6898. @click="
  6899. loopEva(
  6900. worksStudent[toolIndex],
  6901. chapInfoList[courseType].chapterInfo[0].taskJson[
  6902. taskCount
  6903. ].eList,
  6904. courseType,
  6905. taskCount,
  6906. toolIndex,
  6907. tool.toolDetail,
  6908. chapInfoList[courseType].chapterInfo[0].taskJson[
  6909. taskCount
  6910. ].taskDetail,
  6911. tool
  6912. )
  6913. "
  6914. >
  6915. <img
  6916. src="../../assets/icon/newIcons/rootImg.png"
  6917. alt=""
  6918. />
  6919. AI评分
  6920. </div>
  6921. <div class="ScoreBtn" v-else>
  6922. <img
  6923. src="../../assets/icon/newIcons/rootImg.png"
  6924. alt=""
  6925. />
  6926. 正在评分
  6927. </div>
  6928. </div>
  6929. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6930. </div>
  6931. <div
  6932. class="group_workBox"
  6933. v-for="(g, gindex) in courseGroup.group"
  6934. :key="gindex"
  6935. >
  6936. <div class="group_box">
  6937. <div class="group_title">
  6938. <el-tooltip
  6939. class="item"
  6940. effect="light"
  6941. :content="g.name"
  6942. placement="top"
  6943. >
  6944. <div class="group_name">{{ g.name }}</div>
  6945. </el-tooltip>
  6946. </div>
  6947. <div
  6948. class="group_work"
  6949. v-if="
  6950. g.works &&
  6951. g.works.length &&
  6952. g.works[toolIndex].length
  6953. "
  6954. >
  6955. <div
  6956. class="works"
  6957. style="
  6958. width: 200px;
  6959. height: 140px;
  6960. margin: 10px 10px 10px 0;
  6961. border-radius: 15px;
  6962. box-shadow: 0 0 6px 1px #dfdada;
  6963. "
  6964. v-for="(w, wIndex) in g.works[toolIndex]"
  6965. :key="wIndex"
  6966. :class="w.type == 1 ? 'isTypeOne' : ''"
  6967. >
  6968. <div class="workImg">
  6969. <img
  6970. :src="w.works"
  6971. @click="previewImg(w.works, w)"
  6972. alt
  6973. />
  6974. <div
  6975. class="answerScore"
  6976. v-if="w.score"
  6977. @click.stop="openScore(w)"
  6978. :class="{
  6979. rightW:
  6980. w.userid == userid ||
  6981. tType == 1 ||
  6982. tType == 4
  6983. }"
  6984. >
  6985. {{ JSON.parse(w.score).wScore }}分
  6986. </div>
  6987. <div
  6988. class="answerScore"
  6989. @click.stop="openScore(w)"
  6990. v-else-if="courseDetail.userid == userid"
  6991. :class="{
  6992. rightW:
  6993. w.userid == userid ||
  6994. tType == 1 ||
  6995. tType == 4
  6996. }"
  6997. >
  6998. 评分
  6999. </div>
  7000. <img
  7001. class="deleteImg"
  7002. src="../../assets/deleteworks.png"
  7003. v-if="
  7004. w.userid == userid || tType == 1 || tType == 4
  7005. "
  7006. @click.stop="deleteWorks(w.wid)"
  7007. alt
  7008. />
  7009. </div>
  7010. <div class="comment" style="min-width: 200px">
  7011. <div class="worksName">
  7012. <div>{{ w.sName }}</div>
  7013. </div>
  7014. <div class="commentList">
  7015. <div class="commentList">
  7016. <div
  7017. class="commentImg"
  7018. @click="
  7019. isLikes(
  7020. w.wid,
  7021. userid,
  7022. 1,
  7023. null,
  7024. w.isLikes,
  7025. w.sName
  7026. )
  7027. "
  7028. >
  7029. <img
  7030. :src="w.isLikes == true ? likes : noLikes"
  7031. alt=""
  7032. />
  7033. </div>
  7034. <div>{{ w.likesCount }}</div>
  7035. </div>
  7036. <div
  7037. class="commentList"
  7038. style="margin-right: 15px"
  7039. >
  7040. <div
  7041. class="commentImg"
  7042. @click="
  7043. commentOther(
  7044. w,
  7045. toolIndex,
  7046. wIndex,
  7047. null,
  7048. g.id
  7049. )
  7050. "
  7051. >
  7052. <img
  7053. src="../../assets/icon/comment/comment.png"
  7054. alt=""
  7055. />
  7056. </div>
  7057. <div>{{ w.commentCount }}</div>
  7058. </div>
  7059. </div>
  7060. </div>
  7061. </div>
  7062. </div>
  7063. <div class="group_work" v-else>暂无提交作业</div>
  7064. </div>
  7065. </div>
  7066. <div
  7067. :id="'tool-' + toolIndex"
  7068. :style="{
  7069. height:
  7070. isCloseList[toolIndex].isClose == 1
  7071. ? retrnToolHeight('tool-' + toolIndex)
  7072. : 'auto',
  7073. overflow:
  7074. isCloseList[toolIndex].isClose == 1
  7075. ? 'hidden'
  7076. : 'unset'
  7077. }"
  7078. class="worksDetailBox"
  7079. v-if="
  7080. worksStudent.length &&
  7081. worksStudent[toolIndex].length > 0
  7082. "
  7083. >
  7084. <div
  7085. class="works"
  7086. style="
  7087. width: 200px;
  7088. height: 140px;
  7089. margin: 10px 10px 10px 0;
  7090. border-radius: 15px;
  7091. box-shadow: 0 0 6px 1px #dfdada;
  7092. "
  7093. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7094. :key="wIndex"
  7095. >
  7096. <!-- @click="previewImg(w.works)" -->
  7097. <div class="workImg">
  7098. <img
  7099. :src="w.works"
  7100. @click="previewImg(w.works, w)"
  7101. alt
  7102. />
  7103. <div
  7104. class="answerScore"
  7105. v-if="w.score"
  7106. @click.stop="openScore(w)"
  7107. :class="{
  7108. rightW:
  7109. w.userid == userid || tType == 1 || tType == 4
  7110. }"
  7111. >
  7112. {{ JSON.parse(w.score).wScore }}分
  7113. </div>
  7114. <div
  7115. class="answerScore"
  7116. @click.stop="openScore(w)"
  7117. v-else-if="
  7118. courseDetail.userid == userid &&
  7119. courseDetail.state != 5 &&
  7120. chapInfoList[courseType].chapterInfo[0]
  7121. .taskJson[taskCount].eList &&
  7122. chapInfoList[courseType].chapterInfo[0]
  7123. .taskJson[taskCount].eList.length
  7124. "
  7125. :class="{
  7126. rightW:
  7127. w.userid == userid || tType == 1 || tType == 4
  7128. }"
  7129. >
  7130. 评分
  7131. </div>
  7132. <!-- <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"> -->
  7133. <div
  7134. v-else-if="
  7135. (courseDetail.userid == userid ||
  7136. (courseDetail.course_teacher &&
  7137. courseDetail.course_teacher.indexOf(userid) !=
  7138. -1) ||
  7139. (w.userid == userid && sIsOpen)) &&
  7140. courseDetail.state == 5 &&
  7141. ((chapInfoList[courseType].chapterInfo[0]
  7142. .taskJson[taskCount].eList &&
  7143. chapInfoList[courseType].chapterInfo[0]
  7144. .taskJson[taskCount].eList.length) ||
  7145. (tool.eList && tool.eList.length))
  7146. "
  7147. >
  7148. <el-popover
  7149. placement="top"
  7150. width="318"
  7151. :disabled="AIloading[toolIndex][wIndex].loading"
  7152. trigger="hover"
  7153. >
  7154. <markScore
  7155. :loading="AIloading[toolIndex][wIndex].loading"
  7156. :markScoreVisible="markScoreVisible"
  7157. :ref="`markSco${toolIndex}${wIndex}`"
  7158. @updateLoading="updateLoading"
  7159. @updateDocSco="updateDocSco"
  7160. @refreshOther="refreshOther"
  7161. @markScoreDig="markScoreDig"
  7162. :tool="tool"
  7163. :wIndex="wIndex"
  7164. :scoCon="w"
  7165. :toolIndex="toolIndex"
  7166. :key="refreshKey"
  7167. :stage="courseType"
  7168. :task="taskCount"
  7169. :scoTit="
  7170. chapInfoList[courseType].chapterInfo[0]
  7171. .taskJson[taskCount].eList
  7172. "
  7173. >
  7174. </markScore>
  7175. <div
  7176. class="answerScore"
  7177. @click="
  7178. markScoreDig2(
  7179. w.sName,
  7180. worksStudent,
  7181. w.userid,
  7182. toolIndex,
  7183. chapInfoList[courseType].chapterInfo[0]
  7184. .taskJson[taskCount].eList,
  7185. AIloading[toolIndex][wIndex].loading,
  7186. tool
  7187. )
  7188. "
  7189. slot="reference"
  7190. :class="{
  7191. rightW:
  7192. w.userid == userid ||
  7193. tType == 1 ||
  7194. tType == 4 ||
  7195. w.ateacher == userid
  7196. }"
  7197. >
  7198. <span v-if="AIloading[toolIndex][wIndex].sco">
  7199. {{
  7200. AIloading[toolIndex][wIndex].loading
  7201. ? "评分中"
  7202. : AIloading[toolIndex][wIndex].sco + "分"
  7203. }}
  7204. </span>
  7205. <span v-else>
  7206. {{
  7207. AIloading[toolIndex][wIndex].loading
  7208. ? "评分中"
  7209. : "评分"
  7210. }}
  7211. </span>
  7212. </div>
  7213. </el-popover>
  7214. </div>
  7215. <img
  7216. class="deleteImg"
  7217. src="../../assets/deleteworks.png"
  7218. v-if="
  7219. w.userid == userid || tType == 1 || tType == 4
  7220. "
  7221. @click.stop="deleteWorks(w.wid)"
  7222. alt
  7223. />
  7224. </div>
  7225. <div class="comment" style="min-width: 200px">
  7226. <div class="worksName">
  7227. <div>{{ w.sName }}</div>
  7228. </div>
  7229. <div class="commentList">
  7230. <div class="commentList">
  7231. <div
  7232. class="commentImg"
  7233. @click="
  7234. isLikes(
  7235. w.wid,
  7236. userid,
  7237. 1,
  7238. null,
  7239. w.isLikes,
  7240. w.sName
  7241. )
  7242. "
  7243. >
  7244. <img
  7245. :src="w.isLikes == true ? likes : noLikes"
  7246. alt=""
  7247. />
  7248. </div>
  7249. <div>{{ w.likesCount }}</div>
  7250. </div>
  7251. <div class="commentList" style="margin-right: 15px">
  7252. <div
  7253. class="commentImg"
  7254. @click="commentOther(w, toolIndex, wIndex)"
  7255. >
  7256. <img
  7257. src="../../assets/icon/comment/comment.png"
  7258. alt=""
  7259. />
  7260. </div>
  7261. <div>{{ w.commentCount }}</div>
  7262. </div>
  7263. </div>
  7264. </div>
  7265. </div>
  7266. </div>
  7267. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7268. 未提交
  7269. </div>
  7270. <div
  7271. class="noWorksS"
  7272. v-if="noWorksS && noWorksS[toolIndex].length"
  7273. >
  7274. <div
  7275. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7276. :key="sIndex"
  7277. class="noWorksName"
  7278. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7279. >
  7280. <el-tooltip
  7281. effect="dark"
  7282. :content="s.student"
  7283. placement="top"
  7284. >
  7285. <span>{{ s.student }}</span>
  7286. </el-tooltip>
  7287. </div>
  7288. </div>
  7289. </div>
  7290. <div
  7291. v-if="
  7292. tType &&
  7293. ((tType == 2 && sIsOpen == true) ||
  7294. tType == 1 ||
  7295. tType == 4) &&
  7296. tool.tool.indexOf(6) != -1
  7297. "
  7298. class="worksBox"
  7299. >
  7300. <div
  7301. class="zuoyeYulan"
  7302. v-if="
  7303. (worksStudent.length &&
  7304. worksStudent[toolIndex].length > 0) ||
  7305. (courseGroup.group && courseGroup.group.length)
  7306. "
  7307. >
  7308. <div class="worksTop">
  7309. <div>作业预览</div>
  7310. <div
  7311. class="corOpen"
  7312. @click="contract(toolIndex)"
  7313. v-if="
  7314. isCloseList[toolIndex].isCloseBoolean &&
  7315. isCloseList[toolIndex].isClose == 0
  7316. "
  7317. >
  7318. 折叠
  7319. </div>
  7320. <div
  7321. class="corOpen"
  7322. @click="contract(toolIndex)"
  7323. v-if="isCloseList[toolIndex].isClose == 1"
  7324. >
  7325. 展开
  7326. </div>
  7327. </div>
  7328. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7329. </div>
  7330. <div
  7331. class="group_workBox"
  7332. v-for="(g, gindex) in courseGroup.group"
  7333. :key="gindex"
  7334. >
  7335. <div class="group_box">
  7336. <div class="group_title">
  7337. <el-tooltip
  7338. class="item"
  7339. effect="light"
  7340. :content="g.name"
  7341. placement="top"
  7342. >
  7343. <div class="group_name">{{ g.name }}</div>
  7344. </el-tooltip>
  7345. </div>
  7346. <div
  7347. class="group_work"
  7348. v-if="
  7349. g.works &&
  7350. g.works.length &&
  7351. g.works[toolIndex].length
  7352. "
  7353. >
  7354. <div
  7355. class="works"
  7356. style="
  7357. width: 200px;
  7358. height: 140px;
  7359. margin: 10px 10px 10px 0;
  7360. border-radius: 15px;
  7361. box-shadow: 0 0 6px 1px #dfdada;
  7362. "
  7363. v-for="(w, wIndex) in g.works[toolIndex]"
  7364. :key="wIndex"
  7365. :class="w.type == 1 ? 'isTypeOne' : ''"
  7366. >
  7367. <div class="workImg">
  7368. <img
  7369. :src="w.works"
  7370. @click="previewImg(w.works, w)"
  7371. alt
  7372. />
  7373. <div
  7374. class="answerScore"
  7375. v-if="w.score"
  7376. @click.stop="openScore(w)"
  7377. :class="{
  7378. rightW:
  7379. w.userid == userid ||
  7380. tType == 1 ||
  7381. tType == 4
  7382. }"
  7383. >
  7384. {{ JSON.parse(w.score).wScore }}分
  7385. </div>
  7386. <div
  7387. class="answerScore"
  7388. @click.stop="openScore(w)"
  7389. v-else-if="courseDetail.userid == userid"
  7390. :class="{
  7391. rightW:
  7392. w.userid == userid ||
  7393. tType == 1 ||
  7394. tType == 4
  7395. }"
  7396. >
  7397. 评分
  7398. </div>
  7399. <img
  7400. class="deleteImg"
  7401. src="../../assets/deleteworks.png"
  7402. v-if="
  7403. w.userid == userid || tType == 1 || tType == 4
  7404. "
  7405. @click.stop="deleteWorks(w.wid)"
  7406. alt
  7407. />
  7408. </div>
  7409. <div class="comment" style="min-width: 200px">
  7410. <div class="worksName">
  7411. <div>{{ w.sName }}</div>
  7412. </div>
  7413. <div class="commentList">
  7414. <div class="commentList">
  7415. <div
  7416. class="commentImg"
  7417. @click="
  7418. isLikes(
  7419. w.wid,
  7420. userid,
  7421. 1,
  7422. null,
  7423. w.isLikes,
  7424. w.sName
  7425. )
  7426. "
  7427. >
  7428. <img
  7429. :src="w.isLikes == true ? likes : noLikes"
  7430. alt=""
  7431. />
  7432. </div>
  7433. <div>{{ w.likesCount }}</div>
  7434. </div>
  7435. <div
  7436. class="commentList"
  7437. style="margin-right: 15px"
  7438. >
  7439. <div
  7440. class="commentImg"
  7441. @click="
  7442. commentOther(
  7443. w,
  7444. toolIndex,
  7445. wIndex,
  7446. null,
  7447. g.id
  7448. )
  7449. "
  7450. >
  7451. <img
  7452. src="../../assets/icon/comment/comment.png"
  7453. alt=""
  7454. />
  7455. </div>
  7456. <div>{{ w.commentCount }}</div>
  7457. </div>
  7458. </div>
  7459. </div>
  7460. </div>
  7461. </div>
  7462. <div class="group_work" v-else>暂无提交作业</div>
  7463. </div>
  7464. </div>
  7465. <div
  7466. :id="'tool-' + toolIndex"
  7467. :style="{
  7468. height:
  7469. isCloseList[toolIndex].isClose == 1
  7470. ? retrnToolHeight('tool-' + toolIndex)
  7471. : 'auto',
  7472. overflow:
  7473. isCloseList[toolIndex].isClose == 1
  7474. ? 'hidden'
  7475. : 'unset'
  7476. }"
  7477. class="worksDetailBox"
  7478. v-if="
  7479. worksStudent.length &&
  7480. worksStudent[toolIndex].length > 0
  7481. "
  7482. >
  7483. <div
  7484. class="works"
  7485. style="
  7486. width: 200px;
  7487. height: 140px;
  7488. margin: 10px 10px 10px 0;
  7489. border-radius: 15px;
  7490. box-shadow: 0 0 6px 1px #dfdada;
  7491. "
  7492. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7493. :key="wIndex"
  7494. >
  7495. <!-- @click="previewImg(w.works)" -->
  7496. <div class="workImg">
  7497. <img
  7498. :src="w.works"
  7499. @click="previewImg(w.works, w)"
  7500. alt
  7501. />
  7502. <div
  7503. class="answerScore"
  7504. v-if="w.score"
  7505. @click.stop="openScore(w)"
  7506. :class="{
  7507. rightW:
  7508. w.userid == userid || tType == 1 || tType == 4
  7509. }"
  7510. >
  7511. {{ JSON.parse(w.score).wScore }}分
  7512. </div>
  7513. <div
  7514. class="answerScore"
  7515. @click.stop="openScore(w)"
  7516. v-else-if="courseDetail.userid == userid"
  7517. :class="{
  7518. rightW:
  7519. w.userid == userid || tType == 1 || tType == 4
  7520. }"
  7521. >
  7522. 评分
  7523. </div>
  7524. <img
  7525. class="deleteImg"
  7526. src="../../assets/deleteworks.png"
  7527. v-if="
  7528. w.userid == userid || tType == 1 || tType == 4
  7529. "
  7530. @click.stop="deleteWorks(w.wid)"
  7531. alt
  7532. />
  7533. </div>
  7534. <div class="comment" style="min-width: 200px">
  7535. <div class="worksName">
  7536. <div>{{ w.sName }}</div>
  7537. </div>
  7538. <div class="commentList">
  7539. <div class="commentList">
  7540. <div
  7541. class="commentImg"
  7542. @click="
  7543. isLikes(
  7544. w.wid,
  7545. userid,
  7546. 1,
  7547. null,
  7548. w.isLikes,
  7549. w.sName
  7550. )
  7551. "
  7552. >
  7553. <img
  7554. :src="w.isLikes == true ? likes : noLikes"
  7555. alt=""
  7556. />
  7557. </div>
  7558. <div>{{ w.likesCount }}</div>
  7559. </div>
  7560. <div class="commentList" style="margin-right: 15px">
  7561. <div
  7562. class="commentImg"
  7563. @click="commentOther(w, toolIndex, wIndex)"
  7564. >
  7565. <img
  7566. src="../../assets/icon/comment/comment.png"
  7567. alt=""
  7568. />
  7569. </div>
  7570. <div>{{ w.commentCount }}</div>
  7571. </div>
  7572. </div>
  7573. </div>
  7574. </div>
  7575. </div>
  7576. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7577. 未提交
  7578. </div>
  7579. <div
  7580. class="noWorksS"
  7581. v-if="noWorksS && noWorksS[toolIndex].length"
  7582. >
  7583. <div
  7584. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7585. :key="sIndex"
  7586. class="noWorksName"
  7587. >
  7588. <el-tooltip
  7589. effect="dark"
  7590. :content="s.student"
  7591. placement="top"
  7592. >
  7593. <span>{{ s.student }}</span>
  7594. </el-tooltip>
  7595. </div>
  7596. </div>
  7597. </div>
  7598. <div
  7599. v-if="
  7600. tType &&
  7601. ((tType == 2 && sIsOpen == true) ||
  7602. tType == 1 ||
  7603. tType == 4) &&
  7604. tool.tool.indexOf(7) != -1
  7605. "
  7606. class="worksBox"
  7607. >
  7608. <div
  7609. class="zuoyeYulan"
  7610. style="display: flex;justify-content: space-between;align-items: center;"
  7611. v-if="
  7612. (worksStudent.length &&
  7613. worksStudent[toolIndex].length > 0) ||
  7614. (courseGroup.group && courseGroup.group.length)
  7615. "
  7616. >
  7617. <div class="worksTop">
  7618. <div>作业预览</div>
  7619. <div
  7620. class="corOpen"
  7621. @click="contract(toolIndex)"
  7622. v-if="
  7623. isCloseList[toolIndex].isCloseBoolean &&
  7624. isCloseList[toolIndex].isClose == 0
  7625. "
  7626. >
  7627. 折叠
  7628. </div>
  7629. <div
  7630. class="corOpen"
  7631. @click="contract(toolIndex)"
  7632. v-if="isCloseList[toolIndex].isClose == 1"
  7633. >
  7634. 展开
  7635. </div>
  7636. </div>
  7637. <div
  7638. style="display: flex;"
  7639. v-if="
  7640. (courseDetail.userid == userid ||
  7641. (courseDetail.course_teacher &&
  7642. courseDetail.course_teacher.indexOf(userid) !=
  7643. -1)) &&
  7644. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7645. taskCount
  7646. ].eList &&
  7647. chapInfoList[courseType].chapterInfo[0].taskJson[
  7648. taskCount
  7649. ].eList.length) ||
  7650. (tool.eList && tool.eList.length)) &&
  7651. courseDetail.state == 5
  7652. "
  7653. >
  7654. <div
  7655. style="margin-right:10px"
  7656. class="ScoreBtn"
  7657. @click="
  7658. resetLoopEva(
  7659. worksStudent[toolIndex],
  7660. chapInfoList[courseType].chapterInfo[0].taskJson[
  7661. taskCount
  7662. ].eList,
  7663. courseType,
  7664. taskCount,
  7665. toolIndex,
  7666. tool.toolDetail,
  7667. worksStudent
  7668. )
  7669. "
  7670. >
  7671. 一键重置
  7672. </div>
  7673. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7674. <img
  7675. src="../../assets/icon/newIcons/rootImg.png"
  7676. alt=""
  7677. />
  7678. AI评分
  7679. </div>
  7680. <div
  7681. class="ScoreBtn"
  7682. v-else-if="!loopLoading[toolIndex].loading"
  7683. @click="
  7684. loopEva(
  7685. worksStudent[toolIndex],
  7686. chapInfoList[courseType].chapterInfo[0].taskJson[
  7687. taskCount
  7688. ].eList,
  7689. courseType,
  7690. taskCount,
  7691. toolIndex,
  7692. tool.toolDetail,
  7693. chapInfoList[courseType].chapterInfo[0].taskJson[
  7694. taskCount
  7695. ].taskDetail,
  7696. tool
  7697. )
  7698. "
  7699. >
  7700. <img
  7701. src="../../assets/icon/newIcons/rootImg.png"
  7702. alt=""
  7703. />
  7704. AI评分
  7705. </div>
  7706. <div class="ScoreBtn" v-else>
  7707. <img
  7708. src="../../assets/icon/newIcons/rootImg.png"
  7709. alt=""
  7710. />
  7711. 正在评分
  7712. </div>
  7713. </div>
  7714. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7715. </div>
  7716. <div
  7717. class="group_workBox"
  7718. v-for="(g, gindex) in courseGroup.group"
  7719. :key="gindex"
  7720. >
  7721. <div class="group_box">
  7722. <div class="group_title">
  7723. <el-tooltip
  7724. class="item"
  7725. effect="light"
  7726. :content="g.name"
  7727. placement="top"
  7728. >
  7729. <div class="group_name">{{ g.name }}</div>
  7730. </el-tooltip>
  7731. </div>
  7732. <div
  7733. class="group_work"
  7734. v-if="
  7735. g.works &&
  7736. g.works.length &&
  7737. g.works[toolIndex].length
  7738. "
  7739. >
  7740. <div
  7741. class="works"
  7742. style="
  7743. width: 200px;
  7744. height: 140px;
  7745. margin: 10px 10px 10px 0;
  7746. border-radius: 15px;
  7747. box-shadow: 0 0 6px 1px #dfdada;
  7748. "
  7749. v-for="(w, wIndex) in g.works[toolIndex]"
  7750. :key="wIndex"
  7751. :class="w.type == 1 ? 'isTypeOne' : ''"
  7752. >
  7753. <div class="workImg">
  7754. <img
  7755. :src="w.works"
  7756. @click="previewImg(w.works, w)"
  7757. alt
  7758. />
  7759. <div
  7760. class="answerScore"
  7761. v-if="w.score"
  7762. @click.stop="openScore(w)"
  7763. :class="{
  7764. rightW:
  7765. w.userid == userid ||
  7766. tType == 1 ||
  7767. tType == 4
  7768. }"
  7769. >
  7770. {{ JSON.parse(w.score).wScore }}分
  7771. </div>
  7772. <div
  7773. class="answerScore"
  7774. @click.stop="openScore(w)"
  7775. v-else-if="courseDetail.userid == userid"
  7776. :class="{
  7777. rightW:
  7778. w.userid == userid ||
  7779. tType == 1 ||
  7780. tType == 4
  7781. }"
  7782. >
  7783. 评分
  7784. </div>
  7785. <img
  7786. class="deleteImg"
  7787. src="../../assets/deleteworks.png"
  7788. v-if="
  7789. w.userid == userid || tType == 1 || tType == 4
  7790. "
  7791. @click.stop="deleteWorks(w.wid)"
  7792. alt
  7793. />
  7794. </div>
  7795. <div class="comment" style="min-width: 200px">
  7796. <div class="worksName">
  7797. <div>{{ w.sName }}</div>
  7798. </div>
  7799. <div class="commentList">
  7800. <div class="commentList">
  7801. <div
  7802. class="commentImg"
  7803. @click="
  7804. isLikes(
  7805. w.wid,
  7806. userid,
  7807. 1,
  7808. null,
  7809. w.isLikes,
  7810. w.sName
  7811. )
  7812. "
  7813. >
  7814. <img
  7815. :src="w.isLikes == true ? likes : noLikes"
  7816. alt=""
  7817. />
  7818. </div>
  7819. <div>{{ w.likesCount }}</div>
  7820. </div>
  7821. <div
  7822. class="commentList"
  7823. style="margin-right: 15px"
  7824. >
  7825. <div
  7826. class="commentImg"
  7827. @click="
  7828. commentOther(
  7829. w,
  7830. toolIndex,
  7831. wIndex,
  7832. null,
  7833. g.id
  7834. )
  7835. "
  7836. >
  7837. <img
  7838. src="../../assets/icon/comment/comment.png"
  7839. alt=""
  7840. />
  7841. </div>
  7842. <div>{{ w.commentCount }}</div>
  7843. </div>
  7844. </div>
  7845. </div>
  7846. </div>
  7847. </div>
  7848. <div class="group_work" v-else>暂无提交作业</div>
  7849. </div>
  7850. </div>
  7851. <div
  7852. :id="'tool-' + toolIndex"
  7853. :style="{
  7854. height:
  7855. isCloseList[toolIndex].isClose == 1
  7856. ? retrnToolHeight('tool-' + toolIndex)
  7857. : 'auto',
  7858. overflow:
  7859. isCloseList[toolIndex].isClose == 1
  7860. ? 'hidden'
  7861. : 'unset'
  7862. }"
  7863. class="worksDetailBox"
  7864. v-if="
  7865. worksStudent.length &&
  7866. worksStudent[toolIndex].length > 0
  7867. "
  7868. >
  7869. <div
  7870. class="works"
  7871. style="
  7872. width: 200px;
  7873. height: 140px;
  7874. margin: 10px 10px 10px 0;
  7875. border-radius: 15px;
  7876. box-shadow: 0 0 6px 1px #dfdada;
  7877. "
  7878. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7879. :key="wIndex"
  7880. >
  7881. <!-- @click="previewImg(w.works)" -->
  7882. <div class="workImg">
  7883. <img
  7884. :src="w.works"
  7885. @click="previewImg(w.works, w)"
  7886. alt
  7887. />
  7888. <div
  7889. class="answerScore"
  7890. v-if="w.score"
  7891. @click.stop="openScore(w)"
  7892. :class="{
  7893. rightW:
  7894. w.userid == userid || tType == 1 || tType == 4
  7895. }"
  7896. >
  7897. {{ JSON.parse(w.score).wScore }}分
  7898. </div>
  7899. <div
  7900. class="answerScore"
  7901. @click.stop="openScore(w)"
  7902. v-else-if="
  7903. courseDetail.userid == userid &&
  7904. courseDetail.state != 5 &&
  7905. chapInfoList[courseType].chapterInfo[0]
  7906. .taskJson[taskCount].eList &&
  7907. chapInfoList[courseType].chapterInfo[0]
  7908. .taskJson[taskCount].eList.length
  7909. "
  7910. :class="{
  7911. rightW:
  7912. w.userid == userid || tType == 1 || tType == 4
  7913. }"
  7914. >
  7915. 评分
  7916. </div>
  7917. <!-- <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"> -->
  7918. <div
  7919. v-else-if="
  7920. (courseDetail.userid == userid ||
  7921. (courseDetail.course_teacher &&
  7922. courseDetail.course_teacher.indexOf(userid) !=
  7923. -1) ||
  7924. (w.userid == userid && sIsOpen)) &&
  7925. courseDetail.state == 5 &&
  7926. ((chapInfoList[courseType].chapterInfo[0]
  7927. .taskJson[taskCount].eList &&
  7928. chapInfoList[courseType].chapterInfo[0]
  7929. .taskJson[taskCount].eList.length) ||
  7930. (tool.eList && tool.eList.length))
  7931. "
  7932. >
  7933. <el-popover
  7934. placement="top"
  7935. width="318"
  7936. :disabled="AIloading[toolIndex][wIndex].loading"
  7937. trigger="hover"
  7938. >
  7939. <markScore
  7940. :loading="AIloading[toolIndex][wIndex].loading"
  7941. :markScoreVisible="markScoreVisible"
  7942. :ref="`markSco${toolIndex}${wIndex}`"
  7943. @updateLoading="updateLoading"
  7944. @updateDocSco="updateDocSco"
  7945. @refreshOther="refreshOther"
  7946. @markScoreDig="markScoreDig"
  7947. :tool="tool"
  7948. :wIndex="wIndex"
  7949. :scoCon="w"
  7950. :toolIndex="toolIndex"
  7951. :key="refreshKey"
  7952. :stage="courseType"
  7953. :task="taskCount"
  7954. :scoTit="
  7955. chapInfoList[courseType].chapterInfo[0]
  7956. .taskJson[taskCount].eList
  7957. "
  7958. >
  7959. </markScore>
  7960. <div
  7961. class="answerScore"
  7962. @click="
  7963. markScoreDig2(
  7964. w.sName,
  7965. worksStudent,
  7966. w.userid,
  7967. toolIndex,
  7968. chapInfoList[courseType].chapterInfo[0]
  7969. .taskJson[taskCount].eList,
  7970. AIloading[toolIndex][wIndex].loading,
  7971. tool
  7972. )
  7973. "
  7974. slot="reference"
  7975. :class="{
  7976. rightW:
  7977. w.userid == userid ||
  7978. tType == 1 ||
  7979. tType == 4 ||
  7980. w.ateacher == userid
  7981. }"
  7982. >
  7983. <span v-if="AIloading[toolIndex][wIndex].sco">
  7984. {{
  7985. AIloading[toolIndex][wIndex].loading
  7986. ? "评分中"
  7987. : AIloading[toolIndex][wIndex].sco + "分"
  7988. }}
  7989. </span>
  7990. <span v-else>
  7991. {{
  7992. AIloading[toolIndex][wIndex].loading
  7993. ? "评分中"
  7994. : "评分"
  7995. }}
  7996. </span>
  7997. </div>
  7998. </el-popover>
  7999. </div>
  8000. <img
  8001. class="deleteImg"
  8002. src="../../assets/deleteworks.png"
  8003. v-if="
  8004. w.userid == userid || tType == 1 || tType == 4
  8005. "
  8006. @click.stop="deleteWorks(w.wid)"
  8007. alt
  8008. />
  8009. </div>
  8010. <div class="comment" style="min-width: 200px">
  8011. <div class="worksName">
  8012. <div>{{ w.sName }}</div>
  8013. </div>
  8014. <div class="commentList">
  8015. <div class="commentList">
  8016. <div
  8017. class="commentImg"
  8018. @click="
  8019. isLikes(
  8020. w.wid,
  8021. userid,
  8022. 1,
  8023. null,
  8024. w.isLikes,
  8025. w.sName
  8026. )
  8027. "
  8028. >
  8029. <img
  8030. :src="w.isLikes == true ? likes : noLikes"
  8031. alt=""
  8032. />
  8033. </div>
  8034. <div>{{ w.likesCount }}</div>
  8035. </div>
  8036. <div class="commentList" style="margin-right: 15px">
  8037. <div
  8038. class="commentImg"
  8039. @click="commentOther(w, toolIndex, wIndex)"
  8040. >
  8041. <img
  8042. src="../../assets/icon/comment/comment.png"
  8043. alt=""
  8044. />
  8045. </div>
  8046. <div>{{ w.commentCount }}</div>
  8047. </div>
  8048. </div>
  8049. </div>
  8050. </div>
  8051. </div>
  8052. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8053. 未提交
  8054. </div>
  8055. <div
  8056. class="noWorksS"
  8057. v-if="noWorksS && noWorksS[toolIndex].length"
  8058. >
  8059. <div
  8060. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8061. :key="sIndex"
  8062. class="noWorksName"
  8063. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8064. >
  8065. <el-tooltip
  8066. effect="dark"
  8067. :content="s.student"
  8068. placement="top"
  8069. >
  8070. <span>{{ s.student }}</span>
  8071. </el-tooltip>
  8072. </div>
  8073. </div>
  8074. </div>
  8075. <div
  8076. v-if="
  8077. tType &&
  8078. ((tType == 2 && sIsOpen == true) ||
  8079. tType == 1 ||
  8080. tType == 4) &&
  8081. tool.tool.indexOf(26) != -1
  8082. "
  8083. class="worksBox"
  8084. >
  8085. <div
  8086. class="zuoyeYulan"
  8087. v-if="
  8088. worksStudent.length &&
  8089. worksStudent[toolIndex].length > 0
  8090. "
  8091. >
  8092. <div class="worksTop">
  8093. <div>作业预览</div>
  8094. <div
  8095. class="corOpen"
  8096. @click="contract(toolIndex)"
  8097. v-if="
  8098. isCloseList[toolIndex].isCloseBoolean &&
  8099. isCloseList[toolIndex].isClose == 0
  8100. "
  8101. >
  8102. 折叠
  8103. </div>
  8104. <div
  8105. class="corOpen"
  8106. @click="contract(toolIndex)"
  8107. v-if="isCloseList[toolIndex].isClose == 1"
  8108. >
  8109. 展开
  8110. </div>
  8111. </div>
  8112. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8113. </div>
  8114. <div
  8115. :id="'tool-' + toolIndex"
  8116. :style="{
  8117. height:
  8118. isCloseList[toolIndex].isClose == 1
  8119. ? retrnToolHeight('tool-' + toolIndex)
  8120. : 'auto',
  8121. overflow:
  8122. isCloseList[toolIndex].isClose == 1
  8123. ? 'hidden'
  8124. : 'unset'
  8125. }"
  8126. class="worksDetailBox"
  8127. v-if="
  8128. worksStudent.length &&
  8129. worksStudent[toolIndex].length > 0
  8130. "
  8131. >
  8132. <div
  8133. class="works"
  8134. style="width: 240px; height: 140px; overflow: hidden"
  8135. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8136. :key="wIndex"
  8137. :class="w.type == 1 ? 'isTypeOne' : ''"
  8138. >
  8139. <div class="workImg" v-if="w.type == 0">
  8140. <img
  8141. :src="w.works"
  8142. @click="previewImg(w.works, w)"
  8143. alt
  8144. />
  8145. <img
  8146. class="deleteImg"
  8147. src="../../assets/deleteworks.png"
  8148. v-if="
  8149. w.userid == userid || tType == 1 || tType == 4
  8150. "
  8151. @click.stop="deleteWorks(w.wid)"
  8152. alt
  8153. />
  8154. </div>
  8155. <div class="workImg" v-if="w.type == 1">
  8156. <img :src="word" @click="openFile(w.works)" alt />
  8157. <img
  8158. class="deleteImg"
  8159. src="../../assets/deleteworks.png"
  8160. v-if="
  8161. w.userid == userid || tType == 1 || tType == 4
  8162. "
  8163. @click.stop="deleteWorks(w.wid)"
  8164. alt
  8165. />
  8166. </div>
  8167. <div class="worksName">
  8168. <div>{{ w.sName }}</div>
  8169. </div>
  8170. </div>
  8171. </div>
  8172. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8173. 未提交
  8174. </div>
  8175. <div
  8176. class="noWorksS"
  8177. v-if="noWorksS && noWorksS[toolIndex].length"
  8178. >
  8179. <div
  8180. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8181. :key="sIndex"
  8182. class="noWorksName"
  8183. >
  8184. <el-tooltip
  8185. effect="dark"
  8186. :content="s.student"
  8187. placement="top"
  8188. >
  8189. <span>{{ s.student }}</span>
  8190. </el-tooltip>
  8191. </div>
  8192. </div>
  8193. </div>
  8194. <div
  8195. v-if="
  8196. tType &&
  8197. ((tType == 2 && sIsOpen == true) ||
  8198. tType == 1 ||
  8199. tType == 4) &&
  8200. tool.tool.indexOf(40) != -1
  8201. "
  8202. class="worksBox"
  8203. >
  8204. <div
  8205. class="zuoyeYulan"
  8206. v-if="
  8207. worksStudent.length &&
  8208. worksStudent[toolIndex].length > 0
  8209. "
  8210. >
  8211. <div class="worksTop">
  8212. <div>作业预览</div>
  8213. <div
  8214. class="corOpen"
  8215. @click="contract(toolIndex)"
  8216. v-if="
  8217. isCloseList[toolIndex].isCloseBoolean &&
  8218. isCloseList[toolIndex].isClose == 0
  8219. "
  8220. >
  8221. 折叠
  8222. </div>
  8223. <div
  8224. class="corOpen"
  8225. @click="contract(toolIndex)"
  8226. v-if="isCloseList[toolIndex].isClose == 1"
  8227. >
  8228. 展开
  8229. </div>
  8230. </div>
  8231. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8232. </div>
  8233. <div
  8234. :id="'tool-' + toolIndex"
  8235. :style="{
  8236. height:
  8237. isCloseList[toolIndex].isClose == 1
  8238. ? retrnToolHeight('tool-' + toolIndex)
  8239. : 'auto',
  8240. overflow:
  8241. isCloseList[toolIndex].isClose == 1
  8242. ? 'hidden'
  8243. : 'unset'
  8244. }"
  8245. class="worksDetailBox"
  8246. v-if="
  8247. worksStudent.length &&
  8248. worksStudent[toolIndex].length > 0
  8249. "
  8250. >
  8251. <div
  8252. class="works"
  8253. style="
  8254. width: 200px;
  8255. height: 140px;
  8256. margin: 10px 10px 10px 0;
  8257. border-radius: 15px;
  8258. box-shadow: 0 0 6px 1px #dfdada;
  8259. "
  8260. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8261. :key="wIndex"
  8262. :class="w.type == 1 ? 'isTypeOne' : ''"
  8263. >
  8264. <div class="workImg">
  8265. <img
  8266. src="../../assets/icon/works/noImg.png"
  8267. @click="openPj(w.works, toolIndex)"
  8268. alt
  8269. />
  8270. <img
  8271. class="deleteImg"
  8272. src="../../assets/deleteworks.png"
  8273. v-if="
  8274. w.userid == userid || tType == 1 || tType == 4
  8275. "
  8276. @click.stop="deleteWorks(w.wid)"
  8277. alt
  8278. />
  8279. </div>
  8280. <div class="comment" style="min-width: 200px">
  8281. <div class="worksName">
  8282. <div>{{ w.sName }}</div>
  8283. </div>
  8284. <div class="commentList">
  8285. <div class="commentList">
  8286. <div
  8287. class="commentImg"
  8288. @click="
  8289. isLikes(
  8290. w.wid,
  8291. userid,
  8292. 1,
  8293. null,
  8294. w.isLikes,
  8295. w.sName
  8296. )
  8297. "
  8298. >
  8299. <img
  8300. :src="w.isLikes == true ? likes : noLikes"
  8301. alt=""
  8302. />
  8303. </div>
  8304. <div>{{ w.likesCount }}</div>
  8305. </div>
  8306. <div class="commentList" style="margin-right: 15px">
  8307. <div
  8308. class="commentImg"
  8309. @click="commentOther(w, toolIndex, wIndex)"
  8310. >
  8311. <img
  8312. src="../../assets/icon/comment/comment.png"
  8313. alt=""
  8314. />
  8315. </div>
  8316. <div>{{ w.commentCount }}</div>
  8317. </div>
  8318. </div>
  8319. </div>
  8320. </div>
  8321. </div>
  8322. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8323. 未提交
  8324. </div>
  8325. <div
  8326. class="noWorksS"
  8327. v-if="noWorksS && noWorksS[toolIndex].length"
  8328. >
  8329. <div
  8330. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8331. :key="sIndex"
  8332. class="noWorksName"
  8333. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8334. >
  8335. <el-tooltip
  8336. effect="dark"
  8337. :content="s.student"
  8338. placement="top"
  8339. >
  8340. <span>{{ s.student }}</span>
  8341. </el-tooltip>
  8342. </div>
  8343. </div>
  8344. </div>
  8345. <div
  8346. v-if="
  8347. tType &&
  8348. tType == 2 &&
  8349. !sIsOpen &&
  8350. tool.tool.indexOf(40) != -1
  8351. "
  8352. class="worksBox"
  8353. >
  8354. <div
  8355. class="zuoyeYulan"
  8356. v-if="workStudent[toolIndex].length > 0"
  8357. >
  8358. <span class="worksTitle">作业预览</span>
  8359. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8360. </div>
  8361. <div
  8362. class="worksDetailBox"
  8363. v-if="workStudent[toolIndex].length > 0"
  8364. >
  8365. <div
  8366. class="works"
  8367. style="
  8368. width: 200px;
  8369. height: 140px;
  8370. margin: 10px 10px 10px 0;
  8371. "
  8372. v-for="(w, wIndex) in workStudent[toolIndex]"
  8373. :key="wIndex"
  8374. >
  8375. <div class="workImg">
  8376. <img
  8377. src="../../assets/icon/works/noImg.png"
  8378. @click="openPj(w.works, toolIndex)"
  8379. alt
  8380. />
  8381. <img
  8382. class="deleteImg"
  8383. src="../../assets/deleteworks.png"
  8384. v-if="
  8385. w.userid == userid || tType == 1 || tType == 4
  8386. "
  8387. @click.stop="deleteWorks(w.wid)"
  8388. alt
  8389. />
  8390. </div>
  8391. <div class="worksName">
  8392. <div>{{ w.sName }}</div>
  8393. </div>
  8394. </div>
  8395. </div>
  8396. </div>
  8397. <div
  8398. v-if="
  8399. tType &&
  8400. ((tType == 2 && sIsOpen == true) ||
  8401. tType == 1 ||
  8402. tType == 4) &&
  8403. tool.tool.indexOf(41) != -1
  8404. "
  8405. >
  8406. <AnswerData2
  8407. v-if="
  8408. worksStudent.length &&
  8409. worksStudent[toolIndex].length > 0
  8410. "
  8411. :problemJson="tool.selectJson.answer"
  8412. :people="worksStudent[toolIndex]"
  8413. ></AnswerData2>
  8414. </div>
  8415. <div
  8416. v-if="
  8417. tType &&
  8418. ((tType == 2 && sIsOpen == true) ||
  8419. tType == 1 ||
  8420. tType == 4) &&
  8421. tool.tool.indexOf(41) != -1
  8422. "
  8423. class="worksBox"
  8424. >
  8425. <div
  8426. class="zuoyeYulan"
  8427. v-if="
  8428. worksStudent.length &&
  8429. worksStudent[toolIndex].length > 0
  8430. "
  8431. >
  8432. <div class="worksTop">
  8433. <div>作业预览</div>
  8434. <div
  8435. class="corOpen"
  8436. @click="contract(toolIndex)"
  8437. v-if="
  8438. isCloseList[toolIndex].isCloseBoolean &&
  8439. isCloseList[toolIndex].isClose == 0
  8440. "
  8441. >
  8442. 折叠
  8443. </div>
  8444. <div
  8445. class="corOpen"
  8446. @click="contract(toolIndex)"
  8447. v-if="isCloseList[toolIndex].isClose == 1"
  8448. >
  8449. 展开
  8450. </div>
  8451. </div>
  8452. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8453. </div>
  8454. <div
  8455. :id="'tool-' + toolIndex"
  8456. :style="{
  8457. height:
  8458. isCloseList[toolIndex].isClose == 1
  8459. ? retrnToolHeight('tool-' + toolIndex)
  8460. : 'auto',
  8461. overflow:
  8462. isCloseList[toolIndex].isClose == 1
  8463. ? 'hidden'
  8464. : 'unset'
  8465. }"
  8466. class="worksDetailBox"
  8467. v-if="
  8468. worksStudent.length &&
  8469. worksStudent[toolIndex].length > 0
  8470. "
  8471. >
  8472. <div
  8473. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8474. :key="wIndex"
  8475. class="isWorksName2"
  8476. @click="openXz(w, toolIndex)"
  8477. >
  8478. {{ w.sName }}
  8479. <img
  8480. class="deleteImg deleteImg2"
  8481. src="../../assets/deleteworks.png"
  8482. v-if="w.userid == userid || tType == 1 || tType == 4"
  8483. @click.stop="deleteWorks(w.wid)"
  8484. alt
  8485. />
  8486. </div>
  8487. <!-- <div
  8488. class="works"
  8489. style="
  8490. width: 200px;
  8491. height: 140px;
  8492. margin: 10px 10px 10px 0;
  8493. border-radius: 15px;
  8494. box-shadow: 0 0 6px 1px #dfdada;
  8495. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  8496. :class="w.type == 5 ? 'isTypeOne' : ''">
  8497. <div class="workImg">
  8498. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  8499. </div>
  8500. <div class="worksName">
  8501. <div>{{ w.sName }}</div>
  8502. </div>
  8503. </div> -->
  8504. </div>
  8505. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8506. 未提交
  8507. </div>
  8508. <div
  8509. class="noWorksS"
  8510. v-if="noWorksS && noWorksS[toolIndex].length"
  8511. >
  8512. <div
  8513. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8514. :key="sIndex"
  8515. class="noWorksName"
  8516. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8517. >
  8518. <el-tooltip
  8519. effect="dark"
  8520. :content="s.student"
  8521. placement="top"
  8522. >
  8523. <span>{{ s.student }}</span>
  8524. </el-tooltip>
  8525. </div>
  8526. </div>
  8527. </div>
  8528. <div
  8529. v-if="
  8530. tType &&
  8531. tType == 2 &&
  8532. !sIsOpen &&
  8533. tool.tool.indexOf(41) != -1
  8534. "
  8535. class="worksBox"
  8536. >
  8537. <div
  8538. class="zuoyeYulan"
  8539. v-if="workStudent[toolIndex].length > 0"
  8540. >
  8541. <span class="worksTitle">作业预览</span>
  8542. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8543. </div>
  8544. <div
  8545. class="worksDetailBox"
  8546. v-if="workStudent[toolIndex].length > 0"
  8547. >
  8548. <div
  8549. class="works"
  8550. style="
  8551. width: 200px;
  8552. height: 140px;
  8553. margin: 10px 10px 10px 0;
  8554. "
  8555. v-for="(w, wIndex) in workStudent[toolIndex]"
  8556. :key="wIndex"
  8557. >
  8558. <div class="workImg">
  8559. <img
  8560. src="../../assets/icon/works/noImg.png"
  8561. @click="openXz(w, toolIndex)"
  8562. alt
  8563. />
  8564. <img
  8565. class="deleteImg"
  8566. src="../../assets/deleteworks.png"
  8567. v-if="
  8568. w.userid == userid || tType == 1 || tType == 4
  8569. "
  8570. @click.stop="deleteWorks(w.wid)"
  8571. alt
  8572. />
  8573. </div>
  8574. <div class="worksName">
  8575. <div>{{ w.sName }}</div>
  8576. </div>
  8577. </div>
  8578. </div>
  8579. </div>
  8580. <div v-if="false" class="xuan_right_box">
  8581. <div
  8582. class="tool_right_box"
  8583. v-for="(item, index) in tool.sentenceList"
  8584. :key="index"
  8585. >
  8586. <div>
  8587. <span
  8588. style="word-break: break-all; white-space: normal"
  8589. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  8590. >
  8591. </div>
  8592. <div class="right_box_xuan">
  8593. <span>正确率</span>
  8594. <span>{{
  8595. (checkJson[toolIndex][index].right
  8596. ? checkJson[toolIndex][index].right
  8597. : 0) + "%"
  8598. }}</span>
  8599. </div>
  8600. <div class="right_box_xuan">
  8601. <span>答对人数</span>
  8602. <span>{{
  8603. checkJson[toolIndex][index].rightPerson.length
  8604. }}</span>
  8605. </div>
  8606. </div>
  8607. </div>
  8608. <div
  8609. v-if="
  8610. tType &&
  8611. ((tType == 2 && sIsOpen == true) ||
  8612. tType == 1 ||
  8613. tType == 4) &&
  8614. tool.tool.indexOf(47) != -1
  8615. "
  8616. >
  8617. <AnswerData
  8618. v-if="
  8619. checkJson[toolIndex].length &&
  8620. (tool.sentenceList || tool.sentenceList.length > 0)
  8621. "
  8622. :people="checkJson[toolIndex]"
  8623. ></AnswerData>
  8624. </div>
  8625. <div
  8626. v-if="
  8627. tType &&
  8628. tType == 2 &&
  8629. !sIsOpen &&
  8630. tool.tool.indexOf(47) != -1
  8631. "
  8632. class="worksBox"
  8633. >
  8634. <div
  8635. class="zuoyeYulan"
  8636. v-if="workStudent[toolIndex].length > 0"
  8637. >
  8638. <span class="worksTitle">作业预览</span>
  8639. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8640. </div>
  8641. <div
  8642. class="worksDetailBox"
  8643. v-if="workStudent[toolIndex].length > 0"
  8644. >
  8645. <div
  8646. class="works"
  8647. style="
  8648. width: 200px;
  8649. height: 140px;
  8650. margin: 10px 10px 10px 0;
  8651. "
  8652. v-for="(w, wIndex) in workStudent[toolIndex]"
  8653. :key="wIndex"
  8654. >
  8655. <!-- @click="openXz(w, toolIndex)" -->
  8656. <div class="workImg" @click="openSen(w, toolIndex)">
  8657. <img src="../../assets/icon/works/noImg.png" alt />
  8658. <img
  8659. class="deleteImg"
  8660. src="../../assets/deleteworks.png"
  8661. v-if="
  8662. w.userid == userid || tType == 1 || tType == 4
  8663. "
  8664. @click.stop="deleteWorks(w.wid)"
  8665. alt
  8666. />
  8667. </div>
  8668. <div class="worksName">
  8669. <div>
  8670. {{ w.sName }}
  8671. </div>
  8672. </div>
  8673. </div>
  8674. </div>
  8675. </div>
  8676. <div
  8677. v-if="
  8678. tType &&
  8679. ((tType == 2 && sIsOpen == true) ||
  8680. tType == 1 ||
  8681. tType == 4) &&
  8682. tool.tool.indexOf(47) != -1
  8683. "
  8684. class="worksBox"
  8685. >
  8686. <div
  8687. class="zuoyeYulan"
  8688. v-if="
  8689. worksStudent.length &&
  8690. worksStudent[toolIndex].length > 0
  8691. "
  8692. >
  8693. <div class="worksTop">
  8694. <div>作业预览</div>
  8695. <div
  8696. class="corOpen"
  8697. @click="contract(toolIndex)"
  8698. v-if="
  8699. isCloseList[toolIndex].isCloseBoolean &&
  8700. isCloseList[toolIndex].isClose == 0
  8701. "
  8702. >
  8703. 折叠
  8704. </div>
  8705. <div
  8706. class="corOpen"
  8707. @click="contract(toolIndex)"
  8708. v-if="isCloseList[toolIndex].isClose == 1"
  8709. >
  8710. 展开
  8711. </div>
  8712. </div>
  8713. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8714. </div>
  8715. <div
  8716. :id="'tool-' + toolIndex"
  8717. :style="{
  8718. height:
  8719. isCloseList[toolIndex].isClose == 1
  8720. ? retrnToolHeight('tool-' + toolIndex)
  8721. : 'auto',
  8722. overflow:
  8723. isCloseList[toolIndex].isClose == 1
  8724. ? 'hidden'
  8725. : 'unset'
  8726. }"
  8727. class="worksDetailBox"
  8728. v-if="
  8729. worksStudent.length &&
  8730. worksStudent[toolIndex].length > 0
  8731. "
  8732. >
  8733. <!-- @click="openXz(w, toolIndex)" -->
  8734. <div
  8735. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8736. :key="wIndex"
  8737. class="isWorksName2"
  8738. @click="openSen(w, toolIndex)"
  8739. >
  8740. {{ w.sName }}
  8741. <img
  8742. class="deleteImg deleteImg2"
  8743. src="../../assets/deleteworks.png"
  8744. v-if="w.userid == userid || tType == 1 || tType == 4"
  8745. @click.stop="deleteWorks(w.wid)"
  8746. alt
  8747. />
  8748. </div>
  8749. </div>
  8750. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8751. 未提交
  8752. </div>
  8753. <div
  8754. class="noWorksS"
  8755. v-if="noWorksS && noWorksS[toolIndex].length"
  8756. >
  8757. <div
  8758. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8759. :key="sIndex"
  8760. class="noWorksName"
  8761. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8762. >
  8763. <el-tooltip
  8764. effect="dark"
  8765. :content="s.student"
  8766. placement="top"
  8767. >
  8768. <span>{{ s.student }}</span>
  8769. </el-tooltip>
  8770. </div>
  8771. </div>
  8772. </div>
  8773. <div
  8774. v-if="
  8775. tType &&
  8776. ((tType == 2 && sIsOpen == true) ||
  8777. tType == 1 ||
  8778. tType == 4) &&
  8779. tool.tool.indexOf(48) != -1
  8780. "
  8781. class="worksBox"
  8782. >
  8783. <div
  8784. class="zuoyeYulan"
  8785. style="display: flex;justify-content: space-between;align-items: center;"
  8786. v-if="
  8787. worksStudent.length &&
  8788. worksStudent[toolIndex].length > 0
  8789. "
  8790. >
  8791. <div class="worksTop">
  8792. <div>作业预览</div>
  8793. <div
  8794. class="corOpen"
  8795. @click="contract(toolIndex)"
  8796. v-if="
  8797. isCloseList[toolIndex].isCloseBoolean &&
  8798. isCloseList[toolIndex].isClose == 0
  8799. "
  8800. >
  8801. 折叠
  8802. </div>
  8803. <div
  8804. class="corOpen"
  8805. @click="contract(toolIndex)"
  8806. v-if="isCloseList[toolIndex].isClose == 1"
  8807. >
  8808. 展开
  8809. </div>
  8810. </div>
  8811. <div
  8812. style="display: flex;"
  8813. v-if="
  8814. (courseDetail.userid == userid ||
  8815. (courseDetail.course_teacher &&
  8816. courseDetail.course_teacher.indexOf(userid) !=
  8817. -1)) &&
  8818. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8819. taskCount
  8820. ].eList &&
  8821. chapInfoList[courseType].chapterInfo[0].taskJson[
  8822. taskCount
  8823. ].eList.length) ||
  8824. (tool.eList && tool.eList.length)) &&
  8825. courseDetail.state == 5
  8826. "
  8827. >
  8828. <div
  8829. style="margin-right:10px"
  8830. class="ScoreBtn"
  8831. @click="
  8832. resetLoopEva(
  8833. worksStudent[toolIndex],
  8834. chapInfoList[courseType].chapterInfo[0].taskJson[
  8835. taskCount
  8836. ].eList,
  8837. courseType,
  8838. taskCount,
  8839. toolIndex,
  8840. tool.toolDetail,
  8841. worksStudent
  8842. )
  8843. "
  8844. >
  8845. 一键重置
  8846. </div>
  8847. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8848. <img
  8849. src="../../assets/icon/newIcons/rootImg.png"
  8850. alt=""
  8851. />
  8852. AI评分
  8853. </div>
  8854. <div
  8855. class="ScoreBtn"
  8856. v-else-if="!loopLoading[toolIndex].loading"
  8857. @click="
  8858. loopEva(
  8859. worksStudent[toolIndex],
  8860. chapInfoList[courseType].chapterInfo[0].taskJson[
  8861. taskCount
  8862. ].eList,
  8863. courseType,
  8864. taskCount,
  8865. toolIndex,
  8866. tool.toolDetail,
  8867. chapInfoList[courseType].chapterInfo[0].taskJson[
  8868. taskCount
  8869. ].taskDetail,
  8870. tool
  8871. )
  8872. "
  8873. >
  8874. <img
  8875. src="../../assets/icon/newIcons/rootImg.png"
  8876. alt=""
  8877. />
  8878. AI评分
  8879. </div>
  8880. <div class="ScoreBtn" v-else>
  8881. <img
  8882. src="../../assets/icon/newIcons/rootImg.png"
  8883. alt=""
  8884. />
  8885. 正在评分
  8886. </div>
  8887. </div>
  8888. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8889. </div>
  8890. <div
  8891. :id="'tool-' + toolIndex"
  8892. :style="{
  8893. height:
  8894. isCloseList[toolIndex].isClose == 1
  8895. ? retrnToolHeight('tool-' + toolIndex)
  8896. : 'auto',
  8897. overflow:
  8898. isCloseList[toolIndex].isClose == 1
  8899. ? 'hidden'
  8900. : 'unset'
  8901. }"
  8902. class="worksDetailBox"
  8903. v-if="
  8904. worksStudent.length &&
  8905. worksStudent[toolIndex].length > 0
  8906. "
  8907. >
  8908. <div
  8909. class="works"
  8910. style="
  8911. width: 200px;
  8912. height: 140px;
  8913. margin: 10px 10px 10px 0;
  8914. border-radius: 15px;
  8915. box-shadow: 0 0 6px 1px #dfdada;
  8916. "
  8917. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8918. :key="wIndex"
  8919. :class="w.type == 1 ? 'isTypeOne' : ''"
  8920. >
  8921. <div class="workImg">
  8922. <img :src="word" @click="openTable(w)" alt />
  8923. <!-- @click="openFile(w.works)" -->
  8924. <div
  8925. class="answerScore"
  8926. v-if="w.score"
  8927. @click.stop="openScore(w)"
  8928. :class="{
  8929. rightW:
  8930. w.userid == userid ||
  8931. tType == 1 ||
  8932. tType == 4 ||
  8933. w.ateacher == userid
  8934. }"
  8935. >
  8936. {{ JSON.parse(w.score).wScore }}分
  8937. </div>
  8938. <div
  8939. class="answerScore"
  8940. @click.stop="openScore(w)"
  8941. v-else-if="
  8942. courseDetail.userid == userid &&
  8943. courseDetail.state != 5 &&
  8944. chapInfoList[courseType].chapterInfo[0]
  8945. .taskJson[taskCount].eList &&
  8946. chapInfoList[courseType].chapterInfo[0]
  8947. .taskJson[taskCount].eList.length
  8948. "
  8949. :class="{
  8950. rightW:
  8951. w.userid == userid ||
  8952. tType == 1 ||
  8953. tType == 4 ||
  8954. w.ateacher == userid
  8955. }"
  8956. >
  8957. 评分
  8958. </div>
  8959. <!-- <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"> -->
  8960. <div
  8961. v-else-if="
  8962. (courseDetail.userid == userid ||
  8963. (courseDetail.course_teacher &&
  8964. courseDetail.course_teacher.indexOf(userid) !=
  8965. -1) ||
  8966. (w.userid == userid && sIsOpen)) &&
  8967. courseDetail.state == 5 &&
  8968. ((chapInfoList[courseType].chapterInfo[0]
  8969. .taskJson[taskCount].eList &&
  8970. chapInfoList[courseType].chapterInfo[0]
  8971. .taskJson[taskCount].eList.length) ||
  8972. (tool.eList && tool.eList.length))
  8973. "
  8974. >
  8975. <el-popover
  8976. placement="top"
  8977. width="318"
  8978. :disabled="AIloading[toolIndex][wIndex].loading"
  8979. trigger="hover"
  8980. >
  8981. <markScore
  8982. :loading="AIloading[toolIndex][wIndex].loading"
  8983. :markScoreVisible="markScoreVisible"
  8984. :ref="`markSco${toolIndex}${wIndex}`"
  8985. @updateLoading="updateLoading"
  8986. @updateDocSco="updateDocSco"
  8987. @refreshOther="refreshOther"
  8988. @markScoreDig="markScoreDig"
  8989. :tool="tool"
  8990. :wIndex="wIndex"
  8991. :scoCon="w"
  8992. :toolIndex="toolIndex"
  8993. :key="refreshKey"
  8994. :stage="courseType"
  8995. :task="taskCount"
  8996. :scoTit="
  8997. chapInfoList[courseType].chapterInfo[0]
  8998. .taskJson[taskCount].eList
  8999. "
  9000. >
  9001. </markScore>
  9002. <div
  9003. class="answerScore"
  9004. @click="
  9005. markScoreDig2(
  9006. w.sName,
  9007. worksStudent,
  9008. w.userid,
  9009. toolIndex,
  9010. chapInfoList[courseType].chapterInfo[0]
  9011. .taskJson[taskCount].eList,
  9012. AIloading[toolIndex][wIndex].loading,
  9013. tool
  9014. )
  9015. "
  9016. slot="reference"
  9017. :class="{
  9018. rightW:
  9019. w.userid == userid ||
  9020. tType == 1 ||
  9021. tType == 4 ||
  9022. w.ateacher == userid
  9023. }"
  9024. >
  9025. <span v-if="AIloading[toolIndex][wIndex].sco">
  9026. {{
  9027. AIloading[toolIndex][wIndex].loading
  9028. ? "评分中"
  9029. : AIloading[toolIndex][wIndex].sco + "分"
  9030. }}
  9031. </span>
  9032. <span v-else>
  9033. {{
  9034. AIloading[toolIndex][wIndex].loading
  9035. ? "评分中"
  9036. : "评分"
  9037. }}
  9038. </span>
  9039. </div>
  9040. </el-popover>
  9041. </div>
  9042. <img
  9043. class="deleteImg"
  9044. src="../../assets/deleteworks.png"
  9045. v-if="
  9046. w.userid == userid || tType == 1 || tType == 4
  9047. "
  9048. @click.stop="deleteWorks(w.wid)"
  9049. alt
  9050. />
  9051. </div>
  9052. <div class="comment" style="min-width: 200px">
  9053. <div class="worksName">
  9054. <div>{{ w.sName }}</div>
  9055. </div>
  9056. <div class="commentList">
  9057. <div class="commentList">
  9058. <div
  9059. class="commentImg"
  9060. @click="
  9061. isLikes(
  9062. w.wid,
  9063. userid,
  9064. 1,
  9065. null,
  9066. w.isLikes,
  9067. w.sName
  9068. )
  9069. "
  9070. >
  9071. <img
  9072. :src="w.isLikes == true ? likes : noLikes"
  9073. alt=""
  9074. />
  9075. </div>
  9076. <div>{{ w.likesCount }}</div>
  9077. </div>
  9078. <div class="commentList" style="margin-right: 15px">
  9079. <div
  9080. class="commentImg"
  9081. @click="commentOther(w, toolIndex, wIndex)"
  9082. >
  9083. <img
  9084. src="../../assets/icon/comment/comment.png"
  9085. alt=""
  9086. />
  9087. </div>
  9088. <div>{{ w.commentCount }}</div>
  9089. </div>
  9090. </div>
  9091. </div>
  9092. </div>
  9093. </div>
  9094. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9095. 未提交
  9096. </div>
  9097. <div
  9098. class="noWorksS"
  9099. v-if="noWorksS && noWorksS[toolIndex].length"
  9100. >
  9101. <div
  9102. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9103. :key="sIndex"
  9104. class="noWorksName"
  9105. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9106. >
  9107. <el-tooltip
  9108. effect="dark"
  9109. :content="s.student"
  9110. placement="top"
  9111. >
  9112. <span>{{ s.student }}</span>
  9113. </el-tooltip>
  9114. </div>
  9115. </div>
  9116. </div>
  9117. <div
  9118. v-if="
  9119. tType &&
  9120. tType == 2 &&
  9121. !sIsOpen &&
  9122. tool.tool.indexOf(48) != -1
  9123. "
  9124. class="worksBox"
  9125. >
  9126. <div
  9127. class="zuoyeYulan"
  9128. v-if="workStudent[toolIndex].length > 0"
  9129. >
  9130. <span class="worksTitle">作业预览</span>
  9131. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9132. </div>
  9133. <div
  9134. class="worksDetailBox"
  9135. v-if="workStudent[toolIndex].length > 0"
  9136. >
  9137. <div
  9138. class="works"
  9139. style="
  9140. width: 200px;
  9141. height: 140px;
  9142. margin: 10px 10px 10px 0;
  9143. box-shadow: 0 0 6px 1px #dfdada;
  9144. "
  9145. v-for="(w, wIndex) in workStudent[toolIndex]"
  9146. :key="wIndex"
  9147. >
  9148. <div class="workImg">
  9149. <img :src="word" @click="openTable(w)" alt />
  9150. <div
  9151. class="answerScore"
  9152. v-if="w.score"
  9153. @click.stop="openScore(w)"
  9154. :class="{
  9155. rightW:
  9156. w.userid == userid || tType == 1 || tType == 4
  9157. }"
  9158. >
  9159. {{ JSON.parse(w.score).wScore }}分
  9160. </div>
  9161. <div
  9162. class="answerScore"
  9163. @click.stop="openScore(w)"
  9164. v-else-if="courseDetail.userid == userid"
  9165. :class="{
  9166. rightW:
  9167. w.userid == userid || tType == 1 || tType == 4
  9168. }"
  9169. >
  9170. 评分
  9171. </div>
  9172. <div
  9173. class="stuLookScore"
  9174. v-if="
  9175. w.userid == userid ||
  9176. (tType == 1 &&
  9177. courseDetail.state == 5 &&
  9178. ((chapInfoList[courseType].chapterInfo[0]
  9179. .taskJson[taskCount].eList &&
  9180. chapInfoList[courseType].chapterInfo[0]
  9181. .taskJson[taskCount].eList.length) ||
  9182. (tool.eList && tool.eList.length)))
  9183. "
  9184. >
  9185. <el-popover
  9186. placement="top"
  9187. width="318"
  9188. trigger="hover"
  9189. >
  9190. <markScore
  9191. :loading="AIloading[toolIndex][wIndex].loading"
  9192. :markScoreVisible="markScoreVisible"
  9193. :ref="`markSco${toolIndex}${wIndex}`"
  9194. @updateLoading="updateLoading"
  9195. @updateDocSco="updateDocSco"
  9196. @refreshOther="refreshOther"
  9197. @markScoreDig="markScoreDig"
  9198. :tool="tool"
  9199. :wIndex="wIndex"
  9200. :scoCon="w"
  9201. :toolIndex="toolIndex"
  9202. :key="refreshKey"
  9203. :stage="courseType"
  9204. :task="taskCount"
  9205. :scoTit="
  9206. chapInfoList[courseType].chapterInfo[0]
  9207. .taskJson[taskCount].eList
  9208. "
  9209. >
  9210. </markScore>
  9211. <div
  9212. @click="
  9213. markScoreDig2(
  9214. w.sName,
  9215. worksStudent,
  9216. w.userid,
  9217. toolIndex,
  9218. chapInfoList[courseType].chapterInfo[0]
  9219. .taskJson[taskCount].eList,
  9220. AIloading[toolIndex][wIndex].loading,
  9221. tool
  9222. )
  9223. "
  9224. slot="reference"
  9225. >
  9226. <span v-if="AIloading[toolIndex][wIndex].sco">
  9227. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9228. </span>
  9229. <span v-else>
  9230. 评分
  9231. </span>
  9232. </div>
  9233. </el-popover>
  9234. </div>
  9235. <img
  9236. class="deleteImg"
  9237. src="../../assets/deleteworks.png"
  9238. v-if="
  9239. w.userid == userid || tType == 1 || tType == 4
  9240. "
  9241. @click.stop="deleteWorks(w.wid)"
  9242. alt
  9243. />
  9244. </div>
  9245. <div class="worksName">
  9246. <div>{{ w.sName }}</div>
  9247. </div>
  9248. </div>
  9249. </div>
  9250. </div>
  9251. <div
  9252. v-if="
  9253. tType &&
  9254. ((tType == 2 && sIsOpen == true) ||
  9255. tType == 1 ||
  9256. tType == 4) &&
  9257. tool.tool.indexOf(52) != -1
  9258. "
  9259. class="worksBox"
  9260. >
  9261. <div
  9262. class="zuoyeYulan"
  9263. style="display: flex;justify-content: space-between;align-items: center;"
  9264. v-if="
  9265. worksStudent.length &&
  9266. worksStudent[toolIndex].length > 0
  9267. "
  9268. >
  9269. <div class="worksTop">
  9270. <div>作业预览</div>
  9271. <div
  9272. class="corOpen"
  9273. @click="contract(toolIndex)"
  9274. v-if="
  9275. isCloseList[toolIndex].isCloseBoolean &&
  9276. isCloseList[toolIndex].isClose == 0
  9277. "
  9278. >
  9279. 折叠
  9280. </div>
  9281. <div
  9282. class="corOpen"
  9283. @click="contract(toolIndex)"
  9284. v-if="isCloseList[toolIndex].isClose == 1"
  9285. >
  9286. 展开
  9287. </div>
  9288. </div>
  9289. <div
  9290. style="display: flex;"
  9291. v-if="
  9292. (courseDetail.userid == userid ||
  9293. (courseDetail.course_teacher &&
  9294. courseDetail.course_teacher.indexOf(userid) !=
  9295. -1)) &&
  9296. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9297. taskCount
  9298. ].eList &&
  9299. chapInfoList[courseType].chapterInfo[0].taskJson[
  9300. taskCount
  9301. ].eList.length) ||
  9302. (tool.eList && tool.eList.length)) &&
  9303. courseDetail.state == 5
  9304. "
  9305. >
  9306. <!-- <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"> -->
  9307. <div
  9308. @click="
  9309. resetLoopEva(
  9310. worksStudent[toolIndex],
  9311. chapInfoList[courseType].chapterInfo[0].taskJson[
  9312. taskCount
  9313. ].eList,
  9314. courseType,
  9315. taskCount,
  9316. toolIndex,
  9317. tool.toolDetail,
  9318. tool
  9319. )
  9320. "
  9321. style="margin-right:10px"
  9322. class="ScoreBtn"
  9323. >
  9324. 一键重置
  9325. </div>
  9326. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9327. <img
  9328. src="../../assets/icon/newIcons/rootImg.png"
  9329. alt=""
  9330. />
  9331. AI评分
  9332. </div>
  9333. <div
  9334. class="ScoreBtn"
  9335. v-else-if="!loopLoading[toolIndex].loading"
  9336. @click="
  9337. loopEva(
  9338. worksStudent[toolIndex],
  9339. chapInfoList[courseType].chapterInfo[0].taskJson[
  9340. taskCount
  9341. ].eList,
  9342. courseType,
  9343. taskCount,
  9344. toolIndex,
  9345. tool.toolDetail,
  9346. chapInfoList[courseType].chapterInfo[0].taskJson[
  9347. taskCount
  9348. ].taskDetail,
  9349. tool
  9350. )
  9351. "
  9352. >
  9353. <img
  9354. src="../../assets/icon/newIcons/rootImg.png"
  9355. alt=""
  9356. />
  9357. AI评分
  9358. </div>
  9359. <div class="ScoreBtn" v-else>
  9360. <img
  9361. src="../../assets/icon/newIcons/rootImg.png"
  9362. alt=""
  9363. />
  9364. 正在评分
  9365. </div>
  9366. </div>
  9367. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9368. </div>
  9369. <div
  9370. :id="'tool-' + toolIndex"
  9371. :style="{
  9372. height:
  9373. isCloseList[toolIndex].isClose == 1
  9374. ? retrnToolHeight('tool-' + toolIndex)
  9375. : 'auto',
  9376. overflow:
  9377. isCloseList[toolIndex].isClose == 1
  9378. ? 'hidden'
  9379. : 'unset'
  9380. }"
  9381. class="worksDetailBox"
  9382. v-if="
  9383. worksStudent.length &&
  9384. worksStudent[toolIndex].length > 0
  9385. "
  9386. >
  9387. <div
  9388. class="works"
  9389. style="
  9390. width: 200px;
  9391. height: 140px;
  9392. margin: 10px 10px 10px 0;
  9393. border-radius: 15px;
  9394. box-shadow: 0 0 6px 1px #dfdada;
  9395. "
  9396. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9397. :key="wIndex"
  9398. :class="w.type == 1 ? 'isTypeOne' : ''"
  9399. >
  9400. <div class="workImg">
  9401. <img :src="word" @click="openWord(w)" alt />
  9402. <!-- @click="openFile(w.works)" -->
  9403. <div
  9404. class="answerScore"
  9405. v-if="w.score"
  9406. @click.stop="openScore(w)"
  9407. :class="{
  9408. rightW:
  9409. w.userid == userid ||
  9410. tType == 1 ||
  9411. tType == 4 ||
  9412. w.ateacher == userid
  9413. }"
  9414. >
  9415. {{ JSON.parse(w.score).wScore }}分
  9416. </div>
  9417. <div
  9418. class="answerScore"
  9419. @click.stop="openScore(w)"
  9420. v-else-if="
  9421. courseDetail.userid == userid &&
  9422. courseDetail.state != 5 &&
  9423. chapInfoList[courseType].chapterInfo[0]
  9424. .taskJson[taskCount].eList &&
  9425. chapInfoList[courseType].chapterInfo[0]
  9426. .taskJson[taskCount].eList.length
  9427. "
  9428. :class="{
  9429. rightW:
  9430. w.userid == userid ||
  9431. tType == 1 ||
  9432. tType == 4 ||
  9433. w.ateacher == userid
  9434. }"
  9435. >
  9436. 评分
  9437. </div>
  9438. <!-- <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"> -->
  9439. <div
  9440. v-else-if="
  9441. (courseDetail.userid == userid ||
  9442. (courseDetail.course_teacher &&
  9443. courseDetail.course_teacher.indexOf(userid) !=
  9444. -1) ||
  9445. (w.userid == userid && sIsOpen)) &&
  9446. courseDetail.state == 5 &&
  9447. ((chapInfoList[courseType].chapterInfo[0]
  9448. .taskJson[taskCount].eList &&
  9449. chapInfoList[courseType].chapterInfo[0]
  9450. .taskJson[taskCount].eList.length) ||
  9451. (tool.eList && tool.eList.length))
  9452. "
  9453. >
  9454. <!-- <div
  9455. class="answerScore"
  9456. @click="markScoreDig(w.userid,toolIndex)"
  9457. :class="{
  9458. rightW:
  9459. w.userid == userid ||
  9460. tType == 1 ||
  9461. tType == 4 ||
  9462. w.ateacher == userid,
  9463. }"
  9464. >
  9465. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  9466. </div> -->
  9467. <!-- @show="handleShow(toolIndex,wIndex)"
  9468. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  9469. <el-popover
  9470. placement="top"
  9471. width="318"
  9472. :disabled="AIloading[toolIndex][wIndex].loading"
  9473. trigger="hover"
  9474. >
  9475. <markScore
  9476. :loading="AIloading[toolIndex][wIndex].loading"
  9477. :markScoreVisible="markScoreVisible"
  9478. :ref="`markSco${toolIndex}${wIndex}`"
  9479. @updateLoading="updateLoading"
  9480. @updateDocSco="updateDocSco"
  9481. @refreshOther="refreshOther"
  9482. @markScoreDig="markScoreDig"
  9483. :tool="tool"
  9484. :wIndex="wIndex"
  9485. :scoCon="w"
  9486. :toolIndex="toolIndex"
  9487. :key="refreshKey"
  9488. :stage="courseType"
  9489. :task="taskCount"
  9490. :scoTit="
  9491. chapInfoList[courseType].chapterInfo[0]
  9492. .taskJson[taskCount].eList
  9493. "
  9494. >
  9495. </markScore>
  9496. <div
  9497. class="answerScore"
  9498. @click="
  9499. markScoreDig2(
  9500. w.sName,
  9501. worksStudent,
  9502. w.userid,
  9503. toolIndex,
  9504. chapInfoList[courseType].chapterInfo[0]
  9505. .taskJson[taskCount].eList,
  9506. AIloading[toolIndex][wIndex].loading,
  9507. tool
  9508. )
  9509. "
  9510. slot="reference"
  9511. :class="{
  9512. rightW:
  9513. w.userid == userid ||
  9514. tType == 1 ||
  9515. tType == 4 ||
  9516. w.ateacher == userid
  9517. }"
  9518. >
  9519. <span v-if="AIloading[toolIndex][wIndex].sco">
  9520. {{
  9521. AIloading[toolIndex][wIndex].loading
  9522. ? "评分中"
  9523. : AIloading[toolIndex][wIndex].sco + "分"
  9524. }}
  9525. </span>
  9526. <span v-else>
  9527. {{
  9528. AIloading[toolIndex][wIndex].loading
  9529. ? "评分中"
  9530. : "评分"
  9531. }}
  9532. </span>
  9533. </div>
  9534. </el-popover>
  9535. </div>
  9536. <img
  9537. class="deleteImg"
  9538. src="../../assets/deleteworks.png"
  9539. v-if="
  9540. w.userid == userid || tType == 1 || tType == 4
  9541. "
  9542. @click.stop="deleteWorks(w.wid)"
  9543. alt
  9544. />
  9545. </div>
  9546. <div class="comment" style="min-width: 200px">
  9547. <div class="worksName">
  9548. <div>{{ w.sName }}</div>
  9549. </div>
  9550. <div class="commentList">
  9551. <div class="commentList">
  9552. <div
  9553. class="commentImg"
  9554. @click="
  9555. isLikes(
  9556. w.wid,
  9557. userid,
  9558. 1,
  9559. null,
  9560. w.isLikes,
  9561. w.sName
  9562. )
  9563. "
  9564. >
  9565. <img
  9566. :src="w.isLikes == true ? likes : noLikes"
  9567. alt=""
  9568. />
  9569. </div>
  9570. <div>{{ w.likesCount }}</div>
  9571. </div>
  9572. <div class="commentList" style="margin-right: 15px">
  9573. <div
  9574. class="commentImg"
  9575. @click="commentOther(w, toolIndex, wIndex)"
  9576. >
  9577. <img
  9578. src="../../assets/icon/comment/comment.png"
  9579. alt=""
  9580. />
  9581. </div>
  9582. <div>{{ w.commentCount }}</div>
  9583. </div>
  9584. </div>
  9585. </div>
  9586. </div>
  9587. </div>
  9588. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9589. 未提交
  9590. </div>
  9591. <div
  9592. class="noWorksS"
  9593. v-if="noWorksS && noWorksS[toolIndex].length"
  9594. >
  9595. <div
  9596. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9597. :key="sIndex"
  9598. class="noWorksName"
  9599. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  9600. >
  9601. <el-tooltip
  9602. effect="dark"
  9603. :content="s.student"
  9604. placement="top"
  9605. >
  9606. <span>{{ s.student }}</span>
  9607. </el-tooltip>
  9608. </div>
  9609. </div>
  9610. </div>
  9611. <div
  9612. v-if="
  9613. tType &&
  9614. tType == 2 &&
  9615. !sIsOpen &&
  9616. tool.tool.indexOf(52) != -1
  9617. "
  9618. class="worksBox"
  9619. >
  9620. <div
  9621. class="zuoyeYulan"
  9622. v-if="workStudent[toolIndex].length > 0"
  9623. >
  9624. <span class="worksTitle">作业预览</span>
  9625. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9626. </div>
  9627. <div
  9628. class="worksDetailBox"
  9629. v-if="workStudent[toolIndex].length > 0"
  9630. >
  9631. <div
  9632. class="works"
  9633. style="
  9634. width: 200px;
  9635. height: 140px;
  9636. margin: 10px 10px 10px 0;
  9637. box-shadow: 0 0 6px 1px #dfdada;
  9638. "
  9639. v-for="(w, wIndex) in workStudent[toolIndex]"
  9640. :key="wIndex"
  9641. >
  9642. <div class="workImg">
  9643. <img :src="word" @click="openWord(w)" alt />
  9644. <div
  9645. class="answerScore"
  9646. v-if="w.score"
  9647. @click.stop="openScore(w)"
  9648. :class="{
  9649. rightW:
  9650. w.userid == userid || tType == 1 || tType == 4
  9651. }"
  9652. >
  9653. {{ JSON.parse(w.score).wScore }}分
  9654. </div>
  9655. <div
  9656. class="answerScore"
  9657. @click.stop="openScore(w)"
  9658. v-else-if="courseDetail.userid == userid"
  9659. :class="{
  9660. rightW:
  9661. w.userid == userid || tType == 1 || tType == 4
  9662. }"
  9663. >
  9664. 评分
  9665. </div>
  9666. <div
  9667. class="stuLookScore"
  9668. v-if="
  9669. w.userid == userid ||
  9670. (tType == 1 &&
  9671. courseDetail.state == 5 &&
  9672. ((chapInfoList[courseType].chapterInfo[0]
  9673. .taskJson[taskCount].eList &&
  9674. chapInfoList[courseType].chapterInfo[0]
  9675. .taskJson[taskCount].eList.length) ||
  9676. (tool.eList && tool.eList.length)))
  9677. "
  9678. >
  9679. <el-popover
  9680. placement="top"
  9681. width="318"
  9682. trigger="hover"
  9683. >
  9684. <markScore
  9685. :loading="AIloading[toolIndex][wIndex].loading"
  9686. :markScoreVisible="markScoreVisible"
  9687. :ref="`markSco${toolIndex}${wIndex}`"
  9688. @updateLoading="updateLoading"
  9689. @updateDocSco="updateDocSco"
  9690. @refreshOther="refreshOther"
  9691. @markScoreDig="markScoreDig"
  9692. :tool="tool"
  9693. :wIndex="wIndex"
  9694. :scoCon="w"
  9695. :toolIndex="toolIndex"
  9696. :key="refreshKey"
  9697. :stage="courseType"
  9698. :task="taskCount"
  9699. :scoTit="
  9700. chapInfoList[courseType].chapterInfo[0]
  9701. .taskJson[taskCount].eList
  9702. "
  9703. >
  9704. </markScore>
  9705. <div
  9706. @click="
  9707. markScoreDig2(
  9708. w.sName,
  9709. worksStudent,
  9710. w.userid,
  9711. toolIndex,
  9712. chapInfoList[courseType].chapterInfo[0]
  9713. .taskJson[taskCount].eList,
  9714. AIloading[toolIndex][wIndex].loading,
  9715. tool
  9716. )
  9717. "
  9718. slot="reference"
  9719. >
  9720. <span v-if="AIloading[toolIndex][wIndex].sco">
  9721. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9722. </span>
  9723. <span v-else>
  9724. 评分
  9725. </span>
  9726. </div>
  9727. </el-popover>
  9728. </div>
  9729. <img
  9730. class="deleteImg"
  9731. src="../../assets/deleteworks.png"
  9732. v-if="
  9733. w.userid == userid || tType == 1 || tType == 4
  9734. "
  9735. @click.stop="deleteWorks(w.wid)"
  9736. alt
  9737. />
  9738. </div>
  9739. <div class="worksName">
  9740. <div>{{ w.sName }}</div>
  9741. </div>
  9742. </div>
  9743. </div>
  9744. </div>
  9745. <div
  9746. v-if="tool.tool.indexOf(49) != -1"
  9747. class="xuan_right_box"
  9748. style="margin: 0 15px 0 25px; width: 93%"
  9749. >
  9750. <div
  9751. v-if="courseDetail.userid == userid"
  9752. style="
  9753. display: flex;
  9754. justify-content: flex-end;
  9755. margin-right: 10px;
  9756. "
  9757. >
  9758. <el-button
  9759. type="primary"
  9760. size="small"
  9761. @click="addTools(49, toolIndex, taskCount)"
  9762. >分组设置</el-button
  9763. >
  9764. </div>
  9765. <div
  9766. v-if="groupStudentUid[toolIndex]"
  9767. class="group_staic_box"
  9768. >
  9769. <div
  9770. v-for="(gp, gd) in tool.groupJson.group"
  9771. :key="gd"
  9772. class="group_staic"
  9773. >
  9774. <span> {{ gp.name }}</span>
  9775. <span>
  9776. 目前人数{{
  9777. groupStudentUid[toolIndex][gd].length
  9778. }}人</span
  9779. >
  9780. </div>
  9781. </div>
  9782. </div>
  9783. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  9784. <div
  9785. class="zuoyeYulan"
  9786. v-if="
  9787. worksStudent.length &&
  9788. worksStudent[toolIndex].length > 0
  9789. "
  9790. >
  9791. <span class="worksTitle">作业预览</span>
  9792. </div>
  9793. <div>
  9794. <div
  9795. class="group_workBox"
  9796. v-for="(g, gindex) in tool.groupJson.group"
  9797. :key="gindex"
  9798. >
  9799. <div
  9800. class="group_box"
  9801. v-if="
  9802. groupStudentUid[toolIndex] &&
  9803. worksStudent[toolIndex] &&
  9804. (worksStudent[toolIndex][gindex].length ||
  9805. groupStudentUid[toolIndex][gindex].indexOf(
  9806. userid
  9807. ) != -1)
  9808. "
  9809. >
  9810. <div class="group_title">
  9811. <el-tooltip
  9812. class="item"
  9813. effect="light"
  9814. :content="g.name"
  9815. placement="top"
  9816. >
  9817. <div class="group_name">{{ g.name }}</div>
  9818. </el-tooltip>
  9819. <el-button
  9820. type="primary"
  9821. v-if="
  9822. groupStudentUid[toolIndex][gindex].indexOf(
  9823. userid
  9824. ) != -1
  9825. "
  9826. @click="groupUpload(toolIndex, taskCount, gindex)"
  9827. >上传作业</el-button
  9828. >
  9829. </div>
  9830. <div class="group_work">
  9831. <div
  9832. class="works"
  9833. style="
  9834. width: 200px;
  9835. height: 140px;
  9836. margin: 10px 10px 10px 0;
  9837. border-radius: 15px;
  9838. box-shadow: 0 0 6px 1px #dfdada;
  9839. "
  9840. v-for="(w, wIndex) in worksStudent[toolIndex][
  9841. gindex
  9842. ]"
  9843. :key="wIndex"
  9844. :class="w.type == 1 ? 'isTypeOne' : ''"
  9845. >
  9846. <div class="workImg" v-if="w.type == 0">
  9847. <img
  9848. :src="w.works"
  9849. @click="previewImg(w.works, w)"
  9850. alt
  9851. />
  9852. <div
  9853. class="answerScore"
  9854. v-if="w.score"
  9855. @click.stop="openScore(w)"
  9856. :class="{
  9857. rightW:
  9858. w.userid == userid ||
  9859. tType == 1 ||
  9860. tType == 4 ||
  9861. w.ateacher == userid
  9862. }"
  9863. >
  9864. {{ JSON.parse(w.score).wScore }}分
  9865. </div>
  9866. <div
  9867. class="answerScore"
  9868. @click.stop="openScore(w)"
  9869. v-else-if="courseDetail.userid == userid"
  9870. :class="{
  9871. rightW:
  9872. w.userid == userid ||
  9873. tType == 1 ||
  9874. tType == 4 ||
  9875. w.ateacher == userid
  9876. }"
  9877. >
  9878. 评分
  9879. </div>
  9880. <img
  9881. class="deleteImg"
  9882. src="../../assets/deleteworks.png"
  9883. v-if="
  9884. w.userid == userid ||
  9885. tType == 1 ||
  9886. tType == 4
  9887. "
  9888. @click.stop="deleteWorks(w.wid)"
  9889. alt
  9890. />
  9891. </div>
  9892. <div class="workImg" v-if="w.type == 1">
  9893. <img
  9894. :src="word"
  9895. @click="openFile(w.works)"
  9896. alt
  9897. />
  9898. <!-- @click="openFile(w.works)" -->
  9899. <div
  9900. class="answerScore"
  9901. v-if="w.score"
  9902. @click.stop="openScore(w)"
  9903. :class="{
  9904. rightW:
  9905. w.userid == userid ||
  9906. tType == 1 ||
  9907. tType == 4 ||
  9908. w.ateacher == userid
  9909. }"
  9910. >
  9911. {{ JSON.parse(w.score).wScore }}分
  9912. </div>
  9913. <div
  9914. class="answerScore"
  9915. @click.stop="openScore(w)"
  9916. v-else-if="courseDetail.userid == userid"
  9917. :class="{
  9918. rightW:
  9919. w.userid == userid ||
  9920. tType == 1 ||
  9921. tType == 4 ||
  9922. w.ateacher == userid
  9923. }"
  9924. >
  9925. 评分
  9926. </div>
  9927. <img
  9928. class="deleteImg"
  9929. src="../../assets/deleteworks.png"
  9930. v-if="
  9931. w.userid == userid ||
  9932. tType == 1 ||
  9933. tType == 4
  9934. "
  9935. @click.stop="deleteWorks(w.wid)"
  9936. alt
  9937. />
  9938. </div>
  9939. <div class="workImg" v-if="w.type == 3">
  9940. <img
  9941. style="cursor: pointer"
  9942. :src="video"
  9943. @click="openVideo(w)"
  9944. alt
  9945. />
  9946. <!-- @click="openVideo(w.works)" -->
  9947. <div
  9948. class="answerScore"
  9949. v-if="w.score"
  9950. @click.stop="openScore(w)"
  9951. :class="{
  9952. rightW:
  9953. w.userid == userid ||
  9954. tType == 1 ||
  9955. tType == 4 ||
  9956. w.ateacher == userid
  9957. }"
  9958. >
  9959. {{ JSON.parse(w.score).wScore }}分
  9960. </div>
  9961. <div
  9962. class="answerScore"
  9963. @click.stop="openScore(w)"
  9964. v-else-if="courseDetail.userid == userid"
  9965. :class="{
  9966. rightW:
  9967. w.userid == userid ||
  9968. tType == 1 ||
  9969. tType == 4 ||
  9970. w.ateacher == userid
  9971. }"
  9972. >
  9973. 评分
  9974. </div>
  9975. <img
  9976. class="deleteImg"
  9977. src="../../assets/deleteworks.png"
  9978. v-if="
  9979. w.userid == userid ||
  9980. tType == 1 ||
  9981. tType == 4
  9982. "
  9983. @click.stop="deleteWorks(w.wid)"
  9984. alt
  9985. />
  9986. </div>
  9987. <div class="workImg" v-if="w.type == 12">
  9988. <img
  9989. style="cursor: pointer"
  9990. :src="word2"
  9991. @click="downloadFile(w.works)"
  9992. alt
  9993. />
  9994. <!-- @click="openVideo(w.works)" -->
  9995. <div
  9996. class="answerScore"
  9997. v-if="w.score"
  9998. @click.stop="openScore(w)"
  9999. :class="{
  10000. rightW:
  10001. w.userid == userid ||
  10002. tType == 1 ||
  10003. tType == 4 ||
  10004. w.ateacher == userid
  10005. }"
  10006. >
  10007. {{ JSON.parse(w.score).wScore }}分
  10008. </div>
  10009. <div
  10010. class="answerScore"
  10011. @click.stop="openScore(w)"
  10012. v-else-if="courseDetail.userid == userid"
  10013. :class="{
  10014. rightW:
  10015. w.userid == userid ||
  10016. tType == 1 ||
  10017. tType == 4 ||
  10018. w.ateacher == userid
  10019. }"
  10020. >
  10021. 评分
  10022. </div>
  10023. <img
  10024. class="deleteImg"
  10025. src="../../assets/deleteworks.png"
  10026. v-if="
  10027. w.userid == userid ||
  10028. tType == 1 ||
  10029. tType == 4
  10030. "
  10031. @click.stop="deleteWorks(w.wid)"
  10032. alt
  10033. />
  10034. </div>
  10035. <div class="comment" style="min-width: 200px">
  10036. <div class="worksName">
  10037. <div>{{ w.sName }}</div>
  10038. </div>
  10039. <div class="commentList">
  10040. <div class="commentList">
  10041. <div
  10042. class="commentImg"
  10043. @click="
  10044. isLikes(
  10045. w.wid,
  10046. userid,
  10047. 1,
  10048. null,
  10049. w.isLikes,
  10050. w.sName
  10051. )
  10052. "
  10053. >
  10054. <img
  10055. :src="
  10056. w.isLikes == true ? likes : noLikes
  10057. "
  10058. alt=""
  10059. />
  10060. </div>
  10061. <div>{{ w.likesCount }}</div>
  10062. </div>
  10063. <div
  10064. class="commentList"
  10065. style="margin-right: 15px"
  10066. >
  10067. <div
  10068. class="commentImg"
  10069. @click="
  10070. commentOther(
  10071. w,
  10072. toolIndex,
  10073. wIndex,
  10074. gindex
  10075. )
  10076. "
  10077. >
  10078. <img
  10079. src="../../assets/icon/comment/comment.png"
  10080. alt=""
  10081. />
  10082. </div>
  10083. <div>{{ w.commentCount }}</div>
  10084. </div>
  10085. </div>
  10086. </div>
  10087. </div>
  10088. </div>
  10089. </div>
  10090. </div>
  10091. </div>
  10092. </div>
  10093. <div
  10094. style="width:92%;margin: 0 0 0 40px;"
  10095. v-if="
  10096. courseDetail.state == 5 && tool.eList && tool.eList.length
  10097. "
  10098. >
  10099. <evaTable :eList="tool.eList"></evaTable>
  10100. </div>
  10101. </div>
  10102. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10103. 上传文件
  10104. <input
  10105. type="file"
  10106. accept="image/png, image/gif, image/jpeg"
  10107. style="display: none"
  10108. @change="beforeUpload1($event, 2, index)"
  10109. />
  10110. </div>-->
  10111. </div>
  10112. </div>
  10113. <!-- <div
  10114. class="vedioBox"
  10115. style="margin-top: 10px"
  10116. v-if="
  10117. courseDetail.userid == userid ||
  10118. (courseDetail.course_teacher &&
  10119. courseDetail.course_teacher.indexOf(userid) != -1)
  10120. "
  10121. :style="{
  10122. borderRadius:
  10123. !(
  10124. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10125. .toolChoose[0].tool &&
  10126. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10127. .toolChoose[0].tool.length > 0
  10128. ) &&
  10129. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10130. .taskDetail == '' &&
  10131. vChapterData[taskCount].length == 0 &&
  10132. fileC[taskCount].length == 0
  10133. ? '0 0 20px 20px'
  10134. : '20px',
  10135. }"
  10136. >
  10137. <div
  10138. class="queTop"
  10139. @click="isClose = !isClose"
  10140. style="
  10141. padding: 15px 0 15px 37px;
  10142. justify-content: space-between;
  10143. "
  10144. >
  10145. <div class="queTopTitle">新增工具</div>
  10146. <div class="queTopRight">
  10147. <div class="queTopClose" v-if="isClose == 0">
  10148. 展开
  10149. <div class="closeImg">
  10150. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10151. </div>
  10152. </div>
  10153. <div class="queTopClose" v-if="isClose == 1">
  10154. 折叠
  10155. <div class="openImg">
  10156. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10157. </div>
  10158. </div>
  10159. <el-button
  10160. style="margin: 0 30px 0 auto"
  10161. type="primary"
  10162. size="small"
  10163. v-if="isClose == 1 && checktoolArray.length > 0"
  10164. @click.stop="addToolChoose"
  10165. >确定</el-button
  10166. >
  10167. </div>
  10168. </div>
  10169. <div
  10170. class="tool_work_box"
  10171. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10172. >
  10173. <div class="tool_box">
  10174. <div class="tool_type_box">
  10175. <div class="chooseWho">
  10176. <div
  10177. :class="toolType == 0 ? 'isChooseActive' : ''"
  10178. @click="(toolType = 0), $forceUpdate()"
  10179. >
  10180. 互动类
  10181. </div>
  10182. <div
  10183. :class="toolType == 1 ? 'isChooseActive' : ''"
  10184. @click="(toolType = 1), $forceUpdate()"
  10185. >
  10186. 思维类
  10187. </div>
  10188. <div
  10189. :class="toolType == 2 ? 'isChooseActive' : ''"
  10190. @click="(toolType = 2), $forceUpdate()"
  10191. >
  10192. 测评类
  10193. </div>
  10194. <div
  10195. :class="toolType == 3 ? 'isChooseActive' : ''"
  10196. @click="(toolType = 3), $forceUpdate()"
  10197. >
  10198. 编程类
  10199. </div>
  10200. <div
  10201. :class="toolType == 5 ? 'isChooseActive' : ''"
  10202. @click="(toolType = 5), $forceUpdate()"
  10203. >
  10204. 学科类
  10205. </div>
  10206. </div>
  10207. </div>
  10208. <div>
  10209. <div class="toolSort" v-if="toolType == 0">
  10210. <div class="tool">
  10211. <div class="whiteBIcon" @click="addTools2(10)">
  10212. <img
  10213. src="../../assets/icon/thirdToolList/time.png"
  10214. alt
  10215. />
  10216. <div style="margin: 5px 0">倒计时</div>
  10217. </div>
  10218. <div class="check" @click="addTools2(10)">
  10219. <img
  10220. src="../../assets/icon/checkNo.png"
  10221. alt
  10222. v-if="checktoolArray.indexOf(10) == -1"
  10223. />
  10224. <div class="checkDiv" v-else>
  10225. <img src="../../assets/icon/checkedIs.png" alt /><span
  10226. >已选择</span
  10227. >
  10228. </div>
  10229. </div>
  10230. </div>
  10231. <div class="tool">
  10232. <div class="whiteBIcon" @click="addTools2(65)">
  10233. <img
  10234. src="../../assets/icon/firstToolList/pickPeople.png"
  10235. alt
  10236. />
  10237. <div style="margin: 5px 0">挑人</div>
  10238. </div>
  10239. <div class="check" @click="addTools2(65)">
  10240. <img
  10241. src="../../assets/icon/checkNo.png"
  10242. alt
  10243. v-if="checktoolArray.indexOf(65) == -1"
  10244. />
  10245. <div class="checkDiv" v-else>
  10246. <img src="../../assets/icon/checkedIs.png" alt /><span
  10247. >已选择</span
  10248. >
  10249. </div>
  10250. </div>
  10251. </div>
  10252. </div>
  10253. <div class="toolSort" v-if="toolType == 1">
  10254. <div class="tool">
  10255. <div class="whiteBIcon" @click="addTools2(7)">
  10256. <img
  10257. src="../../assets/icon/secondToolList/mindNetwork.png"
  10258. alt
  10259. />
  10260. <div style="margin: 5px 0">思维网格</div>
  10261. </div>
  10262. <div class="check" @click="addTools2(7)">
  10263. <img
  10264. src="../../assets/icon/checkNo.png"
  10265. alt
  10266. v-if="checktoolArray.indexOf(7) == -1"
  10267. />
  10268. <div class="checkDiv" v-else>
  10269. <img src="../../assets/icon/checkedIs.png" alt /><span
  10270. >已选择</span
  10271. >
  10272. </div>
  10273. </div>
  10274. </div>
  10275. <div class="tool">
  10276. <div class="whiteBIcon" @click="addTools2(1)">
  10277. <img
  10278. src="../../assets/icon/secondToolList/whiteBoard.png"
  10279. alt
  10280. />
  10281. <div style="margin: 5px 0">电子白板</div>
  10282. </div>
  10283. <div class="check" @click="addTools2(1)">
  10284. <img
  10285. src="../../assets/icon/checkNo.png"
  10286. alt
  10287. v-if="checktoolArray.indexOf(1) == -1"
  10288. />
  10289. <div class="checkDiv" v-else>
  10290. <img src="../../assets/icon/checkedIs.png" alt /><span
  10291. >已选择</span
  10292. >
  10293. </div>
  10294. </div>
  10295. </div>
  10296. <div class="tool">
  10297. <div class="whiteBIcon" @click="addTools2(52)">
  10298. <img
  10299. src="../../assets/icon/fourthToolList/text.png"
  10300. alt
  10301. />
  10302. <div style="margin: 5px 0">文档</div>
  10303. </div>
  10304. <div class="check" @click="addTools2(52)">
  10305. <img
  10306. src="../../assets/icon/checkNo.png"
  10307. alt
  10308. v-if="checktoolArray.indexOf(52) == -1"
  10309. />
  10310. <div class="checkDiv" v-else>
  10311. <img src="../../assets/icon/checkedIs.png" alt /><span
  10312. >已选择</span
  10313. >
  10314. </div>
  10315. </div>
  10316. </div>
  10317. <div class="tool">
  10318. <div class="whiteBIcon" @click="addTools2(3)">
  10319. <img
  10320. src="../../assets/icon/secondToolList/mindMapping.png"
  10321. alt
  10322. />
  10323. <div style="margin: 5px 0">思维导图</div>
  10324. </div>
  10325. <div class="check" @click="addTools2(3)">
  10326. <img
  10327. src="../../assets/icon/checkNo.png"
  10328. alt
  10329. v-if="checktoolArray.indexOf(3) == -1"
  10330. />
  10331. <div class="checkDiv" v-else>
  10332. <img src="../../assets/icon/checkedIs.png" alt /><span
  10333. >已选择</span
  10334. >
  10335. </div>
  10336. </div>
  10337. </div>
  10338. <div class="tool">
  10339. <div class="whiteBIcon" @click="addTools2(48)">
  10340. <img
  10341. src="../../assets/icon/fourthToolList/table.png"
  10342. alt
  10343. />
  10344. <div style="margin: 5px 0">表格</div>
  10345. </div>
  10346. <div class="check" @click="addTools2(48)">
  10347. <img
  10348. src="../../assets/icon/checkNo.png"
  10349. alt
  10350. v-if="checktoolArray.indexOf(48) == -1"
  10351. />
  10352. <div class="checkDiv" v-else>
  10353. <img src="../../assets/icon/checkedIs.png" alt /><span
  10354. >已选择</span
  10355. >
  10356. </div>
  10357. </div>
  10358. </div>
  10359. </div>
  10360. <div class="toolSort" v-if="toolType == 6">
  10361. <div v-show="tooC == 49">
  10362. <img
  10363. @click="addTools(tooC, toolIndex, taskCount)"
  10364. src="../../assets/icon/fourthToolList/group.png"
  10365. alt
  10366. />
  10367. <div style="margin: 5px 0">学生分组</div>
  10368. </div>
  10369. </div>
  10370. <div class="toolSort" v-if="toolType == 2">
  10371. <div class="tool">
  10372. <div class="whiteBIcon" @click="addTools2(16)">
  10373. <img
  10374. src="../../assets/icon/thirdToolList/work.png"
  10375. alt
  10376. />
  10377. <div style="margin: 5px 0">作业提交</div>
  10378. </div>
  10379. <div class="check" @click="addTools2(16)">
  10380. <img
  10381. src="../../assets/icon/checkNo.png"
  10382. alt
  10383. v-if="checktoolArray.indexOf(16) == -1"
  10384. />
  10385. <div class="checkDiv" v-else>
  10386. <img src="../../assets/icon/checkedIs.png" alt /><span
  10387. >已选择</span
  10388. >
  10389. </div>
  10390. </div>
  10391. </div>
  10392. <div class="tool">
  10393. <div class="whiteBIcon" @click="addTools2(50)">
  10394. <img
  10395. src="../../assets/icon/thirdToolList/plwork.png"
  10396. alt
  10397. />
  10398. <div style="margin: 5px 0">批量上传</div>
  10399. </div>
  10400. <div class="check" @click="addTools2(50)">
  10401. <img
  10402. src="../../assets/icon/checkNo.png"
  10403. alt
  10404. v-if="checktoolArray.indexOf(50) == -1"
  10405. />
  10406. <div class="checkDiv" v-else>
  10407. <img src="../../assets/icon/checkedIs.png" alt /><span
  10408. >已选择</span
  10409. >
  10410. </div>
  10411. </div>
  10412. </div>
  10413. </div>
  10414. <div class="toolSort" v-if="toolType == 3">
  10415. <div class="tool">
  10416. <div class="whiteBIcon" @click="addTools2(18)">
  10417. <img
  10418. src="../../assets/icon/thirdToolList/trainPlatform.png"
  10419. alt
  10420. />
  10421. <div style="margin: 5px 0">训练平台</div>
  10422. </div>
  10423. <div class="check" @click="addTools2(18)">
  10424. <img
  10425. src="../../assets/icon/checkNo.png"
  10426. alt
  10427. v-if="checktoolArray.indexOf(18) == -1"
  10428. />
  10429. <div class="checkDiv" v-else>
  10430. <img src="../../assets/icon/checkedIs.png" alt /><span
  10431. >已选择</span
  10432. >
  10433. </div>
  10434. </div>
  10435. </div>
  10436. <div class="tool">
  10437. <div class="whiteBIcon" @click="addTools2(21)">
  10438. <img
  10439. src="../../assets/icon/fourthToolList/program.png"
  10440. alt
  10441. />
  10442. <div style="margin: 5px 0">AIoT Blockly</div>
  10443. </div>
  10444. <div class="check" @click="addTools2(21)">
  10445. <img
  10446. src="../../assets/icon/checkNo.png"
  10447. alt
  10448. v-if="checktoolArray.indexOf(21) == -1"
  10449. />
  10450. <div class="checkDiv" v-else>
  10451. <img src="../../assets/icon/checkedIs.png" alt /><span
  10452. >已选择</span
  10453. >
  10454. </div>
  10455. </div>
  10456. </div>
  10457. <div class="tool">
  10458. <div class="whiteBIcon" @click="addTools2(23)">
  10459. <img
  10460. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  10461. alt
  10462. />
  10463. <div style="margin: 5px 0">AI Python</div>
  10464. </div>
  10465. <div class="check" @click="addTools2(23)">
  10466. <img
  10467. src="../../assets/icon/checkNo.png"
  10468. alt
  10469. v-if="checktoolArray.indexOf(23) == -1"
  10470. />
  10471. <div class="checkDiv" v-else>
  10472. <img src="../../assets/icon/checkedIs.png" alt /><span
  10473. >已选择</span
  10474. >
  10475. </div>
  10476. </div>
  10477. </div>
  10478. <div class="tool">
  10479. <div class="whiteBIcon" @click="addTools2(24)">
  10480. <img
  10481. src="../../assets/icon/fourthToolList/AIprogram.png"
  10482. alt
  10483. />
  10484. <div style="margin: 5px 0">AI Blockly</div>
  10485. </div>
  10486. <div class="check" @click="addTools2(24)">
  10487. <img
  10488. src="../../assets/icon/checkNo.png"
  10489. alt
  10490. v-if="checktoolArray.indexOf(24) == -1"
  10491. />
  10492. <div class="checkDiv" v-else>
  10493. <img src="../../assets/icon/checkedIs.png" alt /><span
  10494. >已选择</span
  10495. >
  10496. </div>
  10497. </div>
  10498. </div>
  10499. <div class="tool">
  10500. <div class="whiteBIcon" @click="addTools2(32)">
  10501. <img
  10502. src="../../assets/icon/thirdToolList/code.png"
  10503. alt
  10504. />
  10505. <div style="margin: 5px 0">源码编辑</div>
  10506. </div>
  10507. <div class="check" @click="addTools2(32)">
  10508. <img
  10509. src="../../assets/icon/checkNo.png"
  10510. alt
  10511. v-if="checktoolArray.indexOf(32) == -1"
  10512. />
  10513. <div class="checkDiv" v-else>
  10514. <img src="../../assets/icon/checkedIs.png" alt /><span
  10515. >已选择</span
  10516. >
  10517. </div>
  10518. </div>
  10519. </div>
  10520. <div class="tool">
  10521. <div class="whiteBIcon" @click="addTools2(57)">
  10522. <img
  10523. src="../../assets/icon/fourthToolList/cocopi.png"
  10524. alt
  10525. />
  10526. <div style="margin: 5px 0">CocoPi</div>
  10527. </div>
  10528. <div class="check" @click="addTools2(57)">
  10529. <img
  10530. src="../../assets/icon/checkNo.png"
  10531. alt
  10532. v-if="checktoolArray.indexOf(57) == -1"
  10533. />
  10534. <div class="checkDiv" v-else>
  10535. <img src="../../assets/icon/checkedIs.png" alt /><span
  10536. >已选择</span
  10537. >
  10538. </div>
  10539. </div>
  10540. </div>
  10541. <div class="tool">
  10542. <div class="whiteBIcon" @click="addTools2(63)">
  10543. <img
  10544. src="../../assets/icon/fourthToolList/Wood.png"
  10545. alt
  10546. />
  10547. <div style="margin: 5px 0">海龟编程</div>
  10548. </div>
  10549. <div class="check" @click="addTools2(63)">
  10550. <img
  10551. src="../../assets/icon/checkNo.png"
  10552. alt
  10553. v-if="checktoolArray.indexOf(63) == -1"
  10554. />
  10555. <div class="checkDiv" v-else>
  10556. <img src="../../assets/icon/checkedIs.png" alt /><span
  10557. >已选择</span
  10558. >
  10559. </div>
  10560. </div>
  10561. </div>
  10562. </div>
  10563. <div class="toolSort" v-if="toolType == 5">
  10564. <div class="tool">
  10565. <div class="whiteBIcon" @click="addTools2(28)">
  10566. <img
  10567. src="../../assets/icon/secondToolList/translation.png"
  10568. alt
  10569. />
  10570. <div style="margin: 5px 0">翻译</div>
  10571. </div>
  10572. <div class="check" @click="addTools2(28)">
  10573. <img
  10574. src="../../assets/icon/checkNo.png"
  10575. alt
  10576. v-if="checktoolArray.indexOf(28) == -1"
  10577. />
  10578. <div class="checkDiv" v-else>
  10579. <img src="../../assets/icon/checkedIs.png" alt /><span
  10580. >已选择</span
  10581. >
  10582. </div>
  10583. </div>
  10584. </div>
  10585. <div class="tool">
  10586. <div class="whiteBIcon" @click="addTools2(31)">
  10587. <img
  10588. src="../../assets/icon/secondToolList/networkPanel.png"
  10589. alt
  10590. />
  10591. <div style="margin: 5px 0">数字画板</div>
  10592. </div>
  10593. <div class="check" @click="addTools2(31)">
  10594. <img
  10595. src="../../assets/icon/checkNo.png"
  10596. alt
  10597. v-if="checktoolArray.indexOf(31) == -1"
  10598. />
  10599. <div class="checkDiv" v-else>
  10600. <img src="../../assets/icon/checkedIs.png" alt /><span
  10601. >已选择</span
  10602. >
  10603. </div>
  10604. </div>
  10605. </div>
  10606. <div class="tool">
  10607. <div class="whiteBIcon" @click="addTools2(39)">
  10608. <img
  10609. src="../../assets/icon/secondToolList/GeoGebra.png"
  10610. alt
  10611. />
  10612. <div style="margin: 5px 0">GeoGebra</div>
  10613. </div>
  10614. <div class="check" @click="addTools2(39)">
  10615. <img
  10616. src="../../assets/icon/checkNo.png"
  10617. alt
  10618. v-if="checktoolArray.indexOf(39) == -1"
  10619. />
  10620. <div class="checkDiv" v-else>
  10621. <img src="../../assets/icon/checkedIs.png" alt /><span
  10622. >已选择</span
  10623. >
  10624. </div>
  10625. </div>
  10626. </div>
  10627. <div class="tool">
  10628. <div class="whiteBIcon" @click="addTools2(66)">
  10629. <img
  10630. src="../../assets/icon/secondToolList/formulaEdi.png"
  10631. alt
  10632. />
  10633. <div style="margin: 5px 0">公式编辑</div>
  10634. </div>
  10635. <div class="check" @click="addTools2(66)">
  10636. <img
  10637. src="../../assets/icon/checkNo.png"
  10638. alt
  10639. v-if="checktoolArray.indexOf(66) == -1"
  10640. />
  10641. <div class="checkDiv" v-else>
  10642. <img src="../../assets/icon/checkedIs.png" alt /><span
  10643. >已选择</span
  10644. >
  10645. </div>
  10646. </div>
  10647. </div>
  10648. <div class="tool">
  10649. <div class="whiteBIcon" @click="addTools2(67)">
  10650. <img
  10651. src="../../assets/icon/secondToolList/molStr.png"
  10652. alt
  10653. />
  10654. <div style="margin: 5px 0">分子结构</div>
  10655. </div>
  10656. <div class="check" @click="addTools2(67)">
  10657. <img
  10658. src="../../assets/icon/checkNo.png"
  10659. alt
  10660. v-if="checktoolArray.indexOf(67) == -1"
  10661. />
  10662. <div class="checkDiv" v-else>
  10663. <img src="../../assets/icon/checkedIs.png" alt /><span
  10664. >已选择</span
  10665. >
  10666. </div>
  10667. </div>
  10668. </div>
  10669. <div class="tool">
  10670. <div class="whiteBIcon" @click="addTools2(68)">
  10671. <img
  10672. src="../../assets/icon/secondToolList/timeAxis.png"
  10673. alt
  10674. />
  10675. <div style="margin: 5px 0">时间轴</div>
  10676. </div>
  10677. <div class="check" @click="addTools2(68)">
  10678. <img
  10679. src="../../assets/icon/checkNo.png"
  10680. alt
  10681. v-if="checktoolArray.indexOf(68) == -1"
  10682. />
  10683. <div class="checkDiv" v-else>
  10684. <img src="../../assets/icon/checkedIs.png" alt /><span
  10685. >已选择</span
  10686. >
  10687. </div>
  10688. </div>
  10689. </div>
  10690. </div>
  10691. <div class="toolSort" v-if="toolType == 7">
  10692. <div class="tool">
  10693. <div class="whiteBIcon" @click="addTools2(40)">
  10694. <img
  10695. src="../../assets/icon/secondToolList/eval.png"
  10696. alt
  10697. />
  10698. <div style="margin: 5px 0">个人评价</div>
  10699. </div>
  10700. <div class="check" @click="addTools2(40)">
  10701. <img
  10702. src="../../assets/icon/checkNo.png"
  10703. alt
  10704. v-if="checktoolArray.indexOf(40) == -1"
  10705. />
  10706. <div class="checkDiv" v-else>
  10707. <img src="../../assets/icon/checkedIs.png" alt /><span
  10708. >已选择</span
  10709. >
  10710. </div>
  10711. </div>
  10712. </div>
  10713. </div>
  10714. <div class="toolSort" v-if="toolType == 4">
  10715. <div class="tool">
  10716. <div class="whiteBIcon" @click="addTools2(26)">
  10717. <img
  10718. src="../../assets/icon/thirdToolList/courseDesign.png"
  10719. alt
  10720. />
  10721. <div style="margin: 5px 0">课程设计</div>
  10722. </div>
  10723. <div class="check" @click="addTools2(26)">
  10724. <img
  10725. src="../../assets/icon/checkNo.png"
  10726. alt
  10727. v-if="checktoolArray.indexOf(26) == -1"
  10728. />
  10729. <div class="checkDiv" v-else>
  10730. <img src="../../assets/icon/checkedIs.png" alt /><span
  10731. >已选择</span
  10732. >
  10733. </div>
  10734. </div>
  10735. </div>
  10736. <div class="tool">
  10737. <div class="whiteBIcon" @click="addTools2(25)">
  10738. <img
  10739. src="../../assets/icon/thirdToolList/evalua.png"
  10740. alt
  10741. />
  10742. <div style="margin: 5px 0">目标管理</div>
  10743. </div>
  10744. <div class="check" @click="addTools2(25)">
  10745. <img
  10746. src="../../assets/icon/checkNo.png"
  10747. alt
  10748. v-if="checktoolArray.indexOf(25) == -1"
  10749. />
  10750. <div class="checkDiv" v-else>
  10751. <img src="../../assets/icon/checkedIs.png" alt /><span
  10752. >已选择</span
  10753. >
  10754. </div>
  10755. </div>
  10756. </div>
  10757. </div>
  10758. </div>
  10759. </div>
  10760. </div>
  10761. </div> -->
  10762. <div
  10763. class="vedioBox"
  10764. style="margin-top: 10px; border-radius: 20px"
  10765. v-if="
  10766. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10767. .eList &&
  10768. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10769. .eList.length &&
  10770. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10771. .eList.length > 0 &&
  10772. tType != 2
  10773. "
  10774. >
  10775. <div
  10776. class="queTop"
  10777. style="
  10778. font-size: 20px;
  10779. padding: 15px 0 15px 37px;
  10780. font-weight: bold;
  10781. "
  10782. >
  10783. <!-- <div class="question" style="width: 30px">
  10784. <img src="../assets/icon/toolIcon.png" alt />
  10785. </div>
  10786. <div class="queTitle">
  10787. <div>工具</div>
  10788. </div>-->
  10789. 评一评
  10790. </div>
  10791. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  10792. <div
  10793. class="elist_input"
  10794. :style="{
  10795. marginLeft: '20px',
  10796. width: evalua
  10797. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  10798. taskCount
  10799. ].isEvaFold2
  10800. ? '45%'
  10801. : 'calc(100% - 180px)'
  10802. : 'calc(100% - 20px)'
  10803. }"
  10804. >
  10805. <el-table
  10806. :data="
  10807. chapInfoList[courseType].chapterInfo[0].taskJson[
  10808. taskCount
  10809. ].eList
  10810. "
  10811. :header-cell-style="{ background: '#F0F4FA' }"
  10812. :row-class-name="tableRowClassName"
  10813. border
  10814. stripe
  10815. style="width: 100%"
  10816. >
  10817. <el-table-column
  10818. :width="courseDetail.state == 5 ? '230' : '150'"
  10819. label="目标"
  10820. align="center"
  10821. >
  10822. <template slot-scope="scope">
  10823. <div
  10824. style="display:flex;justify-content: center;align-items: center;"
  10825. >
  10826. <img
  10827. class="blueRootCss"
  10828. v-if="
  10829. scope.row.isai == 1 ||
  10830. (!scope.row.isai && courseDetail.state == 5)
  10831. "
  10832. src="../../assets/icon/newIcons/blueRoot.png"
  10833. alt=""
  10834. />
  10835. <div v-if="courseDetail.state == 5">
  10836. {{ scope.row.target ? scope.row.target : "-" }}
  10837. </div>
  10838. <div v-else>
  10839. {{
  10840. scope.row.target
  10841. ? scope.row.target[scope.row.target.length - 1]
  10842. : "-"
  10843. }}
  10844. </div>
  10845. </div>
  10846. </template></el-table-column
  10847. >
  10848. <el-table-column
  10849. label="评价维度"
  10850. align="center"
  10851. v-if="courseDetail.state != 5"
  10852. >
  10853. <template slot-scope="scope"
  10854. ><div>{{ scope.row.value }}</div></template
  10855. >
  10856. </el-table-column>
  10857. <el-table-column
  10858. :label="courseDetail.state == 5 ? '评价标准' : '维度描述'"
  10859. align="center"
  10860. >
  10861. <template slot-scope="scope"
  10862. ><div>
  10863. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  10864. </div></template
  10865. >
  10866. </el-table-column>
  10867. <el-table-column
  10868. label="细则"
  10869. align="center"
  10870. v-if="courseDetail.state == 5"
  10871. >
  10872. <template slot-scope="scope"
  10873. ><div
  10874. style="display:flex;justify-content: space-around;margin:auto"
  10875. v-if="scope.row.rule"
  10876. >
  10877. <el-popover
  10878. placement="top"
  10879. width="350"
  10880. trigger="hover"
  10881. >
  10882. <div
  10883. v-html="scope.row.rule"
  10884. style="white-space:pre-wrap"
  10885. ></div>
  10886. <div
  10887. slot="reference"
  10888. style="color:#4383FF;cursor: pointer;"
  10889. >
  10890. 查看
  10891. </div>
  10892. </el-popover>
  10893. </div>
  10894. <div v-else>-</div>
  10895. </template>
  10896. </el-table-column>
  10897. </el-table>
  10898. <!-- <div
  10899. v-for="(eItem, eIndex) in chapInfoList[courseType]
  10900. .chapterInfo[0].taskJson[taskCount].eList"
  10901. :key="eIndex"
  10902. class="elist_input_box"
  10903. >
  10904. <div style="width: 95%">
  10905. <div
  10906. style="
  10907. display: flex;
  10908. flex-direction: row;
  10909. flex-wrap: nowrap;
  10910. align-items: center;
  10911. "
  10912. >
  10913. <div style="max-width: calc(100% - 285px)">
  10914. <span>{{ eItem.value }}</span>
  10915. </div>
  10916. <div
  10917. style="
  10918. padding-left: 25px;
  10919. display: flex;
  10920. flex-direction: row;
  10921. align-items: center;
  10922. "
  10923. >
  10924. <el-rate
  10925. v-model="eItem.score"
  10926. :colors="colors"
  10927. disabled
  10928. ></el-rate>
  10929. </div>
  10930. </div>
  10931. <div class="elist_inptu_text" style="padding-left: 10px">
  10932. <span v-if="eItem.detail != ''">{{
  10933. eItem.detail
  10934. }}</span>
  10935. <span v-else style="color: #b2b1b3; font-size: 14px"
  10936. >暂无描述...</span
  10937. >
  10938. </div>
  10939. </div>
  10940. </div> -->
  10941. </div>
  10942. <div
  10943. v-if="evalua"
  10944. style="
  10945. border: 1px solid #e5e5e5;
  10946. max-width: 650px;
  10947. width: 100%;
  10948. margin-top: 20px;
  10949. box-shadow: 3px 1px 15px 3px #e0e0e0;
  10950. "
  10951. :style="{
  10952. width: chapInfoList[courseType].chapterInfo[0].taskJson[
  10953. taskCount
  10954. ].isEvaFold2
  10955. ? '100%'
  10956. : '116px'
  10957. }"
  10958. >
  10959. <div class="e_add_top">
  10960. <div class="e_add_title" style="width: 100%">
  10961. <!-- <span>目标管理名称</span> -->
  10962. <span
  10963. v-if="
  10964. chapInfoList[courseType].chapterInfo[0].taskJson[
  10965. taskCount
  10966. ].isEvaFold2
  10967. "
  10968. >{{ eTitle }}</span
  10969. >
  10970. <img
  10971. v-if="
  10972. chapInfoList[courseType].chapterInfo[0].taskJson[
  10973. taskCount
  10974. ].isEvaFold2
  10975. "
  10976. src="../../assets/line.png"
  10977. class="cru_line"
  10978. style="
  10979. width: 125px;
  10980. height: 20px;
  10981. bottom: -10px;
  10982. left: 5px;
  10983. "
  10984. />
  10985. <!-- <el-input
  10986. v-model="eTitle"
  10987. placeholder="请输入名称"
  10988. @change="setMindData"
  10989. ></el-input>-->
  10990. <div
  10991. v-show="
  10992. chapInfoList[courseType].chapterInfo[0].taskJson[
  10993. taskCount
  10994. ].isEvaFold2
  10995. "
  10996. class="show_taskD show"
  10997. style="margin:0 0 0 auto"
  10998. @click="foldEva()"
  10999. >
  11000. <img
  11001. src="../../assets/icon/newIcon/icon-slide.png"
  11002. />收起目标
  11003. </div>
  11004. <div
  11005. v-show="
  11006. !chapInfoList[courseType].chapterInfo[0].taskJson[
  11007. taskCount
  11008. ].isEvaFold2
  11009. "
  11010. style="margin:0 0 0 auto"
  11011. class="show_taskD"
  11012. @click="foldEva()"
  11013. >
  11014. <img
  11015. src="../../assets/icon/newIcon/icon-slide.png"
  11016. />展开目标
  11017. </div>
  11018. </div>
  11019. </div>
  11020. <div
  11021. class="e_add_content"
  11022. v-if="
  11023. chapInfoList[courseType].chapterInfo[0].taskJson[
  11024. taskCount
  11025. ].isEvaFold2
  11026. "
  11027. >
  11028. <div class="e_add_list_pbox">
  11029. <div class="e_add_list_pbox_title">
  11030. <!-- <span class="type_title">切换模式</span> -->
  11031. <div class="type_content">
  11032. <span
  11033. :class="{ active: typeMode == 1 }"
  11034. @click="typeMode = 1"
  11035. >目标树</span
  11036. >
  11037. <span
  11038. :class="{ active: typeMode == 2 }"
  11039. @click="typeMode = 2"
  11040. >目标罗盘</span
  11041. >
  11042. <!-- <span
  11043. :class="{ active: typeMode == 3 }"
  11044. @click="typeMode = 3"
  11045. >目标看板</span
  11046. > -->
  11047. </div>
  11048. </div>
  11049. <div
  11050. class="e_add_list_pbox_content"
  11051. style="min-height: 200px;"
  11052. >
  11053. <Mind
  11054. :showBar="false"
  11055. :mindData="data"
  11056. style="width: 100%"
  11057. v-show="typeMode == 1"
  11058. ></Mind>
  11059. <Sunburst
  11060. :Josn="eJson"
  11061. :num="eJSONNum"
  11062. style="width: 100%"
  11063. v-if="typeMode == 2"
  11064. ></Sunburst>
  11065. <SeeBoard
  11066. :Josn="eJson"
  11067. :num="eJSONNum"
  11068. :ename="eTitle"
  11069. style="width: 100%"
  11070. v-if="typeMode == 3"
  11071. >
  11072. </SeeBoard>
  11073. </div>
  11074. </div>
  11075. </div>
  11076. </div>
  11077. </div>
  11078. </div>
  11079. <!-- <div
  11080. class="project_box"
  11081. style="margin-top: 15px; padding-bottom: 30px"
  11082. >
  11083. <div
  11084. style="
  11085. display: flex;
  11086. flex-wrap: nowrap;
  11087. flex-direction: column;
  11088. position: relative;
  11089. "
  11090. >
  11091. <div class="queTop">
  11092. <div class="question">
  11093. <img src="../../assets/icon/homeWork.png" alt="" />
  11094. </div>
  11095. <div class="queTitle">
  11096. <div>作业提交<span>(提交图文视频等)</span></div>
  11097. <div>:任务:{{ task.task }}</div>
  11098. </div>
  11099. </div>
  11100. <div class="ediBottom">
  11101. <div
  11102. class="addEditor"
  11103. style="margin-top: 23px"
  11104. @click="openAddWork"
  11105. v-if="!isNoHomeWork"
  11106. >
  11107. 选择文件
  11108. </div>
  11109. <div
  11110. class="addEditor"
  11111. style="margin-top: 23px"
  11112. @click="openAddWork"
  11113. v-else
  11114. >
  11115. 已提交
  11116. </div>
  11117. </div>
  11118. </div>
  11119. </div>-->
  11120. </div>
  11121. </div>
  11122. <el-dialog
  11123. title="作业提交"
  11124. :visible.sync="dialogVisible"
  11125. :append-to-body="true"
  11126. width="500px"
  11127. :before-close="handleClose"
  11128. class="dialog_change"
  11129. >
  11130. <div class="marginT">
  11131. <div>上传文件</div>
  11132. <div
  11133. class="chapter_add"
  11134. @click="addImg($event)"
  11135. v-if="studyJuri[0].cover.length == 0"
  11136. >
  11137. <div class="up_photo">
  11138. <img src="../../assets/icon/uploadImg.png" alt />
  11139. </div>
  11140. <!-- <input
  11141. type="file"
  11142. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11143. style="display: none"
  11144. @change="beforeUpload1($event, 1)"
  11145. /> -->
  11146. <input
  11147. type="file"
  11148. accept="*"
  11149. style="display: none"
  11150. @change="beforeUpload1($event, 1)"
  11151. />
  11152. <!-- <input
  11153. type="file"
  11154. accept="image/*"
  11155. capture="camera"
  11156. style="display: none"
  11157. @change="beforeUpload1($event, 1)"
  11158. /> -->
  11159. </div>
  11160. <div
  11161. class="chapter_add"
  11162. style="
  11163. display: flex;
  11164. width: 100%;
  11165. flex-direction: row;
  11166. flex-wrap: wrap;
  11167. justify-content: flex-start;
  11168. padding: 15px 0;
  11169. "
  11170. v-if="studyJuri[0].cover.length > 0"
  11171. >
  11172. <div class="upCover">
  11173. <img
  11174. :src="studyJuri[0].cover[0].url"
  11175. alt
  11176. v-if="fileType == 0"
  11177. />
  11178. <img :src="word" alt v-else-if="fileType == 1" />
  11179. <img :src="video" alt v-else-if="fileType == 2" />
  11180. <img :src="word2" alt v-else-if="fileType == 3" />
  11181. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11182. <div class="deleteWord" @click="clean(1)">
  11183. <img src="../../assets/icon/deleteWorks.png" alt />
  11184. </div>
  11185. </div>
  11186. </div>
  11187. </div>
  11188. <div
  11189. class="upload_send"
  11190. @click="addCourseWorksCopy(taskCount)"
  11191. v-if="!proVisible"
  11192. >
  11193. 提交
  11194. </div>
  11195. </el-dialog>
  11196. </div>
  11197. </div>
  11198. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11199. <classRoomHelper
  11200. v-if="!['2'].includes(tType)"
  11201. @studentFreePreview="studentFreePreview"
  11202. @OpenJobPreview="OpenJobPreview"
  11203. :videoStart="videoStart"
  11204. :IsFollow="IsFollow"
  11205. :sIsOpen="sIsOpen"
  11206. :IsLookOpen="IsLookOpen"
  11207. :splitScreenData="splitScreenData"
  11208. @splitScreenBehavior="splitScreenBehavior"
  11209. @startRecording="startRecording"
  11210. @stopRecording="stopRecording"
  11211. :fileList="vChapterData[taskCount]"
  11212. :worksStudent="worksStudent"
  11213. :courseType="parseInt(courseType)"
  11214. :taskCount="taskCount"
  11215. :tcid="tcid"
  11216. :navList="navList"
  11217. v-show="orgArray.includes(org) || oidArray.includes(oid)"
  11218. ref="classRoomHelperRef"
  11219. :courseDetail="courseDetail"
  11220. :tType="tType"
  11221. @setWidth="setClassRoomHelperWidth"
  11222. @refresh="refreshCourse"
  11223. @goStep="nextOrpreSteps"
  11224. @authority="juriVisible = true"
  11225. @review="setPz"
  11226. @backPage="
  11227. goTo(
  11228. '/courseDetail?userid=' +
  11229. userid +
  11230. '&oid=' +
  11231. oid +
  11232. '&org=' +
  11233. org +
  11234. '&cid=' +
  11235. classId +
  11236. '&courseId=' +
  11237. id +
  11238. '&tType=' +
  11239. tType +
  11240. '&screenType=' +
  11241. screenType
  11242. )
  11243. "
  11244. ></classRoomHelper>
  11245. <div
  11246. class="pButton"
  11247. @click="(pzDialog = true), selectPz()"
  11248. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11249. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11250. >
  11251. <!-- 批 -->
  11252. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11253. </div>
  11254. <div
  11255. v-if="pzDialog == true"
  11256. class="newDialogCss"
  11257. :style="`right:${commentRight}`"
  11258. >
  11259. <div class="pzTop2">
  11260. <!-- <div>评论</div>
  11261. <div @click="pzDialog = false">
  11262. <img src="../../assets/close1.png" alt="" />
  11263. </div> -->
  11264. <div class="checkbox">
  11265. <!-- <div class="check" style="font-size: 25px; position: unset">
  11266. 评论
  11267. </div> -->
  11268. <div class="cb-tabList">
  11269. <div
  11270. :class="[commentTagShow == 0 ? 'cb-tabItem' : '']"
  11271. @click="commentTagShow = 0"
  11272. >
  11273. 评论
  11274. </div>
  11275. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11276. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11277. <div
  11278. :class="[commentTagShow == 2 ? 'cb-tabItem' : '']"
  11279. @click="commentTagShow = 2"
  11280. >
  11281. 总评
  11282. </div>
  11283. </div>
  11284. <el-select
  11285. v-model="pzStype"
  11286. @change="selectPz"
  11287. class="selectBox"
  11288. v-show="commentTagShow == 0"
  11289. >
  11290. <el-option label="时间降序" :value="1"></el-option>
  11291. <el-option label="时间升序" :value="2"></el-option>
  11292. <el-option label="我的评课" :value="3"></el-option>
  11293. </el-select>
  11294. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11295. </div>
  11296. </div>
  11297. <div
  11298. :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'"
  11299. v-if="commentTagShow == 0"
  11300. >
  11301. <div class="pzListBox" v-if="pzList && pzList.length">
  11302. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11303. <div class="pzNavTop">
  11304. <div>评</div>
  11305. <div>
  11306. {{
  11307. pz.username && pz.username.length > 5
  11308. ? pz.username.substring(0, 5) + "..."
  11309. : pz.username
  11310. }}的评论
  11311. </div>
  11312. <div
  11313. class="pzDelete"
  11314. v-if="pz.userid == userid"
  11315. @click="deletePz(pz.id)"
  11316. >
  11317. 删除
  11318. </div>
  11319. </div>
  11320. <div
  11321. @click="checkImg(getImgList(pz.content))"
  11322. class="pzContent cont"
  11323. v-html="pz.content"
  11324. v-if="pz.type == '1'"
  11325. ></div>
  11326. <div class="pzContent" v-if="pz.type == '2'">
  11327. <audio :src="pz.content" controls="controls" ref="audio">
  11328. Your browser does not support the audio element.
  11329. </audio>
  11330. </div>
  11331. <div class="pzContent" v-if="pz.type == '3'">
  11332. <img
  11333. :src="pz.content"
  11334. style="width: 90%; margin: 0 auto; display: block"
  11335. @click="previewImg(pz.content)"
  11336. />
  11337. </div>
  11338. <div class="timeAndReply">
  11339. <div class="time">
  11340. {{ pz.time }}
  11341. </div>
  11342. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11343. </div>
  11344. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11345. <div
  11346. v-for="(h, hIndex) in pz.hfList"
  11347. :key="hIndex"
  11348. class="hfItem"
  11349. >
  11350. <div class="whoReplyWho">
  11351. <div class="hfName">{{ h.username }}</div>
  11352. <div class="hfImg">
  11353. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11354. </div>
  11355. <div class="hfName">{{ pz.username }}</div>
  11356. </div>
  11357. <div class="hfContent" v-html="h.content"></div>
  11358. <div class="hfBottom">
  11359. <div class="hfTime">{{ h.time }}</div>
  11360. <div
  11361. class="deleteHfItem"
  11362. @click="deleteReply(h.id)"
  11363. v-if="userid == h.userid"
  11364. >
  11365. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11366. </div>
  11367. </div>
  11368. </div>
  11369. </div>
  11370. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11371. <div class="replyInput">
  11372. <el-input v-model="reply[pzIndex]"></el-input>
  11373. </div>
  11374. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11375. </div> -->
  11376. </div>
  11377. </div>
  11378. <div class="noPz" v-else>
  11379. <img src="../../assets/icon/noPz.png" alt="" />
  11380. </div>
  11381. <div class="addPzButton">
  11382. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11383. 添加评论
  11384. </div>
  11385. <!-- <div class="img1">
  11386. <div @click="(addPzDialog = true), (pzType = 2)">
  11387. <img src="../../assets/audio.png" /><span>音频</span>
  11388. </div>
  11389. </div> -->
  11390. </div>
  11391. </div>
  11392. <div class="scoreList" v-if="commentTagShow == 1">
  11393. <scoreItem
  11394. v-for="item in scoreList.datalist"
  11395. @refresh="getScoreList"
  11396. :data="item"
  11397. :isScore="
  11398. scoreList.isScoreList.filter(
  11399. i => i.userid == item.userid && i.courseid == item.courseId
  11400. )
  11401. "
  11402. :key="item.courseId"
  11403. />
  11404. </div>
  11405. <div
  11406. class="scoreList"
  11407. v-if="commentTagShow == 2"
  11408. style="position: relative"
  11409. >
  11410. <scoreZong
  11411. :courseid="id"
  11412. :userid="userid"
  11413. @insertMemorandum="insertMemorandum"
  11414. ></scoreZong>
  11415. </div>
  11416. </div>
  11417. <div
  11418. v-if="toolDialogVisible == true"
  11419. class="toolMask"
  11420. @click="toolDialogVisible = false"
  11421. ></div>
  11422. <div v-if="toolDialogVisible == true" class="addToolCss">
  11423. <div class="toolTop">
  11424. <div style="font-weight: bold">新增工具</div>
  11425. <div @click="toolDialogVisible = false">
  11426. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11427. </div>
  11428. </div>
  11429. <div class="tool_box">
  11430. <div class="tool_type_box">
  11431. <div class="chooseWho">
  11432. <div
  11433. :class="toolType == 0 ? 'isChooseActive' : ''"
  11434. @click="(toolType = 0), $forceUpdate()"
  11435. >
  11436. 互动类
  11437. </div>
  11438. <div
  11439. :class="toolType == 1 ? 'isChooseActive' : ''"
  11440. @click="(toolType = 1), $forceUpdate()"
  11441. >
  11442. 思维类
  11443. </div>
  11444. <div
  11445. :class="toolType == 2 ? 'isChooseActive' : ''"
  11446. @click="(toolType = 2), $forceUpdate()"
  11447. >
  11448. 测评类
  11449. </div>
  11450. <div
  11451. :class="toolType == 3 ? 'isChooseActive' : ''"
  11452. @click="(toolType = 3), $forceUpdate()"
  11453. >
  11454. 编程类
  11455. </div>
  11456. <div
  11457. :class="toolType == 5 ? 'isChooseActive' : ''"
  11458. @click="(toolType = 5), $forceUpdate()"
  11459. >
  11460. 学科类
  11461. </div>
  11462. </div>
  11463. </div>
  11464. <div>
  11465. <div class="toolSort" v-if="toolType == 0">
  11466. <div
  11467. class="tool"
  11468. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11469. @click="addTools2(10)"
  11470. >
  11471. <div class="whiteBIcon">
  11472. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11473. <div style="margin: 5px 0">倒计时</div>
  11474. </div>
  11475. <div class="check">
  11476. <div
  11477. v-if="checktoolArray.indexOf(10) == -1"
  11478. class="noChoose"
  11479. ></div>
  11480. <div v-else class="isChoose"></div>
  11481. </div>
  11482. </div>
  11483. <div
  11484. class="tool"
  11485. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11486. @click="addTools2(65)"
  11487. >
  11488. <div class="whiteBIcon">
  11489. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11490. <div style="margin: 5px 0">挑人</div>
  11491. </div>
  11492. <div class="check">
  11493. <div
  11494. v-if="checktoolArray.indexOf(65) == -1"
  11495. class="noChoose"
  11496. ></div>
  11497. <div v-else class="isChoose"></div>
  11498. </div>
  11499. </div>
  11500. </div>
  11501. <div class="toolSort" v-if="toolType == 1">
  11502. <div
  11503. class="tool"
  11504. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11505. @click="addTools2(7)"
  11506. >
  11507. <div class="whiteBIcon">
  11508. <img
  11509. src="../../assets/icon/secondToolList/mindNetwork.png"
  11510. alt
  11511. />
  11512. <div style="margin: 5px 0">思维网格</div>
  11513. </div>
  11514. <div class="check">
  11515. <div
  11516. v-if="checktoolArray.indexOf(7) == -1"
  11517. class="noChoose"
  11518. ></div>
  11519. <div v-else class="isChoose"></div>
  11520. </div>
  11521. </div>
  11522. <div
  11523. class="tool"
  11524. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11525. @click="addTools2(1)"
  11526. >
  11527. <div class="whiteBIcon">
  11528. <img
  11529. src="../../assets/icon/secondToolList/whiteBoard.png"
  11530. alt
  11531. />
  11532. <div style="margin: 5px 0">电子白板</div>
  11533. </div>
  11534. <div class="check">
  11535. <div
  11536. v-if="checktoolArray.indexOf(1) == -1"
  11537. class="noChoose"
  11538. ></div>
  11539. <div v-else class="isChoose"></div>
  11540. </div>
  11541. </div>
  11542. <div
  11543. class="tool"
  11544. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11545. @click="addTools2(52)"
  11546. >
  11547. <div class="whiteBIcon">
  11548. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11549. <div style="margin: 5px 0">文档</div>
  11550. </div>
  11551. <div class="check">
  11552. <div
  11553. v-if="checktoolArray.indexOf(52) == -1"
  11554. class="noChoose"
  11555. ></div>
  11556. <div v-else class="isChoose"></div>
  11557. </div>
  11558. </div>
  11559. <div
  11560. class="tool"
  11561. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  11562. @click="addTools2(3)"
  11563. >
  11564. <div class="whiteBIcon">
  11565. <img
  11566. src="../../assets/icon/secondToolList/mindMapping.png"
  11567. alt
  11568. />
  11569. <div style="margin: 5px 0">思维导图</div>
  11570. </div>
  11571. <div class="check">
  11572. <div
  11573. v-if="checktoolArray.indexOf(3) == -1"
  11574. class="noChoose"
  11575. ></div>
  11576. <div v-else class="isChoose"></div>
  11577. </div>
  11578. </div>
  11579. <div
  11580. class="tool"
  11581. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  11582. @click="addTools2(48)"
  11583. >
  11584. <div class="whiteBIcon">
  11585. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11586. <div style="margin: 5px 0">表格</div>
  11587. </div>
  11588. <div class="check">
  11589. <div
  11590. v-if="checktoolArray.indexOf(48) == -1"
  11591. class="noChoose"
  11592. ></div>
  11593. <div v-else class="isChoose"></div>
  11594. </div>
  11595. </div>
  11596. </div>
  11597. <div class="toolSort" v-if="toolType == 6">
  11598. <div v-show="tooC == 49">
  11599. <img
  11600. @click="addTools(tooC, toolIndex, taskCount)"
  11601. src="../../assets/icon/fourthToolList/group.png"
  11602. alt
  11603. />
  11604. <div style="margin: 5px 0">学生分组</div>
  11605. </div>
  11606. </div>
  11607. <div class="toolSort" v-if="toolType == 2">
  11608. <div
  11609. class="tool"
  11610. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11611. @click="addTools2(16)"
  11612. >
  11613. <div class="whiteBIcon">
  11614. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11615. <div style="margin: 5px 0">作业提交</div>
  11616. </div>
  11617. <div class="check">
  11618. <div
  11619. v-if="checktoolArray.indexOf(16) == -1"
  11620. class="noChoose"
  11621. ></div>
  11622. <div v-else class="isChoose"></div>
  11623. </div>
  11624. </div>
  11625. <div
  11626. class="tool"
  11627. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11628. @click="addTools2(50)"
  11629. >
  11630. <div class="whiteBIcon">
  11631. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11632. <div style="margin: 5px 0">批量上传</div>
  11633. </div>
  11634. <div class="check">
  11635. <div
  11636. v-if="checktoolArray.indexOf(50) == -1"
  11637. class="noChoose"
  11638. ></div>
  11639. <div v-else class="isChoose"></div>
  11640. </div>
  11641. </div>
  11642. </div>
  11643. <div class="toolSort" v-if="toolType == 3">
  11644. <div
  11645. class="tool"
  11646. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11647. @click="addTools2(18)"
  11648. >
  11649. <div class="whiteBIcon">
  11650. <img
  11651. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11652. alt
  11653. />
  11654. <div style="margin: 5px 0">训练平台</div>
  11655. </div>
  11656. <div class="check">
  11657. <div
  11658. v-if="checktoolArray.indexOf(18) == -1"
  11659. class="noChoose"
  11660. ></div>
  11661. <div v-else class="isChoose"></div>
  11662. </div>
  11663. </div>
  11664. <div
  11665. class="tool"
  11666. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11667. @click="addTools2(21)"
  11668. >
  11669. <div class="whiteBIcon">
  11670. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11671. <div style="margin: 5px 0">AIoT Blockly</div>
  11672. </div>
  11673. <div class="check">
  11674. <div
  11675. v-if="checktoolArray.indexOf(21) == -1"
  11676. class="noChoose"
  11677. ></div>
  11678. <div v-else class="isChoose"></div>
  11679. </div>
  11680. </div>
  11681. <div
  11682. class="tool"
  11683. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11684. @click="addTools2(23)"
  11685. >
  11686. <div class="whiteBIcon">
  11687. <img
  11688. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11689. alt
  11690. />
  11691. <div style="margin: 5px 0">AI Python</div>
  11692. </div>
  11693. <div class="check">
  11694. <div
  11695. v-if="checktoolArray.indexOf(23) == -1"
  11696. class="noChoose"
  11697. ></div>
  11698. <div v-else class="isChoose"></div>
  11699. </div>
  11700. </div>
  11701. <div
  11702. class="tool"
  11703. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  11704. @click="addTools2(24)"
  11705. >
  11706. <div class="whiteBIcon">
  11707. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11708. <div style="margin: 5px 0">AI Blockly</div>
  11709. </div>
  11710. <div class="check">
  11711. <div
  11712. v-if="checktoolArray.indexOf(24) == -1"
  11713. class="noChoose"
  11714. ></div>
  11715. <div v-else class="isChoose"></div>
  11716. </div>
  11717. </div>
  11718. <div
  11719. class="tool"
  11720. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  11721. @click="addTools2(32)"
  11722. >
  11723. <div class="whiteBIcon">
  11724. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11725. <div style="margin: 5px 0">源码编辑</div>
  11726. </div>
  11727. <div class="check">
  11728. <div
  11729. v-if="checktoolArray.indexOf(32) == -1"
  11730. class="noChoose"
  11731. ></div>
  11732. <div v-else class="isChoose"></div>
  11733. </div>
  11734. </div>
  11735. <div
  11736. class="tool"
  11737. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11738. @click="addTools2(57)"
  11739. >
  11740. <div class="whiteBIcon">
  11741. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11742. <div style="margin: 5px 0">CocoPi</div>
  11743. </div>
  11744. <div class="check">
  11745. <div
  11746. v-if="checktoolArray.indexOf(57) == -1"
  11747. class="noChoose"
  11748. ></div>
  11749. <div v-else class="isChoose"></div>
  11750. </div>
  11751. </div>
  11752. <div
  11753. class="tool"
  11754. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11755. @click="addTools2(63)"
  11756. >
  11757. <div class="whiteBIcon">
  11758. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11759. <div style="margin: 5px 0">海龟编程</div>
  11760. </div>
  11761. <div class="check">
  11762. <div
  11763. v-if="checktoolArray.indexOf(63) == -1"
  11764. class="noChoose"
  11765. ></div>
  11766. <div v-else class="isChoose"></div>
  11767. </div>
  11768. </div>
  11769. <div
  11770. class="tool"
  11771. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11772. @click="addTools2(71)"
  11773. >
  11774. <div class="whiteBIcon">
  11775. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11776. <div style="margin: 5px 0">AI智能体</div>
  11777. </div>
  11778. <div class="check">
  11779. <div
  11780. v-if="checktoolArray.indexOf(71) == -1"
  11781. class="noChoose"
  11782. ></div>
  11783. <div v-else class="isChoose"></div>
  11784. </div>
  11785. </div>
  11786. </div>
  11787. <div class="toolSort" v-if="toolType == 7">
  11788. <div
  11789. class="tool"
  11790. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11791. @click="addTools2(40)"
  11792. >
  11793. <div class="whiteBIcon">
  11794. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11795. <div style="margin: 5px 0">个人评价</div>
  11796. </div>
  11797. <div class="check">
  11798. <div
  11799. v-if="checktoolArray.indexOf(40) == -1"
  11800. class="noChoose"
  11801. ></div>
  11802. <div v-else class="isChoose"></div>
  11803. </div>
  11804. </div>
  11805. </div>
  11806. <div class="toolSort" v-if="toolType == 5">
  11807. <div
  11808. class="tool"
  11809. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11810. @click="addTools2(28)"
  11811. >
  11812. <div class="whiteBIcon">
  11813. <img
  11814. src="../../assets/icon/secondToolList/translation.png"
  11815. alt
  11816. />
  11817. <div style="margin: 5px 0">翻译</div>
  11818. </div>
  11819. <div class="check">
  11820. <div
  11821. v-if="checktoolArray.indexOf(28) == -1"
  11822. class="noChoose"
  11823. ></div>
  11824. <div v-else class="isChoose"></div>
  11825. </div>
  11826. </div>
  11827. <div
  11828. class="tool"
  11829. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11830. @click="addTools2(31)"
  11831. >
  11832. <div class="whiteBIcon">
  11833. <img
  11834. src="../../assets/icon/secondToolList/networkPanel.png"
  11835. alt
  11836. />
  11837. <div style="margin: 5px 0">数字画板</div>
  11838. </div>
  11839. <div class="check">
  11840. <div
  11841. v-if="checktoolArray.indexOf(31) == -1"
  11842. class="noChoose"
  11843. ></div>
  11844. <div v-else class="isChoose"></div>
  11845. </div>
  11846. </div>
  11847. <div
  11848. class="tool"
  11849. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11850. @click="addTools2(39)"
  11851. >
  11852. <div class="whiteBIcon">
  11853. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11854. <div style="margin: 5px 0">GeoGebra</div>
  11855. </div>
  11856. <div class="check">
  11857. <div
  11858. v-if="checktoolArray.indexOf(39) == -1"
  11859. class="noChoose"
  11860. ></div>
  11861. <div v-else class="isChoose"></div>
  11862. </div>
  11863. </div>
  11864. <div
  11865. class="tool"
  11866. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  11867. @click="addTools2(66)"
  11868. >
  11869. <div class="whiteBIcon">
  11870. <img
  11871. src="../../assets/icon/secondToolList/formulaEdi.png"
  11872. alt
  11873. />
  11874. <div style="margin: 5px 0">公式编辑</div>
  11875. </div>
  11876. <div class="check">
  11877. <div
  11878. v-if="checktoolArray.indexOf(66) == -1"
  11879. class="noChoose"
  11880. ></div>
  11881. <div v-else class="isChoose"></div>
  11882. </div>
  11883. </div>
  11884. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  11885. <div class="whiteBIcon" @click="addTools2(67)">
  11886. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  11887. <div style="margin: 5px 0">分子结构</div>
  11888. </div>
  11889. <div class="check" @click="addTools2(67)">
  11890. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  11891. <div v-else class="isChoose"></div>
  11892. </div>
  11893. </div> -->
  11894. <div
  11895. class="tool"
  11896. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  11897. @click="addTools2(68)"
  11898. >
  11899. <div class="whiteBIcon">
  11900. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  11901. <div style="margin: 5px 0">时间轴</div>
  11902. </div>
  11903. <div class="check">
  11904. <div
  11905. v-if="checktoolArray.indexOf(68) == -1"
  11906. class="noChoose"
  11907. ></div>
  11908. <div v-else class="isChoose"></div>
  11909. </div>
  11910. </div>
  11911. <!-- <div
  11912. class="tool"
  11913. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  11914. @click="addTools2(69)"
  11915. >
  11916. <div class="whiteBIcon">
  11917. <img src="../../assets/icon/secondToolList/english.png" alt />
  11918. <div style="margin: 5px 0">英语写作</div>
  11919. </div>
  11920. <div class="check">
  11921. <div
  11922. v-if="checktoolArray.indexOf(69) == -1"
  11923. class="noChoose"
  11924. ></div>
  11925. <div v-else class="isChoose"></div>
  11926. </div>
  11927. </div> -->
  11928. </div>
  11929. <div class="toolSort" v-if="toolType == 4">
  11930. <div
  11931. class="tool"
  11932. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  11933. @click="addTools2(26)"
  11934. >
  11935. <div class="whiteBIcon">
  11936. <img
  11937. src="../../assets/icon/thirdToolList/courseDesign.png"
  11938. alt
  11939. />
  11940. <div style="margin: 5px 0">课程设计</div>
  11941. </div>
  11942. <div class="check">
  11943. <div
  11944. v-if="checktoolArray.indexOf(26) == -1"
  11945. class="noChoose"
  11946. ></div>
  11947. <div v-else class="isChoose"></div>
  11948. </div>
  11949. </div>
  11950. <div
  11951. class="tool"
  11952. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  11953. @click="addTools2(25)"
  11954. >
  11955. <div class="whiteBIcon">
  11956. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  11957. <div style="margin: 5px 0">目标管理</div>
  11958. </div>
  11959. <div class="check">
  11960. <div
  11961. v-if="checktoolArray.indexOf(25) == -1"
  11962. class="noChoose"
  11963. ></div>
  11964. <div v-else class="isChoose"></div>
  11965. </div>
  11966. </div>
  11967. </div>
  11968. </div>
  11969. </div>
  11970. <span
  11971. slot="footer"
  11972. class="dialog-footer"
  11973. style="display: block; text-align: center; padding: 0 0 10px 0"
  11974. >
  11975. <el-button @click="toolDialogVisible = false">取 消</el-button>
  11976. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  11977. </span>
  11978. </div>
  11979. <div
  11980. v-if="replyDialogVisible == true"
  11981. class="addDialogCss"
  11982. v-el-drag-dialog
  11983. >
  11984. <div class="pzTop">
  11985. <div class="teacherPz">
  11986. <div class="teacherPzImg">
  11987. <img src="../../assets/icon/teacherPz.png" alt="" />
  11988. </div>
  11989. <div style="margin-left: 10px; height: 25px">添加回复</div>
  11990. </div>
  11991. <div @click="replyDialogVisible = false">
  11992. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11993. </div>
  11994. </div>
  11995. <div class="addPzBox">
  11996. <!-- <div class="addPzCheck">
  11997. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11998. >文本</span
  11999. >
  12000. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12001. >音频</span
  12002. >
  12003. </div> -->
  12004. <div style="height: calc(100% - 50px)">
  12005. <editor-bar
  12006. class="binfo_input pzConText"
  12007. style="width: 100% !important; margin: 0 auto"
  12008. placeholder="请输入回复描述"
  12009. v-model="reply"
  12010. @change="change"
  12011. ></editor-bar>
  12012. </div>
  12013. <div class="addTextCss" @click="addHf">确定</div>
  12014. </div>
  12015. </div>
  12016. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12017. <div class="pzTop">
  12018. <div class="teacherPz">
  12019. <div class="teacherPzImg">
  12020. <img src="../../assets/icon/teacherPz.png" alt="" />
  12021. </div>
  12022. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12023. </div>
  12024. <div @click="addPzDialog = false">
  12025. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12026. </div>
  12027. </div>
  12028. <div class="addPzBox">
  12029. <div class="addPzCheck">
  12030. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12031. >文本</span
  12032. >
  12033. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12034. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12035. >音频</span
  12036. >
  12037. </div>
  12038. <div style="height: calc(100% - 95px)">
  12039. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12040. v-if="pzType == 1"></textarea> -->
  12041. <editor-bar
  12042. class="binfo_input pzConText"
  12043. style="width: 100% !important"
  12044. placeholder="请输入任务描述"
  12045. v-model="pzConText"
  12046. @change="change"
  12047. v-if="pzType == 1"
  12048. ></editor-bar>
  12049. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12050. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12051. <div @click="addImg($event)">
  12052. <el-button type="primary">上传图片</el-button>
  12053. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12054. @change="beforeUpload1($event, 4)" />
  12055. </div>
  12056. </div> -->
  12057. </div>
  12058. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12059. 确定
  12060. </div>
  12061. </div>
  12062. </div>
  12063. <div v-if="proVisible" class="mask">
  12064. <div class="progressBox">
  12065. <!-- <div id="closePro" class="closeCss">
  12066. <img src="../../assets/icon/close.png" alt />
  12067. </div> -->
  12068. <div class="lbox">
  12069. <img src="../../assets/loading.gif" />上传中,请稍后
  12070. </div>
  12071. <div style="margin-bottom: 10px">
  12072. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12073. </div>
  12074. <el-progress
  12075. :text-inside="true"
  12076. :stroke-width="20"
  12077. :percentage="progress"
  12078. style="width: 80%"
  12079. ></el-progress>
  12080. </div>
  12081. </div>
  12082. <div v-if="proVisible2" class="mask">
  12083. <div class="progressBox">
  12084. <div class="lbox">
  12085. <img src="../../assets/loading.gif" />上传中,请稍后
  12086. </div>
  12087. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12088. </div>
  12089. </div>
  12090. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12091. <img width="100%" :src="dialogImageUrl" alt />
  12092. </el-dialog>
  12093. <el-dialog
  12094. :title="noteName != '' ? noteName : '查看问卷'"
  12095. :visible.sync="dialogVisible5"
  12096. :append-to-body="true"
  12097. width="1000px"
  12098. :before-close="handleClose"
  12099. class="dialog_diy dialog_diy3"
  12100. >
  12101. <div>
  12102. <div
  12103. class="a_add_title"
  12104. style="
  12105. display: flex;
  12106. flex-direction: row;
  12107. align-items: center;
  12108. justify-content: center;
  12109. "
  12110. >
  12111. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12112. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12113. </div>
  12114. <div class="a_addBox">
  12115. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12116. 题目内容
  12117. </div>
  12118. <div
  12119. class="a_add_box"
  12120. v-for="(item1, index1) in askJson.askCount"
  12121. :key="index1"
  12122. >
  12123. <div class="a_add_head">
  12124. <div style="display: flex">
  12125. <span class="askIndex"> {{ index1 + 1 }}</span>
  12126. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12127. </div>
  12128. <img
  12129. v-if="askJson.askJson[index1].img"
  12130. :src="askJson.askJson[index1].img"
  12131. style="height: 300px; margin-top: 10px; max-width: 100%"
  12132. />
  12133. </div>
  12134. <div class="a_add_body">
  12135. <div class="a_add_input">
  12136. <el-radio-group
  12137. v-model="radio[index1]"
  12138. v-if="
  12139. askJson.askJson[index1].type == '1' ||
  12140. !askJson.askJson[index1].type
  12141. "
  12142. >
  12143. <el-radio
  12144. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12145. .checkList"
  12146. :key="checkIndex"
  12147. :label="checkIndex"
  12148. :disabled="isAnswer"
  12149. class="redioStyle"
  12150. ><span v-html="item2"></span
  12151. ></el-radio>
  12152. </el-radio-group>
  12153. <el-checkbox-group
  12154. v-model="radio[index1]"
  12155. v-if="askJson.askJson[index1].type == '2'"
  12156. >
  12157. <el-checkbox
  12158. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12159. .checkList"
  12160. :key="checkIndex1"
  12161. :label="checkIndex1"
  12162. :disabled="isAnswer"
  12163. class="redioStyle"
  12164. ><span v-html="item2"></span>
  12165. </el-checkbox>
  12166. </el-checkbox-group>
  12167. </div>
  12168. </div>
  12169. </div>
  12170. </div>
  12171. </div>
  12172. <span slot="footer" class="dialog-footer">
  12173. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12174. >取 消</el-button
  12175. >
  12176. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12177. >确 定</el-button
  12178. >
  12179. </span>
  12180. </el-dialog>
  12181. <el-dialog
  12182. :title="noteName != '' ? noteName : '查看问卷'"
  12183. :visible.sync="dialogVisible5Teacher"
  12184. :append-to-body="true"
  12185. width="1000px"
  12186. :before-close="handleClose"
  12187. class="dialog_diy dialog_diy3"
  12188. >
  12189. <div>
  12190. <div class="w_name">
  12191. 学生姓名:<span>{{ sStudent.student }}</span>
  12192. </div>
  12193. <div
  12194. class="a_add_title"
  12195. style="
  12196. display: flex;
  12197. flex-direction: row;
  12198. align-items: center;
  12199. justify-content: center;
  12200. "
  12201. >
  12202. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12203. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12204. </div>
  12205. <div class="a_addBox">
  12206. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12207. 题目内容
  12208. </div>
  12209. <div
  12210. class="a_add_box"
  12211. v-for="(item1, index1) in askJson.askCount"
  12212. :key="index1"
  12213. >
  12214. <div class="a_add_head">
  12215. <div style="display: flex">
  12216. <span class="askIndex">{{ index1 + 1 }}</span>
  12217. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12218. </div>
  12219. <img
  12220. v-if="askJson.askJson[index1].img"
  12221. :src="askJson.askJson[index1].img"
  12222. style="height: 300px; margin-top: 10px; max-width: 100%"
  12223. />
  12224. </div>
  12225. <div class="a_add_body">
  12226. <div class="a_add_input">
  12227. <el-radio-group
  12228. v-model="radio[index1]"
  12229. v-if="
  12230. askJson.askJson[index1].type == '1' ||
  12231. !askJson.askJson[index1].type
  12232. "
  12233. >
  12234. <el-radio
  12235. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12236. .checkList"
  12237. :key="checkIndex"
  12238. :label="checkIndex"
  12239. :disabled="isAnswer"
  12240. class="redioStyle"
  12241. ><span v-html="item2"></span
  12242. ></el-radio>
  12243. </el-radio-group>
  12244. <el-checkbox-group
  12245. v-model="radio[index1]"
  12246. v-if="askJson.askJson[index1].type == '2'"
  12247. >
  12248. <el-checkbox
  12249. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12250. .checkList"
  12251. :key="checkIndex1"
  12252. :label="checkIndex1"
  12253. :disabled="isAnswer"
  12254. class="redioStyle"
  12255. ><span v-html="item2"></span>
  12256. </el-checkbox>
  12257. </el-checkbox-group>
  12258. </div>
  12259. </div>
  12260. </div>
  12261. </div>
  12262. </div>
  12263. <span slot="footer" class="dialog-footer">
  12264. <el-button
  12265. @click="dialogVisible5Teacher = false"
  12266. v-show="noteName == ''"
  12267. >取 消</el-button
  12268. >
  12269. <el-button
  12270. type="primary"
  12271. @click="addStudentAskTeacher"
  12272. v-show="noteName == ''"
  12273. >确 定</el-button
  12274. >
  12275. </span>
  12276. </el-dialog>
  12277. <el-dialog
  12278. :title="noteName != '' ? noteName : '查看选择题'"
  12279. :visible.sync="dialogVisibleChoice"
  12280. :append-to-body="true"
  12281. width="1000px"
  12282. :before-close="handleClose"
  12283. class="dialog_diy dialog_diy3"
  12284. >
  12285. <div>
  12286. <!-- <div class="a_add_title" style="
  12287. display: flex;
  12288. flex-direction: row;
  12289. align-items: center;
  12290. justify-content: center;
  12291. ">
  12292. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12293. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12294. </div> -->
  12295. <div class="a_addBox">
  12296. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12297. 题目内容
  12298. </div>
  12299. <div
  12300. class="a_add_box"
  12301. v-for="(item1, index1) in testJson.testCount"
  12302. :key="index1"
  12303. >
  12304. <div class="a_add_head">
  12305. <div style="display: flex">
  12306. <span class="askIndex">{{ index1 + 1 }}</span>
  12307. <div
  12308. v-if="testJson.testJson[index1].type == '1'"
  12309. style="margin-right: 5px; min-width: 70px"
  12310. >
  12311. (单选题)
  12312. </div>
  12313. <div
  12314. v-if="testJson.testJson[index1].type == '2'"
  12315. style="margin-right: 5px; min-width: 70px"
  12316. >
  12317. (多选题)
  12318. </div>
  12319. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12320. </div>
  12321. <img
  12322. v-if="testJson.testJson[index1].img"
  12323. :src="testJson.testJson[index1].img"
  12324. style="height: 300px; margin-top: 10px; max-width: 100%"
  12325. />
  12326. </div>
  12327. <div
  12328. class="timuImgBox"
  12329. v-if="
  12330. testJson.testJson[index1].timuList &&
  12331. testJson.testJson[index1].timuList.length
  12332. "
  12333. >
  12334. <div
  12335. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12336. :key="tIndex"
  12337. class="timuImg"
  12338. @click.stop="previewImg(timg.src)"
  12339. >
  12340. <img :src="timg.src" alt="" />
  12341. </div>
  12342. </div>
  12343. <div class="a_add_body">
  12344. <div class="a_add_input">
  12345. <el-radio-group
  12346. v-model="radio[index1]"
  12347. v-if="testJson.testJson[index1].type == '1'"
  12348. >
  12349. <div class="radioBox">
  12350. <el-radio
  12351. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12352. .checkList"
  12353. :key="checkIndex"
  12354. :label="checkIndex"
  12355. :disabled="isAnswer"
  12356. class="redioStyle"
  12357. >
  12358. <div
  12359. style="margin-right: 10px"
  12360. v-if="item2 && item2.imgType && item2.imgType == 1"
  12361. >
  12362. <div class="inImg" @click.stop="previewImg(item2.src)">
  12363. <img :src="item2.src" alt="" />
  12364. </div>
  12365. </div>
  12366. <span v-else v-html="item2"></span>
  12367. </el-radio>
  12368. </div>
  12369. </el-radio-group>
  12370. <el-checkbox-group
  12371. v-model="radio[index1]"
  12372. v-if="testJson.testJson[index1].type == '2'"
  12373. >
  12374. <div class="radioBox">
  12375. <el-checkbox
  12376. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12377. .checkList"
  12378. :key="checkIndex"
  12379. :label="checkIndex"
  12380. :disabled="isAnswer"
  12381. class="redioStyle"
  12382. >
  12383. <div
  12384. style="margin-right: 10px"
  12385. v-if="item2 && item2.imgType && item2.imgType == 1"
  12386. >
  12387. <div class="inImg" @click.stop="previewImg(item2.src)">
  12388. <img :src="item2.src" alt="" />
  12389. </div>
  12390. </div>
  12391. <span v-else v-html="item2"></span>
  12392. </el-checkbox>
  12393. </div>
  12394. </el-checkbox-group>
  12395. </div>
  12396. </div>
  12397. </div>
  12398. </div>
  12399. </div>
  12400. <span slot="footer" class="dialog-footer">
  12401. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12402. >取 消</el-button
  12403. >
  12404. <el-button
  12405. type="primary"
  12406. @click="addStudentTest"
  12407. v-show="noteName == ''"
  12408. >确 定</el-button
  12409. >
  12410. </span>
  12411. </el-dialog>
  12412. <el-dialog
  12413. :title="noteName != '' ? noteName : '查看选择题'"
  12414. :visible.sync="dialogVisibleChoiceTeacher"
  12415. :append-to-body="true"
  12416. width="1000px"
  12417. :before-close="handleClose"
  12418. class="dialog_diy dialog_diy3"
  12419. >
  12420. <div>
  12421. <div class="w_name">
  12422. 学生姓名:<span>{{ sStudent.student }}</span>
  12423. </div>
  12424. <div class="a_addBox">
  12425. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12426. 题目内容
  12427. </div>
  12428. <div
  12429. class="a_add_box"
  12430. v-for="(item1, index1) in testJson.testCount"
  12431. :key="index1"
  12432. >
  12433. <div class="a_add_head">
  12434. <div style="display: flex">
  12435. <span class="askIndex">{{ index1 + 1 }}</span>
  12436. <div
  12437. v-if="testJson.testJson[index1].type == '1'"
  12438. style="margin-right: 5px; min-width: 70px"
  12439. >
  12440. (单选题)
  12441. </div>
  12442. <div
  12443. v-if="testJson.testJson[index1].type == '2'"
  12444. style="margin-right: 5px; min-width: 70px"
  12445. >
  12446. (多选题)
  12447. </div>
  12448. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12449. </div>
  12450. <img
  12451. v-if="testJson.testJson[index1].img"
  12452. :src="testJson.testJson[index1].img"
  12453. style="height: 300px; margin-top: 10px; max-width: 100%"
  12454. />
  12455. </div>
  12456. <div
  12457. class="timuImgBox"
  12458. v-if="
  12459. testJson.testJson[index1].timuList &&
  12460. testJson.testJson[index1].timuList.length
  12461. "
  12462. >
  12463. <div
  12464. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12465. :key="tIndex"
  12466. class="timuImg"
  12467. @click.stop="previewImg(timg.src)"
  12468. >
  12469. <img :src="timg.src" alt="" />
  12470. </div>
  12471. </div>
  12472. <div class="a_add_body">
  12473. <div class="a_add_input">
  12474. <el-radio-group
  12475. v-model="radio[index1]"
  12476. v-if="testJson.testJson[index1].type == '1'"
  12477. >
  12478. <div class="radioBox">
  12479. <el-radio
  12480. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12481. .checkList"
  12482. :key="checkIndex"
  12483. :label="checkIndex"
  12484. :disabled="isAnswer"
  12485. class="redioStyle"
  12486. >
  12487. <div
  12488. style="margin-right: 10px"
  12489. v-if="item2 && item2.imgType && item2.imgType == 1"
  12490. >
  12491. <div class="inImg" @click.stop="previewImg(item2.src)">
  12492. <img :src="item2.src" alt="" />
  12493. </div>
  12494. </div>
  12495. <span v-else v-html="item2"></span>
  12496. </el-radio>
  12497. </div>
  12498. </el-radio-group>
  12499. <el-checkbox-group
  12500. v-model="radio[index1]"
  12501. v-if="testJson.testJson[index1].type == '2'"
  12502. >
  12503. <div class="radioBox">
  12504. <el-checkbox
  12505. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12506. .checkList"
  12507. :key="checkIndex"
  12508. :label="checkIndex"
  12509. :disabled="isAnswer"
  12510. class="redioStyle"
  12511. >
  12512. <div
  12513. style="margin-right: 10px"
  12514. v-if="item2 && item2.imgType && item2.imgType == 1"
  12515. >
  12516. <div class="inImg" @click.stop="previewImg(item2.src)">
  12517. <img :src="item2.src" alt="" />
  12518. </div>
  12519. </div>
  12520. <span v-else v-html="item2"></span>
  12521. </el-checkbox>
  12522. </div>
  12523. </el-checkbox-group>
  12524. </div>
  12525. </div>
  12526. </div>
  12527. </div>
  12528. </div>
  12529. <span slot="footer" class="dialog-footer">
  12530. <el-button
  12531. @click="dialogVisibleChoiceTeacher = false"
  12532. v-show="noteName == ''"
  12533. >取 消</el-button
  12534. >
  12535. <el-button
  12536. type="primary"
  12537. @click="addStudentTestTeacher"
  12538. v-show="noteName == ''"
  12539. >确 定</el-button
  12540. >
  12541. </span>
  12542. </el-dialog>
  12543. <el-dialog
  12544. title="查看富文本"
  12545. :visible.sync="dialogVisible1"
  12546. :append-to-body="true"
  12547. width="500px"
  12548. :before-close="handleClose"
  12549. class="dialog_diy textCss"
  12550. >
  12551. <el-form style="font-size: 20px">
  12552. <el-form-item label="文本标题" class="textTitle">
  12553. <div style="font-size: 20px">{{ text.name }}</div>
  12554. </el-form-item>
  12555. <div>富文本内容</div>
  12556. <div
  12557. v-html="text.url"
  12558. style="font-size: 18px; padding: 40px 0 0 0"
  12559. ></div>
  12560. </el-form>
  12561. <span slot="footer" class="dialog-footer">
  12562. <el-button type="primary" @click="dialogVisible1 = false"
  12563. >确定</el-button
  12564. >
  12565. </span>
  12566. </el-dialog>
  12567. <el-dialog
  12568. title="文件预览"
  12569. :visible.sync="dialogVisible3"
  12570. width="50%"
  12571. :before-close="handleClose"
  12572. class="dialog_diy"
  12573. :class="{ fullStyle: full }"
  12574. >
  12575. <div slot="title" class="header-title">
  12576. <div style="color: #fff">文件预览</div>
  12577. <div style="position: absolute; top: 19px; right: 50px">
  12578. <img
  12579. src="../../assets/full.png"
  12580. style="height: 16px; cursor: pointer"
  12581. alt=""
  12582. @click="fullTools"
  12583. />
  12584. </div>
  12585. </div>
  12586. <pdf
  12587. v-if="showPDF"
  12588. :pdfUrl="pptImgUrl"
  12589. style="width: 100%; height: 520px; overflow: auto"
  12590. :class="{ fullStyle: full }"
  12591. ></pdf>
  12592. <iframe
  12593. v-else
  12594. :src="pptImgUrl"
  12595. frameborder="0"
  12596. width="100%"
  12597. height="600"
  12598. :class="{ fullStyle: full }"
  12599. ></iframe>
  12600. </el-dialog>
  12601. <el-dialog
  12602. title="文件预览"
  12603. :visible.sync="dialogVisible6"
  12604. width="50%"
  12605. :before-close="handleClose"
  12606. class="dialog_diy"
  12607. >
  12608. <iframe
  12609. :src="pptImgUrl1"
  12610. frameborder="0"
  12611. width="100%"
  12612. height="600"
  12613. ></iframe>
  12614. </el-dialog>
  12615. <el-dialog
  12616. title="提示"
  12617. :visible.sync="dialogVisible4"
  12618. :append-to-body="true"
  12619. width="800px"
  12620. :before-close="handleClose"
  12621. class="dialog_diy notice"
  12622. >
  12623. <div>此功能暂未开放!</div>
  12624. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  12625. </el-dialog>
  12626. <el-dialog
  12627. title="问答"
  12628. :visible.sync="answerDialogVisible"
  12629. :append-to-body="true"
  12630. width="800px"
  12631. :before-close="handleClose"
  12632. class="dialog_diy"
  12633. >
  12634. <div>
  12635. <div
  12636. style="
  12637. display: flex;
  12638. flex-wrap: nowrap;
  12639. flex-direction: column;
  12640. position: relative;
  12641. "
  12642. >
  12643. <div class="queTop" style="padding: 20px 0 20px 0">
  12644. <div class="question">
  12645. <img src="../../assets/icon/question.png" alt />
  12646. </div>
  12647. <div class="queTitle">
  12648. <div style="width: 90px; min-width: 90px">提问:</div>
  12649. <div>{{ answerQ }}</div>
  12650. </div>
  12651. </div>
  12652. <div class="ediBottom">
  12653. <textarea
  12654. rows="6"
  12655. class="binfo_input"
  12656. cols
  12657. style="width: 95%; height: 120px"
  12658. v-model="questionAnswer"
  12659. ></textarea>
  12660. </div>
  12661. </div>
  12662. </div>
  12663. <div slot="footer">
  12664. <el-button @click="answerDialogVisible = false">取 消</el-button>
  12665. <el-button type="primary" @click="addQuestion">提 交</el-button>
  12666. </div>
  12667. </el-dialog>
  12668. <el-dialog
  12669. title="问答"
  12670. :visible.sync="answerDialogVisibleTeacher"
  12671. :append-to-body="true"
  12672. width="800px"
  12673. :before-close="handleClose"
  12674. class="dialog_diy"
  12675. >
  12676. <div>
  12677. <div class="w_name">
  12678. 学生姓名:<span>{{ sStudent.student }}</span>
  12679. </div>
  12680. <div
  12681. style="
  12682. display: flex;
  12683. flex-wrap: nowrap;
  12684. flex-direction: column;
  12685. position: relative;
  12686. "
  12687. >
  12688. <div class="queTop" style="padding: 20px 0 20px 0">
  12689. <div class="question">
  12690. <img src="../../assets/icon/question.png" alt />
  12691. </div>
  12692. <div class="queTitle">
  12693. <div style="width: 90px; min-width: 90px">提问:</div>
  12694. <div>{{ answerQ }}</div>
  12695. </div>
  12696. </div>
  12697. <div class="ediBottom">
  12698. <textarea
  12699. rows="6"
  12700. class="binfo_input"
  12701. cols
  12702. style="width: 95%; height: 120px"
  12703. v-model="questionAnswer"
  12704. ></textarea>
  12705. </div>
  12706. </div>
  12707. </div>
  12708. <div slot="footer">
  12709. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  12710. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  12711. </div>
  12712. </el-dialog>
  12713. <el-dialog
  12714. title="倒计时"
  12715. :visible.sync="timeDialogVisible"
  12716. :append-to-body="true"
  12717. width="800px"
  12718. :before-close="handleClose"
  12719. class="dialog_diy"
  12720. >
  12721. <div>
  12722. <div style="margin-bottom: 20px; color: #999">
  12723. 提示:点击“+”或“-”修改倒计时时长。
  12724. </div>
  12725. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12726. </div>
  12727. <div slot="footer">
  12728. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  12729. </div>
  12730. </el-dialog>
  12731. <el-dialog
  12732. title="权限设置"
  12733. :visible.sync="juriVisible"
  12734. :append-to-body="true"
  12735. width="400px"
  12736. :before-close="handleClose"
  12737. class="dialog_diy"
  12738. >
  12739. <div>
  12740. <div class="open_box">
  12741. <div class="switch_box">
  12742. <span>允许学生查看所有作业</span>
  12743. <el-switch
  12744. v-model="sIsOpen"
  12745. active-text=""
  12746. class="switchCss"
  12747. @change="updateSLook"
  12748. ></el-switch>
  12749. </div>
  12750. <div
  12751. class="switch_box"
  12752. v-if="
  12753. courseDetail.userid == userid ||
  12754. (courseDetail.course_teacher &&
  12755. courseDetail.course_teacher.indexOf(userid) != -1)
  12756. "
  12757. >
  12758. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12759. <span>禁止学生查看所有阶段</span>
  12760. <el-switch
  12761. v-model="IsLookOpen"
  12762. active-text=""
  12763. class="switchCss"
  12764. @change="updateLookOpen"
  12765. ></el-switch>
  12766. </div>
  12767. <div class="switch_box" v-if="courseDetail.userid == userid">
  12768. <span>开启跟随模式</span>
  12769. <el-switch
  12770. v-model="IsFollow"
  12771. active-text=""
  12772. class="switchCss"
  12773. @change="updateFollow"
  12774. ></el-switch>
  12775. </div>
  12776. </div>
  12777. </div>
  12778. <div slot="footer">
  12779. <el-button
  12780. style="background: #409efe; color: #fff"
  12781. @click="juriVisible = false"
  12782. >关 闭</el-button
  12783. >
  12784. </div>
  12785. </el-dialog>
  12786. <el-dialog
  12787. title="查看视频"
  12788. :visible.sync="videoVisible"
  12789. :append-to-body="true"
  12790. width="1000px"
  12791. :before-close="handleClose"
  12792. class="dialog_diy1"
  12793. >
  12794. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12795. <video-player
  12796. class="video-player vjs-custom-skin"
  12797. :playsinline="true"
  12798. :options="videoDetail"
  12799. @play="onPlayerPlay($event)"
  12800. style="width: 100%; height: 100%"
  12801. ></video-player>
  12802. </div>
  12803. <div slot="footer">
  12804. <el-button
  12805. style="background: #409efe; color: #fff"
  12806. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12807. >
  12808. 关 闭</el-button
  12809. >
  12810. </div>
  12811. </el-dialog>
  12812. <el-dialog
  12813. title="查看详情"
  12814. :visible.sync="commentDialogVisible"
  12815. :append-to-body="true"
  12816. width="800px"
  12817. :before-close="handleClose"
  12818. class="dialog_diy"
  12819. >
  12820. <div class="commentTop">
  12821. <div class="studentDetail">
  12822. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12823. <div class="nameAndTime">
  12824. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12825. <div>{{ commentDetail.time }}</div>
  12826. </div>
  12827. <div
  12828. class="returnBtn"
  12829. style="margin-left: auto; width: 80px"
  12830. v-if="
  12831. commentDetail.works &&
  12832. commentDetail.type == 0 &&
  12833. (tType == 1 || tType == 4)
  12834. "
  12835. @click="
  12836. showPicturePaint(
  12837. commentDetail.img ? commentDetail.img : commentDetail.works
  12838. )
  12839. "
  12840. >
  12841. 教师批注
  12842. </div>
  12843. </div>
  12844. <div
  12845. class="worksAnswer"
  12846. v-if="commentDetail.works && commentDetail.type == 2"
  12847. >
  12848. {{ JSON.parse(commentDetail.works)[0].answer }}
  12849. </div>
  12850. <div
  12851. class="worksAnswer"
  12852. v-if="commentDetail.works && commentDetail.type == 1"
  12853. >
  12854. <img
  12855. src="../../assets/teacherWork.png"
  12856. v-if="commentDetail.ateacher"
  12857. class="w_teachert"
  12858. />
  12859. <pdf
  12860. v-if="showPDF"
  12861. :pdfUrl="pptImgUrl"
  12862. style="width: 100%; height: 520px; overflow: auto"
  12863. :class="{ fullStyle: full }"
  12864. ></pdf>
  12865. <iframe
  12866. v-else
  12867. :src="pptImgUrl"
  12868. frameborder="0"
  12869. width="100%"
  12870. height="600"
  12871. :class="{ fullStyle: full }"
  12872. ></iframe>
  12873. </div>
  12874. <div
  12875. class="worksAnswer"
  12876. v-if="commentDetail.works && commentDetail.type == 0"
  12877. >
  12878. <img
  12879. src="../../assets/teacherWork.png"
  12880. v-if="commentDetail.ateacher"
  12881. class="w_teachert"
  12882. style="right: 105px"
  12883. />
  12884. <img
  12885. :src="commentDetail.works"
  12886. alt=""
  12887. @click="previewImg(commentDetail.works)"
  12888. />
  12889. </div>
  12890. <div
  12891. class="worksAnswer"
  12892. v-if="commentDetail.works && commentDetail.type == 3"
  12893. >
  12894. <img
  12895. src="../../assets/teacherWork.png"
  12896. v-if="commentDetail.ateacher"
  12897. class="w_teachert"
  12898. />
  12899. <video-player
  12900. class="video-player vjs-custom-skin"
  12901. :playsinline="true"
  12902. :options="videoDetail"
  12903. @play="onPlayerPlay($event)"
  12904. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  12905. ></video-player>
  12906. </div>
  12907. <div
  12908. class="worksAnswer"
  12909. v-if="commentDetail.works && commentDetail.type == 10"
  12910. >
  12911. <div class="cont" v-html="commentDetail.works.text"></div>
  12912. </div>
  12913. <div v-if="commentDetail.works && commentDetail.type == 12">
  12914. <!-- class="worksAnswer codeFileBox" -->
  12915. <!-- @click="downloadFile(commentDetail.works)" -->
  12916. <!-- <img src="../../assets/icon/codeFile.png" />
  12917. <div>点击下载文件</div> -->
  12918. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  12919. </div>
  12920. <div
  12921. class="worksAnswer codeFileBox"
  12922. v-if="commentDetail.works && commentDetail.type == 15"
  12923. @click="
  12924. openCocoPi(
  12925. 57,
  12926. commentIndexJson.toolIndex,
  12927. commentDetail.userid,
  12928. commentDetail.sName
  12929. )
  12930. "
  12931. >
  12932. <img src="../../assets/icon/codeFile.png" />
  12933. <div>点击打开CocoPi</div>
  12934. </div>
  12935. <div
  12936. class="worksAnswer"
  12937. v-if="commentDetail.works && commentDetail.type == 13"
  12938. >
  12939. <div v-html="JSON.parse(commentDetail.works).text"></div>
  12940. </div>
  12941. <div
  12942. class="worksAnswer"
  12943. v-if="commentDetail.works && commentDetail.type == 4"
  12944. >
  12945. <div class="evalCss">
  12946. <div class="nav">请选择星星进行评分</div>
  12947. <div class="middleBox" v-if="eScore.eStar">
  12948. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  12949. <div class="nameAndrate">
  12950. <div>{{ e.value }}</div>
  12951. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  12952. </div>
  12953. <div v-if="e.detail">{{ e.detail }}</div>
  12954. </div>
  12955. <div class="bz">
  12956. <textarea
  12957. disabled
  12958. rows="4"
  12959. class="pj"
  12960. style="
  12961. padding: 10px 5px;
  12962. width: 70%;
  12963. background: #f7f6f9;
  12964. font-size: 14px;
  12965. text-indent: 10px;
  12966. color: #000;
  12967. "
  12968. cols
  12969. v-model="eScore.eBzText"
  12970. placeholder="请输入评价内容..."
  12971. ></textarea>
  12972. </div>
  12973. </div>
  12974. </div>
  12975. </div>
  12976. <div class="comment">
  12977. <div class="commentList">
  12978. <div class="commentImg">
  12979. <img
  12980. @click="
  12981. isLikes(
  12982. commentDetail.wid,
  12983. userid,
  12984. 1,
  12985. null,
  12986. commentDetail.isLikes,
  12987. commentDetail.sName
  12988. )
  12989. "
  12990. :src="commentDetail.isLikes == true ? likes : noLikes"
  12991. alt=""
  12992. />
  12993. </div>
  12994. <div>{{ commentDetail.likesCount }}</div>
  12995. </div>
  12996. <div class="commentList">
  12997. <div class="commentImg">
  12998. <img src="../../assets/icon/comment/comment.png" alt="" />
  12999. </div>
  13000. <div>{{ commentDetail.commentCount }}</div>
  13001. </div>
  13002. </div>
  13003. <div class="drawPBox" v-if="commentDetail.img">
  13004. <span>教师批注</span>
  13005. <img
  13006. :src="commentDetail.img"
  13007. alt=""
  13008. @click="previewImg(commentDetail.img)"
  13009. />
  13010. <span
  13011. class="deleteImg"
  13012. v-if="tType == 1 || tType == 4"
  13013. @click.stop="deletePicturePaint(commentDetail.wid)"
  13014. style="
  13015. font-size: 14px;
  13016. width: auto !important;
  13017. color: #b4b4b4;
  13018. top: unset;
  13019. bottom: 0;
  13020. border: none;
  13021. padding: 0;
  13022. height: auto !important;
  13023. margin: 0;
  13024. "
  13025. >删除</span
  13026. >
  13027. </div>
  13028. </div>
  13029. <div class="commentBox">
  13030. <div class="pl">评论:</div>
  13031. <div style="max-height: 200px; overflow: auto">
  13032. <div
  13033. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13034. style="padding: 10px 0 0 0"
  13035. >
  13036. <div
  13037. class="studentDetail"
  13038. style="padding-top: 10px"
  13039. v-for="(co, coIndex) in commentDetail.commentJson"
  13040. :key="coIndex"
  13041. >
  13042. <div class="tx" style="min-width: 50px">
  13043. <img src="../../assets/avatar.png" alt="" />
  13044. </div>
  13045. <div class="plPerson">
  13046. <div class="plName">
  13047. <div>{{ co.commentPeople }}</div>
  13048. <div style="margin-left: 5px">
  13049. {{ co.commentTime }}
  13050. </div>
  13051. <div
  13052. class="deleteComment"
  13053. v-if="userid == co.userid"
  13054. @click="deleteComment(co.wid)"
  13055. >
  13056. 删除
  13057. </div>
  13058. </div>
  13059. <div class="plContent">{{ co.commentText }}</div>
  13060. </div>
  13061. </div>
  13062. </div>
  13063. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13064. </div>
  13065. </div>
  13066. <div style="margin-top: 10px">
  13067. <div class="displayBox">
  13068. <div
  13069. style="
  13070. color: #556db4;
  13071. font-size: 14px;
  13072. font-weight: bold;
  13073. padding-bottom: 10px;
  13074. "
  13075. >
  13076. 评价
  13077. </div>
  13078. <div class="easy_comment" v-if="false">
  13079. <div
  13080. v-for="(p, pIndex) in PlTextList"
  13081. :key="pIndex"
  13082. @click="fastText(p, 1)"
  13083. >
  13084. {{ p }}
  13085. </div>
  13086. </div>
  13087. </div>
  13088. <div>
  13089. <textarea
  13090. rows="3"
  13091. class="pj"
  13092. style="padding: 10px 5px"
  13093. cols
  13094. v-model="commentText"
  13095. placeholder="请输入评论"
  13096. ></textarea>
  13097. </div>
  13098. </div>
  13099. <div slot="footer">
  13100. <el-button
  13101. @click="
  13102. (commentDialogVisible = false),
  13103. (commentIndexJson = {}),
  13104. videoDetail.sources && videoDetail.sources[0]
  13105. ? (videoDetail.sources[0].src = '')
  13106. : ''
  13107. "
  13108. >取 消</el-button
  13109. >
  13110. <el-button
  13111. type="primary"
  13112. @click="addComment(commentDetail.wid, userid, 2, commentDetail)"
  13113. >确 定</el-button
  13114. >
  13115. </div>
  13116. </el-dialog>
  13117. <el-dialog
  13118. :visible.sync="fullDialogVisible"
  13119. :append-to-body="true"
  13120. width="100%"
  13121. :before-close="handleClose"
  13122. :show-close="false"
  13123. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13124. >
  13125. <div slot="title" class="header-title">
  13126. <div style="color: #fff">查看文档</div>
  13127. <div
  13128. @click="
  13129. () => {
  13130. (fullDialogVisible = false),
  13131. changeSplitScreenBehavior({ code: 99 });
  13132. }
  13133. "
  13134. style="
  13135. cursor: pointer;
  13136. position: absolute;
  13137. top: 20px;
  13138. right: 20px;
  13139. color: #fff;
  13140. "
  13141. >
  13142. 退出全屏
  13143. </div>
  13144. </div>
  13145. <div style="height: 100%;position: relative;">
  13146. <el-button
  13147. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13148. size="medium"
  13149. type="primary"
  13150. @click="
  13151. () => {
  13152. (fullDialogVisible = false),
  13153. changeSplitScreenBehavior({ code: 99 });
  13154. }
  13155. "
  13156. style="
  13157. cursor: pointer;
  13158. position: absolute;
  13159. top: 10px;
  13160. right: 20px;
  13161. color: #fff;
  13162. "
  13163. >
  13164. 退出全屏
  13165. </el-button>
  13166. <div
  13167. class="wheel"
  13168. v-if="
  13169. fulltype == 2 &&
  13170. fullUrl.indexOf(
  13171. 'https://view.officeapps.live.com/op/view.aspx?src='
  13172. ) != -1
  13173. "
  13174. style="width: 100%;height:100%; margin: 0 auto"
  13175. >
  13176. <iframe
  13177. style="width: 100%; height: 100%; border: none"
  13178. :src="fullUrl"
  13179. ></iframe>
  13180. </div>
  13181. <iframe
  13182. v-else-if="fulltype == 2"
  13183. style="width: 100%; height: 100%; border: none"
  13184. :src="fullUrl"
  13185. security="restricted"
  13186. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13187. ></iframe>
  13188. <pdf
  13189. v-else-if="fulltype == 3"
  13190. :pdfUrl="fullUrl"
  13191. style="width: 100%; height: 100%; overflow: auto"
  13192. ></pdf>
  13193. <div
  13194. class="wheel"
  13195. v-if="fulltype == 1"
  13196. style="
  13197. box-shadow: 0 0 6px 1px #f2f2f2;
  13198. height:100%;
  13199. width: 100%;
  13200. background: #f1f1f1;
  13201. "
  13202. >
  13203. <div class="title" style="width: 100%; box-sizing: border-box">
  13204. 查看文档
  13205. </div>
  13206. <el-form class="textBox" style="height: 90%">
  13207. <el-form-item class="textTitle">
  13208. <div style="font-size: 22px">
  13209. {{ fullUrl.name }}
  13210. </div>
  13211. </el-form-item>
  13212. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13213. <div
  13214. v-html="fullUrl.url"
  13215. class="textContent"
  13216. style="height: auto"
  13217. ></div>
  13218. </el-form>
  13219. </div>
  13220. </div>
  13221. <!-- <div slot="footer">
  13222. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13223. </div> -->
  13224. </el-dialog>
  13225. <el-dialog
  13226. title="个人评价"
  13227. :visible.sync="studentEvalDialogVisible"
  13228. :append-to-body="true"
  13229. width="800px"
  13230. :before-close="handleClose"
  13231. class="dialog_diy"
  13232. >
  13233. <div class="evalCss">
  13234. <div class="nav">请选择星星进行评分</div>
  13235. <div class="middleBox" v-if="eScore.eStar">
  13236. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13237. <div class="nameAndrate">
  13238. <div>{{ e.value }}</div>
  13239. <el-rate
  13240. v-model="eScore.eStar[eIndex]"
  13241. :disabled="isStar"
  13242. ></el-rate>
  13243. </div>
  13244. <div v-if="e.detail">{{ e.detail }}</div>
  13245. </div>
  13246. <div class="easy_comment" v-if="false">
  13247. <div
  13248. v-for="(p, pIndex) in PlTextList"
  13249. :key="pIndex"
  13250. @click="fastText(p, 2)"
  13251. >
  13252. {{ p }}
  13253. </div>
  13254. </div>
  13255. <div class="bz">
  13256. <textarea
  13257. :disabled="isStar"
  13258. rows="4"
  13259. class="pj"
  13260. style="
  13261. padding: 10px 5px;
  13262. width: 70%;
  13263. background: #f7f6f9;
  13264. font-size: 14px;
  13265. text-indent: 10px;
  13266. "
  13267. cols
  13268. v-model="eScore.eBzText"
  13269. placeholder="请输入评价内容..."
  13270. ></textarea>
  13271. </div>
  13272. </div>
  13273. </div>
  13274. <div slot="footer">
  13275. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13276. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13277. >确 定</el-button
  13278. >
  13279. </div>
  13280. </el-dialog>
  13281. <el-dialog
  13282. title="个人评价"
  13283. :visible.sync="studentEvalDialogVisibleTeacher"
  13284. :append-to-body="true"
  13285. width="800px"
  13286. :before-close="handleClose"
  13287. class="dialog_diy"
  13288. >
  13289. <div class="w_name">
  13290. 学生姓名:<span>{{ sStudent.student }}</span>
  13291. </div>
  13292. <div class="evalCss">
  13293. <div class="nav">请选择星星进行评分</div>
  13294. <div class="middleBox" v-if="eScore.eStar">
  13295. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13296. <div class="nameAndrate">
  13297. <div>{{ e.value }}</div>
  13298. <el-rate
  13299. v-model="eScore.eStar[eIndex]"
  13300. :disabled="isStar"
  13301. ></el-rate>
  13302. </div>
  13303. <div v-if="e.detail">{{ e.detail }}</div>
  13304. </div>
  13305. <div class="easy_comment" v-if="false">
  13306. <div
  13307. v-for="(p, pIndex) in PlTextList"
  13308. :key="pIndex"
  13309. @click="fastText(p, 2)"
  13310. >
  13311. {{ p }}
  13312. </div>
  13313. </div>
  13314. <div class="bz">
  13315. <textarea
  13316. :disabled="isStar"
  13317. rows="4"
  13318. class="pj"
  13319. style="
  13320. padding: 10px 5px;
  13321. width: 70%;
  13322. background: #f7f6f9;
  13323. font-size: 14px;
  13324. text-indent: 10px;
  13325. "
  13326. cols
  13327. v-model="eScore.eBzText"
  13328. placeholder="请输入评价内容..."
  13329. ></textarea>
  13330. </div>
  13331. </div>
  13332. </div>
  13333. <div slot="footer">
  13334. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13335. >取 消</el-button
  13336. >
  13337. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13338. >确 定</el-button
  13339. >
  13340. </div>
  13341. </el-dialog>
  13342. <el-dialog
  13343. title="选择匹配"
  13344. :visible.sync="dialogVisibleSelect"
  13345. :append-to-body="true"
  13346. width="90%"
  13347. :before-close="handleClose"
  13348. class="dialog_diy dialog_diy3"
  13349. >
  13350. <div v-if="selectJson">
  13351. <div class="select_box2">
  13352. <div class="select_box2_title">
  13353. <div>选择匹配</div>
  13354. <div>请选择对应的答案进行答题!</div>
  13355. </div>
  13356. <div class="select_box2_box">
  13357. <div class="select_box2_img">
  13358. <img
  13359. :src="selectJson.url"
  13360. @click="previewImg(selectJson.url)"
  13361. alt=""
  13362. />
  13363. </div>
  13364. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13365. <div style="padding-top: 15px">
  13366. <div class="select_answer_title" v-if="isSelect">
  13367. {{ selectAnswer.stu }}
  13368. </div>
  13369. <div class="select_answer_title" v-else>
  13370. 根据题目选择对应答案
  13371. </div>
  13372. <div
  13373. class="select_box2_answer_box"
  13374. v-for="(item2, checkIndex) in selectJson.select"
  13375. :key="checkIndex"
  13376. >
  13377. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13378. <el-select
  13379. :disabled="isSelect"
  13380. v-model="selectAnswer.answer[checkIndex]"
  13381. placeholder="请选择正确答案"
  13382. >
  13383. <el-option
  13384. v-for="(e, eIndex) in selectJson.select"
  13385. :key="eIndex"
  13386. :label="e"
  13387. :value="eIndex"
  13388. >
  13389. </el-option>
  13390. </el-select>
  13391. </div>
  13392. </div>
  13393. <div
  13394. class="rightAnswerCss"
  13395. v-if="isSelect && (tType == 1 || tType == 4)"
  13396. >
  13397. <div
  13398. v-for="(a, aIndex) in selectJson.answer"
  13399. :key="aIndex"
  13400. class="rightAnswer"
  13401. >
  13402. <div
  13403. v-if="selectAnswer.answer[aIndex] === a"
  13404. style="color: #767de1"
  13405. >
  13406. 回答正确
  13407. </div>
  13408. <div v-else>回答错误</div>
  13409. <div
  13410. style="margin-left: 10px"
  13411. v-if="selectAnswer.answer[aIndex] !== a"
  13412. >
  13413. 正确答案:
  13414. </div>
  13415. <div
  13416. :class="
  13417. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13418. "
  13419. >
  13420. {{ selectJson.select[a] }}
  13421. </div>
  13422. </div>
  13423. </div>
  13424. </div>
  13425. <div class="upAnswerCss">
  13426. <el-button
  13427. type="primary"
  13428. @click="addSelectAnswer"
  13429. v-if="!isSelect"
  13430. >提交答案</el-button
  13431. >
  13432. </div>
  13433. </div>
  13434. </div>
  13435. </div>
  13436. </el-dialog>
  13437. <el-dialog
  13438. title="选择匹配"
  13439. :visible.sync="dialogVisibleSelectTeacher"
  13440. :append-to-body="true"
  13441. width="90%"
  13442. :before-close="handleClose"
  13443. class="dialog_diy dialog_diy3"
  13444. >
  13445. <div v-if="selectJson">
  13446. <div class="w_name">
  13447. 学生姓名:<span>{{ sStudent.student }}</span>
  13448. </div>
  13449. <div class="select_box2">
  13450. <div class="select_box2_title">
  13451. <div>选择匹配</div>
  13452. <div>请选择对应的答案进行答题!</div>
  13453. </div>
  13454. <div class="select_box2_box">
  13455. <div class="select_box2_img">
  13456. <img
  13457. :src="selectJson.url"
  13458. @click="previewImg(selectJson.url)"
  13459. alt=""
  13460. />
  13461. </div>
  13462. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13463. <div style="padding-top: 15px">
  13464. <div class="select_answer_title" v-if="isSelect">
  13465. {{ selectAnswer.stu }}
  13466. </div>
  13467. <div class="select_answer_title" v-else>
  13468. 根据题目选择对应答案
  13469. </div>
  13470. <div
  13471. class="select_box2_answer_box"
  13472. v-for="(item2, checkIndex) in selectJson.select"
  13473. :key="checkIndex"
  13474. >
  13475. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13476. <el-select
  13477. :disabled="isSelect"
  13478. v-model="selectAnswer.answer[checkIndex]"
  13479. placeholder="请选择正确答案"
  13480. >
  13481. <el-option
  13482. v-for="(e, eIndex) in selectJson.select"
  13483. :key="eIndex"
  13484. :label="e"
  13485. :value="eIndex"
  13486. >
  13487. </el-option>
  13488. </el-select>
  13489. </div>
  13490. </div>
  13491. <div
  13492. class="rightAnswerCss"
  13493. v-if="isSelect && (tType == 1 || tType == 4)"
  13494. >
  13495. <div
  13496. v-for="(a, aIndex) in selectJson.answer"
  13497. :key="aIndex"
  13498. class="rightAnswer"
  13499. >
  13500. <div
  13501. v-if="selectAnswer.answer[aIndex] === a"
  13502. style="color: #767de1"
  13503. >
  13504. 回答正确
  13505. </div>
  13506. <div v-else>回答错误</div>
  13507. <div
  13508. style="margin-left: 10px"
  13509. v-if="selectAnswer.answer[aIndex] !== a"
  13510. >
  13511. 正确答案:
  13512. </div>
  13513. <div
  13514. :class="
  13515. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13516. "
  13517. >
  13518. {{ selectJson.select[a] }}
  13519. </div>
  13520. </div>
  13521. </div>
  13522. </div>
  13523. <div class="upAnswerCss">
  13524. <el-button
  13525. type="primary"
  13526. @click="addSelectAnswerTeacher"
  13527. v-if="!isSelect"
  13528. >提交答案</el-button
  13529. >
  13530. </div>
  13531. </div>
  13532. </div>
  13533. </div>
  13534. </el-dialog>
  13535. <el-dialog
  13536. title="教师评分"
  13537. :visible.sync="dialogVisibleScore"
  13538. :append-to-body="true"
  13539. width="800px"
  13540. :before-close="handleClose"
  13541. class="dialog_diy"
  13542. >
  13543. <div>
  13544. <div class="studentDetail">
  13545. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13546. <div class="nameAndTime">
  13547. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13548. <div>{{ commentDetail.time }}</div>
  13549. </div>
  13550. </div>
  13551. <div
  13552. class="worksAnswer"
  13553. v-if="commentDetail.works && commentDetail.type == 2"
  13554. >
  13555. {{ JSON.parse(commentDetail.works)[0].answer }}
  13556. </div>
  13557. <div
  13558. class="worksAnswer"
  13559. v-if="commentDetail.works && commentDetail.type == 1"
  13560. >
  13561. <pdf
  13562. v-if="showPDF"
  13563. :pdfUrl="pptImgUrl"
  13564. style="width: 100%; height: 520px; overflow: auto"
  13565. :class="{ fullStyle: full }"
  13566. ></pdf>
  13567. <iframe
  13568. v-else
  13569. :src="pptImgUrl"
  13570. frameborder="0"
  13571. width="100%"
  13572. height="600"
  13573. :class="{ fullStyle: full }"
  13574. ></iframe>
  13575. </div>
  13576. <div
  13577. class="worksAnswer"
  13578. v-if="commentDetail.works && commentDetail.type == 0"
  13579. >
  13580. <img
  13581. :src="commentDetail.works"
  13582. alt=""
  13583. @click="previewImg(commentDetail.works)"
  13584. />
  13585. </div>
  13586. <div
  13587. class="worksAnswer"
  13588. v-if="commentDetail.works && commentDetail.type == 3"
  13589. >
  13590. <video-player
  13591. class="video-player vjs-custom-skin"
  13592. :playsinline="true"
  13593. :options="videoDetail"
  13594. @play="onPlayerPlay($event)"
  13595. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13596. ></video-player>
  13597. </div>
  13598. <div
  13599. class="worksAnswer codeFileBox"
  13600. v-if="commentDetail.works && commentDetail.type == 12"
  13601. @click="downloadFile(commentDetail.works)"
  13602. >
  13603. <img src="../../assets/icon/codeFile.png" />
  13604. <div>点击下载文件</div>
  13605. </div>
  13606. <div
  13607. class="worksAnswer codeFileBox"
  13608. v-if="commentDetail.works && commentDetail.type == 15"
  13609. @click="
  13610. openCocoPi(
  13611. 57,
  13612. commentIndexJson.toolIndex,
  13613. commentDetail.userid,
  13614. commentDetail.sName
  13615. )
  13616. "
  13617. >
  13618. <img src="../../assets/icon/codeFile.png" />
  13619. <div>点击打开CocoPi</div>
  13620. </div>
  13621. <div
  13622. class="worksAnswer"
  13623. v-if="commentDetail.works && commentDetail.type == 13"
  13624. >
  13625. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13626. </div>
  13627. <div class="scoreBox">
  13628. <span class="t">请输入分数</span>
  13629. <el-input-number
  13630. :disabled="courseDetail.userid != userid"
  13631. v-model="wScore"
  13632. :controls="false"
  13633. :min="0"
  13634. :max="100"
  13635. ></el-input-number>
  13636. </div>
  13637. <div class="scoreDetailBox">
  13638. <span class="t">评分评论</span>
  13639. <el-input
  13640. type="textarea"
  13641. :rows="5"
  13642. :disabled="courseDetail.userid != userid"
  13643. resize="none"
  13644. v-model="scoreDetail"
  13645. placeholder="请输入对学生的评价"
  13646. >
  13647. </el-input>
  13648. </div>
  13649. </div>
  13650. <span slot="footer" class="dialog-footer">
  13651. <el-button
  13652. @click="
  13653. (dialogVisibleScore = false),
  13654. (commentIndexJson = {}),
  13655. videoDetail.sources && videoDetail.sources[0]
  13656. ? (videoDetail.sources[0].src = '')
  13657. : ''
  13658. "
  13659. >取 消</el-button
  13660. >
  13661. <el-button
  13662. type="primary"
  13663. v-if="courseDetail.userid == userid"
  13664. @click="scoreWork(commentDetail.wid, commentDetail.sName)"
  13665. >确 定
  13666. </el-button>
  13667. </span>
  13668. </el-dialog>
  13669. <el-dialog
  13670. title="排序"
  13671. :visible.sync="dialogVisibleSentence"
  13672. :append-to-body="true"
  13673. width="1000px"
  13674. :before-close="handleClose"
  13675. class="dialog_diy dialog_diy3"
  13676. >
  13677. <div>
  13678. <div class="sentenBox">
  13679. <div
  13680. v-for="(st, stIndex) in sentenceList"
  13681. :key="stIndex"
  13682. style="padding-bottom: 20px"
  13683. >
  13684. <div
  13685. style="padding: 15px 0 10px 20px"
  13686. class="sentenceTitle"
  13687. :index="stIndex + 1"
  13688. >
  13689. 题目{{ stIndex + 1 }}:请选择正确顺序
  13690. </div>
  13691. <div class="cardList" v-if="st.chooseSenList">
  13692. <div class="cardBox">
  13693. <div
  13694. v-for="(r, rIndex) in st.chooseSenList"
  13695. :key="rIndex"
  13696. @click="returnCard(r, stIndex, rIndex)"
  13697. >
  13698. <el-tooltip
  13699. class="item"
  13700. effect="light"
  13701. :content="r"
  13702. placement="top"
  13703. v-if="r != '' && r != undefined"
  13704. >
  13705. <div
  13706. :class="{
  13707. isCard: r,
  13708. isChooseCard: r == '' || r == undefined
  13709. }"
  13710. >
  13711. <div>{{ r }}</div>
  13712. </div>
  13713. </el-tooltip>
  13714. <div
  13715. :class="{
  13716. isCard: r,
  13717. isChooseCard: r == '' || r == undefined
  13718. }"
  13719. v-else
  13720. >
  13721. <div>{{ r }}</div>
  13722. </div>
  13723. </div>
  13724. </div>
  13725. </div>
  13726. <div class="cardList" v-if="st.addChangeSen">
  13727. <div class="cardBox">
  13728. <div
  13729. v-for="(s, sIndex) in st.addChangeSen"
  13730. :key="sIndex"
  13731. @click="setRightAnswer(s, stIndex, sIndex)"
  13732. >
  13733. <el-tooltip
  13734. class="item"
  13735. effect="light"
  13736. :content="s"
  13737. placement="top"
  13738. v-if="s != '' && s != undefined"
  13739. >
  13740. <div
  13741. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13742. >
  13743. <div>{{ s }}</div>
  13744. </div>
  13745. </el-tooltip>
  13746. <div
  13747. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13748. v-else
  13749. >
  13750. <div>{{ s }}</div>
  13751. </div>
  13752. </div>
  13753. </div>
  13754. </div>
  13755. </div>
  13756. </div>
  13757. </div>
  13758. <span slot="footer" class="dialog-footer">
  13759. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  13760. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  13761. </span>
  13762. </el-dialog>
  13763. <el-dialog
  13764. title="排序"
  13765. :visible.sync="dialogVisibleSentenceTeacher"
  13766. :append-to-body="true"
  13767. width="1000px"
  13768. :before-close="handleClose"
  13769. class="dialog_diy dialog_diy3"
  13770. >
  13771. <div>
  13772. <div class="w_name">
  13773. 学生姓名:<span>{{ sStudent.student }}</span>
  13774. </div>
  13775. <div class="sentenBox">
  13776. <div
  13777. v-for="(st, stIndex) in sentenceList"
  13778. :key="stIndex"
  13779. style="padding-bottom: 20px"
  13780. >
  13781. <div
  13782. style="padding: 15px 0 10px 20px"
  13783. class="sentenceTitle"
  13784. :index="stIndex + 1"
  13785. >
  13786. 题目{{ stIndex + 1 }}:请选择正确顺序
  13787. </div>
  13788. <div class="cardList" v-if="st.chooseSenList">
  13789. <div class="cardBox">
  13790. <div
  13791. v-for="(r, rIndex) in st.chooseSenList"
  13792. :key="rIndex"
  13793. @click="returnCard(r, stIndex, rIndex)"
  13794. >
  13795. <el-tooltip
  13796. class="item"
  13797. effect="light"
  13798. :content="r"
  13799. placement="top"
  13800. v-if="r != '' && r != undefined"
  13801. >
  13802. <div
  13803. :class="{
  13804. isCard: r,
  13805. isChooseCard: r == '' || r == undefined
  13806. }"
  13807. >
  13808. <div>{{ r }}</div>
  13809. </div>
  13810. </el-tooltip>
  13811. <div
  13812. :class="{
  13813. isCard: r,
  13814. isChooseCard: r == '' || r == undefined
  13815. }"
  13816. v-else
  13817. >
  13818. <div>{{ r }}</div>
  13819. </div>
  13820. </div>
  13821. </div>
  13822. </div>
  13823. <div class="cardList" v-if="st.addChangeSen">
  13824. <div class="cardBox">
  13825. <div
  13826. v-for="(s, sIndex) in st.addChangeSen"
  13827. :key="sIndex"
  13828. @click="setRightAnswer(s, stIndex, sIndex)"
  13829. >
  13830. <el-tooltip
  13831. class="item"
  13832. effect="light"
  13833. :content="s"
  13834. placement="top"
  13835. v-if="s != '' && s != undefined"
  13836. >
  13837. <div
  13838. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13839. >
  13840. <div>{{ s }}</div>
  13841. </div>
  13842. </el-tooltip>
  13843. <div
  13844. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13845. v-else
  13846. >
  13847. <div>{{ s }}</div>
  13848. </div>
  13849. </div>
  13850. </div>
  13851. </div>
  13852. </div>
  13853. </div>
  13854. </div>
  13855. <span slot="footer" class="dialog-footer">
  13856. <el-button @click="dialogVisibleSentenceTeacher = false"
  13857. >取 消</el-button
  13858. >
  13859. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  13860. </span>
  13861. </el-dialog>
  13862. <el-dialog
  13863. title="排序"
  13864. :visible.sync="dialogVisibleSentence1"
  13865. :append-to-body="true"
  13866. width="1000px"
  13867. :before-close="handleClose"
  13868. class="dialog_diy dialog_diy3"
  13869. >
  13870. <div>
  13871. <div class="sentenBox">
  13872. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13873. {{ sentenceList1.stuName }}的作业
  13874. </div>
  13875. <div
  13876. v-for="(st, stIndex) in sentenceList1"
  13877. :key="stIndex"
  13878. style="padding-bottom: 20px"
  13879. >
  13880. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13881. 第{{ stIndex + 1 }}题
  13882. </div>
  13883. <div class="isWrong">
  13884. <div class="cardList1" v-if="st.chooseSenList">
  13885. <div class="cardBox">
  13886. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  13887. <el-tooltip
  13888. class="item"
  13889. effect="light"
  13890. :content="s"
  13891. placement="top"
  13892. >
  13893. <div class="isCard">
  13894. <div>{{ s }}</div>
  13895. </div>
  13896. </el-tooltip>
  13897. </div>
  13898. </div>
  13899. <div class="cardAnswerBox">
  13900. 组成句子:{{ st.chooseSenList.join(" ") }}
  13901. </div>
  13902. </div>
  13903. <div v-if="tType == 2" class="isTj">
  13904. <div class="isTjImg">
  13905. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13906. </div>
  13907. <div>已提交</div>
  13908. </div>
  13909. <div
  13910. class="answerRight isTj"
  13911. v-if="
  13912. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  13913. (tType == 1 || tType == 4)
  13914. "
  13915. >
  13916. <div class="isTjImg">
  13917. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13918. </div>
  13919. <div>回答正确</div>
  13920. </div>
  13921. <div
  13922. class="answerRight isTj"
  13923. v-if="
  13924. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13925. (tType == 1 || tType == 4)
  13926. "
  13927. >
  13928. <div class="isTjImg">
  13929. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  13930. </div>
  13931. <div>回答错误</div>
  13932. </div>
  13933. </div>
  13934. <div
  13935. v-if="
  13936. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13937. (tType == 1 || tType == 4)
  13938. "
  13939. >
  13940. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  13941. <div
  13942. class="cardList"
  13943. v-if="st.rightAnswer"
  13944. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  13945. >
  13946. <div class="cardBox">
  13947. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  13948. <el-tooltip
  13949. class="item"
  13950. effect="light"
  13951. :content="r"
  13952. placement="top"
  13953. >
  13954. <div class="isCard1">
  13955. <div>{{ r }}</div>
  13956. </div>
  13957. </el-tooltip>
  13958. </div>
  13959. </div>
  13960. <div class="cardAnswerBox">
  13961. 组成句子:{{ st.rightAnswer.join(" ") }}
  13962. </div>
  13963. </div>
  13964. </div>
  13965. </div>
  13966. </div>
  13967. </div>
  13968. <span slot="footer" class="dialog-footer">
  13969. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  13970. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  13971. >确 定</el-button
  13972. >
  13973. </span>
  13974. </el-dialog>
  13975. <el-dialog
  13976. title="教师提交作业"
  13977. :visible.sync="dialogVisibleWorks"
  13978. :append-to-body="true"
  13979. width="500px"
  13980. :before-close="handleClose"
  13981. class="dialog_change"
  13982. >
  13983. <div class="marginT">
  13984. <div class="w_name">
  13985. 学生姓名:<span>{{ sStudent.student }}</span>
  13986. </div>
  13987. <div>上传文件</div>
  13988. <div
  13989. class="chapter_add"
  13990. @click="addImg($event)"
  13991. v-if="studyJuri[0].cover.length == 0"
  13992. >
  13993. <div class="up_photo">
  13994. <img src="../../assets/uploadImg2.png" alt />
  13995. </div>
  13996. <!-- <input
  13997. type="file"
  13998. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  13999. style="display: none"
  14000. @change="beforeUpload1($event, 1)"
  14001. /> -->
  14002. <input
  14003. type="file"
  14004. accept="*"
  14005. style="display: none"
  14006. @change="beforeUpload1($event, 1)"
  14007. />
  14008. </div>
  14009. <!-- capture="camera" -->
  14010. <div
  14011. class="chapter_add"
  14012. style="
  14013. display: flex;
  14014. width: 100%;
  14015. flex-direction: row;
  14016. flex-wrap: wrap;
  14017. justify-content: flex-start;
  14018. padding: 15px 0;
  14019. "
  14020. v-if="studyJuri[0].cover.length > 0"
  14021. >
  14022. <div class="upCover">
  14023. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14024. <img :src="word" alt v-else-if="fileType == 1" />
  14025. <img :src="video" alt v-else-if="fileType == 2" />
  14026. <img :src="word2" alt v-else-if="fileType == 3" />
  14027. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14028. <div class="deleteWord" @click="clean(1)">
  14029. <img src="../../assets/icon/deleteWorks.png" alt />
  14030. </div>
  14031. </div>
  14032. </div>
  14033. </div>
  14034. <div
  14035. class="upload_send"
  14036. @click="addCourseWorksTeacher(taskCount)"
  14037. v-if="!proVisible"
  14038. >
  14039. 提交
  14040. </div>
  14041. </el-dialog>
  14042. <ImgDraw
  14043. :drawShow="drawShow"
  14044. @closeDraw="closeDraw"
  14045. @addImgDraw="addImgDraw"
  14046. :bg="bg"
  14047. ></ImgDraw>
  14048. <el-dialog
  14049. title="表格"
  14050. :visible.sync="dialogVisibleTable"
  14051. :append-to-body="true"
  14052. width="95%"
  14053. :before-close="handleClose"
  14054. class="dialog_diy"
  14055. >
  14056. <el-form>
  14057. <div
  14058. style="
  14059. display: flex;
  14060. align-items: center;
  14061. justify-content: space-between;
  14062. "
  14063. >
  14064. <span>表格内容</span>
  14065. <el-button type="primary" size="small" @click="returnTableText"
  14066. >还原模板</el-button
  14067. >
  14068. </div>
  14069. <Table
  14070. v-model="tableJson.text"
  14071. @change="change"
  14072. v-if="dialogVisibleTable"
  14073. ></Table>
  14074. </el-form>
  14075. <span slot="footer" class="dialog-footer">
  14076. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14077. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14078. </span>
  14079. </el-dialog>
  14080. <el-dialog
  14081. title="表格"
  14082. :visible.sync="dialogVisibleTableTeacher"
  14083. :append-to-body="true"
  14084. width="95%"
  14085. :before-close="handleClose"
  14086. class="dialog_diy"
  14087. >
  14088. <el-form>
  14089. <div class="w_name">
  14090. 学生姓名:<span>{{ sStudent.student }}</span>
  14091. </div>
  14092. <div>表格内容</div>
  14093. <Table
  14094. v-model="tableJson.text"
  14095. @change="change"
  14096. v-if="dialogVisibleTableTeacher"
  14097. ></Table>
  14098. </el-form>
  14099. <span slot="footer" class="dialog-footer">
  14100. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14101. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14102. </span>
  14103. </el-dialog>
  14104. <el-dialog
  14105. title="文档"
  14106. :visible.sync="dialogVisibleWord"
  14107. :append-to-body="true"
  14108. width="95%"
  14109. :before-close="handleClose"
  14110. class="dialog_diy"
  14111. >
  14112. <el-form>
  14113. <div
  14114. style="
  14115. display: flex;
  14116. align-items: center;
  14117. justify-content: space-between;
  14118. "
  14119. >
  14120. <span>文档内容</span>
  14121. <el-button type="primary" size="small" @click="returnWordText"
  14122. >还原模板</el-button
  14123. >
  14124. </div>
  14125. <editor-bar
  14126. v-model="wordJson.text"
  14127. v-if="dialogVisibleWord"
  14128. ></editor-bar>
  14129. </el-form>
  14130. <span slot="footer" class="dialog-footer">
  14131. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14132. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14133. </span>
  14134. </el-dialog>
  14135. <el-dialog
  14136. title="文档"
  14137. :visible.sync="dialogVisibleWordTeacher"
  14138. :append-to-body="true"
  14139. width="95%"
  14140. :before-close="handleClose"
  14141. class="dialog_diy"
  14142. >
  14143. <el-form>
  14144. <div class="w_name">
  14145. 学生姓名:<span>{{ sStudent.student }}</span>
  14146. </div>
  14147. <div>文档内容</div>
  14148. <editor-bar
  14149. v-model="wordJson.text"
  14150. v-if="dialogVisibleWordTeacher"
  14151. ></editor-bar>
  14152. </el-form>
  14153. <span slot="footer" class="dialog-footer">
  14154. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14155. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14156. </span>
  14157. </el-dialog>
  14158. <el-dialog
  14159. title="表格"
  14160. :visible.sync="dialogVisibleTable2"
  14161. :append-to-body="true"
  14162. width="95%"
  14163. :before-close="handleClose"
  14164. class="dialog_diy"
  14165. >
  14166. <el-form>
  14167. <div class="cont" v-html="tableJson.text"></div>
  14168. </el-form>
  14169. <span slot="footer" class="dialog-footer">
  14170. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14171. </span>
  14172. </el-dialog>
  14173. <el-dialog
  14174. title="文档"
  14175. :visible.sync="dialogVisibleTable3"
  14176. :append-to-body="true"
  14177. width="95%"
  14178. :before-close="handleClose"
  14179. class="dialog_diy"
  14180. >
  14181. <el-form>
  14182. <div class="cont" v-html="tableJson.text"></div>
  14183. </el-form>
  14184. <span slot="footer" class="dialog-footer">
  14185. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14186. </span>
  14187. </el-dialog>
  14188. <el-dialog
  14189. title="分组设置"
  14190. :visible.sync="dialogVisibleGroup"
  14191. :append-to-body="true"
  14192. width="95%"
  14193. :before-close="handleClose"
  14194. class="dialog_diy"
  14195. >
  14196. <div v-if="dialogVisibleGroup">
  14197. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14198. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14199. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14200. </div>
  14201. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14202. @click="lockChair">
  14203. 锁定位置
  14204. </div>
  14205. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14206. 解锁位置
  14207. </div> -->
  14208. <div class="group_switch">
  14209. <span>开放选座</span>
  14210. <el-switch
  14211. v-model="islock"
  14212. active-text=""
  14213. class="switchCss"
  14214. @change="lockChair"
  14215. ></el-switch>
  14216. </div>
  14217. <div
  14218. type="primary"
  14219. @click="updateGroup"
  14220. class="returnBtn"
  14221. style="background-color: #225bc7"
  14222. >
  14223. 分组设置
  14224. </div>
  14225. </div>
  14226. <div>
  14227. <div
  14228. class="g_d_box"
  14229. v-if="groupJson.group && groupStudent[toolindex]"
  14230. >
  14231. <div
  14232. class="g_d_group"
  14233. v-for="(g, gindex) in groupJson.group"
  14234. :key="gindex"
  14235. >
  14236. <div class="g_d_group_chair">
  14237. <div v-if="groupJson.number > 1">
  14238. <span
  14239. :class="{
  14240. isChair:
  14241. groupStudent[toolindex][gindex] &&
  14242. groupStudent[toolindex][gindex][0],
  14243. updateChair:
  14244. courseDetail.userid == userid &&
  14245. groupStudent[toolindex][gindex] &&
  14246. groupStudent[toolindex][gindex][0] &&
  14247. groupJson.islock == 2
  14248. }"
  14249. ><span
  14250. class="updateChairBtn"
  14251. @click="
  14252. updateGroupChair(
  14253. groupStudent[toolindex][gindex] &&
  14254. groupStudent[toolindex][gindex][0]
  14255. )
  14256. "
  14257. >修改</span
  14258. ></span
  14259. ><span>{{
  14260. groupStudent[toolindex][gindex] &&
  14261. groupStudent[toolindex][gindex][0]
  14262. ? groupStudent[toolindex][gindex] &&
  14263. groupStudent[toolindex][gindex][0].name
  14264. : "空位置"
  14265. }}</span>
  14266. </div>
  14267. <div v-if="groupJson.number > 4">
  14268. <span
  14269. :class="{
  14270. isChair:
  14271. groupStudent[toolindex][gindex] &&
  14272. groupStudent[toolindex][gindex][4],
  14273. updateChair:
  14274. courseDetail.userid == userid &&
  14275. groupStudent[toolindex][gindex] &&
  14276. groupStudent[toolindex][gindex][4] &&
  14277. groupJson.islock == 2
  14278. }"
  14279. ><span
  14280. class="updateChairBtn"
  14281. @click="
  14282. updateGroupChair(
  14283. groupStudent[toolindex][gindex] &&
  14284. groupStudent[toolindex][gindex][4]
  14285. )
  14286. "
  14287. >修改</span
  14288. ></span
  14289. ><span>{{
  14290. groupStudent[toolindex][gindex] &&
  14291. groupStudent[toolindex][gindex][4]
  14292. ? groupStudent[toolindex][gindex] &&
  14293. groupStudent[toolindex][gindex][4].name
  14294. : "空位置"
  14295. }}</span>
  14296. </div>
  14297. <div v-if="groupJson.number > 8">
  14298. <span
  14299. :class="{
  14300. isChair:
  14301. groupStudent[toolindex][gindex] &&
  14302. groupStudent[toolindex][gindex][8],
  14303. updateChair:
  14304. courseDetail.userid == userid &&
  14305. groupStudent[toolindex][gindex] &&
  14306. groupStudent[toolindex][gindex][8] &&
  14307. groupJson.islock == 2
  14308. }"
  14309. ><span
  14310. class="updateChairBtn"
  14311. @click="
  14312. updateGroupChair(
  14313. groupStudent[toolindex][gindex] &&
  14314. groupStudent[toolindex][gindex][8]
  14315. )
  14316. "
  14317. >修改</span
  14318. ></span
  14319. ><span>{{
  14320. groupStudent[toolindex][gindex] &&
  14321. groupStudent[toolindex][gindex][8]
  14322. ? groupStudent[toolindex][gindex] &&
  14323. groupStudent[toolindex][gindex][8].name
  14324. : "空位置"
  14325. }}</span>
  14326. </div>
  14327. </div>
  14328. <div class="g_d_group_tableBox">
  14329. <div class="g_d_group_chair2">
  14330. <div v-if="groupJson.number > 2">
  14331. <span
  14332. :class="{
  14333. isChair:
  14334. groupStudent[toolindex][gindex] &&
  14335. groupStudent[toolindex][gindex][2],
  14336. updateChair:
  14337. courseDetail.userid == userid &&
  14338. groupStudent[toolindex][gindex] &&
  14339. groupStudent[toolindex][gindex][2] &&
  14340. groupJson.islock == 2
  14341. }"
  14342. ><span
  14343. class="updateChairBtn"
  14344. @click="
  14345. updateGroupChair(
  14346. groupStudent[toolindex][gindex] &&
  14347. groupStudent[toolindex][gindex][2]
  14348. )
  14349. "
  14350. >修改</span
  14351. ></span
  14352. ><span>{{
  14353. groupStudent[toolindex][gindex] &&
  14354. groupStudent[toolindex][gindex][2]
  14355. ? groupStudent[toolindex][gindex] &&
  14356. groupStudent[toolindex][gindex][2].name
  14357. : "空位置"
  14358. }}</span>
  14359. </div>
  14360. <div v-if="groupJson.number > 6">
  14361. <span
  14362. :class="{
  14363. isChair:
  14364. groupStudent[toolindex][gindex] &&
  14365. groupStudent[toolindex][gindex][6],
  14366. updateChair:
  14367. courseDetail.userid == userid &&
  14368. groupStudent[toolindex][gindex] &&
  14369. groupStudent[toolindex][gindex][6] &&
  14370. groupJson.islock == 2
  14371. }"
  14372. ><span
  14373. class="updateChairBtn"
  14374. @click="
  14375. updateGroupChair(
  14376. groupStudent[toolindex][gindex] &&
  14377. groupStudent[toolindex][gindex][6]
  14378. )
  14379. "
  14380. >修改</span
  14381. ></span
  14382. ><span>{{
  14383. groupStudent[toolindex][gindex] &&
  14384. groupStudent[toolindex][gindex][6]
  14385. ? groupStudent[toolindex][gindex] &&
  14386. groupStudent[toolindex][gindex][6].name
  14387. : "空位置"
  14388. }}</span>
  14389. </div>
  14390. </div>
  14391. <div class="g_d_group_table">
  14392. <div>
  14393. {{ g.name }}
  14394. </div>
  14395. <div>
  14396. <div
  14397. v-if="
  14398. courseDetail.userid == userid && groupJson.islock == 2
  14399. "
  14400. @click="deleteGroupChair(gindex)"
  14401. >
  14402. 移除组员
  14403. </div>
  14404. <div
  14405. @click="selectGroup(gindex)"
  14406. v-else-if="
  14407. groupStudentUid[toolindex] &&
  14408. groupStudentUid[toolindex][gindex].indexOf(userid) ==
  14409. -1
  14410. "
  14411. >
  14412. 加入分组
  14413. </div>
  14414. <div
  14415. @click="
  14416. exitGroup(
  14417. groupStudent[toolindex][gindex] &&
  14418. groupStudent[toolindex][gindex][
  14419. groupStudentUid[toolindex][gindex].indexOf(userid)
  14420. ].id
  14421. )
  14422. "
  14423. v-else-if="
  14424. groupStudentUid[toolindex] &&
  14425. groupStudentUid[toolindex][gindex].indexOf(userid) !=
  14426. -1
  14427. "
  14428. >
  14429. 退出分组
  14430. </div>
  14431. </div>
  14432. </div>
  14433. <div class="g_d_group_chair2">
  14434. <div v-if="groupJson.number > 3">
  14435. <span
  14436. :class="{
  14437. isChair:
  14438. groupStudent[toolindex][gindex] &&
  14439. groupStudent[toolindex][gindex][3],
  14440. updateChair:
  14441. courseDetail.userid == userid &&
  14442. groupStudent[toolindex][gindex] &&
  14443. groupStudent[toolindex][gindex][3] &&
  14444. groupJson.islock == 2
  14445. }"
  14446. ><span
  14447. class="updateChairBtn"
  14448. @click="
  14449. updateGroupChair(
  14450. groupStudent[toolindex][gindex] &&
  14451. groupStudent[toolindex][gindex][3]
  14452. )
  14453. "
  14454. >修改</span
  14455. ></span
  14456. ><span>{{
  14457. groupStudent[toolindex][gindex] &&
  14458. groupStudent[toolindex][gindex][3]
  14459. ? groupStudent[toolindex][gindex] &&
  14460. groupStudent[toolindex][gindex][3].name
  14461. : "空位置"
  14462. }}</span>
  14463. </div>
  14464. <div v-if="groupJson.number > 7">
  14465. <span
  14466. :class="{
  14467. isChair:
  14468. groupStudent[toolindex][gindex] &&
  14469. groupStudent[toolindex][gindex][7],
  14470. updateChair:
  14471. courseDetail.userid == userid &&
  14472. groupStudent[toolindex][gindex] &&
  14473. groupStudent[toolindex][gindex][7] &&
  14474. groupJson.islock == 2
  14475. }"
  14476. ><span
  14477. class="updateChairBtn"
  14478. @click="
  14479. updateGroupChair(
  14480. groupStudent[toolindex][gindex] &&
  14481. groupStudent[toolindex][gindex][7]
  14482. )
  14483. "
  14484. >修改</span
  14485. ></span
  14486. ><span>{{
  14487. groupStudent[toolindex][gindex] &&
  14488. groupStudent[toolindex][gindex][7]
  14489. ? groupStudent[toolindex][gindex] &&
  14490. groupStudent[toolindex][gindex][7].name
  14491. : "空位置"
  14492. }}</span>
  14493. </div>
  14494. </div>
  14495. </div>
  14496. <div class="g_d_group_chair">
  14497. <div v-if="groupJson.number > 1">
  14498. <span
  14499. :class="{
  14500. isChair:
  14501. groupStudent[toolindex][gindex] &&
  14502. groupStudent[toolindex][gindex][1],
  14503. updateChair:
  14504. courseDetail.userid == userid &&
  14505. groupStudent[toolindex][gindex] &&
  14506. groupStudent[toolindex][gindex][1] &&
  14507. groupJson.islock == 2
  14508. }"
  14509. ><span
  14510. class="updateChairBtn"
  14511. @click="
  14512. updateGroupChair(
  14513. groupStudent[toolindex][gindex] &&
  14514. groupStudent[toolindex][gindex][1]
  14515. )
  14516. "
  14517. >修改</span
  14518. ></span
  14519. ><span>{{
  14520. groupStudent[toolindex][gindex] &&
  14521. groupStudent[toolindex][gindex][1]
  14522. ? groupStudent[toolindex][gindex] &&
  14523. groupStudent[toolindex][gindex][1].name
  14524. : "空位置"
  14525. }}</span>
  14526. </div>
  14527. <div v-if="groupJson.number > 5">
  14528. <span
  14529. :class="{
  14530. isChair:
  14531. groupStudent[toolindex][gindex] &&
  14532. groupStudent[toolindex][gindex][5],
  14533. updateChair:
  14534. courseDetail.userid == userid &&
  14535. groupStudent[toolindex][gindex] &&
  14536. groupStudent[toolindex][gindex][5] &&
  14537. groupJson.islock == 2
  14538. }"
  14539. ><span
  14540. class="updateChairBtn"
  14541. @click="
  14542. updateGroupChair(
  14543. groupStudent[toolindex][gindex] &&
  14544. groupStudent[toolindex][gindex][5]
  14545. )
  14546. "
  14547. >修改</span
  14548. ></span
  14549. ><span>{{
  14550. groupStudent[toolindex][gindex] &&
  14551. groupStudent[toolindex][gindex][5]
  14552. ? groupStudent[toolindex][gindex] &&
  14553. groupStudent[toolindex][gindex][5].name
  14554. : "空位置"
  14555. }}</span>
  14556. </div>
  14557. <div v-if="groupJson.number > 9">
  14558. <span
  14559. :class="{
  14560. isChair:
  14561. groupStudent[toolindex][gindex] &&
  14562. groupStudent[toolindex][gindex][9],
  14563. updateChair:
  14564. courseDetail.userid == userid &&
  14565. groupStudent[toolindex][gindex] &&
  14566. groupStudent[toolindex][gindex][9] &&
  14567. groupJson.islock == 2
  14568. }"
  14569. ><span
  14570. class="updateChairBtn"
  14571. @click="
  14572. updateGroupChair(
  14573. groupStudent[toolindex][gindex] &&
  14574. groupStudent[toolindex][gindex][9]
  14575. )
  14576. "
  14577. >修改</span
  14578. ></span
  14579. ><span>{{
  14580. groupStudent[toolindex][gindex] &&
  14581. groupStudent[toolindex][gindex][9]
  14582. ? groupStudent[toolindex][gindex] &&
  14583. groupStudent[toolindex][gindex][9].name
  14584. : "空位置"
  14585. }}</span>
  14586. </div>
  14587. </div>
  14588. </div>
  14589. </div>
  14590. </div>
  14591. </div>
  14592. <span slot="footer" class="dialog-footer">
  14593. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14594. </span>
  14595. </el-dialog>
  14596. <el-dialog
  14597. title="分组设置"
  14598. :visible.sync="dialogVisibleGroup2"
  14599. :append-to-body="true"
  14600. width="650px"
  14601. :before-close="handleClose"
  14602. class="dialog_diy"
  14603. >
  14604. <div class="groupBox">
  14605. <div v-if="groupJson2.group" class="groupContent">
  14606. <div class="groupTitle">请设置小组数量及名称</div>
  14607. <div
  14608. v-for="(item, index) in groupJson2.group"
  14609. :key="index"
  14610. class="groupName"
  14611. >
  14612. <span class="groupn">第{{ index + 1 }}组名称:</span>
  14613. <el-input
  14614. v-model="item.name"
  14615. placeholder="请输入名称..."
  14616. style="width: 250px"
  14617. ></el-input>
  14618. <!-- <div class="groupBtn">
  14619. <el-button type="primary" size="small" @click="addGroup(index)">
  14620. 添加</el-button>
  14621. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14622. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14623. </div> -->
  14624. </div>
  14625. </div>
  14626. <div class="groupContent">
  14627. <div class="groupTitle">请设置每组人数</div>
  14628. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14629. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14630. <el-input
  14631. v-model="groupJson2.number"
  14632. style="width: 150px"
  14633. placeholder="请输入2-10的数字"
  14634. @change="numberPan"
  14635. ></el-input>
  14636. </div>
  14637. </div>
  14638. <span slot="footer" class="dialog-footer">
  14639. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  14640. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  14641. </span>
  14642. </el-dialog>
  14643. <el-dialog
  14644. title="作业提交"
  14645. :visible.sync="dialogVisibleGroupWork"
  14646. :append-to-body="true"
  14647. width="500px"
  14648. :before-close="handleClose"
  14649. class="dialog_change"
  14650. >
  14651. <div class="marginT">
  14652. <div>上传文件</div>
  14653. <div
  14654. class="chapter_add"
  14655. @click="addImg($event)"
  14656. v-if="studyJuri[0].cover.length == 0"
  14657. >
  14658. <div class="up_photo">
  14659. <img src="../../assets/icon/uploadImg.png" alt />
  14660. </div>
  14661. <!-- <input
  14662. type="file"
  14663. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14664. style="display: none"
  14665. @change="beforeUpload1($event, 1)"
  14666. /> -->
  14667. <input
  14668. type="file"
  14669. accept="*"
  14670. style="display: none"
  14671. @change="beforeUpload1($event, 1)"
  14672. />
  14673. </div>
  14674. <!-- capture="camera" -->
  14675. <div
  14676. class="chapter_add"
  14677. style="
  14678. display: flex;
  14679. width: 100%;
  14680. flex-direction: row;
  14681. flex-wrap: wrap;
  14682. justify-content: flex-start;
  14683. padding: 15px 0;
  14684. "
  14685. v-if="studyJuri[0].cover.length > 0"
  14686. >
  14687. <div class="upCover">
  14688. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14689. <img :src="word" alt v-else-if="fileType == 1" />
  14690. <img :src="video" alt v-else-if="fileType == 2" />
  14691. <img :src="word2" alt v-else-if="fileType == 3" />
  14692. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14693. <div class="deleteWord" @click="clean(1)">
  14694. <img src="../../assets/icon/deleteWorks.png" alt />
  14695. </div>
  14696. </div>
  14697. </div>
  14698. </div>
  14699. <div
  14700. class="upload_send"
  14701. @click="addCourseWorks2(taskCount)"
  14702. v-if="!proVisible"
  14703. >
  14704. 提交
  14705. </div>
  14706. </el-dialog>
  14707. <el-dialog
  14708. title="修改分组"
  14709. :visible.sync="dialogVisibleUpdateGroup"
  14710. :append-to-body="true"
  14711. width="350px"
  14712. :before-close="handleClose"
  14713. class="dialog_diy"
  14714. >
  14715. <div>
  14716. <h2>
  14717. {{ this.updateGroupUser.name }}
  14718. </h2>
  14719. <div style="color: rgb(171 171 171); margin-top: 10px">
  14720. 请选择要进入的分组
  14721. </div>
  14722. <el-radio-group v-model="checkChair">
  14723. <el-radio
  14724. style="display: block; margin-top: 20px"
  14725. v-for="(item, index) in updateGroupArray"
  14726. :label="item.label"
  14727. :key="index"
  14728. >{{ item.name }}</el-radio
  14729. >
  14730. </el-radio-group>
  14731. </div>
  14732. <span slot="footer" class="dialog-footer">
  14733. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  14734. <el-button type="primary" @click="updateChair">确定</el-button>
  14735. </span>
  14736. </el-dialog>
  14737. <el-dialog
  14738. title="移除组员"
  14739. :visible.sync="dialogVisibleDeleteGroup"
  14740. :append-to-body="true"
  14741. width="350px"
  14742. :before-close="handleClose"
  14743. class="dialog_diy"
  14744. >
  14745. <div>
  14746. <h2>
  14747. {{ this.deleteGroupArray.name }}
  14748. </h2>
  14749. <div style="color: rgb(171 171 171); margin-top: 10px">
  14750. 请选择要删除的组员
  14751. </div>
  14752. <el-checkbox-group v-model="checkDeleteGroup">
  14753. <el-checkbox
  14754. style="display: flex; margin-top: 20px"
  14755. v-for="(item, index) in deleteGroupUser"
  14756. :label="item.userid"
  14757. :key="index"
  14758. >{{ item.name }}</el-checkbox
  14759. >
  14760. </el-checkbox-group>
  14761. </div>
  14762. <span slot="footer" class="dialog-footer">
  14763. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  14764. <el-button type="primary" @click="deleteChair">确定</el-button>
  14765. </span>
  14766. </el-dialog>
  14767. <el-dialog
  14768. title="批量上传"
  14769. :visible.sync="dialogVisiblePl"
  14770. :append-to-body="true"
  14771. width="700px"
  14772. :before-close="handleClose"
  14773. class="dialog_change"
  14774. >
  14775. <div class="marginT">
  14776. <div class="plworkBox">
  14777. <div
  14778. class="chapter_add"
  14779. style="
  14780. display: flex;
  14781. width: 150px;
  14782. flex-direction: row;
  14783. flex-wrap: wrap;
  14784. justify-content: flex-start;
  14785. margin: 0 10px 10px 0;
  14786. "
  14787. v-for="(item, index) in plworkFile"
  14788. :key="index"
  14789. >
  14790. <div class="upCover2">
  14791. <img
  14792. :src="item.url"
  14793. alt
  14794. v-if="item.fileType == 1"
  14795. @click="previewImg(item.url)"
  14796. />
  14797. <img :src="word" alt v-else-if="item.fileType == 4" />
  14798. <img :src="video" alt v-else />
  14799. <!-- <span class="picName">{{ item.name }}</span> -->
  14800. <!-- <el-input
  14801. v-model="item.username"
  14802. placeholder="请输入学生名字"
  14803. style="margin-top: 10px"
  14804. ></el-input> -->
  14805. <div
  14806. class="pl_select_box"
  14807. @click="
  14808. getUpdateMore(true, checkUpload(), item.username, index)
  14809. "
  14810. >
  14811. {{ getSName(item.username) }}
  14812. </div>
  14813. <!-- <el-select
  14814. style="margin-top: 10px"
  14815. v-model="item.username"
  14816. filterable
  14817. allow-create
  14818. placeholder="请选择学生"
  14819. >
  14820. <el-option
  14821. v-for="item1 in checkUpload()"
  14822. :key="item1.userid"
  14823. :label="item1.name ? item1.name : item1.username"
  14824. :value="item1.userid"
  14825. >
  14826. </el-option>
  14827. </el-select> -->
  14828. <div class="deleteWord" @click="clean2(index)">
  14829. <img src="../../assets/icon/deleteWorks.png" alt />
  14830. </div>
  14831. </div>
  14832. </div>
  14833. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14834. <div class="up_photo2">
  14835. <img src="../../assets/icon/plwork.png" alt />
  14836. <span>点击上传文件</span>
  14837. </div>
  14838. <input
  14839. type="file"
  14840. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14841. multiple="multiple"
  14842. style="display: none"
  14843. @change="beforeUpload3($event, 6)"
  14844. />
  14845. </div>
  14846. </div>
  14847. </div>
  14848. <!-- capture="camera" -->
  14849. <div
  14850. class="upload_send"
  14851. @click="addCourseWorksPl(taskCount)"
  14852. v-if="!proVisible2"
  14853. >
  14854. 提交
  14855. </div>
  14856. </el-dialog>
  14857. <el-dialog
  14858. title="修改名称"
  14859. :visible.sync="dialogVisibleSname"
  14860. width="500px"
  14861. :before-close="handleClose"
  14862. class="dialog_diy"
  14863. center
  14864. >
  14865. <div
  14866. style="
  14867. text-align: center;
  14868. display: flex;
  14869. align-items: center;
  14870. justify-content: center;
  14871. "
  14872. >
  14873. <span class="tian1">名称</span>
  14874. <div
  14875. class="pl_select_box"
  14876. style="margin-left: 10px; width: 200px"
  14877. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  14878. >
  14879. {{ getSName(worksSName) }}
  14880. </div>
  14881. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  14882. placeholder="请选择学生">
  14883. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  14884. :value="item.userid">
  14885. </el-option>
  14886. </el-select> -->
  14887. <!-- <el-input
  14888. v-model="worksSName"
  14889. style="width: 250px; margin: 15px 0px"
  14890. ></el-input> -->
  14891. </div>
  14892. <span slot="footer" class="dialog-footer">
  14893. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  14894. <el-button type="primary" @click="updateName">确 定</el-button>
  14895. </span>
  14896. </el-dialog>
  14897. <el-dialog
  14898. title="英语写作"
  14899. :visible.sync="engDialogVisible"
  14900. :append-to-body="true"
  14901. width="800px"
  14902. :before-close="handleClose"
  14903. class="dialog_diy"
  14904. >
  14905. <onlineWrite
  14906. v-if="engDialogVisible"
  14907. :englishList="englishList"
  14908. :myAnswerList1="myAnswerList1"
  14909. ref="engJson"
  14910. ></onlineWrite>
  14911. <span slot="footer" class="dialog-footer" style="text-align: center;">
  14912. <el-button @click="engDialogVisible = false">取 消</el-button>
  14913. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  14914. </span>
  14915. </el-dialog>
  14916. <el-dialog
  14917. title="英语写作"
  14918. :visible.sync="engUpdateDialogVisible"
  14919. :append-to-body="true"
  14920. width="800px"
  14921. :before-close="handleClose"
  14922. class="dialog_diy fullStyle"
  14923. >
  14924. <div class="engUpBox">
  14925. <div class="engUpTop">
  14926. <div class="engTitle">
  14927. <div>作文题目:</div>
  14928. <div>{{ englishList1.engTitle }}</div>
  14929. </div>
  14930. <div class="engText">
  14931. <div>作文内容:</div>
  14932. <div
  14933. class="cont"
  14934. v-html="englishList1.englishText"
  14935. style="white-space: pre-line;"
  14936. @click="checkImg(getImgList(englishList1.englishText))"
  14937. ></div>
  14938. </div>
  14939. </div>
  14940. <div
  14941. class="correctBox"
  14942. :style="{ height: `calc(100% - ${topHeight}px)` }"
  14943. >
  14944. <div class="oldBox">
  14945. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  14946. <div class="oldText">
  14947. <div class="detailBox">
  14948. <div class="oldDetail">
  14949. <div>标题:</div>
  14950. <div>{{ oldEnglishJson.engTitle }}</div>
  14951. </div>
  14952. <div class="oldDetail1">
  14953. <div>正文:</div>
  14954. <div
  14955. v-html="oldEnglishJson.engText"
  14956. style="white-space: pre-line;"
  14957. ></div>
  14958. </div>
  14959. <div
  14960. class="oldDetail"
  14961. v-if="
  14962. oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0
  14963. "
  14964. >
  14965. <div>图片:</div>
  14966. <div class="oldImg">
  14967. <img :src="oldEnglishJson.imgList[0].url" alt="" />
  14968. </div>
  14969. </div>
  14970. </div>
  14971. </div>
  14972. </div>
  14973. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  14974. <div class="oldMes" style="background: #aacaff;">
  14975. {{ userMes[0].username }}
  14976. </div>
  14977. <div class="oldText">
  14978. <div class="detailBox" style="position: relative;">
  14979. <div class="oldDetail">
  14980. <div>标题:</div>
  14981. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14982. <div v-else v-html="newEnglishList.engTitle"></div>
  14983. </div>
  14984. <div class="oldDetail">
  14985. <div>正文:</div>
  14986. <el-input
  14987. v-if="greyType"
  14988. type="textarea"
  14989. :rows="10"
  14990. resize="none"
  14991. v-model="newEnglishList.engText"
  14992. @input="gx"
  14993. />
  14994. <correctText
  14995. :newText="newEnglishList.engText"
  14996. :oldData="oldEnglishJson.engText"
  14997. />
  14998. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  14999. </div>
  15000. <div style="position: absolute;bottom: -25px;">
  15001. 注:红色划线字为删除,绿色背景白色字为新添加.
  15002. </div>
  15003. <el-button
  15004. @click="isUpdateCorrect(newEnglishList.engText, 1)"
  15005. class="correctCss"
  15006. :style="{ right: greyType == false ? '0' : '80px' }"
  15007. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15008. >
  15009. <el-button
  15010. @click="aiCorrect(newEnglishList.engText, 1)"
  15011. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15012. v-if="!greyType"
  15013. >AI批注</el-button
  15014. >
  15015. <el-button
  15016. @click="addCorrect"
  15017. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15018. v-if="greyType"
  15019. >确定</el-button
  15020. >
  15021. </div>
  15022. </div>
  15023. </div>
  15024. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15025. <div
  15026. class="oldMes"
  15027. style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;"
  15028. v-if="newEnglishList1.length > 0"
  15029. >
  15030. <div
  15031. v-if="isNoUserid"
  15032. class="allName"
  15033. :style="{
  15034. minWidth: `calc(100% / ${engListLength})`,
  15035. background: newEngIndex == -1 ? '#aacaff' : ''
  15036. }"
  15037. @click="setEngText(-1)"
  15038. style="background: #aacaff;"
  15039. >
  15040. {{ userMes[0].username }}
  15041. </div>
  15042. <div
  15043. v-for="(item, index) in newEnglishList1"
  15044. :key="index"
  15045. class="allName"
  15046. :style="{
  15047. minWidth: `calc(100% / ${engListLength})`,
  15048. background: index == newEngIndex ? '#aacaff' : ''
  15049. }"
  15050. @click="setEngText(index)"
  15051. >
  15052. {{ item.username }}
  15053. </div>
  15054. </div>
  15055. <div class="oldMes" style="background: #aacaff;" v-else>
  15056. {{ userMes[0].username }}
  15057. </div>
  15058. <div
  15059. class="oldText"
  15060. v-if="
  15061. newEngIndex == -1 &&
  15062. isNoUserid == true &&
  15063. newEnglishList1.length
  15064. "
  15065. >
  15066. <div class="detailBox" style="position: relative;">
  15067. <div class="oldDetail">
  15068. <div>标题:</div>
  15069. <el-input
  15070. v-if="greyType"
  15071. v-model="oldEnglishJson1.engTitle"
  15072. />
  15073. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15074. </div>
  15075. <div class="oldDetail">
  15076. <div>正文:</div>
  15077. <el-input
  15078. v-if="greyType"
  15079. type="textarea"
  15080. :rows="10"
  15081. resize="none"
  15082. v-model="oldEnglishJson1.engText"
  15083. @input="gx"
  15084. />
  15085. <correctText
  15086. v-else
  15087. :newText="oldEnglishJson1.engText"
  15088. :oldData="oldEnglishJson.engText"
  15089. />
  15090. </div>
  15091. <div style="position: absolute;bottom: -25px;">
  15092. 注:红色划线字为删除,绿色背景白色字为新添加.
  15093. </div>
  15094. <el-button
  15095. @click="isUpdateCorrect(oldEnglishJson1.engText, 2)"
  15096. class="correctCss"
  15097. :style="{ right: greyType == false ? '0' : '80px' }"
  15098. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15099. >
  15100. <el-button
  15101. @click="aiCorrect(oldEnglishJson1.engText, 2)"
  15102. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15103. v-if="!greyType"
  15104. >AI批注</el-button
  15105. >
  15106. <el-button
  15107. @click="addCorrect"
  15108. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15109. v-if="greyType"
  15110. >确定</el-button
  15111. >
  15112. </div>
  15113. </div>
  15114. <div class="oldText" v-else-if="newEngIndex == -1">
  15115. <div class="detailBox" style="position: relative;">
  15116. <div class="oldDetail">
  15117. <div>标题:</div>
  15118. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15119. <div v-else v-html="newEnglishList.engTitle"></div>
  15120. </div>
  15121. <div class="oldDetail">
  15122. <div>正文:</div>
  15123. <el-input
  15124. v-if="greyType"
  15125. type="textarea"
  15126. :rows="10"
  15127. resize="none"
  15128. v-model="newEnglishList.engText"
  15129. @input="gx"
  15130. />
  15131. <correctText
  15132. v-else
  15133. :newText="newEnglishList.engText"
  15134. :oldData="oldEnglishJson.engText"
  15135. />
  15136. </div>
  15137. <div style="position: absolute;bottom: -25px;">
  15138. 注:红色划线字为删除,绿色背景白色字为新添加.
  15139. </div>
  15140. <el-button
  15141. @click="isUpdateCorrect(newEnglishList.engText, 3)"
  15142. class="correctCss"
  15143. :style="{ right: greyType == false ? '0' : '80px' }"
  15144. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15145. >
  15146. <el-button
  15147. @click="aiCorrect(newEnglishList.engText, 3)"
  15148. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15149. v-if="!greyType"
  15150. >AI批注</el-button
  15151. >
  15152. <el-button
  15153. @click="addCorrect"
  15154. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15155. v-if="greyType"
  15156. >确定</el-button
  15157. >
  15158. </div>
  15159. </div>
  15160. <div
  15161. class="oldText"
  15162. v-else-if="newEngIndex > -1 && newEnglishList1.length > 0"
  15163. >
  15164. <div class="detailBox" style="position: relative;">
  15165. <div class="oldDetail">
  15166. <div>标题:</div>
  15167. <div
  15168. v-if="
  15169. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15170. "
  15171. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15172. ></div>
  15173. <div v-else>
  15174. <el-input
  15175. v-if="greyType"
  15176. v-model="newEnglishList1[newEngIndex].cWork.engTitle"
  15177. />
  15178. <div
  15179. v-else
  15180. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15181. ></div>
  15182. </div>
  15183. </div>
  15184. <div class="oldDetail">
  15185. <div>正文:</div>
  15186. <correctText
  15187. v-if="
  15188. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15189. "
  15190. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15191. :oldData="oldEnglishJson.engText"
  15192. />
  15193. <div v-else>
  15194. <el-input
  15195. v-if="greyType"
  15196. type="textarea"
  15197. :rows="10"
  15198. resize="none"
  15199. v-model="newEnglishList1[newEngIndex].cWork.engText"
  15200. @input="gx"
  15201. />
  15202. <correctText
  15203. v-else
  15204. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15205. :oldData="oldEnglishJson.engText"
  15206. />
  15207. </div>
  15208. </div>
  15209. <div style="position: absolute;bottom: -25px;">
  15210. 注:红色划线字为删除,绿色背景白色字为新添加.
  15211. </div>
  15212. <el-button
  15213. @click="
  15214. isUpdateCorrect(
  15215. newEnglishList1[newEngIndex].cWork.engText,
  15216. 4
  15217. )
  15218. "
  15219. class="correctCss"
  15220. :style="{ right: greyType == false ? '0' : '80px' }"
  15221. v-if="
  15222. !greyType &&
  15223. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15224. "
  15225. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15226. >
  15227. <el-button
  15228. @click="
  15229. aiCorrect(newEnglishList1[newEngIndex].cWork.engText, 4)
  15230. "
  15231. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15232. v-if="
  15233. !greyType &&
  15234. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15235. "
  15236. >AI批注</el-button
  15237. >
  15238. <el-button
  15239. @click="addCorrect"
  15240. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15241. v-if="greyType"
  15242. >确定</el-button
  15243. >
  15244. </div>
  15245. </div>
  15246. </div>
  15247. </div>
  15248. </div>
  15249. <span slot="footer" class="dialog-footer">
  15250. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15251. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15252. </span>
  15253. </el-dialog>
  15254. <englishEva
  15255. :evaEngJson="evaEngJson"
  15256. :engEvaDialogVisible.sync="engEvaDialogVisible"
  15257. :uid="userid"
  15258. :tType="tType"
  15259. :courseDetail="courseDetail"
  15260. ></englishEva>
  15261. <interVideo
  15262. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15263. :videoJson="videoJson"
  15264. :userid="userid"
  15265. :id="id"
  15266. :courseType="courseType"
  15267. :taskCount="taskCount"
  15268. :toolindex="toolindex"
  15269. :videoType="videoType"
  15270. ></interVideo>
  15271. <UpdateMore
  15272. :dialogVisibleMember.sync="dialogVisibleMember"
  15273. :cList="uploadStudentJuri"
  15274. :userid="userid"
  15275. :searchTN="worksSName2"
  15276. @setPlname="setPlname"
  15277. ></UpdateMore>
  15278. <!-- <wordCloud
  15279. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15280. :data="wordCloudData"
  15281. ></wordCloud> -->
  15282. <el-dialog
  15283. title="词云"
  15284. :visible.sync="dialogVisibleWordCloud"
  15285. width="30%"
  15286. class="dialog_diy"
  15287. :before-close="handleClose">
  15288. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15289. </el-dialog>
  15290. <el-dialog
  15291. title="挑人"
  15292. :visible.sync="dialogVisiblePickPeople"
  15293. width="650px"
  15294. :before-close="handleClose"
  15295. class="dialog_diy"
  15296. center
  15297. >
  15298. <div class="pick_box">
  15299. <div
  15300. class="noWorksName"
  15301. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15302. v-for="(item, index) in uploadStudentJuri"
  15303. :key="index"
  15304. @click="pickStudent(item)"
  15305. >
  15306. {{ item.name }}
  15307. </div>
  15308. </div>
  15309. </el-dialog>
  15310. <EnglishVoice
  15311. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  15312. :englishVoiceJson="englishVoiceJson"
  15313. :userid="userid"
  15314. :id="id"
  15315. :courseType="courseType"
  15316. :taskCount="taskCount"
  15317. :toolindex="toolindex"
  15318. @selectSWorks="selectSWorks"
  15319. @selectStudent="selectStudent"
  15320. :englishVoiceJsonWork="englishVoiceJsonWork"
  15321. ></EnglishVoice>
  15322. <checkEnglishVoice
  15323. :englishVoiceJson="englishVoiceJson"
  15324. :userid="userid"
  15325. :dialogVisibleENScore.sync="dialogVisibleENScore"
  15326. :commentDetail="commentDetail"
  15327. :courseDetail="courseDetail"
  15328. :wScore="wScore"
  15329. :scoreDetail="scoreDetail"
  15330. @selectSWorks="selectSWorks"
  15331. @selectStudent="selectStudent"
  15332. ></checkEnglishVoice>
  15333. <el-dialog
  15334. title="教师评分"
  15335. :visible.sync="markScoreVisible"
  15336. :append-to-body="true"
  15337. width="1000px"
  15338. :fullscreen="markfullscreen"
  15339. :before-close="markScorehandleClose"
  15340. class="markScore_diy"
  15341. >
  15342. <div slot="title">
  15343. <div class="markScore_diyTit">
  15344. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15345. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15346. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15347. </div>
  15348. </div>
  15349. </div>
  15350. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15351. <!-- @updateDocSco="updateDocSco" -->
  15352. <markDialog
  15353. :key="markScoreVisible.toString()"
  15354. :uid="markScoreUid"
  15355. :toolIndex="markScoretoolIndex"
  15356. :stage="courseType"
  15357. :task="taskCount"
  15358. :taskDetail="
  15359. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15360. "
  15361. :tool="toolListS"
  15362. :languageSetting="languageSetting"
  15363. :scoTit="markScoreTit"
  15364. :tType="tType"
  15365. :sIsOpen="sIsOpen"
  15366. :markScoreworksStudent="markScoreworksStudent"
  15367. :markScoreVisible="markScoreVisible"
  15368. ></markDialog>
  15369. </el-dialog>
  15370. <!-- 查看Txt,md等文件 -->
  15371. <el-dialog
  15372. title="文件预览"
  15373. :visible.sync="dialogVisibleTxt"
  15374. width="50%"
  15375. :before-close="handleCloseTxt"
  15376. class="dialog_diy"
  15377. :class="{ fullStyle: full }"
  15378. >
  15379. <div slot="title" class="header-title">
  15380. <div style="color: #fff">文件预览</div>
  15381. <div style="position: absolute; top: 19px; right: 50px">
  15382. <img
  15383. src="../../assets/full.png"
  15384. style="height: 16px; cursor: pointer"
  15385. alt=""
  15386. @click="fullTools"
  15387. />
  15388. </div>
  15389. </div>
  15390. <div>{{ TxtMd }}</div>
  15391. </el-dialog>
  15392. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15393. <choseWorksDetailDialog
  15394. ref="choseWorksDetailDialogRef"
  15395. :worksStudentData="this.worksStudent"
  15396. :noWorksSData="noWorksS"
  15397. :chapInfoListData="chapInfoList"
  15398. :courseType="courseType"
  15399. :taskCount="taskCount"
  15400. @deleteWorks="deleteWorks"
  15401. @openTools="openTools"
  15402. @openWord="openWord"
  15403. @openScore="openScore"
  15404. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15405. />
  15406. <el-dialog
  15407. :visible.sync="confirmOpenDig"
  15408. width="500px"
  15409. :modal="false"
  15410. class="confirmOpenDigCss dialog_diyCopy"
  15411. :before-close="handleClose">
  15412. <div style="display: flex;align-items: center;">
  15413. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15414. <span>“{{ courseDetail.title }}”开课啦</span>
  15415. </div>
  15416. <div style="margin: 20px 0 35px;">
  15417. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  15418. <div>要认真听讲哦~</div>
  15419. </div>
  15420. <div style="text-align: center;">
  15421. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  15422. </div>
  15423. </el-dialog>
  15424. </div>
  15425. </template>
  15426. <script>
  15427. import "../../common/aws-sdk-2.235.1.min.js";
  15428. // import pdf from "../components/pdf3";
  15429. import pdf from "../components/vpdf";
  15430. import AskStatic from "../components/askStatic";
  15431. import AskStatic2 from "../components/askStatic2";
  15432. import AnswerData2 from "../components/answerData2";
  15433. import AnswerData from "../components/answerData";
  15434. import EditorBar from "../tools/wangEnduit.vue";
  15435. import Table from "../tools/table.vue";
  15436. import Time from "../tools/time.vue";
  15437. import Mind from "../tools/jsmind.vue";
  15438. import Sunburst from "../tools/sunburst";
  15439. import SeeBoard from "../tools/seeBoard";
  15440. import * as imageConversion from "image-conversion";
  15441. import Audio from "../components/audio.vue";
  15442. import ImgDraw from "../tools/imgDraw/imgDraw";
  15443. import { Empty } from "element-ui";
  15444. import RecordRTC from "recordrtc";
  15445. import interVideo from "../interVideo/index.vue";
  15446. import UpdateMore from "../updateMore/updateMore.vue";
  15447. import wordCloud from "../wordCloud/index.vue";
  15448. import axios from "axios";
  15449. import JSZip from "jszip";
  15450. import FileSaver from "file-saver";
  15451. import onlineWrite from "./commpont/onlineWrite";
  15452. import englishEva from "../components/englishEva";
  15453. import * as Diff from "diff";
  15454. import EnglishVoice from "../EnglishVoice2/index.vue";
  15455. import checkEnglishVoice from "../checkEnglishVoice/index.vue";
  15456. import correctText from "../components/correctText.vue";
  15457. import scoreItem from "../scoreList/scoreItem.vue";
  15458. import scoreZong from "../scoreZong/index.vue";
  15459. import classRoomHelper from "../classRoomHelper/index.vue";
  15460. import markScore from "./commpont/markScore";
  15461. import markDialog from "./commpont/markDialog";
  15462. import evaTable from "./commpont/evaTable";
  15463. import { v4 as uuidv4 } from "uuid";
  15464. import statisticalAnalysis from "../components/statisticalAnalysis.vue";
  15465. import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
  15466. import choseWordCloud from '../components/choseWordCloud.vue'
  15467. var OpenCC = require("opencc-js");
  15468. let converter = OpenCC.Converter({
  15469. from: "hk",
  15470. to: "cn"
  15471. });
  15472. const getFile = url => {
  15473. return new Promise((resolve, reject) => {
  15474. var credentials = {
  15475. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15476. secretAccessKey: "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"
  15477. }; //秘钥形式的登录上传
  15478. window.AWS.config.update(credentials);
  15479. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15480. let url2 = url;
  15481. let _url2 = "";
  15482. if (
  15483. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15484. ) {
  15485. _url2 = url2.split(
  15486. "https://view.officeapps.live.com/op/view.aspx?src="
  15487. )[1];
  15488. } else {
  15489. _url2 = url2;
  15490. }
  15491. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15492. let name = decodeURIComponent(
  15493. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  15494. );
  15495. var params = {
  15496. Bucket: "ccrb",
  15497. Key: name
  15498. };
  15499. s3.getObject(params, function(err, data) {
  15500. if (err) {
  15501. console.log(err, err.stack);
  15502. resolve({ data: 1 });
  15503. } else {
  15504. resolve({ data: data.Body });
  15505. console.log(data);
  15506. } // sxuccessful response
  15507. });
  15508. // axios({
  15509. // method: "get",
  15510. // url,
  15511. // responseType: "blob",
  15512. // })
  15513. // .then((data) => {
  15514. // resolve({ data: data.data });
  15515. // })
  15516. // .catch((error) => {
  15517. // resolve({ data: 1 });
  15518. // // reject(error.toString());
  15519. // });
  15520. });
  15521. };
  15522. export default {
  15523. components: {
  15524. choseWordCloud,
  15525. EditorBar,
  15526. Time,
  15527. pdf,
  15528. AskStatic,
  15529. AskStatic2,
  15530. Mind,
  15531. Sunburst,
  15532. SeeBoard,
  15533. AnswerData2,
  15534. AnswerData,
  15535. Audio,
  15536. ImgDraw,
  15537. Table,
  15538. interVideo,
  15539. UpdateMore,
  15540. wordCloud,
  15541. onlineWrite,
  15542. englishEva,
  15543. EnglishVoice,
  15544. checkEnglishVoice,
  15545. correctText,
  15546. scoreItem,
  15547. classRoomHelper,
  15548. scoreZong,
  15549. markScore,
  15550. markDialog,
  15551. evaTable,
  15552. statisticalAnalysis,
  15553. choseWorksDetailDialog
  15554. },
  15555. data() {
  15556. return {
  15557. wordCloudKey: 0,
  15558. bg: null,
  15559. drawShow: false,
  15560. dialogVisible: false,
  15561. dialogVisiblePl: false,
  15562. commentDialogVisible: false,
  15563. dialogVisibleMember: false,
  15564. dialogVisibleWordCloud: false,
  15565. videoVisible: false,
  15566. isStar: false,
  15567. studentEvalDialogVisible: false,
  15568. studentEvalDialogVisibleTeacher: false,
  15569. dialogVisibleSelect: false,
  15570. dialogVisibleSelectTeacher: false,
  15571. dialogVisibleScore: false,
  15572. dialogVisibleENScore: false,
  15573. dialogVisibleSentence: false,
  15574. dialogVisibleSentenceTeacher: false,
  15575. dialogVisibleSentence1: false,
  15576. dialogVisibleWorks: false,
  15577. dialogVisibleTable: false,
  15578. dialogVisibleTableTeacher: false,
  15579. dialogVisibleWord: false,
  15580. dialogVisibleWordTeacher: false,
  15581. dialogVisibleTable2: false,
  15582. dialogVisibleTable3: false,
  15583. dialogVisibleGroupWork: false,
  15584. dialogVisibleUpdateGroup: false,
  15585. dialogVisibleDeleteGroup: false,
  15586. dialogVisibleSname: false,
  15587. dialogVisibleVideo: false,
  15588. dialogVisiblePickPeople: false,
  15589. engDialogVisible: false,
  15590. engUpdateDialogVisible: false,
  15591. engEvaDialogVisible: false,
  15592. evaEngJson: {
  15593. teacherJson: {},
  15594. studentJson: {},
  15595. message: {}
  15596. },
  15597. isNoUserid: false,
  15598. engListLength: 0,
  15599. engWid: "",
  15600. newEnglishList: {
  15601. engTitle: "",
  15602. engText: ""
  15603. },
  15604. newEnglishList1: [],
  15605. oldEnglishJson: {},
  15606. oldEnglishJson1: {},
  15607. englishList1: {},
  15608. englishList: {},
  15609. myAnswerList1: {},
  15610. topHeight: 0,
  15611. newEngIndex: -1,
  15612. englishToolIndex: 0,
  15613. userMes: {},
  15614. englishToolIndex: 0,
  15615. worksSName: "",
  15616. classJuri: [],
  15617. uploadStudentJuri: [],
  15618. uploadCid: "",
  15619. snameWid: "",
  15620. sStudent: {},
  15621. sTool: "",
  15622. bzText: "",
  15623. commentDetail: [],
  15624. selectAnswer: [],
  15625. videoDetail: {},
  15626. selectJson: {},
  15627. englishList: {},
  15628. topHeight: 0,
  15629. eScore: { eBzText: "", eStar: [] },
  15630. id: this.$route.query.courseId,
  15631. userid: this.$route.query.userid,
  15632. classId: this.$route.query.cid,
  15633. // courseTypeLine: this.$route.query.type,
  15634. oid: this.$route.query.oid,
  15635. org: this.$route.query.org,
  15636. tType: this.$route.query.tType,
  15637. courseType: this.$route.query.type,
  15638. screenType: this.$route.query.screenType,
  15639. tcid2: this.$route.query.tcid,
  15640. tcid: "",
  15641. pptImgUrl: "",
  15642. pptImgUrl1: "",
  15643. commentText: "",
  15644. full: false,
  15645. sIsOpen: false,
  15646. IsLookOpen: false,
  15647. IsFollow: false,
  15648. pzDialog: false,
  15649. contentDialog: false,
  15650. mlDialog: false,
  15651. type: 1,
  15652. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15653. sentenceList1: [],
  15654. tableJson: [],
  15655. tableJsonO: [],
  15656. wordJson: [],
  15657. wordJsonO: [],
  15658. vedio: [],
  15659. text: [],
  15660. textList: [],
  15661. line: [],
  15662. lineList: [],
  15663. chapTools: [],
  15664. chapToolList: [],
  15665. file: [],
  15666. fileC: [],
  15667. vedioTime: [],
  15668. upToolImg: "",
  15669. preTime: 0,
  15670. rateList: {
  15671. ca: 0
  15672. },
  15673. rateParams: [],
  15674. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15675. studyJuri: [
  15676. {
  15677. content: "",
  15678. cover: [],
  15679. upVedio: [],
  15680. upFile: []
  15681. }
  15682. ],
  15683. isClose: 0,
  15684. plworkFile: [],
  15685. mr: require("../../assets/vedioPic.png"),
  15686. word: require("../../assets/icon/isWord.png"),
  15687. word2: require("../../assets/icon/word2.png"),
  15688. video: require("../../assets/icon/isVideo.png"),
  15689. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15690. likes: require("../../assets/icon/comment/likes.png"),
  15691. scoreImg: require("../../assets/score.png"),
  15692. courseDetail: {},
  15693. reply: "",
  15694. isSelect: false,
  15695. chapInfo: [],
  15696. chapInfoList: [],
  15697. taskCount: 0,
  15698. imgList: [],
  15699. noImgList: [],
  15700. pzList: [],
  15701. timeWorkList: [],
  15702. PlTextList: [
  15703. "Excellent!",
  15704. "nice!",
  15705. "很有创意!",
  15706. "还不错哦~",
  15707. "继续努力哦~"
  15708. ],
  15709. isClickNav: "",
  15710. navId: "",
  15711. playerOptions: {
  15712. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15713. autoplay: false, //如果true,浏览器准备好时开始回放。
  15714. muted: false, // 默认情况下将会消除任何音频。
  15715. loop: false, // 导致视频一结束就重新开始。
  15716. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15717. language: "zh-CN",
  15718. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15719. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15720. sources: [
  15721. {
  15722. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15723. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15724. }
  15725. ],
  15726. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15727. // poster: dataRes.imgUrl, //你的封面地址
  15728. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15729. controlBar: {
  15730. timeDivider: true, //当前时间和持续时间的分隔符
  15731. durationDisplay: true, //显示持续时间
  15732. remainingTimeDisplay: false, //是否显示剩余时间功能
  15733. fullscreenToggle: true //全屏按钮
  15734. }
  15735. },
  15736. playerOptions1: {
  15737. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15738. autoplay: false, //如果true,浏览器准备好时开始回放。
  15739. muted: false, // 默认情况下将会消除任何音频。
  15740. loop: false, // 导致视频一结束就重新开始。
  15741. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15742. language: "zh-CN",
  15743. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15744. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15745. sources: [
  15746. {
  15747. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15748. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15749. }
  15750. ],
  15751. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15752. // poster: dataRes.imgUrl, //你的封面地址
  15753. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15754. controlBar: {
  15755. timeDivider: true, //当前时间和持续时间的分隔符
  15756. durationDisplay: true, //显示持续时间
  15757. remainingTimeDisplay: false, //是否显示剩余时间功能
  15758. fullscreenToggle: true //全屏按钮
  15759. }
  15760. },
  15761. playerO: {},
  15762. noneBtnImg: false,
  15763. proVisible: false,
  15764. proVisible2: false,
  15765. progress: 0,
  15766. isFinishSize: 0,
  15767. isAllSize: 0,
  15768. questionAnswer: "",
  15769. answerQ: "", //问答标题
  15770. rateJson: [],
  15771. wbCount: 0,
  15772. wordCount: 0,
  15773. mindCount: 0,
  15774. askCount: 0,
  15775. noteCount: 0,
  15776. mindNetWorkCount: 0,
  15777. libraryCount: 0,
  15778. workCount: 0,
  15779. timeCount: 0,
  15780. answerCount: 0,
  15781. trainCount: 0,
  15782. evalCount: 0,
  15783. dialogImageUrl: "",
  15784. pictureDialog: false,
  15785. toolTypeList: [],
  15786. dialogVisible1: false,
  15787. dialogVisible2: false,
  15788. dialogVisible3: false,
  15789. dialogVisible6: false,
  15790. dialogVisible4: false,
  15791. isNoHomeWork: false,
  15792. dialogVisible5: false,
  15793. dialogVisible5Teacher: false,
  15794. dialogVisibleChoice: false,
  15795. dialogVisibleChoiceTeacher: false,
  15796. answerDialogVisible: false,
  15797. answerDialogVisibleTeacher: false,
  15798. juriVisible: false,
  15799. timeDialogVisible: false,
  15800. replyDialogVisible: false,
  15801. toolDialogVisible: false,
  15802. replyIndex: 0,
  15803. replyPid: "",
  15804. radio: [],
  15805. isAsk: false,
  15806. askJson: {
  15807. askCount: 1,
  15808. askTitle: "",
  15809. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  15810. },
  15811. testJson: {},
  15812. videoType: 0,
  15813. checkJson: [],
  15814. askList: [],
  15815. answerList: [],
  15816. navList: [],
  15817. addPzDialog: false,
  15818. pzConText: "",
  15819. worksStudent: [],
  15820. isCloseList: [],
  15821. workStudent: [],
  15822. groupStudent: [],
  15823. groupStudentUid: [],
  15824. noWorksS: [],
  15825. isWorksS: [],
  15826. noWorksStudent: [],
  15827. toolindex: 0,
  15828. toolDetailIndex: null,
  15829. groupIndex: 0,
  15830. workTypeB: false,
  15831. workTypeC: false,
  15832. isAnswer: false,
  15833. isHovered: false,
  15834. isHovered1: false,
  15835. isHovered2: false,
  15836. commentTagShow: 0,
  15837. timer: null,
  15838. timer2: null,
  15839. opertimer: null,
  15840. showType: 0,
  15841. fileType: 0,
  15842. showPDF: false,
  15843. noteName: "",
  15844. evaJuri: [],
  15845. evalua: "",
  15846. eTitle: "",
  15847. eName: "",
  15848. eJson: {},
  15849. fid: "", //一级
  15850. sid: "", //二级
  15851. tid: "", //二级
  15852. typeMode: 1,
  15853. eJSONNum: 0,
  15854. Etype: 1,
  15855. data: {
  15856. meta: {
  15857. name: "example",
  15858. author: "dd@163.com",
  15859. version: "0.2"
  15860. },
  15861. format: "node_array",
  15862. data: [{ id: "root", isroot: true, topic: "" }]
  15863. },
  15864. fullDialogVisible: false,
  15865. fulltype: "",
  15866. fullUrl: "",
  15867. commentIndexJson: {},
  15868. Stbodywidth: 0,
  15869. ispzType: 0,
  15870. pzType: 1,
  15871. wScore: 0,
  15872. scoreDetail: "",
  15873. videoStart: false,
  15874. recorder: null,
  15875. groupJson: {},
  15876. islock: false,
  15877. groupJson2: {},
  15878. dialogVisibleGroup: false,
  15879. dialogVisibleGroup2: false,
  15880. updateGroupArray: [],
  15881. updateGroupUser: {},
  15882. deleteGroupUser: [],
  15883. deleteGroupArray: {},
  15884. checkChair: "",
  15885. checkDeleteGroup: [],
  15886. inviteCode: "",
  15887. courseGroupStudent: [],
  15888. courseGroupStudentUid: [],
  15889. courseGroup: {},
  15890. isGroup: false,
  15891. toolIndex: null,
  15892. tool: {},
  15893. isWorkTool: [
  15894. 16,
  15895. 32,
  15896. 57,
  15897. 4,
  15898. 45,
  15899. 15,
  15900. 1,
  15901. 3,
  15902. 6,
  15903. 7,
  15904. 26,
  15905. 41,
  15906. 47,
  15907. 48,
  15908. 52,
  15909. 50,
  15910. 40
  15911. ], //, 40
  15912. videoJson: {},
  15913. toolType: 0,
  15914. checktoolArray: [],
  15915. vChapterData: [],
  15916. isUpdateToolDetail: false,
  15917. isUpdateToolDetail1: false,
  15918. updateToolDetailInner: "",
  15919. checkboxList: [],
  15920. plIndex: "",
  15921. worksSName2: "",
  15922. worksSid: "",
  15923. wordCloudData: [],
  15924. isPickStudent: [],
  15925. pzStype: 1,
  15926. downLoading: false,
  15927. greyType: false,
  15928. correctWord: [],
  15929. EnglishVoiceDialog: false,
  15930. englishVoiceJson: {},
  15931. englishVoiceJsonWork: [],
  15932. scoreList: {
  15933. listdata: [],
  15934. isScoreList: []
  15935. },
  15936. classRoomHelperWidth: "85px",
  15937. orgArray: [],
  15938. oidArray: [],
  15939. refreshKey: 0,
  15940. AIloading: [],
  15941. worksStudentCopy: [],
  15942. loopLoading: [],
  15943. markScoreVisible: false,
  15944. markScoretoolIndex: 0,
  15945. markScoreUid: "",
  15946. markScoreTit: {},
  15947. markfullscreen: false,
  15948. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  15949. markScoreworksStudent: [],
  15950. finalMarkList: -1,
  15951. isaiNum: 0,
  15952. dialogVisibleTxt: false,
  15953. TxtMd: "",
  15954. languageSetting: 0, //0中文 1繁体 2英文
  15955. toolListS: [],
  15956. commentDetailCopy: "",
  15957. splitScreenData: {
  15958. isOpen: false,
  15959. userId: "",
  15960. uid: "",
  15961. myUid: "",
  15962. loading: false,
  15963. behavior: null
  15964. },
  15965. confirmOpenDig:false,
  15966. confirmOpenDigData:''
  15967. };
  15968. },
  15969. methods: {
  15970. getAIJ() {
  15971. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  15972. let oid = res.data[0];
  15973. let org = res.data[1];
  15974. let oidArray = [];
  15975. let orgArray = [];
  15976. oid.forEach(i => oidArray.push(i.oid));
  15977. org.forEach(i => orgArray.push(i.oid));
  15978. this.orgArray = orgArray;
  15979. this.oidArray = oidArray;
  15980. });
  15981. },
  15982. // 评分弹框全屏
  15983. markFullScreenBtn() {
  15984. this.markfullscreen = !this.markfullscreen;
  15985. },
  15986. insertMemorandum(_html) {
  15987. //保存行为操作
  15988. //variable
  15989. //btn
  15990. let params = [
  15991. {
  15992. uid: this.userid,
  15993. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  15994. content: _html
  15995. }
  15996. ];
  15997. console.log(params);
  15998. this.ajax
  15999. .post(
  16000. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16001. params
  16002. )
  16003. .then(res => {
  16004. if (res.data == 1) {
  16005. console.log("保存操作成功");
  16006. } else {
  16007. console.log("保存操作失败");
  16008. }
  16009. })
  16010. .catch(e => {
  16011. console.log("保存操作失败");
  16012. console.log(e);
  16013. });
  16014. },
  16015. // 获取文档id
  16016. createFileid(url) {
  16017. let _this = this;
  16018. return new Promise((resolve, reject) => {
  16019. try {
  16020. _this.ajax
  16021. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16022. url: url
  16023. })
  16024. .then(res => {
  16025. let _data = res.data.FunctionResponse;
  16026. if (_data.result && _data.result.id) {
  16027. resolve(_data.result.id);
  16028. } else {
  16029. resolve(1);
  16030. }
  16031. })
  16032. .catch(function(error) {
  16033. resolve(1);
  16034. });
  16035. } catch (e) {
  16036. resolve(1);
  16037. }
  16038. });
  16039. },
  16040. // 一键重置
  16041. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16042. let jude = false;
  16043. this.AIloading.forEach((e, index) => {
  16044. if (index == toolIndex) {
  16045. e.forEach(k => {
  16046. if (k.loading == true) jude = true;
  16047. });
  16048. }
  16049. });
  16050. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16051. this.$confirm("确认一键重置?")
  16052. .then(_ => {
  16053. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16054. })
  16055. .catch(_ => {});
  16056. },
  16057. // 一键重置
  16058. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16059. for (let index = 0; index < con.length; index++) {
  16060. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16061. }
  16062. this.$message.success("重置完成");
  16063. // this.refreshAssembly();
  16064. this.worksStudent.forEach((e, index) => {
  16065. if (toolIndex == index) {
  16066. console.log("6666");
  16067. e.forEach((i, inx) => {
  16068. let mk = `markSco${index}${inx}`;
  16069. this.$refs[mk][0].getData();
  16070. });
  16071. }
  16072. });
  16073. },
  16074. // 一键重置
  16075. allEmptySco(uid, stage, task, toolIndex) {
  16076. let params = [
  16077. {
  16078. cid: this.id,
  16079. uid: uid,
  16080. s: stage,
  16081. t: task,
  16082. tool: toolIndex ? toolIndex : ""
  16083. }
  16084. ];
  16085. return new Promise(resolve => {
  16086. this.ajax
  16087. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16088. .then(res => {
  16089. resolve(1);
  16090. })
  16091. .catch(err => {
  16092. console.error(err);
  16093. });
  16094. }).catch(error => {
  16095. console.log(error);
  16096. });
  16097. },
  16098. // AI评分循环打分
  16099. async loopEva(
  16100. con,
  16101. tit,
  16102. stage,
  16103. task,
  16104. toolIndex,
  16105. toolDetail,
  16106. taskDetail,
  16107. toolList
  16108. ) {
  16109. let jude = false;
  16110. this.AIloading.forEach((e, index) => {
  16111. if (index == toolIndex) {
  16112. e.forEach(k => {
  16113. if (k.loading == true) jude = true;
  16114. });
  16115. }
  16116. });
  16117. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16118. this.AIloading.forEach((e, index) => {
  16119. if (index == toolIndex) {
  16120. e.forEach(k => {
  16121. k.loading = true;
  16122. });
  16123. }
  16124. });
  16125. this.loopLoading[toolIndex].loading = true;
  16126. let laws = "";
  16127. let std = "";
  16128. let text = "";
  16129. if (toolList && toolList.eList && toolList.eList.length) {
  16130. for (let i = 0; i < toolList.eList.length; i++) {
  16131. if (toolList.eList[i].isai == 1) {
  16132. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16133. }
  16134. }
  16135. for (let i = 0; i < toolList.eList.length; i++) {
  16136. if (toolList.eList[i].isai == 1) {
  16137. let a = toolList.eList[i].detail;
  16138. if (isNaN(parseFloat(a)) && a) {
  16139. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16140. } else {
  16141. var result = a;
  16142. }
  16143. std += `纬度${i}:“${result}”, \n`;
  16144. }
  16145. }
  16146. for (let i = 0; i < toolList.eList.length; i++) {
  16147. if (toolList.eList[i].isai == 1) {
  16148. let a = toolList.eList[i].detail;
  16149. if (isNaN(parseFloat(a)) && a) {
  16150. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16151. } else {
  16152. var result = a;
  16153. }
  16154. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16155. }
  16156. }
  16157. } else {
  16158. let titRule = 0;
  16159. let titRule2 = 0;
  16160. tit.forEach((e, index) => {
  16161. if (!e.isai) {
  16162. e.isai = 1;
  16163. }
  16164. });
  16165. tit.forEach((e, index) => {
  16166. if (e.isai == 1) {
  16167. titRule2++;
  16168. if (e.rule) {
  16169. titRule++;
  16170. }
  16171. }
  16172. });
  16173. if (titRule != titRule2) {
  16174. this.AIloading.forEach((e, index) => {
  16175. if (index == toolIndex) {
  16176. e.forEach(k => {
  16177. k.loading = false;
  16178. });
  16179. }
  16180. });
  16181. this.loopLoading[toolIndex].loading = false;
  16182. this.$message.info("细则努力生成中,请稍候……");
  16183. return;
  16184. }
  16185. for (let i = 0; i < tit.length; i++) {
  16186. if (tit[i].isai == 1) {
  16187. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16188. }
  16189. }
  16190. for (let i = 0; i < tit.length; i++) {
  16191. if (tit[i].isai == 1) {
  16192. let a = tit[i].detail;
  16193. if (isNaN(parseFloat(a)) && a) {
  16194. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16195. } else {
  16196. var result = a;
  16197. }
  16198. std += `纬度${i}:“${result}”, \n`;
  16199. }
  16200. }
  16201. for (let i = 0; i < tit.length; i++) {
  16202. if (tit[i].isai == 1) {
  16203. let a = tit[i].detail;
  16204. if (isNaN(parseFloat(a)) && a) {
  16205. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16206. } else {
  16207. var result = a;
  16208. }
  16209. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16210. }
  16211. }
  16212. }
  16213. let forAllList = [];
  16214. // console.log('con',con)
  16215. for (let i = 0; i < con.length; i++) {
  16216. let _fileid = "";
  16217. let wok = con[i].works;
  16218. // console.log('con',con);
  16219. // console.log('con[i].type',con[i].type);
  16220. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16221. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16222. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16223. _fileid = await this.createFileid(con[i].works);
  16224. } else {
  16225. this.AIloading[toolIndex][i].loading = false;
  16226. continue;
  16227. }
  16228. }
  16229. // console.log('con[i].type',con[i])
  16230. // console.log('con[i].type',con[i].type)
  16231. if (_fileid == 1 || con[i].type == 3) {
  16232. this.AIloading[toolIndex][i].loading = false;
  16233. continue;
  16234. }
  16235. let msg = `NOTICE
  16236. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16237. Language: ${this.getLang()}
  16238. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16239. Instruction: Based on the context, follow "Format example", write content.
  16240. #目标#
  16241. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16242. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16243. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16244. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16245. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16246. #评分资料#
  16247. 评价标准:${std}
  16248. 评价细则:${laws}
  16249. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16250. 任务描述:${taskDetail}
  16251. 工具描述:${toolDetail}
  16252. #输出要求#
  16253. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16254. “评语”控制在150字左右。
  16255. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16256. #输出格式#
  16257. [${text}{'comment':'评语(150个汉字左右)'}]
  16258. `;
  16259. let mk = `markSco${toolIndex}${i}`;
  16260. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16261. msg,
  16262. con[i].userid,
  16263. stage,
  16264. task,
  16265. _fileid,
  16266. con[i].type
  16267. );
  16268. forAllList.push(mkAwit);
  16269. }
  16270. Promise.all(forAllList)
  16271. .then(values => {
  16272. console.log("values", values);
  16273. this.$message({
  16274. message: "评价成功",
  16275. type: "success"
  16276. });
  16277. // this.refreshKey++
  16278. // this.worksStudent.forEach((e,index)=>{
  16279. // if(toolIndex == index){
  16280. // e.forEach((i,inx)=>{
  16281. // let mk = `markSco${index}${inx}`
  16282. // this.$refs[mk][0].getData()
  16283. // })
  16284. // }
  16285. // })
  16286. this.AIloading[toolIndex].forEach(e => {
  16287. e.loading = false;
  16288. });
  16289. this.loopLoading[toolIndex].loading = false;
  16290. })
  16291. .catch(reason => {
  16292. console.error("reasonreasonreasonreasonreason", reason);
  16293. // 输出“失败原因”
  16294. });
  16295. },
  16296. // 获取评价细则
  16297. againEva(i, k) {
  16298. let msg = `NOTICE
  16299. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16300. Language: ${this.getLang()}
  16301. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16302. Instruction: Based on the context, follow "Format example", write content.
  16303. #Context
  16304. ##要求
  16305. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16306. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16307. ##制定标准资料
  16308. 评价维度:${
  16309. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16310. }
  16311. 维度描述:${
  16312. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16313. }
  16314. # Format example
  16315. ==
  16316. 0 星,作业内容与作业要求无关;
  16317. 1 星,没有识别问题和需求;
  16318. 2 星,问题或需求没有被清晰理解或准确识别;
  16319. 3 星,问题或需求的一部分被识别;
  16320. 4 星,问题或需求的大部分被识别;
  16321. 5 星,问题或需求都被识别。
  16322. ==
  16323. `;
  16324. let params = {
  16325. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16326. message: [
  16327. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16328. ],
  16329. session_name: uuidv4(),
  16330. userId: this.userid,
  16331. file_ids: [],
  16332. model: "gpt-4o-2024-11-20"
  16333. };
  16334. // console.log('params',params);
  16335. this.ajax
  16336. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16337. .then(response => {
  16338. let data = response.data.FunctionResponse;
  16339. // console.log("data", data);
  16340. if (data.message) {
  16341. let content = data.message;
  16342. var regex = new RegExp("==([^=]+)==");
  16343. let match = content.match(regex);
  16344. if (match) {
  16345. content = match[1].trim().replaceAll(" ", "");
  16346. // 获取匹配到的内容并去除两端空格
  16347. // console.log('contentInsideDoubleEquals', content);
  16348. if (
  16349. content.indexOf("0星") == -1 ||
  16350. content.indexOf("2星") == -1 ||
  16351. content.indexOf("3星") == -1 ||
  16352. content.indexOf("4星") == -1 ||
  16353. content.indexOf("5星") == -1
  16354. ) {
  16355. console.log("未有星级。");
  16356. this.againEva(i, k);
  16357. return;
  16358. }
  16359. // return
  16360. } else {
  16361. console.log("未找到匹配的内容。");
  16362. this.againEva(i, k);
  16363. return;
  16364. }
  16365. let elist = JSON.parse(
  16366. JSON.stringify(
  16367. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16368. )
  16369. );
  16370. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16371. elist.rule = JSON.parse(
  16372. JSON.stringify(content.replaceAll("#", ""))
  16373. );
  16374. this.$set(
  16375. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16376. k,
  16377. elist
  16378. );
  16379. this.$forceUpdate();
  16380. let params2 = [
  16381. {
  16382. cid: this.id,
  16383. chapters: JSON.stringify(this.chapInfoList),
  16384. uid: this.userid,
  16385. unitIndex: this.courseType
  16386. }
  16387. ];
  16388. this.ajax
  16389. .post(this.$store.state.api + "updateWorkNew4", params2)
  16390. .then(res => {
  16391. this.getCourseDetail(2);
  16392. this.$forceUpdate();
  16393. })
  16394. .catch(err => {
  16395. this.$message.error("网络不佳");
  16396. console.error(err);
  16397. });
  16398. // 进行进一步处理或解析outputContent
  16399. // } else {
  16400. // console.log("No match found for # Output section.");
  16401. // }
  16402. }
  16403. })
  16404. .catch(error => {
  16405. console.log(error);
  16406. });
  16407. },
  16408. // 关闭评分弹框
  16409. markScorehandleClose(done) {
  16410. // this.refreshKey++
  16411. this.worksStudent.forEach((e, index) => {
  16412. if (this.markScoretoolIndex == index) {
  16413. e.forEach((i, inx) => {
  16414. let mk = `markSco${index}${inx}`;
  16415. if (this.$refs[mk] && this.$refs[mk][0]) {
  16416. this.$refs[mk][0].getData();
  16417. }
  16418. });
  16419. }
  16420. });
  16421. done();
  16422. },
  16423. // 关闭txtMd预览弹框
  16424. handleCloseTxt(done) {
  16425. this.TxtMd = "";
  16426. done();
  16427. },
  16428. // Txt,Md作业查看
  16429. lookTxt(val) {
  16430. this.dialogVisibleTxt = true;
  16431. this.TxtMd = "";
  16432. getFile(val).then(res => {
  16433. this.TxtMd = res.data;
  16434. });
  16435. },
  16436. // 组件刷新
  16437. refreshAssembly(val) {
  16438. this.refreshKey++;
  16439. // console.log(this.refreshKey)
  16440. },
  16441. updateLoading(payload) {
  16442. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16443. },
  16444. handleShow(toolIndex, val) {
  16445. let mk = `markSco${toolIndex}${val}`;
  16446. // console.log(mk);
  16447. this.$refs[mk][0].getData();
  16448. },
  16449. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16450. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16451. // console.log('this.AIloading',this.AIloading)
  16452. let jude = false;
  16453. this.AIloading.forEach((e, index) => {
  16454. if (index == tidx) {
  16455. e.forEach(k => {
  16456. if (k.loading == true) jude = true;
  16457. });
  16458. }
  16459. });
  16460. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16461. if (val) return;
  16462. // console.log(uname,worksStudent,uid,tidx,titlist)
  16463. this.markScoreTit = titlist;
  16464. this.markScoreUid = uid;
  16465. this.toolListS = toolList;
  16466. this.markScoretoolIndex = tidx;
  16467. this.markScoreworksStudent = worksStudent;
  16468. this.markfullscreen = false;
  16469. this.markScoreVisible = true;
  16470. if (this.tType == 1) {
  16471. this.insertMemorandum(
  16472. `查看<span class="variable">${uname}</span>的作业`
  16473. );
  16474. }
  16475. },
  16476. // 点击markScore显示评分框
  16477. markScoreDig(data) {
  16478. // console.log('data',data)
  16479. let jude = false;
  16480. this.AIloading.forEach((e, index) => {
  16481. if (index == data.val2) {
  16482. e.forEach(k => {
  16483. if (k.loading == true) jude = true;
  16484. });
  16485. }
  16486. });
  16487. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16488. this.markScoreTit = data.tit;
  16489. this.markScoreUid = data.val;
  16490. this.markScoretoolIndex = data.val2;
  16491. this.markfullscreen = false;
  16492. this.markScoreVisible = true;
  16493. this.insertMemorandum(
  16494. `查看<span class="variable">${data.uname}</span>的作业`
  16495. );
  16496. },
  16497. // 刷新其他组件分数
  16498. refreshOther(v) {
  16499. // console.log('v',v)
  16500. this.AIloading[v.tid].forEach((e, i) => {
  16501. if (i == v.wid) {
  16502. e.loading = false;
  16503. }
  16504. });
  16505. // this.worksStudent.forEach((e,index)=>{
  16506. // if(toolIndex != index){
  16507. // e.forEach((i,inx)=>{
  16508. // let mk = `markSco${index}${inx}`
  16509. // this.$refs[mk][0].getData()
  16510. // })
  16511. // }
  16512. // })
  16513. },
  16514. updateDocSco(payload) {
  16515. // console.log('payload',payload)
  16516. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16517. },
  16518. gx() {
  16519. this.$forceUpdate();
  16520. },
  16521. isUpdateCorrect(t, p) {
  16522. if (this.greyType == false) {
  16523. this.isUpdateText = t;
  16524. this.greyType = true;
  16525. } else {
  16526. if (p == 1) {
  16527. this.newEnglishList.engText = this.isUpdateText;
  16528. } else if (p == 2) {
  16529. this.oldEnglishJson1.engText = this.isUpdateText;
  16530. } else if (p == 3) {
  16531. this.newEnglishList.engText = this.isUpdateText;
  16532. } else {
  16533. this.newEnglishList1[
  16534. this.newEngIndex
  16535. ].cWork.engText = this.isUpdateText;
  16536. }
  16537. this.greyType = false;
  16538. }
  16539. },
  16540. aiCorrect(t, p) {
  16541. let aiText = "";
  16542. const loading = this.$loading.service({
  16543. background: "rgba(255, 255, 255)",
  16544. target: document.querySelectorAll(".loadingText")[0]
  16545. });
  16546. let param = {
  16547. model: "gpt-3.5-turbo",
  16548. temperature: 0,
  16549. max_tokens: 2048,
  16550. top_p: 1,
  16551. frequency_penalty: 0,
  16552. presence_penalty: 0,
  16553. messages: [
  16554. {
  16555. role: "user",
  16556. content: `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`
  16557. }
  16558. ],
  16559. uid: this.userid,
  16560. stream: false
  16561. };
  16562. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16563. res => {
  16564. if (
  16565. res.data.FunctionResponse &&
  16566. res.data.FunctionResponse.result &&
  16567. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16568. ) {
  16569. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  16570. return;
  16571. }
  16572. aiText = res.data.FunctionResponse.choices[0].message.content;
  16573. aiText = aiText.replace(/%/g, "%25");
  16574. // let w = "";
  16575. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16576. // for(var k = 0;k<a.length;k++){
  16577. // //diffWordsWithSpace
  16578. // if(a.length > 1){
  16579. // if(a[k].added == true){
  16580. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16581. // }else if(a[k].removed == true){
  16582. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16583. // }else{
  16584. // w += '<span>' + a[k].value + '</span>';
  16585. // }
  16586. // }else{
  16587. // if(p == 1){
  16588. // w = this.newEnglishList.engText;
  16589. // }else if(p == 2){
  16590. // w = this.oldEnglishJson1.engText;
  16591. // }else if(p == 3){
  16592. // w = this.newEnglishList.engText;
  16593. // }else{
  16594. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16595. // }
  16596. // }
  16597. // }
  16598. if (p == 1) {
  16599. this.newEnglishList.engText = aiText;
  16600. } else if (p == 2) {
  16601. this.oldEnglishJson1.engText = aiText;
  16602. } else if (p == 3) {
  16603. this.newEnglishList.engText = aiText;
  16604. } else {
  16605. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16606. }
  16607. loading.close();
  16608. },
  16609. err => {
  16610. console.log(err);
  16611. loading.close();
  16612. }
  16613. );
  16614. },
  16615. addToolChoose() {
  16616. if (!this.checktoolArray.length) {
  16617. this.$message.error("请选择要添加的任务");
  16618. return;
  16619. }
  16620. if (
  16621. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16622. this.taskCount
  16623. ].toolChoose[0].tool.length
  16624. ) {
  16625. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16626. this.taskCount
  16627. ].toolChoose[0].tool = this.checktoolArray;
  16628. } else {
  16629. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16630. this.taskCount
  16631. ].toolChoose.push({
  16632. tool: this.checktoolArray,
  16633. toolDetail: "",
  16634. toolType: 0,
  16635. askCount: 1,
  16636. askTitle: "",
  16637. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  16638. });
  16639. }
  16640. let params = [
  16641. {
  16642. cid: this.id,
  16643. chapters: JSON.stringify(this.chapInfoList),
  16644. uid: this.userid,
  16645. unitIndex: this.courseType
  16646. }
  16647. ];
  16648. this.ajax
  16649. .post(this.$store.state.api + "updateWorkNew4", params)
  16650. .then(res => {
  16651. this.$message({
  16652. message: "添加成功",
  16653. type: "success"
  16654. });
  16655. this.checktoolArray = [];
  16656. this.getCourseDetail(2);
  16657. this.checkBz(
  16658. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16659. this.taskCount
  16660. ].toolChoose.length - 1
  16661. );
  16662. this.toolDialogVisible = false;
  16663. this.refreshCourse();
  16664. this.$forceUpdate();
  16665. })
  16666. .catch(err => {
  16667. console.error(err);
  16668. });
  16669. },
  16670. checkBz(index) {
  16671. this.isUpdateToolDetail = false;
  16672. this.$forceUpdate();
  16673. setTimeout(() => {
  16674. document.scrollingElement.scrollTop =
  16675. document.querySelectorAll(".filebox")[index].offsetTop +
  16676. document.querySelector(".student_body").offsetTop;
  16677. }, 500);
  16678. },
  16679. updateToolDetail(i, type) {
  16680. if (
  16681. !this.isUpdateToolDetail1 &&
  16682. type == 2 &&
  16683. (this.courseDetail.userid == this.userid ||
  16684. (this.courseDetail.course_teacher &&
  16685. this.courseDetail.course_teacher.indexOf(this.userid) != -1))
  16686. ) {
  16687. this.toolDetailIndex = i;
  16688. this.isUpdateToolDetail1 = true;
  16689. setTimeout(() => {
  16690. this.updateToolDetailInner = JSON.parse(
  16691. JSON.stringify(
  16692. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16693. this.taskCount
  16694. ].toolChoose[i].toolDetail
  16695. )
  16696. );
  16697. document.querySelector(".checkTextArea").focus();
  16698. }, 0);
  16699. } else if (this.isUpdateToolDetail1 && type != 2) {
  16700. // this.toolDetailIndex = i;
  16701. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16702. this.taskCount
  16703. ].toolChoose[i].toolDetail = JSON.parse(
  16704. JSON.stringify(this.updateToolDetailInner)
  16705. );
  16706. let params = [
  16707. {
  16708. cid: this.id,
  16709. chapters: JSON.stringify(this.chapInfoList),
  16710. uid: this.userid,
  16711. unitIndex: this.courseType
  16712. }
  16713. ];
  16714. this.ajax
  16715. .post(this.$store.state.api + "updateWorkNew4", params)
  16716. .then(res => {
  16717. this.isUpdateToolDetail1 = false;
  16718. this.$message({
  16719. message: "修改成功",
  16720. type: "success"
  16721. });
  16722. this.toolDetailIndex = null;
  16723. this.updateToolDetailInner = "";
  16724. this.getCourseDetail(2);
  16725. this.$forceUpdate();
  16726. })
  16727. .catch(err => {
  16728. console.error(err);
  16729. });
  16730. } else if (this.isUpdateToolDetail1 && type == 2) {
  16731. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16732. this.taskCount
  16733. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16734. JSON.stringify(this.updateToolDetailInner)
  16735. );
  16736. let params = [
  16737. {
  16738. cid: this.id,
  16739. chapters: JSON.stringify(this.chapInfoList),
  16740. uid: this.userid,
  16741. unitIndex: this.courseType
  16742. }
  16743. ];
  16744. this.ajax
  16745. .post(this.$store.state.api + "updateWorkNew4", params)
  16746. .then(res => {
  16747. this.$message({
  16748. message: "修改成功",
  16749. type: "success"
  16750. });
  16751. this.toolDetailIndex = i;
  16752. this.isUpdateToolDetail1 = true;
  16753. setTimeout(() => {
  16754. this.updateToolDetailInner = JSON.parse(
  16755. JSON.stringify(
  16756. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16757. this.taskCount
  16758. ].toolChoose[i].toolDetail
  16759. )
  16760. );
  16761. document.querySelector(".checkTextArea").focus();
  16762. }, 0);
  16763. this.getCourseDetail(2);
  16764. this.$forceUpdate();
  16765. })
  16766. .catch(err => {
  16767. console.error(err);
  16768. });
  16769. }
  16770. },
  16771. jumpGj(i, j, k, l) {
  16772. this.refreshAssembly();
  16773. for (var z = 0; z < this.navList.length; z++) {
  16774. for (var q = 0; q < this.navList[z].task.length; q++) {
  16775. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16776. this.navList[z].task[q].tool[w].isTool = false;
  16777. }
  16778. }
  16779. }
  16780. this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
  16781. .isTool;
  16782. var a = document.scrollingElement;
  16783. let target = document.querySelector(`#gj${k}`);
  16784. if (target) {
  16785. // target.scrollIntoView(true);
  16786. // setTimeout(() => {
  16787. // a.scrollTop = a.scrollTop - 150;
  16788. // }, 0);
  16789. target.scrollIntoView();
  16790. setTimeout(()=>{
  16791. let scrollBody = document.querySelector('.body_student').parentElement
  16792. scrollBody.scrollTop = scrollBody.scrollTop - 100
  16793. }, 0);
  16794. }
  16795. this.navId = "";
  16796. let flag = this.courseType == i;
  16797. let flag2 = this.taskCount == j;
  16798. if (l) {
  16799. this.courseType = i;
  16800. // this.navId = l;
  16801. this.taskCount = j;
  16802. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  16803. this.selectPz();
  16804. this.getHomeWork();
  16805. this.getCourseDetail(2);
  16806. if (flag) {
  16807. if (flag2) {
  16808. this.insertMemorandum(
  16809. `选择<span class="variable">工具${k + 1}:${
  16810. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16811. }</span>`
  16812. );
  16813. } else {
  16814. this.insertMemorandum(
  16815. `选择<span class="variable">任务${j + 1}${
  16816. this.navList[i].task[j].taskName
  16817. ? ":" + this.navList[i].task[j].taskName
  16818. : ""
  16819. }</span>→<span class="variable">工具${k + 1}:${
  16820. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16821. }</span>`
  16822. );
  16823. }
  16824. } else {
  16825. this.insertMemorandum(
  16826. `选择<span class="variable">阶段${i + 1}${
  16827. this.navList[i].dyName ? ":" + this.navList[i].dyName : ""
  16828. }</span>→<span class="variable">任务${j + 1}${
  16829. this.navList[i].task[j].taskName
  16830. ? ":" + this.navList[i].task[j].taskName
  16831. : ""
  16832. }</span>→<span class="variable">工具${k + 1}:${
  16833. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16834. }</span>`
  16835. );
  16836. }
  16837. }
  16838. },
  16839. addTools2(i) {
  16840. if (i == 4) {
  16841. // this.openTools2(4);
  16842. this.$message.error("暂未开放");
  16843. return;
  16844. }
  16845. if (i == 45) {
  16846. // this.openTools2(45);
  16847. this.$message.error("暂未开放");
  16848. return;
  16849. }
  16850. if (i == 47) {
  16851. // this.openTools2(47);
  16852. this.$message.error("暂未开放");
  16853. return;
  16854. }
  16855. if (i == 49) {
  16856. // this.openTools2(49);
  16857. this.$message.error("暂未开放");
  16858. return;
  16859. }
  16860. if (i == 62) {
  16861. // this.openTools(itemTaskIndex, 62, toolIndex);
  16862. this.$message.error("暂未开放");
  16863. return;
  16864. }
  16865. if (i == 15) {
  16866. // this.openTools(itemTaskIndex, 15, toolIndex);
  16867. this.$message.error("暂未开放");
  16868. return;
  16869. }
  16870. if (i == 40) {
  16871. // this.openTools(itemTaskIndex, 40, toolIndex);
  16872. this.$message.error("暂未开放");
  16873. return;
  16874. }
  16875. if (i == 41) {
  16876. // this.openTools(itemTaskIndex, 41, toolIndex);
  16877. this.$message.error("暂未开放");
  16878. return;
  16879. }
  16880. if (i == 42) {
  16881. // this.openTools(itemTaskIndex, 42, toolIndex);
  16882. this.$message.error("暂未开放");
  16883. return;
  16884. }
  16885. if (this.checktoolArray.length > 0) {
  16886. if (this.checktoolArray.indexOf(i) != -1) {
  16887. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  16888. } else {
  16889. this.checktoolArray = [];
  16890. this.checktoolArray.push(i);
  16891. }
  16892. } else {
  16893. this.checktoolArray.push(i);
  16894. }
  16895. this.$forceUpdate();
  16896. },
  16897. jump() {
  16898. window.parent.postMessage({ tools: "43" }, "*");
  16899. },
  16900. getUpdateMore(f, checkboxList, searchTN, index) {
  16901. this.dialogVisibleMember = f;
  16902. this.checkboxList = checkboxList;
  16903. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  16904. this.plIndex = index;
  16905. },
  16906. setPlname(a) {
  16907. if (this.plworkFile.length) {
  16908. this.plworkFile[this.plIndex].username = a;
  16909. } else {
  16910. this.worksSName = a;
  16911. }
  16912. this.dialogVisibleMember = false;
  16913. },
  16914. previewImg(url, w) {
  16915. this.$hevueImgPreview(url);
  16916. if (w) {
  16917. this.insertMemorandum(
  16918. `查看<span class="variable">${w.sName}</span>的作业`
  16919. );
  16920. }
  16921. },
  16922. checkImg(list) {
  16923. if (!list.length) {
  16924. return;
  16925. }
  16926. this.$hevueImgPreview({
  16927. multiple: true, // 开启多图预览模式
  16928. imgList: list // 需要预览的多图数组
  16929. });
  16930. },
  16931. change(val) {
  16932. console.log(val);
  16933. },
  16934. goTo(path) {
  16935. this.$router.push(path);
  16936. },
  16937. handlePictureCardPreview(url) {
  16938. this.dialogImageUrl = url;
  16939. this.pictureDialog = true;
  16940. },
  16941. clean(type) {
  16942. if (type == 1) {
  16943. this.studyJuri[0].cover.splice(0, 1);
  16944. } else if (type == 2) {
  16945. this.studyJuri[0].upVedio.splice(0, 1);
  16946. } else {
  16947. this.studyJuri[0].upFile.splice(0, 1);
  16948. }
  16949. },
  16950. clean2(index) {
  16951. this.plworkFile.splice(index, 1);
  16952. },
  16953. handleClose(done) {
  16954. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  16955. this.videoDetail.sources[0].src = "";
  16956. }
  16957. this.commentIndexJson = {};
  16958. done();
  16959. },
  16960. fullTools() {
  16961. this.full = !this.full;
  16962. },
  16963. imgChange(file, fileList, type) {
  16964. if (type == 1) {
  16965. var _tmp = this.studyJuri[0].cover;
  16966. } else if (type == 2) {
  16967. var _tmp = this.studyJuri[0].upVedio;
  16968. } else {
  16969. var _tmp = this.studyJuri[0].upFile;
  16970. }
  16971. this.noneBtnImg = _tmp.length >= 1;
  16972. },
  16973. setContent(bool) {
  16974. this.contentDialog = bool;
  16975. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  16976. document.querySelector(".workd_media").style.height = "650px";
  16977. } else if (document.querySelector(".workd_media")) {
  16978. document.querySelector(".workd_media").style.height = "auto";
  16979. }
  16980. },
  16981. setContent2(bool) {
  16982. this.mlDialog = bool;
  16983. if (
  16984. bool &&
  16985. this.contentDialog &&
  16986. document.querySelector(".workd_media")
  16987. ) {
  16988. document.querySelector(".workd_media").style.height = "650px";
  16989. } else if (document.querySelector(".workd_media")) {
  16990. document.querySelector(".workd_media").style.height = "auto";
  16991. }
  16992. },
  16993. openToolAll() {
  16994. this.toolDialogVisible = true;
  16995. },
  16996. addImg(e) {
  16997. var el = e.currentTarget;
  16998. // this.$message.success('触发上传')
  16999. el.getElementsByTagName("input")[0].click();
  17000. e.target.value = "";
  17001. },
  17002. addSelectAnswer() {
  17003. let params = [
  17004. {
  17005. uid: this.userid,
  17006. cid: this.id,
  17007. stage: this.courseType,
  17008. task: this.taskCount,
  17009. tool: this.toolindex,
  17010. content: this.selectAnswer.answer,
  17011. type: 7
  17012. }
  17013. ];
  17014. this.ajax
  17015. .post(this.$store.state.api + "addCourseWorks", params)
  17016. .then(res => {
  17017. this.$message({
  17018. message: "提交成功",
  17019. type: "success"
  17020. });
  17021. this.dialogVisibleSelect = false;
  17022. // this.selectAnswer = {};
  17023. this.selectSWorks();
  17024. this.selectStudent();
  17025. })
  17026. .catch(err => {
  17027. this.$message.error("提交失败");
  17028. console.error(err);
  17029. });
  17030. },
  17031. addSelectAnswerTeacher() {
  17032. let params = [
  17033. {
  17034. uid: this.sStudent.userid,
  17035. cid: this.id,
  17036. stage: this.courseType,
  17037. task: this.taskCount,
  17038. tool: this.toolindex,
  17039. content: this.selectAnswer.answer,
  17040. type: 7
  17041. }
  17042. ];
  17043. this.ajax
  17044. .post(this.$store.state.api + "addCourseWorks", params)
  17045. .then(res => {
  17046. this.$message({
  17047. message: "提交成功",
  17048. type: "success"
  17049. });
  17050. this.dialogVisibleSelectTeacher = false;
  17051. // this.selectAnswer = {};
  17052. this.selectSWorks();
  17053. this.selectStudent();
  17054. })
  17055. .catch(err => {
  17056. this.$message.error("提交失败");
  17057. console.error(err);
  17058. });
  17059. },
  17060. addSenWorks() {
  17061. for (var i = 0; i < this.sentenceList.length; i++) {
  17062. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17063. if (
  17064. this.sentenceList[i].chooseSenList[j] == undefined ||
  17065. this.sentenceList[i].chooseSenList[j] == ""
  17066. ) {
  17067. this.$message.error("请将答案填写完整!");
  17068. return;
  17069. }
  17070. }
  17071. }
  17072. let params = [
  17073. {
  17074. uid: this.userid,
  17075. cid: this.id,
  17076. stage: this.courseType,
  17077. task: this.taskCount,
  17078. tool: this.toolindex,
  17079. content: JSON.stringify(this.sentenceList),
  17080. type: 9
  17081. }
  17082. ];
  17083. this.ajax
  17084. .post(this.$store.state.api + "addCourseWorks", params)
  17085. .then(res => {
  17086. this.$message({
  17087. message: "提交成功",
  17088. type: "success"
  17089. });
  17090. this.dialogVisibleSentence = false;
  17091. // this.selectAnswer = {};
  17092. this.selectSWorks();
  17093. this.selectStudent();
  17094. })
  17095. .catch(err => {
  17096. this.$message.error("提交失败");
  17097. console.error(err);
  17098. });
  17099. },
  17100. addSenWorksTeacher() {
  17101. for (var i = 0; i < this.sentenceList.length; i++) {
  17102. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17103. if (
  17104. this.sentenceList[i].chooseSenList[j] == undefined ||
  17105. this.sentenceList[i].chooseSenList[j] == ""
  17106. ) {
  17107. this.$message.error("请将答案填写完整!");
  17108. return;
  17109. }
  17110. }
  17111. }
  17112. let params = [
  17113. {
  17114. uid: this.sStudent.userid,
  17115. cid: this.id,
  17116. stage: this.courseType,
  17117. task: this.taskCount,
  17118. tool: this.toolindex,
  17119. content: JSON.stringify(this.sentenceList),
  17120. type: 9
  17121. }
  17122. ];
  17123. this.ajax
  17124. .post(this.$store.state.api + "addCourseWorks", params)
  17125. .then(res => {
  17126. this.$message({
  17127. message: "提交成功",
  17128. type: "success"
  17129. });
  17130. this.dialogVisibleSentenceTeacher = false;
  17131. // this.selectAnswer = {};
  17132. this.selectSWorks();
  17133. this.selectStudent();
  17134. })
  17135. .catch(err => {
  17136. this.$message.error("提交失败");
  17137. console.error(err);
  17138. });
  17139. },
  17140. returnTableText() {
  17141. this.$confirm("确定还原此模板吗?", "提示", {
  17142. confirmButtonText: "确定",
  17143. cancelButtonText: "取消",
  17144. type: "warning"
  17145. })
  17146. .then(() => {
  17147. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17148. })
  17149. .catch(() => {});
  17150. },
  17151. addTableWorks() {
  17152. let params = [
  17153. {
  17154. uid: this.userid,
  17155. cid: this.id,
  17156. stage: this.courseType,
  17157. task: this.taskCount,
  17158. tool: this.toolindex,
  17159. content: JSON.stringify(this.tableJson),
  17160. type: 10
  17161. }
  17162. ];
  17163. this.ajax
  17164. .post(this.$store.state.api + "addCourseWorks", params)
  17165. .then(res => {
  17166. this.$message({
  17167. message: "提交成功",
  17168. type: "success"
  17169. });
  17170. this.dialogVisibleTable = false;
  17171. // this.selectAnswer = {};
  17172. this.selectSWorks();
  17173. this.selectStudent();
  17174. })
  17175. .catch(err => {
  17176. this.$message.error("提交失败");
  17177. console.error(err);
  17178. });
  17179. },
  17180. tableRowClassName({ row, rowIndex }) {
  17181. if ((rowIndex + 1) % 2 === 0) {
  17182. return "even_row";
  17183. } else {
  17184. return "";
  17185. }
  17186. },
  17187. addTableWorksTeacher() {
  17188. let params = [
  17189. {
  17190. uid: this.sStudent.userid,
  17191. cid: this.id,
  17192. stage: this.courseType,
  17193. task: this.taskCount,
  17194. tool: this.toolindex,
  17195. content: JSON.stringify(this.tableJson),
  17196. type: 10
  17197. }
  17198. ];
  17199. this.ajax
  17200. .post(this.$store.state.api + "addCourseWorks", params)
  17201. .then(res => {
  17202. this.$message({
  17203. message: "提交成功",
  17204. type: "success"
  17205. });
  17206. this.dialogVisibleTableTeacher = false;
  17207. // this.selectAnswer = {};
  17208. this.selectSWorks();
  17209. this.selectStudent();
  17210. })
  17211. .catch(err => {
  17212. this.$message.error("提交失败");
  17213. console.error(err);
  17214. });
  17215. },
  17216. returnWordText() {
  17217. this.$confirm("确定还原此模板吗?", "提示", {
  17218. confirmButtonText: "确定",
  17219. cancelButtonText: "取消",
  17220. type: "warning"
  17221. })
  17222. .then(() => {
  17223. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17224. })
  17225. .catch(() => {});
  17226. },
  17227. addWordWorks() {
  17228. let params = [
  17229. {
  17230. uid: this.userid,
  17231. cid: this.id,
  17232. stage: this.courseType,
  17233. task: this.taskCount,
  17234. tool: this.toolindex,
  17235. content: JSON.stringify(this.wordJson),
  17236. type: 13,
  17237. atool: 52
  17238. }
  17239. ];
  17240. this.ajax
  17241. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17242. .then(res => {
  17243. this.$message({
  17244. message: "提交成功",
  17245. type: "success"
  17246. });
  17247. this.dialogVisibleWord = false;
  17248. // this.selectAnswer = {};
  17249. this.selectSWorks();
  17250. this.selectStudent();
  17251. })
  17252. .catch(err => {
  17253. this.$message.error("提交失败");
  17254. console.error(err);
  17255. });
  17256. },
  17257. addWordWorksTeacher() {
  17258. let params = [
  17259. {
  17260. uid: this.sStudent.userid,
  17261. cid: this.id,
  17262. stage: this.courseType,
  17263. task: this.taskCount,
  17264. tool: this.toolindex,
  17265. content: JSON.stringify(this.wordJson),
  17266. type: 13,
  17267. atool: 52
  17268. }
  17269. ];
  17270. this.ajax
  17271. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17272. .then(res => {
  17273. this.$message({
  17274. message: "提交成功",
  17275. type: "success"
  17276. });
  17277. this.dialogVisibleWordTeacher = false;
  17278. // this.selectAnswer = {};
  17279. this.selectSWorks();
  17280. this.selectStudent();
  17281. })
  17282. .catch(err => {
  17283. this.$message.error("提交失败");
  17284. console.error(err);
  17285. });
  17286. },
  17287. addCourseWorksCopy(i) {
  17288. let arr = this.workStudent[this.toolindex].filter(e => {
  17289. return (e.userid = this.userid);
  17290. });
  17291. if (arr.length > 0) {
  17292. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17293. confirmButtonText: "确定",
  17294. cancelButtonText: "取消",
  17295. type: "warning"
  17296. })
  17297. .then(() => {
  17298. this.addCourseWorks(i);
  17299. })
  17300. .catch(() => {});
  17301. } else {
  17302. this.addCourseWorks(i);
  17303. }
  17304. },
  17305. addCourseWorks(i) {
  17306. var typesql;
  17307. if (this.fileType === 0) {
  17308. typesql = 1;
  17309. } else if (this.fileType === 1) {
  17310. typesql = 4;
  17311. } else if (this.fileType === 2) {
  17312. typesql = 5;
  17313. } else if (this.fileType === 3) {
  17314. typesql = 12;
  17315. }
  17316. if (!this.studyJuri[0].cover[0].url) {
  17317. this.$message.error("请上传文件");
  17318. return;
  17319. }
  17320. let params = [
  17321. {
  17322. uid: this.userid,
  17323. cid: this.id,
  17324. stage: this.courseType,
  17325. task: i,
  17326. tool: this.toolindex,
  17327. content: this.studyJuri[0].cover[0].url,
  17328. type: typesql
  17329. }
  17330. ];
  17331. this.ajax
  17332. .post(this.$store.state.api + "addCourseWorksR1", params)
  17333. .then(res => {
  17334. this.$message({
  17335. message: "提交成功",
  17336. type: "success"
  17337. });
  17338. this.studyJuri[0].cover = [];
  17339. this.dialogVisible = false;
  17340. this.getCourseDetail(2);
  17341. })
  17342. .catch(err => {
  17343. this.$message.error("提交失败");
  17344. console.error(err);
  17345. });
  17346. },
  17347. addCourseWorksPl(i) {
  17348. let _files = this.plworkFile;
  17349. var c = 1;
  17350. for (var k = 0; k < _files.length; k++) {
  17351. if (!_files[k].username) {
  17352. c = 2;
  17353. }
  17354. }
  17355. if (c == 2) {
  17356. this.$message.error("请填写学生姓名");
  17357. return;
  17358. }
  17359. let params = [
  17360. {
  17361. ateacher: this.userid,
  17362. cid: this.id,
  17363. stage: this.courseType,
  17364. task: i,
  17365. tool: this.toolindex,
  17366. content: JSON.stringify(_files)
  17367. }
  17368. ];
  17369. this.ajax
  17370. .post(this.$store.state.api + "addCourseWorksPl", params)
  17371. .then(res => {
  17372. this.$message({
  17373. message: "提交成功",
  17374. type: "success"
  17375. });
  17376. this.plworkFile = [];
  17377. this.dialogVisiblePl = false;
  17378. this.getCourseDetail(2);
  17379. })
  17380. .catch(err => {
  17381. this.$message.error("提交失败");
  17382. console.error(err);
  17383. });
  17384. },
  17385. addCourseWorks2(i) {
  17386. var typesql;
  17387. if (this.fileType === 0) {
  17388. typesql = 0;
  17389. } else if (this.fileType === 1) {
  17390. typesql = 1;
  17391. } else if (this.fileType === 2) {
  17392. typesql = 3;
  17393. } else if (this.fileType === 3) {
  17394. typesql = 12;
  17395. }
  17396. if (!this.studyJuri[0].cover[0].url) {
  17397. this.$message.error("请上传文件");
  17398. return;
  17399. }
  17400. let params = [
  17401. {
  17402. uid: this.userid,
  17403. cid: this.id,
  17404. stage: this.courseType,
  17405. task: i,
  17406. tool: this.toolindex,
  17407. content: JSON.stringify({
  17408. type: typesql,
  17409. groupIndex: this.groupIndex,
  17410. url: this.studyJuri[0].cover[0].url
  17411. }),
  17412. type: 11,
  17413. atool: 49,
  17414. text: ""
  17415. }
  17416. ];
  17417. this.ajax
  17418. .post(this.$store.state.api + "addCourseWorks5", params)
  17419. .then(res => {
  17420. this.$message({
  17421. message: "提交成功",
  17422. type: "success"
  17423. });
  17424. this.studyJuri[0].cover = [];
  17425. this.dialogVisibleGroupWork = false;
  17426. this.getCourseDetail(2);
  17427. })
  17428. .catch(err => {
  17429. this.$message.error("提交失败");
  17430. console.error(err);
  17431. });
  17432. },
  17433. addEnglishWork() {
  17434. this.myAnList = this.$refs["engJson"].myAnswerList;
  17435. if (
  17436. !this.myAnList.engTitle ||
  17437. !this.myAnList.engText ||
  17438. this.myAnList.engTitle == "" ||
  17439. this.myAnList.engText == ""
  17440. ) {
  17441. this.$message.error("请输入作文标题和正文!");
  17442. return;
  17443. }
  17444. let params = [
  17445. {
  17446. uid: this.userid,
  17447. cid: this.id,
  17448. stage: this.courseType,
  17449. task: this.taskCount,
  17450. tool: this.englishToolIndex,
  17451. content: JSON.stringify(this.myAnList),
  17452. type: 16,
  17453. atool: 69,
  17454. text: ""
  17455. }
  17456. ];
  17457. this.ajax
  17458. .post(this.$store.state.api + "addCourseWorks5", params)
  17459. .then(res => {
  17460. this.$message({
  17461. message: "提交成功",
  17462. type: "success"
  17463. });
  17464. this.myAnList = {};
  17465. this.englishList = {};
  17466. this.englishToolIndex = 0;
  17467. this.engDialogVisible = false;
  17468. this.selectSWorks();
  17469. this.selectStudent();
  17470. })
  17471. .catch(err => {
  17472. this.$message.error("提交失败");
  17473. console.error(err);
  17474. });
  17475. },
  17476. addCourseWorksGong(i, data, tool) {
  17477. let params = [
  17478. {
  17479. uid: this.userid,
  17480. cid: this.id,
  17481. stage: this.courseType,
  17482. task: this.taskCount,
  17483. tool: i,
  17484. content: data,
  17485. type: 12,
  17486. atool: tool,
  17487. text: ""
  17488. }
  17489. ];
  17490. this.ajax
  17491. .post(this.$store.state.api + "addCourseWorks5", params)
  17492. .then(res => {
  17493. this.$message({
  17494. message: "提交成功",
  17495. type: "success"
  17496. });
  17497. this.studyJuri[0].cover = [];
  17498. this.selectSWorks();
  17499. this.selectStudent();
  17500. })
  17501. .catch(err => {
  17502. this.$message.error("提交失败");
  17503. console.error(err);
  17504. });
  17505. },
  17506. addCourseWorksGongTeacher(i, data, tool) {
  17507. let params = [
  17508. {
  17509. uid: this.sStudent.userid,
  17510. cid: this.id,
  17511. stage: this.courseType,
  17512. task: this.taskCount,
  17513. tool: i,
  17514. content: data,
  17515. type: 12,
  17516. atool: tool,
  17517. text: ""
  17518. }
  17519. ];
  17520. this.ajax
  17521. .post(this.$store.state.api + "addCourseWorks5", params)
  17522. .then(res => {
  17523. this.$message({
  17524. message: "提交成功",
  17525. type: "success"
  17526. });
  17527. this.studyJuri[0].cover = [];
  17528. this.dialogVisibleWorks = false;
  17529. this.selectSWorks();
  17530. this.selectStudent();
  17531. })
  17532. .catch(err => {
  17533. this.$message.error("提交失败");
  17534. console.error(err);
  17535. });
  17536. },
  17537. addCourseWorksGongPl(i, data, tool, type) {
  17538. let params = [
  17539. {
  17540. uid: this.sStudent.userid,
  17541. cid: this.id,
  17542. stage: this.courseType,
  17543. task: this.taskCount,
  17544. tool: i,
  17545. content: data,
  17546. type: type,
  17547. atool: tool,
  17548. text: ""
  17549. }
  17550. ];
  17551. this.ajax
  17552. .post(this.$store.state.api + "addCourseWorks5", params)
  17553. .then(res => {
  17554. this.$message({
  17555. message: "提交成功",
  17556. type: "success"
  17557. });
  17558. this.studyJuri[0].cover = [];
  17559. this.dialogVisibleWorks = false;
  17560. this.selectSWorks();
  17561. this.selectStudent();
  17562. })
  17563. .catch(err => {
  17564. this.$message.error("提交失败");
  17565. console.error(err);
  17566. });
  17567. },
  17568. addCourseWorksTeacher(i) {
  17569. var typesql;
  17570. if (this.sTool == 32) {
  17571. this.addCourseWorksGongTeacher(
  17572. this.toolindex,
  17573. this.studyJuri[0].cover[0].url,
  17574. this.sTool
  17575. );
  17576. return;
  17577. }
  17578. if (this.fileType === 0) {
  17579. typesql = 1;
  17580. } else if (this.fileType === 1) {
  17581. typesql = 4;
  17582. } else if (this.fileType === 2) {
  17583. typesql = 5;
  17584. } else if (this.fileType === 3) {
  17585. typesql = 12;
  17586. }
  17587. if (this.sTool == 50) {
  17588. this.addCourseWorksGongPl(
  17589. this.toolindex,
  17590. this.studyJuri[0].cover[0].url,
  17591. this.sTool,
  17592. typesql
  17593. );
  17594. return;
  17595. }
  17596. if (!this.studyJuri[0].cover[0].url) {
  17597. this.$message.error("请上传文件");
  17598. return;
  17599. }
  17600. let params = [
  17601. {
  17602. uid: this.sStudent.userid,
  17603. cid: this.id,
  17604. stage: this.courseType,
  17605. task: i,
  17606. tool: this.toolindex,
  17607. content: this.studyJuri[0].cover[0].url,
  17608. type: typesql,
  17609. ateacher: this.userid
  17610. }
  17611. ];
  17612. this.ajax
  17613. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17614. .then(res => {
  17615. this.$message({
  17616. message: "提交成功",
  17617. type: "success"
  17618. });
  17619. this.studyJuri[0].cover = [];
  17620. this.dialogVisibleWorks = false;
  17621. this.getCourseDetail(2);
  17622. })
  17623. .catch(err => {
  17624. this.$message.error("提交失败");
  17625. console.error(err);
  17626. });
  17627. },
  17628. selectUploadStudent(type) {
  17629. const loading = this.$loading.service({
  17630. background: "rgba(255, 255, 255, 0.7)",
  17631. target: document.body
  17632. });
  17633. let params = {
  17634. cid: this.uploadCid,
  17635. oid: this.oid,
  17636. cn: ""
  17637. };
  17638. this.ajax
  17639. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17640. .then(res => {
  17641. loading.close();
  17642. var studentK = [];
  17643. if (this.isWorksS[this.toolindex].length > 0) {
  17644. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17645. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17646. }
  17647. studentK = studentK.join(",");
  17648. }
  17649. this.uploadStudentJuri = res.data[0].filter(el => {
  17650. return studentK.indexOf(el.userid) == -1;
  17651. });
  17652. if (this.worksSName && this.worksSid) {
  17653. this.uploadStudentJuri.push({
  17654. userid: this.worksSid,
  17655. name: this.worksSName
  17656. });
  17657. }
  17658. if (type == 1) {
  17659. this.plworkFile = [];
  17660. this.dialogVisibleSname = true;
  17661. } else if (type == 2) {
  17662. this.dialogVisiblePl = true;
  17663. }
  17664. })
  17665. .catch(err => {
  17666. loading.close();
  17667. console.error(err);
  17668. });
  17669. },
  17670. selectPickStudent() {
  17671. const loading = this.$loading.service({
  17672. background: "rgba(255, 255, 255, 0.7)",
  17673. target: document.body
  17674. });
  17675. let params = {
  17676. cid: this.uploadCid,
  17677. oid: this.oid,
  17678. cn: ""
  17679. };
  17680. this.ajax
  17681. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17682. .then(res => {
  17683. loading.close();
  17684. this.uploadStudentJuri = res.data[0];
  17685. this.dialogVisiblePickPeople = true;
  17686. })
  17687. .catch(err => {
  17688. loading.close();
  17689. console.error(err);
  17690. });
  17691. },
  17692. arrayToArray(arrayo, arrayt) {
  17693. let array1 = arrayo;
  17694. let array2 = arrayt;
  17695. let commonElements = [];
  17696. for (let i = 0; i < array1.length; i++) {
  17697. for (let j = 0; j < array2.length; j++) {
  17698. if (array1[i] === array2[j]) {
  17699. commonElements.push(array1[i]);
  17700. }
  17701. }
  17702. }
  17703. return commonElements;
  17704. },
  17705. selectWorksStudent() {
  17706. let params = {
  17707. oid: this.oid,
  17708. cid: this.courseDetail.juri
  17709. };
  17710. this.ajax
  17711. .get(this.$store.state.api + "selectWorksStudent", params)
  17712. .then(res => {
  17713. var a = res.data[0];
  17714. for (var i = 0; i < this.isWorksS.length; i++) {
  17715. this.noWorksS[i] = [];
  17716. var studentK = [];
  17717. if (this.isWorksS[i].length > 0) {
  17718. for (var z = 0; z < this.isWorksS[i].length; z++) {
  17719. studentK.push(this.isWorksS[i][z].uid);
  17720. }
  17721. studentK = studentK.join(",");
  17722. for (var j = 0; j < a.length; j++) {
  17723. if (studentK.indexOf(a[j].userid) == -1) {
  17724. if (this.tcid) {
  17725. // a[j].classid.indexOf(this.tcid) != -1
  17726. if (
  17727. this.arrayToArray(
  17728. a[j].classid.split(","),
  17729. this.tcid.split(",")
  17730. ).length
  17731. ) {
  17732. this.noWorksS[i].push({
  17733. student: a[j].name,
  17734. userid: a[j].userid
  17735. });
  17736. }
  17737. } else {
  17738. this.noWorksS[i].push({
  17739. student: a[j].name,
  17740. userid: a[j].userid
  17741. });
  17742. }
  17743. }
  17744. }
  17745. } else {
  17746. for (var k = 0; k < a.length; k++) {
  17747. if (this.tcid) {
  17748. if (
  17749. this.arrayToArray(
  17750. a[k].classid.split(","),
  17751. this.tcid.split(",")
  17752. ).length
  17753. ) {
  17754. this.noWorksS[i].push({
  17755. student: a[k].name,
  17756. userid: a[k].userid
  17757. });
  17758. }
  17759. } else {
  17760. this.noWorksS[i].push({
  17761. student: a[k].name,
  17762. userid: a[k].userid
  17763. });
  17764. }
  17765. }
  17766. }
  17767. }
  17768. this.$forceUpdate();
  17769. if (
  17770. Object.keys(this.commentDetail).length &&
  17771. Object.keys(this.commentIndexJson).length &&
  17772. !this.dialogVisibleScore &&
  17773. !this.dialogVisibleENScore
  17774. ) {
  17775. let a = 1;
  17776. let c = this.commentIndexJson;
  17777. if (
  17778. this.commentIndexJson.gindex ||
  17779. this.commentIndexJson.gindex === 0
  17780. ) {
  17781. for (
  17782. var i = 0;
  17783. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17784. i++
  17785. ) {
  17786. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  17787. groupA: for (var k = 0; k < _el.length; k++) {
  17788. let el = _el[k];
  17789. if (el.wid == this.commentDetail.wid) {
  17790. a = 2;
  17791. this.commentOther(
  17792. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  17793. this.commentIndexJson.toolIndex,
  17794. k,
  17795. this.commentIndexJson.gindex
  17796. );
  17797. break groupA;
  17798. }
  17799. }
  17800. }
  17801. if (a === 1) {
  17802. this.commentDetail = [];
  17803. this.commentIndexJson = {};
  17804. this.commentDialogVisible = false;
  17805. this.$message("此作业已被删除");
  17806. }
  17807. } else {
  17808. if (this.isGroup && this.commentIndexJson.gid) {
  17809. groupA: for (
  17810. var i = 0;
  17811. i < this.courseGroup.group.length;
  17812. i++
  17813. ) {
  17814. let _group = this.courseGroup.group[i];
  17815. if (_group.id == this.commentIndexJson.gid) {
  17816. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  17817. for (var k = 0; k < _el2.length; k++) {
  17818. let el2 = _el2[k];
  17819. if (el2.wid == this.commentDetail.wid) {
  17820. a = 2;
  17821. this.commentOther(
  17822. _el2[k],
  17823. this.commentIndexJson.toolIndex,
  17824. k,
  17825. null,
  17826. this.commentIndexJson.gid
  17827. );
  17828. break groupA;
  17829. }
  17830. }
  17831. }
  17832. }
  17833. }
  17834. if (a == 1) {
  17835. for (
  17836. var i = 0;
  17837. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17838. i++
  17839. ) {
  17840. let el = this.worksStudent[this.commentIndexJson.toolIndex][
  17841. i
  17842. ];
  17843. if (el.wid == this.commentDetail.wid) {
  17844. a = 2;
  17845. this.commentOther(
  17846. this.worksStudent[this.commentIndexJson.toolIndex][i],
  17847. this.commentIndexJson.toolIndex,
  17848. i
  17849. );
  17850. break;
  17851. }
  17852. }
  17853. }
  17854. if (a === 1) {
  17855. this.commentDetail = [];
  17856. this.commentIndexJson = {};
  17857. this.commentDialogVisible = false;
  17858. this.$message("此作业已被删除");
  17859. }
  17860. }
  17861. }
  17862. })
  17863. .catch(err => {
  17864. console.error(err);
  17865. });
  17866. },
  17867. selectStudent() {
  17868. //学生查看自己作业
  17869. let params = {
  17870. uid: this.userid,
  17871. cid: this.id,
  17872. s: this.courseType,
  17873. t: this.taskCount
  17874. };
  17875. this.ajax
  17876. .get(this.$store.state.api + "selectStudentWorks", params)
  17877. .then(res => {
  17878. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17879. this.taskCount
  17880. ].toolChoose;
  17881. var b = res.data[0];
  17882. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17883. var y = [
  17884. "AVI",
  17885. "NAVI",
  17886. "MPEG",
  17887. "ASF",
  17888. "MOV",
  17889. "WMV",
  17890. "3GP",
  17891. "RM",
  17892. "RMVB",
  17893. "FLV",
  17894. "F4V",
  17895. "H.264",
  17896. "H.265",
  17897. "REAL VIDEO",
  17898. "MKV",
  17899. "WebM",
  17900. "HDDVD",
  17901. "MP4",
  17902. "MPG",
  17903. "M4V",
  17904. "MGV",
  17905. "OGV",
  17906. "QTM",
  17907. "STR",
  17908. "AMC",
  17909. "DVX",
  17910. "EVO",
  17911. "DAT",
  17912. "OGG",
  17913. "OGM"
  17914. ];
  17915. for (var i = 0; i < a.length; i++) {
  17916. this.workStudent[i] = [];
  17917. for (var j = 0; j < b.length; j++) {
  17918. if (i == b[j].tool) {
  17919. if (
  17920. (b[j].type == 1 ||
  17921. b[j].type == 4 ||
  17922. b[j].type == 5 ||
  17923. b[j].type == 6 ||
  17924. b[j].type == 12 ||
  17925. b[j].type == 7) &&
  17926. a[i].tool[0] != 15 &&
  17927. a[i].tool[0] != 4 &&
  17928. a[i].tool[0] != 45 &&
  17929. a[i].tool[0] != 50 &&
  17930. a[i].tool[0] != 32 &&
  17931. a[i].tool[0] != 57 &&
  17932. a[i].tool[0] != 52 &&
  17933. a[i].tool[0] != 69
  17934. ) {
  17935. if (
  17936. c.indexOf(
  17937. b[j].content
  17938. .split(".")
  17939. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17940. ) != -1 &&
  17941. a[i].tool[0] == 16 &&
  17942. b[j].atool != 50
  17943. ) {
  17944. this.workStudent[i].push({
  17945. works: b[j].content,
  17946. sName: b[j].name,
  17947. score: b[j].score,
  17948. img: b[j].img,
  17949. type: 1,
  17950. time: b[j].time,
  17951. userid: b[j].userid,
  17952. wid: b[j].id
  17953. });
  17954. } else if (
  17955. y.indexOf(
  17956. b[j].content
  17957. .split(".")
  17958. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17959. ) != -1 &&
  17960. a[i].tool[0] == 16 &&
  17961. b[j].atool != 50
  17962. ) {
  17963. this.workStudent[i].push({
  17964. userid: b[j].userid,
  17965. wid: b[j].id,
  17966. works: b[j].content,
  17967. sName: b[j].name,
  17968. score: b[j].score,
  17969. img: b[j].img,
  17970. type: 3,
  17971. time: b[j].time
  17972. });
  17973. } else if (b[j].type == 6 && b[j].atool != 50) {
  17974. this.workStudent[i].push({
  17975. userid: b[j].userid,
  17976. wid: b[j].id,
  17977. works: b[j].content,
  17978. sName: b[j].name,
  17979. score: b[j].score,
  17980. img: b[j].img,
  17981. type: 4,
  17982. time: b[j].time
  17983. });
  17984. } else if (b[j].type == 7 && b[j].atool != 50) {
  17985. this.workStudent[i].push({
  17986. userid: b[j].userid,
  17987. wid: b[j].id,
  17988. works: b[j].content,
  17989. sName: b[j].name,
  17990. score: b[j].score,
  17991. img: b[j].img,
  17992. type: 5,
  17993. time: b[j].time
  17994. });
  17995. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  17996. this.workStudent[i].push({
  17997. works: b[j].content,
  17998. sName: b[j].name,
  17999. score: b[j].score,
  18000. img: b[j].img,
  18001. type: 12,
  18002. time: b[j].time,
  18003. userid: b[j].userid,
  18004. wid: b[j].id
  18005. });
  18006. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18007. this.workStudent[i].push({
  18008. works: b[j].content,
  18009. sName: b[j].name,
  18010. score: b[j].score,
  18011. img: b[j].img,
  18012. type: 0,
  18013. time: b[j].time,
  18014. userid: b[j].userid,
  18015. wid: b[j].id
  18016. });
  18017. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18018. this.workStudent[i].push({
  18019. works: b[j].content,
  18020. sName: b[j].name,
  18021. score: b[j].score,
  18022. img: b[j].img,
  18023. type: 0,
  18024. time: b[j].time,
  18025. userid: b[j].userid,
  18026. wid: b[j].id
  18027. });
  18028. }
  18029. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18030. this.workStudent[i].push({
  18031. works: b[j].content,
  18032. sName: b[j].name,
  18033. score: b[j].score,
  18034. img: b[j].img,
  18035. type: 2,
  18036. time: b[j].time,
  18037. userid: b[j].userid,
  18038. wid: b[j].id
  18039. });
  18040. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18041. //问卷
  18042. this.workStudent[i].push({
  18043. works: b[j].content,
  18044. sName: b[j].name,
  18045. score: b[j].score,
  18046. img: b[j].img,
  18047. type: 2,
  18048. time: b[j].time,
  18049. userid: b[j].userid,
  18050. wid: b[j].id
  18051. });
  18052. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18053. //选择题
  18054. this.workStudent[i].push({
  18055. works: b[j].content,
  18056. sName: b[j].name,
  18057. score: b[j].score,
  18058. img: b[j].img,
  18059. type: 8,
  18060. time: b[j].time,
  18061. userid: b[j].userid,
  18062. wid: b[j].id
  18063. });
  18064. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18065. //选择题
  18066. this.workStudent[i].push({
  18067. works: b[j].content,
  18068. sName: b[j].name,
  18069. score: b[j].score,
  18070. img: b[j].img,
  18071. type: 9,
  18072. time: b[j].time,
  18073. userid: b[j].userid,
  18074. wid: b[j].id
  18075. });
  18076. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18077. //选择题
  18078. this.workStudent[i].push({
  18079. works: b[j].content,
  18080. sName: b[j].name,
  18081. score: b[j].score,
  18082. img: b[j].img,
  18083. type: 10,
  18084. time: b[j].time,
  18085. userid: b[j].userid,
  18086. wid: b[j].id
  18087. });
  18088. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18089. //选择题
  18090. this.workStudent[i].push({
  18091. works: b[j].content,
  18092. sName: b[j].name,
  18093. score: b[j].score,
  18094. img: b[j].img,
  18095. type: 13,
  18096. time: b[j].time,
  18097. userid: b[j].userid,
  18098. wid: b[j].id
  18099. });
  18100. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18101. //选择题
  18102. this.workStudent[i].push({
  18103. works: b[j].content,
  18104. sName: b[j].name,
  18105. score: b[j].score,
  18106. img: b[j].img,
  18107. type: 12,
  18108. time: b[j].time,
  18109. userid: b[j].userid,
  18110. wid: b[j].id
  18111. });
  18112. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18113. //选择题
  18114. this.workStudent[i].push({
  18115. works: b[j].content,
  18116. sName: b[j].name,
  18117. score: b[j].score,
  18118. img: b[j].img,
  18119. type: 12,
  18120. time: b[j].time,
  18121. userid: b[j].userid,
  18122. wid: b[j].id
  18123. });
  18124. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18125. //选择题
  18126. this.workStudent[i].push({
  18127. works: b[j].content,
  18128. sName: b[j].name,
  18129. score: b[j].score,
  18130. img: b[j].img,
  18131. type: 15,
  18132. time: b[j].time,
  18133. userid: b[j].userid,
  18134. wid: b[j].id
  18135. });
  18136. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18137. //英语写作
  18138. this.workStudent[i].push({
  18139. works: b[j].content,
  18140. sName: b[j].name,
  18141. score: b[j].score,
  18142. img: b[j].img,
  18143. type: 16,
  18144. time: b[j].time,
  18145. userid: b[j].userid,
  18146. wid: b[j].id,
  18147. aiCode: b[j].aiCode,
  18148. teacherCode: b[j].teacherCode
  18149. });
  18150. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18151. //英语写作
  18152. this.workStudent[i].push({
  18153. works: b[j].content,
  18154. sName: b[j].name,
  18155. score: b[j].score,
  18156. img: b[j].img,
  18157. type: 17,
  18158. time: b[j].time,
  18159. userid: b[j].userid,
  18160. wid: b[j].id
  18161. });
  18162. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18163. //英语口语
  18164. this.workStudent[i].push({
  18165. works: b[j].content,
  18166. sName: b[j].name,
  18167. score: b[j].score,
  18168. img: b[j].img,
  18169. type: 14,
  18170. time: b[j].time,
  18171. userid: b[j].userid,
  18172. wid: b[j].id
  18173. });
  18174. }
  18175. }
  18176. }
  18177. }
  18178. })
  18179. .catch(err => {
  18180. console.error(err);
  18181. });
  18182. },
  18183. openVideo(w) {
  18184. this.videoDetail = {};
  18185. this.playerOptions1.sources[0].src = w.works;
  18186. this.videoDetail = this.playerOptions1;
  18187. this.videoVisible = true;
  18188. },
  18189. isLikes(wid, uid, t, c, isLikes, sName) {
  18190. if (isLikes == false) {
  18191. let params = [
  18192. {
  18193. wid: wid,
  18194. lid: uid,
  18195. t: t,
  18196. c: c
  18197. }
  18198. ];
  18199. this.ajax
  18200. .post(this.$store.state.api + "insertComment", params)
  18201. .then(res => {
  18202. this.$message({
  18203. message: "点赞成功",
  18204. type: "success"
  18205. });
  18206. this.selectSWorks();
  18207. this.selectStudent();
  18208. this.insertMemorandum(
  18209. `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
  18210. );
  18211. })
  18212. .catch(err => {
  18213. this.$message.error("点赞失败");
  18214. console.error(err);
  18215. });
  18216. } else {
  18217. let params = {
  18218. wid: wid,
  18219. lid: uid,
  18220. type: t
  18221. };
  18222. this.ajax
  18223. .get(this.$store.state.api + "deleteComment", params)
  18224. .then(res => {
  18225. this.$message({
  18226. message: "取消点赞成功",
  18227. type: "success"
  18228. });
  18229. this.selectSWorks();
  18230. this.selectStudent();
  18231. })
  18232. .catch(err => {
  18233. console.error(err);
  18234. });
  18235. }
  18236. },
  18237. deleteComment(wid) {
  18238. this.$confirm("确定删除此评论吗?", "提示", {
  18239. confirmButtonText: "确定",
  18240. cancelButtonText: "取消",
  18241. type: "warning"
  18242. })
  18243. .then(() => {
  18244. let params = {
  18245. id: wid
  18246. };
  18247. this.ajax
  18248. .get(this.$store.state.api + "deleteComment2", params)
  18249. .then(res => {
  18250. this.$message({
  18251. message: "删除评论成功",
  18252. type: "success"
  18253. });
  18254. this.selectSWorks();
  18255. this.selectStudent();
  18256. })
  18257. .catch(err => {
  18258. console.error(err);
  18259. });
  18260. })
  18261. .catch(() => {});
  18262. },
  18263. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18264. this.commentIndexJson = {
  18265. toolIndex: toolIndex,
  18266. wIndex: wIndex,
  18267. gindex: gindex,
  18268. gid: gid
  18269. };
  18270. this.commentDialogVisible = true;
  18271. // console.log('wwwwww',w)
  18272. if (JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works))
  18273. return;
  18274. this.commentDetailCopy = w.works;
  18275. this.commentDetail = [];
  18276. this.commentDetail = w;
  18277. if (w.works && w.type == 1) {
  18278. // this.pptImgUrl = "";
  18279. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18280. if (
  18281. a.indexOf(
  18282. w.works
  18283. .split(".")
  18284. [w.works.split(".").length - 1].toLocaleUpperCase()
  18285. ) != -1
  18286. ) {
  18287. let _uuurl = await this.checkLink(w.works);
  18288. this.pptImgUrl =
  18289. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18290. encodeURIComponent(_uuurl);
  18291. this.showPDF = false;
  18292. } else if (
  18293. w.works
  18294. .split(".")
  18295. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18296. ) {
  18297. this.pptImgUrl = w.works;
  18298. this.showPDF = true;
  18299. }
  18300. } else if (w.works && w.type == 3) {
  18301. this.videoDetail = {};
  18302. this.playerOptions1.sources[0].src = w.works;
  18303. this.videoDetail = this.playerOptions1;
  18304. // this.videoVisible = true;
  18305. } else if (w.works && w.type == 4) {
  18306. this.eScore = JSON.parse(w.works);
  18307. this.rateJson = this.chapInfoList[
  18308. this.courseType
  18309. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18310. toolIndex
  18311. ].rateJson;
  18312. } else if (w.works && w.type == 10) {
  18313. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18314. } else if (w.works && w.type == 12) {
  18315. getFile(this.commentDetail.works).then(res => {
  18316. this.commentDetail.works = res.data;
  18317. });
  18318. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18319. } else if (w.works && w.type == 13) {
  18320. this.wordJson = this.chapInfoList[
  18321. this.courseType
  18322. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18323. toolIndex
  18324. ].wordJson;
  18325. }
  18326. },
  18327. async openScore(w, index) {
  18328. this.wScore = 0;
  18329. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18330. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18331. this.commentDetail = [];
  18332. if (w.type == 17) {
  18333. this.dialogVisibleENScore = true;
  18334. } else {
  18335. this.dialogVisibleScore = true;
  18336. }
  18337. this.commentDetail = w;
  18338. if (w.works && w.type == 1) {
  18339. this.pptImgUrl = "";
  18340. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18341. if (
  18342. a.indexOf(
  18343. w.works
  18344. .split(".")
  18345. [w.works.split(".").length - 1].toLocaleUpperCase()
  18346. ) != -1
  18347. ) {
  18348. let _uuurl = await this.checkLink(w.works);
  18349. this.pptImgUrl =
  18350. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18351. encodeURIComponent(_uuurl);
  18352. this.showPDF = false;
  18353. } else if (
  18354. w.works
  18355. .split(".")
  18356. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18357. ) {
  18358. this.pptImgUrl = w.works;
  18359. this.showPDF = true;
  18360. }
  18361. } else if (w.works && w.type == 3) {
  18362. this.videoDetail = {};
  18363. this.playerOptions1.sources[0].src = w.works;
  18364. this.videoDetail = this.playerOptions1;
  18365. } else if (w.type == 17) {
  18366. let englishVoiceJson = {};
  18367. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18368. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18369. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18370. this.taskCount
  18371. ].toolChoose[index].englishVoiceJson
  18372. : {};
  18373. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18374. }
  18375. this.insertMemorandum(
  18376. `查看<span class="variable">${w.sName}</span>的作业`
  18377. );
  18378. },
  18379. addComment(wid, uid, t, detail) {
  18380. if (this.commentText == "") {
  18381. this.$message.error("请输入评论");
  18382. return;
  18383. }
  18384. let params2 = [
  18385. {
  18386. wid: wid,
  18387. lid: uid,
  18388. t: t
  18389. }
  18390. ];
  18391. this.ajax
  18392. .post(this.$store.state.api + "getComment", params2)
  18393. .then(res => {
  18394. if (res.data[0].length > 0) {
  18395. this.$message.error("一个作业只能评论一条");
  18396. } else {
  18397. let params = [
  18398. {
  18399. wid: wid,
  18400. lid: uid,
  18401. t: t,
  18402. c: this.commentText
  18403. }
  18404. ];
  18405. this.ajax
  18406. .post(this.$store.state.api + "insertComment", params)
  18407. .then(res => {
  18408. this.$message({
  18409. message: "评论成功",
  18410. type: "success"
  18411. });
  18412. this.commentText = "";
  18413. this.selectSWorks();
  18414. this.selectStudent();
  18415. this.insertMemorandum(
  18416. `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
  18417. );
  18418. })
  18419. .catch(err => {
  18420. this.$message.error("评论失败");
  18421. console.error(err);
  18422. });
  18423. }
  18424. })
  18425. .catch(err => {
  18426. // this.$message.error("评论失败");
  18427. console.error(err);
  18428. });
  18429. },
  18430. scoreWork(wid, sName) {
  18431. if (this.wScore == 0) {
  18432. this.$message.error("请评分");
  18433. return;
  18434. }
  18435. let params = [
  18436. {
  18437. wid: wid,
  18438. score: JSON.stringify({
  18439. wScore: this.wScore,
  18440. detail: this.scoreDetail
  18441. })
  18442. }
  18443. ];
  18444. this.ajax
  18445. .post(this.$store.state.api + "scoreWork", params)
  18446. .then(res => {
  18447. this.$message({
  18448. message: "评分成功",
  18449. type: "success"
  18450. });
  18451. this.wScore = 0;
  18452. this.scoreDetail = "";
  18453. this.dialogVisibleScore = false;
  18454. this.selectSWorks();
  18455. this.selectStudent();
  18456. this.insertMemorandum(
  18457. `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
  18458. );
  18459. })
  18460. .catch(err => {
  18461. this.$message.error("评分失败");
  18462. console.error(err);
  18463. });
  18464. },
  18465. openXz(w, i) {
  18466. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18467. .taskJson[this.taskCount].toolChoose[i].selectJson
  18468. ? JSON.parse(
  18469. JSON.stringify(
  18470. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18471. this.taskCount
  18472. ].toolChoose[i].selectJson
  18473. )
  18474. )
  18475. : { url: "", select: [], answer: [] };
  18476. var a = w.works.split(",");
  18477. for (var k = 0; k < a.length; k++) {
  18478. a[k] = parseInt(a[k]);
  18479. }
  18480. this.selectAnswer = { answer: a, stu: w.sName };
  18481. this.isSelect = true;
  18482. this.dialogVisibleSelect = true;
  18483. this.insertMemorandum(
  18484. `查看<span class="variable">${w.sName}</span>的作业`
  18485. );
  18486. },
  18487. openSen(w, i) {
  18488. this.sentenceList1 = JSON.parse(w.works);
  18489. this.sentenceList1.stuName = w.sName;
  18490. this.dialogVisibleSentence1 = true;
  18491. },
  18492. openPj(w, toolindex) {
  18493. this.isStar = true;
  18494. this.eScore = JSON.parse(w);
  18495. this.rateJson = this.chapInfoList[
  18496. this.courseType
  18497. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[toolindex].rateJson;
  18498. this.studentEvalDialogVisible = true;
  18499. },
  18500. openEnglishEva(id, i) {
  18501. let params = {
  18502. wid: id
  18503. };
  18504. this.ajax
  18505. .get(this.$store.state.api + "selectEngWork", params)
  18506. .then(res => {
  18507. this.evaEngJson.message = res.data[0][0];
  18508. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18509. this.evaEngJson.teacherJson = this.chapInfoList[
  18510. this.courseType
  18511. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].englishList;
  18512. this.engEvaDialogVisible = true;
  18513. })
  18514. .catch(err => {
  18515. console.error(err);
  18516. });
  18517. },
  18518. deleteWorks(id) {
  18519. this.$confirm("确定删除此作业吗?", "提示", {
  18520. confirmButtonText: "确定",
  18521. cancelButtonText: "取消",
  18522. type: "warning"
  18523. })
  18524. .then(() => {
  18525. let params = [
  18526. {
  18527. id: id
  18528. }
  18529. ];
  18530. this.ajax
  18531. .post(this.$store.state.api + "deleteCourseWork", params)
  18532. .then(res => {
  18533. this.$message({
  18534. message: "删除成功",
  18535. type: "success"
  18536. });
  18537. this.selectStudent();
  18538. this.selectSWorks();
  18539. this.selectSLook();
  18540. })
  18541. .catch(err => {
  18542. this.$message.error("网络异常");
  18543. console.error(err);
  18544. });
  18545. })
  18546. .catch(() => {});
  18547. },
  18548. // deleteWorksTwo(w,stage,task) {
  18549. // // let mk = `markSco${toolIndex}${wIndex}`
  18550. // // console.log(this.$refs[mk][0].homeworkVal)
  18551. // // let wid = this.$refs[mk][0].homeworkVal.id
  18552. // // console.log('wid',wid);
  18553. // this.$confirm("确定删除此作业吗?", "提示", {
  18554. // confirmButtonText: "确定",
  18555. // cancelButtonText: "取消",
  18556. // type: "warning",
  18557. // })
  18558. // .then(() => {
  18559. // let params = [
  18560. // {
  18561. // id: w.wid,
  18562. // cid: this.id,
  18563. // uid:w.userid,
  18564. // s:stage,
  18565. // t:task
  18566. // },
  18567. // ];
  18568. // // return console.log(params)
  18569. // this.ajax
  18570. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  18571. // .then((res) => {
  18572. // this.$message({
  18573. // message: "删除成功",
  18574. // type: "success",
  18575. // });
  18576. // this.selectStudent();
  18577. // this.selectSWorks();
  18578. // this.selectSLook();
  18579. // })
  18580. // .catch((err) => {
  18581. // this.$message.error("网络异常");
  18582. // console.error(err);
  18583. // });
  18584. // })
  18585. // .catch(() => {});
  18586. // },
  18587. noIsAi() {
  18588. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  18589. },
  18590. getLang() {
  18591. let lang = "";
  18592. if (this.languageSetting == 0) {
  18593. lang = "Chinese.";
  18594. } else if (this.languageSetting == 1) {
  18595. lang = "Traditional Chinese.";
  18596. } else if (this.languageSetting == 2) {
  18597. lang = "English.";
  18598. }
  18599. return lang;
  18600. },
  18601. selectSWorks(gindex) {
  18602. //教师查看全部作业
  18603. let params = {
  18604. cid: this.id,
  18605. s: this.courseType,
  18606. t: this.taskCount
  18607. };
  18608. this.ajax
  18609. .get(this.$store.state.api + "selectSWorks", params)
  18610. .then(res => {
  18611. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18612. this.taskCount
  18613. ].toolChoose;
  18614. var b = res.data[0];
  18615. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18616. var y = [
  18617. "AVI",
  18618. "NAVI",
  18619. "MPEG",
  18620. "ASF",
  18621. "MOV",
  18622. "WMV",
  18623. "3GP",
  18624. "RM",
  18625. "RMVB",
  18626. "FLV",
  18627. "F4V",
  18628. "H.264",
  18629. "H.265",
  18630. "REAL VIDEO",
  18631. "MKV",
  18632. "WebM",
  18633. "HDDVD",
  18634. "MP4",
  18635. "MPG",
  18636. "M4V",
  18637. "MGV",
  18638. "OGV",
  18639. "QTM",
  18640. "STR",
  18641. "AMC",
  18642. "DVX",
  18643. "EVO",
  18644. "DAT",
  18645. "OGG",
  18646. "OGM"
  18647. ];
  18648. var d = res.data[1];
  18649. var e = res.data[2];
  18650. var f = res.data[3];
  18651. let _worksStudent = [];
  18652. var _worksStudent2 = [];
  18653. for (var i = 0; i < a.length; i++) {
  18654. _worksStudent[i] = [];
  18655. _worksStudent2[i] = [];
  18656. if (
  18657. !this.isCloseList[i] ||
  18658. this.isCloseList[i].isClose == undefined
  18659. ) {
  18660. this.isCloseList[i] = { isClose: 0 };
  18661. }
  18662. this.groupStudent[i] = [];
  18663. this.groupStudentUid[i] = [];
  18664. if (this.isGroup) {
  18665. for (
  18666. var groupI = 0;
  18667. groupI < this.courseGroup.group.length;
  18668. groupI++
  18669. ) {
  18670. this.courseGroup.group[groupI].works[i] = [];
  18671. }
  18672. }
  18673. this.isWorksS[i] = [];
  18674. this.checkJson[i] = [];
  18675. if (a[i].tool[0] == 49) {
  18676. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18677. this.groupStudent[i][gA] = [];
  18678. this.groupStudentUid[i][gA] = [];
  18679. _worksStudent[i][gA] = [];
  18680. _worksStudent2[i][gA] = [];
  18681. this.isCloseList[i][gA] = [];
  18682. for (var g = 0; g < f.length; g++) {
  18683. if (
  18684. f[g].ttype == 2 &&
  18685. this.tcid &&
  18686. this.arrayToArray(
  18687. f[g].classid ? f[g].classid.split(",") : [],
  18688. this.tcid.split(",")
  18689. ).length == 0
  18690. ) {
  18691. continue;
  18692. }
  18693. let _classId = this.arrayToArray(
  18694. this.courseDetail.juri
  18695. ? this.courseDetail.juri.split(",")
  18696. : [],
  18697. this.classId ? this.classId.split(",") : []
  18698. );
  18699. if (
  18700. gA == f[g].group &&
  18701. f[g].tool == i &&
  18702. (this.arrayToArray(
  18703. f[g].classid ? f[g].classid.split(",") : [],
  18704. this.tcid.split(",")
  18705. ).length !== 0 ||
  18706. this.arrayToArray(
  18707. f[g].classid ? f[g].classid.split(",") : [],
  18708. _classId
  18709. ).length !== 0 ||
  18710. (!this.tcid && this.tType == "1") ||
  18711. this.courseDetail.juri === "" ||
  18712. f[g].ttype == 1)
  18713. ) {
  18714. this.groupStudent[i][gA].push(f[g]);
  18715. this.groupStudentUid[i][gA].push(f[g].userid);
  18716. }
  18717. }
  18718. }
  18719. this.$forceUpdate();
  18720. }
  18721. for (var j = 0; j < b.length; j++) {
  18722. if (
  18723. b[j].ttype == 2 &&
  18724. this.tcid &&
  18725. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  18726. .length == 0
  18727. ) {
  18728. continue;
  18729. }
  18730. var likesCount = 0;
  18731. var commentCount = 0;
  18732. var isLikes = false;
  18733. var commentJson = [];
  18734. var likeJson = [];
  18735. var data = b[j];
  18736. if (i == b[j].tool) {
  18737. if (data.type == 2 && a[i].tool[0] == 4) {
  18738. // if(JSON.parse(data.content)[0].anwer){
  18739. var checkL =
  18740. JSON.parse(data.content)[0].anwer instanceof Array
  18741. ? JSON.parse(data.content)[0].anwer
  18742. : JSON.parse(data.content)[0].anwer.split(",");
  18743. for (var z = 0; z < checkL.length; z++) {
  18744. if (!this.checkJson[i][z]) {
  18745. this.checkJson[i].push({
  18746. checkCount: [],
  18747. checkPerson: [],
  18748. rightPerson: []
  18749. });
  18750. }
  18751. if (!this.checkJson[i][z].checkCount.length) {
  18752. this.checkJson[i][z].checkCount = [];
  18753. let _askItemCount = JSON.parse(data.content)[0].askJson
  18754. .askJson[z].askItem;
  18755. for (var aic = 0; aic < _askItemCount; aic++) {
  18756. this.checkJson[i][z].checkCount.push(0);
  18757. }
  18758. }
  18759. if (checkL[z] instanceof Array) {
  18760. if (
  18761. JSON.parse(data.content)[0]
  18762. .anwer.sort()
  18763. .join(",") == checkL[z].sort().join(",")
  18764. ) {
  18765. this.checkJson[i][z].rightPerson.push(data.name);
  18766. }
  18767. for (var q = 0; q < checkL[z].length; q++) {
  18768. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18769. ? this.checkJson[i][z].checkPerson[
  18770. parseInt(checkL[z][q])
  18771. ].push(data.name)
  18772. : (this.checkJson[i][z].checkPerson[
  18773. parseInt(checkL[z][q])
  18774. ] = [data.name]);
  18775. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18776. ? this.checkJson[i][z].checkCount[
  18777. parseInt(checkL[z][q])
  18778. ]++
  18779. : (this.checkJson[i][z].checkCount[
  18780. parseInt(checkL[z][q])
  18781. ] = 1);
  18782. }
  18783. } else {
  18784. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  18785. this.checkJson[i][z].rightPerson.push(data.name);
  18786. }
  18787. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18788. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18789. ? this.checkJson[i][z].checkPerson[
  18790. parseInt(checkL[z])
  18791. ].push(data.name)
  18792. : (this.checkJson[i][z].checkPerson[
  18793. parseInt(checkL[z])
  18794. ] = [data.name]);
  18795. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18796. ? this.checkJson[i][z].checkCount[
  18797. parseInt(checkL[z])
  18798. ]++
  18799. : (this.checkJson[i][z].checkCount[
  18800. parseInt(checkL[z])
  18801. ] = 1);
  18802. }
  18803. }
  18804. }
  18805. } else if (data.type == 8 && a[i].tool[0] == 45) {
  18806. var checkL = JSON.parse(data.content)[0].anwer;
  18807. for (var z = 0; z < checkL.length; z++) {
  18808. if (!this.checkJson[i][z]) {
  18809. this.checkJson[i].push({
  18810. checkCount: [],
  18811. checkPerson: [],
  18812. rightPerson: []
  18813. });
  18814. }
  18815. if (!this.checkJson[i][z].checkCount.length) {
  18816. this.checkJson[i][z].checkCount = [];
  18817. let _askItemCount = JSON.parse(data.content)[0].testJson
  18818. .testJson[z].testItem;
  18819. for (var aic = 0; aic < _askItemCount; aic++) {
  18820. this.checkJson[i][z].checkCount.push(0);
  18821. }
  18822. }
  18823. if (checkL[z] instanceof Array) {
  18824. if (
  18825. JSON.parse(data.content)[0]
  18826. .testJson.testJson[z].answer.sort()
  18827. .join(",") == checkL[z].sort().join(",")
  18828. ) {
  18829. this.checkJson[i][z].rightPerson.push(data.name);
  18830. }
  18831. for (var q = 0; q < checkL[z].length; q++) {
  18832. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18833. ? this.checkJson[i][z].checkPerson[
  18834. parseInt(checkL[z][q])
  18835. ].push(data.name)
  18836. : (this.checkJson[i][z].checkPerson[
  18837. parseInt(checkL[z][q])
  18838. ] = [data.name]);
  18839. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18840. ? this.checkJson[i][z].checkCount[
  18841. parseInt(checkL[z][q])
  18842. ]++
  18843. : (this.checkJson[i][z].checkCount[
  18844. parseInt(checkL[z][q])
  18845. ] = 1);
  18846. }
  18847. } else {
  18848. if (
  18849. JSON.parse(data.content)[0].testJson.testJson[z]
  18850. .answer == checkL[z]
  18851. ) {
  18852. this.checkJson[i][z].rightPerson.push(data.name);
  18853. }
  18854. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18855. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18856. ? this.checkJson[i][z].checkPerson[
  18857. parseInt(checkL[z])
  18858. ].push(data.name)
  18859. : (this.checkJson[i][z].checkPerson[
  18860. parseInt(checkL[z])
  18861. ] = [data.name]);
  18862. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18863. ? this.checkJson[i][z].checkCount[
  18864. parseInt(checkL[z])
  18865. ]++
  18866. : (this.checkJson[i][z].checkCount[
  18867. parseInt(checkL[z])
  18868. ] = 1);
  18869. }
  18870. }
  18871. }
  18872. } else if (data.type == 9 && a[i].tool[0] == 47) {
  18873. var checkL = JSON.parse(data.content);
  18874. for (var z = 0; z < checkL.length; z++) {
  18875. if (!this.checkJson[i][z]) {
  18876. this.checkJson[i].push({
  18877. checkCount: [],
  18878. checkPerson: [],
  18879. rightPerson: []
  18880. });
  18881. }
  18882. this.checkJson[i][z].checkPerson.push(data.name);
  18883. if (
  18884. checkL[z].chooseSenList.toString() ==
  18885. checkL[z].rightAnswer.toString()
  18886. ) {
  18887. this.checkJson[i][z].rightPerson.push(data.name);
  18888. }
  18889. }
  18890. }
  18891. for (var k = 0; k < d.length; k++) {
  18892. //点赞
  18893. if (d[k].workId == b[j].id) {
  18894. likesCount++;
  18895. likeJson.push(d[k]);
  18896. if (d[k].likesId == this.userid) {
  18897. isLikes = true;
  18898. }
  18899. }
  18900. }
  18901. for (var l = 0; l < e.length; l++) {
  18902. //评论
  18903. if (e[l].workId == b[j].id) {
  18904. if (e[l].comment != "") {
  18905. commentCount++;
  18906. commentJson.push({
  18907. commentText: e[l].comment,
  18908. commentTime: e[l].commentTime,
  18909. commentPeople: e[l].commentPeople,
  18910. userid: e[l].userid,
  18911. wid: e[l].id
  18912. });
  18913. }
  18914. }
  18915. }
  18916. if (
  18917. (b[j].type == 1 ||
  18918. b[j].type == 4 ||
  18919. b[j].type == 5 ||
  18920. b[j].type == 6 ||
  18921. b[j].type == 12 ||
  18922. b[j].type == 7) &&
  18923. a[i].tool[0] != 15 &&
  18924. a[i].tool[0] != 4 &&
  18925. a[i].tool[0] != 45 &&
  18926. a[i].tool[0] != 50 &&
  18927. a[i].tool[0] != 32 &&
  18928. a[i].tool[0] != 57 &&
  18929. a[i].tool[0] != 52
  18930. ) {
  18931. if (
  18932. c.indexOf(
  18933. b[j].content
  18934. .split(".")
  18935. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18936. ) != -1 &&
  18937. a[i].tool[0] == 16 &&
  18938. b[j].atool != 50
  18939. ) {
  18940. let _works = {
  18941. userid: b[j].userid,
  18942. ateacher: b[j].ateacher,
  18943. wid: b[j].id,
  18944. works: b[j].content,
  18945. sName: b[j].name,
  18946. type: 1,
  18947. ttype: b[j].ttype,
  18948. time: b[j].time,
  18949. score: b[j].score,
  18950. img: b[j].img,
  18951. likesCount: likesCount,
  18952. commentCount: commentCount,
  18953. isLikes: isLikes,
  18954. commentJson: commentJson,
  18955. likeJson: likeJson
  18956. };
  18957. if (this.isGroup) {
  18958. let isGw = 1;
  18959. for (
  18960. var groupI = 0;
  18961. groupI < this.courseGroup.group.length;
  18962. groupI++
  18963. ) {
  18964. let gid = this.courseGroup.group[groupI].id;
  18965. if (
  18966. this.courseGroupStudentUid[gid].indexOf(
  18967. b[j].userid
  18968. ) != -1
  18969. ) {
  18970. isGw = 2;
  18971. this.courseGroup.group[groupI].works[i].push(_works);
  18972. break;
  18973. }
  18974. }
  18975. if (isGw == 1) {
  18976. _worksStudent[i].push(_works);
  18977. }
  18978. } else {
  18979. _worksStudent[i].push(_works);
  18980. }
  18981. _worksStudent2[i].push(_works);
  18982. this.isWorksS[i].push({
  18983. uid: b[j].userid,
  18984. sName: b[j].name
  18985. });
  18986. } else if (
  18987. y.indexOf(
  18988. b[j].content
  18989. .split(".")
  18990. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18991. ) != -1 &&
  18992. a[i].tool[0] == 16 &&
  18993. b[j].atool != 50
  18994. ) {
  18995. let _works = {
  18996. userid: b[j].userid,
  18997. ateacher: b[j].ateacher,
  18998. wid: b[j].id,
  18999. works: b[j].content,
  19000. sName: b[j].name,
  19001. type: 3,
  19002. ttype: b[j].ttype,
  19003. time: b[j].time,
  19004. score: b[j].score,
  19005. img: b[j].img,
  19006. likesCount: likesCount,
  19007. commentCount: commentCount,
  19008. isLikes: isLikes,
  19009. commentJson: commentJson,
  19010. likeJson: likeJson
  19011. };
  19012. if (this.isGroup) {
  19013. let isGw = 1;
  19014. for (
  19015. var groupI = 0;
  19016. groupI < this.courseGroup.group.length;
  19017. groupI++
  19018. ) {
  19019. let gid = this.courseGroup.group[groupI].id;
  19020. if (
  19021. this.courseGroupStudentUid[gid].indexOf(
  19022. b[j].userid
  19023. ) != -1
  19024. ) {
  19025. isGw = 2;
  19026. this.courseGroup.group[groupI].works[i].push(_works);
  19027. break;
  19028. }
  19029. }
  19030. if (isGw == 1) {
  19031. _worksStudent[i].push(_works);
  19032. }
  19033. } else {
  19034. _worksStudent[i].push(_works);
  19035. }
  19036. _worksStudent2[i].push(_works);
  19037. this.isWorksS[i].push({
  19038. uid: b[j].userid,
  19039. sName: b[j].name
  19040. });
  19041. } else if (b[j].type == 6 && b[j].atool != 50) {
  19042. let _works = {
  19043. userid: b[j].userid,
  19044. ateacher: b[j].ateacher,
  19045. wid: b[j].id,
  19046. works: b[j].content,
  19047. sName: b[j].name,
  19048. type: 4,
  19049. ttype: b[j].ttype,
  19050. time: b[j].time,
  19051. score: b[j].score,
  19052. img: b[j].img,
  19053. likesCount: likesCount,
  19054. commentCount: commentCount,
  19055. isLikes: isLikes,
  19056. commentJson: commentJson,
  19057. likeJson: likeJson
  19058. };
  19059. _worksStudent[i].push(_works);
  19060. _worksStudent2[i].push(_works);
  19061. this.isWorksS[i].push({
  19062. uid: b[j].userid,
  19063. sName: b[j].name
  19064. });
  19065. } else if (b[j].type == 7 && b[j].atool != 50) {
  19066. let _work = {
  19067. userid: b[j].userid,
  19068. ateacher: b[j].ateacher,
  19069. wid: b[j].id,
  19070. works: b[j].content,
  19071. sName: b[j].name,
  19072. type: 5,
  19073. ttype: b[j].ttype,
  19074. time: b[j].time,
  19075. score: b[j].score,
  19076. img: b[j].img,
  19077. likesCount: likesCount,
  19078. commentCount: commentCount,
  19079. isLikes: isLikes,
  19080. commentJson: commentJson,
  19081. likeJson: likeJson
  19082. };
  19083. _worksStudent[i].push(_work);
  19084. _worksStudent2[i].push(_work);
  19085. this.isWorksS[i].push({
  19086. uid: b[j].userid,
  19087. sName: b[j].name
  19088. });
  19089. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19090. let _works = {
  19091. userid: b[j].userid,
  19092. ateacher: b[j].ateacher,
  19093. wid: b[j].id,
  19094. works: b[j].content,
  19095. sName: b[j].name,
  19096. type: 12,
  19097. ttype: b[j].ttype,
  19098. time: b[j].time,
  19099. score: b[j].score,
  19100. img: b[j].img,
  19101. likesCount: likesCount,
  19102. commentCount: commentCount,
  19103. isLikes: isLikes,
  19104. commentJson: commentJson,
  19105. likeJson: likeJson
  19106. };
  19107. if (this.isGroup) {
  19108. let isGw = 1;
  19109. for (
  19110. var groupI = 0;
  19111. groupI < this.courseGroup.group.length;
  19112. groupI++
  19113. ) {
  19114. let gid = this.courseGroup.group[groupI].id;
  19115. if (
  19116. this.courseGroupStudentUid[gid].indexOf(
  19117. b[j].userid
  19118. ) != -1
  19119. ) {
  19120. isGw = 2;
  19121. this.courseGroup.group[groupI].works[i].push(_works);
  19122. break;
  19123. }
  19124. }
  19125. if (isGw == 1) {
  19126. _worksStudent[i].push(_works);
  19127. }
  19128. } else {
  19129. _worksStudent[i].push(_works);
  19130. }
  19131. _worksStudent2[i].push(_works);
  19132. this.isWorksS[i].push({
  19133. uid: b[j].userid,
  19134. sName: b[j].name
  19135. });
  19136. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19137. let _works = {
  19138. userid: b[j].userid,
  19139. ateacher: b[j].ateacher,
  19140. wid: b[j].id,
  19141. works: b[j].content,
  19142. sName: b[j].name,
  19143. type: 0,
  19144. ttype: b[j].ttype,
  19145. time: b[j].time,
  19146. score: b[j].score,
  19147. img: b[j].img,
  19148. likesCount: likesCount,
  19149. commentCount: commentCount,
  19150. isLikes: isLikes,
  19151. commentJson: commentJson,
  19152. likeJson: likeJson
  19153. };
  19154. if (this.isGroup) {
  19155. let isGw = 1;
  19156. for (
  19157. var groupI = 0;
  19158. groupI < this.courseGroup.group.length;
  19159. groupI++
  19160. ) {
  19161. let gid = this.courseGroup.group[groupI].id;
  19162. if (
  19163. this.courseGroupStudentUid[gid].indexOf(
  19164. b[j].userid
  19165. ) != -1
  19166. ) {
  19167. isGw = 2;
  19168. this.courseGroup.group[groupI].works[i].push(_works);
  19169. break;
  19170. }
  19171. }
  19172. if (isGw == 1) {
  19173. _worksStudent[i].push(_works);
  19174. }
  19175. } else {
  19176. _worksStudent[i].push(_works);
  19177. }
  19178. _worksStudent2[i].push(_works);
  19179. this.isWorksS[i].push({
  19180. uid: b[j].userid,
  19181. sName: b[j].name
  19182. });
  19183. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19184. let _works = {
  19185. userid: b[j].userid,
  19186. ateacher: b[j].ateacher,
  19187. wid: b[j].id,
  19188. works: b[j].content,
  19189. sName: b[j].name,
  19190. type: 0,
  19191. ttype: b[j].ttype,
  19192. time: b[j].time,
  19193. score: b[j].score,
  19194. img: b[j].img,
  19195. likesCount: likesCount,
  19196. commentCount: commentCount,
  19197. isLikes: isLikes,
  19198. commentJson: commentJson,
  19199. likeJson: likeJson
  19200. };
  19201. if (this.isGroup) {
  19202. let isGw = 1;
  19203. for (
  19204. var groupI = 0;
  19205. groupI < this.courseGroup.group.length;
  19206. groupI++
  19207. ) {
  19208. let gid = this.courseGroup.group[groupI].id;
  19209. if (
  19210. this.courseGroupStudentUid[gid].indexOf(
  19211. b[j].userid
  19212. ) != -1
  19213. ) {
  19214. isGw = 2;
  19215. this.courseGroup.group[groupI].works[i].push(_works);
  19216. break;
  19217. }
  19218. }
  19219. if (isGw == 1) {
  19220. _worksStudent[i].push(_works);
  19221. }
  19222. } else {
  19223. _worksStudent[i].push(_works);
  19224. }
  19225. _worksStudent2[i].push(_works);
  19226. this.isWorksS[i].push({
  19227. uid: b[j].userid,
  19228. sName: b[j].name
  19229. });
  19230. }
  19231. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19232. let _works = {
  19233. userid: b[j].userid,
  19234. ateacher: b[j].ateacher,
  19235. wid: b[j].id,
  19236. works: b[j].content,
  19237. sName: b[j].name,
  19238. type: 2,
  19239. ttype: b[j].ttype,
  19240. time: b[j].time,
  19241. score: b[j].score,
  19242. img: b[j].img,
  19243. likesCount: likesCount,
  19244. commentCount: commentCount,
  19245. isLikes: isLikes,
  19246. commentJson: commentJson,
  19247. likeJson: likeJson
  19248. };
  19249. if (this.isGroup) {
  19250. let isGw = 1;
  19251. for (
  19252. var groupI = 0;
  19253. groupI < this.courseGroup.group.length;
  19254. groupI++
  19255. ) {
  19256. let gid = this.courseGroup.group[groupI].id;
  19257. if (
  19258. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19259. -1
  19260. ) {
  19261. isGw = 2;
  19262. this.courseGroup.group[groupI].works[i].push(_works);
  19263. break;
  19264. }
  19265. }
  19266. if (isGw == 1) {
  19267. _worksStudent[i].push(_works);
  19268. }
  19269. } else {
  19270. _worksStudent[i].push(_works);
  19271. }
  19272. _worksStudent2[i].push(_works);
  19273. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19274. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19275. //问卷
  19276. let _work = {
  19277. userid: b[j].userid,
  19278. ateacher: b[j].ateacher,
  19279. wid: b[j].id,
  19280. works: b[j].content,
  19281. sName: b[j].name,
  19282. type: 2,
  19283. ttype: b[j].ttype,
  19284. time: b[j].time,
  19285. score: b[j].score,
  19286. img: b[j].img,
  19287. likesCount: likesCount,
  19288. commentCount: commentCount,
  19289. isLikes: isLikes,
  19290. commentJson: commentJson,
  19291. likeJson: likeJson
  19292. };
  19293. _worksStudent[i].push(_work);
  19294. _worksStudent2[i].push(_work);
  19295. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19296. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19297. //选择题
  19298. let _work = {
  19299. userid: b[j].userid,
  19300. ateacher: b[j].ateacher,
  19301. wid: b[j].id,
  19302. works: b[j].content,
  19303. sName: b[j].name,
  19304. type: 8,
  19305. ttype: b[j].ttype,
  19306. time: b[j].time,
  19307. score: b[j].score,
  19308. img: b[j].img,
  19309. likesCount: likesCount,
  19310. commentCount: commentCount,
  19311. isLikes: isLikes,
  19312. commentJson: commentJson,
  19313. likeJson: likeJson
  19314. };
  19315. _worksStudent[i].push(_work);
  19316. _worksStudent2[i].push(_work);
  19317. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19318. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19319. //选择题
  19320. let _work = {
  19321. userid: b[j].userid,
  19322. ateacher: b[j].ateacher,
  19323. wid: b[j].id,
  19324. works: b[j].content,
  19325. sName: b[j].name,
  19326. type: 9,
  19327. ttype: b[j].ttype,
  19328. time: b[j].time,
  19329. score: b[j].score,
  19330. img: b[j].img,
  19331. likesCount: likesCount,
  19332. commentCount: commentCount,
  19333. isLikes: isLikes,
  19334. commentJson: commentJson,
  19335. likeJson: likeJson
  19336. };
  19337. _worksStudent[i].push(_work);
  19338. _worksStudent2[i].push(_work);
  19339. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19340. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19341. //选择题
  19342. let _work = {
  19343. userid: b[j].userid,
  19344. ateacher: b[j].ateacher,
  19345. wid: b[j].id,
  19346. works: b[j].content,
  19347. sName: b[j].name,
  19348. type: 10,
  19349. ttype: b[j].ttype,
  19350. time: b[j].time,
  19351. score: b[j].score,
  19352. img: b[j].img,
  19353. likesCount: likesCount,
  19354. commentCount: commentCount,
  19355. isLikes: isLikes,
  19356. commentJson: commentJson,
  19357. likeJson: likeJson
  19358. };
  19359. _worksStudent[i].push(_work);
  19360. _worksStudent2[i].push(_work);
  19361. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19362. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19363. //选择题
  19364. let _work = {
  19365. userid: b[j].userid,
  19366. ateacher: b[j].ateacher,
  19367. wid: b[j].id,
  19368. works: b[j].content,
  19369. sName: b[j].name,
  19370. type: 13,
  19371. ttype: b[j].ttype,
  19372. time: b[j].time,
  19373. score: b[j].score,
  19374. img: b[j].img,
  19375. likesCount: likesCount,
  19376. commentCount: commentCount,
  19377. isLikes: isLikes,
  19378. commentJson: commentJson,
  19379. likeJson: likeJson
  19380. };
  19381. _worksStudent[i].push(_work);
  19382. _worksStudent2[i].push(_work);
  19383. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19384. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19385. //选择题
  19386. let _work = {
  19387. userid: b[j].userid,
  19388. ateacher: b[j].ateacher,
  19389. wid: b[j].id,
  19390. works: b[j].content,
  19391. sName: b[j].name,
  19392. type: 16,
  19393. ttype: b[j].ttype,
  19394. time: b[j].time,
  19395. score: b[j].score,
  19396. img: b[j].img,
  19397. likesCount: likesCount,
  19398. commentCount: commentCount,
  19399. isLikes: isLikes,
  19400. commentJson: commentJson,
  19401. aiCode: b[j].aiCode,
  19402. teacherCode: b[j].teacherCode,
  19403. likeJson: likeJson
  19404. };
  19405. _worksStudent[i].push(_work);
  19406. _worksStudent2[i].push(_work);
  19407. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19408. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19409. //选择题
  19410. let _work = {
  19411. userid: b[j].userid,
  19412. ateacher: b[j].ateacher,
  19413. wid: b[j].id,
  19414. works: b[j].content,
  19415. sName: b[j].name,
  19416. type: 17,
  19417. ttype: b[j].ttype,
  19418. time: b[j].time,
  19419. score: b[j].score,
  19420. img: b[j].img,
  19421. likesCount: likesCount,
  19422. commentCount: commentCount,
  19423. isLikes: isLikes,
  19424. commentJson: commentJson,
  19425. likeJson: likeJson
  19426. };
  19427. _worksStudent[i].push(_work);
  19428. _worksStudent2[i].push(_work);
  19429. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19430. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19431. //交互视频
  19432. let _work = {
  19433. userid: b[j].userid,
  19434. ateacher: b[j].ateacher,
  19435. wid: b[j].id,
  19436. works: b[j].content,
  19437. sName: b[j].name,
  19438. type: 14,
  19439. ttype: b[j].ttype,
  19440. time: b[j].time,
  19441. score: b[j].score,
  19442. img: b[j].img,
  19443. likesCount: likesCount,
  19444. commentCount: commentCount,
  19445. isLikes: isLikes,
  19446. commentJson: commentJson,
  19447. likeJson: likeJson
  19448. };
  19449. _worksStudent[i].push(_work);
  19450. _worksStudent2[i].push(_work);
  19451. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19452. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19453. let _gindex = JSON.parse(b[j].content);
  19454. if (
  19455. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19456. b[j].userid
  19457. ) != -1
  19458. ) {
  19459. let _work = {
  19460. userid: b[j].userid,
  19461. ateacher: b[j].ateacher,
  19462. wid: b[j].id,
  19463. works: _gindex.url,
  19464. sName: b[j].name,
  19465. type: _gindex.type,
  19466. ttype: b[j].ttype,
  19467. time: b[j].time,
  19468. score: b[j].score,
  19469. img: b[j].img,
  19470. likesCount: likesCount,
  19471. commentCount: commentCount,
  19472. isLikes: isLikes,
  19473. commentJson: commentJson,
  19474. likeJson: likeJson
  19475. };
  19476. _worksStudent[i][_gindex.groupIndex].push(_work);
  19477. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19478. }
  19479. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19480. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19481. let _work = {
  19482. userid: b[j].userid,
  19483. ateacher: b[j].ateacher,
  19484. wid: b[j].id,
  19485. works: b[j].content,
  19486. sName: b[j].name ? b[j].name : b[j].userid,
  19487. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19488. ttype: b[j].ttype,
  19489. time: b[j].time,
  19490. score: b[j].score,
  19491. img: b[j].img,
  19492. likesCount: likesCount,
  19493. commentCount: commentCount,
  19494. isLikes: isLikes,
  19495. commentJson: commentJson,
  19496. likeJson: likeJson
  19497. };
  19498. _worksStudent[i].push(_work);
  19499. _worksStudent2[i].push(_work);
  19500. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19501. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  19502. let _work = {
  19503. userid: b[j].userid,
  19504. ateacher: b[j].ateacher,
  19505. wid: b[j].id,
  19506. works: b[j].content,
  19507. sName: b[j].name ? b[j].name : b[j].userid,
  19508. type: 12,
  19509. ttype: b[j].ttype,
  19510. time: b[j].time,
  19511. score: b[j].score,
  19512. img: b[j].img,
  19513. likesCount: likesCount,
  19514. commentCount: commentCount,
  19515. isLikes: isLikes,
  19516. commentJson: commentJson,
  19517. likeJson: likeJson
  19518. };
  19519. _worksStudent[i].push(_work);
  19520. _worksStudent2[i].push(_work);
  19521. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19522. } else if (
  19523. a[i].tool[0] == 57 &&
  19524. b[j].atool == 57 &&
  19525. b[j].type == 12
  19526. ) {
  19527. let _work = {
  19528. userid: b[j].userid,
  19529. ateacher: b[j].ateacher,
  19530. wid: b[j].id,
  19531. works: b[j].content,
  19532. sName: b[j].name ? b[j].name : b[j].userid,
  19533. type: 12,
  19534. ttype: b[j].ttype,
  19535. time: b[j].time,
  19536. score: b[j].score,
  19537. img: b[j].img,
  19538. likesCount: likesCount,
  19539. commentCount: commentCount,
  19540. isLikes: isLikes,
  19541. commentJson: commentJson,
  19542. likeJson: likeJson
  19543. };
  19544. _worksStudent[i].push(_work);
  19545. _worksStudent2[i].push(_work);
  19546. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19547. } else if (
  19548. a[i].tool[0] == 57 &&
  19549. b[j].atool == 57 &&
  19550. b[j].type == 15
  19551. ) {
  19552. let _work = {
  19553. userid: b[j].userid,
  19554. ateacher: b[j].ateacher,
  19555. wid: b[j].id,
  19556. works: b[j].content,
  19557. sName: b[j].name ? b[j].name : b[j].userid,
  19558. type: 15,
  19559. ttype: b[j].ttype,
  19560. time: b[j].time,
  19561. score: b[j].score,
  19562. img: b[j].img,
  19563. likesCount: likesCount,
  19564. commentCount: commentCount,
  19565. isLikes: isLikes,
  19566. commentJson: commentJson,
  19567. likeJson: likeJson
  19568. };
  19569. _worksStudent[i].push(_work);
  19570. _worksStudent2[i].push(_work);
  19571. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19572. }
  19573. }
  19574. }
  19575. if (_worksStudent[i] && _worksStudent[i].length) {
  19576. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19577. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19578. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19579. var scoreA = parseFloat(jscoreA);
  19580. var scoreB = parseFloat(jscoreB);
  19581. if (scoreA == scoreB) {
  19582. return b.likesCount - a.likesCount;
  19583. }
  19584. return scoreB - scoreA;
  19585. });
  19586. if (this.isGroup) {
  19587. for (
  19588. var groupI = 0;
  19589. groupI < this.courseGroup.group.length;
  19590. groupI++
  19591. ) {
  19592. this.courseGroup.group[groupI].works[
  19593. i
  19594. ] = this.courseGroup.group[groupI].works[i].sort(function(
  19595. a,
  19596. b
  19597. ) {
  19598. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19599. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19600. var scoreA = parseFloat(jscoreA);
  19601. var scoreB = parseFloat(jscoreB);
  19602. if (scoreA == scoreB) {
  19603. return b.likesCount - a.likesCount;
  19604. }
  19605. return scoreB - scoreA;
  19606. });
  19607. }
  19608. }
  19609. }
  19610. }
  19611. this.timeWorkList = _worksStudent2;
  19612. for (var i = 0; i < a.length; i++) {
  19613. for (var j = 0; j < b.length; j++) {
  19614. var data = b[j];
  19615. if (i == b[j].tool) {
  19616. if (data.type == 2 || data.type == 8) {
  19617. for (var z = 0; z < this.checkJson[i].length; z++) {
  19618. this.checkJson[i][z].checkPerent = [];
  19619. this.checkJson[i][z].right = Math.round(
  19620. (this.checkJson[i][z].rightPerson.length /
  19621. parseInt(_worksStudent[i].length)) *
  19622. 100
  19623. );
  19624. let aaaa = this.checkJson[i][z];
  19625. for (
  19626. var k = 0;
  19627. k < this.checkJson[i][z].checkCount.length;
  19628. k++
  19629. ) {
  19630. this.checkJson[i][z].checkPerent.push(
  19631. Math.round(
  19632. (this.checkJson[i][z].checkCount[k] /
  19633. parseInt(_worksStudent[i].length)) *
  19634. 100
  19635. )
  19636. );
  19637. }
  19638. }
  19639. } else if (data.type == 9) {
  19640. for (var z = 0; z < this.checkJson[i].length; z++) {
  19641. this.checkJson[i][z].checkPerent = [];
  19642. this.checkJson[i][z].right = Math.round(
  19643. (this.checkJson[i][z].rightPerson.length /
  19644. this.checkJson[i][z].checkPerson.length) *
  19645. 100
  19646. );
  19647. }
  19648. }
  19649. }
  19650. }
  19651. }
  19652. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  19653. this.joinGroup(gindex);
  19654. }
  19655. this.worksStudent = _worksStudent;
  19656. if (
  19657. JSON.stringify(this.worksStudentCopy) !=
  19658. JSON.stringify(this.worksStudent)
  19659. ) {
  19660. console.log("88888999999");
  19661. this.worksStudentCopy = this.worksStudent;
  19662. this.AIloading = [];
  19663. this.loopLoading = [];
  19664. this.worksStudent.forEach((e, index) => {
  19665. this.loopLoading.push({ loading: false });
  19666. this.AIloading.push([]);
  19667. e.forEach(k => {
  19668. this.AIloading[index].push({ loading: false, sco: 0 });
  19669. });
  19670. });
  19671. this.refreshAssembly();
  19672. }
  19673. this.selectWorksStudent();
  19674. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  19675. this.$nextTick(() => {
  19676. setTimeout(() => {
  19677. setTimeout(() => {
  19678. this.panToolHeight("tool-" + ci);
  19679. }, 500);
  19680. }, 0);
  19681. });
  19682. }
  19683. })
  19684. .catch(err => {
  19685. console.error(err);
  19686. });
  19687. },
  19688. pngToWhiteBg(file) {
  19689. const _file = file;
  19690. let read = new FileReader();
  19691. read.readAsDataURL(file); // 文件转base64
  19692. return new Promise((resolve, reject) => {
  19693. read.onload = e => {
  19694. let img = new Image();
  19695. img.src = e.target.result;
  19696. img.onload = async () => {
  19697. // 生成canvas
  19698. let canvas = document.createElement("canvas");
  19699. let context = canvas.getContext("2d");
  19700. // 绘制图片到canvas上
  19701. canvas.width = img.width;
  19702. canvas.height = img.height;
  19703. // 在canvas绘制前填充白色背景
  19704. context.fillStyle = "#fff";
  19705. context.fillRect(0, 0, canvas.width, canvas.height);
  19706. context.drawImage(img, 0, 0);
  19707. let base64 = canvas.toDataURL(file["type"], 1);
  19708. let newFile = this.dataUrlToFile(base64, _file);
  19709. resolve(newFile);
  19710. };
  19711. };
  19712. });
  19713. },
  19714. dataUrlToFile(dataurl, file) {
  19715. let arr = dataurl.split(","),
  19716. mime = arr[0].match(/:(.*?);/)[1],
  19717. bstr = atob(arr[1]),
  19718. n = bstr.length,
  19719. u8arr = new Uint8Array(n);
  19720. while (n--) {
  19721. u8arr[n] = bstr.charCodeAt(n);
  19722. }
  19723. // return new Blob([u8arr], { type: mime });
  19724. return new File([new Blob([u8arr], { type: mime })], file.name, {
  19725. type: mime
  19726. });
  19727. },
  19728. async beforeUpload1(event, type, i) {
  19729. // this.$message.success('进入上传')
  19730. var file = "";
  19731. if (type == 5) {
  19732. file = event;
  19733. } else {
  19734. file = event.target.files[0];
  19735. }
  19736. var credentials = {
  19737. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19738. secretAccessKey: "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"
  19739. }; //秘钥形式的登录上传
  19740. window.AWS.config.update(credentials);
  19741. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19742. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19743. var _this = this;
  19744. _this.progress = 0;
  19745. _this.proVisible = true;
  19746. _this.isFinishSize = 0;
  19747. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  19748. var b = [
  19749. "DOC",
  19750. "DOCX",
  19751. "DOCM",
  19752. "DOTM",
  19753. "DOTX",
  19754. "PPTX",
  19755. "PPSX",
  19756. "PPT",
  19757. "PPS",
  19758. "PPTM",
  19759. "POTM",
  19760. "PPAM",
  19761. "POTX",
  19762. "PPSM"
  19763. ];
  19764. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19765. var photoA = [
  19766. "BMP",
  19767. "GIF",
  19768. "PNG",
  19769. "JPEG",
  19770. "JPEG",
  19771. "JPG",
  19772. "TIF",
  19773. "PCX",
  19774. "TGA",
  19775. "EXIF",
  19776. "FPX",
  19777. "SVG",
  19778. "APNG"
  19779. ];
  19780. // if (
  19781. // b.indexOf(
  19782. // file.name
  19783. // .split(".")
  19784. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19785. // ) != -1
  19786. // ) {
  19787. // if (file.size / 1024 / 1024 > 10) {
  19788. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  19789. // return;
  19790. // }
  19791. // } else if (
  19792. // excelA.indexOf(
  19793. // file.name
  19794. // .split(".")
  19795. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19796. // ) != "-1"
  19797. // ) {
  19798. // if (file.size / 1024 / 1024 > 5) {
  19799. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  19800. // return;
  19801. // }
  19802. // }
  19803. if (
  19804. photoA.indexOf(
  19805. file.name
  19806. .split(".")
  19807. [file.name.split(".").length - 1].toLocaleUpperCase()
  19808. ) != -1 &&
  19809. type != 4
  19810. ) {
  19811. // const blob = await imageConversion.compress(file, 0.8)
  19812. file = await this.pngToWhiteBg(file);
  19813. const blob = await imageConversion.compressAccurately(file, 256);
  19814. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19815. file = new File([blob], file.name, { type: file.type });
  19816. }
  19817. if (file) {
  19818. var params = {
  19819. Key:
  19820. file.name.split(".")[0] +
  19821. new Date().getTime() +
  19822. "." +
  19823. file.name.split(".")[file.name.split(".").length - 1],
  19824. ContentType: file.type,
  19825. Body: file,
  19826. "Access-Control-Allow-Credentials": "*",
  19827. ACL: "public-read"
  19828. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19829. var options = {
  19830. // partSize: 2048 * 1024 * 1024,
  19831. partSize: 1024 * 1024 * 1024,
  19832. queueSize: 2,
  19833. leavePartsOnError: true
  19834. };
  19835. bucket
  19836. .upload(params, options)
  19837. .on("httpUploadProgress", function(evt) {
  19838. //这里可以写进度条
  19839. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19840. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  19841. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  19842. })
  19843. .send(function(err, data) {
  19844. _this.progress = 100;
  19845. _this.isFinishSize = _this.isAllSize;
  19846. setTimeout(() => {
  19847. _this.proVisible = false;
  19848. }, 1000);
  19849. if (err) {
  19850. var a = _this.$refs.upload1.uploadFiles;
  19851. a.splice(a.length - 1, a.length);
  19852. _this.$message.error("上传失败");
  19853. } else {
  19854. // _this.$message.success('上传成功')
  19855. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19856. var c = [
  19857. "AVI",
  19858. "NAVI",
  19859. "MPEG",
  19860. "ASF",
  19861. "MOV",
  19862. "WMV",
  19863. "3GP",
  19864. "RM",
  19865. "RMVB",
  19866. "FLV",
  19867. "F4V",
  19868. "H.264",
  19869. "H.265",
  19870. "REAL VIDEO",
  19871. "MKV",
  19872. "WebM",
  19873. "HDDVD",
  19874. "MP4",
  19875. "MPG",
  19876. "M4V",
  19877. "MGV",
  19878. "OGV",
  19879. "QTM",
  19880. "STR",
  19881. "AMC",
  19882. "DVX",
  19883. "EVO",
  19884. "DAT",
  19885. "OGG",
  19886. "OGM"
  19887. ];
  19888. if (type == 1) {
  19889. _this.studyJuri[0].cover.push({
  19890. name: file.name,
  19891. url: data.Location,
  19892. uid: file.uid
  19893. });
  19894. if (
  19895. c.indexOf(
  19896. _this.studyJuri[0].cover[0].url
  19897. .split(".")
  19898. [
  19899. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19900. ].toLocaleUpperCase()
  19901. ) != -1
  19902. ) {
  19903. _this.fileType = 2;
  19904. } else if (
  19905. b.indexOf(
  19906. _this.studyJuri[0].cover[0].url
  19907. .split(".")
  19908. [
  19909. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19910. ].toLocaleUpperCase()
  19911. ) != -1
  19912. ) {
  19913. _this.fileType = 1;
  19914. } else if (
  19915. photoA.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 = 0;
  19924. } else {
  19925. _this.fileType = 3;
  19926. }
  19927. _this.imgChange(null, null, type);
  19928. } else if (type == 2) {
  19929. _this.upToolImg = data.Location;
  19930. _this.imgChange(null, null, type);
  19931. _this.addCourseWorks(i);
  19932. } else if (type == 4) {
  19933. _this.addPz("3", data.Location);
  19934. } else if (type == 5) {
  19935. _this.addImgDrawImG(data.Location);
  19936. } else if (type == 6) {
  19937. var _ftype = 1;
  19938. if (
  19939. c.indexOf(
  19940. data.Location.split(".")[
  19941. data.Location.split(".").length - 1
  19942. ].toLocaleUpperCase()
  19943. ) != -1
  19944. ) {
  19945. _ftype = 5;
  19946. } else if (
  19947. b.indexOf(
  19948. data.Location.split(".")[
  19949. data.Location.split(".").length - 1
  19950. ].toLocaleUpperCase()
  19951. ) != -1
  19952. ) {
  19953. _ftype = 4;
  19954. } else {
  19955. _ftype = 1;
  19956. }
  19957. _this.plworkFile.push({
  19958. name: file.name,
  19959. url: data.Location,
  19960. uid: file.uid,
  19961. fileType: _ftype,
  19962. username:
  19963. _this.plworkFile.length > 10
  19964. ? _this.plworkFile.length + 1
  19965. : "0" + (_this.plworkFile.length + 1)
  19966. });
  19967. } else if (type == 7) {
  19968. _this.addCourseWorksGong(i, data.Location, 32);
  19969. } else if (type == 8) {
  19970. _this.addCourseWorksGong(i, data.Location, 57);
  19971. }
  19972. _this.imgChange(null, null, type);
  19973. console.log(data.Location);
  19974. // _this.$message.success('上传成功'+data.Location)
  19975. }
  19976. });
  19977. }
  19978. },
  19979. async beforeUpload3(event, type, i) {
  19980. // this.$message.success('进入上传')
  19981. let file = "";
  19982. let cfindex2 = 0;
  19983. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  19984. file = event.target.files[cfindex];
  19985. var credentials = {
  19986. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19987. secretAccessKey: "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"
  19988. }; //秘钥形式的登录上传
  19989. window.AWS.config.update(credentials);
  19990. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19991. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19992. var _this = this;
  19993. // _this.progress = 0;
  19994. _this.proVisible2 = true;
  19995. var b = [
  19996. "DOC",
  19997. "DOCX",
  19998. "DOCM",
  19999. "DOTM",
  20000. "DOTX",
  20001. "PPTX",
  20002. "PPSX",
  20003. "PPT",
  20004. "PPS",
  20005. "PPTM",
  20006. "POTM",
  20007. "PPAM",
  20008. "POTX",
  20009. "PPSM"
  20010. ];
  20011. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20012. var photoA = [
  20013. "BMP",
  20014. "GIF",
  20015. "PNG",
  20016. "JPEG",
  20017. "JPG",
  20018. "TIF",
  20019. "PCX",
  20020. "TGA",
  20021. "EXIF",
  20022. "FPX",
  20023. "SVG",
  20024. "APNG"
  20025. ];
  20026. if (
  20027. photoA.indexOf(
  20028. file.name
  20029. .split(".")
  20030. [file.name.split(".").length - 1].toLocaleUpperCase()
  20031. ) != -1 &&
  20032. type != 4
  20033. ) {
  20034. // const blob = await imageConversion.compress(file, 0.8)
  20035. file = await this.pngToWhiteBg(file);
  20036. const blob = await imageConversion.compressAccurately(file, 256);
  20037. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20038. file = new File([blob], file.name, { type: file.type });
  20039. }
  20040. if (file) {
  20041. var params = {
  20042. Key:
  20043. file.name.split(".")[0] +
  20044. new Date().getTime() +
  20045. "." +
  20046. file.name.split(".")[file.name.split(".").length - 1],
  20047. ContentType: file.type,
  20048. Body: file,
  20049. "Access-Control-Allow-Credentials": "*",
  20050. ACL: "public-read"
  20051. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20052. var options = {
  20053. // partSize: 2048 * 1024 * 1024,
  20054. partSize: 1024 * 1024 * 1024,
  20055. queueSize: 2,
  20056. leavePartsOnError: true
  20057. };
  20058. bucket
  20059. .upload(params, options)
  20060. .on("httpUploadProgress", function(evt) {
  20061. //这里可以写进度条
  20062. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20063. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20064. })
  20065. .send(function(err, data) {
  20066. // _this.progress = 100;
  20067. cfindex2++;
  20068. setTimeout(() => {
  20069. if (
  20070. cfindex2 == event.target.files.length - 1 ||
  20071. cfindex2 > event.target.files.length - 1
  20072. ) {
  20073. _this.proVisible2 = false;
  20074. }
  20075. }, 1000);
  20076. if (err) {
  20077. var a = _this.$refs.upload1.uploadFiles;
  20078. a.splice(a.length - 1, a.length);
  20079. _this.$message.error("上传失败");
  20080. } else {
  20081. // _this.$message.success('上传成功')
  20082. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20083. var c = [
  20084. "AVI",
  20085. "NAVI",
  20086. "MPEG",
  20087. "ASF",
  20088. "MOV",
  20089. "WMV",
  20090. "3GP",
  20091. "RM",
  20092. "RMVB",
  20093. "FLV",
  20094. "F4V",
  20095. "H.264",
  20096. "H.265",
  20097. "REAL VIDEO",
  20098. "MKV",
  20099. "WebM",
  20100. "HDDVD",
  20101. "MP4",
  20102. "MPG",
  20103. "M4V",
  20104. "MGV",
  20105. "OGV",
  20106. "QTM",
  20107. "STR",
  20108. "AMC",
  20109. "DVX",
  20110. "EVO",
  20111. "DAT",
  20112. "OGG",
  20113. "OGM"
  20114. ];
  20115. if (type == 1) {
  20116. _this.studyJuri[0].cover.push({
  20117. name: file.name,
  20118. url: data.Location,
  20119. uid: file.uid
  20120. });
  20121. if (
  20122. c.indexOf(
  20123. _this.studyJuri[0].cover[0].url
  20124. .split(".")
  20125. [
  20126. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20127. ].toLocaleUpperCase()
  20128. ) != -1
  20129. ) {
  20130. _this.fileType = 2;
  20131. } else if (
  20132. b.indexOf(
  20133. _this.studyJuri[0].cover[0].url
  20134. .split(".")
  20135. [
  20136. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20137. ].toLocaleUpperCase()
  20138. ) != -1
  20139. ) {
  20140. _this.fileType = 1;
  20141. } else {
  20142. _this.fileType = 0;
  20143. }
  20144. _this.imgChange(null, null, type);
  20145. } else if (type == 2) {
  20146. _this.upToolImg = data.Location;
  20147. _this.imgChange(null, null, type);
  20148. _this.addCourseWorks(i);
  20149. } else if (type == 4) {
  20150. _this.addPz("3", data.Location);
  20151. } else if (type == 5) {
  20152. _this.addImgDrawImG(data.Location);
  20153. } else if (type == 6) {
  20154. var _ftype = 1;
  20155. if (
  20156. c.indexOf(
  20157. data.Location.split(".")[
  20158. data.Location.split(".").length - 1
  20159. ].toLocaleUpperCase()
  20160. ) != -1
  20161. ) {
  20162. _ftype = 5;
  20163. } else if (
  20164. b.indexOf(
  20165. data.Location.split(".")[
  20166. data.Location.split(".").length - 1
  20167. ].toLocaleUpperCase()
  20168. ) != -1
  20169. ) {
  20170. _ftype = 4;
  20171. } else {
  20172. _ftype = 1;
  20173. }
  20174. _this.plworkFile.push({
  20175. name: file.name,
  20176. url: data.Location,
  20177. uid: file.uid,
  20178. fileType: _ftype,
  20179. username:
  20180. _this.plworkFile.length + 1 > 9
  20181. ? _this.plworkFile.length + 1
  20182. : "0" + (_this.plworkFile.length + 1)
  20183. });
  20184. }
  20185. _this.imgChange(null, null, type);
  20186. console.log(data.Location);
  20187. // _this.$message.success('上传成功'+data.Location)
  20188. }
  20189. });
  20190. }
  20191. }
  20192. },
  20193. beforeUpload2(event, type) {
  20194. var file = event.target.files[0];
  20195. var credentials = {
  20196. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20197. secretAccessKey: "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"
  20198. }; //秘钥形式的登录上传
  20199. window.AWS.config.update(credentials);
  20200. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20201. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20202. var _this = this;
  20203. _this.progress = 0;
  20204. _this.proVisible = true;
  20205. if (file) {
  20206. var params = {
  20207. Key:
  20208. file.name.split(".")[0] +
  20209. new Date().getTime() +
  20210. "." +
  20211. file.name.split(".")[file.name.split(".").length - 1],
  20212. ContentType: file.type,
  20213. Body: file,
  20214. "Access-Control-Allow-Credentials": "*",
  20215. ACL: "public-read"
  20216. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20217. var options = {
  20218. partSize: 2048 * 1024 * 1024,
  20219. queueSize: 2,
  20220. leavePartsOnError: true
  20221. };
  20222. bucket
  20223. .upload(params, options)
  20224. .on("httpUploadProgress", function(evt) {
  20225. //这里可以写进度条
  20226. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20227. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20228. })
  20229. .send(function(err, data) {
  20230. _this.progress = 100;
  20231. setTimeout(() => {
  20232. _this.proVisible = false;
  20233. }, 1000);
  20234. if (err) {
  20235. var a = _this.$refs.upload1.uploadFiles;
  20236. a.splice(a.length - 1, a.length);
  20237. _this.$message.error("上传失败");
  20238. } else {
  20239. if (type == 2) {
  20240. _this.studyJuri[0].upVedio.push({
  20241. name: file.name,
  20242. url: data.Location,
  20243. uid: file.uid
  20244. });
  20245. _this.imgChange(null, null, type);
  20246. } else if (type == 3) {
  20247. _this.studyJuri[0].upFile.push({
  20248. name: file.name,
  20249. url: data.Location,
  20250. uid: file.uid
  20251. });
  20252. _this.imgChange(null, null, type);
  20253. }
  20254. console.log(data.Location);
  20255. }
  20256. });
  20257. }
  20258. },
  20259. allScrell() {
  20260. window.parent.postMessage({ allScreen: this.screenType }, "*");
  20261. },
  20262. nextOrpreSteps(t) {
  20263. if (this.IsFollow && this.tType == 2) {
  20264. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20265. return;
  20266. }
  20267. var b = this.chapInfoList.length - 1;
  20268. if (t == 0) {
  20269. if (this.courseType == 0) {
  20270. if (this.taskCount == 0) {
  20271. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20272. if (this.IsLookOpen) {
  20273. if (
  20274. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20275. ) {
  20276. if (
  20277. this.courseDetail.userid != this.userid &&
  20278. (!this.courseDetail.course_teacher ||
  20279. (this.courseDetail.course_teacher &&
  20280. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20281. -1))
  20282. ) {
  20283. this.$message.error("任务未解锁");
  20284. } else {
  20285. this.$message.error("上一任务未解锁");
  20286. }
  20287. return;
  20288. }
  20289. }
  20290. this.navList[this.courseType].isOpen = false;
  20291. this.courseType = b;
  20292. this.taskCount =
  20293. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20294. .length - 1;
  20295. this.navList[this.courseType].isOpen = true;
  20296. } else {
  20297. this.taskCount--;
  20298. }
  20299. } else {
  20300. if (this.taskCount == 0) {
  20301. this.navList[this.courseType].isOpen = false;
  20302. this.courseType--;
  20303. this.taskCount =
  20304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20305. .length - 1;
  20306. this.navList[this.courseType].isOpen = true;
  20307. } else {
  20308. this.taskCount--;
  20309. }
  20310. }
  20311. } else {
  20312. if (this.courseType == b) {
  20313. if (
  20314. this.taskCount ==
  20315. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20316. 1
  20317. ) {
  20318. this.navList[this.courseType].isOpen = false;
  20319. this.courseType = 0;
  20320. this.taskCount = 0;
  20321. this.navList[this.courseType].isOpen = true;
  20322. } else {
  20323. var bbb = parseInt(this.taskCount) + 1;
  20324. if (
  20325. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20326. .isLook &&
  20327. this.courseDetail.userid != this.userid &&
  20328. (!this.courseDetail.course_teacher ||
  20329. (this.courseDetail.course_teacher &&
  20330. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20331. -1)) &&
  20332. this.IsLookOpen
  20333. ) {
  20334. this.$message.error("任务未解锁");
  20335. return;
  20336. }
  20337. this.taskCount++;
  20338. if (this.IsLookOpen) {
  20339. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20340. this.taskCount
  20341. ].isLook = true;
  20342. this.addCourseState(3);
  20343. }
  20344. }
  20345. } else {
  20346. if (
  20347. this.taskCount ==
  20348. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20349. 1
  20350. ) {
  20351. var bbb = parseInt(this.courseType) + 1;
  20352. if (
  20353. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20354. this.courseDetail.userid != this.userid &&
  20355. (!this.courseDetail.course_teacher ||
  20356. (this.courseDetail.course_teacher &&
  20357. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20358. -1)) &&
  20359. this.IsLookOpen
  20360. ) {
  20361. this.$message.error("任务未解锁");
  20362. return;
  20363. }
  20364. this.navList[this.courseType].isOpen = false;
  20365. this.courseType++;
  20366. this.taskCount = 0;
  20367. this.navList[this.courseType].isOpen = true;
  20368. } else {
  20369. var bbb = parseInt(this.taskCount) + 1;
  20370. if (
  20371. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20372. .isLook &&
  20373. this.courseDetail.userid != this.userid &&
  20374. (!this.courseDetail.course_teacher ||
  20375. (this.courseDetail.course_teacher &&
  20376. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20377. -1)) &&
  20378. this.IsLookOpen
  20379. ) {
  20380. this.$message.error("任务未解锁");
  20381. return;
  20382. }
  20383. this.taskCount++;
  20384. }
  20385. if (this.IsLookOpen) {
  20386. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20387. this.taskCount
  20388. ].isLook = true;
  20389. this.addCourseState(3);
  20390. }
  20391. }
  20392. // if (
  20393. // this.taskCount ==
  20394. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20395. // ) {
  20396. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20397. // } else {
  20398. // this.taskCount++;
  20399. // }
  20400. }
  20401. document.scrollingElement.scrollTop = 0;
  20402. this.showType = 7;
  20403. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20404. // if (this.vedio[this.taskCount].length > 0) {
  20405. // var a =
  20406. // document.getElementsByClassName("box_course")[this.taskCount]
  20407. // .offsetHeight;
  20408. // document.getElementsByClassName("vedioList")[
  20409. // this.taskCount
  20410. // ].style.height = a + "px";
  20411. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20412. // a - 40 + "px";
  20413. // }
  20414. this.isNoHomeWork = false;
  20415. (this.studyJuri = [
  20416. {
  20417. content: "",
  20418. cover: [],
  20419. upVedio: [],
  20420. upFile: []
  20421. }
  20422. ]),
  20423. (this.radio = []);
  20424. this.isClickNav = "";
  20425. this.selectPz();
  20426. this.getHomeWork();
  20427. this.getCourseDetail(2);
  20428. this.$forceUpdate();
  20429. },
  20430. openTask(s, n, i) {
  20431. this.refreshAssembly();
  20432. if (this.IsFollow && this.tType == 2) {
  20433. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20434. return;
  20435. }
  20436. if (this.IsLookOpen) {
  20437. if (
  20438. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20439. this.courseDetail.userid != this.userid &&
  20440. (!this.courseDetail.course_teacher ||
  20441. (this.courseDetail.course_teacher &&
  20442. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20443. ) {
  20444. this.$message.error("任务未解锁");
  20445. return;
  20446. }
  20447. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20448. if (
  20449. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20450. .isLook
  20451. ) {
  20452. this.$message.error("上一任务未解锁");
  20453. return;
  20454. }
  20455. } else if (s > this.courseType) {
  20456. if (n > 0) {
  20457. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20458. this.$message.error("上一任务未解锁");
  20459. return;
  20460. }
  20461. } else {
  20462. if (
  20463. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20464. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20465. ].isLook
  20466. ) {
  20467. this.$message.error("上一任务未解锁");
  20468. return;
  20469. }
  20470. }
  20471. }
  20472. }
  20473. if (this.navList[s].task[n].isOpen == true) {
  20474. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20475. return;
  20476. }
  20477. let flag = this.courseType == s;
  20478. this.courseType = s;
  20479. this.navId = i;
  20480. this.taskCount = n;
  20481. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20482. this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
  20483. this.courseType
  20484. ].task[this.taskCount].isOpen;
  20485. if (this.IsLookOpen) {
  20486. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20487. this.taskCount
  20488. ].isLook = true;
  20489. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20490. this.addCourseState(3,yym);
  20491. }
  20492. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20493. this.isCloseList[ci].isClose = 0;
  20494. this.isCloseList[ci].isCloseBoolean = false;
  20495. this.$nextTick(() => {
  20496. setTimeout(() => {
  20497. setTimeout(() => {
  20498. this.panToolHeight("tool-" + ci);
  20499. }, 0);
  20500. }, 0);
  20501. });
  20502. }
  20503. this.showType = 7;
  20504. this.isNoHomeWork = false;
  20505. (this.studyJuri = [
  20506. {
  20507. content: "",
  20508. cover: [],
  20509. upVedio: [],
  20510. upFile: []
  20511. }
  20512. ]),
  20513. (this.radio = []);
  20514. document.scrollingElement.scrollTop = 0;
  20515. // setTimeout(() => {
  20516. // let a = document.getElementById(i);
  20517. // if (a.offsetTop - 110 == 0) {
  20518. // window.scrollTo(0, 0);
  20519. // } else {
  20520. // window.scrollTo(0, a.offsetTop);
  20521. // }
  20522. // }, 0);
  20523. for (var z = 0; z < this.navList.length; z++) {
  20524. for (var q = 0; q < this.navList[z].task.length; q++) {
  20525. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20526. this.navList[z].task[q].tool[w].isTool = false;
  20527. }
  20528. }
  20529. }
  20530. this.selectPz();
  20531. this.getHomeWork();
  20532. this.getCourseDetail(2);
  20533. if (flag) {
  20534. this.insertMemorandum(
  20535. `进入<span class="variable">任务${n + 1}${
  20536. this.navList[s].task[n].taskName
  20537. ? ":" + this.navList[s].task[n].taskName
  20538. : ""
  20539. }</span>`
  20540. );
  20541. } else {
  20542. this.insertMemorandum(
  20543. `进入<span class="variable">阶段${s + 1}${
  20544. this.navList[s].dyName ? ":" + this.navList[s].dyName : ""
  20545. }</span>→<span class="variable">任务${n + 1}${
  20546. this.navList[s].task[n].taskName
  20547. ? ":" + this.navList[s].task[n].taskName
  20548. : ""
  20549. }</span>`
  20550. );
  20551. }
  20552. },
  20553. get(i) {
  20554. if (this.IsFollow && this.tType == 2) {
  20555. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20556. return;
  20557. }
  20558. // for(var k=0;k<this.navList.length;k++){
  20559. // this.navList[k].isOpen = false;
  20560. // }
  20561. // this.navList[i].isOpen = true;
  20562. this.navList[i].isOpen = !this.navList[i].isOpen;
  20563. if (this.navList[i].isOpen) {
  20564. this.openTask(i, 0, i + "-0");
  20565. }
  20566. },
  20567. addQuestion() {
  20568. this.answerList.push({
  20569. answerTitle: this.answerQ,
  20570. answer: this.questionAnswer
  20571. });
  20572. let params = [
  20573. {
  20574. uid: this.userid,
  20575. cid: this.id,
  20576. stage: this.courseType,
  20577. task: this.taskCount,
  20578. tool: this.toolindex,
  20579. content: JSON.stringify(this.answerList),
  20580. type: 3
  20581. }
  20582. ];
  20583. this.ajax
  20584. .post(this.$store.state.api + "addCourseWorks", params)
  20585. .then(res => {
  20586. this.$message({
  20587. message: "提交成功",
  20588. type: "success"
  20589. });
  20590. this.answerList = [];
  20591. this.answerDialogVisible = false;
  20592. this.selectStudent();
  20593. this.selectSWorks();
  20594. this.selectSLook();
  20595. })
  20596. .catch(err => {
  20597. this.$message.error("提交失败");
  20598. console.error(err);
  20599. });
  20600. },
  20601. addQuestionTeacher() {
  20602. this.answerList.push({
  20603. answerTitle: this.answerQ,
  20604. answer: this.questionAnswer
  20605. });
  20606. let params = [
  20607. {
  20608. uid: this.sStudent.userid,
  20609. cid: this.id,
  20610. stage: this.courseType,
  20611. task: this.taskCount,
  20612. tool: this.toolindex,
  20613. content: JSON.stringify(this.answerList),
  20614. type: 3,
  20615. ateacher: this.userid
  20616. }
  20617. ];
  20618. this.ajax
  20619. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  20620. .then(res => {
  20621. this.$message({
  20622. message: "提交成功",
  20623. type: "success"
  20624. });
  20625. this.answerList = [];
  20626. this.questionAnswer = "";
  20627. this.answerDialogVisibleTeacher = false;
  20628. this.selectStudent();
  20629. this.selectSWorks();
  20630. this.selectSLook();
  20631. })
  20632. .catch(err => {
  20633. this.$message.error("提交失败");
  20634. console.error(err);
  20635. });
  20636. },
  20637. refreshCourse() {
  20638. // window.location.reload();
  20639. this.navList = [];
  20640. this.getCourseDetail(1);
  20641. },
  20642. getCourseDetail(type, gindex) {
  20643. let loading;
  20644. if (type != 2) {
  20645. loading = this.$loading.service({
  20646. background: "rgba(255, 255, 255, 0.7)",
  20647. target: document.querySelector(".student_table")
  20648. });
  20649. }
  20650. this.downLoading = false;
  20651. // this.navList[0].isOpen = false;
  20652. // this.navList[this.courseType].isOpen = true;
  20653. // this.courseType = this.courseTypeLine;
  20654. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20655. let params = {
  20656. courseId: this.id
  20657. };
  20658. this.ajax
  20659. .get(this.$store.state.api + "selectCourseDetail3", params)
  20660. .then(res => {
  20661. if (type != 2) {
  20662. loading.close();
  20663. if (
  20664. this.courseType >
  20665. JSON.parse(res.data[0][0].chapters).length - 1
  20666. ) {
  20667. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  20668. }
  20669. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20670. .chapterInfo[0].taskJson;
  20671. var b = [
  20672. "AVI",
  20673. "NAVI",
  20674. "MPEG",
  20675. "ASF",
  20676. "MOV",
  20677. "WMV",
  20678. "3GP",
  20679. "RM",
  20680. "RMVB",
  20681. "FLV",
  20682. "F4V",
  20683. "H.264",
  20684. "H.265",
  20685. "REAL VIDEO",
  20686. "MKV",
  20687. "WebM",
  20688. "HDDVD",
  20689. "MP4",
  20690. "MPG",
  20691. "M4V",
  20692. "MGV",
  20693. "OGV",
  20694. "QTM",
  20695. "STR",
  20696. "AMC",
  20697. "DVX",
  20698. "EVO",
  20699. "DAT",
  20700. "OGG",
  20701. "OGM",
  20702. "MP3"
  20703. ];
  20704. let _chapterData = [];
  20705. for (var i = 0; i < a.length; i++) {
  20706. var c = a[i].chapterData;
  20707. this.vedio[i] = [];
  20708. this.textList[i] = [];
  20709. this.lineList[i] = [];
  20710. this.chapToolList[i] = [];
  20711. this.file[i] = [];
  20712. this.fileC[i] = [];
  20713. _chapterData[i] = c.filter(el => {
  20714. return el.type != 12;
  20715. });
  20716. this.fileC[i] = c.filter(el => {
  20717. return el.type == 12;
  20718. });
  20719. if (this.tType == 2) {
  20720. if (this.fileC[i].length) {
  20721. let yym1 = this.fileC[i].filter(e=>{
  20722. if(!converter(e.name).includes(converter("教案"))){
  20723. return e
  20724. }
  20725. })
  20726. this.fileC[i] = yym1
  20727. }
  20728. }
  20729. // else if (c[j].type == 12) {
  20730. // this.fileC[i].push(c[j]);
  20731. // }
  20732. for (var j = 0; j < c.length; j++) {
  20733. if (c[j].type == 7) {
  20734. this.chapToolList[i].push(c[j]);
  20735. } else if (c[j].type == 8 || c[j].type == 14) {
  20736. this.lineList[i].push(c[j]);
  20737. } else if (c[j].type == 6) {
  20738. this.textList[i].push(c[j]);
  20739. } else {
  20740. if (
  20741. b.indexOf(
  20742. c[j].url
  20743. .split(".")
  20744. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20745. ) != -1
  20746. ) {
  20747. this.vedio[i].push(c[j]);
  20748. } else {
  20749. this.file[i].push(c[j]);
  20750. }
  20751. }
  20752. }
  20753. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20754. d.sources[0].src =
  20755. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20756. this.playerO[i] = d;
  20757. }
  20758. this.courseDetail = res.data[0][0];
  20759. if(this.tType == 2){
  20760. this.tcid = this.arrayToArray(
  20761. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20762. this.classId ? this.classId.split(",") : []
  20763. ).join(",");
  20764. }else{
  20765. this.tcid = this.arrayToArray(
  20766. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20767. this.tcid2 ? this.tcid2.split(",") : []
  20768. ).join(",");
  20769. }
  20770. this.evalua = res.data[0][0].evaId;
  20771. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  20772. this.courseType
  20773. ];
  20774. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20775. if (this.tcid && res.data[1].length) {
  20776. let _inviteA = [];
  20777. for (var ik = 0; ik < res.data[1].length; ik++) {
  20778. _inviteA.push({
  20779. cid: res.data[1][ik].classid,
  20780. ic: res.data[1][ik].code
  20781. });
  20782. }
  20783. for (var ik = 0; ik < _inviteA.length; ik++) {
  20784. if (
  20785. this.arrayToArray(
  20786. _inviteA[ik].cid.split(","),
  20787. this.tcid.split(",")
  20788. ).length
  20789. ) {
  20790. this.inviteCode = _inviteA[ik].ic;
  20791. break;
  20792. }
  20793. }
  20794. }
  20795. for (var l = 0; l < this.chapInfoList.length; l++) {
  20796. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20797. for (var m = 0; m < w.length; m++) {
  20798. w[m].id = l + "-" + m;
  20799. }
  20800. }
  20801. if (
  20802. _chapterData[this.taskCount].length &&
  20803. _chapterData[this.taskCount][0].type == 2
  20804. ) {
  20805. this.showType = 0;
  20806. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  20807. } else {
  20808. if (_chapterData[this.taskCount].length > 0) {
  20809. let _url = _chapterData[this.taskCount][0].url;
  20810. if (
  20811. _chapterData[this.taskCount][0].type == 8 ||
  20812. _chapterData[this.taskCount][0].type == 14
  20813. ) {
  20814. this.showType = 2;
  20815. if (
  20816. _url.indexOf("https://") == -1 &&
  20817. _url.indexOf("http://") == -1
  20818. ) {
  20819. _url = "https://" + _url;
  20820. }
  20821. this.pptImgUrl1 = _url;
  20822. } else if (_chapterData[this.taskCount][0].type == 3) {
  20823. if (
  20824. _url
  20825. .split(".")
  20826. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20827. ) {
  20828. this.showType = 3;
  20829. this.pptImgUrl1 = _url;
  20830. } else if (
  20831. this.isAssetTypeAnImage(
  20832. _url
  20833. .split(".")
  20834. [_url.split(".").length - 1].toLocaleLowerCase()
  20835. )
  20836. ) {
  20837. this.showType = 4;
  20838. this.pptImgUrl1 = _url;
  20839. } else {
  20840. this.showType = 2;
  20841. this.pptImgUrl1 =
  20842. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20843. encodeURIComponent(_url);
  20844. }
  20845. } else if (_chapterData[this.taskCount][0].type == 13) {
  20846. this.showType = 4;
  20847. this.pptImgUrl1 = _url;
  20848. } else if (_chapterData[this.taskCount][0].type == 6) {
  20849. this.showType = 1;
  20850. this.text = this.textList[this.taskCount][0];
  20851. }
  20852. }
  20853. }
  20854. this.isClickNav = 0;
  20855. if (
  20856. !_chapterData[this.taskCount].length ||
  20857. _chapterData[this.taskCount][0].type == 12
  20858. ) {
  20859. this.isClickNav = "";
  20860. this.showType = "";
  20861. }
  20862. if (this.tType == 2) {
  20863. _chapterData.forEach((e,i)=>{
  20864. if (e.length) {
  20865. let yym = e.filter(k=>{
  20866. if(!converter(k.name).includes(converter("教案"))){
  20867. return k
  20868. }
  20869. })
  20870. _chapterData[i] = yym
  20871. }
  20872. })
  20873. }
  20874. this.vChapterData = _chapterData;
  20875. } else {
  20876. this.showType = 0;
  20877. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20878. .chapterInfo[0].taskJson;
  20879. var b = [
  20880. "AVI",
  20881. "NAVI",
  20882. "MPEG",
  20883. "ASF",
  20884. "MOV",
  20885. "WMV",
  20886. "3GP",
  20887. "RM",
  20888. "RMVB",
  20889. "FLV",
  20890. "F4V",
  20891. "H.264",
  20892. "H.265",
  20893. "REAL VIDEO",
  20894. "MKV",
  20895. "WebM",
  20896. "HDDVD",
  20897. "MP4",
  20898. "MPG",
  20899. "M4V",
  20900. "MGV",
  20901. "OGV",
  20902. "QTM",
  20903. "STR",
  20904. "AMC",
  20905. "DVX",
  20906. "EVO",
  20907. "DAT",
  20908. "OGG",
  20909. "OGM",
  20910. "MP3"
  20911. ];
  20912. let _chapterData = [];
  20913. for (var i = 0; i < a.length; i++) {
  20914. var c = a[i].chapterData;
  20915. this.vedio[i] = [];
  20916. this.textList[i] = [];
  20917. this.lineList[i] = [];
  20918. this.chapToolList[i] = [];
  20919. this.file[i] = [];
  20920. this.fileC[i] = [];
  20921. _chapterData[i] = c.filter(el => {
  20922. return el.type != 12;
  20923. });
  20924. this.fileC[i] = c.filter(el => {
  20925. return el.type == 12;
  20926. });
  20927. if (this.tType == 2) {
  20928. if (this.fileC[i].length) {
  20929. let yym1 = this.fileC[i].filter(e=>{
  20930. if(!converter(e.name).includes(converter("教案"))){
  20931. return e
  20932. }
  20933. })
  20934. this.fileC[i] = yym1
  20935. }
  20936. }
  20937. for (var j = 0; j < c.length; j++) {
  20938. if (c[j].type == 7) {
  20939. this.chapToolList[i].push(c[j]);
  20940. } else if (c[j].type == 8 || c[j].type == 14) {
  20941. this.lineList[i].push(c[j]);
  20942. } else if (c[j].type == 6) {
  20943. this.textList[i].push(c[j]);
  20944. } else {
  20945. if (
  20946. b.indexOf(
  20947. c[j].url
  20948. .split(".")
  20949. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20950. ) != -1
  20951. ) {
  20952. this.vedio[i].push(c[j]);
  20953. } else {
  20954. this.file[i].push(c[j]);
  20955. }
  20956. }
  20957. }
  20958. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20959. d.sources[0].src =
  20960. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20961. this.playerO[i] = d;
  20962. }
  20963. if (
  20964. _chapterData[this.taskCount].length &&
  20965. _chapterData[this.taskCount][0].type == 2
  20966. ) {
  20967. this.showType = 0;
  20968. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  20969. } else {
  20970. if (_chapterData[this.taskCount].length > 0) {
  20971. let _url = _chapterData[this.taskCount][0].url;
  20972. if (
  20973. _chapterData[this.taskCount][0].type == 8 ||
  20974. _chapterData[this.taskCount][0].type == 14
  20975. ) {
  20976. this.showType = 2;
  20977. if (
  20978. _url.indexOf("https://") == -1 &&
  20979. _url.indexOf("http://") == -1
  20980. ) {
  20981. _url = "https://" + _url;
  20982. }
  20983. this.pptImgUrl1 = _url;
  20984. } else if (_chapterData[this.taskCount][0].type == 3) {
  20985. if (
  20986. _url
  20987. .split(".")
  20988. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20989. ) {
  20990. this.showType = 3;
  20991. this.pptImgUrl1 = _url;
  20992. } else if (
  20993. this.isAssetTypeAnImage(
  20994. _url
  20995. .split(".")
  20996. [_url.split(".").length - 1].toLocaleLowerCase()
  20997. )
  20998. ) {
  20999. this.showType = 4;
  21000. this.pptImgUrl1 = _url;
  21001. } else {
  21002. this.showType = 2;
  21003. this.pptImgUrl1 =
  21004. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21005. encodeURIComponent(_url);
  21006. }
  21007. } else if (_chapterData[this.taskCount][0].type == 13) {
  21008. this.showType = 4;
  21009. this.pptImgUrl1 = _url;
  21010. } else if (_chapterData[this.taskCount][0].type == 6) {
  21011. this.showType = 1;
  21012. this.text = this.textList[this.taskCount][0];
  21013. }
  21014. }
  21015. }
  21016. this.isClickNav = 0;
  21017. if (
  21018. !_chapterData[this.taskCount].length ||
  21019. _chapterData[this.taskCount][0].type == 12
  21020. ) {
  21021. this.isClickNav = "";
  21022. this.showType = "";
  21023. }
  21024. if (this.tType == 2) {
  21025. _chapterData.forEach((e,i)=>{
  21026. if (e.length) {
  21027. let yym = e.filter(k=>{
  21028. if(!converter(k.name).includes(converter("教案"))){
  21029. return k
  21030. }
  21031. })
  21032. _chapterData[i] = yym
  21033. }
  21034. })
  21035. }
  21036. this.vChapterData = _chapterData;
  21037. this.$forceUpdate();
  21038. }
  21039. // console.log('this.chapInfoList22222',JS);
  21040. if (res.data[0][0].setting) {
  21041. try {
  21042. this.languageSetting =
  21043. JSON.parse(res.data[0][0].setting).languageSetting ||
  21044. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21045. ? JSON.parse(res.data[0][0].setting).languageSetting
  21046. : 0;
  21047. } catch (error) {
  21048. console.error(error);
  21049. }
  21050. }
  21051. // finalMarkList用来判断哪个工具为评分工具
  21052. if (this.courseDetail.state == 5) {
  21053. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21054. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21055. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21056. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21057. // // 没有的话在选其他工具为评分工具
  21058. // if(adc.length > 0){
  21059. // for (let k = chap.length - 1; k >= 0; k--) {
  21060. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21061. // this.finalMarkList = k;
  21062. // break;
  21063. // }
  21064. // }
  21065. // }else{
  21066. // for (let k = chap.length - 1; k >= 0; k--) {
  21067. // 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) {
  21068. // this.finalMarkList = k;
  21069. // break;
  21070. // }
  21071. // }
  21072. // }
  21073. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21074. // 不然会无限循环报错,会很难受
  21075. let aiSNum = 0;
  21076. if (
  21077. chapInfoListCopy[this.taskCount].eList &&
  21078. chapInfoListCopy[this.taskCount].eList.length
  21079. ) {
  21080. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21081. if (e.isai == 2) {
  21082. aiSNum++;
  21083. }
  21084. });
  21085. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21086. this.isaiNum = aiSNum;
  21087. } else {
  21088. this.isaiNum = 0;
  21089. }
  21090. // for (
  21091. // let k = 0;
  21092. // k < chapInfoListCopy[this.taskCount].eList.length;
  21093. // k++
  21094. // ) {
  21095. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21096. // this.againEva(this.taskCount, k);
  21097. // }
  21098. // }
  21099. }
  21100. }
  21101. // else {
  21102. // this.courseDetail = res.data[0][0];
  21103. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21104. // }
  21105. let _this = this;
  21106. if (_this.timer) {
  21107. clearInterval(_this.timer);
  21108. _this.timer = null;
  21109. }
  21110. if (_this.tcid) {
  21111. _this.getCourseGroup(gindex);
  21112. } else {
  21113. _this.selectSWorks(gindex);
  21114. }
  21115. _this.selectStudent();
  21116. _this.selectSLook();
  21117. _this.getPick();
  21118. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21119. _this.setCTask();
  21120. }
  21121. if (_this.dialogVisibleGroup) {
  21122. _this.groupJson =
  21123. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21124. _this.taskCount
  21125. ].toolChoose[_this.toolindex].groupJson;
  21126. }
  21127. _this.$nextTick(() => {
  21128. setTimeout(() => {
  21129. _this.checkEva();
  21130. }, 1000);
  21131. });
  21132. _this.timer = setInterval(function() {
  21133. // _this.getCourseDetail(2);
  21134. if (_this.tcid) {
  21135. _this.getCourseGroup(gindex);
  21136. } else {
  21137. _this.selectSWorks(gindex);
  21138. }
  21139. _this.selectStudent();
  21140. _this.selectSLook();
  21141. _this.getPick();
  21142. // _this.getSplitScreenData();
  21143. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21144. _this.setCTask();
  21145. }
  21146. if (_this.dialogVisibleGroup) {
  21147. _this.groupJson =
  21148. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21149. _this.taskCount
  21150. ].toolChoose[_this.toolindex].groupJson;
  21151. }
  21152. if (_this.tType == 4 || _this.ispzType == 4) {
  21153. _this.selectPz();
  21154. }
  21155. }, 5000);
  21156. if (_this.timer2 == null) {
  21157. _this.timer2 = setInterval(()=> {
  21158. _this.getSplitScreenData();//获取分屏数据
  21159. }, 5000);
  21160. }
  21161. _this.$nextTick(function() {
  21162. setTimeout(() => {
  21163. // var a =
  21164. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21165. // document.getElementsByClassName("vedioList")[0].style.height =
  21166. // a + "px";
  21167. // document.getElementsByClassName("navBox")[0].style.height =
  21168. // a - 40 + "px";
  21169. // if (_this.vedio[_this.taskCount].length > 0) {
  21170. // _this.vedioTime = [];
  21171. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21172. // _this.vedioTime[i] = document.getElementsByClassName(
  21173. // "vjs-duration-display"
  21174. // )[i].textContent;
  21175. // }
  21176. // }
  21177. }, 1000);
  21178. });
  21179. })
  21180. .catch(err => {
  21181. loading.close();
  21182. console.error(err);
  21183. });
  21184. },
  21185. getCourseGroup(gindex) {
  21186. let params = {
  21187. cid: this.id,
  21188. classid: this.tcid ? this.tcid : "1"
  21189. };
  21190. this.ajax
  21191. .get(this.$store.state.api + "getCourseGroup", params)
  21192. .then(res => {
  21193. if (res.data && res.data[0].length) {
  21194. if (!this.isGroup) {
  21195. let courseGroup = JSON.parse(res.data[0][0].group);
  21196. courseGroup.group = courseGroup.group.filter(el => {
  21197. el.works = [];
  21198. return el;
  21199. });
  21200. if (courseGroup.isopen == 2) {
  21201. this.isGroup = false;
  21202. this.selectSWorks(gindex);
  21203. return;
  21204. }
  21205. this.courseGroup = courseGroup;
  21206. let groupPerson = res.data[1];
  21207. let group = JSON.parse(res.data[0][0].group).group;
  21208. let courseGroupStudent = {};
  21209. let courseGroupStudentUid = {};
  21210. for (var i = 0; i < group.length; i++) {
  21211. courseGroupStudent[group[i].id] = [];
  21212. courseGroupStudentUid[group[i].id] = [];
  21213. for (var j = 0; j < groupPerson.length; j++) {
  21214. if (groupPerson[j].groupCid == group[i].id) {
  21215. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21216. courseGroupStudentUid[group[i].id].push(
  21217. groupPerson[j].userid
  21218. );
  21219. }
  21220. }
  21221. }
  21222. this.courseGroupStudent = courseGroupStudent;
  21223. this.courseGroupStudentUid = courseGroupStudentUid;
  21224. }
  21225. if (this.courseGroup.isopen == 2) {
  21226. this.isGroup = false;
  21227. } else {
  21228. this.isGroup = true;
  21229. }
  21230. this.selectSWorks(gindex);
  21231. } else {
  21232. this.selectSWorks(gindex);
  21233. this.isGroup = false;
  21234. }
  21235. })
  21236. .catch(err => {
  21237. // this.$message.error("网络不佳");
  21238. console.error(err);
  21239. });
  21240. },
  21241. setOperationTime() {
  21242. let _this = this;
  21243. if (_this.opertimer) {
  21244. clearInterval(_this.opertimer);
  21245. _this.opertimer = null;
  21246. }
  21247. _this.opertimer = setInterval(() => {
  21248. _this.setoTime("600");
  21249. }, 600000);
  21250. },
  21251. setoTime(time) {
  21252. let params = [
  21253. {
  21254. uid: this.userid,
  21255. cid: this.id,
  21256. type: "2",
  21257. time: time
  21258. }
  21259. ];
  21260. this.ajax
  21261. .post(this.$store.state.api + "addOperationTimeT2", params)
  21262. .then(res => {})
  21263. .catch(err => {
  21264. console.error(err);
  21265. });
  21266. },
  21267. addPz(type, content) {
  21268. if (type == "1" && this.pzConText == "") {
  21269. this.$message.error("评论不能为空!");
  21270. return;
  21271. }
  21272. let params = [
  21273. {
  21274. cid: this.id,
  21275. uid: this.userid,
  21276. s: this.courseType,
  21277. t: this.taskCount,
  21278. c: type == "1" ? this.pzConText : content,
  21279. type: type
  21280. }
  21281. ];
  21282. this.ajax
  21283. .post(this.$store.state.api + "addPz2", params)
  21284. .then(res => {
  21285. this.$message({
  21286. message: "添加成功",
  21287. type: "success"
  21288. });
  21289. this.pzConText = "";
  21290. this.addPzDialog = false;
  21291. this.selectPz();
  21292. this.insertMemorandum(
  21293. `使用<span class="btn">评论</span>功能,添加评论`
  21294. );
  21295. })
  21296. .catch(err => {
  21297. this.$message.error("添加失败");
  21298. console.error(err);
  21299. });
  21300. },
  21301. setReplyIndex(id, i) {
  21302. this.replyIndex = i;
  21303. this.replyPid = id;
  21304. this.replyDialogVisible = true;
  21305. },
  21306. addHf() {
  21307. if (this.reply == "") {
  21308. this.$message.error("回复不能为空!");
  21309. return;
  21310. }
  21311. let params = [
  21312. {
  21313. cid: this.id,
  21314. uid: this.userid,
  21315. s: this.courseType,
  21316. t: this.taskCount,
  21317. type: "1",
  21318. ct: 2,
  21319. pid: this.replyPid,
  21320. c: this.reply
  21321. }
  21322. ];
  21323. this.ajax
  21324. .post(this.$store.state.api + "addHf", params)
  21325. .then(res => {
  21326. this.reply = "";
  21327. this.$message({
  21328. message: "回复成功",
  21329. type: "success"
  21330. });
  21331. this.replyDialogVisible = false;
  21332. this.selectPz();
  21333. })
  21334. .catch(err => {
  21335. this.$message.error("回复失败");
  21336. console.error(err);
  21337. });
  21338. },
  21339. deletePz(id) {
  21340. this.$confirm("确定删除此评论吗?", "提示", {
  21341. confirmButtonText: "确定",
  21342. cancelButtonText: "取消",
  21343. type: "warning"
  21344. })
  21345. .then(() => {
  21346. let params = [
  21347. {
  21348. id: id
  21349. }
  21350. ];
  21351. this.ajax
  21352. .post(this.$store.state.api + "deletePz", params)
  21353. .then(res => {
  21354. this.$message({
  21355. message: "删除成功",
  21356. type: "success"
  21357. });
  21358. this.selectPz();
  21359. })
  21360. .catch(err => {
  21361. this.$message.error("网络异常");
  21362. console.error(err);
  21363. });
  21364. })
  21365. .catch(() => {});
  21366. },
  21367. deleteReply(id) {
  21368. this.$confirm("确定删除此回复吗?", "提示", {
  21369. confirmButtonText: "确定",
  21370. cancelButtonText: "取消",
  21371. type: "warning"
  21372. })
  21373. .then(() => {
  21374. let params = [
  21375. {
  21376. id: id
  21377. }
  21378. ];
  21379. this.ajax
  21380. .post(this.$store.state.api + "deleteReply", params)
  21381. .then(res => {
  21382. this.$message({
  21383. message: "删除成功",
  21384. type: "success"
  21385. });
  21386. this.selectPz();
  21387. })
  21388. .catch(err => {
  21389. this.$message.error("网络异常");
  21390. console.error(err);
  21391. });
  21392. })
  21393. .catch(() => {});
  21394. },
  21395. setPz() {
  21396. if (this.ispzType == 4) {
  21397. this.ispzType = 0;
  21398. this.pzDialog = false;
  21399. return;
  21400. }
  21401. this.ispzType = 4;
  21402. this.pzDialog = true;
  21403. this.selectPz();
  21404. },
  21405. selectPz() {
  21406. let params = {
  21407. cid: this.id,
  21408. s: this.courseType,
  21409. t: this.taskCount,
  21410. type: this.pzStype,
  21411. uid: this.userid
  21412. };
  21413. this.ajax
  21414. .get(this.$store.state.api + "selectPzListType", params)
  21415. .then(res => {
  21416. this.pzList = res.data[0];
  21417. var a = res.data[1];
  21418. for (var i = 0; i < a.length; i++) {
  21419. for (var j = 0; j < this.pzList.length; j++) {
  21420. if (!this.pzList[j].hfList) {
  21421. this.pzList[j].hfList = [];
  21422. }
  21423. if (a[i].pid == this.pzList[j].id) {
  21424. this.pzList[j].hfList.push(a[i]);
  21425. }
  21426. }
  21427. }
  21428. })
  21429. .catch(err => {
  21430. console.error(err);
  21431. });
  21432. },
  21433. // selectHf() {
  21434. // let params = {
  21435. // cid: this.id,
  21436. // s: this.courseType,
  21437. // t: this.taskCount,
  21438. // };
  21439. // this.ajax
  21440. // .get(this.$store.state.api + "selectHfList", params)
  21441. // .then((res) => {
  21442. // var a = res.data[0];
  21443. // for (var i = 0; i < a.length; i++) {
  21444. // for (var j = 0; j < this.pzList.length; j++) {
  21445. // if (!this.pzList[i].hfList) {
  21446. // this.pzList[i].hfList = [];
  21447. // }
  21448. // if (a[i].pid == this.pzList[j].id) {
  21449. // this.pzList[i].hfList.push(a[i]);
  21450. // }
  21451. // }
  21452. // }
  21453. // })
  21454. // .catch((err) => {
  21455. // console.error(err);
  21456. // });
  21457. // },
  21458. updateSLook() {
  21459. let params = {
  21460. sopen: this.sIsOpen == false ? 1 : 2,
  21461. cid: this.id
  21462. };
  21463. this.ajax
  21464. .get(this.$store.state.api + "updateCourseSLook", params)
  21465. .then(res => {
  21466. if (this.sIsOpen == true) {
  21467. this.$message({
  21468. message: "权限设置成功",
  21469. type: "success"
  21470. });
  21471. } else {
  21472. this.$message({
  21473. message: "权限关闭成功",
  21474. type: "success"
  21475. });
  21476. }
  21477. })
  21478. .catch(err => {
  21479. console.error(err);
  21480. });
  21481. },
  21482. updateFollow() {
  21483. let params = [
  21484. {
  21485. sopen: this.IsFollow == false ? 1 : 2,
  21486. cid: this.id
  21487. }
  21488. ];
  21489. this.ajax
  21490. .post(this.$store.state.api + "updateCourseFollow", params)
  21491. .then(res => {
  21492. if (this.IsFollow == true) {
  21493. this.$message({
  21494. message: "开启成功",
  21495. type: "success"
  21496. });
  21497. } else {
  21498. this.$message({
  21499. message: "关闭成功",
  21500. type: "success"
  21501. });
  21502. }
  21503. this.setCTask();
  21504. })
  21505. .catch(err => {
  21506. console.error(err);
  21507. });
  21508. },
  21509. setCTask() {
  21510. let params = [
  21511. {
  21512. sopen: this.courseType + "-" + this.taskCount,
  21513. cid: this.id
  21514. }
  21515. ];
  21516. this.ajax
  21517. .post(this.$store.state.api + "updateCourseFollowC", params)
  21518. .then(res => {})
  21519. .catch(err => {
  21520. console.error(err);
  21521. });
  21522. },
  21523. updateLookOpen() {
  21524. let params = [
  21525. {
  21526. sopen: this.IsLookOpen == false ? 1 : 2,
  21527. cid: this.id
  21528. }
  21529. ];
  21530. this.ajax
  21531. .post(this.$store.state.api + "updateCourseLookOpen", params)
  21532. .then(res => {
  21533. if (this.IsLookOpen == true) {
  21534. // if (this.courseType != 0 && this.taskCount != 0) {
  21535. // this.openTask(0, 0, "0-0");
  21536. // }
  21537. this.$message({
  21538. message: "权限设置成功",
  21539. type: "success"
  21540. });
  21541. } else {
  21542. this.$message({
  21543. message: "权限关闭成功",
  21544. type: "success"
  21545. });
  21546. }
  21547. this.getCourseState(2);
  21548. })
  21549. .catch(err => {
  21550. console.error(err);
  21551. });
  21552. },
  21553. selectSLook() {
  21554. let params = {
  21555. cid: this.id
  21556. };
  21557. this.ajax
  21558. .get(this.$store.state.api + "selectCourseSLook", params)
  21559. .then(res => {
  21560. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  21561. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  21562. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  21563. if (!this.IsLookOpen) {
  21564. this.setNavList();
  21565. } else {
  21566. this.getCourseState(1);
  21567. }
  21568. // || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
  21569. if ((this.IsFollow && this.tType == 2)) {
  21570. this.setContent2(false);
  21571. let _followC = res.data[0][0].followC.split("-");
  21572. if (
  21573. this.courseType != _followC[0] ||
  21574. this.taskCount != _followC[1]
  21575. ) {
  21576. this.navList[this.courseType].isOpen = false;
  21577. this.courseType = _followC[0];
  21578. this.navList[this.courseType].isOpen = true;
  21579. this.taskCount = parseInt(_followC[1]);
  21580. this.navId = res.data[0][0].followC;
  21581. document.scrollingElement.scrollTop = 0;
  21582. this.getCourseDetail(2);
  21583. }
  21584. }
  21585. })
  21586. .catch(err => {
  21587. console.error(err);
  21588. });
  21589. },
  21590. setNavList() {
  21591. if (this.navList.length == 0) {
  21592. this.navList = [];
  21593. var copyList = [];
  21594. for (var l = 0; l < this.chapInfoList.length; l++) {
  21595. var q = this.chapInfoList[l].dyName;
  21596. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21597. var e;
  21598. copyList.push({
  21599. dyName: q,
  21600. isOpen: l === 0 ? true : false,
  21601. task: []
  21602. });
  21603. for (var r = 0; r < w.length; r++) {
  21604. e = w[r].task;
  21605. if (this.chapInfoList[l].easy == 1) {
  21606. copyList[l].task.push({
  21607. taskName: q,
  21608. id: l + "-" + r,
  21609. isLook: w[r].isLook,
  21610. isOpen: r === 0 ? true : false,
  21611. tool: []
  21612. });
  21613. } else {
  21614. copyList[l].task.push({
  21615. taskName: e,
  21616. id: l + "-" + r,
  21617. isLook: w[r].isLook,
  21618. isOpen: r === 0 ? true : false,
  21619. tool: []
  21620. });
  21621. }
  21622. var t = w[r].toolChoose;
  21623. for (var k = 0; k < t.length; k++) {
  21624. var tool = t[k].tool[0];
  21625. copyList[l].task[r].tool.push({
  21626. tool: tool,
  21627. isTool: false
  21628. });
  21629. }
  21630. // this.navId = this.navId ? this.navId : l + "-" + r;
  21631. // this.navId = l + "-" + r;
  21632. }
  21633. }
  21634. this.navList = copyList;
  21635. this.navList[0].isOpen = false;
  21636. this.navList[this.courseType].isOpen = true;
  21637. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21638. } else {
  21639. this.setNavList2();
  21640. }
  21641. },
  21642. setNavList2() {
  21643. for (var l = 0; l < this.chapInfoList.length; l++) {
  21644. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21645. for (var r = 0; r < w.length; r++) {
  21646. this.navList[l].task[r].isLook = w[r].isLook;
  21647. }
  21648. }
  21649. if (
  21650. this.IsLookOpen &&
  21651. !this.navList[this.courseType].task[this.taskCount].isLook
  21652. ) {
  21653. this.openTask(0, 0, "0-0");
  21654. }
  21655. this.$forceUpdate();
  21656. },
  21657. getCourseState(type) {
  21658. let params = {
  21659. cid: this.id
  21660. };
  21661. this.ajax
  21662. .get(this.$store.state.api + "getCourseState", params)
  21663. .then(res => {
  21664. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  21665. this.chapInfoList = JSON.parse(res.data[0][0].state);
  21666. console.log("this.chapInfoList", this.chapInfoList);
  21667. this.setNavList();
  21668. this.$forceUpdate();
  21669. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  21670. this.addCourseState(2);
  21671. } else {
  21672. this.addCourseState(1);
  21673. }
  21674. })
  21675. .catch(err => {
  21676. console.error(err);
  21677. });
  21678. },
  21679. addCourseState(type,val = '') {
  21680. let _state = val ? val : this.chapInfoList;
  21681. // this.courseType this.taskCount
  21682. if (type == 1 || type == 2) {
  21683. for (var i = 0; i < _state.length; i++) {
  21684. let el = _state[i].chapterInfo[0].taskJson;
  21685. for (var j = 0; j < el.length; j++) {
  21686. // if (i == 0 && j == 0) {
  21687. // el[j].isLook = true;
  21688. // } else {
  21689. // el[j].isLook = false;
  21690. // }
  21691. if (
  21692. this.courseType > i ||
  21693. (this.courseType == i && this.taskCount + 1 > j)
  21694. ) {
  21695. el[j].isLook = true;
  21696. } else {
  21697. el[j].isLook = false;
  21698. }
  21699. }
  21700. }
  21701. }
  21702. let params = [
  21703. {
  21704. cid: this.id,
  21705. state: JSON.stringify(_state)
  21706. }
  21707. ];
  21708. this.ajax
  21709. .post(
  21710. this.$store.state.api +
  21711. (type == 1 ? "addCourseState" : "updateCourseSate"),
  21712. params
  21713. )
  21714. .then(res => {
  21715. if (this.IsLookOpen) {
  21716. this.setNavList();
  21717. }
  21718. if (type == 3 && type == 2) {
  21719. this.getCourseState(1);
  21720. }
  21721. })
  21722. .catch(err => {
  21723. console.error(err);
  21724. });
  21725. },
  21726. getHomeWork() {
  21727. let params = {
  21728. cid: this.id,
  21729. stage: this.courseType,
  21730. task: this.taskCount,
  21731. uid: this.userid
  21732. };
  21733. this.ajax
  21734. .get(this.$store.state.api + "selectWork", params)
  21735. .then(res => {
  21736. if (res.data[0].length > 0) {
  21737. this.studyJuri = JSON.parse(res.data[0][0].content);
  21738. this.isNoHomeWork = true;
  21739. }
  21740. })
  21741. .catch(err => {
  21742. console.error(err);
  21743. });
  21744. },
  21745. isAssetTypeAnImage(ext) {
  21746. return (
  21747. [
  21748. "png",
  21749. "jpg",
  21750. "jpeg",
  21751. "bmp",
  21752. "gif",
  21753. "webp",
  21754. "psd",
  21755. "svg",
  21756. "tiff"
  21757. ].indexOf(ext) !== -1
  21758. );
  21759. },
  21760. switchVideo(media) {
  21761. this.playerO = {};
  21762. this.playerOptions.poster = "";
  21763. this.playerOptions.sources[0].src = media;
  21764. this.playerO = this.playerOptions;
  21765. },
  21766. onPlayerPlay() {},
  21767. onPlayerTimeupdate(player) {
  21768. let gklog = player.cache_.currentTime; //当前播放的秒数
  21769. let a = player.cache_.duration; //视频的总时长
  21770. let gklog2 = parseInt(gklog);
  21771. // if(gklog2 == '3'){
  21772. // player.pause()
  21773. // setTimeout(()=>{
  21774. // player.currentTime(gklog2+1)
  21775. // player.play()
  21776. // },1000)
  21777. // }
  21778. console.log(" onPlayerTimeupdate!", gklog);
  21779. console.log(" onPlayerTimeupdate!", gklog2);
  21780. },
  21781. lookVedio(u, i) {
  21782. this.isClickNav = "";
  21783. // this.playerOptions.sources[0].src = u;
  21784. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21785. d.sources[0].src = u;
  21786. this.playerO[this.taskCount] = d;
  21787. this.showType = 0;
  21788. // this.isClickNav = "video" + i;
  21789. this.isClickNav = i;
  21790. this.$forceUpdate();
  21791. this.insertMemorandum(
  21792. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21793. this.vChapterData[this.taskCount].find(i => i.url == u).name
  21794. }</span>`
  21795. );
  21796. },
  21797. lookText(i, t) {
  21798. this.isClickNav = "";
  21799. // this.text = this.textList[i][t];
  21800. this.text = this.vChapterData[i][t];
  21801. // this.dialogVisible1 = true;
  21802. this.showType = 1;
  21803. // this.isClickNav = "text" + t;
  21804. this.isClickNav = t;
  21805. this.insertMemorandum(
  21806. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21807. this.vChapterData[this.taskCount][t].name
  21808. }.doc</span>`
  21809. );
  21810. },
  21811. lookTools(i, t) {
  21812. this.chapTools = this.chapToolList[i][t];
  21813. this.dialogVisible2 = true;
  21814. },
  21815. async openFile(f) {
  21816. this.pptImgUrl = "";
  21817. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  21818. if (
  21819. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  21820. -1
  21821. ) {
  21822. let _uuurl = await this.checkLink(f);
  21823. this.pptImgUrl =
  21824. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21825. encodeURIComponent(_uuurl);
  21826. this.showPDF = false;
  21827. this.dialogVisible3 = true;
  21828. } else if (
  21829. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21830. ) {
  21831. this.pptImgUrl = f;
  21832. this.showPDF = true;
  21833. this.dialogVisible3 = true;
  21834. }
  21835. this.insertMemorandum(
  21836. `查看<span class="variable">${w.sName}</span>的作业`
  21837. );
  21838. },
  21839. openTable(f) {
  21840. this.tableJson = JSON.parse(f.works);
  21841. this.dialogVisibleTable2 = true;
  21842. this.insertMemorandum(
  21843. `查看<span class="variable">${f.sName}的作业</span>`
  21844. );
  21845. },
  21846. openWord(f) {
  21847. this.tableJson = JSON.parse(f.works);
  21848. this.dialogVisibleTable3 = true;
  21849. this.insertMemorandum(
  21850. `查看<span class="variable">${f.sName}的作业</span>`
  21851. );
  21852. },
  21853. doUrl(url, i) {
  21854. this.isClickNav = "";
  21855. this.pptImgUrl1 = "";
  21856. this.showType = 2;
  21857. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  21858. url = "https://" + url;
  21859. }
  21860. this.pptImgUrl1 = "";
  21861. setTimeout(() => {
  21862. this.pptImgUrl1 = url;
  21863. }, 500);
  21864. // this.isClickNav = "line" + i;
  21865. this.isClickNav = i;
  21866. this.$forceUpdate();
  21867. },
  21868. checkPhoto(f, i) {
  21869. this.showType = 4;
  21870. this.pptImgUrl1 = f.url;
  21871. this.isClickNav = i;
  21872. this.$forceUpdate();
  21873. this.insertMemorandum(
  21874. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21875. this.vChapterData[this.taskCount][i].name
  21876. }</span>`
  21877. );
  21878. },
  21879. async downFile(f, i) {
  21880. this.isClickNav = "";
  21881. this.pptImgUrl1 = "";
  21882. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  21883. if (
  21884. a.indexOf(
  21885. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  21886. ) != -1
  21887. ) {
  21888. let _uuurl = await this.checkLink(f.url);
  21889. this.pptImgUrl1 =
  21890. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21891. encodeURIComponent(_uuurl);
  21892. // this.dialogVisible3 = true;
  21893. this.showType = 2;
  21894. } else if (
  21895. this.isAssetTypeAnImage(
  21896. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  21897. )
  21898. ) {
  21899. this.showType = 4;
  21900. this.pptImgUrl1 = f.url;
  21901. } else if (
  21902. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  21903. "PDF"
  21904. ) {
  21905. this.pptImgUrl1 = f.url;
  21906. // this.dialogVisible3 = true;
  21907. this.showType = 3;
  21908. } else {
  21909. window.open(this.file[i].url);
  21910. }
  21911. // this.isClickNav = "word" + i;
  21912. this.isClickNav = i;
  21913. this.insertMemorandum(
  21914. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21915. this.vChapterData[this.taskCount][i].name
  21916. }</span>`
  21917. );
  21918. },
  21919. downFileList(i) {
  21920. window.open(this.noImgList[i].url);
  21921. },
  21922. openAddWork() {
  21923. this.dialogVisible = true;
  21924. },
  21925. addBzWorks() {
  21926. let params = [
  21927. {
  21928. uid: this.userid,
  21929. cid: this.id,
  21930. stage: this.courseType,
  21931. task: this.taskCount,
  21932. tool: this.toolindex,
  21933. content: JSON.stringify(this.eScore),
  21934. type: 6
  21935. }
  21936. ];
  21937. this.ajax
  21938. .post(this.$store.state.api + "addCourseWorks", params)
  21939. .then(res => {
  21940. this.$message({
  21941. message: "提交成功",
  21942. type: "success"
  21943. });
  21944. this.eScore = { eBzText: "", eStar: [] };
  21945. this.studentEvalDialogVisible = false;
  21946. this.selectSWorks();
  21947. })
  21948. .catch(err => {
  21949. this.$message.error("提交失败");
  21950. console.error(err);
  21951. });
  21952. },
  21953. addBzWorksTeacher() {
  21954. let params = [
  21955. {
  21956. uid: this.sStudent.userid,
  21957. cid: this.id,
  21958. stage: this.courseType,
  21959. task: this.taskCount,
  21960. tool: this.toolindex,
  21961. content: JSON.stringify(this.eScore),
  21962. type: 6
  21963. }
  21964. ];
  21965. this.ajax
  21966. .post(this.$store.state.api + "addCourseWorks", params)
  21967. .then(res => {
  21968. this.$message({
  21969. message: "提交成功",
  21970. type: "success"
  21971. });
  21972. this.eScore = { eBzText: "", eStar: [] };
  21973. this.studentEvalDialogVisibleTeacher = false;
  21974. this.selectSWorks();
  21975. })
  21976. .catch(err => {
  21977. this.$message.error("提交失败");
  21978. console.error(err);
  21979. });
  21980. },
  21981. addStudentAsk() {
  21982. if (!this.radio.length) {
  21983. this.$message.error("请选择选项");
  21984. return;
  21985. }
  21986. for (var i = 0; i < this.askJson.askCount; i++) {
  21987. if (
  21988. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21989. (this.radio[i] !== 0 && !this.radio[i])
  21990. ) {
  21991. this.$message.error("请选择选项");
  21992. return;
  21993. }
  21994. }
  21995. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21996. let params = [
  21997. {
  21998. uid: this.userid,
  21999. cid: this.id,
  22000. stage: this.courseType,
  22001. task: this.taskCount,
  22002. tool: this.toolindex,
  22003. content: JSON.stringify(this.askList),
  22004. type: 2
  22005. }
  22006. ];
  22007. this.ajax
  22008. .post(this.$store.state.api + "addCourseWorks", params)
  22009. .then(res => {
  22010. this.$message({
  22011. message: "提交成功",
  22012. type: "success"
  22013. });
  22014. this.askList = [];
  22015. this.dialogVisible5 = false;
  22016. this.selectStudent();
  22017. this.selectSWorks();
  22018. this.selectSLook();
  22019. })
  22020. .catch(err => {
  22021. this.$message.error("提交失败");
  22022. console.error(err);
  22023. });
  22024. },
  22025. addStudentAskTeacher() {
  22026. if (!this.radio.length) {
  22027. this.$message.error("请选择选项");
  22028. return;
  22029. }
  22030. for (var i = 0; i < this.askJson.askCount; i++) {
  22031. if (
  22032. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22033. (this.radio[i] !== 0 && !this.radio[i])
  22034. ) {
  22035. this.$message.error("请选择选项");
  22036. return;
  22037. }
  22038. }
  22039. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22040. let params = [
  22041. {
  22042. uid: this.sStudent.userid,
  22043. cid: this.id,
  22044. stage: this.courseType,
  22045. task: this.taskCount,
  22046. tool: this.toolindex,
  22047. content: JSON.stringify(this.askList),
  22048. type: 2
  22049. }
  22050. ];
  22051. this.ajax
  22052. .post(this.$store.state.api + "addCourseWorks", params)
  22053. .then(res => {
  22054. this.$message({
  22055. message: "提交成功",
  22056. type: "success"
  22057. });
  22058. this.askList = [];
  22059. this.dialogVisible5Teacher = false;
  22060. this.selectStudent();
  22061. this.selectSWorks();
  22062. this.selectSLook();
  22063. })
  22064. .catch(err => {
  22065. this.$message.error("提交失败");
  22066. console.error(err);
  22067. });
  22068. },
  22069. addStudentTest() {
  22070. if (!this.radio.length) {
  22071. this.$message.error("请选择选项");
  22072. return;
  22073. }
  22074. for (var i = 0; i < this.testJson.testCount; i++) {
  22075. if (
  22076. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22077. (this.radio[i] !== 0 && !this.radio[i])
  22078. ) {
  22079. this.$message.error("请选择选项");
  22080. return;
  22081. }
  22082. }
  22083. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22084. let params = [
  22085. {
  22086. uid: this.userid,
  22087. cid: this.id,
  22088. stage: this.courseType,
  22089. task: this.taskCount,
  22090. tool: this.toolindex,
  22091. content: JSON.stringify(this.askList),
  22092. type: 8
  22093. }
  22094. ];
  22095. this.ajax
  22096. .post(this.$store.state.api + "addCourseWorks", params)
  22097. .then(res => {
  22098. this.$message({
  22099. message: "提交成功",
  22100. type: "success"
  22101. });
  22102. this.askList = [];
  22103. this.dialogVisibleChoice = false;
  22104. this.selectStudent();
  22105. this.selectSWorks();
  22106. this.selectSLook();
  22107. })
  22108. .catch(err => {
  22109. this.$message.error("提交失败");
  22110. console.error(err);
  22111. });
  22112. },
  22113. addStudentTestTeacher() {
  22114. if (!this.radio.length) {
  22115. this.$message.error("请选择选项");
  22116. return;
  22117. }
  22118. for (var i = 0; i < this.testJson.testCount; i++) {
  22119. if (
  22120. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22121. (this.radio[i] !== 0 && !this.radio[i])
  22122. ) {
  22123. this.$message.error("请选择选项");
  22124. return;
  22125. }
  22126. }
  22127. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22128. let params = [
  22129. {
  22130. uid: this.sStudent.userid,
  22131. cid: this.id,
  22132. stage: this.courseType,
  22133. task: this.taskCount,
  22134. tool: this.toolindex,
  22135. content: JSON.stringify(this.askList),
  22136. type: 8
  22137. }
  22138. ];
  22139. this.ajax
  22140. .post(this.$store.state.api + "addCourseWorks", params)
  22141. .then(res => {
  22142. this.$message({
  22143. message: "提交成功",
  22144. type: "success"
  22145. });
  22146. this.askList = [];
  22147. this.dialogVisibleChoiceTeacher = false;
  22148. this.selectStudent();
  22149. this.selectSWorks();
  22150. this.selectSLook();
  22151. })
  22152. .catch(err => {
  22153. this.$message.error("提交失败");
  22154. console.error(err);
  22155. });
  22156. },
  22157. addWork() {
  22158. if (this.studyJuri[0].content == "") {
  22159. this.$message.error("请将信息填写完整");
  22160. return;
  22161. } else if (this.studyJuri[0].cover.length == 0) {
  22162. this.$message.error("请将信息填写完整");
  22163. return;
  22164. } else if (this.studyJuri[0].upVedio.length == 0) {
  22165. this.$message.error("请将信息填写完整");
  22166. return;
  22167. }
  22168. if (this.isNoHomeWork) {
  22169. this.$confirm(
  22170. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22171. "提示",
  22172. {
  22173. confirmButtonText: "确定",
  22174. cancelButtonText: "取消",
  22175. type: "warning"
  22176. }
  22177. )
  22178. .then(() => {
  22179. let params = [
  22180. {
  22181. uid: this.userid,
  22182. cid: this.id,
  22183. stage: this.courseType,
  22184. task: this.taskCount,
  22185. content: JSON.stringify(this.studyJuri)
  22186. }
  22187. ];
  22188. this.ajax
  22189. .post(this.$store.state.api + "addWorks", params)
  22190. .then(res => {
  22191. this.$message({
  22192. message: "提交成功",
  22193. type: "success"
  22194. });
  22195. this.isNoHomeWork = true;
  22196. this.dialogVisible = false;
  22197. })
  22198. .catch(err => {
  22199. this.$message.error("提交失败");
  22200. console.error(err);
  22201. });
  22202. })
  22203. .catch(() => {});
  22204. } else {
  22205. let params = [
  22206. {
  22207. uid: this.userid,
  22208. cid: this.id,
  22209. stage: this.courseType,
  22210. task: this.taskCount,
  22211. content: JSON.stringify(this.studyJuri)
  22212. }
  22213. ];
  22214. this.ajax
  22215. .post(this.$store.state.api + "addWorks", params)
  22216. .then(res => {
  22217. this.$message({
  22218. message: "提交成功",
  22219. type: "success"
  22220. });
  22221. this.isNoHomeWork = true;
  22222. this.dialogVisible = false;
  22223. })
  22224. .catch(err => {
  22225. this.$message.error("提交失败");
  22226. console.error(err);
  22227. });
  22228. }
  22229. },
  22230. selectCount() {
  22231. let params = {
  22232. cid: this.id,
  22233. chid: this.courseType,
  22234. uid: this.userid
  22235. };
  22236. this.ajax
  22237. .get(this.$store.state.api + "selectToolsCount", params)
  22238. .then(res => {
  22239. for (var i = 0; i < res.data[0].length; i++) {
  22240. if (res.data[0][i].tools == 1) {
  22241. this.wbCount = res.data[0][i].count;
  22242. } else if (res.data[0][i].tools == 2) {
  22243. this.wordCount = res.data[0][i].count;
  22244. } else if (res.data[0][i].tools == 3) {
  22245. this.mindCount = res.data[0][i].count;
  22246. } else if (res.data[0][i].tools == 4) {
  22247. this.askCount = res.data[0][i].count;
  22248. } else if (res.data[0][i].tools == 6) {
  22249. this.noteCount = res.data[0][i].count;
  22250. } else if (res.data[0][i].tools == 7) {
  22251. this.mindNetWorkCount = res.data[0][i].count;
  22252. } else if (res.data[0][i].tools == 8) {
  22253. this.libraryCount = res.data[0][i].count;
  22254. } else if (res.data[0][i].tools == 16) {
  22255. this.workCount = res.data[0][i].count;
  22256. } else if (res.data[0][i].tools == 10) {
  22257. this.timeCount = res.data[0][i].count;
  22258. } else if (res.data[0][i].tools == 15) {
  22259. this.answerCount = res.data[0][i].count;
  22260. } else if (res.data[0][i].tools == 18) {
  22261. this.trainCount = res.data[0][i].count;
  22262. }
  22263. }
  22264. })
  22265. .catch(err => {
  22266. console.error(err);
  22267. });
  22268. },
  22269. openTools(t, i, index, c, sName, id) {
  22270. var z = JSON.parse(c);
  22271. this.noteName = sName;
  22272. if (t == 4) {
  22273. this.radio = [];
  22274. this.isAnswer = false;
  22275. let b = z[0].anwer;
  22276. this.radio = b;
  22277. this.askJson = z[0].askJson;
  22278. this.isAnswer = true;
  22279. this.dialogVisible5 = true;
  22280. } else if (t == 45) {
  22281. this.radio = [];
  22282. this.isAnswer = false;
  22283. let b = z[0].anwer;
  22284. this.radio = b;
  22285. this.testJson = z[0].testJson;
  22286. this.isAnswer = true;
  22287. this.dialogVisibleChoice = true;
  22288. } else if (t == 69) {
  22289. this.oldEnglishJson1 = {};
  22290. this.oldEnglishJson = {};
  22291. this.englishList1 = {};
  22292. this.newEngIndex = -1;
  22293. this.isNoUserid = false;
  22294. this.englishList1 = this.chapInfoList[
  22295. this.courseType
  22296. ].chapterInfo[0].taskJson[index].toolChoose[i].englishList;
  22297. this.oldEnglishJson = z;
  22298. this.engWid = id;
  22299. this.newEnglishList = { engTitle: "", engText: "" };
  22300. this.newEnglishList1 = [];
  22301. this.selectEngC(id, z);
  22302. } else if (t == 62) {
  22303. this.videoType = 1;
  22304. this.videoJson = {};
  22305. this.videoJson = JSON.parse(c);
  22306. // this.videoJson =
  22307. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22308. // index
  22309. // ].toolChoose[i].videoJson;
  22310. this.dialogVisibleVideo = true;
  22311. }
  22312. // else if (t == 15) {
  22313. // this.answerQ = "";
  22314. // this.questionAnswer = "";
  22315. // this.answerQ = z[0].answerTitle;
  22316. // this.questionAnswer = z[0].answer;
  22317. // this.answerDialogVisible = true;
  22318. // }
  22319. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`);
  22320. },
  22321. fastText(p, t) {
  22322. if (t == 1) {
  22323. this.commentText += p;
  22324. } else {
  22325. this.eScore.eBzText += p;
  22326. }
  22327. },
  22328. addTools(t, i, index) {
  22329. var a = 0;
  22330. // this.taskCount = index;
  22331. this.toolindex = i;
  22332. if (t == 1) {
  22333. if (this.wbCount > 0) {
  22334. this.updateCount(this.wbCount, t);
  22335. } else {
  22336. this.wbCount++;
  22337. a = this.wbCount;
  22338. this.toolsCount(a, t);
  22339. }
  22340. window.parent.postMessage(
  22341. {
  22342. tools: "1",
  22343. cid: this.id,
  22344. stage: this.courseType,
  22345. task: this.taskCount,
  22346. tool: i
  22347. },
  22348. "*"
  22349. );
  22350. } else if (t == 2) {
  22351. if (this.wordCount > 0) {
  22352. this.updateCount(this.wordCount, t);
  22353. } else {
  22354. this.wordCount++;
  22355. a = this.wordCount;
  22356. this.toolsCount(a, t);
  22357. }
  22358. window.parent.postMessage({ tools: "2" }, "*");
  22359. } else if (t == 3) {
  22360. if (this.mindCount > 0) {
  22361. this.updateCount(this.mindCount, t);
  22362. } else {
  22363. this.mindCount++;
  22364. a = this.mindCount;
  22365. this.toolsCount(a, t);
  22366. }
  22367. window.parent.postMessage(
  22368. {
  22369. tools: "3",
  22370. cid: this.id,
  22371. stage: this.courseType,
  22372. task: this.taskCount,
  22373. tool: i
  22374. },
  22375. "*"
  22376. );
  22377. } else if (t == 4) {
  22378. this.radio = [];
  22379. this.noteName = "";
  22380. this.isAnswer = false;
  22381. if (this.askCount > 0) {
  22382. this.updateCount(this.askCount, t);
  22383. } else {
  22384. this.askCount++;
  22385. a = this.askCount;
  22386. this.toolsCount(a, t);
  22387. }
  22388. if (!this.dialogVisible2) {
  22389. this.askJson.askJson = this.chapInfoList[
  22390. this.courseType
  22391. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  22392. this.askJson.askTitle = this.chapInfoList[
  22393. this.courseType
  22394. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  22395. this.askJson.askCount = this.chapInfoList[
  22396. this.courseType
  22397. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  22398. } else {
  22399. this.askJson.askJson = this.chapTools.askJson.askJson;
  22400. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22401. this.askJson.askCount = this.chapTools.askJson.askCount;
  22402. }
  22403. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22404. if (this.askJson.askJson[k].type == "2") {
  22405. this.radio.push([]);
  22406. } else {
  22407. this.radio.push("");
  22408. }
  22409. }
  22410. this.dialogVisible5 = true;
  22411. // window.parent.postMessage({ tools: "4" }, "*");
  22412. } else if (t == 45) {
  22413. this.noteName = "";
  22414. this.radio = [];
  22415. this.isAnswer = false;
  22416. if (this.askCount > 0) {
  22417. this.updateCount(this.askCount, t);
  22418. } else {
  22419. this.askCount++;
  22420. a = this.askCount;
  22421. this.toolsCount(a, t);
  22422. }
  22423. this.testJson = this.chapInfoList[
  22424. this.courseType
  22425. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  22426. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22427. if (this.testJson.testJson[k].type == "2") {
  22428. this.radio.push([]);
  22429. } else {
  22430. this.radio.push("");
  22431. }
  22432. }
  22433. this.dialogVisibleChoice = true;
  22434. // window.parent.postMessage({ tools: "4" }, "*");
  22435. } else if (t == 5) {
  22436. if (this.scoreCount > 0) {
  22437. this.updateCount(this.scoreCount, t);
  22438. } else {
  22439. this.scoreCount++;
  22440. a = this.scoreCount;
  22441. this.toolsCount(a, t);
  22442. }
  22443. this.dialogVisible4 = true;
  22444. // window.parent.postMessage({ tools: "5" }, "*");
  22445. } else if (t == 6) {
  22446. if (this.noteCount > 0) {
  22447. this.updateCount(this.noteCount, t);
  22448. } else {
  22449. this.noteCount++;
  22450. a = this.noteCount;
  22451. this.toolsCount(a, t);
  22452. }
  22453. window.parent.postMessage(
  22454. {
  22455. tools: "6",
  22456. cid: this.id,
  22457. stage: this.courseType,
  22458. task: this.taskCount,
  22459. tool: i
  22460. },
  22461. "*"
  22462. );
  22463. } else if (t == 7) {
  22464. if (this.mindNetWorkCount > 0) {
  22465. this.updateCount(this.mindNetWorkCount, t);
  22466. } else {
  22467. this.mindNetWorkCount++;
  22468. a = this.mindNetWorkCount;
  22469. this.toolsCount(a, t);
  22470. }
  22471. window.parent.postMessage(
  22472. {
  22473. tools: "7",
  22474. cid: this.id,
  22475. stage: this.courseType,
  22476. task: this.taskCount,
  22477. tool: i
  22478. },
  22479. "*"
  22480. );
  22481. } else if (t == 16) {
  22482. if (this.workCount > 0) {
  22483. this.updateCount(this.workCount, t);
  22484. } else {
  22485. this.workCount++;
  22486. a = this.workCount;
  22487. this.toolsCount(a, t);
  22488. }
  22489. this.dialogVisible = true;
  22490. } else if (t == 50) {
  22491. if (this.tType == 2) {
  22492. this.$message.error("不支持学生使用");
  22493. return;
  22494. }
  22495. this.plworkFile = [];
  22496. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22497. if (!this.uploadCid) {
  22498. this.$message.error(
  22499. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  22500. );
  22501. return;
  22502. }
  22503. // this.uploadCid =
  22504. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22505. // index
  22506. // ].toolChoose[i].uploadJson[0];
  22507. this.selectUploadStudent(2);
  22508. } else if (t == 8) {
  22509. if (this.libraryCount > 0) {
  22510. this.updateCount(this.libraryCount, t);
  22511. } else {
  22512. this.libraryCount++;
  22513. a = this.libraryCount;
  22514. this.toolsCount(a, t);
  22515. }
  22516. window.parent.postMessage({ tools: "8" }, "*");
  22517. } else if (t == 17) {
  22518. if (this.libraryCount > 0) {
  22519. this.updateCount(this.libraryCount, t);
  22520. } else {
  22521. this.libraryCount++;
  22522. a = this.libraryCount;
  22523. this.toolsCount(a, t);
  22524. }
  22525. window.parent.postMessage({ tools: "17" }, "*");
  22526. } else if (t == 18) {
  22527. if (this.trainCount > 0) {
  22528. this.updateCount(this.trainCount, t);
  22529. } else {
  22530. this.trainCount++;
  22531. a = this.trainCount;
  22532. this.toolsCount(a, t);
  22533. }
  22534. window.parent.postMessage({ tools: "18" }, "*");
  22535. } else if (t == 10) {
  22536. if (this.timeCount > 0) {
  22537. this.updateCount(this.timeCount, t);
  22538. } else {
  22539. this.timeCount++;
  22540. a = this.timeCount;
  22541. this.toolsCount(a, t);
  22542. }
  22543. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  22544. .taskJson[index].toolChoose[i].preTime
  22545. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22546. .toolChoose[i].preTime
  22547. : "";
  22548. this.timeDialogVisible = true;
  22549. } else if (t == 15) {
  22550. this.answerQ = "";
  22551. this.questionAnswer = "";
  22552. if (this.answerCount > 0) {
  22553. this.updateCount(this.answerCount, t);
  22554. } else {
  22555. this.answerCount++;
  22556. a = this.answerCount;
  22557. this.toolsCount(a, t);
  22558. }
  22559. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22560. .taskJson[index].toolChoose[i].answerQ
  22561. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22562. .toolChoose[i].answerQ
  22563. : "";
  22564. this.answerDialogVisible = true;
  22565. } else if (t == 21) {
  22566. window.parent.postMessage({ tools: "21" }, "*");
  22567. } else if (t == 22) {
  22568. window.parent.postMessage({ tools: "22" }, "*");
  22569. } else if (t == 23) {
  22570. window.parent.postMessage({ tools: "23" }, "*");
  22571. } else if (t == 24) {
  22572. window.parent.postMessage({ tools: "24" }, "*");
  22573. } else if (t == 25) {
  22574. window.parent.postMessage({ tools: "25" }, "*");
  22575. } else if (t == 31) {
  22576. window.parent.postMessage({ tools: "31" }, "*");
  22577. } else if (t == 28) {
  22578. window.parent.postMessage({ tools: "28" }, "*");
  22579. } else if (t == 37) {
  22580. window.parent.postMessage({ tools: "37" }, "*");
  22581. } else if (t == 38) {
  22582. window.parent.postMessage({ tools: "38" }, "*");
  22583. } else if (t == 39) {
  22584. window.parent.postMessage({ tools: "39" }, "*");
  22585. } else if (t == 32) {
  22586. window.parent.postMessage({ tools: "32" }, "*");
  22587. } else if (t == 66) {
  22588. window.parent.postMessage({ tools: "66" }, "*");
  22589. } else if (t == 67) {
  22590. window.parent.postMessage({ tools: "67" }, "*");
  22591. } else if (t == 68) {
  22592. window.parent.postMessage({ tools: "68" }, "*");
  22593. } else if (t == 57) {
  22594. // window.parent.postMessage({ tools: "57" }, "*");
  22595. window.parent.postMessage(
  22596. {
  22597. tools: "57u",
  22598. cid: this.id,
  22599. stage: this.courseType,
  22600. task: this.taskCount,
  22601. tool: i
  22602. },
  22603. "*"
  22604. );
  22605. } else if (t == 58) {
  22606. window.parent.postMessage({ tools: "58" }, "*");
  22607. } else if (t == 59) {
  22608. window.parent.postMessage({ tools: "59" }, "*");
  22609. } else if (t == 60) {
  22610. window.parent.postMessage({ tools: "60" }, "*");
  22611. } else if (t == 61) {
  22612. window.parent.postMessage({ tools: "61" }, "*");
  22613. } else if (t == 63) {
  22614. window.parent.postMessage({ tools: "63" }, "*");
  22615. } else if (t == 71) {
  22616. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  22617. // this.$message.error("该工具不可使用");
  22618. // return
  22619. // }
  22620. window.parent.postMessage({ tools: "71" }, "*");
  22621. } else if (t == 69) {
  22622. if (this.worksStudent[i].length) {
  22623. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22624. if (this.userid == this.worksStudent[i][k].userid) {
  22625. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works);
  22626. break;
  22627. } else {
  22628. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  22629. }
  22630. }
  22631. } else {
  22632. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  22633. }
  22634. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  22635. .taskJson[index].toolChoose[i].englishList
  22636. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22637. .toolChoose[i].englishList
  22638. : {};
  22639. this.englishToolIndex = i;
  22640. this.myAnList = this.myAnswerList1;
  22641. this.engDialogVisible = true;
  22642. } else if (t == 70) {
  22643. if (this.worksStudent[i].length) {
  22644. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22645. if (
  22646. this.userid == this.worksStudent[i][k].userid &&
  22647. this.worksStudent[i][k].type == 17
  22648. ) {
  22649. this.englishVoiceJsonWork = JSON.parse(
  22650. this.worksStudent[i][k].works
  22651. );
  22652. break;
  22653. } else {
  22654. this.englishVoiceJsonWork = [];
  22655. }
  22656. }
  22657. } else {
  22658. this.englishVoiceJsonWork = [];
  22659. }
  22660. let englishVoiceJson = {};
  22661. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22662. .taskJson[index].toolChoose[i].englishVoiceJson
  22663. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22664. .toolChoose[i].englishVoiceJson
  22665. : {};
  22666. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  22667. this.EnglishVoiceDialog = true;
  22668. } else if (t == 65) {
  22669. if (this.tType == 2) {
  22670. this.$message.error("不支持学生使用");
  22671. return;
  22672. }
  22673. this.uploadCid = this.tcid;
  22674. if (!this.uploadCid) {
  22675. this.$message.error(
  22676. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  22677. );
  22678. return;
  22679. }
  22680. this.selectPickStudent();
  22681. } else if (t == 26) {
  22682. window.parent.postMessage(
  22683. {
  22684. tools: "26",
  22685. cid: this.id,
  22686. stage: this.courseType,
  22687. task: this.taskCount,
  22688. tool: i
  22689. },
  22690. "*"
  22691. );
  22692. } else if (t == 40) {
  22693. if (this.evalCount > 0) {
  22694. this.updateCount(this.evalCount, t);
  22695. } else {
  22696. this.evalCount++;
  22697. a = this.evalCount;
  22698. this.toolsCount(a, t);
  22699. }
  22700. this.eScore = { eBzText: "", eStar: [] };
  22701. if (this.worksStudent[i].length) {
  22702. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22703. if (this.userid == this.worksStudent[i][k].userid) {
  22704. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22705. this.rateJson = this.chapInfoList[
  22706. this.courseType
  22707. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22708. break;
  22709. } else {
  22710. this.rateJson = this.chapInfoList[
  22711. this.courseType
  22712. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22713. }
  22714. }
  22715. } else {
  22716. this.rateJson = this.chapInfoList[
  22717. this.courseType
  22718. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22719. }
  22720. this.isStar = false;
  22721. this.studentEvalDialogVisible = true;
  22722. } else if (t == 41) {
  22723. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22724. .taskJson[index].toolChoose[i].selectJson
  22725. ? JSON.parse(
  22726. JSON.stringify(
  22727. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22728. index
  22729. ].toolChoose[i].selectJson
  22730. )
  22731. )
  22732. : { url: "", select: [], answer: [] };
  22733. if (this.worksStudent[i].length) {
  22734. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22735. if (this.userid == this.worksStudent[i][k].userid) {
  22736. var a = this.worksStudent[i][k].works.split(",");
  22737. for (var ki = 0; ki < a.length; ki++) {
  22738. a[ki] = parseInt(a[ki]);
  22739. }
  22740. this.selectAnswer = {
  22741. answer: a,
  22742. stu: this.worksStudent[i][k].sName
  22743. };
  22744. break;
  22745. } else {
  22746. this.selectAnswer = { answer: [], stu: "" };
  22747. }
  22748. }
  22749. } else {
  22750. this.selectAnswer = { answer: [], stu: "" };
  22751. }
  22752. this.isSelect = false;
  22753. this.dialogVisibleSelect = true;
  22754. } else if (t == 44) {
  22755. window.parent.postMessage({ tools: "44" }, "*");
  22756. } else if (t == 47) {
  22757. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22758. .taskJson[index].toolChoose[i].sentenceList
  22759. ? JSON.parse(
  22760. JSON.stringify(
  22761. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22762. index
  22763. ].toolChoose[i].sentenceList
  22764. )
  22765. )
  22766. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22767. for (var q = 0; q < this.sentenceList.length; q++) {
  22768. this.sentenceList[q].chooseSenList = [];
  22769. this.sentenceList[q].addChangeSen = [];
  22770. this.sentenceList[q].addChangeSen = JSON.parse(
  22771. JSON.stringify(this.sentenceList[q].addSentence)
  22772. );
  22773. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  22774. q
  22775. ].rightAnswer.length;
  22776. }
  22777. this.dialogVisibleSentence = true;
  22778. } else if (t == 48) {
  22779. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22780. .taskJson[index].toolChoose[i].tableJson
  22781. ? JSON.parse(
  22782. JSON.stringify(
  22783. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22784. index
  22785. ].toolChoose[i].tableJson
  22786. )
  22787. )
  22788. : { text: "" };
  22789. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  22790. if (this.worksStudent[i].length) {
  22791. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22792. if (this.userid == this.worksStudent[i][k].userid) {
  22793. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22794. break;
  22795. }
  22796. }
  22797. }
  22798. this.dialogVisibleTable = true;
  22799. } else if (t == 52) {
  22800. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22801. .taskJson[index].toolChoose[i].wordJson
  22802. ? JSON.parse(
  22803. JSON.stringify(
  22804. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22805. index
  22806. ].toolChoose[i].wordJson
  22807. )
  22808. )
  22809. : { text: "" };
  22810. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  22811. if (this.worksStudent[i].length) {
  22812. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22813. if (this.userid == this.worksStudent[i][k].userid) {
  22814. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22815. break;
  22816. }
  22817. }
  22818. }
  22819. this.dialogVisibleWord = true;
  22820. } else if (t == 49) {
  22821. if (!this.tcid2 && this.courseDetail.juri != "" && this.tType == "1") {
  22822. return;
  22823. }
  22824. this.groupJson = this.chapInfoList[
  22825. this.courseType
  22826. ].chapterInfo[0].taskJson[index].toolChoose[i].groupJson;
  22827. this.islock = this.groupJson.islock == 1 ? true : false;
  22828. this.dialogVisibleGroup = true;
  22829. } else if (t == 62) {
  22830. this.videoType = 0;
  22831. this.videoJson = {};
  22832. this.videoJson = this.chapInfoList[
  22833. this.courseType
  22834. ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
  22835. this.dialogVisibleVideo = true;
  22836. }
  22837. this.insertMemorandum(
  22838. `点击工作区<span class="variable">工具${index + 1}:${
  22839. this.toolsList[t]
  22840. }</span>`
  22841. );
  22842. },
  22843. teacherWorkSubmit(t, i, index, s) {
  22844. this.sStudent = s;
  22845. this.toolindex = i;
  22846. this.sTool = t;
  22847. if (this.tType !== "1" && this.tType !== "4") {
  22848. return;
  22849. }
  22850. if (t == 16 || t == 32 || t == 50) {
  22851. this.dialogVisibleWorks = true;
  22852. } else if (t == 15) {
  22853. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22854. .taskJson[index].toolChoose[i].answerQ
  22855. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22856. .toolChoose[i].answerQ
  22857. : "";
  22858. this.questionAnswer = "";
  22859. this.answerDialogVisibleTeacher = true; //问答
  22860. } else if (t == 52) {
  22861. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22862. .taskJson[index].toolChoose[i].wordJson
  22863. ? JSON.parse(
  22864. JSON.stringify(
  22865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22866. index
  22867. ].toolChoose[i].wordJson
  22868. )
  22869. )
  22870. : { text: "" };
  22871. if (this.worksStudent[i].length) {
  22872. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22873. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22874. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22875. break;
  22876. }
  22877. }
  22878. }
  22879. this.dialogVisibleWordTeacher = true; //文档
  22880. } else if (t == 4) {
  22881. this.radio = [];
  22882. this.noteName = "";
  22883. this.isAnswer = false;
  22884. if (this.askCount > 0) {
  22885. this.updateCount(this.askCount, t);
  22886. } else {
  22887. this.askCount++;
  22888. a = this.askCount;
  22889. this.toolsCount(a, t);
  22890. }
  22891. if (!this.dialogVisible2) {
  22892. this.askJson.askJson = this.chapInfoList[
  22893. this.courseType
  22894. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  22895. this.askJson.askTitle = this.chapInfoList[
  22896. this.courseType
  22897. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  22898. this.askJson.askCount = this.chapInfoList[
  22899. this.courseType
  22900. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  22901. } else {
  22902. this.askJson.askJson = this.chapTools.askJson.askJson;
  22903. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22904. this.askJson.askCount = this.chapTools.askJson.askCount;
  22905. }
  22906. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22907. if (this.askJson.askJson[k].type == "2") {
  22908. this.radio.push([]);
  22909. } else {
  22910. this.radio.push("");
  22911. }
  22912. }
  22913. this.dialogVisible5Teacher = true;
  22914. } else if (t == 45) {
  22915. this.noteName = "";
  22916. this.radio = [];
  22917. this.isAnswer = false;
  22918. if (this.askCount > 0) {
  22919. this.updateCount(this.askCount, t);
  22920. } else {
  22921. this.askCount++;
  22922. a = this.askCount;
  22923. this.toolsCount(a, t);
  22924. }
  22925. this.testJson = this.chapInfoList[
  22926. this.courseType
  22927. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  22928. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22929. if (this.testJson.testJson[k].type == "2") {
  22930. this.radio.push([]);
  22931. } else {
  22932. this.radio.push("");
  22933. }
  22934. }
  22935. this.dialogVisibleChoiceTeacher = true;
  22936. } else if (t == 41) {
  22937. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22938. .taskJson[index].toolChoose[i].selectJson
  22939. ? JSON.parse(
  22940. JSON.stringify(
  22941. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22942. index
  22943. ].toolChoose[i].selectJson
  22944. )
  22945. )
  22946. : { url: "", select: [], answer: [] };
  22947. if (this.worksStudent[i].length) {
  22948. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22949. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22950. var a = this.worksStudent[i][k].works.split(",");
  22951. for (var ki = 0; ki < a.length; ki++) {
  22952. a[ki] = parseInt(a[ki]);
  22953. }
  22954. this.selectAnswer = {
  22955. answer: a,
  22956. stu: this.worksStudent[i][k].sName
  22957. };
  22958. break;
  22959. } else {
  22960. this.selectAnswer = { answer: [], stu: "" };
  22961. }
  22962. }
  22963. } else {
  22964. this.selectAnswer = { answer: [], stu: "" };
  22965. }
  22966. this.isSelect = false;
  22967. this.dialogVisibleSelectTeacher = true;
  22968. } else if (t == 47) {
  22969. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22970. .taskJson[index].toolChoose[i].sentenceList
  22971. ? JSON.parse(
  22972. JSON.stringify(
  22973. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22974. index
  22975. ].toolChoose[i].sentenceList
  22976. )
  22977. )
  22978. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22979. for (var q = 0; q < this.sentenceList.length; q++) {
  22980. this.sentenceList[q].chooseSenList = [];
  22981. this.sentenceList[q].addChangeSen = [];
  22982. this.sentenceList[q].addChangeSen = JSON.parse(
  22983. JSON.stringify(this.sentenceList[q].addSentence)
  22984. );
  22985. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  22986. q
  22987. ].rightAnswer.length;
  22988. }
  22989. this.dialogVisibleSentenceTeacher = true;
  22990. } else if (t == 48) {
  22991. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22992. .taskJson[index].toolChoose[i].tableJson
  22993. ? JSON.parse(
  22994. JSON.stringify(
  22995. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22996. index
  22997. ].toolChoose[i].tableJson
  22998. )
  22999. )
  23000. : { text: "" };
  23001. if (this.worksStudent[i].length) {
  23002. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23003. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23004. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23005. break;
  23006. }
  23007. }
  23008. }
  23009. this.dialogVisibleTableTeacher = true;
  23010. } else if (t == 40) {
  23011. if (this.evalCount > 0) {
  23012. this.updateCount(this.evalCount, t);
  23013. } else {
  23014. this.evalCount++;
  23015. a = this.evalCount;
  23016. this.toolsCount(a, t);
  23017. }
  23018. this.eScore = { eBzText: "", eStar: [] };
  23019. if (this.worksStudent[i].length) {
  23020. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23021. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23022. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23023. this.rateJson = this.chapInfoList[
  23024. this.courseType
  23025. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23026. break;
  23027. } else {
  23028. this.rateJson = this.chapInfoList[
  23029. this.courseType
  23030. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23031. }
  23032. }
  23033. } else {
  23034. this.rateJson = this.chapInfoList[
  23035. this.courseType
  23036. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23037. }
  23038. this.isStar = false;
  23039. this.studentEvalDialogVisibleTeacher = true;
  23040. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23041. window.parent.postMessage(
  23042. {
  23043. tools: t + "teacher",
  23044. cid: this.id,
  23045. stage: this.courseType,
  23046. task: this.taskCount,
  23047. tool: i,
  23048. student: this.sStudent
  23049. },
  23050. "*"
  23051. );
  23052. }
  23053. },
  23054. openCocoPi(tool, i, uid, uname) {
  23055. let student = {
  23056. userid: uid,
  23057. student: uname
  23058. };
  23059. if (tool == 57) {
  23060. window.parent.postMessage(
  23061. {
  23062. tools: tool + "teacher",
  23063. cid: this.id,
  23064. stage: this.courseType,
  23065. task: this.taskCount,
  23066. tool: i,
  23067. student: student
  23068. },
  23069. "*"
  23070. );
  23071. }
  23072. },
  23073. setRightAnswer(s, i, j) {
  23074. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23075. if (
  23076. this.sentenceList[i].chooseSenList[q] == undefined ||
  23077. this.sentenceList[i].chooseSenList[q] == ""
  23078. ) {
  23079. this.sentenceList[i].chooseSenList[q] = s;
  23080. this.sentenceList[i].addChangeSen[j] = "";
  23081. break;
  23082. }
  23083. }
  23084. this.$forceUpdate();
  23085. },
  23086. returnCard(r, i, j) {
  23087. var a = this.sentenceList[i].addSentence.indexOf(r);
  23088. this.sentenceList[i].chooseSenList[j] = "";
  23089. this.sentenceList[i].addChangeSen[a] = r;
  23090. this.$forceUpdate();
  23091. },
  23092. // addSentenceTool() {
  23093. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23094. // this.taskCount
  23095. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23096. // this.sentenceList = [
  23097. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23098. // ];
  23099. // this.dialogVisibleSentence = false;
  23100. // },
  23101. toolsCount(a, t) {
  23102. let params = {
  23103. cid: this.id,
  23104. chid: this.courseType,
  23105. uid: this.userid,
  23106. tid: t,
  23107. count: a
  23108. };
  23109. this.ajax
  23110. .get(this.$store.state.api + "insertToolsCount", params)
  23111. .then(res => {
  23112. this.selectCount();
  23113. })
  23114. .catch(err => {
  23115. console.error(err);
  23116. });
  23117. },
  23118. updateCount(c, t) {
  23119. c++;
  23120. let params = {
  23121. cid: this.id,
  23122. chid: this.courseType,
  23123. uid: this.userid,
  23124. tid: t,
  23125. count: c
  23126. };
  23127. this.ajax
  23128. .get(this.$store.state.api + "updateToolsCount", params)
  23129. .then(res => {
  23130. this.selectCount();
  23131. })
  23132. .catch(err => {
  23133. console.error(err);
  23134. });
  23135. },
  23136. checkEva() {
  23137. if (this.evalua != "") {
  23138. for (var i = 0; i < this.evaJuri.length; i++) {
  23139. if (this.evalua == this.evaJuri[i].id) {
  23140. this.eTitle = this.evaJuri[i].title;
  23141. this.eJson = JSON.parse(this.evaJuri[i].content);
  23142. }
  23143. }
  23144. this.$forceUpdate();
  23145. setTimeout(() => {
  23146. this.setMindData();
  23147. }, 0);
  23148. }
  23149. },
  23150. selectEva() {
  23151. let params = {
  23152. oid: this.oid
  23153. };
  23154. this.ajax
  23155. .get(this.$store.state.api + "selectAllEvaluation", params)
  23156. .then(res => {
  23157. this.evaJuri = res.data[0];
  23158. })
  23159. .catch(err => {
  23160. console.error(err);
  23161. });
  23162. },
  23163. setMindData() {
  23164. this.data.data = [];
  23165. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23166. let _eJson = Object.keys(this.eJson);
  23167. let _e = this.eJson;
  23168. for (let i = 0; i < _eJson.length; i++) {
  23169. let element = _e[_eJson[i]];
  23170. this.data.data.push({
  23171. id: element.id,
  23172. parentid: "root",
  23173. topic: element.name
  23174. });
  23175. let _eJsonc = Object.keys(element.child);
  23176. let _e2 = element.child;
  23177. for (let j = 0; j < _eJsonc.length; j++) {
  23178. let _ec = _e2[_eJsonc[j]];
  23179. this.data.data.push({
  23180. id: _ec.id,
  23181. parentid: element.id,
  23182. topic: _ec.name
  23183. });
  23184. let _eJsonz = Object.keys(_ec.child);
  23185. let _e3 = _ec.child;
  23186. for (let z = 0; z < _eJsonz.length; z++) {
  23187. let _ez = _e3[_eJsonz[z]];
  23188. this.data.data.push({
  23189. id: _ez.id,
  23190. parentid: _ec.id,
  23191. topic: _ez.name
  23192. });
  23193. }
  23194. }
  23195. }
  23196. this.$forceUpdate();
  23197. },
  23198. checkFileFull(type, url) {
  23199. this.fullDialogVisible = true;
  23200. this.fulltype = type;
  23201. this.fullUrl = url;
  23202. },
  23203. async checkFileFull1(t, f) {
  23204. this.fullDialogVisible = true;
  23205. if (t == 6) {
  23206. this.fulltype = 1;
  23207. this.fullUrl = JSON.parse(JSON.stringify(f));
  23208. } else if (t == 8) {
  23209. this.fulltype = 2;
  23210. this.fullUrl = f.url;
  23211. } else if (
  23212. t == 3 &&
  23213. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23214. "PDF"
  23215. ) {
  23216. this.fulltype = 3;
  23217. this.fullUrl = f.url;
  23218. } else if (t == 3) {
  23219. this.fulltype = 2;
  23220. let _uuurl = await this.checkLink(f.url);
  23221. this.fullUrl =
  23222. "https://view.officeapps.live.com/op/view.aspx?src=" +
  23223. encodeURIComponent(_uuurl);
  23224. }
  23225. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23226. },
  23227. openSname(n, id, i, uid) {
  23228. this.snameWid = id;
  23229. this.worksSName = n;
  23230. this.worksSid = uid == n ? "" : uid;
  23231. this.toolindex = i;
  23232. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23233. if (!this.uploadCid) {
  23234. this.$message.error(
  23235. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23236. );
  23237. return;
  23238. }
  23239. this.selectUploadStudent(1);
  23240. },
  23241. updateName() {
  23242. let params = {
  23243. n: this.worksSName,
  23244. cid: this.snameWid
  23245. };
  23246. this.ajax
  23247. .get(this.$store.state.api + "updateCourseWorksName", params)
  23248. .then(res => {
  23249. this.$message({
  23250. message: "修改成功",
  23251. type: "success"
  23252. });
  23253. this.dialogVisibleSname = false;
  23254. this.getCourseDetail(2);
  23255. this.snameWid = "";
  23256. this.worksSName = "";
  23257. })
  23258. .catch(err => {
  23259. console.error(err);
  23260. });
  23261. },
  23262. downloadFile2(f) {
  23263. // const loading = this.$loading.service({
  23264. // background: "rgba(255, 255, 255, 0.7)",
  23265. // target: document.body,
  23266. // text: "文件加载中...",
  23267. // });
  23268. // let url2 = f.url;
  23269. // let _url2 = "";
  23270. // if (
  23271. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23272. // ) {
  23273. // _url2 = url2.split(
  23274. // "https://view.officeapps.live.com/op/view.aspx?src="
  23275. // )[1];
  23276. // } else {
  23277. // _url2 = url2;
  23278. // }
  23279. // let params = {
  23280. // url: _url2,
  23281. // name: f.name,
  23282. // };
  23283. // this.ajax
  23284. // .get(this.$store.state.api + "download", params)
  23285. // .then((res) => {
  23286. // loading.close();
  23287. // let content = res.data.data.data;
  23288. // let ab = new ArrayBuffer(content.length);
  23289. // let view = new Uint8Array(ab);
  23290. // for (var i = 0; i < content.length; ++i) {
  23291. // view[i] = content[i];
  23292. // }
  23293. // let elink = document.createElement("a");
  23294. // elink.download = f.name;
  23295. // elink.style.display = "none";
  23296. // let blob = new Blob([ab], {
  23297. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23298. // });
  23299. // elink.href = URL.createObjectURL(blob);
  23300. // document.body.appendChild(elink);
  23301. // elink.click();
  23302. // document.body.removeChild(elink);
  23303. // })
  23304. // .catch((err) => {
  23305. // loading.close();
  23306. // console.error(err);
  23307. // });
  23308. var credentials = {
  23309. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23310. secretAccessKey: "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"
  23311. }; //秘钥形式的登录上传
  23312. window.AWS.config.update(credentials);
  23313. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23314. let url2 = f.url;
  23315. let _url2 = "";
  23316. if (
  23317. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23318. ) {
  23319. _url2 = url2.split(
  23320. "https://view.officeapps.live.com/op/view.aspx?src="
  23321. )[1];
  23322. } else {
  23323. _url2 = url2;
  23324. }
  23325. let _this = this;
  23326. _this.downLoading = true;
  23327. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23328. let name = decodeURIComponent(
  23329. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23330. );
  23331. var params = {
  23332. Bucket: "ccrb",
  23333. Key: name
  23334. };
  23335. s3.getObject(params, function(err, data) {
  23336. _this.downLoading = false;
  23337. if (err) console.log(err, err.stack);
  23338. // an error occurred
  23339. else {
  23340. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23341. let a = document.createElement("a");
  23342. a.name = f.name;
  23343. a.href = url;
  23344. a.download = f.name;
  23345. a.click();
  23346. console.log(data);
  23347. } // sxuccessful response
  23348. });
  23349. return;
  23350. let url = f.url;
  23351. let _url = "";
  23352. if (
  23353. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23354. ) {
  23355. _url = url.split(
  23356. "https://view.officeapps.live.com/op/view.aspx?src="
  23357. )[1];
  23358. } else {
  23359. _url = url;
  23360. }
  23361. _this.downLoading = true;
  23362. // const loading = _this.$loading.service({
  23363. // background: "rgba(255, 255, 255, 0.7)",
  23364. // target: document.body,
  23365. // text: "文件加载中...",
  23366. // });
  23367. let x = new XMLHttpRequest();
  23368. x.open("GET", _url, true);
  23369. x.responseType = "blob";
  23370. x.onload = function() {
  23371. _this.downLoading = false;
  23372. // loading.close();
  23373. let url = window.URL.createObjectURL(new Blob([x.response]));
  23374. let a = document.createElement("a");
  23375. a.name = f.name;
  23376. a.href = url;
  23377. a.download = f.name;
  23378. a.click();
  23379. };
  23380. x.send();
  23381. },
  23382. downloadFile(url) {
  23383. let hz = url.substring(url.lastIndexOf(".") + 1);
  23384. if (hz == "txt" || hz == "md") {
  23385. this.lookTxt(url);
  23386. return;
  23387. }
  23388. var credentials = {
  23389. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23390. secretAccessKey: "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"
  23391. }; //秘钥形式的登录上传
  23392. window.AWS.config.update(credentials);
  23393. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23394. let url2 = url;
  23395. let _url2 = "";
  23396. if (
  23397. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23398. ) {
  23399. _url2 = url2.split(
  23400. "https://view.officeapps.live.com/op/view.aspx?src="
  23401. )[1];
  23402. } else {
  23403. _url2 = url2;
  23404. }
  23405. const loading2 = this.$loading.service({
  23406. background: "rgba(255, 255, 255, 0.7)",
  23407. target: document.body,
  23408. text: "文件加载中..."
  23409. });
  23410. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23411. let name = decodeURIComponent(
  23412. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23413. );
  23414. var params = {
  23415. Bucket: "ccrb",
  23416. Key: name
  23417. };
  23418. s3.getObject(params, function(err, data) {
  23419. loading2.close();
  23420. if (err) console.log(err, err.stack);
  23421. // an error occurred
  23422. else {
  23423. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23424. let a = document.createElement("a");
  23425. a.name = name;
  23426. a.href = url;
  23427. a.download = name;
  23428. a.click();
  23429. console.log(data);
  23430. } // sxuccessful response
  23431. });
  23432. return;
  23433. let _this = this;
  23434. let _url = "";
  23435. if (
  23436. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23437. ) {
  23438. _url = url.split(
  23439. "https://view.officeapps.live.com/op/view.aspx?src="
  23440. )[1];
  23441. } else {
  23442. _url = url;
  23443. }
  23444. const x = new XMLHttpRequest();
  23445. x.open("GET", _url, true);
  23446. x.responseType = "blob";
  23447. const loading = _this.$loading.service({
  23448. background: "rgba(255, 255, 255, 0.7)",
  23449. target: document.body,
  23450. text: "文件加载中..."
  23451. });
  23452. // _this.$message.success("文件下载中...");
  23453. x.onload = function(e) {
  23454. loading.close();
  23455. let content = x.response;
  23456. let elink = document.createElement("a");
  23457. elink.download = decodeURI(
  23458. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23459. );
  23460. elink.style.display = "none";
  23461. let blob = new Blob([content]);
  23462. elink.href = URL.createObjectURL(blob);
  23463. document.body.appendChild(elink);
  23464. elink.click();
  23465. document.body.removeChild(elink);
  23466. };
  23467. x.send();
  23468. },
  23469. openLine(url) {
  23470. window.open(url);
  23471. },
  23472. resize() {
  23473. if (document.getElementsByClassName("box_course").length) {
  23474. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  23475. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  23476. if (this.showType == 2 || this.showType == 3) {
  23477. document.getElementsByClassName("navBox")[0].style.height =
  23478. a - 40 + 0 + "px";
  23479. } else {
  23480. document.getElementsByClassName("navBox")[0].style.height =
  23481. a - 40 + "px";
  23482. }
  23483. }
  23484. this.Stbodywidth =
  23485. document.getElementsByClassName("student_body").length &&
  23486. document.getElementsByClassName("student_body")[0].offsetWidth;
  23487. },
  23488. closeDraw() {
  23489. this.bg = null;
  23490. this.drawShow = false;
  23491. },
  23492. showPicturePaint(url) {
  23493. let params = {
  23494. img: url
  23495. };
  23496. this.ajax
  23497. .get(this.$store.state.api + "imgToBase64", params)
  23498. .then(res => {
  23499. this.drawShow = true;
  23500. this.bg = res.data[0].img;
  23501. })
  23502. .catch(err => {
  23503. console.error(err);
  23504. });
  23505. },
  23506. addImgDraw(base64) {
  23507. let file = { name: "批注图.png" };
  23508. let img = this.dataUrlToFile(base64, file);
  23509. this.beforeUpload1(img, 5);
  23510. },
  23511. addImgDrawImG(url) {
  23512. // console.log(url);
  23513. let params = [
  23514. {
  23515. wid: this.commentDetail.wid,
  23516. img: url
  23517. }
  23518. ];
  23519. this.ajax
  23520. .post(this.$store.state.api + "updateCourseWorks", params)
  23521. .then(res => {
  23522. this.$message({
  23523. message: "提交成功",
  23524. type: "success"
  23525. });
  23526. this.drawShow = false;
  23527. this.bg = "";
  23528. this.selectSWorks();
  23529. this.selectStudent();
  23530. })
  23531. .catch(err => {
  23532. this.$message.error("提交失败");
  23533. console.error(err);
  23534. });
  23535. },
  23536. deletePicturePaint() {
  23537. this.$confirm("确定删除此批注吗?", "提示", {
  23538. confirmButtonText: "确定",
  23539. cancelButtonText: "取消",
  23540. type: "warning"
  23541. })
  23542. .then(() => {
  23543. let params = [
  23544. {
  23545. wid: this.commentDetail.wid,
  23546. img: ""
  23547. }
  23548. ];
  23549. this.ajax
  23550. .post(this.$store.state.api + "updateCourseWorks", params)
  23551. .then(res => {
  23552. this.$message({
  23553. message: "删除成功",
  23554. type: "success"
  23555. });
  23556. this.selectSWorks();
  23557. this.selectStudent();
  23558. })
  23559. .catch(err => {
  23560. this.$message.error("删除失败");
  23561. console.error(err);
  23562. });
  23563. })
  23564. .catch(() => {});
  23565. },
  23566. getAudioVideo(constraintsData) {
  23567. if (navigator.mediaDevices === undefined) {
  23568. navigator.mediaDevices = {};
  23569. }
  23570. if (navigator.mediaDevices.getUserMedia === undefined) {
  23571. navigator.mediaDevices.getUserMedia = function(constraints) {
  23572. // 首先,如果有getUserMedia的话,就获得它
  23573. var getUserMedia =
  23574. navigator.getUserMedia ||
  23575. navigator.webkitGetUserMedia ||
  23576. navigator.mozGetUserMedia ||
  23577. navigator.msGetUserMedia;
  23578. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  23579. if (!getUserMedia) {
  23580. return Promise.reject({ code: 404 });
  23581. }
  23582. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  23583. return new Promise(function(resolve, reject) {
  23584. getUserMedia.call(navigator, constraints, resolve, reject);
  23585. });
  23586. };
  23587. }
  23588. return navigator.mediaDevices.getUserMedia(constraintsData);
  23589. },
  23590. /**
  23591. * 开始录制
  23592. */
  23593. startRecording(callback) {
  23594. let _function = screenStream => {
  23595. this.addStreamStopListener(screenStream, () => {
  23596. console.log("流停止监听");
  23597. this.stopRecording();
  23598. this.$emit("streamStop", {});
  23599. // this.stopRecording();
  23600. });
  23601. var options = {
  23602. type: "video",
  23603. mimeType: "video/webm",
  23604. disableLogs: false,
  23605. getNativeBlob: false, // enable it for longer recordings
  23606. ignoreMutedMedia: false
  23607. };
  23608. // this.video.srcObject = screenStream;
  23609. this.recorder = RecordRTC(screenStream, options);
  23610. this.recorder.startRecording();
  23611. this.recorder.screen = screenStream;
  23612. this.videoStart = true;
  23613. // callback(true);
  23614. };
  23615. this.getAudioVideo({ audio: true })
  23616. .then(res => {
  23617. this.captureScreen(_function, true);
  23618. console.log("已点击允许,开启成功");
  23619. })
  23620. .catch(err => {
  23621. // console.log('浏览器不支持,请更换浏览器')
  23622. // } else {
  23623. this.captureScreen(_function, false);
  23624. console.log("请检查是否存在麦克风");
  23625. });
  23626. },
  23627. /**
  23628. * 停止录制
  23629. */
  23630. stopRecording(callback) {
  23631. this.recorder.stopRecording(() => {
  23632. // this.video.src = this.video.srcObject = null;
  23633. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  23634. const url = URL.createObjectURL(this.recorder.getBlob());
  23635. const a = document.createElement("a"); //this.fileName+
  23636. let videoFile = new File(
  23637. [this.recorder.getBlob()],
  23638. this.courseDetail.title + "录屏.mp4",
  23639. {
  23640. type: "video/mp4"
  23641. }
  23642. );
  23643. let downloadUrl = URL.createObjectURL(videoFile);
  23644. if (this.$refs.classRoomHelperRef) {
  23645. this.$refs.classRoomHelperRef.checkUploadFile(videoFile);
  23646. }
  23647. document.body.appendChild(a);
  23648. a.style.display = "none";
  23649. a.href = url;
  23650. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  23651. a.click();
  23652. this.recorder.screen.stop();
  23653. this.recorder.destroy();
  23654. this.recorder = null;
  23655. this.videoStart = false;
  23656. // callback(false);
  23657. });
  23658. },
  23659. //初始化
  23660. captureScreen(callback, type) {
  23661. if (navigator.getDisplayMedia) {
  23662. //录制结束,文件下载
  23663. navigator
  23664. .getDisplayMedia({
  23665. video: true
  23666. })
  23667. .then(screenStream => {
  23668. if (type) {
  23669. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  23670. screenStream.addTrack(mic.getTracks()[0]);
  23671. callback(screenStream);
  23672. });
  23673. } else {
  23674. callback(screenStream);
  23675. }
  23676. })
  23677. .catch(function(error) {
  23678. console.log("error", error);
  23679. });
  23680. } else if (navigator.mediaDevices.getDisplayMedia) {
  23681. navigator.mediaDevices
  23682. .getDisplayMedia({
  23683. video: true
  23684. })
  23685. .then(screenStream => {
  23686. if (type) {
  23687. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  23688. screenStream.addTrack(mic.getTracks()[0]);
  23689. callback(screenStream);
  23690. });
  23691. } else {
  23692. callback(screenStream);
  23693. }
  23694. })
  23695. .catch(function(error) {
  23696. console.log("error", error);
  23697. });
  23698. } else {
  23699. var error = "getDisplayMedia API are not supported in this browser.";
  23700. console.log("error", error);
  23701. alert(error);
  23702. }
  23703. },
  23704. //流监听
  23705. addStreamStopListener(stream, callback) {
  23706. stream.addEventListener(
  23707. "ended",
  23708. function() {
  23709. callback();
  23710. callback = function() {};
  23711. },
  23712. false
  23713. );
  23714. stream.addEventListener(
  23715. "inactive",
  23716. function() {
  23717. callback();
  23718. callback = function() {};
  23719. },
  23720. false
  23721. );
  23722. stream.getTracks().forEach(function(track) {
  23723. track.addEventListener(
  23724. "ended",
  23725. function() {
  23726. callback();
  23727. callback = function() {};
  23728. },
  23729. false
  23730. );
  23731. track.addEventListener(
  23732. "inactive",
  23733. function() {
  23734. callback();
  23735. callback = function() {};
  23736. },
  23737. false
  23738. );
  23739. });
  23740. },
  23741. updateGroup() {
  23742. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23743. this.dialogVisibleGroup2 = true;
  23744. },
  23745. numberPan() {
  23746. if (
  23747. /[^\d]/.test(this.groupJson.number) ||
  23748. this.groupJson.number < 2 ||
  23749. this.groupJson.number > 10
  23750. ) {
  23751. this.$message.error("请输入2-10的数字");
  23752. this.groupJson.number = "";
  23753. }
  23754. },
  23755. updateGroupJson() {
  23756. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  23757. if (
  23758. this.groupStudentUid[this.toolindex][i].length >
  23759. this.groupJson2.number
  23760. ) {
  23761. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  23762. return;
  23763. }
  23764. }
  23765. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  23766. this.islock = this.groupJson.islock == 1 ? true : false;
  23767. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23768. this.taskCount
  23769. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  23770. let params = [
  23771. {
  23772. cid: this.id,
  23773. chapters: JSON.stringify(this.chapInfoList),
  23774. uid: this.userid,
  23775. unitIndex: this.courseType
  23776. }
  23777. ];
  23778. this.ajax
  23779. .post(this.$store.state.api + "updateWorkNew4", params)
  23780. .then(res => {
  23781. this.$message.success("设置成功");
  23782. this.getCourseDetail(2);
  23783. this.dialogVisibleGroup2 = false;
  23784. this.groupJson2 = {};
  23785. this.$forceUpdate();
  23786. })
  23787. .catch(err => {
  23788. this.$message.error("网络不佳");
  23789. console.error(err);
  23790. });
  23791. },
  23792. lockChair() {
  23793. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23794. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  23795. this.updateGroupJson();
  23796. },
  23797. selectGroup(index) {
  23798. this.getCourseDetail(2, index);
  23799. },
  23800. joinGroup(index) {
  23801. if (this.groupJson.islock == 2) {
  23802. this.$message.error("位置已被锁定,无法加入");
  23803. return;
  23804. }
  23805. if (
  23806. this.groupStudent[this.toolindex][index].length >
  23807. this.groupJson.number ||
  23808. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  23809. ) {
  23810. this.$message.error("位置已满,无法加入");
  23811. return;
  23812. }
  23813. let params = [
  23814. {
  23815. cid: this.id,
  23816. stage: this.courseType,
  23817. task: this.taskCount,
  23818. tool: this.toolindex,
  23819. g: index,
  23820. uid: this.userid
  23821. }
  23822. ];
  23823. this.ajax
  23824. .post(this.$store.state.api + "joinGroup", params)
  23825. .then(res => {
  23826. this.$message.success("加入成功");
  23827. this.getCourseDetail(2);
  23828. })
  23829. .catch(err => {
  23830. this.$message.error("网络不佳");
  23831. console.error(err);
  23832. });
  23833. },
  23834. exitGroup(id) {
  23835. if (this.groupJson.islock == 2) {
  23836. this.$message.error("位置已被锁定,无法退出");
  23837. return;
  23838. }
  23839. let params = [
  23840. {
  23841. gid: id
  23842. }
  23843. ];
  23844. this.ajax
  23845. .post(this.$store.state.api + "exitGroup", params)
  23846. .then(res => {
  23847. this.$message.success("退出成功");
  23848. this.getCourseDetail(2);
  23849. })
  23850. .catch(err => {
  23851. this.$message.error("网络不佳");
  23852. console.error(err);
  23853. });
  23854. },
  23855. groupUpload(index, task, gindex) {
  23856. this.taskCount = task;
  23857. this.toolindex = index;
  23858. this.groupIndex = gindex;
  23859. this.dialogVisibleGroupWork = true;
  23860. },
  23861. updateGroupChair(user) {
  23862. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  23863. el.label = index;
  23864. return index != user.group;
  23865. });
  23866. this.updateGroupUser = user;
  23867. this.dialogVisibleUpdateGroup = true;
  23868. },
  23869. updateChair() {
  23870. if (
  23871. this.groupStudent[this.toolindex][this.checkChair].length >
  23872. this.groupJson.number ||
  23873. this.groupStudent[this.toolindex][this.checkChair].length ==
  23874. this.groupJson.number
  23875. ) {
  23876. this.$message.error("位置已满,无法加入");
  23877. return;
  23878. }
  23879. let params = [
  23880. {
  23881. cid: this.id,
  23882. stage: this.courseType,
  23883. task: this.taskCount,
  23884. tool: this.toolindex,
  23885. g: this.checkChair,
  23886. uid: this.updateGroupUser.userid
  23887. }
  23888. ];
  23889. this.ajax
  23890. .post(this.$store.state.api + "joinGroup", params)
  23891. .then(res => {
  23892. this.$message.success("修改成功");
  23893. this.updateGroupUser = {};
  23894. this.checkChair = "";
  23895. this.updateGroupArray = {};
  23896. this.dialogVisibleUpdateGroup = false;
  23897. this.getCourseDetail(2);
  23898. })
  23899. .catch(err => {
  23900. this.$message.error("网络不佳");
  23901. console.error(err);
  23902. });
  23903. },
  23904. deleteGroupChair(gindex) {
  23905. this.checkDeleteGroup = [];
  23906. this.deleteGroupUser = JSON.parse(
  23907. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  23908. );
  23909. this.deleteGroupArray = this.groupJson.group[gindex];
  23910. this.groupIndex = gindex;
  23911. this.dialogVisibleDeleteGroup = true;
  23912. },
  23913. async deleteChair() {
  23914. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  23915. const gid = this.groupStudent[this.toolindex][this.groupIndex][
  23916. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  23917. this.checkDeleteGroup[i]
  23918. )
  23919. ];
  23920. let params = [
  23921. {
  23922. gid: gid.id
  23923. }
  23924. ];
  23925. var a = await this.deleteChairA(params);
  23926. if (i == this.checkDeleteGroup.length - 1) {
  23927. this.$message.success("退出成功");
  23928. this.dialogVisibleDeleteGroup = false;
  23929. this.deleteGroupUser = [];
  23930. this.deleteGroupArray = {};
  23931. this.groupIndex = "";
  23932. this.checkDeleteGroup = [];
  23933. this.getCourseDetail(2);
  23934. }
  23935. }
  23936. },
  23937. deleteChairA(params) {
  23938. return new Promise((resolve, reject) => {
  23939. this.ajax
  23940. .post(this.$store.state.api + "exitGroup", params)
  23941. .then(res => {
  23942. resolve(1);
  23943. })
  23944. .catch(err => {
  23945. this.$message.error("网络不佳");
  23946. console.error(err);
  23947. });
  23948. });
  23949. },
  23950. contract(i) {
  23951. if (this.isCloseList[i].isClose == 0) {
  23952. this.isCloseList[i].isClose = 1;
  23953. } else {
  23954. this.isCloseList[i].isClose = 0;
  23955. }
  23956. this.$forceUpdate();
  23957. },
  23958. openWordCloud(toolindex) {
  23959. this.wordCloudData = '';
  23960. let array = [];
  23961. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  23962. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  23963. array.push({ name: works });
  23964. }
  23965. if (this.isGroup) {
  23966. for (var i = 0; i < this.courseGroup.group.length; i++) {
  23967. let works = this.courseGroup.group[i].works[toolindex];
  23968. for (var j = 0; j < works.length; j++) {
  23969. let answer = JSON.parse(works[j].works)[0].answer;
  23970. array.push({ name: answer });
  23971. }
  23972. }
  23973. }
  23974. let _result = ''
  23975. array.forEach(e=>{
  23976. _result +=e.name+','
  23977. })
  23978. this.wordCloudData = _result;
  23979. this.dialogVisibleWordCloud = true;
  23980. this.wordCloudKey += 1;
  23981. },
  23982. openTips(i) {
  23983. this.tipsIndex = i;
  23984. this.downDialogVisible = true;
  23985. },
  23986. uploadWorks() {
  23987. this.$confirm("确定导出作业吗?", "提示", {
  23988. confirmButtonText: "确定",
  23989. cancelButtonText: "取消",
  23990. type: "warning"
  23991. })
  23992. .then(() => {
  23993. const loading = this.$loading.service({
  23994. background: "rgba(255, 255, 255, 0.7)",
  23995. target: document.body,
  23996. text: "文件加载中..."
  23997. });
  23998. const _worksStudent = this.worksStudent;
  23999. let url = [];
  24000. var counts = {};
  24001. for (var l = 0; l < _worksStudent[i].length; l++) {
  24002. var item = _worksStudent[i][l];
  24003. var name = item.sName;
  24004. if (!counts.hasOwnProperty(name)) {
  24005. counts[name] = 0;
  24006. } else {
  24007. counts[name]++;
  24008. }
  24009. if (counts[name] > 0) {
  24010. item.sName += " (" + counts[name] + ")";
  24011. }
  24012. }
  24013. for (var l = 0; l < _worksStudent[i].length; l++) {
  24014. var item = _worksStudent[i][l];
  24015. if (
  24016. item.works.indexOf(
  24017. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24018. ) !== -1 &&
  24019. item.works.indexOf("img") === -1
  24020. ) {
  24021. url.push({ name: item.sName, url: item.works });
  24022. }
  24023. }
  24024. // var toolList = [
  24025. // { name: "电子白板", tool: 1 },
  24026. // { name: "思维导图", tool: 3 },
  24027. // { name: "协同文档", tool: 6 },
  24028. // { name: "思维网格", tool: 7 },
  24029. // { name: "素材库", tool: 8 },
  24030. // { name: "学习资料", tool: 17 },
  24031. // { name: "便签", tool: 2 },
  24032. // { name: "问卷调查", tool: 4 },
  24033. // { name: "选择题", tool: 45 },
  24034. // { name: "倒计时", tool: 10 },
  24035. // { name: "问答", tool: 15 },
  24036. // { name: "课程设计", tool: 26 },
  24037. // { name: "训练服务器", tool: 18 },
  24038. // { name: "作业提交", tool: 16 },
  24039. // { name: "批量上传", tool: 50 },
  24040. // { name: "AIoT Blockly", tool: 21 },
  24041. // { name: "AI Python", tool: 23 },
  24042. // { name: "AI Blockly", tool: 24 },
  24043. // { name: "目标管理", tool: 25 },
  24044. // { name: "数学画板", tool: 31 },
  24045. // { name: "翻译", tool: 28 },
  24046. // { name: "魔盒识字", tool: 37 },
  24047. // { name: "数学画板", tool: 31 },
  24048. // { name: "24点", tool: 38 },
  24049. // { name: "GeoGebra", tool: 39 },
  24050. // { name: "源码编辑", tool: 32 },
  24051. // { name: "个人评价", tool: 40 },
  24052. // { name: "选择匹配", tool: 41 },
  24053. // { name: "汉字宫", tool: 44 },
  24054. // { name: "排序", tool: 47 },
  24055. // { name: "表格", tool: 48 },
  24056. // { name: "文档", tool: 52 },
  24057. // { name: "学生分组", tool: 49 },
  24058. // { name: "CocoPi", tool: 57 },
  24059. // { name: "模拟驾驶", tool: 58 },
  24060. // { name: "路径搜索", tool: 59 },
  24061. // { name: "深度学习", tool: 60 },
  24062. // { name: "全历史", tool: 61 },
  24063. // { name: "交互视频", tool: 62 },
  24064. // { name: "海龟编程", tool: 63 },
  24065. // { name: "挑人", tool: 65 },
  24066. // { name: "公式编辑", tool: 66 },
  24067. // { name: "分子结构", tool: 67 },
  24068. // { name: "时间轴", tool: 68 },
  24069. // ];
  24070. // var toolName = "";
  24071. // for(var w = 0;w<toolList.length;w++){
  24072. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24073. // toolName = toolList[w].name;
  24074. // }
  24075. // }
  24076. console.log(url);
  24077. this.downLoadAll(url, loading);
  24078. })
  24079. .catch(() => {});
  24080. },
  24081. downLoadAll(url, loading) {
  24082. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24083. const zip = new JSZip();
  24084. const cache = {};
  24085. const promises = [];
  24086. data.forEach(item => {
  24087. const promise = getFile(item.url).then(data => {
  24088. if (data.data != 1) {
  24089. // 下载文件, 并存成ArrayBuffer对象
  24090. const file_name =
  24091. item.name +
  24092. "." +
  24093. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24094. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24095. cache[file_name] = data.data;
  24096. }
  24097. });
  24098. promises.push(promise);
  24099. });
  24100. Promise.all(promises).then(() => {
  24101. zip.generateAsync({ type: "blob" }).then(content => {
  24102. // 生成二进制流
  24103. FileSaver.saveAs(
  24104. content,
  24105. this.courseDetail.title + "-" + "作业提交工具.zip"
  24106. ); // 利用file-saver保存文件 自定义文件名
  24107. setTimeout(() => {
  24108. loading.close();
  24109. }, 2000);
  24110. });
  24111. });
  24112. },
  24113. pickStudent(stu) {
  24114. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24115. return;
  24116. }
  24117. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24118. confirmButtonText: "确定",
  24119. cancelButtonText: "取消",
  24120. type: "warning"
  24121. })
  24122. .then(() => {
  24123. let params = [
  24124. {
  24125. uid: stu.userid,
  24126. cid: this.id,
  24127. stage: this.courseType,
  24128. task: this.taskCount,
  24129. tool: this.toolindex
  24130. }
  24131. ];
  24132. this.ajax
  24133. .post(this.$store.state.api + "updateCoursePick", params)
  24134. .then(res => {
  24135. this.$message.success("操作成功");
  24136. this.getPick();
  24137. })
  24138. .catch(err => {
  24139. this.$message.error("网络不佳");
  24140. console.error(err);
  24141. });
  24142. })
  24143. .catch(() => {});
  24144. },
  24145. selectUser() {
  24146. let params = {
  24147. userid: this.userid
  24148. };
  24149. this.ajax
  24150. .get(this.$store.state.api + "selectUser", params)
  24151. .then(res => {
  24152. this.userMes = res.data[0];
  24153. })
  24154. .catch(err => {
  24155. console.error(err);
  24156. });
  24157. },
  24158. setEngText(i) {
  24159. this.newEngIndex = i;
  24160. this.$forceUpdate();
  24161. },
  24162. addCorrect() {
  24163. this.$confirm("你确定提交批改嘛?", "提示", {
  24164. confirmButtonText: "确定",
  24165. showCancelButton: false,
  24166. closeOnClickModal: false,
  24167. type: "warning"
  24168. })
  24169. .then(() => {
  24170. let params = {
  24171. cid: this.id,
  24172. s: parseInt(this.courseType),
  24173. t: this.taskCount,
  24174. tool: this.toolindex,
  24175. wid: this.engWid,
  24176. c: this.userid,
  24177. w:
  24178. this.userMes[0].type == 2
  24179. ? JSON.parse(this.newEnglishList)
  24180. : this.newEngIndex == -1 &&
  24181. this.isNoUserid == true &&
  24182. this.newEnglishList1.length
  24183. ? JSON.stringify(this.oldEnglishJson1)
  24184. : this.newEngIndex == -1
  24185. ? JSON.stringify(this.newEnglishList)
  24186. : this.newEngIndex > -1 && this.newEnglishList1.length > 0
  24187. ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork)
  24188. : ""
  24189. };
  24190. this.ajax
  24191. .get(this.$store.state.api + "addEngC", params)
  24192. .then(res => {
  24193. this.$message.success("提交成功");
  24194. this.engUpdateDialogVisible = false;
  24195. })
  24196. .catch(err => {
  24197. console.error(err);
  24198. });
  24199. })
  24200. .catch(() => {});
  24201. },
  24202. selectEngC(id, z) {
  24203. let params = {
  24204. workid: id
  24205. };
  24206. this.ajax
  24207. .get(this.$store.state.api + "selectEngC", params)
  24208. .then(res => {
  24209. if (res.data[0].length == 0) {
  24210. this.newEnglishList.engTitle = z.engTitle;
  24211. this.newEnglishList.engText = z.engText;
  24212. } else {
  24213. var a = res.data[0];
  24214. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24215. if (this.userMes[0].type == 2) {
  24216. var snum = 0;
  24217. for (var i = 0; i < a.length; i++) {
  24218. if (this.userMes[0].userid == a[i].correct) {
  24219. this.newEnglishList = JSON.parse(a[i].cWork);
  24220. snum = 1;
  24221. }
  24222. }
  24223. if (snum == 0) {
  24224. this.newEnglishList = { engTitle: "", engText: "" };
  24225. this.newEnglishList.engTitle = z.engTitle;
  24226. this.newEnglishList.engText = z.engText;
  24227. }
  24228. } else if (this.userMes[0].type == 1) {
  24229. var num = 0;
  24230. for (var w = 0; w < a.length; w++) {
  24231. if (this.userMes[0].userid == a[w].correct) {
  24232. num = 1;
  24233. }
  24234. }
  24235. if (num == 0) {
  24236. this.isNoUserid = true;
  24237. var c = JSON.parse(JSON.stringify(z));
  24238. this.oldEnglishJson1 = c;
  24239. } else {
  24240. this.isNoUserid = false;
  24241. }
  24242. var b = a.sort((item, index) => {
  24243. console.log(item);
  24244. if (item.correct === this.userMes[0].userid) {
  24245. return -1; // 将a移到前面
  24246. } else if (index.correct === this.userMes[0].userid) {
  24247. return 1; // 将b移到前面
  24248. } else {
  24249. return 0; // 保持默认顺序
  24250. }
  24251. });
  24252. for (var p = 0; p < b.length; p++) {
  24253. for (var y = 0; y < ppp.length; y++) {
  24254. if (b[p].id == ppp[y].id) {
  24255. b[p].cWork = JSON.parse(ppp[y].cWork);
  24256. break;
  24257. }
  24258. }
  24259. }
  24260. this.newEnglishList1 = b;
  24261. }
  24262. }
  24263. this.greyType = false;
  24264. setTimeout(() => {
  24265. this.topHeight = document.querySelectorAll(
  24266. ".engUpTop"
  24267. )[0].offsetHeight;
  24268. if (this.newEnglishList1.length > 0) {
  24269. if (this.isNoUserid == true) {
  24270. this.engListLength = this.newEnglishList1.length + 1;
  24271. this.newEngIndex = -1;
  24272. } else {
  24273. this.engListLength = this.newEnglishList1.length;
  24274. this.newEngIndex = 0;
  24275. }
  24276. }
  24277. if (this.userMes[0].type == 2) {
  24278. this.correctWord = Diff.diffWordsWithSpace(
  24279. this.oldEnglishJson.engText,
  24280. this.newEnglishList.engText
  24281. );
  24282. } else if (
  24283. this.newEngIndex == -1 &&
  24284. this.isNoUserid == true &&
  24285. this.newEnglishList1.length
  24286. ) {
  24287. this.correctWord = Diff.diffWordsWithSpace(
  24288. this.oldEnglishJson.engText,
  24289. this.oldEnglishJson1.engText
  24290. );
  24291. } else if (this.newEngIndex == -1) {
  24292. this.correctWord = Diff.diffWordsWithSpace(
  24293. this.oldEnglishJson.engText,
  24294. this.newEnglishList.engText
  24295. );
  24296. } else if (
  24297. this.newEngIndex > -1 &&
  24298. this.newEnglishList1.length > 0
  24299. ) {
  24300. this.correctWord = Diff.diffWordsWithSpace(
  24301. this.oldEnglishJson.engText,
  24302. this.newEnglishList1[this.newEngIndex].cWork.engText
  24303. );
  24304. }
  24305. }, 500);
  24306. this.engUpdateDialogVisible = true;
  24307. this.$forceUpdate();
  24308. })
  24309. .catch(err => {
  24310. console.error(err);
  24311. });
  24312. },
  24313. getPick() {
  24314. let params = {
  24315. cid: this.id
  24316. };
  24317. this.ajax
  24318. .get(this.$store.state.api + "getPick", params)
  24319. .then(res => {
  24320. let array = [];
  24321. for (var i = 0; i < res.data[0].length; i++) {
  24322. array.push(res.data[0][i].userid);
  24323. }
  24324. this.isPickStudent = array;
  24325. if (array.indexOf(this.userid) !== -1) {
  24326. this.$confirm("你被老师选到啦!", "提示", {
  24327. confirmButtonText: "确定",
  24328. showCancelButton: false,
  24329. closeOnClickModal: false,
  24330. type: "warning"
  24331. })
  24332. .then(() => {
  24333. let pa = [
  24334. {
  24335. uid: this.userid,
  24336. cid: this.id
  24337. }
  24338. ];
  24339. this.ajax
  24340. .post(this.$store.state.api + "deletePick", pa)
  24341. .then(res => {
  24342. this.getPick();
  24343. })
  24344. .catch(err => {
  24345. this.$message.error("网络不佳");
  24346. console.error(err);
  24347. });
  24348. })
  24349. .catch(() => {});
  24350. }
  24351. })
  24352. .catch(err => {
  24353. this.$message.error("网络不佳");
  24354. console.error(err);
  24355. });
  24356. },
  24357. foldEva() {
  24358. if (
  24359. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24360. this.taskCount
  24361. ].isEvaFold2
  24362. ) {
  24363. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24364. this.taskCount
  24365. ].isEvaFold2 = false;
  24366. } else {
  24367. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24368. this.taskCount
  24369. ].isEvaFold2 = true;
  24370. setTimeout(() => {
  24371. this.checkEva();
  24372. setTimeout(() => {
  24373. this.checkEva();
  24374. }, 500);
  24375. }, 0);
  24376. }
  24377. this.$forceUpdate();
  24378. },
  24379. panToolHeight(tool) {
  24380. var _tool = document.querySelectorAll("#" + tool)[0];
  24381. var _toolA = _tool ? _tool.offsetHeight : 0;
  24382. var _toolC = 0;
  24383. var _toolC =
  24384. _tool && _tool.children && _tool.children[0]
  24385. ? _tool.children[0].offsetHeight + 50
  24386. : 0;
  24387. let boolean2 = _toolA > _toolC ? true : false;
  24388. this.isCloseList[tool.split("-")[1]].isCloseBoolean = boolean2;
  24389. this.$forceUpdate();
  24390. },
  24391. async checkLink(url) {
  24392. // console.log(url)
  24393. let _url = url;
  24394. try {
  24395. const response = await fetch(url);
  24396. if (!response.ok) {
  24397. _url = await this.checkLink(
  24398. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24399. encodeURIComponent(
  24400. _url.split(
  24401. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/"
  24402. )[1]
  24403. )
  24404. );
  24405. }
  24406. // console.log(response.ok)
  24407. } catch (error) {
  24408. console.error("Error checking link:", error);
  24409. // console.log(false)
  24410. _url = await this.checkLink(
  24411. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24412. encodeURIComponent(
  24413. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24414. )
  24415. );
  24416. }
  24417. // console.log(_url)
  24418. return _url;
  24419. },
  24420. setClassRoomHelperWidth(width) {
  24421. this.classRoomHelperWidth = width;
  24422. },
  24423. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  24424. this.$refs.choseWorksDetailDialogRef.open({
  24425. toolType:tooc,
  24426. tType: this.tType,
  24427. toolIndex: toolIndex
  24428. });
  24429. this.changeSplitScreenBehavior({
  24430. code: 1,
  24431. form: {
  24432. toolType:tooc,
  24433. toolIndex: toolIndex,
  24434. courseType: this.courseType,
  24435. taskCount: this.taskCount,
  24436. type: 0
  24437. }
  24438. });
  24439. },
  24440. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24441. this.$refs.statisticalAnalysisRef.open({
  24442. worksStudent: this.worksStudent[toolIndex],
  24443. tType: this.tType,
  24444. toolIndex: toolIndex
  24445. });
  24446. this.changeSplitScreenBehavior({
  24447. code: 2,
  24448. form: {
  24449. toolType:4,
  24450. courseType: this.courseType,
  24451. taskCount: this.taskCount,
  24452. toolIndex: toolIndex,
  24453. type: 0
  24454. }
  24455. });
  24456. },
  24457. statisticalAnalysisRefresh(toolIndex) {
  24458. this.$refs.statisticalAnalysisRef.refreshData({
  24459. worksStudent: this.worksStudent[toolIndex],
  24460. tType: this.tType,
  24461. toolIndex: toolIndex
  24462. });
  24463. },
  24464. async splitScreenBehavior(type = 0) {
  24465. // return;
  24466. if (this.splitScreenData.loading)
  24467. return this.$message.info("操作过快,请稍等");
  24468. if (type == 0) {
  24469. //关闭分屏
  24470. this.splitScreenData.isOpen = false;
  24471. // this.splitScreenData.userId = "";
  24472. // this.splitScreenData.uid = "";
  24473. this.splitScreenData.behavior = null;
  24474. await this.updateSplitScreenData(1);
  24475. this.$message.success("已关闭分屏模式");
  24476. this.studentFreePreview(false);
  24477. this.OpenJobPreview(false);
  24478. // this.followingMode(false);
  24479. } else if (type == 1) {
  24480. //开启分屏
  24481. this.splitScreenData.isOpen = true;
  24482. this.splitScreenData.userId = this.userid;
  24483. this.splitScreenData.uid = this.splitScreenData.myUid;
  24484. this.splitScreenData.behavior = null;
  24485. let status = await this.updateSplitScreenData(0);
  24486. if (status == 1) {
  24487. this.$message.success("已开启分屏");
  24488. this.studentFreePreview(true);
  24489. this.OpenJobPreview(true);
  24490. this.changeSplitScreenBehavior({form:{}})
  24491. // this.followingMode(true);
  24492. } else {
  24493. this.splitScreenData.isOpen = false;
  24494. this.splitScreenData.userId = "";
  24495. this.splitScreenData.uid = "";
  24496. this.splitScreenData.behavior = null;
  24497. this.$message.success("分屏开启失败");
  24498. }
  24499. }
  24500. },
  24501. enterFullScreen() {
  24502. let element = document.documentElement;
  24503. if (element.requestFullscreen) {
  24504. element.requestFullscreen();
  24505. } else if (element.mozRequestFullScreen) { /* Firefox */
  24506. element.mozRequestFullScreen();
  24507. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  24508. element.webkitRequestFullscreen();
  24509. } else if (element.msRequestFullscreen) { /* IE/Edge */
  24510. element.msRequestFullscreen();
  24511. }
  24512. },
  24513. exitFullScreen() {
  24514. if (document.exitFullscreen) {
  24515. document.exitFullscreen();
  24516. } else if (document.mozCancelFullScreen) { /* Firefox */
  24517. document.mozCancelFullScreen();
  24518. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  24519. document.webkitExitFullscreen();
  24520. } else if (document.msExitFullscreen) { /* IE/Edge */
  24521. document.msExitFullscreen();
  24522. }
  24523. },
  24524. confirmOpen(){
  24525. this.splitScreenData.isOpen = true;
  24526. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  24527. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  24528. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  24529. this.confirmOpenDig = false
  24530. if (!document.fullscreenElement) {
  24531. this.enterFullScreen();
  24532. }
  24533. if (this.timer2) {
  24534. clearInterval(this.timer2);
  24535. this.timer2 = null;
  24536. console.log('清除定时器');
  24537. }
  24538. this.timer2 = setInterval(()=> {
  24539. this.getSplitScreenData();//获取分屏数据
  24540. }, 1000);
  24541. this.$message.success("分屏模式已开启");
  24542. },
  24543. getSplitScreenData() {
  24544. // return;
  24545. // if (this.tType != 1) return;
  24546. let params = {
  24547. cid: this.id
  24548. };
  24549. this.ajax
  24550. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  24551. .then(async res => {
  24552. let data = res.data[0][0]["splitScreenData"];
  24553. console.log("获取了分屏数:", data);
  24554. if (data) {
  24555. data = JSON.parse(data);
  24556. if (
  24557. !this.splitScreenData.isOpen &&
  24558. data.isOpen &&
  24559. this.splitScreenData.myUid == data.uid
  24560. ) {
  24561. this.splitScreenData.isOpen = false;
  24562. this.splitScreenData.userId = "";
  24563. this.splitScreenData.uid = "";
  24564. this.splitScreenData.behavior = null;
  24565. await this.updateSplitScreenData(1);
  24566. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  24567. this.confirmOpenDig = true
  24568. this.confirmOpenDigData = data
  24569. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  24570. this.splitScreenData.isOpen = false;
  24571. this.splitScreenData.userId = "";
  24572. this.splitScreenData.uid = "";
  24573. this.splitScreenData.behavior = null;
  24574. this.$message.error("已结束分屏模式");
  24575. } else if (this.splitScreenData.isOpen && data.isOpen) {
  24576. this.splitScreenData.isOpen = true;
  24577. this.splitScreenData.uid = data.uid;
  24578. this.splitScreenData.userId = data.userId;
  24579. this.splitScreenData.behavior = data.behavior;
  24580. }
  24581. this.doSplitScreenBehavior();
  24582. } else {
  24583. if (this.splitScreenData.isOpen) {
  24584. this.splitScreenData.isOpen = false;
  24585. this.splitScreenData.userId = "";
  24586. this.splitScreenData.uid = "";
  24587. this.splitScreenData.behavior = null;
  24588. this.$message.error("已结束分屏模式");
  24589. if (this.timer2) {
  24590. clearInterval(this.timer2);
  24591. this.timer2 = null;
  24592. }
  24593. this.timer2 = setInterval(()=> {
  24594. this.getSplitScreenData();//获取分屏数据
  24595. }, 5000);
  24596. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  24597. confirmButtonText: '确定', //确认按钮的文字
  24598. showCancelButton: false, //是否显示取消按钮
  24599. showClose: false, //是否显示关闭按钮
  24600. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  24601. type: "warning",
  24602. })
  24603. .then(() => {
  24604. if (document.fullscreenElement) {
  24605. this.exitFullScreen();
  24606. }
  24607. })
  24608. .catch(() => {});
  24609. }
  24610. }
  24611. })
  24612. .catch(e => {
  24613. console.log("获取分屏数出错:", e);
  24614. });
  24615. },
  24616. doSplitScreenBehavior() {
  24617. if (
  24618. this.splitScreenData.isOpen &&
  24619. this.splitScreenData.uid != this.splitScreenData.myUid
  24620. ) {
  24621. let behavior = this.splitScreenData.behavior;
  24622. if (behavior) {
  24623. if (behavior.code === 99) {
  24624. //初始化
  24625. this.fullDialogVisible = false;
  24626. if(this.$refs.choseWorksDetailDialogRef.show){
  24627. this.$refs.choseWorksDetailDialogRef.close();
  24628. }
  24629. if(this.$refs.statisticalAnalysisRef.show){
  24630. this.$refs.statisticalAnalysisRef.close();
  24631. }
  24632. }
  24633. if (behavior.code === 0) {
  24634. //开启内容列表弹窗
  24635. this.checkFileFull1(behavior.form.t, behavior.form.f);
  24636. }else{
  24637. this.fullDialogVisible = false;
  24638. }
  24639. if (behavior.code === 1) {
  24640. //关于选择题的作业详细的操作
  24641. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  24642. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  24643. this.courseType = behavior.form.courseType;
  24644. this.taskCount = behavior.form.taskCount;
  24645. }
  24646. this.$nextTick(() => {
  24647. if (this.$refs.choseWorksDetailDialogRef.show) {
  24648. //已经打开了
  24649. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  24650. } else {
  24651. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  24652. }
  24653. });
  24654. }else{
  24655. this.$refs.choseWorksDetailDialogRef.close()
  24656. }
  24657. if(behavior.code === 2){
  24658. if(this.$refs.statisticalAnalysisRef.show){
  24659. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  24660. }else{
  24661. this.$refs.statisticalAnalysisRef.open({
  24662. worksStudent: this.worksStudent[behavior.form.toolIndex],
  24663. tType: this.tType,
  24664. toolIndex: behavior.form.toolIndex
  24665. });
  24666. }
  24667. }else{
  24668. this.$refs.statisticalAnalysisRef.close();
  24669. }
  24670. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  24671. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  24672. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  24673. if(this.courseType !=behavior.form.courseType){
  24674. this.courseType = behavior.form.courseType;
  24675. }
  24676. if(this.taskCount !=behavior.form.taskCount){
  24677. this.taskCount = behavior.form.taskCount;
  24678. }
  24679. var a = document.scrollingElement;
  24680. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  24681. if (target) {
  24682. target.scrollIntoView(true);
  24683. setTimeout(() => {
  24684. a.scrollTop = 0
  24685. }, 0);
  24686. }
  24687. // if(behavior.form.navId){
  24688. // this.navId = behavior.form.navId
  24689. // }
  24690. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  24691. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  24692. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  24693. this.getCourseDetail()
  24694. }
  24695. this.setContent2(false)
  24696. }
  24697. } else {
  24698. }
  24699. }
  24700. },
  24701. updateSplitScreenData(empty = 0) {
  24702. return new Promise(resolve => {
  24703. if(this.userid!==this.courseDetail.userid){
  24704. if(!this.courseDetail.userid){
  24705. return setTimeout(()=>{
  24706. this.updateSplitScreenData(empty)
  24707. },2000)
  24708. }
  24709. return;
  24710. };
  24711. if (
  24712. this.splitScreenData.uid == this.splitScreenData.myUid &&
  24713. this.splitScreenData.userId == this.userid
  24714. ) {
  24715. this.splitScreenData.loading = true;
  24716. let params = [
  24717. {
  24718. cid: this.id,
  24719. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  24720. }
  24721. ];
  24722. this.ajax
  24723. .post(
  24724. this.$store.state.api + "update_courseSplitScreenData",
  24725. params
  24726. )
  24727. .then(res => {
  24728. this.splitScreenData.loading = false;
  24729. if (res.data == 1) {
  24730. resolve(1);
  24731. console.log("修改分屏数据成功");
  24732. }
  24733. })
  24734. .catch(e => {
  24735. this.splitScreenData.loading = false;
  24736. console.log("修改分屏数据失败", e);
  24737. resoleve(0);
  24738. });
  24739. } else if (empty == 2 && this.tType == 1) {
  24740. let params = [
  24741. {
  24742. cid: this.id,
  24743. nData: ""
  24744. }
  24745. ];
  24746. return this.ajax
  24747. .post(
  24748. this.$store.state.api + "update_courseSplitScreenData",
  24749. params
  24750. )
  24751. .then(_ => resolve(1))
  24752. .catch(_ => resolve(0));
  24753. } else {
  24754. return resolve(0);
  24755. }
  24756. });
  24757. },
  24758. changeSplitScreenBehavior(newValue) {
  24759. if (
  24760. this.splitScreenData.isOpen &&
  24761. this.splitScreenData.uid == this.splitScreenData.myUid
  24762. ) {
  24763. let _behavior = null;
  24764. if(!newValue){
  24765. _behavior = {}
  24766. }else{
  24767. _behavior = newValue
  24768. }
  24769. if(_behavior.form){
  24770. _behavior.form.taskCount = this.taskCount;
  24771. _behavior.form.courseType = this.courseType
  24772. }else{
  24773. _behavior.form = {
  24774. taskCount:this.taskCount,
  24775. courseType:this.courseType
  24776. }
  24777. }
  24778. this.splitScreenData.behavior = _behavior;
  24779. this.updateSplitScreenData(0);
  24780. }
  24781. },
  24782. studentFreePreview(flag) {
  24783. this.IsLookOpen = flag;
  24784. this.followingMode(flag)
  24785. this.updateLookOpen();
  24786. },
  24787. OpenJobPreview(flag) {
  24788. this.sIsOpen = flag;
  24789. this.updateSLook();
  24790. },
  24791. followingMode(flag) {
  24792. this.IsFollow = flag;
  24793. this.updateFollow();
  24794. }
  24795. },
  24796. directives: {
  24797. // 使用局部注册指令的方式
  24798. resize: {
  24799. // 指令的名称
  24800. bind(el, binding) {
  24801. // el为绑定的元素,binding为绑定给指令的对象
  24802. let width = "",
  24803. height = "";
  24804. function isReize() {
  24805. const style = document.defaultView.getComputedStyle(el);
  24806. if (width !== style.width || height !== style.height) {
  24807. binding.value(); // 关键
  24808. }
  24809. width = style.width;
  24810. height = style.height;
  24811. }
  24812. el.__vueSetInterval__ = setInterval(isReize, 300);
  24813. },
  24814. unbind(el) {
  24815. clearInterval(el.__vueSetInterval__);
  24816. }
  24817. },
  24818. autoHeight: {
  24819. update(el, binding) {
  24820. const { value } = binding;
  24821. if (value && typeof value === "number") {
  24822. el.style.height = `${value}px`;
  24823. } else {
  24824. el.style.height = "auto";
  24825. }
  24826. },
  24827. componentUpdated(el) {
  24828. el.style.height = `${el.scrollHeight + 5}px`;
  24829. }
  24830. }
  24831. },
  24832. beforeDestroy() {
  24833. window.onresize = null;
  24834. clearInterval(this.timer);
  24835. this.timer = null;
  24836. clearInterval(this.timer2);
  24837. this.timer2 = null;
  24838. clearInterval(this.opertimer);
  24839. this.opertimer = null;
  24840. this.updateSplitScreenData(1);
  24841. },
  24842. computed: {
  24843. getHeight() {
  24844. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24845. },
  24846. contentConvent() {
  24847. return function(c) {
  24848. return c
  24849. ? c
  24850. .replaceAll(/\r\n/g, "<br/>")
  24851. .replaceAll(/\n/g, "<br/>")
  24852. .replaceAll(/\s/g, " &nbsp")
  24853. : "";
  24854. };
  24855. },
  24856. commentRight() {
  24857. if (
  24858. !this.orgArray.includes(this.org) &&
  24859. !this.oidArray.includes(this.oid)
  24860. ) {
  24861. return "35px";
  24862. }
  24863. return `calc(${this.classRoomHelperWidth} + 5px)`;
  24864. // if(this.$refs["classRoomHelperRef"].type==0){
  24865. // return "100px";
  24866. // }else if(this.$refs["classRoomHelperRef"].type==1){
  24867. // return "502px"
  24868. // }else{
  24869. // return "0px"
  24870. // }
  24871. },
  24872. checkUpload() {
  24873. return function() {
  24874. var studentK = [];
  24875. if (this.plworkFile.length > 0) {
  24876. for (var z = 0; z < this.plworkFile.length; z++) {
  24877. studentK.push(this.plworkFile[z].username);
  24878. }
  24879. studentK = studentK.join(",");
  24880. }
  24881. var a = this.uploadStudentJuri.filter(el => {
  24882. return studentK.indexOf(el.userid) == -1;
  24883. });
  24884. return a;
  24885. };
  24886. },
  24887. getSName() {
  24888. return function(name) {
  24889. var check = name;
  24890. this.uploadStudentJuri.forEach(el => {
  24891. if (el.userid == check) {
  24892. check = el.name ? el.name : el.username;
  24893. }
  24894. });
  24895. return check;
  24896. };
  24897. },
  24898. getImgList() {
  24899. return function(val) {
  24900. let srcList = []; // 定义一个数组用来接收后面的img地址
  24901. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function(
  24902. match,
  24903. capture
  24904. ) {
  24905. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  24906. srcList.push(capture);
  24907. });
  24908. return srcList;
  24909. };
  24910. },
  24911. retrnToolHeight() {
  24912. return function(tool) {
  24913. var _tool = document.querySelectorAll("#" + tool)[0];
  24914. return _tool
  24915. ? document.querySelectorAll("#" + tool)[0].children[0].offsetHeight +
  24916. 30 +
  24917. "px"
  24918. : 0;
  24919. };
  24920. },
  24921. Correct() {
  24922. return function(c) {
  24923. let w = "";
  24924. let a = this.correctWord;
  24925. for (var k = 0; k < a.length; k++) {
  24926. //diffWordsWithSpace
  24927. if (a.length > 1) {
  24928. if (a[k].added == true) {
  24929. w +=
  24930. '<span style="background-color: green;color:#fff">' +
  24931. a[k].value +
  24932. "</span>";
  24933. } else if (a[k].removed == true) {
  24934. w +=
  24935. '<span style="text-decoration: line-through;color:red">' +
  24936. a[k].value +
  24937. "</span>";
  24938. } else {
  24939. w += "<span>" + a[k].value + "</span>";
  24940. }
  24941. } else {
  24942. w = c;
  24943. }
  24944. //diffChars方法
  24945. // if(w == ""){
  24946. // if(a.length > 1){
  24947. // if(a[k].added == true){
  24948. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24949. // }else if(a[k].removed == true){
  24950. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24951. // }
  24952. // }else{
  24953. // w = c
  24954. // }
  24955. // }else{
  24956. // if(k == a.length - 1){
  24957. // if(a[k].added == true){
  24958. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24959. // }else if(a[k].removed == true){
  24960. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24961. // }
  24962. // }else{
  24963. // if(a[k].added == true){
  24964. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24965. // }else if(a[k].removed == true){
  24966. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24967. // }
  24968. // }
  24969. // }
  24970. }
  24971. c = w;
  24972. return c;
  24973. };
  24974. },
  24975. getScoreList() {
  24976. let params = {
  24977. cid: this.id
  24978. };
  24979. this.ajax
  24980. .get(this.$store.state.api + "selectTestCourseByCid", params)
  24981. .then(res => {
  24982. let result = res.data;
  24983. this.scoreList.datalist = result[0];
  24984. this.scoreList.isScoreList = result[1];
  24985. })
  24986. .catch(err => {
  24987. console.error(err);
  24988. });
  24989. }
  24990. },
  24991. mounted() {
  24992. this.updateSplitScreenData(2);
  24993. this.splitScreenData.myUid = uuidv4();
  24994. document.body.addEventListener("click", e => {
  24995. if (this.isUpdateToolDetail1) {
  24996. this.updateToolDetail(this.toolDetailIndex);
  24997. }
  24998. });
  24999. if (this.screenType == 2) {
  25000. window.parent.postMessage({ allScreen: 4 }, "*");
  25001. } else if (this.screenType == 3) {
  25002. window.parent.postMessage({ allScreen: 5 }, "*");
  25003. } else if (this.screenType == 1) {
  25004. window.parent.postMessage({ allScreen: 6 }, "*");
  25005. }
  25006. this.setOperationTime();
  25007. this.selectEva();
  25008. this.getCourseDetail();
  25009. this.selectCount();
  25010. this.getHomeWork();
  25011. this.selectUser();
  25012. this.getAIJ();
  25013. this.contentDialog = true;
  25014. this.setContent2(true);
  25015. if (this.tType == 4) {
  25016. this.pzDialog = true;
  25017. this.selectPz();
  25018. }
  25019. // 获取评分列表
  25020. this.getScoreList();
  25021. document.scrollingElement.scrollTop = 0;
  25022. window.addEventListener("resize", () => {
  25023. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25024. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25025. if (this.showType == 2 || this.showType == 3) {
  25026. document.getElementsByClassName("navBox")[0].style.height =
  25027. a - 40 + 0 + "px";
  25028. } else {
  25029. document.getElementsByClassName("navBox")[0].style.height =
  25030. a - 40 + "px";
  25031. }
  25032. });
  25033. let _this = this;
  25034. setTimeout(() => {
  25035. // _this.vedioTime = [];
  25036. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25037. // _this.vedioTime[i] = document.getElementsByClassName(
  25038. // "vjs-duration-display"
  25039. // )[i].textContent;
  25040. // }
  25041. }, 1000);
  25042. }
  25043. };
  25044. </script>
  25045. <style scoped>
  25046. @media screen and (max-width: 1280px) {
  25047. /* .courseIndex > div:first-child(2) {
  25048. width: 15% !important;
  25049. } */
  25050. /* .navText {
  25051. width: 120px !important;
  25052. } */
  25053. .evaCss {
  25054. flex-direction: column !important;
  25055. align-items: center !important;
  25056. }
  25057. .elist_input {
  25058. width: 90% !important;
  25059. }
  25060. .dialog_diy1 >>> .el-dialog {
  25061. width: 100% !important;
  25062. }
  25063. .rightWidthCss {
  25064. width: 100% !important;
  25065. }
  25066. .dialog_diy3 >>> .el-dialog {
  25067. width: 100% !important;
  25068. }
  25069. .addToolCss {
  25070. right: 0 !important;
  25071. width: 100% !important;
  25072. min-width: unset !important;
  25073. }
  25074. }
  25075. .evaCssMax {
  25076. flex-direction: column !important;
  25077. align-items: center !important;
  25078. }
  25079. .dialog_diy >>> .el-dialog {
  25080. margin-top: 10vh !important;
  25081. }
  25082. .body_student {
  25083. width: 77%;
  25084. height: 100%;
  25085. position: absolute;
  25086. left: 22%;
  25087. top: 0;
  25088. }
  25089. .student_head {
  25090. width: 100%;
  25091. margin: 20px auto 0;
  25092. padding-bottom: 20px;
  25093. display: flex;
  25094. flex-direction: column;
  25095. flex-wrap: nowrap;
  25096. align-items: flex-start;
  25097. justify-content: flex-start;
  25098. }
  25099. .pb_left {
  25100. width: 20%;
  25101. margin-right: 10px;
  25102. background: rgb(255, 255, 255);
  25103. position: fixed;
  25104. height: calc(100% - 40px);
  25105. border-radius: 20px;
  25106. padding-bottom: 15px;
  25107. box-sizing: border-box;
  25108. }
  25109. .wheel > img,
  25110. .project > img,
  25111. .star > img,
  25112. .evaluate > img,
  25113. .up_photo > img,
  25114. .chapter_add > img,
  25115. .deleteWord > img,
  25116. .question > img,
  25117. .homework > img {
  25118. width: 100%;
  25119. height: 100%;
  25120. }
  25121. .upCover > img {
  25122. width: 131px;
  25123. height: 69px;
  25124. object-fit: cover;
  25125. }
  25126. .upCover {
  25127. width: calc(100% / 3.5);
  25128. position: relative;
  25129. margin: 0 15px 10px 0;
  25130. display: flex;
  25131. flex-direction: column;
  25132. flex-wrap: nowrap;
  25133. justify-content: center;
  25134. align-content: center;
  25135. align-items: center;
  25136. height: fit-content;
  25137. }
  25138. .upCover2 {
  25139. width: 100%;
  25140. position: relative;
  25141. margin: 0 15px 10px 0;
  25142. display: flex;
  25143. flex-direction: column;
  25144. flex-wrap: nowrap;
  25145. justify-content: center;
  25146. align-content: center;
  25147. align-items: center;
  25148. }
  25149. .upCover2 > img {
  25150. width: 100%;
  25151. height: 90px;
  25152. object-fit: contain;
  25153. }
  25154. .chapter_add {
  25155. width: 120px;
  25156. position: relative;
  25157. text-align: center;
  25158. }
  25159. .isAddThings {
  25160. margin-top: 20px;
  25161. position: relative;
  25162. text-align: center;
  25163. background: #f7f8fa;
  25164. height: 90px;
  25165. width: 90px;
  25166. display: flex;
  25167. flex-direction: column;
  25168. justify-content: center;
  25169. }
  25170. .deleteWord {
  25171. width: 22px;
  25172. height: 22px;
  25173. position: absolute;
  25174. right: -5px;
  25175. top: -5px;
  25176. cursor: pointer;
  25177. }
  25178. .box_course {
  25179. /* width: 60%; */
  25180. width: calc(100% - 300px);
  25181. }
  25182. .wheel {
  25183. width: 100%;
  25184. /* height: 100%; */
  25185. height: 650px;
  25186. }
  25187. .right_box {
  25188. display: flex;
  25189. flex-direction: column;
  25190. margin-left: 30px;
  25191. justify-content: space-around;
  25192. }
  25193. .right_box_title {
  25194. font-size: 23px;
  25195. }
  25196. .people {
  25197. display: flex;
  25198. }
  25199. .student_body {
  25200. width: 100%;
  25201. margin: 0 auto;
  25202. margin-top: 10px;
  25203. padding: 0 0 20px;
  25204. }
  25205. .study_top {
  25206. margin-top: 100px;
  25207. width: 100%;
  25208. height: auto;
  25209. padding-bottom: 20px;
  25210. margin-left: 2px;
  25211. min-height: 90%;
  25212. }
  25213. .study_top .checkbox {
  25214. display: flex;
  25215. align-items: center;
  25216. padding: 15px 0 15px 30px;
  25217. flex: 0 0 auto;
  25218. font-weight: bold;
  25219. border-bottom: 1px solid #eee;
  25220. }
  25221. .study_top .check {
  25222. padding-bottom: 5px;
  25223. text-align: center;
  25224. cursor: pointer;
  25225. height: 30px;
  25226. box-sizing: border-box;
  25227. display: flex;
  25228. }
  25229. .study_top .checked {
  25230. border-bottom: 4px solid #3fc6a0;
  25231. padding-bottom: 5px;
  25232. color: #3fc6a0;
  25233. display: flex;
  25234. height: 35px;
  25235. }
  25236. .study_top .checked > div,
  25237. .study_top .check > div {
  25238. margin-right: 5px;
  25239. }
  25240. .videoTop {
  25241. display: flex;
  25242. flex-direction: row;
  25243. justify-content: space-between;
  25244. background: #fff;
  25245. align-items: center;
  25246. width: 95%;
  25247. padding: 20px;
  25248. }
  25249. .filebox {
  25250. display: flex;
  25251. flex-wrap: wrap;
  25252. flex-direction: column;
  25253. padding: 0 0 5px;
  25254. position: relative;
  25255. }
  25256. .filebox:before {
  25257. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25258. position: absolute;
  25259. top: 20px;
  25260. left: 13px;
  25261. border-left: 2px dotted #cad1dc;
  25262. height: calc(100% - 15px);
  25263. }
  25264. .toolHeng2 > div:last-child::before {
  25265. height: calc(100% - 43px);
  25266. }
  25267. .filebox .tooldetail {
  25268. width: calc(100%);
  25269. margin: 0px 12px;
  25270. padding: 12px;
  25271. line-height: 30px;
  25272. word-break: break-word;
  25273. background: #ffffff;
  25274. border-radius: 8px 8px 8px 8px;
  25275. opacity: 1;
  25276. border: 1px solid #cad1dc;
  25277. overflow: hidden;
  25278. box-sizing: border-box;
  25279. }
  25280. .file {
  25281. display: flex;
  25282. flex-direction: column;
  25283. align-items: center;
  25284. justify-content: center;
  25285. cursor: pointer;
  25286. width: 200px;
  25287. }
  25288. .file div {
  25289. margin-top: 10px;
  25290. width: 150px;
  25291. text-align: center;
  25292. overflow: hidden;
  25293. white-space: nowrap;
  25294. text-overflow: ellipsis;
  25295. }
  25296. .media {
  25297. display: flex;
  25298. flex-direction: column;
  25299. align-items: center;
  25300. justify-content: center;
  25301. margin: 0 20px 20px 0;
  25302. cursor: pointer;
  25303. margin: 12px 0 5px 15px;
  25304. overflow: hidden;
  25305. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25306. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25307. box-sizing: border-box;
  25308. }
  25309. .media img {
  25310. height: 90px;
  25311. width: 160px;
  25312. object-fit: cover;
  25313. }
  25314. .media .title {
  25315. padding: 5px;
  25316. text-align: left;
  25317. width: 100%;
  25318. box-sizing: border-box;
  25319. }
  25320. .media .btn {
  25321. width: 100%;
  25322. height: 35px;
  25323. line-height: 35px;
  25324. color: #fff;
  25325. background: #606060;
  25326. text-align: center;
  25327. overflow: hidden;
  25328. white-space: nowrap;
  25329. text-overflow: ellipsis;
  25330. }
  25331. .detail_content_top {
  25332. width: 100%;
  25333. padding: 25px 0 25px 0;
  25334. }
  25335. .detail_title {
  25336. text-align: center;
  25337. font-size: 24px;
  25338. }
  25339. .detail_time {
  25340. font-size: 13px;
  25341. padding: 15px 0 0 40px;
  25342. }
  25343. .detail_content {
  25344. line-height: 2pc;
  25345. width: 90%;
  25346. margin: 0 auto;
  25347. padding-top: 30px;
  25348. text-indent: 30px;
  25349. overflow: auto;
  25350. height: 200px;
  25351. }
  25352. .score_box >>> .el-rate {
  25353. margin-left: 10px;
  25354. }
  25355. .dialog_change >>> .el-dialog {
  25356. border-radius: 5px;
  25357. }
  25358. .dialog_change >>> .el-dialog__header {
  25359. background: #f2f2f2;
  25360. text-align: center;
  25361. }
  25362. .dialog_change >>> .el-dialog__title {
  25363. line-height: 5px;
  25364. }
  25365. .dialog_change >>> .el-dialog__body {
  25366. background: #fff;
  25367. padding: 10px 20px;
  25368. }
  25369. .score_box {
  25370. display: flex;
  25371. align-items: center;
  25372. margin-bottom: 18px;
  25373. margin-top: 20px;
  25374. }
  25375. .up_photo {
  25376. width: 120px;
  25377. cursor: pointer;
  25378. margin-top: 10px;
  25379. }
  25380. .up_photo2 {
  25381. width: 180px;
  25382. box-sizing: border-box;
  25383. min-width: 180px;
  25384. height: 180px;
  25385. max-height: 180px;
  25386. min-height: 180px;
  25387. cursor: pointer;
  25388. display: flex;
  25389. flex-direction: column;
  25390. align-items: center;
  25391. justify-content: center;
  25392. background: rgb(242, 246, 255);
  25393. /* padding: 25px; */
  25394. margin-bottom: 10px;
  25395. }
  25396. .up_photo2 img {
  25397. width: 50%;
  25398. height: auto;
  25399. }
  25400. .up_photo2 span {
  25401. color: #898989;
  25402. }
  25403. .plworkBox {
  25404. display: flex;
  25405. align-items: center;
  25406. margin-top: 10px;
  25407. flex-wrap: wrap;
  25408. }
  25409. .upload_send {
  25410. margin: 30px auto 30px;
  25411. width: 60%;
  25412. background: #3681fc;
  25413. text-align: center;
  25414. height: 35px;
  25415. line-height: 35px;
  25416. color: #fff;
  25417. border-radius: 5px;
  25418. cursor: pointer;
  25419. }
  25420. .marginT {
  25421. margin-top: 20px;
  25422. }
  25423. .cd_content_steps {
  25424. display: flex;
  25425. width: 90%;
  25426. justify-content: space-around;
  25427. border-top: 1px solid #eeeeee;
  25428. }
  25429. .cd_steps_box {
  25430. display: flex;
  25431. justify-content: center;
  25432. align-items: center;
  25433. flex-direction: column;
  25434. cursor: pointer;
  25435. }
  25436. .first {
  25437. display: flex;
  25438. align-items: center;
  25439. margin: 15px 0 20px 0;
  25440. font-size: 20px;
  25441. }
  25442. .first > div:nth-child(2) {
  25443. font-size: 16px !important;
  25444. padding-left: 10px;
  25445. line-height: 26px;
  25446. box-sizing: border-box;
  25447. }
  25448. .blue_box_one {
  25449. text-align: center;
  25450. color: #fff;
  25451. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  25452. border-radius: 7px;
  25453. margin: 10px;
  25454. cursor: pointer;
  25455. width: 95%;
  25456. height: 45px;
  25457. display: flex;
  25458. flex-direction: row;
  25459. justify-content: flex-start;
  25460. align-items: center;
  25461. }
  25462. .blue_box_one > div:nth-child(1) {
  25463. line-height: 30px;
  25464. margin: 0 5px 0 10px;
  25465. width: 30%;
  25466. min-width: 70px;
  25467. border-radius: 4px;
  25468. }
  25469. .blue_box_one > div:nth-child(2) {
  25470. white-space: nowrap;
  25471. text-overflow: ellipsis;
  25472. overflow: hidden;
  25473. word-break: break-all;
  25474. width: 70%;
  25475. text-align: left;
  25476. margin-right: 10px;
  25477. max-width: calc(100% - 85px);
  25478. }
  25479. .blue_box_one > div:nth-child(2):hover {
  25480. overflow: hidden;
  25481. text-overflow: ellipsis;
  25482. white-space: nowrap;
  25483. cursor: pointer;
  25484. }
  25485. .upFile {
  25486. margin: 0 auto;
  25487. width: 120px;
  25488. background: #3681fc;
  25489. color: #fff;
  25490. height: 30px;
  25491. text-align: center;
  25492. line-height: 30px;
  25493. border-radius: 5px;
  25494. font-size: 14px;
  25495. cursor: pointer;
  25496. }
  25497. .courseTitle {
  25498. width: 85%;
  25499. margin: 10px auto 26px auto;
  25500. display: flex;
  25501. flex-direction: row;
  25502. align-items: center;
  25503. justify-content: space-between;
  25504. text-align: center;
  25505. }
  25506. .courseTitle .ctitle {
  25507. font-size: 20px;
  25508. font-weight: bold;
  25509. color: #0e1e33;
  25510. white-space: nowrap;
  25511. overflow: hidden;
  25512. text-overflow: ellipsis;
  25513. }
  25514. .inviteBox {
  25515. font-size: 14px;
  25516. /* margin-top: 5px; */
  25517. color: #00000099;
  25518. text-align: center;
  25519. }
  25520. .courseTitle >>> .el-tooltip {
  25521. width: 100%;
  25522. white-space: nowrap;
  25523. overflow: hidden;
  25524. text-overflow: ellipsis;
  25525. word-break: break-word;
  25526. }
  25527. .ml {
  25528. margin-left: 20px;
  25529. color: #5b7dba;
  25530. border-left: 3px solid #5b7dba;
  25531. padding-left: 5px;
  25532. font-weight: bold;
  25533. }
  25534. .return {
  25535. width: 2rem;
  25536. height: 2rem;
  25537. cursor: pointer;
  25538. }
  25539. .return > img {
  25540. width: 100%;
  25541. height: 100%;
  25542. }
  25543. .returnBtn {
  25544. width: 86px;
  25545. height: 36px;
  25546. background: #3681fc;
  25547. border-radius: 4px;
  25548. color: #fff;
  25549. text-align: center;
  25550. line-height: 36px;
  25551. margin-right: 20px;
  25552. cursor: pointer;
  25553. font-size: 14px;
  25554. font-weight: 400;
  25555. display: flex;
  25556. flex-direction: row;
  25557. flex-wrap: nowrap;
  25558. align-items: center;
  25559. justify-content: center;
  25560. }
  25561. .reBtnIcon,
  25562. .commentIcon,
  25563. .vedioIcon,
  25564. .vedioIcon1 {
  25565. /* width: 36px; */
  25566. height: 36px;
  25567. border-radius: 4px;
  25568. position: relative;
  25569. /* background: #e0eafb; */
  25570. background: #0061ff;
  25571. cursor: pointer;
  25572. margin-right: 12px;
  25573. display: flex;
  25574. align-items: center;
  25575. padding: 0 10px;
  25576. box-sizing: border-box;
  25577. font-size: 14px;
  25578. color: #fff;
  25579. }
  25580. .reBtnIcon::before,
  25581. .commentIcon::before,
  25582. .vedioIcon::before,
  25583. .vedioIcon1::before {
  25584. content: "";
  25585. display: block;
  25586. background-size: 100% 100%;
  25587. background-repeat: no-repeat;
  25588. width: 20px;
  25589. height: 20px;
  25590. margin-right: 5px;
  25591. /* position: absolute; */
  25592. /* top: 8px;
  25593. left: 8px; */
  25594. }
  25595. .vedioIcon1 {
  25596. background: #f63564;
  25597. }
  25598. .reBtnIcon::before {
  25599. background-image: url("../../assets/icon/newIcons/refresh.png");
  25600. }
  25601. .commentIcon::before {
  25602. background-image: url("../../assets/icon/newIcons/comment.png");
  25603. }
  25604. .vedioIcon::before {
  25605. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25606. }
  25607. .vedioIcon1::before {
  25608. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  25609. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25610. }
  25611. .tool {
  25612. display: flex;
  25613. flex-direction: column;
  25614. flex-wrap: nowrap;
  25615. width: 13%;
  25616. margin: 0 30px;
  25617. align-items: center;
  25618. position: relative;
  25619. padding: 10px 25px;
  25620. cursor: pointer;
  25621. }
  25622. .whiteBIcon {
  25623. width: 150px;
  25624. }
  25625. .whiteBIcon > img {
  25626. width: 100%;
  25627. height: 100%;
  25628. }
  25629. .mask {
  25630. background-color: rgba(0, 0, 0, 0);
  25631. position: fixed;
  25632. top: 0;
  25633. left: 0;
  25634. width: 100%;
  25635. height: 100%;
  25636. z-index: 20000;
  25637. display: flex;
  25638. align-items: center;
  25639. justify-content: center;
  25640. }
  25641. .progressBox {
  25642. width: 500px;
  25643. height: 180px;
  25644. background: #fff;
  25645. border-radius: 10px;
  25646. box-shadow: 0 0 6px 1px #bfbfbf;
  25647. display: flex;
  25648. align-items: center;
  25649. justify-content: center;
  25650. flex-direction: column;
  25651. position: relative;
  25652. color: #6c6c6c;
  25653. }
  25654. .progressBox >>> .el-progress-bar__outer {
  25655. background-color: #d1dfff !important;
  25656. }
  25657. .progressBox .lbox {
  25658. height: 50px;
  25659. font-size: 19px;
  25660. display: flex;
  25661. align-items: center;
  25662. color: #747474;
  25663. }
  25664. .progressBox .lbox img {
  25665. width: 40px;
  25666. margin-right: 20px;
  25667. }
  25668. .closeCss {
  25669. position: absolute;
  25670. top: 8px;
  25671. right: 8px;
  25672. cursor: pointer;
  25673. width: 20px;
  25674. height: 20px;
  25675. }
  25676. .closeCss > img {
  25677. width: 100%;
  25678. height: 100%;
  25679. }
  25680. .uploadVedio {
  25681. display: flex;
  25682. flex-direction: column;
  25683. flex-wrap: nowrap;
  25684. justify-content: center;
  25685. align-items: center;
  25686. margin: 0 15px 10px 0;
  25687. }
  25688. .uploadVedio > img {
  25689. width: 30px;
  25690. height: 30px;
  25691. }
  25692. .uploadVedio > span {
  25693. white-space: nowrap;
  25694. overflow: hidden;
  25695. text-overflow: ellipsis;
  25696. width: 75px;
  25697. margin-top: 7px;
  25698. }
  25699. .picName {
  25700. white-space: nowrap;
  25701. overflow: hidden;
  25702. text-overflow: ellipsis;
  25703. width: 75px;
  25704. margin-top: 7px;
  25705. }
  25706. .new_top {
  25707. display: flex;
  25708. background: #fff;
  25709. flex-direction: row;
  25710. justify-content: flex-start;
  25711. align-items: center;
  25712. height: 60px;
  25713. position: fixed;
  25714. top: 20px;
  25715. left: 22%;
  25716. width: 77%;
  25717. z-index: 999;
  25718. border-radius: 12px 12px 0 0;
  25719. border-bottom: 1px solid #cad1dc;
  25720. padding: 10px 0;
  25721. }
  25722. .new_topFixed {
  25723. width: 100%;
  25724. height: 40px;
  25725. position: fixed;
  25726. top: 0px;
  25727. display: block;
  25728. background: #f2f2f2;
  25729. z-index: 998;
  25730. }
  25731. .before {
  25732. position: absolute;
  25733. background: #c3dad4;
  25734. width: 6px;
  25735. height: 100%;
  25736. }
  25737. .courseIndex {
  25738. display: flex;
  25739. flex-direction: row;
  25740. align-items: center;
  25741. width: calc(100% - 745px);
  25742. }
  25743. .courseIndex > div:nth-child(1) {
  25744. margin: 0 0 0 10px;
  25745. font-size: 20px;
  25746. min-width: 100px;
  25747. font-weight: bold;
  25748. border-left: 4px solid #3363b9;
  25749. height: 32px;
  25750. text-align: center;
  25751. line-height: 35px;
  25752. }
  25753. .courseIndex > div:nth-child(2) {
  25754. font-size: 20px;
  25755. /* width: 300px; */
  25756. max-width: calc(100% - 105px);
  25757. white-space: nowrap;
  25758. overflow: hidden;
  25759. text-overflow: ellipsis;
  25760. }
  25761. .courseIndex > div:nth-child(3) {
  25762. border-bottom: 1px solid #d7d7d7;
  25763. padding-bottom: 5px;
  25764. background: #3681fc;
  25765. width: 55px;
  25766. min-width: 55px;
  25767. border-radius: 5px;
  25768. color: #fff;
  25769. text-align: center;
  25770. height: 20px;
  25771. line-height: 26px;
  25772. font-size: 14px;
  25773. margin: 0 0 0 10px;
  25774. }
  25775. .course_text {
  25776. padding: 20px 0 0 15px;
  25777. text-indent: 30px;
  25778. width: 80%;
  25779. min-height: 20px;
  25780. }
  25781. .vedioList {
  25782. background: #f2f2f2;
  25783. border: 1px solid #ececec;
  25784. /* width: 38.8%; */
  25785. /* width: 300px; */
  25786. width: 100%;
  25787. height: 445px;
  25788. border-radius: 10px;
  25789. overflow: hidden;
  25790. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  25791. }
  25792. .vedioNav {
  25793. margin: 10px 0 0 15px;
  25794. border-bottom: 1px solid #d7d7d7;
  25795. padding-bottom: 5px;
  25796. background: #3681fc;
  25797. width: 55px;
  25798. min-width: 55px;
  25799. border-radius: 5px;
  25800. color: #fff;
  25801. text-align: center;
  25802. height: 20px;
  25803. line-height: 26px;
  25804. font-size: 14px;
  25805. }
  25806. .queTop {
  25807. display: flex;
  25808. padding: 20px 0 20px 30px;
  25809. width: 100%;
  25810. flex-direction: row;
  25811. justify-content: flex-start;
  25812. align-items: center;
  25813. box-sizing: border-box;
  25814. }
  25815. .queTopTitle {
  25816. display: flex;
  25817. flex-direction: row;
  25818. flex-wrap: nowrap;
  25819. align-items: center;
  25820. font-weight: bold;
  25821. font-size: 20px;
  25822. color: rgb(14, 30, 51);
  25823. }
  25824. .queTopTitle::before {
  25825. content: "";
  25826. width: 2px;
  25827. height: 22px;
  25828. background: #3681fc;
  25829. border-radius: 3px;
  25830. display: block;
  25831. margin: 2px 6px 0 0;
  25832. }
  25833. .queTopRight {
  25834. display: flex;
  25835. flex-direction: row;
  25836. flex-wrap: nowrap;
  25837. align-items: center;
  25838. }
  25839. .queTopClose {
  25840. margin-right: 20px;
  25841. cursor: pointer;
  25842. position: relative;
  25843. display: flex;
  25844. }
  25845. .closeImg,
  25846. .openImg {
  25847. width: 25px;
  25848. height: 25px;
  25849. position: absolute;
  25850. left: -20px;
  25851. top: -1px;
  25852. }
  25853. .closeImg > img,
  25854. .openImg > img {
  25855. width: 100%;
  25856. height: 100%;
  25857. }
  25858. .question {
  25859. width: 40px;
  25860. margin-right: 10px;
  25861. margin-top: 7px;
  25862. }
  25863. .queTitle {
  25864. margin-left: 5px;
  25865. font-size: 25px;
  25866. display: flex;
  25867. align-items: center;
  25868. }
  25869. .addEditor {
  25870. width: 100px;
  25871. height: 30px;
  25872. background: #42cda6;
  25873. color: #fff;
  25874. border-radius: 5px;
  25875. text-align: center;
  25876. line-height: 30px;
  25877. box-shadow: 1px 3px 6px 1px #bfbfbf;
  25878. cursor: pointer;
  25879. }
  25880. /* .vedioName {
  25881. cursor: pointer;
  25882. margin: 0px 0px 10px 5px;
  25883. white-space: nowrap;
  25884. overflow: hidden;
  25885. text-overflow: ellipsis;
  25886. width: 100%;
  25887. } */
  25888. .vedioTime {
  25889. width: 35px;
  25890. position: absolute;
  25891. color: #fff;
  25892. bottom: 0px;
  25893. right: 0px;
  25894. text-align: center;
  25895. background: #46411f;
  25896. height: 20px;
  25897. font-size: 14px;
  25898. line-height: 20px;
  25899. }
  25900. .homework {
  25901. width: 200px;
  25902. display: flex;
  25903. flex-direction: column;
  25904. flex-wrap: nowrap;
  25905. align-items: center;
  25906. cursor: pointer;
  25907. }
  25908. .homebox {
  25909. display: flex;
  25910. flex-wrap: wrap;
  25911. flex-direction: row;
  25912. justify-content: flex-start;
  25913. align-items: center;
  25914. padding: 15px 0;
  25915. }
  25916. .isChooseActive {
  25917. color: #3681fc !important;
  25918. font-weight: bold !important;
  25919. }
  25920. .chooseWho {
  25921. display: flex;
  25922. width: 100%;
  25923. flex-direction: row;
  25924. flex-wrap: nowrap;
  25925. justify-content: flex-start;
  25926. padding-bottom: 10px;
  25927. }
  25928. .chooseWho > div {
  25929. cursor: pointer;
  25930. padding-bottom: 10px;
  25931. margin: 0 30px 0 0;
  25932. font-weight: 400;
  25933. color: #0e1e33;
  25934. }
  25935. .addPoint > div > img {
  25936. cursor: pointer;
  25937. width: 85px;
  25938. border-radius: 15px;
  25939. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  25940. }
  25941. .addPoint > div {
  25942. display: flex;
  25943. flex-direction: column;
  25944. flex-wrap: nowrap;
  25945. align-items: center;
  25946. }
  25947. .isBorder > div {
  25948. margin: 0 0 10px 0;
  25949. align-items: flex-start !important;
  25950. }
  25951. .noiframeBox {
  25952. display: flex;
  25953. flex-wrap: wrap;
  25954. }
  25955. .iframeBox iframe {
  25956. width: 100%;
  25957. height: 800px;
  25958. border: none;
  25959. margin-bottom: 20px;
  25960. border: 1px solid #ccc;
  25961. }
  25962. .upload_toolBtn {
  25963. background: #3681fc;
  25964. color: #fff;
  25965. width: 110px;
  25966. text-align: center;
  25967. height: 35px;
  25968. line-height: 35px;
  25969. font-size: 14px;
  25970. border-radius: 5px;
  25971. cursor: pointer;
  25972. position: absolute;
  25973. right: 10px;
  25974. bottom: 0;
  25975. }
  25976. .binfo_input,
  25977. .pj {
  25978. font: inherit;
  25979. color: currentColor;
  25980. width: 100%;
  25981. margin: 0;
  25982. padding: 15px 14px;
  25983. display: block;
  25984. min-width: 0;
  25985. outline: none;
  25986. box-sizing: content-box;
  25987. background: none;
  25988. -webkit-tap-highlight-color: transparent;
  25989. border: 1px solid rgba(0, 0, 0, 0.23);
  25990. border-radius: 4px;
  25991. box-sizing: border-box;
  25992. resize: none;
  25993. }
  25994. .binfo_input:focus-visible {
  25995. border: 1px solid rgba(61, 103, 188);
  25996. }
  25997. .dialog_diyCopy >>> .el-dialog__header {
  25998. display: none !important;
  25999. }
  26000. .dialog_diyCopy >>> .el-dialog__body {
  26001. padding: 0 !important;
  26002. height: 100% !important;
  26003. }
  26004. .confirmOpenDigCss > div{
  26005. font-size: 14px;
  26006. color: rgba(0, 0, 0, 0.6);
  26007. }
  26008. .confirmOpenDigCss >>> .el-dialog{
  26009. border-radius: 6px;
  26010. }
  26011. .confirmOpenDigCss >>> .el-dialog__body{
  26012. padding: 25px !important;
  26013. }
  26014. .confirmOpenDigCss > span{
  26015. font-size: 16px;
  26016. font-weight: 600;
  26017. color: rgba(0, 0, 0, 0.8);
  26018. }
  26019. .dialog_diy >>> .el-dialog__header,
  26020. .dialog_diy1 >>> .el-dialog__header {
  26021. background: #454545 !important;
  26022. padding: 15px 20px;
  26023. }
  26024. .dialog_diy >>> .el-dialog__title,
  26025. .dialog_diy1 >>> .el-dialog__title {
  26026. color: #fff;
  26027. }
  26028. .dialog_diy >>> .el-dialog__headerbtn,
  26029. .dialog_diy1 >>> .el-dialog__headerbtn {
  26030. top: 19px;
  26031. }
  26032. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26033. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26034. color: #fff;
  26035. }
  26036. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26037. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26038. color: #fff;
  26039. }
  26040. .dialog_diy1 >>> .el-dialog__body {
  26041. padding: 0;
  26042. }
  26043. .dialog_diy >>> .el-dialog__body,
  26044. .dialog_diy >>> .el-dialog__footer,
  26045. .dialog_diy1 >>> .el-dialog__footer {
  26046. background: #fafafa;
  26047. }
  26048. .markScore_diy >>> .el-dialog {
  26049. border-radius: 10px;
  26050. }
  26051. .markScore_diy >>> .el-dialog__body {
  26052. padding: 0;
  26053. height: 621px;
  26054. min-height: calc(100% - 60px);
  26055. }
  26056. .markScore_diy >>> .el-dialog__header {
  26057. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26058. }
  26059. .markScore_diy >>> .markScore_diyTit {
  26060. width: calc(100% - 60px);
  26061. display: flex;
  26062. justify-content: space-between;
  26063. align-items: center;
  26064. }
  26065. .a_addBox {
  26066. padding: 0 0 0 15px;
  26067. }
  26068. .a_add_box {
  26069. padding: 10px;
  26070. background: #fff;
  26071. margin-bottom: 10px;
  26072. border-radius: 5px;
  26073. box-shadow: 0 0 5px 0 #d5d5d5;
  26074. }
  26075. .a_add_head {
  26076. display: flex;
  26077. align-items: flex-start;
  26078. /* justify-content: space-between; */
  26079. flex-direction: column;
  26080. /* flex-direction: row; */
  26081. margin: 10px 0 20px 0;
  26082. font-size: 18px;
  26083. width: 100%;
  26084. }
  26085. .askIndex {
  26086. background: #3681fc;
  26087. border-radius: 50%;
  26088. color: #fff;
  26089. width: 25px;
  26090. height: 25px;
  26091. min-width: 25px;
  26092. min-height: 25px;
  26093. text-align: center;
  26094. line-height: 25px;
  26095. margin-right: 5px;
  26096. }
  26097. .a_add_head .a_add_head_input {
  26098. width: 300px;
  26099. }
  26100. .a_add_head .a_add_head_div {
  26101. display: flex;
  26102. align-items: center;
  26103. justify-content: space-between;
  26104. }
  26105. .a_add_body {
  26106. display: flex;
  26107. align-items: center;
  26108. }
  26109. .a_add_input {
  26110. display: flex;
  26111. align-items: center;
  26112. flex-wrap: wrap;
  26113. width: 100%;
  26114. }
  26115. .a_add_input >>> .el-radio-group,
  26116. .a_add_input >>> .el-checkbox-group {
  26117. width: 100%;
  26118. }
  26119. .a_add_input >>> .el-radio,
  26120. .a_add_input >>> .el-checkbox {
  26121. display: flex;
  26122. flex-direction: row;
  26123. flex-wrap: nowrap;
  26124. align-items: center;
  26125. padding: 15px 0;
  26126. }
  26127. .a_add_input >>> .el-radio:not(:last-child),
  26128. .a_add_input >>> .el-checkbox:not(:last-child) {
  26129. width: 100%;
  26130. border-bottom: 1px solid #efefef;
  26131. }
  26132. .redioStyle >>> .el-radio__label {
  26133. font-size: 18px;
  26134. }
  26135. .redioStyle >>> .el-radio__label > span,
  26136. .redioStyle >>> .el-checkbox__label > span {
  26137. word-break: break-all;
  26138. white-space: normal;
  26139. }
  26140. .redioStyle >>> .el-checkbox__label {
  26141. font-size: 18px;
  26142. }
  26143. .toolHeng2 {
  26144. width: 100%;
  26145. padding-left: 15px;
  26146. box-sizing: border-box;
  26147. }
  26148. .workNav {
  26149. font-size: 20px;
  26150. font-weight: bold;
  26151. color: #0e1e33;
  26152. display: flex;
  26153. flex-direction: row;
  26154. flex-wrap: nowrap;
  26155. align-items: center;
  26156. padding: 15px 0 15px 0;
  26157. }
  26158. .workNav::before {
  26159. content: "";
  26160. width: 2px;
  26161. height: 22px;
  26162. background: #3681fc;
  26163. border-radius: 3px;
  26164. display: block;
  26165. margin: 2px 6px 0 0;
  26166. }
  26167. .toolHeng {
  26168. display: flex;
  26169. flex-direction: row;
  26170. flex-wrap: wrap;
  26171. justify-content: flex-start;
  26172. align-items: center;
  26173. width: 100%;
  26174. }
  26175. .toolHeng > div {
  26176. padding-left: 20px;
  26177. }
  26178. .isWidth {
  26179. width: 20%;
  26180. }
  26181. .textTitle {
  26182. display: flex;
  26183. flex-direction: row;
  26184. flex-wrap: nowrap;
  26185. align-items: center;
  26186. width: 95%;
  26187. }
  26188. .textTitle >>> .el-form-item__label {
  26189. font-size: 22px;
  26190. color: #918f8f;
  26191. width: 100px;
  26192. }
  26193. .textTitle >>> .el-form-item__content {
  26194. width: calc(100% - 100px);
  26195. }
  26196. .textCss >>> .el-dialog {
  26197. width: 800px !important;
  26198. height: 400px;
  26199. background: #fafafa;
  26200. }
  26201. .textCss >>> .el-dialog__body {
  26202. margin: 55px 8% 0 8%;
  26203. padding: 0 !important;
  26204. }
  26205. .textCss >>> .el-dialog__footer {
  26206. padding-top: 38px;
  26207. }
  26208. .toolsCss >>> .el-dialog__body {
  26209. padding: 20px;
  26210. }
  26211. .lineCss >>> .el-dialog__body {
  26212. display: flex;
  26213. flex-direction: row;
  26214. align-items: center;
  26215. justify-content: center;
  26216. }
  26217. .newNav {
  26218. display: flex;
  26219. flex-direction: row;
  26220. align-items: baseline;
  26221. justify-content: flex-start;
  26222. }
  26223. .navListItem {
  26224. width: calc(100% - 20px);
  26225. height: 50px;
  26226. margin: 0px auto 10px;
  26227. display: flex;
  26228. flex-direction: row;
  26229. flex-wrap: nowrap;
  26230. align-items: center;
  26231. justify-content: space-between;
  26232. background: #f0f4fa;
  26233. border-radius: 6px 6px 6px 6px;
  26234. }
  26235. .navText {
  26236. cursor: pointer;
  26237. white-space: nowrap;
  26238. overflow: hidden;
  26239. text-overflow: ellipsis;
  26240. width: 220px;
  26241. padding: 0 10px;
  26242. font-weight: 400;
  26243. color: #0e1e33;
  26244. }
  26245. .downIcon {
  26246. width: 20px;
  26247. min-width: 20px;
  26248. height: 20px;
  26249. margin-right: 15px;
  26250. cursor: pointer;
  26251. }
  26252. .downIcon > img {
  26253. width: 100%;
  26254. height: 100%;
  26255. }
  26256. .noVedio {
  26257. display: flex;
  26258. flex-direction: row;
  26259. justify-content: center;
  26260. align-content: center;
  26261. }
  26262. .noNavText {
  26263. cursor: pointer;
  26264. margin: 0px 0px 10px 5px;
  26265. width: 112px;
  26266. }
  26267. .listNoVedio {
  26268. margin: 0 0 0 30px;
  26269. width: 97%;
  26270. }
  26271. .video-player >>> .video-js {
  26272. height: 100%;
  26273. }
  26274. .hangVedioList {
  26275. width: 90% !important;
  26276. height: 150px !important;
  26277. margin: 20px 0 0 30px;
  26278. }
  26279. .hangVedio {
  26280. width: 100%;
  26281. height: 170px !important;
  26282. align-items: flex-start !important;
  26283. }
  26284. .hangHand {
  26285. height: 150px !important;
  26286. }
  26287. .twoChild {
  26288. width: 95%;
  26289. margin: 10px;
  26290. border-radius: 5px;
  26291. background: #f2f2f2;
  26292. display: flex;
  26293. flex-direction: column;
  26294. flex-wrap: nowrap;
  26295. justify-content: flex-start;
  26296. align-items: flex-start;
  26297. transition: all 0.5s;
  26298. overflow: hidden;
  26299. height: 0;
  26300. background: #e7f3ff;
  26301. }
  26302. .twoChild > div:nth-child(1) {
  26303. margin-top: 5px;
  26304. }
  26305. .navChild {
  26306. width: 100%;
  26307. cursor: pointer;
  26308. margin-bottom: 10px;
  26309. position: relative;
  26310. }
  26311. .navChild img {
  26312. position: absolute;
  26313. right: 11px;
  26314. width: 15px;
  26315. top: 50%;
  26316. transform: translateY(-50%);
  26317. }
  26318. .navActive,
  26319. .toolActive {
  26320. height: auto !important;
  26321. overflow: auto !important;
  26322. /* // padding-bottom: 16px; */
  26323. }
  26324. .toolActive {
  26325. padding: 0;
  26326. }
  26327. .navTask {
  26328. display: flex;
  26329. flex-direction: row;
  26330. flex-wrap: nowrap;
  26331. align-items: center;
  26332. align-content: flex-start;
  26333. height: 40px;
  26334. justify-content: flex-start;
  26335. padding: 0 10px;
  26336. width: 100%;
  26337. box-sizing: border-box;
  26338. }
  26339. .navTaskname {
  26340. white-space: nowrap;
  26341. text-overflow: ellipsis;
  26342. overflow: hidden;
  26343. word-break: break-all;
  26344. padding-left: 5px;
  26345. }
  26346. .openTaskActive {
  26347. /* background-color: #e0eafb !important;
  26348. color: #0061ff; */
  26349. color: #fff;
  26350. background: rgb(55, 129, 252) !important;
  26351. }
  26352. .iframeName {
  26353. margin: 5px 0;
  26354. border-left: 4px solid #41c4a4;
  26355. padding-left: 4px;
  26356. }
  26357. .toolTitle {
  26358. margin: 0px 0px 20px;
  26359. font-size: 20px;
  26360. font-weight: 500;
  26361. border-left: 4px solid #41c4a4;
  26362. padding-left: 4px;
  26363. }
  26364. .cru_selectBox {
  26365. overflow: auto;
  26366. width: 95%;
  26367. margin: 17px auto 0;
  26368. height: calc(100% - 40px - 21px - 20px - 17px);
  26369. background: #fff;
  26370. border-radius: 8px;
  26371. }
  26372. .cru_selectBox::-webkit-scrollbar,
  26373. .study_top::-webkit-scrollbar,
  26374. .textContent::-webkit-scrollbar {
  26375. /*滚动条整体样式*/
  26376. width: 6px;
  26377. /*高宽分别对应横竖滚动条的尺寸*/
  26378. height: 6px;
  26379. }
  26380. /*定义滚动条轨道 内阴影+圆角*/
  26381. .cru_selectBox::-webkit-scrollbar-track,
  26382. .study_top::-webkit-scrollbar-track,
  26383. .textContent::-webkit-scrollbar {
  26384. border-radius: 10px;
  26385. background-color: #b8bdc9;
  26386. }
  26387. /*定义滑块 内阴影+圆角*/
  26388. .cru_selectBox::-webkit-scrollbar-thumb,
  26389. .study_top::-webkit-scrollbar-thumb,
  26390. .textContent::-webkit-scrollbar-thumb {
  26391. border-radius: 10px;
  26392. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26393. background-color: #2c5ab3;
  26394. }
  26395. .vedioBox {
  26396. border-radius: 0 0 20px 20px;
  26397. background: #fff;
  26398. overflow: auto;
  26399. }
  26400. .taskBox {
  26401. width: 98%;
  26402. background: #f0f4fa;
  26403. margin: 10px auto;
  26404. padding: 0 10px;
  26405. border-radius: 4px;
  26406. box-sizing: border-box;
  26407. }
  26408. .vedioTaskBox {
  26409. width: 100%;
  26410. display: flex;
  26411. flex-direction: row;
  26412. flex-wrap: nowrap;
  26413. align-items: flex-start;
  26414. position: relative;
  26415. }
  26416. .toolBox {
  26417. margin: 15px 0 0 25px;
  26418. display: flex;
  26419. position: relative;
  26420. padding: 18px 20px;
  26421. border-top-left-radius: 5px;
  26422. border-top-right-radius: 5px;
  26423. width: 90%;
  26424. }
  26425. .btnAll {
  26426. position: absolute;
  26427. right: 0;
  26428. display: flex;
  26429. flex-direction: row;
  26430. flex-wrap: nowrap;
  26431. align-items: center;
  26432. }
  26433. .btnLeft,
  26434. .btnRight {
  26435. display: flex;
  26436. flex-direction: row;
  26437. flex-wrap: nowrap;
  26438. align-items: center;
  26439. padding: 5px 0;
  26440. }
  26441. .btnLeft {
  26442. border-right: 1px solid #cad1dc;
  26443. }
  26444. .btnLeft > .custom-tooltip {
  26445. background: #3681fc;
  26446. color: #fff;
  26447. }
  26448. .last:hover {
  26449. background: #3383fa !important;
  26450. color: #fff;
  26451. border: 1px solid #3383fa !important;
  26452. }
  26453. .last,
  26454. .returnBtn1 {
  26455. width: 90px;
  26456. height: 36px;
  26457. background: #ffffff;
  26458. border-radius: 4px;
  26459. border: 1px solid #0061ff;
  26460. color: #0061ff;
  26461. cursor: pointer;
  26462. display: flex;
  26463. flex-direction: row;
  26464. flex-wrap: nowrap;
  26465. align-items: center;
  26466. justify-content: center;
  26467. margin-left: 12px;
  26468. }
  26469. .returnBtn1 {
  26470. background: #f0f4fa;
  26471. border-radius: 4px;
  26472. border: 1px solid #cad1dc;
  26473. margin: 0 12px;
  26474. }
  26475. .lastImg {
  26476. min-width: 15px;
  26477. width: 15px;
  26478. height: 15px;
  26479. display: flex;
  26480. }
  26481. .lastText {
  26482. padding: 0 5px 0 5px;
  26483. box-sizing: border-box;
  26484. font-size: 14px;
  26485. }
  26486. .lastImg > img {
  26487. width: 100%;
  26488. height: 100%;
  26489. }
  26490. /* .vedioTimeBox {
  26491. display: flex;
  26492. flex-direction: row;
  26493. align-items: center;
  26494. flex-wrap: nowrap;
  26495. position: relative;
  26496. } */
  26497. .navBox {
  26498. background: #fff;
  26499. height: calc(100% - 40px);
  26500. overflow-y: auto;
  26501. overflow-x: hidden;
  26502. }
  26503. .worksBox {
  26504. margin: 0 0 10px 25px;
  26505. border-bottom: 1px solid #eeeeee;
  26506. padding: 18px 20px;
  26507. border-radius: 4px;
  26508. width: 90%;
  26509. }
  26510. .worksBTitle {
  26511. font-size: 20px;
  26512. padding-bottom: 15px;
  26513. border-bottom: 1px solid #eeeeee;
  26514. display: flex;
  26515. align-items: center;
  26516. }
  26517. .greenBox {
  26518. width: 5px;
  26519. height: 30px;
  26520. background: #63b6fa;
  26521. margin-right: 5px;
  26522. }
  26523. .worksDetailBox {
  26524. display: flex;
  26525. width: 100%;
  26526. flex-direction: row;
  26527. flex-wrap: wrap;
  26528. align-items: flex-end;
  26529. justify-content: flex-start;
  26530. padding: 15px 5px;
  26531. box-sizing: border-box;
  26532. }
  26533. .works {
  26534. display: flex;
  26535. flex-direction: column;
  26536. flex-wrap: nowrap;
  26537. align-items: flex-start;
  26538. justify-content: flex-start;
  26539. align-content: center;
  26540. max-width: 240px;
  26541. width: calc(100% / 3 - 10px);
  26542. height: auto;
  26543. margin-right: 10px;
  26544. margin-bottom: 10px;
  26545. overflow: hidden;
  26546. height: 140px;
  26547. box-shadow: 0 0 6px 1px #dfdada;
  26548. border-radius: 15px;
  26549. }
  26550. .workImg {
  26551. width: 100%;
  26552. /* height: calc(100% - 40px); */
  26553. height: 105px;
  26554. position: relative;
  26555. }
  26556. .workImg > img {
  26557. width: 100%;
  26558. height: 100%;
  26559. object-fit: contain;
  26560. cursor: pointer;
  26561. }
  26562. .worksName {
  26563. height: 40px;
  26564. line-height: 40px;
  26565. display: flex;
  26566. width: 100%;
  26567. flex-direction: row;
  26568. flex-wrap: nowrap;
  26569. justify-content: space-between;
  26570. align-items: center;
  26571. margin: 0 0 0 10px;
  26572. }
  26573. .worksName > div:nth-child(1) {
  26574. width: 110px;
  26575. white-space: nowrap;
  26576. overflow: hidden;
  26577. text-overflow: ellipsis;
  26578. }
  26579. .worksName > div:nth-child(2) {
  26580. color: #b7b4b5;
  26581. }
  26582. .noWorksS {
  26583. padding: 15px 0;
  26584. display: flex;
  26585. flex-direction: row;
  26586. flex-wrap: wrap;
  26587. align-items: center;
  26588. justify-content: flex-start;
  26589. }
  26590. .noWorksName,
  26591. .isWorksName,
  26592. .isWorksName2 {
  26593. background: #ddebf8;
  26594. color: #000;
  26595. width: 90px;
  26596. height: 25px;
  26597. text-align: center;
  26598. line-height: 25px;
  26599. border-radius: 4px;
  26600. margin: 10px 15px 10px 0;
  26601. white-space: nowrap;
  26602. overflow: hidden;
  26603. padding: 5px;
  26604. text-overflow: ellipsis;
  26605. cursor: pointer;
  26606. border: 1px solid #ddebf8;
  26607. }
  26608. .noWorksName {
  26609. background: #fff;
  26610. color: #0061ff;
  26611. border: 1px solid #0061ff;
  26612. }
  26613. .noWorksName > span {
  26614. max-width: 100%;
  26615. display: block;
  26616. overflow: hidden;
  26617. text-overflow: ellipsis;
  26618. white-space: nowrap;
  26619. }
  26620. .isWorksName2 {
  26621. width: 100px;
  26622. height: 40px;
  26623. line-height: 40px;
  26624. position: relative;
  26625. background: #dae6f9;
  26626. }
  26627. .isWorksName {
  26628. background: #e7ebf1 !important;
  26629. width: 100px;
  26630. height: 40px;
  26631. line-height: 40px;
  26632. position: relative;
  26633. color: #acb4bf;
  26634. border: 1px solid #cad1dc !important;
  26635. }
  26636. .isSelectName,
  26637. .noWorksName:hover {
  26638. background: #3383fa !important;
  26639. color: #fff !important;
  26640. border: 1px solid #3383fa !important;
  26641. }
  26642. .title {
  26643. background: #1e5cc9;
  26644. /* width: 98%; */
  26645. height: 45px;
  26646. color: #fff;
  26647. line-height: 45px;
  26648. padding-left: 20px;
  26649. box-sizing: border-box;
  26650. }
  26651. .textBox {
  26652. font-size: 20px;
  26653. width: 90%;
  26654. display: flex;
  26655. flex-direction: column;
  26656. align-items: center;
  26657. margin: 20px auto 0;
  26658. max-height: calc(100% - 75px);
  26659. overflow: auto;
  26660. }
  26661. .textContent {
  26662. font-size: 18px;
  26663. width: 95%;
  26664. max-width: 95%;
  26665. }
  26666. .answerBg {
  26667. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  26668. background-size: 100% 100%;
  26669. width: 100%;
  26670. height: 100%;
  26671. color: #fff;
  26672. text-align: center;
  26673. display: flex;
  26674. flex-direction: column;
  26675. flex-wrap: nowrap;
  26676. align-items: center;
  26677. position: relative;
  26678. justify-content: center;
  26679. }
  26680. /* .answerBg > div:nth-child(1) { */
  26681. /* font-size: 22px;
  26682. padding: 25px 0 10px; */
  26683. /* } */
  26684. .answerContent {
  26685. width: 215px;
  26686. max-height: 60px;
  26687. word-break: break-all;
  26688. text-align: center;
  26689. /* white-space: nowrap; */
  26690. overflow: hidden;
  26691. text-overflow: ellipsis;
  26692. /* padding: 23px 0 0; */
  26693. -webkit-line-clamp: 3;
  26694. -webkit-box-orient: vertical;
  26695. display: -webkit-box;
  26696. font-size: 15px;
  26697. cursor: pointer;
  26698. }
  26699. .elist_input_box {
  26700. display: flex;
  26701. align-items: flex-start;
  26702. flex-wrap: nowrap;
  26703. padding: 10px 0 15px 30px;
  26704. flex-direction: column;
  26705. }
  26706. .elist_input {
  26707. /* width: 40%; */
  26708. width: 45%;
  26709. padding: 20px;
  26710. /* margin: 20px; */
  26711. box-sizing: border-box;
  26712. }
  26713. .elist_input .elist_input_box input {
  26714. font: inherit;
  26715. color: currentColor;
  26716. width: 200px;
  26717. padding: 8px 14px;
  26718. display: block;
  26719. min-width: 0;
  26720. outline: none;
  26721. border: 1px solid rgba(0, 0, 0, 0.23);
  26722. border-radius: 4px;
  26723. box-sizing: border-box;
  26724. background: #fff;
  26725. margin: 0 20px 0 0;
  26726. }
  26727. .elist_input .elist_input_box span {
  26728. height: 36px;
  26729. line-height: 36px;
  26730. color: rgb(82, 82, 82);
  26731. }
  26732. .elist_input .elist_input_box .remove {
  26733. height: 20px;
  26734. width: 20px;
  26735. background-size: 100% 100%;
  26736. background-position: unset;
  26737. margin-left: 5px;
  26738. }
  26739. .elist_input_box >>> .el-rate {
  26740. display: flex;
  26741. height: 36px;
  26742. align-items: center;
  26743. }
  26744. .elist_input_box .elist_inptu_text {
  26745. min-height: 50px;
  26746. /* width: 500px;
  26747. max-height: 150px; */
  26748. width: 100%;
  26749. line-height: 50px;
  26750. color: rgb(82, 82, 82);
  26751. overflow: auto;
  26752. text-indent: 5px;
  26753. background: #f7f6f9;
  26754. border-radius: 10px;
  26755. }
  26756. .elist_input_box .elist_inptu_text input {
  26757. width: 500px;
  26758. }
  26759. .elist_input_box >>> .el-rate__icon {
  26760. font-size: 24px;
  26761. }
  26762. .isClick {
  26763. background: #4d9def;
  26764. }
  26765. .bzBox {
  26766. display: flex;
  26767. flex-direction: row;
  26768. align-items: center;
  26769. }
  26770. .bzBox .yCss {
  26771. width: 7px;
  26772. height: 7px;
  26773. background: #fff;
  26774. margin: 0 16px 0 6px;
  26775. border-radius: 50%;
  26776. border: 5px solid #3681fc;
  26777. z-index: 99;
  26778. }
  26779. .bzBox > div:nth-child(2) {
  26780. font-size: 18px;
  26781. font-weight: bold;
  26782. color: #0e1e33;
  26783. }
  26784. .navTitile {
  26785. padding: 0 0px 0 15px;
  26786. font-size: 16px;
  26787. font-weight: bold;
  26788. color: #0e1e33;
  26789. height: 40px;
  26790. line-height: 40px;
  26791. }
  26792. .isTypeOne {
  26793. width: 240px;
  26794. height: 170px;
  26795. /* border: 1px solid #f8f8f8; */
  26796. border-radius: 10px;
  26797. box-shadow: 0 0 6px 1px #dfdada;
  26798. }
  26799. .e_add_top {
  26800. display: flex;
  26801. justify-content: space-between;
  26802. padding: 10px 20px;
  26803. border-radius: 3px;
  26804. background: #fff;
  26805. }
  26806. .e_add_title2 {
  26807. display: flex;
  26808. align-items: center;
  26809. }
  26810. .e_add_title2 span {
  26811. width: 40px;
  26812. }
  26813. .e_add_title {
  26814. display: flex;
  26815. align-items: center;
  26816. color: #b8b8b8;
  26817. font-size: 18px;
  26818. position: relative;
  26819. height: 40px;
  26820. }
  26821. .e_add_title span {
  26822. margin-right: 10px;
  26823. }
  26824. .e_add_title .el_input {
  26825. width: 300px;
  26826. }
  26827. .e_add_title >>> .el-input__inner {
  26828. width: 400px;
  26829. }
  26830. .e_add_btn {
  26831. }
  26832. .e_add_content {
  26833. display: flex;
  26834. width: 100%;
  26835. max-width: 650px;
  26836. height: 550px;
  26837. }
  26838. .e_add_list {
  26839. background: #fff;
  26840. height: 500px;
  26841. width: 210px;
  26842. position: relative;
  26843. margin: 15px 5px 0 0;
  26844. flex-shrink: 0;
  26845. display: flex;
  26846. flex-direction: column;
  26847. }
  26848. .e_add_list_title {
  26849. font-size: 20px;
  26850. width: 100%;
  26851. box-sizing: border-box;
  26852. padding: 15px 40px;
  26853. text-align: center;
  26854. border-bottom: 1px solid #eaeaea;
  26855. position: relative;
  26856. display: flex;
  26857. align-items: center;
  26858. justify-content: center;
  26859. height: 57px;
  26860. background: #f6f6f6;
  26861. }
  26862. .e_add_list_title span {
  26863. overflow: hidden;
  26864. white-space: nowrap;
  26865. text-overflow: ellipsis;
  26866. }
  26867. .e_add_list_title img {
  26868. position: absolute;
  26869. right: 15px;
  26870. width: 25px;
  26871. cursor: pointer;
  26872. top: 50%;
  26873. transform: translateY(-50%);
  26874. }
  26875. .e_add_list_body {
  26876. height: calc(100% - 187px);
  26877. overflow: auto;
  26878. }
  26879. .e_add_list_child {
  26880. width: 100%;
  26881. display: flex;
  26882. align-items: center;
  26883. justify-content: center;
  26884. position: relative;
  26885. box-sizing: border-box;
  26886. padding: 15px 40px;
  26887. text-align: center;
  26888. }
  26889. .e_add_list_child span {
  26890. overflow: hidden;
  26891. white-space: nowrap;
  26892. text-overflow: ellipsis;
  26893. cursor: pointer;
  26894. }
  26895. .e_add_list_child img {
  26896. position: absolute;
  26897. right: 10px;
  26898. width: 21px;
  26899. cursor: pointer;
  26900. top: 50%;
  26901. transform: translateY(-50%);
  26902. }
  26903. .e_add_list_child + .e_add_list_child {
  26904. border-top: 1px solid #eaeaea;
  26905. }
  26906. .e_add_list_child .active {
  26907. color: #409eff;
  26908. }
  26909. .e_add_list_btn {
  26910. position: absolute;
  26911. bottom: 0;
  26912. height: 50px;
  26913. background: rgb(120, 120, 254);
  26914. width: 100%;
  26915. color: #fff;
  26916. font-size: 16px;
  26917. text-align: center;
  26918. line-height: 50px;
  26919. cursor: pointer;
  26920. }
  26921. .e_add_list_detail {
  26922. position: absolute;
  26923. bottom: 0;
  26924. height: 130px;
  26925. background: rgb(120, 120, 254);
  26926. width: 100%;
  26927. color: #fff;
  26928. font-size: 16px;
  26929. display: flex;
  26930. align-items: center;
  26931. justify-content: center;
  26932. }
  26933. .e_add_list_detail textarea {
  26934. height: 90%;
  26935. width: 95%;
  26936. border: none;
  26937. resize: none;
  26938. outline: none;
  26939. padding: 5px;
  26940. box-sizing: border-box;
  26941. }
  26942. .e_add_list_pbox {
  26943. width: 100%;
  26944. max-width: 650px;
  26945. /* height: 600px; */
  26946. }
  26947. .e_add_list_pbox_title {
  26948. height: 50px;
  26949. background: #fff;
  26950. display: flex;
  26951. align-items: center;
  26952. width: 100%;
  26953. box-sizing: border-box;
  26954. padding: 0 20px;
  26955. }
  26956. .type_title {
  26957. font-size: 18px;
  26958. font-weight: 700;
  26959. }
  26960. .type_content {
  26961. font-size: 16px;
  26962. /* margin-left: 30px; */
  26963. }
  26964. .type_content span + span {
  26965. margin-left: 20px;
  26966. }
  26967. .type_content span {
  26968. cursor: pointer;
  26969. padding-bottom: 5px;
  26970. box-sizing: border-box;
  26971. }
  26972. .type_content .active {
  26973. color: #409eff;
  26974. border-bottom: 2px solid #409eff;
  26975. }
  26976. .e_add_list_pbox_content {
  26977. height: calc(100% - 50px);
  26978. display: flex;
  26979. align-items: center;
  26980. width: 100%;
  26981. background: #fff;
  26982. }
  26983. .evaCss {
  26984. display: flex;
  26985. flex-direction: row;
  26986. flex-wrap: nowrap;
  26987. align-items: flex-start;
  26988. padding: 0 0 20px;
  26989. }
  26990. .evaCss >>> .cell {
  26991. position: relative;
  26992. overflow: visible;
  26993. }
  26994. .evaCss >>> .el-table__body-wrapper {
  26995. overflow: visible;
  26996. }
  26997. .evaCss >>> .el-table {
  26998. overflow: visible;
  26999. }
  27000. .blueRootCss {
  27001. position: absolute;
  27002. top: 50%;
  27003. left: 0;
  27004. transform: translate(-20px, -50%);
  27005. }
  27006. .cru_line {
  27007. position: absolute;
  27008. bottom: 0px;
  27009. transition: all 0.5s;
  27010. left: 0px;
  27011. width: 125px;
  27012. margin-left: -25px;
  27013. }
  27014. .isNoMessage {
  27015. width: 20%;
  27016. margin: 25% auto 0;
  27017. }
  27018. .isNoMessage > img {
  27019. width: 100%;
  27020. height: 100%;
  27021. }
  27022. .fullStyle >>> .el-dialog__body {
  27023. height: 100% !important;
  27024. }
  27025. .fullStyle >>> .el-dialog,
  27026. .fullStyle {
  27027. width: 100% !important;
  27028. max-width: 100% !important;
  27029. height: 100% !important;
  27030. margin: 0 !important;
  27031. }
  27032. .full_diy >>> .el-dialog {
  27033. margin: 0 !important;
  27034. height: 100%;
  27035. padding: 4px;
  27036. }
  27037. .full_diy >>> .el-dialog__body {
  27038. height: calc(100% - 100px);
  27039. }
  27040. .full_diy2 >>> .el-dialog__body {
  27041. height: calc(100% - 50px);
  27042. padding: 0;
  27043. }
  27044. .switchCss {
  27045. /* width: 100%; */
  27046. display: flex;
  27047. flex-direction: row;
  27048. flex-wrap: nowrap;
  27049. align-items: center;
  27050. /* justify-content: center; */
  27051. }
  27052. .isClickNav {
  27053. /* color: #499eef; */
  27054. color: #000;
  27055. }
  27056. .commentImg {
  27057. width: 25px;
  27058. height: 25px;
  27059. cursor: pointer;
  27060. }
  27061. .commentImg > img {
  27062. width: 100%;
  27063. height: 100%;
  27064. }
  27065. .comment {
  27066. background: #f9f9f9;
  27067. border-radius: 0 0 4px 4px;
  27068. display: flex;
  27069. flex-direction: row;
  27070. flex-wrap: nowrap;
  27071. align-items: center;
  27072. justify-content: flex-end;
  27073. height: 35px;
  27074. }
  27075. .commentList {
  27076. display: flex;
  27077. flex-direction: row;
  27078. flex-wrap: nowrap;
  27079. align-items: center;
  27080. justify-content: center;
  27081. align-content: center;
  27082. /* margin-left: 15px; */
  27083. /* margin-left: 8px; */
  27084. }
  27085. .scoreImg {
  27086. width: 17px;
  27087. height: 17px;
  27088. }
  27089. .studentDetail {
  27090. display: flex;
  27091. flex-direction: row;
  27092. flex-wrap: nowrap;
  27093. /* align-items: center; */
  27094. align-items: flex-start;
  27095. }
  27096. .tx {
  27097. width: 50px;
  27098. }
  27099. .tx > img {
  27100. width: 100%;
  27101. height: 100%;
  27102. }
  27103. .nameAndTime {
  27104. display: flex;
  27105. flex-direction: column;
  27106. flex-wrap: nowrap;
  27107. align-items: flex-start;
  27108. margin-left: 10px;
  27109. }
  27110. .worksAnswer {
  27111. color: #4078dd;
  27112. margin: 10px 0;
  27113. font-size: 16px;
  27114. position: relative;
  27115. }
  27116. .worksAnswer > img {
  27117. width: 500px;
  27118. height: 300px;
  27119. object-fit: contain;
  27120. margin: 0 auto;
  27121. display: block;
  27122. }
  27123. .commentTop {
  27124. border-bottom: 1px solid #eaeaea;
  27125. padding-bottom: 10px;
  27126. }
  27127. .commentBox {
  27128. padding-top: 15px;
  27129. }
  27130. .pl {
  27131. font-size: 18px;
  27132. }
  27133. .plPerson {
  27134. width: 100%;
  27135. }
  27136. .plName {
  27137. display: flex;
  27138. flex-direction: row;
  27139. flex-wrap: nowrap;
  27140. align-items: baseline;
  27141. color: #78787a;
  27142. width: 100%;
  27143. }
  27144. .deleteComment {
  27145. cursor: pointer;
  27146. margin-left: auto;
  27147. color: #237ade;
  27148. }
  27149. .plContent {
  27150. margin-top: 5px;
  27151. }
  27152. .evalCss {
  27153. background: #fff;
  27154. font-size: 18px;
  27155. }
  27156. .nav {
  27157. color: #9d9d9d;
  27158. padding: 5px 0 15px 20px;
  27159. }
  27160. .middleBox {
  27161. padding: 5px 0 15px 20px;
  27162. }
  27163. .pfBox {
  27164. padding-bottom: 30px;
  27165. }
  27166. .nameAndrate {
  27167. display: flex;
  27168. flex-direction: row;
  27169. flex-wrap: nowrap;
  27170. align-items: center;
  27171. padding-bottom: 10px;
  27172. height: 30px;
  27173. line-height: 30px;
  27174. }
  27175. .nameAndrate > div {
  27176. margin-left: 10px;
  27177. color: #000;
  27178. height: 30px;
  27179. }
  27180. .nameAndrate >>> .el-rate__icon {
  27181. font-size: 28px !important;
  27182. }
  27183. .pfBox > div:nth-child(2) {
  27184. background: #f7f6f9;
  27185. width: 400px;
  27186. min-height: 45px;
  27187. border-radius: 10px;
  27188. font-size: 16px;
  27189. display: flex;
  27190. flex-wrap: wrap;
  27191. align-items: center;
  27192. padding: 10px 20px;
  27193. box-sizing: border-box;
  27194. color: #000;
  27195. }
  27196. .bz {
  27197. display: flex;
  27198. flex-direction: row;
  27199. flex-wrap: nowrap;
  27200. align-items: flex-start;
  27201. }
  27202. .bz > div {
  27203. padding: 0 10px;
  27204. }
  27205. .select_box2_title {
  27206. background: #fff;
  27207. border-radius: 5px;
  27208. padding: 15px 10px;
  27209. box-sizing: border-box;
  27210. margin-bottom: 10px;
  27211. display: flex;
  27212. flex-direction: row;
  27213. flex-wrap: nowrap;
  27214. align-items: center;
  27215. }
  27216. .select_box2_title > div:nth-child(2) {
  27217. margin-left: 10px;
  27218. color: #c4c4c4;
  27219. }
  27220. .select_box2_box {
  27221. display: flex;
  27222. height: 500px;
  27223. }
  27224. .select_box2_img {
  27225. width: calc(100% - 310px);
  27226. height: 100%;
  27227. overflow: auto;
  27228. background: #fff;
  27229. border-radius: 5px;
  27230. }
  27231. .select_box2_img img {
  27232. width: 100%;
  27233. }
  27234. .select_box2_answer {
  27235. background: #fff;
  27236. margin-left: 10px;
  27237. border-radius: 5px;
  27238. width: 300px;
  27239. overflow: auto;
  27240. height: 90%;
  27241. display: flex;
  27242. flex-direction: column;
  27243. align-items: flex-start;
  27244. padding-top: 10px;
  27245. box-sizing: border-box;
  27246. position: relative;
  27247. }
  27248. .select_answer_title {
  27249. padding: 0 0 15px 20px;
  27250. color: #c4c4c4;
  27251. }
  27252. .select_box2_answer_box {
  27253. margin: 0 0 10px 20px;
  27254. width: 85%;
  27255. display: flex;
  27256. flex-direction: row;
  27257. flex-wrap: nowrap;
  27258. align-items: center;
  27259. }
  27260. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27261. color: #000;
  27262. }
  27263. .upAnswerCss {
  27264. position: absolute;
  27265. bottom: 15px;
  27266. right: 15px;
  27267. }
  27268. .upAnswerCss >>> .el-button {
  27269. width: 95px;
  27270. height: 35px;
  27271. line-height: 35px;
  27272. padding: 0;
  27273. }
  27274. .rightWidthCss {
  27275. width: 60%;
  27276. display: flex;
  27277. flex-direction: row;
  27278. align-items: flex-start;
  27279. }
  27280. .rightAnswer {
  27281. display: flex;
  27282. flex-direction: row;
  27283. flex-wrap: nowrap;
  27284. align-items: center;
  27285. color: red;
  27286. margin-bottom: 31px;
  27287. }
  27288. .rightAnswerCss {
  27289. display: flex;
  27290. flex-direction: column;
  27291. flex-wrap: nowrap;
  27292. padding-top: 60px;
  27293. }
  27294. .blueCss {
  27295. color: #767de1;
  27296. margin-left: 10px;
  27297. }
  27298. .redCss {
  27299. color: red;
  27300. }
  27301. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27302. color: rgb(0 123 255) !important;
  27303. }
  27304. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27305. color: rgb(0 123 255) !important;
  27306. }
  27307. .zuoyeYulan {
  27308. padding-top: 0;
  27309. font-size: 18px;
  27310. display: flex;
  27311. align-items: flex-end;
  27312. }
  27313. .buttonA {
  27314. margin-left: 10px;
  27315. padding: 0;
  27316. }
  27317. .displayBox {
  27318. margin-bottom: 10px;
  27319. display: block;
  27320. border-bottom: 3px solid #eee;
  27321. display: flex;
  27322. align-items: center;
  27323. }
  27324. .easy_comment {
  27325. width: calc(100% - 90px);
  27326. margin-left: 10px;
  27327. display: flex;
  27328. flex-wrap: wrap;
  27329. }
  27330. .easy_comment > div {
  27331. border: 1px solid #4a4a4a;
  27332. color: #666;
  27333. border-radius: 15px;
  27334. padding: 5px 10px;
  27335. font-size: 16px;
  27336. margin-bottom: 10px;
  27337. margin-right: 5px;
  27338. cursor: pointer;
  27339. }
  27340. .easy_comment div:hover {
  27341. border: 1px solid #f7ba2a;
  27342. color: #c69217;
  27343. }
  27344. .xuan_right_box {
  27345. padding: 10px 0;
  27346. background: #f0f4fa;
  27347. margin: 0 15px 0 25px;
  27348. border-bottom-left-radius: 5px;
  27349. border-bottom-right-radius: 5px;
  27350. width: 91.5%;
  27351. }
  27352. .tool_right_box {
  27353. display: flex;
  27354. align-items: center;
  27355. }
  27356. .tool_right_box + .tool_right_box {
  27357. margin-top: 10px;
  27358. }
  27359. .right_box_xuan {
  27360. border-radius: 5px;
  27361. padding: 5px;
  27362. margin-left: 10px;
  27363. min-width: 85px;
  27364. background: #fff;
  27365. color: #0061ff;
  27366. border: 1px solid #0061ff;
  27367. font-size: 14px;
  27368. }
  27369. .pButton:hover {
  27370. opacity: 1 !important;
  27371. }
  27372. .pButton {
  27373. position: fixed;
  27374. text-align: center;
  27375. cursor: pointer;
  27376. z-index: 999;
  27377. right: 20px;
  27378. top: 110px;
  27379. width: 50px;
  27380. height: 50px;
  27381. display: flex;
  27382. align-items: center;
  27383. justify-content: center;
  27384. border-radius: 5px;
  27385. }
  27386. .pzClass {
  27387. width: calc(100% - 340px);
  27388. }
  27389. .newDialogCss {
  27390. /* position: fixed;
  27391. right: 5%;
  27392. top: 50%;
  27393. width: 340px;
  27394. transform: translateY(-50%);
  27395. height: 60%;
  27396. box-shadow: 0px 0 8px 0px #555555;
  27397. border-radius: 15px;
  27398. z-index: 999; */
  27399. position: fixed;
  27400. right: 20px;
  27401. top: 101px;
  27402. width: 330px;
  27403. height: calc(100% - 80px);
  27404. z-index: 999;
  27405. background: #fff;
  27406. border-top-right-radius: 0px;
  27407. border-bottom-right-radius: 0px;
  27408. overflow: hidden;
  27409. }
  27410. .newDialogCss > .scoreList {
  27411. width: 100%;
  27412. height: 100%;
  27413. box-sizing: border-box;
  27414. padding: 10px 15px;
  27415. overflow: auto;
  27416. padding-bottom: 80px;
  27417. }
  27418. .pzTop {
  27419. color: #fff;
  27420. background: #000;
  27421. display: flex;
  27422. flex-direction: row;
  27423. flex-wrap: nowrap;
  27424. align-items: center;
  27425. justify-content: space-between;
  27426. height: 40px;
  27427. border-radius: 15px 15px 0 0;
  27428. user-select: none;
  27429. }
  27430. .pzTop2 .checkbox {
  27431. display: flex;
  27432. align-items: center;
  27433. padding: 5px 10px;
  27434. flex: 0 0 auto;
  27435. font-weight: bold;
  27436. border-bottom: 1px solid #eee;
  27437. justify-content: space-between;
  27438. }
  27439. .checkbox > .cb-tabList {
  27440. display: flex;
  27441. align-items: center;
  27442. }
  27443. .cb-tabList > div {
  27444. margin-right: 20px;
  27445. font-weight: 400;
  27446. cursor: pointer;
  27447. }
  27448. .cb-tabList > .cb-tabItem {
  27449. color: #1684fc;
  27450. position: relative;
  27451. }
  27452. .cb-tabItem::after {
  27453. content: "";
  27454. width: 100%;
  27455. height: 2px;
  27456. background: #1684fc;
  27457. position: absolute;
  27458. bottom: -5px;
  27459. left: 0;
  27460. }
  27461. .pzTop2 .check {
  27462. text-align: center;
  27463. cursor: pointer;
  27464. box-sizing: border-box;
  27465. display: flex;
  27466. }
  27467. .pzTop2 img {
  27468. width: 25px;
  27469. cursor: pointer;
  27470. }
  27471. .pzTop > div:nth-child(1) {
  27472. padding-left: 10px;
  27473. }
  27474. .pzTop > div:nth-child(2) {
  27475. width: 15px;
  27476. height: 15px;
  27477. padding-right: 10px;
  27478. cursor: pointer;
  27479. }
  27480. .pzTop > div:nth-child(2) > img {
  27481. width: 100%;
  27482. height: 100%;
  27483. }
  27484. .pzBox,
  27485. .noPzBox {
  27486. height: calc(100% - 60px);
  27487. /* background: #ededed; */
  27488. background: #fff;
  27489. /* border-radius: 0 0 15px 15px; */
  27490. }
  27491. .noPzBox {
  27492. display: flex;
  27493. flex-direction: column;
  27494. flex-wrap: nowrap;
  27495. justify-content: center;
  27496. align-items: center;
  27497. }
  27498. .pzList {
  27499. background: #f7f7f7;
  27500. width: 90%;
  27501. margin: 0 auto 15px;
  27502. border-radius: 5px;
  27503. }
  27504. .pzNavTop {
  27505. display: flex;
  27506. flex-direction: row;
  27507. flex-wrap: nowrap;
  27508. padding: 10px 10px 0 10px;
  27509. align-items: center;
  27510. }
  27511. .pzDelete {
  27512. cursor: pointer;
  27513. margin-left: auto;
  27514. font-size: 14px;
  27515. color: #afafaf;
  27516. }
  27517. .pzNavTop > div:nth-child(1) {
  27518. background: #3760af;
  27519. width: 35px;
  27520. height: 35px;
  27521. color: #fff;
  27522. text-align: center;
  27523. line-height: 35px;
  27524. border-radius: 50%;
  27525. font-size: 14px;
  27526. }
  27527. .pzNavTop > div:nth-child(2) {
  27528. font-size: 18px;
  27529. color: #959595;
  27530. margin-left: 5px;
  27531. }
  27532. .pzContent {
  27533. padding: 10px;
  27534. word-break: break-word;
  27535. }
  27536. .pzContent audio {
  27537. width: 100%;
  27538. }
  27539. .pzContent audio::-webkit-media-controls-panel {
  27540. background: #fff;
  27541. }
  27542. .pzContent >>> img {
  27543. max-width: 100%;
  27544. }
  27545. .pzListBox {
  27546. padding-top: 15px;
  27547. height: calc(100% - 110px);
  27548. overflow: auto;
  27549. }
  27550. .addPzButton {
  27551. position: relative;
  27552. margin-top: 3px;
  27553. width: 100%;
  27554. }
  27555. .addPzButton .img1 {
  27556. position: absolute;
  27557. top: 50%;
  27558. right: 25px;
  27559. transform: translateY(-50%);
  27560. height: 100%;
  27561. display: flex;
  27562. align-items: center;
  27563. }
  27564. .addPzButton .img1 div {
  27565. display: flex;
  27566. }
  27567. .addPzButton .img1 div img {
  27568. width: 28px;
  27569. margin-left: 10px;
  27570. cursor: pointer;
  27571. }
  27572. .addPzButton .img1 div span {
  27573. font-size: 14px;
  27574. margin: 4px 0 0 3px;
  27575. color: #afafaf;
  27576. }
  27577. .addPz {
  27578. background: #4b79ce;
  27579. width: 100px;
  27580. color: #fff;
  27581. font-size: 12px;
  27582. height: 30px;
  27583. margin: 0 auto;
  27584. text-align: center;
  27585. line-height: 30px;
  27586. border-radius: 10px;
  27587. cursor: pointer;
  27588. }
  27589. .addDialogCss {
  27590. position: fixed;
  27591. width: 600px;
  27592. height: 70%;
  27593. min-height: 450px;
  27594. box-shadow: 0px 0 8px 0px #555555;
  27595. border-radius: 15px;
  27596. z-index: 999;
  27597. left: 50%;
  27598. top: 50%;
  27599. margin: -18% 0 0 -300px;
  27600. }
  27601. .teacherPz {
  27602. display: flex;
  27603. flex-direction: row;
  27604. align-items: center;
  27605. flex-wrap: nowrap;
  27606. }
  27607. .teacherPzImg {
  27608. width: 30px;
  27609. height: 30px;
  27610. }
  27611. .teacherPzImg > img {
  27612. width: 100%;
  27613. height: 100%;
  27614. }
  27615. .addPzBox {
  27616. height: calc(100% - 40px);
  27617. background: #ededed;
  27618. border-bottom-left-radius: 15px;
  27619. border-bottom-right-radius: 15px;
  27620. }
  27621. .pzAudioClass {
  27622. margin: 15px 14px;
  27623. background: #fff;
  27624. height: 100%;
  27625. display: flex;
  27626. justify-content: center;
  27627. align-items: center;
  27628. }
  27629. .pzConText {
  27630. width: 95%;
  27631. height: 100%;
  27632. margin: 10px auto 0;
  27633. border: none;
  27634. background: #fff;
  27635. border-radius: 0px;
  27636. }
  27637. .pzConText >>> .text {
  27638. height: calc(100% - 82px);
  27639. }
  27640. .addTextCss {
  27641. background: #4b79ce;
  27642. width: 80px;
  27643. height: 30px;
  27644. text-align: center;
  27645. color: #fff;
  27646. line-height: 30px;
  27647. border-radius: 10px;
  27648. margin: 10px auto 0;
  27649. cursor: pointer;
  27650. }
  27651. .pzConText:focus-visible {
  27652. border: none !important;
  27653. }
  27654. .maxWidth {
  27655. width: 1000px;
  27656. }
  27657. .noPz {
  27658. width: 150px;
  27659. margin: 0 auto 20%;
  27660. }
  27661. .noPz > img {
  27662. width: 100%;
  27663. height: 100%;
  27664. }
  27665. .timeAndReply {
  27666. display: flex;
  27667. flex-direction: row;
  27668. flex-wrap: nowrap;
  27669. justify-content: space-between;
  27670. align-items: center;
  27671. font-size: 14px;
  27672. box-sizing: border-box;
  27673. padding: 0 10px 10px 0px;
  27674. }
  27675. .timeAndReply .time {
  27676. color: #bfbfbf;
  27677. padding: 0 0 0 10px;
  27678. box-sizing: border-box;
  27679. }
  27680. .timeAndReply > div:last-child {
  27681. cursor: pointer;
  27682. color: #777;
  27683. }
  27684. /* table 样式 */
  27685. .cont >>> table {
  27686. border-top: 1px solid #ccc;
  27687. border-left: 1px solid #ccc;
  27688. }
  27689. .cont >>> table td,
  27690. .cont >>> table th {
  27691. border-bottom: 1px solid #ccc;
  27692. border-right: 1px solid #ccc;
  27693. /* padding: 20px 5px; */
  27694. padding: 5px 10px;
  27695. max-width: 0px;
  27696. height: 30px;
  27697. vertical-align: baseline;
  27698. box-sizing: border-box;
  27699. }
  27700. .cont >>> table th {
  27701. border-bottom: 2px solid #ccc;
  27702. text-align: center;
  27703. }
  27704. /* blockquote 样式 */
  27705. .cont >>> blockquote {
  27706. display: block;
  27707. border-left: 8px solid #d0e5f2;
  27708. padding: 5px 10px;
  27709. margin: 10px 0;
  27710. line-height: 1.4;
  27711. font-size: 100%;
  27712. background-color: #f1f1f1;
  27713. }
  27714. /* code 样式 */
  27715. .cont >>> code {
  27716. display: inline-block;
  27717. /* *display: inline; */
  27718. zoom: 1;
  27719. background-color: #f1f1f1;
  27720. border-radius: 3px;
  27721. padding: 3px 5px;
  27722. margin: 0 3px;
  27723. }
  27724. .cont >>> pre code {
  27725. display: block;
  27726. }
  27727. /* ul ol 样式 */
  27728. .cont >>> ul,
  27729. ol {
  27730. margin: 10px 0 10px 20px;
  27731. }
  27732. .addPzCheck {
  27733. display: flex;
  27734. flex-direction: row;
  27735. flex-wrap: nowrap;
  27736. padding: 10px 15px 0;
  27737. }
  27738. .addPzCheck span {
  27739. cursor: pointer;
  27740. padding-bottom: 5px;
  27741. font-weight: bold;
  27742. }
  27743. .addPzCheck span + span {
  27744. margin-left: 10px;
  27745. }
  27746. .addPzCheck .isChooseActive {
  27747. color: #3e88f4;
  27748. border-bottom: 2px solid #2f80f3;
  27749. }
  27750. /* code 样式 */
  27751. .cont {
  27752. /* -webkit-user-modify: read-write; */
  27753. overflow-wrap: break-word;
  27754. -webkit-line-break: after-white-space;
  27755. word-break: break-word;
  27756. white-space: pre-line;
  27757. }
  27758. .scoreBox,
  27759. .scoreDetailBox {
  27760. display: flex;
  27761. align-items: center;
  27762. justify-content: flex-start;
  27763. margin-top: 20px;
  27764. font-size: 18px;
  27765. width: 100%;
  27766. }
  27767. .scoreBox .t,
  27768. .scoreDetailBox .t {
  27769. margin-right: 10px;
  27770. width: 100px;
  27771. text-align: right;
  27772. }
  27773. .scoreDetailBox {
  27774. align-items: flex-start;
  27775. }
  27776. .scoreDetailBox >>> .el-textarea {
  27777. width: calc(100% - 200px);
  27778. }
  27779. .scoreBox >>> .el-input {
  27780. width: 130px;
  27781. font-size: 38px;
  27782. }
  27783. .scoreBox >>> .el-input__inner {
  27784. height: 60px;
  27785. }
  27786. .answerScore {
  27787. position: absolute;
  27788. top: 10px;
  27789. right: 10px;
  27790. background: #0000008f;
  27791. border-radius: 5px;
  27792. padding: 3px 5px;
  27793. font-size: 14px;
  27794. color: #fff;
  27795. cursor: pointer;
  27796. }
  27797. .open_box .switch_box {
  27798. width: 100%;
  27799. margin: 0 auto;
  27800. display: flex;
  27801. justify-content: space-between;
  27802. }
  27803. .open_box .switch_box + .switch_box {
  27804. margin-top: 10px;
  27805. }
  27806. .deleteImg,
  27807. .deleteImg1 {
  27808. width: 25px !important;
  27809. height: 25px !important;
  27810. cursor: pointer;
  27811. position: absolute;
  27812. top: 10px;
  27813. right: 10px;
  27814. }
  27815. .deleteImg2 {
  27816. width: 23px !important;
  27817. height: 23px !important;
  27818. top: 5px;
  27819. right: 5px;
  27820. }
  27821. .deleteImg1 {
  27822. width: 23px !important;
  27823. height: 23px !important;
  27824. top: 5px !important;
  27825. right: 30px !important;
  27826. }
  27827. .rightW {
  27828. right: 40px;
  27829. }
  27830. .drawPBox {
  27831. display: flex;
  27832. flex-direction: column;
  27833. position: relative;
  27834. }
  27835. .drawPBox span {
  27836. font-size: 18px;
  27837. color: #606266;
  27838. padding-bottom: 10px;
  27839. margin: 10px 0;
  27840. border-bottom: 1px solid #eaeaea;
  27841. }
  27842. .drawPBox img {
  27843. width: 500px;
  27844. height: 300px;
  27845. object-fit: contain;
  27846. cursor: pointer;
  27847. margin: 0 auto;
  27848. }
  27849. .sentenBox {
  27850. background: #fff;
  27851. height: 450px;
  27852. overflow: auto;
  27853. background-image: url("../../assets/icon/conSentences/stuBg.png");
  27854. background-position: 102%;
  27855. background-repeat: no-repeat;
  27856. background-size: 60%;
  27857. }
  27858. .addSen {
  27859. background: #409efe;
  27860. width: 90px;
  27861. color: #fff;
  27862. height: 35px;
  27863. text-align: center;
  27864. line-height: 35px;
  27865. border-radius: 5px;
  27866. float: right;
  27867. margin: 10px 20px 0 0;
  27868. cursor: pointer;
  27869. }
  27870. .sentenTop {
  27871. display: flex;
  27872. flex-direction: row;
  27873. flex-wrap: nowrap;
  27874. align-items: center;
  27875. padding: 55px 0 0 20px;
  27876. box-sizing: border-box;
  27877. }
  27878. .sentenTop > div:nth-child(2) {
  27879. width: 300px;
  27880. margin: 0 15px;
  27881. }
  27882. .sentenTop > div:nth-child(3) {
  27883. background: #409efe;
  27884. color: #fff;
  27885. width: 65px;
  27886. height: 35px;
  27887. text-align: center;
  27888. line-height: 35px;
  27889. border-radius: 5px;
  27890. cursor: pointer;
  27891. }
  27892. .cardList,
  27893. .cardList1 {
  27894. padding: 10px 0 10px 0;
  27895. display: flex;
  27896. flex-direction: row;
  27897. flex-wrap: wrap;
  27898. align-items: center;
  27899. box-sizing: border-box;
  27900. border-bottom: 1px solid #f4f4f4;
  27901. width: 98%;
  27902. margin: 0 auto;
  27903. min-width: 60%;
  27904. max-width: 85%;
  27905. }
  27906. .cardList1 {
  27907. padding: 10px 0 10px 10px !important;
  27908. margin: 0 !important;
  27909. }
  27910. .cardBox {
  27911. display: flex;
  27912. flex-direction: row;
  27913. flex-wrap: wrap;
  27914. align-items: center;
  27915. align-content: center;
  27916. }
  27917. .cardBox > div {
  27918. margin-bottom: 10px;
  27919. }
  27920. .isCard,
  27921. .isChooseCard,
  27922. .noCard,
  27923. .isCard1 {
  27924. min-width: 130px;
  27925. width: auto;
  27926. height: 60px;
  27927. text-align: center;
  27928. line-height: 60px;
  27929. font-size: 20px;
  27930. cursor: pointer;
  27931. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  27932. background-size: cover;
  27933. transition: all 2s;
  27934. margin-right: 20px;
  27935. background-size: 100% 100%;
  27936. padding: 0 20px;
  27937. box-sizing: border-box;
  27938. }
  27939. .isCard > div,
  27940. .noCard > div,
  27941. .isCard1 > div {
  27942. white-space: nowrap;
  27943. overflow: hidden;
  27944. text-overflow: ellipsis;
  27945. width: 100%;
  27946. margin: 0 auto;
  27947. }
  27948. .noCard {
  27949. background-image: none;
  27950. }
  27951. .isCard1 {
  27952. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  27953. }
  27954. .isChooseCard {
  27955. background-image: none;
  27956. border: 1px dashed #b9b9b9;
  27957. border-radius: 10px;
  27958. }
  27959. .card {
  27960. width: 130px;
  27961. height: 60px;
  27962. }
  27963. .card > img {
  27964. width: 100%;
  27965. height: 100%;
  27966. }
  27967. .rightCardBox {
  27968. margin: 10px 0 0 10px;
  27969. }
  27970. .rightCardBox > div:nth-child(1) {
  27971. margin-bottom: 10px;
  27972. }
  27973. .cardCss {
  27974. display: flex;
  27975. flex-direction: column;
  27976. flex-wrap: nowrap;
  27977. align-items: center;
  27978. border-bottom: 3px solid #b4c3d3;
  27979. padding: 0 0 5px 0;
  27980. margin-right: 10px;
  27981. }
  27982. .cardCss > div:nth-child(2) {
  27983. background: #5b7b9d;
  27984. color: #fff;
  27985. width: 20px;
  27986. height: 20px;
  27987. border-radius: 50%;
  27988. text-align: center;
  27989. line-height: 20px;
  27990. }
  27991. .isWrong {
  27992. display: flex;
  27993. flex-direction: row;
  27994. flex-wrap: nowrap;
  27995. align-content: center;
  27996. align-items: center;
  27997. }
  27998. .answerRight {
  27999. width: 25%;
  28000. }
  28001. .isTj {
  28002. display: flex;
  28003. flex-direction: row;
  28004. flex-wrap: nowrap;
  28005. align-items: center;
  28006. }
  28007. .isTj > div:nth-child(2) {
  28008. color: #727070;
  28009. margin-left: 10px;
  28010. }
  28011. .isTjImg {
  28012. width: 30px;
  28013. height: 30px;
  28014. }
  28015. .isTjImg > img {
  28016. width: 100%;
  28017. height: 100%;
  28018. }
  28019. .cardAnswerBox {
  28020. font-size: 18px;
  28021. width: 97%;
  28022. border: 5px;
  28023. padding: 0;
  28024. border-radius: 5px;
  28025. margin: 10px auto;
  28026. word-break: break-word;
  28027. }
  28028. .w_name {
  28029. margin-bottom: 10px;
  28030. }
  28031. .w_name span {
  28032. font-size: 16px;
  28033. }
  28034. .w_teachert {
  28035. width: 50px !important;
  28036. position: absolute;
  28037. height: auto !important;
  28038. z-index: 10;
  28039. right: 25px;
  28040. top: -25px;
  28041. }
  28042. /* .group_workBox {
  28043. } */
  28044. .group_workBox + .group_workBox {
  28045. margin-top: 20px;
  28046. }
  28047. .group_box {
  28048. padding-bottom: 20px;
  28049. border-bottom: 2px solid #f0f0f0;
  28050. margin-top: 10px;
  28051. }
  28052. .group_title {
  28053. display: flex;
  28054. align-items: center;
  28055. justify-content: space-between;
  28056. width: 95%;
  28057. }
  28058. .group_name {
  28059. background-image: url(../../assets/icon/groupN.png);
  28060. width: 220px;
  28061. background-size: 100% 100%;
  28062. height: 67px;
  28063. padding: 0 20px 0 43px;
  28064. box-sizing: border-box;
  28065. line-height: 63px;
  28066. color: #fff;
  28067. overflow: hidden;
  28068. white-space: nowrap;
  28069. text-overflow: ellipsis;
  28070. }
  28071. .group_work {
  28072. width: 100%;
  28073. padding: 0 10px;
  28074. box-sizing: border-box;
  28075. display: flex;
  28076. flex-wrap: wrap;
  28077. }
  28078. .g_d_box {
  28079. display: flex;
  28080. flex-flow: wrap;
  28081. justify-content: space-around;
  28082. }
  28083. .g_d_box .isChair {
  28084. background-image: url(../../assets/avatar.png) !important;
  28085. }
  28086. .g_d_group {
  28087. width: 500px;
  28088. margin-bottom: 80px;
  28089. }
  28090. .g_d_group_chair {
  28091. display: flex;
  28092. align-items: center;
  28093. justify-content: center;
  28094. }
  28095. .g_d_group_chair > div + div {
  28096. margin-left: 30px;
  28097. }
  28098. .g_d_group_chair > div,
  28099. .g_d_group_chair2 > div {
  28100. display: flex;
  28101. flex-direction: column;
  28102. align-items: center;
  28103. }
  28104. .g_d_group_chair > div > span:nth-child(1),
  28105. .g_d_group_chair2 > div > span:nth-child(1) {
  28106. background-image: url(../../assets/icon/chair.png);
  28107. width: 50px;
  28108. height: 50px;
  28109. display: block;
  28110. background-size: 100% 100%;
  28111. }
  28112. .g_d_group_tableBox {
  28113. display: flex;
  28114. align-items: center;
  28115. justify-content: center;
  28116. }
  28117. .g_d_group_chair2 {
  28118. display: flex;
  28119. flex-direction: column;
  28120. align-items: center;
  28121. justify-content: center;
  28122. }
  28123. .g_d_group_chair2 > div + div {
  28124. margin-top: 10px;
  28125. }
  28126. .g_d_group_table {
  28127. background-image: url(../../assets/icon/groupBg.png);
  28128. width: 354px;
  28129. height: 196px;
  28130. background-size: 100% 100%;
  28131. display: flex;
  28132. align-items: center;
  28133. justify-content: center;
  28134. flex-direction: column;
  28135. color: #fff;
  28136. }
  28137. .g_d_group_table > div:nth-child(1) {
  28138. font-size: 24px;
  28139. margin-bottom: 5px;
  28140. }
  28141. .g_d_group_table > div:nth-child(2) div {
  28142. cursor: pointer;
  28143. background: #2e77bf;
  28144. padding: 4px 10px;
  28145. border-radius: 5px;
  28146. }
  28147. .groupBox {
  28148. }
  28149. .groupContent + .groupContent {
  28150. margin-top: 30px;
  28151. }
  28152. .groupTitle {
  28153. font-size: 24px;
  28154. color: rgb(80, 80, 80);
  28155. margin-bottom: 20px;
  28156. }
  28157. .groupName {
  28158. display: flex;
  28159. align-items: center;
  28160. }
  28161. .groupn {
  28162. font-size: 15px;
  28163. margin-right: 10px;
  28164. }
  28165. .groupName + .groupName {
  28166. margin-top: 15px;
  28167. }
  28168. .groupBtn {
  28169. margin-left: 10px;
  28170. }
  28171. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28172. text-align: left;
  28173. }
  28174. .g_d_btnBox {
  28175. display: flex;
  28176. justify-content: flex-end;
  28177. align-items: center;
  28178. margin-bottom: 20px;
  28179. }
  28180. .updateChair {
  28181. position: relative;
  28182. }
  28183. .updateChairBtn {
  28184. position: absolute;
  28185. width: 50px;
  28186. height: 50px;
  28187. overflow: hidden;
  28188. /* display: flex; */
  28189. align-items: center;
  28190. justify-content: center;
  28191. background: #00000087;
  28192. color: #fff;
  28193. border-radius: 50px;
  28194. display: none;
  28195. cursor: pointer;
  28196. }
  28197. .updateChair:hover .updateChairBtn {
  28198. display: flex;
  28199. }
  28200. .group_staic_box {
  28201. display: flex;
  28202. padding: 30px 40px 10px;
  28203. flex-wrap: wrap;
  28204. }
  28205. .group_staic {
  28206. /* width: 50%; */
  28207. margin-bottom: 20px;
  28208. display: flex;
  28209. align-items: center;
  28210. }
  28211. .group_staic span:nth-child(1) {
  28212. width: 150px;
  28213. text-align: right;
  28214. margin-right: 15px;
  28215. }
  28216. .group_staic span:nth-child(2) {
  28217. background: rgb(0 123 255);
  28218. color: #fff;
  28219. border-radius: 5px;
  28220. padding: 5px;
  28221. }
  28222. .codeFileBox {
  28223. height: 300px;
  28224. background: #fff;
  28225. display: flex;
  28226. align-items: center;
  28227. justify-content: center;
  28228. }
  28229. .codeFileBox img {
  28230. width: 200px;
  28231. margin: 0;
  28232. height: auto;
  28233. }
  28234. .codeFileBox div {
  28235. background: rgb(80, 142, 226);
  28236. color: #fff;
  28237. padding: 10px 20px;
  28238. border-radius: 25px;
  28239. cursor: pointer;
  28240. margin-left: 15px;
  28241. }
  28242. .radioBox {
  28243. display: flex;
  28244. flex-direction: column;
  28245. flex-wrap: nowrap;
  28246. align-items: flex-start;
  28247. }
  28248. .radioBox > div {
  28249. margin: 10px 0 0 10px;
  28250. }
  28251. /* .radioBox >>> .el-radio__input,
  28252. .radioBox >>> .el-checkbox__inner {
  28253. margin-left: 10px;
  28254. } */
  28255. .radioBox >>> .el-radio__label,
  28256. .radioBox >>> .el-checkbox__label {
  28257. display: flex;
  28258. align-items: center;
  28259. width: 100%;
  28260. }
  28261. .radioBox >>> .el-radio__label > span {
  28262. width: 100%;
  28263. display: -webkit-box;
  28264. overflow: hidden;
  28265. white-space: normal !important;
  28266. text-overflow: ellipsis;
  28267. word-wrap: break-word;
  28268. }
  28269. .inImg {
  28270. width: 100px;
  28271. cursor: pointer;
  28272. }
  28273. .inImg > img {
  28274. width: 100%;
  28275. height: 100%;
  28276. object-fit: cover;
  28277. }
  28278. .timuImgBox {
  28279. margin: 10px 0;
  28280. display: flex;
  28281. flex-direction: column;
  28282. flex-wrap: wrap;
  28283. align-items: flex-start;
  28284. }
  28285. .timuImg {
  28286. width: 150px;
  28287. margin: 5px 0;
  28288. cursor: pointer;
  28289. }
  28290. .timuImg > img {
  28291. width: 100%;
  28292. height: 100%;
  28293. object-fit: cover;
  28294. }
  28295. .worksTop {
  28296. display: flex;
  28297. flex-direction: row;
  28298. align-items: flex-end;
  28299. }
  28300. .worksTitle {
  28301. display: flex;
  28302. flex-direction: row;
  28303. flex-wrap: nowrap;
  28304. align-items: center;
  28305. }
  28306. .worksTitle::before,
  28307. .worksTop::before {
  28308. content: "";
  28309. display: block;
  28310. width: 3px;
  28311. height: 20px;
  28312. background: #0061ff;
  28313. border-radius: 3px;
  28314. margin: 0 5px 0 0;
  28315. }
  28316. .corOpen {
  28317. margin: 0 0 0 10px;
  28318. font-size: 14px;
  28319. cursor: pointer;
  28320. color: #505050;
  28321. }
  28322. .corOpen:hover {
  28323. color: #499eef;
  28324. }
  28325. .navCorOpenBox {
  28326. display: flex;
  28327. flex-direction: row;
  28328. align-items: center;
  28329. justify-content: space-between;
  28330. height: 55px;
  28331. background: #ffffff;
  28332. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28333. border-radius: 8px 8px 0px 0px;
  28334. z-index: 9;
  28335. position: relative;
  28336. }
  28337. .navCorOpen {
  28338. padding-right: 15px;
  28339. cursor: pointer;
  28340. width: 45px;
  28341. display: flex;
  28342. }
  28343. .navCorOpen > img {
  28344. width: 100%;
  28345. height: 100%;
  28346. }
  28347. .mlImg {
  28348. width: 40px !important;
  28349. min-width: 40px;
  28350. cursor: pointer;
  28351. transform: rotate(180deg);
  28352. }
  28353. .mlImg > img {
  28354. width: 100%;
  28355. height: 100%;
  28356. }
  28357. .navLeftCss {
  28358. width: 100% !important;
  28359. left: 0 !important;
  28360. }
  28361. .isContentCss {
  28362. width: 100% !important;
  28363. }
  28364. .isAllWidth {
  28365. width: 100% !important;
  28366. }
  28367. .group_switch {
  28368. margin-right: 10px;
  28369. height: 30px;
  28370. display: flex;
  28371. align-items: center;
  28372. }
  28373. .group_switch > span {
  28374. margin-right: 5px;
  28375. }
  28376. .fileC_box {
  28377. padding-top: 15px;
  28378. }
  28379. .fileC_box > .fileC_title {
  28380. padding: 10px 5px 14px 10px;
  28381. border-top: 1px solid #cad1dc;
  28382. font-size: 14px;
  28383. font-weight: 400;
  28384. color: #cad1dc;
  28385. width: calc(100% - 20px);
  28386. margin: 0 auto;
  28387. box-sizing: border-box;
  28388. }
  28389. .pl_select_box {
  28390. height: 40px;
  28391. line-height: 40px;
  28392. width: 100%;
  28393. cursor: pointer;
  28394. padding: 0 20px;
  28395. box-sizing: border-box;
  28396. border-radius: 5px;
  28397. border: 1px solid #d6d6d6;
  28398. white-space: nowrap;
  28399. overflow: hidden;
  28400. text-overflow: ellipsis;
  28401. background: #fff;
  28402. text-align: left;
  28403. }
  28404. .newButton {
  28405. width: 102px;
  28406. height: 36px;
  28407. background: #e7ebf1;
  28408. border-radius: 4px;
  28409. color: #0e1e33;
  28410. font-weight: 400;
  28411. font-size: 14px;
  28412. border: none;
  28413. float: right;
  28414. margin-left: 10px;
  28415. }
  28416. .el-table >>> .even_row {
  28417. background-color: #f0f4fa;
  28418. }
  28419. .stageBoxCss,
  28420. .stageBoxIsCss {
  28421. display: flex;
  28422. flex-direction: row;
  28423. flex-wrap: nowrap;
  28424. align-items: center;
  28425. height: 50px;
  28426. border-bottom: 1px solid #e2f5fc;
  28427. cursor: pointer;
  28428. width: 100%;
  28429. }
  28430. .stageBoxIsCss {
  28431. background: #0061ff;
  28432. color: #fff;
  28433. border-radius: 8px;
  28434. }
  28435. .closeTri,
  28436. .closeTri1 {
  28437. min-width: 15px;
  28438. width: 15px;
  28439. height: 15px;
  28440. }
  28441. .closeTri1 {
  28442. padding-left: 10px;
  28443. cursor: pointer;
  28444. }
  28445. .closeTri > img,
  28446. .closeTri1 > img {
  28447. width: 100%;
  28448. height: 100%;
  28449. /* transition: all .5s; */
  28450. }
  28451. .noToolBlue {
  28452. min-width: 10px;
  28453. width: 10px;
  28454. height: 10px;
  28455. background: #0061ff;
  28456. border-radius: 50%;
  28457. margin-left: 13px;
  28458. }
  28459. .stageChild,
  28460. .toolChild {
  28461. height: 0;
  28462. overflow: hidden;
  28463. transition: all 0.5s;
  28464. }
  28465. /* .toolChild { */
  28466. /* margin: 0 0 0 17px;
  28467. padding: 0 0 0 20px;
  28468. border-left: 1px solid #d7d7d7; */
  28469. /* } */
  28470. .toolChild > div + div {
  28471. margin-top: 5px;
  28472. }
  28473. .gjCss {
  28474. display: flex;
  28475. flex-direction: row;
  28476. flex-wrap: nowrap;
  28477. align-items: center;
  28478. padding: 10px 0 10px 40px;
  28479. box-sizing: border-box;
  28480. font-size: 14px;
  28481. cursor: pointer;
  28482. border-radius: 5px;
  28483. }
  28484. .toolChild > div {
  28485. position: relative;
  28486. width: 100%;
  28487. }
  28488. /* .toolChild > div::before { */
  28489. /* content: "";
  28490. width: 15px;
  28491. height: 1px;
  28492. background: #cad1dc;
  28493. position: absolute;
  28494. top: 24px;
  28495. left: -20px;
  28496. display: block; */
  28497. /* } */
  28498. .isGjCss {
  28499. /* color: #0061ff; */
  28500. color: #fff;
  28501. background: rgb(55, 129, 252);
  28502. /* background-color: #e0eafb !important;
  28503. color: #0061ff !important; */
  28504. }
  28505. .navItem {
  28506. background: #ffffff;
  28507. border-radius: 4px;
  28508. width: 100%;
  28509. margin: 10px auto;
  28510. position: relative;
  28511. height: 40px;
  28512. display: flex;
  28513. flex-direction: row;
  28514. flex-wrap: nowrap;
  28515. align-items: center;
  28516. }
  28517. .navItemList {
  28518. display: flex;
  28519. flex-direction: row;
  28520. flex-wrap: nowrap;
  28521. align-items: center;
  28522. padding: 0 13px;
  28523. cursor: pointer;
  28524. width: calc(100% - 60px);
  28525. height: 100%;
  28526. }
  28527. .navItemList > div:first-child {
  28528. min-width: 60px;
  28529. }
  28530. .navItemList > div:last-child {
  28531. width: calc(100% - 80px);
  28532. white-space: nowrap;
  28533. overflow: hidden;
  28534. text-overflow: ellipsis;
  28535. word-break: break-word;
  28536. }
  28537. /* .isItemList > div {
  28538. color: #fff !important;
  28539. } */
  28540. .tool_work_box {
  28541. width: 100%;
  28542. padding: 0 37px 0;
  28543. box-sizing: border-box;
  28544. }
  28545. .tool_box {
  28546. width: 100%;
  28547. padding: 0 0 0 20px;
  28548. }
  28549. .tool_type_box {
  28550. display: flex;
  28551. flex-direction: row;
  28552. align-items: baseline;
  28553. flex-wrap: nowrap;
  28554. justify-content: flex-start;
  28555. position: relative;
  28556. }
  28557. .toolSort {
  28558. display: flex;
  28559. flex-direction: row;
  28560. flex-wrap: wrap;
  28561. justify-content: flex-start;
  28562. align-items: flex-start;
  28563. padding: 0 0 15px 0;
  28564. }
  28565. .toolSort > div {
  28566. margin: 0 10px 0 0;
  28567. width: 135px;
  28568. box-sizing: border-box;
  28569. border: 2px solid transparent;
  28570. }
  28571. .tools {
  28572. width: 100%;
  28573. display: flex;
  28574. flex-direction: column;
  28575. flex-wrap: nowrap;
  28576. align-items: flex-start;
  28577. }
  28578. .whiteBIcon {
  28579. width: fit-content;
  28580. cursor: pointer;
  28581. display: flex;
  28582. flex-direction: column;
  28583. flex-wrap: nowrap;
  28584. align-items: center;
  28585. font-size: 14px;
  28586. }
  28587. .tool:hover {
  28588. border: 2px solid #a5c7ff;
  28589. border-radius: 5px;
  28590. }
  28591. .whiteBIcon > img {
  28592. width: 65px;
  28593. height: 100%;
  28594. }
  28595. .whiteBIcon > img {
  28596. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  28597. border-radius: 15px;
  28598. }
  28599. .check {
  28600. /* width: 20px;
  28601. height: 20px; */
  28602. cursor: pointer;
  28603. margin: 10px 0;
  28604. position: absolute;
  28605. right: 2px;
  28606. top: -5px;
  28607. }
  28608. .noChoose,
  28609. .isChoose {
  28610. width: 15px;
  28611. height: 15px;
  28612. border-radius: 50%;
  28613. border: 1px solid #adadad;
  28614. }
  28615. .isChoose {
  28616. border: 4px solid #0363ff !important;
  28617. width: 10px;
  28618. height: 10px;
  28619. }
  28620. .isToolChoose {
  28621. border: 2px solid #5394ff !important;
  28622. border-radius: 5px;
  28623. box-shadow: 0 0 6px 0px #5394ff;
  28624. }
  28625. .checkDiv {
  28626. display: flex;
  28627. align-items: center;
  28628. }
  28629. .checkDiv span {
  28630. margin-left: 5px;
  28631. color: #858585;
  28632. }
  28633. .check img {
  28634. width: 20px;
  28635. height: 20px;
  28636. }
  28637. .lockTaskIcon {
  28638. width: 20px;
  28639. height: 20px;
  28640. position: absolute;
  28641. right: 10px;
  28642. top: 10px;
  28643. }
  28644. .lockTaskIcon > img {
  28645. width: 100%;
  28646. height: 100%;
  28647. }
  28648. .pick_box {
  28649. display: flex;
  28650. align-items: flex-start;
  28651. flex-wrap: wrap;
  28652. }
  28653. .selectBox {
  28654. width: 110px;
  28655. margin-left: 10px;
  28656. margin: 0 10px 0 auto;
  28657. }
  28658. .selectBox >>> .el-input__inner {
  28659. height: 30px;
  28660. line-height: 30px;
  28661. }
  28662. .selectBox >>> .el-input__icon {
  28663. line-height: 30px;
  28664. }
  28665. .sentenceTitle {
  28666. display: flex;
  28667. flex-direction: row;
  28668. flex-wrap: nowrap;
  28669. align-items: center;
  28670. }
  28671. .sentenceTitle::before {
  28672. content: attr(index);
  28673. background: #3681fc;
  28674. border-radius: 50%;
  28675. color: #fff;
  28676. width: 25px;
  28677. height: 25px;
  28678. min-width: 25px;
  28679. min-height: 25px;
  28680. text-align: center;
  28681. line-height: 25px;
  28682. margin-right: 5px;
  28683. }
  28684. .hfBox {
  28685. padding: 10px;
  28686. box-sizing: border-box;
  28687. }
  28688. .whoReplyWho {
  28689. display: flex;
  28690. flex-direction: row;
  28691. flex-wrap: nowrap;
  28692. align-items: baseline;
  28693. justify-content: flex-start;
  28694. }
  28695. .hfBottom {
  28696. display: flex;
  28697. flex-direction: row;
  28698. flex-wrap: nowrap;
  28699. align-items: center;
  28700. justify-content: space-between;
  28701. font-size: 14px;
  28702. }
  28703. .deleteHfItem {
  28704. cursor: pointer;
  28705. width: 20px;
  28706. height: 20px;
  28707. }
  28708. .deleteHfItem > img {
  28709. width: 100%;
  28710. height: 100%;
  28711. }
  28712. .whoReplyWho > .hfImg {
  28713. width: 12px;
  28714. height: 12px;
  28715. margin: 0 5px;
  28716. }
  28717. .whoReplyWho > .hfImg > img {
  28718. width: 100%;
  28719. height: 100%;
  28720. }
  28721. .hfContent {
  28722. padding-top: 10px;
  28723. box-sizing: border-box;
  28724. display: -webkit-box;
  28725. overflow: hidden;
  28726. white-space: normal !important;
  28727. text-overflow: ellipsis;
  28728. word-wrap: break-word;
  28729. -webkit-box-orient: vertical;
  28730. }
  28731. .hfTime {
  28732. text-align: left;
  28733. box-sizing: border-box;
  28734. padding: 10px 0 10px 0px;
  28735. color: #bfbfbf;
  28736. font-size: 14px;
  28737. }
  28738. .btnAllNT {
  28739. position: fixed;
  28740. bottom: 100px;
  28741. right: 40px;
  28742. z-index: 999;
  28743. display: flex;
  28744. flex-direction: row;
  28745. }
  28746. .btnAllNT > img {
  28747. cursor: pointer;
  28748. width: 80px;
  28749. }
  28750. .toolMask {
  28751. position: fixed;
  28752. width: 100%;
  28753. height: 100%;
  28754. background: #3f3c3c;
  28755. opacity: 0.5;
  28756. top: 0;
  28757. left: 0;
  28758. z-index: 999;
  28759. }
  28760. .addToolCss {
  28761. position: fixed;
  28762. z-index: 999;
  28763. background: #fff;
  28764. right: 5%;
  28765. bottom: 18%;
  28766. min-width: 1035px;
  28767. min-height: 300px;
  28768. border-radius: 10px;
  28769. box-shadow: 0 0 8px 1px #b2b2b2;
  28770. }
  28771. .toolTop {
  28772. display: flex;
  28773. flex-direction: row;
  28774. flex-wrap: nowrap;
  28775. justify-content: space-between;
  28776. align-items: center;
  28777. padding: 20px;
  28778. }
  28779. .toolTop > div:nth-child(2) {
  28780. width: 15px;
  28781. height: 15px;
  28782. padding-right: 10px;
  28783. cursor: pointer;
  28784. }
  28785. .toolTop > div:nth-child(2) > img {
  28786. width: 100%;
  28787. height: 100%;
  28788. }
  28789. .fullStyle >>> .el-dialog__body {
  28790. height: calc(100% - 125px) !important;
  28791. box-sizing: border-box;
  28792. padding: 30px 0 !important;
  28793. background: #fff !important;
  28794. }
  28795. .fullStyle >>> .el-dialog {
  28796. width: 100% !important;
  28797. max-width: 100% !important;
  28798. height: 100% !important;
  28799. margin: 0 !important;
  28800. }
  28801. .fullStyle {
  28802. width: 100% !important;
  28803. max-width: 100% !important;
  28804. height: 100% !important;
  28805. margin: 0 auto !important;
  28806. }
  28807. .fullStyle >>> .el-dialog__footer {
  28808. background: #fff !important;
  28809. }
  28810. .engUpBox {
  28811. width: 100%;
  28812. height: 100%;
  28813. }
  28814. .engTitle,
  28815. .engText {
  28816. display: flex;
  28817. flex-direction: row;
  28818. flex-wrap: nowrap;
  28819. align-items: flex-start;
  28820. padding: 0 20px 20px 20px;
  28821. box-sizing: border-box;
  28822. }
  28823. .engTitle > .div:first-child,
  28824. .engText > div:first-child {
  28825. min-width: 75px;
  28826. }
  28827. .correctBox {
  28828. width: 100%;
  28829. display: flex;
  28830. flex-direction: row;
  28831. flex-wrap: nowrap;
  28832. align-items: flex-start;
  28833. }
  28834. .oldBox {
  28835. width: 50%;
  28836. height: 100%;
  28837. display: flex;
  28838. flex-direction: column;
  28839. flex-wrap: nowrap;
  28840. align-items: center;
  28841. border-top: 1px solid #d9d9d9;
  28842. border-left: 1px solid #d9d9d9;
  28843. border-right: 1px solid #d9d9d9;
  28844. }
  28845. .oldBox > div:first-child {
  28846. width: 100%;
  28847. text-align: center;
  28848. background: #d9d9d9;
  28849. height: 35px;
  28850. line-height: 35px;
  28851. font-weight: bold;
  28852. }
  28853. .oldText {
  28854. width: 100%;
  28855. height: calc(100% - 35px);
  28856. overflow: auto;
  28857. margin: 10px 0;
  28858. display: flex;
  28859. flex-direction: column;
  28860. flex-wrap: nowrap;
  28861. align-content: center;
  28862. align-items: center;
  28863. }
  28864. .detailBox {
  28865. width: 50%;
  28866. padding: 10px;
  28867. background: #f6f6f6;
  28868. border-radius: 5px;
  28869. }
  28870. .oldDetail,
  28871. .oldDetail1 {
  28872. padding-bottom: 30px;
  28873. }
  28874. .oldImg {
  28875. width: 30px;
  28876. height: 30px;
  28877. }
  28878. .oldImg > img {
  28879. width: 100%;
  28880. height: 100%;
  28881. }
  28882. .allName {
  28883. min-width: 200px;
  28884. white-space: nowrap;
  28885. overflow: hidden;
  28886. text-overflow: ellipsis;
  28887. word-break: break-word;
  28888. cursor: pointer;
  28889. text-align: center;
  28890. border: 1px solid #bcc2cc;
  28891. box-sizing: border-box;
  28892. }
  28893. .engUpTop {
  28894. max-height: 300px;
  28895. overflow: auto;
  28896. }
  28897. .isUpdateToolDetailClass {
  28898. padding: 0 !important;
  28899. }
  28900. .isUpdateToolDetailClass textarea {
  28901. padding: 12px;
  28902. font-size: 16px;
  28903. min-height: 100%;
  28904. width: 100%;
  28905. box-sizing: border-box;
  28906. outline: none;
  28907. border: none;
  28908. line-height: 30px;
  28909. resize: none;
  28910. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  28911. "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  28912. color: #838383;
  28913. }
  28914. .show_taskD {
  28915. min-width: fit-content;
  28916. margin-left: 10px;
  28917. display: flex;
  28918. align-items: center;
  28919. font-size: 14px;
  28920. cursor: pointer;
  28921. color: #717c8d;
  28922. }
  28923. .show_taskD > img {
  28924. width: 15px;
  28925. margin-right: 5px;
  28926. transition: 0.2s all;
  28927. transform: rotate(-90deg);
  28928. }
  28929. .show_taskD.show > img {
  28930. transform: rotate(0deg);
  28931. }
  28932. .correctCss {
  28933. position: absolute;
  28934. bottom: -70px;
  28935. background: #409eff;
  28936. color: #fff;
  28937. }
  28938. .ScoreBtn {
  28939. background: rgba(87, 159, 248, 1);
  28940. display: flex;
  28941. justify-content: center;
  28942. align-items: center;
  28943. color: #fff;
  28944. font-size: 14px;
  28945. padding: 8px 12px;
  28946. border-radius: 5px;
  28947. cursor: pointer;
  28948. }
  28949. .max-height-popover .el-popover {
  28950. min-height: 200px;
  28951. max-height: 400px; /* 设置最大高度 */
  28952. overflow: auto; /* 超出部分显示滚动条 */
  28953. }
  28954. .blueRootCss {
  28955. display: block;
  28956. margin-right: 5px;
  28957. }
  28958. .stuLookScore {
  28959. position: absolute;
  28960. top: 12px;
  28961. right: 40px;
  28962. background: #0000008f;
  28963. border-radius: 5px;
  28964. padding: 3px 5px;
  28965. font-size: 14px;
  28966. color: #fff;
  28967. cursor: pointer;
  28968. }
  28969. div::-webkit-scrollbar {
  28970. width: 10px;
  28971. height: 6px;
  28972. }
  28973. </style>